summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples/36-00-75.ltx
blob: eaaae63d44df5652c55f7cf7a5f8832a07cee769 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%% 
%%  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{pstricks,pst-eucl}
\StopShownPreambleCommands
\begin{document}
\psset{unit=2cm}
\pspicture(-2.5,-2)(2,2.5)
\pstTriangle[linewidth=1pt](-2,-1){A}(1,2){B}(2,0){C}
% les médiatrices
{% encapsulation de modif paramètres
  \psset{linestyle=none, PointSymbolB=none}
  \pstMediatorAB[PointNameB={}]{A}{B}{K}{KP}\uput{50pt}[-45](KP){KP}
  \pstMediatorAB[PointNameB={}]{C}{A}{J}{JP}\uput{-50pt}[100](JP){JP}
  \pstMediatorAB[PosAngleA=75,PointNameB={}]{B}{C}{I}{IP}\uput{-5pt}[210](IP){IP}
}% fin
\pstInterLL[PointSymbol=square, PosAngle=-170]{I}{IP}{J}{JP}{O}
{% encapsulation de modif paramètres
  \psset{nodesep=-.8, linecolor=green}
  \pstLineAB{O}{I}\pstLineAB{O}{J}\pstLineAB{O}{K}
}% fin
  \pstCircleOA[linecolor=red]{O}{A}
% pour que le symbol de O soit sur et non sous les droites
  \psdot[dotstyle=square](O)
% les hauteurs et l'orthocentre
  \pstProjection{B}{A}{C}{C'}
  \pstProjection{B}{C}{A}{A'}
  \pstProjection{A}{C}{B}{B'}
  \psset{linecolor=blue}\ncline{A}{A'}\ncline{C}{C'}\ncline{B}{B'}
  \pstInterLL[PointSymbol=square]{A}{A'}{B}{B'}{H}
  % les médianes et le centre de gravité
  \psset{linecolor=magenta}\ncline{A}{I}\ncline{C}{K}\ncline{B}{J}
  \pstCGravABC[PointSymbol=square, PosAngle=95]{A}{B}{C}{G}
\endpspicture
\end{document}