[-- Attachment #1: Type: text/plain, Size: 502 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 871 bytes --]
Hi, Ren Wen shan <renws1990@gmail.com> 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
Bastien writes:
> Hi,
>
> Ren Wen shan <renws1990@gmail.com> 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: renws1990@gmail.com
Blog: wenshanren.org
Douban: www.douban.com/people/renws
Wenshan Ren <renws1990@gmail.com> 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 <h1 > 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