# Tag Info

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
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
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

### 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
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

### 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

### 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
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