Menu

#1273 Automatically load STY files with relative paths

None
wont-fix
nobody
5*
2017-05-16
2017-05-16
Anonymous
No

Hi,
One big thing that is missing in TeXstudio is the ability to automatically load STY files that are included using relative paths, for example:

\include{../headers/myclass}

Even if I check 'Automatically load included files' in the Configure TeXstudio dialog, TeXstudio won't load those files so auto-completion and syntax-highlighting don't work for commands and environments that are defined in them. They are loaded perfectly at compile-time by pdflatex.
At the university, I include own classes using relative paths in almost every LaTeX document. It would be really helpful if TeXstudio supported auto-completion for them.

Discussion

  • lukaslsm

    lukaslsm - 2017-05-16

    Sorry, I accidentally typed 'include' instead of 'usepackage' in the example above. The code fragment should be:

    \usepackage{../headers/myclass}
    
     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2017-05-16

    in my opinion, packages are part of the distribution and should be identified via the fndb of tex.
    private "packacges" can be easily dealt with as includes.
    So I don't see any reason to start a complicated logic to identify packages which are not packages.
    If you use it more often, you can generate a cwl-file in oder to make the commands known and as worst case, activate that file manually in the options.

     

    Last edit: Jan Sundermeyer 2017-05-16
  • Jan  Sundermeyer

    Jan Sundermeyer - 2017-05-16
    • status: open --> wont-fix
    • Group: -->
     

Anonymous
Anonymous

Add attachments
Cancel