[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Using KOMA and Memoir?

From: Martin Schöön
Subject: Re: [O] Using KOMA and Memoir?
Date: Fri, 9 May 2014 20:59:23 +0200

On 9 May 2014 12:58, Suvayu Ali <address@hidden> 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öön wrote:
> which is what several of us have been trying to get across!  At 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!  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: <https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el>

Hope this helps,


Open source is the future. It sets us free.

Martin Schöön


reply via email to

[Prev in Thread] Current Thread [Next in Thread]