From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ren Wen shan Subject: [org2blog] How to add section numbers? Date: Thu, 24 Jan 2013 15:04:38 +1100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec53144b5d5143604d400e8fe Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyE8P-0008IV-P1 for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 23:09:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyE3L-0004PE-Du for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 23:04:52 -0500 Received: from mail-ie0-f173.google.com ([209.85.223.173]:52347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyE3L-0004Oq-63 for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 23:04:39 -0500 Received: by mail-ie0-f173.google.com with SMTP id e13so14863674iej.4 for ; Wed, 23 Jan 2013 20:04:38 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --bcaec53144b5d5143604d400e8fe Content-Type: text/plain; charset=UTF-8 Hello everyone, I started to use org2blog for blogging recently and it works great. Just wondering if it is possible to add section numbers like org-export-as-html does. For example, a org file like this: * Generally Not Used ** Except *** By Middle Aged * Computer ** Scientist will becomes: 1. Generally Not Used 1.2 Except 1.2.1 By Middle Aged 2. Computer 2.1 Scientist Thanks, -- Wenshan Ren Email: renw...@gmail.com Blog: wenshanren.org Douban: www.douban.com/people/renws --bcaec53144b5d5143604d400e8fe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello everyone,

I started to use org2blog for blogging recently and it works great.
Just
wondering if it is possible to add section numbers like
org-export-as-html does.

For example, a org file like this:

* Generally Not Used
** Except
*** By Middle Aged

* Computer
** Scientist

will becomes:

1. Generally Not Used
=C2=A0 =C2=A01.2 Except
=C2=A0 =C2=A0 =C2=A0 =C2=A01.2.1 By Middle Aged

2. Computer
=C2=A0 =C2=A02.1 Scientist


Thanks,

--
Wenshan Ren
Email: renw...@gmail.com
Blog: wenshanren.or= g
Douban: www.douban.com/people/renws

--bcaec53144b5d5143604d400e8fe-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [org2blog] How to add section numbers? Date: Thu, 24 Jan 2013 13:48:08 +0100 Message-ID: <87pq0uoign.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyME2-0008MP-OY for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 07:48:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyMDy-0002Ug-Dj for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 07:48:14 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:50836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyMDy-0002UM-7S for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 07:48:10 -0500 Received: by mail-wi0-f172.google.com with SMTP id o1so393271wic.17 for ; Thu, 24 Jan 2013 04:48:09 -0800 (PST) In-Reply-To: (Ren Wen's message of "Thu, 24 Jan 2013 15:04:38 +1100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ren Wen shan Cc: emacs-orgmode@gnu.org Hi, Ren Wen shan writes: > I started to use org2blog for blogging recently and it works great. > Just > wondering if it is possible to add section numbers like > org-export-as-html does. > > For example, a org file like this: > > * Generally Not Used > ** Except > *** By Middle Aged > > * Computer > ** Scientist > > will becomes: > > 1. Generally Not Used >    1.2 Except >        1.2.1 By Middle Aged > > 2. Computer >    2.1 Scientist > > Thanks, See this: http://stackoverflow.com/questions/10340276/how-to-add-section-numbers-1-2-3-4-1-automatically-using-css With an example here: http://jsfiddle.net/PfcX2/1/ HTH, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wenshan Ren Subject: Re: [org2blog] How to add section numbers? Date: Fri, 25 Jan 2013 01:59:17 +1100 Message-ID: <87sj5qlj96.fsf@debian-vm-home.localdomain> References: , <87pq0uoign.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyOH2-0003kN-G6 for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 09:59:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyOGx-0000s3-AX for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 09:59:28 -0500 Received: from mail-da0-f42.google.com ([209.85.210.42]:33683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyOGx-0000rp-52 for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 09:59:23 -0500 Received: by mail-da0-f42.google.com with SMTP id z17so4303286dal.15 for ; Thu, 24 Jan 2013 06:59:22 -0800 (PST) In-reply-to: <87pq0uoign.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > Hi, > > Ren Wen shan writes: > >> I started to use org2blog for blogging recently and it works great. >> Just >> wondering if it is possible to add section numbers like >> org-export-as-html does. >> >> For example, a org file like this: >> >> * Generally Not Used >> ** Except >> *** By Middle Aged >> >> * Computer >> ** Scientist >> >> will becomes: >> >> 1. Generally Not Used >> 1.2 Except >> 1.2.1 By Middle Aged >> >> 2. Computer >> 2.1 Scientist >> >> Thanks, > > See this: > http://stackoverflow.com/questions/10340276/how-to-add-section-numbers-1-2-3-4-1-automatically-using-css > > With an example here: > http://jsfiddle.net/PfcX2/1/ > > HTH, Hi Bastien, Thank you, they make sense to me. It uses CSS counter-increment property to add section numbers, I want to know if it is possible to make use of labels such as

List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Wenshan Ren Cc: emacs-orgmode@gnu.org Wenshan Ren writes: > It uses CSS counter-increment property to add section numbers, I want to > know if it is possible to make use of labels such as

id="sec-1-1>. I don't know. > I found that blogs generated by org2blog actually contain section > numbering information (as the label mentioned above), it is just not > showing. The "label" in the "id" parameter are numbered, but the CSS trick you want to use will certainly not use this label. Best, -- Bastien