emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: HTML export: feature request
Date: Wed, 11 Feb 2009 11:34:14 +0100	[thread overview]
Message-ID: <8A551EAB-6439-49AF-A1D5-3D95C16819ED@uva.nl> (raw)
In-Reply-To: <87ocx94un7.fsf@kassiopeya.MSHEIMNETZ>


[-- Attachment #1.1: Type: text/plain, Size: 1667 bytes --]


On Feb 11, 2009, at 2:41 AM, Sebastian Rose wrote:

> Wanrong Lin <wanrong.lin@gmail.com> writes:
>
>> Hi,
>>
>> One problem I have with current HTML export is the section number  
>> (like "1",
>> "2.1", "2.1.2" and etc) is not very distinctive from the actual  
>> section
>> heading. Also, sometimes I wish the sub-section headings are  
>> indented. So I
>> wonder whether we can add the following features:
>>
>> 1. Assign a CSS class to the section number, so the section number  
>> font and
>> color can be customized through CSS
>
> That would be great indeed:
>
> <h2 id="sec-1"><span class="section-number-2">1</span> Headline</h2>
>                            \------------/ ^
>                               basename    |
>                                         level
>
>> 2. Add a variable to control whether sub-sections should be  
>> indented in the
>> export, and by how much.
>
> This is possible through CSS more easy and flexible (different  
> projects,
> different designs):
>
> .outline-2 h2 {}
>
> Ahh - Carsten, would it easy to add a new class here?
>
>
> <div id="outline-container-1" class="outline-2">
> <h2 id="sec-1">1 blabla </h2>
> <div class="outline-text-2" id="text-1">
>                ^
> Here -----------'
> the
>
> We could the indent the text independently from the headline (or add
> additional indentation to the sections body).
>
>
> The appended patch does both of these. Add a class to the section
> number, and a class to the container of the sections content.

No problem, I have applied you patch, with one change, making
the level number consistent even if `org-export-html-toplevel-hlevel'
is not 1.

- Carsten


[-- Attachment #1.2: Type: text/html, Size: 3060 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2009-02-11 10:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10 22:14 HTML export: feature request Wanrong Lin
2009-02-10 23:26 ` Richard Riley
2009-02-11  1:41 ` Sebastian Rose
2009-02-11 10:34   ` Carsten Dominik [this message]

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=8A551EAB-6439-49AF-A1D5-3D95C16819ED@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastian_rose@gmx.de \
    /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).