Tagged Questions
2
votes
1answer
65 views
At which point does \immediate\write write to file?
Assume I have opened a file myfile and write to it with
\immediate\write\myfile{My cat is too old}
I have multiple such statements in my document and do calculations in between which influence the ...
7
votes
3answers
163 views
Write on a file and input it
I'm trying to redefine a \tableofcontents-like command.
I proceed this way : the displayed elements are written to a file, and the file is input when I want the display.
If I know the toc will be ...
6
votes
2answers
175 views
How to redefine commands and environments, and make them acceptable for `\write`
My general problem is the following. I want to "convert" many .tex files into some other format (xml-like). I don't want to modify the tex files, I can only build a documentclass.
The texfiles are ...
7
votes
4answers
398 views
How to write a command to file
I am trying to write to a auxillary file using
\newwrite\tempfile
[...]
\immediate\openout\tempfile=list.tex
\immediate\write\tempfile{Text to write to file}
\immediate\closeout\tempfile
It works ...
