summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_7_de/32-03-78.ltx
blob: 9b29c85019317d84936927c08cac52d51ea0640c (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
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  7. Auflage
%% 
%%  Beispiel 32-03-78 auf Seite 771.
%% 
%%  Copyright (C) 2016 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{193.16928pt}
\setlength\parindent{0pt}
%StartShownPreambleCommands
\usepackage{pst-stru}
%StopShownPreambleCommands
\begin{document}
\def\BMdistributed#1#2#3{#2 x sub 0.5 #1 x mul mul mul #3 mul}
\begin{pspicture}(-1,-1.4)(11,2)
\pnode(0,0){A}\pnode(10,0){B}\rput{0}(A){\hinge}\rput{0}(B){\roller}
\rput(0,-1){\Large A}\rput(10,-1){\Large B}\psline[linecolor=blue](A)(B)
\pscustom[linecolor=blue,linewidth=1pt,fillstyle=solid,fillcolor=yellow]{%
  \psplot[linecolor=blue]{0}{10}{\BMdistributed{12}{10}{0.01}}\psline(10,0)(0,0)}
\psset{arrowsize=1.5mm}\multido{\nStart=0.0+0.2}{51}{%
 \pnode(\nStart,0){E1}\pnode(!/x \nStart\space def x \BMdistributed{12}{10}{0.01}){E2}
 \psline[linecolor=blue,arrowinset=0,arrowsize=1mm]{->}(E2)(E1) }
\end{pspicture}
\end{document}