ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: John Kitzmiller <kitz@inradius.net>
To: ntg-context@ntg.nl
Subject: nested itemize in margin
Date: Wed, 23 Oct 2013 18:15:58 -0400	[thread overview]
Message-ID: <DCA6DE72-7DAC-4DD7-8DDD-42C646D8E3F5@inradius.net> (raw)


To enumerate answer blanks in the right margin to match the question, thanks to Marco:

\define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrules[n=1]}}
\setupitemgroup [itemize] [n,style=bold,right=\ansblank]

I am trying to augment this to handle nested itemizations so that the \getnumber in the right margin is from the parent itemize but the "\getletter" is from the child:

\starttext
\startitemize[n]
\item First
\item Second               
  \startitemize[a]
    \item Related problem   % Would like this to show 2 a. before the marginrule
    \item Related question  % Would like this to show 2 b. before the marginrule
  \stopitemize
\item Third
\stopitemize
\stoptext

Desired output:

1. First                  1. _________

2. Second
    a. Related problem    2a. ________
    b. Related question   2b. ________

3. Third                  3. _________


My attempts have been to define a new "blank" and use [conversion=Character] along with stabs from cont-eni.pdf, but I am flailing and failing.

Thanks for any help,
John
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2013-10-23 22:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23 22:15 John Kitzmiller [this message]
2013-10-24  7:01 ` Wolfgang Schuster

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=DCA6DE72-7DAC-4DD7-8DDD-42C646D8E3F5@inradius.net \
    --to=kitz@inradius.net \
    --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).