>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

Jean-Marc> A typical latex example is

Jean-Marc> \def\thechapter{\arabic{chapter}}
Jean-Marc> \def\thesection{\thechapter.\arabic{section}}
Jean-Marc> \def\subsection{\thesection.\arabic{subsection}}

To follow up on my proposal. First, I agree with john that we should
not uglify layout files, and I'd rather see a syntax like
$$arabic(section) consistent with what we have elsewhere.

This means that counters definition could look like

Counter
        Name                 chapter
        String               "$$arabic(chapter)"
End

Counter
        Name                 section
        Within               chapter
        String               "$$the(chapter).$$arabic(section)"
End

Counter
        Name                 subsection
        Within               section
        String               "$$the(section).$$arabic(subsection)"
End

Here $$the(foo) is the String output of counter foo.

Of course, this is a bit ugly because I followed closely the latex
spec. We could also define in the counter whether it should use
arabic, latin, etc. We will though have a problem with appendices.

JMarc

Reply via email to