[OS X TeX] paths in input & include

Alain Schremmer Schremmer.Alain at gmail.com
Sat Feb 11 00:37:06 EST 2006


Ross Moore wrote:

>>> Am 10.02.2006 um 00:10 schrieb Alain Schremmer:
>>>
>>>> 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.

In fact, I want Sneeps' \includeExercises (1/3/06 4:08 PM) but right now 
I want to clear up the path issue.

>>    \end{document}
>>
>> and File2 = This is text in File2, I get the message
>>
>>    No file ../FolderB/File2.aux.
>>    )
>>    [1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/updmap/ 
>> pdftex.map}]/usr/local/teTeX/bin/powerpc-apple-darwin-current/ pdflatex:
>>    Not writing to ../FolderB/File2.aux (openout_any = p).
>
>
>
> Hmm.  This looks like a security feature similar to the one
> discussed a couple of weeks ago for  dvips .
> Gerben (and others) used a  -R0  switch to disable that;
> e.g.
>       simpdftex tex --extradviopts -R0 foo.dvi
>
> But there is no such option for LaTeX;
> viz.
>
> rossmoor% pdflatex -R0 File1.tex
> pdflatex: unrecognized option `-R0'
> Try `pdflatex --help' for more information.
>
>
> and  pdflatex --help   tells nothing about such a feature.
>
> Maybe it can be changed from within the   pdftex.cfg  file
> by assigning an appropriate value to  openout_any  .
> But what value should it be ?
>
>
>>
>>    ! I can't write on file `../FolderB/File2.aux'.
>>    \@include ...\immediate \openout \@partaux #1.aux
>>                                                      \immediate \write
>>    \@partau...
>>    l.15 \include{../FolderB/File2}
>>                                     Please type another output file  
>> name:
>>
>> When I then click Enter, I get
>>
>>    (../FolderB/File2.tex) [2] (./File1.aux
>>    No file ../FolderB/File2.aux.
>>    )
>>    ){/usr/local/teTeX/share/texmf.tetex/dvips/tetex/f7b6d320.enc}</ 
>> usr/local/teT
>>    eX/share/texmf.tetex/fonts/type1/bluesky/cm/cmr10.pfb>
>>    Output written on File1.pdf (2 pages, 9551 bytes).
>>    Transcript written on File1.log.
>>
>> and LaTeX correctly typesets two pages with "This is text in File1"  
>> on page 1 and "This is text in File2" on page 2.
>
Now what I don't understand is that with Picture2.pdf instead of 
File2.tex, namely with

    Superfolder
       FolderA
          File1
       FolderB
          Picture2.pdf

the following

    \documentclass[11pt]{book}
    \usepackage{graphicx}
    \begin{document}
    This is text in File1
    \includegraphics[scale=0.75]{../FolderB/Picture2.pdf}
    \end{document}

works just fine.

Puzzled regards
--schremmer






------------------------- 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