From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Greg Minshall <minshall@umich.edu>, emacs-orgmode@gnu.org
Subject: Re: LaTeX-export: letters after $..$ turn off math-mode
Date: Sat, 16 Feb 2013 08:25:58 +0100 [thread overview]
Message-ID: <87bobk7m9l.fsf@gmail.com> (raw)
In-Reply-To: <87mwv58c8n.fsf@bzg.ath.cx> (Bastien's message of "Fri, 15 Feb 2013 23:04:56 +0100")
Hello,
Bastien <bzg@altern.org> writes:
> Greg Minshall <minshall@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
next prev parent reply other threads:[~2013-02-16 7:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 11:51 LaTeX-export: letters after $..$ turn off math-mode Greg Minshall
2013-02-15 22:04 ` Bastien
2013-02-16 7:25 ` Nicolas Goaziou [this message]
2013-02-16 11:48 ` Nicolas Goaziou
2013-02-16 16:33 ` Nick Dokos
2013-02-16 16:45 ` Nick Dokos
2013-02-16 14:32 ` Bastien
2013-02-16 15:26 ` Rasmus
-- strict thread matches above, loose matches on Subject: below --
2012-02-06 18:32 Daniel Schoepe
2012-02-06 19:23 ` Achim Gratz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bobk7m9l.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=minshall@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.