Hello, Bastien <b...@altern.org> writes:
> Greg Minshall <minsh...@umich.edu> writes: > >> i'd like to plead the case of allowing the user to suppress dollar-sign >> behavior (or, force dollar-signs to mean math-mode). > > I'm attaching a patch that introduces `org-latex-escape-chars' which > would allow you to bind it to something different for each buffer -- > e.g., without the dollar sign. > > Nicolas, let me know if this looks okay for you. I think this solution is not appropriate. Even if you patch latex back-end, the rest of Org still doesn't recognize the construct as a math snippet. So, this would be a mere hack. A correct solution would be to modify `org-latex-regexps' so math snippets can be followed by a letter. But you may find yourself opening a can of worm. Getting there regexps right is difficult, as can probably testify Carsten. IMO, I would call that an Org limitation. Org is not LaTeX, even if it provides many LaTeX facilities. Also, the OP's problem can be solved in many ways under Emacs. For example, I use "mt" (both "m" and "t" are on my home row) as a snippet to insert "\(\)" in an Org buffer and put point inside. Regards, -- Nicolas Goaziou