ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco.hoekwater@wkap.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Bug in \defineenumeration
Date: Fri, 02 Apr 1999 11:24:41 +0000 (/etc/localtime)	[thread overview]
Message-ID: <14084.43257.962632.878200@localhost> (raw)
In-Reply-To: <000901be7c43$0ca44da0$0c01a8c1@worf.login-bv.com>

>>>>> "Hans" == Hans Hagen <pragma@wxs.nl> writes:

    Hans> Taco Hoekwater wrote:
    >> This is ok I think, but i'm not certain (I get an error related
    >> to numbers, but it might be something completely different).

    Hans> Getthe latest from www.pragma-ade.nl.  A few days ago I
    Hans> added a feature (cross linking enumerations was already
    Hans> supported, but I added global cross linking).

Sorry, but it is not OK. 

\doornummeren[definition][tekst=Definition]
\steldoornummerenin[definition] % some more here
	[plaats=aanelkaar,kopletter=kap,
	 paragraafnummer=ja,wijze=perdeel]

\startdefinition
....
\stopdefinition

This tries to evaluate the counter \@@ddDEFINITION@@ddnummer when
typesetting (as well as \@@ddDEFINITIONlinks etc. etc.).

    >> Anyway, I'm going home: done enough for today. I am using the
    >> \defineenumeration to handle scientific enunciations, btw. This
    >> obviously has not been done before, and it is quite likely that
    >> there will be new/more bugs/feature requests to report soon.

    Hans> Let's hope this code is rather ok. We use
    Hans> enumerations/descriptions a lot, and in general the code is
    Hans> ok (like most old context stuff).  Looking forward to
    Hans> tantilizing feature requests.

	\doornummeren[][plaats=aanelkaar,breedte=passend]

This is too literal in it's interpretation of 'fitting'. I'd like at
least one space between the number and the first char of the following 
paragraph.

	\doornummeren[][wijze=perdeel,paragraafnummer=ja]

Does not give the desired result, which is:

	Theorem 2.1 % 1st global theorem, in paragraph 2
	Theorem 3.2 % 2st global theorem, in paragraph 3

etc. Instead I get:

	Theorem 1 % 1st global theorem, in paragraph 2
	Theorem 2 % 2st global theorem, in paragraph 3

	\doornummeren[theorem][tekst=Theorem]
	\doornummeren[lemma][theorem][tekst=Lemma]
	\steldoornummerenin[...][wijze=perparagraaf,paragraafnummer=ja]

Only works out OK if the first thing I encounter is indeed a
theorem:

	Theorem 2.1 % 1st theorem, in paragraph 2
	Lemma   2.2 % 1st lemma, in paragraph 2

Otherwise, I'll get:

	Lemma     1 % 1st lemma, in paragraph 2 
	Theorem 2.2 % 1st theorem, in paragraph 2

    Hans> What are enunciations? What problems do you expect? The kap
    Hans> is among the most troublesome concerning attributes.

Theorems, propositions, corollaries etc. Problems as above.

    Hans> Hans

    Hans> -----------------------------------------------------------------
    Hans> Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt |
    Hans> The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 |
    Hans> www.pragma-ade.nl
    Hans> -----------------------------------------------------------------

-- 
Taco Hoekwater                                 taco.hoekwater@wkap.nl
Kluwer Academic Publishers                            -- Pre Press --
Achterom 119, 3311 KB Dordrecht, The Netherlands  tel.  31-78-6392550
---------------------------------------------------------------------


  parent reply	other threads:[~1999-04-02 11:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-01 13:25 \definehead with some extra's Gilbert van den Dobbelsteen
1999-04-01 14:49 ` Hans Hagen
1999-04-01 16:10 ` Bug in \defineenumeration Taco Hoekwater
1999-04-01 15:41   ` Hans Hagen
1999-04-01 17:46 ` Taco Hoekwater
1999-04-01 16:36   ` Hans Hagen
1999-04-02 11:24 ` Taco Hoekwater [this message]
1999-04-02 11:58   ` Hans Hagen
1999-04-02 12:00   ` Hans Hagen
1999-04-02 13:14   ` Hans Hagen

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=14084.43257.962632.878200@localhost \
    --to=taco.hoekwater@wkap.nl \
    --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).