defineenumeration and setupenumeration
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
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
participants (2)
-
Taco Hoekwater
-
WN