SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2.01k stars 364 forks source link

Add root folder to TEXINPUTS for preview-math #1401

Closed bordaigorl closed 5 years ago

bordaigorl commented 5 years ago

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 commented 5 years ago

Closing because isomorphic to #1179 😭