Hi,
Thanks for the wonderful guidance! See below:
On Sat, 14 Apr 2007 07:34:59 -0600, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
> Just add:
>
> \setvalue{\e!start#1}##1[##2]%
> {\getparameters[\??se\??se#1][\c!ref=,\c!title=,##2]%
> \getvalue{#1}[\getvalue{\??se\??se#1\c!ref}]{\getvalue{\??se\??
> se#1\c!title}}}% \setvalue{\e!stop#1}{\relax}
>
> \startsetion[ref=...,title=...]
> ...
> \stopsection
>
> for Tacos version.
I did a \unprotect-\protect macro with just the \dododefinehead macro.
=============
\starttext
\startchapter[ref=,title=Chapter]{Test}
text
\stopchapter
\stoptext
=============
which gives the error
=============
! Parameters must be numbered consecutively.
<to be read again>
##
l.133 \setvalue{\e!start#1}##
1[##2]%
?
=============
>
> or add:
>
> \setvalue{\e!start#1}{\getvalue{#1}}%
> \setvalue{\e!stop#1}{\relax}
>
> for Patricks version.
>
> \startsection[reference]{title}
> ...
> \stopsection
>
>>
>> \def\startfootnote[#1]#2%
>> {\getparameters[Footnote][#1]\footnote\bgroup#2}
>> \def\stopfootnote{\egroup{}}
>> =====================
>
> \def\startfootnote[#1]#2\stopfootnote
> {\footnote[#1]{#2}}
Wow, I did not know that you could define two commands with one \def
(TeXBook, p. 219)
> We need something in core-not that creates start/stop commands for
> everything defined with \definenote. It is not as easy as extending the
> section commands.
In the above definition the square brackets [] are mandatory even if the
argument is empty, viz
\startfootnote[]
text
\stopfootnote
Is there a way to make it optional, as with \footnote itself?
Thank you again, Wolfgang!
Best
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
dev-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/dev-context