Hi Andras,
you will have to edit your StyleSheet Tiddler.
If you have just started with TW the StyleSheet Tiddler is a shadow Tiddler
Create a new Tiddler named StyleSheet and add the following to it, save TW 
and refresh the browser;

body {counter-reset:section;}
h1 {counter-reset:subsection;}
h1:before
{
counter-increment:section;
content:" " counter(section) ". ";
}
h2:before 
{
counter-increment:subsection;
content:counter(section) "." counter(subsection) " ";
}
h3:before 
{
counter-increment:subsubsection;
content:counter(section) "." counter(subsection) "." counter(subsection) " 
"; ";
}

I have been trying to do this by using a template document but TW sometimes 
upsets the numbering by adding other ocuments with numbering to the counter.
E.g.
If you had two documents, the first with sections 1, 1.1, 1.2,1.3 and try 
to do the same in a second document, the second document results in 2, 
2.1,2.2, 2.3

Give it a try.

W3 Schools.com
http://www.w3schools.com/css/css_examples.asp - See CSS Generated Content
http://www.w3schools.com/css/tryit.asp?filename=trycss_gen_counter-reset

Jim

----
On Friday, 28 September 2012 00:03:17 UTC+1, Andras Galig wrote:
>
> I'd like to use numbered heading.
>
> Example:
> !H1
> !!H21
> !!H22
> !!!H3
>
> Expected result:
> 1 H1
> 1.1 H21
> 1.2 H22
> 1.2.1 H3
>
> How can I do this in TiddlyWiki?
> BR/Andras
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/zn6V9l13BisJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to