File: sec21.html

package info (click to toggle)
ts 9802-1
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,348 kB
  • ctags: 1,468
  • sloc: tcl: 4,567; ansic: 3,389; makefile: 88; sh: 1
file content (55 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head><title>&#92;newenvironment</title></head>
<body>
<h1>&#92;newenvironment</h1>
<P>

</P>

<PRE>
 &#92;newenvironment{nam}[args]{begdef}{enddef}
 &#92;newenvironment{nam}[args][default]{begdef}{enddef}
 &#92;renewenvironment{nam}[args]{begdef}{enddef}
</PRE>

<P>
These commands define or redefine an environment.

</P>
<DL COMPACT>

<DT><CODE>nam</CODE>
<DD>
The name of the environment.  For <CODE>&#92;newenvironment</CODE> there must be
no currently defined environment by that name, and the command
<CODE>&#92;nam</CODE> must be undefined.  For <CODE>&#92;renewenvironment</CODE> the
environment must already be defined.

<DT><CODE>args</CODE>
<DD>
An integer from 1 to 9 denoting the number of arguments of
the newly-defined environment.  The default is no arguments.

<DT><CODE>default</CODE>
<DD>
If this is specified, the first argument is optional, and <CODE>default</CODE>
gives the default value for that argument.

<DT><CODE>begdef</CODE>
<DD>
The text substituted for every occurrence of <CODE>&#92;begin{nam}</CODE>; a
parameter of the form <CODE>#n</CODE> in <CODE>cmd</CODE> is replaced by the text of
the nth argument when this substitution takes place.

<DT><CODE>enddef</CODE>
<DD>
The text substituted for every occurrence of <CODE>&#92;end{nam}</CODE>.  It may
not contain any argument parameters.

</DL>



<p>--&gt;<a href="index.html">LaTeX index</a>
</body>
</html>