From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: exporting α/β to latex/pdf
Date: Tue, 06 May 2014 18:33:20 -0400 [thread overview]
Message-ID: <87eh06fsgf.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: 5367C1C8.2000306@inventati.org
"Clément B." <clement@inventati.org> writes:
>> The *easiest* solution is to just say \alpha and \beta in the org file
>> instead of α and β. But biting the bullet and adopting XeTeX or LuaTeX is
>> probably the *best* way to go (he says without ever having used either...)
>
> For those who stick with pdflatex, you can also use "α" directly in
> the org document, and define
>
> #+latex_header: \usepackage[utf8]{inputenc}
> #+latex_header: \declareunicodecharacter{03b1}{α}
>
> Provided your file is indeed encoded in utf-8 (but why would you use
> any other encoding?)
>
> This simply tells the compiler to bind "α" to the unicode character
> "greek small letter alpha" (U+03B1). If there is a lot of unicode in
> the document, XeTeX/LuaTeX are definitely better choices.
>
>
But that's not quite right: you end up with a circular definition (and
both pdflatex and plain latex think so: they infloop).
One way to fix it using a math alpha:
--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \DeclareUnicodeCharacter{03b1}{\(\alpha\)}
--8<---------------cut here---------------end--------------->8---
Another is to use \textalpha and a package that defines it:
--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \usepackage{textgreek}
#+LATEX_HEADER: \DeclareUnicodeCharacter{03b1}{\textalpha}
--8<---------------cut here---------------end--------------->8---
but then you have to install the package (and possibly some fonts as
well).
Nick
PS. So happy that gmane is back :-)
next prev parent reply other threads:[~2014-05-06 22:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-04 15:13 exporting α/β to latex/pdf Sharon Kimble
2014-05-04 16:03 ` Scott Randby
2014-05-04 19:26 ` Joost Helberg
2014-05-04 21:42 ` Suvayu Ali
2014-05-04 22:14 ` Nick Dokos
2014-05-05 15:06 ` Suvayu Ali
2014-05-05 18:38 ` Grant Rettke
2014-05-05 16:52 ` "Clément B."
2014-05-06 22:33 ` Nick Dokos [this message]
2014-05-07 23:30 ` "Clément B."
2014-05-05 0:08 ` Sharon Kimble
2014-05-06 2:51 ` Rustom Mody
2014-05-06 12:48 ` Suvayu Ali
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eh06fsgf.fsf@alphaville.bos.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.