Tag
Pgfmath
- How to Draw Pascal’s Triangle in TikZGenerate Pascal’s triangle in TikZ with nested loops and PGF math. This complete example computes coefficients and centers each row automatically.
- How to Use \pgfmathsetmacro in a TikZ \foreach LoopUse \pgfmathsetmacro inside a braced TikZ foreach body, and account for loop scope if you need its result after the loop.
- How to Increment and Decrement Variables in TikZIncrement or decrement TikZ variables with PGF math, foreach evaluate expressions, TeX counters, or relative coordinates using the correct syntax.