[OS X TeX] \openout

Herbert Schulz herbs2 at mac.com
Wed Jan 24 19:54:04 EST 2024



> On Jan 24, 2024, at 6:38 PM, Schremmer Alain <Schremmer.Alain at freemathtexts.org> wrote:
> 
> Once upon a time, I used the following file structure:
> 
> Figures
> Style Sheets
> Text contents in which the files contained just the text, e.g. 1.tex:
> 
> %!TEX root = ../Text-controls/\jobname.tex
> % !TEX TS-program = pdflatexmk  
> \chapter{Numbers}\label{1-0}
> \ChapterToc
> We begin by revisiting a few concepts ...
> 
> Text controls which except for the adjustments are all copies of
> % !TEX TS-program = pdflatexmk
> \documentclass[11pt]{book}
> \usepackage{../StyleSheets/Preamble}
> \usepackage{../StyleSheets/TextConstruction}
> \usepackage{../StyleSheets/GraphicsPaths}
> \begin{document}
> % sssssssssssss Begin ADJUSTMENTS to DOCUMENT
> \addtocounter{page}{16}
> \addtocounter{chapter}{\jobname-1}
> % sssssssssssssss End ADJUSTMENTS to DOCUMENT
> \include{../Text-contents/\jobname}
> \makeindex
> \printindex
> \end{document}
> 
> This file structure worked fine until I upgraded to something. Then, Schultz bailed me out by having me move the Text-contents folder into the Text-controls folder—removing of course the corresponding ../ —  and resetting something to do with \openout which I forgot long ago.
> 
> Although I don’t particularly like its lack of symmetry, I have used that structure ever since with no problem. But I am trying to look at some of these old files and got into a lot of trouble. The latest one is:
> 
> ./1.tex:13: I can't write on file `Text-contents/1.aux'.
> \@include ...mmediate \openout \@partaux "#1.aux" 
>                                                   \immediate \write \@partau...
> l.13 \include{Text-contents/\jobname}
> 
> So, I am hoping that Schultz can bail me out once more.

Howdy,

This must be way too long ago. I need my memory refreshed. What is the file system structure of the files? Is the root file that \includes the 1.tex file in a folder above 1.tex. etc?

Good Luck,

Herb Schulz
herbs2 at mac.com




More information about the MacOSX-TeX mailing list