diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/verifiche/verifiche.sty | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/verifiche/verifiche.sty b/Master/texmf-dist/tex/latex/verifiche/verifiche.sty index cb027e3706e..27b32d77bdd 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} [2022/06/21 v5.2 .dtx verifiche file] +\ProvidesPackage{verifiche} [2022/09/17 v6.0 .dtx verifiche file] \RequirePackage{xparse} \RequirePackage{xkeyval} @@ -46,6 +46,7 @@ \newif\ifsolutionscolor\solutionscolorfalse \newif\ifcandidatename\candidatenametrue \newif\iftesttype\testtypetrue +\newif\ifsubtitle\subtitletrue \newif\ifshowinstructiondelimiter\showinstructiondelimiterfalse \newif\ifprintedheading\printedheadingfalse \newif\ifexercisesnumbered\exercisesnumberedtrue @@ -61,6 +62,7 @@ \DeclareOptionX{noasyear}[]{\asyearfalse} \DeclareOptionX{nocandidatename}[]{\candidatenamefalse} \DeclareOptionX{notesttype}[]{\testtypefalse} +\DeclareOptionX{nosubtitle}[]{\subtitlefalse} \DeclareOptionX{nonumbered}[]{\exercisesnumberedfalse} \DeclareOptionX{noexercisept}[]{\showexerciseptfalse} \DeclareOptionX{color}[red]{\solutionscolortrue\def\solutionscolor{#1}} @@ -131,6 +133,8 @@ \showinstructiondelimitertrue}% \newcommand{\testtype}[1]{% \gdef\@testtype{#1}} +\newcommand{\subtitle}[1]{% + \gdef\@subtitle{#1}}% \newcommand{\instruction}[1]{% \gdef\@instruction{\ignorespaces#1}% \showinstructiondelimitertrue} @@ -145,6 +149,8 @@ \hspace*{\fill} #1\hspace*{\fill}} \newcommand{\testtypefont}[1]{% \bgroup\hspace*{\fill}\scshape\huge#1\hspace*{\fill}\egroup} +\newcommand{\subtitlefont}[1]{% + \bgroup\hspace*{\fill}\Large\scshape#1\hspace*{\fill}\egroup}% \newcommand{\instructiondelimiter}{% \hrulefill} \newcommand{\instrunctionfont}[1]{% @@ -248,12 +254,18 @@ %%pagestyles \newcommand{\ps@mainverifiche}{% -\renewcommand\@oddhead{\parbox{\textwidth}{\centering \institutefont{\@institute}}}% -\renewcommand\@evenhead{}% + \renewcommand\@oddhead{% + \parbox{\textwidth}{\centering \institutefont{\@institute}}% + }% + \renewcommand\@evenhead{}% + \renewcommand{\@oddfoot}{\hfill\normalfont\textrm\thepage\hfill}% + \let\evenfoot\@oddfoot% } \newcommand{\ps@verifiche}{% -\renewcommand\@oddhead{ -\ifodd\thepage\parbox{\textwidth}{\headerfont\@header}\fi}% + \renewcommand\@oddhead{ + \ifodd\thepage\parbox{\textwidth}{\headerfont\@header}\fi}% + \renewcommand{\@oddfoot}{\hfill\normalfont\textrm\thepage\hfill}% + \let\evenfoot\@oddfoot% } %%print headings \newcommand{\printheading}{% @@ -261,6 +273,7 @@ {\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}% + {\ifdefined\@subtitle\ifsubtitle\vspace{\baselineskip}\subtitlefont{\@subtitle}\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}% @@ -491,6 +504,19 @@ \parbox[#1]{#2}{#3}% \@ifnextchar\makecolumn{\hspace*{\columnseparation}}{}% }% +\NewDocumentEnvironment{multitest}{O{1} +b}{ + \newcounter{multitestcounter} + \toks1={\foreach \i in {1,...,#1}} + \the\toks1{% + \setcounter{multitestcounter}{\i}% + \setcounter{page}{1}% + \setcounter{exercisenumber}{0}% + \pgfmathsetseed{\i}% + #2% + \clearpage% + }% +}{} + \endinput %% %% End of file `verifiche.sty'. |