Menu

#883 Make TXS aware of silently input files of classes/packages

open
nobody
None
1
2016-09-22
2015-06-01
No

Suppose a class (or package), say mysuperclass.cls, silently "\input"s a fixed configuration file, say mysuperclassconfigurationfile.tex (or mysuperclassconfigurationfile.cfg) located:

  • either in the same folder as,
  • or in a fixed subfolder of,

the .tex file using this class.

It could be nice to make TXS aware of this input through a mysuperclass.cwl, in order to let it display this configuration file in the structure tab when a .tex file using this class is open (just like it displays all the files explicitly input/included with \input/\include in this .tex file).

Discussion

  • accdragon

    accdragon - 2015-09-17

    I second this request. Using
    %\newcommand{\includetex}{./include/mytexfolder/}
    Or any other variation of this command (\def, with argument etc.) causes TXS to highlight the correcsponding file red in the structure view pane. \
    makeatletter
    \def\input@path{{"./include/mytexfolder/"}}
    \makeatother
    Exhibits the same behaviour.
    Or am I just unaware of a way to declare a static path which TXS will respect, which is not in the parents .tex folder?
    PS: If this is considered off topic, I apologize.

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-09-17

    @accdragon: you should takte a look at making an aproriate cwl file, see manual.

    @Denis: this is not possible with the current control logic.
    The class name is just used a filename for an cwl-file. Classes neither parsed not read.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.