Currently the Math Preview feature does not support including external files.
This is because:
the preview is built in a separate temp folder and these files are not copied there
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:
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.