From: Detlef Steuer <detlef.steuer@gmx.de>
To: emacs-orgmode@gnu.org
Subject: using first heading as <h1> in batch export to html
Date: Tue, 24 Jan 2012 14:39:55 +0100 [thread overview]
Message-ID: <20120124143955.4099cd91@vknecht-intel.unibw-hamburg.de> (raw)
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
next reply other threads:[~2012-01-24 13:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-24 13:39 Detlef Steuer [this message]
2012-01-24 14:57 ` using first heading as <h1> in batch export to html Bastien
2012-01-24 15:12 ` Detlef Steuer
2012-01-25 12:42 ` SOLVED " Detlef Steuer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120124143955.4099cd91@vknecht-intel.unibw-hamburg.de \
--to=detlef.steuer@gmx.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).