texlive[62634] Master/texmf-dist: verifiche (11mar22)

commits+karl at tug.org commits+karl at tug.org
Fri Mar 11 23:02:15 CET 2022


Revision: 62634
          http://tug.org/svn/texlive?view=revision&revision=62634
Author:   karl
Date:     2022-03-11 23:02:15 +0100 (Fri, 11 Mar 2022)
Log Message:
-----------
verifiche (11mar22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/verifiche/verifiche-example.pdf
    trunk/Master/texmf-dist/doc/latex/verifiche/verifiche.pdf
    trunk/Master/texmf-dist/source/latex/verifiche/verifiche.dtx
    trunk/Master/texmf-dist/tex/latex/verifiche/verifiche.sty

Modified: trunk/Master/texmf-dist/doc/latex/verifiche/verifiche-example.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/verifiche/verifiche.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/verifiche/verifiche.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/verifiche/verifiche.dtx	2022-03-11 22:01:56 UTC (rev 62633)
+++ trunk/Master/texmf-dist/source/latex/verifiche/verifiche.dtx	2022-03-11 22:02:15 UTC (rev 62634)
@@ -16,7 +16,7 @@
 %
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}
-%<package>\ProvidesPackage{verifiche} [2022/02/10 v4.3 .dtx verifiche file]
+%<package>\ProvidesPackage{verifiche} [2022/03/10 v4.4 .dtx verifiche file]
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage[utf8]{inputenc}
@@ -66,7 +66,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{801}
+% \CheckSum{820}
 % \changes{v1.0}{2020/06/14}{Initial version.}
 % \changes{v2.0}{2020/06/26}{Better performance in exercise environment.}
 % \changes{v2.1}{2020/06/30}{Introduced closedquestionitem to control |item| symbol.}
@@ -76,6 +76,7 @@
 % \changes{v4.1}{2021/02/16}{Introduce ptrulerlength to change the aspect of the exercise score.}
 % \changes{v4.2}{2021/08/18}{Solved truefalse issue in solutionsmode. Add noexercisept global option to hide the score of each exercise.}
 % \changes{v4.3}{2022/02/10}{Move |parindent{0pt}| inside the environment.}
+% \changes{v4.4}{2022/03/10}{Minor update. Fixed labels issues.}
 % \GetFileInfo{verifiche.sty}
 % \DoNotIndex{\newcommand,\newenvironment,\def,\begin,\end,\par}
 % \DoNotIndex{\DeclareOption,\ExecuteOptions,\ProcessOptions,\RequirePackage}
@@ -1067,40 +1068,50 @@
 %    \end{macrocode}
 %
 %\subsection{Labels}
+%\iffalse
+%%labels
+%\fi
 %Some labels are define as a variable in order to leave the user the possibility of customization the predefine texts.
-%    \begin{macrocode}
-\newcommand{\@durationlabeldefault}{Time:}%
-\newcommand{\@asyearlabeldefault}{School year}%
-\newcommand{\headercandidatenamelabel}{Student name}%
-\newcommand{\headerclasslabel}{Class}%
-\newcommand{\headerdatelabel}{Date}%
-\newcommand{\exerciselabel}{Exercise}%
-\newcommand{\solutionlabel}{Solution}%	
-%    \end{macrocode} 
 %If the package \textsf{babel} or \textsf{polyglossia} is loaded with the italian language specify, than the predefine labels are redefine:
 %    \begin{macrocode}
 \@ifpackageloaded{babel}{%
   \addto\captionsitalian{%
-    \renewcommand{\@durationlabeldefault}{Tempo della prova:}%
-    \renewcommand{\@asyearlabeldefault}{Anno scolastico}%
-    \renewcommand{\headercandidatenamelabel}{Nome e Cognome}%
-    \renewcommand{\headerclasslabel}{Classe}%
-    \renewcommand{\headerdatelabel}{Data}%
-    \renewcommand{\exerciselabel}{Quesito}%
-    \renewcommand{\solutionlabel}{Soluzione}%
+    \def\@verifiche at durationlabeldefault{Tempo della prova:}%
+    \def\@verifiche at asyearlabeldefault{Anno scolastico}%
+    \def\@verifiche at headercandidatenamelabel{Nome e Cognome}%
+    \def\@verifiche at headerclasslabel{Classe}%
+    \def\@verifichhe at headerdatelabel{Data}%
+    \def\@verifiche at exerciselabel{Quesito}%
+    \def\@verifiche at solutionlabel{Soluzione}%
   }}{%
 \@ifpackageloaded{polyglossia}{%
   \addto\captionsitalian{%
-    \renewcommand{\@durationlabeldefault}{Tempo della prova:}%
-    \renewcommand{\@asyearlabeldefault}{Anno scolastico}%
-    \renewcommand{\headercandidatenamelabel}{Nome e Cognome}%
-    \renewcommand{\headerclasslabel}{Classe}%
-    \renewcommand{\headerdatelabel}{Data}%
-    \renewcommand{\exerciselabel}{Quesito}%
-    \renewcommand{\solutionlabel}{Soluzione}%
-  }}{}
-  }%
+    \def\@verifiche at durationlabeldefault{Tempo della prova:}%
+    \def\@verifiche at asyearlabeldefault{Anno scolastico}%
+    \def\@verifiche at headercandidatenamelabel{Nome e Cognome}%
+    \def\@verifiche at headerclasslabel{Classe}%
+    \def\@verifichhe at headerdatelabel{Data}%
+    \def\@verifiche at exerciselabel{Quesito}%
+    \def\@verifiche at solutionlabel{Soluzione}%
+  }}{
+    \def\@verifiche at durationlabeldefault{Time:}%
+    \def\@verifiche at asyearlabeldefault{School year}%
+    \def\@verifiche at headercandidatenamelabel{Name and Surname}%
+    \def\@verifiche at headerclasslabel{Class}%
+    \def\@verifichhe at headerdatelabel{Date}%
+    \def\@verifiche at exerciselabel{Exercise}%
+    \def\@verifiche at solutionlabel{Solution}%
+  }}%
 %    \end{macrocode}
+%    \begin{macrocode}
+\newcommand{\@durationlabeldefault}{\@verifiche at durationlabeldefault}%
+\newcommand{\@asyearlabeldefault}{\@verifiche at asyearlabeldefault}%
+\newcommand{\headercandidatenamelabel}{\@verifiche at headercandidatenamelabel}%
+\newcommand{\headerclasslabel}{\@verifiche at headerclasslabel}%
+\newcommand{\headerdatelabel}{\@verifichhe at headerdatelabel}%
+\newcommand{\exerciselabel}{\@verifiche at exerciselabel}%
+\newcommand{\solutionlabel}{\@verifiche at solutionlabel}% 
+%    \end{macrocode} 
 %\subsection{Macro and environment}
 %\iffalse
 %%macro and environment
@@ -1156,18 +1167,23 @@
     \hspace*{\fill}\@durationpreamble\space\bfseries #1\hspace*{\fill}}
 %    \end{macrocode}
 %    \begin{macrocode}
-\newcommand{\@header at candidatename}{\noindent\headercandidatenamelabel\space\underline{\hspace{\candidatenamerulerlength}}}
-\newcommand{\@header at class}{\headerclasslabel\space\underline{\hspace{\classrulerlength}}}
-\newcommand{\@header at date}{\headerdatelabel\space\underline{\hspace{\daterulerlength}}}
-\newcommand{\@header}{\@header at candidatename\hfill\@header at class\hfill\@header at date}
+\newcommand{\@header at candidatename}{%
+    \noindent\headercandidatenamelabel%
+    \space\underline{\hspace{\candidatenamerulerlength}}}
+\newcommand{\@header at class}{%
+    \headerclasslabel\space%
+    \underline{\hspace{\classrulerlength}}}
+\newcommand{\@header at date}{%
+    \headerdatelabel\space%
+    \underline{\hspace{\daterulerlength}}}
+\newcommand{\@header}{%
+    \@header at candidatename\hfill\@header at class\hfill\@header at date}
 %    \end{macrocode}
 %    \begin{macrocode}
-\newcommand{\eserciziolabel}{%
-    Quesito}
-%    \end{macrocode}
-%    \begin{macrocode}
 \newcommand{\solutionfont}{%
-    \footnotesize\ifsolutionscolor\color{\solutionscolor}\fi\itshape}
+    \footnotesize%
+    \ifsolutionscolor\color{\solutionscolor}\fi%
+    \itshape}
 %    \end{macrocode}
 %    \begin{macrocode}
 \newcommand{\diffsymb}{%
@@ -1181,7 +1197,8 @@
 %%pt prefix
 %\fi
 %    \begin{macrocode}
-\newcommand{\@ptprefix}{\underline{\hspace{\ptrulerlength}}/}
+\newcommand{\@ptprefix}{%
+    \underline{\hspace{\ptrulerlength}}/}
 \newcommand{\ptprefix}[1]{%
     \renewcommand{\@ptprefix}{#1}}
 %    \end{macrocode}
@@ -1307,13 +1324,19 @@
 \define at key{esercizio}{pt}[none]{
     \ifshowexercisept%
     \def\pointes{#1}%
-    \def\espoint{\hfill\@ptprefix\@lpt at delimiter\pointes\space\@useptlabel{\pointes}\@rpt at delimiter}
+    \def\espoint{%
+        \hfill\@ptprefix\@lpt at delimiter%
+        \pointes\space\@useptlabel{\pointes}%
+        \@rpt at delimiter}
     \showmarginexercisetrue
     \fi}%
 \define at key{esercizio}{partialpt}[none]{%
     \ifshowexercisept%
     \def\@totalpartialpt{\convertreftonum{ptes@\theexercisenumber}}%
-    \def\sumpartialpt{\@ptprefix\@lpt at delimiter\@totalpartialpt\space\@useptlabel{\@totalpartialpt}\@rpt at delimiter}%
+    \def\sumpartialpt{%
+        \@ptprefix\@lpt at delimiter%
+        \@totalpartialpt\space\@useptlabel{\@totalpartialpt}%
+        \@rpt at delimiter}%
     \showmarginexercisetrue
     \fi}%
 %    \end{macrocode}
@@ -1402,7 +1425,9 @@
 \NewDocumentCommand{\partialpt}{m}{%
     \ifshowexercisept%
     \leavevmode\reversemarginpar\marginpar{%
-        \hfill\@partialptprefix\@lpartialpt at delimiter#1\space\@usepartialptlabel{#1}\@rpartialpt at delimiter%
+        \hfill\@partialptprefix%
+        \@lpartialpt at delimiter#1\space\@usepartialptlabel{#1}%
+        \@rpartialpt at delimiter%
         \addtocounter{partialpoints}{#1}}%
         \fi}%
 %    \end{macrocode}
@@ -1537,8 +1562,12 @@
         \begin{tikzpicture}%
             \draw[step=\spacedim, \openquestionlinecolor]%
             (0,0) grid (\openquestionwidth,-\openquestionheight);%
-            \node[anchor=base west, align=left, text width=\openquestionwidth,%
-            inner sep=0cm, font=\solutionfont, execute at begin node=\setlength{\baselineskip}{\spacedim}]%
+            \node[%
+                anchor=base west,%
+                align=left, text width=\openquestionwidth,%
+                inner sep=0cm,%
+                font=\solutionfont,%
+                execute at begin node=\setlength{\baselineskip}{\spacedim}]%
             at (0, -\spacedim){\ifsol#2\fi};
         \end{tikzpicture}%
     \else% if lined open question
@@ -1546,8 +1575,11 @@
             \pgfmathparse{int(\openquestionheight/\spacedim)}%
              \foreach \y in {1, ..., \pgfmathresult}%
              \draw[\openquestionlinecolor] (0, -\y*\spacedim) -- +(\openquestionwidth,0);%
-             \node[anchor=base west,align=left,  text width=\openquestionwidth,%
-             inner sep=0cm, font=\solutionfont, execute at begin node=\setlength{\baselineskip}{\spacedim}]%
+             \node[%
+                 anchor=base west,align=left,%
+                 text width=\openquestionwidth,%
+                 inner sep=0cm, font=\solutionfont,%
+                 execute at begin node=\setlength{\baselineskip}{\spacedim}]%
              at (0, -\spacedim){\ifsol#2\fi};%
     \end{tikzpicture}%
     \fi%

Modified: trunk/Master/texmf-dist/tex/latex/verifiche/verifiche.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/verifiche/verifiche.sty	2022-03-11 22:01:56 UTC (rev 62633)
+++ trunk/Master/texmf-dist/tex/latex/verifiche/verifiche.sty	2022-03-11 22:02:15 UTC (rev 62634)
@@ -15,7 +15,7 @@
 %% and version 1.3 or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{verifiche} [2022/02/10 v4.3 .dtx verifiche file]
+\ProvidesPackage{verifiche} [2022/03/10 v4.4 .dtx verifiche file]
 \RequirePackage{xparse}
 \RequirePackage{xkeyval} 
 \RequirePackage{amsmath}
@@ -79,34 +79,42 @@
 \setlength{\classrulerlength}{.1\textwidth}
 \setlength{\daterulerlength}{.15\textwidth}
 \setlength{\ptrulerlength}{1cm}
-\newcommand{\@durationlabeldefault}{Time:}%
-\newcommand{\@asyearlabeldefault}{School year}%
-\newcommand{\headercandidatenamelabel}{Student name}%
-\newcommand{\headerclasslabel}{Class}%
-\newcommand{\headerdatelabel}{Date}%
-\newcommand{\exerciselabel}{Exercise}%
-\newcommand{\solutionlabel}{Solution}% 
+%%labels
 \@ifpackageloaded{babel}{%
   \addto\captionsitalian{%
-    \renewcommand{\@durationlabeldefault}{Tempo della prova:}%
-    \renewcommand{\@asyearlabeldefault}{Anno scolastico}%
-    \renewcommand{\headercandidatenamelabel}{Nome e Cognome}%
-    \renewcommand{\headerclasslabel}{Classe}%
-    \renewcommand{\headerdatelabel}{Data}%
-    \renewcommand{\exerciselabel}{Quesito}%
-    \renewcommand{\solutionlabel}{Soluzione}%
+    \def\@verifiche at durationlabeldefault{Tempo della prova:}%
+    \def\@verifiche at asyearlabeldefault{Anno scolastico}%
+    \def\@verifiche at headercandidatenamelabel{Nome e Cognome}%
+    \def\@verifiche at headerclasslabel{Classe}%
+    \def\@verifichhe at headerdatelabel{Data}%
+    \def\@verifiche at exerciselabel{Quesito}%
+    \def\@verifiche at solutionlabel{Soluzione}%
   }}{%
 \@ifpackageloaded{polyglossia}{%
   \addto\captionsitalian{%
-    \renewcommand{\@durationlabeldefault}{Tempo della prova:}%
-    \renewcommand{\@asyearlabeldefault}{Anno scolastico}%
-    \renewcommand{\headercandidatenamelabel}{Nome e Cognome}%
-    \renewcommand{\headerclasslabel}{Classe}%
-    \renewcommand{\headerdatelabel}{Data}%
-    \renewcommand{\exerciselabel}{Quesito}%
-    \renewcommand{\solutionlabel}{Soluzione}%
-  }}{}
-  }%
+    \def\@verifiche at durationlabeldefault{Tempo della prova:}%
+    \def\@verifiche at asyearlabeldefault{Anno scolastico}%
+    \def\@verifiche at headercandidatenamelabel{Nome e Cognome}%
+    \def\@verifiche at headerclasslabel{Classe}%
+    \def\@verifichhe at headerdatelabel{Data}%
+    \def\@verifiche at exerciselabel{Quesito}%
+    \def\@verifiche at solutionlabel{Soluzione}%
+  }}{
+    \def\@verifiche at durationlabeldefault{Time:}%
+    \def\@verifiche at asyearlabeldefault{School year}%
+    \def\@verifiche at headercandidatenamelabel{Name and Surname}%
+    \def\@verifiche at headerclasslabel{Class}%
+    \def\@verifichhe at headerdatelabel{Date}%
+    \def\@verifiche at exerciselabel{Exercise}%
+    \def\@verifiche at solutionlabel{Solution}%
+  }}%
+\newcommand{\@durationlabeldefault}{\@verifiche at durationlabeldefault}%
+\newcommand{\@asyearlabeldefault}{\@verifiche at asyearlabeldefault}%
+\newcommand{\headercandidatenamelabel}{\@verifiche at headercandidatenamelabel}%
+\newcommand{\headerclasslabel}{\@verifiche at headerclasslabel}%
+\newcommand{\headerdatelabel}{\@verifichhe at headerdatelabel}%
+\newcommand{\exerciselabel}{\@verifiche at exerciselabel}%
+\newcommand{\solutionlabel}{\@verifiche at solutionlabel}%
 %%macro and environment
 %%global variable
 \newcommand{\institute}[1]{%
@@ -134,20 +142,28 @@
     \sffamily#1}
 \newcommand{\durationfont}[1]{%
     \hspace*{\fill}\@durationpreamble\space\bfseries #1\hspace*{\fill}}
-\newcommand{\@header at candidatename}{\noindent\headercandidatenamelabel\space\underline{\hspace{\candidatenamerulerlength}}}
-\newcommand{\@header at class}{\headerclasslabel\space\underline{\hspace{\classrulerlength}}}
-\newcommand{\@header at date}{\headerdatelabel\space\underline{\hspace{\daterulerlength}}}
-\newcommand{\@header}{\@header at candidatename\hfill\@header at class\hfill\@header at date}
-\newcommand{\eserciziolabel}{%
-    Quesito}
+\newcommand{\@header at candidatename}{%
+    \noindent\headercandidatenamelabel%
+    \space\underline{\hspace{\candidatenamerulerlength}}}
+\newcommand{\@header at class}{%
+    \headerclasslabel\space%
+    \underline{\hspace{\classrulerlength}}}
+\newcommand{\@header at date}{%
+    \headerdatelabel\space%
+    \underline{\hspace{\daterulerlength}}}
+\newcommand{\@header}{%
+    \@header at candidatename\hfill\@header at class\hfill\@header at date}
 \newcommand{\solutionfont}{%
-    \footnotesize\ifsolutionscolor\color{\solutionscolor}\fi\itshape}
+    \footnotesize%
+    \ifsolutionscolor\color{\solutionscolor}\fi%
+    \itshape}
 \newcommand{\diffsymb}{%
     $\bigstar$}
 \newcommand{\closedquestionitem}{%
     $\square$}
 %%pt prefix
-\newcommand{\@ptprefix}{\underline{\hspace{\ptrulerlength}}/}
+\newcommand{\@ptprefix}{%
+    \underline{\hspace{\ptrulerlength}}/}
 \newcommand{\ptprefix}[1]{%
     \renewcommand{\@ptprefix}{#1}}
 %%partialpt prefix
@@ -231,13 +247,19 @@
 \define at key{esercizio}{pt}[none]{
     \ifshowexercisept%
     \def\pointes{#1}%
-    \def\espoint{\hfill\@ptprefix\@lpt at delimiter\pointes\space\@useptlabel{\pointes}\@rpt at delimiter}
+    \def\espoint{%
+        \hfill\@ptprefix\@lpt at delimiter%
+        \pointes\space\@useptlabel{\pointes}%
+        \@rpt at delimiter}
     \showmarginexercisetrue
     \fi}%
 \define at key{esercizio}{partialpt}[none]{%
     \ifshowexercisept%
     \def\@totalpartialpt{\convertreftonum{ptes@\theexercisenumber}}%
-    \def\sumpartialpt{\@ptprefix\@lpt at delimiter\@totalpartialpt\space\@useptlabel{\@totalpartialpt}\@rpt at delimiter}%
+    \def\sumpartialpt{%
+        \@ptprefix\@lpt at delimiter%
+        \@totalpartialpt\space\@useptlabel{\@totalpartialpt}%
+        \@rpt at delimiter}%
     \showmarginexercisetrue
     \fi}%
 \newcommand{\exercisetitle}{%
@@ -293,7 +315,9 @@
 \NewDocumentCommand{\partialpt}{m}{%
     \ifshowexercisept%
     \leavevmode\reversemarginpar\marginpar{%
-        \hfill\@partialptprefix\@lpartialpt at delimiter#1\space\@usepartialptlabel{#1}\@rpartialpt at delimiter%
+        \hfill\@partialptprefix%
+        \@lpartialpt at delimiter#1\space\@usepartialptlabel{#1}%
+        \@rpartialpt at delimiter%
         \addtocounter{partialpoints}{#1}}%
         \fi}%
 \NewDocumentEnvironment{soluzione}{+b}{%
@@ -379,8 +403,12 @@
         \begin{tikzpicture}%
             \draw[step=\spacedim, \openquestionlinecolor]%
             (0,0) grid (\openquestionwidth,-\openquestionheight);%
-            \node[anchor=base west, align=left, text width=\openquestionwidth,%
-            inner sep=0cm, font=\solutionfont, execute at begin node=\setlength{\baselineskip}{\spacedim}]%
+            \node[%
+                anchor=base west,%
+                align=left, text width=\openquestionwidth,%
+                inner sep=0cm,%
+                font=\solutionfont,%
+                execute at begin node=\setlength{\baselineskip}{\spacedim}]%
             at (0, -\spacedim){\ifsol#2\fi};
         \end{tikzpicture}%
     \else% if lined open question
@@ -388,8 +416,11 @@
             \pgfmathparse{int(\openquestionheight/\spacedim)}%
              \foreach \y in {1, ..., \pgfmathresult}%
              \draw[\openquestionlinecolor] (0, -\y*\spacedim) -- +(\openquestionwidth,0);%
-             \node[anchor=base west,align=left,  text width=\openquestionwidth,%
-             inner sep=0cm, font=\solutionfont, execute at begin node=\setlength{\baselineskip}{\spacedim}]%
+             \node[%
+                 anchor=base west,align=left,%
+                 text width=\openquestionwidth,%
+                 inner sep=0cm, font=\solutionfont,%
+                 execute at begin node=\setlength{\baselineskip}{\spacedim}]%
              at (0, -\spacedim){\ifsol#2\fi};%
     \end{tikzpicture}%
     \fi%



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