I was wondering if the following is possible. I use LaTeX a lot. In latex a lot of commands appear that represent a symbol, such as \alpha, or \rightarrow, and so on. Is there some way to make Sublime text show the greek letter alpha in place of \alpha, without actually changing the text, only the way it is outputted on the screen? Similar, \rightarrow could be replaced on the screen with a small arrow and so on.
Replace text with a symbol
I’m the author of the LaTeXTools package. This is something I’ve thought about a bit. Unfortunately, given the text-only nature of ST, the only possibility seems to be to use some kind of intermediate file. ST has no problem using Unicode characters, and one could have LaTeXTools add one step to the build process where Unicode Greek letters and math symbols are replaced with their TeX counterparts. Also, replacing \alpha with the Greek letter “alpha” when editing would be easy to do. But it’s not a “clean” solution.
Thanks for you reply! I was worried that this was not an obvious question. Like you say, there are some possibilities using extra files. I thought of making a wrapper for LaTeX, that converts the symbols (like rightarrow, or alpha) back to the latex command before compiling using a simple search and replace.
However, I work with other people on the same project, so they would all have to use the same software for this to work.
Btw: I use your LaTeXtools package constantly, it’s really great!
Actually, another option would be to use the unicode-math
LaTeX package (which requires xetex
or luatex
). THis allows the use of Unicode math symbols directly in regular tex files.