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: Nick Dokos
Subject: Re: [O] accented letters in pdf export
Date: Wed, 02 Jan 2013 16:24:00 -0500

Tyler Smith <address@hidden> wrote:

> 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?
> 

That looks like a bug in the new exporter (the old exporter handles it
properly).  You can get accented letters by entering the character in
e.g. utf-8 and arranging for tex to do the right thing (which I think
it does by default with unicode in org's latex export).  You can use an
input method to simplify entering such things as well.

Here's a quick intro (there are many other ways to accomplish this):

o Set your language environment to utf-8

  (set-language-environment "UTF-8")

o Open a new org file in an emacs buffer: C-x C-f foo.org RET
  The new file should have a U:--- designation on the mode line.

o Set your default input method to TeX:

  (set-input-method "TeX")

  The mode line should now show \U:---

o Enter some text with accented characters - the TeX input method allows
  you to enter an accented e with \'e or \`e for example, but what ends up
  in the buffer is the accented character itself (in utf-8 encoding).

o Export to latex/pdf. Assuming the tex file  includes

  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}

  then TeX will do the right thing.


For more on the TeX aspects, see the TeX FAQ 
http://www.tex.ac.uk/cgi-bin/texfaq2html
and search for inputenc.

Nick



reply via email to

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