ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Cumulating numbered lists
Date: Tue, 23 Apr 2013 16:31:39 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1304231630170.25233@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <CAFMOkGWk8Py_37kEkNPHeq97dpJ8PYVHeLD3VULhy-XYuY_Y-g@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 307 bytes --]

On Tue, 23 Apr 2013, Alan Bowen wrote:

> OK. Thanks for the explanation, Wolfgang. I will await the day when the
> repeat key can be disabled.

If you are not interested in re-enabling the repeat key in a nested 
itemize, then the attached example may work (not tested beyond the minimal 
example)


Aditya

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: TEXT/x-tex; name=test.tex, Size: 708 bytes --]

\unprotect
\setvalue{\??itemgroupkeyword\v!no\v!repeat   }{\setfalse\c_strc_itemgroups_repeat}

\def\strc_itemgroups_check_for_repeated
  {\ifconditional\c_strc_itemgroups_repeat
      \ifx\m_strc_itemgroups_repeat_start\empty
        \edef\m_strc_itemgroups_repeat_start{\currentitemlevel}%
      \fi
   \else
      \let\m_strc_itemgroups_repeat_start\empty
   \fi}
\protect

\setupitemgroup[itemize][broad,joinedup,packed,autointro]
\starttext
\setupitemize[itemalign=flushright]
\startitemize[n,repeat]
  \item level a
    \startitemize[n,norepeat]
      \item level b
        \startitemize[A]
          \item level c
        \stopitemize
    \stopitemize
\stopitemize
\stoptext

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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-04-23 20:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 17:57 Alan Bowen
2013-04-18 18:07 ` Wolfgang Schuster
2013-04-18 18:43   ` Alan Bowen
2013-04-19 11:42     ` Alan Bowen
2013-04-22 21:59       ` Alan Bowen
2013-04-23 10:20         ` Wolfgang Schuster
2013-04-23 20:12           ` Alan Bowen
2013-04-23 20:31             ` Aditya Mahajan [this message]
2013-04-23 21:23               ` Hans Hagen
2013-04-26 12:46                 ` Alan Bowen
  -- strict thread matches above, loose matches on Subject: below --
2012-12-06  5:55 Cumulating Numbered Lists Malte Stien
2012-12-06  6:07 ` Wolfgang Schuster
2012-12-07 11:09   ` Sietse Brouwer
2012-12-07 12:54     ` Wolfgang Schuster
2012-12-07 16:25       ` Sietse Brouwer

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=alpine.LNX.2.02.1304231630170.25233@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).