texlive[72283] Master/texmf-dist: pas-tableur (14sep24)

commits+karl at tug.org commits+karl at tug.org
Sat Sep 14 21:25:12 CEST 2024


Revision: 72283
          https://tug.org/svn/texlive?view=revision&revision=72283
Author:   karl
Date:     2024-09-14 21:25:12 +0200 (Sat, 14 Sep 2024)
Log Message:
-----------
pas-tableur (14sep24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex
    trunk/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/pas-tableur/README.txt

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/pas-tableur/README

Deleted: trunk/Master/texmf-dist/doc/latex/pas-tableur/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-tableur/README	2024-09-14 19:24:58 UTC (rev 72282)
+++ trunk/Master/texmf-dist/doc/latex/pas-tableur/README	2024-09-14 19:25:12 UTC (rev 72283)
@@ -1,37 +0,0 @@
-********* README file for pas-tableur ******************
-********************* ENGLISH *****************************
-
-This package uses TikZ to imitate spreadsheet.
-
-Licence
--------
-
-This program can be redistributed and/or modified under the terms
-of the LaTeX Project Public License Distributed from CTAN
-archives in directory macros/latex/base/lppl.txt. 
-
-Documentation
--------------
-
-The documentation of the package is under the 
-directory /doc/ in french language.
-
-Thanks to use pas-tableur.sty.
-
-********* Fichier README pour pas-tableur ******************
-********************** FRANCAIS *******************************
-
-Cette extension utilise TikZ pour imiter les feuilles de calculs sous tableur.
-
-Licence
--------
-
-L'extension peut être redistribuée et/ou modifiée sous les termes 
-de la licence LaTeX Project Public (voir macros/latex/base/lppl.txt).
-
-Documentation
--------------
-
-La documentation de l'extension se trouve dans le répertoire /doc/.
-
-Merci d'utiliser pas-tableur.sty.

Added: trunk/Master/texmf-dist/doc/latex/pas-tableur/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-tableur/README.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pas-tableur/README.txt	2024-09-14 19:25:12 UTC (rev 72283)
@@ -0,0 +1,40 @@
+************* README file for pas-tableur **********************
+********************* ENGLISH *****************************
+
+This package uses TikZ to imitate spreadsheets.
+
+Licence
+-------
+
+This program can be redistributed and/or modified under the terms
+of the LaTeX Project Public License Distributed from CTAN
+archives in directory macros/latex/base/lppl.txt. 
+
+Documentation
+-------------
+
+The documentation of the package is in the ZIP file or under the 
+directory /doc/ in french language.
+If you don't find it, go to the URL http://get-software.net/macros/latex/contrib/pas-tableur/doc/pas-tableur.pdf
+
+Thanks to use pas-tableur.sty.
+
+************* Fichier README pour pas-tableur **********************
+********************** FRANCAIS *******************************
+
+Cette extension utilise TikZ pour imiter des tableurs.
+
+Licence
+-------
+
+L'extension peut être redistribuée et/ou modifiée sous les termes 
+de la licence LaTeX Project Public (voir macros/latex/base/lppl.txt).
+
+Documentation
+-------------
+
+La documentation de l'extension se trouve dans le fichier ZIP ou
+dans dans le répertoire /doc/.
+Si vous ne trouvez pas cette documentation, allez sur la page http://get-software.net/macros/latex/contrib/pas-tableur/doc/pas-tableur.pdf
+
+Merci d'utiliser pas-tableur.sty.


Property changes on: trunk/Master/texmf-dist/doc/latex/pas-tableur/README.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex	2024-09-14 19:24:58 UTC (rev 72282)
+++ trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex	2024-09-14 19:25:12 UTC (rev 72283)
@@ -31,13 +31,15 @@
 \begin{center}
 \begin{tcolorbox}[head]
 {\bfseries\LARGE Documentation \texttt{pas-tableur} }\\[3mm]
-{\large Version 2.05 -- \today}
+{\large Version 2.06 -- \today}
 \end{tcolorbox}
 
 {\large 
 \href{http://www.mathweb.fr/contact.html}{St\'ephane Pasquet}}
 
-{\small\emph{Thanks to Susumu Tanimura for his contribution th the improvement of this package}}
+{\small\emph{Thanks to \textbf{Susumu Tanimura} for his contribution to the improvement of this package}}
+
+{\small\emph{Thanks to \textbf{Emiel van Miltenburg}  for his contribution to the improvement of this package with the \textbackslash multimultiSelect macro.}}
 \end{center}
 
 \begin{tcolorbox}[toc]
@@ -372,7 +374,34 @@
 \end{tikzpicture}
 \end{tcblisting}
 
+\subsection{\textbackslash multimultiSelec : pour visualiser l'\'etirement}
 
+\begin{tcblisting}{listing}
+\sffamily
+\begin{tikzpicture}
+\begin{scope}[shift={(0,0)}]
+\tableur*[7]{A/1cm, B/1cm}
+\celtxt[width=1cm,align=right]{A}{1}{1}
+\celtxt[width=1cm,align=right]{A}{2}{2}
+\celtxt[width=1cm,align=right]{A}{3}{3}
+\multimultiSelec{A-1}{A-3}{A-6}
+\end{scope}
+
+\node at (2,-2) {\Large $\Rightarrow$};
+ 
+\begin{scope}[shift={(4,0)}]
+\tableur*[7]{A/1cm, B/1cm}
+\celtxt[width=1cm,align=right]{A}{1}{1}
+\celtxt[width=1cm,align=right]{A}{2}{2}
+\celtxt[width=1cm,align=right]{A}{3}{3}
+\celtxt[width=1cm,align=right]{A}{4}{4}
+\celtxt[width=1cm,align=right]{A}{5}{5}
+\celtxt[width=1cm,align=right]{A}{6}{6}
+\end{scope}
+\end{tikzpicture}
+\end{tcblisting}
+
+
 \subsection{Les couleurs par d\'efaut}
 
 \begin{tcblisting}{codeTEX}
@@ -411,6 +440,8 @@
 \hline
 \texttt{\textbackslash multiSelec\{A-1\}\{C-2\}} & Simule la s\'election des cellules allant de A1 \`a C2.\\
 \hline
+\texttt{\textbackslash multimultiSelec\{A-1\}\{A-3\}\{A-6\}} & Simule l'étirement des cellules allant de A1 \`a A3 jusqu'à A6.\\
+\hline
 \texttt{\{\textbackslash helvbx A1\}} & Affiche : \helvbx{A1}.\\
 \hline
 \end{tabularx}

Modified: trunk/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty	2024-09-14 19:24:58 UTC (rev 72282)
+++ trunk/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty	2024-09-14 19:25:12 UTC (rev 72283)
@@ -1,6 +1,6 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                         %
-%        pas-tableur.sty  v2.05     encodage : UTF8       %
+%        pas-tableur.sty  v2.06     encodage : UTF8       %
 %                                                         %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                         %
@@ -8,8 +8,8 @@
 %                                                         %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % 
-\def\fileversion{2.04}
-\def\filedate{2023/04/16}
+\def\fileversion{2.06}
+\def\filedate{2024/09/14}
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesClass{pas-tableur}[%
   \filedate\space v\fileversion\space
@@ -102,7 +102,14 @@
 %
 %==> Macro etoilee : \tableur*{A/<l1>,B/<l2>,...}. Tableur avec colonnes de largeurs differentes
 %
-\newcommand{\tableur at star}[2][1] 
+% Modifiée dans la version 2.06 sur la suggestion de Emiel van Miltenburg
+
+\newcommand{\tableur at star}[2][1]
+	{
+		\IfSubStr{#2}{,}{\tableur at star@columns[#1]{#2}}{\tableur at star@onecolumn[#1]{#2}}
+	}
+	
+\newcommand{\tableur at star@columns}[2][1] 
 	{%
 		\xdef\list at of@col{#2}%
 		% Placement de la premiere cellule en-tête
@@ -139,7 +146,39 @@
 					}%
 				}%
 		\fi%
-	} % --> Fin de \tableur*
+	} 
+	
+\newcommand{\tableur at star@onecolumn}[2][1] 
+	{%
+		% Placement de la premiere cellule en-tête
+			\StrBefore{#2}{/}[\first at name]  % Récupère la partie avant "/"
+			\StrBehind{#2}{/}[\first at width] % Récupère la partie après "/"
+			\pastab at draw@cell{\first at width}{\first at name}{0}{}{\first at name}
+		% Placement des en-têtes de lignes
+			\pastab at draw@cell{\numline at width}{numline1}{2}{\first at name.south west}{1}
+			\ifnum#1>1%
+				\foreach \num at line [remember=\num at line as \lastnum (initially 1)] in {2,...,#1}
+				{%
+					\pastab at draw@cell{\numline at width}{numline\num at line}{3}{numline\lastnum.south east}{\num at line}%
+				}%
+			\fi%
+		% Trace de la grille
+			\foreach \name/\w in {#2}
+			{%
+				\pastableur at grid{\w}{\name}{1}{\name.south}%
+			}%
+			\ifnum#1>1%
+				\foreach\numline [remember=\numline as \lastnumline (initially 1)] in {2,...,#1}
+				{%
+					\foreach \name/\w in {#2}
+					{%
+						\pastableur at grid{\w}{\name}{\numline}{cell\name-\lastnumline.south}%
+					}%
+				}%
+		\fi%
+	} 
+	
+% --> Fin de \tableur*
 %	
 %==> Macro non etoilee : \tableur{A,B,C,...} ou \tableur{A-C}
 %	
@@ -302,7 +341,6 @@
 \newcommand*\multiSelec[2]
 	{%
 		\fill[blueSelec,opacity=0.5] ($(cell#1.north west)+(0.25pt,-0.25pt)$) rectangle ($(cell#2.south east)+(-0.25pt,0.25pt)$);%
-		\draw[very thick] (cell#1.south west) rectangle (cell#1.north east);%
 		\fill[black] ($(cell#2.south east)+(-0.5pt,0.5pt)$) rectangle +(3pt,-3pt);%
 		%
 		%==> On colorie les en-têtes "colonnes"
@@ -328,10 +366,51 @@
 			\pastableur at colorcell{numline\i}{0}
 			\node[celhead,minimum width=\numline at width,minimum height=\line at height] at (numline\i) {\helvbx\i};%
 		}%
+	\draw[very thick] (cell#1.south west) rectangle (cell#1.north east);%
 	}% fin de \multiSelec
 %
 %
 %
+
+%
+% Selection de plusieurs cellules : \multimultiSelec{A-1}{A-2}{A-3}
+% Proposition de Emiel van Miltenburg pour la version 2.06 le 2024/09/14
+%
+\newcommand*\multimultiSelec[3]
+{%
+	\fill[blueSelec,opacity=0.5] ($(cell#1.north west)+(0.25pt,-0.25pt)$) rectangle ($(cell#3.south east)+(-0.25pt,0.25pt)$);%
+	
+	\fill[black] ($(cell#3.south east)+(-0.5pt,0.5pt)$) rectangle +(3pt,-3pt);%
+	%
+	%==> On colorie les en-têtes "colonnes"
+	%	
+	\StrChar{#1}{1}[\str at start] % par exemple, "G"
+	\StrChar{#2}{1}[\str at end]   % par exemple, "L"
+	\StrBetween{\col at names}{\str at start}{\str at end}[\str at col] %  retourne par exemple "HIJK"
+	\edef\str at col{\str at start\str at col\str at end} % retourne alors "GHIJKL"
+	\StrLen{\str at col}[\nb at columns] % nombre d'en-têtes "colonnes" \`a colorier
+	\foreach \i in {1,...,\nb at columns}
+	{%
+		\StrChar{\str at col}{\i}[\name]%
+		\pastableur at colorcell{\name}{1}
+		\node at (\name) {\helvbx\name};%
+	}%
+	%	
+	%==> On colorie les en-têtes "lignes"
+	%	
+	\StrGobbleLeft{#1}{2}[\first at num]%
+	\StrGobbleLeft{#2}{2}[\second at num]%
+	\foreach \i in {\first at num,...,\second at num}
+	{%
+		\pastableur at colorcell{numline\i}{0}
+		\node[celhead,minimum width=\numline at width,minimum height=\line at height] at (numline\i) {\helvbx\i};%
+	}%
+	\draw[very thick] (cell#2.south west) rectangle (cell#1.north east);%
+}% fin de \multimultiSelec
+%
+%
+%
+
 \newlength\pastableur at decal
 \newcommand{\pastableur at colorcell}[2] % #1 : name, #2 : 0=en-tetes "lignes" / 1=en-tetes "colonnes"
 	{%



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