all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* XeLaTeX and the new exporter
@ 2013-05-07 15:42 Christopher Witte
  2013-05-14 10:04 ` Søren Mikkelsen
  2013-05-22 17:07 ` Suvayu Ali
  0 siblings, 2 replies; 7+ messages in thread
From: Christopher Witte @ 2013-05-07 15:42 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

Hi all,

I had export working using XeLaTeX using the instructions from the
FAQ<http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export>(with
some slight modifications), but after upgrading to the new export it
isn't working.  It appears the hook
org-export-latex-after-initial-vars-hook isn't defined anymore.

Any advice on what I need to change to get it to work?

Thanks
Chris.

[-- Attachment #2: Type: text/html, Size: 500 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XeLaTeX and the new exporter
  2013-05-07 15:42 XeLaTeX and the new exporter Christopher Witte
@ 2013-05-14 10:04 ` Søren Mikkelsen
  2013-05-22 16:35   ` Christopher Witte
  2013-05-22 17:07 ` Suvayu Ali
  1 sibling, 1 reply; 7+ messages in thread
From: Søren Mikkelsen @ 2013-05-14 10:04 UTC (permalink / raw)
  To: emacs-orgmode

Hi Chris

I asked the question a couple of weeks ago. Take a look at the hook:

org-export-before-parsing-hook

It worked for me.

Best regards
Søren

On 2013-05-07 17:42, Christopher Witte wrote:
> Hi all,
>
> I had export working using XeLaTeX using the instructions from the FAQ
> <http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export>
> (with some slight modifications), but after upgrading to the new export
> it isn't working.  It appears the hook
> org-export-latex-after-initial-vars-hook isn't defined anymore.
>
> Any advice on what I need to change to get it to work?
>
> Thanks
> Chris.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XeLaTeX and the new exporter
  2013-05-14 10:04 ` Søren Mikkelsen
@ 2013-05-22 16:35   ` Christopher Witte
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher Witte @ 2013-05-22 16:35 UTC (permalink / raw)
  To: Søren Mikkelsen; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

Thanks, that fixed it.


On 14 May 2013 12:04, Søren Mikkelsen <soren@aamikkelsen.dk> wrote:

> Hi Chris
>
> I asked the question a couple of weeks ago. Take a look at the hook:
>
> org-export-before-parsing-hook
>
> It worked for me.
>
> Best regards
> Søren
>
>
> On 2013-05-07 17:42, Christopher Witte wrote:
>
>> Hi all,
>>
>> I had export working using XeLaTeX using the instructions from the FAQ
>> <http://orgmode.org/worg/org-**faq.html#using-xelatex-for-**pdf-export<http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export>
>> >
>>
>> (with some slight modifications), but after upgrading to the new export
>> it isn't working.  It appears the hook
>> org-export-latex-after-**initial-vars-hook isn't defined anymore.
>>
>> Any advice on what I need to change to get it to work?
>>
>> Thanks
>> Chris.
>>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1437 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XeLaTeX and the new exporter
  2013-05-07 15:42 XeLaTeX and the new exporter Christopher Witte
  2013-05-14 10:04 ` Søren Mikkelsen
@ 2013-05-22 17:07 ` Suvayu Ali
  2013-05-31  7:58   ` Christopher Witte
  1 sibling, 1 reply; 7+ messages in thread
From: Suvayu Ali @ 2013-05-22 17:07 UTC (permalink / raw)
  To: emacs-orgmode

Hi Christopher,

On Tue, May 07, 2013 at 05:42:04PM +0200, Christopher Witte wrote:
> 
> I had export working using XeLaTeX using the instructions from the
> FAQ<http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export>(with
> some slight modifications), but after upgrading to the new export it
> isn't working.  It appears the hook
> org-export-latex-after-initial-vars-hook isn't defined anymore.
> 
> Any advice on what I need to change to get it to work?

I have noticed discussions on this before and I fail to understand the
need for all the setup mentioned in the above Worg entry.  I use XeLaTeX
almost exclusively, and all I have is something like this:

  ;;; XeLaTeX customisations
  ;; 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))

  (add-to-list 'org-latex-packages-alist '("" "xltxtra" t))
  ;; choose Linux Libertine O as serif and Linux Biolinum O as sans-serif fonts
  (add-to-list 'org-latex-packages-alist '("" "libertineotf" t))

  ;; org to latex customisations, -shell-escape needed for minted
  (setq org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch
        org-latex-pdf-process		    ; for regular export
        '("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"))

For beamer export I add this line:

  #+LaTeX_HEADER: \setsansfont{Linux Biolinum O}

So far I have not encountered any problems.  Although I have to say, I
do not use unicode in mathmode.

I am curious to know why others need all this elaborate setup to use
XeLaTeX.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XeLaTeX and the new exporter
  2013-05-22 17:07 ` Suvayu Ali
@ 2013-05-31  7:58   ` Christopher Witte
  2013-06-01  6:43     ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Christopher Witte @ 2013-05-31  7:58 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 2531 bytes --]

Sorry for the late reply.

I'm not entirely sure either, I pretty much just blindly followed the
instructions on the FAQ.  I don't think this is at all the minimum you need
to get xelatex working, it also sets up a few other things.  For instance
it used latexmk instead of just recompiling a few times.  Perhaps the FAQ
should be split up into a few different questions:
1. minimum setup for XeLaTeX, something similar to your setup
2. how to use latexmk

Cheers,
Chris



On 22 May 2013 19:07, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:

> Hi Christopher,
>
> On Tue, May 07, 2013 at 05:42:04PM +0200, Christopher Witte wrote:
> >
> > I had export working using XeLaTeX using the instructions from the
> > FAQ<http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export
> >(with
> > some slight modifications), but after upgrading to the new export it
> > isn't working.  It appears the hook
> > org-export-latex-after-initial-vars-hook isn't defined anymore.
> >
> > Any advice on what I need to change to get it to work?
>
> I have noticed discussions on this before and I fail to understand the
> need for all the setup mentioned in the above Worg entry.  I use XeLaTeX
> almost exclusively, and all I have is something like this:
>
>   ;;; XeLaTeX customisations
>   ;; 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))
>
>   (add-to-list 'org-latex-packages-alist '("" "xltxtra" t))
>   ;; choose Linux Libertine O as serif and Linux Biolinum O as sans-serif
> fonts
>   (add-to-list 'org-latex-packages-alist '("" "libertineotf" t))
>
>   ;; org to latex customisations, -shell-escape needed for minted
>   (setq org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch
>         org-latex-pdf-process               ; for regular export
>         '("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"))
>
> For beamer export I add this line:
>
>   #+LaTeX_HEADER: \setsansfont{Linux Biolinum O}
>
> So far I have not encountered any problems.  Although I have to say, I
> do not use unicode in mathmode.
>
> I am curious to know why others need all this elaborate setup to use
> XeLaTeX.
>
> Cheers,
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
>

[-- Attachment #2: Type: text/html, Size: 3472 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XeLaTeX and the new exporter
  2013-05-31  7:58   ` Christopher Witte
@ 2013-06-01  6:43     ` Carsten Dominik
  2013-06-03 10:47       ` Christopher Witte
  0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2013-06-01  6:43 UTC (permalink / raw)
  To: Christopher Witte; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 2764 bytes --]

Hi Christopher,

Would you like to provide a patch?

- Carsten

On 31.5.2013, at 09:58, Christopher Witte <chris@witte.net.au> wrote:

> Sorry for the late reply.
> 
> I'm not entirely sure either, I pretty much just blindly followed the instructions on the FAQ.  I don't think this is at all the minimum you need to get xelatex working, it also sets up a few other things.  For instance it used latexmk instead of just recompiling a few times.  Perhaps the FAQ should be split up into a few different questions:
> 1. minimum setup for XeLaTeX, something similar to your setup
> 2. how to use latexmk
> 
> Cheers,
> Chris
> 
> 
> 
> On 22 May 2013 19:07, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> Hi Christopher,
> 
> On Tue, May 07, 2013 at 05:42:04PM +0200, Christopher Witte wrote:
> >
> > I had export working using XeLaTeX using the instructions from the
> > FAQ<http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export>(with
> > some slight modifications), but after upgrading to the new export it
> > isn't working.  It appears the hook
> > org-export-latex-after-initial-vars-hook isn't defined anymore.
> >
> > Any advice on what I need to change to get it to work?
> 
> I have noticed discussions on this before and I fail to understand the
> need for all the setup mentioned in the above Worg entry.  I use XeLaTeX
> almost exclusively, and all I have is something like this:
> 
>   ;;; XeLaTeX customisations
>   ;; 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))
> 
>   (add-to-list 'org-latex-packages-alist '("" "xltxtra" t))
>   ;; choose Linux Libertine O as serif and Linux Biolinum O as sans-serif fonts
>   (add-to-list 'org-latex-packages-alist '("" "libertineotf" t))
> 
>   ;; org to latex customisations, -shell-escape needed for minted
>   (setq org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch
>         org-latex-pdf-process               ; for regular export
>         '("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"))
> 
> For beamer export I add this line:
> 
>   #+LaTeX_HEADER: \setsansfont{Linux Biolinum O}
> 
> So far I have not encountered any problems.  Although I have to say, I
> do not use unicode in mathmode.
> 
> I am curious to know why others need all this elaborate setup to use
> XeLaTeX.
> 
> Cheers,
> 
> --
> Suvayu
> 
> Open source is the future. It sets us free.
> 
> 


[-- Attachment #2: Type: text/html, Size: 4016 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XeLaTeX and the new exporter
  2013-06-01  6:43     ` Carsten Dominik
@ 2013-06-03 10:47       ` Christopher Witte
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher Witte @ 2013-06-03 10:47 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 2935 bytes --]

Sure, I'll give it a try, but I might not get around to it for a few days.

Cheers,
Chris.


On 1 June 2013 08:43, Carsten Dominik <carsten.dominik@gmail.com> wrote:

> Hi Christopher,
>
> Would you like to provide a patch?
>
> - Carsten
>
> On 31.5.2013, at 09:58, Christopher Witte <chris@witte.net.au> wrote:
>
> Sorry for the late reply.
>
> I'm not entirely sure either, I pretty much just blindly followed the
> instructions on the FAQ.  I don't think this is at all the minimum you need
> to get xelatex working, it also sets up a few other things.  For instance
> it used latexmk instead of just recompiling a few times.  Perhaps the FAQ
> should be split up into a few different questions:
> 1. minimum setup for XeLaTeX, something similar to your setup
> 2. how to use latexmk
>
> Cheers,
> Chris
>
>
>
> On 22 May 2013 19:07, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
>
>> Hi Christopher,
>>
>> On Tue, May 07, 2013 at 05:42:04PM +0200, Christopher Witte wrote:
>> >
>> > I had export working using XeLaTeX using the instructions from the
>> > FAQ<http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export
>> >(with
>> > some slight modifications), but after upgrading to the new export it
>> > isn't working.  It appears the hook
>> > org-export-latex-after-initial-vars-hook isn't defined anymore.
>> >
>> > Any advice on what I need to change to get it to work?
>>
>> I have noticed discussions on this before and I fail to understand the
>> need for all the setup mentioned in the above Worg entry.  I use XeLaTeX
>> almost exclusively, and all I have is something like this:
>>
>>   ;;; XeLaTeX customisations
>>   ;; 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))
>>
>>   (add-to-list 'org-latex-packages-alist '("" "xltxtra" t))
>>   ;; choose Linux Libertine O as serif and Linux Biolinum O as sans-serif
>> fonts
>>   (add-to-list 'org-latex-packages-alist '("" "libertineotf" t))
>>
>>   ;; org to latex customisations, -shell-escape needed for minted
>>   (setq org-export-dispatch-use-expert-ui t ; non-intrusive export
>> dispatch
>>         org-latex-pdf-process               ; for regular export
>>         '("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"))
>>
>> For beamer export I add this line:
>>
>>   #+LaTeX_HEADER: \setsansfont{Linux Biolinum O}
>>
>> So far I have not encountered any problems.  Although I have to say, I
>> do not use unicode in mathmode.
>>
>> I am curious to know why others need all this elaborate setup to use
>> XeLaTeX.
>>
>> Cheers,
>>
>> --
>> Suvayu
>>
>> Open source is the future. It sets us free.
>>
>>
>
>

[-- Attachment #2: Type: text/html, Size: 4352 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-03 10:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 15:42 XeLaTeX and the new exporter Christopher Witte
2013-05-14 10:04 ` Søren Mikkelsen
2013-05-22 16:35   ` Christopher Witte
2013-05-22 17:07 ` Suvayu Ali
2013-05-31  7:58   ` Christopher Witte
2013-06-01  6:43     ` Carsten Dominik
2013-06-03 10:47       ` Christopher Witte

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.