On Mon, Sep 15, 2003 at 11:05:22AM +0200, Lars Gullik Bjønnes wrote:
> Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> | Ok, I figured out you might mean something like
> |  
> |     Counter
> |             Name               theorem
> |             LabelString        "\arabic{theorem}"
> |     End
> |  
> |     Style Theorem
> |             LabelStyle         Counter
> |             LabelCounter       theorem
> |             LabelPrefix        "Theorem "
> |     End
> |  
> |     Style Definition
> |             LabelStyle         Counter
> |             LabelCounter       theorem
> |             LabelPrefix        "Defintion "
> |     End
> 
> Se my other mail.
> 
> IMHO there should be no "Counter" LableStyle. This is just the
> contents of the label. LabelCounter should also not be explicit, but
> just part of the label.

Yes, there should be some general consolidation in theis area. Too many
label types which basically can be handled likewise.

> 
> So just "Label":
> 
>    Label "SubSection \counter{section}.\counter{subsection}"
> 
> | This would work in this case but not differ much from what we have.
> | Moreover, I cannot imagine how to make this work with
> |  
> |     Counter
> |             Name                 section
> |     End                   
> |                         
> |     Style Section         
> |             LabelStyle           Counter
> |             LabelCounter         section
> |             LabelString          "\arabic{section}"
> |             LabelStringAppendix  "\Alph{section}"
> |     End
> >
> | How would you do that?
> 
> I'd rather have the appendix counters explicit instead of reusing
> existing counters. (actually I'll go with what is easiest
> implementation wise).

Implementationwise this is handled by a single 'if' in the core. Can't
get much easier than that as there is a difference.

The only real option I see here is to have separate Styles for 'Section
in Appendix'. I am not sure this is worth the trouble, though. One
aspect is UI: The layout drop down list is already far too long for a
non-trivial layout, and having duplicated sectionning entries would make
it even longer...

> So we could then have a second counter:
> 
>    Counter
>         Name            AppendixSection
>         Style           Alph
>    End
> 
>    Style Section
>          LabelStringAppendix "\counter{AppendixSection}"
>    End
> 
> | [And why are we looking for a replacement for an existing and
> | working scheme anyway?]
> 
> Cleaning up and moving things out of core and into layout files?

Would be nice, but I can't see how your proposal helps.

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