summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-18 20:46:53 +0000
committerKarl Berry <karl@freefriends.org>2021-08-18 20:46:53 +0000
commitb0fee827be0d99a89b05aa57264affdbbd929e48 (patch)
tree77ebaf5f8d03dde1a0628985d506ad64191a6786 /Master/texmf-dist/tex/latex
parentf90e4a44423e080743d7cd2f77163d9bf3abfcef (diff)
verifiche (18aug21)
git-svn-id: svn://tug.org/texlive/trunk@60269 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/verifiche/verifiche.sty20
1 files changed, 14 insertions, 6 deletions
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%
}%
}