I'm trying to write my own command that wraps the \VerbatimInput
command. I'd like my command to take optional arguments (those given inside [...]
) and pass those directly to \VerbatimInput[...]
. Of course, if the optional arguments to my command are not given, then nothing should be passed to \VerbatimInput
.
How can I do this? I'm a relative novice to creating custom commands in LaTeX.
\newcommand{\foo}[2][]{...\VerbatimInput[#1]{#2}...}
should do.