texlive[73592] Master/texmf-dist: tangramtikz (25jan25)
commits+karl at tug.org
commits+karl at tug.org
Sat Jan 25 21:47:45 CET 2025
Revision: 73592
https://tug.org/svn/texlive?view=revision&revision=73592
Author: karl
Date: 2025-01-25 21:47:45 +0100 (Sat, 25 Jan 2025)
Log Message:
-----------
tangramtikz (25jan25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.pdf
trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex
trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.pdf
trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex
trunk/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty
Modified: trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex 2025-01-25 18:41:15 UTC (rev 73591)
+++ trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-en.tex 2025-01-25 20:47:45 UTC (rev 73592)
@@ -50,10 +50,11 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.5}
-\def\TPdate{25/02/2023}
+\def\TPversion{0.1.7}
+\def\TPdate{25/01/2025}
\usepackage[most]{tcolorbox}
+\usepackage{minted2}
\tcbuselibrary{minted}
\NewTCBListing{PresentationCode}{ O{blue} m }{%
sharp corners=downhill,enhanced,arc=12pt,skin=bicolor,%
@@ -86,9 +87,11 @@
\begin{tabular}{c}
{\Huge \texttt{TangramTikz [en]}}\\
\\
- {\LARGE Tangrams, with Ti\textit{k}Z}, \\
+ {\LARGE An extension of Ti\textit{k}Z to display Tangrams,} \\
\\
- {\LARGE with solution and/or color.} \\
+ {\LARGE outlining or not individual pieces,} \\
+ \\
+ {\LARGE with a single or individual colours} \\
\end{tabular}
\medskip
@@ -104,22 +107,22 @@
\begin{center}
\begin{tabular}{c}
\texttt{Cédric Pierquet}\\
- {\ttfamily c pierquet -- at -- outlook . fr}\\
- \texttt{\url{https://github.com/cpierquet/TangramTikz}}
+ {\ttfamily cpierquet -- at -- outlook . fr}\\
+ \texttt{\url{https://forge.apps.education.fr/pierquetcedric/packages-latex}}
\end{tabular}
\end{center}
\vspace{0.5cm}
-{$\blacktriangleright$~~Some commands to display existing Tangrams.}
+{$\blacktriangleright$~~Commands to display predefined Tangrams}
\smallskip
-{$\blacktriangleright$~~Create tangram, with postionning manually the pieces.}
+{$\blacktriangleright$~~Commands to create Tangrams by positioning individual pieces}
\smallskip
-{$\blacktriangleright$~~Idea(s) from \url{https://tex.stackexchange.com/questions/407449/typesetting-tangram-figures-in-latex}}
+{$\blacktriangleright$~~Inspired by \url{https://tex.stackexchange.com/questions/407449/typesetting-tangram-figures-in-latex}}
\vspace{1cm}
@@ -135,14 +138,14 @@
\vspace*{1cm}
\TangramTikz[Couleur=orange]<scale=1>{Maison}
- \TangramTikz[Correction]<scale=1>{Maison}
- \TangramTikz[CorrectionCouleur]<scale=1>{Maison}
+ \TangramTikz[Solution]<scale=1>{Maison}
+ \TangramTikz[ColorSolution]<scale=1>{Maison}
\TangramTikz[ListeCouleurs={blue,red,black,orange,purple},CorrectionCouleur]<scale=1>{Maison}
\end{center}
\vspace{0.5cm}
-%\hfill{}\textit{Merci aux membres du groupe \faFacebook{} du \og Coin \LaTeX{} \fg{} pour leur aide et leurs idées !}
+\hfill{}\textit{Thanks to Eric Martin, teacher-researcher in Sydney, for his careful proofreading of the English version!}
%\hfill{}\textit{Merci à Denis Bitouzé et à Patrick Bideault pour leurs retours et idées !}
@@ -171,56 +174,56 @@
\part{Introduction}
-\section{The package TangramTikz}
+\section{The TangramTikz package}
-\subsection{Source}
+\subsection{Origination}
-Some of the ideas are coming from \url{https://tex.stackexchange.com/questions/407449/typesetting-tangram-figures-in-latex}, specially from Andrew Stacey.
+Some of the ideas come from \url{https://tex.stackexchange.com/questions/407449/typesetting-tangram-figures-in-latex}, with a partial solution by Andrew Stacey.
\smallskip
-The package has been \textit{built} around the ideas from Andrew Stacey.
+The package has then been \textit{built} and \emph{modestly enriched} on the basis of the styles and methods proposed by Andrew Stacey.
-\subsection{Loading of the package, used packages}
+\subsection{Loading the package, used packages}
-The package \textsf{TangramTikz} loads into the preamble by :
+The \textsf{TangramTikz} package is loaded into the preamble using:
\begin{PresentationCode}{listing only}
\usepackage{TangramTikz}
\end{PresentationCode}
-It's fully copatible with usuals compilations, such as \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} or \textsf{xelatex}.
+It is fully compatible with the usual compilation methods, such as \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} or \textsf{xelatex}.
\medskip
-It loads the packages and libraries :
+It loads the following packages and libraries:
\begin{itemize}
- \item \texttt{tikz} awith libraries \Cle{calc} ans \Cle{shapes.geometric} ;
+ \item \texttt{tikz} with the \Cle{calc} and \Cle{shapes.geometric} libraries;
\item \texttt{xstring}, \texttt{xparse}, \texttt{simplekv} and \texttt{listofitems}.
\end{itemize}
-\subsection{The package itself}
+\subsection{Package design}
-The idea is to, thanks to \TikZ, propose \textsf{commands} to display a Tangram Puzzle :
+The aim is to leverage \TikZ\ functionality and define \textsf{commands} to display a Tangram puzzle:
\begin{itemize}
- \item with \textit{full} pieces ;
- \item by puzzle with \textit{border} pieces ;
- \item by puzzle with \textit{border colored} pieces.
+ \item without gaps between pieces, so the overall shape stands out,
+ \item or with a small gap between pieces, which are then individually recognisable,
+ \item in the latter case, with pieces that are either \textit{mono}coloured or \emph{individually} coloured.
\end{itemize}
\begin{PresentationCode}{listing only}
-%independant command to display a Tangram
+%Standalone command to display a Tangram
\TangramTikz[keys]<options tikz>{tangram_name}
\end{PresentationCode}
-There's also an \textsf{environment} and a special \textsf{command} to build the puzzle, by positionning the pieces.
+Also available are an \textsf{environment} and a special \textsf{command} to build a puzzle by positioning each piece.
\begin{PresentationCode}{listing only}
-%environment, with keys, and positionning the pieces
+%Environment, with keys, to position the pieces
\begin{EnvTangramTikz}[keys]<options tikz>
- %positionning the pieces
+ %Position each piece
\PieceTangram[keys]<options pic>(offsetH,offsetV){TangBigTri}
\PieceTangram[keys]<options pic>(offsetH,offsetH){TangBigTri}
\PieceTangram[keys]<options pic>(offsetH,offsetH){TangMedTri}
@@ -228,36 +231,36 @@
\PieceTangram[keys]<options pic>(offsetH,offsetH){TangSmalTri}
\PieceTangram[keys]<options pic>(offsetH,offsetH){TangSqua}
\PieceTangram[keys]<options pic>(offsetH,offsetH){TangPara}
- %\filldraw[black] (0,0) circle[radius=4pt] ; %help for positionning
+ %\filldraw[black] (0,0) circle[radius=4pt] ; %Origin to help positioning
\end{EnvTangramTikz}
\end{PresentationCode}
\pagebreak
-\part{Usage of the package}
+\part{Using the package}
-\section{Manually}
+\section{Dealing with individual pieces}
-\subsection{The pieces of the Tangram}
+\subsection{The pieces}
-A Tangram is composed by 7 pieces :
+A Tangram consists of 7 pieces:
\begin{itemize}
- \item 2 big triangles ; 1 medium triangle ; 2 small triangles ;
- \item 1 square ;
+ \item 2 large triangles; 1 medium triangle; 2 small triangles;
+ \item 1 square;
\item 1 parallelogram.
\end{itemize}
-Each piece of the Tangram is defined in \tikzlogo, by an independent \texttt{pic}..
+Each piece that makes up the Tangram is defined in \tikzlogo\ as an individual \texttt{pic}.
\medskip
-A figure to show the 5 pieces :
+Next is a figure that shows the 5 kinds of pieces, with for each of them:
\begin{itemize}
- \item with the \textcolor{purple}{\texttt{name}} of the \texttt{pic} ;
- \item with the initial \textit{orientation} ;
- \item with thier initial \textcolor{red}{\textit{origin}} ;
- \item with their common \textcolor{blue}{\textit{dimensions}} (given in \textit{unit}).
+ \item the \textcolor{purple}{\texttt{name}} of the associated \texttt{pic};
+ \item its initial \textit{orientation};
+ \item its initial \textcolor{red}{\textit{origin}};
+ \item its useful \textcolor{blue}{\textit{dimensions}} (given in \textit{unit}).
\end{itemize}
\begin{center}
@@ -312,49 +315,49 @@
\end{tikzpicture}
\end{center}
-Each \textit{piece} can :
+Each \textit{piece} can be:
\begin{itemize}
- \item rotated, thanks to \tikzlogo' option \texttt{rotate=...} ;
- \item fliped vertically or horizontally, thanks to \tikzlogo' option \texttt{xscale=-1} and \texttt{yscale=-1} ;
- \item moved, by placing it at point \texttt{(x,y)}.
+ \item rotated, thanks to \tikzlogo\ \texttt{rotate=...} option;
+ \item flipped vertically or horizontally, thanks to \tikzlogo\ \texttt{xscale=-1} and \texttt{yscale=-1} options;
+ \item moved, by placing its origin at the point of coordinates \texttt{(x,y)}.
\end{itemize}
-Each piece comes with a \tikzlogo' style :
+Each piece comes with a \tikzlogo\ style:
\begin{itemize}
- \item \texttt{TangPuzz} : piece of Tangram, \textit{full}, with a color (\Cle{black} by default) ;
- \item \texttt{TangSol} : piece of tangram, \textit{with white border}, with a color (\Cle{black} by default).
+ \item \texttt{TangPuzz}: Tangram piece, \textit{without border}, coloured (\Cle{black} by default);
+ \item \texttt{TangSol}: Tangram piece, \textit{with a white border}, coloured (\Cle{black} by default).
\end{itemize}
\pagebreak
-\subsection{Positionning of the pieces}
+\subsection{Positioning the pieces}
-A first methodis to use \texttt{pic} syntax in \tikzlogo{} :
+A first method is given by \tikzlogo{} \texttt{pic} syntax:
\begin{PresentationCode}{listing only}
-%environment or tikz command
+%Environment or tikz command
\pic[style,rotate=...,xscale=...,yscale=...] at (x,y) {piece_name} ;
\end{PresentationCode}
-The package \textsf{TangramTikz} proposes a specific command to place the pieces :
+The \textsf{TangramTikz} package offers a specific command to place the pieces:
\begin{PresentationCode}{listing only}
-%environment or tikz command
+%Environment or tikz command
\PieceTangram[style={color}]<xscale=...,yscale=...,rotate=...>(x,y){piece_name}
\end{PresentationCode}
-A Tangram is built form the 7 pieces, by :
+A Tangram is built from the 7 pieces, by:
\begin{itemize}
- \item \textit{putting} pieces at origin ;
- \item \textit{rotating/fliping} for the correct orientation ;
- \item \textit{translating} for the correct position.
+ \item \textit{placing} pieces at the origin;
+ \item \textit{rotating/flipping} them to give them the desired orientation;
+ \item \textit{moving} them to the desired location.
\end{itemize}
\begin{PresentationCode}{}
-%Correction colored version, initial size
+%Coloured solved version, default size
\begin{EnvTangramTikz}
\PieceTangram[TangSol={green}]({0},{0}){TangSqua}
\PieceTangram[TangSol={red}]({-1.5},{1}){TangBigTri}
@@ -365,7 +368,7 @@
\PieceTangram[TangSol={orange}]({-0.5},{3}){TangMedTri}
\filldraw[black] (0,0) circle[radius=2pt] ; %help
\end{EnvTangramTikz}
-%Normal version, initial size
+%Standard version, default size
\begin{EnvTangramTikz}
\PieceTangram[TangPuzz]({0},{0}){TangSqua}
\PieceTangram[TangPuzz]({-1.5},{1}){TangBigTri}
@@ -379,50 +382,51 @@
\pagebreak
-\section{Automatic Method}
+\section{Dealing with a whole shape}
\subsection{Command}
-Some predefined tangrams are present in the package \textsf{TangramTikz}, and thre's an independent \textsf{command} to "call" them :
+A collection of predefined Tangrams is included in \textsf{TangramTikz}, together with a standalone \textsf{command} to display them:
\begin{PresentationCode}{listing only}
-%independent command to display a Tangram
+%Standalone command to display a Tangram
\TangramTikz[keys]<options tikz>{tangram_name}
\end{PresentationCode}
\begin{PresentationCode}{}
-%independent command to display Cat/Boat/Kangaroo, with options by default
+%Standalone command to display Cat/Boat/Kangaroo with default options
\TangramTikz{Cat}~~\TangramTikz{Boat}~~\TangramTikz{Kangaroo}
\end{PresentationCode}
\subsection{Keys, options and arguments}
-The first argument, \textit{optional} and between \texttt{[...]}, give the keys :
+The first argument, \textit{optional} and provided within \texttt{[...]}, deals with the keys and their associated options:
\begin{itemize}
- \item the boolean \Cle{Puzzle} to display \textit{uni-}color pieces, without border ; \hfill~default : \Cle{true}
- \item the boolean \Cle{Correction} to display \textit{uni-}color pieces, with border ; \hfill~default : \Cle{false}
- \item \Cle{Color} to configure the \textit{uni-}color with the above bololeans ; \hfill~default : \Cle{black}
- \item the boolean \Cle{ColorCorrection} to display colored pieces with border ; \hfill~default : \Cle{false}
- \item \Cle{ColorList} which are the colors of the pieces (\texttt{BT,MT,ST,SQUA,PARA}) ;
+ \item the boolean \Cle{Puzzle} to display \textit{mono}coloured pieces, without border \hfill~default : \Cle{true}
+ \item the boolean \Cle{Solution} (\textsc{\textcolor{purple}{\scriptsize\textbf{new name since v0.1.7 !}}}) to display \textit{mono}coloured pieces, with a border \hfill~default : \Cle{false}
+ \item \Cle{Color} to configure the \textit{mono}colour associated with the previous booleans \hfill~default : \Cle{black}
+ \item the boolean \Cle{ColorSolution} (\textsc{\textcolor{purple}{\scriptsize\textbf{new name since v0.1.7 !}}}) to display coloured pieces, with a border \hfill~default : \Cle{false}
+ \item \Cle{ColorList} to list the colours of the pieces (\texttt{BT,MT,ST,SQUA,PARA});
\hfill~default : \Cle{red,orange,blue,green,purple}
- \item \Cle{Sep}, the width of the border in \Cle{Correction} mode. \hfill~default : \Cle{1pt}
+ \item \Cle{Sep}, the width of the border in \Cle{Solution} mode. \hfill~default : \Cle{1pt}
\end{itemize}
-The second argument, \textit{optional} ans between \texttt{<...>}, give options to the \tikzlogo{} environnement, for example :
+The second argument, \textit{optional} and within \texttt{<...>}, provides options to the \tikzlogo{} environment, for instance:
\begin{itemize}
- \item unit(s) change, scale change ;
- \item rotation, vertical alignment ;
- \item etc
+ \item change of unit
+ \item change of scale
+ \item rotation
+ \item vertical alignment
\end{itemize}
-The third argument, \textit{mandatory} and between \texttt{\{...\}} is the name of the predefined tangram (list below).
+The third argument, \textit{mandatory} and within \texttt{\{...\}}, is the name of the predefined Tangram (from the following list).
\pagebreak
-\subsection{List of predefined tangrams}
+\subsection{List of predefined Tangrams}
\texttt{\begin{multicols}{5}
\begin{itemize}
@@ -462,6 +466,7 @@
\item Turtle
\item Crab
\item Snail
+ \item Goose
\end{itemize}
\end{multicols}}
@@ -468,9 +473,9 @@
\begin{PresentationCode}{}
\TangramTikz{Rocket}~~
\TangramTikz[Color=red]{Rocket}~~
-\TangramTikz[Correction]{Rocket}~~
-\TangramTikz[Correction,Color=lightgray]{Rocket}~~
-\TangramTikz[ColorCorrection,ColorList={orange,blue,yellow,green,pink},Sep=1mm]{Rocket}
+\TangramTikz[Solution]{Rocket}~~
+\TangramTikz[Solution,Color=lightgray]{Rocket}~~
+\TangramTikz[ColorSolution,ColorList={orange,blue,yellow,green,pink},Sep=1mm]{Rocket}
\TangramTikz<scale=1.5,rotate=30>{Rocket}~~
\TangramTikz<scale=0.75,rotate=-90>{Rocket}
@@ -478,228 +483,238 @@
\pagebreak
-\part{Gallery of Tangrams}
+\part{A gallery of Tangrams}
\begin{PresentationCode}{}
\TangramTikz{Square}
-\TangramTikz[Correction]{Square}
-\TangramTikz[ColorCorrection]{Square}
+\TangramTikz[Solution]{Square}
+\TangramTikz[ColorSolution]{Square}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Pinguin}
-\TangramTikz[Correction]{Pinguin}
-\TangramTikz[ColorCorrection]{Pinguin}
+\TangramTikz[Solution]{Pinguin}
+\TangramTikz[ColorSolution]{Pinguin}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Boat}
-\TangramTikz[Correction]{Boat}
-\TangramTikz[ColorCorrection]{Boat}
+\TangramTikz[Solution]{Boat}
+\TangramTikz[ColorSolution]{Boat}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Home}
-\TangramTikz[Correction]{Home}
-\TangramTikz[ColorCorrection]{Home}
+\TangramTikz[Solution]{Home}
+\TangramTikz[ColorSolution]{Home}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{FirTree}
-\TangramTikz[Correction]{FirTree}
-\TangramTikz[ColorCorrection]{FirTree}
+\TangramTikz[Solution]{FirTree}
+\TangramTikz[ColorSolution]{FirTree}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Cat}
-\TangramTikz[Correction]{Cat}
-\TangramTikz[ColorCorrection]{Cat}
+\TangramTikz[Solution]{Cat}
+\TangramTikz[ColorSolution]{Cat}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Swan}
-\TangramTikz[Correction]{Swan}
-\TangramTikz[ColorCorrection]{Swan}
+\TangramTikz[Solution]{Swan}
+\TangramTikz[ColorSolution]{Swan}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Pyramid}
-\TangramTikz[Correction]{Pyramid}
-\TangramTikz[ColorCorrection]{Pyramid}
+\TangramTikz[Solution]{Pyramid}
+\TangramTikz[ColorSolution]{Pyramid}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Duck}
-\TangramTikz[Correction]{Duck}
-\TangramTikz[ColorCorrection]{Duck}
+\TangramTikz[Solution]{Duck}
+\TangramTikz[ColorSolution]{Duck}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Rocket}
-\TangramTikz[Correction]{Rocket}
-\TangramTikz[ColorCorrection]{Rocket}
+\TangramTikz[Solution]{Rocket}
+\TangramTikz[ColorSolution]{Rocket}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Candle}
-\TangramTikz[Correction]{Candle}
-\TangramTikz[ColorCorrection]{Candle}
+\TangramTikz[Solution]{Candle}
+\TangramTikz[ColorSolution]{Candle}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Shirt}
-\TangramTikz[Correction]{Shirt}
-\TangramTikz[ColorCorrection]{Shirt}
+\TangramTikz[Solution]{Shirt}
+\TangramTikz[ColorSolution]{Shirt}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Fish}
-\TangramTikz[Correction]{Fish}
-\TangramTikz[ColorCorrection]{Fish}
+\TangramTikz[Solution]{Fish}
+\TangramTikz[ColorSolution]{Fish}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Sailboat}
-\TangramTikz[Correction]{Sailboat}
-\TangramTikz[ColorCorrection]{Sailboat}
+\TangramTikz[Solution]{Sailboat}
+\TangramTikz[ColorSolution]{Sailboat}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Kangaroo}
-\TangramTikz[Correction]{Kangaroo}
-\TangramTikz[ColorCorrection]{Kangaroo}
+\TangramTikz[Solution]{Kangaroo}
+\TangramTikz[ColorSolution]{Kangaroo}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Dog}
-\TangramTikz[Correction]{Dog}
-\TangramTikz[ColorCorrection]{Dog}
+\TangramTikz[Solution]{Dog}
+\TangramTikz[ColorSolution]{Dog}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Plane}
-\TangramTikz[Correction]{Plane}
-\TangramTikz[ColorCorrection]{Plane}
+\TangramTikz[Solution]{Plane}
+\TangramTikz[ColorSolution]{Plane}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Rabbit}
-\TangramTikz[Correction]{Rabbit}
-\TangramTikz[ColorCorrection]{Rabbit}
+\TangramTikz[Solution]{Rabbit}
+\TangramTikz[ColorSolution]{Rabbit}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Rooster}
-\TangramTikz[Correction]{Rooster}
-\TangramTikz[ColorCorrection]{Rooster}
+\TangramTikz[Solution]{Rooster}
+\TangramTikz[ColorSolution]{Rooster}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Jogger}
-\TangramTikz[Correction]{Jogger}
-\TangramTikz[ColorCorrection]{Jogger}
+\TangramTikz[Solution]{Jogger}
+\TangramTikz[ColorSolution]{Jogger}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Dancer}
-\TangramTikz[Correction]{Dancer}
-\TangramTikz[ColorCorrection]{Dancer}
+\TangramTikz[Solution]{Dancer}
+\TangramTikz[ColorSolution]{Dancer}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Camel}
-\TangramTikz[Correction]{Camel}
-\TangramTikz[ColorCorrection]{Camel}
+\TangramTikz[Solution]{Camel}
+\TangramTikz[ColorSolution]{Camel}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Flamingo}
-\TangramTikz[Correction]{Flamingo}
-\TangramTikz[ColorCorrection]{Flamingo}
+\TangramTikz[Solution]{Flamingo}
+\TangramTikz[ColorSolution]{Flamingo}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Heart}
-\TangramTikz[Correction]{Heart}
-\TangramTikz[ColorCorrection]{Heart}
+\TangramTikz[Solution]{Heart}
+\TangramTikz[ColorSolution]{Heart}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Giraffe}
-\TangramTikz[Correction]{Giraffe}
-\TangramTikz[ColorCorrection]{Giraffe}
+\TangramTikz[Solution]{Giraffe}
+\TangramTikz[ColorSolution]{Giraffe}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Horse}
-\TangramTikz[Correction]{Horse}
-\TangramTikz[ColorCorrection]{Horse}
+\TangramTikz[Solution]{Horse}
+\TangramTikz[ColorSolution]{Horse}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Goat}
-\TangramTikz[Correction]{Goat}
-\TangramTikz[ColorCorrection]{Goat}
+\TangramTikz[Solution]{Goat}
+\TangramTikz[ColorSolution]{Goat}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Lions}
-\TangramTikz[Correction]{Lions}
-\TangramTikz[ColorCorrection]{Lions}
+\TangramTikz[Solution]{Lions}
+\TangramTikz[ColorSolution]{Lions}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Factory}
-\TangramTikz[Correction]{Factory}
-\TangramTikz[ColorCorrection]{Factory}
+\TangramTikz[Solution]{Factory}
+\TangramTikz[ColorSolution]{Factory}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Angel}
-\TangramTikz[Correction]{Angel}
-\TangramTikz[ColorCorrection]{Angel}
+\TangramTikz[Solution]{Angel}
+\TangramTikz[ColorSolution]{Angel}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Tower}
-\TangramTikz[Correction]{Tower}
-\TangramTikz[ColorCorrection]{Tower}
+\TangramTikz[Solution]{Tower}
+\TangramTikz[ColorSolution]{Tower}
\end{PresentationCode}
\begin{PresentationCode}{}
-\TangramTikz{Ufo}
-\TangramTikz[Correction]{Ufo}
-\TangramTikz[ColorCorrection]{Ufo}
+\TangramTikz<scale=0.75>{Ufo}
+\TangramTikz[Solution]<scale=0.75>{Ufo}
+\TangramTikz[ColorSolution]<scale=0.75>{Ufo}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Chicken}
-\TangramTikz[Correction]{Chicken}
-\TangramTikz[ColorCorrection]{Chicken}
+\TangramTikz[Solution]{Chicken}
+\TangramTikz[ColorSolution]{Chicken}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Turtle}
-\TangramTikz[Correction]{Turtle}
-\TangramTikz[ColorCorrection]{Turtle}
+\TangramTikz[Solution]{Turtle}
+\TangramTikz[ColorSolution]{Turtle}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Crab}
-\TangramTikz[Correction]{Crab}
-\TangramTikz[ColorCorrection]{Crab}
+\TangramTikz[Solution]{Crab}
+\TangramTikz[ColorSolution]{Crab}
\end{PresentationCode}
\begin{PresentationCode}{}
\TangramTikz{Snail}
-\TangramTikz[Correction]{Snail}
-\TangramTikz[ColorCorrection]{Snail}
+\TangramTikz[Solution]{Snail}
+\TangramTikz[ColorSolution]{Snail}
\end{PresentationCode}
+\begin{PresentationCode}{}
+\TangramTikz<scale=0.75>{Goose}
+\TangramTikz[Solution]<scale=0.75>{Goose}
+\TangramTikz[ColorSolution]<scale=0.75>{Goose}
+\end{PresentationCode}
+
\newpage
\part{History}
+\verb|v0.1.7|~:~~~~Bugfixes in english doc + Renaming certain keys
+
+\verb|v0.1.6|~:~~~~New models
+
\verb|v0.1.5|~:~~~~New models
\verb|v0.1.4|~:~~~~New models
Modified: trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex 2025-01-25 18:41:15 UTC (rev 73591)
+++ trunk/Master/texmf-dist/doc/latex/tangramtikz/TangramTikz-doc-fr.tex 2025-01-25 20:47:45 UTC (rev 73592)
@@ -49,10 +49,11 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.5}
-\def\TPdate{25 Février 2023}
+\def\TPversion{0.1.7}
+\def\TPdate{25 janvier 2025}
\usepackage[most]{tcolorbox}
+\usepackage{minted2}
\tcbuselibrary{minted}
\NewTCBListing{PresentationCode}{ O{blue} m }{%
sharp corners=downhill,enhanced,arc=12pt,skin=bicolor,%
@@ -104,7 +105,7 @@
\begin{tabular}{c}
\texttt{Cédric Pierquet}\\
{\ttfamily c pierquet -- at -- outlook . fr}\\
- \texttt{\url{https://github.com/cpierquet/TangramTikz}}
+ \texttt{\url{https://forge.apps.education.fr/pierquetcedric/packages-latex}}
\end{tabular}
\end{center}
@@ -141,6 +142,8 @@
\vspace{0.5cm}
+\hfill{}\textit{Merci à Eric Martin, enseignant-chercheur à Sydney, pour sa relecture attentive de la version anglaise !}
+
%\hfill{}\textit{Merci aux membres du groupe \faFacebook{} du \og Coin \LaTeX{} \fg{} pour leur aide et leurs idées !}
%\hfill{}\textit{Merci à Denis Bitouzé et à Patrick Bideault pour leurs retours et idées !}
@@ -464,6 +467,7 @@
\item Tortue
\item Crabe
\item Escargot
+ \item Oie
\end{itemize}
\end{multicols}}
@@ -671,9 +675,9 @@
\end{PresentationCode}
\begin{PresentationCode}{}
-\TangramTikz{Ovni}
-\TangramTikz[Correction]{Ovni}
-\TangramTikz[CorrectionCouleur]{Ovni}
+\TangramTikz<scale=0.75>{Ovni}
+\TangramTikz[Correction]<scale=0.75>{Ovni}
+\TangramTikz[CorrectionCouleur]<scale=0.75>{Ovni}
\end{PresentationCode}
\begin{PresentationCode}{}
@@ -700,10 +704,20 @@
\TangramTikz[CorrectionCouleur]{Escargot}
\end{PresentationCode}
+\begin{PresentationCode}{}
+\TangramTikz<scale=0.75>{Oie}
+\TangramTikz[Correction]<scale=0.75>{Oie}
+\TangramTikz[CorrectionCouleur]<scale=0.75>{Oie}
+\end{PresentationCode}
+
\newpage
\part{Historique}
+\verb|v0.1.7|~:~~~~Améliorations pour la version anglaise
+
+\verb|v0.1.6|~:~~~~Nouveaux modèles
+
\verb|v0.1.5|~:~~~~Nouveaux modèles
\verb|v0.1.4|~:~~~~Nouveaux modèles
Modified: trunk/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty 2025-01-25 18:41:15 UTC (rev 73591)
+++ trunk/Master/texmf-dist/tex/latex/tangramtikz/TangramTikz.sty 2025-01-25 20:47:45 UTC (rev 73592)
@@ -1,9 +1,11 @@
% Author.........: C. Pierquet
-% licence........: Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txtf
+% licence........: Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
% Inspiration....: https://tex.stackexchange.com/questions/407449/typesetting-tangram-figures-in-latex
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{TangramTikz}[2023/02/25 v0.1.5 Tangram Puzzles with TikZ]
+\ProvidesPackage{TangramTikz}[2025/01/25 v0.1.7 Tangram Puzzles with TikZ]
+% 0.1.7 Améliorations pour la version [en]
+% 0.1.6 Ajout de modèles
% 0.1.5 Ajout de modèles
% 0.1.4 Ajout de modèles
% 0.1.3 Ajout de modèles
@@ -872,12 +874,35 @@
}%
}
+%the goose / l'oie (0.1.6)
+\NewDocumentCommand\TangramGoose{ s O{TangPuzz} }{%*=colorcorrection,[key for pic]
+ \IfBooleanTF{#1}%
+ {%
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-135>({sqrt(2)},{sqrt(2)}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[4]}]<rotate=-135>({0},{0}){TangCar}
+ \PieceTangram[TangSol={\TanGListeCouleurs[1]}]<rotate=-45>({-1.5*sqrt(2)},{0.5*sqrt(2)}){TangGrandTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[5]}]<xscale=-1>({1-1.5*sqrt(2)},{0.5*sqrt(2)}){TangPara}
+ \PieceTangram[TangSol={\TanGListeCouleurs[2]}]({-1.5*sqrt(2)-2},{1+0.5*sqrt(2)}){TangMoyTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]<rotate=45>({sqrt(2)},{-1.5*sqrt(2)}){TangPetTri}
+ \PieceTangram[TangSol={\TanGListeCouleurs[3]}]({-0.5},{-sqrt(2)-0.5}){TangPetTri}
+ }%
+ {%
+ \PieceTangram[#2]<rotate=-135>({sqrt(2)},{sqrt(2)}){TangGrandTri}
+ \PieceTangram[#2]<rotate=-135>({0},{0}){TangCar}
+ \PieceTangram[#2]<rotate=-45>({-1.5*sqrt(2)},{0.5*sqrt(2)}){TangGrandTri}
+ \PieceTangram[#2]<xscale=-1>({1-1.5*sqrt(2)},{0.5*sqrt(2)}){TangPara}
+ \PieceTangram[#2]({-1.5*sqrt(2)-2},{1+0.5*sqrt(2)}){TangMoyTri}
+ \PieceTangram[#2]<rotate=45>({sqrt(2)},{-1.5*sqrt(2)}){TangPetTri}
+ \PieceTangram[#2]({-0.5},{-sqrt(2)-0.5}){TangPetTri}
+ }%
+}
+
%macros for tangram creation / commandes pour créer le tangram
\NewDocumentCommand\TangramTikzCreateEN{ m }{%
\readlist*\TanGListeCouleurs{\TangColors}%
\ifboolKV[TGRMTikz]{Puzzle}{#1[TangPuzz={\TangColor}]}{}%
- \ifboolKV[TGRMTikz]{Correction}{#1[TangSol={\TangColor}]}{}%
- \ifboolKV[TGRMTikz]{ColorCorrection}{#1*}{}%
+ \ifboolKV[TGRMTikz]{Solution}{#1[TangSol={\TangColor}]}{}%
+ \ifboolKV[TGRMTikz]{ColorSolution}{#1*}{}%
}
\NewDocumentCommand\TangramTikzCreateFR{ m }{%
\readlist*\TanGListeCouleurs{\TangCouleurs}%
@@ -896,8 +921,9 @@
\setKVdefault[TGRMTikz]{%keys by default [en] and [fr]
Puzzle=true,%
Correction=false,%
- ColorCorrection=false,%
CorrectionCouleur=false,%
+ Solution=false,%en
+ ColorSolution=false,%en
ListeCouleurs={red,orange,blue,green,purple},%
ColorList={red,orange,blue,green,purple},%
Couleur=black,%
@@ -1018,6 +1044,9 @@
%SNAIL
\IfStrEq{#3}{Snail}{\TangramTikzCreateEN{\TangramSnail}}{}%
\IfStrEq{#3}{Escargot}{\TangramTikzCreateFR{\TangramSnail}}{}%
+ %GOOSE
+ \IfStrEq{#3}{Goose}{\TangramTikzCreateEN{\TangramGoose}}{}%
+ \IfStrEq{#3}{Oie}{\TangramTikzCreateFR{\TangramGoose}}{}%
\end{tikzpicture}%
}
More information about the tex-live-commits
mailing list.