texlive[66201] branches/branch2022.final/Master/texmf-dist:
commits+karl at tug.org
commits+karl at tug.org
Sun Feb 26 22:13:12 CET 2023
Revision: 66201
http://tug.org/svn/texlive?view=revision&revision=66201
Author: karl
Date: 2023-02-26 22:13:12 +0100 (Sun, 26 Feb 2023)
Log Message:
-----------
tangramtikz (26feb23) (branch)
Modified Paths:
--------------
branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.pdf
branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex
branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.pdf
branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex
branches/branch2022.final/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty
Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex 2023-02-26 21:13:00 UTC (rev 66200)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex 2023-02-26 21:13:12 UTC (rev 66201)
@@ -50,8 +50,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.4}
-\def\TPdate{18/02/2023}
+\def\TPversion{0.1.5}
+\def\TPdate{25/02/2023}
\usepackage[most]{tcolorbox}
\tcbuselibrary{minted}
@@ -458,6 +458,10 @@
\item Angel
\item Tower
\item Ufo
+ \item Chicken
+ \item Turtle
+ \item Crab
+ \item Snail
\end{itemize}
\end{multicols}}
@@ -668,10 +672,36 @@
\TangramTikz[ColorCorrection]{Ufo}
\end{PresentationCode}
+\begin{PresentationCode}{}
+\TangramTikz{Chicken}
+\TangramTikz[Correction]{Chicken}
+\TangramTikz[ColorCorrection]{Chicken}
+\end{PresentationCode}
+
+\begin{PresentationCode}{}
+\TangramTikz{Turtle}
+\TangramTikz[Correction]{Turtle}
+\TangramTikz[ColorCorrection]{Turtle}
+\end{PresentationCode}
+
+\begin{PresentationCode}{}
+\TangramTikz{Crab}
+\TangramTikz[Correction]{Crab}
+\TangramTikz[ColorCorrection]{Crab}
+\end{PresentationCode}
+
+\begin{PresentationCode}{}
+\TangramTikz{Snail}
+\TangramTikz[Correction]{Snail}
+\TangramTikz[ColorCorrection]{Snail}
+\end{PresentationCode}
+
\newpage
\part{History}
+\verb|v0.1.5|~:~~~~New models
+
\verb|v0.1.4|~:~~~~New models
\verb|v0.1.3|~:~~~~New models
Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex 2023-02-26 21:13:00 UTC (rev 66200)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex 2023-02-26 21:13:12 UTC (rev 66201)
@@ -49,8 +49,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.4}
-\def\TPdate{18 Février 2023}
+\def\TPversion{0.1.5}
+\def\TPdate{25 Février 2023}
\usepackage[most]{tcolorbox}
\tcbuselibrary{minted}
@@ -460,6 +460,10 @@
\item Ange
\item Tour
\item Ovni
+ \item Poule
+ \item Tortue
+ \item Crabe
+ \item Escargot
\end{itemize}
\end{multicols}}
@@ -672,10 +676,36 @@
\TangramTikz[CorrectionCouleur]{Ovni}
\end{PresentationCode}
+\begin{PresentationCode}{}
+\TangramTikz{Poule}
+\TangramTikz[Correction]{Poule}
+\TangramTikz[CorrectionCouleur]{Poule}
+\end{PresentationCode}
+
+\begin{PresentationCode}{}
+\TangramTikz{Tortue}
+\TangramTikz[Correction]{Tortue}
+\TangramTikz[CorrectionCouleur]{Tortue}
+\end{PresentationCode}
+
+\begin{PresentationCode}{}
+\TangramTikz{Crabe}
+\TangramTikz[Correction]{Crabe}
+\TangramTikz[CorrectionCouleur]{Crabe}
+\end{PresentationCode}
+
+\begin{PresentationCode}{}
+\TangramTikz{Escargot}
+\TangramTikz[Correction]{Escargot}
+\TangramTikz[CorrectionCouleur]{Escargot}
+\end{PresentationCode}
+
\newpage
\part{Historique}
+\verb|v0.1.5|~:~~~~Nouveaux modèles
+
\verb|v0.1.4|~:~~~~Nouveaux modèles
\verb|v0.1.3|~:~~~~Nouveaux modèles
Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty 2023-02-26 21:13:00 UTC (rev 66200)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty 2023-02-26 21:13:12 UTC (rev 66201)
@@ -3,7 +3,8 @@
% Inspiration....: https://tex.stackexchange.com/questions/407449/typesetting-tangram-figures-in-latex
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{TangramTikz}[2023/02/18 v0.1.4 Tangram Puzzles with TikZ]
+\ProvidesPackage{TangramTikz}[2023/02/25 v0.1.5 Tangram Puzzles with TikZ]
+% 0.1.5 Ajout de modèles
% 0.1.4 Ajout de modèles
% 0.1.3 Ajout de modèles
% 0.1.2 Ajout de modèles
@@ -779,6 +780,98 @@
}%
}
+%the chicken / la poule (0.1.5)
+\NewDocumentCommand\TangramChicken{ s O{TangPuzz} }{%*=colorcorrection,[key for pic]
+ \IfBooleanTF{#1}%
+ {%
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=90>({0},{0}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<xscale=-1,rotate=90>({0},{0}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]({0.25},{0.25}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[2]}]<rotate=135>({0.5*sqrt(2)},{-0.5*sqrt(2)}){TangMoyTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[4]}]({1},{2}){TangCar}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=135>({1+sqrt(2)},{3}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[5]}]<xscale=-1>({-1},{2}){TangPara}
+ }%
+ {%
+ \PieceTangram[#2]<rotate=90>({0},{0}){TangGrandTri}
+ \PieceTangram[#2]<xscale=-1,rotate=90>({0},{0}){TangGrandTri}
+ \PieceTangram[#2]({0.25},{0.25}){TangPetTri}
+ \PieceTangram[#2]<rotate=135>({0.5*sqrt(2)},{-0.5*sqrt(2)}){TangMoyTri}
+ \PieceTangram[#2]({1},{2}){TangCar}
+ \PieceTangram[#2]<rotate=135>({1+sqrt(2)},{3}){TangPetTri}
+ \PieceTangram[#2]<xscale=-1>({-1},{2}){TangPara}
+ }%
+}
+
+%the turtle / la tortue (0.1.5)
+\NewDocumentCommand\TangramTurtle{ s O{TangPuzz} }{%*=colorcorrection,[key for pic]
+ \IfBooleanTF{#1}%
+ {%
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]({0},{0}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<xscale=-1,rotate=90>({0},{0}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[5]}]<xscale=-1,,rotate=90>({2},{0}){TangPara}
+ \PieceTangram[TangSol={\TanGListeCouleurs[4]}]({3},{1}){TangCar}
+ \PieceTangram[TangSol={\TanGListeCouleurs[2]}]<rotate=90>({0},{0}){TangMoyTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=45>({-0.5*sqrt(2)},{-0.5*sqrt(2)}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-135>({2+0.5*sqrt(2)},{0.5*sqrt(2)}){TangPetTri}
+ }%
+ {%
+ \PieceTangram[#2]({0},{0}){TangGrandTri}
+ \PieceTangram[#2]<xscale=-1,rotate=90>({0},{0}){TangGrandTri}
+ \PieceTangram[#2]<xscale=-1,,rotate=90>({2},{0}){TangPara}
+ \PieceTangram[#2]({3},{1}){TangCar}
+ \PieceTangram[#2]<rotate=90>({0},{0}){TangMoyTri}
+ \PieceTangram[#2]<rotate=45>({-0.5*sqrt(2)},{-0.5*sqrt(2)}){TangPetTri}
+ \PieceTangram[#2]<rotate=-135>({2+0.5*sqrt(2)},{0.5*sqrt(2)}){TangPetTri}
+ }%
+}
+
+%the crab / le crabe (0.1.5)
+\NewDocumentCommand\TangramCrab{ s O{TangPuzz} }{%*=colorcorrection,[key for pic]
+ \IfBooleanTF{#1}%
+ {%
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-90>({0},{2}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=90>({3},{-1}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=180>({1},{0}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[4]}]({1},{1}){TangCar}
+ \PieceTangram[TangSol={\TanGListeCouleurs[5]}]({2},{1}){TangPara}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-90>({3},{3}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[2]}]<rotate=90>({0},{1}){TangMoyTri}
+ }%
+ {%
+ \PieceTangram[#2]<rotate=-90>({0},{2}){TangGrandTri}
+ \PieceTangram[#2]<rotate=90>({3},{-1}){TangGrandTri}
+ \PieceTangram[#2]<rotate=180>({1},{0}){TangPetTri}
+ \PieceTangram[#2]({1},{1}){TangCar}
+ \PieceTangram[#2]({2},{1}){TangPara}
+ \PieceTangram[#2]<rotate=-90>({3},{3}){TangPetTri}
+ \PieceTangram[#2]<rotate=90>({0},{1}){TangMoyTri}
+ }%
+}
+
+%the snail / l'ecargot (0.1.5)
+\NewDocumentCommand\TangramSnail{ s O{TangPuzz} }{%*=colorcorrection,[key for pic]
+ \IfBooleanTF{#1}%
+ {%
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=45>({0},{0}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-135>({0},{2*sqrt(2)}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[5]}]({0},{0}){TangPara}
+ \PieceTangram[TangSol={\TanGListeCouleurs[2]}]({1},{0}){TangMoyTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=-90>({-1},{1}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]({-2},{0}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[4]}]<rotate=-45>({2},{1}){TangCar}
+ }%
+ {%
+ \PieceTangram[#2]<rotate=45>({0},{0}){TangGrandTri}
+ \PieceTangram[#2]<rotate=-135>({0},{2*sqrt(2)}){TangGrandTri}
+ \PieceTangram[#2]({0},{0}){TangPara}
+ \PieceTangram[#2]({1},{0}){TangMoyTri}
+ \PieceTangram[#2]<rotate=-90>({-1},{1}){TangPetTri}
+ \PieceTangram[#2]({-2},{0}){TangPetTri}
+ \PieceTangram[#2]<rotate=-45>({2},{1}){TangCar}
+ }%
+}
+
%macros for tangram creation / commandes pour créer le tangram
\NewDocumentCommand\TangramTikzCreateEN{ m }{%
\readlist*\TanGListeCouleurs{\TangColors}%
@@ -913,6 +1006,18 @@
%UFO
\IfStrEq{#3}{Ufo}{\TangramTikzCreateEN{\TangramUfo}}{}%
\IfStrEq{#3}{Ovni}{\TangramTikzCreateFR{\TangramUfo}}{}%
+ %CHICKEN
+ \IfStrEq{#3}{Chicken}{\TangramTikzCreateEN{\TangramChicken}}{}%
+ \IfStrEq{#3}{Poule}{\TangramTikzCreateFR{\TangramChicken}}{}%
+ %TURTLE
+ \IfStrEq{#3}{Turtle}{\TangramTikzCreateEN{\TangramTurtle}}{}%
+ \IfStrEq{#3}{Tortue}{\TangramTikzCreateFR{\TangramTurtle}}{}%
+ %CRAB
+ \IfStrEq{#3}{Crab}{\TangramTikzCreateEN{\TangramCrab}}{}%
+ \IfStrEq{#3}{Crabe}{\TangramTikzCreateFR{\TangramCrab}}{}%
+ %SNAIL
+ \IfStrEq{#3}{Snail}{\TangramTikzCreateEN{\TangramSnail}}{}%
+ \IfStrEq{#3}{Escargot}{\TangramTikzCreateFR{\TangramSnail}}{}%
\end{tikzpicture}%
}
More information about the tex-live-commits
mailing list.