From: Wenshan Ren <renws1990@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [org2blog] How to add section numbers?
Date: Fri, 25 Jan 2013 01:59:17 +1100 [thread overview]
Message-ID: <87sj5qlj96.fsf@debian-vm-home.localdomain> (raw)
In-Reply-To: <87pq0uoign.fsf@bzg.ath.cx>
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
next prev parent reply other threads:[~2013-01-24 14:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-24 4:04 [org2blog] How to add section numbers? Ren Wen shan
2013-01-24 12:48 ` Bastien
2013-01-24 14:59 ` Wenshan Ren [this message]
2013-01-24 15:41 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sj5qlj96.fsf@debian-vm-home.localdomain \
--to=renws1990@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).