texlive[60269] Master/texmf-dist: verifiche (18aug21)

commits+karl at tug.org commits+karl at tug.org
Wed Aug 18 22:46:53 CEST 2021


Revision: 60269
          http://tug.org/svn/texlive?view=revision&revision=60269
Author:   karl
Date:     2021-08-18 22:46:53 +0200 (Wed, 18 Aug 2021)
Log Message:
-----------
verifiche (18aug21)

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	2021-08-18 20:46:39 UTC (rev 60268)
+++ trunk/Master/texmf-dist/source/latex/verifiche/verifiche.dtx	2021-08-18 20:46:53 UTC (rev 60269)
@@ -16,12 +16,12 @@
 %
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}
-%<package>\ProvidesPackage{verifiche} [2021/02/16 v4.1 .dtx verifiche file]
+%<package>\ProvidesPackage{verifiche} [2021/08/18 v4.2 .dtx verifiche file]
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
-\usepackage[italian]{babel}
+\usepackage[english, italian]{babel}
 \usepackage{listings}
 \lstset{
 	language=[LaTeX]TeX, 
@@ -66,7 +66,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{741}
+% \CheckSum{752}
 % \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.}
@@ -74,6 +74,7 @@
 % \changes{v3.0}{2021/02/14}{Remove fancyhdr and introduce a new page style. Improve the printheading command.}
 % \changes{v4.0}{2021/02/15}{Introduce comando to change the aspect of the exercise score.}
 % \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.}
 % \GetFileInfo{verifiche.sty}
 % \DoNotIndex{\newcommand,\newenvironment,\def,\begin,\end,\par}
 % \DoNotIndex{\DeclareOption,\ExecuteOptions,\ProcessOptions,\RequirePackage}
@@ -107,7 +108,7 @@
 % \DoNotIndex{\or, \overset, \PackageError, \PackageWarning, \parindent, \pgfmathparse, \pgfmathresult}
 % \DoNotIndex{\ProcessOptionsX, \protected at write, \ref, \refstepcounter, \reversemarginpar, \rule}
 % \DoNotIndex{\scshape, setkeys, \sffamily, \sisetup, \spacedim, \string, \tikz, \underline, \usetikzlibrary}
-% \DoNotIndex{\val, \xout, \y, \usebox} 
+% \DoNotIndex{\val, \xout, \y, \usebox, \romannumeral, \@ifundefined, \ltx at zero, \rc at default, \rc at extract@, \chardef} 
 %
 %
 % \title{Il pacchetto \textsf{verifiche}
@@ -116,7 +117,13 @@
 % \author{Francesco Raccanello\\ \texttt{raccanello.francesco at gmail.com}}
 %
 % \maketitle
+%\begin{otherlanguage}{english}
 %\begin{abstract}
+% The aim of this package is to manage the elements of a middle or hight school test. It can composes the headings of the page, the exercises and their solutions. The exercises can show numeration, difficulty and score.
+% The package manages some standard test typology: plain exercise, complete-the-text, true or false, open questions, closed questions, find-the-error.
+%\end{abstract}
+%\end{otherlanguage}
+%\begin{abstract}
 %Il presente pacchetto si propone di gestire gli elementi che generalmente compongono
 %una prova scritta per le scuole secondarie di primo e secondo grado:
 %l'intestazione della pagina, gli esercizi della verifica e le loro soluzioni.
@@ -124,7 +131,7 @@
 %Alcuni comandi permettono di generare alcune tipologie di test: esercizi semplici, esercizi di completamento, vero o falso, domande aperte e chiuse e trova l'errore.
 %Ciascun esercizio può presentare la soluzione corretta che viene riportata nel documento in base ad un'apposita opzione del pacchetto.
 %\end{abstract}
-%
+%\clearpage
 %\tableofcontents
 %\clearpage
 %
@@ -164,16 +171,17 @@
 %\textbf{\meta{options}}&	\textbf{Descrizione} \\[.5em]
 %\hline\\
 %|noinstitute|		& 	non stampa il nome dell'istituto (si veda pag. \pageref{par:institute}).\\
-%|nocandidatename|	&	non stampa la sezione per il nome del candidato\\
-%|noinstruction|		&	non stampa le istruzioni della prova\\
+%|nocandidatename|&	non stampa la sezione per il nome del candidato\\
+%|noinstruction|	&	non stampa le istruzioni della prova\\
 %|noduration|		&	non stampa la durata della prova\\
-%|noasyear|			&	non stampa l'anno scolastico\\
+%|noasyear|		&	non stampa l'anno scolastico\\
 %|notesttype|		&	non stampa il tipo di prova	\\
-%|nonumbered|		&	quesiti non numerati\\
-%|solutions|			&	stampa le soluzioni degli esercizi (si veda pag.\pageref{sec:solutions})\\
-%|red|				&	il colore del font delle soluzioni è rosso\\
+%|nonumbered|	&	quesiti non numerati\\
+%|noexercisept|	&	non stampa il punteggio degli esercizi, anche se dichiarati\\
+%|solutions|		&	stampa le soluzioni degli esercizi (si veda pag.\pageref{sec:solutions})\\
+%|red|			&	il colore del font delle soluzioni è rosso\\
 %|blue|			&	il colore del font delle soluzioni è blu\\
-%|color|=\meta{color}	&	il colore del font delle soluzioni è \meta{color}\\[.5em]
+%|color|=\meta{color}&	il colore del font delle soluzioni è \meta{color}\\[.5em]
 %\hline
 %\end{tabular}
 %\end{center}
@@ -998,6 +1006,7 @@
 \newif\ifprintedheading\printedheadingfalse
 \newif\ifexercisesnumbered\exercisesnumberedtrue
 \newif\ifshowmarginexercise\showmarginexercisefalse
+\newif\ifshowexercisept\showexercisepttrue
 \newif\ifopenquestionlines\openquestionlinesfalse
 \newif\ifopenquestionsquared\openquestionsquaredfalse
 %    \end{macrocode}
@@ -1015,6 +1024,7 @@
 \DeclareOptionX{nocandidatename}[]{\candidatenamefalse}
 \DeclareOptionX{notesttype}[]{\testtypefalse}
 \DeclareOptionX{nonumbered}[]{\exercisesnumberedfalse}
+\DeclareOptionX{noexercisept}[]{\showexerciseptfalse}
 \DeclareOptionX{color}[red]{\solutionscolortrue\def\solutionscolor{#1}}
 \DeclareOptionX{red}[]{\ExecuteOptionsX{color=red}}
 \DeclareOptionX{blue}[]{\ExecuteOptionsX{color=blue}}
@@ -1254,13 +1264,17 @@
     \def\diffstar{\hfill\foreach \i in {1,..., #1}{\diffsymb}}%
     \showmarginexercisetrue}%
 \define at key{esercizio}{pt}[none]{
+    \ifshowexercisept%
     \def\pointes{#1}%
     \def\espoint{\hfill\@ptprefix\@lpt at delimiter\pointes\space\@useptlabel{\pointes}\@rpt at delimiter}
-    \showmarginexercisetrue}%
+    \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}%
-    \showmarginexercisetrue}%
+    \showmarginexercisetrue
+    \fi}%
 %    \end{macrocode}
 %
 %
@@ -1343,9 +1357,11 @@
 %\begin{macro}{\partialpt}The |partialpt| macro define the content of the margin note where it's used.
 %    \begin{macrocode}
 \NewDocumentCommand{\partialpt}{m}{%
+    \ifshowexercisept%
     \leavevmode\reversemarginpar\marginpar{%
         \hfill\@partialptprefix\@lpartialpt at delimiter#1\space\@usepartialptlabel{#1}\@rpartialpt at delimiter%
-        \addtocounter{partialpoints}{#1}}}%
+        \addtocounter{partialpoints}{#1}}%
+        \fi}%
 %    \end{macrocode}
 %\end{macro}
 %\paragraph{Soluzione}
@@ -1403,11 +1419,11 @@
     \tikz[baseline=-.8ex]{%
         %true part
         \node[draw, rectangle, minimum size=1.5em] {V};%
-        \ifsol\IfSubStr{#1}{V}{\node[shift={(1pt,1pt)}]{%
+        \ifsol\IfSubStr{#1}{V}{\node[inner sep=0pt, shift={(1pt,1pt)}]{%
         $\Large\ifsolutionscolor\color{\solutionscolor}\fi\checkmark$}}{};\fi%
         %false part
         \node[xshift=1cm, draw, rectangle, minimum size=1.5em]{F};%
-        \ifsol\IfSubStr{#1}{F}{\node[xshift=1cm, shift={(1pt,1pt)}]{%
+        \ifsol\IfSubStr{#1}{F}{\node[inner sep=0pt, xshift=1cm, shift={(1pt,1pt)}]{%
         $\Large\ifsolutionscolor\color{\solutionscolor}\fi\checkmark$}}{};\fi%
     }%
 }

Modified: trunk/Master/texmf-dist/tex/latex/verifiche/verifiche.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/verifiche/verifiche.sty	2021-08-18 20:46:39 UTC (rev 60268)
+++ trunk/Master/texmf-dist/tex/latex/verifiche/verifiche.sty	2021-08-18 20:46:53 UTC (rev 60269)
@@ -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} [2021/02/16 v4.1 .dtx verifiche file]
+\ProvidesPackage{verifiche} [2021/08/18 v4.2 .dtx verifiche file]
 \RequirePackage{xparse}
 \RequirePackage{xkeyval} 
 \RequirePackage{amsmath}
@@ -50,6 +50,7 @@
 \newif\ifprintedheading\printedheadingfalse
 \newif\ifexercisesnumbered\exercisesnumberedtrue
 \newif\ifshowmarginexercise\showmarginexercisefalse
+\newif\ifshowexercisept\showexercisepttrue
 \newif\ifopenquestionlines\openquestionlinesfalse
 \newif\ifopenquestionsquared\openquestionsquaredfalse
 %%Package option declaration
@@ -61,6 +62,7 @@
 \DeclareOptionX{nocandidatename}[]{\candidatenamefalse}
 \DeclareOptionX{notesttype}[]{\testtypefalse}
 \DeclareOptionX{nonumbered}[]{\exercisesnumberedfalse}
+\DeclareOptionX{noexercisept}[]{\showexerciseptfalse}
 \DeclareOptionX{color}[red]{\solutionscolortrue\def\solutionscolor{#1}}
 \DeclareOptionX{red}[]{\ExecuteOptionsX{color=red}}
 \DeclareOptionX{blue}[]{\ExecuteOptionsX{color=blue}}
@@ -203,13 +205,17 @@
     \def\diffstar{\hfill\foreach \i in {1,..., #1}{\diffsymb}}%
     \showmarginexercisetrue}%
 \define at key{esercizio}{pt}[none]{
+    \ifshowexercisept%
     \def\pointes{#1}%
     \def\espoint{\hfill\@ptprefix\@lpt at delimiter\pointes\space\@useptlabel{\pointes}\@rpt at delimiter}
-    \showmarginexercisetrue}%
+    \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}%
-    \showmarginexercisetrue}%
+    \showmarginexercisetrue
+    \fi}%
 \newcommand{\exercisetitle}{%
     \ifdefined\tempeserciziolabel\tempeserciziolabel%
     \else \eserciziolabel\fi%
@@ -259,9 +265,11 @@
     \savepointsaux%print partial pt sum
 }%
 \NewDocumentCommand{\partialpt}{m}{%
+    \ifshowexercisept%
     \leavevmode\reversemarginpar\marginpar{%
         \hfill\@partialptprefix\@lpartialpt at delimiter#1\space\@usepartialptlabel{#1}\@rpartialpt at delimiter%
-        \addtocounter{partialpoints}{#1}}}%
+        \addtocounter{partialpoints}{#1}}%
+        \fi}%
 \NewDocumentEnvironment{soluzione}{+b}{%
     \ifsol%
         \par\addvspace{\baselineskip}%
@@ -294,11 +302,11 @@
     \tikz[baseline=-.8ex]{%
         %true part
         \node[draw, rectangle, minimum size=1.5em] {V};%
-        \ifsol\IfSubStr{#1}{V}{\node[shift={(1pt,1pt)}]{%
+        \ifsol\IfSubStr{#1}{V}{\node[inner sep=0pt, shift={(1pt,1pt)}]{%
         $\Large\ifsolutionscolor\color{\solutionscolor}\fi\checkmark$}}{};\fi%
         %false part
         \node[xshift=1cm, draw, rectangle, minimum size=1.5em]{F};%
-        \ifsol\IfSubStr{#1}{F}{\node[xshift=1cm, shift={(1pt,1pt)}]{%
+        \ifsol\IfSubStr{#1}{F}{\node[inner sep=0pt, xshift=1cm, shift={(1pt,1pt)}]{%
         $\Large\ifsolutionscolor\color{\solutionscolor}\fi\checkmark$}}{};\fi%
     }%
 }



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