From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWFydGluIFNjaMO2w7Zu?= Subject: Re: Using KOMA and Memoir? Date: Fri, 9 May 2014 21:33:06 +0200 Message-ID: References: <87ppjqhwcd.fsf@ucl.ac.uk> <871tw571zk.fsf@alphaville.bos.redhat.com> <20140507222914.GB2785@chitra.no-ip.org> <20140508125830.GE2711@chitra.no-ip.org> <87zjircpbc.fsf@ucl.ac.uk> <20140509105837.GA2634@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2be64b3aa8804f8fcaaeb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiqXc-00070r-2R for emacs-orgmode@gnu.org; Fri, 09 May 2014 15:33:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiqXa-0007fn-QY for emacs-orgmode@gnu.org; Fri, 09 May 2014 15:33:08 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:45947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiqXa-0007fb-KM for emacs-orgmode@gnu.org; Fri, 09 May 2014 15:33:06 -0400 Received: by mail-qg0-f49.google.com with SMTP id a108so4933650qge.22 for ; Fri, 09 May 2014 12:33:06 -0700 (PDT) In-Reply-To: <20140509105837.GA2634@chitra.no-ip.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: "emacs-orgmode@gnu.org" --001a11c2be64b3aa8804f8fcaaeb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable First of all: sorry for the previous, empty post. I misclicked. Further comments below. On 9 May 2014 12:58, Suvayu Ali wrote: > On Fri, May 09, 2014 at 09:46:15AM +0100, Eric S Fraga wrote: > > On Thursday, 8 May 2014 at 22:17, Martin Sch=C3=B6=C3=B6n wrote: > > > > which is what several of us have been trying to get across! At the ver= y > > least, you need: > > > > ,---- > > | (add-to-list 'load-path ...org lisp directory...) > > | (require 'org) > > | (require 'ox-latex) > > | (add-to-list 'org-latex-classes ...) > > `---- > > > > to do what you want! You are missing the third line. > > > > A minimal initialisation with just those four lines should be enough to > > see if org with KOMA works. > > For your understanding, you can do a simple test. Start emacs without > the add-to-list line. Then evaluate these: > > (featurep 'org) > (featurep 'ox-latex) > > You will get t for the first, nil for the second. > > Now try to find the variable org-latex-classes with C-h v. You will not > be able to find it. Now load ox-latex with either load-library or by > evaluating (require 'ox-latex). Try the above evaluations again, you > will see t for both, and when you try to find the variable with C-h v, > you will succeed. > > AFAIU, the exporter loads enabled backends when you do the first export. > So when you modify a variable that is defined in an unloaded module, of > course this does not work! Hope this makes the problem and the > resolution clearer. > > To get some hints about doing things right, I would point you to my > setup: > Thanks for your patience guys. You have overestimated my elisp-knowledge. Telling me I need to call in ox-latex without telling me how was asking too much of me. I tried to look it up myself and failed. Now, finally, this works as adverticed and Suvayu's explanation of how the exporter loads backends clears some fog. I have even got Memoir to work. --=20 Martin Sch=C3=B6=C3=B6n http://hem.bredband.net/b262106/index.html --001a11c2be64b3aa8804f8fcaaeb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
First of all: sorry for the previous, empty post. I m= isclicked.
Further comments below.


On 9 May 2014 12:58, Suvayu Ali= <fatkasuvayu+linux@gmail.com> wrote:
On Fri, May 09, 2014 at 09:4= 6:15AM +0100, Eric S Fraga wrote:
> On Thursday, =C2=A08 May 2014 at 22:17, Martin Sch=C3=B6=C3=B6n wrote:=
>
> which is what several of us have been trying to = get across! =C2=A0At the very
> least, you need:
>
> ,----
> | (add-to-list 'load-path ...org lisp directory...)
> | (require 'org)
> | (require 'ox-latex)
> | (add-to-list 'org-latex-classes ...)
> `----
>
> to do what you want! =C2=A0You are missing the third line.
>
> A minimal initialisation with just those four lines should be enough t= o
> see if org with KOMA works.

For your understanding, you can do a simple test. =C2=A0Start emacs w= ithout
the add-to-list line. =C2=A0Then evaluate these:

=C2=A0 (featurep 'org)
=C2=A0 (featurep 'ox-latex)

You will get t for the first, nil for the second.

Now try to find the variable org-latex-classes with C-h v. =C2=A0You will n= ot
be able to find it. =C2=A0Now load ox-latex with either load-library or by<= br> evaluating (require 'ox-latex). =C2=A0Try the above evaluations again, = you
will see t for both, and when you try to find the variable with C-h v,
you will succeed.

AFAIU, the exporter loads enabled backends when you do the first export. So when you modify a variable that is defined in an unloaded module, of
course this does not work! =C2=A0Hope this makes the problem and the
resolution clearer.

To get some hints about doing things right, I would point you to my
setup: <https://github.com/suvayu/.emacs.d/blob/mas= ter/org-mode-config.el>

Thanks for your patience guys.
You have overestimated my elisp-knowledge.
Telling me I ne= ed to call in ox-latex without telling me how was asking too much
of me. I tried to look it up myself and failed.
Now, fin= ally, this works as adverticed and Suvayu's explanation of how the expo= rter
loads backends clears some fog.

I have even got Memoir to work.

--
--001a11c2be64b3aa8804f8fcaaeb--