I have some documents that use a register to keep track of items, that is then displayed in a list:
\defineregister[animals][pagenumber=no, indicator=no, before=, n=1]
\def\definegetanimal{\animals}
\define[1]\defineanimal{#1}
\starttext
\defineanimal{cat}
\defineanimal{pig}
\defineanimal{sheep}
\placeregister[animals]
\stoptext
I need to do some very simple formatting of the register, but whatever I try doesn't seem to work.
In one document, I need to display the register within a list:
\defineregister[animals][pagenumber=no, indicator=no, before=\item, n=1]
\def\definegetanimal{\animals}
\define[1]\defineanimal{#1}
\starttext
\defineanimal{cat}
\defineanimal{pig}
\defineanimal{sheep}
\startitemize[n]
\placeregister[animals]
\stopitemize
\stoptext
In another document, I need each item within a list to be displayed on its own on the page (i.e. a page break placed afterwards):
\defineregister[animals][pagenumber=no, indicator=no, before=, n=1, after=\pagebreak]
\def\definegetanimal{\animals}
\define[1]\defineanimal{#1}
\starttext
\defineanimal{cat}
\defineanimal{pig}
\defineanimal{sheep}
\placeregister[animals]
\stoptext
Neither of these worked, and I can't find any other \setup
command that helps configure the appearance of the items appearing within the register's list.
How can I format the items within a register in ConTeXt?