[OS X TeX] input versus include in Texshop
Bruno Voisin
bvoisin at mac.com
Wed Jan 5 07:57:55 EST 2005
Le 5 janv. 05, à 13:40, Maarten Sneep a écrit :
> Queation remains why \input{} didn't work for the original poster.
Looking at latex.ltx, you can find:
\ifx\@@input\@undefined\let\@@input\input\fi
[...]
\def\input{\@ifnextchar\bgroup\@iinput\@@input}
\def\@iinput#1{%
\InputIfFileExists{#1}{}%
{\filename at parse{#1}%
\edef\reserved at a{\noexpand\@missingfileerror
{\filename at area\filename at base}%
{\ifx\filename at ext\relax tex\else\filename at ext\fi}}%
\reserved at a}}
This seems to say that, in LaTeX, \input is interpreted:
- If it is followed by \bgroup (= {), as \@iinput which is defined in
terms of \InputIfFileExists, redefined by pdfsync.sty to support
synchronization.
- If it isn't followed by \bgroup, as \@@input which is initialized to
the original TeX primitive \input, untouched by pdfsync.sty and thus
not supporting synchronization.
Bruno
--------------------- 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