summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/A-2-2.pltx
blob: 71915861901b62cdf2d862e15cf1620ef9852b9f (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
%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example A-2-2 on page 802.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  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.83385pt}
\StartShownPreambleCommands
\usepackage{bigdelim,multirow,array}
\usepackage[table]{pstricks}   \usepackage{pst-node,pst-pdf}
\PreviewEnvironment{tabular}
\StopShownPreambleCommands
\begin{document}
\definecolor{Gray}{gray}{0.1}
\renewcommand\arraystretch{1.1}
\begin{tabular}{c|c|l} \multicolumn{1}{c}{\textbf{Segments}}
 & \multicolumn{1}{c}{\textbf{Usage}}           & \\\cline{2-2}
0x0  & \cellcolor{gray}Kernel text and data     & \\\cline{2-2}
0x1  & \cellcolor{gray}User text                & \\\cline{2-2}
0x2  & \cellcolor{red}User stack, data          & \\\cline{2-2}
0x3  & \pnode{A}
      & \rdelim\}{5}{5.5cm}[\parbox{7.5cm}{Available for the user process\\
             \hspace*{0.25cm}\pnode{A2}~if \texttt{shmat()}or
\texttt{mmap()} is called}]\\\cline{2-2}
0x4  &   & \\\cline{2-2}  0x5--0xA &            & \\\cline{2-2}
0xB  &   & \\\cline{2-2}  0xC      & \pnode{B}  & \\\cline{2-2}
0xD  & \cellcolor{gray}Shared library text      & \\\cline{2-2}
0xE  &                          & \pnode{B2}      \\\cline{2-2}
\ncline[arrows=->,linewidth=2pt,linecolor=blue,doubleline=true]{A}{B}%
\ncdiag[arrows=->,linewidth=1.25pt,linearc=0.2,%
  angleA=180,angleB=0,armA=0.2cm,nodesepB=-0.25cm,armB=0.625cm]{A2}{B2}%
0xF      & \cellcolor{gray}\footnotesize Per-process shared library data
                                                & \\\cline{2-2}
\end{tabular}
\end{document}