Defining new environments |
The env-base d.t.d. contains high-level markup which can be used by the user to define new numbered environments for theorems, remarks, exercises and figures:
This meta-macro is used for defining new theorem-like
environments. The first argument env-name
specifies the name for the environment (like
“experiment”) and display-name
the corresponding text (like “Experiment”). When
defining a new theorem-like environment like
Similar as
Similar as
Similar as
The theorem-like and remark-like environments belong to a common counter-group theorem-env. By default, we use American-style numbering (one common counter for all environments). When selecting the package number-europe, each environment uses its own counter. All exercises and figures use their own counter-group.
More generally, the std-env counter-group regroups the counters for all standard TeXmacs environments. Typically, all counters in this group are prefixed in a similar way (for instance by the number of the chapter). Figure ? shows how the hierarchical organization of this counter group.
Figure 1. Organization of the
counters for the standard TeXmacs environments.
|
In addition to the standard theorem-like, remark-like, exercise-like
and figure-like environments, other numbered textual environments may
be defined using the
The first argument is the name of the counter group
to which the new environment belongs. The second argument env is the name of a binary macro for
rendering the environment. The arguments of the rendering macro
are a name (like “Theorem 3.14”) and its body. The
remaining arguments are similar as for
<document|<assign|new-theorem|<macro|env|name|<new-env|env|name|theorem-env|render-theorem>>>>
We recall that you may add new counters or counter-groups to the theorem-env counter-group using the