From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: question about org-latex-regexps Date: Tue, 28 Feb 2012 21:35:19 -0500 Message-ID: <87d38yfjtk.fsf@norang.ca> References: <00c101ccf575$d3c20b70$7b462250$@cfraizer.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2ZO6-0005T7-KI for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 21:35:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2ZO2-00066W-D7 for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 21:35:30 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:62547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2ZO2-00065Z-96 for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 21:35:26 -0500 In-Reply-To: (Colin Fraizer's message of "Tue, 28 Feb 2012 18:22:42 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Colin Fraizer Cc: Nicolas Goaziou , "" , carsten.dominik@gmail.com Colin Fraizer 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" 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 "$$" 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 >> >>