[tex-live] A please for literate coding (was : updmap and TEXMFHOME)

Philip Taylor (Webmaster, Ret'd) P.Taylor at Rhul.Ac.Uk
Sat Dec 4 13:37:27 CET 2010


Dear Zdenek --

When you post code such as the following, you run the risk
of it being either misunderstood or even incomprehensible
to newer members of the TeX fraternity :

> \let\savedpdfmapline\pdfmapline
> \def\pdfmapline{\begingroup\catcode`\ 10 \execpdfmapline}
> \def\execpdfmapline#1{\endgroup\savedpdfmapline{#1}}

If you were to put in a few spaces and assignment operators,
as in the following, it might be considerably more transparent
to others :

\let \savedpdfmapline = \pdfmapline
\def \pdfmapline {\begingroup \catcode `\ = 10 \execpdfmapline}
\def \execpdfmapline #1{\endgroup \savedpdfmapline {#1}}

What do you think ?
Philip Taylor


More information about the tex-live mailing list