summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/proflycee/tex/ProfLycee.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/proflycee/tex/ProfLycee.sty')
-rw-r--r--macros/latex/contrib/proflycee/tex/ProfLycee.sty135
1 files changed, 133 insertions, 2 deletions
diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
index 44e3c2651c..b70f3eb23b 100644
--- a/macros/latex/contrib/proflycee/tex/ProfLycee.sty
+++ b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
@@ -3,9 +3,10 @@
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2022/05/02 - v1.1.3 - Aide pour l'utilisation de LaTeX en lycée]
+\ProvidesPackage{ProfLycee}[2022/05/07 - v1.1.4 - Aide pour l'utilisation de LaTeX en lycée]
+% 1.1.4 Ajout d'une commande cercletrigoPL pour, en \TikZ, créer facilement un cercle trigo avec options
% 1.1.3 Ajout d'une commande ensemble pour créer un ensemble à partir d'une liste
-% 1.1.2 Modifications mineures
+% 1.1.2 Modifs mineures
% 1.1.1 Modification mineure de l'environnement CF, avec prise de charge de la taille du texte !
% 1.1.0 Ajout d'une commande tetraPL pour un tetraèdre dans un environnement TikZ
% 1.0.9 Ajout d'une commande pavePL pour un pave droit dans un environnement TikZ
@@ -884,4 +885,134 @@
}
}
+%================CercleTrigo=========== OK !!
+\defKV[cercletrigo]{%
+ rayon=\def\PLcerclerayon{#1},%
+ epaisseur=\def\PLcerclethick{#1},%
+ epaisseursol=\def\PLcerclesolthick{#1},%
+ marge=\def\PLcerclemarge{#1},%
+ taillevaleurs=\def\PLcerclevaleurs{#1},%
+ tailleangles=\def\PLcercleangles{#1},%
+ couleurfond=\def\PLcerclefond{#1},%
+ decal=\def\PLcercledecal{#1},%
+ cos=\def\PLcerclevalcos{#1},%
+ sin=\def\PLcerclevalsin{#1},%
+ couleursol=\def\PLcerclecoleq{#1}
+}
+
+\setKVdefault[cercletrigo]{
+ rayon=3,%
+ marge=0.25,%
+ decal=10pt,%
+ epaisseur=thick,%
+ epaisseursol=very thick,%
+ affangles=true,%
+ afftraits=true,%
+ affvaleurs=true,%
+ moinspi=true,%
+ taillevaleurs=\scriptsize,%
+ tailleangles=\footnotesize,%
+ couleurfond=white,%
+ equationcos=false,%
+ equationsin=false,%
+ cos=45,%
+ sin=30,%
+ couleursol=blue
+}
+
+\newcommand\cercletrigoPL[1][]{%
+ \useKVdefault[cercletrigo]
+ \setKV[cercletrigo]{#1}
+ \tikzset{PLval/.style={inner sep=1pt,font=\PLcerclevaleurs,fill=\PLcerclefond}}
+ \tikzset{PLagl/.style={inner sep=1pt,font=\PLcercleangles,fill=\PLcerclefond}}
+ %valeurs remarquables
+ \ifboolKV[cercletrigo]{affangles}
+ {%valeursdudessus
+ \draw ({\PLcerclerayon},0) node[above right=2pt,font=\PLcercleangles] {0} ;
+ \draw ($(30:{\PLcerclerayon})+(30:\PLcercledecal)$) node[PLagl] {$\tfrac{\pi}{6}$} ;
+ \draw ($(45:{\PLcerclerayon})+(45:\PLcercledecal)$) node[PLagl] {$\tfrac{\pi}{4}$} ;
+ \draw ($(60:{\PLcerclerayon})+(60:\PLcercledecal)$) node[PLagl] {$\tfrac{\pi}{3}$} ;
+ \draw (0,{\PLcerclerayon}) node[above right=2pt,PLagl] {$\tfrac{\pi}{2}$} ;
+ \draw ({-\PLcerclerayon},0) node[above left=2pt,PLagl] {$\pi$} ;
+ \draw ($(150:{\PLcerclerayon})+(150:\PLcercledecal)$) node[PLagl] {$\tfrac{5\pi}{6}$} ;
+ \draw ($(135:{\PLcerclerayon})+(135:\PLcercledecal)$) node[PLagl] {$\tfrac{3\pi}{4}$} ;
+ \draw ($(120:{\PLcerclerayon})+(120:\PLcercledecal)$) node[PLagl] {$\tfrac{2\pi}{3}$} ;
+ \draw ($(30:{\PLcerclerayon})+(30:\PLcercledecal)$) node[PLagl] {$\tfrac{\pi}{6}$} ;
+ %valeursdudessous
+ \draw ($(-30:{\PLcerclerayon})+(-30:\PLcercledecal)$) node[PLagl] {$\tfrac{\ifboolKV[cercletrigo]{moinspi}{-}{11}\pi}{6}$} ;
+ \draw ($(-45:{\PLcerclerayon})+(-45:\PLcercledecal)$) node[PLagl] {$\tfrac{\ifboolKV[cercletrigo]{moinspi}{-}{7}\pi}{4}$} ;
+ \draw ($(-60:{\PLcerclerayon})+(-60:\PLcercledecal)$) node[PLagl] {$\tfrac{\ifboolKV[cercletrigo]{moinspi}{-}{5}\pi}{3}$} ;
+ \draw (0,{-\PLcerclerayon}) node[below right=2pt,PLagl] {$\tfrac{\ifboolKV[cercletrigo]{moinspi}{-}{3}\pi}{2}$} ;
+ \draw ($(-120:{\PLcerclerayon})+(-120:\PLcercledecal)$) node[PLagl] {$\tfrac{\ifboolKV[cercletrigo]{moinspi}{-2}{4}\pi}{3}$} ;
+ \draw ($(-135:{\PLcerclerayon})+(-135:\PLcercledecal)$) node[PLagl] {$\tfrac{\ifboolKV[cercletrigo]{moinspi}{-3}{5}\pi}{4}$} ;
+ \draw ($(-150:{\PLcerclerayon})+(-150:\PLcercledecal)$) node[PLagl] {$\tfrac{\ifboolKV[cercletrigo]{moinspi}{-5}{7}\pi}{6}$} ;
+ \ifboolKV[cercletrigo]{moinspi}
+ {\draw ({-\PLcerclerayon},0) node[below left=2pt,PLagl] {$-\pi$} ;}
+ {\draw ({\PLcerclerayon},0) node[below right=2pt,PLagl] {$2\pi$} ;}
+ }%
+ {}
+ %tracés
+ \draw[\PLcerclethick,->] ({-\PLcerclerayon-\PLcerclemarge},0)--({\PLcerclerayon+\PLcerclemarge},0) ;
+ \draw[\PLcerclethick,->] (0,{-\PLcerclerayon-\PLcerclemarge})--(0,{\PLcerclerayon+\PLcerclemarge}) ;
+ \draw[\PLcerclethick] (0,0) circle[radius=\PLcerclerayon] ;
+ \draw (0,0) node[below left=2pt,PLval] {0} ;
+ %equations
+ \ifboolKV[cercletrigo]{equationcos}
+ {%traitsdeconstructioncos
+ \draw[\PLcerclethick,dotted,gray] (-45:\PLcerclerayon) -- (135:\PLcerclerayon)
+ (-135:\PLcerclerayon) -- (45:\PLcerclerayon)
+ (30:\PLcerclerayon) -- (150:\PLcerclerayon)
+ (-30:\PLcerclerayon) -- (-150:\PLcerclerayon)
+ (-60:\PLcerclerayon)--(60:\PLcerclerayon)
+ (-120:\PLcerclerayon)--(120:\PLcerclerayon) ;
+ \draw[\PLcerclesolthick,\PLcerclecoleq] ({\PLcerclevalcos}:\PLcerclerayon)--({-\PLcerclevalcos}:\PLcerclerayon) ;
+ \filldraw[\PLcerclecoleq] ({\PLcerclevalcos}:\PLcerclerayon) circle[radius=2pt] ({-\PLcerclevalcos}:\PLcerclerayon) circle[radius=2pt] ;%
+ }
+ {}
+ \ifboolKV[cercletrigo]{equationsin}
+ {%traitsdeconstructioncos
+ \draw[\PLcerclethick,dotted,gray] (-45:\PLcerclerayon) -- (135:\PLcerclerayon)
+ (-135:\PLcerclerayon) -- (45:\PLcerclerayon)
+ (30:\PLcerclerayon) -- (150:\PLcerclerayon)
+ (-30:\PLcerclerayon) -- (-150:\PLcerclerayon)
+ (-60:\PLcerclerayon)--(60:\PLcerclerayon)
+ (-120:\PLcerclerayon)--(120:\PLcerclerayon) ;
+ \draw[\PLcerclesolthick,\PLcerclecoleq] ({\PLcerclevalsin}:\PLcerclerayon)--({180-\PLcerclevalsin}:\PLcerclerayon) ;
+ \filldraw[\PLcerclecoleq] ({\PLcerclevalsin}:\PLcerclerayon) circle[radius=2pt] ({180-\PLcerclevalsin}:\PLcerclerayon) circle[radius=2pt] ;%
+ }
+ {}
+ %valeurs
+ \ifboolKV[cercletrigo]{affvaleurs}
+ {%
+ \draw ({0.5*\PLcerclerayon},0) node[below=2pt,PLval] {$\tfrac{1}{2}$} ;
+ \draw ({-0.5*\PLcerclerayon},0) node[below=2pt,PLval] {$-\tfrac{1}{2}$} ;
+ \draw (0,{0.5*\PLcerclerayon}) node[left=2pt,PLval] {$\tfrac{1}{2}$} ;
+ \draw (0,{-0.5*\PLcerclerayon}) node[left=2pt,PLval] {$-\tfrac{1}{2}$} ;
+ \draw ({0.866*\PLcerclerayon},0) node[below=2pt,PLval] {$\tfrac{\sqrt{3}}{2}$} ;
+ \draw ({-0.866*\PLcerclerayon},0) node[below=2pt,PLval] {$-\tfrac{\sqrt{3}}{2}$} ;
+ \draw (0,{0.866*\PLcerclerayon}) node[left=2pt,PLval] {$\tfrac{\sqrt{3}}{2}$} ;
+ \draw (0,{-0.866*\PLcerclerayon}) node[left=2pt,PLval] {$-\tfrac{\sqrt{3}}{2}$} ;
+ \draw ({0.707*\PLcerclerayon},0) node[above=2pt,PLval] {$\tfrac{\sqrt{2}}{2}$} ;
+ \draw ({-0.707*\PLcerclerayon},0) node[above=2pt,PLval] {$-\tfrac{\sqrt{2}}{2}$} ;
+ \draw (0,{0.707*\PLcerclerayon}) node[right=2pt,PLval] {$\tfrac{\sqrt{2}}{2}$} ;
+ \draw (0,{-0.707*\PLcerclerayon}) node[right=2pt,PLval] {$-\tfrac{\sqrt{2}}{2}$} ;
+ }%
+ {}
+ %valeurs remarquables en dernier
+ \ifboolKV[cercletrigo]{afftraits}
+ {%
+ \draw[\PLcerclethick,dotted,gray] (-120:\PLcerclerayon) rectangle (60:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (-150:\PLcerclerayon) rectangle (30:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (-135:\PLcerclerayon) rectangle (45:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (-120:\PLcerclerayon)--(60:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (-150:\PLcerclerayon)--(30:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (-135:\PLcerclerayon)--(45:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (120:\PLcerclerayon)--(-60:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (150:\PLcerclerayon)--(-30:\PLcerclerayon) ;
+ \draw[\PLcerclethick,dotted,gray] (135:\PLcerclerayon)--(-45:\PLcerclerayon) ;
+ }%
+ {}
+}
+
+
\endinput \ No newline at end of file