Questions tagged [write]

{write} is about writing to files in TeX macros.

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
179 views

Write fully expanded macros to auxiliary files

Considering the following code snippet: \documentclass{article} \usepackage{xparse} % \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \NewDocumentCommand{\edeftest}{m}{\edef\test{#1}#1} \...
2
votes
0answers
119 views

How to duplicate content/vboxes?

I am trying to create exercise and answer environments for lecture notes, where I type \begin{exercise}... \end{exercise} followed by \begin{answer}...\end{answer} within the text. I want to include ...
1
vote
0answers
62 views

\write : maximum lines'

In the ledmac documentation, Peter Wilson wrote that, when writing to the .end file (which stores the endnote), it transforms all spaces to line breaks. We change \newlinechar so that in the ...
1
vote
0answers
57 views

How to avoid log messages which accidentally look like errors?

TeX errors are conventionally marked by the sequence <LF>!<SPACE>… in log files. However, sometimes one can accidentally get this sequence of characters in a log file even if no error ...
1
vote
0answers
77 views

How to use \@writefile without blocking a write stream?

From what I understand, to properly use \@writefile one has to block a write stream, like this: \documentclass{article} \usepackage{lipsum} \begin{document} \makeatletter \newwrite\tf@foo \openout\...
0
votes
0answers
42 views

How to create a TeX variable whose name depends on a parameter

I would like to create multiple \newwrite in my document, for instance: one by chapter. I've tried the following but it doesn't work. I guess, in the end, my question falls back to: giver a parameter #...
0
votes
0answers
39 views

changing from two columns to a single column in the same template

I'm using a two column latex template for Digital signal processing journal (Elsevier), and during writing i want to use a page as single column to put large images. How to change from two columns to ...
0
votes
0answers
72 views

Writing to custom ouput file with lualatex: Hook to start of the writing process and substitute not-fully expandable macros

I am working on writing document with informations, that are at the end of each part summarized in summary. To prevent writing them twice, I am using datatool to create "buffers" in runtime, from ...
0
votes
1answer
30 views

Failing to write to file and input the same

\documentclass{minimal} \usepackage{etoolbox} \newwrite\tempfile \makeatletter \let\features\@gobble \makeatother \newcommand{\feature}[1]{% \expandafter\def\expandafter\features\expandafter{\...
0
votes
1answer
20 views

\newwrite, pgfplotstable: Put generated rows together to one pgfplotstable (follow-up question)

I get a Code from @egreg that create rows in outwritten textfiles in a loop. I need to put all these rows together in 1 pgfplotstable, that means something like \ifnum\the\filecount=1 \...
0
votes
0answers
50 views

Tutorial: Low-Level Basic Implementation of an Asynchronous Table of Contents?

Closely Related: - Mimicking LaTeX's "table of contents" functionality Using documentclass{minimal}, what is the shortest way to write a low-level asynchronous Table of Contents, (...
0
votes
0answers
109 views

Get path of (custom) auxiliary file when `-output-directory` flag is given to pdflatex

In short: Say the following is built using pdflatex -output-directory=tmp: \documentclass{article} \newwrite\fileHandle \immediate\openout\fileHandle=outfile.csv \immediate\write\fileHandle{hello ...
0
votes
0answers
49 views

How to modify the environment and command possible write the content in a file through the \write command?

I want to "generate/convert" my .tex files into xml format while compiling LaTeX. I don't want to modify the tex files, I want to generate the xml file trough the \write command based on the DTD while ...