I would like to achieve something like this: I have defined a new command with \newcommand and I'm passing an argument to it, like this: pdf, text, doc - which is the filetype. So what I want to achieve is to define a variable like this:
Code: Select all
\def\filetype{text}
Code: Select all
\ifthenelse{\equal{#1}{pdf}}{\let\filetype{pdf}}
Thanks in advance