Created
June 14, 2022 17:45
-
-
Save fmitha/c883f322b7d04de946d46561f35cd9c2 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[12pt]{scrartcl} | |
\usepackage{pgfkeys} | |
\newcommand\colnames | |
\pgfkeys | |
{ | |
/foo/.is family, /foo, | |
default/.style = | |
{ | |
colnames, | |
}, | |
colnames/.estore in = \colnames, | |
colnames/.default = {}, | |
} | |
\begin{document} | |
\NewDocumentCommand{\fee}{O{}} | |
{ | |
\pgfkeys{/foo, default, #1}% | |
\typeout{FEE RETURNS \colnames}\colnames | |
} | |
\fee[colnames={[[`To`]], [[`From`]]}] | |
\NewDocumentCommand{\baz}{m}{\typeout{BAZ REURNS #1}#1} | |
\baz{{[[`To`]], [[`From`]]}} | |
\end{document} | |
%%% Local Variables: | |
%%% mode: latex | |
%%% TeX-master: t | |
%%% End: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment