* \placelist is influensed by \completeregister ??
@ 2005-07-29 20:14 Vit Zyka
2005-07-30 8:51 ` Taco Hoekwater
0 siblings, 1 reply; 3+ messages in thread
From: Vit Zyka @ 2005-07-29 20:14 UTC (permalink / raw)
Dear Hans, Taco, ...
I noticed strange behaviour. When I use \completeregister lists I have
defined are ignored:
------------------------------
\defineregister[letter][letters]
\definelist[somelist]
\starttext
Hello! \letter{Letter S}
\writetolist[somelist]{List entry, part A}{List entry, part B}
%\placeregister[letter]
\completeregister[letter]
\placelist[somelist]
\stoptext
---------------------------------
I discovered that the source of the bug is probably \headtext the line
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%
in the \completeregister definition. Please can somebody have a look on it?
vit
----------------------------------
\unprotect
\def\docompleteregister[#1][#2]%
{\iffirstargument
\begingroup
\edef\currentregister{#1}%
% the expansion is needed because we don't want \v!'s in the tuo
file (french)
%
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%
\placeregister[\currentregister][#2]%
\page[\v!yes]%
\endgroup
\fi}
\protect
--
=======================================================
Ing. Vít Zýka, Ph.D. TYPOkvítek
database publishing databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite
tel.: (+420) 777 198 189 www: http://typokvitek.com
=======================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \placelist is influensed by \completeregister ??
2005-07-29 20:14 \placelist is influensed by \completeregister ?? Vit Zyka
@ 2005-07-30 8:51 ` Taco Hoekwater
2005-08-01 12:07 ` Vit Zyka
0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2005-07-30 8:51 UTC (permalink / raw)
Vit Zyka wrote:
> Dear Hans, Taco, ...
>
> I noticed strange behaviour. When I use \completeregister lists I have
> defined are ignored:
Your post is a specific example of a more generic truth:
new lists are by default influenced by the sectioning commands
The solution is to disable that influence, like so:
\definelist[somelist][criterium=all]
Otherwise you get only the entries defined within the 'Letter'
section, and (in this case) there are none.
Cheers, Taco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \placelist is influensed by \completeregister ??
2005-07-30 8:51 ` Taco Hoekwater
@ 2005-08-01 12:07 ` Vit Zyka
0 siblings, 0 replies; 3+ messages in thread
From: Vit Zyka @ 2005-08-01 12:07 UTC (permalink / raw)
Taco Hoekwater wrote:
> Vit Zyka wrote:
>
>> Dear Hans, Taco, ...
>>
>> I noticed strange behaviour. When I use \completeregister lists I have
>> defined are ignored:
>
>
> Your post is a specific example of a more generic truth:
>
> new lists are by default influenced by the sectioning commands
>
> The solution is to disable that influence, like so:
>
> \definelist[somelist][criterium=all]
>
> Otherwise you get only the entries defined within the 'Letter'
> section, and (in this case) there are none.
Ahhh, now I understand parameter criterium. Thank you Taco for
explanation. I added some notes/example about to texshow/setuplist.
vit
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-01 12:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 20:14 \placelist is influensed by \completeregister ?? Vit Zyka
2005-07-30 8:51 ` Taco Hoekwater
2005-08-01 12:07 ` Vit Zyka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).