Re: [NTG-context] nested itemize in margin

2013-10-24 Thread Wolfgang Schuster

Am 24.10.2013 um 00:15 schrieb John Kitzmiller :

> 
> To enumerate answer blanks in the right margin to match the question, thanks 
> to Marco:
> 
> \define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrules[n=1]}}

\defineconversionset[myitemize][n,a][n]

\define\ansblank
  {\inright
 
{\simplealignedbox{3em}{flushright}{\convertedcounter[itemgroup:itemize][numberconversionset=myitemize].}
  \thinrules[n=1]}}

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] nested itemize in margin

2013-10-23 Thread John Kitzmiller

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 problem2a. 
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
___