SHARE
TWEET

Untitled

a guest Mar 9th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top