[Top][All Lists]

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

Re: [Emacs-orgmode] org-mode: couple of html related feature requests

From: Carsten Dominik
Subject: Re: [Emacs-orgmode] org-mode: couple of html related feature requests
Date: Mon, 7 Aug 2006 17:45:00 +0200

I still fail to see why this would be better than using the #+TITLE line that has exactly this purpose. If you want to specify the title line, you can use that line. If you don't want to specify it, all we are discussing about is the question of what would be a good default for the title. I am currently taking that default from the file name, you want it from the first headline - both can be equally good and bad titles.

- Carsten

On Aug 3, 2006, at 3:07, T. V. Raman wrote:

But we could still use the first top-levle heading?
The rest of the mapping still holds, since html lets you have
multiple h1 headings on a page. As things stand, everything gets
demoted a level when you go through org

"Carsten" == Carsten Dominik <address@hidden> writes:
    Carsten> Hi Raman, On Jul 23, 2006, at 20:19, T. V. Raman
    Carsten> wrote:

Here are a couple of html export related feature requests.

0) Would it be possible to generate the title element from
the first top-level heading -- rather than the base
    Carsten> No, I don't want to do this.  If we do this we
    Carsten> implicitly assume that there is only one top-level
    Carsten> heading in the file, in general there will be more
    Carsten> than one.  However, you can always set the document
    Carsten> title like this:
    Carsten> #+TITLE: This is a title for the HTML export
1) How do I avoid the -*- mode: ... -*- line from showing
up in the exported HTML?
    Carsten> How do you get it in?  I have never seen it.
    Carsten> Anybody?
2) Finally, how do I supress generation f the Table of
    Carsten> This was already answered by David Emery.
And one related request:

Once we get the vaue of <title> from the first top-level
heading, we could also promote everything up by a level on
the html side so that '*' headings become h1, '**' become
h2 etc.

I find the present practice of '*' headings becoming h2s a
bit painful because things on the HTML side get too deep
in their hierarchy.
    Carsten> I don't think it is useful to treat the first
    Carsten> toplevel heading differently from the others.  And I
    Carsten> personally like the title in H1 and the top level
    Carsten> headings in H2.  However, I can see that this is a
    Carsten> matter of taste, so I will provide a variable
    Carsten> org-export-html-toplevel-hlevel
    Carsten> that can be used to set which of H1, H2, H3
    Carsten> .... should be used for level 1 org-mode headings.
    Carsten> Default for now continues to be 2.
    Carsten> Related to this, I have an HTML/CSS question:
    Carsten> If I do
    Carsten>    <H1 class="title">Document title</H1>
    Carsten>    <H1>My first outline heading</H1>
    Carsten> what do i have to put into the css style to make the
    Carsten> first line appear differently from the second? I
    Carsten> have tried:
    Carsten> h1 { font-size: 18pt; padding-top: 1em; }
    Carsten> .title { font-size: 20pt; color: #ff8c00; }
    Carsten> but that does not work.
    Carsten> Thanks.
    Carsten> - Carsten
    Carsten> -- Carsten Dominik Sterrenkundig Instituut "Anton
    Carsten> Pannekoek" Universiteit van Amsterdam Kruislaan 403
    Carsten> NL-1098SJ Amsterdam phone: +31 20 525 7477

Best Regards,

Email:  address@hidden
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: address@hidden
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC:    irc://irc.freenode.net/#emacs

Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

reply via email to

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