emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] using first heading as <h1> in batch export to html


From: Detlef Steuer
Subject: [O] using first heading as <h1> in batch export to html
Date: Tue, 24 Jan 2012 14:39:55 +0100

If I batch export a test.org looking like this

-- test.org --------
* heading1
  some text
--------------------

to html I get a <h1 class="title">test</h1> as result.

If I open the file and do C-c @ on the first heading the
result contains <h1 class="title">heading1</h1> 

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]