Skip to content

Instantly share code, notes, and snippets.

@moewew

moewew/array.tex

Created Jul 5, 2020
Embed
What would you like to do?
\documentclass{standalone}
\usepackage{calc}
\usepackage{tikz}
\begin{document}
\tikzset{
pics/mypic/.style n args={1}{
code={
\foreach \i in {0,1,2}{
\node at (\i, 0) {$\pgfmathparse{{#1}[\i]}\pgfmathresult$};
}
}
}
}
\tikz{\pic at (0, 0) {mypic={"\mathtt{A}","\mathtt{B}","\mathtt{C}"};}}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment