SublimeText / LaTeXTools

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

include local package in preview_math_template_packages #1403

Open nikolaibobenko opened 5 years ago

nikolaibobenko commented 5 years ago

I am not able to find a satisfactory way to do this, so sorry if this has been asked before.

Is it possible to just give a global path or local relative to the root folder of the project to a .sty file to include it via \usepackage in preview_math_template_packages?

Thanks.

r-stein commented 5 years ago

Sorry including local files is currently not possible #1179 We cache the generated thumbnails and reuse them. This will lead to issues if they depend on external files in the current implementation and one has to consider performance problems when changing the implementation.

nikolaibobenko commented 5 years ago

Thanks for the answer.

So the only real way around this is to install the local package so it can to be seen globally or to maintain a copy of the package in the format of preview_math_template_preamble?

The first will probably not work either if changes to the package are introduced, right?

I love the preview feature but this makes it much less usable sadly.