emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Xin Shi <shixin111@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: How to write special LaTeX symbols
Date: Sat, 15 Jan 2011 22:53:28 -0500	[thread overview]
Message-ID: <634.1295150008@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Xin Shi <shixin111@gmail.com> of "Sat\, 15 Jan 2011 22\:01\:11 EST." <AANLkTimO9JoHys-Xj22+vSv-OwEfisOYB_kypG2FgbMr@mail.gmail.com>

Xin Shi <shixin111@gmail.com> wrote:

> 
> Shr\"odinger   will give the o with two dots on top. Notice that the " is a double quotation mark. 
> 
> However, when org translate that into LaTeX, it will become two single quotation mark! \'' (it's very hard to see the difference, but the pdf version will
> see the wrong result).
> 
> Could someone tell me how to do that?
> 

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ödinger
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.

  reply	other threads:[~2011-01-16  3:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-16  3:01 How to write special LaTeX symbols Xin Shi
2011-01-16  3:53 ` Nick Dokos [this message]
2011-01-16  4:05   ` Nick Dokos
2011-01-16 13:54     ` Eric S Fraga
2011-01-17  3:03       ` Xin Shi
2011-01-17  3:55         ` Nick Dokos
2011-01-17  4:05         ` Chris Gray
2011-01-17  8:59           ` Eric S Fraga
2011-01-17 22:33   ` Bastien
2011-01-21  3:01     ` Xin Shi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=634.1295150008@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=shixin111@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).