Command/setuplist

From ConTeXt wiki
< Command
Revision as of 19:19, 9 July 2013 by Zenlima (talk | contribs)

\setuplist

Syntax

\setuplist[...,...,...][...,...=...,...]
[...,...,...] name
state start stop
alternative a b c ... none command
coupling on off
criterium section local previous current all
pageboundaries list
style normal bold slanted boldslanted type cap small... command
numberstyle normal bold slanted boldslanted type cap small... command
textstyle normal bold slanted boldslanted type cap small... command
pagestyle normal bold slanted boldslanted type cap small... command
color name
numbercolor name
command threearguments
numbercommand oneargument
textcommand oneargument
pagecommand oneargument
interaction sectionnumber text pagenumber all
before command
after command
inbetween command
left text
right text
label yes no
prefix yes no none
pagenumber yes no
headnumber yes no
sectionnumber yes no
aligntitle yes no
margin dimension
width dimension fit
height dimension fit broad
depth dimension fit broad
distance dimension
separator text
stopper text
symbol none 1 2 3 ...
expansion yes no command
maxwidth dimension
[...,...=...,...] see \framed


Description

interaction: what part of content line should be interactive if \setupinteraction[state=start].

List layout

The overall layout of the list is determined by the alternative key. The alternatives a,b,c, etc. and a few more are predefined. The most flexible solution to implement a custom layout is to define a new custom one which can be set as argument to alternative, see \definelistalternative.

Comment

Default criterium is LOCAL for newly defined list. That can cause strange empty \placelist.


Example

\definelist[Reprints][criterium=all]

\starttext
  \section{Sec 1}
  \writetolist[Reprints]{1.}{List entry A}
  \subsection{Subsec 1}
  \writebetweenlist[Reprints]{\hrule}
  \writetolist[Reprints]{2.}{List entry B}
  \completelist[Reprints]
\stoptext


See also

\definelistalternative

Help from ConTeXt-Mailinglist/Forum

All issues with: