Skip to content

Instantly share code, notes, and snippets.

@fmitha
Created June 21, 2022 19:19
Show Gist options
  • Save fmitha/44240865dcf99bec6592d0ca4bf06c2e to your computer and use it in GitHub Desktop.
Save fmitha/44240865dcf99bec6592d0ca4bf06c2e to your computer and use it in GitHub Desktop.
\documentclass[12pt]{scrartcl}
\usepackage{pgfkeys}
\begin{document}
\newcommand{\pdfconfigfilename}{FOO}
%\newcommand{\Pdfconfigfilename}{FOO}
\pgfkeys
{
/includepdffiles/.is family, /includepdffiles,
% Calling the keys so that the macros are defined.
default/.style =
{
pdfconfigfilename,
},
pdfconfigfilename/.default = {XXX},
pdfconfigfilename/.estore in = \pdfconfigfilename,
}
\NewDocumentCommand{\IncludePDFFiles}{O{}}
{
\pgfkeys{/includepdffiles, default, #1}%
\typeout{PDFCONFIGFILENAME in IncludePDFFiles MACRO IS \pdfconfigfilename}
\typeout{\pdfconfigfilename}
}
\IncludePDFFiles[pdfconfigfilename=\pdfconfigfilename]
%\IncludePDFFiles[pdfconfigfilename=\Pdfconfigfilename]
\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