[EMAIL PROTECTED] wrote:
> Thanks Aditya for your suggestion.
> 
> The problem is that I already have about 200 separate documents in this
> format:
> 
> \startCasus[casus-166][Title: my title]
> Text
> \stopcasus
> 
> Does anyone have an other idea?
>
Hi Robert,

I just tried your minimal example and it works here (min. distribution
with latest ConTeXt on XP).

Peter


> Regards,
> 
> Robert
> 
> 
> Op Za, 3 maart, 2007 7:37 pm schreef Aditya Mahajan:
>> On Sat, 3 Mar 2007, [EMAIL PROTECTED] wrote:
>>
>>
>>> Dear Friends,
>>>
>>>
>>> For about a year and a half I have been using Taco's macro for
>>> theorems. I use it in the following way:
>>>
>>>
>>> \startCasus[casus-166][Title: my title]
>>> text text text \stopCasus
>>>
>>>
>>> The result ought to be:
>>>
>>>
>>> Casus 1. Title: my title
>>>
>>>
>>> The macro has been working fine, but recently it does not print the
>>> title anymore, leaving only Casus 1. I badly need it working for my
>>> courses.
>>>
>>> Has anyone any suggestions?
>>>
>> Hi Robert,
>>
>>
>> I have not looked into Taco's code carefully. But at first glance I do
>> not see why it should not work. I can not test it right now.
>>
>> However, I am working on enhancing enumerations to have all the
>> features needed for theorems. With what I have right now, you can do
>>
>> \defineenumeration[Casus][title=yes,titledistance=1ex,titleleft={Title:
>> },titleright=]
>> after which you can say,
>>
>> \startCasus[casus-166]{my title} to get the same result.
>>
>>
>> You can also get end-of-proof markers. This is something that I am
>> working on right now, but if you want to test it, I can send you the files.
>>
>>
>> Aditya
>> _______________________________________________
>> ntg-context mailing list [email protected]
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>
> 
> 
> _______________________________________________
> ntg-context mailing list
> [email protected]
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

\unprotect

 \def\dododefinecomplexenumeration#1#2#3%
   {\setvalue{\e!start#1#2}%
    [EMAIL PROTECTED] dostart#1#2\endcsname}%
    \setvalue{dostart#1#2}[##1][##2]%
    {\begingroup\setvalue{#2title}{##2}\getvalue{\e!start#1i#2}[##1]}%
    \setvalue{\e!stop#1#2}{\getvalue{\e!stop#1i#2}\endgroup}}

 \def\dodefinecomplexenumeration[#1][#2]%
   {\defineenumeration[i#1]
    [\c!text=#1,\c!stopper=\getvalue{do#1title},#2]%
     \setvalue{do#1title}%
       {\doifnotemptyvalue{#1title}{~(\getvalue{#1title})}}%

 \dododefinecomplexenumeration{}{#1}{#2}%
 \dododefinecomplexenumeration{\v!sub}{#1}{#2}%
 \dododefinecomplexenumeration{\v!sub\v!sub}{#1}{#2}%
 \dododefinecomplexenumeration{\v!sub\v!sub\v!sub}{#1}{#2}}
 \def\definecomplexenumeration{\dodoubleempty\dodefinecomplexenumeration}

\protect

\definecomplexenumeration[Casus]

\starttext

\startCasus[casus-166][Title: my title]
text text text
\stopCasus


\stoptext
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to