From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Newman Subject: Html export suggestion (use of
) Date: Fri, 5 Oct 2007 21:57:15 +0100 Message-ID: <20071005215715.21604ade@newmanfamily.me.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_z9Nc.RF=TF02BcqC94J7jhT" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IduEe-0004SD-2U for emacs-orgmode@gnu.org; Fri, 05 Oct 2007 16:57:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IduEd-0004S1-AL for emacs-orgmode@gnu.org; Fri, 05 Oct 2007 16:57:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IduEd-0004Ry-4z for emacs-orgmode@gnu.org; Fri, 05 Oct 2007 16:57:23 -0400 Received: from smtp1.enta.net ([62.249.192.219]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IduEc-0004wx-Jw for emacs-orgmode@gnu.org; Fri, 05 Oct 2007 16:57:22 -0400 Received: from newmanfamily.me.uk (84-45-232-14.no-dns-yet.enta.net [84.45.232.14]) by smtp1.enta.net (Postfix) with ESMTP id 7C76D12D0C0 for ; Fri, 5 Oct 2007 22:00:28 +0100 (BST) Received: from newmanfamily.me.uk (localhost.localdomain [127.0.0.1]) by newmanfamily.me.uk (8.14.1/8.14.1) with ESMTP id l95KvFhH003046 for ; Fri, 5 Oct 2007 21:57:18 +0100 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: org-mode --MP_z9Nc.RF=TF02BcqC94J7jhT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I had wondered if there was any value in wrapping the html export in
sections to match the structure of the org file. For example, rather than:

1 Heading

Text

1.1 Subheading

More text

1.2 Further subheading

Still more text

export:

1 Heading

Text

1.1 Subheading

More text

1.2 Further subheading

Still more text

Aside from the minor drawback of making the file a bit bigger, it should have no negative effects, but it would have at least two benefits: 1) It would be very easy (via CSS) to apply styles to match the structure of the file e.g. indenting lower level sections. See attachment for example. 2) It should make it easier, with xslt to manipulate the exported files e.g. to extract specific sections -- Mike --MP_z9Nc.RF=TF02BcqC94J7jhT Content-Type: text/html; name=Example.html Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=Example.html temp

1 Heading

Text

1.1 Subheading

More text

1.2 Further subheading

Still more text

1 Heading

Text

1.1 Subheading

More text

1.2 Further subheading

Still more text

--MP_z9Nc.RF=TF02BcqC94J7jhT 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 --MP_z9Nc.RF=TF02BcqC94J7jhT-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: cezar@mixandgo.ro Subject: Re: Html export suggestion (use of
) Date: Sat, 06 Oct 2007 11:25:00 +0300 Message-ID: <874ph4wsyr.fsf@myhost.localdomain> References: <20071005215715.21604ade@newmanfamily.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ie50t-00018u-SZ for emacs-orgmode@gnu.org; Sat, 06 Oct 2007 04:27:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ie50t-00018i-Gt for emacs-orgmode@gnu.org; Sat, 06 Oct 2007 04:27:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ie50t-00018d-AK for emacs-orgmode@gnu.org; Sat, 06 Oct 2007 04:27:55 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ie50s-0000tL-UZ for emacs-orgmode@gnu.org; Sat, 06 Oct 2007 04:27:55 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ie50a-0002hm-OI for emacs-orgmode@gnu.org; Sat, 06 Oct 2007 08:27:36 +0000 Received: from dyn-86.105.65.100.tm.upcnet.ro ([86.105.65.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Oct 2007 08:27:36 +0000 Received: from cezar by dyn-86.105.65.100.tm.upcnet.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Oct 2007 08:27:36 +0000 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: emacs-orgmode@gnu.org Mike Newman writes: > I had wondered if there was any value in wrapping the html export in >
sections to match the structure of the org file. > > For example, rather than: > >

1 Heading

>

Text >

>

1.1 Subheading

>

More text >

>

1.2 Further subheading

>

Still more text >

> I have not yet used this feature, but I am working with html/css all day, so here is my opinion: 1. You shouldn't use more divs than you need to, and you don't need them. 2. You shouldn't use divs for presentation's sake. Why not make each subsection a different class or sumthin. 3. I think the way it's handled right now is better than your example. Cheers, Cezar From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmitri Minaev" Subject: Re: Html export suggestion (use of
) Date: Mon, 8 Oct 2007 18:05:58 +0500 Message-ID: References: <20071005215715.21604ade@newmanfamily.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IesJ9-0001vN-E5 for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 09:06:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IesJ7-0001uN-BZ for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 09:06:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IesJ7-0001uI-5U for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 09:06:01 -0400 Received: from ik-out-1112.google.com ([66.249.90.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IesJ6-0003K2-AI for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 09:06:00 -0400 Received: by ik-out-1112.google.com with SMTP id c29so371712ika for ; Mon, 08 Oct 2007 06:05:59 -0700 (PDT) In-Reply-To: <20071005215715.21604ade@newmanfamily.me.uk> Content-Disposition: inline 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: Mike Newman Cc: org-mode On 10/6/07, Mike Newman wrote: > I had wondered if there was any value in wrapping the html export in >
sections to match the structure of the org file. Classes, classes! :) -- With best regards, Dmitri Minaev Russian history blog: http://minaev.blogspot.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Newman Subject: Re: Re: Html export suggestion (use of
) Date: Mon, 8 Oct 2007 21:00:48 +0100 Message-ID: <20071008210048.1c325dca@newmanfamily.me.uk> References: <20071005215715.21604ade@newmanfamily.me.uk> <874ph4wsyr.fsf@myhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ieyme-0006SH-Il for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 16:00:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ieymc-0006R1-SF for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 16:00:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ieymc-0006Qw-Ox for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 16:00:54 -0400 Received: from smtp2.enta.net ([62.249.192.218]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ieymc-0001tw-G4 for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 16:00:54 -0400 Received: from newmanfamily.me.uk (84-45-232-14.no-dns-yet.enta.net [84.45.232.14]) by smtp2.enta.net (Postfix) with ESMTP id A960C14DB6D for ; Mon, 8 Oct 2007 21:05:56 +0100 (BST) Received: from newmanfamily.me.uk (localhost.localdomain [127.0.0.1]) by newmanfamily.me.uk (8.14.1/8.14.1) with ESMTP id l98K0m1m011338 for ; Mon, 8 Oct 2007 21:00:49 +0100 In-Reply-To: <874ph4wsyr.fsf@myhost.localdomain> 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: emacs-orgmode@gnu.org On Sat, 06 Oct 2007 11:25:00 +0300 cezar@mixandgo.ro wrote: > I have not yet used this feature, but I am working with html/css all > day, so here is my opinion: > > 1. You shouldn't use more divs than you need to, and you don't need > them. > Why (I'm sure there's a good reason)? > 2. You shouldn't use divs for presentation's sake. Why not make each > subsection a different class or sumthin. > Why? > 3. I think the way it's handled right now is better than your example. > > Cheers, > Cezar > > > > _______________________________________________ > 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 > -- Mike From mboxrd@z Thu Jan 1 00:00:00 1970 From: "William Henney" Subject: Re: Re: Html export suggestion (use of
) Date: Mon, 8 Oct 2007 16:04:40 -0500 Message-ID: <41c818190710081404u235dca46vb2c53915240631f4@mail.gmail.com> References: <20071005215715.21604ade@newmanfamily.me.uk> <874ph4wsyr.fsf@myhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IezmQ-0006Yn-AM for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 17:04:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IezmP-0006YR-Nl for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 17:04:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IezmP-0006YI-Iz for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 17:04:45 -0400 Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IezmP-0005n9-HN for emacs-orgmode@gnu.org; Mon, 08 Oct 2007 17:04:45 -0400 Received: by wa-out-1112.google.com with SMTP id k34so1780538wah for ; Mon, 08 Oct 2007 14:04:41 -0700 (PDT) In-Reply-To: <874ph4wsyr.fsf@myhost.localdomain> Content-Disposition: inline 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: "cezar@mixandgo.ro" Cc: emacs-orgmode@gnu.org On 10/6/07, cezar@mixandgo.ro wrote: > Mike Newman writes: > > > I had wondered if there was any value in wrapping the html export in > >
sections to match the structure of the org file. > > [ snip ] > I have not yet used this feature, but I am working with html/css all > day, so here is my opinion: > > 1. You shouldn't use more divs than you need to, and you don't need > them. > The trouble is, it is currently not possible to wrap a section in a
when you _do_ need it. At least, I tried to do this with @
... @
and it produces incorrectly nested tags for the case when an org heading is mapped onto an html list item (e.g.,
  • Contents of org section
  • ). This is because the closing
    is interpreted as being inside the section, rather than outside it. > 2. You shouldn't use divs for presentation's sake. Why not make each > subsection a different class or sumthin. > How would that work without divs? The problem is (I think) that sometimes an org section is represented in html as a header plus following text:

    HEADER TEXT

    BODY TEXT

    MORE BODY TEXT

    whereas sometimes it is represented as a list item:
  • HEADER TEXT
    BODY TEXT
  • . So, in the first case one cannot apply a class to the whole section, since there is no enclosing HTML element. In the second place, you don't have that problem, but now it is impossible to apply a class to just the header. What would be nice would be if there was an option for (some) tags to be applied as classes in the exported html. Cheers Will --=20 Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia From mboxrd@z Thu Jan 1 00:00:00 1970 From: cezar@mixandgo.ro Subject: Re: Html export suggestion (use of
    ) Date: Tue, 09 Oct 2007 10:56:25 +0300 Message-ID: <87bqb8afh2.fsf@myhost.localdomain> References: <20071005215715.21604ade@newmanfamily.me.uk> <874ph4wsyr.fsf@myhost.localdomain> <20071008210048.1c325dca@newmanfamily.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfA0w-0003z2-JT for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:00:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfA0v-0003yc-2f for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:00:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfA0u-0003yY-Rg for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:00:24 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IfA0u-0001SR-H2 for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:00:24 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1If9zq-0006bG-Bj for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 07:59:18 +0000 Received: from dyn-86.105.65.100.tm.upcnet.ro ([86.105.65.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 07:59:18 +0000 Received: from cezar by dyn-86.105.65.100.tm.upcnet.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 07:59:18 +0000 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: emacs-orgmode@gnu.org Mike Newman writes: > On Sat, 06 Oct 2007 11:25:00 +0300 > cezar@mixandgo.ro wrote: > >> I have not yet used this feature, but I am working with html/css all >> day, so here is my opinion: >> >> 1. You shouldn't use more divs than you need to, and you don't need >> them. >> > Why (I'm sure there's a good reason)? What are you trying to achieve ? I am pretty sure you can do it without adding divs. > >> 2. You shouldn't use divs for presentation's sake. Why not make each >> subsection a different class or sumthin. >> > Why? > Because by adding classes you keep the same structure. And you can style everything based on those classes. Cheers, Cezar From mboxrd@z Thu Jan 1 00:00:00 1970 From: cezar@mixandgo.ro Subject: Re: Html export suggestion (use of
    ) Date: Tue, 09 Oct 2007 11:03:58 +0300 Message-ID: <877ilwaf4h.fsf@myhost.localdomain> References: <20071005215715.21604ade@newmanfamily.me.uk> <874ph4wsyr.fsf@myhost.localdomain> <41c818190710081404u235dca46vb2c53915240631f4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfA74-0006OR-JV for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfA74-0006OF-2W for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfA73-0006OC-W1 for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:46 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IfA73-00031R-8f for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:45 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IfA6q-0007RO-Mt for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 08:06:32 +0000 Received: from dyn-86.105.65.100.tm.upcnet.ro ([86.105.65.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 08:06:32 +0000 Received: from cezar by dyn-86.105.65.100.tm.upcnet.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 08:06:32 +0000 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: emacs-orgmode@gnu.org "William Henney" writes: > > The trouble is, it is currently not possible to wrap a section in a >
    when you _do_ need it. At least, I tried to do this with @
    > ... @
    and it produces incorrectly nested tags for the case when > an org heading is mapped onto an html list item (e.g.,
    class="foo">
  • Contents of org section
  • ). This is because > the closing
    is interpreted as being inside the section, rather > than outside it. I agree that this should be an option. Adding divs tou your html. Why would you need a
      ...
    when you can have
      ...
    . > >> 2. You shouldn't use divs for presentation's sake. Why not make each >> subsection a different class or sumthin. >> > > How would that work without divs? The problem is (I think) that > sometimes an org section is represented in html as a header plus > following text: > >

    HEADER TEXT

    >

    BODY TEXT

    >

    MORE BODY TEXT

    This looks ok. > > whereas sometimes it is represented as a list item: > >
  • HEADER TEXT
    BODY TEXT
  • . This is bad. > > So, in the first case one cannot apply a class to the whole section, > since there is no enclosing HTML element. In the second place, you > don't have that problem, but now it is impossible to apply a class to > just the header. I don't agree. You can apply whatever styling you like to the whole section. Of course you cannot have different styles for different sections unless you use classes. > > What would be nice would be if there was an option for (some) tags to > be applied as classes in the exported html. True. Cheers, Cezar From mboxrd@z Thu Jan 1 00:00:00 1970 From: cezar@mixandgo.ro Subject: Re: Html export suggestion (use of
    ) Date: Wed, 10 Oct 2007 17:36:23 +0300 Message-ID: <87r6k3ghp4.fsf@myhost.localdomain> References: <87ve9fgkoq.fsf@myhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfdMs-0006qh-30 for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 11:21:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfdMn-0006mU-NC for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 11:21:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfdMn-0006mO-EH for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 11:20:57 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IfdMn-0008Lm-29 for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 11:20:57 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IfcqH-0005sb-Lq for emacs-orgmode@gnu.org; Wed, 10 Oct 2007 14:47:21 +0000 Received: from dyn-86.105.65.100.tm.upcnet.ro ([86.105.65.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Oct 2007 14:47:21 +0000 Received: from cezar by dyn-86.105.65.100.tm.upcnet.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Oct 2007 14:47:21 +0000 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: emacs-orgmode@gnu.org cezar@mixandgo.ro writes: > Also a div should be optional for those who need it, so the whole > category can be wraped in a
    like this: > > >
    >

    > Header here >

    >

    > normal text >

    >

    > some more text >

    >
    > >
    >

    > Header here >

    >

    > normal text >

    >

    > some more text >

    >
    > > Maybe by using a tag or something ! > Actually in this case, we don't need the class on each element, just the div:

    Header here

    normal text

    some more text

    From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Newman Subject: Re: Html export suggestion (use of
    ) Date: Mon, 15 Oct 2007 23:08:38 +0100 Message-ID: <20071015230838.61f67e0a@newmanfamily.me.uk> References: <20071005215715.21604ade@newmanfamily.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhY7B-0006Hl-Sa for emacs-orgmode@gnu.org; Mon, 15 Oct 2007 18:08:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhY7B-0006GN-6x for emacs-orgmode@gnu.org; Mon, 15 Oct 2007 18:08:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhY7B-0006GF-3f for emacs-orgmode@gnu.org; Mon, 15 Oct 2007 18:08:45 -0400 Received: from smtp2.enta.net ([62.249.192.218]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IhY7A-0008Bb-IT for emacs-orgmode@gnu.org; Mon, 15 Oct 2007 18:08:44 -0400 Received: from newmanfamily.me.uk (84-45-232-14.no-dns-yet.enta.net [84.45.232.14]) by smtp2.enta.net (Postfix) with ESMTP id 697AD14D9E3 for ; Mon, 15 Oct 2007 23:14:05 +0100 (BST) Received: from newmanfamily.me.uk (localhost.localdomain [127.0.0.1]) by newmanfamily.me.uk (8.14.1/8.14.1) with ESMTP id l9FM8c4S012846 for ; Mon, 15 Oct 2007 23:08:39 +0100 In-Reply-To: <20071005215715.21604ade@newmanfamily.me.uk> 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: emacs-orgmode@gnu.org Here is a more refined suggestion, with links to examples Mike
    in HTML Export ==================== Table of Contents ================= 1 Proposal 2 Implementation 3 Motivation 3.1 Applying styles via CSS 3.2 Applying transformations via XSLT 4 Drawbacks 5 Additional suggestion 6 Options 7 Examples 8 Acknowledgements 1 Proposal ~~~~~~~~~~ I propose that on html export, sections of the document should be wrapped in
    markers, to reflect the outline structure given by org mode. 2 Implementation ~~~~~~~~~~~~~~~~ I think this should be quite simple to implement. Prior to each heading, open
    elements would be closed (if the heading level was higher than the previous heading level), and a new
    element would be opened. 3 Motivation ~~~~~~~~~~~~ There are at least two reasons why this might be useful: 3.1 Applying styles via CSS =========================== This allows, for example: - Styles to be applied in a way that makes it clear how the sections are nested, e.g. by indentation, drawing a border or setting a background - Styles could be used to display content in a way that is not possible without them. Links to examples are given below. I imagine that in time, a variety of style sheets for displaying the resulting html could be shared, saving users the trouble of developing their own. 3.2 Applying transformations via XSLT ===================================== Selecting sections or subsections of a file should be much easier if they correspond to a single XML element. 4 Drawbacks ~~~~~~~~~~~ - Increased file size (but only very slightly) - Possibly increased time for browser to render page? I am not aware of a problem 5 Additional suggestion ~~~~~~~~~~~~~~~~~~~~~~~ It would also be useful to wrap the Table of Contents and the final part of the HTML file (Author's name and date) in their own
    . 6 Options ~~~~~~~~~ Attributes can be added to a
    , most importantly "class" and "id". Adding the class attribute (as suggested by Cezar) would allow different sections of the file to be formatted in different ways. As a first step, I would suggest adding the
    without a class or id. It was suggested that adding
    to exported HTML should be controlled by an option. I would see it as fairly harmless, even to those who would not use the feature, so in my opinion the option would be an unnecessary complication. 7 Examples ~~~~~~~~~~ I have added
    elements as proposed here to an HTML file. This can be viewed, rendered with different style sheets at: - [http://www.newmanfamily.me.uk/orgmode/Example-defaultstyle.html] - [http://www.newmanfamily.me.uk/orgmode/Example-sectioned.html] - [http://www.newmanfamily.me.uk/orgmode/Example-floated.html] It should be interesting to see how they behave as the width of the browser window changes - particularly with the last example. (Only tested in Firefox). 8 Acknowledgements ~~~~~~~~~~~~~~~~~~ I would like to thank Cezar and William Henney for their suggestions. (And Carsten, of course). From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Html export suggestion (use of
    ) Date: Wed, 17 Oct 2007 11:13:08 +0200 Message-ID: References: <20071005215715.21604ade@newmanfamily.me.uk> <20071015230838.61f67e0a@newmanfamily.me.uk> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ii4xj-0001ZP-R1 for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:13:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ii4xi-0001Yn-6c for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:13:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii4xh-0001Yh-MO for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:13:09 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ii4xh-0007CM-D9 for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:13:09 -0400 In-Reply-To: <20071015230838.61f67e0a@newmanfamily.me.uk> 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: Mike Newman Cc: emacs-orgmode@gnu.org On Oct 16, 2007, at 0:08, Mike Newman wrote: > Here is a more refined suggestion, with links to examples > > Mike > >
    in HTML Export > ==================== Hi Mike, thanks for this excellent writeup, exactly what I needed. And thanks to the other who helped writing this. I now see why it can be useful to preserve the outline structure in the HTML export, and if Bastien remains the only voice against it, I will put these
    s in. - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Html export suggestion (use of
    ) Date: Wed, 17 Oct 2007 11:40:07 +0100 Message-ID: <87odeynhx4.fsf@bzg.ath.cx> References: <20071005215715.21604ade@newmanfamily.me.uk> <20071015230838.61f67e0a@newmanfamily.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ii5Nr-0000GH-59 for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:40:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ii5Np-0000G5-QA for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:40:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii5Np-0000G2-Ig for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:40:09 -0400 Received: from ug-out-1314.google.com ([66.249.92.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ii5No-00047R-CP for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 05:40:09 -0400 Received: by ug-out-1314.google.com with SMTP id a2so238805ugf for ; Wed, 17 Oct 2007 02:40:07 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Wed, 17 Oct 2007 11:13:08 +0200") 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: emacs-orgmode@gnu.org Hi Carsten, Carsten Dominik writes: > I now see why it can be useful to preserve the outline > structure in the HTML export, and if Bastien remains the > only voice against it, I will put these
    s in. I didn't pronounced myself "against" it at all. I really like the idea of having
    s in Org :) I only raised concerns about the fact that having
    s will perhaps lead to a full templating system for the HTML output, and should be thought carefully (what structure? what classes? what ids?) Just for the record, here are the relevant parts of the (private) email I sent on this topic: ,---- | i don't want to jump into the « Dive-in-
    -or-die » discussion, but | just to give you my very first impression on this: having
    is nice | but you will surely end up trying to implement "templates" for the HTML | exporter. | | The choice for good class/id defaults might also be tricky: should a |
    for a section have a class attribute like class="section" or an id | attribute like id="section1"? Org will of course chose the class="" | option, for the sake of both simplicity and genericity. But I can bet | you will soon be under pressure for more and more options... `---- Again: I'm not against
    s, I'm just curious on how it could develop! -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: cezar@mixandgo.ro Subject: Re: Html export suggestion (use of
    ) Date: Thu, 18 Oct 2007 16:00:15 +0300 Message-ID: <87k5pkwpb4.fsf@myhost.localdomain> References: <20071005215715.21604ade@newmanfamily.me.uk> <20071015230838.61f67e0a@newmanfamily.me.uk> <87odeynhx4.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiUzs-0001ll-7s for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 09:01:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiUzr-0001ki-55 for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 09:01:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiUzq-0001kF-NZ for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 09:01:06 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IiUzq-0001wa-4v for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 09:01:06 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IiUzh-0003pE-Uh for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 13:00:58 +0000 Received: from dyn-86.105.65.100.tm.upcnet.ro ([86.105.65.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Oct 2007 13:00:57 +0000 Received: from cezar by dyn-86.105.65.100.tm.upcnet.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Oct 2007 13:00:57 +0000 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: emacs-orgmode@gnu.org Hello, Sorry I wasn't around, but I think the
    's might be ok if we also had a class for them or id to be able to style each one differently. Cheers, Cezar