Skip to content

Instantly share code, notes, and snippets.

@hasantahir
Last active June 17, 2020 09:15
Show Gist options
  • Save hasantahir/716bdb311a4b18e63da94e2cc62e2e4e to your computer and use it in GitHub Desktop.
Save hasantahir/716bdb311a4b18e63da94e2cc62e2e4e to your computer and use it in GitHub Desktop.
ImageMagick / Inkspace commands for compressing and converting between different file formats
%% To convert an animated PDF generated out of LaTeX into a GIF:
convert -verbose -delay 50 -loop 0 -density 300 file.pdf file.gif
%% Inkspace SVG to PDF:
```Tip to avoid multipage pdf generation headache:
Ensure text is always top of eerything
select text and then Object -> Raise to top
All text objects can be selected from the find command enabling the 'select by type -> text' option.
Open the pdf_tex file after compiling, and delete the lines that says \includegraphics for pages other than 1
inkscape --file=e_diag.svg --export-area-drawing --without-gui --export-latex --export-pdf=e_diag.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment