Menu

#641 Recognizing \import as an input statement

None
closed
nobody
1
2015-03-08
2014-01-21
ComFreek
No

Currently, TexStudio is able recognize \input{xyz.tex} and to show these included files in the "file navigation pane" on the left.

Feature request: let TexStudio also recognize \import and \import* commands.

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2014-01-21

    This is not possible because \import works like \import{path}{file}. The current parser does not support multiple arguments with special meaning. In particular it cannot infere that path/file is a file that should be included.

    This issue cannot be addressed before there is a more fine-grained definition of latex commands. See also this discussion.

     
  • Kirill Müller

    Kirill Müller - 2015-03-07

    The feature is already advertised in the change log of 2.7.0 (search for subimport).

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-03-08

    True. The implementation was a user contribution, and probably we forgot to close this item.

    Note that the implementation is semi-hard coded because of the limitations mentioned above. Thus, it does not have the full features of \input, e.g. link overlays are not available. However, the structure outline works as expected (which was the above request). Therefore I'll close this.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-03-08
    • status: open --> closed
    • Group: -->
     

Anonymous
Anonymous

Add attachments
Cancel