[NTG-context] spacing before items

Mike Cooper mike at murchisondrillingschools.com
Wed Jun 17 17:04:44 CEST 2020


Thanks Wolfgang!

1. Where can this solution be found?  (wiki or elsewhere)

2. I'm guessing that you're saying that my \startsection should have [title={...}] instead of what I gave?



-----Original Message-----
From: ntg-context [mailto:ntg-context-bounces at ntg.nl] On Behalf Of Wolfgang Schuster
Sent: Tuesday, June 16, 2020 1:14 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] spacing before items

Mike Cooper schrieb am 16.06.2020 um 19:51:
> Hello list,
> 
> Another very simple issue—no doubt the answer is right in front of me 
> but I can’t find it or figure it out…
> 
> (Please let me know where it is!)
> 
> I want more space before each top-level item.MWE:
> 
> \defineitemgroup[mdshw][levels=2]
> 
> \setupitemgroup[mdshw][1][n]
> 
> \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]
> 
> \starttext
> 
> \startsection{First Section}

\startsection[title={...}]


The first entry uses the "before" value while inner entries use "inbetween".

\starttext

\setupitemgroup
   [itemize][1]
   [   before={\endgraf{\ttbf    [before]}\endgraf},
    inbetween={\endgraf{\ttbf [inbetween]}\endgraf},
        after={\endgraf{\ttbf     [after]}\endgraf}]

\startitemize
     \startitem Choose the correct answer.
         \startitemize
         \item This one
         \item This one
         \stopitemize
     \stopitem
     \startitem Choose the correct answer.
         \startitemize
         \item This one
         \item This one
         \stopitemize
     \stopitem
\stopitemize

\stoptext

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

maillist : ntg-context at 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
___________________________________________________________________________________


More information about the ntg-context mailing list