emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* using first heading as <h1> in batch export to html
@ 2012-01-24 13:39 Detlef Steuer
  2012-01-24 14:57 ` Bastien
  2012-01-25 12:42 ` SOLVED " Detlef Steuer
  0 siblings, 2 replies; 4+ messages in thread
From: Detlef Steuer @ 2012-01-24 13:39 UTC (permalink / raw)
  To: emacs-orgmode

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? 

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-25 12:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-24 13:39 using first heading as <h1> in batch export to html Detlef Steuer
2012-01-24 14:57 ` Bastien
2012-01-24 15:12   ` Detlef Steuer
2012-01-25 12:42 ` SOLVED " Detlef Steuer

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).