-
Notifications
You must be signed in to change notification settings - Fork 389
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with nested standalone files #2234
Comments
Thanks; this is a complicated issue, because the standalone package works in a "non standard" way. But I think we can solve it similar to how I've implemented support for the subfile package. I'll look into it. |
I think it should work now. This change may be unexpected for some users who are not aware of the nuance described in your issue. That is, I believe a lot of people would use standalone only for more simple things like a single tikz image, because this update will change the root directory for the local view to that of the real main file. Thus there are some gotchas, e.g.:
Assume all
Since the root is the same, the auxilliary files will conflict. This is clearly constructed, and I also think it is clearly a user "error". But my point is that I believe this kind of thing may happen to unaware users. I don't have a good idea of a simple way to avoid this. |
Description
Trying to compile nested standalone files breaks because of path name.
Steps to reproduce
main.tex
sub.tex
sub2.tex
Setup the code sample,
vim main.tex
then\ll
everything works as expected. Thencd sub
andvim sub.tex
and:VimtexToggleMain
, then run\ll
and it fails because it doesn't know wheresub/sub2/sub2
is. To fix it we have to dosub2/sub2
which will break compilation in the main file.Expected behavior
Allowing compilation of a nested standalone document
Actual behavior
Compilation of nested standalone document fails.
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: