summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/eq-pin2corr/examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-05 21:11:32 +0000
committerKarl Berry <karl@freefriends.org>2021-06-05 21:11:32 +0000
commitf963a899e682e2f4b5b24d37c136e0684b5101ff (patch)
treef0c540fe5bce0c1d5570e57ddf219bc491dd66bf /Master/texmf-dist/doc/latex/eq-pin2corr/examples
parent78c395ca6a30c6898aba7674a4cdf2f07821e9e4 (diff)
eq-pin2corr (5jun21)
git-svn-id: svn://tug.org/texlive/trunk@59477 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/eq-pin2corr/examples')
-rw-r--r--Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.pdfbin83433 -> 78863 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.tex18
-rw-r--r--Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-p2c.pdfbin0 -> 141525 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-p2c.tex (renamed from Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-pin-to-correct.tex)6
-rw-r--r--Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-pin-to-correct.pdfbin171609 -> 0 bytes
5 files changed, 18 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.pdf b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.pdf
index c1920bddba4..20b55a7bd9c 100644
--- a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.pdf
+++ b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.tex b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.tex
index 29422f836b8..3e41710a695 100644
--- a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.tex
+++ b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/get-hash-string.tex
@@ -3,6 +3,7 @@
\usepackage{eforms}
%\previewOn\pmpvOn
+\def\cs#1{\texttt{\eqbs#1}}
\begin{defineJS}{\btnHashStrAct}
var resp=app.response({
@@ -17,6 +18,10 @@ if (resp !=null) {
f.value=resp;
f=this.getField("txtdeclPINId");
f.value = "\\\\declPINId{"+resp+"}{"+hashStr+"}";
+ f=this.getField("txtdeclPINId");
+ var g=this.getField("txtdeclRePINId");
+ g.value = "\\\\declRePINId{"+resp+"}{"+hashStr+"}";
+
}
\end{defineJS}
@@ -30,10 +35,13 @@ if (resp !=null) {
Push the button and enter the four digit number you just created into the response box.
When you press the \textsf{OK} button,
the hash string of the PIN number you entered appears in the text field. The PIN number goes in as the
-first argument of \verb|\declPINId|, and the hash string is the second argument of \verb|\declPINId|; eg,
+first argument of \verb|\declPINId| (\verb|\declRePINId|), and the hash string is the second argument of
+\verb|\declPINId| (\verb|\declRePINId|); eg,
\begin{verbatim}
-\declPINId{5243}{02JRVZdRgYgCA-Rtje8VkD} % PIN number, hash string
+\declPINId{5243}{02JRVZdRgYgCA-Rtje8VkD} % PIN/hash string (default)
+\declRePINId{1234}{By9mbLF0NJMA2sN2x4D0VB} % PIN/hash string (default)
\end{verbatim}
+Normally, the PIN numbers for \cs{declPINId} and \cs{declRePINId} are different.\medskip
\textbf{Brief Instructions.} Press \textsf{Push}, enter your PIN, press \textsf{OK}.\medskip\par\noindent
\pushButton[\CA{Push}\AAmouseup{\btnHashStrAct}]{btn}{}{11bp}\olBdry
@@ -44,9 +52,13 @@ Save these two values as arguments of \verb|\declPINId| and place in the preambl
quiz document.\medskip
\noindent
-Copy to quiz document: \textField[\textSize{8}]{txtdeclPINId}{3in}{13bp}\olBdry
+For \cs{declPINId}, copy to quiz document:\\[6pt]\null
+ \hspace{15pt}\textField[\textSize{8}]{txtdeclPINId}{3in}{13bp}\vcgBdry[6pt]
+For \cs{declRePINId}, copy to quiz document:\\[6pt]\null
+ \hspace{15pt}\textField[\textSize{8}]{txtdeclRePINId}{3in}{13bp}\vcgBdry[6pt]
\pushButton[\CA{Reset}\AAmouseup{this.resetForm();}]{reset}{}{13bp}
+
\end{document}
diff --git a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-p2c.pdf b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-p2c.pdf
new file mode 100644
index 00000000000..18ec5466cb7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-p2c.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-pin-to-correct.tex b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-p2c.tex
index b084b55c5ab..23642d4d6bf 100644
--- a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-pin-to-correct.tex
+++ b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-p2c.tex
@@ -1,5 +1,5 @@
\documentclass{article}
-\usepackage[designv,forcolorpaper]{web}
+\usepackage[designv]{web} %,forcolorpaper
\usepackage{exerquiz}[2021/02/17]
\usepackage[!showscore]{eq-pin2corr}
@@ -27,8 +27,8 @@
\section*{PIN Security for Quizzes}
-This demo file implements a feature that prevents that student from
-correcting his/her own quiz. The \uif{Correct} button appears at the end of
+This demo file implements a feature that prevents students from
+correcting their own quiz. The \uif{Correct} button appears at the end of
the quiz, but a PIN number is needed for it to execute. For the purpose of
this demo files, the PIN number is given to the right of the \uif{Correct}
button; of course, the PIN is not given to the student. \verb~:-{)~ Test it
diff --git a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-pin-to-correct.pdf b/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-pin-to-correct.pdf
deleted file mode 100644
index 1fca51e00af..00000000000
--- a/Master/texmf-dist/doc/latex/eq-pin2corr/examples/qz-pin-to-correct.pdf
+++ /dev/null
Binary files differ