1
0
Fork 0

Doc:fix arguments for new-env

This commit is contained in:
Miguel de Benito 2014-06-02 10:35:34 +00:00
parent 627edd9f9b
commit e5a3807a3f
1 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
<TeXmacs|1.0.7.19> <TeXmacs|1.0.7.21>
<style|tmdoc> <style|<tuple|tmdoc|english>>
<\body> <\body>
<tmdoc-title|Defining new environments> <tmdoc-title|Defining new environments>
@ -56,14 +56,17 @@
defined using the <markup|new-env> macro. These environments may be based defined using the <markup|new-env> macro. These environments may be based
on arbitrary counter-groups: on arbitrary counter-groups:
<\explain|<explain-macro|new-env|group|env|env-name|display-name>> <\explain|<explain-macro|new-env|env-name|display-name|group|render>>
The first argument is the name of the counter <src-arg|group> to which The first argument <src-arg|env-name> specifies the name for the
the new environment belongs. The second argument <src-arg|env> is the environment (like ``experiment'') and the second, <src-arg|display-name>,
name of a binary macro for rendering the environment. The arguments of the corresponding text (like ``Experiment''). The third argument is the
the rendering macro are a name (like ``Theorem 3.14'') and its body. The name of the counter <src-arg|group> to which the new environment belongs.
remaining arguments are similar as for <markup|new-theorem>. For The last argument <src-arg|render> is the name of a binary macro for
instance, in the standard style-sheets, <markup|new-theorem> is defined rendering the environment. The arguments of the rendering macro are a
by name (like ``Theorem 3.14'') and its body. You may use this macro to
define new environments based on counter-groups other than the standard
five <verbatim|theorem-env>, <verbatim|exercise-env>, etc. For instance,
in the standard style-sheets, <markup|new-theorem> is defined by
<\tm-fragment> <\tm-fragment>
<\inactive*> <\inactive*>
@ -87,8 +90,5 @@
Documentation License".> Documentation License".>
</body> </body>
<\initial> <initial|<\collection>
<\collection> </collection>>
<associate|language|english>
</collection>
</initial>