You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An expected behavior is that when one starts to type \helloh... in main.tex, a completion should pop up. But the actual behavior is that no such completion is suggested by digestif. It seems that digestif does not find the commands defined in the included files.
The text was updated successfully, but these errors were encountered:
It would be nice to fix this limitation, but this behavior stems from an important optimization tradeoff.
Currently, if main.tex includes, say, chapter1.tex and chapter2.tex, we pretend that any new commands or packages or further \inputs in chapter1.tex don't affect the way main.tex or chapter2.tex are parsed. This is not how TeX actually works, but it allows us not to reparse chapter2.tex if chapter1.tex changes. In this way, we can deal with documents of essentially arbitrary length as long as they are in the usual one-file-per-chapter model.
There are some even worse consequences of this optimization: If you move all your preamble to a sty file like this:
Greetings. Suppose I have two LaTeX files called
main.tex
andmacro.tex
in the same directory. Supposemacro.tex
reads:and it is included in
main.tex
:An expected behavior is that when one starts to type
\helloh...
inmain.tex
, a completion should pop up. But the actual behavior is that no such completion is suggested by digestif. It seems that digestif does not find the commands defined in the included files.The text was updated successfully, but these errors were encountered: