ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Christoph Reller <christoph.reller@gmail.com>
To: ntg-context <ntg-context@ntg.nl>
Subject: Nested modes and itemizations
Date: Thu, 17 Nov 2016 10:21:48 +0000	[thread overview]
Message-ID: <CAO8LnPFHVtDZa3DEmBHf3yQu-UE3yqfjG2axRq55Yj36-L0XXA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 737 bytes --]

Hi,

I have the following minimal not-working example:

\starttext
\startitemize
\item One
  \startmode[modeA]
  \item Two
    \startitemize
      \startmode[modeB] % <- this
      \item Two A       % <- does
      \stopmode         % <- not work
      % \doifmode{modeB}{\item Two A} % <- this works
    \item Two B
    \stopitemize
  \stopmode
\stopitemize
\stoptext

Note that both modeA and modeB are not defined and hence not enabled.
When compiled with the latest version of ConTeXt MkIV, I get: Missing
number, treated as zero.
However, If I use the inline version \doifmode instead of the environment
version \startmode \stopmode, then the example compiles without problem.

I am afraid but this may be a bug.

Cheers,
Christoph

[-- Attachment #1.2: Type: text/html, Size: 1118 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2016-11-17 10:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-17 10:21 Christoph Reller [this message]
2016-11-17 12:14 ` Hans Hagen
     [not found] <mailman.434.1479412367.2018.ntg-context@ntg.nl>
2016-11-18  7:33 ` Christoph Reller

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=CAO8LnPFHVtDZa3DEmBHf3yQu-UE3yqfjG2axRq55Yj36-L0XXA@mail.gmail.com \
    --to=christoph.reller@gmail.com \
    --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).