emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Tyler Smith <tyler.smith@mail.mcgill.ca>
Cc: Emacs-orgmode@gnu.org
Subject: Re: accented letters in pdf export
Date: Wed, 02 Jan 2013 11:13:14 -1000	[thread overview]
Message-ID: <m1sj6j8f11.fsf@tsdye.com> (raw)
In-Reply-To: <CADkt+Zt8=R9uNyh+SGfDP9+cXp+-zz+J0kKNULH7_tBrrnyDdw@mail.gmail.com> (Tyler Smith's message of "Wed, 2 Jan 2013 15:28:22 -0500")

Tyler Smith <tyler.smith@mail.mcgill.ca> 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	other threads:[~2013-01-02 21:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02 20:28 accented letters in pdf export Tyler Smith
2013-01-02 21:13 ` Thomas S. Dye [this message]
2013-01-02 21:22 ` Doug Lewan
2013-01-02 21:24 ` Nick Dokos
2013-01-02 21:44   ` Nick Dokos

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=m1sj6j8f11.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=tyler.smith@mail.mcgill.ca \
    /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).