From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: problems with latex custom classes in new exporter Date: Sat, 11 May 2013 21:58:52 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec54307f4ede12704dc7bbd45 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbLYt-0003yn-4T for emacs-orgmode@gnu.org; Sat, 11 May 2013 21:58:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbLYr-0005RH-VR for emacs-orgmode@gnu.org; Sat, 11 May 2013 21:58:55 -0400 Received: from mail-da0-x233.google.com ([2607:f8b0:400e:c00::233]:61447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbLYr-0005R7-OD for emacs-orgmode@gnu.org; Sat, 11 May 2013 21:58:53 -0400 Received: by mail-da0-f51.google.com with SMTP id h15so776617dan.10 for ; Sat, 11 May 2013 18:58:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode --bcaec54307f4ede12704dc7bbd45 Content-Type: text/plain; charset=ISO-8859-1 OK, I took the plunge and upgraded to org-8.0 and tried the new exporter. The HTML export works fine! However, I'm having trouble exporting to PDF via LaTeX. I use a LaTeX custom class which I hired someone to create for me, which I load as a preference file latex.el: http://pastebin.com/SW0Xqe2h (the custom class is called ilija). It worked perfectly up to org 7.9.4. But now my PDF documents are coming out all garbled: http://i.imgur.com/hys33MS.png Here's the Org PDF LaTeX Output: http://pastebin.com/rQmkzBYa I don't really know how to interpret all those errors, except that I do notice this: Package hyperref Error: Wrong driver option `xetex', (hyperref) because XeTeX is not detected. Again, it was working before I upgraded to 8.0.2, and it still works perfectly when I load org-7.9.4 instead of org-8.0.2. Reference: OSX 10.8.3, Aquamacs 2.4 / Emacs 23.3.50.1 / org-8.0.2. Any ideas? Thanks in advance! Best, Peter --bcaec54307f4ede12704dc7bbd45 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
OK, I took the plunge and upgraded to org-8.0 and tried th= e new exporter.=A0

The HTML export works fine! How= ever, I'm having trouble exporting to PDF via LaTeX.=A0

I use a LaTeX custom class which I hired someone to create= for me, which I load as a preference file latex.el:=A0http://pastebin.com/SW0Xqe2h=A0
(t= he custom class is called ilija).

It worked perfectly up to org 7.9.4.
<= div style>
But now my PDF documents are coming out= all garbled:=A0http://i.imgur.c= om/hys33MS.png

Here's the Org PDF LaTeX Output: =A0

I don't really kn= ow how to interpret all those errors, except that I do notice this:=A0

Package hyperref Error: Wrong driver o= ption `xetex',
(hyperref) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0beca= use XeTeX is not detected.
=A0
Again, it was work= ing before I upgraded to 8.0.2, and it still works perfectly when I load or= g-7.9.4 instead of org-8.0.2.=A0

Reference: OSX 10.8.3, Aquamacs 2.4 / Emacs= 23.3.50.1 / org-8.0.2.

Any ideas? Tha= nks in advance!=A0

Best,
Peter
--bcaec54307f4ede12704dc7bbd45-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: problems with latex custom classes in new exporter Date: Sat, 11 May 2013 22:37:23 -0400 Message-ID: <87vc6oc49o.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbMAR-0008Eg-2K for emacs-orgmode@gnu.org; Sat, 11 May 2013 22:37:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbMAP-0007bm-Qn for emacs-orgmode@gnu.org; Sat, 11 May 2013 22:37:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:54594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbMAP-0007bi-K3 for emacs-orgmode@gnu.org; Sat, 11 May 2013 22:37:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UbMAM-0001tB-9B for emacs-orgmode@gnu.org; Sun, 12 May 2013 04:37:38 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 May 2013 04:37:38 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 May 2013 04:37:38 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Peter Salazar writes: > I use a LaTeX custom class which I hired someone to create for me, > which I load as a preference file > latex.el: http://pastebin.com/SW0Xqe2h  (the custom class is called > ilija). > > It worked perfectly up to org 7.9.4. > > But now my PDF documents are coming out all > garbled: http://i.imgur.com/hys33MS.png > > Here's the Org PDF LaTeX Output:   > http://pastebin.com/rQmkzBYa > > I don't really know how to interpret all those errors, except that I > do notice this:  > > Package hyperref Error: Wrong driver option `xetex', > (hyperref)                because XeTeX is not detected. > > Again, it was working before I upgraded to 8.0.2, and it still works > perfectly when I load org-7.9.4 instead of org-8.0.2.  > > Reference: OSX 10.8.3, Aquamacs 2.4 / Emacs 23.3.50.1 / org-8.0.2. > The old org-latex-to-pdf-process variable (which you are initializing in your latex.el file) has been renamed to org-latex-pdf-process. I presume that you are not touching the latter, so it's left at default, so the exporter ends up invoking pdflatex instead of xelatex. You probably want to duplicate the setting in latex.el so that it will continue working in both 8.0 and 7.9.4, rather than eliminating the old one: --8<---------------cut here---------------start------------->8--- (setq org-latex-to-pdf-process '("xelatex -interaction nonstopmode %f" "xelatex -interaction nonstopmode %f")) ;; for multiple passes (setq org-latex-pdf-process '("xelatex -interaction nonstopmode %f" "xelatex -interaction nonstopmode %f")) ;; for multiple passes --8<---------------cut here---------------end--------------->8--- or just: --8<---------------cut here---------------start------------->8--- (setq org-latex-pdf-process org-latex-to-pdf-process) --8<---------------cut here---------------end--------------->8--- (Untested). -- Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: problems with latex custom classes in new exporter Date: Sun, 12 May 2013 02:55:28 -0400 Message-ID: References: <87vc6oc49o.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e09dfa3bd8a04dc7fe2ce Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbQBv-0004qX-1y for emacs-orgmode@gnu.org; Sun, 12 May 2013 02:55:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbQBt-0001zz-Jq for emacs-orgmode@gnu.org; Sun, 12 May 2013 02:55:30 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:49421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbQBt-0001zv-9v for emacs-orgmode@gnu.org; Sun, 12 May 2013 02:55:29 -0400 Received: by mail-pd0-f176.google.com with SMTP id x10so3677278pdj.35 for ; Sat, 11 May 2013 23:55:28 -0700 (PDT) In-Reply-To: <87vc6oc49o.fsf@pierrot.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: org-mode --047d7b2e09dfa3bd8a04dc7fe2ce Content-Type: text/plain; charset=ISO-8859-1 Brilliant. That worked perfectly. Thank you! On Sat, May 11, 2013 at 10:37 PM, Nick Dokos wrote: > Peter Salazar writes: > > > I use a LaTeX custom class which I hired someone to create for me, > > which I load as a preference file > > latex.el: http://pastebin.com/SW0Xqe2h (the custom class is called > > ilija). > > > > It worked perfectly up to org 7.9.4. > > > > But now my PDF documents are coming out all > > garbled: http://i.imgur.com/hys33MS.png > > > > Here's the Org PDF LaTeX Output: > > http://pastebin.com/rQmkzBYa > > > > I don't really know how to interpret all those errors, except that I > > do notice this: > > > > Package hyperref Error: Wrong driver option `xetex', > > (hyperref) because XeTeX is not detected. > > > > Again, it was working before I upgraded to 8.0.2, and it still works > > perfectly when I load org-7.9.4 instead of org-8.0.2. > > > > Reference: OSX 10.8.3, Aquamacs 2.4 / Emacs 23.3.50.1 / org-8.0.2. > > > > The old org-latex-to-pdf-process variable (which you are initializing > in your latex.el file) has been renamed to org-latex-pdf-process. I > presume that you are not touching the latter, so it's left at default, > so the exporter ends up invoking pdflatex instead of xelatex. > > You probably want to duplicate the setting in latex.el so that it will > continue working in both 8.0 and 7.9.4, rather than eliminating the old > one: > > --8<---------------cut here---------------start------------->8--- > (setq org-latex-to-pdf-process > '("xelatex -interaction nonstopmode %f" > "xelatex -interaction nonstopmode %f")) ;; for multiple passes > > (setq org-latex-pdf-process > '("xelatex -interaction nonstopmode %f" > "xelatex -interaction nonstopmode %f")) ;; for multiple passes > --8<---------------cut here---------------end--------------->8--- > > or just: > > --8<---------------cut here---------------start------------->8--- > (setq org-latex-pdf-process org-latex-to-pdf-process) > --8<---------------cut here---------------end--------------->8--- > > (Untested). > -- > Nick > > > --047d7b2e09dfa3bd8a04dc7fe2ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Brilliant. That worked perfectly. Thank you!=A0


On Sat, May 11, 20= 13 at 10:37 PM, Nick Dokos <ndokos@gmail.com> wrote:
Peter Salazar <cycleofsong@gmail.com> writes:

> I use a LaTeX custom class which I hired someone to create for me,
> which I load as a preference file
> latex.el:=A0http://pastebin.com/SW0Xqe2h=A0 (the custom class is called
> ilija).
>
> It worked perfectly up to org 7.9.4.
>
> But now my PDF documents are coming out all
> garbled:=A0http://i.imgur.com/hys33MS.png
>
> Here's the Org PDF LaTeX Output: =A0
> http://past= ebin.com/rQmkzBYa
>
> I don't really know how to interpret all those errors, except that= I
> do notice this:=A0
>
> Package hyperref Error: Wrong driver option `xetex',
> (hyperref) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0because XeTeX is not detecte= d.
>
> Again, it was working before I upgraded to 8.0.2, and it still works > perfectly when I load org-7.9.4 instead of org-8.0.2.=A0
>
> Reference: OSX 10.8.3, Aquamacs 2.4 / Emacs 23.3.50.1 / org-8.0.2.
>

The old org-latex-to-pdf-process variable (which you are initializing=
in your latex.el file) has been renamed to org-latex-pdf-process. I
presume that you are not touching the latter, so it's left at default,<= br> so the exporter ends up invoking pdflatex instead of xelatex.

You probably want to duplicate the setting in latex.el so that it will
continue working in both 8.0 and 7.9.4, rather than eliminating the old
one:

--8<---------------cut here---------------start------------->8---
(setq org-latex-to-pdf-process
=A0 '("xelatex -interaction nonstopmode %f"
=A0 =A0 =A0"xelatex -interaction nonstopmode %f")) ;; for multipl= e passes

(setq org-latex-pdf-process
=A0 '("xelatex -interaction nonstopmode %f"
=A0 =A0 =A0"xelatex -interaction nonstopmode %f")) ;; for multipl= e passes
--8<---------------cut here---------------end--------------->8---

or just:

--8<---------------cut here---------------start------------->8---
(setq org-latex-pdf-process org-latex-to-pdf-process)
--8<---------------cut here---------------end--------------->8---

(Untested).
--
Nick



--047d7b2e09dfa3bd8a04dc7fe2ce--