texlive[76152] Master/texmf-dist: trivialpursuit (26aug25)

commits+karl at tug.org commits+karl at tug.org
Tue Aug 26 22:04:44 CEST 2025


Revision: 76152
          https://tug.org/svn/texlive?view=revision&revision=76152
Author:   karl
Date:     2025-08-26 22:04:44 +0200 (Tue, 26 Aug 2025)
Log Message:
-----------
trivialpursuit (26aug25)

Modified Paths:
--------------
    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/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-26 20:02:49 UTC (rev 76151)
+++ trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-en.tex	2025-08-26 20:04:44 UTC (rev 76152)
@@ -21,11 +21,12 @@
 \hypersetup{pdfborder=0 0 0}
 \usepackage[margin=2cm]{geometry}
 \setlength{\parindent}{0pt}
-\def\TPversion{0.1.6}
-\def\TPdate{04/08/2025}
+\def\TPversion{0.1.7}
+\def\TPdate{25/08/2025}
 \usepackage{tcolorbox}
 \tcbuselibrary{skins,hooks,listingsutf8}
 \usepackage{soul}
+\usepackage{openmoji}
 \sethlcolor{lightgray!25}
 \NewDocumentCommand\MontreCode{ m }{%
 	\hl{\vphantom{\texttt{pf}}\texttt{#1}}%
@@ -138,6 +139,7 @@
 
 \begin{quote}
 \begin{verbatim}
+0.1.7: Cards
 0.1.6: Bugfix + pre-compatibility with fa7
 0.1.5: Bugfix (compatibility with twemoji)
 0.1.4: Bugfix + pre-compatibility with fa6
@@ -149,7 +151,7 @@
 
 \pagebreak
 
-\section{The macro}
+\section{The board macro}
 
 \subsection{General usage}
 
@@ -256,4 +258,104 @@
 	[ListIcons=\categtrivialpursuit,ListColors=\TPColorsB,IconJoker=\faDice]
 \end{tcblisting}
 
+\section{The card macros}
+
+\subsection{Global usage}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
+\CardTrivialRecto{Q1}{Q2}{Q3}{Q4}{Q5}{Q6}{10}
+
+\CardTrivialVerso{A1}{A2}{A3}{A4}{A5}{A6}{256}
+
+\CardTrivialVerso[scale=-0.5,rotate=15]{A1}{A2}{A3}{A4}{A5}{A6}{256}
+\end{tcblisting}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+\CardTrivialRecto%
+	[tikzpicture options]%
+	{Q1}{Q2}{Q3}{Q4}{Q5}{Q6}%
+	{card number}
+	
+\CardTrivialVerso%
+	[tikzpicture options]%
+	{A1}{A2}{A3}{A4}{A5}{A6}%
+	{card number}
+\end{tcblisting}
+
+\subsection{Customization macro}
+
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+\SetParamsCardTrivial{%
+	QA font=...,                        %font of Q/A
+	nb font=...,                        %font of number
+	label font=...,                     %font of categories
+	categ=...,                          %labels of categories
+	border deco color=...,
+	alt deco color=...,
+	color categ A=...,
+	color categ B=...,
+	color categ C=...,
+	color categ D=...,
+	color categ E=...,
+	color categ F=...,
+	alt deco=TF
+}
+\end{tcblisting}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+%logo verso
+\def\intlogocardversotrivial{%
+	\draw[white] (CARD-LOGO) node[rotate=90,text width=3.75cm,font=\Huge\sffamily,align=left] {{\TeX} \\\hfill{\itshape Pursuit}} ;
+}
+\end{tcblisting}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+%logo recto (bg)
+\def\intlogocardrectotrivial{}
+\end{tcblisting}
+
+\subsection{Example}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+%\usepackage{openmoji}
+
+\SetParamsCardTrivial{%
+	border deco color=teal,
+	alt deco color=orange,
+	QA font={\sffamily\fontsize{8pt}{10pt}\selectfont},%
+	label font={\bfseries},
+	categ={No,H,Ma,Oo,A,G}
+}
+\def\intlogocardversotrivial{%
+	\draw (CARD-LOGO) node[rotate=90]
+	{\openmoji[height=2.25cm]{game die}\openmoji[height=2.25cm]{glowing star}} ;
+}
+\def\intlogocardrectotrivial{%
+	\draw (CARD-LOGO) node[opacity=0.05]
+	{\openmoji[height=4.25cm]{green apple}} ;
+}
+\end{tcblisting}
+
+\SetParamsCardTrivial{%
+	border deco color=teal,
+	alt deco color=orange,
+	QA font={\sffamily\fontsize{8pt}{10pt}\selectfont},%
+	label font={\bfseries},
+	categ={No,H,Ma,Oo,A,G}
+}
+\def\intlogocardversotrivial{%
+	\draw (CARD-LOGO) node[rotate=90]
+	{\openmoji[height=2.25cm]{game die}\openmoji[height=2.25cm]{glowing star}} ;
+}
+\def\intlogocardrectotrivial{%
+	\draw (CARD-LOGO) node[opacity=0.05]
+	{\openmoji[height=4.25cm]{green apple}} ;
+}
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
+\CardTrivialRecto{Q1}{Q2}{Q3}{Q4}{Q5}{Q6}{12}
+
+\CardTrivialVerso[scale=-1]{A1}{A2}{A3}{A4}{A5}{A6}{12}
+\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-26 20:02:49 UTC (rev 76151)
+++ trunk/Master/texmf-dist/doc/latex/trivialpursuit/TrivialPursuit-doc-fr.tex	2025-08-26 20:04:44 UTC (rev 76152)
@@ -21,10 +21,11 @@
 \hypersetup{pdfborder=0 0 0}
 \usepackage[margin=2cm]{geometry}
 \setlength{\parindent}{0pt}
-\def\TPversion{0.1.6}
-\def\TPdate{4 août 2025}
+\def\TPversion{0.1.7}
+\def\TPdate{25 août 2025}
 \usepackage{tcolorbox}
 \tcbuselibrary{skins,hooks,listingsutf8}
+\usepackage{openmoji}
 \usepackage{soul}
 \sethlcolor{lightgray!25}
 \NewDocumentCommand\MontreCode{ m }{%
@@ -138,6 +139,7 @@
 
 \begin{quote}
 \begin{verbatim}
+0.1.7 : Ajout de cartes
 0.1.6 : Bugfix + pré-compatibilité avec fa67
 0.1.5 : Bugfix (compatibilité avec twemoji)
 0.1.4 : Bugfix + pré-compatibilité avec fa6
@@ -149,7 +151,7 @@
 
 \pagebreak
 
-\section{La commande}
+\section{La commande pour le plateau}
 
 \subsection{Fonctionnement global}
 
@@ -257,4 +259,117 @@
   [ListeIcones=\categtrivialpursuit,ListeCouleurs=\TPColorsB,IconeJoker=\faDice]
 \end{tcblisting}
 
+\pagebreak
+
+\section{La commande pour les cartes}
+
+\subsection{Fonctionnement global}
+
+Le code se charge de représenter des cartes, recto ou verso, avec :
+
+\begin{itemize}
+	\item des dimensions \textit{fixées} (mais une échelle globale peut être appliquée) ;
+	\item des couleurs, catégories, questions/réponses personnalisables ;
+	\item des logos éventuels
+\end{itemize}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
+\CardTrivialRecto{Q1}{Q2}{Q3}{Q4}{Q5}{Q6}{10}
+
+\CardTrivialVerso{R1}{R2}{R3}{R4}{R5}{R6}{256}
+
+\CardTrivialVerso[scale=-0.5,rotate=15]{R1}{R2}{R3}{R4}{R5}{R6}{256}
+\end{tcblisting}
+
+Les textes (labels + numéro) sont adaptés automatiquement aux éléments graphiques, la taille de la police des Q/R peut-être adaptée le cas échéant.
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+\CardTrivialRecto%
+  [options tikzpicture]%
+  {Q1}{Q2}{Q3}{Q4}{Q5}{Q6}%
+  {numéro de la carte}
+
+\CardTrivialVerso%
+  [options tikzpicture]%
+  {R1}{R2}{R3}{R4}{R5}{R6}%
+  {numéro de la carte}
+\end{tcblisting}
+
+\subsection{Macro(s) de personnalisation}
+
+Il existe une macro auxiliaire qui permet de modifier différents paramètres des cartes.
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+\SetParamsCardTrivial{%
+  QA font=...,                        %police des Q/R
+  num font=...,                       %police du numéro
+  label font=...,                     %police des catégories
+  categ=...,                          %labels des catégories
+  border deco color=...,              %couleur de bordure
+  alt deco color=...,                 %couleur secondaire
+  color categ A=...,                  %couleur catégorie A
+  color categ B=...,                  %couleur catégorie B
+  color categ C=...,                  %couleur catégorie C
+  color categ D=...,                  %couleur catégorie D
+  color categ E=...,                  %couleur catégorie E
+  color categ F=...,                  %couleur catégorie F
+  alt deco=TF                         %booleén pour afficher la bordure
+}
+\end{tcblisting}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+%logo verso
+\def\intlogocardversotrivial{%
+  \draw[white] (CARD-LOGO) node[rotate=90,text width=3.75cm,font=\Huge\sffamily,align=left] {{\TeX} \\\hfill{\itshape Pursuit}} ;
+}
+\end{tcblisting}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+%logo recto (fond)
+\def\intlogocardrectotrivial{}
+\end{tcblisting}
+
+\subsection{Exemple personnalisé}
+
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
+%\usepackage{openmoji}
+
+\SetParamsCardTrivial{%
+  border deco color=teal,
+  alt deco color=orange,
+  QA font={\sffamily\fontsize{8pt}{10pt}\selectfont},%
+  label font={\bfseries},
+  categ={No,H,Ma,Oo,A,G}
+}
+\def\intlogocardversotrivial{%
+  \draw (CARD-LOGO) node[rotate=90]
+  {\openmoji[height=2.25cm]{game die}\openmoji[height=2.25cm]{glowing star}} ;
+}
+\def\intlogocardrectotrivial{%
+  \draw (CARD-LOGO) node[opacity=0.05]
+  {\openmoji[height=4.25cm]{green apple}} ;
+}
+\end{tcblisting}
+
+\SetParamsCardTrivial{%
+  border deco color=teal,
+  alt deco color=orange,
+  QA font={\sffamily\fontsize{8pt}{10pt}\selectfont},%
+  label font={\bfseries},
+  categ={No,H,Ma,Oo,A,G}
+}
+\def\intlogocardversotrivial{%
+  \draw (CARD-LOGO) node[rotate=90]
+  {\openmoji[height=2.25cm]{game die}\openmoji[height=2.25cm]{glowing star}} ;
+}
+\def\intlogocardrectotrivial{%
+  \draw (CARD-LOGO) node[opacity=0.05]
+  {\openmoji[height=4.25cm]{green apple}} ;
+}
+\begin{tcblisting}{colframe=lightgray,colback=lightgray!5}
+\CardTrivialRecto{Q1}{Q2}{Q3}{Q4}{Q5}{Q6}{12}
+
+\CardTrivialVerso[scale=-1]{R1}{R2}{R3}{R4}{R5}{R6}{12}
+\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-26 20:02:49 UTC (rev 76151)
+++ trunk/Master/texmf-dist/tex/latex/trivialpursuit/TrivialPursuit.sty	2025-08-26 20:04:44 UTC (rev 76152)
@@ -4,7 +4,8 @@
 
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{TrivialPursuit}[2025/08/04 0.1.6 Present a Trivial Pursuit Board]
+\ProvidesPackage{TrivialPursuit}[2025/08/25 0.1.7 Present a Trivial Pursuit Board]
+% 0.1.7	Cards
 % 0.1.6	Compatibility with fa5/6/7
 % 0.1.5	Bugfix
 % 0.1.4	Bugfix
@@ -1649,4 +1650,264 @@
 	\end{tikzpicture}%
 }
 
+%====CARTES/CARDS
+\RequirePackage{ifthen}
+
+%colors
+\definecolor{trivpursblueborder}{HTML}{080271}
+\definecolor{trivpursgolddeco}{HTML}{ffa80c}
+\definecolor{trivpursbluecheese}{HTML}{38b6ff}
+\definecolor{trivpurspinkcheese}{HTML}{ea31d2}
+\definecolor{trivpursyellowcheese}{HTML}{ffe500}
+\definecolor{trivpursbrowncheese}{HTML}{74562c}
+\definecolor{trivpursgreencheese}{HTML}{03a10e}
+\definecolor{trivpursorangecheese}{HTML}{ff8a00}
+%categ / fonts
+\def\intfontqrcardtrivial{\fontsize{8pt}{10pt}\selectfont}
+\def\intfontnumbercardtrivial{\bfseries\sffamily\tiny}
+\def\intfontlabelcardtrivial{}
+\def\intcategcardtrivial{A,B,C,D,E,F}
+%styles
+\tikzset{trivial main deco/.style={trivpursblueborder}}
+\tikzset{trivial alt deco/.style={trivpursgolddeco}}
+\tikzset{trivial categ A/.style={trivpursbluecheese}}
+\tikzset{trivial categ B/.style={trivpurspinkcheese}}
+\tikzset{trivial categ C/.style={trivpursyellowcheese}}
+\tikzset{trivial categ D/.style={trivpursbrowncheese}}
+\tikzset{trivial categ E/.style={trivpursgreencheese}}
+\tikzset{trivial categ F/.style={trivpursorangecheese}}
+\tikzset{trivial fill categ A/.style={draw=black,fill=trivpursbluecheese}}
+\tikzset{trivial fill categ B/.style={draw=black,fill=trivpurspinkcheese}}
+\tikzset{trivial fill categ C/.style={draw=black,fill=trivpursyellowcheese}}
+\tikzset{trivial fill categ D/.style={draw=black,fill=trivpursbrowncheese}}
+\tikzset{trivial fill categ E/.style={draw=black,fill=trivpursgreencheese}}
+\tikzset{trivial fill categ F/.style={draw=black,fill=trivpursorangecheese}}
+\tikzset{trivial questions/.style={right,inner sep=0pt,text width=5.85cm,align=left,font=\intfontqrcardtrivial}}
+\tikzset{trivial responses/.style={right,inner sep=0pt,text width=3.5cm,align=left,font=\intfontqrcardtrivial}}
+\tikzset{trivial labels/.style={inner sep=0pt,text depth=0pt}}
+
+%customize macro
+\defKV[paramcardstrivial]{%
+	QA font=\def\intfontqrcardtrivial{#1},%
+	num font=\def\intfontnumbercardtrivial{#1},%
+	label font=\def\intfontlabelcardtrivial{#1},%
+	categ=\def\intcategcardtrivial{#1},%
+	border deco color=\tikzset{trivial main deco/.style={#1}},%
+	alt deco color=\tikzset{trivial alt deco/.style={#1}},%
+	color categ A=\tikzset{trivial categ A/.style={#1},trivial fill categ A/.style={draw=black,fill=#1}},%
+	color categ B=\tikzset{trivial categ B/.style={#1},trivial fill categ B/.style={draw=black,fill=#1}},%
+	color categ C=\tikzset{trivial categ C/.style={#1},trivial fill categ C/.style={draw=black,fill=#1}},%
+	color categ D=\tikzset{trivial categ D/.style={#1},trivial fill categ D/.style={draw=black,fill=#1}},%
+	color categ E=\tikzset{trivial categ E/.style={#1},trivial fill categ E/.style={draw=black,fill=#1}},%
+	color categ F=\tikzset{trivial categ F/.style={#1},trivial fill categ F/.style={draw=black,fill=#1}}
+}
+\setKVdefault[paramcardstrivial]{%
+	QA font=\fontsize{8pt}{10pt}\selectfont,%
+	num font=\bfseries\sffamily\tiny,%
+	label font={},%
+	categ={A,B,C,D,E,F},%
+	border deco color=trivpursblueborder,%
+	alt deco color=trivpursgolddeco,
+	color categ A=trivpursbluecheese,%
+	color categ B=trivpurspinkcheese,%
+	color categ C=trivpursyellowcheese,%
+	color categ D=trivpursbrowncheese,%
+	color categ E=trivpursgreencheese,%
+	color categ F=trivpursorangecheese,%
+	alt deco=true
+}
+
+\NewDocumentCommand\SetParamsCardTrivial{m}{%
+	\restoreKV[paramcardstrivial]%
+	\setKV[paramcardstrivial]{#1}
+}
+%internal macros for design
+\newcommand\intdecocornercardtrivial[3]{%
+	\begin{scope}[trivial alt deco,shift={#1},xscale=#2,yscale=#3]
+		\draw[line width=\fpeval{\mycardscale*0.5}mm] (-1mm,-1mm) rectangle (2mm,2mm) ;
+		\draw[line width=\fpeval{\mycardscale*0.25}mm] (0.5cm,{-1.25mm+0.125mm}) rectangle ++ (-0.15cm,0.15cm) ;
+		\draw[line width=\fpeval{\mycardscale*0.25}mm] ({-1.25mm+0.125mm},0.5cm) rectangle ++ (0.15cm,-0.15cm) ;
+		\draw[line width=\fpeval{\mycardscale*0.25}mm] ({-1.25mm+0.125mm},0.5cm) -| (0.5cm,{-\mycardscale*1.25mm+\mycardscale*0.125mm}) ;
+		\begin{scope}
+			\clip (-1.25mm,-1.25mm) -- (2.75cm,-1.25mm) -- (1.5cm,1.5cm) -- (-1.25mm,2.75cm) -- cycle ;
+			\draw[line width=\fpeval{\mycardscale*0.5}mm] (2mm,2mm) --++ (4cm,0) ;
+			\draw[line width=\fpeval{\mycardscale*0.5}mm] (2mm,2mm) --++ (0,4cm) ;
+			\draw[line width=\fpeval{\mycardscale*0.25}mm] (0.8cm,{-1.25mm+0.125mm}) --++ (4cm,0) ;
+			\draw[line width=\fpeval{\mycardscale*0.25}mm] ({-1.25mm+0.125mm},0.8cm) --++ (0,4cm) ;
+			\draw[line width=\fpeval{\mycardscale*0.4}mm] ($(86:0.8cm)+(0,4cm)$) -- (86:0.8cm) arc (86:4:0.8cm) --++ (4cm,0) ;
+		\end{scope}
+	\end{scope}
+}
+\newcommand\intdecocardtrivial{%
+	%gold corner bl
+	\intdecocornercardtrivial{(0,0)}{1}{1}
+	%gold corner tl
+	\intdecocornercardtrivial{(0,5.5cm)}{1}{-1}
+	%gold corner tr
+	\intdecocornercardtrivial{(8.6cm,5.5cm)}{-1}{-1}
+	%gold corner br
+	\intdecocornercardtrivial{(8.6cm,0cm)}{-1}{1}
+}
+
+\newlength\intxradiuscardtrivial
+\newlength\intyradiuscardtrivial
+\setlength\intxradiuscardtrivial{0.55cm}
+\setlength\intyradiuscardtrivial{0.325cm}
+
+\newlength\mytp at var@width at of
+\newlength\mytp at var@height at of
+\newlength\mtpy at fixed@width at of
+\newsavebox\tmptp at box@h
+\newsavebox\tmptp at box@stretch at h
+
+\newcommand\intscalelabelcardtrivial[1]{%
+	\setlength\mtpy at fixed@width at of{0.7cm}%
+	\savebox\tmptp at box@h{\resizebox*{!}{0.45cm}{\intfontlabelcardtrivial #1}}%initial box
+	\settowidth\mytp at var@width at of{\usebox{\tmptp at box@h}}%
+	\ifthenelse{\mtpy at fixed@width at of > \mytp at var@width at of}%
+		{\usebox{\tmptp at box@h}}%
+		{\resizebox*{\mtpy at fixed@width at of}{0.45cm}{\intfontlabelcardtrivial #1}}%
+}
+
+\newcommand\intscalenbcardtrivial[1]{%
+	\setlength\mtpy at fixed@width at of{2.25mm}%
+	\savebox\tmptp at box@h{\intfontnumbercardtrivial #1}%initial box
+	\settowidth\mytp at var@width at of{\usebox{\tmptp at box@h}}%
+	\settoheight\mytp at var@height at of{\usebox{\tmptp at box@h}}%
+	\savebox\tmptp at box@stretch at h{\resizebox*{\mtpy at fixed@width at of}{\mytp at var@height at of}{\bfseries\sffamily\tiny #1}}%stretched box
+	\ifthenelse{\mtpy at fixed@width at of > \mytp at var@width at of}%
+		{\usebox{\tmptp at box@h}}%
+		{\usebox{\tmptp at box@stretch at h}}%
+}
+
+\newcommand\intlabelcardtrivialrecto{%
+	\coordinate (ICON-Q1) at (1.35cm,{5.5cm-0.4cm-0.35cm}) ;%4.75cm
+	\coordinate (ICON-Q2) at (1.35cm,{5.5cm-0.4cm-0.35cm-1*0.8cm}) ;
+	\coordinate (ICON-Q3) at (1.35cm,{5.5cm-0.4cm-0.35cm-2*0.8cm}) ;
+	\coordinate (ICON-Q4) at (1.35cm,{5.5cm-0.4cm-0.35cm-3*0.8cm}) ;
+	\coordinate (ICON-Q5) at (1.35cm,{5.5cm-0.4cm-0.35cm-4*0.8cm}) ;
+	\coordinate (ICON-Q6) at (1.35cm,{0cm+0.4cm+0.35cm}) ;%0.75cm
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ A] (ICON-Q1) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ B] (ICON-Q2) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ C] (ICON-Q3) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ D] (ICON-Q4) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ E] (ICON-Q5) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ F] (ICON-Q6) circle[x radius=0.55cm,y radius=0.325cm] ;
+	%categ
+	\foreach \i [count=\ci] in \intcategcardtrivial {%
+		\begin{scope}
+			\clip (ICON-Q\ci) circle[x radius=0.55cm,y radius=0.325cm] ;
+			\draw (ICON-Q\ci) node[trivial labels] {\intscalelabelcardtrivial{\i}} ;
+		\end{scope}
+	}
+	\coordinate (QUEST-Q1) at ([xshift=0.75cm]ICON-Q1) ;
+	\coordinate (QUEST-Q2) at ([xshift=0.75cm]ICON-Q2) ;
+	\coordinate (QUEST-Q3) at ([xshift=0.75cm]ICON-Q3) ;
+	\coordinate (QUEST-Q4) at ([xshift=0.75cm]ICON-Q4) ;
+	\coordinate (QUEST-Q5) at ([xshift=0.75cm]ICON-Q5) ;
+	\coordinate (QUEST-Q6) at ([xshift=0.75cm]ICON-Q6) ;
+	\coordinate (CARD-LOGO) at (4.3cm,2.75cm) ;
+}
+
+\@ifpackageloaded{frcursive}%
+	{%
+		\def\intlogocardversotrivial{%
+			\draw[white] (CARD-LOGO) node[rotate=90,text width=3.75cm,font=\LARGE,align=left] {\textcursive{Trivial} \\ \hspace*{0.5cm}\textcursive{pour suites}} ;
+			\draw[white] (2.75cm,3.5cm) node[rotate=90] {(réelles)} ;
+		}
+	}%
+	{%
+		\def\intlogocardversotrivial{%
+			\draw[white] (CARD-LOGO) node[rotate=90,text width=3.75cm,font=\Huge\sffamily,align=left] {{\TeX} \\\hfill{\itshape Pursuit}} ;
+		}
+	}%
+
+\def\intlogocardrectotrivial{}
+
+\newcommand\intlabelcardtrivialverso{%
+	\coordinate (ICON-Q1) at (3.95cm,{5.5cm-0.4cm-0.35cm}) ;%4.75cm
+	\coordinate (ICON-Q2) at (3.95cm,{5.5cm-0.4cm-0.35cm-1*0.8cm}) ;
+	\coordinate (ICON-Q3) at (3.95cm,{5.5cm-0.4cm-0.35cm-2*0.8cm}) ;
+	\coordinate (ICON-Q4) at (3.95cm,{5.5cm-0.4cm-0.35cm-3*0.8cm}) ;
+	\coordinate (ICON-Q5) at (3.95cm,{5.5cm-0.4cm-0.35cm-4*0.8cm}) ;
+	\coordinate (ICON-Q6) at (3.95cm,{0cm+0.4cm+0.35cm}) ;%0.75cm
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ A] (ICON-Q1) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ B] (ICON-Q2) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ C] (ICON-Q3) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ D] (ICON-Q4) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ E] (ICON-Q5) circle[x radius=0.55cm,y radius=0.325cm] ;
+	\draw[line width=\fpeval{\mycardscale*0.25}mm,trivial fill categ F] (ICON-Q6) circle[x radius=0.55cm,y radius=0.325cm] ;
+	%categ
+	\foreach \i [count=\ci] in \intcategcardtrivial {%
+		\begin{scope}
+			\clip (ICON-Q\ci) circle[x radius=0.55cm,y radius=0.325cm] ;
+			\draw (ICON-Q\ci) node[trivial labels] {\intscalelabelcardtrivial{\i}} ;
+		\end{scope}
+	}
+	\coordinate (QUEST-Q1) at ([xshift=0.75cm]ICON-Q1) ;
+	\coordinate (QUEST-Q2) at ([xshift=0.75cm]ICON-Q2) ;
+	\coordinate (QUEST-Q3) at ([xshift=0.75cm]ICON-Q3) ;
+	\coordinate (QUEST-Q4) at ([xshift=0.75cm]ICON-Q4) ;
+	\coordinate (QUEST-Q5) at ([xshift=0.75cm]ICON-Q5) ;
+	\coordinate (QUEST-Q6) at ([xshift=0.75cm]ICON-Q6) ;
+	\coordinate (CARD-LOGO) at (1.6cm,2.75cm) ;
+}
+
+\NewDocumentCommand\CardTrivialRecto{O{}mmmmmmm}{%
+	\begin{tikzpicture}[#1,transform shape]
+		\pgfgettransformentries{\mya}{\myb}{\myc}{\myd}{\mys}{\myt}%
+		\xdef\mycardscale{\fpeval{abs(\mya)}}%
+		%blue border
+		\draw[trivial main deco,line width=\fpeval{\mycardscale*2.5}mm] (0,0) rectangle (8.6cm,5.5cm) ;
+		%decorations
+		\ifboolKV[paramcardstrivial]{alt deco}%
+			{%
+				\intdecocardtrivial
+			}%
+			{}%
+		%labels / nodes
+		\intlabelcardtrivialrecto
+		%logo
+		\intlogocardrectotrivial
+		%questions
+		\draw (QUEST-Q1) node[trivial questions] {#2} ;
+		\draw (QUEST-Q2) node[trivial questions] {#3} ;
+		\draw (QUEST-Q3) node[trivial questions] {#4} ;
+		\draw (QUEST-Q4) node[trivial questions] {#5} ;
+		\draw (QUEST-Q5) node[trivial questions] {#6} ;
+		\draw (QUEST-Q6) node[trivial questions] {#7} ;
+		%numéro
+		\draw ({8.6cm-0.35cm},{0.35cm}) node[inner sep=0pt] {\intscalenbcardtrivial{#8}} ;
+	\end{tikzpicture}%
+}
+
+\NewDocumentCommand\CardTrivialVerso{O{}mmmmmmm}{%
+	\begin{tikzpicture}[#1,transform shape]
+		\pgfgettransformentries{\mya}{\myb}{\myc}{\myd}{\mys}{\myt}%
+		\xdef\mycardscale{\fpeval{abs(\mya)}}%
+		%blue border
+		\draw[trivial main deco,line width=\fpeval{\mycardscale*2.5}mm] (0,0) rectangle (8.6cm,5.5cm) ;
+		\filldraw[trivial main deco,line width=\fpeval{\mycardscale*2.5}mm] (0,0) rectangle++ (3cm,5.5cm) ;
+		%decorations
+		\ifboolKV[paramcardstrivial]{alt deco}%
+			{%
+				\intdecocardtrivial
+			}%
+			{}%
+		%labels / nodes
+		\intlabelcardtrivialverso
+		%responses
+		\draw (QUEST-Q1) node[trivial responses] {#2} ;
+		\draw (QUEST-Q2) node[trivial responses] {#3} ;
+		\draw (QUEST-Q3) node[trivial responses] {#4} ;
+		\draw (QUEST-Q4) node[trivial responses] {#5} ;
+		\draw (QUEST-Q5) node[trivial responses] {#6} ;
+		\draw (QUEST-Q6) node[trivial responses] {#7} ;
+		%logo
+		\intlogocardversotrivial
+		%numéro
+		\draw ({8.6cm-0.35cm},{0.35cm}) node[inner sep=0pt] {\intscalenbcardtrivial{#8}} ;
+	\end{tikzpicture}%
+}
+
 \endinput
\ No newline at end of file



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