[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [org2blog] How to add section numbers?
From: |
Wenshan Ren |
Subject: |
Re: [O] [org2blog] How to add section numbers? |
Date: |
Fri, 25 Jan 2013 01:59:17 +1100 |
User-agent: |
mu4e 0.9.9; emacs 24.2.50.1 |
Bastien writes:
> Hi,
>
> Ren Wen shan <address@hidden> 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 <h1 id="sec-1-1>.
I found that blogs generated by org2blog actually contain section
numbering information (as the label mentioned above), it is just not
showing.
Best,
--
Wenshan Ren
Email: address@hidden
Blog: wenshanren.org
Douban: www.douban.com/people/renws