summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/jeuxcartes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-22 23:30:26 +0000
committerKarl Berry <karl@freefriends.org>2023-02-22 23:30:26 +0000
commit321f437042db0ed7c1e7558dbf25943c6ba6ea8f (patch)
tree0e4dac185a7bf13b31801bc0d98b18a1627951f6 /Master/texmf-dist/doc/latex/jeuxcartes
parent4399a56d2d964ed7775ff5bf5a5afee6fcd97f1e (diff)
jeuxcartes (23feb23)
git-svn-id: svn://tug.org/texlive/trunk@66066 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/jeuxcartes')
-rw-r--r--Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.pdfbin6060882 -> 6204530 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex119
-rw-r--r--Master/texmf-dist/doc/latex/jeuxcartes/README.md1
3 files changed, 85 insertions, 35 deletions
diff --git a/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.pdf b/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.pdf
index 7b8cac8486f..dc600f8bb10 100644
--- a/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.pdf
+++ b/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex b/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex
index 1420ae56bc2..6273a6bbeed 100644
--- a/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex
+++ b/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex
@@ -32,7 +32,24 @@
\cfoot{\sffamily \small - \thepage{} -}
\rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}}
-\usepackage{hvlogos}
+%\usepackage{hvlogos}
+\usepackage{hologo}
+\providecommand\tikzlogo{Ti\textit{k}Z}
+\providecommand\TeXLive{\TeX{}Live\xspace}
+\providecommand\PSTricks{\textsf{PSTricks}\xspace}
+\let\pstricks\PSTricks
+\let\TikZ\tikzlogo
+\newcommand\TableauDocumentation{%
+ \begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}}
+ {\huge \LaTeX} & & & & &\\
+ & {\huge \hologo{pdfLaTeX}} & & & & \\
+ & & {\huge \hologo{LuaLaTeX}} & & & \\
+ & & & {\huge \TikZ} & & \\
+ & & & & {\huge \TeXLive} & \\
+ & & & & & {\huge \hologo{MiKTeX}} \\
+ \end{tblr}
+}
+
\usepackage{menukeys}
\let\tab\relax
\usepackage{tabto}
@@ -52,8 +69,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.2.1a}
-\def\TPdate{28 Décembre 2022}
+\def\TPversion{0.2.2a}
+\def\TPdate{22 Février 2023}
\usepackage[most]{tcolorbox}
\usepackage[outputdir=build]{minted}
@@ -157,14 +174,7 @@ Une commande pour des cartes en version \og miniatures \fg{} (individuelle, main
\medskip
-\begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}}
- {\huge \LaTeX} & & & & &\\
- & {\huge \pdfLaTeX} & & & & \\
- & & {\huge \LuaLaTeX} & & & \\
- & & & {\huge \TikZ} & & \\
- & & & & {\huge \TeXLive} & \\
- & & & & & {\huge \MiKTeX} \\
-\end{tblr}
+\TableauDocumentation
\medskip
@@ -181,23 +191,25 @@ Une commande pour des cartes en version \og miniatures \fg{} (individuelle, main
\tableofcontents
-\vfill~
+\pagebreak
\part{Historique}
-{\small \bverb|v0.2.1a|~:~~~~Correction du nom d'une carte pokerv1...
+{\small \bverb|v0.2.2a|~:~~~~Ajout d'un style v4 pour le Poker
-{\small \bverb|v0.2.0 |~:~~~~Modification du design des cartes (pdf pour Poker/Uno + png pour Tarot) + alternatives pour le Poker
+{\small \bverb|v0.2.1|~:~~~~Correction du nom d'une carte pokerv1...
-{\small \bverb|v0.1.4 |~:~~~~Réduction de la taille des images \texttt{png}
+{\small \bverb|v0.2.0|~:~~~~Modification du design des cartes (pdf pour Poker/Uno + png pour Tarot) + alternatives pour le Poker
-{\small \bverb|v0.1.3 |~:~~~~Ajout de cartes Uno (CC1.0 par AlexDer) + modification des commandes + rami
+{\small \bverb|v0.1.4|~:~~~~Réduction de la taille des images \texttt{png}
-{\small \bverb|v0.1.2 |~:~~~~Modification du nom (et de la source) des images de Tarot (CC0)
+{\small \bverb|v0.1.3|~:~~~~Ajout de cartes Uno (CC1.0 par AlexDer) + modification des commandes + rami
-{\small \bverb|v0.1.1 |~:~~~~Ajout de commandes pour des mini-cartes
+{\small \bverb|v0.1.2|~:~~~~Modification du nom (et de la source) des images de Tarot (CC0)
-{\small \bverb|v0.1 |~:~~~~Version initiale
+{\small \bverb|v0.1.1|~:~~~~Ajout de commandes pour des mini-cartes
+
+{\small \bverb|v0.1 |~:~~~~Version initiale
\vfill~
@@ -212,7 +224,7 @@ Une commande pour des cartes en version \og miniatures \fg{} (individuelle, main
\begin{codeidee}
L'idée de ce package est de proposer, comme le fait \ctex{pst-poker}, des commandes pour intégrer des cartes de poker dans un document \LaTeX.
-Les cartes sont des images :
+Les cartes disponibles sont : :
%
\begin{itemize}
% \item les cartes type \textsf{Poker} sont sous licence LGPL, \copyright{}2005, de David Bellot, via \url{https://github.com/htdebeer/SVG-cards} ;
@@ -221,6 +233,7 @@ Les cartes sont des images :
\item les cartes type \textsf{Poker v1} (Licence : LGPL-2.1 license) \url{https://github.com/htdebeer/SVG-cards}
\item les cartes type \textsf{Poker v2} (Licence : Public Domain) \url{https://tekeye.uk/playing_cards/svg-playing-cards}
\item les cartes type \textsf{Poker v3} (Licence : Public Domain) \url{https://www.me.uk/cards/}
+ \item les cartes type \textsf{Poker v4} (Licence : CC BY-SA 4.0) \url{https://commons.wikimedia.org/wiki/File:Computer_screen_playing_cards_deck.svg}
\item les cartes type \textsf{Tarot} (Licence : Public Domain) \url{https://freesvg.org/deck-of-french-tarot-playing-cards}
\item les cartes type \textsf{Uno} (Licence : MIT License) \url{https://eperezcosano.github.io/uno-part1/}
% Uno v2 cards Image's Licence : CC1.0 https://alexder.itch.io/uno-card-game-asset-pack
@@ -232,7 +245,7 @@ Le {package} \ctex{JeuxCartes} charge les {packages} :
\begin{itemize}
\item \ctex{tikz}, \ctex{pifont}, \ctex{xfp}, \ctex{pgffor}, \ctex{xinttools} ;
- \item \ctex{listofitems}, \ctex{xstring}, \ctex{xparse} et \ctex{simplekv} ;
+ \item \ctex{listofitems}, \ctex{xstring} et \ctex{simplekv} ;
\item \ctex{randomlist}, \ctex{xcolor} avec les options \ctex{[table,svgnames]}.
\end{itemize}
\end{codeinfo}
@@ -311,8 +324,8 @@ Les \textsf{codes} seront présentés dans des \textsf{boîtes} \textcolor{red!7
Les \textit{Jeux} disponibles sont :
\begin{itemize}
- \item \Cle{Poker}, \Cle{Pokerv2}, \Cle{Pokerv3}, \Cle{Tarot} et \Cle{Uno} pour l'affichage des cartes ;
- \item \Cle{Poker}, \Cle{Pokerv2}, \Cle{Pokerv3}, \Cle{Tarot}, \Cle{Bataille}, \Cle{Rami}, \Cle{Belote} et \Cle{Uno} pour les mains aléatoires ;
+ \item \Cle{Poker}, \Cle{Pokerv2}, \Cle{Pokerv3}, \Cle{Pokerv4}, \Cle{Tarot} et \Cle{Uno} pour l'affichage des cartes ;
+ \item \Cle{Poker}, \Cle{Pokerv2}, \Cle{Pokerv3}, \Cle{Pokerv4}, \Cle{Tarot}, \Cle{Bataille}, \Cle{Rami}, \Cle{Belote} et \Cle{Uno} pour les mains aléatoires ;
\item \Cle{Poker} et \Cle{Tarot} pour les \textit{mini-}cartes.
\end{itemize}
\end{codeinfo}
@@ -356,8 +369,8 @@ La commande \ctex{AffCartesJeu} affiche une liste de cartes ne mode \textit{côt
\begin{codetex}[]
\AffCarteJeu{VP}\AffCarteJeu{10K}\AffCarteJeu{AC}\AffCarteJeu{Dos}\AffCarteJeu{DT}\\ \\
-\AffCarteJeu[TypeJeu=Tarot]{VP}\AffCarteJeu[TypeJeu=Tarot]{Dos}
-\AffCarteJeu[TypeJeu=Tarot]{Exc}\AffCarteJeu[TypeJeu=Tarot]{1AT}
+\AffCarteJeu[TypeJeu=Tarot]{VP}\AffCarteJeu[TypeJeu=Tarot]{Dos}%
+\AffCarteJeu[TypeJeu=Tarot]{Exc}\AffCarteJeu[TypeJeu=Tarot]{1AT}%
\AffCarteJeu[TypeJeu=Tarot]{10K}\AffCarteJeu[TypeJeu=Tarot]{18AT}\\ \\
\AffCartesJeu[TypeJeu=Uno]{P4 § PTR § Coul § 7B § 8V}
\end{codetex}
@@ -457,12 +470,13 @@ On obtient la main \AffCartesJeu[Hauteur=2,TypeJeu=Uno]{9B § 8R § P2J § P4 §
\subsection{Designs disponibles pour les cartes classiques}
\begin{codeinfo}
-Il existe 3 versions de design des cartes \textit{classiques}, accessibles via les clés :
+Il existe 4 versions de designs des cartes \textit{classiques}, accessibles via les clés :
\begin{itemize}
\item \Cle{Poker} ;
\item \Cle{Pokerv2} ;
- \item \Cle{Pokerv3}.
+ \item \Cle{Pokerv3} ;
+ \item \Cle{Pokerv4}.
\end{itemize}
\end{codeinfo}
@@ -473,6 +487,8 @@ Il existe 3 versions de design des cartes \textit{classiques}, accessibles via l
\AffCartesJeu[Hauteur=2,TypeJeu=Pokerv2]{DK § AP § 10T § VP § 8T § RT § 9C} \\ \\
\textbf{Design v3} :\\
\AffCartesJeu[Hauteur=2,TypeJeu=Pokerv3]{DK § AP § 10T § VP § 8T § RT § 9C} \\ \\
+\textbf{Design v4} :\\
+\AffCartesJeu[Hauteur=2,TypeJeu=Pokerv4]{DK § AP § 10T § VP § 8T § RT § 9C} \\ \\
\end{codetex}
\pagebreak
@@ -496,7 +512,7 @@ Les commandes pour créer des \textit{mains} sont obligatoirement liées à des
\subsection{Clés et options}
\begin{codecles}
-L'argument \textit{mandataire} correspond à la liste des cartes à afficher, sous la forme
+L'argument \textit{obligatoire} correspond à la liste des cartes à afficher, sous la forme
\begin{itemize}
\item \texttt{<carte1> § <carte2> § ... § <carten>}.
@@ -594,10 +610,10 @@ Les \Cle{options} sont les suivantes :
En ce qui concerne les \textit{jeux} disponibles (non modifiables) :
\begin{itemize}
- \item \Cle{Poker} ou \Cle{Pokerv2} ou \Cle{Pokerv3} : 52 cartes (sans Joker) ;
- \item \Cle{Belote} ou \Cle{Belotev2} ou \Cle{Belotev3} : 32 cartes (sans Joker) ;
- \item \Cle{Bataille} ou \Cle{Bataillev2} ou \Cle{Bataillev3}: 54 cartes (avec Jokers) ;
- \item \Cle{Rami} ou \Cle{Ramiv2} ou \Cle{Ramiv3} : 108 cartes (avec Jokers) ;
+ \item \Cle{Poker} ou \Cle{Pokerv2} ou \Cle{Pokerv3} ou \Cle{Pokerv4} : 52 cartes (sans Joker) ;
+ \item \Cle{Belote} ou \Cle{Belotev2} ou \Cle{Belotev3} ou \Cle{Belotev4} : 32 cartes (sans Joker) ;
+ \item \Cle{Bataille} ou \Cle{Bataillev2} ou \Cle{Bataillev3} ou \Cle{Bataillev4} : 54 cartes (avec Jokers) ;
+ \item \Cle{Rami} ou \Cle{Ramiv2} ou \Cle{Ramiv3} ou \Cle{Ramiv4} : 108 cartes (avec Jokers) ;
\item \Cle{Tarot} : 78 cartes ;
\item \Cle{Uno}.
\end{itemize}
@@ -733,6 +749,10 @@ Les \Cle{Clés} sont les mêmes que pour la commande individuelle, avec en plus
\subsection{Poker/Bataille/Belote (v1)}
+Dos disponibles : \texttt{Dos}
+
+\medskip
+
\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[Hauteur=1.85]{#1P}}
\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[Hauteur=1.85]{#1C}}
@@ -746,6 +766,10 @@ Les \Cle{Clés} sont les mêmes que pour la commande individuelle, avec en plus
\subsection{Poker/Bataille/Belote (v2)}
+Dos disponibles : \texttt{DosBleu} ou \texttt{DosRouge} ou \texttt{DosBleu2} ou \texttt{DosRouge2}
+
+\medskip
+
\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv2,Hauteur=1.85]{#1P}}
\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv2,Hauteur=1.85]{#1C}}
@@ -761,6 +785,10 @@ Les \Cle{Clés} sont les mêmes que pour la commande individuelle, avec en plus
\subsection{Poker/Bataille/Belote (v3)}
+Dos disponibles : \texttt{DosNoir} ou \texttt{DosRouge}
+
+\medskip
+
\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv3,Hauteur=1.85]{#1P}}
\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv3,Hauteur=1.85]{#1C}}
@@ -771,6 +799,24 @@ Les \Cle{Clés} sont les mêmes que pour la commande individuelle, avec en plus
\AffCarteJeu[TypeJeu=Pokerv3,Hauteur=1.85]{JN}\AffCarteJeu[TypeJeu=Pokerv3,Hauteur=1.85]{JR}\AffCarteJeu[TypeJeu=Pokerv3,Hauteur=1.85]{DosNoir}\AffCarteJeu[TypeJeu=Pokerv3,Hauteur=1.85]{DosRouge}%
+\subsection{Poker/Bataille/Belote (v4)}
+
+Dos disponibles : \texttt{DosBleu} ou \texttt{DosRouge}
+
+\medskip
+
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv4,Hauteur=1.85]{#1P}}
+
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv4,Hauteur=1.85]{#1C}}
+
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv4,Hauteur=1.85]{#1K}}
+
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,D,R,A}\do{\AffCarteJeu[TypeJeu=Pokerv4,Hauteur=1.85]{#1T}}
+
+\AffCarteJeu[TypeJeu=Pokerv4,Hauteur=1.85]{JN}\AffCarteJeu[TypeJeu=Pokerv4,Hauteur=1.85]{JR}\AffCarteJeu[TypeJeu=Pokerv3,Hauteur=1.85]{DosRouge}\AffCarteJeu[TypeJeu=Pokerv4,Hauteur=1.85]{DosBleu}%
+
+\pagebreak
+
\subsection{Cartes Tarot}
\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffCarteJeu[TypeJeu=Tarot,Hauteur=1.85]{#1P}}
@@ -836,10 +882,10 @@ L'\textit{origine} des cartes est fixée, au coin bas-gauche, et la \Cle{Rotatio
\begin{codetex}[]
\begin{tikzpicture}
\draw[thin,lightgray] (-5,-5) grid (5,3) ; %grille rajoutée pour la lisibilité du code
- \foreach \ptsupport in {(0,0),(3,-4),(-3,-1),(-2,-3.5),(2,2.75),(-4.5,-4.5)}%
+ \foreach \ptsupport in {(0,0),(3,-4),(-3,-1),(-2,-3.5),(2,2.75),(-4.5,-4.5),,(1,-2.5)}%
{\filldraw[Gray] \ptsupport circle[radius=2pt] ;} %poits rajouté pour la lisibilité du code
- \foreach \x in {-5,-4,...,5} \draw[lightgray] (\x,-5) node[below,font=\small] {\x} ;
- \foreach \y in {-5,-4,...,3} \draw[lightgray] (-5,\y) node[left,font=\small] {\y} ;
+ \foreach \x in {-5,-4,...,5} \draw[lightgray] (\x,-5) node[below,font=\small] {$\x$} ;
+ \foreach \y in {-5,-4,...,3} \draw[lightgray] (-5,\y) node[left,font=\small] {$\y$} ;
\AffCarteJeu[Hauteur=2,Tikz=true,TikzAutonome=false]%
{10C}
\AffCarteJeu[TypeJeu=Pokerv2,Hauteur=2.5,Tikz=true,TikzAutonome=false,DecalageX=3,DecalageY=-4]%
@@ -853,6 +899,9 @@ L'\textit{origine} des cartes est fixée, au coin bas-gauche, et la \Cle{Rotatio
{18AT}
\AffCarteJeu[TypeJeu=Uno,Hauteur=2,Tikz=true,TikzAutonome=false,DecalageX=-4.5,DecalageY=-4.5]%
{P4}
+ \AffCarteJeu%
+ [TypeJeu=Pokerv4,Hauteur=1.75,Tikz=true,TikzAutonome=false,Rotation=-10,DecalageX=1,DecalageY=-2.5]%
+ {RP}
\end{tikzpicture}
\end{codetex}
diff --git a/Master/texmf-dist/doc/latex/jeuxcartes/README.md b/Master/texmf-dist/doc/latex/jeuxcartes/README.md
index 13bfc292bcd..3593df51ccd 100644
--- a/Master/texmf-dist/doc/latex/jeuxcartes/README.md
+++ b/Master/texmf-dist/doc/latex/jeuxcartes/README.md
@@ -8,5 +8,6 @@ Licence : Released under the LaTeX Project Public License v1.3c or later, see ht
Poker v1 cards Image's Licence : LGPL-2.1 license https://github.com/htdebeer/SVG-cards
Poker v2 cards Image's Licence : Public Domain https://tekeye.uk/playing_cards/svg-playing-cards
Poker v3 cards Image's Licence : Public Domain https://www.me.uk/cards/
+Poker v4 cards Image's Licence : CC BY-SA 4.0 https://commons.wikimedia.org/wiki/File:Computer_screen_playing_cards_deck.svg
Tarot v1 cards Image's Licence : Public Domain https://freesvg.org/deck-of-french-tarot-playing-cards
Uno v1 cards Image's Licence : MIT License https://eperezcosano.github.io/uno-part1/ \ No newline at end of file