emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Colin Fraizer <orgmode@cfraizer.com>
Cc: Nicolas Goaziou <n.goaziou@gmail.com>,
	"<emacs-orgmode@gnu.org>" <emacs-orgmode@gnu.org>,
Subject: Re: question about org-latex-regexps
Date: Tue, 28 Feb 2012 21:35:19 -0500	[thread overview]
Message-ID: <87d38yfjtk.fsf@norang.ca> (raw)
In-Reply-To: <CA4DEFC9-A7F3-495E-94D3-AD59561A57FE@cfraizer.com> (Colin Fraizer's message of "Tue, 28 Feb 2012 18:22:42 -0500")

Colin Fraizer <orgmode@cfraizer.com> writes:

> Wow, I think I'm an org pariah. Did my email violate some org cultural
> norm? :-)

Not that I'm aware of :)

> If so, I apologize.
> Anyone have strong feelings about whether a change like this is
> advisable?

This should probably go to Carsten and Nicolas since they touched it
last according to

git blame -L 16840,16870 lisp/org.el


> On Feb 27, 2012, at 12:32 PM, "Colin Fraizer" <orgmode@cfraizer.com> wrote:
>> 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

      parent reply	other threads:[~2012-02-29  2:35 UTC|newest]

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

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:

  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=87d38yfjtk.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --cc=orgmode@cfraizer.com \


* 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


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).