From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to write special LaTeX symbols Date: Sat, 15 Jan 2011 22:53:28 -0500 Message-ID: <634.1295150008@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=36843 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeJgW-0002T1-EF for emacs-orgmode@gnu.org; Sat, 15 Jan 2011 22:53:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeJgV-0008FC-7Z for emacs-orgmode@gnu.org; Sat, 15 Jan 2011 22:53:44 -0500 Received: from vms173011pub.verizon.net ([206.46.173.11]:42188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeJgV-0008Ec-4A for emacs-orgmode@gnu.org; Sat, 15 Jan 2011 22:53:43 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LF300BWVK542O01@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 15 Jan 2011 21:53:29 -0600 (CST) In-reply-to: Message from Xin Shi of "Sat\, 15 Jan 2011 22\:01\:11 EST." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xin Shi Cc: nicholas.dokos@hp.com, emacs-orgmode Xin Shi wrote: >=20 > Shr\"odinger =C2=A0 will give the o with two dots on top. Notice that the= " is a double quotation mark.=C2=A0 >=20 > However, when org translate that into LaTeX, it will become two single qu= otation mark! \'' (it's very hard to see the difference, but the pdf versio= n will > see the wrong result). >=20 > Could someone tell me how to do that? >=20 It works correctly in headlines, but not in running text. I think [fn:1] that it is a bug and that the following patch fixes it: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 4085d6e..a2ff517 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -2417,6 +2417,7 @@ The conversion is made depending of STRING-BEFORE and= STRING-AFTER." "\\Styles" "\\\\" "\\`" + "\\\"" "\\addcontentsline" "\\address" "\\addtocontents" --8<---------------cut here---------------end--------------->8--- but I have not tested it extensively and it may do more harm than good: I'd wait for a more definitive opinion. Alternatively, you can use UTF-8 in your org file and write Schr=C3=B6dinger explicitly. This will survive the LaTeX export intact and the \usepackage[utf8]{inputenc} in the LaTeX file will do the right thing with it.[fn:2] Nick Footnotes: [fn:1] but I'm really not sure: I've lost track of how things work in LaTeX export - sigh... [fn:2] I'm not sure whether it will survive the email trip though. Here's hoping that it will.