Re: [NTG-context] \placelist is influensed by \completeregister ??

2005-08-01 Thread Vit Zyka

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


Re: [NTG-context] \placelist is influensed by \completeregister ??

2005-07-30 Thread Taco Hoekwater

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


[NTG-context] \placelist is influensed by \completeregister ??

2005-07-29 Thread Vit Zyka

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
===

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