Last active
October 12, 2019 13:23
-
-
Save marcosdg/fb038e7e1d3fa00f175bfde8fd375479 to your computer and use it in GitHub Desktop.
Some commands I have frequently used to edit documents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Marcos Diez García | |
### 12 October 2019 | |
# Change the commands' arguments to suit your needs. Use at your own risk. | |
# 1. Simple way to find .tex files' paths to install manually a package from CTAN | |
# kpsewhich package-name | |
kpsewhich natbib.sty | |
# 2. Use inkscape to export an image in the working directory to PDF + tex file | |
inkscape -D -z --file=input-image.svg --export-pdf=output-image.pdf --export-latex | |
# 3. Use inkscape to convert PNG to SVG | |
inkscape -z -f path-to-png/input-image.png -l path-to-svg/output-image.svg | |
# 4. Extract pages from PDF using ghostcript (no 3rd party sofware) | |
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dFirstPage=1 -dLastPage=10 -sOutputFile=path-to-file/output-file-name.pdf input-file.pdf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment