ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Bug in \defineenumeration
Date: Fri, 02 Apr 1999 15:14:11 +0200	[thread overview]
Message-ID: <3704C2A3.1D9587F1@wxs.nl> (raw)
In-Reply-To: <14084.43257.962632.878200@localhost>

Taco Hoekwater wrote:

The current numbering scheme is based on a tree like structure. Some
commands permit turning prefix numbers on/off, others don't. This has to
do with forcing consistency. 
In your case, paragraaf=ja does not work that way. Would it do, then
something else would be inconsistent. When I come to 'documenting' and
'optimizing' this part of context, I'll extend the mechanisms involved
to support this kind of reverse prefixing (down->top settings). 

For the moment, you need to play around a bit with numbers yourself. A
paragraph is a section-3 level heading. You can turn the prefix off at
every level. Next you can call for the paragraph number. By assigning it
to 'links' (left) it is put left of the number, and the period is added
there too. 

Concerning the related things: Define one parent and let all the others
hang on that one. The kap can be realized by using uppercase strings and
switching to the smaller typeface. 

Remind me to put this example in the manual!

\doornummeren
  [definition]
  [tekst=DEFINITION,

links={\stelsectiein[sectie-3][vorigenummer=nee]\kopnummer[paragraaf].},
   letter=klein,
   breedte=ruim,
   sectienummer=nee,
   wijze=pertekst]

\doornummeren[theorem][definition][tekst=THEOREM]
\doornummeren[lemma]  [definition][tekst=LEMMA]

\starttekst

\hoofdstuk{alpha}

\paragraaf {eerste}

\starttheorem    \input tufte \stoptheorem
\startlemma      \input tufte \stoplemma
\startlemma      \input tufte \stoplemma
\startlemma      \input tufte \stoplemma
\startdefinition \input tufte \stopdefinition

\paragraaf {tweede}

\startdefinition \input tufte  \stopdefinition

\stoptekst

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


      parent reply	other threads:[~1999-04-02 13:14 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
1999-04-02 11:58   ` Hans Hagen
1999-04-02 12:00   ` Hans Hagen
1999-04-02 13:14   ` Hans Hagen [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=3704C2A3.1D9587F1@wxs.nl \
    --to=pragma@wxs.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).