diff options
Diffstat (limited to 'graphics/pgf/contrib/tangramtikz')
-rw-r--r-- | graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.pdf | bin | 430175 -> 435827 bytes | |||
-rw-r--r-- | graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.tex | 138 | ||||
-rw-r--r-- | graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.pdf | bin | 428860 -> 435237 bytes | |||
-rw-r--r-- | graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.tex | 140 | ||||
-rw-r--r-- | graphics/pgf/contrib/tangramtikz/tex/TangramTikz.sty | 159 |
5 files changed, 341 insertions, 96 deletions
diff --git a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.pdf b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.pdf Binary files differindex 7a65de7e9d..8f2d5b2833 100644 --- a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.pdf +++ b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.pdf diff --git a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.tex b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.tex index 91e5e63e25..bb60af024d 100644 --- a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.tex +++ b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-en.tex @@ -50,8 +50,8 @@ \setlength{\parindent}{0pt} \definecolor{LightGray}{gray}{0.9} -\def\TPversion{0.1.0} -\def\TPdate{23/01/2023} +\def\TPversion{0.1.1} +\def\TPdate{26/01/2023} \usepackage[most]{tcolorbox} \tcbuselibrary{minted} @@ -438,6 +438,12 @@ The third argument, \textit{mandatory} and between \texttt{\{...\}} is the name \item Sailboat \item Kangaroo \item Dog + \item Plane + \item Rabbit + \item Rooster + \item Jogger + \item Dancer + \item Camel \end{itemize} \end{multicols}} @@ -465,99 +471,137 @@ The third argument, \textit{mandatory} and between \texttt{\{...\}} is the name \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Pinguin} - \TangramTikz[Correction]{Pinguin} - \TangramTikz[ColorCorrection]{Pinguin} +\TangramTikz{Pinguin} +\TangramTikz[Correction]{Pinguin} +\TangramTikz[ColorCorrection]{Pinguin} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Boat} - \TangramTikz[Correction]{Boat} - \TangramTikz[ColorCorrection]{Boat} +\TangramTikz{Boat} +\TangramTikz[Correction]{Boat} +\TangramTikz[ColorCorrection]{Boat} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Home} - \TangramTikz[Correction]{Home} - \TangramTikz[ColorCorrection]{Home} +\TangramTikz{Home} +\TangramTikz[Correction]{Home} +\TangramTikz[ColorCorrection]{Home} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{FirTree} - \TangramTikz[Correction]{FirTree} - \TangramTikz[ColorCorrection]{FirTree} +\TangramTikz{FirTree} +\TangramTikz[Correction]{FirTree} +\TangramTikz[ColorCorrection]{FirTree} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Cat} - \TangramTikz[Correction]{Cat} - \TangramTikz[ColorCorrection]{Cat} +\TangramTikz{Cat} +\TangramTikz[Correction]{Cat} +\TangramTikz[ColorCorrection]{Cat} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Swan} - \TangramTikz[Correction]{Swan} - \TangramTikz[ColorCorrection]{Swan} +\TangramTikz{Swan} +\TangramTikz[Correction]{Swan} +\TangramTikz[ColorCorrection]{Swan} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Pyramid} - \TangramTikz[Correction]{Pyramid} - \TangramTikz[ColorCorrection]{Pyramid} +\TangramTikz{Pyramid} +\TangramTikz[Correction]{Pyramid} +\TangramTikz[ColorCorrection]{Pyramid} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Duck} - \TangramTikz[Correction]{Duck} - \TangramTikz[ColorCorrection]{Duck} +\TangramTikz{Duck} +\TangramTikz[Correction]{Duck} +\TangramTikz[ColorCorrection]{Duck} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Rocket} - \TangramTikz[Correction]{Rocket} - \TangramTikz[ColorCorrection]{Rocket} +\TangramTikz{Rocket} +\TangramTikz[Correction]{Rocket} +\TangramTikz[ColorCorrection]{Rocket} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Candle} - \TangramTikz[Correction]{Candle} - \TangramTikz[ColorCorrection]{Candle} +\TangramTikz{Candle} +\TangramTikz[Correction]{Candle} +\TangramTikz[ColorCorrection]{Candle} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Shirt} - \TangramTikz[Correction]{Shirt} - \TangramTikz[ColorCorrection]{Shirt} +\TangramTikz{Shirt} +\TangramTikz[Correction]{Shirt} +\TangramTikz[ColorCorrection]{Shirt} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Fish} - \TangramTikz[Correction]{Fish} - \TangramTikz[ColorCorrection]{Fish} +\TangramTikz{Fish} +\TangramTikz[Correction]{Fish} +\TangramTikz[ColorCorrection]{Fish} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Sailboat} - \TangramTikz[Correction]{Sailboat} - \TangramTikz[ColorCorrection]{Sailboat} +\TangramTikz{Sailboat} +\TangramTikz[Correction]{Sailboat} +\TangramTikz[ColorCorrection]{Sailboat} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Kangaroo} - \TangramTikz[Correction]{Kangaroo} - \TangramTikz[ColorCorrection]{Kangaroo} +\TangramTikz{Kangaroo} +\TangramTikz[Correction]{Kangaroo} +\TangramTikz[ColorCorrection]{Kangaroo} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Dog} - \TangramTikz[Correction]{Dog} - \TangramTikz[ColorCorrection]{Dog} +\TangramTikz{Dog} +\TangramTikz[Correction]{Dog} +\TangramTikz[ColorCorrection]{Dog} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Plane} +\TangramTikz[Correction]{Plane} +\TangramTikz[ColorCorrection]{Plane} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Rabbit} +\TangramTikz[Correction]{Rabbit} +\TangramTikz[ColorCorrection]{Rabbit} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Rooster} +\TangramTikz[Correction]{Rooster} +\TangramTikz[ColorCorrection]{Rooster} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Jogger} +\TangramTikz[Correction]{Jogger} +\TangramTikz[ColorCorrection]{Jogger} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Dancer} +\TangramTikz[Correction]{Dancer} +\TangramTikz[ColorCorrection]{Dancer} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Camel} +\TangramTikz[Correction]{Camel} +\TangramTikz[ColorCorrection]{Camel} \end{PresentationCode} \newpage \part{History} +\verb|v0.1.1|~:~~~~New models + \verb|v0.1.0|~:~~~~Initial version \end{document}
\ No newline at end of file diff --git a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.pdf b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.pdf Binary files differindex 4025111adf..b17c1d9b6b 100644 --- a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.pdf +++ b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.pdf diff --git a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.tex b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.tex index 19fc03ab70..ec34ffbfe7 100644 --- a/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.tex +++ b/graphics/pgf/contrib/tangramtikz/doc/TangramTikz-doc-fr.tex @@ -49,8 +49,8 @@ \setlength{\parindent}{0pt} \definecolor{LightGray}{gray}{0.9} -\def\TPversion{0.1.0} -\def\TPdate{23 Janvier 2023} +\def\TPversion{0.1.1} +\def\TPdate{26 Janvier 2023} \usepackage[most]{tcolorbox} \tcbuselibrary{minted} @@ -421,7 +421,7 @@ Le deuxième argument, \textit{optionnel} et entre \texttt{<...>}, correspond au \end{itemize} Le troisième argument, \textit{obligatoire} et entre \texttt{\{...\}} est quant à lui le nom du Tangram issu de la \textit{base de données} présente dans le package : - +% \texttt{\begin{multicols}{5} \begin{itemize} \item Carre @@ -440,6 +440,12 @@ Le troisième argument, \textit{obligatoire} et entre \texttt{\{...\}} est quant \item Voilier \item Kangourou \item Chien + \item Lapin + \item Avion + \item Coq + \item Coureur + \item Danseur + \item Chameau \end{itemize} \end{multicols}} @@ -467,99 +473,137 @@ Le troisième argument, \textit{obligatoire} et entre \texttt{\{...\}} est quant \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Pingouin} - \TangramTikz[Correction]{Pingouin} - \TangramTikz[CorrectionCouleur]{Pingouin} +\TangramTikz{Pingouin} +\TangramTikz[Correction]{Pingouin} +\TangramTikz[CorrectionCouleur]{Pingouin} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Bateau} +\TangramTikz[Correction]{Bateau} +\TangramTikz[CorrectionCouleur]{Bateau} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Maison} +\TangramTikz[Correction]{Maison} +\TangramTikz[CorrectionCouleur]{Maison} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Sapin} +\TangramTikz[Correction]{Sapin} +\TangramTikz[CorrectionCouleur]{Sapin} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Bateau} - \TangramTikz[Correction]{Bateau} - \TangramTikz[CorrectionCouleur]{Bateau} +\TangramTikz{Chat} +\TangramTikz[Correction]{Chat} +\TangramTikz[CorrectionCouleur]{Chat} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Maison} - \TangramTikz[Correction]{Maison} - \TangramTikz[CorrectionCouleur]{Maison} +\TangramTikz{Cygne} +\TangramTikz[Correction]{Cygne} +\TangramTikz[CorrectionCouleur]{Cygne} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Sapin} - \TangramTikz[Correction]{Sapin} - \TangramTikz[CorrectionCouleur]{Sapin} +\TangramTikz{Pyramide} +\TangramTikz[Correction]{Pyramide} +\TangramTikz[CorrectionCouleur]{Pyramide} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Chat} - \TangramTikz[Correction]{Chat} - \TangramTikz[CorrectionCouleur]{Chat} +\TangramTikz{Canard} +\TangramTikz[Correction]{Canard} +\TangramTikz[CorrectionCouleur]{Canard} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Cygne} - \TangramTikz[Correction]{Cygne} - \TangramTikz[CorrectionCouleur]{Cygne} +\TangramTikz{Fusee} +\TangramTikz[Correction]{Fusee} +\TangramTikz[CorrectionCouleur]{Fusee} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Pyramide} - \TangramTikz[Correction]{Pyramide} - \TangramTikz[CorrectionCouleur]{Pyramide} +\TangramTikz{Bougie} +\TangramTikz[Correction]{Bougie} +\TangramTikz[CorrectionCouleur]{Bougie} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Canard} - \TangramTikz[Correction]{Canard} - \TangramTikz[CorrectionCouleur]{Canard} +\TangramTikz{Chemise} +\TangramTikz[Correction]{Chemise} +\TangramTikz[CorrectionCouleur]{Chemise} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Fusee} - \TangramTikz[Correction]{Fusee} - \TangramTikz[CorrectionCouleur]{Fusee} +\TangramTikz{Poisson} +\TangramTikz[Correction]{Poisson} +\TangramTikz[CorrectionCouleur]{Poisson} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Bougie} - \TangramTikz[Correction]{Bougie} - \TangramTikz[CorrectionCouleur]{Bougie} +\TangramTikz{Voilier} +\TangramTikz[Correction]{Voilier} +\TangramTikz[CorrectionCouleur]{Voilier} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Chemise} - \TangramTikz[Correction]{Chemise} - \TangramTikz[CorrectionCouleur]{Chemise} +\TangramTikz{Kangourou} +\TangramTikz[Correction]{Kangourou} +\TangramTikz[CorrectionCouleur]{Kangourou} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Poisson} - \TangramTikz[Correction]{Poisson} - \TangramTikz[CorrectionCouleur]{Poisson} +\TangramTikz{Chien} +\TangramTikz[Correction]{Chien} +\TangramTikz[CorrectionCouleur]{Chien} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Voilier} - \TangramTikz[Correction]{Voilier} - \TangramTikz[CorrectionCouleur]{Voilier} +\TangramTikz{Lapin} +\TangramTikz[Correction]{Lapin} +\TangramTikz[CorrectionCouleur]{Lapin} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Kangourou} - \TangramTikz[Correction]{Kangourou} - \TangramTikz[CorrectionCouleur]{Kangourou} +\TangramTikz{Avion} +\TangramTikz[Correction]{Avion} +\TangramTikz[CorrectionCouleur]{Avion} \end{PresentationCode} \begin{PresentationCode}{} - \TangramTikz{Chien} - \TangramTikz[Correction]{Chien} - \TangramTikz[CorrectionCouleur]{Chien} +\TangramTikz{Coq} +\TangramTikz[Correction]{Coq} +\TangramTikz[CorrectionCouleur]{Coq} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Coureur} +\TangramTikz[Correction]{Coureur} +\TangramTikz[CorrectionCouleur]{Coureur} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Danseur} +\TangramTikz[Correction]{Danseur} +\TangramTikz[CorrectionCouleur]{Danseur} +\end{PresentationCode} + +\begin{PresentationCode}{} +\TangramTikz{Chameau} +\TangramTikz[Correction]{Chameau} +\TangramTikz[CorrectionCouleur]{Chameau} \end{PresentationCode} \newpage \part{Historique} +\verb|v0.1.1|~:~~~~Nouveaux modèles + \verb|v0.1.0|~:~~~~Version initiale \end{document}
\ No newline at end of file diff --git a/graphics/pgf/contrib/tangramtikz/tex/TangramTikz.sty b/graphics/pgf/contrib/tangramtikz/tex/TangramTikz.sty index 90e772d99c..3bed1152a8 100644 --- a/graphics/pgf/contrib/tangramtikz/tex/TangramTikz.sty +++ b/graphics/pgf/contrib/tangramtikz/tex/TangramTikz.sty @@ -3,7 +3,8 @@ % Inspiration....: https://tex.stackexchange.com/questions/407449/typesetting-tangram-figures-in-latex \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{TangramTikz}[2023/01/22 v0.1.0 Tangram Puzzles with TikZ] +\ProvidesPackage{TangramTikz}[2023/01/26 v0.1.1 Tangram Puzzles with TikZ] +% 0.1.1 Ajout de modèles % 0.1.0 Version initiale + quelques modèles %------Packages utiles @@ -407,6 +408,144 @@ }% } +%the rabbit / le lapin (0.1.1) +\NewDocumentCommand\TangramRabbit{ s O{TangPuzz} }{%*=colorcorrection,[key for pic] + \IfBooleanTF{#1}% + {% + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-135>({0},{0}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-90>({-sqrt(2)},{-sqrt(2)}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-90>({0},{-0.5}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-135>({-sqrt(2)},{-2}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[4]}]({0},{0}){TangCar} + \PieceTangram[TangSol={\TanGListeCouleurs[2]}]<rotate=90>({0.2},{1}){TangMoyTri} + \PieceTangram[TangSol={\TanGListeCouleurs[5]}]<rotate=30>({0.2},{1}){TangPara} + }% + {% + \PieceTangram[#2]<rotate=-135>({0},{0}){TangGrandTri} + \PieceTangram[#2]<rotate=-90>({-sqrt(2)},{-sqrt(2)}){TangGrandTri} + \PieceTangram[#2]<rotate=-90>({0},{-0.5}){TangPetTri} + \PieceTangram[#2]<rotate=-135>({-sqrt(2)},{-2}){TangPetTri} + \PieceTangram[#2]({0},{0}){TangCar} + \PieceTangram[#2]<rotate=90>({0.2},{1}){TangMoyTri} + \PieceTangram[#2]<rotate=30>({0.2},{1}){TangPara} + }% +} + +%the plane / l'avion (0.1.1) +\NewDocumentCommand\TangramPlane{ s O{TangPuzz} }{%*=colorcorrection,[key for pic] + \IfBooleanTF{#1}% + {% + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-90>({0},{2}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=180>({2},{0}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=135>({2+0.5*sqrt(2)},{-0.5*sqrt(2)}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[5]}]<rotate=-45>({2},{0}){TangPara} + \PieceTangram[TangSol={\TanGListeCouleurs[4]}]({-1},{-0.75}){TangCar} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=90>({-1},{-0.75}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[2]}]<rotate=135>({sqrt(2)-2},{0.25}){TangMoyTri} + }% + {% + \PieceTangram[#2]<rotate=-90>({0},{2}){TangGrandTri} + \PieceTangram[#2]<rotate=180>({2},{0}){TangGrandTri} + \PieceTangram[#2]<rotate=135>({2+0.5*sqrt(2)},{-0.5*sqrt(2)}){TangPetTri} + \PieceTangram[#2]<rotate=-45>({2},{0}){TangPara} + \PieceTangram[#2]({-1},{-0.75}){TangCar} + \PieceTangram[#2]<rotate=90>({-1},{-0.75}){TangPetTri} + \PieceTangram[#2]<rotate=135>({sqrt(2)-2},{0.25}){TangMoyTri} + }% +} + +%the rooster / le coq (0.1.1) +\NewDocumentCommand\TangramRooster{ s O{TangPuzz} }{%*=colorcorrection,[key for pic] + \IfBooleanTF{#1}% + {% + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=180>({2},{0}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=90>({0},{-1}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-135>({1.6},{-0.4}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[2]}]({-2},{1}){TangMoyTri} + \PieceTangram[TangSol={\TanGListeCouleurs[4]}]({1},{0}){TangCar} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=135>({1+sqrt(2)},{1}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[5]}]<yscale=-1,rotate=45>({-2},{1}){TangPara} + }% + {% + \PieceTangram[#2]<rotate=180>({2},{0}){TangGrandTri} + \PieceTangram[#2]<rotate=90>({0},{-1}){TangGrandTri} + \PieceTangram[#2]<rotate=-135>({1.6},{-0.4}){TangPetTri} + \PieceTangram[#2]({-2},{1}){TangMoyTri} + \PieceTangram[#2]({1},{0}){TangCar} + \PieceTangram[#2]<rotate=135>({1+sqrt(2)},{1}){TangPetTri} + \PieceTangram[#2]<yscale=-1,rotate=45>({-2},{1}){TangPara} + }% +} + +%the jogger / le coureur (0.1.1) +\NewDocumentCommand\TangramJogger{ s O{TangPuzz} }{%*=colorcorrection,[key for pic] + \IfBooleanTF{#1}% + {% + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=135>({sqrt(2)},{-sqrt(2)}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-45>({-1},{1}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[4]}]<rotate=45>({sqrt(2)-1},{1}){TangCar} + \PieceTangram[TangSol={\TanGListeCouleurs[2]}]<rotate=-45>({0},{-sqrt(2)}){TangMoyTri} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-90>({0.9},{-sqrt(2)-0.9}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[5]}]({-sqrt(2)-1},{-sqrt(2)-1}){TangPara} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=180>({-sqrt(2)-0.5},{-sqrt(2)-0.5}){TangPetTri} + }% + {% + \PieceTangram[#2]<rotate=135>({sqrt(2)},{-sqrt(2)}){TangGrandTri} + \PieceTangram[#2]<rotate=-45>({-1},{1}){TangGrandTri} + \PieceTangram[#2]<rotate=45>({sqrt(2)-1},{1}){TangCar} + \PieceTangram[#2]<rotate=-45>({0},{-sqrt(2)}){TangMoyTri} + \PieceTangram[#2]<rotate=-90>({0.9},{-sqrt(2)-0.9}){TangPetTri} + \PieceTangram[#2]({-sqrt(2)-1},{-sqrt(2)-1}){TangPara} + \PieceTangram[#2]<rotate=180>({-sqrt(2)-0.5},{-sqrt(2)-0.5}){TangPetTri} + }% +} + +%the dancer / le danseur (0.1.1) +\NewDocumentCommand\TangramDancer{ s O{TangPuzz} }{%*=colorcorrection,[key for pic] + \IfBooleanTF{#1}% + {% + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]({0},{0}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=180>({3.5},{3.5}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[4]}]<rotate=45>({1.5},{3.5}){TangCar} + \PieceTangram[TangSol={\TanGListeCouleurs[5]}]({2},{2}){TangPara} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=180>({0.5},{0}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[2]}]<rotate=-90>({2},{1.5}){TangMoyTri} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-135>({2.5},{0}){TangPetTri} + }% + {% + \PieceTangram[#2]({0},{0}){TangGrandTri} + \PieceTangram[#2]<rotate=180>({3.5},{3.5}){TangGrandTri} + \PieceTangram[#2]<rotate=45>({1.5},{3.5}){TangCar} + \PieceTangram[#2]({2},{2}){TangPara} + \PieceTangram[#2]<rotate=180>({0.5},{0}){TangPetTri} + \PieceTangram[#2]<rotate=-90>({2},{1.5}){TangMoyTri} + \PieceTangram[#2]<rotate=-135>({2.5},{0}){TangPetTri} + }% +} + +%the camel / le chameau (0.1.1) +\NewDocumentCommand\TangramCamel{ s O{TangPuzz} }{%*=colorcorrection,[key for pic] + \IfBooleanTF{#1}% + {% + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=180>({0},{0}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[2]}]({-2},{0}){TangMoyTri} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<xscale=-1,rotate=-78>({-2},{0}){TangPetTri} + \PieceTangram[TangSol={\TanGListeCouleurs[4]}]<rotate=45>({0},{0}){TangCar} + \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-135>({0.5*sqrt(2)},{0.5*sqrt(2)}){TangGrandTri} + \PieceTangram[TangSol={\TanGListeCouleurs[5]}]<rotate=-135>({sqrt(2)},{0.25+sqrt(2)}){TangPara} + \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=180>({1+0.5*sqrt(2)},{1.5*sqrt(2)-0.25}){TangPetTri} + }% + {% + \PieceTangram[#2]<rotate=180>({0},{0}){TangGrandTri} + \PieceTangram[#2]({-2},{0}){TangMoyTri} + \PieceTangram[#2]<xscale=-1,rotate=-78>({-2},{0}){TangPetTri} + \PieceTangram[#2]<rotate=45>({0},{0}){TangCar} + \PieceTangram[#2]<rotate=-135>({0.5*sqrt(2)},{0.5*sqrt(2)}){TangGrandTri} + \PieceTangram[#2]<rotate=-135>({sqrt(2)},{0.25+sqrt(2)}){TangPara} + \PieceTangram[#2]<rotate=180>({1+0.5*sqrt(2)},{1.5*sqrt(2)-0.25}){TangPetTri} + }% +} + %macros for tangram creation / commandes pour créer le tangram \NewDocumentCommand\TangramTikzCreateEN{ m }{% \readlist*\TanGListeCouleurs{\TangColors}% @@ -493,6 +632,24 @@ %DOG \IfStrEq{#3}{Dog}{\TangramTikzCreateEN{\TangramDog}}{}% \IfStrEq{#3}{Chien}{\TangramTikzCreateFR{\TangramDog}}{}% + %RABBIT + \IfStrEq{#3}{Rabbit}{\TangramTikzCreateEN{\TangramRabbit}}{}% + \IfStrEq{#3}{Lapin}{\TangramTikzCreateFR{\TangramRabbit}}{}% + %FLIGHT + \IfStrEq{#3}{Plane}{\TangramTikzCreateEN{\TangramPlane}}{}% + \IfStrEq{#3}{Avion}{\TangramTikzCreateFR{\TangramPlane}}{}% + %ROOSTER + \IfStrEq{#3}{Rooster}{\TangramTikzCreateEN{\TangramRooster}}{}% + \IfStrEq{#3}{Coq}{\TangramTikzCreateFR{\TangramRooster}}{}% + %JOGGER + \IfStrEq{#3}{Jogger}{\TangramTikzCreateEN{\TangramJogger}}{}% + \IfStrEq{#3}{Coureur}{\TangramTikzCreateFR{\TangramJogger}}{}% + %DANCER + \IfStrEq{#3}{Dancer}{\TangramTikzCreateEN{\TangramDancer}}{}% + \IfStrEq{#3}{Danseur}{\TangramTikzCreateFR{\TangramDancer}}{}% + %CAMEL + \IfStrEq{#3}{Camel}{\TangramTikzCreateEN{\TangramCamel}}{}% + \IfStrEq{#3}{Chameau}{\TangramTikzCreateFR{\TangramCamel}}{}% \end{tikzpicture}% } |