summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/A-2-2.pltx
diff options
context:
space:
mode:
Diffstat (limited to 'info/examples/lgc2/A-2-2.pltx')
-rw-r--r--info/examples/lgc2/A-2-2.pltx46
1 files changed, 46 insertions, 0 deletions
diff --git a/info/examples/lgc2/A-2-2.pltx b/info/examples/lgc2/A-2-2.pltx
new file mode 100644
index 0000000000..7191586190
--- /dev/null
+++ b/info/examples/lgc2/A-2-2.pltx
@@ -0,0 +1,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}