On Fri, Sep 12, 2003 at 03:57:17PM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "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

That's the wrong place, the 'string' part should go to the layout
definition, not to the counter. It's not uncommon that multiple layouts
share the same counter  (Theorem/Corollary) etc.

Anyway. 

Would you object to

      "\arabic{chapter}"

      "\the{chapter}.\arabic{section}"

?
 
> 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.

With your proposal yes, not with the 'string in layout' scheme as shown
by the patch.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to