From: Nick Dokos <nicholas.dokos@hp.com>
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 16:24:00 -0500 [thread overview]
Message-ID: <8880.1357161840@alphaville> (raw)
In-Reply-To: Message from Tyler Smith <tyler.smith@mail.mcgill.ca> of "Wed, 02 Jan 2013 15:28:22 EST." <CADkt+Zt8=R9uNyh+SGfDP9+cXp+-zz+J0kKNULH7_tBrrnyDdw@mail.gmail.com>
Tyler Smith <tyler.smith@mail.mcgill.ca> 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
next prev parent reply other threads:[~2013-01-02 21:24 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
2013-01-02 21:22 ` Doug Lewan
2013-01-02 21:24 ` Nick Dokos [this message]
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=8880.1357161840@alphaville \
--to=nicholas.dokos@hp.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).