ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Mike Cooper <mike@murchisondrillingschools.com>
Subject: Re: spacing before items
Date: Wed, 17 Jun 2020 23:14:46 +0200	[thread overview]
Message-ID: <9949033c-c88a-965f-20bb-14917c339971@xs4all.nl> (raw)
In-Reply-To: <SN6PR11MB257609C6F641763AB22E5E72BD9A0@SN6PR11MB2576.namprd11.prod.outlook.com>

On 6/17/2020 11:03 PM, Mike Cooper wrote:
> OK.  I'm not sure how I'm supposed to guess that.  I am a rank beginner and while there are breakthroughs now and then, frustration is still the main thing I experience trying to learn/use ConTeXt...
> 
> In any case, my original question is still not solved.  The before/inbetween keys add space everywhere.  I only want space between top-level items.
> 
> Here is something like what I need, with the spacing exaggerated:
> 
> 
> 1.  Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question… Multi-line, involved question…
> What’s the answer?
> 
> a. An answer that may well wrap onto a second or even third line but is usually half a line or less.
> b. By the time the data has been accurately analyzed, critical failure has already occurred.
> c. Seven bands must be hired to adequately bring the funk.
> 
> 
> 
> 2.  Another question with detailed data and information and scenario. Another question with detailed data and information and scenario. Another question with detailed data and information and scenario. Another question with detailed data and information and scenario. Another question with detailed data and information and scenario. Another question with detailed data and information and scenario. Another question with detailed data and information and scenario. Another question with detailed data and information and scenario.
> What’s the correct action to take?
> 
> a. Create a spreadsheet which compiles the salient data into a logical order/layout, perform calculations and analysis then search the internet for a solution.
> b. Immediately report the data to the supervisory team.
> c. File the data in the relevant, appropriate locations, complete a standardized company report form, notify all vested parties, raise the flags, abandon ship.
> 
> 
> 
> 3.  Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same. Yet another of the same.
> What would you do?
> 
> a. Run
> b. Walk
> c. Crawl
> 
> 
> I want the top-level chunks to be visually separated for better readability, etc.

\defineenumeration
   [question]
   [text=,
    alternative=serried,
    distance=1em,
    width=fit,
    before={\testpage[4]\blank[3*big]},
    after={\blank}]

\starttext

\dorecurse{10}{
     \startquestion
         \input ward
     \stopquestion

     \startitemize[packed,a]
         \startitem \input ward \stopitem
         \startitem \input ward \stopitem
         \startitem \input ward \stopitem
     \stopitemize
}

\stoptext


> -----Original Message-----
> From: ntg-context [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Wolfgang Schuster
> Sent: Wednesday, June 17, 2020 2:45 PM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] spacing before items
> 
> Mike Cooper schrieb am 17.06.2020 um 21:50:
>> I really should have fiddled with this before thanking you, Wolfgang.  I was focused on catching up on email etc. this morning.
>>
>> Thanks for trying though!
>>
>> Your "answer" is pretty much coded code to me.  I don't understand it and don't have the first notion of how to implement it in my file.  For one thing,  I have no clue what "ttbf" means.  Can't find it on the wiki or in the manuals.  Google says it's the Texas Teen Book Festival but I'm guessing that ain't it.  ???
> 
> My example shows which key is used for which space around each item.
> 
> To insert vertical space you have to use the \blank command and set a
> value in the optional argument, e.g. \blank[1cm].
> 
> To insert now a space of 1cm before the first item you need the "before"
> key with \blank as argument:
> 
>       \setupitemgroup[mdshw][1][before={\blank[1cm]}]
> 
> Wolfgang
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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	other threads:[~2020-06-17 21:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-16 17:51 Mike Cooper
2020-06-16 19:13 ` Wolfgang Schuster
2020-06-17 15:04   ` Mike Cooper
2020-06-17 19:50   ` Mike Cooper
2020-06-17 20:26     ` Henning Hraban Ramm
2020-06-17 20:34       ` Mike Cooper
2020-06-17 20:44     ` Wolfgang Schuster
2020-06-17 21:03       ` Mike Cooper
2020-06-17 21:14         ` Hans Hagen [this message]
2020-06-16 19:18 ` Tomas Hala
2020-06-17 15:13   ` Mike Cooper
2020-06-23 21:18     ` David Rogers
2020-06-23 22:00       ` Mike Cooper
2020-06-24  6:49         ` Hans Hagen
2020-06-24 17:41           ` Mike Cooper
2020-06-24 20:19             ` Henning Hraban Ramm
2020-06-24 21:11               ` Mike Cooper
2020-06-24 21:42                 ` Henning Hraban Ramm
2020-06-25 18:28         ` David Rogers
2020-06-29 14:46           ` Mike Cooper
     [not found] <mailman.342.1592329885.1283.ntg-context@ntg.nl>
2020-06-16 19:29 ` jkitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9949033c-c88a-965f-20bb-14917c339971@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=mike@murchisondrillingschools.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).