emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] LaTeX-export: letters after $..$ turn off math-mode


From: Nicolas Goaziou
Subject: Re: [O] LaTeX-export: letters after $..$ turn off math-mode
Date: Sat, 16 Feb 2013 08:25:58 +0100

Hello,

Bastien <address@hidden> writes:

> Greg Minshall <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]