From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Omitting title in odt-export Date: Tue, 21 Oct 2014 07:44:32 -0400 Message-ID: <87iojdejfj.fsf@pierrot.dokosmarshall.org> References: <20141021001311.9c7b2bde27d0d8d9c9159e81@bookhacker.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgXry-00039C-9H for emacs-orgmode@gnu.org; Tue, 21 Oct 2014 07:45:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgXrs-0000qy-09 for emacs-orgmode@gnu.org; Tue, 21 Oct 2014 07:44:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:42292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgXrr-0000qr-Q8 for emacs-orgmode@gnu.org; Tue, 21 Oct 2014 07:44:47 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XgXrr-0002fW-3x for emacs-orgmode@gnu.org; Tue, 21 Oct 2014 13:44:47 +0200 Received: from pool-108-20-41-17.bstnma.fios.verizon.net ([108.20.41.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2014 13:44:47 +0200 Received: from ndokos by pool-108-20-41-17.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2014 13:44:47 +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 hack writer writes: > I have problems omitting the OrgTitle from an exported > odt-document. Through the following preamble in my .org-file I am able > to omit most of the default title/author/etc. information at the > beginning of the .odt-document: > > #+ODT_STYLES_FILE: "/path/to/template.ott" > > #+TITLE: > #+DATE: > > #+AUTHOR: > > #+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline > #+OPTIONS: author:nil c:nil creator:comment d:(not LOGBOOK) date:nil e:t > > #+OPTIONS: email:nil f:t inline:t num:t p:nil pri:nil stat:t tags:t > #+OPTIONS: tasks:t tex:t timestamp:t toc:t todo:t |:t > > #+CREATOR: > #+DESCRIPTION: > > #+EXCLUDE_TAGS: noexport > #+KEYWORDS: > > #+LANGUAGE: de > #+SELECT_TAGS: export > > #+BEGIN_ODT > // > // .odt stuff in here > // > #+END_ODT > > but there are still two empty paragraphs at the beginning of my file. When looking at the source code of the odt-file (content.xml) the empty paragraphs are > > > > > > before my real text begins. > > So how can I get rid of these empty paragraphs (I already tried things like title:nil but they didn't work)? > You need to update your org to a version that includes the following commit: ,---- | commit 91175a31ee73d10f61a57a290dd588fa484be1f2 | Author: Nicolas Goaziou | Date: Fri Mar 28 10:08:56 2014 +0100 | | ox-odt: Ignore blank titles | | * lisp/ox-odt.el (org-odt-template): Ignore blank titles. `---- The current maint branch (from git, tarball or ELPA package) includes it. So does the bleeding-edge master branch. But the version that came with your emacs probably does not. -- Nick