[OS X TeX] input versus include in Texshop

David Arnold darnold at northcoast.com
Wed Jan 5 19:00:20 CET 2005


All,

I tried this:

\makeatletter
% patching LaTeX \InputIfFileExists for \include and \input
     \let\PDFSYNC at InputIfFileExists\InputIfFileExists%
     \long\def\InputIfFileExists##1##2##3{%
	  \immediate\write\PDFPOS{(##1}%
       \PDFSYNC at InputIfFileExists{##1}{##2}{##3}%
       \immediate\write\PDFPOS{)}}%
\makeatother

But got this:

! Parameters must be numbered consecutively.
<to be read again>
                    ##
l.12     \long\def\InputIfFileExists##
                                       1##2##3{%
?


Any ideas?

On Jan 5, 2005, at 4:40 AM, Maarten Sneep wrote:

>> % patching LaTeX \InputIfFileExists for \include and \input
>>     \let\PDFSYNC at InputIfFileExists\InputIfFileExists%
>>     \long\def \InputIfFileExists##1##2##3{%
>> 	  \immediate\write\PDFPOS{(##1}%
>>       \PDFSYNC at InputIfFileExists{##1}{##2}{##3}%
>>       \immediate\write\PDFPOS{)}}%

--------------------- 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 macostex-archives mailing list