\stopsetups
\starttext
\starttitle[title={Tabulated Table of Contents}]
\placelist[chapter]
\blank[2*big]
\determinelistcharacteristics[chapter]
\startluacode
local result = structures.lists.result
context.bTABLE()
for i=1,#result do
,
after=\directsetup{libraryentries}]
\startsetups[libraryentries]
\determinelistcharacteristics[Library]
\ifnum\structurelistsize=0
\startframed[frame=off,width=\textwidth,height=\dimexpr\textheight-\strutdp\relax,align={middle,lohi
,height=\dimexpr\textheight-\strutdp\relax,align={middle,lohi}]
\placeheadtext[Library]
\stopframed
\page
\stopsetups
\newconditional\libraryentries \settrue\libraryentries
\startsetups[libraryentries]
\determinelistcharacteristics[Library
}]
\placeheadtext[Library]
\stopframed
\page
\stopsetups
\newconditional\libraryentries \settrue\libraryentries
\startsetups[libraryentries]
\determinelistcharacteristics[Library]
\ifnum\structurelistsize=0
\startframed[frame=off,width
.
%\setuphead[part][placehead=yes,after=\directsetup{chapterentries}]
\setuphead[part][placehead=empty,after=\directsetup{chapterentries}]
\startsetups[chapterentries]
\determinelistcharacteristics[chapter]
\ifcase\structurelistsize
No chapter in this part.
\or
One chapter in this part
use the list mechanism
for this) in each volume.
%\setuphead[part][placehead=yes,after=\directsetup{chapterentries}]
\setuphead[part][placehead=empty,after=\directsetup{chapterentries}]
\startsetups[chapterentries]
\determinelistcharacteristics[chapter]
\ifcase\structurelistsize
{chapterentries}]
\setuphead[part][placehead=empty,after=\directsetup{chapterentries}]
\startsetups[chapterentries]
\determinelistcharacteristics[chapter]
\ifcase\structurelistsize
No chapter in this part.
\or
One chapter in this part.
\else
Two or more chapters
=\directsetup{chapterentries}]
\startsetups[chapterentries]
\determinelistcharacteristics[chapter]
\ifcase\structurelistsize
No chapter in this part.
\or
One chapter in this part.
\else
Two or more chapters in this part.
\fi
\stopsetups
\starttext
\dorecurse{4}
{\startpart[title=Part
On Thu, Oct 17 2013, Hans Hagen wrote:
\determinelistcharacteristics[section][criterium=text]
\ifnum\structurelistsize=1 ... \fi
Thanks. Now I've found another example on the mailing list:
\determinelistcharacteristics[section][criterium=all]
number of sections: \utilitylistlength
That works
\scratchboxtwo\hbox{\currentlistentrynumber \quad
\currentlistentrytitle}
\determinelistcharacteristics[section]
\ifnum\listlength=0
\box\scratchboxone
\else
\box\scratchboxtwo
\fi
\par
\stopsetups
\starttext
\completecontent
\chapter{Chapter 1}
\section{Section 1}
\chapter
]
\determinelistcharacteristics[names][settings]
# \digits
\disableinteractionmenu[position|name][references]
# \disablemode
# \doglobal
# \dogotopar
# \doif
# \doifcommon
# \doifcommonelse
# \doifdefined
# \doifdefinedelse
# \doifelse
# \doifelsenothing
# \doifelsevalue
# \doiffieldelse
# \doifflagged
# \doifinset
11 matches
Mail list logo