Advertisement
Guest User

Untitled

a guest
Mar 9th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.29 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{pgffor}
  3. \newcommand\myfuncx[2]{\myfuncdoit#1:#2\relax}
  4. \def\myfuncdoit#1:#2:#3\relax{ First: (#1), Second: (#2), Third (#3) }
  5. \begin{document}
  6. \foreach \p in {foo1:int,bar:float,baz:bool}
  7.      { (\expandafter\myfuncx{abc}\expandafter{\p}) }
  8. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement