New answers tagged

3 votes

pgf list with length registers

You can use e.g. https://tex.stackexchange.com/a/541869/36296 to convert to cm \documentclass[aspectratio=169]{beamer} \mode<presentation> \usetheme{moloch}% modern fork of the metropolis theme ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote
Accepted

`foreach` does not work together with `ifthenelse` and `mod`

If you add \show\im after the \edef, you'll see at the first cycle > \im=macro: ->0.0. and > \im=macro: ->1.0. at the second cycle. This cannot work with \ifthenelse, that expects ...
egreg's user avatar
  • 1.1m
0 votes

Loop to input content into tabular

Load the files in a variable, put them together and deliver them at once, with \midrule between them. Loading a file is done with \file_get:nnNTF so we can also protect against missing files. \begin{...
egreg's user avatar
  • 1.1m
1 vote

Loop to input content into tabular

There is no problem when OpTeX is used, because \fornum and \foreach from OpTeX runs independently of TeX groups and they are expandable. \createfile {r_1.tex} A & B \cr C & D \cr \endfile \...
wipet's user avatar
  • 74.7k
1 vote

Loop to input content into tabular

Here I use an approach with readarray. Note, for convenience, I changed filenames to remain in the working directory only. Here, I show how to loop through a list of files identified by % LIST OF ...
Steven B. Segletes's user avatar
1 vote
Accepted

Loop to input content into tabular

Each table cell is a scope on its own. And each iteration of \foreach opens up its own local scope. (pgfmanual.pdf, section "88 Repeating Things: The Foreach Statement" says: "Note that ...
Ulrich Diez's user avatar
  • 28.9k
2 votes

How to pass an argument to a macro called with \csname

It's rather hard to work out the intention of the code in the question but I suspect that you do not need any of the packages used. \documentclass{article} \ExplSyntaxOn \seq_new:N\l_cb_seq % start ...
David Carlisle's user avatar
2 votes
Accepted

How to pass an argument to a macro called with \csname

On the one hand: The command \nums internally uses \chgrand for performing assignments. \nums also does \pgffor which in turn isn't fully expandable either. Performing assignments and other non-...
Ulrich Diez's user avatar
  • 28.9k
0 votes

Input a list of files

Good morning I answer my question with the solution that I finally adopted. I think using csvsimple with the command \csvreader{liste.dat}{}{....} allows me to have direct access to my list stored in ...
rpapa's user avatar
  • 12.4k
3 votes

Input a list of files

After the texlive update of 2024-03-28 you may use the l3sys-query tool (which is allowed in the restricted shell escape, so does not need --shell-escape). The following small example would input all ...
David Carlisle's user avatar

Top 50 recent answers are included