Skip to main navigation Skip to main content Skip to page footer

Longer Articles

  • Doing Charts

    Another way of making charts, using Perl or R to write TeX code.

  • Presentations with ltx-talk

    ltx-talk ist the dedicated successor to the beamer package, with support for tagging as killing feature. Unfortunately, it is not a drop-in replacement yet. Here are some workarounds.

TeX related snippets

Getting Yannis Haralambous' Blackletter Fonts to work

I am using the OpenSuse packaged TeX system, so with other systems, you may not run into the same trouble as me. The situation: You can install with YaST several texlive-yfonts-* packages. This is fine, but unfortunately, the tfm files that TeX needs are not included. So you have to download the packages yfrak, ygoth and yswab from CTAN. Extract the tfm files you find in there and put them into the appropriate subdirectory of your local texmf tree (for me, this is /usr/local/share/texmf) and therein fonts/tfm/public/yfonts.

The initials need special treatment, as there is no Type-1-Version. You have to download both yinit and yinit-as and copy the *.mf files to fonts/tfm/public/yinitas. You may think about using the otf version instead, if you will use a TeX engine that supports it (luaTeX or XeTeX).

When you're done, run sudo mktexlsr and sudo updmap-sys to add the map file yfrak.map. You may consult my linux page about picking the right parameters for updmap-sys.

Correcting a TeX Type 1 Font Mess

This article deals with complications with the use of unofficial fonts with TeX on OpenSuSE leap.

My System

I am and have been using OpenSuSE (and its predecessor SuSE Linux) for several years. As it was never necessary to setup a fresh system even when mainboards and harddisks got changed (hello windows users, is there any envy on your side?), my system grew and aged. My TeX system now consists of three TDS trees:

  • /usr/share/texmf: The official TDS tree by SuSE
  • /usr/local/share/texmf: TDS tree width my own stuff, e.g. my private letter head, styles, fonts, and packages I use that don't come with OpenSuSE, like the Lucida fonts.
  • /var/lib/texmf: TDS tree for volatile things, e.g. TeX formats.

The transition to use these trees in this way took some time, years ago. If you do not bother to keep your TeX files separated like this: You really should.

Font trouble

Trouble started when I installed the Roboto fonts. It took me some time to have pdfTeX find them. When it finally did, Lucida support was broken, albeit in a strange way: mktexpk automatically generated pk fonts (bitmaps) in type 3 format and included them into the final PDF file. I did not want this. There are pixels visible at higher resolutions, file size bloats. Now to the resolution:

Having changed your TDS trees, you always should run mktexlsr or texconfig rehash in superuser mode to make your TeX system find the changed files. Having installed fonts, you have to use updmap. And this is where the trouble came from.

When you call updmap, updmap will list its config files. The order is quite important. Unless you do something special, updmap will always change the first listed config file. My list looks like this:

/etc/texmf/web2c/updmap.cfg
/usr/local/share/texmf/web2c/updmap.cfg
/usr/share/texmf/web2c/updmap.cfg

The first and third are identical, as OpenSuSE sets a link. updmap understands that the first file is system-wide, so it warns about hidden sys mode. If you see this warning, you may—like me—probably be tempted to run updmap-sys in superuser mode. Unfortunately, this will not help, as updmap-sys will not incorporate things from private TDS trees. The solution is to supply your own updmap.cfg in the command line to updmap and to run it in superuser mode, like this:

sudo updmap --cnffile /usr/local/share/texmf/web2c/updmap.cfg --force --enable Map lucida.map

By the way, Kpathsea offers valuable tools for debugging. kpsewhich shows which file will be used, while kpsewhere shows all files with the name you are looking for. Calling pdfTeX with kpathsea debugging (pdflatex --kpathsea-debug -1 >logname 2>&1 filename) shows all the efforts of kpathsea.

It looks so easy, in retrospect, but in fact there had been moments where I was in despair. But even then, I did not consider to edit the font maps by hand.