From: "śrīrāma via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl, Damien Thiriet <damien@thiriet.web4me.fr>
Cc: śrīrāma <citturs@gmail.com>
Subject: Re: right item marks for associative questions?
Date: Tue, 12 Apr 2022 11:18:12 +0530 [thread overview]
Message-ID: <5811866.lOV4Wx5bFT@sreeramtplt> (raw)
In-Reply-To: <YlR3bbskRuDJCQZJ@valencay.home>
On 4/12/22 12:16 AM Damien Thiriet via ntg-context wrote:
> Hi!
>
> I am used to giving associative questions to my pupils,
> something like
>
> * connect the author with its ideas
>
> Friedrich Nietzsche * * "God is dead"
> Woody Allen * * "Nietzsche is dead, God is dead
> and I don't feel so good"
> God * * "Nietzsche is dead"
>
> I design it as a two-cells xtable with itemized lists inside.
> How can I have the item mark on the right side?
If you are certain that the there will be no multi-line item (i.e. item text is short enough that it fits in slightly less than half of textwidth) you can use an enumeration, and put the contents inside a two-column layout:
%%% start example-1
\define[1]\aitemcmd{\inframed[width=1cm,align=flushright,frame=off]{(#1)}}
\defineenumeration
[aitem]
\setupenumeration
[aitem]
[text=,
alternative=empty,
headstyle=normal,
width=fit,
align=flushright,
closesymbol={\getnumber[aitem]},
closecommand=\aitemcmd]
\starttext
\startcolumns[distance=1cm]
\startitemize[n]
\dorecurse{5}{
\startaitem
whatever left
\stopaitem
}
\stopitemize
\startitemize[a][left=(,right=),stopper=,width=1cm]
\dorecurse{5}{
\startitem
whatever right
\stopitem
}
\stopitemize
\stopcolumns
\stoptext
%%% stop example-1
[You can tweak the alternative, align, closesymbol, closecommand to get exactly what you want; the example above will give a somewhat symmetric layout]
More generally, if the text can multi-line, then I think TABLE (with proper alignment options) might be better-suited:
%%% start example-2
\define\startItemize{
\bTABLE\setupTABLE[frame=on,align=lohi]
\setupTABLE[2][distance=1cm,align={flushright,lohi}]
\setupTABLE[2,3][width=0.05\textwidth]
\setupTABLE[1][align=flushright,width=0.4\textwidth]
\setupTABLE[4][align=flushleft,width=0.4\textwidth]
}
\define\stopItemize{\eTABLE}
\define[1]\metI{\bTR \bTD #1 \eTD \bTD (\character{\currentTABLErow}) \eTD}
\define[1]\Item{\bTD (\currentTABLErow) \eTD \bTD #1 \eTD \eTR}
\starttext
\startItemize
\dorecurse{5}{
\metI {whatever here on the left}
\Item {whatever here on the right}
}
\stopItemize
\stoptext
%%% stop example-2
Best,
Sreeram
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-04-12 5:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-11 18:46 Damien Thiriet via ntg-context
2022-04-11 20:18 ` Pablo Rodriguez via ntg-context
2022-04-11 22:04 ` Jeong Dal via ntg-context
2022-04-12 5:48 ` śrīrāma via ntg-context [this message]
2022-04-12 18:46 Damien Thiriet via ntg-context
2022-04-12 19:58 ` Wolfgang Schuster via ntg-context
2022-04-15 8:54 Damien Thiriet via ntg-context
2022-04-15 12:52 ` śrīrāma 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=5811866.lOV4Wx5bFT@sreeramtplt \
--to=ntg-context@ntg.nl \
--cc=citturs@gmail.com \
--cc=damien@thiriet.web4me.fr \
/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).