First of all: sorry for the previous, empty post. I misclicked.
Further comments below.


On 9 May 2014 12:58, Suvayu Ali <fatkasuvayu+li...@gmail.com> 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>
>

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.

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html

Reply via email to