From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Improve usage of odt content templates Date: Mon, 19 May 2014 18:17:24 +0200 Message-ID: <87zjidd9pn.fsf@gmail.com> References: <20140519104254.GX15335@pestilenz.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmQFE-0004gE-Gf for emacs-orgmode@gnu.org; Mon, 19 May 2014 12:17:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmQF7-0004hx-Jw for emacs-orgmode@gnu.org; Mon, 19 May 2014 12:16:56 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:52658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmQF7-0004hZ-DM for emacs-orgmode@gnu.org; Mon, 19 May 2014 12:16:49 -0400 Received: by mail-wg0-f41.google.com with SMTP id z12so8191152wgg.12 for ; Mon, 19 May 2014 09:16:48 -0700 (PDT) In-Reply-To: <20140519104254.GX15335@pestilenz.org> (Christian Kellermann's message of "Mon, 19 May 2014 12:42:54 +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: Christian Kellermann Cc: emacs-orgmode@gnu.org Hello, Christian Kellermann writes: > I have been using org-mode's odt exporter heavily for the last days > with the attached patches. These scratch an itch I have and I submit > them to this list in the hope of being useful to others. Thank you for your patches. > * Possibility to override the globally defined > org-odt-content-template-file variable in the document It is already possible to override the varible file-wise with: #+BIND: org-odt-content-template-file "somefile" I'm not sure it is worth adding another keyword. OTOH, there's also ODT_STYLES_FILE and they are quite symmetric, so one could expect to be able to set both. But then, `org-odt-content-template-file''s docstring needs to be updated, and the feature should be documented in the manual. Also, it should be (:odt-content-template-file "ODT_CONTENT_TEMPLATE_FILE" nil org-odt-content-template-file t) > * Avoid inserting the document title as the first thing in the > document contents, as there already is a title set in a title page > in the template. As org-mode already sets the title data tag this > can be used in the template to generate the correct title. However > inserting the title as text is not desireable in that scenario. I think this is a more general issue: should we implement an #+OPTIONS: title:nil feature? I think it makes some sense since we already have date:nil and author:nil. In any case, keywords are not meant to be used for booleans. This should be an OPTIONS item. Regards, -- Nicolas Goaziou