texlive[67304] Master/texmf-dist: jeuxcartes (8jun23)

commits+karl at tug.org commits+karl at tug.org
Thu Jun 8 21:50:41 CEST 2023


Revision: 67304
          http://tug.org/svn/texlive?view=revision&revision=67304
Author:   karl
Date:     2023-06-08 21:50:41 +0200 (Thu, 08 Jun 2023)
Log Message:
-----------
jeuxcartes (8jun23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.pdf
    trunk/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex
    trunk/Master/texmf-dist/tex/latex/jeuxcartes/JeuxCartes.sty

Modified: trunk/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex	2023-06-08 19:50:11 UTC (rev 67303)
+++ trunk/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex	2023-06-08 19:50:41 UTC (rev 67304)
@@ -69,8 +69,8 @@
 \setlength{\parindent}{0pt}
 \definecolor{LightGray}{gray}{0.9}
 
-\def\TPversion{0.2.4}
-\def\TPdate{18 Mars 2023}
+\def\TPversion{0.2.5}
+\def\TPdate{06 juin 2023}
 
 \usepackage[most]{tcolorbox}
 \usepackage[outputdir=build]{minted}
@@ -209,6 +209,8 @@
 
 \part{Historique}
 
+{\small \bverb|v0.2.5|~:~~~~Compatibilité des \textit{Mini}-Cartes avec les cartes avec nom anglais.
+
 {\small \bverb|v0.2.4|~:~~~~Ajout du style carte Poker \textsf{fr} + style Bicycle \textsf{bicycl} + ajout d'une clé \textsf{<StyleJeu>}
 
 {\small \bverb|v0.2.3|~:~~~~Ajout d'une clé \textsf{<inverse>} + dos Uno + style \textsf{v5} pour le Poker
@@ -684,7 +686,7 @@
 \begin{codetex}[]
 Si on met du texte sur la ligne du dessus, on peut voir le résultat.\\
 Voilà des exemples de mini-cartes, \AffMiniCarteJeu{7.K}\AffMiniCarteJeu{1.AT}\AffMiniCarteJeu{V.K}\AffMiniCarteJeu{10.C}, intégrables dans un paragraphe.\\
-Si on met du texte sur la ligne du dessous, on peut voir le résultat.
+Si on met du texte sur la ligne du dessous, on peut voir le résultat, avec ici des mini-cartes anglaises \AffMiniCarteJeu{K.T}\AffMiniCarteJeu{JO.R}\AffMiniCarteJeu{Q.C}\AffMiniCarteJeu{J.P}.
 \end{codetex}
 
 \subsection{Noms des \textit{mini-}cartes}
@@ -693,11 +695,11 @@
 Pour des raisons internes au code, les cartes doivent être saisies suivant la nomenclature (noter l'utilisation du \ctex{.} pour séparer la hauteur de la couleur !)  :
 
 \begin{itemize}
-	\item \texttt{2.C}, \texttt{3.C}, \ldots, \texttt{C.C}, \texttt{D.C}, \texttt{R.C}, \texttt{A.C}\dotfill\Cle{Cœur}
-	\item \texttt{2.P}, \texttt{3.P}, \ldots, \texttt{C.P}, \texttt{D.P}, \texttt{R.P}, \texttt{A.P}\dotfill\Cle{Pique}
-	\item \texttt{2.K}, \texttt{3.K}, \ldots, \texttt{C.K}, \texttt{D.K}, \texttt{R.K}, \texttt{A.K}\dotfill\Cle{Carreau}
-	\item \texttt{2.T}, \texttt{3.T}, \ldots, \texttt{K.T}, \texttt{D.T}, \texttt{R.T}, \texttt{A.T}\dotfill\Cle{Trèfle}
-	\item \texttt{J.N}, \texttt{J.R}\dotfill\Cle{Joker}
+	\item \texttt{2.C}, \texttt{3.C}, \ldots, \texttt{C.C}, \texttt{D.C}, \texttt{R.C}, \texttt{A.C}, \texttt{J.C}, \texttt{Q.C}, \texttt{K.C}\dotfill\Cle{Cœur}
+	\item \texttt{2.P}, \texttt{3.P}, \ldots, \texttt{C.P}, \texttt{D.P}, \texttt{R.P}, \texttt{A.P}, \texttt{J.P}, \texttt{Q.P}, \texttt{K.P}\dotfill\Cle{Pique}
+	\item \texttt{2.K}, \texttt{3.K}, \ldots, \texttt{C.K}, \texttt{D.K}, \texttt{R.K}, \texttt{A.K}, \texttt{J.K}, \texttt{Q.K}, \texttt{K.K}\dotfill\Cle{Carreau}
+	\item \texttt{2.T}, \texttt{3.T}, \ldots, \texttt{K.T}, \texttt{D.T}, \texttt{R.T}, \texttt{A.T}, \texttt{J.T}, \texttt{Q.T}, \texttt{K.T}\dotfill\Cle{Trèfle}
+	\item \cmaj{0.2.5} \texttt{JO.N}, \texttt{JO.R}\dotfill\Cle{Joker}
 	\item \texttt{Exc}, \texttt{1.AT}, \texttt{2.AT}, \ldots, \texttt{20.T}, \texttt{21.AT}\dotfill\Cle{Atouts}
 \end{itemize}
 
@@ -721,6 +723,7 @@
 
 \begin{codetex}[]
 \foreach \EECARTE in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}{\AffMiniCarteJeu[Largeur=0.75cm]{\EECARTE.K}}\\
+\foreach \EECARTE in {2,3,4,5,6,7,8,9,10,J,Q,K,A}{\AffMiniCarteJeu[Largeur=0.75cm]{\EECARTE.P}}\\
 \AffMiniCarteJeu[FondAtout=cyan,Largeur=0.75cm]{Exc}%
 \foreach \EECARTE in {1,2,...,21}{\AffMiniCarteJeu[FondAtout=cyan,Largeur=0.75cm]{\EECARTE.AT}}
 \end{codetex}
@@ -738,24 +741,31 @@
 \end{codetex}
 
 \begin{codecles}
-Les \Cle{Clés} sont les mêmes que pour la commande individuelle, avec en plus :
-
+Les \Cle{Clés} sont les mêmes que pour la commande individuelle, avec en plus la clé \Cle{TypeJeu} parmi :
 \begin{itemize}
-	\item la clé \Cle{TypeJeu} (parmi \Cle{Poker} ou \Cle{Tarot} ou \Cle{Belote} ou \Cle{Bataille} ou \Cle{Rami}). \hfill{}défaut \Cle{Poker}
+	\item \Cle{Poker} ou \Cle{Tarot} ou \Cle{Belote} ou \Cle{Bataille} ou \Cle{Rami} pour les cartes [fr] ;
+	\item \cmaj{0.2.5} \Cle{PokerEN} ou \Cle{BeloteEN} ou \Cle{BatailleEN} ou \Cle{RamiEN} pour les cartes [en] ;
 \end{itemize}
+\hfill{}défaut \Cle{Poker}
 \end{codecles}
 
 \begin{codetex}[]
 \textbf{\large Saisie de mains : }\\
-\MainMiniCartesJeu{7.K § A.P § D.T § V.K § 10.C § C.T} et~
+\MainMiniCartesJeu{7.K § A.P § D.T § V.K § 10.C § C.T § JO.N} et~
 \MainMiniCartesJeu{Exc § 1.AT § C.C § 8.T § 2.K § 5.AT § 2.AT § D.P § 7.T § 10.C § 19.AT § V.P}\\
 
 \textbf{\large Poker : }\\
 \MainMiniCartesJeuAleatoire{5} ou \MainMiniCartesJeuAleatoire{5} ou \MainMiniCartesJeuAleatoire{5} ou \MainMiniCartesJeuAleatoire{5}.\\
 
+\textbf{\large Poker [en] : }\\
+\MainMiniCartesJeuAleatoire[TypeJeu=PokerEN]{5} ou \MainMiniCartesJeuAleatoire[TypeJeu=PokerEN]{5} ou \MainMiniCartesJeuAleatoire[TypeJeu=PokerEN]{5} ou \MainMiniCartesJeuAleatoire[TypeJeu=PokerEN]{5}.\\
+
 \textbf{\large Belote :}\\
 \MainMiniCartesJeuAleatoire[TypeJeu=Belote]{8} ou \MainMiniCartesJeuAleatoire[TypeJeu=Belote]{8} ou \MainMiniCartesJeuAleatoire[TypeJeu=Belote]{8}.\\
 
+\textbf{\large Belote [en] :}\\
+\MainMiniCartesJeuAleatoire[TypeJeu=BeloteEN]{8} ou \MainMiniCartesJeuAleatoire[TypeJeu=BeloteEN]{8} ou \MainMiniCartesJeuAleatoire[TypeJeu=BeloteEN]{8}.\\
+
 \textbf{\large Bataille : }\\
 \MainMiniCartesJeuAleatoire[TypeJeu=Bataille]{12} ou \MainMiniCartesJeuAleatoire[TypeJeu=Bataille]{12}.\\
 
@@ -763,7 +773,12 @@
 \MainMiniCartesJeuAleatoire[TypeJeu=Tarot]{10} ou \MainMiniCartesJeuAleatoire[TypeJeu=Tarot]{10}.\\
 
 \textbf{\large Rami : }\\
-\MainMiniCartesJeuAleatoire[TypeJeu=Rami]{15} ou \MainMiniCartesJeuAleatoire[TypeJeu=Rami]{14}.
+\MainMiniCartesJeuAleatoire[TypeJeu=Rami]{15} ou\\
+\MainMiniCartesJeuAleatoire[TypeJeu=Rami]{14}.\\
+
+\textbf{\large Rami [en] : }\\
+\MainMiniCartesJeuAleatoire[TypeJeu=RamiEN]{15} ou\\
+\MainMiniCartesJeuAleatoire[TypeJeu=RamiEN]{14}.
 \end{codetex}
 
 \pagebreak
@@ -925,15 +940,15 @@
 
 \subsection{MiniCartes}
 
-\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.P}}
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.P}} et \xintFor #1 in {J,Q,K}\do{\AffMiniCarteJeu{#1.P}}
 
-\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.C}}
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.C}} et \xintFor #1 in {J,Q,K}\do{\AffMiniCarteJeu{#1.C}}
 
-\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.K}}
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.K}} et \xintFor #1 in {J,Q,K}\do{\AffMiniCarteJeu{#1.K}}
 
-\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.T}}
+\xintFor #1 in {2,3,4,5,6,7,8,9,10,V,C,D,R,A}\do{\AffMiniCarteJeu{#1.T}} et \xintFor #1 in {J,Q,K}\do{\AffMiniCarteJeu{#1.T}}
 
-\AffMiniCarteJeu{J.N}\AffMiniCarteJeu{J.R}
+\AffMiniCarteJeu{JO.N}\AffMiniCarteJeu{JO.R}
 
 \medskip
 

Modified: trunk/Master/texmf-dist/tex/latex/jeuxcartes/JeuxCartes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/jeuxcartes/JeuxCartes.sty	2023-06-08 19:50:11 UTC (rev 67303)
+++ trunk/Master/texmf-dist/tex/latex/jeuxcartes/JeuxCartes.sty	2023-06-08 19:50:41 UTC (rev 67304)
@@ -11,8 +11,9 @@
 % Uno   v1 cards Image's Licence.: MIT License https://eperezcosano.github.io/uno-part1/
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{JeuxCartes}[2023/03/18 v0.2.4 Jeux de cartes]
-% 0.2.4	Style <fr> avec carte française + <bicycl> + modification des clés avec l'ajout de <StyleJeu> + Suppression xcolor
+\ProvidesPackage{JeuxCartes}[2023/06/06 v0.2.5 Jeux de cartes]
+% 0.2.5	Correction d'un dysfonctionnement avec le J qui peut désormais être utilisé en MiniCarte avec le Joker [en] + MiniMains [en]
+% 0.2.4	Style <fr> avec cartes françaises + <bicycl> + modification des clés avec l'ajout de <StyleJeu> + Suppression xcolor
 % 0.2.3	Ajout d'une option pour présenter une main "inversée" + style <v5>
 % 0.2.2	Correction de 2 cartes de pokerv4
 % 0.2.2	Ajout d'un style <v4> pour le poker
@@ -376,6 +377,10 @@
 	\end{tikzpicture}%
 }
 
+%------commande pour remonter le Q ttfamily
+\DeclareRobustCommand*{\RaiseBoxByDepth}{%
+	\raisebox{\depth}%
+}
 %------commande mini-cartes
 \defKV[AffMiniCartes]{%
 	Largeur=\def\MiniCarteLargeur{#1},%
@@ -409,11 +414,13 @@
 	\IfStrEq{\csVal}{21}{\def\csVal{\scalebox{0.5}[1]{21}}}{}%
 	%le cas de Excuse
 	\IfStrEq{#2}{Exc}%
-	{\def\csSymb{\ding{168}}\def\csCoul{blue}%
-		\def\csVal{\scalebox{0.33}[1]{EXC}}}{}%
+		{\def\csSymb{\ding{168}}\def\csCoul{blue}\def\csVal{\scalebox{0.33}[1]{EXC}}}{}%
 	%le cas du Joker
-	\IfStrEq{\csVal}{J}%
+	\IfStrEq{\csVal}{JO}%
 		{\def\csSymb{\ding{166}}\def\csVal{\scalebox{0.5}[1]{JO}}}{}%
+	%le cas de la dame [en] Q
+	\IfStrEq{\csVal}{Q}%
+		{\def\csVal{\RaiseBoxByDepth{\scalebox{1}[0.8]{Q}}}}{}%
 	%si c'est un coeur
 	\IfStrEq{\csCplt}{C}%
 		{\def\csSymb{\ding{170}}\def\csCoul{red}}{}%
@@ -433,7 +440,7 @@
 	\IfStrEq{\csCplt}{R}%
 		{\def\csCoul{red}}{}%
 	%minicarte
-	\tikz[baseline=(char.base)]\node[anchor=north west,line width=0.7pt,draw=gray,rectangle,rounded corners,inner sep=1.6pt,fill=\csFond,text=\csCoul,font=\ttfamily,minimum width=\MiniCarteLargeur](char){\csVal\scalebox{0.75}[0.75]{\csSymb}};%
+	\tikz[baseline=(char.base)]\node[anchor=north west,line width=0.7pt,draw=gray,rectangle,rounded corners=3pt,inner sep=1.5pt,fill=\csFond,text=\csCoul,font=\ttfamily,minimum width=\MiniCarteLargeur](char){\vphantom{A}\csVal\scalebox{0.75}[0.75]{\csSymb}};%
 }
 
 %------commande mini-main-cartes
@@ -470,10 +477,14 @@
 }
 
 \xdef\MiniCartesJeuPoker{2.P,3.P,4.P,5.P,6.P,7.P,8.P,9.P,10.P,V.P,D.P,R.P,A.P,2.T,3.T,4.T,5.T,6.T,7.T,8.T,9.T,10.T,V.T,D.T,R.T,A.T,2.C,3.C,4.C,5.C,6.C,7.C,8.C,9.C,10.C,V.C,D.C,R.C,A.C,2.K,3.K,4.K,5.K,6.K,7.K,8.K,9.K,10.K,V.K,D.K,R.K,A.K}%
+\xdef\MiniCartesJeuPokerEN{2.P,3.P,4.P,5.P,6.P,7.P,8.P,9.P,10.P,J.P,Q.P,K.P,A.P,2.T,3.T,4.T,5.T,6.T,7.T,8.T,9.T,10.T,J.T,Q.T,K.T,A.T,2.C,3.C,4.C,5.C,6.C,7.C,8.C,9.C,10.C,J.C,Q.C,K.C,A.C,2.K,3.K,4.K,5.K,6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,3.K,4.K,5.K,6.K,7.K,8.K,9.K,10.K,V.K,D.K,R.K,A.K,JO.N,JO.R,2.P,3.P,4.P,5.P,6.P,7.P,8.P,9.P,10.P,V.P,D.P,R.P,A.P,2.T,3.T,4.T,5.T,6.T,7.T,8.T,9.T,10.T,V.T,D.T,R.T,A.T,2.C,3.C,4.C,5.C,6.C,7.C,8.C,9.C,10.C,V.C,D.C,R.C,A.C,2.K,3.K,4.K,5.K,6.K,7.K,8.K,9.K,10.K,V.K,D.K,R.K,A.K,JO.N,JO.R}%
+\xdef\MiniCartesJeuRamiEN{2.P,3.P,4.P,5.P,6.P,7.P,8.P,9.P,10.P,J.P,Q.P,K.P,A.P,2.T,3.T,4.T,5.T,6.T,7.T,8.T,9.T,10.T,J.T,Q.T,K.T,A.T,2.C,3.C,4.C,5.C,6.C,7.C,8.C,9.C,10.C,J.C,Q.C,K.C,A.C,2.K,3.K,4.K,5.K,6.K,7.K,8.K,9.K,10.K,J.K,Q.K,K.K,A.K,JO.N,JO.R,2.P,3.P,4.P,5.P,6.P,7.P,8.P,9.P,10.P,J.P,Q.P,K.P,A.P,2.T,3.T,4.T,5.T,6.T,7.T,8.T,9.T,10.T,J.T,Q.T,K.T,A.T,2.C,3.C,4.C,5.C,6.C,7.C,8.C,9.C,10.C,J.C,Q.C,K.C,A.C,2.K,3.K,4.K,5.K,6.K,7.K,8.K,9.K,10.K,J.K,Q.K,K.K,A.K,JO.N,JO.R}%
 \NewList{MiniCartesJeuMelange}
 
 \NewDocumentCommand\MainMiniCartesJeuAleatoire{ O{} m }{%1=options,2=nbcartes
@@ -481,6 +492,7 @@
 	\setKV[MiniMainAleaCartes]{#1}%
 	%melange du jeu
 	\ClearList{MiniCartesJeuMelange}%
+	%Cartes [fr]
 	\IfStrEq{\MiniMainAleaType}{Poker}%si c'est le poker
 	{%
 		\xintFor* ##1 in {\xintCSVtoList{\MiniCartesJeuPoker}}%
@@ -511,6 +523,31 @@
 		\do{\InsertRandomItem{MiniCartesJeuMelange}{##1}}%
 	}%
 	{}%
+	%Cartes [en]
+	\IfStrEq{\MiniMainAleaType}{PokerEN}%si c'est le poker
+	{%
+		\xintFor* ##1 in {\xintCSVtoList{\MiniCartesJeuPokerEN}}%
+		\do{\InsertRandomItem{MiniCartesJeuMelange}{##1}}%
+	}%
+	{}%
+	\IfStrEq{\MiniMainAleaType}{BatailleEN}%si c'est la bataille
+	{%
+		\xintFor* ##1 in {\xintCSVtoList{\MiniCartesJeuBatailleEN}}%
+		\do{\InsertRandomItem{MiniCartesJeuMelange}{##1}}%
+	}%
+	{}%
+	\IfStrEq{\MiniMainAleaType}{BeloteEN}%si c'est le belote
+	{%
+		\xintFor* ##1 in {\xintCSVtoList{\MiniCartesJeuBeloteEN}}%
+		\do{\InsertRandomItem{MiniCartesJeuMelange}{##1}}%
+	}%
+	{}%
+	\IfStrEq{\MiniMainAleaType}{RamiEN}%si c'est le rami
+	{%
+		\xintFor* ##1 in {\xintCSVtoList{\MiniCartesJeuRamiEN}}%
+		\do{\InsertRandomItem{MiniCartesJeuMelange}{##1}}%
+	}%
+	{}%
 	%création de la main
 	\foreach \i in {1,2,...,#2}{%
 		\GetItem{MiniCartesJeuMelange}{\inteval{\i-1}}{MiniCarteMainChoisie}%



More information about the tex-live-commits mailing list.