Atreyagaurav / litex-mode

LiTeX mode for emacs; A minor mode to convert valid lisp expressions to LaTeX
GNU General Public License v3.0
43 stars 4 forks source link

Add support for variables containing the Delta (Δ) glyph #14

Closed Bu156 closed 2 years ago

Bu156 commented 2 years ago

Looking for opinions on how we should implement using the Delta (Δ) glyph in variable names, for example denoting a difference in time in the case of Δt. The implementation here is not dependent on my previous PR, and might be able to be expanded to support prefixes more generally, but I haven't encountered the need for that in my work. It's also not dependent on the user being able to type Unicode characters.

The prefix is configurable, and the current default should be seen as a placeholder as it contains the - character, which generally denotes subscript in this package.

Usage:

(setq Delta-T (- T T-0))

Returns:

{\Delta}T = T - T_{0}
Bu156 commented 2 years ago

Closing in favor of #13

Atreyagaurav commented 2 years ago

You already closed it but I think you can understand how I didn't want to use - for both, as we'd need instances where greekletters also needs to be in subscript or have subscript, so using a different symbol / means we can easily add this and have any combination of two, still I haven't tested it extensively.

Bu156 commented 2 years ago

Yeah, I was unsure of which character to use, so it was just a placeholder, but you had already solved it by the time I opened the PR, that's why I closed it.