New answers tagged loops
1
vote
Understanding a \@for loop
A solution using the \ekvcsvloop provided by expkv. I also added a small key=value interface with expkv-cs, the supported keys are align and formatter (the latter will get the text of each row as ...
- 53k
4
votes
Accepted
How to loop calendar files for my filofax organizer
PGF/TikZ comes with the “utility” PGFCalendar.
With my tikz-ext package I have added support for week numbering.
For this, you will actually need to load the pgfcalendar-ext package.
Now, PGFCalendar ...
- 103k
2
votes
Accepted
@for loop variable name printed instead of contents in tabbing environment
Table cells create groups, so any non-global assignment is lost when TeX goes to another cell (here, when you use \> to go to the next column or \\ to the next row). \@for does a local assignment ...
- 69.2k
7
votes
Incomplete \ifodd; all text was ignored after line
You can't have conditionals enclosing the options.
I'm not sure why you define \x that way, as \i is an integer.
It's simpler than that: use \pgfmathifthenelse.
\documentclass{article}
\usepackage{...
- 1.1m
6
votes
Accepted
Incomplete \ifodd; all text was ignored after line
There are several problems with your code. The first one is the usage of "standalone" document class with node positioned relatively to the corner of the current page (but for standalone, ...
- 3,956
2
votes
How can I make a loop to draw a sequence of projections on two lines?
Here (purely for comparison / diversion) is an attempt in Metapost, that shows off an in-line for loop and the useful hide() macro that allows you to calculate things on-the-go.
This is wrapped up in ...
- 39.1k
8
votes
How can I make a loop to draw a sequence of projections on two lines?
Another option, with almost the same loop as Qrrbrbirlbel but using trigonometry (homothecy, more precisely). No need for the calc library.
Update: Added another function, corrected the angle (now it ...
- 22.9k
9
votes
Accepted
How can I make a loop to draw a sequence of projections on two lines?
Idea is to name every new projected point M as well as, this will overwrite the previous coordinate and can be used in the next iteration.
To alternate between the B and the A labels I'm using the ...
- 103k
0
votes
problem with combination of \foreach loops in pgfplots
While looking at the manual of PgfPlots, I found a solution for the problem:
\pgfplotsforeachungrouped \i/\j in {0/1,1/2,2/3,3/4,4/5,5/6}{
\edef\temp{
\noexpand
\addplot[
...
- 2,182
Top 50 recent answers are included
Related Tags
loops × 733tikz-pgf × 198
foreach × 117
macros × 95
tables × 56
conditionals × 41
pgfplots × 33
graphics × 29
expansion × 27
counters × 25
programming × 24
comma-separated-list × 19
etoolbox × 18
pgffor × 18
beamer × 17
tex-core × 17
diagrams × 15
strings × 15
external-files × 14
errors × 13
luatex × 12
variable × 12
expl3 × 11
input × 11
for-loop × 11