I would like to create something like this drawing using Tikz:
I found a nice tikz example that creates something similar:
\documentclass[border=10pt]{standalone}%
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \n in {0,...,4} {
\foreach \k in {0,...,\n} {
\node at (\k-\n/2,-\n) {${\n \choose \k}$};
}
}
\end{tikzpicture}
\end{document}
I thought it would be trivial to change the label at a node by accessing the label on a list, something like lst[\n]
, where lst
contains monomials, but it turned out to be more complicated than I thought. Besides, I couldn't find a way to add the exponent programatically. Is this possible with tikz using loops, or do I have to create an ad-hoc solution?