[OS X TeX] New TeX i-Package in the *EXPERIMENTAL* i-Directory

Morten Høgholm morten.hoegholm at gmail.com
Sat Sep 10 08:51:46 EDT 2005


On Sat, 10 Sep 2005 14:26:39 +0200, Bruno Voisin <bvoisin at mac.com> wrote:

> Le 10 sept. 05 à 04:18, Axel E. Retif a écrit :
>
> In case, in LaTeX, \@ifundefined{pdfoutput} is equivalent to plain TeX's  
> \ifx\pdfoutput\undefined (I think it is), then that means the following  
> config files will no longer work either:

It is not the same test. If the control sequence formed by \csname  
...\endcsname is undefined TeX turns it into \relax. Yes, it's rather  
silly but that's the way it is (who said you can't have assignments inside  
\edef?). \@ifundefined uses \csname ...\endcsname and thus suffers from  
the same.

The test
   \@ifundefined{pdfoutput}{}{%
     \ifcase\pdfoutput
     \else
       \chardef\x=1\relax
     \fi
   }%
is equivalent to
   \ifx\pdfoutput\undefined
   \else
     \ifx\pdfoutput\relax
     \else
       \ifcase\pdfoutput
       \else
         \chardef\x=1\relax
       \fi
     \fi
   \fi

> Searching for \ifx\pdfoutput\undefined, 63 files are returned:
>
> /usr/local/teTeX/share/texmf.gwtex/tex/generic/config/pdftex-dvi.tex
> /usr/local/teTeX/share/texmf.gwtex/tex/latex/config/latex.ini
[...]
> /usr/local/teTeX/share/texmf.tetex/tex/texinfo/texinfo.tex
>
> In particular, what seems annoying is the fact that the various .ini  
> files used when building the formats seem to contain \ifx\pdfoutput 
> \undefined.

The problem is not files containing \ifx\pdfoutput\undefined, it's files  
containing *only* that test. So for instance, eso-pic is okay but  
changebar is not.
-- 
Morten
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list