[OS X TeX] paths in input & include

Ross Moore ross at ics.mq.edu.au
Sat Feb 11 05:20:48 CET 2006


Hi Alain,

On 11/02/2006, at 2:09 PM, Alain Schremmer wrote:

> Peter Dyballa 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.
  \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.

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

OK, so you *do* want a fresh page.

>
> Is this really the way it's spoozed to be?

If it's a security feature, preventing writing to locations
outside the current directory, then "Yes, I suppose so.".
Certainly it's a feature that I've not encountered before.

>
> Regards
> --schremmer

Sorry I cannot be more helpful.

Cheers,

	Ross

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------


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