Created
July 5, 2020 13:47
-
-
Save moewew/2e0fcd582432a4ec72360f17085443d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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