Re: [NTG-context] problems with complexenumeration

2007-03-04 Thread r . ermers
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?

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 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problems with complexenumeration

2007-03-04 Thread r . ermers
Hi there,

Thanks for all suggestions.

Based on the message that the file processed normally, I thought I had to
update to a the most recent version of Context.

This entailed downloading a large set of new lm fonts.

Now the files process normally, apart from the \dots command...

Regards,

Robert


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problems with complexenumeration

2007-03-04 Thread Aditya Mahajan
On Sun, 4 Mar 2007, [EMAIL PROTECTED] wrote:

 Hi there,

 Thanks for all suggestions.

 Based on the message that the file processed normally, I thought I had to
 update to a the most recent version of Context.

 This entailed downloading a large set of new lm fonts.

 Now the files process normally, apart from the \dots command...

What error do you get?

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] problems with complexenumeration

2007-03-03 Thread r . ermers
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?

Kind regards,

Robert

 \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]



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problems with complexenumeration

2007-03-03 Thread 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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context