diff options
author | Karl Berry <karl@freefriends.org> | 2022-06-21 20:20:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-06-21 20:20:04 +0000 |
commit | cdee8a20726c698cd0c7428881c50524f67bf6ad (patch) | |
tree | ae0d0617e1f8280f406303c9e2123131356e2c6d /Master/texmf-dist/tex/latex/verifiche | |
parent | cd13676c9785015b25b247fddbc2aad27095d19c (diff) |
verifiche (21jun22)
git-svn-id: svn://tug.org/texlive/trunk@63680 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/verifiche')
-rw-r--r-- | Master/texmf-dist/tex/latex/verifiche/verifiche.sty | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/verifiche/verifiche.sty b/Master/texmf-dist/tex/latex/verifiche/verifiche.sty index 6e45570d9f0..cb027e3706e 100644 --- a/Master/texmf-dist/tex/latex/verifiche/verifiche.sty +++ b/Master/texmf-dist/tex/latex/verifiche/verifiche.sty @@ -15,7 +15,8 @@ %% and version 1.3 or later is part of all distributions of %% LaTeX version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{verifiche} [2022/06/16 v5.1 .dtx verifiche file] +\ProvidesPackage{verifiche} [2022/06/21 v5.2 .dtx verifiche file] + \RequirePackage{xparse} \RequirePackage{xkeyval} \RequirePackage{amsmath} @@ -76,14 +77,16 @@ \newlength{\daterulerlength} \newlength{\ptrulerlength} \newlength{\columnseparation} +\newlength{\verifiche@remainingvspace} +\newlength{\verifiche@remaininghspace} +\newlength{\verifiche@truefalsesquares} +\newlength{\spacedim} \setlength{\candidatenamerulerlength}{.35\textwidth} \setlength{\classrulerlength}{.1\textwidth} \setlength{\daterulerlength}{.15\textwidth} \setlength{\ptrulerlength}{1cm} -\newlength{\verifiche@remainingvspace} -\newlength{\verifiche@remaininghspace} -\newlength{\spacedim} \setlength{\columnseparation}{\fill} +\setlength{\verifiche@truefalsesquares}{.7\baselineskip} %%labels \newcommand{\@verifiche@durationlabeldefault}{Time:}% \newcommand{\@verifiche@asyearlabeldefault}{School year}% @@ -129,7 +132,7 @@ \newcommand{\testtype}[1]{% \gdef\@testtype{#1}} \newcommand{\instruction}[1]{% - \gdef\@instruction{#1}% + \gdef\@instruction{\ignorespaces#1}% \showinstructiondelimitertrue} \newcommand{\asyear}[2][\@asyearlabeldefault]{% \gdef\@asyearpreamble{#1}\gdef\@asyear{#2}} @@ -210,7 +213,11 @@ \@defineptdelimiter#1} %% checkmaker \newcommand{\checkmarker}{$\checkmark$}% -\newcommand{\verifiche@checkmarker}{\bgroup\ifsolutionscolor\color{\solutionscolor}\fi\checkmarker\egroup}% +\newcommand{\verifiche@checkmarker}{% +\bgroup% +\ifsolutionscolor\color{\solutionscolor}\fi% +\checkmarker% +\egroup}% %% convert ref to num \newcommand*{\convertreftonum}[1]{% \romannumeral @@ -254,10 +261,10 @@ {\ifcandidatename\@header\par\vspace{\baselineskip}\fi}% {\ifdefined\@asyear\ifasyear\asyearfont{\@asyearpreamble\space\@asyear}\par\vspace{\baselineskip}\fi\fi}% {\ifdefined\@testtype\iftesttype\testtypefont{\@testtype}\par\fi\fi}% - {\ifshowinstructiondelimiter\instructiondelimiter\par\fi}% - {\ifdefined\@instruction\ifinstruction\instrunctionfont{\@instruction}}\par\fi\fi% + {\ifshowinstructiondelimiter\noindent\instructiondelimiter\par\fi}% + {\ifdefined\@instruction\ifinstruction\instrunctionfont{\noindent\@instruction}}\par\fi\fi% {\ifdefined\@duration\ifduration\durationfont\@duration\par\fi\fi}% - {\ifshowinstructiondelimiter\instructiondelimiter\par\fi}% + {\ifshowinstructiondelimiter\noindent\instructiondelimiter\par\fi}% } %%ambiente esercizio @@ -340,7 +347,7 @@ \hfill\@partialptprefix% \@lpartialpt@delimiter#1\space\@usepartialptlabel{#1}% \@rpartialpt@delimiter% - \addtocounter{partialpoints}{#1}}% + \addtocounter{partialpoints}{#1}}\ignorespaces% \fi}% \define@key{soluzione}{label}[\solutionlabel]{% \def\verifiche@tempsoluzionelabel{#1}% @@ -383,18 +390,18 @@ \fi}% \newcommand{\truefalse}[1]{% %True - \fbox{\@verifiche@Tletter}% + \framebox{\parbox[c][\verifiche@truefalsesquares]{\verifiche@truefalsesquares}{\centering\@verifiche@Tletter}}% \ifsol\llap{% \if#1\@verifiche@Tletter% - \Large\verifiche@checkmarker% + \Large\verifiche@checkmarker\hspace{-1pt}% \fi}% \fi% \quad% %False - \fbox{\@verifiche@Fletter}% + \fbox{\parbox[c][\verifiche@truefalsesquares]{\verifiche@truefalsesquares}{\centering\@verifiche@Fletter}}% \ifsol\llap{% \if#1\@verifiche@Fletter% - \Large\verifiche@checkmarker% + \Large\verifiche@checkmarker\hspace{-1pt}% \fi}% \fi%% } |