
On Sat, 14 Apr 2007 10:45:21 -0600
"Idris Samawi Hamid"
Hi,
Thanks for the wonderful guidance! See below:
On Sat, 14 Apr 2007 07:34:59 -0600, Wolfgang Schuster
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]%
Hi Idris, you have to make the change in core-sec.tex, id is not possible to redefine them within a local file, because the section commands are when you make the format files.
? =============
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)
Not realy two commands, only a delimiter that tells TeX to read everything from \startfoonote till \stopfootnote, you can use it also as prevent eating the following space, e.g., \def\TEX/{\TEX} Text \TEX/ text \bye
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?
I will send you a patched core-sec and core-not offlist, because they are to big for the list.
Thank you again, Wolfgang!
Best Idris
Wolfgang