From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Embedded LaTeX does not work with Unicode quotes Date: Tue, 11 Nov 2014 22:45:47 +0100 Message-ID: <877fz1e7s5.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoJGM-0000cb-8a for emacs-orgmode@gnu.org; Tue, 11 Nov 2014 16:46:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoJGG-0005yp-Ic for emacs-orgmode@gnu.org; Tue, 11 Nov 2014 16:46:10 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:47460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoJGG-0005ye-C0 for emacs-orgmode@gnu.org; Tue, 11 Nov 2014 16:46:04 -0500 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id A2A3B42075 for ; Tue, 11 Nov 2014 22:46:00 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DQCas9tekP7G for ; Tue, 11 Nov 2014 22:46:00 +0100 (CET) Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 38C484206A for ; Tue, 11 Nov 2014 22:46:00 +0100 (CET) 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: Org-Mode mailing list Hi list, I have this: =E2=80=9E$n\eps\le b$=E2=80=9D, and it seems not to be recog= nized as a LaTeX fragment. The manual says: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To avoid conflicts with currency specifications, single `$' characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the `$' characters with no whitespace in between, and if the closing `$' is followed by whitespace, punctuation or a dash. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D When I C-u C-x =3D on the closing quote, I get =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D position: 54465 of 108125 (50%), restriction: <52496-56766>,= column: 152 character: =E2=80=9D (displayed as =E2=80=9D) (codepoint 8221= , #o20035, #x201d) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x201D syntax: . which means: punctuation category: .:Base, c:Chinese, h:Korean, j:Japanese to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME" buffer code: #xE2 #x80 #x9D file code: #xE2 #x80 #x9D (encoded by coding system utf-8-uni= x) display: by this font (glyph code) xft:-unknown-Ubuntu Mono-normal-normal-normal-*-17-*-*-*-m-0-iso10646= -1 (#x71) Character code properties: customize what to show name: RIGHT DOUBLE QUOTATION MARK old-name: DOUBLE COMMA QUOTATION MARK general-category: Pf (Punctuation, Final quote) decomposition: (8221) ('=E2=80=9D') There are text properties here: fontified t =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D so I don't know why it is not recognized as punctuation. Consequently, it is exported verbatim (with `\$') into LaTeX, and also (obviously) C-c C-x C-l does not fontify it. When I change =E2=80=9D into " (the ASCII #= x22 quote), everything is ok. My questions: 1. Isn't it a bug? 2. If not, what can I do to in my config so that it is recognized properly? PS. I just recalled that using \(...\) should help, and indeed it does. Still, I'm curious about the answer to my questions (now that I remembered a workaround, especially #1). TIA, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University