Wednesday, June 27, 2012

Use LaTeX font in other softwares

Just learned how to use LaTeX font (especial the one used in math equations) in other softwares, say, Inkscape.

The font in math equations is called "Latin Modern Math". It is located at
usr/share/texmf-dist/fonts/opentype/public/lm

in a texlive installation on Linux. For other latex versions it should be in a similar position starting with texmf something.

After installing this font, one can use it in software. And the next question is how to input. The characters in the font can be input using UTF-8 code. The dictionary of correspondence can be found at

http://mirror.csclub.uwaterloo.ca/CTAN/macros/latex/contrib/unicode-math/unimath-symbols.pdf


One can input UTF-8 in emacs using command "ucs-insert".

EDIT (Dec 15, 2012): In a new version of tex-live, the Latin Modern Math font is at usr/share/texmf-dist/fonts/opentype/public/lm-math

Saturday, June 23, 2012

Generating latex-style figures using gnuplot

In a figure, it would be nice that the fonts and formula styles are consistent with the main text. For my case, the main text is in LaTeX, and the plot is generated using gnuplot. Here is how to:

Wednesday, June 6, 2012

PDF annotation in Okular

Finally it arrived. With the Okular coming with KDE SC 4.9 (currently in beta status) and poppler 0.20, annotations in PDF can now saved in Okular and shared with other PDF readers (tested in acroread).

Previously, I knew I could use wine applications; I knew I could use complicated tools like pdfedit; I knew I could edit PDF as drawings and then export; I knew on Evince PDF can be annotated (limited support, cannot remove, sometimes annotations can get lost). But this is the first time that PDF annotation is available for real usage on Linux.

For me, this was the last thing (except gaming) that one could easily do in Windows and not in Linux. Now the gap is filled :)