summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/pmdb/examples/tst-qzdb.tex
blob: 2abfe569958a9609b2c38f36282846487b04a25d (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
\documentclass{article}
\usepackage{amstext}
\usepackage[forcolorpaper]{web}
\usepackage{exerquiz}
\usepackage[dbmode,!tight]{pmdb}

\reversemarginpar

\pmCBPresets{\textColor{red}}

%\previewOn\pmpvOn

\title{Poor man's DB demo}
\author{D. P. Story}
\email{dpstory@acrotex.net}
\version{1.0}
\norevisionLabel

\editSourceOn
%\useEditBtn   % the default
%\useEditLnk   % try it with links


\PTsHook{($\eqPTs^{\text{pts}}$)}

\def\cs#1{\texttt{\eqbs#1}}
\rfooter{\dirTOCItem}
\lfooter{\displayChoices{}{11bp}\cgBdry[1em]\clrChoices{}{11bp}}
\useBeginQuizButton[\CA{Begin}]
\useEndQuizButton[\CA{End}]

\useMCCircles


% Declares input for quiz items
\InputQuizItems

\begin{document}

\maketitle
\tableofcontents


\section{Section 1}

Expand the \cs{InputQuizItems} here.

\begin{quiz*}{myquiz1}
Solve each of these problems, passing is 100\%.
\begin{questions}

\pmInput{probs/prob1.tex}

\pmInput{probs/prob2.tex}

\pmInput{probs/prob3.tex}

\end{questions}
\end{quiz*}

\section{Section 2}

\InputQuizItems


\begin{quiz*}{myquiz2}
Solve each of these problems, passing is 100\%.
\begin{questions}

\pmInput{probs/prob4.tex}

\pmInput{probs/prob6.tex}

\pmInput{probs/prob5.tex}

\end{questions}
\end{quiz*} %\ScoreField\currQuiz\CorrButton\currQuiz

\section{Section 3}

Here, we input an \textsf{exercise} environment, we do so in `paragraph mode' by expanding
\cs{InputParas} first.

\InputParas

\pmInput{exrs/ex1.tex}

\end{document}