# [NTG-context] What is the proper way to define many different list types in a document?

Tue Jan 25 08:15:22 CET 2022

On Tue, 25 Jan 2022, Joel via ntg-context wrote:

> I have about several different types of list that reoccur multiple times in my documents. Though I tried to keep things simple, by just defining the type when it appears, strange glitches appear. For instance, I have one that uses the ☞ (pointing hand) logo, and sometimes that randomly appears in the wrong lists, for reasons I cannot understand.
>
> Below is how I'm defining my lists. I have about a dozen more, this is a sample. Is there some more robust and consistent manner in which I should be defining them, so the settings from one type don't spill over into the other types?
> --Joel
>
> %prompt
>
> \definesymbol[bighand][{{☞}}]
>
> \define[1]\prompt{%
>     \setupitemize[symbol=bighand]
>     \startitemize
>         {\it #1}
>     \stopitemize
> }%

This is a global definition. So, once this macro is used, symbol=bighand for all itemize. What you can use instead is:

\define[1]\prompt{%
\startitemize[symbol=bighand]
{\it #1}
\stopitemize
}%

or even better:

\defineitemgroup[prompt][symbol=bighand,style=italic]

...

\startprompt
\item
\stopprompt

> %written answer (produces some lines after the question for writing an answer)
>
> \define[1]\writingbox{%
>     \dorecurse{#1}{%
>         \hairline%
>     }
> }

There is also: https://wiki.contextgarden.net/Command/fillinrules