Herbert Voß wrote: >>>Many thanks, Herbert. Could you cast your eye over the attached file and >>>see what improvements could be made. I'm trying to get the external >>>inset to output this... > > here comes the first try. I tried to use the old makronames.
Thanks again. I have some questions based on ignorance... > %% Input the file if it exists, using \input, else print a warning > [EMAIL PROTECTED] > [EMAIL PROTECTED] > } > % > [EMAIL PROTECTED] > \IfFileExists{#1}{\@@[EMAIL PROTECTED]@[EMAIL PROTECTED] > } > % > [EMAIL PROTECTED]@#1{% > [EMAIL PROTECTED] > } Three different macros, two different implementations. Why isn't the second one based on \InputIfFileExists? I did so and all appears to work. However, using your original file and typeing this: $ rm -f *.aux *.log *.dvi $ latex test I get ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.38 \begin{document} ? x No pages of output. Transcript written on test.log. This occurs even if the body of the document is empty. Ie, if I have \begin{document} \end{document} Subsequent runs of latex on the doc however succeed, which probably explains why you missed it. Ensuring that all included files can be found and then cutting out your macros one by one, I find that this one is the problem: [EMAIL PROTECTED] \IfFileExists{#1}{\@@[EMAIL PROTECTED]@[EMAIL PROTECTED] } Doesn't matter whether the internals are as here or as I suggest above (\InputIfFileExists). Each time I test, I first do the 'rm'. Any ideas? -- Angus