Math preview: Add current tex dir to search path#1179
Math preview: Add current tex dir to search path#1179nanoant wants to merge 1 commit intoSublimeText:version4from
Conversation
7eec532 to
ef31da3
Compare
|
Sounds interesting. My main problem with this is, that using *Including other files is problematic, because the unique image identifier is build over the corresponding file content, so you will get a the same image for the same equation and already written equations are cached. If you use |
|
@r-stein Wow, thanks for instant reply. Indeed this may be not a perfect solution, but I needed it quickly. (La)TeX is pretty arcane and really terse in terms of available command line options and I had no better idea than using this |
|
I like your solution =), but my problem is more on a meta level "How do I know that the included files have changed?", because we currently only use the file content to cache the document->image relationship here and this does not work with My ideas would be to search for
|
ef31da3 to
ccaaf20
Compare
|
Aside: You may state that you agree to an upcoming license #1175, thanks |
|
@r-stein Oh yes, I hereby do agree to release my contribution to LaTeXTools under MIT license. |
|
I cannot believe I just created a PR that is identical to this one 😮 #1401 |
|
And here we go again 2 years later. Can we have this integrated? I know it is not perfect, but it better than nothing at all. And having predefined macros for symbols is really common case across many projects. |
Adding current tex root dir to TEXINPUTS search path allows
"preview_math_template_preamble" to contain \input or \usepackage that pulls
files relatively to edited document, rather than temporary folder, e.g.
"preview_math_template_preamble": "\\input{symbols.tex}"
ccaaf20 to
5775d6b
Compare
|
My comment still holds true. I understand the desire for this feature and also want to include it, but it is not easily possible with the current concept and may lead to performance issues if implemented in a different way. |
|
@r-stein I really don't understand why you arw hesitating in merging this.
On the other hand, not having this facility is a real pain, and the limitation in capabilities really does not justify the insistence on "watchability" of the changes. What is the problem??? |
|
I think it would be a compromise to merge it as opt-in with the remark that one needs to manually clear the cache in such cases? |
|
@r-stein Just to be clear we are talking about manually running "LaTeXTools: Clear Cache" when the Shall I put the remark, or you can do it after merge? |
|
Yes I mean the clear cache command. I will recheck this and create a setting for it |
Adding current tex root dir to
TEXINPUTSsearch path allows"preview_math_template_preamble"to contain\inputor\usepackagethat pullsfiles relatively to edited document, rather than temporary folder, e.g.