From 0c52816f121429fd9e4277d4dc8895f92c2bdb52 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 19 Aug 2021 03:01:47 +0000 Subject: CTAN sync 202108190301 --- macros/latex/contrib/verifiche/verifiche.dtx | 50 ++++++++++++++++++---------- 1 file changed, 33 insertions(+), 17 deletions(-) (limited to 'macros/latex/contrib/verifiche/verifiche.dtx') diff --git a/macros/latex/contrib/verifiche/verifiche.dtx b/macros/latex/contrib/verifiche/verifiche.dtx index 364354f072..dc5a4a9e7e 100644 --- a/macros/latex/contrib/verifiche/verifiche.dtx +++ b/macros/latex/contrib/verifiche/verifiche.dtx @@ -16,12 +16,12 @@ % % \iffalse %\NeedsTeXFormat{LaTeX2e} -%\ProvidesPackage{verifiche} [2021/02/16 v4.1 .dtx verifiche file] +%\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 @@ % % \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@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@zero, \rc@default, \rc@extract@, \chardef} % % % \title{Il pacchetto \textsf{verifiche} @@ -116,6 +117,12 @@ % \author{Francesco Raccanello\\ \texttt{raccanello.francesco@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: @@ -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 @@ dell'esercizio somministrato \newif\ifprintedheading\printedheadingfalse \newif\ifexercisesnumbered\exercisesnumberedtrue \newif\ifshowmarginexercise\showmarginexercisefalse +\newif\ifshowexercisept\showexercisepttrue \newif\ifopenquestionlines\openquestionlinesfalse \newif\ifopenquestionsquared\openquestionsquaredfalse % \end{macrocode} @@ -1015,6 +1024,7 @@ dell'esercizio somministrato \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 @@ dell'esercizio somministrato \def\diffstar{\hfill\foreach \i in {1,..., #1}{\diffsymb}}% \showmarginexercisetrue}% \define@key{esercizio}{pt}[none]{ + \ifshowexercisept% \def\pointes{#1}% \def\espoint{\hfill\@ptprefix\@lpt@delimiter\pointes\space\@useptlabel{\pointes}\@rpt@delimiter} - \showmarginexercisetrue}% + \showmarginexercisetrue + \fi}% \define@key{esercizio}{partialpt}[none]{% + \ifshowexercisept% \def\@totalpartialpt{\convertreftonum{ptes@\theexercisenumber}}% \def\sumpartialpt{\@ptprefix\@lpt@delimiter\@totalpartialpt\space\@useptlabel{\@totalpartialpt}\@rpt@delimiter}% - \showmarginexercisetrue}% + \showmarginexercisetrue + \fi}% % \end{macrocode} % % @@ -1343,9 +1357,11 @@ dell'esercizio somministrato %\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@delimiter#1\space\@usepartialptlabel{#1}\@rpartialpt@delimiter% - \addtocounter{partialpoints}{#1}}}% + \addtocounter{partialpoints}{#1}}% + \fi}% % \end{macrocode} %\end{macro} %\paragraph{Soluzione} @@ -1403,11 +1419,11 @@ dell'esercizio somministrato \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% }% } -- cgit v1.2.3