From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: temporarily disabling enumeration numbering
Date: Mon, 05 Apr 2010 14:33:38 +0200 [thread overview]
Message-ID: <4BB9D8A2.1020401@googlemail.com> (raw)
In-Reply-To: <u2sa920c95c1004050504zc4cdc860ve90c6640f9e8d878@mail.gmail.com>
Am 05.04.10 14:04, schrieb Vianney le Clément:
> Hello again,
>
> Section 10.3 of the manual says that one can disable numbering for one
> item of an enumeration by putting [-]. However, this seems to affect
> the following item instead of the current one. For example,
>
> \defineenumeration[MyEnum][location=left]
> \starttext
> \MyEnum First\par
> \MyEnum[-] Second\par
> \MyEnum Third\par
> \MyEnum Fourth\par
> \stoptext
>
> removes the number of the third line, instead of the second one.
>
A perfect example.
\unprotect
%\def\@@makedescription[#1]#2%
% {\postponenotes % new, assumes grouping
% \doenumerationcheckconditions
%
\dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]%
% \@@dostartdescriptionindeed}
\def\@@makedescription[#1]#2%
{\postponenotes % new, assumes grouping
\doenumerationcheckconditions{#1}%
\dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]%
\@@dostartdescriptionindeed}
\x1f\x1e
%\def\doenumerationcheckconditions
% {\doifelse{\descriptionparameter\c!number}\v!yes
% {\ifx\currentdescriptionreference\enumerationdisablenumbersignal
% \setfalse\enumerationnumberenabled \else
\settrue\enumerationnumberenabled
% \fi}%
% {\setfalse\enumerationnumberenabled}%
% \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}}
\def\doenumerationcheckconditions#1%
{\doifelse{\descriptionparameter\c!number}\v!yes
{\doifelse{#1}\enumerationdisablenumbersignal\setfalse\settrue\enumerationnumberenabled}
{\setfalse\enumerationnumberenabled}%
\edef\currentenumerationcoupling{\descriptionparameter\c!coupling}}
\protect
\defineenumeration[MyEnum][location=left]
\starttext
\MyEnum First\par
\MyEnum[-] Second\par
\MyEnum Third\par
\MyEnum Fourth\par
\stoptext
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-04-05 12:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 12:04 Vianney le Clément
2010-04-05 12:33 ` Wolfgang Schuster [this message]
2010-04-05 12:48 ` Vianney le Clément
2010-04-05 13:39 ` Vianney le Clément
2010-04-05 13:52 ` 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=4BB9D8A2.1020401@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).