summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/verifiche
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-10 21:19:50 +0000
committerKarl Berry <karl@freefriends.org>2022-02-10 21:19:50 +0000
commitffee07bd7efd5b8cdf09d3d335fd249e8087b035 (patch)
tree50166c0f9f1521bddbc7e85a7c98f8f2e57bd804 /Master/texmf-dist/tex/latex/verifiche
parentd9fa6cd315eb672701816cdbafe0371e4bb55c3f (diff)
verifiche (10feb22)
git-svn-id: svn://tug.org/texlive/trunk@61973 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/verifiche')
-rw-r--r--Master/texmf-dist/tex/latex/verifiche/verifiche.sty55
1 files changed, 41 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/verifiche/verifiche.sty b/Master/texmf-dist/tex/latex/verifiche/verifiche.sty
index 74a05432184..dd6f1d5212a 100644
--- a/Master/texmf-dist/tex/latex/verifiche/verifiche.sty
+++ b/Master/texmf-dist/tex/latex/verifiche/verifiche.sty
@@ -6,7 +6,7 @@
%%
%% verifiche.dtx (with options: `package')
%% This is a generated file.
-%% Copyright (C) 2021 by Francesco Raccanello
+%% Copyright (C) 2020 - 2022 by Francesco Raccanello
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later
@@ -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/08/18 v4.2 .dtx verifiche file]
+\ProvidesPackage{verifiche} [2022/02/10 v4.3 .dtx verifiche file]
\RequirePackage{xparse}
\RequirePackage{xkeyval}
\RequirePackage{amsmath}
@@ -37,7 +37,6 @@
per-mode=symbol-or-fraction,
separate-uncertainty
}
-\setlength\parindent{0pt}
%%newif
\newif\ifsol
\newif\ifinstitute\institutetrue
@@ -80,17 +79,45 @@
\setlength{\classrulerlength}{.1\textwidth}
\setlength{\daterulerlength}{.15\textwidth}
\setlength{\ptrulerlength}{1cm}
+\newcommand{\@durationlabeldefault}{Time:}%
+\newcommand{\@asyearlabeldefault}{School year}%
+\newcommand{\headercandidatenamelabel}{Student name}%
+\newcommand{\headerclasslabel}{Class}%
+\newcommand{\headerdatelabel}{Date}%
+\newcommand{\exerciselabel}{Exercise}%
+\newcommand{\solutionlabel}{Solution}%
+\@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}%
+ }}{%
+\@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}%
+ }}{}
+ }%
%%macro and environment
%%global variable
\newcommand{\institute}[1]{%
\gdef\@institute{#1}}
-\newcommand{\duration}[2][Tempo della prova:]{%
+\newcommand{\duration}[2][\@durationlabeldefault]{%
\gdef\@durationpreamble{#1}\gdef\@duration{#2}}
\newcommand{\testtype}[1]{%
\gdef\@testtype{#1}}
\newcommand{\instruction}[1]{%
\gdef\@instruction{#1}}
-\newcommand{\asyear}[2][Anno scolastico]{%
+\newcommand{\asyear}[2][\@asyearlabeldefault]{%
\gdef\@asyearpreamble{#1}\gdef\@asyear{#2}}
%%fonts and aspects
\newcommand{\headerfont}[1]{%
@@ -107,10 +134,7 @@
\sffamily#1}
\newcommand{\durationfont}[1]{%
\hspace*{\fill}\@durationpreamble\space\bfseries #1\hspace*{\fill}}
-\newcommand{\headercandidatenamelabel}{Nome e Cognome}
-\newcommand{\headerclasslabel}{Classe}
-\newcommand{\headerdatelabel}{Data}
-\newcommand{\@header@candidatename}{\headercandidatenamelabel\space\underline{\hspace{\candidatenamerulerlength}}}
+\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}
@@ -199,7 +223,7 @@
}
%%ambiente esercizio
-\define@key{esercizio}{label}[Quesito]{%
+\define@key{esercizio}{label}[\exerciselabel]{%
\def\tempeserciziolabel{#1}}%
\define@key{esercizio}{diff}[none]{
\def\diffstar{\hfill\foreach \i in {1,..., #1}{\diffsymb}}%
@@ -218,7 +242,7 @@
\fi}%
\newcommand{\exercisetitle}{%
\ifdefined\tempeserciziolabel\tempeserciziolabel%
- \else \eserciziolabel\fi%
+ \else \exerciselabel\fi%
}
\newsavebox{\box@marginexercise}
\newcommand{\exercisemargin}{%
@@ -246,7 +270,8 @@
{\noindent\bfseries\exercisetitle\ifexercisesnumbered\space\theexercisenumber\fi}%
\ifshowmarginexercise\exercisemargin\fi%
\par% newline after label
- \nobreak\noindent\ignorespaces#2%body of the environment
+ \setlength\parindent{0pt}%no parindent
+ \nobreak\ignorespaces#2%body of the environment
}{%
\par%
\ignorespacesafterend%
@@ -258,7 +283,8 @@
\par\addvspace{\baselineskip}{\noindent\bfseries\exercisetitle}%
\ifshowmarginexercise\exercisemargin\fi%
\par% newline after label
- \nobreak\noindent\ignorespaces#2% body of the environment
+ \setlength\parindent{0pt}%no parindent
+ \nobreak\ignorespaces#2% body of the environment
}{%
\par%
\ignorespacesafterend
@@ -273,8 +299,9 @@
\NewDocumentEnvironment{soluzione}{+b}{%
\ifsol%
\par\addvspace{\baselineskip}%
- {\noindent\bfseries Soluzione}%
+ {\noindent\bfseries \solutionlabel}%
\par\nobreak\noindent\ignorespaces%
+ \setlength\parindent{0pt}%no parindent
\solutionfont #1%
\fi%
}{%