Thu Nov 16 02:14:11 CET 2006

On Wed, 15 Nov 2006, Hans Hagen wrote:

>> On Tue, 14 Nov 2006, Hans Hagen wrote:
>>
>>> Jeff Smith wrote:
>>>>
>>>>
>>>>
>>>>> I need this functionality for a project (IEEE conference style), so
>>>>> here is hack to get the feature. The referencing also works.
>>>>>
>>>>> Use with caution, can break existing macros.
>>>>>
>>>>
>>>> Wow, thanks a lot! This works as expected. In what situation can it
>>>> break existing macros? I intend to use that extensively but in a
>>>> fairly simple document (a thesis... yeah, another one in ConTeXt!). Is
>>>> there anything I should _not_ do?
>>>>
>>> hm, can on esummarize what will break macros? (i was away for a week
>>> with time for email)
>>
>> A patch that I sent to Jeff. There is a problem with separators and
>> setuphead. I have summarized the problem and a possible patch in the
>> attached file. However, I do not know if it will break something in
>> multi-lingual documents (esp. Arabic), so I sent the patch with a
>> disclaimer.
> i took a quick look at it; the problem is that it will mess up other things; the period in fullsectionnumber is a placeholder that will be replaced later on; the actual code where things happen in \doseparatednumber and it's not that easy to hook level dependent separators in there
>
> (i will reimplement sectionnumbering some day soon due to some other pending issues)
>
> anyhow, here's another approach:
> [snip]

This does not work with references, \in[ref] still gives . as the
separator. Consider IEEE's journal and conference requirements

In the head only show the current number

Section        I.
Subsection     B.
Subsubsection  3)
paragraph      a)

While refereing to a section, use

Section       I
Subsection    I-A
subsubsection I-A.1
paragraph     I-A.1.a

The first part is easy

\setupsection[section-3][bodypartconversion=Romannumerals]
\setupsection[section-4][bodypartconversion=Character,
previousnumber=no]
\setupsection[section-5][bodypartconversion=numbers,
previousnumber=no]
\setupsection[section-6][bodypartconversion=character,
previousnumber=no]

[numbercommand={\groupedcommand{}{.}}]