A useful script for scientific writing that converts multiple formats to PDF.
- converts all supported formats into PDF when modification time changes
- output PDFs are automatically cropped
- tested on Linux (Mint, Ubuntu, Debian, CentOS)
cd /path/to/my/latex/paper/images
figconv # generates PDFs
figconv --png # generates PDFs and PNGsOn Debian, Ubuntu and Linux Mint, you can install the latest release as a deb package. This has some optional dependencies.
After downloading the file figconv_<VERSION>.deb, install it using the following command:
sudo dpkg -i figconv_<VERSION>.debYou can install figconv directly from github into your /usr/local directory.
It is generally not recommended to run sudo make ... on stuff downloaded from the Internet.
So you have been warned!
git clone --depth 1 https://github.com/vsimko/figconv.git
cd figconv
sudo make installUninstallation also works:
sudo make uninstallYou can install/uninstall it somewhere else as follows:
INSTALL_PATH=/path/to/other/dir make install
INSTALL_PATH=/path/to/other/dir make uninstall- PDF (default and also used for intermediate conversion to other formats)
- PNG (requires Ghostscript
gs)
-
OpenOffice / LibreOffice formats:
- requires
unoconvutility - ODT (Writer): Every page exported as a single PDF
- ODG (Draw): Every page exported as a single PDF
- ODS (Calc): Every sheet exported as a single PDF
- requires
-
SVG
- requires Inkscape
- SVG filters such as Duotone will be resterized
-
Plots generated in R language
- single R file per diagram
- global parameters
pdf.widthandpdf.heigth
- see
deb-controlfile
- see
CONTRIBUTING.md