From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: [New exporter] Wrong export to LaTeX Date: Fri, 12 Oct 2012 12:24:34 +0200 Message-ID: <20121012102434.GA24769@kuru.dyndns-at-home.com> References: <80txu1ma6t.fsf@somewhere.org> <87bog9401p.fsf@gmail.com> <20121011165232.GB15182@kuru.dyndns-at-home.com> <877gqw51z9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMcQO-0000v9-1G for emacs-orgmode@gnu.org; Fri, 12 Oct 2012 06:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMcQ3-0006pA-Kh for emacs-orgmode@gnu.org; Fri, 12 Oct 2012 06:24:59 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:59284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMcQ3-0006og-Bb for emacs-orgmode@gnu.org; Fri, 12 Oct 2012 06:24:39 -0400 Received: by mail-wi0-f171.google.com with SMTP id hj13so133249wib.12 for ; Fri, 12 Oct 2012 03:24:38 -0700 (PDT) Content-Disposition: inline In-Reply-To: <877gqw51z9.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi Nicolas, Let me clarify to see if I understood things correctly. On Thu, Oct 11, 2012 at 07:54:02PM +0200, Nicolas Goaziou wrote: > > > However when I try to export to beamer (Seb's ECM) without the > > > > (add-to-list 'org-e-latex-classes '("beamer" ...)) > > With a minimal setup, the ECM won't export because the file explicitly > asks for a "beamer" class, which isn't defined. > > In other words, you can use Beamer back-end on any class, as long as > this class is defined in `org-e-latex-classes'. It doesn't have to be > named "beamer". > Okay, I do follow this. However, doesn't LaTeX_CLASS determine what goes into the \documentclass{class name} directive? If so, does having \begin{frames}..\end{frames} in the exported tex make sense if the documentclass directive says, for example, article? What I'm getting at is, without the LaTeX_CLASS set to beamer, the crucial \documentclass{beamer} directive is missing and the exported LaTeX document won't be compilable[1]. Given the preceding comments are correct, I would then say having a "beamer" class already defined in org-e-beamer will save new users some trouble. Is my analysis valid, or am I grossly wrong? > > bit, I get a backtrace (attached). Is that a bug? > > This is strange. The error comes from a void function, although it is > defined in org.el. I suppose you get the error because you use > `load-library' instead of `require'. You may want to (load-library > "org") to fix it. > I think I know what went wrong; I had misunderstood your comment earlier and had exported with the beamer backend Seb's original ECM. Of course it fails because it explicitly asks for the "beamer" class when that was not defined. Cheers, Footnotes: [1] I tried this with the LaTeX_CLASS set to article, and there were errors in the exported pdf. -- Suvayu Open source is the future. It sets us free.