diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-18 20:46:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-18 20:46:53 +0000 |
commit | b0fee827be0d99a89b05aa57264affdbbd929e48 (patch) | |
tree | 77ebaf5f8d03dde1a0628985d506ad64191a6786 /Master | |
parent | f90e4a44423e080743d7cd2f77163d9bf3abfcef (diff) |
verifiche (18aug21)
git-svn-id: svn://tug.org/texlive/trunk@60269 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/verifiche/verifiche-example.pdf | bin | 175413 -> 182373 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/verifiche/verifiche.pdf | bin | 518387 -> 519980 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/verifiche/verifiche.dtx | 50 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/verifiche/verifiche.sty | 20 |
4 files changed, 47 insertions, 23 deletions
diff --git a/Master/texmf-dist/doc/latex/verifiche/verifiche-example.pdf b/Master/texmf-dist/doc/latex/verifiche/verifiche-example.pdf Binary files differindex 0ac131160b5..82611e6104c 100644 --- a/Master/texmf-dist/doc/latex/verifiche/verifiche-example.pdf +++ b/Master/texmf-dist/doc/latex/verifiche/verifiche-example.pdf diff --git a/Master/texmf-dist/doc/latex/verifiche/verifiche.pdf b/Master/texmf-dist/doc/latex/verifiche/verifiche.pdf Binary files differindex f9b28013442..0f399271dbf 100644 --- a/Master/texmf-dist/doc/latex/verifiche/verifiche.pdf +++ b/Master/texmf-dist/doc/latex/verifiche/verifiche.pdf diff --git a/Master/texmf-dist/source/latex/verifiche/verifiche.dtx b/Master/texmf-dist/source/latex/verifiche/verifiche.dtx index 364354f072f..dc5a4a9e7ed 100644 --- a/Master/texmf-dist/source/latex/verifiche/verifiche.dtx +++ b/Master/texmf-dist/source/latex/verifiche/verifiche.dtx @@ -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@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% }% } diff --git a/Master/texmf-dist/tex/latex/verifiche/verifiche.sty b/Master/texmf-dist/tex/latex/verifiche/verifiche.sty index e43c2f490b3..74a05432184 100644 --- a/Master/texmf-dist/tex/latex/verifiche/verifiche.sty +++ b/Master/texmf-dist/tex/latex/verifiche/verifiche.sty @@ -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@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}% \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@delimiter#1\space\@usepartialptlabel{#1}\@rpartialpt@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% }% } |