From 9b4f65771e507cb07b0b5851eb03577698f04259 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 17 Jun 2018 21:34:43 +0900
Subject: add dps

---
 texmf-dist/doc/latex/dps/examples/pmg_test.tex | 215 +++++++++++++++++++++++++
 1 file changed, 215 insertions(+)
 create mode 100644 texmf-dist/doc/latex/dps/examples/pmg_test.tex

(limited to 'texmf-dist/doc/latex/dps/examples/pmg_test.tex')

diff --git a/texmf-dist/doc/latex/dps/examples/pmg_test.tex b/texmf-dist/doc/latex/dps/examples/pmg_test.tex
new file mode 100644
index 00000000..e65b93b7
--- /dev/null
+++ b/texmf-dist/doc/latex/dps/examples/pmg_test.tex
@@ -0,0 +1,215 @@
+\documentclass{article}
+\usepackage{web}
+\usepackage{eforms}
+%\usepackage{dps}
+\usepackage[nonrandomized]{dps} % dps the option is nonrandomized not nonrandomize
+
+\margins{.5in}{.5in}{24pt}{.5in} % left,right,top, bottom
+\screensize{6.5in}{8.5in} % height, width
+
+\title{DPS -- Das Puzzle Spiel}
+\author{D. P. Story}
+
+\thispagestyle{empty}
+
+\parindent0pt
+\parskip6pt
+
+\DeclarePuzzle
+{%
+    {H}{H}
+    {e}{e}
+    {l}{l}
+    {l}{l}
+    {o}{o}
+    {}{space}
+    {J}{J}
+    {\texorpdfstring{\"{u}}{\string\374}}{uml} % ü
+    {r}{r}
+    {g}{g}
+    {e}{e}
+    {n}{n}
+    {,}{punc}
+    {}{space}
+    {h}{h}
+    {o}{o}
+    {w}{w}
+    {}{space}
+    {a}{a}
+    {r}{r}
+    {e}{e}
+    {}{space}
+    {y}{y}
+    {o}{o}
+    {u}{u}
+    {}{space}
+    {t}{t}
+    {o}{o}
+    {d}{d}
+    {a}{a}
+    {y}{y}
+    {?}{punc}
+}
+
+\begin{Composing}
+
+\begin{cQ}{H}
+$ 1 + 1 $
+\end{cQ}
+\begin{cA}{H}
+$2$
+\end{cA}
+
+\begin{cQ}{e}
+$ 2x + 5x $
+\end{cQ}
+\begin{cA}{e}
+$7x$
+\end{cA}
+
+\begin{cQ}{l}
+$ 6x - 3x + 1 $
+\end{cQ}
+\begin{cA}{l}
+$3x+1$
+\end{cA}
+
+\begin{cQ}{o}
+$ 5 -5x + 2x -2 $
+\end{cQ}
+\begin{cA}{o}
+$-3x+3$
+\end{cA}
+
+\begin{cQ}{J}
+$ 4( x + 2 ) - 2 $
+\end{cQ}
+\begin{cA}{J}
+$4x+6$
+\end{cA}
+
+\begin{cQ}{uml}
+$ -3x + 2(5-2x) $
+\end{cQ}
+\begin{cA}{uml}
+$-7x+10$
+\end{cA}
+
+\begin{cQ}{r}
+$ -2 ( 3x + (-4) ) + 4 $
+\end{cQ}
+\begin{cA}{r}
+$-6x+12$
+\end{cA}
+
+\begin{cQ}{g}
+$ 5 ( x - (-2) ) $
+\end{cQ}
+\begin{cA}{g}
+$5x+10$
+\end{cA}
+
+\begin{cQ}{n}
+$ 6x - 5 (x - 2) $
+\end{cQ}
+\begin{cA}{n}
+$x+10$
+\end{cA}
+
+\begin{cQ}{h}
+$ 15 + 2 $
+\end{cQ}
+\begin{cA}{h}
+$17$
+\end{cA}
+
+\begin{cQ}{w}
+$ 6x - 3 + x + 5 $
+\end{cQ}
+\begin{cA}{w}
+$7x+2$
+\end{cA}
+
+\begin{cQ}{a}
+$ 5( -2x + 4 ) + 3x - 2 $
+\end{cQ}
+\begin{cA}{a}
+   $-7x+18$
+\end{cA}
+
+\begin{cQ}{y}
+$ 3(x-3) -  2(x+2) $
+\end{cQ}
+\begin{cA}{y}
+$x-13$
+\end{cA}
+
+\begin{cQ}{u}
+$ -2(3-x) - 4(1-3x) $
+\end{cQ}
+\begin{cA}{u}
+$14x-10$
+\end{cA}
+
+\begin{cQ}{t}
+$ \sin( \pi/2) $
+\end{cQ}
+\begin{cA}{t}
+$1$
+\end{cA}
+
+\begin{cQ}{d}
+$ \cos( \pi/4 ) $
+\end{cQ}
+\begin{cA}{d}
+$\sqrt{2}/2$
+\end{cA}
+
+\end{Composing}
+
+
+\begin{document}
+\begin{center}\bfseries\Large\color{blue}
+    \webtitle\\[1ex]\webauthor
+\end{center}
+
+% dps changed \threshold to \dsthreahold
+% dps changed \passing to \dspassing
+
+\textcolor{red}{\textbf{Instructions:}} Select a question from the center
+panel by clicking its checkbox. Solve the problem and find the answer listed
+in either the left or right panel.  No guessing! A maximum of $\dsthreshold$
+tries on any problem before you get penalty points!  Passing is to complete
+the puzzle with only $\dspassing$ incorrect answers.
+
+
+\fbox{\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}
+\insertPuzzle{18}
+\end{minipage}}
+\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright
+Find the correct answer
+\begin{itemize}
+\displayRandomizedAnswersLeftPanel
+\end{itemize}
+\par\smallskip
+\end{minipage}}%
+\fbox{\begin{minipage}[t][3in][t]{.6\linewidth-2\fboxsep-2\fboxrule}
+Simplify each of the expressions below, and find the answer in the column of answers.
+\begin{multicols}{2}
+\begin{enumerate}
+\displayRandomizedQuestions
+\end{enumerate}
+\end{multicols}
+\par\smallskip
+\end{minipage}}%
+\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright
+Find the correct answer
+\begin{itemize}
+\displayRandomizedAnswersRightPanel
+\end{itemize}
+\par\smallskip
+\end{minipage}}
+
+\textField[\Ff\FfMultiline]{report}{\linewidth}{50pt}
+
+\end{document}
-- 
cgit v1.2.3

