summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples/31-05-3.ltx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-24 23:36:18 +0000
committerKarl Berry <karl@freefriends.org>2011-02-24 23:36:18 +0000
commit2a886fbce3b9f2ed32e02e952d4b300e6e3dd7b4 (patch)
tree1e795c05f0261278a6d0889ad79c977485ec6e5c /Master/texmf-dist/doc/latex/pstricks-examples/31-05-3.ltx
parent9b3b61b4613379d47f4dc1700f76efc1c1dbfced (diff)
new german doc pstricks examples (23feb11)
git-svn-id: svn://tug.org/texlive/trunk@21511 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pstricks-examples/31-05-3.ltx')
-rw-r--r--Master/texmf-dist/doc/latex/pstricks-examples/31-05-3.ltx94
1 files changed, 94 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pstricks-examples/31-05-3.ltx b/Master/texmf-dist/doc/latex/pstricks-examples/31-05-3.ltx
new file mode 100644
index 00000000000..872411b2154
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pstricks-examples/31-05-3.ltx
@@ -0,0 +1,94 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%%
+%% Copyright (C) 2010 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[]{exaarticle}
+\pagestyle{empty}
+\setlength\textwidth{352.81416pt}
+\setlength\parindent{0pt}
+\StartShownPreambleCommands
+\usepackage[dvipsnames]{pstricks}% Manuel Luque
+\usepackage{pst-node}
+\definecolor{Bluea}{cmyk}{.2,0,0,0}
+\definecolor{MonGris}{rgb}{0.8,0.8,0.8}
+\definecolor{grisclair}{rgb}{0.85,0.8,0.8}
+\definecolor{Copper}{cmyk}{0,0.9,0.9,0.2}
+\def\lame{\psframe(0.5,2.5)}
+\def\demilame{\psframe(0,1)(0.5,1.5)} % arrive au niveau de l'eau
+\def\Pile{%
+ \rput(-1.5,0){%
+ \pscustom{%
+ \psline(-1,2)(-1,0)
+ \psellipticarc(0,0)(1,0.2){180}{0}
+ \psline(1,0)(1,2)}
+ \psellipse(0,2)(1,-0.2)
+ \psellipse(0,1)(1,0.2)
+ \psellipse[linecolor=blue,fillstyle=solid,fillcolor=cyan](0,1)(1,0.2)
+ \begin{psclip}{\psset{fillcolor=Copper,fillstyle=solid}\rput(-0.75,0){\lame}}
+ \psellipticarc(0,2)(1,0.2){180}{0}
+ \psellipticarc[linecolor=blue](0,1)(1,0.2){180}{0}
+ \end{psclip}%
+ \pscustom[linestyle=none]{%
+ \psline(-1,1)(-1,0)
+ \psellipticarc(0,0)(1,0.2){180}{0}
+ \psline(1,0)(1,1)
+ \psellipticarc(0,1)(1,0.2){0}{180}
+ \fill[fillstyle=hlines,hatchcolor=cyan,hatchsep=0.3\pslinewidth,hatchwidth=0.1\pslinewidth]}
+ \rput(-0.75,0){{\psset{linestyle=none,fillcolor=Copper,
+fillstyle=solid}\demilame}\psline(0,1)(0,2.5)(0.5,2.5)(0.5,1)}
+ \uput[180](-0.75,2.5){Cu}}
+%
+ \rput(1.5,0){%
+ \pscustom{%
+ \psline(-1,2)(-1,0)
+ \psellipticarc(0,0)(1,0.2){180}{0}
+ \psline(1,0)(1,2)}
+ \psellipse(0,2)(1,-0.2)
+ \psellipse(0,1)(1,0.2)
+ \begin{psclip}{\psset{fillcolor=lightgray,fillstyle=solid}\rput(0.25,0){\lame}}
+ \psellipticarc(0,2)(1,0.2){180}{0}
+ \psellipticarc(0,1)(1,0.2){180}{0}
+ \end{psclip}
+ \pscustom[linestyle=none]{%
+ \psline(-1,1)(-1,0)
+ \psellipticarc(0,0)(1,0.2){180}{0}
+ \psline(1,0)(1,1)
+ \psellipticarc(0,1)(1,0.2){0}{180}
+ \fill[fillstyle=hlines,hatchcolor=gray,
+ hatchsep=0.3\pslinewidth,hatchwidth=0.1\pslinewidth]}
+ \rput(.25,0){{\psset{linestyle=none,fillcolor=lightgray,
+ fillstyle=solid}{\demilame}}\psline(0,1)(0,2.5)(0.5,2.5)(0.5,1)}
+ \uput[0](0.75,2.5){Zn}}%
+}
+
+\StopShownPreambleCommands
+\begin{document}
+\begin{pspicture}(-5,0)(5,4.5)
+ \psset{dimen=middle}
+% le dessin du pont
+ \psline[linearc=0.2,doubleline=true,doublesep=1mm](-0.75,0.5)(-0.75,2.5)(0.75,2.5)(0.75,0.5)
+ \Pile
+ \psline(-2,2.5)(-2,4)(2,4)(2,2.5)
+ \psframe[fillstyle=solid](0,3.8)(1,4.2)
+ \pscircle[fillstyle=solid](-1,4){0.4}
+ \rput(-1,4){A}
+ \uput{0.5cm}[155](-1,4){$+$}
+ \uput{0.5cm}[25](-1,4){$-$}
+% les parties visibles du pont
+ \psline[linearc=0.2,doubleline=true,doublesep=1mm](-0.75,2)(-0.75,2.5)(0.75,2.5)(0.75,2)
+ \psline[doubleline=true,doublesep=1mm](-0.75,1)(-0.75,1.3)
+ \psline[doubleline=true,doublesep=1mm](0.75,1)(0.75,1.3)
+\end{pspicture}
+\end{document}