Add root folder to TEXINPUTS for preview-math#1401
Closed
bordaigorl wants to merge 1 commit intoSublimeText:masterfrom
Closed
Add root folder to TEXINPUTS for preview-math#1401bordaigorl wants to merge 1 commit intoSublimeText:masterfrom
bordaigorl wants to merge 1 commit intoSublimeText:masterfrom
Conversation
Currently the Math Preview feature does not support including external files. This is because: 1. the preview is built in a separate temp folder and these files are not copied there 2. changes to these imported files would not trigger updates to the preview Assuming 2 can be solved by a disclaimer in the documentation (the use case is to import custom packages or custom macros which are seldom updated), this patch solves problem 1 by augmenting the environment variable `TEXINPUTS` with the folder of the current root of the document.
Author
|
Closing because isomorphic to #1179 😭 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently the Math Preview feature does not support including external files.
This is because:
Assuming 2 can be solved by a disclaimer in the documentation (the use case is to import custom packages or custom macros which are seldom updated), this patch solves problem 1 by augmenting the environment variable
TEXINPUTSwith the folder of the current root of the document.