From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: trying to get xetex working with org-mode Date: Fri, 13 Aug 2010 15:59:51 +0900 Message-ID: <4C64ED67.10700@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=44052 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjoFw-0003mL-Hk for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 03:02:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjoFC-0007tm-L5 for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 03:00:00 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:47711) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjoFC-0007ta-Dq for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 02:59:58 -0400 Received: by pxi5 with SMTP id 5so1264968pxi.0 for ; Thu, 12 Aug 2010 23:59:57 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Mailing List 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: (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 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: \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 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