From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Using KOMA and Memoir? Date: Fri, 9 May 2014 12:58:37 +0200 Message-ID: <20140509105837.GA2634@chitra.no-ip.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiiVo-0001SR-9X for emacs-orgmode@gnu.org; Fri, 09 May 2014 06:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiiVl-0007P9-3K for emacs-orgmode@gnu.org; Fri, 09 May 2014 06:58:44 -0400 Received: from mail-ee0-x22e.google.com ([2a00:1450:4013:c00::22e]:52053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiiVk-0007P3-SU for emacs-orgmode@gnu.org; Fri, 09 May 2014 06:58:41 -0400 Received: by mail-ee0-f46.google.com with SMTP id t10so2545024eei.19 for ; Fri, 09 May 2014 03:58:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87zjircpbc.fsf@ucl.ac.uk> 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 Cc: Martin =?iso-8859-1?B?U2No9vZu?= 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: Hope this helps, -- Suvayu Open source is the future. It sets us free.