* question about org-latex-regexps
@ 2012-02-27 17:32 Colin Fraizer
2012-02-28 23:22 ` Colin Fraizer
0 siblings, 1 reply; 4+ messages in thread
From: Colin Fraizer @ 2012-02-27 17:32 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about org-latex-regexps
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
0 siblings, 2 replies; 4+ messages in thread
From: Colin Fraizer @ 2012-02-28 23:22 UTC (permalink / raw)
To: Colin Fraizer; +Cc: <emacs-orgmode@gnu.org>
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" <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
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about org-latex-regexps
2012-02-28 23:22 ` Colin Fraizer
@ 2012-02-28 23:49 ` Bastien
2012-02-29 2:35 ` Bernt Hansen
1 sibling, 0 replies; 4+ messages in thread
From: Bastien @ 2012-02-28 23:49 UTC (permalink / raw)
To: Colin Fraizer; +Cc: <emacs-orgmode@gnu.org>
Hi Colin,
Colin Fraizer <orgmode@cfraizer.com> writes:
> Wow, I think I'm an org pariah. Did my email violate some org cultural
> norm? :-)
Mhh.. maybe you're an "Org God", and thanks to Org your todo list is
already empty ;) Which might not be the case of people who may reply
to your email in depth. It's just one day old, be patient!
(I'll myself look into this during this week, but feedback from others
is of course welcome.)
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about org-latex-regexps
2012-02-28 23:22 ` Colin Fraizer
2012-02-28 23:49 ` Bastien
@ 2012-02-29 2:35 ` Bernt Hansen
1 sibling, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2012-02-29 2:35 UTC (permalink / raw)
To: Colin Fraizer
Cc: Nicolas Goaziou, <emacs-orgmode@gnu.org>, carsten.dominik
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
Regards,
Bernt
>
> 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
>>
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-29 8:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.