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: label in enumerations broken?
Date: Sun, 19 Feb 2012 18:38:10 +0100 [thread overview]
Message-ID: <EC432FE6-FF69-4CCF-B1B0-A6AAE1481A33@googlemail.com> (raw)
In-Reply-To: <5C0CC9D5-0CFB-4A59-8A8C-0C8EBB7E5BE8@imt.uni-luebeck.de>
Am 19.02.2012 um 14:47 schrieb Andreas Mang:
> Dear all,
>
> As I have learned from the mailing list, there have been some changes in the enumeration / description environment. Did I miss something (i.e. has there also been a change in how to define the labels for the description / enumeration?) I have attached my prefs, a minimal example and an error message.
>
> Your help is very much appreciated.
>
> Thanks in advance,
> Andreas
>
> %============================
> % PREFS
> %============================
> % ConTeXt ver: 2012.02.18 10:50 MKIV fmt: 2012.2.18 int: english/english
> % LuaTeX, Version beta-0.70.1-2011051908 (rev 4277)
>
> %============================
> % MINIMAL EXAMPLE
> %============================
> \setupenumerations%
> [%
> alternative=hanging,%
> width=broad,%
> headstyle=bold,%
> titlestyle=bold,%
> ]%
>
> \defineenumeration[mydefinition]%
> [text=Definition,%
> style=italic,%
> title=yes,%
> listtext={Definition }%
> ]%
There is no need for all these comments.
> \starttext
>
> % \startmydefinition WITHOUT "[ref2mydef]" and/or the title "{The Definition}" works fine
> % note: I have added alternative instead of location as suggested in the mailing list
> % note: I have switched the title on and off and accordingly have also removed "The Definition"
>
> \startmydefinition[ref2mydef]{The Definition}
You can now write this as “\startmydefinition[reference=ref2mydef,title=The Definition]”
> Let something be defined.
>
> \stopmydefinition
>
> \stoptext
strc-enu.mkvi (move \donothing before \strc_enumerations_inject_extra_text_indeed):
\unexpanded\def\strc_enumerations_inject_extra_text
{\ifconditional\c_strc_constructions_title_state
\ctxcommand{doiflisthastitleelse("\currentconstructionmain",\currentconstructionlistentry)}
+ \donothing
\strc_enumerations_inject_extra_text_indeed
- \donothing
\fi}
strc-des.mkvi:
\unexpanded\def\strc_descriptions_start_yes_reference
+ {\ifconditional\c_strc_constructions_title_state
- {\ifconditional\c_strc_descriptions_title_state
\expandafter\strc_descriptions_start_yes_titled
\else
\expandafter\strc_descriptions_start_yes_normal
\fi}
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
___________________________________________________________________________________
prev parent reply other threads:[~2012-02-19 17:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-19 13:47 Andreas Mang
2012-02-19 17:38 ` Wolfgang Schuster [this message]
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=EC432FE6-FF69-4CCF-B1B0-A6AAE1481A33@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).