[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] accented letters in pdf export
From: |
Thomas S. Dye |
Subject: |
Re: [O] accented letters in pdf export |
Date: |
Wed, 02 Jan 2013 11:13:14 -1000 |
Tyler Smith <address@hidden> writes:
> Hi,
>
> I'm using org 7.9.2, with the new exporter dispatcher from org-export. When
> I try to include accented letters, such as \'e, they don't work. When I
> export to pdf using C-c C-e p, the resulting tex file shows $\backslash$'e
> where I had \'e in the org file. Other macros, like \alpha, work fine.
>
> How do I include accented letters in my pdflatex exports?
Please see the variable org-entities (C-h v org-entities). You'll want
something like \eacute instead of \'e, etc.
There is also org-entities-user for additions to the entity lookup
table. I have this:
(setq org-entities-user nil)
(add-to-list 'org-entities-user '("space" "\\ " nil " " " " " " "–"))
(add-to-list 'org-entities-user '("amacron" "\\={a}" nil "ā" "a" "a"
"ā"))
(add-to-list 'org-entities-user '("emacron" "\\={e}" nil "ē" "e" "e"
"ē"))
(add-to-list 'org-entities-user '("imacron" "\\={i}" nil "ī" "i" "i"
"ī"))
(add-to-list 'org-entities-user '("omacron" "\\={o}" nil "ō" "o" "o"
"ō"))
(add-to-list 'org-entities-user '("umacron" "\\={u}" nil "ū" "u" "u"
"ū"))
(add-to-list 'org-entities-user '("Amacron" "\\={A}" nil "Ā" "A" "A"
"Ā"))
(add-to-list 'org-entities-user '("Emacron" "\\={E}" nil "Ē" "E" "E"
"Ē"))
(add-to-list 'org-entities-user '("Imacron" "\\={I}" nil "Ī" "I" "I"
"Ī"))
(add-to-list 'org-entities-user '("Omacron" "\\={O}" nil "Ō" "O" "O"
"Ō"))
(add-to-list 'org-entities-user '("Umacron" "\\={U}" nil "Ū" "U" "U"
"Ū"))
(define-key org-mode-map (kbd "C-c e") 'org-export-dispatch)
Also, note that C-c C-e p is typically bound to the old exporter, so you
might be using the old exporter, rather than the new one. The
(define-key ...) above calls the new exporter with C-c e.
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com