[Fontinst] Problems texing etx files

Lars Hellström Lars.Hellstrom at math.umu.se
Wed Nov 24 12:49:33 CET 2004


At 11.27 +0100 04-11-24, Peter Dyballa wrote:
>Hello!
>
>In an effort to see what's behind the strange looking encodings I
>simply invoked
>
>> foreach ETX (
>> /usr/local/teTeX/share/texmf.tetex/tex/fontinst/latinetx/*.etx )
>>   pdflatex $ETX
>> end
>
>Some files could not be tex'd:
>
>> ot1ctt.etx:
>> (/usr/local/teTeX/share/texmf.tetex/tex/fontinst/latinetx/ot1c.etx
>> ! Extra \else.
>> \IfFileExists ...ileonpath {#1}{#2}{#3}}\fi \else
>>                                                   \closein
>> \@inputcheck \ede...
>> l.78 \inputetx{ot1}

This is a bug in fontdoc.sty; it turns out \IfFileExists is more fragile
than I though it was, and this causes problems when \inputetx gets nested.

Replacing the definition of \inputetx in fontdoc.sty with the following
code fixes the bug:

\def\inputetx#1{%
   \begingroup
      \edef\lowercase at file{\lowercase{%
         \edef\noexpand\lowercase at file{#1}%
      }}%
      \lowercase at file
      \global\slot at number=0%
      \FD at slot@known at true
      \IfFileExists{\lowercase at file.etx}{%
         \FD at relax@encoding at tricks
         \@@input \@filef at und
         \let\relax=\x at relax
      }{%
         \PackageError{fontdoc}{File #1.etx not found}%
            {\@eha\MessageBreak You can \protect\inputetx\space
             some other file now, if you want.}%
      }
   \endgroup
}
\def\FD at relax@encoding at tricks{%
   \def\relax{\let\relax=\x at relax\iffalse}%
   \let\encoding=\fi
   \outer\x at cs\def{endencoding}{\endinput}%
}


>In ot1itt.etx the titles misses to mention 'italic' -- purpose?

No, that is probably just out of sheer forgetfulness.


Lars Hellström




More information about the fontinst mailing list