From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Stop with an error if the LaTeX class is not known to the new exporter Date: Wed, 06 Feb 2013 19:49:12 +0100 Message-ID: <87mwvhmg5z.fsf@gmail.com> References: <86pq0eg415.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3A3z-0006oz-GZ for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 13:49:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3A3y-0000Sn-BD for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 13:49:43 -0500 Received: from plane.gmane.org ([80.91.229.3]:40049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3A3y-0000Sh-5B for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 13:49:42 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U3A4B-0005tX-67 for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 19:49:55 +0100 In-Reply-To: <86pq0eg415.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 05 Feb 2013 16:43:18 +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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "Sebastien Vauban" writes: > I've lost (a bit of) time looking at why my documents were wrong with the new > exporter. The fact is I've customized: > > (setq org-e-latex-default-class "myarticle") > > but hadn't added yet that private class to the list `org-e-latex-classes'. > > The result: a PDF, but completely undreadable, as it's missing the > `documentclass' directive. > > Here a patch to throw an error to the user, signaling he's forgotten some > pieces of the puzzle, in case he played with such vars. Better stop early, and > giving hints to the user how to correct the problem, no? > > Feel free to adapt it to your wishes. Thank you. I have applied it on the soon to be merged back-end. Regards, -- Nicolas Goaziou