expand variable inside input
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I need to dynamically input a proper .tex file into my document. I wrote the following code that works only if instead of "realyearseason" I explicitly write 2019. Inside the input all new defined commands work, but the command that has one argument (which is realyear) makes the document not to compile (error is "Argument of filename@simplehas an extra }"). Why is that? How to overcome this issue? def myfolder ../../../../../trial def season Spring def yearstart2018 def yearfinish2019 newcommandrealyear[1]% ifthenelseequaldetokenize#1detokenizeSpring yearstart yearfinish% inputmyfolder/trialfolder/seasonrealyearseason common macros input share | improve this question asked 3 hours ago Tiutto 8 2 New contributor Tiutto is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. ...