[tex-live] updmap and TEXMFHOME

Heiko Oberdiek heiko.oberdiek at googlemail.com
Sat Dec 4 14:17:01 CET 2010


On Sat, Dec 04, 2010 at 01:25:52PM +0100, Zdenek Wagner wrote:

> 2010/12/4 Robin Fairbairns <Robin.Fairbairns at cl.cam.ac.uk>:
> > Reinhard Kotucha <reinhard.kotucha at web.de> wrote:
> >
> >> I thought that it's sufficient to put \pdfmapline into the .fd file
> >> because this is loaded on demand:
> >> ...
> >>
> >> The following works:
> >>
> >> \input t1zch.fd
> >> {\usefont{T1}{zch}{m}{n}Text}
> >>
> >> And even this:
> >>
> >> {\usefont{T1}{zch}{m}{n}Text}
> >> \input t1zch.fd
> >>
> >> Don't know yet how \usefont loads the .fd file.
> >
> > it runs with nfss catcodes, which (among other things) ignores spaces,
> > which is (of course) death to map files.
> >
> > if you preceded the loading with something setting the catcode of space
> > (and so on) back, and then reset using \nfss at catcodes afterwards, your
> > code would work.
> >
> > robin
> >
> How about:
> \let\savedpdfmapline\pdfmapline
> \def\pdfmapline{\begingroup\catcode`\ 10 \execpdfmapline}
> \def\execpdfmapline#1{\endgroup\savedpdfmapline{#1}}

The redefined \pdfmapline is incompatible to the primitive \pdfmapline.
For example, LaTeX 3 uses `~' as space token where ` ' is also
ignored.

Also the map line uses `=' that is not covered by \nfss at catcodes.
`=' might be active (see turkish.ldf). Also missing is `+'.

\begingroup
  % assuming \nfss at catcodes is in force
  \catcode32=10\relax % space
  \catcode43=12\relax % plus
  \catcode61=12\relax % equals
  \pdfmapline{...}%
\endgroup

Yours sincerely
  Heiko Oberdiek


More information about the tex-live mailing list