[OS X TeX] paths in input & include

Arthur Snoke snoke at vt.edu
Sat Feb 11 09:01:41 EST 2006


A work-around is, in FolderB, before texing,

ln -s ../FolderA folderb

And then use

  \include{./folderb/File2}

(or \input f you do not want the new page, etc.)

This is what I used  successfully with \includegraphics before I was told 
about -R0

>>>> Superfolder
>>>>    FolderA
>>>>       File1
>>>>    FolderB
>>>>       File2
>>>> 
>>>> In File1, I want to include File2.
>> 
>>    \documentclass[11pt]{book}
>>    \begin{document}
>>    This is text in File1
>>    \include{../FolderB/File2}
>
> You probably just want  \input{../FolderB/File2}   here.
> \include  will do a lot more than \input , namely:
> 1. start a fresh page
> 2. try to read a .aux file
> 3. will write a .aux file with counter values after the
>    file has been processed;
> 4. maybe a few other things as well.
------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list