emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: A book produced using Org
Date: Tue, 22 Sep 2015 00:50:53 +0200	[thread overview]
Message-ID: <20150921225053.GC6415@chitra.no-ip.org> (raw)
In-Reply-To: <CAAjq1mdx2GN0G8fmBg38GVFVb2or5ypubWb5tYjyneSqGVertA@mail.gmail.com>

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/87wpvu4879.fsf@gmx.us>

it's as simple as adding a

  #+latex_program: xelatex

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2015-09-21 22:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-19 22:26 A book produced using Org Vikas Rawal
2015-09-19 22:38 ` Fabrice Popineau
2015-09-20  0:01 ` Thomas S. Dye
     [not found] ` <CACc7+8Yz5dz2cNKqpCoyOT3Arz8DwzrfYcXAUZ9f1NUMftrZAg@mail.gmail.com>
2015-09-20  1:06   ` Vikas Rawal
2015-09-20  2:40     ` Manuel Koell
2015-09-20  5:09       ` Vikas Rawal
2015-09-20  6:50         ` Rainer M Krug
2015-09-20 12:50           ` Suvayu Ali
2015-09-21 14:39             ` Vikas Rawal
2015-09-20 23:27         ` John Kitchin
2015-09-20  9:02     ` Martin Schöön
2015-09-21 14:32       ` Vikas Rawal
2015-09-21 19:51         ` Grant Rettke
2015-09-21 22:50           ` Suvayu Ali [this message]
2015-09-22 11:23             ` Rasmus
2015-09-21 23:43           ` Vikas Rawal
2015-09-22  0:25             ` Grant Rettke
2015-09-20  7:29 ` Detlef Steuer
2015-09-20 13:13 ` M

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=20150921225053.GC6415@chitra.no-ip.org \
    --to=fatkasuvayu+linux@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).