File: declarations.html

package info (click to toggle)
texlive-doc 2005.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 125,100 kB
  • ctags: 12,558
  • sloc: xml: 24,267; perl: 14,394; makefile: 727; sh: 324; lisp: 276; java: 159; sed: 4
file content (51 lines) | stat: -rw-r--r-- 2,224 bytes parent folder | download | duplicates (5)
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>Help On LaTeX Declarations</title></head>
<body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#cc0000" alink="#cc0000">
<h1><font size="-2">Hypertext Help with LaTeX</font><br><font color="#cc0000">Declarations</font></h1>
A declaration is a LaTeX command that does not act on an argument, 
but which changes the way LaTeX prints the following text or which changes
the value or meaning of some <a href="ltx-17.html">command</a> or 
<a href="ltx-3.html">counter</a>.
 
<h2>Scope</h2>
The <em>scope</em> of a declaration begins with the declaration 
command itself and is ended by the first right
brace (<tt>}</tt>) or <tt>\end{}</tt> command whose matching
left brace (<tt>{</tt>) or <tt>\begin{}</tt> precedes the declaration.
However, the <tt>\begin{}</tt> and <tt>\end{}</tt> of environments 
you create yourself, for example, with the
<a href="ltx-19.html"><tt>\newenvironment</tt></a> command, do not
count for calculating the scope of declarations.
<p>
The declaration is in effect within its scope, exept that it may be
countermanded by another declaration whose scope is a subset.
<p>
However, some declarations are <em>global</em>; they are in effect until
countermanded by another declaration.  They include
<ul>
<li><a href="ltx-195.html"><tt>\addtocounter</tt></a>
<li><a href="ltx-271.html"><tt>\newcounter</tt></a>
<li><a href="ltx-310.html"><tt>\setcounter</tt></a>
<li><a href="ltx-137.html"><tt>\pagenumbering</tt></a>
<li><a href="ltx-140.html"><tt>\thispagestyle</tt></a>
<li><a href="ltx-87.html"><tt>\newlength</tt></a>
<li><a href="ltx-277.html"><tt>\newsavebox</tt></a>
<li><a href="ltx-20.html"><tt>\newtheorem</tt></a>
</ul>
<p>
Every declaration has an <a href="ltx-27.html">environment</a> of the
same name.  If <tt>\decl</tt> is a declaration command, then
<pre>   <tt>{\decl .... }</tt></pre>
can also be effected by 
<pre>   <tt>\begin{decl} .... \end{decl}</tt></pre>
If the declaration takes arguments these become additional arguments of the
<tt>\begin</tt> command.
<hr>
See also <a href="ltx-27.html">Environments</a><br>
Return to <a href="ltx-2.html">LaTeX Table of Contents</a>
<hr>
<address>
Revised: Sheldon Green, 16 Nov 1995.
</address>
</body>
</html>