texlive[66860] Master: pas-tableur (16apr23)

commits+karl at tug.org commits+karl at tug.org
Sun Apr 16 22:22:35 CEST 2023


Revision: 66860
          http://tug.org/svn/texlive?view=revision&revision=66860
Author:   karl
Date:     2023-04-16 22:22:34 +0200 (Sun, 16 Apr 2023)
Log Message:
-----------
pas-tableur (16apr23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pas-tableur/README.TEXLIVE
    trunk/Master/texmf-dist/doc/latex/pas-tableur/doc.codes.tex
    trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex
    trunk/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Master/texmf-dist/doc/latex/pas-tableur/README.TEXLIVE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-tableur/README.TEXLIVE	2023-04-15 23:48:50 UTC (rev 66859)
+++ trunk/Master/texmf-dist/doc/latex/pas-tableur/README.TEXLIVE	2023-04-16 20:22:34 UTC (rev 66860)
@@ -1,7 +1,9 @@
-The following files have been removed in the TeX Live installation of
-the current package, typically due to duplication, lack of space, or
-missing source code.  You can find these files on CTAN at
-	http://mirror.ctan.org/macros/latex/contrib/pas-tableur
-If questions or concerns, email tex-live at tug.org.
+The files below have been removed in the TeX Live installation of
+the current package, possibly because of missing source (e.g., a
+PDF with no source), possibly because their only purpose is to support
+nonfree fonts or other software, possibly for other reasons.
+More info: https://tug.org/texlive/pkgcontrib.html#requirements
 
+If this is a concern, please contact the package maintainer.
+
 	pas-tableur.pdf

Modified: trunk/Master/texmf-dist/doc/latex/pas-tableur/doc.codes.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-tableur/doc.codes.tex	2023-04-15 23:48:50 UTC (rev 66859)
+++ trunk/Master/texmf-dist/doc/latex/pas-tableur/doc.codes.tex	2023-04-16 20:22:34 UTC (rev 66860)
@@ -30,12 +30,12 @@
 	listing only,
 	left=6mm,
 	listing options={
-		basicstyle=\ttfamily\fontsize{7}{9}\selectfont,
+		basicstyle=\ttfamily\fontsize{10}{12}\selectfont,
 		keywordstyle=\color{blue},
 		numbers=left,
 		language=TeX,
 		breaklines=true,
-		morekeywords={definecolor,tcbset,begin, newtcbtheorem,newenvironment,newcommand,bfseries,color, sffamily,tcblower,ttfamily,setlength},
+		morekeywords={definecolor,tcbset,begin, newtcbtheorem,newenvironment,newcommand,bfseries,color, sffamily,tcblower,ttfamily,setlength,tabcolwidth,tabnumlinewidth, tablineheight,celtxt,selecCell},
 		numberstyle=\tiny\color{red!75!black}},
 	breakable
 	}
@@ -56,13 +56,13 @@
 	colback=listingTitleBackRight,
 	breakable,
 	listing options={
-		basicstyle=\ttfamily\fontsize{7}{9}\selectfont,
+		basicstyle=\ttfamily\fontsize{10}{12}\selectfont,
 		keywordstyle=\color{listingTitleFont},
 		numbers=left,
 		language=TeX,
 		breaklines=true,
 		numbersep=5pt,
-		morekeywords={ifelse,begin,definecolor,tcbset},
+		morekeywords={ifelse,begin,definecolor,tcbset,tableur,draw, celtxt,multiSelec},
 		numberstyle=\tiny\color{red!75!black}},
 	},
 	interior style={

Modified: trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex	2023-04-15 23:48:50 UTC (rev 66859)
+++ trunk/Master/texmf-dist/doc/latex/pas-tableur/pas-tableur.tex	2023-04-16 20:22:34 UTC (rev 66860)
@@ -1,6 +1,6 @@
 \documentclass[a4paper,french]{article}
 \usepackage[latin1]{inputenc}
-	\usepackage[T1]{fontenc}
+\usepackage[T1]{fontenc}
 \usepackage{babel} 
 \usepackage{etex}
 \usepackage{fourier}
@@ -31,11 +31,13 @@
 \begin{center}
 \begin{tcolorbox}[head]
 {\bfseries\LARGE Documentation \texttt{pas-tableur} }\\[3mm]
-{\large Version 2.01 -- \today}
+{\large Version 2.05 -- \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}}
 \end{center}
 
 \begin{tcolorbox}[toc]
@@ -260,22 +262,28 @@
 
 \medskip
 
-Les options sont :
+\begin{tabularx}{\linewidth}{|>{\ttfamily\arraybackslash}Sc|X|}
+\hline\rowcolor{gray!25}
+\multicolumn{2}{|Sl|}{Les options}\\
+\hline
+align=center & pour centrer le texte\\
+\hline
+align=left & pour positionner le texte \`a gauche (par d\'efaut)\\
+\hline
+align=right & pour positionner le texte \`a droite\\
+\hline
+ajust & si l'on souhaite ajuster le texte correctement sur plusieurs lignes \\
+\hline
+width= & pour sp\'ecifier la largeur de la colonne dans le cas o\`u nous avons utilis\'e la commande \texttt{\textbackslash tableur*}. Par d\'efaut,la largeur est 7em (largeur par d\'efaut de chaque colonne)\\
+\hline
+color= & couleur du texte. Par d\'efaut, la couleur est noire\\
+\hline
+font= & formate le texte\\
+\hline
+\end{tabularx}
 
 \medskip
 
-\begin{itemize}
-\item \texttt{c} : pour centrer le texte ;
-\item \texttt{l} : pour positionner le texte \`a gauche (c'est cette valeur qui est d\'esign\'ee par d\'efaut) ;
-\item \texttt{r} : pour positionner le texte \`a droite ;
-
-\item \texttt{width=} : pour sp\'ecifier la largeur de la colonne dans le cas o\`u nous avons utilis\'e la commande \texttt{\textbackslash tableur*}. Par d\'efaut,la largeur est 7em (largeur par d\'efaut de chaque colonne) ;
-
-\item \texttt{color=} : couleur du texte. Par d\'efaut, la couleur est noire.
-\end{itemize}
-
-\medskip
-
 Le texte peut \^etre format\'e de deux fa\c cons diff\'erentes selon qu'il d\'esigne une formule ou un texte normal, comme le montre l'exemple suivant :
 
 \bigskip
@@ -283,8 +291,8 @@
 \begin{tcblisting}{listing,title=Exemple 1}
 \begin{tikzpicture}
 \tableur[2]{M-O}
+\celtxt[align=right,font=\scriptsize]{N}{2}{Du texte ici}
 \celtxt{M}{1}{=B1^2}
-\celtxt[r]{N}{2}{Du texte ici}
 \end{tikzpicture}
 \end{tcblisting}
 
@@ -294,54 +302,18 @@
 \begin{tikzpicture}
 \tableur*[2]{M/13mm,N/3cm}
 \celtxt[width=13mm]{M}{1}{=B1^2}
-\celtxt[r,width=3cm]{N}{2}
+\celtxt[align=right,width=3cm]{N}{2}
 {Du texte ici}
 \end{tikzpicture}
 \end{tcblisting}
 
-\subsection{Formater le texte}
+\paragraph*{Nouveaut\'e du 18/06/2016 :} on peut d\'esormais \'ecrire un texte sur plusieurs lignes dans une cellule.
 
-On peut mettre en italique :
+Le texte tient sur plusieurs lignes automatiquement s'il d\'eborde de la cellule. En revanche, si vous souhaitez aller \`a la ligne manuellement (avec les \textbackslash\textbackslash), il faudra ajouter \`a la commande l'option \emph{ajust} :
+\begin{center}
+\texttt{\textbackslash celtxt[ajust]\{Un texte ici\textbackslash\textbackslash et ici\}}
+\end{center}
 
-\medskip
-
-\begin{tcblisting}{listing,title=\'Ecrire en italique}
-\begin{tikzpicture}
-\tableur[2]{M-O}
-\celtxt{M}{1}{=B1^2}
-\celtxt[r]{N}{2}
-{\itshape Du texte ici}
-\end{tikzpicture}
-\end{tcblisting}
-
-\medskip
-
-ou m\^eme en gras :
-
-\medskip
-
-\begin{tcblisting}{listing,title=\'Ecrire en gras}
-\begin{tikzpicture}
-\tableur[2]{M-O}
-\celtxt{M}{1}{=B1^2}
-\celtxt[r]{N}{2}
-{\bfseries Du texte ici}
-\end{tikzpicture}
-\end{tcblisting}
-
-voire m\^eme en petites majuscules :
-
-\medskip
-
-\begin{tcblisting}{listing,title=\'Ecrire en petites majuscules}
-\begin{tikzpicture}
-\tableur[2]{M-O}
-\celtxt{M}{1}{=B1^2}
-\celtxt[r,color=red]{N}{2}
-{\scshape Du texte ici}
-\end{tikzpicture}
-\end{tcblisting}
-
 \subsection{Mode math\'ematique dans une cellule}
 
 G\'en\'eration des premiers termes de la suite d\'efinie par $\left\{\begin{array}{l}
@@ -348,24 +320,22 @@
 u_0=5\\
 u_{n+1}=au_n+0,1
 \end{array}
-\right.$ o\`u $a$ est une valeur mise dans la cellule \helvbx{
-C1}.
+\right.$ o\`u $a$ est une valeur mise dans la cellule {\helvbx{
+C1}}.
 
 \begin{tcblisting}{listing,title=\'Ecrire en mode math\'ematique}
 \begin{tikzpicture}
 \tableur*[3]{A/2cm,B/3cm,C/2cm}
-\celtxt*[c]{A}{1}{$n$}
-\celtxt*[c]{B}{1}{$u_n$}
-\celtxt[c]{C}{1}{0.85}
-\celtxt[c]{A}{2}{0}
-\celtxt[c]{B}{2}{5}
+\celtxt*[align=center]{A}{1}{$n$}
+\celtxt*[align=center]{B}{1}{$u_n$}
+\celtxt[align=center]{C}{1}{0.85}
+\celtxt[align=center]{A}{2}{0}
+\celtxt[align=center]{B}{2}{5}
 \celtxt{A}{3}{=A2+1}
 \celtxt{B}{3}{=$C$1*B2+0.1}
 \end{tikzpicture}
 \end{tcblisting}
 
-\paragraph*{Remarque :} les commandes \texttt{\textbackslash celtxt} et sa version \'etoil\'ee (introduites dans la version 2.01 du 31 janvier 2016) ont \'et\'e r\'e-\'ecrites et imagin\'ees sur la page \url{https://groups.google.com/forum/#!topic/fr.comp.text.tex/7K1r9fUd_Rs}. J'ai donc d\'ecid\'e d'introduire ce nouveau code car il semblerait que certains utilisateurs aient express\'ement envie d'ins\'erer du texte en mode math\'ematique dans certaines cellules.
-
 \section{S\'election de cellules}
 
 \subsection{\textbackslash selecCell : s\'election d'une cellule}
@@ -387,6 +357,7 @@
 \end{tikzpicture}
 \end{tcblisting}
 
+\newpage
 
 \subsection{\textbackslash multiSelec : s\'election de plusieurs colonnes}
 
@@ -401,7 +372,6 @@
 \end{tikzpicture}
 \end{tcblisting}
 
-\newpage
 
 \subsection{Les couleurs par d\'efaut}
 
@@ -429,19 +399,19 @@
 \hline
 \texttt{\textbackslash tableur*[3]\{A/2cm,B/5cm\}} & Trace un tableur sur 3 lignes, avec des colonnes A et B de largeur diff\'erente.\\
 \hline
-\texttt{\textbackslash celtxt[c]\{A\}\{1\}\{=B2*2\}} & Affiche la formule \og =B2*2 \fg{} dans la cellule A1 centr\'ee horizontalement.\\
+\texttt{\textbackslash celtxt[align=center]\{A\}\{1\}\{=B2*2\}} & Affiche la formule \og =B2*2 \fg{} dans la cellule A1 centr\'ee horizontalement.\\
 \hline
 \texttt{\textbackslash celtxt[color=red]\{A\}\{1\}\{=B2*2\}} & Affiche en rouge la formule \og =B2*2 \fg{} dans la cellule A1.\\
 \hline
 \texttt{\textbackslash celtxt[width=5cm]\{A\}\{1\}\{=B2*2\}} & Affiche la formule \og =B2*2 \fg{} dans la cellule A1, de largeur 5 cm.\\
 \hline
-\texttt{\textbackslash celtxt*[r]\{A\}\{1\}\{\verb+$+u\verb+_+n\verb+$+\}} & Affiche \og $u_n$ \fg{} dans la cellule A1, align\'e \`a droite.\\
+\texttt{\textbackslash celtxt*[align=right]\{A\}\{1\}\{\verb+$+u\verb+_+n\verb+$+\}} & Affiche \og $u_n$ \fg{} dans la cellule A1, align\'e \`a droite.\\
 \hline
 \texttt{\textbackslash selecCell\{A\}\{1\}} & Dessine un cadre autour de la cellule A1.\\
 \hline
 \texttt{\textbackslash multiSelec\{A-1\}\{C-2\}} & Simule la s\'election des cellules allant de A1 \`a C2.\\
 \hline
-\texttt{\textbackslash helvbx\{A1\}} & Affiche \helvbx{A1}.\\
+\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	2023-04-15 23:48:50 UTC (rev 66859)
+++ trunk/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty	2023-04-16 20:22:34 UTC (rev 66860)
@@ -1,6 +1,6 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                         %
-%        pas-tableur.sty  v2.01     encodage : UTF8       %
+%        pas-tableur.sty  v2.05     encodage : UTF8       %
 %                                                         %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                         %
@@ -8,8 +8,8 @@
 %                                                         %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % 
-\def\fileversion{2.1}
-\def\filedate{2016/01/31}
+\def\fileversion{2.04}
+\def\filedate{2023/04/16}
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesClass{pas-tableur}[%
   \filedate\space v\fileversion\space
@@ -220,14 +220,17 @@
 			}%
 	} % --> Fin de \tableur
 %	
-% Inserer quelque chose dans une cellule : \celtxt [modif. du 2016/01/21 due \`a "Un bon petit"]
+% Inserer quelque chose dans une cellule : \celtxt [modif. du 2016/01/21 due a "Un bon petit"]
 %
 \define at cmdkey [PAS] {celtxt} {width}{}
 \define at cmdkey [PAS] {celtxt} {color}{}
+\define at cmdkey [PAS] {celtxt} {align}{} % NEW 2023-04_16
+\define at cmdkey [PAS] {celtxt} {font}{} % NEW 2016-06-18
+\define at boolkey [PAS] {celtxt} {ajust}[true]{} % NEW 2016-06-20
 \define at boolkey [PAS] {celtxt} {l}[true]{}
-\define at boolkey [PAS] {celtxt} {r}[true]{}
-\define at boolkey [PAS] {celtxt} {c}[true]{} 
-\presetkeys    [PAS] {celtxt} {width = \col at width, color=black}{}
+\define at boolkey [PAS] {celtxt} {r}[false]{}
+\define at boolkey [PAS] {celtxt} {c}[false]{} 
+\presetkeys    [PAS] {celtxt} {width = \col at width, color=black, font=\normalsize, ajust=false, align=left}{}
 %
 \newcommand*\celtxt at catcoderegime@begin{}
 \newcommand*\celtxt at catcoderegime@end{}
@@ -238,7 +241,8 @@
 		\let\celtxt at catcoderegime@end\@empty
 		\let\celtxt at catcoderegime@begin\@empty
 		\celtxt at i
-	  }{%
+	  }
+	  {%
 		\def\celtxt at catcoderegime@begin{%
 		  \begingroup
 		  \@makeother\^%
@@ -254,24 +258,23 @@
 \newcommand*\celtxt at ii[3]
 	{%
 	   \setkeys[PAS]{celtxt}{#1}%
-	   \celtxt at catcoderegime@begin
+	   \ifPAS at celtxt@ajust\else\celtxt at catcoderegime@begin\fi
 	   \celtxt at iii{#1}{#2}{#3}%
 	}
 %
+
 \newcommand*\celtxt at iii[4]
 	{%
-	   \celtxt at catcoderegime@end
-	   \IfBeginWith{#4}{=}{\let\pastab at style\texttt}{\let\pastab at style\@empty}
-	   \ifPAS at celtxt@c
-			\def\pos at align{c}%
+	   \ifPAS at celtxt@ajust
+			\IfStrEq{\cmdPAS at celtxt@align}{right}{\def\postab at align{r}}{}
+			\IfStrEq{\cmdPAS at celtxt@align}{left}{\def\postab at align{l}}{}
+			\IfStrEq{\cmdPAS at celtxt@align}{center}{\def\postab at align{c}}{}
+			\node[text width=\dimexpr\cmdPAS at celtxt@width-4pt, align=\cmdPAS at celtxt@align, color=\cmdPAS at celtxt@color, font=\cmdPAS at celtxt@font, execute at begin node=\setlength{\baselineskip}{2pt}] at (cell#2-#3) {\begin{tabular}{@{}\postab at align @{}}#4\end{tabular}};% 
 	   \else
-			\ifPAS at celtxt@r
-				\def\pos at align{r}%
-			\else
-				\def\pos at align{l}%
-			\fi
-	   \fi
-	   \node at (cell#2-#3) {\makebox[\dimexpr\cmdPAS at celtxt@width-2pt][\pos at align]{\pastab at style{\textcolor{\cmdPAS at celtxt@color}{#4}}}};%
+			\celtxt at catcoderegime@end
+			\IfBeginWith{#4}{=}{\let\pastab at style\texttt}{\let\pastab at style\@empty}
+			\node[text width=\dimexpr\cmdPAS at celtxt@width-4pt,align=\cmdPAS at celtxt@align, color=\cmdPAS at celtxt@color, font=\cmdPAS at celtxt@font, execute at begin node=\setlength{\baselineskip}{2pt}] at (cell#2-#3) {\pastab at style{#4}};%
+		\fi
 	}
 %
 % Cellule selectionnee : \selecCell

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2023-04-15 23:48:50 UTC (rev 66859)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2023-04-16 20:22:34 UTC (rev 66860)
@@ -341,7 +341,7 @@
  'context-animation',   "&MAKEcopy",
  'context-annotation',  "&MAKEcopy",
  'context-bnf',         "&MAKEcopy",
- 'context-calendar-examples', "&MAKEcopy",
+ 'context-calendar-examples', "die 'skipping, generic filenames'",
  'context-chromato',    "&MAKEcopy",
  'context-cmscbf',	"&MAKEcopy",
  'context-cmttbf',	"&MAKEcopy",
@@ -363,6 +363,7 @@
  'context-lettrine',    "&MAKEcopy",
  'context-lilypond',    "die 'skipping, obsolete per author'",
  'context-mathsets',    "&MAKEcopy",
+ 'context-pocketdiary', "die 'skipping, generic filenames'",
  'context-rst',         "&MAKEcopy",
  'context-ruby',        "&MAKEcopy",
  'context-sgf',         "die 'skipping, obsolete per author'",
@@ -7625,7 +7626,7 @@
     my $format = $whichdocformat;
     my $destdir = $dir;
     if ($dir =~ /(lua)?(la)?tex/) {
-      $destdir = "tex/$which";
+      $destdir = "tex/$format";
     } elsif ($dir =~ /metapost/) {
       $format = "";   # metapost/PKGNAME
     } elsif ($dir =~ /opentype/) {



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