ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gavin via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Gavin <gavinpublic@comcast.net>,
	Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Subject: Re: Spacing issue in itemize
Date: Fri, 14 Jan 2022 06:52:54 -0700	[thread overview]
Message-ID: <FA82FDA5-7730-4EB1-A570-6F0730D8B8A3@comcast.net> (raw)
In-Reply-To: <96579ed4-0dcb-9ea5-174e-30cd5249d625@xs4all.nl>

Hi Hans, Aditya, and all,

Let me add another case to this discussion. For multiple choice questions, it is nice to have the columns option. However, this produces somewhat inconsistent results. In the code below, without Aditya's tweak, there is space before the choices in the first two cases, which use columns, but not the last. Aditya’s  tweak makes them more consistent.

Adding [columns, one] to the last \startchoices makes the results consistent. When doing that, I noticed that the spacing between column rows is slightly larger than the spacing between items without columns. So, I am happy using [columns, one] as a solution for multiple choice problems, just somewhat surprised by the difference.

Gavin


\starttext

%\unprotect
%\c_strc_itemgroups_spacing_mode\plusone
%\protect

\defineitemgroup[questions]
\setupquestions [1] [n]
\define\question{\item}

\defineitemgroup[choices]
\setupchoices [each] [A] [left=(, right=), width=1.7em, stopper=,]
\define\choice{\item}

Here are a few great looking multiple choice questions about colors.
\startquestions
\question What is your favorite color?
\startchoices[columns,four]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question What is your least favorite color?
\startchoices[columns]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question Toward which colors do you feel indifferent?
\startchoices
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\stopquestions
That's it for questions about colors!

\stoptext
___________________________________________________________________________________
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:[~2022-01-14 13:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 16:48 Gavin via ntg-context
2022-01-13 17:15 ` Aditya Mahajan via ntg-context
2022-01-13 21:32   ` Gavin via ntg-context
2022-01-14  8:09   ` Hans Hagen via ntg-context
2022-01-14 13:52     ` Gavin via ntg-context [this message]
2022-01-14 15:22     ` Aditya Mahajan via ntg-context

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=FA82FDA5-7730-4EB1-A570-6F0730D8B8A3@comcast.net \
    --to=ntg-context@ntg.nl \
    --cc=gavinpublic@comcast.net \
    --cc=schuster.wolfgang@googlemail.com \
    /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).