emacs-orgmode
[Top][All Lists]
Advanced

[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/1.5.23.1 (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
                     org-latex-default-packages-alist
                     :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 
%f")
      ;; org-latex-pdf-process '("sh -v -x texi2dvi -p -b -c -V %f") ; 
historical
      ;; TODO: maybe use arara, that probably requires export changes
      )

After this patch from Rasmus:

  <http://mid.gmane.org/address@hidden>

it's as simple as adding a

  #+latex_program: xelatex

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

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