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
Situation: My LaTeX documents use the subfiles package and have the following structure. There is a main file text.tex in the root folder . and a bunch of subfiles subfile1.tex, subfile2.tex, ... in the folder ./subfiles. I mostly edit one subfile at a time, e.g., subfile1.tex, and hence press <localleader>ls immediately after opening it to change the target for compilation to subfile1.tex. This is because vimtex automatically finds the main file text.tex after opening a subfile and sets the target for compilation to text.tex.
Request: Would it be possible to add a variable which would modify the default behavior and save me of pressing <localleader>ls every time I open a subfile in a session where no valid target for compilation is set yet?
Details: If the variable was set to 0, then everything would work as it does now. If it was set to 1, then, after opening a subfile, the target for compilation would be automatically set to that subfile. This should happen only if no valid target for compilation is set yet, e.g., when vim is freshly started or when the file which is the current target for compilation is closed. In other cases, i.e., opening additional tabs, the target for compilation should remain the same.
Thanks!
The text was updated successfully, but these errors were encountered:
Situation: My LaTeX documents use the
subfiles
package and have the following structure. There is a main filetext.tex
in the root folder.
and a bunch of subfilessubfile1.tex, subfile2.tex, ...
in the folder./subfiles
. I mostly edit one subfile at a time, e.g.,subfile1.tex
, and hence press<localleader>ls
immediately after opening it to change the target for compilation tosubfile1.tex
. This is because vimtex automatically finds the main filetext.tex
after opening a subfile and sets the target for compilation totext.tex
.Request: Would it be possible to add a variable which would modify the default behavior and save me of pressing
<localleader>ls
every time I open a subfile in a session where no valid target for compilation is set yet?Details: If the variable was set to
0
, then everything would work as it does now. If it was set to1
, then, after opening a subfile, the target for compilation would be automatically set to that subfile. This should happen only if no valid target for compilation is set yet, e.g., when vim is freshly started or when the file which is the current target for compilation is closed. In other cases, i.e., opening additional tabs, the target for compilation should remain the same.Thanks!
The text was updated successfully, but these errors were encountered: