[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] A book produced using Org

From: Suvayu Ali
Subject: Re: [O] A book produced using Org
Date: Tue, 22 Sep 2015 00:50:53 +0200
User-agent: Mutt/ (2014-03-12)

On Mon, Sep 21, 2015 at 02:51:13PM -0500, Grant Rettke wrote:
> Where is your Emacs+OrgMode configuration file?
> I want to see what it takes to compile using xelatex; utf8 support
> seems like a great idea.

Until recently, it used be just this:

;; remove "inputenc" from default packages as it clashes with xelatex
(setf org-latex-default-packages-alist
      (remove '("AUTO" "inputenc" t) org-latex-default-packages-alist))

;; replace fontenc, with fontspec
(let ((pos (position '("T1" "fontenc" t) ; T1 -> utf8 for pdflatex
                     :test 'equal)))
  (if pos
      (setf (nth pos org-latex-default-packages-alist)
            '("" "fontspec" t))))

(setq org-latex-pdf-process ; -shell-escape needed for minted
      '("xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
        "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
        "xelatex -shell-escape -interaction nonstopmode -output-directory %o 
      ;; org-latex-pdf-process '("sh -v -x texi2dvi -p -b -c -V %f") ; 
      ;; TODO: maybe use arara, that probably requires export changes

After this patch from Rasmus:


it's as simple as adding a

  #+latex_program: xelatex

Hope this helps,


Open source is the future. It sets us free.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]