Brillian c pa,

There is no way I would have worked that out by myself. The only thing I 
had to do was to separate the declaration for div.tc-tiddler-body and 
div.tc-tiddler-preview-preview. If not it would only work for 
div.tc-tiddler-preview-preview

So here is what I put in my stylesheet tiddler

div.tc-tiddler-body {counter-reset: h1counter;}
div.tc-tiddler-body h1 {
        counter-increment: h1counter;
        counter-reset: h2counter;
}
div.tc-tiddler-body h1:before {
        content: counter(h1counter) ".\0000a0\0000a0";
}
div.tc-tiddler-body h2 {
        counter-increment: h2counter;
        counter-reset: h3counter;
}
div.tc-tiddler-body h2:before {
        content: counter(h1counter)"."counter(h2counter) ".\0000a0\0000a0";
}
div.tc-tiddler-body h3:before {
        content: counter(h1counter)"."counter(h2counter) "." counter(
h3counter) ".\0000a0\0000a0";
        counter-increment: h3counter;
}



div.tc-tiddler-preview-preview {counter-reset: h1counter;}
div.tc-tiddler-preview-preview h1 {
        counter-increment: h1counter;
        counter-reset: h2counter;
}
div.tc-tiddler-preview-preview h1:before {
        content: counter(h1counter) ".\0000a0\0000a0";
}
div.tc-tiddler-preview-preview h2 {
        counter-increment: h2counter;
        counter-reset: h3counter;
}
div.tc-tiddler-preview-preview h2:before {
        content: counter(h1counter)"."counter(h2counter) ".\0000a0\0000a0";
}
div.tc-tiddler-preview-preview h3:before {
        content: counter(h1counter)"."counter(h2counter) "." counter(
h3counter) ".\0000a0\0000a0";
        counter-increment: h3counter;
}




On Thursday, 22 September 2016 19:38:09 UTC+1, c pa wrote:
>
> Phillippe,
>
> After much fiddling. . . here is the stylesheet you want:
> div.tc-tiddler-body is the css selector for the tiddler content display 
> area
> div.tc-tiddler-preview-preview is the css selector for the preview pane 
> when editing a tiddler
>
> div.tc-tiddler-body, div.tc-tiddler-preview-preview {counter-reset: 
> h1counter;}
> div.tc-tiddler-body, div.tc-tiddler-preview-preview h1 {
>         counter-increment: h1counter;
>         counter-reset: h2counter;
> }
> div.tc-tiddler-body, div.tc-tiddler-preview-preview h1:before {
>         content: counter(h1counter) ".\0000a0\0000a0";
> }
> div.tc-tiddler-body, div.tc-tiddler-preview-preview h2 {
>         counter-increment: h2counter;
>         counter-reset: h3counter;
> }
> div.tc-tiddler-body, div.tc-tiddler-preview-preview h2:before {
>         content: counter(h1counter)"."counter(h2counter) ".\0000a0\0000a0";
> }
> div.tc-tiddler-body, div.tc-tiddler-preview-preview h3:before {
>         content: counter(h1counter)"."counter(h2counter) "." 
> counter(h3counter) ".\0000a0\0000a0";
>         counter-increment: h3counter;
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/db6508f2-8717-4637-9af9-87e7fde4e57b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to