emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Wittern <cwittern@gmail.com>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: trying to get xetex working with org-mode
Date: Fri, 13 Aug 2010 15:59:51 +0900	[thread overview]
Message-ID: <4C64ED67.10700@gmail.com> (raw)

Hi there,

This has come up before, but a search in the archive did not produce enough
information for me to solve the problem.  I want to export to PDF via XeTex
on Mac OS X (Emacs 23.2) and org-mode 7.01g.  After studying the manual and
looking at this message in the archive:

<quote>
(from: http://osdir.com/ml/emacs-orgmode-gnu/2010-04/msg00856.html)
[...]
And you can customize org-export-latex-classes to make the class headers
look like this:

\TeXXeTstate=1
\usepackage{fontspec,xunicode}
\defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex- text}
\setmainfont{Sabon LT Std}
\setromanfont[Mapping=tex-text]{Sabon LT Std}
\setsansfont[Scale=MatchUppercase]{Myriad Pro}
\usepackage{xltxtra}
[DEFAULT-PACKAGES]
[PACKAGES]
[EXTRA]

And you can change things around any way you like.
HTH
- Carsten
</quote>

I started experimenting with customizing org-export-latex-classes.  Here is
what I put into the section for article:

\TeXXeTstate=1
\usepackage{fontspec,xunicode}
\defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}
\setromanfont[Mapping=tex-text]{Hoefler Text}
\newfontfamily{\J}[Scale=0.85]{Osaka}

(I removed the following lines:
[DEFAULT-PACKAGES]
[PACKAGES]
[EXTRA])
Now, what I get with C-c C-e l at the beginning of my tex file is:
<example>
\documentclass[11pt]{article}
\TeXXeTstate=1
\usepackage{fontspec,xunicode}
\defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex- text}
\setromanfont[Mapping=tex-text]{Hoefler Text}
\newfontfamily{\J}[Scale=0.85]{Osaka}
\usepackage{xltxtra}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
</example>
 There are some more lines I did not ask for and do not want, like for
example the \usepackage[utf8]{inputenc} which does not work with XeTeX.
Now the number of possible relevant variables etc is just too complex for me
to understand.  I would appreciate if some kind soul would explain to me how
to trim this down to use only the packages I need.

All the best,

Christian

             reply	other threads:[~2010-08-13  7:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-13  6:59 Christian Wittern [this message]
2010-08-13 12:50 ` trying to get xetex working with org-mode Scot Becker
2010-08-13 13:47   ` Bastien
2010-08-13 15:52     ` Scot Becker
2010-08-13 23:43   ` Christian Wittern
2010-08-14  2:19     ` Thomas S. Dye

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=4C64ED67.10700@gmail.com \
    --to=cwittern@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).