all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [org2blog] How to add section numbers?
@ 2013-01-23 21:50 Wenshan Ren
  2013-01-23 22:01 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Wenshan Ren @ 2013-01-23 21:50 UTC (permalink / raw)
  To: help-gnu-emacs

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: renws1990@gmail.com
Blog: wenshanren.org
Douban: www.douban.com/people/renws


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [org2blog] How to add section numbers?
  2013-01-23 21:50 Wenshan Ren
@ 2013-01-23 22:01 ` Bastien
  2013-01-24 12:02   ` Wenshan Ren
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2013-01-23 22:01 UTC (permalink / raw)
  To: Wenshan Ren; +Cc: help-gnu-emacs

Hi,

Wenshan Ren <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.

I don't think this is possible, but you may ask on the orgmode mailing
list, you'll probably have more answers.

https://lists.gnu.org/mailman/listinfo/emacs-orgmode

Best,

-- 
 Bastien



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [org2blog] How to add section numbers?
@ 2013-01-24  4:04 Ren Wen shan
  2013-01-24 12:48 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Ren Wen shan @ 2013-01-24  4:04 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [org2blog] How to add section numbers?
  2013-01-23 22:01 ` Bastien
@ 2013-01-24 12:02   ` Wenshan Ren
  0 siblings, 0 replies; 7+ messages in thread
From: Wenshan Ren @ 2013-01-24 12:02 UTC (permalink / raw)
  To: Bastien; +Cc: help-gnu-emacs

Hi Bastien,

Thank you very much. I actually saw the source code of one of my blogs
published by org2blog. Very interesting, actually there are tags such as
<h3 id="sec-1-4">. So I think potentially it is possible.

Not very sure, asked on orgmode mailing list, hope can get responds
quickly.

Thanks again.


Best,

Bastien writes:

> Hi,
>
> Wenshan Ren <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.
>
> I don't think this is possible, but you may ask on the orgmode mailing
> list, you'll probably have more answers.
>
> https://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> Best,


--
Wenshan Ren
Email: renws1990@gmail.com
Blog: wenshanren.org
Douban: www.douban.com/people/renws



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [org2blog] How to add section numbers?
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2013-01-24 12:48 UTC (permalink / raw)
  To: Ren Wen shan; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [org2blog] How to add section numbers?
  2013-01-24 12:48 ` Bastien
@ 2013-01-24 14:59   ` Wenshan Ren
  2013-01-24 15:41     ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Wenshan Ren @ 2013-01-24 14:59 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [org2blog] How to add section numbers?
  2013-01-24 14:59   ` Wenshan Ren
@ 2013-01-24 15:41     ` Bastien
  0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2013-01-24 15:41 UTC (permalink / raw)
  To: Wenshan Ren; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-24 15:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-01-24 15:41     ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2013-01-23 21:50 Wenshan Ren
2013-01-23 22:01 ` Bastien
2013-01-24 12:02   ` Wenshan Ren

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.