texlive[75983] Master/texmf-dist: trivialpursuit (5aug25)
commits+karl at tug.org
commits+karl at tug.org
Tue Aug 5 22:36:36 CEST 2025
Revision: 75983
https://tug.org/svn/texlive?view=revision&revision=75983
Author: karl
Date: 2025-08-05 22:36:36 +0200 (Tue, 05 Aug 2025)
Log Message:
-----------
trivialpursuit (5aug25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/trivialpursuit/README.md
trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-en.pdf
trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-en.tex
trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-fr.pdf
trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-fr.tex
trunk/Master/texmf-dist/tex/latex/trivialpursuit/TrivialPursuit.sty
Modified: trunk/Master/texmf-dist/doc/latex/trivialpursuit/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/trivialpursuit/README.md 2025-08-05 20:36:27 UTC (rev 75982)
+++ trunk/Master/texmf-dist/doc/latex/trivialpursuit/README.md 2025-08-05 20:36:36 UTC (rev 75983)
@@ -1,8 +1,15 @@
TriviaPursuit is a package to work with the Trivial Pursuit Board Game.
+
----------------------------------------------------------------------------
+
TriviaPursuit est un package pour représenter un plateau de Trivial Pursuit.
+
----------------------------------------------------------------------------
+
Author : Cédric Pierquet
+
email : cpierquet at outlook.fr
+
Licence : Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
+
Trivial Pursuit is a Trademark from Hasbro
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-en.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-en.tex 2025-08-05 20:36:27 UTC (rev 75982)
+++ trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-en.tex 2025-08-05 20:36:36 UTC (rev 75983)
@@ -21,8 +21,8 @@
\hypersetup{pdfborder=0 0 0}
\usepackage[margin=2cm]{geometry}
\setlength{\parindent}{0pt}
-\def\TPversion{0.1.5}
-\def\TPdate{24/06/2025}
+\def\TPversion{0.1.6}
+\def\TPdate{04/08/2025}
\usepackage{tcolorbox}
\tcbuselibrary{skins,hooks,listingsutf8}
\usepackage{soul}
@@ -58,7 +58,7 @@
\begin{tabular}{c}
\texttt{Cédric Pierquet}\\
{\ttfamily c pierquet -- at -- outlook . fr}\\
- \texttt{\url{https://forge.apps.education.fr/pierquetcedric/packages-latex}} \\
+ \texttt{\url{https://github.com/cpierquet/latex-packages/tree/main/trivialpursuit}} \\
\\
\texttt{Trivial Pursuit\texttrademark, is a trademark of Hasbro.}
\end{tabular}
@@ -92,11 +92,11 @@
\subsection{Description}
-This package provides a command to display a \textsf{Trivial Pursuit} (trademark of Hasbro) board, with some customization :
+This package provides a command to display a \textsf{Trivial Pursuit} (trademark of Hasbro) board, with some customization:
\begin{itemize}
- \item of lengths (radius + height cells) ;
- \item of colors ;
+ \item of lengths (radius + height cells);
+ \item of colors;
\item of logos (with \MontreCode{fontawesome}).
\end{itemize}
@@ -104,43 +104,46 @@
\medskip
-For the moment, limitations are :
+For the moment, limitations are:
\begin{itemize}
- \item number of categories (6) ;
+ \item number of categories (6);
\item logos, given by a character, eg from package \MontreCode{fontawesome}.
\end{itemize}
\subsection{Loading}
-To load the package, simply add in the preamble :
+To load the package, simply add in the preamble:
\begin{quote}
\begin{verbatim}
\usepackage{TrivialPursuit} %with fa5, default
\usepackage[fa6]{TrivialPursuit} %with fa6 (test)
+\usepackage[fa7]{TrivialPursuit} %with fa7 (test)
+\usepackage[nofa]{TrivialPursuit} %w/o fa (test), loading manually
\end{verbatim}
\end{quote}
-Loaded are useful package are :
+Loaded are useful package are:
\begin{itemize}
- \item \MontreCode{tikz} with libraries \MontreCode{calc,positioning} ;
- \item \MontreCode{calc} and \item \MontreCode{fontawesome} ;
- \item \MontreCode{simplekv} ; \MontreCode{xintexpr} and \MontreCode{listofitems}.
+ \item \MontreCode{tikz} with libraries \MontreCode{calc,positioning};
+ \item \MontreCode{calc} and \MontreCode{fontawesome5};
+ \item \MontreCode{simplekv}; \MontreCode{xintexpr} and \MontreCode{listofitems}.
\end{itemize}
-\vfill
+\pagebreak
-\subsection{History}
+\section{History}
\begin{quote}
\begin{verbatim}
-0.1.5 : Bugfix (compatibility with twemoji)
-0.1.4 : Bugfix + pre-compatibility with fa6
-0.1.2 : Key [ShortVersion] in order to reduce number of border cells
-0.1.1 : Adding two schemes of colors
-0.1.0 : Initial version
+0.1.6: Bugfix + pre-compatibility with fa7
+0.1.5: Bugfix (compatibility with twemoji)
+0.1.4: Bugfix + pre-compatibility with fa6
+0.1.2: Key [ShortVersion] in order to reduce number of border cells
+0.1.1: Adding two schemes of colors
+0.1.0: Initial version
\end{verbatim}
\end{quote}
@@ -152,7 +155,7 @@
The code draw the board, with optional logos.
-All the available keys are presented in the following paragraph, but concerning the dimensions, \textit{general} are proposed by default, but it is however possible to modify them :
+All the available keys are presented in the following paragraph, but concerning the dimensions, \textit{general} are proposed by default, but it is however possible to modify them:
\begin{itemize}
\item either explicitly by the keys \MontreCode{[Radius=]} and \MontreCode{[BorderHeight=]};
@@ -173,29 +176,29 @@
\subsection{Keys and options}
-Available \textsf{keys} are :
+Available \textsf{keys} are:
\begin{itemize}
- \item \MontreCode{Radius} := radius of the board (in unit), and \MontreCode{8} by default ;
- \item \MontreCode{BorderHeight} := height of ext cells, and \MontreCode{1.5} by default ;
- \item \MontreCode{ListColors} := colors of the categories,
+ \item \MontreCode{Radius}:= radius of the board (in unit), and \MontreCode{8} by default;
+ \item \MontreCode{BorderHeight}:= height of ext cells, and \MontreCode{1.5} by default;
+ \item \MontreCode{ListColors}:= colors of the categories,
- \hfill{}and \MontreCode{yellow,orange,blue,brown,green,pink} by default ;
- \item \MontreCode{ListIcons} := icons of categories,
+ \hfill{}and \MontreCode{yellow,orange,blue,brown,green,pink} by default;
+ \item \MontreCode{ListIcons}:= icons of categories,
- \hfill\MontreCode{\textbackslash faArchway,\textbackslash faTableTennis,\textbackslash faUmbrellaBeach,\textbackslash faGuitar,\textbackslash faTree,\textbackslash faMusic} by default ;
- \item \MontreCode{Icons} := boolean for display icons, and \MontreCode{true} by default ;
- \item \MontreCode{Center} := boolean for filling central hexagon, and \MontreCode{true} by default ;
- \item \MontreCode{ColorCenter} := color of central hexagon, and \MontreCode{lightgray!25} by default ;
- \item \MontreCode{Colors} := boolean fot printing colors, and \MontreCode{true} by default ;
- \item \MontreCode{Logo} := boolean for displaying logo at the center, and \MontreCode{true} by default ;
- \item \MontreCode{Jokers} := boolean for printing jokers, and \MontreCode{true} by default ;
- \item \MontreCode{IconJoker} := icon for joker, and \MontreCode{\textbackslash faDice} by default ;
- \item \MontreCode{Blank} := boolean for an empty board, and \MontreCode{false} by default ;
- \item \MontreCode{Unit} := to precis an unit (better than a scale !), and \MontreCode{1} by default ;
- \item \MontreCode{Thickness} := thickness of the borders, and \MontreCode{0.8pt} by default ;
- \item \MontreCode{Rotation} := possible rotation of the board, and \MontreCode{0} by default ;
- \item \MontreCode{ShortVersion} := use 5 cells instead 6 between 'big cells', and \MontreCode{false} by default.
+ \hfill\MontreCode{\textbackslash faArchway,\textbackslash faTableTennis,\textbackslash faUmbrellaBeach,\textbackslash faGuitar,\textbackslash faTree,\textbackslash faMusic} by default;
+ \item \MontreCode{Icons}:= boolean for display icons, and \MontreCode{true} by default;
+ \item \MontreCode{Center}:= boolean for filling central hexagon, and \MontreCode{true} by default;
+ \item \MontreCode{ColorCenter}:= color of central hexagon, and \MontreCode{lightgray!25} by default;
+ \item \MontreCode{Colors}:= boolean fot printing colors, and \MontreCode{true} by default;
+ \item \MontreCode{Logo}:= boolean for displaying logo at the center, and \MontreCode{true} by default;
+ \item \MontreCode{Jokers}:= boolean for printing jokers, and \MontreCode{true} by default;
+ \item \MontreCode{IconJoker}:= icon for joker, and \MontreCode{\textbackslash faDice} by default;
+ \item \MontreCode{Blank}:= boolean for an empty board, and \MontreCode{false} by default;
+ \item \MontreCode{Unit}:= to precis an unit (better than a scale !), and \MontreCode{1} by default;
+ \item \MontreCode{Thickness}:= thickness of the borders, and \MontreCode{0.8pt} by default;
+ \item \MontreCode{Rotation}:= possible rotation of the board, and \MontreCode{0} by default;
+ \item \MontreCode{ShortVersion}:= use 5 cells instead 6 between 'big cells', and \MontreCode{false} by default.
\end{itemize}
\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
@@ -226,9 +229,9 @@
\pagebreak
-\subsection{Schemes of colors}
+\subsection{Schemes of colors, predefined fa icons}
-In addition (on a suggestion from \textsf{quark67}), two color styles have been defined internally :
+In addition (on a suggestion from \textsf{quark67}), two color styles have been defined internally:
\begin{quote}
\begin{verbatim}
@@ -241,4 +244,16 @@
\BoardTrivialPursuit[Unit=0.5,ListColors=\TPColorsA]
\BoardTrivialPursuit[Unit=0.5,ListColors=\TPColorsB]
\end{tcblisting}
+
+\begin{quote}
+\begin{verbatim}
+\categtrivialpursuit
+\end{verbatim}
+\end{quote}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
+\BoardTrivialPursuit%
+ [ListIcons=\categtrivialpursuit,ListColors=\TPColorsB,IconJoker=\faDice]
+\end{tcblisting}
+
\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-fr.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-fr.tex 2025-08-05 20:36:27 UTC (rev 75982)
+++ trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-fr.tex 2025-08-05 20:36:36 UTC (rev 75983)
@@ -21,8 +21,8 @@
\hypersetup{pdfborder=0 0 0}
\usepackage[margin=2cm]{geometry}
\setlength{\parindent}{0pt}
-\def\TPversion{0.1.5}
-\def\TPdate{24 juin 2025}
+\def\TPversion{0.1.6}
+\def\TPdate{4 août 2025}
\usepackage{tcolorbox}
\tcbuselibrary{skins,hooks,listingsutf8}
\usepackage{soul}
@@ -58,7 +58,7 @@
\begin{tabular}{c}
\texttt{Cédric Pierquet}\\
{\ttfamily c pierquet -- at -- outlook . fr}\\
- \texttt{\url{https://forge.apps.education.fr/pierquetcedric/packages-latex}} \\
+ \texttt{\url{https://github.com/cpierquet/latex-packages/tree/main/trivialpursuit}} \\
\\
\texttt{Trivial Pursuit\texttrademark, est une marque déposée par Hasbro.}
\end{tabular}
@@ -119,6 +119,8 @@
\begin{verbatim}
\usepackage{TrivialPursuit} %avec fa5, par défaut
\usepackage[fa6]{TrivialPursuit} %avec fa6 (test)
+\usepackage[fa7]{TrivialPursuit} %avec fa7 (test)
+\usepackage[nonfa]{TrivialPursuit} %sans fa (test), à charger manuellement
\end{verbatim}
\end{quote}
@@ -126,16 +128,17 @@
\begin{itemize}
\item \MontreCode{tikz} avec les librairies \MontreCode{calc,positioning} ;
- \item \MontreCode{calc} et \item \MontreCode{fontawesome} ;
+ \item \MontreCode{calc} et \MontreCode{fontawesome5} ;
\item \MontreCode{simplekv} ; \MontreCode{xintexpr} et \MontreCode{listofitems}.
\end{itemize}
-\vfill
+\pagebreak
-\subsection{Historique}
+\section{Historique}
\begin{quote}
\begin{verbatim}
+0.1.6 : Bugfix + pré-compatibilité avec fa67
0.1.5 : Bugfix (compatibilité avec twemoji)
0.1.4 : Bugfix + pré-compatibilité avec fa6
0.1.2 : Ajout d'une clé [VersionCourte] pour diminuer le nombre de cases
@@ -155,8 +158,8 @@
Toutes les clés disponibles sont présentées dans le paragraphe suivant, mais concernant les dimensions, des \textit{générales} sont proposées par défaut, mais il est toutefois possible de les modifier :
\begin{itemize}
- \item soit explicitement par les clés \MontreCode{[Rayon=]} et \MontreCode{[HauteurCases=]} ;
- \item soit en spécifiant une unité particulière grâce à la clé \MontreCode{[Unite=]}, au quel cas la forme générale du plateau sera conservée.
+ \item soit explicitement par les clés \MontreCode{[Rayon=...]} et \MontreCode{[HauteurCases=...]} ;
+ \item soit en spécifiant une unité particulière grâce à la clé \MontreCode{[Unite=...]}, au quel cas la forme générale du plateau sera conservée.
\end{itemize}
\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
@@ -183,7 +186,8 @@
\hfill{}et valant \MontreCode{yellow,orange,blue,brown,green,pink} par défaut ;
\item \MontreCode{ListeIcones} := icônes des catégories (sens trigo),
- \hfill\MontreCode{\textbackslash faArchway,\textbackslash faTableTennis,\textbackslash faUmbrellaBeach,\textbackslash faGuitar,\textbackslash faTree,\textbackslash faMusic} par défaut ;
+ \hfill\MontreCode{A,B,C,D,E,F} par défaut ;
+ %\hfill\MontreCode{\textbackslash faArchway,\textbackslash faTableTennis,\textbackslash faUmbrellaBeach,\textbackslash faGuitar,\textbackslash faTree,\textbackslash faMusic} par défaut ;
\item \MontreCode{Icones} := booléen pour afficher les icônes, et valant \MontreCode{true} par défaut ;
\item \MontreCode{Centre} := booléen pour colorer l'hexagone centrale, et valant \MontreCode{true} par défaut ;
\item \MontreCode{CouleurCentre} := couleur du centre hexagonal, et valant \MontreCode{lightgray!25} par défaut ;
@@ -190,7 +194,7 @@
\item \MontreCode{Couleurs} := booléen pour afficher les couleurs, et valant \MontreCode{true} par défaut ;
\item \MontreCode{Logo} := booléen pour afficher un logo central, et valant \MontreCode{true} par défaut ;
\item \MontreCode{Jokers} := booléen pour afficher les jokers, et valant \MontreCode{true} par défaut ;
- \item \MontreCode{IconeJoker} := icône des jokers, et valant \MontreCode{\textbackslash faDice} par défaut ;
+ \item \MontreCode{IconeJoker} := icône des jokers, et valant \MontreCode{J} par défaut ;%\MontreCode{\textbackslash faDice} par défaut ;
\item \MontreCode{Vide} := booléen pour afficher le plateau vide, et valant \MontreCode{false} par défaut ;
\item \MontreCode{Unite} := pour préciser l'unité (et gérer un facteur d'échelle), et valant \MontreCode{1} par défaut ;
\item \MontreCode{Epaisseur} := épaisseur des tracés, et valant \MontreCode{0.8pt} par défaut ;
@@ -218,7 +222,7 @@
Jokers=false,%
ListeCouleurs={%
blue!25,red!25,teal!25,orange!25,gray!50,violet!25},%
- ListeIcones={
+ ListeIcones={%avec fa5
\faAddressCard,\faAngleDoubleRight,\faAngry[regular],%
\faAtom,\faBalanceScaleLeft,\faBell}
]
@@ -226,7 +230,7 @@
\pagebreak
-\subsection{Palettes de couleurs prédéfinies}
+\subsection{Palettes de couleurs prédéfinies, icônes fa prédéfinies}
En complément (sur une suggestion de \textsf{quark67}), deux styles de couleurs ont été définies en interne :
@@ -242,5 +246,15 @@
\PlateauTrivialPursuit[Unite=0.5,ListeCouleurs=\TPColorsB]
\end{tcblisting}
+\begin{quote}
+\begin{verbatim}
+\categtrivialpursuit
+\end{verbatim}
+\end{quote}
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
+\PlateauTrivialPursuit%
+ [ListeIcones=\categtrivialpursuit,ListeCouleurs=\TPColorsB,IconeJoker=\faDice]
+\end{tcblisting}
+
\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/trivialpursuit/TrivialPursuit.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/trivialpursuit/TrivialPursuit.sty 2025-08-05 20:36:27 UTC (rev 75982)
+++ trunk/Master/texmf-dist/tex/latex/trivialpursuit/TrivialPursuit.sty 2025-08-05 20:36:36 UTC (rev 75983)
@@ -4,7 +4,8 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{TrivialPursuit}[2025/06/24 0.1.5 Present a Trivial Pursuit Board]
+\ProvidesPackage{TrivialPursuit}[2025/08/04 0.1.6 Present a Trivial Pursuit Board]
+% 0.1.6 Compatibility with fa5/6/7
% 0.1.5 Bugfix
% 0.1.4 Bugfix
% 0.1.3 Compatibility with fa5/6
@@ -17,11 +18,11 @@
%====Option
\newif\if at fafive \@fafivetrue
\newif\if at fasix \@fasixfalse
-\newif\if at fafivesix \@fafivesixfalse
-\DeclareOption{nonfa}{\@fafivefalse\@fasixfalse\@fafivesixfalse}
-\DeclareOption{nofa}{\@fafivefalse\@fasixfalse\@fafivesixfalse}
-\DeclareOption{fa6}{\@fafivefalse\@fafivesixfalse\@fasixtrue}
-\DeclareOption{fa5fa6}{\@fafivefalse\@fasixfalse\@fafivesixtrue}
+\newif\if at faseven \@fasevenfalse
+\DeclareOption{nonfa}{\@fafivefalse\@fasixfalse\@fasevenfalse}
+\DeclareOption{nofa}{\@fafivefalse\@fasixfalse\@fasevenfalse}
+\DeclareOption{fa6}{\@fafivefalse\@fasixtrue\@fasevenfalse}
+\DeclareOption{fa7}{\@fafivefalse\@fasixfalse\@faseventrue}
\DeclareOption*{}
\ProcessOptions\relax
@@ -29,23 +30,26 @@
\RequirePackage{tikz}
\usetikzlibrary{calc,positioning}
\RequirePackage{calc}
-%\RequirePackage{fontawesome5}
+\RequirePackage{simplekv}
+\RequirePackage{xintexpr}
+\RequirePackage{listofitems}
+
+%====FONTAWESOME...
\if at fafive
\RequirePackage{fontawesome5}
- \def\faTennis{\faTableTennis}
\fi
\if at fasix
\RequirePackage{fontawesome6}
- \def\faTennis{\faTableTennisPaddleBall}
\fi
-\if at fafivesix
- \RequirePackage[fa5alias]{fontawesome6}
- \def\faTennis{\faTableTennisPaddleBall}
+\if at faseven
+ \RequirePackage{fontawesome7}
\fi
-\RequirePackage{simplekv}
-\RequirePackage{xintexpr}
-\RequirePackage{listofitems}
+\def\faTennis{}
+\@ifpackageloaded{fontawesome5}{\def\faTennis{\faTableTennis}\def\categtrivialpursuit{\faArchway,\faTennis,\faUmbrellaBeach,\faGuitar,\faTree,\faMusic}}{}
+\@ifpackageloaded{fontawesome6}{\def\faTennis{\faTableTennisPaddleBall}\def\categtrivialpursuit{\faArchway,\faTennis,\faUmbrellaBeach,\faGuitar,\faTree,\faMusic}}{}
+\@ifpackageloaded{fontawesome7}{\def\faTennis{\faTableTennisPaddleBall}\def\categtrivialpursuit{\faArchway,\faTennis,\faUmbrellaBeach,\faGuitar,\faTree,\faMusic}}{}
+
%====COLORS (tks to quark67)
%styleA
\definecolor{TPorangeA}{cmyk}{0,0.6,1,0}
@@ -64,6 +68,7 @@
\def\TPColorsB{TPyellowB,TPorangeB,TPblueB,TPbrownB,TPgreenB,TPpinkB}
%====KEYS [FR]
+
\defKV[TrivPurs]{%
Rayon=\def\triv at purs@rayon{#1},%
HauteurCases=\def\triv at purs@hautcases{#1},
@@ -80,7 +85,8 @@
Rayon=8,%
HauteurCases=1.5,%
ListeCouleurs={yellow,orange,blue,brown,green,pink},%
- ListeIcones={\faArchway,\faTennis,\faUmbrellaBeach,\faGuitar,\faTree,\faMusic},%
+ %ListeIcones={\faArchway,\faTennis,\faUmbrellaBeach,\faGuitar,\faTree,\faMusic},%
+ ListeIcones={A,B,C,D,E,F},%
Icones=true,%
Centre=true,%
CouleurCentre=lightgray!25,%
@@ -91,7 +97,7 @@
Epaisseur=0.8pt,%
Rotation=0,%
Jokers=true,%
- IconeJoker={\faDice},%
+ IconeJoker={J},%
VersionCourte=false
}
@@ -869,7 +875,8 @@
Radius=8,%
BorderHeight=1.5,%
ListColors={yellow,orange,blue,brown,green,pink},%
- ListIcons={\faArchway,\faTennis,\faUmbrellaBeach,\faGuitar,\faTree,\faMusic},%
+ %ListIcons={\faArchway,\faTennis,\faUmbrellaBeach,\faGuitar,\faTree,\faMusic},%
+ ListIcons={A,B,C,D,E,F},%
Icons=true,%
Center=true,%
ColorCenter=lightgray!25,%
@@ -880,7 +887,8 @@
Thickness=0.8pt,%
Rotation=0,%
Jokers=true,%
- IconJoker={\faDice},%
+ %IconJoker={\faDice},%
+ IconJoker={J},%
ShortVersion=false
}
More information about the tex-live-commits
mailing list.