From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: Re: Embedded LaTeX does not work with Unicode quotes Date: Wed, 12 Nov 2014 20:53:31 +0100 Message-ID: <87k3302o1w.fsf@sophokles.streitblatt.de> References: <877fz1e7s5.fsf@wmi.amu.edu.pl> <87k331j6mr.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XodzG-00082v-M6 for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 14:54:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xodz9-00008j-64 for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 14:53:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:48877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xodz8-00008Z-WD for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 14:53:47 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xodz7-0007Mk-VI for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 20:53:45 +0100 Received: from ip-77-24-185-123.web.vodafone.de ([77.24.185.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2014 20:53:45 +0100 Received: from fb by ip-77-24-185-123.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2014 20:53:45 +0100 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: emacs-orgmode@gnu.org Nick Dokos writes: > "punctuation" in the syntax tables. Look for org-latex-regexps in > org.el The line in question is #+BEGIN_SRC emacs-lisp ("$" "\\([^$]\\|^\\)\\(\\(\\$\\([^ \r\n,;.$][^$\n\r]*?\\(\n[^$\n\r]*?\\)\\{0,2\\}[^ \r\n,.$]\\)\\$\\)\\)\\([- .,?;:'\")\000]\\|$\\)" 2 nil) #+END_SRC It's probably not too hard to see that the culprit is the bunch of punctuation characters towards the end. Indeed if you change .,?;:'\" to .,?;:'\"” -- that solves the OPs problem. However, it might be even better to use a more general syntax, [:punct:], which matches all punctuation (as we want). So: #+BEGIN_SRC emacs-lisp ("$" "\\([^$]\\|^\\)\\(\\(\\$\\([^ \r\n,;.$][^$\n\r]*?\\(\n[^$\n\r]*?\\)\\{0,2\\}[^ \r\n,.$]\\)\\$\\)\\)\\([- [:punct:]\000]\\|$\\)" 2 nil) #+END_SRC -- Florian Beck