Skip to content

Instantly share code, notes, and snippets.

@fmitha
Created June 14, 2022 17:45
Show Gist options
  • Save fmitha/c883f322b7d04de946d46561f35cd9c2 to your computer and use it in GitHub Desktop.
Save fmitha/c883f322b7d04de946d46561f35cd9c2 to your computer and use it in GitHub Desktop.
\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