diff options
Diffstat (limited to 'texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow')
12 files changed, 307 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/MyEmoji.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/MyEmoji.pdf Binary files differnew file mode 100644 index 00000000..6395769e --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/MyEmoji.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/dps_str_cus.def b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/dps_str_cus.def new file mode 100644 index 00000000..09329676 --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/dps_str_cus.def @@ -0,0 +1,47 @@ +%% +%% This is file `dps_str_cus.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% dps.dtx (with options: `copyright,english') +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% dps.sty package, 2006-10-06 %% +%% Copyright (C) 2006 D. P. Story %% +%% dpstory@acrotex.net %% +%% storyd@owc.edu +%% %% +%% This program can redistributed and/or modified under %% +%% the terms of the LaTeX Project Public License %% +%% Distributed from CTAN archives in directory %% +%% macros/latex/base/lppl.txt; either version 1 of the %% +%% License, or (at your option) any later version. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\chooseQ{"You must choose a question to answer before you answer!"} +\def\triedTooMuch{"You have tried this question too many times, I'm adding " + + \dspenaltypoints + + " points, and resetting the penalty counter. Bad boy/girl!"} +\def\congratFinished{"Congratulations! You finished the puzzle" + +((nMissed==0) ? " without missing a single problem, You are a flirt master!" + : ", but you missed " + nMissed + " questions in the process!")} +\def\regretPleased{(( nMissed > nPassing ) + ? "I regret to report that you did not pass the test because you missed too many questions." + : "I am pleased to report that you passed the test!")} +\def\reportPenaltyPoints{"The number of penalty points is " + nPenaltyPoints +"."} +\def\finalPenaltyScore{"Final penalty score is " + nTotalPenaltyPoints + ". "} +\def\aPenaltyScale{[-1,0], [0,4], [4, 10], [10,25], [25,5000]} +\def\aPenaltyMsgs +{% + "You are a casanova!", + "Let's go out for a date!", + "This is not looking good. Take some flirt lessons!", + "Ooooh, come on! No one could be so anti-romantic, you only need to follow some basic steps!", + "Better, you keep single!" +} +\dlJSStr[noquotes]{\signInMsg}{% + You must enter your name in the field at the top of + the page to get credit for this assignment.} +\endinput +%% +%% End of file `dps_str_cus.def'. diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/first_date.tex b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/first_date.tex new file mode 100644 index 00000000..0498b57a --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/first_date.tex @@ -0,0 +1,250 @@ +\documentclass{article} +\usepackage[% + web={extended}, + eforms,useacrobat +]{aeb_pro} +\usepackage[% + usebtnappr, + lang=custom, + nonrandomized, + !showletters, + !viewmode, + !showanswerkey, + savedata]{dps} +\usepackage{graphicx} +\usepackage[absolute]{textpos} + +%\previewOn\pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +\margins{.5in}{.5in}{.5in}{.5in} % left,right,top, bottom +\screensize{8in}{8.5in} % height, width + +\DeclareDocInfo +{ + title=A Rookie's Big Night Out, + author=D. P. Story, + university=Acro\negthinspace\TeX.Net, + email=dpstory@acrotex.net, + subject=A Rookie's Big Night Out, + keywords={matching, icons, game}, + talksite=http://www.acrotex.net, + copyrightyears=2006-\the\year, +} +\talkdateLabel{Version} +\version{1.0}\nocopyright + +\everyTextField{\textFont{TiRo}} + +\begin{embedding} +\dpsEmbedIcons +\embedIcon[name=Emoji,placement=btnEmoji]{MyEmoji.pdf} +\sideshowPackaged +\dpsEmbedSideShow{6}{flowers1/flowers} +\end{embedding} + +\randomizePicMappings +%\sortPicMappings + + +% Through the \dpsFinishedEvent command, we can execute script when the puzzle is completed +% (the last question is answered). Here, we display the btnEmoji +\dpsFinishedEvent{dpsShowFld("btnEmoji");} + +\dpsResetHook{dpsHideFld("btnEmoji");} + +\rheader{} + +\parindent0pt +\parskip6pt + +\DeclarePuzzle +{% + {F}{F} + {l}{l} + {\tops{\protect\"{o}}{\ifxetex รถ\else\string\366\fi}}{oul} + {w}{w} + {e}{e} + {r}{r} + {s}{s} +} + +%\writeComposingEnv + +\begin{Composing} + +\begin{cQ}{F} +Clothes\begin{setContent}{F} +You wear your \underbar{\hspace*{.5in}} clothes when you pick her up. +\end{setContent} +\end{cQ} +\begin{cA}{F} +best +\end{cA} + +\begin{cQ}{l} +Shoes\begin{setContent}{l} +You should \underbar{\hspace*{.5in}} your shoes before you put them on, and before +you pick her up. +\end{setContent} +\end{cQ} +\begin{cA}{l} +shine +\end{cA} + +\begin{cQ}{oul} +Hair\begin{setContent}{oul} +Part your hair in the +\underbar{\hspace*{.5in}} of your head before you leave +your flat to pick her up. +\end{setContent} +\end{cQ} +\begin{cA}[\"{o}]{oul} +middle +\end{cA} + +\begin{cQ}{w} +Socks\begin{setContent}{w} +Your socks should have no \underbar{\hspace*{.5in}} in them. +\end{setContent} +\end{cQ} +\begin{cA}{w} +holes +\end{cA} + +\begin{cQ}{e} +Shirt\begin{setContent}{e} +\raggedright Your shirt should be clean and \underbar{\hspace*{.5in}} the day before you +pick her up. +\end{setContent} +\end{cQ} +\begin{cA}{e} +pressed (ironed) +\end{cA} + +\begin{cQ}{r} +Sideburns\begin{setContent}{r} +Your sideburns should be \underbar{\hspace*{.5in}} below your waist. +\end{setContent} +\end{cQ} +\begin{cA}{r} +trimmed +\end{cA} + +\begin{cQ}{s} +Hand\begin{setContent}{s} +When you arrive at her doorstep, you should have \underbar{\hspace*{.5in}} in +your left hand. +\end{setContent} +\end{cQ} +\begin{cA}{s} +flowers +\end{cA} + +%---------- distractions ---------- + +\begin{cA}{fake1} +worst +\end{cA} + +\begin{cA}{fake2} +scuffed +\end{cA} + +\begin{cA}{fake3} +in the back +\end{cA} + +\begin{cA}{fake4} +sand +\end{cA} + +\begin{cA}{fake5} +wrinkled +\end{cA} + +\begin{cA}{fake6} +long and hairy +\end{cA} + +\begin{cA}{fake7} +sauerkraut +\end{cA} +\end{Composing} + +\begin{document} + +\ifxetex +\null\vfil +\begin{center}\Large +\fbox{\begin{minipage}{.67\linewidth} When using +\textsf{xelatex} and \textsf{textpos}, the puzzle needs to be on +the second page. Perhaps this is naturally so if +{\ttfamily\string\maketitle} is employed instead of this message +box. +\end{minipage}} +\end{center} +\newpage +\fi + + +% these are placed on the page where they are to appear +\placeQuesIcon{% + \begin{textblock*}{2.25in}[0,0](2.5in+.725in,3in) + \dpsQuesIcon{#1}{2.25in}{9\baselineskip} + \end{textblock*}% +} +\placeOtherIcon{% + \begin{textblock*}{2.25in}[0,0](2.5in+.725in,3in)\centering + \dpsOtherIcon[\I{\csOf{Emoji}}]{btnEmoji}{2.25in}{9\baselineskip} + \end{textblock*}% +} + +\def\answidth{1.7in} +\def\queswidth{2in} +\def\commondepth{5.5in+6pt} + +{\bfseries\noindent +\makebox[\textwidth]{\rlap{\webauthor}\hfill\textcolor{blue}{\webtitle}\hfill\llap{Acro\negthinspace\TeX.Net}}} + +\textcolor{red}{\textbf{Instructions:}} Select a question from +the left panel by clicking its checkbox. Select your answer from +the right panel. No guessing! A maximum of $\dsthreshold$ tries +on any problem before you get $\dspenaltypoints$ penalty points! +Passing is to complete the puzzle with only $\dspassing$ +incorrect answers. + + +\fbox{\begin{minipage}[t][\commondepth][t]{\queswidth-2\fboxsep-2\fboxrule}\raggedright +\makebox[\linewidth]{\centering\textbf{Questions}} +\begin{enumerate} +\displayRandomizedQuestions +\end{enumerate} +\vfill +\insertSideshow{3}{2}{.5\linewidth}{.5\linewidth*\ratio{18.67pt}{15.75pt}} +\end{minipage}}% +% +\fbox{\begin{minipage}[t][\commondepth][t]{\linewidth-\answidth-\queswidth-2\fboxsep-2\fboxrule} +When you have a date with a young lady, rookie, what do you take with you?\par\smallskip +\begin{center} +\parbox{2.6in}{\insertPuzzle{7}} +\end{center} +\makebox[0pt][s]{\hspace*{-\fboxsep}\rule{\linewidth+2\fboxsep}{.4pt}\hss} +\vfill +\placeMessageField{\linewidth}{10\baselineskip} +\end{minipage}}% +% +\fbox{\begin{minipage}[t][\commondepth][t]{\answidth-2\fboxsep-2\fboxrule}\raggedright +\makebox[\linewidth]{\textbf{Answers}} +\begin{itemize} +\displayRandomizedAnswers +\end{itemize} +\par\smallskip +\end{minipage}} + +Print this page: \printDPS{}{11bp}\cgBdry[1ex] +Try again: \resetDPS{}{11bp} + +\end{document} diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers.pdf Binary files differnew file mode 100644 index 00000000..0e52d9c6 --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_01.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_01.pdf Binary files differnew file mode 100644 index 00000000..666ce052 --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_01.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_02.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_02.pdf Binary files differnew file mode 100644 index 00000000..fb453000 --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_02.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_03.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_03.pdf Binary files differnew file mode 100644 index 00000000..c0a4a41d --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_03.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_04.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_04.pdf Binary files differnew file mode 100644 index 00000000..294011db --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_04.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_05.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_05.pdf Binary files differnew file mode 100644 index 00000000..5540d382 --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_05.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_06.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_06.pdf Binary files differnew file mode 100644 index 00000000..39a34506 --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_06.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_package.pdf b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_package.pdf Binary files differnew file mode 100644 index 00000000..ae88d370 --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/flowers1/flowers_package.pdf diff --git a/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/icons.tex b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/icons.tex new file mode 100644 index 00000000..cd36653d --- /dev/null +++ b/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/sideshow/icons.tex @@ -0,0 +1,10 @@ +\documentclass{article} +\usepackage[useacrobat]{icon-doc} +\margins{3pt}{3pt}{3pt}{3pt} % left,right,top,bottom (web command) +\screensize{9\baselineskip}{2.25in} % height,width (web command) +\def\ublength{.5in} + +\begin{document} +\small +\createRequiredIcons{7}{first_date} +\end{document}
\ No newline at end of file |