Category Archives: TeX

How to use SVG files in LaTeX

  1. Check that Inkscape is installed and in the search path.
  2. In LaTeX, use the code explained here.

 

Advertisements

(e)ps to pdf conversion in Linux

To convert EPS files used with latex to PDF for pdflatex:
ps2pdf -dEPSCrop -dAutoRotatePages=/None filename.eps

ps2pdf in my experience does the most precise conversion. -dEPSCrop option is needed to prevent ps2pdf from outputting a full A4 page.

More control of ps2pdf:
http://www.linux.com/learn/tutorials/442405-creating-pdf-files-with-ps2pdf
http://superuser.com/questions/70054/set-page-orientation-to-landscape-using-ps2pdf
All Ghostscript options (call with -dOption): http://pages.cs.wisc.edu/~ghost/doc/AFPL/6.50/Ps2pdf.htm#Options

To batch process a whole directory:
for FILE in *.eps
do
ps2pdf -dEPSCrop -dAutoRotatePages=/None $FILE
done

(This code is to be written to a text file, which is then made executable and run.)

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 http://viereck.ch/latex-to-svg/. (Thanks to Peter for sending in the link.)

biblatex

biblatex is a modern tool for typesetting bibliography with LaTeX. It is more powerful than the good old BibTeX but uses the same database language (bib-files). This makes switching to biblatex easy. You can still use the bibliography management tool of your choice (like JabRef, Mendeley etc.) provided that it supports the bib-files.

While biblatex was first publicly released in 2006, the first stable version (version 1.0) was released on 2010-11-19. As a result, biblatex is mature and well supported by the community, including the availability of several custom bibliography styles.

Support on biblatex can be obtained at comp.text.tex and Stackexchange. Biblatex is written by Phillip Lehmann.

Update: biblatex styles: