Menu

#385 parse commands in \input{} parameter

None
closed
nobody
input (4)
1
2015-07-10
2013-01-23
Anonymous
No

If I use something like this:

\newcommand{\mydir}{somedir/}
\input{\mydir myfile}

TeXstudio can't open the specified file.

It would be nice to get this added/fixed.

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2013-01-24

    I don't think, we'll add this. I prefer to interpret the input parameter as a plain string. If we start parsing here, people will come up with other and more complicated commands in there. In the end, this would aim towards a complete latex parser. And that's beyond the capabilities of an editor. So it's more concise in this case to have no parsing at all than to do some.

    Anyway, in most cases, relative paths should do for input (which work). It should be quite rare that a \mydir command is really useful.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-06-29
    • status: open --> closed
    • Group: -->
     
  • Benito van der Zander

    Perhaps the new tokenizer stuff can handle this?

     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo