[OS X TeX] \openout

Schremmer Alain Schremmer.Alain at freemathtexts.org
Thu Jan 25 03:00:52 CET 2024

> On Jan 24, 2024, at 7:54 PM, Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>> 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

This IS way too long ago but right now I have to go help my wife. So, I will respond tomorrow. Have a good night.

----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://www.tug.org/mactex/faq/index.html
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list.