Tagged Questions
1
vote
0answers
85 views
Compare two comma separated lists
Hi I would like to compare two comma separated lists.
\documentclass[a4paper]{article}
\usepackage{comment}
\usepackage{ifthen}
\usepackage{xargs}
\usepackage{xkeyval}
\usepackage{xfor}
...
3
votes
1answer
99 views
datatool repeat row
I intend to create a document where parts of the text are read from the entries of a .csv file using the package datatool (version 2012/09/25 v2.11., updated manually under debian).
Everything works ...
6
votes
1answer
188 views
How to define macros in a foreach loop with effects between iterations and after the loop without using global?
Without using \global, the following code:
\documentclass{minimal}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage{etextools}
\newcommand\appendbyforeach[2]{%
...
5
votes
1answer
293 views
Use a loop to generate a list for another (foreach) loop
Is it possible to use a loop to generate a list for a foreach loop? More specifically I want the following:
Consider the following answer to a question I asked some time ago: ...
0
votes
2answers
224 views
Environment with customizable number of table columns
I want to make macros for drawing group of questions with same answers with customizable text, number of answers and design (column widths, alignment, etc.), like this:
...
8
votes
2answers
959 views
How to break out of a loop
I have been trying to automate the production of stepped tables that contain conversion factors of all sorts. (See Protrusion of fractions in tabulars).
As part of this I have a rather convoluted ...
16
votes
3answers
1k views
Comma delimited lists
LaTeX's low-level programming is poorly documented and the section on what is called control commands is even more so.
LaTeX provides the \@for macro. This works by repeatedly assigning list items ...
15
votes
7answers
2k views
What is the canonical way to write a for-loop macro?
At a basic level TeX does not provide a for-loop construct, but allows tail-end recursion, however Knuth defined \loop in the plain macros. Coders have been coming with variations of their own ever ...