From dc086771e418d7c66a541d2831b468375c5f7090 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 11 Mar 2022 03:00:57 +0000 Subject: CTAN sync 202203110300 --- .../latex/contrib/verifiche/verifiche-example.pdf | Bin 175815 -> 190102 bytes macros/latex/contrib/verifiche/verifiche.dtx | 120 +++++++++++++-------- macros/latex/contrib/verifiche/verifiche.pdf | Bin 523647 -> 551397 bytes 3 files changed, 76 insertions(+), 44 deletions(-) (limited to 'macros/latex/contrib/verifiche') diff --git a/macros/latex/contrib/verifiche/verifiche-example.pdf b/macros/latex/contrib/verifiche/verifiche-example.pdf index 8200bf65e7..72d381a5b3 100644 Binary files a/macros/latex/contrib/verifiche/verifiche-example.pdf and b/macros/latex/contrib/verifiche/verifiche-example.pdf differ diff --git a/macros/latex/contrib/verifiche/verifiche.dtx b/macros/latex/contrib/verifiche/verifiche.dtx index a17c536143..4172a0771f 100644 --- a/macros/latex/contrib/verifiche/verifiche.dtx +++ b/macros/latex/contrib/verifiche/verifiche.dtx @@ -16,7 +16,7 @@ % % \iffalse %\NeedsTeXFormat{LaTeX2e} -%\ProvidesPackage{verifiche} [2022/02/10 v4.3 .dtx verifiche file] +%\ProvidesPackage{verifiche} [2022/03/10 v4.4 .dtx verifiche file] %<*driver> \documentclass{ltxdoc} \usepackage[utf8]{inputenc} @@ -66,7 +66,7 @@ % % \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 @@ dell'esercizio somministrato % \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@durationlabeldefault{Tempo della prova:}% + \def\@verifiche@asyearlabeldefault{Anno scolastico}% + \def\@verifiche@headercandidatenamelabel{Nome e Cognome}% + \def\@verifiche@headerclasslabel{Classe}% + \def\@verifichhe@headerdatelabel{Data}% + \def\@verifiche@exerciselabel{Quesito}% + \def\@verifiche@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@durationlabeldefault{Tempo della prova:}% + \def\@verifiche@asyearlabeldefault{Anno scolastico}% + \def\@verifiche@headercandidatenamelabel{Nome e Cognome}% + \def\@verifiche@headerclasslabel{Classe}% + \def\@verifichhe@headerdatelabel{Data}% + \def\@verifiche@exerciselabel{Quesito}% + \def\@verifiche@solutionlabel{Soluzione}% + }}{ + \def\@verifiche@durationlabeldefault{Time:}% + \def\@verifiche@asyearlabeldefault{School year}% + \def\@verifiche@headercandidatenamelabel{Name and Surname}% + \def\@verifiche@headerclasslabel{Class}% + \def\@verifichhe@headerdatelabel{Date}% + \def\@verifiche@exerciselabel{Exercise}% + \def\@verifiche@solutionlabel{Solution}% + }}% % \end{macrocode} +% \begin{macrocode} +\newcommand{\@durationlabeldefault}{\@verifiche@durationlabeldefault}% +\newcommand{\@asyearlabeldefault}{\@verifiche@asyearlabeldefault}% +\newcommand{\headercandidatenamelabel}{\@verifiche@headercandidatenamelabel}% +\newcommand{\headerclasslabel}{\@verifiche@headerclasslabel}% +\newcommand{\headerdatelabel}{\@verifichhe@headerdatelabel}% +\newcommand{\exerciselabel}{\@verifiche@exerciselabel}% +\newcommand{\solutionlabel}{\@verifiche@solutionlabel}% +% \end{macrocode} %\subsection{Macro and environment} %\iffalse %%macro and environment @@ -1156,18 +1167,23 @@ dell'esercizio somministrato \hspace*{\fill}\@durationpreamble\space\bfseries #1\hspace*{\fill}} % \end{macrocode} % \begin{macrocode} -\newcommand{\@header@candidatename}{\noindent\headercandidatenamelabel\space\underline{\hspace{\candidatenamerulerlength}}} -\newcommand{\@header@class}{\headerclasslabel\space\underline{\hspace{\classrulerlength}}} -\newcommand{\@header@date}{\headerdatelabel\space\underline{\hspace{\daterulerlength}}} -\newcommand{\@header}{\@header@candidatename\hfill\@header@class\hfill\@header@date} -% \end{macrocode} -% \begin{macrocode} -\newcommand{\eserciziolabel}{% - Quesito} +\newcommand{\@header@candidatename}{% + \noindent\headercandidatenamelabel% + \space\underline{\hspace{\candidatenamerulerlength}}} +\newcommand{\@header@class}{% + \headerclasslabel\space% + \underline{\hspace{\classrulerlength}}} +\newcommand{\@header@date}{% + \headerdatelabel\space% + \underline{\hspace{\daterulerlength}}} +\newcommand{\@header}{% + \@header@candidatename\hfill\@header@class\hfill\@header@date} % \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 @@ dell'esercizio somministrato %%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 @@ dell'esercizio somministrato \define@key{esercizio}{pt}[none]{ \ifshowexercisept% \def\pointes{#1}% - \def\espoint{\hfill\@ptprefix\@lpt@delimiter\pointes\space\@useptlabel{\pointes}\@rpt@delimiter} + \def\espoint{% + \hfill\@ptprefix\@lpt@delimiter% + \pointes\space\@useptlabel{\pointes}% + \@rpt@delimiter} \showmarginexercisetrue \fi}% \define@key{esercizio}{partialpt}[none]{% \ifshowexercisept% \def\@totalpartialpt{\convertreftonum{ptes@\theexercisenumber}}% - \def\sumpartialpt{\@ptprefix\@lpt@delimiter\@totalpartialpt\space\@useptlabel{\@totalpartialpt}\@rpt@delimiter}% + \def\sumpartialpt{% + \@ptprefix\@lpt@delimiter% + \@totalpartialpt\space\@useptlabel{\@totalpartialpt}% + \@rpt@delimiter}% \showmarginexercisetrue \fi}% % \end{macrocode} @@ -1402,7 +1425,9 @@ dell'esercizio somministrato \NewDocumentCommand{\partialpt}{m}{% \ifshowexercisept% \leavevmode\reversemarginpar\marginpar{% - \hfill\@partialptprefix\@lpartialpt@delimiter#1\space\@usepartialptlabel{#1}\@rpartialpt@delimiter% + \hfill\@partialptprefix% + \@lpartialpt@delimiter#1\space\@usepartialptlabel{#1}% + \@rpartialpt@delimiter% \addtocounter{partialpoints}{#1}}% \fi}% % \end{macrocode} @@ -1537,8 +1562,12 @@ dell'esercizio somministrato \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 @@ dell'esercizio somministrato \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% diff --git a/macros/latex/contrib/verifiche/verifiche.pdf b/macros/latex/contrib/verifiche/verifiche.pdf index 78fa0d6757..584d9276ed 100644 Binary files a/macros/latex/contrib/verifiche/verifiche.pdf and b/macros/latex/contrib/verifiche/verifiche.pdf differ -- cgit v1.2.3