From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: LaTeX exporter Date: Mon, 06 Oct 2014 22:36:55 +0200 Message-ID: <878uktx7dk.fsf@gmx.us> References: <87y4st6lai.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbF1y-0001v2-R0 for emacs-orgmode@gnu.org; Mon, 06 Oct 2014 16:37:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbF1r-0005WB-C0 for emacs-orgmode@gnu.org; Mon, 06 Oct 2014 16:37:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:35762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbF1r-0005Vx-6S for emacs-orgmode@gnu.org; Mon, 06 Oct 2014 16:37:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XbF1p-0007mq-KA for emacs-orgmode@gnu.org; Mon, 06 Oct 2014 22:37:09 +0200 Received: from 46.166.186.236 ([46.166.186.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Oct 2014 22:37:09 +0200 Received: from rasmus by 46.166.186.236 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Oct 2014 22:37:09 +0200 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 Fabrice Popineau writes: > Maybe I wasn't clear enough. > I was thinking about an option specific of the latex exporter to expand the > document class options : > > \documentclass[default_option_1, default_option_2, EXTRA_OPTIONS]{myclass} > > default_option_i being taken from the org-latex-classes entry for the > current class. The "correct way" is probably a derived class. But probably it's too much hassle. > Actually, LATEX_CLASS_OPTIONS overrides the whole set of options, so maybe > my suggestion is superfluous. You could get this behavior using `org-export-before-parsing-hook': Look for document LaTeX class then you know default options. Replace MY_EXTRA_DOCUMENT_CLASS_OPTIONS with LATEX_CLASS_OPTIONS with defaults and the buffer options as the value. Or maybe with org-export-before-parsing-hook and org-export-filter-options-functions. Save MY_EXTRA_DOCUMENT_CLASS_OPTIONS as a local variable and extend LATEX_CLASS_OPTIONS as needed. Probably the former is easier. Hope it helps, Rasmus -- When in doubt, do it!