# Tag Info

1 vote

### TikZ - foreach substitution inside coordinate name not working

Maybe you misspelled the nodes? \documentclass[a4paper,10pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} % defines nodes directly or within a loop \node (a1) at (0, 0) {\$...
• 3,916
1 vote
Accepted

### Drawing loops around an ellipse in Tikz

Your idea is fine, but your use of \def is not. Instead use the evaluate option for \foreach: \foreach \i[evaluate=\i as \x using -3*cos((180*\i)/4), evaluate=\i as \y using sin((180*\i)/...
• 31.1k
Accepted

### How to loop through every character of an argument in TeX

I see only Expl3 examples here, but this task is very suitable for using TeX primitives only. We define the \spell macro which gets a single word and prints the first letter by the format given by \...
• 62k

### How to loop through every character of an argument in TeX

tl;dr If you want to just insert a hyphen between graphemes, this works. \documentclass{article} \usepackage{iftex} \iftutex \usepackage{fontsetup} \fi \ExplSyntaxOn \NewDocumentCommand{\...
• 1.0m

### How to loop through every character of an argument in TeX

The following implements both. The variant including the last character is straight forward using the expl3 function \text_map_inline:nn, the variant ignoring the last character needs to loop over the ...
• 52.3k

### Why does this code need the tcolorbox package?

As Ulrike Fischer told, what you need is pgffor and graphicx packages. This is the minimal code. \documentclass[]{article} \usepackage{pgffor} \usepackage{graphicx} \def\Image{\includegraphics[scale=...
• 132k
Accepted

### Foreach with different label

Below a solution that uses \foreach. Moreover, I see that you have two different scales in your diagram. In this case, it is useful to use xscale (or yscale if needed), so that you can use the actual ...
• 2,740

Top 50 recent answers are included