From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Alexandre Christe via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: Neste itemize in table (or vice-versa?)
Date: Sat, 20 Nov 2021 16:53:52 +0100 [thread overview]
Message-ID: <2ecbdd67-cfa6-595f-b169-d26e4646c84f@gmail.com> (raw)
In-Reply-To: <CALC5-UJwifBJz+Pea3ZrtZou4AgHMLmXFmvfMVynU-JCTi_SdQ@mail.gmail.com>
Alexandre Christe via ntg-context schrieb am 20.11.2021 um 16:19:
> Dear all,
>
> I'm trying something out in LMTX, which is to combine itemize with a
> table. Application could be to put a question and the answer in the
> next column.
>
> A minimal example would be:
>
> [...]
>
> The numbering unfortunately starts with i) instead of a). Any
> recommendation which approach shall be preferred?
Use \itemtag to display the itemize counter, the commands ensures you
get the correct value because most table environments process the cell
content multiple times which lead to wrong counters.
\starttext
\startsetups [alexandre:1]
\setupTABLE [start] [frame=off]
\setupTABLE [c] [1] [width=.3\textwidth]
\setupTABLE [c] [2] [width=.6\textwidth]
\stopsetups
\startitemize [a] [right=),stopper=]
\bTABLE[setups=alexandre:1]
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something
\eTD \eTR
\eTABLE
\stopitemize
\startsetups [alexandre:2]
\setupTABLE [start] [frame=off]
\setupTABLE [c] [2] [width=.2\textwidth]
\setupTABLE [c] [3] [width=.6\textwidth]
\stopsetups
\startitemize [a] [right=),stopper=]
\bTABLE[setups=alexandre:2]
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\eTABLE
\stopitemize
\startitemize [a] [right=),stopper=]
\starttabulate[|l|lw(.2\textwidth)|p|]
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\stoptabulate
\stopitemize
\startitemize [a] [right=),stopper=]
\starttabulate[|l|lw(.2\textwidth)|p|]
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\stoptabulate
\stopitemize
\stoptext
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
___________________________________________________________________________________
prev parent reply other threads:[~2021-11-20 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-20 15:19 Alexandre Christe via ntg-context
2021-11-20 15:53 ` Wolfgang Schuster via ntg-context [this message]
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=2ecbdd67-cfa6-595f-b169-d26e4646c84f@gmail.com \
--to=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.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).