a21a807dd9230ab1e8436e13ea21dab7393fdbfd
[platform/upstream/groff.git] / contrib / hdtbl / examples / mixed_pickles.roff
1 .\"     -*-     mode: nroff     -*-
2 .ig
3
4 mixed_pickles.roff
5
6 This file is part of groff, the GNU roff type-setting system.
7
8 Copyright (C) 2005-2014 Free Software Foundation, Inc.
9 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
10
11 groff is free software; you can redistribute it and/or modify it under
12 the terms of the GNU General Public License as published by the Free
13 Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 groff is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19 for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
23
24 ..
25 .
26 .if !d sopath \
27 .  ds sopath
28 .
29 .so \*[sopath]examples/common.roff
30 .
31 .time start
32 .
33 .H Table with Mixed Content: \
34    .br \
35    EPS Image, eqn Equation, tbl Table, and pic Picture
36 .
37 Call groff with options \-t, \-e, and \-p!
38 .
39 .TBL width=90% tal=c csp=.2n cpd=0
40 .  TR
41 .    TD
42 .      TBL width='25% 75%' csp=.5n cpd=.5n hal=c
43 .        TR 
44 .          TD hl=d vl=d rowspan=2 bgc=red4 fgc=linen fsz=1.2 fst=HB val=m
45 .            PSPIC -I -\\n[.l]u gnu.eps
46 .            sp .5
47 .            nop eps image with \fI.PSPIC\fP
48 .          TD bgc=linen
49 .
50 .EQ
51 int from 0 to 1 {( ln x ) sup 2} over {sqrt {1 - x sup 2}} dx approx 0.245 
52 .EN
53 .
54 .            nop \0\0\0\0\0equation with \fIeqn\fP
55 .
56 .        TR
57 .          TD hl=d
58 .
59 .TS
60 tab(@), center, doublebox, nospaces;
61 c c c | c c c
62 r rI lB | r rI lB.
63 Bit @ Code @ Warning @ Bit @ Code @ Warning
64 =
65 0 @   1 @ char      @    10 @   1024 @ reg
66 1 @   2 @ number    @    11 @   2048 @ tab
67 2 @   4 @ break     @    12 @   4096 @ right-brace
68 3 @   8 @ delim     @    13 @   8192 @ missing
69 4 @  16 @ el        @    14 @  16384 @ input
70 5 @  32 @ scale     @    15 @  32768 @ escape
71 6 @  64 @ range     @    16 @  65536 @ space
72 7 @ 128 @ syntax    @    17 @ 131072 @ font
73 8 @ 256 @ di        @    18 @ 262144 @ ig
74 9 @ 512 @ mac       @    19 @ 524288 @ color
75 .TE
76 .
77 .            sp .5
78 .            nop table with \fItbl\fP
79 .        TR 
80 .          TD colspan=2 bgc=azure2 fgc=blue4
81 .
82 .PS
83 ellipse "document";
84 arrow 0.42;
85 box width 0.6 "\fIgpic\/\fP(1)"
86 arrow 0.42;
87 box width 1.25 "\fIgtbl\/\fP(1) or \fIgeqn\/\fP(1)" "(optional)" dashed;
88 arrow 0.42;
89 box width 0.65 "\fIgtroff\/\fP(1)";
90 arrow 0.42;
91 ellipse "PostScript"
92 .PE
93 .
94 .            sp .5
95 .            nop picture with \fIpic\fP
96 .      ETB
97 .ETB
98 .
99 .time
100 .
101 .\"     466MHz Celeron CPU, 384MB RAM 
102 .\"     WindowsXP/cygwin groff18.1:       1s
103 .\"     WindowsXP/cygwin groff19.2:       2s
104 .\"     Suse Linux 9.3 groff19.2:         1s