From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: HTML export: feature request Date: Wed, 11 Feb 2009 11:34:14 +0100 Message-ID: <8A551EAB-6439-49AF-A1D5-3D95C16819ED@uva.nl> References: <4991FC43.40108@gmail.com> <87ocx94un7.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============2084081821==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXCQ9-00022T-KY for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXCQ7-00021d-QT for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:20 -0500 Received: from [199.232.76.173] (port=50021 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXCQ7-00021T-A2 for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:19 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:41123) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXCQ6-0007X7-Io for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:18 -0500 Received: by mail-ew0-f20.google.com with SMTP id 13so202619ewy.18 for ; Wed, 11 Feb 2009 02:34:18 -0800 (PST) In-Reply-To: <87ocx94un7.fsf@kassiopeya.MSHEIMNETZ> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: emacs-orgmode@gnu.org --===============2084081821== Content-Type: multipart/alternative; boundary=Apple-Mail-3-490700643 --Apple-Mail-3-490700643 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Feb 11, 2009, at 2:41 AM, Sebastian Rose wrote: > Wanrong Lin 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: > >

1 Headline

> \------------/ ^ > 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? > > >
>

1 blabla

>
> ^ > 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 --Apple-Mail-3-490700643 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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=3D"sec-1"><span = class=3D"section-number-2">1</span> Headline</h2>
=             &n= bsp;           &nbs= p;  \------------/ ^      
=             &n= bsp;           &nbs= p;     basename    |
=             &n= bsp;           &nbs= p;            =    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=3D"outline-container-1" = class=3D"outline-2">
<h2 id=3D"sec-1">1 blabla </h2>
<div = class=3D"outline-text-2" id=3D"text-1">
=             &n= bsp;  ^
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

= --Apple-Mail-3-490700643-- --===============2084081821== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============2084081821==--