From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: New exporter, beamer confusion Date: Sat, 9 Feb 2013 00:10:22 +1030 Message-ID: <878v6y6i0p.fsf@ucl.ac.uk> References: <20130204063905.GA23614@kuru.dyndns-at-home.com> <87wqun5037.fsf@gmail.com> <6207.1360048864@alphaville> <87fw1ashw5.fsf@gmail.com> <878v728fo0.fsf@ucl.ac.uk> <87ip65mfv5.fsf@gmail.com> <87mwvhkqye.fsf@ucl.ac.uk> <8738x8mhkg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3oC5-0004dh-DS for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 08:40:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3oC4-0000wF-19 for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 08:40:45 -0500 Received: from co1ehsobe003.messaging.microsoft.com ([216.32.180.186]:15050 helo=co1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3oC3-0000vA-H2 for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 08:40:43 -0500 In-Reply-To: <8738x8mhkg.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 7 Feb 2013 13:31:11 +0100") 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 Nicolas Goaziou writes: >> Should there be a check in the exporter, for latex based backends, if >> the document class expected is not defined? This would have made things >> a lot quicker to resolve in this case! > > What is an "expected document class"? Beamer export can happen with > a "beamer" or an "article" (and probably others) document class. There's > no real way to know if the class used is correct. Sure. I didn't suggest that there should be a default (although as others have suggested, a default of "beamer" would be reasonable). My point was simply that generating a latex file with no "documentclass" line doesn't make much sense and this omission should be caught by the exporter. It would help any user more quickly figure out what is wrong with the org file being exported. Well, it would have helped me! ;-) Arguably, this is not a problem with the beamer exporter but the latex one instead. In any case, I'd like to say thanks! I had a presentation to give earlier today and wrote it from scratch using the new exporter. After the initial hiccoughs (as documented on this list) and my not having noted earlier that the ATTR_* syntax had changed (e.g. :options width=... for images), everything went like a charm. eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org 7.9.3e-904-g338046