summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/eq-fetchbbl/examples/doc-exmpls.tex
blob: d6ab8d986026202f7cfc198ddde5ad25071131f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
\documentclass[11pt]{article}
\usepackage{web}
\screensize{11in}{8.5in}
\margins{1in}{1in}{1in}{1in}
\usepackage{exerquiz}[2021/02/15]
\usepackage[ignorecfg,useverses=none]{fetchbibpes}[2021/03/08]
\usepackage{eq-fetchbbl}
\addtoBibles{NKJV}

\title{Matching-type questions for a Quiz\texorpdfstring{\\[1ex]}{: }Bible Passages with their Verses}
\author{D. P. Story}
\subject{Matching-type questions}
\date{\today}
\keywords{AcroTeX, LaTeX, quiz, matching, randomized}
\version{\url{http://blog.acrotex.net}}
\versionLabel{}
\revisionLabel{Published:}
\university
{%
      The {Acro\negthinspace\TeX} Blog
}
\email{dpstory@acrotex.net}

\useBeginQuizButton[\CA{Start}\textColor{blue}]
\useEndQuizButton[\CA{End}\textColor{blue}]

\def\cs#1{\texttt{\eqbs#1}}
\let\pkg\textsf
\let\env\texttt

\begin{declareBVs*}
\BV(Mat 10:26 NKJV) Therefore do not fear them. For there is nothing covered that will not be
    revealed, and hidden that will not be known.\null
\BV(Mar 1:11 NKJV) Then a voice came from heaven, \textcolor{red}{``You are My beloved Son, in whom I am well
    pleased.''}\null
\BV(Luk 12:2 NKJV) For there is nothing covered that will not be revealed, nor hidden that
    will not be known.\null
\BV(Act 10:15 NKJV) dummy entry\null
\end{declareBVs*}

\useBookStyle{abbr=none,from=NKJV}

\PTsHook{($\eqPTs^{\scriptsize\mbox{pts}}$)}

\begin{document}

\maketitle

\section*{Examples that appear in the documentation}

Match the Bible quotations in the left column with their reference passages.
Quotations are taken from the \textsf{New King James Version (NKJV)}.

\section*{First Example}

\begin{quiz}{q1}
Match the quotations (\textsf{NKJV)} with the Bible references on the right.
Each problem is worth 2 points; passing is 100\%.

The \textsf{Ans} button (\cs{CorrAnsButton}) appears in its default location
on the last line and up against the right margin. This may be a problem if
one or more Bible passages ends close to the right margin; the use of
\cs{adjCAB} or of \cs{priorRBT} may be needed.


\noindent
\begin{minipage}[t]{.75\linewidth}
%\useNumbersOn
\begin{questions}
\begin{BblPsg}
  \item\PTs*{2}\qFP{Mat 10:26}
  \item\PTs*{2}\qFP{Mar 1:11}
  \item\PTs*{2}\qFP{Luk 12:2}
\end{BblPsg}
\end{questions}
\end{minipage}
\hfill
\begin{minipage}[t][0pt]{.25\linewidth-1em}
\begin{questions}[itemsep={0pt},labelwidth={.5em}]
\begin{BblVrs}
  \item\qFV{Act 10:15}
  \item\qFV{Luk 12:2}
  \item\qFV{Mar 1:11}
  \item\qFV{Eph 6:1}
  \item\qFV{Mat 10:26}
  \item\qFV{Joh 6:20}
\end{BblVrs}
\end{questions}
\end{minipage}\hfill
\par\medskip
\end{quiz}\quad\PointsField\currQuiz\olBdry\CorrButton\currQuiz\cgBdry[6pt]
Answers: \AnswerField[\Q{1}\textColor{blue}\rectW{\RBTWidth}]{\currQuiz}


\section*{Second Example}

\begin{quiz*}{q2}
Match the quotations (\textsf{NKJV)} with the Bible references on the right.
Each problem is worth 2 points; passing is 100\%.

In this example, \cs{useNumbersOn} is declared. An additional non-matching
question is included as well. The command \cs{adjCAB} positions the
\textsf{Ans} button in the space between the mini-pages, aligned with the
last line.

% get the width of  \CorrAnsButton to determine how much space between
% mini-pages is needed.
\setlength{\eflength}{\widthof{\enspace\CorrAnsButton{A}\enspace}}
\useMCCircles

\noindent
\begin{minipage}[t]{.75\linewidth-\eflength}
\useNumbersOn
\adjCAB{\makebox[0pt][l]{\enspace#2\enspace}}
\everyRespBoxTxt{\textColor{blue}}
\begin{questions}
\begin{BblPsg}
  \item\PTs*{2}\qFP{Mat 10:26}
  \item\PTs*{2}\qFP{Mar 1:11}
  \item\PTs*{2}\qFP{Luk 12:2}
\end{BblPsg}
\item\PTs*{2} The quotation ``Treasures of wickedness profit nothing, But
    righteousness delivers from death'' is a verse from which of the
    following books?
\begin{answers}{4}
  \bChoices
    \Ans0 Psalms\eAns
    \Ans0 Isaiah\eAns
    \Ans1 Proverbs\eAns
    \Ans0 Jonah\eAns
    \eChoices
\end{answers}
\end{questions}
\end{minipage}
\hfill
\begin{minipage}[t]{.25\linewidth}
\begin{questions}[itemsep={0pt},labelwidth={1em}]
\begin{BblVrs}
  \item\qFV{Act 10:15}
  \item\qFV{Luk 12:2}
  \item\qFV{Mar 1:11}
  \item\qFV{Eph 6:1}
  \item\qFV{Mat 10:26}
  \item\qFV{Joh 6:20}
\end{BblVrs}
\end{questions}
\end{minipage}\hfil
\par\medskip
\end{quiz*}\quad\PointsField\currQuiz\olBdry\CorrButton\currQuiz\cgBdry[6pt]
Answers: \AnswerField[\Q{1}\textColor{blue}\rectW{\RBTWidth}]{\currQuiz}

\newpage

\section*{Third Example}

\begin{quiz*}{q3}
Match the quotations (\textsf{NKJV)} with the Bible references on the right.
Each problem is worth 2 points; passing is 100\%.

\cs{useNumbersOff} is declared and \cs{priorRBT} is used to position the `\textsf{Ans}'
button aligned with the first line.

\setlength{\eflength}{\widthof{\enspace\CorrAnsButton{A}\enspace}} %\previewOn
\useMCCircles

\noindent
\begin{minipage}[t]{.75\linewidth-\eflength}
\useNumbersOff
\priorRBT{\makebox[0pt][l]{\hspace{\RBTWidth}\hspace{\labelsep}\hspace{\linewidth}\enspace#1\enspace}}
\adjCAB{}
\everyRespBoxTxt{\textColor{blue}}
\begin{questions}
\begin{BblPsg}
  \item\PTs*{2}\qFP{Mat 10:26}
  \item\PTs*{2}\qFP{Mar 1:11}
  \item\PTs*{2}\qFP{Luk 12:2}
\end{BblPsg}

\end{questions}
\end{minipage}
\hfill
\begin{minipage}[t]{.25\linewidth}
\begin{questions}[itemsep={0pt},labelwidth={1em}]
\begin{BblVrs}
  \item\qFV{Act 10:15}
  \item\qFV{Luk 12:2}
  \item\qFV{Mar 1:11}
  \item\qFV{Eph 6:1}
  \item\qFV{Mat 10:26}
  \item\qFV{Joh 6:20}
\end{BblVrs}
\end{questions}
\end{minipage}\hfil
\par\medskip
\end{quiz*}\quad\PointsField\currQuiz\olBdry\CorrButton\currQuiz\cgBdry[6pt]
Answers: \AnswerField[\Q{1}\textColor{blue}\rectW{\RBTWidth}]{\currQuiz}

\begin{quiz*}{q4}
Match the quotations (\textsf{NKJV)} with the Bible references on the right.
Each problem is worth 2 points; passing is 100\%.

\cs{useNumbersOn} is declared and \cs{priorRBT} is used to position the \textsf{Ans}
button between mini-pages.

\setlength{\eflength}{\widthof{\enspace\CorrAnsButton{A}\enspace}}
\useMCCircles

\noindent
\begin{minipage}[t]{.75\linewidth-\eflength}
\useNumbersOn
\priorRBT{\makebox[0pt][l]{\hspace{\linewidth}\enspace#1\enspace}}
\adjCAB{}
\everyRespBoxTxt{\textColor{blue}}
\begin{questions}
\begin{BblPsg}
  \item\PTs*{2}\qFP{Mat 10:26}
  \item\PTs*{2}\qFP{Mar 1:11}
  \item\PTs*{2}\qFP{Luk 12:2}
\end{BblPsg}

\end{questions}
\end{minipage}
\hfill
\begin{minipage}[t]{.25\linewidth}
\begin{questions}[itemsep={0pt},labelwidth={1em}]
\begin{BblVrs}
  \item\qFV{Act 10:15}
  \item\qFV{Luk 12:2}
  \item\qFV{Mar 1:11}
  \item\qFV{Eph 6:1}
  \item\qFV{Mat 10:26}
  \item\qFV{Joh 6:20}
\end{BblVrs}
\end{questions}
\end{minipage}\hfil
\par\medskip
\end{quiz*}\quad\PointsField\currQuiz\olBdry\CorrButton\currQuiz\cgBdry[6pt]
Answers: \AnswerField[\Q{1}\textColor{blue}\rectW{\RBTWidth}]{\currQuiz}

\newpage

\section*{Other Ideas for placing auxiliary controls}

The positioning of the \textsf{Ans} button can be a problem. There are two other
ideas that occurred to me. These ideas are illustrated in the quiz below.

\begin{quiz*}{q5}
Match the quotations (\textsf{NKJV)} with the Bible references on the right.
Each problem is worth 2 points; passing is 100\%.

We return to the ``natural'' spacing between mini-pages of the
\textcolor{blue}{First Example}. In the three items below, we try different
strategies for placing the \textsf{Ans} button.

\setlength{\eflength}{\widthof{\enspace\CorrAnsButton{A}\enspace}}
\useMCCircles

\noindent
\begin{minipage}[t]{.75\linewidth}
\begin{questions}
\everyRespBoxTxt{\textColor{blue}}
\useNumbersOff
\adjCAB{}
\begin{BblPsg}
\priorRBT{\makebox[0pt][r]{#1\hskip\marginparsep}}
  \item\PTs*{2}\qFP{Mat 10:26}
\end{BblPsg}
\useNumbersOn
\priorRBT{\makebox[0pt][r]{#1\hskip\labelwidth\hskip\marginparsep\efKern{1bp}{0pt}}}
\begin{BblPsg}
  \item\PTs*{2}\qFP{Mar 1:11}
\end{BblPsg}
\useNumbersOff
\priorRBT{}
\priorPsg{\makebox[0pt][l]{#1}}
\begin{BblPsg}
  \item\PTs*{2}\qFP{Luk 12:2}
\end{BblPsg}
\end{questions}
\end{minipage}
\hfill
\begin{minipage}[t][0pt]{.25\linewidth-1em}
\begin{questions}[itemsep={0pt},labelwidth={.5em}]
\begin{BblVrs}
  \item\qFV{Act 10:15}
  \item\qFV{Luk 12:2}
  \item\qFV{Mar 1:11}
  \item\qFV{Eph 6:1}
  \item\qFV{Mat 10:26}
  \item\qFV{Joh 6:20}
\end{BblVrs}
\end{questions}
\end{minipage}\hfill
\par\medskip

\end{quiz*}\quad\PointsField\currQuiz\olBdry\CorrButton\currQuiz\cgBdry[6pt]
Answers: \AnswerField[\Q{1}\textColor{blue}\rectW{\RBTWidth}]{\currQuiz}

\section*{Customizations of the quiz}

In this section, customizations of the matching-type quiz are explored. We
redefine the \env{BblVrs} environment, changing from capital letters to
numbers; to avoid confusion, \cs{useNumbersOff} is declared. All fonts are
changed to bold and red, look for changes in the source file involving
\textsf{HeBo} (Helvetica-Bold) and the color red. Also, sans serif is used
for the numbering of the verse references.

\makeatletter
\renewenvironment{BblVrs}{%
%  \renewcommand{\theeqquestionnoi}{\Alph{eqquestionnoi}}%  old def
  \renewcommand{\theeqquestionnoi}{\arabic{eqquestionnoi}}% new def
  \renewcommand{\labeleqquestionnoi}{%
%    \color{\eq@quesNumCol}\bfseries\theeqquestionnoi}% old def
    \color{\eq@quesNumCol}\sffamily\bfseries\theeqquestionnoi}% new def
    \eqfQorS
}{}
\makeatother
\quesNumColor{red}

\begin{quiz*}{q6}
Match the quotations (\textsf{NKJV)} with the Bible references on the right.
Each problem is worth 2 points; passing is 100\%.

\setlength{\eflength}{\widthof{\enspace\CorrAnsButton{A}\enspace}}
\useMCCircles

\noindent
\begin{minipage}[t]{.75\linewidth}
\begin{questions}
\everyRespBoxTxt{\textFont{HeBo}\textColor{red}}
\useNumbersOff
\begin{BblPsg}
  \item\PTs*{2}\qFP{Mat 10:26}
  \item\PTs*{2}\qFP{Mar 1:11}
  \item\PTs*{2}\qFP{Luk 12:2}
\end{BblPsg}
\end{questions}
\end{minipage}
\hfill
\begin{minipage}[t][0pt]{.25\linewidth-1em}
\begin{questions}[itemsep={0pt},labelwidth={.5em}]
\begin{BblVrs}
  \item\qFV{Act 10:15}
  \item\qFV{Luk 12:2}
  \item\qFV{Mar 1:11}
  \item\qFV{Eph 6:1}
  \item\qFV{Mat 10:26}
  \item\qFV{Joh 6:20}
\end{BblVrs}
\end{questions}
\end{minipage}\hfill
\par\medskip

\end{quiz*}\quad\PointsField\currQuiz\olBdry\CorrButton\currQuiz\cgBdry[6pt]
Answers: \AnswerField[\Q{1}\textFont{HeBo}\textColor{red}\rectW{\RBTWidth}]{\currQuiz}\vcgBdry[6pt]

Now that the verses are referenced using numbers, you are free to ask hundreds of Biblical
matching questions; the only problem is arranging them on the page. \verb~:-{)~




\end{document}