ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* defineenumeration and setupenumeration
@ 2006-04-30 10:32 WN
  2006-05-05  5:57 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: WN @ 2006-04-30 10:32 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 841 bytes --]

Hi,

I have a question (probably a dumb question) relating to some of the 
define/setup commands. One in
particular, but it may relate to the other define/setup commands as well.
Looking at the defineenumeration and setupenumerations command
in the Context manual page 223 and page 224 an example is given how to use
these commands.

I am a bit confused, the example setups the enumaration *remark* and 
specifies the location=top

\defineenumeration
[remark]
*[location=top,*
text=Remark,
between=\blank,
before=\blank,
after=\blank]

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 ?
What is the proper Context way, should I define the location with 
\defineenumeration or with \setupenumerations ?

Kind regards

Wim




[-- Attachment #1.2: Type: text/html, Size: 1207 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: defineenumeration and setupenumeration
  2006-04-30 10:32 defineenumeration and setupenumeration WN
@ 2006-05-05  5:57 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2006-05-05  5:57 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-05  5:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-30 10:32 defineenumeration and setupenumeration WN
2006-05-05  5:57 ` Taco Hoekwater

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).