-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Support for Tectonic.toml #3773
Comments
Thanks for asking! As long as the tectonic.toml is within the project, I think we should be able to find all toml files which have the current file included in their inputs. Maybe we can even parse the toml using the jackson library.
I guess we should just use the V2 CLI by default if a Tectonic.toml is found in the project. If the toml is in a parent directory outside of the project, then I don't know. |
Could the language server be told which source files are included in
Sounds reasonable. From what I gleam from the docs, I don't think the |
We do keep track within TeXiFy what files are in the same file set (included by the same main file), and I think it should be possible to get this information from the tectonic.toml. For direct LaTeX input that is in there, it is more difficult because we need to run our LaTeX parser on it to make sense out of it. I'm not sure how Tectonic handles it, maybe we can hack a temporary file together with all the inputs concatenated, then parse it? I'm not sure if that would work, because this information will not be indexed if the file does not exist on disk as such. https://tectonic-typesetting.github.io/book/latest/v2cli/build.html?highlight=tectonic.toml#remarks
|
Tectonic
is moving towards a file-based build configuration specified in aTectonic.toml
file. Would it be possible to support this in the plugin?The current issues I encounter are:
tectonic -X build
does not work using the standard tectonic run configuration. This is because the latter passes some command line arguments by default (like --synctex), which do not apply totectonic -X
, and it also expects for instance a target file to compile, which does not apply in theTectonic.toml
configuration.I think the second point should be easy to solve but I'm not sure how straightforward the first one is. I'd appreciate any effort towards this end though!
The text was updated successfully, but these errors were encountered: