File: sec62.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 (138 lines) | stat: -rw-r--r-- 3,758 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<html>
<head><title>tabbing</title></head>
<body>
<h1>tabbing</h1>
<P>
 

<PRE>
 &#92;begin{tabbing}
 text &#92;= more text &#92;= still more text &#92;= last text &#92;&#92;
 second row &#92;&#62;  &#92;&#62; more &#92;&#92;
 .
 .
 .
 &#92;end{tabbing}
</PRE>

<P>
The <CODE>tabbing</CODE> environment provides a way to align text in columns.
It works by setting tab stops and tabbing to them much the way you do
with an ordinary typewriter.

</P>
<P>
It is best suited for cases where the width of each column is constant
and known in advance.

</P>
<P>
This environment can be broken across pages, unlike the <CODE>tabular</CODE>
environment.

</P>
<P>
The following commands can be used inside a <CODE>tabbing</CODE> enviroment:

</P>
<DL COMPACT>

<DT><CODE>&#92;=</CODE>
<DD>

Sets a tab stop at the current position.

<DT><CODE>&#92;&#62;</CODE>
<DD>

Advances to the next tab stop.

<DT><CODE>&#92;&#60;</CODE>
<DD>

This command allows you to put something to the left of the
local margin without changing the margin.
Can only be used at the start of the line.

<DT><CODE>&#92;+</CODE>
<DD>

Moves the left margin of the next and all the
following commands one tab stop to the right.

<DT><CODE>&#92;-</CODE>
<DD>

Moves the left margin of the next and all the
following commands one tab stop to the left.

<DT><CODE>&#92;'</CODE>
<DD>

Moves everything that you have typed so far in the
current column, i.e. everything from the most recent <CODE>&#92;&#62;</CODE>,
<CODE>&#92;&#60;</CODE>, <CODE>&#92;'</CODE>, <CODE>&#92;&#92;</CODE>, or <CODE>&#92;kill</CODE> command, to the right
of the previous column, flush against the current column's tab stop.

<DT><CODE>&#92;`</CODE>
<DD>

Allows you to put text flush right against any tab stop, including tab
stop 0.  However, it can't move text to the right of the last column
because there's no tab stop there.  The <CODE>&#92;`</CODE> command moves all the
text that follows it, up to the <CODE>&#92;&#92;</CODE> or <CODE>&#92;end{tabbing}</CODE>
command that ends the line, to the right margin of the tabbing
environment.  There must be no <CODE>&#92;&#62;</CODE> or <CODE>&#92;'</CODE> command between
the <CODE>&#92;`</CODE> and the command that ends the line.

<DT><CODE>&#92;kill</CODE>
<DD>

Sets tab stops without producing
text.  Works just like  <CODE>&#92;&#92;</CODE> except that it throws away the
current line instead of producing output for it.  The effect of any
<CODE>&#92;=</CODE>, <CODE>&#92;+</CODE> or <CODE>&#92;-</CODE> commands in that line remain in
effect.

<DT><CODE>&#92;pushtabs</CODE>
<DD>

Saves all current tab stop positions. Useful for
temporarily changing tab stop positions in the middle of a
<CODE>tabbing</CODE> environment.

<DT><CODE>&#92;pushtabs</CODE>
<DD>

Restores the tab stop positions saved by the last <CODE>&#92;pushtabs</CODE>.

<DT><CODE>&#92;a</CODE>
<DD>

In a <CODE>tabbing</CODE> environment, the commands <CODE>&#92;=</CODE>, <CODE>&#92;'</CODE> and
<CODE>&#92;`</CODE> do not produce accents as normal. Instead, the commands
<CODE>&#92;a=</CODE>, <CODE>&#92;a'</CODE> and <CODE>&#92;a`</CODE> are used.
</DL>

<P>
This example typesets a Pascal function in a traditional format:

</P>

<PRE>
        &#92;begin{tabbing}
        function &#92;= fact(n : integer) : integer;&#92;&#92;
                 &#92;&#62; begin &#92;= &#92;+ &#92;&#92;
                       &#92;&#62; if &#92;= n $&#62;$ 1 then &#92;+ &#92;&#92;
                                fact := n * fact(n-1) &#92;- &#92;&#92;
                          else &#92;+ &#92;&#92;
                                fact := 1; &#92;-&#92;- &#92;&#92;
                    end;&#92;&#92;
        &#92;end{tabbing}
</PRE>



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