emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Colin Fraizer" <orgmode@cfraizer.com>
To: emacs-orgmode@gnu.org
Subject: question about org-latex-regexps
Date: Mon, 27 Feb 2012 12:32:48 -0500	[thread overview]
Message-ID: <00c101ccf575$d3c20b70$7b462250$@cfraizer.com> (raw)

The variable org-latex-regexps has an element

    ("$" "\\([^$]\\|^\\)\\(\\(\\$\\([^
\r\n,;.$][^$\n\r]*?\\(\n[^$\n\r]*?\\)\\{0,2\\}[^
\r\n,.$]\\)\\$\\)\\)\\([- 	.,?;:'\")\000]\\|$\\)" 2 nil)

The 6th nested subexpression (starts with "\\([-") prevents conversion of
some latex math-mode stuff.

Is there a reason for that subexpression to be so restrictive? Because I
mostly write UTF-8 org-mode documents, I often have "$<some math>$" followed
immediately by an EN DASH or EM DASH (U+2013 or U+2014). Is there a reason
why those characters could not be inserted in that character class?

That is, could I change that subexpression to be "\\([---
.,?;:'\")\000]\\|$\\)" ?

[I've tried it with a couple of files and didn't notice any problems.

Thanks,
--Colin

             reply	other threads:[~2012-02-27 17:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 17:32 Colin Fraizer [this message]
2012-02-28 23:22 ` question about org-latex-regexps Colin Fraizer
2012-02-28 23:49   ` Bastien
2012-02-29  2:35   ` Bernt Hansen

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00c101ccf575$d3c20b70$7b462250$@cfraizer.com' \
    --to=orgmode@cfraizer.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).