Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#12 Option for recursing TeX files via /input

2.2
wont-fix
nobody
None
5
2013-12-28
2010-02-18
Pander
No

Please add an option for recursively checking all TeX files via /input{} statements in the main TeX file that is being checked. Maintain the same session when checking all the TeX files that recursively are encountered.

Here is an example. Note that the input command can used be without file extension.

contents file document.tex:
...
Lorem Ipsum.
\input{a}
\input{../b}
Lorem Ipsum.
...

contents file a.tex and c.tex:
...
Lorem Ipsum.
Lorem Ipsum.
...

contents file b.tex:
...
Lorem Ipsum.
input{c.tex}
Lorem Ipsum.
...

the file hierarchy for this example would be

subdir/document.tex
subdir/a.tex
b.tex
c.tex

Of course it can happen that a sentence is partly in one file and partly in another file. It is up to the user to make things ugly by repeat inclusions or (very ugly) making loops. When reporting on another file than the main file, please report this in the grammar warnings/errors.

Discussion

  • Daniel Naber
    Daniel Naber
    2013-12-28

    • status: open --> wont-fix
    • Group: --> 2.2
     
  • Daniel Naber
    Daniel Naber
    2013-12-28

    I think parsing TeX is out of scope for LT.