Skip to content

Instantly share code, notes, and snippets.

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