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 20:59:23 +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=001a1135ef48268cd804f8fc3266 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wiq0z-0005OF-U4 for emacs-orgmode@gnu.org; Fri, 09 May 2014 14:59:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wiq0y-00045l-KL for emacs-orgmode@gnu.org; Fri, 09 May 2014 14:59:25 -0400 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:59950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wiq0y-00045h-Dm for emacs-orgmode@gnu.org; Fri, 09 May 2014 14:59:24 -0400 Received: by mail-qg0-f43.google.com with SMTP id 63so4892982qgz.2 for ; Fri, 09 May 2014 11:59:23 -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" --001a1135ef48268cd804f8fc3266 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: > > Hope this helps, > > -- > Suvayu > > Open source is the future. It sets us free. > --=20 Martin Sch=C3=B6=C3=B6n http://hem.bredband.net/b262106/index.html --001a1135ef48268cd804f8fc3266 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



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>

Hope this helps,

--
Suvayu

Open source is the future. It sets us free.



--
--001a1135ef48268cd804f8fc3266--