From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: using first heading as

in batch export to html Date: Tue, 24 Jan 2012 14:39:55 +0100 Message-ID: <20120124143955.4099cd91@vknecht-intel.unibw-hamburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpgbs-0001S2-Jr for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 08:40:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpgbm-0006jy-5E for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 08:40:28 -0500 Received: from lo.gmane.org ([80.91.229.12]:53078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpgbm-0006ju-08 for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 08:40:22 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rpgbk-0007aI-Su for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 14:40:20 +0100 Received: from vknecht-intel.unibw-hamburg.de ([139.11.181.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2012 14:40:20 +0100 Received: from detlef.steuer by vknecht-intel.unibw-hamburg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2012 14:40:20 +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: emacs-orgmode@gnu.org If I batch export a test.org looking like this -- test.org -------- * heading1 some text -------------------- to html I get a

test

as result. If I open the file and do C-c @ on the first heading the result contains

heading1

How do I achieve the latter in batch export? Btw: Reading the manual I get the impression the latter is what should happen anyway? http://orgmode.org/manual/Document-title.html#Document-title says -------------------------- Document title The title of the exported document is taken from the special line #+TITLE: This is the title of the document If this line does not exist, the title is derived from the first non-empty, non-comment line in the buffer. If no such line exists, or if you have turned off exporting of the text before the first headline (see below), the title will be the file name without extension. If you are exporting only a subtree by marking is as the region, the heading of the subtree will become the title of the document. If the subtree has a property EXPORT_TITLE, that will take precedence. ---------------------------- So, no TITLE here, first non-empty line is * heading1 , nothing was prevented from being exported. I would expect heading1 as title from reading this. thx Detlef