Category Archives: Inkscape

Batch convert files from SVG to PDF

This is often needed for LaTeX. Here is the script:

for FILE in *.svg
inkscape --file=$FILE --export-area-drawing --without-gui --export-pdf=${FILE%.*}.pdf

${FILE%.*} gets the filename without extension (taken here).


LaTeX to SVG

Presentations and posters can be made in Inkscape.

Scientific material often requires equations.

Inkscape doesn’t have an equation editor.

It is possible to compose math in LaTeX, typeset (compile) it to DVI, and convert DVI to SVG using dvisvgm.

Use the command dvisvgm filename.dvi -n to specify that the characters should be converted to paths.


Update: For those who prefer a GUI interface to working with the command line, you can achieve similar results with (Thanks to Peter for sending in the link.)