summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/pmdb/examples
diff options
context:
space:
mode:
Diffstat (limited to 'texmf-dist/doc/latex/pmdb/examples')
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/chapters/doc1.tex5
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/chapters/doc2.tex7
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/exrs/ex1.tex9
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/items/sample-item.tex1
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/probs/prob1.tex5
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/probs/prob2.tex4
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/probs/prob3.tex4
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/probs/prob4.tex3
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/probs/prob5.tex11
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/probs/prob6.tex68
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/tst-items.tex37
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/tst-paras.tex40
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/tst-qzdb-paras.tex92
-rw-r--r--texmf-dist/doc/latex/pmdb/examples/tst-qzdb.tex83
14 files changed, 369 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/pmdb/examples/chapters/doc1.tex b/texmf-dist/doc/latex/pmdb/examples/chapters/doc1.tex
new file mode 100644
index 00000000..c7c94fe4
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/chapters/doc1.tex
@@ -0,0 +1,5 @@
+\chapter{The first chapter}
+
+This is `doc1'.\medskip
+
+\endinput
diff --git a/texmf-dist/doc/latex/pmdb/examples/chapters/doc2.tex b/texmf-dist/doc/latex/pmdb/examples/chapters/doc2.tex
new file mode 100644
index 00000000..927dcbef
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/chapters/doc2.tex
@@ -0,0 +1,7 @@
+\chapter{The second chapter}
+
+This is `doc2'
+
+\bigskip\noindent dps
+
+\endinput
diff --git a/texmf-dist/doc/latex/pmdb/examples/exrs/ex1.tex b/texmf-dist/doc/latex/pmdb/examples/exrs/ex1.tex
new file mode 100644
index 00000000..47798a66
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/exrs/ex1.tex
@@ -0,0 +1,9 @@
+\begin{exercise}
+Solve: $\displaystyle\lim_{n\to\infty} \frac{2n}{3n+1}$
+\begin{solution}
+We have,
+\[
+ \lim_{n\to\infty} \frac{2n}{3n+1} = \frac{2}{3+\frac{1}{n}}=\fbox{$\displaystyle\frac23$}
+\]
+\end{solution}
+\end{exercise} \ No newline at end of file
diff --git a/texmf-dist/doc/latex/pmdb/examples/items/sample-item.tex b/texmf-dist/doc/latex/pmdb/examples/items/sample-item.tex
new file mode 100644
index 00000000..19b72cd5
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/items/sample-item.tex
@@ -0,0 +1 @@
+\item This is content destined for an list environment, but input by \verb|\pmItem|.
diff --git a/texmf-dist/doc/latex/pmdb/examples/probs/prob1.tex b/texmf-dist/doc/latex/pmdb/examples/probs/prob1.tex
new file mode 100644
index 00000000..30efb7bb
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/probs/prob1.tex
@@ -0,0 +1,5 @@
+ \item \PTs{3}
+ Which of these are true ?
+\begin{answers}{4}
+\Ans1 True & \Ans0 False
+\end{answers} \ No newline at end of file
diff --git a/texmf-dist/doc/latex/pmdb/examples/probs/prob2.tex b/texmf-dist/doc/latex/pmdb/examples/probs/prob2.tex
new file mode 100644
index 00000000..033fe41f
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/probs/prob2.tex
@@ -0,0 +1,4 @@
+ \item \PTs{4} Select which of the following is true.
+\begin{answers}{4}
+\Ans1 True &\Ans0 False &\Ans0 Maybe &\Ans0 Sometimes
+\end{answers}
diff --git a/texmf-dist/doc/latex/pmdb/examples/probs/prob3.tex b/texmf-dist/doc/latex/pmdb/examples/probs/prob3.tex
new file mode 100644
index 00000000..1f446293
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/probs/prob3.tex
@@ -0,0 +1,4 @@
+ \item\PTs{2} $9+8=\RespBoxMath{17}*{1}{.0001}{[0,1]}$
+\begin{solution}
+Everyone knows $9+8=17$, did you?
+\end{solution}
diff --git a/texmf-dist/doc/latex/pmdb/examples/probs/prob4.tex b/texmf-dist/doc/latex/pmdb/examples/probs/prob4.tex
new file mode 100644
index 00000000..924d5da0
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/probs/prob4.tex
@@ -0,0 +1,3 @@
+\essayQ{5} % num points assigned
+\item\PTs{5} Write a short history of Acro\negthinspace\TeX.\par
+\RespBoxEssay{\linewidth}{1in}
diff --git a/texmf-dist/doc/latex/pmdb/examples/probs/prob5.tex b/texmf-dist/doc/latex/pmdb/examples/probs/prob5.tex
new file mode 100644
index 00000000..3cd855f3
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/probs/prob5.tex
@@ -0,0 +1,11 @@
+\item\PTs{3} Which of the following are numbers?
+\begin{manswers}{6}
+\bChoices
+ \Ans[-1]{0}d\eAns
+ \Ans[1]{1}17\eAns
+ \Ans[-1]{0}p\eAns
+ \Ans[1]{1}88\eAns
+ \Ans[-1]{0}s\eAns
+ \Ans[1]{1}105\eAns
+\eChoices
+\end{manswers} \ No newline at end of file
diff --git a/texmf-dist/doc/latex/pmdb/examples/probs/prob6.tex b/texmf-dist/doc/latex/pmdb/examples/probs/prob6.tex
new file mode 100644
index 00000000..04af8810
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/probs/prob6.tex
@@ -0,0 +1,68 @@
+\multipartquestion
+
+ \item\PTs{20} Answer each of the following multiple
+ selection problems. Each correct answer is worth $3$
+ points, and each incorrect answer is worth $-2$ points.
+ \begin{questions}
+
+
+\rowsep{3pt}
+
+ \item\PTs{9} Select which people who served as a President
+ of the United States. (Select all correct choices.)
+
+ \begin{manswers}{2}%
+ \bChoices
+ \Ans[-2]{0} Henry Clay\eAns
+ \Ans[-2]{0} Ben Franklin\eAns
+ \Ans[3]{1}\label{aj} Andrew Jackson\eAns
+ \Ans[3]{1}\label{rr} Ronald Reagan\eAns
+ \Ans[-2]{0} George Meade\eAns
+ \Ans[3]{1}\label{gc} Grover Cleveland\eAns
+ \Ans[-2]{0} John Jay\eAns
+ \Ans[-2]{0} Paul Revere\eAns
+ \eChoices
+ \end{manswers}
+
+%\ifwithdesign\promoteNewPageHere[6\baselineskip]\fi
+
+\rowsep{3pt}
+
+ \item\PTs{9} Select which people who served as a Chancellor of the
+ German Republic. (Select all correct choices.)
+ \begin{manswers}{2}%
+ \bChoices[2]
+ \Ans[-2]{0} Gustav Heinemann\eAns
+ \Ans[-2]{0} Theodor Heu{\ss}\eAns
+ \Ans[3]{1} Konrad Adenauer\eAns
+ \Ans[-2]{0} Richard von Weizs\"{a}cker\eAns
+ \Ans[3]{1} Willy Brandt\eAns
+ \Ans[-2]{0} Heinrich L\"{u}bke\eAns
+ \Ans[-2]{0} Roman Herzog\eAns
+ \Ans[3]{1} Ludwig Erhard\eAns
+ \eChoices
+ \end{manswers}
+
+%\promoteNewPageHere{4\baselineskip}
+\rowsep{3pt}
+
+ \item\PTs{2} If you select all choices in part~(a), you will
+ receive $-1$ points as a penalty for bad guessing. \textbf{Question:}
+ Determine the \emph{number of correct choices} in part~(a)?
+ \begin{answers}*{4}
+ \bChoices
+ \Ans0 1\eAns
+ \Ans0 2\eAns
+ \Ans1 3\eAns
+ \Ans0 4\eAns
+ \Ans0 5\eAns
+ \Ans0 6\eAns
+ \Ans0 7\eAns
+ \Ans0 8\eAns
+ \eChoices
+ \end{answers}
+\begin{solution}
+Let $x$ be the number of correct answers, then $ 3x - 2(8-x) = -1 $. Solving this simple
+equation we get $ x = 3 $.
+\end{solution}
+ \end{questions}
diff --git a/texmf-dist/doc/latex/pmdb/examples/tst-items.tex b/texmf-dist/doc/latex/pmdb/examples/tst-items.tex
new file mode 100644
index 00000000..46b25a10
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/tst-items.tex
@@ -0,0 +1,37 @@
+\documentclass{article}
+\usepackage[forcolorpaper]{web}
+\usepackage[dbmode,!tight]{pmdb}
+
+\previewOn
+
+\reversemarginpar
+
+\InputItems
+
+\begin{document}
+
+\noindent
+The \texttt{itemize} environment
+\begin{itemize}
+ \item One\marginpar{One}
+ \item Two\marginpar{Two}
+ \pmInput{items/sample-item.tex}
+\end{itemize}
+
+\medskip\noindent
+The \texttt{environment} environment
+\begin{enumerate}
+ \item One\marginpar{One}
+ \item Two\marginpar{Two}
+ \pmInput{items/sample-item.tex}
+\end{enumerate}
+
+\medskip\noindent
+The \texttt{description} environment
+\begin{description}
+ \item[First item] One\marginpar{One}
+ \item[Second item] Two\marginpar{Two}
+ \pmInput[Third item]{items/sample-item.tex}
+\end{description}
+
+\end{document} \ No newline at end of file
diff --git a/texmf-dist/doc/latex/pmdb/examples/tst-paras.tex b/texmf-dist/doc/latex/pmdb/examples/tst-paras.tex
new file mode 100644
index 00000000..550e58db
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/tst-paras.tex
@@ -0,0 +1,40 @@
+% Requires Version 1.7 of aeb_pro.js
+% Checkbox: Maintain an array of paths selected; unchecking removes that item from the path.
+\documentclass{book}
+\usepackage{eforms}
+\usepackage[dbmode]{pmdb}
+
+%\usepackage{srcltx}
+
+%\previewOn\pmpvOn
+
+% The default input mode
+%\InputParas
+
+\def\cs#1{\texttt{\eqbs#1}}
+
+\begin{document}
+
+\chapter*{Preface}
+
+In this package, \cs{pmInput} is defined. This package command places a checkbox
+in the margins and executes an \cs{input} command.
+
+\medskip\noindent\textbf{Rules to live by}\begin{itemize}
+ \item Always include the extension: \texttt{doc1.tex} not \texttt{doc1}.
+ \item If the path contains spaces, enclose the path in double quotes, like so,
+ \texttt{"my doc1.tex"}, not \texttt{my doc1.tex}.
+\end{itemize}
+
+
+% Adjust paths as needed
+\pmInput{chapters/doc1.tex}
+
+%\input{"my doc2.tex"}
+\pmInput{"C:/Users/Public/Documents/My TeX Files/tex/latex/aeb/pmdb/examples/chapters/doc2.tex"}
+
+\medskip\noindent
+\displayChoices{}{11bp}\cgBdry[1em]\clrChoices{}{11bp}
+
+\end{document}
+
diff --git a/texmf-dist/doc/latex/pmdb/examples/tst-qzdb-paras.tex b/texmf-dist/doc/latex/pmdb/examples/tst-qzdb-paras.tex
new file mode 100644
index 00000000..eb6807eb
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/tst-qzdb-paras.tex
@@ -0,0 +1,92 @@
+\documentclass{book}
+\usepackage{amstext}
+\usepackage[forcolorpaper]{web}
+\usepackage{exerquiz}[2019/12/17]
+\usepackage[dbmode,!tight]{pmdb}
+
+\reversemarginpar
+
+\def\cs#1{\texttt{\eqbs#1}}
+
+\useBeginQuizButton[\CA{Begin}]
+\useEndQuizButton[\CA{End}]
+
+%\previewOn\pmpvOn
+
+\rfooter{\dirTOCItem} % \dirTOCItem from web
+
+% Make quiz solutions into a chapter* event
+\InputQzSolnsLevel*[ch:Qz]{chapter} % exerquiz 2019/12/17
+
+
+\title{Poor Man's Database}
+\author{D. P. Story}
+\email{dpstory@acrotex.net}
+
+\optionalPageMatter{\begin{center}
+ \fbox{\begin{minipage}{.67\linewidth}
+ This file demonstrates how to input both quiz items and paragraph content.
+ Two commands are defined \cs{InputQuizItems} and \cs{InputParas} to make it
+ convenient to switch between the two modes of input.
+ \end{minipage}}
+\end{center}}
+
+\begin{document}
+
+\maketitle
+
+\tableofcontents
+
+\chapter{The quizzes}
+
+\section{Section 1}
+
+Expand the \cs{InputQuizItems} here.
+
+\InputQuizItems
+
+\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}
+
+\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
+
+\medskip\noindent
+\displayChoices{}{11bp}
+
+
+\medskip\noindent
+Expand the \cs{InputParas} here.
+\InputParas
+
+\pmInput{chapters/doc1.tex}
+
+%\input{"my doc2.tex"}
+\pmInput{"C:/Users/Public/Documents/My TeX Files/tex/latex/aeb/pmdb/examples/chapters/doc2.tex"}
+
+\medskip\noindent
+\displayChoices{}{11bp}\cgBdry[1em]\clrChoices{}{11bp}
+
+\end{document} \ No newline at end of file
diff --git a/texmf-dist/doc/latex/pmdb/examples/tst-qzdb.tex b/texmf-dist/doc/latex/pmdb/examples/tst-qzdb.tex
new file mode 100644
index 00000000..ac1898a8
--- /dev/null
+++ b/texmf-dist/doc/latex/pmdb/examples/tst-qzdb.tex
@@ -0,0 +1,83 @@
+\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
+
+
+\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} \ No newline at end of file