texlive[73958] Master/texmf-dist: jeuxcartes (13feb25)
commits+karl at tug.org
commits+karl at tug.org
Thu Feb 13 22:04:18 CET 2025
Revision: 73958
https://tug.org/svn/texlive?view=revision&revision=73958
Author: karl
Date: 2025-02-13 22:04:17 +0100 (Thu, 13 Feb 2025)
Log Message:
-----------
jeuxcartes (13feb25)
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 2025-02-13 21:03:51 UTC (rev 73957)
+++ trunk/Master/texmf-dist/doc/latex/jeuxcartes/JeuxCartes-doc.tex 2025-02-13 21:04:17 UTC (rev 73958)
@@ -69,8 +69,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.3.0}
-\def\TPdate{3 février 2025}
+\def\TPversion{0.3.1}
+\def\TPdate{13 février 2025}
\usepackage[most]{tcolorbox}
\usepackage{minted2}
@@ -211,6 +211,8 @@
\part{Historique}
+{\small \bverb|v0.3.1|~:~~~~Ajout d'une clé \textsf{EspH} pour les cartes côte à côte.
+
{\small \bverb|v0.3.0|~:~~~~Macros pour des jeux 'complets'.
{\small \bverb|v0.2.8|~:~~~~Correction d'un bug mineur sur les commandes 'multicartes'.
@@ -454,6 +456,7 @@
\begin{itemize}
\item la clé \Cle{Hauteur} correspond à la hauteur voulue, en cm, de la carte ; \hfill{}défaut \Cle{4.25}
+ \item \cmaj{0.3.1} la clé \Cle{EspH} pour un éventuel espacement horizontal entre les cartes ; \hfill{}défaut \Cle{0pt}
\item la clé \Cle{TypeJeu} (parmi \Cle{Poker} ou \Cle{Tarot} ou \Cle{Uno}) pour spécifier les cartes à utiliser ; \hfill{}défaut \Cle{Poker}
\item \cmaj{0.2.4} la clé \Cle{Stylejeu} (parmi \Cle{v1}, \ldots, \Cle{v5}, \Cle{fr} ou \Cle{bicycl}) pour spécifier le style des cartes \textsf{Poker} ; \hfill{}défaut \Cle{v1}
\item la clé \Cle{Rotation} pour une éventuelle rotation de la carte ; \hfill{}défaut \Cle{0}
@@ -489,7 +492,7 @@
ou \AffCarteJeu[Hauteur=2,AlignementV=0,Tikz]{AC}
ou \AffCarteJeu[Hauteur=2,AlignementV=1,Tikz]{10K}
ou \AffCarteJeu[Hauteur=2,TypeJeu=Tarot,AlignementV=0.33,Rotation=-25]{10AT}.\\ \\
-On obtient la main \AffCartesJeu[Hauteur=2,TypeJeu=Uno]{9B § 8R § P2J § P4 § 0J § CSR § PTJ}.
+On obtient la main \AffCartesJeu[Hauteur=2,TypeJeu=Uno,EspH=1.25mm]{9B § 8R § P2J § P4 § 0J § CSR § PTJ}.
\end{codetex}
\pagebreak
@@ -556,8 +559,10 @@
%poker tri par couleur (P/C/T/K)
\JeuCompletPokerTriCoul
+\JeuCompletPokerTriCoulJok
%poker tri par hauteur (P/C/T/K)
\JeuCompletPokerTriHaut
+\JeuCompletPokerTriHautJok
%tarot tri par couleur (P/C/T/K)
\JeuCompletTarotTriCoul
Modified: trunk/Master/texmf-dist/tex/latex/jeuxcartes/JeuxCartes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/jeuxcartes/JeuxCartes.sty 2025-02-13 21:03:51 UTC (rev 73957)
+++ trunk/Master/texmf-dist/tex/latex/jeuxcartes/JeuxCartes.sty 2025-02-13 21:04:17 UTC (rev 73958)
@@ -11,7 +11,8 @@
% Uno v1 cards Image's Licence.: MIT License https://eperezcosano.github.io/uno-part1/
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{JeuxCartes}[2025/02/03 v0.3.0 Jeux de cartes]
+\ProvidesPackage{JeuxCartes}[2025/02/13 v0.3.1 Jeux de cartes]
+% 0.3.1 Ajout d'une clé EspH pour les cartes côte à côte + macros jeux complets avec Jokers
% 0.3.0 Macro pour des jeux complets (fixés)
% 0.2.8 Correction de bugs mineurs
% 0.2.7 Retour en arrière design v2 tarot (pb de licence)
@@ -48,7 +49,9 @@
\def\JeuCompletBeloteTriHaut{7P§7C§7T§7K § 8P§8C§8T§8K § 9P§9C§9T§9K § 10P§10C§10T§10K § VP§VC§VT§VK § DP§DC§DT§DK § RP§RC§RT§RK § AP§AC§AT§AK}
\def\JeuCompletBeloteTriCoul{7P§8P§9P§10P§VP§DP§RP§AP § 7C§8C§9C§10C§VC§DC§RC§AC § 7T§8T§9T§10T§VT§DT§RT§AT § 7K§8K§9K§10K§VK§DK§RK§AK }
\def\JeuCompletPokerTriHaut{2P§2C§2T§2K § 3P§3C§3T§3K § 4P§4C§4T§4K § 5P§5C§5T§5K § 6P§6C§6T§6K § 7P§7C§7T§7K § 8P§8C§8T§8K § 9P§9C§9T§9K § 10P§10C§10T§10K § VP§VC§VT§VK § DP§DC§DT§DK § RP§RC§RT§RK § AP§AC§AT§AK}
+\def\JeuCompletPokerTriHautJok{2P§2C§2T§2K § 3P§3C§3T§3K § 4P§4C§4T§4K § 5P§5C§5T§5K § 6P§6C§6T§6K § 7P§7C§7T§7K § 8P§8C§8T§8K § 9P§9C§9T§9K § 10P§10C§10T§10K § VP§VC§VT§VK § DP§DC§DT§DK § RP§RC§RT§RK § AP§AC§AT§AK § JN§JR}
\def\JeuCompletPokerTriCoul{2P§3P§4P§5P§6P§7P§8P§9P§10P§VP§DP§RP§AP § 2C§3C§4C§5C§6C§7C§8C§9C§10C§VC§DC§RC§AC § 2T§3T§4T§5T§6T§7T§8T§9T§10T§VT§DT§RT§AT § 2K§3K§4K§5K§6K§7K§8K§9K§10K§VK§DK§RK§AK }
+\def\JeuCompletPokerTriCoulJok{2P§3P§4P§5P§6P§7P§8P§9P§10P§VP§DP§RP§AP § 2C§3C§4C§5C§6C§7C§8C§9C§10C§VC§DC§RC§AC § 2T§3T§4T§5T§6T§7T§8T§9T§10T§VT§DT§RT§AT § 2K§3K§4K§5K§6K§7K§8K§9K§10K§VK§DK§RK§AK § JN§JR}
\def\JeuCompletTarotTriHaut{2P§2C§2T§2K § 3P§3C§3T§3K § 4P§4C§4T§4K § 5P§5C§5T§5K § 6P§6C§6T§6K § 7P§7C§7T§7K § 8P§8C§8T§8K § 9P§9C§9T§9K § 10P§10C§10T§10K § VP§VC§VT§VK § CP§CC§CT§CK DP§DC§DT§DK § RP§RC§RT§RK § AP§AC§AT§AK § Exc§1AT§2AT§2AT§3AT§4AT§5AT§6AT§7AT§8AT§9AT§10AT§11AT§12AT§13AT§14AT§15AT§16AT§17AT§18AT§19AT§20AT§21AT}
\def\JeuCompletTarotTriCoul{2P§3P§4P§5P§6P§7P§8P§9P§10P§VP§CP§DP§RP§AP § 2C§3C§4C§5C§6C§7C§8C§9C§10C§VC§CC§DC§RC§AC § 2T§3T§4T§5T§6T§7T§8T§9T§10T§VT§CT§DT§RT§AT § 2K§3K§4K§5K§6K§7K§8K§9K§10K§VK§CK§DK§RK§AK § Exc§1AT§2AT§2AT§3AT§4AT§5AT§6AT§7AT§8AT§9AT§10AT§11AT§12AT§13AT§14AT§15AT§16AT§17AT§18AT§19AT§20AT§21AT}
@@ -134,15 +137,18 @@
}
%------commande main simple (cartes côte à côte)
+\newlength\jeuxcartesjeuhoffset
\defKV[AffMainSimpleCartes]{%
Hauteur=\def\MainSimpleHauteur{#1},%
TypeJeu=\def\MainSimpleJeuType{#1},%
- StyleJeu=\def\MainSimpleJeuStyle{#1}
+ StyleJeu=\def\MainSimpleJeuStyle{#1},%
+ EspH=\setlength{\jeuxcartesjeuhoffset}{#1}
}
\setKVdefault[AffMainSimpleCartes]{%
Hauteur=4.25,%
TypeJeu=Poker,%
- StyleJeu=v1
+ StyleJeu=v1,%
+ EspH=0pt
}
\NewDocumentCommand\AffCartesJeu{ O{} m }{%1=options,2=listecartes (OK)
@@ -155,7 +161,7 @@
%main côte à côte
\foreach \i in {1,...,\ListeCartesMainlen}{%
\itemtomacro\ListeCartesMain[\i]\CarteMain%
- \AffCarteJeu[TypeJeu=\MainSimpleJeuType,StyleJeu=\MainSimpleJeuStyle,Hauteur=\MainSimpleHauteur]{\CarteMain}%
+ \AffCarteJeu[TypeJeu=\MainSimpleJeuType,StyleJeu=\MainSimpleJeuStyle,Hauteur=\MainSimpleHauteur]{\CarteMain}\ifnum\i<\ListeCartesMainlen\relax\kern\jeuxcartesjeuhoffset\fi%
}%
}
More information about the tex-live-commits
mailing list.