summaryrefslogtreecommitdiff
path: root/info/examples/tlc2/10-3-11.ltx
blob: b338f5ab39ac6fba848d8d4f38a9668958412a2b (plain)
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
%%
%% The LaTeX Companion, 2ed (second printing August 2004)
%%
%% Example 10-3-11 on page 632.
%%
%% Copyright (C) 2004 Frank Mittelbach, Michel Goossens,
%%    Johannes Braams, David Carlisle, and Chris Rowley
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.0pt}
\StartShownPreambleCommands
\usepackage{epic,pspicture,graphicx}
\usepackage{array}
\StopShownPreambleCommands
\begin{document}
\small
\setlength{\unitlength}{0.75mm}         %FMi was 1mm
       \begin{picture}(100,100)
%\graphpaper[5](0,0)(100,100)
       \thicklines
        \put(20,10){\framebox(50,80){}}
%%    label points in bounding box
        \put(20,10){\makebox(-1,-1)[tr]{\texttt{[lb]}}}
        \put(20,35){\makebox(-1,-1)[tr]{\texttt{[lB]}}}
        \put(20,35){\makebox(0,0){{\Large$\bullet$}}}
        \put(20,51){\makebox(-1,+2)[br]{\texttt{[lc]} or \texttt{[l]}}}
        \put(20,91){\makebox(-1,+2)[br]{\texttt{[lt]}}}
        \put(45,10){\makebox(0,-1)[tc]{\texttt{[cb]} or \texttt{[b]}}}
        \put(45,35){\makebox(0,-1)[tl]{\texttt{[cB]} or \texttt{[B]}}}
        \put(45,51){\makebox(0,+3)[bl]{\texttt{[c]}}}
        \put(45,50){\makebox(0,0){{\Large$\diamond$}}}
        \put(45,91){\makebox(0,+9)[bc]{\texttt{[ct]} or \texttt{[t]}}}
        \put(70,10){\makebox(1,-1)[tl]{\texttt{[rb]}}}
        \put(70,35){\makebox(1,-1)[tl]{\texttt{[rB]}}}
        \put(70,51){\makebox(1,+2)[bl]{\texttt{[rc]} or \texttt{[r]}}}
        \put(70,91){\makebox(1,+2)[bl]{\texttt{[rt]}}}
       \thinlines
%%    centerlines
        \dashline[+30]{3}(20,50)(70,50)
        \dashline[+30]{3}(45,10)(45,90)
%%    baseline
        \dottedline{1}(20,35)(85,35)
%%    material for vertical dimensions
        \dottedline{1}(70,10)(92,10) % bottom extension to right
        \dottedline{1}(70,90)(92,90) % top    extension to right
        \put(79,60){\Vector(0,-25)}
        \put(79,65){\Vector(0,25)}
        \put(79,62.5){\makebox(0,0){\texttt{height}}}
        \put(79,20){\Vector(0,-10)}
        \put(79,25){\Vector(0,10)}
        \put(79,22.5){\makebox(0,0){\texttt{depth}}}
        \put(91,44){\Vector(0,-34)}
        \put(91,48){\Vector(0,42)}
        \put(91,46){\makebox(0,0){\texttt{ totalheight}}}
%%    material for horizontal dimension
        \put(20,10){\Line(0,-8)}
        \put(70,10){\Line(0,-8)}
        \put(35,4){\Vector(-15,0)}
        \put(55,4){\Vector(15,0)}
        \put(45,4){\makebox(0,0){\texttt{width}}}
%%    material for labeling center and reference points
        \put(52.5,46){\Vector(-6,3.5)}
        \put(52.5,45){\makebox(0,0)[tc]{\shortstack{center\\point}}}
        \put(10,40){\Vector(9,-4)}
        \put(10,40){\makebox(0,0)[bc]{\shortstack{reference\\point}}}
%%    material for labels of axes and baseline
        \put(32.5,60){\Vector(5,-9)}
        \put(32.5,65){\Vector(12.,9)}
        \put(32.5,61){\makebox(0,0)[bc]{centerline}}
        \put(32.5,25){\Vector(5,9)}
        \put(32.5,24){\makebox(0,0)[tc]{baseline}}
       \end{picture}

\begin{tabular}{l*3{>{\ttfamily}ll}}
\emph{Horizontal alignment} & l & left & r & right  & c & center \\
\emph{Vertical alignment}   & t & top  & b & bottom & B & baseline
\end{tabular}
\end{document}