Skip to content

Add root folder to TEXINPUTS for preview-math#1401

Closed
bordaigorl wants to merge 1 commit intoSublimeText:masterfrom
bordaigorl:preview-math-texinputs
Closed

Add root folder to TEXINPUTS for preview-math#1401
bordaigorl wants to merge 1 commit intoSublimeText:masterfrom
bordaigorl:preview-math-texinputs

Conversation

@bordaigorl
Copy link
Copy Markdown

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.

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.
@bordaigorl
Copy link
Copy Markdown
Author

Closing because isomorphic to #1179 😭

@bordaigorl bordaigorl closed this Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant