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

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to