texlive[53722] Master/texmf-dist: verifica (8feb20)
commits+karl at tug.org
commits+karl at tug.org
Sat Feb 8 23:18:32 CET 2020
Revision: 53722
http://tug.org/svn/texlive?view=revision&revision=53722
Author: karl
Date: 2020-02-08 23:18:32 +0100 (Sat, 08 Feb 2020)
Log Message:
-----------
verifica (8feb20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/verifica/README
trunk/Master/texmf-dist/doc/latex/verifica/example1.pdf
trunk/Master/texmf-dist/doc/latex/verifica/example1.tex
trunk/Master/texmf-dist/doc/latex/verifica/example2.pdf
trunk/Master/texmf-dist/doc/latex/verifica/example2.tex
trunk/Master/texmf-dist/doc/latex/verifica/example3.pdf
trunk/Master/texmf-dist/doc/latex/verifica/example3.tex
trunk/Master/texmf-dist/doc/latex/verifica/example4.pdf
trunk/Master/texmf-dist/doc/latex/verifica/example4.tex
trunk/Master/texmf-dist/doc/latex/verifica/example5.pdf
trunk/Master/texmf-dist/doc/latex/verifica/example5.tex
trunk/Master/texmf-dist/doc/latex/verifica/ver-doc.sty
trunk/Master/texmf-dist/doc/latex/verifica/verifica-template.tex
trunk/Master/texmf-dist/doc/latex/verifica/verifica.pdf
trunk/Master/texmf-dist/source/latex/verifica/verifica.dtx
trunk/Master/texmf-dist/tex/latex/verifica/verifica.cls
Modified: trunk/Master/texmf-dist/doc/latex/verifica/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/README 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/README 2020-02-08 22:18:32 UTC (rev 53722)
@@ -1,4 +1,4 @@
-The verifica document class v1.1 2020/01/19
+The verifica document class v1.2 2020/02/07
---------------------------------------------------------------------
Riccardo Dossena Email: riccardo.dossena at gmail.com
---------------------------------------------------------------------
@@ -77,7 +77,7 @@
tabto, tabularx, lineno, bm, cmbright.
If the option "14pt" is set, it loads the extarticle document class.
-2020/01/19
+2020/02/07
Riccardo Dossena
---------------------------------------------------------------------
If you have any ideas, questions, suggestions, feedback or bugs to
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/example1.tex 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/example1.tex 2020-02-08 22:18:32 UTC (rev 53722)
@@ -11,7 +11,7 @@
\disciplina{matematica}
\istituto{Liceo ``G. Novello'' -- Codogno}
\classe{5\tsa B}
-\data{19 gennaio 2020}
+\data{7 febbraio 2020}
\tempo{60 minuti}
\intestazione
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example2.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/example2.tex 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/example2.tex 2020-02-08 22:18:32 UTC (rev 53722)
@@ -10,7 +10,7 @@
\disciplina{matematica}
\istituto{Liceo ``G. Novello'' -- Codogno}
\classe{5\tsa B}
-\data{19 gennaio 2020}
+\data{7 febbraio 2020}
\tempo{60 minuti}
\intestazione
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example3.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example3.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/example3.tex 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/example3.tex 2020-02-08 22:18:32 UTC (rev 53722)
@@ -10,7 +10,7 @@
\disciplina{matematica}
\istituto{Liceo ``G. Novello'' -- Codogno}
\classe{5\tsa B}
-\data{19 gennaio 2020}
+\data{7 febbraio 2020}
\tempo{60 minuti}
\intestazione
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example4.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example4.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/example4.tex 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/example4.tex 2020-02-08 22:18:32 UTC (rev 53722)
@@ -12,7 +12,7 @@
\disciplina{matematica e fisica}
\istituto{Liceo ``G. Novello'' -- Codogno}
\classe{4\tsa C}
-\data{19 gennaio 2020}
+\data{7 febbraio 2020}
\tempo{55 minuti}
\lineanome
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example5.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/verifica/example5.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/example5.tex 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/example5.tex 2020-02-08 22:18:32 UTC (rev 53722)
@@ -11,7 +11,7 @@
\disciplina{matematica e fisica}
\istituto{Liceo ``G. Novello'' -- Codogno}
\classe{4\tsa C}
-\data{19 gennaio 2020}
+\data{7 febbraio 2020}
\tempo{55 minuti}
\lineanome
Modified: trunk/Master/texmf-dist/doc/latex/verifica/ver-doc.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/ver-doc.sty 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/ver-doc.sty 2020-02-08 22:18:32 UTC (rev 53722)
@@ -18,7 +18,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ver-doc}
- [2020/01/19 v1.1 Riccardo Dossena]
+ [2020/02/07 v1.2 Riccardo Dossena]
\newif\if at blacktriangleright
\newif\if at intestrighe
\newif\if at intestsemplice
@@ -307,6 +307,16 @@
~\mbox{#1}%
\fi}]%
}
+\newcommand{\puntiman}[2][\@nil]{%
+ \hfill%
+ [\textsc{\@punteggio~#2%
+ \def\tmp{#1}%
+ \ifx\tmp\@nnil
+ \relax
+ \else
+ ~\mbox{#1}%
+ \fi}]%
+}
\newcommand{\punti at dx}[2][\@nil]{%
\hfill\vphantom{,}\nolinebreak[1]\null~\hfill%
[\textsc{#2~\@punteggio%
@@ -317,8 +327,22 @@
~\mbox{#1}%
\fi}]%
}
-\def\puntiadestra{\renewcommand{\punti}{\punti at dx}}
-\def\puntipt{\renewcommand{\@punteggio}{Pt.}}
+\newcommand{\puntiman at dx}[2][\@nil]{%
+ \hfill%
+ [\textsc{#2~\@punteggio%
+ \def\tmp{#1}%
+ \ifx\tmp\@nnil
+ \relax
+ \else
+ ~\mbox{#1}%
+ \fi}]%
+}
+\def\puntiadestra{%
+ \renewcommand{\punti}{\punti at dx}
+ \renewcommand{\puntiman}{\puntiman at dx}
+}
+\def\puntipt{%
+ \renewcommand{\@punteggio}{Pt.}}
\newcommand{\totpunti}[1][/10 + 1]{%
\vfill
\begin{flushright}
Modified: trunk/Master/texmf-dist/doc/latex/verifica/verifica-template.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/verifica/verifica-template.tex 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/doc/latex/verifica/verifica-template.tex 2020-02-08 22:18:32 UTC (rev 53722)
@@ -13,7 +13,7 @@
%\disciplina{matematica}
%\istituto{Liceo ``G. Novello'' -- Codogno}
%\classe{5\tsa W}
-%\data{19 gennaio 2020}
+%\data{7 febbraio 2020}
%\tempo{2 ore}
%\lineanome % stampa una linea punteggiata per scrivere il nome del candidato
Modified: trunk/Master/texmf-dist/doc/latex/verifica/verifica.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/verifica/verifica.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/verifica/verifica.dtx 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/source/latex/verifica/verifica.dtx 2020-02-08 22:18:32 UTC (rev 53722)
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% verifica.cls. Version: 1.1 - January 19, 2020.
+% verifica.cls. Version: 1.2 - February 7, 2020.
% Author: Riccardo DOSSENA <riccardo.dossena at gmail.com>
%
% Questa è una classe per comporre le verifiche
@@ -29,7 +29,7 @@
%<class>\ProvidesClass{verifica}
%<package>\ProvidesPackage{ver-doc}
%<*class|package>
- [2020/01/19 v1.1 Riccardo Dossena]
+ [2020/02/07 v1.2 Riccardo Dossena]
%</class|package>
%
%<*driver>
@@ -86,7 +86,7 @@
morekeywords=[3]{intestazione,tipologia,disciplina,istituto,
data,classe,tempo,intestazionesemplice,
intestazionerighe,dss,vf,verofalso,fattorevf,punti,
- puntiadestra,puntipt,totpunti,vartotpunti,
+ puntiadestra,puntipt,totpunti,vartotpunti,puntiman,
riga,dotword,dotrule,ddfrac,numfrac,denfrac,
arc,vararc,eps,del,Del,R,N,Z,Q,tsa,tso,
restorephi,restoretheta,abs,labeltest,labelbox,
@@ -132,7 +132,7 @@
%</driver>
% \fi
%
-% \CheckSum{0}
+% \CheckSum{806}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -179,7 +179,8 @@
% \DoNotIndex{\nolinebreak,\null,\textsc,\ifx,\tmp,\mbox,\vfill,\LARGE,\Huge}
% \DoNotIndex{\enitkv at key,\item,\@ifpackageloaded,\@ifpackagewith}
%
-% \title{La classe \pack{verifica}}
+% \title{La classe \pack{verifica}\thanks{Versione \fileversion\ del
+% \filedate.}}
% \author{Riccardo Dossena\thanks{%
% E-mail: \href{mailto:riccardo.dossena at gmail.com}%
% {\ttfamily riccardo.dossena at gmail.com}}}
@@ -1474,6 +1475,57 @@
%
% \makeatother
%
+% \subsection{Un piccolo bug del punteggio (e soluzione)}
+%
+% Se la prima parola di una riga dove si intende stampare il punteggio è
+% sillabata, il comando \lstinline|\punti| sposta il punteggio nella riga
+% vuota successiva, quindi in una posizione non corretta, come mostra il
+% prossimo esempio.
+%\iffalse
+%<*example>
+%\fi
+\begin{lstlisting}
+\begin{esercizi}
+ \item Scrivi in forma implicita l'equazione della retta parallela
+ all'asse~$x$ e precipitevolissimevolmente passante
+ per $P(0, 1)$. \punti{12}
+\end{esercizi}
+\end{lstlisting}
+%\iffalse
+%</example>
+%\fi
+% \begin{riquadro}
+% \begin{esercizi}
+% \item Scrivi in forma implicita l'equazione della retta parallela
+% all'asse~ $x$ e precipitevolissimevolmente passante per $P(0, 1)$.
+% \punti{12}
+% \end{esercizi}
+% \end{riquadro}
+% Qualora si presentasse una situazione del genere, è possibile risolvere
+% sostituendo localmente al comando \lstinline|\punti| il comando
+% \lstinline|\puntiman| (che sta per ``punteggio manuale'' e ha la stessa
+% sintassi di \lstinline|\punti|).
+%\iffalse
+%<*example>
+%\fi
+\begin{lstlisting}
+\begin{esercizi}
+ \item Scrivi in forma implicita l'equazione della retta parallela
+ all'asse~$x$ e precipitevolissimevolmente passante
+ per $P(0, 1)$. \puntiman{12}
+\end{esercizi}
+\end{lstlisting}
+%\iffalse
+%</example>
+%\fi
+% \begin{riquadro}
+% \begin{esercizi}
+% \item Scrivi in forma implicita l'equazione della retta parallela
+% all'asse~$x$ e precipitevolissimevolmente passante per $P(0, 1)$.
+% \puntiman{12}
+% \end{esercizi}
+% \end{riquadro}
+%
% \subsection{Il riquadro del punteggio totale}
%
% Se lo si desidera, è possibile stampare un riquadro in cui inserire il
@@ -2512,6 +2564,27 @@
}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\puntiman}
+% \changes{v1.2}{2020/02/07}{Added the \cs{puntiman} command, which prints the
+% score at the end of the line when the \cs{punti} command fails.}
+% Unfortunately, there is a bug: if the first word of the line where the
+% score has to be printed is part of a hyphenated word, the score will not
+% be printed on the same line, but on the next (empty). To solve
+% this issue ``manually'', the \cs{puntiman} command can be used instead of
+% \cs{punti}.
+% \begin{macrocode}
+\newcommand{\puntiman}[2][\@nil]{%
+ \hfill%
+ [\textsc{\@punteggio~#2%
+ \def\tmp{#1}%
+ \ifx\tmp\@nnil
+ \relax
+ \else
+ ~\mbox{#1}%
+ \fi}]%
+}
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\puntiadestra}
% This command can be placed anywhere in the document and simply prints
% the word ``Punti'' after the score.
@@ -2526,7 +2599,20 @@
~\mbox{#1}%
\fi}]%
}
-\def\puntiadestra{\renewcommand{\punti}{\punti at dx}}
+\newcommand{\puntiman at dx}[2][\@nil]{%
+ \hfill%
+ [\textsc{#2~\@punteggio%
+ \def\tmp{#1}%
+ \ifx\tmp\@nnil
+ \relax
+ \else
+ ~\mbox{#1}%
+ \fi}]%
+}
+\def\puntiadestra{%
+ \renewcommand{\punti}{\punti at dx}
+ \renewcommand{\puntiman}{\puntiman at dx}
+}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\puntipt}
@@ -2533,7 +2619,8 @@
% This command can also be placed anywhere in the document and replaces
% the word ``Punti'' with the abbreviation ``Pt.''
% \begin{macrocode}
-\def\puntipt{\renewcommand{\@punteggio}{Pt.}}
+\def\puntipt{%
+ \renewcommand{\@punteggio}{Pt.}}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\totpunti}
Modified: trunk/Master/texmf-dist/tex/latex/verifica/verifica.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/verifica/verifica.cls 2020-02-08 22:18:19 UTC (rev 53721)
+++ trunk/Master/texmf-dist/tex/latex/verifica/verifica.cls 2020-02-08 22:18:32 UTC (rev 53722)
@@ -18,7 +18,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{verifica}
- [2020/01/19 v1.1 Riccardo Dossena]
+ [2020/02/07 v1.2 Riccardo Dossena]
\newif\if at blacktriangleright
\newif\if at intestrighe
\newif\if at intestsemplice
@@ -332,6 +332,16 @@
~\mbox{#1}%
\fi}]%
}
+\newcommand{\puntiman}[2][\@nil]{%
+ \hfill%
+ [\textsc{\@punteggio~#2%
+ \def\tmp{#1}%
+ \ifx\tmp\@nnil
+ \relax
+ \else
+ ~\mbox{#1}%
+ \fi}]%
+}
\newcommand{\punti at dx}[2][\@nil]{%
\hfill\vphantom{,}\nolinebreak[1]\null~\hfill%
[\textsc{#2~\@punteggio%
@@ -342,8 +352,22 @@
~\mbox{#1}%
\fi}]%
}
-\def\puntiadestra{\renewcommand{\punti}{\punti at dx}}
-\def\puntipt{\renewcommand{\@punteggio}{Pt.}}
+\newcommand{\puntiman at dx}[2][\@nil]{%
+ \hfill%
+ [\textsc{#2~\@punteggio%
+ \def\tmp{#1}%
+ \ifx\tmp\@nnil
+ \relax
+ \else
+ ~\mbox{#1}%
+ \fi}]%
+}
+\def\puntiadestra{%
+ \renewcommand{\punti}{\punti at dx}
+ \renewcommand{\puntiman}{\puntiman at dx}
+}
+\def\puntipt{%
+ \renewcommand{\@punteggio}{Pt.}}
\newcommand{\totpunti}[1][/10 + 1]{%
\vfill
\begin{flushright}
More information about the tex-live-commits
mailing list.