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
When using forward search in a multi-file document with sections managed using https://ctan.org/pkg/subfiles, texlab seems to use the wrong path for substituting the %p variable in invoking the viewer for forward search.
In particular: using forward search from the main LaTeX file succeeds, indicating that the basic forward-search setup is configured correctly. However, trying forward search from a subfile results in an error when the viewer tries to open a nonexistent file.
For example, in a project organized as follows:
main.tex
sections/
foo.tex
where foo.tex is included in main.tex using \subfile{sections/foo.tex}, forward search from a point in foo.tex causes the viewer to try to open sections/./foo.pdf instead of main.pdf.
Versions
texlab version: 1.10.0 LSP client/editor: coc.nvim and Neovim, both latest from master. Platform: Arch Linux
Bug description
When using forward search in a multi-file document with sections managed using https://ctan.org/pkg/subfiles,
texlab
seems to use the wrong path for substituting the%p
variable in invoking the viewer for forward search.In particular: using forward search from the main LaTeX file succeeds, indicating that the basic forward-search setup is configured correctly. However, trying forward search from a subfile results in an error when the viewer tries to open a nonexistent file.
For example, in a project organized as follows:
where
foo.tex
is included inmain.tex
using\subfile{sections/foo.tex}
, forward search from a point infoo.tex
causes the viewer to try to opensections/./foo.pdf
instead ofmain.pdf
.Versions
texlab version: 1.10.0
LSP client/editor:
coc.nvim
and Neovim, both latest frommaster
.Platform: Arch Linux
Config
Empty
latexmkrc
, compilation managed withvimtex
configured asThe text was updated successfully, but these errors were encountered: