[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.
- Re: [O] A book produced using Org, (continued)
- Message not available
- Re: [O] A book produced using Org, Vikas Rawal, 2015/09/19
- Re: [O] A book produced using Org, Manuel Koell, 2015/09/19
- Re: [O] A book produced using Org, Vikas Rawal, 2015/09/20
- Re: [O] A book produced using Org, Rainer M Krug, 2015/09/20
- Re: [O] A book produced using Org, Suvayu Ali, 2015/09/20
- Re: [O] A book produced using Org, Vikas Rawal, 2015/09/21
- Re: [O] A book produced using Org, John Kitchin, 2015/09/20
- Re: [O] A book produced using Org, Martin Schöön, 2015/09/20
- Re: [O] A book produced using Org, Vikas Rawal, 2015/09/21
- Re: [O] A book produced using Org, Grant Rettke, 2015/09/21
- Re: [O] A book produced using Org,
Suvayu Ali <=
- Re: [O] A book produced using Org, Rasmus, 2015/09/22
- Re: [O] A book produced using Org, Vikas Rawal, 2015/09/21
- Re: [O] A book produced using Org, Grant Rettke, 2015/09/21
Re: [O] A book produced using Org, Detlef Steuer, 2015/09/20
Re: [O] A book produced using Org, M, 2015/09/20