[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] How to write special LaTeX symbols
From: |
Nick Dokos |
Subject: |
Re: [Orgmode] How to write special LaTeX symbols |
Date: |
Sat, 15 Jan 2011 22:53:28 -0500 |
Xin Shi <address@hidden> 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.
- [Orgmode] How to write special LaTeX symbols, Xin Shi, 2011/01/15
- Re: [Orgmode] How to write special LaTeX symbols,
Nick Dokos <=
- Re: [Orgmode] How to write special LaTeX symbols, Nick Dokos, 2011/01/15
- Re: [Orgmode] How to write special LaTeX symbols, Eric S Fraga, 2011/01/16
- Re: [Orgmode] How to write special LaTeX symbols, Xin Shi, 2011/01/16
- Re: [Orgmode] How to write special LaTeX symbols, Nick Dokos, 2011/01/16
- [Orgmode] Re: How to write special LaTeX symbols, Chris Gray, 2011/01/16
- Re: [Orgmode] Re: How to write special LaTeX symbols, Eric S Fraga, 2011/01/17
Re: [Orgmode] How to write special LaTeX symbols, Bastien, 2011/01/17