[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] question about org-latex-regexps
From: |
Colin Fraizer |
Subject: |
Re: [O] question about org-latex-regexps |
Date: |
Tue, 28 Feb 2012 18:22:42 -0500 |
Wow, I think I'm an org pariah. Did my email violate some org cultural norm? :-)
If so, I apologize.
Anyone have strong feelings about whether a change like this is advisable?
On Feb 27, 2012, at 12:32 PM, "Colin Fraizer" <address@hidden> 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
>
>