tkz-b ase 1.16 c AlterMundus
tkz-b ase 1.16 c AlterMundus
tkz-b ase 1.16 c AlterMundus
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
11.6 Label pour un segment 57<br />
11.6 Label pour un segment<br />
\<strong>tkz</strong>LabelSegment[〈local options〉](〈pt1,pt2〉){〈label〉}<br />
Cette macro permet de placer une étiquette le long d’un segment ou encore d’une ligne. Les options sont celles de<br />
TikZ comme par exemple pos<br />
argument exemple définition<br />
label \<strong>tkz</strong>LabelSegment(A,B){5} texte de l’étiquette<br />
(pt1,pt2) (A,B) étiquette le long de [A,B]<br />
options défaut définition<br />
pos .5 position du label<br />
11.6.1 Labels et Pythagore<br />
Cet exemple nécessite \<strong>tkz</strong>cname{use<strong>tkz</strong>obj\{polygons\}} dans le préambule<br />
b<br />
c<br />
a<br />
\begin{tikzpicture}[scale=.75]<br />
\<strong>tkz</strong>Init[xmax=5,ymax=5]<br />
\<strong>tkz</strong>DefPoint(0,0){C}<br />
\<strong>tkz</strong>DefPoint(4,0){A}<br />
\<strong>tkz</strong>DefPoint(0,3){B}<br />
\<strong>tkz</strong>DefSquare(B,A)\<strong>tkz</strong>GetPoints{E}{F}<br />
\<strong>tkz</strong>DefSquare(A,C)\<strong>tkz</strong>GetPoints{G}{H}<br />
\<strong>tkz</strong>DefSquare(C,B)\<strong>tkz</strong>GetPoints{I}{J}<br />
\<strong>tkz</strong>FillPolygon[draw,<br />
fill = red!50 ](A,C,G,H)<br />
\<strong>tkz</strong>FillPolygon[draw,<br />
fill = blue!50 ](C,B,I,J)<br />
\<strong>tkz</strong>FillPolygon[draw,<br />
fill = purple!50](B,A,E,F)<br />
\<strong>tkz</strong>FillPolygon[draw,opacity=.5,<br />
fill = orange](A,B,C)<br />
\<strong>tkz</strong>DrawPolygon[line width = 1pt](A,B,C)<br />
\<strong>tkz</strong>LabelSegment[above](C,A){$a$}<br />
\<strong>tkz</strong>LabelSegment[right](B,C){$b$}<br />
\<strong>tkz</strong>LabelSegment[below left](B,A){$c$}<br />
\end{tikzpicture}<br />
11.6.2 Labels multiples<br />
4<br />
a<br />
\begin{tikzpicture}<br />
\<strong>tkz</strong>DefPoint(0,0){A} \<strong>tkz</strong>DefPoint(6,0){B}<br />
\<strong>tkz</strong>DrawSegment(A,B)<br />
\<strong>tkz</strong>LabelSegment[above,pos=.8](A,B){$a$}<br />
\<strong>tkz</strong>LabelSegment[below,pos=.2](A,B){$4$}<br />
\end{tikzpicture}<br />
<strong>tkz</strong>-b<strong>ase</strong><br />
<strong>AlterMundus</strong>