summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-08 03:01:28 +0000
committerNorbert Preining <norbert@preining.info>2023-01-08 03:01:28 +0000
commit7d5553601ccc6f3feed4f9563a6270739bd4da54 (patch)
tree5439910db3631d3200f0f7df70e3d8707ab146cf /graphics
parentc946b2e792715f6030486d5214be1df081de37a8 (diff)
CTAN sync 202301080301
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.pdfbin404455 -> 490580 bytes
-rw-r--r--graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.tex31
-rw-r--r--graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.pdfbin407403 -> 487997 bytes
-rw-r--r--graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.tex27
-rw-r--r--graphics/pgf/contrib/scrabble/tex/Scrabble.sty15
5 files changed, 38 insertions, 35 deletions
diff --git a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.pdf b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.pdf
index 86e9cf4182..10a44a45d7 100644
--- a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.pdf
+++ b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.pdf
Binary files differ
diff --git a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.tex b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.tex
index f4a24474f3..1bde6eb244 100644
--- a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.tex
+++ b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-en.tex
@@ -7,10 +7,10 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{Scrabble}
-\usepackage[upright]{fourier}
-\usepackage[scaled=0.875]{helvet}
-\renewcommand\ttdefault{lmtt}
-\usepackage[scaled=0.875]{cabin}
+%\usepackage[upright]{fourier}
+%\usepackage[scaled=0.875]{helvet}
+%\renewcommand\ttdefault{lmtt}
+%\usepackage[scaled=0.875]{cabin}
\usepackage{amsmath,amssymb}
\usepackage{fontawesome5}
\usepackage{enumitem}
@@ -31,8 +31,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.1}
-\def\TPdate{06/01/2023}
+\def\TPversion{0.1.2}
+\def\TPdate{07/01/2023}
\usepackage[most]{tcolorbox}
\tcbuselibrary{minted}
@@ -67,7 +67,7 @@
\begin{tabular}{c}
{\Huge \texttt{Scrabble [en]}}\\
\\
- {\LARGE A bord of Scrabble,} \\
+ {\LARGE A board of Scrabble,} \\
\\
{\LARGE with words or not.} \\
\\
@@ -102,7 +102,7 @@
\smallskip
-{$\blacktriangleright$~~Idas from \url{https://tex.stackexchange.com/questions/194780/tikz-drawing-a-rectangle-with-spikes-on-borders}}
+{$\blacktriangleright$~~Ideas from \url{https://tex.stackexchange.com/questions/194780/tikz-drawing-a-rectangle-with-spikes-on-borders}}
\vspace{0.5cm}
@@ -152,7 +152,9 @@
\part*{History}
-\verb|v0.1.1|~:~~~~Option \textsf{[fr]} pour french commands
+\verb|v0.1.2|~:~~~~Key \textsf{<ScaleLabels>} to modify scale of the cell's names
+
+\verb|v0.1.1|~:~~~~Option \textsf{[fr]} for french commands
\verb|v0.1 |~:~~~~Initial version
@@ -185,9 +187,7 @@ It loads the following packages and libraries :
\begin{itemize}
\item \texttt{tikz} with \Cle{calc} with the tikzlibraries \Cle{calc} and \Cle{shapes.geometric} ;
\item \texttt{pgf} and \texttt{pgffor} ;
- \item \texttt{xstring} ;
- \item \texttt{xparse} ;
- \item \texttt{simplekv}.
+ \item \texttt{xstring}, \texttt{xparse} and \texttt{simplekv}.
\end{itemize}
\subsection{The package itself}
@@ -236,16 +236,15 @@ The second argument, \textit{optional}, between \texttt{[...]} give the \Cle{key
\begin{itemize}
\item \Cle{Scale} for the display (the initial unit is 1~cm) ; \hfill~default : \Cle{1}
+ \item \Cle{ScaleLabels} for the cell's names ; \hfill~défaut : \Cle{1}
\item the boolean \Cle{Border} pour print a border outside the board ; \hfill~default : \Cle{true}
\item the boolean \Cle{Labels} to print \textit{names} of the special cells ;\hfill~defalut : \Cle{true}
\item the boolean \Cle{Help} pour print numbers to reperate th cells ;\hfill~default : \Cle{false}
\end{itemize}
\begin{PresentationCode}{}
-%board without cell's names
-\ScrabbleBoard[Labels=false,Scale=0.55]\\
-%board in spanisch
-\ScrabbleBoard<SP>[Scale=0.55,Cadre=false]
+\ScrabbleBoard[Labels=false,Scale=0.55]\\ %board without cell's names
+\ScrabbleBoard<SP>[Scale=0.55,Cadre=false] %board in spanisch
\end{PresentationCode}
\newpage
diff --git a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.pdf b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.pdf
index 21e1001763..3ea08b4c26 100644
--- a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.pdf
+++ b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.pdf
Binary files differ
diff --git a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.tex b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.tex
index 2d07473c8c..a7ee94ba36 100644
--- a/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.tex
+++ b/graphics/pgf/contrib/scrabble/doc/Scrabble-doc-fr.tex
@@ -7,10 +7,10 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[fr]{Scrabble}
-\usepackage[upright]{fourier}
-\usepackage[scaled=0.875]{helvet}
-\renewcommand\ttdefault{lmtt}
-\usepackage[scaled=0.875]{cabin}
+%\usepackage[upright]{fourier}
+%\usepackage[scaled=0.875]{helvet}
+%\renewcommand\ttdefault{lmtt}
+%\usepackage[scaled=0.875]{cabin}
\usepackage{amsmath,amssymb}
\usepackage{fontawesome5}
\usepackage{enumitem}
@@ -31,8 +31,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.1}
-\def\TPdate{6 Janvier 2023}
+\def\TPversion{0.1.2}
+\def\TPdate{7 Janvier 2023}
\usepackage[most]{tcolorbox}
\tcbuselibrary{minted}
@@ -152,6 +152,8 @@
\part*{Historique}
+\verb|v0.1.2|~:~~~~Clé \textsf{<EchelleLabels>} pour modifier l'échelle des noms des cases
+
\verb|v0.1.1|~:~~~~Option \textsf{[fr]} pour franciser les commandes
\verb|v0.1 |~:~~~~Version initiale
@@ -185,14 +187,12 @@ Il charge les packages et librairies suivantes :
\begin{itemize}
\item \texttt{tikz} avec les librairies \Cle{calc} et \Cle{shapes.geometric} ;
\item \texttt{pgf} et \texttt{pgffor} ;
- \item \texttt{xstring} ;
- \item \texttt{xparse} ;
- \item \texttt{simplekv}.
+ \item \texttt{xstring}, \texttt{xparse} et \texttt{simplekv}.
\end{itemize}
\subsection{\og Philosophie \fg{} du package}
-L'idée est de proposer, grâce à des commandes en \TikZ, des commandes ou environnements pour présenter un plateau de Scrabble\texttrademark{} :
+L'idée est de proposer, grâce à des commandes en \TikZ, des \textsf{commandes} ou \textsf{environnements} pour présenter un plateau de Scrabble\texttrademark{} :
\begin{itemize}
\item \textit{autonome} ;
@@ -236,16 +236,15 @@ Le second argument, \textit{optionnel}, entre \texttt{[...]} propose les \Cle{cl
\begin{itemize}
\item \Cle{Echelle} pour spécifier l'échelle d'affichage (l'unité de base étant 1~cm) ; \hfill~défaut : \Cle{1}
+ \item \Cle{Echellelabels} pour spécifier l'échelle d'affichage des labels ; \hfill~défaut : \Cle{1}
\item le booléen \Cle{Cadre} pour afficher un cadre autour du plateau ; \hfill~défaut : \Cle{true}
\item le booléen \Cle{Labels} pour afficher le \textit{nom} des cases ;\hfill~défaut : \Cle{true}
\item le booléen \Cle{Aide} pour afficher une aide pour repérer les cases ;\hfill~défaut : \Cle{false}
\end{itemize}
\begin{PresentationCode}{}
-%plateau sans le nom des cases
-\PlateauScrabble[Labels=false,Echelle=0.55]\\
-%plateau en anglais
-\PlateauScrabble<EN>[Echelle=0.55,Cadre=false]
+\PlateauScrabble[Labels=false,Echelle=0.55]\\ %plateau sans le nom des cases
+\PlateauScrabble<EN>[Echelle=0.55,Cadre=false] %plateau en anglais
\end{PresentationCode}
\newpage
diff --git a/graphics/pgf/contrib/scrabble/tex/Scrabble.sty b/graphics/pgf/contrib/scrabble/tex/Scrabble.sty
index 23ccca5fb2..2777a1ac6e 100644
--- a/graphics/pgf/contrib/scrabble/tex/Scrabble.sty
+++ b/graphics/pgf/contrib/scrabble/tex/Scrabble.sty
@@ -4,7 +4,8 @@
% Inspiration : Mark Wibrow in https://tex.stackexchange.com/questions/194780/tikz-drawing-a-rectangle-with-spikes-on-borders
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{Scrabble}[2023/01/06 v0.1.1 Scrabble]
+\ProvidesPackage{Scrabble}[2023/01/07 v0.1.2 Scrabble]
+% 0.1.2 Clé <EchelleLabels> pour les labels des cases
% 0.1.1 Option [fr] pour franciser les commandes
% 0.1 Version initiale
@@ -73,7 +74,7 @@
%idées de https://tex.stackexchange.com/questions/194780/tikz-drawing-a-rectangle-with-spikes-on-borders
\tikzset{
scorelettre/.style={
- font=\sffamily\bfseries\tiny,align=center,scale=0.95,draw=none,fill=none
+ font=\sffamily\bfseries\tiny,align=center,scale=\fpeval{\PLSCRBBLEechelleLabel*0.8},draw=none,fill=none
},
pics/.cd,
pointes/.style args={#1#2#3}{
@@ -144,10 +145,12 @@
%clés
\defKV[PLSCRABBLETIKZ]{%
- Echelle=\xdef\PLSCRBBLEechelle{#1}
+ Echelle=\xdef\PLSCRBBLEechelle{#1},%
+ EchelleLabels=\xdef\PLSCRBBLEechelleLabel{#1}
}
\setKVdefault[PLSCRABBLETIKZ]{%
Echelle=1,%
+ EchelleLabels=1,%
Cadre=true,%
Labels=true,%
Aide=false
@@ -253,7 +256,7 @@
%idées de https://tex.stackexchange.com/questions/194780/tikz-drawing-a-rectangle-with-spikes-on-borders
\tikzset{
scorelettre/.style={
- font=\sffamily\bfseries\tiny,align=center,scale=0.95,draw=none,fill=none
+ font=\sffamily\bfseries\tiny,align=center,scale=\fpeval{\PLSCRBBLEechelleLabel*0.8},draw=none,fill=none
},
pics/.cd,
pointes/.style args={#1#2#3}{
@@ -324,10 +327,12 @@
%clés
\defKV[PLSCRABBLETIKZ]{%
- Scale=\xdef\PLSCRBBLEechelle{#1}
+ Scale=\xdef\PLSCRBBLEechelle{#1},%
+ ScaleLabels=\xdef\PLSCRBBLEechelleLabel{#1}
}
\setKVdefault[PLSCRABBLETIKZ]{%
Scale=1,%
+ ScaleLabels=1,%
Border=true,%
Labels=true,%
Help=false