ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: defineenumeration and setupenumeration
Date: Fri, 05 May 2006 07:57:51 +0200	[thread overview]
Message-ID: <445AE95F.7070507@elvenkind.com> (raw)
In-Reply-To: <4454923E.4040204@cs.com>

WN wrote:
> I am a bit confused, the example setups the enumaration *remark* and 
> specifies the location=top
> 
> But on page 224 the command \setupenumerations is shown where one can also
> specify the location among others.
> 
> What is the difference, reason or usage for doing this ?

Much of the functionality of the \define and \setup commands is
using shared code (for efficiency and QA).

> What is the proper Context way, should I define the location with 
> \defineenumeration or with \setupenumerations ?

Where ConTeXt provides both, the use of \setup version depends on
your input file. I've had documents where the location changed
based on the placement of the enumeration in the overall document
(chapters with different layout styles), so I clearly needed a
\setup version for that.

If you do not need that, I suggest you just put it in the \define.
Otherwise you have two macros where one is enough, and at one point
you may become confused when a change somewhere in your environment
does not work at all.

Cheers, Taco

      reply	other threads:[~2006-05-05  5:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-30 10:32 WN
2006-05-05  5:57 ` Taco Hoekwater [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=445AE95F.7070507@elvenkind.com \
    --to=taco@elvenkind.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).