summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples/25-03-64.ltx
blob: 4463fc28fc176d47212aa2ab84c849af92d0a71f (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
%% 
%%  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{190.324pt}
\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}