File: sec20.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 (51 lines) | stat: -rw-r--r-- 1,283 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
<html>
<head><title>&#92;newcommand</title></head>
<body>
<h1>&#92;newcommand</h1>
<P>

</P>

<PRE>
 &#92;newcommand{cmd}[args]{definition}
 &#92;newcommand{cmd}[args][default]{definition}
 &#92;renewcommand{cmd}[args]{definition}
 &#92;renewcommand{cmd}[args][default]{definition}
</PRE>

<P>
These commands define (or redefine) a command.

</P>
<DL COMPACT>

<DT><CODE>cmd</CODE>
<DD>
A command name beginning with a <CODE>&#92;</CODE>.  For <CODE>&#92;newcommand</CODE> it
must not be already defined and must not begin with <CODE>&#92;end</CODE>; for
<CODE>&#92;renewcommand</CODE> it must already be defined.

<DT><CODE>args</CODE>
<DD>
An integer from 1 to 9 denoting the number of arguments of the command
being defined.  The default is for the command to have no arguments.

<DT><CODE>def</CODE>
<DD>
If this optional parameter is present, it means that the command's first
argument is optional. The default value of the optional argument is
<CODE>def</CODE>.

<DT><CODE>definition</CODE>
<DD>
The text to be substituted for every occurrence of <CODE>cmd</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.

</DL>



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