Org-mode mailing list
 help / color / mirror / Atom feed
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
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

  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 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://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

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git