summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_en/36-00-73.ltx
blob: b3ae6c6e92d4667244e339b02f97ac83b24a7bf1 (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
54
%% 
%%  A DANTE-Edition example
%% 
%%  Example 36-00-73 on page 798.
%% 
%%  Copyright (C) 2011 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[]{article}
\pagestyle{empty}
\setlength\textwidth{201.70511pt}
\setlength\parindent{0pt}

\usepackage{pstricks,pst-eucl}

\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}