emacs-orgmode
[Top][All Lists]
Advanced

[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 "&#0257" "a" "a" 
"ā"))
  (add-to-list 'org-entities-user '("emacron" "\\={e}" nil "&#0275" "e" "e" 
"ē"))
  (add-to-list 'org-entities-user '("imacron" "\\={i}" nil "&#0299" "i" "i" 
"ī"))
  (add-to-list 'org-entities-user '("omacron" "\\={o}" nil "&#0333" "o" "o" 
"ō"))
  (add-to-list 'org-entities-user '("umacron" "\\={u}" nil "&#0363" "u" "u" 
"ū"))
  (add-to-list 'org-entities-user '("Amacron" "\\={A}" nil "&#0256" "A" "A" 
"Ā"))
  (add-to-list 'org-entities-user '("Emacron" "\\={E}" nil "&#0274" "E" "E" 
"Ē"))
  (add-to-list 'org-entities-user '("Imacron" "\\={I}" nil "&#0298" "I" "I" 
"Ī"))
  (add-to-list 'org-entities-user '("Omacron" "\\={O}" nil "&#0332" "O" "O" 
"Ō"))
  (add-to-list 'org-entities-user '("Umacron" "\\={U}" nil "&#0362" "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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]