emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: exporting α/β to latex/pdf
Date: Mon, 5 May 2014 17:06:51 +0200	[thread overview]
Message-ID: <20140505150651.GK2300@chitra.no-ip.org> (raw)
In-Reply-To: <87oazdmbsl.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

Hi Nick,

On Sun, May 04, 2014 at 06:14:34PM -0400, Nick Dokos wrote:
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> 
> > On Sun, May 04, 2014 at 04:13:45PM +0100, Sharon Kimble wrote:
> >> I have these two symbols showing in my org-mode buffer with no
> >> problems
> >> ╭────
> >> │ alpha (ER-α) and beta (ER-β)
> >> ╰────
> >> 
> >> but they are not exported to latex/pdf. How then can I do so please?
> >
> > The easiest solution is to use a modern TeX engine like XeTeX or LuaTeX
> > along with a font with the required glyphs.
> 
> 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...)

Well put!

I really recommend using XeTeX for most things.  There are some caveats
though.  Clipping is a bit iffy, sometimes it warns as not supported but
works anyway :-p.  Sometimes it has trouble including slightly
non-standard pdf images whereas pdfTeX works fine.  There are also a few
packages here and there that are still not completely supported.  IIRC,
either one of the TikZ math libraries or a 3rd-party TikZ library (maybe
tikz-3dplot) is incompatible.

That said, I attached a sample pdf with lots of unicode produced with
XeLaTeX and Linux Libertine.  As you can see, some glyphs are missing
from Linux Libertine, but otherwise it looks pretty good!

> >  I personally use XeTeX with
> > Linux libertine fonts.  You can find my setup here:
> >
> > <https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L176>
> >
> 
> That is a nice resource - thanks!

Glad you like it.

:)

-- 
Suvayu

Open source is the future. It sets us free.

[-- Attachment #2: unicode.org --]
[-- Type: text/plain, Size: 536 bytes --]

* Unicode with \XeLaTeX
  :PROPERTIES:
  :EXPORT_FILE_NAME: unicode.pdf
  :EXPORT_OPTIONS: texht:t toc:nil
  :EXPORT_LATEX_CLASS: article
  :EXPORT_LATEX_HEADER: \usepackage{metalogo}
  :END:

- Particle names: π, Λ_{b}, D^{±}, K₁, K₂, K⁺, K⁻, μ⁻, e⁺
- Decays: B_{s} → D_{s}K, B_{s} → D_{s}π, B_{s} → D_{s}^{*}π
- parameters: Γ, ΔΓ, Δm_{s}
- Math symbols: ≃, ≥, ≤, ∃, ∈
- Diacritics and characters from other alphabets: naïve, Genève,
  Åkerman, þingvellir
- Currencies: £, €, ¢, ₹, ¥

[-- Attachment #3: unicode.pdf --]
[-- Type: application/pdf, Size: 13175 bytes --]

  reply	other threads:[~2014-05-05 15:06 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 [this message]
2014-05-05 18:38       ` Grant Rettke
2014-05-05 16:52     ` "Clément B."
2014-05-06 22:33       ` Nick Dokos
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

  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=20140505150651.GK2300@chitra.no-ip.org \
    --to=fatkasuvayu+linux@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 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).