From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: change the latex header per subtree Date: Wed, 14 Nov 2012 23:20:55 +0100 Message-ID: <874nkr6d2w.fsf@gmail.com> References: <87ip9b9es1.fsf@med.uni-goettingen.de> <87obj01dhq.fsf@gmail.com> <87a9ukymd1.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYlOV-0004hj-BV for emacs-orgmode@gnu.org; Wed, 14 Nov 2012 17:25:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYlOS-00041d-8o for emacs-orgmode@gnu.org; Wed, 14 Nov 2012 17:25:15 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:63686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYlOS-00041Z-2d for emacs-orgmode@gnu.org; Wed, 14 Nov 2012 17:25:12 -0500 Received: by mail-wi0-f169.google.com with SMTP id x18so2223472wia.0 for ; Wed, 14 Nov 2012 14:25:11 -0800 (PST) In-Reply-To: <87a9ukymd1.fsf@Rainer.invalid> (Achim Gratz's message of "Wed, 14 Nov 2012 21:12:58 +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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Speaking of which, couldn't this be made easier? There's only one > org-export-latex-packages-alist and if you're trying to use very > different LaTeX classes you'll end up specifying [NO-DEFAULT-PACKAGES] > and then copying a lot of \usepackage stuff around. So what? You define your latex classes once in your configuration variable, and you're all set. That doesn't sound that bad. > If it was possible to give an argument to [PACKAGES] (default, header, > ), then there would be no need for [NO-PACKAGES] and > [DEFAULT-PACKAGES] and one yould use several sets of package > definitions in multiple class definitions. It would be especially neat > if there was a pendant to LATEX_HEADER that would allow to specify > additional package collections on the fly. So, you may to make it easier by providing an even more complex machinery? ;) IMO, the current system is good enough for the job, even if the initial step introduces a lot of duplicate lines. Also, if you want to add package collections, you may include a header-only file in your class, I guess. Regards, -- Nicolas Goaziou