summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/einfuehrung/06-02-1.ltxps
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-06 00:47:46 +0000
committerKarl Berry <karl@freefriends.org>2012-02-06 00:47:46 +0000
commitf2fb432b14a3c467c6ddfee4a19874fea886307d (patch)
tree4fbba0fc79f546e17e07adbb3db78860e4d39ed8 /Master/texmf-dist/doc/latex/einfuehrung/06-02-1.ltxps
parent27d1d1646fa5dc2daba1e09c2d2175c211d93def (diff)
new examples from (voss) german book einfuehrung (2feb12)
git-svn-id: svn://tug.org/texlive/trunk@25301 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/einfuehrung/06-02-1.ltxps')
-rw-r--r--Master/texmf-dist/doc/latex/einfuehrung/06-02-1.ltxps84
1 files changed, 84 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/einfuehrung/06-02-1.ltxps b/Master/texmf-dist/doc/latex/einfuehrung/06-02-1.ltxps
new file mode 100644
index 00000000000..4709d869dc7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/einfuehrung/06-02-1.ltxps
@@ -0,0 +1,84 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% Beispiel 06-02-1 auf Seite 222.
+%%
+%% Copyright (C) 2012 Herbert Voss
+%%
+%% 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.
+%%
+%%
+%% ====
+% Show page(s) 1
+%%
+\documentclass[de]{exaarticle}
+\pagestyle{empty}
+\setlength\textwidth{166.324pt}
+\setlength\parindent{0pt}
+
+\usepackage{array,pstricks}
+\newcommand\Lcs[1]{\texttt{\textbackslash#1}}
+\let\Ldim\Lcs
+\newsavebox\TabBox
+
+\begin{document}
+\begin{center}
+\newlength\Start
+\newlength\End
+\setlength\Start{\tabcolsep}
+\setlength\End{\tabcolsep}
+\savebox\TabBox{Links}
+\addtolength\Start{\wd\TabBox}
+\begin{pspicture}(0,0.3cm)(5.6cm,-0.8cm)
+\rput[lb](0,0){\begin{tabular}{|l|r|p{3cm}|}\hline
+Links & Rechts & p\{3cm\}\\\hline
+%\rule{\wd\TabBox}{5mm}
+\end{tabular}}
+\psframe[fillcolor=black!30,fillstyle=solid](0,0)(\tabcolsep,-5mm)
+\addtolength\End{\wd\TabBox}\addtolength\End{\tabcolsep}
+\addtolength\End{\fboxrule}
+\rput[lb](\tabcolsep,-5mm){Links}
+%\psline{<->}(\tabcolsep,-2mm)(\Start,-2mm)
+\psframe[fillcolor=black!50,fillstyle=solid](\Start,0)(\End,-5mm)
+\addtolength\Start{\tabcolsep}\addtolength\End{\tabcolsep}
+\addtolength\Start{\fboxrule}\addtolength\End{\fboxrule}
+\psframe[fillcolor=black!30,fillstyle=solid](\Start,0)(\End,-5mm)
+\rput[lb](\End,-5mm){Rechts}
+\savebox\TabBox{Rechts}
+\addtolength\Start{\wd\TabBox}\addtolength\End{\wd\TabBox}
+\addtolength\Start{\tabcolsep}\addtolength\End{\tabcolsep}
+\addtolength\Start{\fboxrule}\addtolength\End{\fboxrule}
+\psframe[fillcolor=black!50,fillstyle=solid](\Start,0)(\End,-5mm)
+\addtolength\Start{\tabcolsep}\addtolength\End{\tabcolsep}
+\addtolength\Start{\fboxrule}\addtolength\End{\fboxrule}
+\psframe[fillcolor=black!30,fillstyle=solid](\Start,0)(\End,-5mm)
+\rput[lb](\End,-5mm){p\{3cm\}}
+\addtolength\Start{\tabcolsep}\addtolength\End{\tabcolsep}
+\addtolength\Start{3cm}\addtolength\End{3cm}
+\addtolength\Start{\fboxrule}\addtolength\End{\fboxrule}
+\psframe[fillcolor=black!50,fillstyle=solid](\Start,0)(\End,-5mm)
+\end{pspicture}\par
+\begin{tabular}{@{}l >{\ttfamily}l@{}}
+\emph{Breite} & \multicolumn{1}{c@{}}{\textrm{\emph{Wert}}}\\\hline
+\Ldim{tabcolsep} & \phantom{00}\the\tabcolsep\\
+\Lcs{widthof}\{Links\} & \settowidth\Start{\textrm{Links}}\phantom{0}\the\Start\\
+2\Ldim{tabcolsep} & \Start=2\tabcolsep \phantom{0}\the\Start\\
+\Lcs{widthof}\{Rechts\} & \settowidth\Start{\textrm{Rechts}}\phantom{0}\the\Start\\
+2\Ldim{tabcolsep} & \Start=2\tabcolsep \phantom{0}\the\Start\\
+p\{3cm\} & \Start=3cm \phantom{0}\the\Start\\
+\Ldim{tabcolsep} & \phantom{00}\the\tabcolsep\\\hline
+\textbf{Gesamtbreite}&
+\Start=6\tabcolsep%
+\settowidth\End{\textrm{Links}}%
+\addtolength\Start{\End}%
+\settowidth\End{\textrm{Rechts}}%
+\addtolength\Start{\End}%
+\addtolength\Start{3cm}%
+\the\Start \global\End=\Start
+\end{tabular}
+\end{center}
+\end{document}