SublimeText / LaTeXTools

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

Possible enhancement: live previewing tables and tikz figures #916

Open Joshua1989 opened 7 years ago

Joshua1989 commented 7 years ago

Now the live previewing works neatly, so I think it would be great to implement similar functions for tabulars and pgf/tikz blocks. One thing need more consideration is that there may be equation and images inside those blocks.

r-stein commented 7 years ago

I was looking forward for tikz support in the long run. This may take a while and needs a syntax update to support tikz with a special scope. I didn't have tabulars in mind, but will think about it.

tobiasdiez commented 6 years ago

It would also be nice to have math rendering for own environments. For example, I have a custom equation environment (essentially a wrapper around equation and tikz-cd for commutative diagrams) and the preview is not working for them.

r-stein commented 6 years ago

If you have your own math environment you just need to edit the syntax file and add it there. For several reasons the preview is based on the scopes of the underlaying syntax file, so you need to edit that.

z-m-k commented 6 years ago

@r-stein, Will this be overwritten every time Latextools updates?

r-stein commented 6 years ago

No the LaTeX syntax is inside the LaTeX package which is shipped within sublime text itself. It won't automatically be overwritten.