From 459f3ab214a7c0ef2439e77572f83e7c80858ee4 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 13 Jul 2017 12:02:21 +0900 Subject: add eq2db fitr jj-game --- texmf-dist/doc/latex/eq2db/README | 31 ++ texmf-dist/doc/latex/eq2db/eq2dbman.pdf | Bin 0 -> 171449 bytes texmf-dist/doc/latex/fitr/Kutta.bb | 5 + texmf-dist/doc/latex/fitr/Kutta.eps | Bin 0 -> 344944 bytes texmf-dist/doc/latex/fitr/Kutta.jpeg | Bin 0 -> 9863 bytes texmf-dist/doc/latex/fitr/Kutta.pdf | Bin 0 -> 15308 bytes texmf-dist/doc/latex/fitr/Kutta.xbb | 6 + texmf-dist/doc/latex/fitr/README.md | 35 ++ texmf-dist/doc/latex/fitr/fitr_demo.pdf | Bin 0 -> 80760 bytes texmf-dist/doc/latex/fitr/fitr_demo.tex | 106 ++++ texmf-dist/doc/latex/fitr/fitr_man.pdf | Bin 0 -> 177690 bytes texmf-dist/doc/latex/fitr/fitr_man.tex | 553 +++++++++++++++++++++ texmf-dist/doc/latex/fitr/fitr_minimal.tex | 92 ++++ texmf-dist/doc/latex/fitr/jmpHookBlink.js | 41 ++ texmf-dist/doc/latex/fitr/restoreHookBlink.js | 33 ++ texmf-dist/doc/latex/fitr/runge.bb | 5 + texmf-dist/doc/latex/fitr/runge.eps | Bin 0 -> 413683 bytes texmf-dist/doc/latex/fitr/runge.jpg | Bin 0 -> 7628 bytes texmf-dist/doc/latex/fitr/runge.pdf | Bin 0 -> 13182 bytes texmf-dist/doc/latex/fitr/runge.xbb | 6 + texmf-dist/doc/latex/jj-game/README.md | 58 +++ texmf-dist/doc/latex/jj-game/examples/jg_ca.tex | 250 ++++++++++ .../doc/latex/jj-game/examples/jjg_custom.tex | 384 ++++++++++++++ texmf-dist/doc/latex/jj-game/examples/jjg_test.tex | 198 ++++++++ .../doc/latex/jj-game/examples/pro/jjg_pro_ca.tex | 261 ++++++++++ texmf-dist/doc/latex/jj-game/jjg_man.pdf | Bin 0 -> 1297925 bytes 26 files changed, 2064 insertions(+) create mode 100644 texmf-dist/doc/latex/eq2db/README create mode 100644 texmf-dist/doc/latex/eq2db/eq2dbman.pdf create mode 100644 texmf-dist/doc/latex/fitr/Kutta.bb create mode 100644 texmf-dist/doc/latex/fitr/Kutta.eps create mode 100644 texmf-dist/doc/latex/fitr/Kutta.jpeg create mode 100644 texmf-dist/doc/latex/fitr/Kutta.pdf create mode 100644 texmf-dist/doc/latex/fitr/Kutta.xbb create mode 100644 texmf-dist/doc/latex/fitr/README.md create mode 100644 texmf-dist/doc/latex/fitr/fitr_demo.pdf create mode 100644 texmf-dist/doc/latex/fitr/fitr_demo.tex create mode 100644 texmf-dist/doc/latex/fitr/fitr_man.pdf create mode 100644 texmf-dist/doc/latex/fitr/fitr_man.tex create mode 100644 texmf-dist/doc/latex/fitr/fitr_minimal.tex create mode 100644 texmf-dist/doc/latex/fitr/jmpHookBlink.js create mode 100644 texmf-dist/doc/latex/fitr/restoreHookBlink.js create mode 100644 texmf-dist/doc/latex/fitr/runge.bb create mode 100644 texmf-dist/doc/latex/fitr/runge.eps create mode 100644 texmf-dist/doc/latex/fitr/runge.jpg create mode 100644 texmf-dist/doc/latex/fitr/runge.pdf create mode 100644 texmf-dist/doc/latex/fitr/runge.xbb create mode 100644 texmf-dist/doc/latex/jj-game/README.md create mode 100644 texmf-dist/doc/latex/jj-game/examples/jg_ca.tex create mode 100644 texmf-dist/doc/latex/jj-game/examples/jjg_custom.tex create mode 100644 texmf-dist/doc/latex/jj-game/examples/jjg_test.tex create mode 100644 texmf-dist/doc/latex/jj-game/examples/pro/jjg_pro_ca.tex create mode 100644 texmf-dist/doc/latex/jj-game/jjg_man.pdf (limited to 'texmf-dist/doc') diff --git a/texmf-dist/doc/latex/eq2db/README b/texmf-dist/doc/latex/eq2db/README new file mode 100644 index 00000000..ea92ff3a --- /dev/null +++ b/texmf-dist/doc/latex/eq2db/README @@ -0,0 +1,31 @@ +eq2db v2.0 2016/01/02 D. P. Story + +Short Summary: Converts a self-contained exerquiz quiz to one that is +submitted to a server-side script. + +eq2db is meant to be used with the exerquiz package, one of the components of +the AcroTeX eDucation Bundle (ctan.org/pkg/acrotex). The package redefines +the 'End Quiz' button (of the quiz environment) appropriately so that when +the user clicks it, the results of the quiz are sent to a server-side script. + +The eq2db package has several options for disposing of the quiz results: + (1) eqRecord: save quiz results to a database + (2) eqText: save quiz results to a tab-delimited text file + (3) eqEmail: send quiz results to a list of recipients via email + +(New to v2.0) The submitAs option allows the document author to submit as +FDF, HTML, or XML. The scripts provided by this package are designed FDF +submittal. + +For FDF submittal, accompanying each of the three options listed above is a +server-side script. These are ASP pages written with VBScript. A Windows +server running Microsoft IIS is required; Adobe FDF Toolkit is also required +to be installed on the server. + +Now, I simply must get back to my retirement. + +D. P. Story +www.acrotex.net +dpstory@uakron.edu +dpstory@acrotex.net +2016/01/02 diff --git a/texmf-dist/doc/latex/eq2db/eq2dbman.pdf b/texmf-dist/doc/latex/eq2db/eq2dbman.pdf new file mode 100644 index 00000000..d0c4e59b Binary files /dev/null and b/texmf-dist/doc/latex/eq2db/eq2dbman.pdf differ diff --git a/texmf-dist/doc/latex/fitr/Kutta.bb b/texmf-dist/doc/latex/fitr/Kutta.bb new file mode 100644 index 00000000..52e9f93c --- /dev/null +++ b/texmf-dist/doc/latex/fitr/Kutta.bb @@ -0,0 +1,5 @@ +%%Title: C:/Users/D. P. Story/Desktop/examples/kutta.pdf +%%Creator: extractbb 20120420 +%%BoundingBox: 0 0 242 326 +%%CreationDate: Wed Jun 27 19:32:23 2012 + diff --git a/texmf-dist/doc/latex/fitr/Kutta.eps b/texmf-dist/doc/latex/fitr/Kutta.eps new file mode 100644 index 00000000..8ad5349e Binary files /dev/null and b/texmf-dist/doc/latex/fitr/Kutta.eps differ diff --git a/texmf-dist/doc/latex/fitr/Kutta.jpeg b/texmf-dist/doc/latex/fitr/Kutta.jpeg new file mode 100644 index 00000000..d847cb2a Binary files /dev/null and b/texmf-dist/doc/latex/fitr/Kutta.jpeg differ diff --git a/texmf-dist/doc/latex/fitr/Kutta.pdf b/texmf-dist/doc/latex/fitr/Kutta.pdf new file mode 100644 index 00000000..e737d265 Binary files /dev/null and b/texmf-dist/doc/latex/fitr/Kutta.pdf differ diff --git a/texmf-dist/doc/latex/fitr/Kutta.xbb b/texmf-dist/doc/latex/fitr/Kutta.xbb new file mode 100644 index 00000000..f8d9a29f --- /dev/null +++ b/texmf-dist/doc/latex/fitr/Kutta.xbb @@ -0,0 +1,6 @@ +%%Title: C:/Users/D. P. Story/Desktop/examples/Kutta.jpeg +%%Creator: extractbb 20120420 +%%BoundingBox: 0 0 242 326 +%%HiResBoundingBox: 0.000000 0.000000 242.000000 326.000000 +%%CreationDate: Wed Jun 27 15:21:08 2012 + diff --git a/texmf-dist/doc/latex/fitr/README.md b/texmf-dist/doc/latex/fitr/README.md new file mode 100644 index 00000000..5f7d97b5 --- /dev/null +++ b/texmf-dist/doc/latex/fitr/README.md @@ -0,0 +1,35 @@ +The fitr Package +Author: D. P. Story +Version: v1.2d +Dated: 2016/04/04 + +This package is an implementation of the FitR view-type destination as +described in the PDF Reference. The package defines one new command +\jdRect. The command (optionally) sets a jump to and/or sets a destination +of a FitR (Rectangle). (Can you see where \jdRect comes from?). + +The package requires eforms (part of the AeB) and collectbox (by Martin +Scharrer). Drivers supported are dvips and dvipsone (using Adobe Distiller +as the PDF creator); pdftex (which includes luatex); and dvipdfm, +dvipdfmx, and xetex. + +The package was developed in response to a user of the AeB Bundle who was +interested in developing documents for students with low vision; the idea +is to magnify regions of the document so the student can read more +comfortably. Optional special effects are included (JavaScript functions) +to help focus one the rectangle as it is magnified, and as the previous +view is restored. + +Unpack the distribution by latexing fitr.ins. + +Enjoy! + +Now, I must get back to my retirement. + + +D. P. Story +www.acrotex.net +dpstory@uakron.edu +dpstory@acrotex.net + + diff --git a/texmf-dist/doc/latex/fitr/fitr_demo.pdf b/texmf-dist/doc/latex/fitr/fitr_demo.pdf new file mode 100644 index 00000000..9e435578 Binary files /dev/null and b/texmf-dist/doc/latex/fitr/fitr_demo.pdf differ diff --git a/texmf-dist/doc/latex/fitr/fitr_demo.tex b/texmf-dist/doc/latex/fitr/fitr_demo.tex new file mode 100644 index 00000000..7fe7536f --- /dev/null +++ b/texmf-dist/doc/latex/fitr/fitr_demo.tex @@ -0,0 +1,106 @@ +% +% This file works for Adobe Distiller as the PDF creator, with drivers dvips or dvipsone. +% It also works for pdftex (and luatex), dvipdfm, dvipdfmx, and xetex. +% +\documentclass[11pt]{article} +\usepackage{amsmath} +\usepackage[forcolorpaper,pro]{web} +\usepackage{eforms} +\usepackage[!preview,!viewMagWin]{fitr} +\usepackage[js=restoreHookBlink,js=jmpHookBlink]{lmacs} +\usepackage{graphicx} + +\DeclareDocInfo +{% + title={Jumping to a Rectangular Region}, + author={D. P. Story}, + university=My University, + talkdate={Dec.\ 17, \the\year}, + subject={Demo file to test the FitR view destination of PDF}, + keywords={LaTeX, PDF, Acrobat, JavaScript}, + university={% + Acro\!\TeX.Net\\ + NORTHWEST FLORIDA STATE COLLEGE\\ + Department of Mathematics}, + email={dpstory@acrotex.net}, + version={1.0}, + copyrightyears={2012} +} +\nocopyright +\norevisionLabel + +\selectColors{linkColor=blue} + +\parindent0pt \parskip6pt \pagestyle{empty} + +% \renewcommand{\overlayPresets}{\H{I}\S{D}\BG{}\BC{blue}} +% \renewcommand{\allowFXDefault}{false} + +\begin{document} +\begin{center}\sffamily\bfseries\Large\color{blue} + Jumping to a Rectangular Region\\[1ex]\normalsize\normalcolor + Dr. D. P. Story, \href{http://www.acrotex.net}{Acro\!\TeX.NeT} +\end{center} + +\textbf{Introduction.} This document demonstrates a technique designed to +help people with low vision read material by providing them with a +convenient way to magnify specific regions of the document. This is +especially useful for reading technical material such as mathematics, as +is demonstrated here. + +\textbf{Instructions:} Click on any of the mathematics to magnify a region +around it, the border will blink briefly to focus your attention on it. +To restore the previous view, click on the region again, +the formula is briefly highlighted by a blinking border so +can quickly find your place in the document. + + +\textbf{Sample Mathematical Text.} Consider the problem of numerically +solving the first order differential equation +\jdRect*[adddestw=60,adddesth=20]{$y'=f(t,y)$} on +\jdRect*[adddestw=1in,adddesth=30]{$[t_{start}, t_{end}]$}. Suppose we +want to classify third order \textsf{Runge-Kutta} type methods. Start with +\begin{align*} +\jdRect[height=1.3in,width=2.6in,lift=16pt,shift=-15pt,adddestw=10,adddesth=10] % +K_1 &= hf(t_n, y_n)\\ +K_2 &= hf(t_n +r h, y_n+aK_1)\\ +K_3 &= hf(t_n +s h, y_n+bK_1+cK_2)\\ +K &= w_1 K_1+ w_2 K_2+ w_3 K_3\\ +y_{n+1} &= y_n+K +\end{align*} +Find the system of equations satisfied by +\jdRect*[adddestw=10,adddesth=10]{$r,s, a, b, c, w_1, w_2, w_3$} +that will make the above algorithm a third order method. + +\textbf{Inline links.} Links can be provided within the text to jump to a +magnified region that needs to be inspected more closely. The links below +are different from the ones above. After jumping to a magnified rectangle, +restore the preview view by clicking on the rectangle. + +\def\RungePic{\includegraphics[width=\marginparwidth]{runge}} +\def\KuttaPic{\includegraphics[width=\marginparwidth]{Kutta}} +\def\jrOpts#1#2{link=#1,dest=#2} + +\textbf{\jdRect*[nodest,\jrOpts{jmp}{rungePic},adddestw=10,adddesth=10]{Carl Runge}}% +\marginpar{\jdRect*[\jrOpts{restore}{rungePic},adddestw=\marginparsep, +adddesth=\marginparpush]{\parbox[b]{\marginparwidth}{\RungePic\\ +\normalcolor\centering\footnotesize\textsf{Carl Runge}}}} (1867-1944) +was the third of four sons from a well-to-do German merchant family. He +is remembered for his \textsf{Runge-Kutta} method for solving +differential equations. + +\textbf{\jdRect*[nodest,\jrOpts{jmp}{KuttaPic}]{Martin Kutta}}% +\marginpar{\jdRect*[\jrOpts{restore}{KuttaPic},adddestw=\marginparsep, +adddesth=\marginparpush]{\parbox[b]{\marginparwidth}{\KuttaPic\\ +\normalcolor\centering\footnotesize\textsf{Martin Kutta}}}} (1867-1944) +extended the Runge's method of solving ordinary differential equations. He +is also known for his work on airfoils. + +% Again, don't forget to press +%\textbf{Alt+Left Arrow} to return to the view you had before you clicked +%on the link. + +\begin{flushright} +This work was motivated by Mohsen M. +\end{flushright} +\end{document} diff --git a/texmf-dist/doc/latex/fitr/fitr_man.pdf b/texmf-dist/doc/latex/fitr/fitr_man.pdf new file mode 100644 index 00000000..b70ee265 Binary files /dev/null and b/texmf-dist/doc/latex/fitr/fitr_man.pdf differ diff --git a/texmf-dist/doc/latex/fitr/fitr_man.tex b/texmf-dist/doc/latex/fitr/fitr_man.tex new file mode 100644 index 00000000..690f498f --- /dev/null +++ b/texmf-dist/doc/latex/fitr/fitr_man.tex @@ -0,0 +1,553 @@ +% makeindex < aebpro_man.idx > aebpro_man.ind +\documentclass{article} +\usepackage[fleqn]{amsmath} +\usepackage[ + web={centertitlepage,designv,forcolorpaper, + usesf,latextoc,pro}, %tight, + eforms,aebxmp +]{aeb_pro} +\usepackage{graphicx,array} +\usepackage[dvipsone,!preview,!viewMagWin]{fitr} +\usepackage[js=restoreHookBlink,js=jmpHookBlink]{lmacs} + +\usepackage[fortextbook,usecustomdesign,nomarginwrite]{eqexam} + +%\usepackage{myriadpro} +\usepackage[altbullet]{lucidbry} + +\renewcommand\allowFXDefault{false} + + +%\usepackage{makeidx} +%\makeindex +\usepackage{acroman} + +\makeatletter +\def\eq@fititin#1{\noindent\unskip\nobreak\hfill\penalty50 + \hskip2em\hbox{}\nobreak\hfill#1} +\def\fitit{\eq@fititin{\exrtnlabelformat}} +\@mparswitchfalse\reversemarginpar +\def\meta#1{$\langle\textit{\texttt{#1}}\rangle$} + +\makeatother +%\usepackage[active]{srcltx} + +\urlstyle{rm} +\def\fitrpkg{\textsf{f{i}tr}} + +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={\texorpdfstring{The}{The manual for the} f{i}tr Package\texorpdfstring{\\ + Defining and Jumping to\\a Rectangular Destination}{}}, + author={D. P. Story}, + email={dpstory@acrotex.net}, + subject=Documentation for the fitr package, + talksite={\url{www.acrotex.net}}, + version={1.0}, + Keywords={LaTeX,PDF,fitr,JavaScript,Adobe Acrobat}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} +\DeclareInitView{windowoptions={showtitle}} + + +\def\dps{$\hbox{$\mathfrak D$\kern-.3em\hbox{$\mathfrak P$}% + \kern-.6em \hbox{$\mathcal S$}}$} + +\universityLayout{fontsize=Large} +\titleLayout{fontsize=LARGE} +\authorLayout{fontsize=Large} +\tocLayout{fontsize=Large,color=aeb} +\sectionLayout{indent=-62.5pt,fontsize=large,color=aeb} +\subsectionLayout{indent=-31.25pt,color=aeb} +\subsubsectionLayout{indent=0pt,color=aeb} +\subsubDefaultDing{\texorpdfstring{$\bullet$}{\textrm\textbullet}} + +%\pagestyle{empty} +\parindent0pt +\parskip\medskipamount + + +\definePath\bgPath{"C:/Users/Public/Documents/% + ManualBGs/Manual_BG_Print_AeB.pdf"} +\begin{docassembly} +\addWatermarkFromFile({% + bOnTop: false, + cDIPath: \bgPath +}) +\executeSave() +\end{docassembly} + +\begin{document} + +\maketitle + +\selectColors{linkColor=black} +\tableofcontents +\selectColors{linkColor=webgreen} + +\section{Introduction} + +This package is an implementation of the \textbf{FitR} view-type +destination. The \textsl{PDF Reference} describes \textbf{FitR} as, +\begin{quote} + Display the page designated by page, with its contents + magnified just enough to fit the rectangle specified by the + coordinates \textsl{left}, \textsl{bottom}, \textsl{right}, + and \textsl{top} entirely within the + window both horizontally and vertically. +\end{quote} +The package supports the \textsf{dvips}, \textsf{dvipsone}, and +\textsf{pdftex}, \textsf{luatex}, \textsf{dvipdfm}, \textsf{dvipdfmx}, and +\textsf{xetex} applications, the first two assume that \textbf{Adobe +Distiller} is the PDF creator. + +The only required packages are the \textsf{eforms} package (dated +2012/06/20 or later), which is part of the \textbf{AeB Bundle}, and +\textsf{collectbox} by Martin Scharrer, more on this package later, and +the ubiquitous \textsf{xcolor}.\footnote{The \textsf{eforms} package +itself brings in other packages, including \textsf{hyperref} and +\textsf{insdljs}.} + +The package was developed in response to a user of the AeB Bundle who was +interested in developing documents for students with low vision; the idea +is to magnify regions of the document so the student can read more +comfortably. The demonstration files are \texttt{fitr\_demo.tex} which +illustrates the package and some special methods for people with low +vision, and \texttt{fitr\_minimal.tex}, which is the same demo file with +any and extra package stripped out. + +\section{The Preamble and Package Options} + +The minimal preamble for this package is +\begin{Verbatim}[xleftmargin=20pt,commandchars=!()] +\usepackage[!meta(driver),!meta(options)]{fitr} +\end{Verbatim} +The \textsf{hyperref} package is brought in through the \textsf{eforms} package. +Optionally, {\fitrpkg} can be used with other members of AeB (\textsf{web} and +\textsf{exerquiz}, for example). + +Another package requirement is \textsf{collectbox} by Martin Scharrer; +quoting from the abstract of the documentation, +\begin{quote} +This package provides macros to collect and process an macro argument +(i.e. something which looks like a macro argument) as horizontal box +instead as a real macro argument. These ``arguments'' will be stored like +when using \cs{savebox}, \cs{sbox} or the \texttt{lrbox} environment and +allow verbatim or other special code. Instead of explicit braces also +implicit braces in the form of \cs{bgroup} and \cs{egroup} are supported.\dots +\end{quote} +The \cs{collectbox} command is used to collect the second argument of +\cs{jdRect}, see the discussion of \cs{jdRect} in Section~\ref*{jdRect}. +As a result, the second argument may contain verbatim text in it. Very cool. + +The package has ten options: six driver options and four viewing +options. +\begin{itemize} +\item \textbf{Driver Options:} These are \texttt{dvips} (the default), + \texttt{dvipsone}, and \texttt{pdftex} (which includes the use of + lualatex), \texttt{dvipdfm}, \texttt{dvipdfmx}, and \texttt{xetex}. If you + specify one of the first two, it is assumed that you are using + \textbf{Adobe Distiller} as your PDF creator. + +\item[] The \textsf{fitr} package checks whether the \textsf{web} + package is loaded, if so, its uses the driver used by + \textsf{web}; otherwise \textsf{fitr} auto-detects for + \textsf{pdftex} and \textsf{xetex}. If no driver is passed, and + neither \textsf{pdftex} nor \textsf{xetex} are detected, then + \textsf{dvips} is the default driver. + +\item \textbf{Viewing Options:} When you specify \texttt{preview}, the +bounding boxes of the buttons are shown in the dvi-previewer (or the PDF +document); you can turn off this preview by specifying \texttt{!preview} +(or removing \texttt{preview} entirely from the option list). The other +option type is \texttt{viewMagWin}, when this option the viewing window, a +rectangular region, becomes visible in the dvi-previewer (or in the PDF +document); specifying \texttt{!viewMagWin} turns off this type of preview. + +\item[] The effects of the viewing options will be illustrated later in this +document, see \autoref{previewEx} on page~\pageref*{previewEx}. + +\end{itemize} + +\section{The one and only command}\label{jdRect} + +The {\fitrpkg} has only one command, \cs{jdRect}, but there are two forms +of usage. \cs{jdRect} optionally creates a push button or link, and +optionally creates a viewing window. The term \emph{viewing window} refers +to a rectangular region that is created by the \textbf{FitR} destination +viewing specification, see \textbf{Table~8.2 Destination syntax} of the +\textsl{PDF Reference}, version 1.7. A \emph{named destination} is created +and is associated with the viewing window. When we jump to a viewing +window, this window is magnified to the largest extent possible. For +example, click on the either of the two displayed forms of the syntax for +\cs{jdRect}; after jumping to the viewing window, click on the same +display to return to the previous view. + +%\previewtrue + +There are two versions of \cs{jdRect}, the command itself, and a +\texttt{*} version, \cs{jdRect*}. The syntax follows, along with the +expected parameters. +\begin{quote} + \jdRect*[adddestw=10bp,adddesth=10bp]{\cs{jdRect[\meta{key-values}]}} +\end{quote} +The above version is used to overlay a region with a button and view +window. No content is specified, but is defined by specifying the +\texttt{width} and \texttt{height}; it can be positioned using +\texttt{shift} and \texttt{lift}. + +There is a \texttt{*}-version as well: +\begin{quote} + \jdRect*[adddestw=10bp,adddesth=10bp]{\cs{jdRect*[\meta{key-values}]}\verb!{!\meta{content}\verb!}!} +\end{quote} +The second parameter \meta{content} is required when the \texttt{*} is +present. This version is meant to enclose \meta{content} within the button +and view window. The \texttt{width} and \texttt{height} keys are ignored, +but \texttt{shift} and \texttt{lift} are obeyed (though you may +\texttt{shift} or \texttt{lift} the button/view window away from the +content). + +Before illustrating the \cs{jdRect} command, we first discuss its +key-value pairs. +\begin{itemize} +\item \texttt{lift=\meta{length}}: This key-value lifts (raises) the + button/viewing window up (or down); for example, + \texttt{lift=15pt} (or \texttt{lift=-15pt}). The default is a lift + of \texttt{0pt}. See \autoref{displayEqEx} on page~\pageref*{displayEqEx}. + +\item \texttt{shift=\meta{length}}: The amount of horizontal shift; + positive to the right, negative to the left. For example, + \texttt{shift=-1in} shifts the button/viewing window 1 inch to the + left. The default is \texttt{0pt}. See + \autoref{displayEqEx} on page~\pageref*{displayEqEx}. + +\item \texttt{width=\meta{length}}: When using \cs{jdRect}---as + opposed to \cs{jdRect*}---, the width of the button and viewing + window is determined by the \texttt{width} key. For example + \texttt{width=1in} creates a button/viewing window that is 1 inch + wide. The value of this key is ignored when the \texttt{*} form of + the \cs{jdRect} is used. The default value is \texttt{0pt}. This + key is required when \texttt{*} is not present. See + \autoref{displayEqEx} on page~\pageref*{displayEqEx}. + +\item \texttt{height=\meta{length}}: Similar comments here as was made + for the \texttt{width} key. This key is 0used to set the height of + the button/viewing window. The default is 0pt. It is required when + \texttt{*} is not present. See \autoref{displayEqEx} on + page~\pageref*{displayEqEx}. + +\item \texttt{ref=t|c|b}: The \texttt{ref} key-value pair determines + the reference point of the button/viewing window. Permissible + values are \texttt{t} top (the default), \texttt{c} center, and + \texttt{b} bottom. This key is only obeyed with the \cs{jdRect*} + form of the command; otherwise, a reference point of \texttt{b} is + used. + +\item \texttt{adddestw=\meta{length}}: The default is for the viewing window to have +the same dimensions as the underlying button. The \texttt{adddestw} +key-value pair is used to widen the viewing window; \texttt{adddestw=.2in} +widens the window by \texttt{.2in} on the left and \texttt{.2in} on the +right. See Figure~\ref*{bvw}, page~\pageref*{bvw}. + +\item \texttt{adddesth=\meta{length}}: Similar to \texttt{adddestw} but for height. +The \texttt{adddesth} +key-value pair is used to increase the height the viewing window; \texttt{adddesth=.2in} +increases the height of the window by \texttt{.2in} on the top and \texttt{.2in} in the bottom. +See Figure~\ref*{bvw}, page~\pageref*{bvw}. +\begin{figure}[htb] +\begin{center}\setlength\fboxsep{0pt} + \fbox{\parbox[c][.9in]{2.4in} + {\vfill\hfil\fbox{\parbox[c][.5in]{2in}{\hfill\vfill}}\hfil\vfill}}\\[4pt] + \caption{Button and Viewing Window}\label{bvw} + {\small\texttt{width=2in,height=.5in,adddestw=.2in,adddesth=.2in}} +\end{center} +\end{figure} + +\item \texttt{button=true|false}: \texttt{button} is a Boolean switch. + If \texttt{true} (the default), \cs{jdRect} creates a push button. + When the user pushes the button, the viewer zooms in to the view + window. Clicking the same region again restores the previous view. + +\item[] When \texttt{button} is \texttt{false}, the button is not created, +but the viewing window is still created. You can then jump to the viewing +window with a separate link or button. When \texttt{button=false}, use the +\texttt{dest} key to assigned a numbed destination to viewing window. +({\fitrpkg} automatically creates the definition names internally, they +are used by the buttons. If no button is created, name the destination so +your know its name and can reference it in link that jumps to that viewing +area.) + + +\item \texttt{link=jmp|restore} If \texttt{link} has a value, then + {\fitrpkg} puts \texttt{button=false}. The \texttt{link} key is + used to create jumps or restore actions to or from a viewing + window. When \texttt{link=jmp} a jump action is created, the jump + will be to the value of the \texttt{dest} key. If this is a pure + link that jumps to another viewing window, then use the + \texttt{nodest} key as well; no viewing window will be created + around the link, as it is unlikely you'll want to jump to a link. + +\def\RungePic{\kern0pt\includegraphics[width=\marginparwidth]{runge}} +\def\jrOpts#1#2{link=#1,dest=#2} + +\item[] For example click on the link +\textbf{\jdRect*[nodest,\jrOpts{jmp}{rungePic},adddestw=10,adddesth=10]{Carl Runge}}% +\marginpar{\jdRect*[\jrOpts{restore}{rungePic},adddestw=\marginparsep, +adddesth=\marginparpush]{\parbox[t]{\marginparwidth}{\RungePic\\ +\normalcolor\centering\footnotesize\textsf{Carl Runge}}}} and jump to +the picture of Runge in the margin. Click on the picture of Runge and +return to the previous view. + +The jump to the picture from the text ``Carl Runge'' is as follows: +\begin{Verbatim}[xleftmargin=20pt] +\jdRect*[nodest,link=jmp,dest=rungePic, +adddestw=10bp,adddesth=10bp]{Carl Runge} +\end{Verbatim} +The important options are \texttt{nodest,link=jmp,dest=rungePic}; +no (named) viewing window is created, we want to create a jump link here, +the destination of the jump link is the destination \texttt{rungePic}. + +\item[] The color of the link is determined by \cs{@linkcolor}, a \textsf{hyperref} +command that holds a named color. This can be redefined at anytime, +directly using +\begin{Verbatim}[xleftmargin=20pt] +\makeatletter +\def\@linkcolor{blue} +\makeatother +\end{Verbatim} +or, if you are using the \texttt{pro} option with the \textsf{web} +package, you can say, +\begin{Verbatim}[xleftmargin=20pt] +\selectColors{linkColor=red} +\end{Verbatim} +When using the \textsf{web} package, the default is \texttt{webgreen}. + +\item[] The action to restore the previous view is as follows: +\begin{Verbatim}[xleftmargin=20pt] +\marginpar{\jdRect*[link=restore,dest=rungePic, + adddestw=\marginparsep,adddesth=\marginparpush + ]{\parbox[t]{\marginparwidth}{\RungePic\\ + \normalcolor\centering\footnotesize\textsf{Carl Runge}}}} +\end{Verbatim} +The picture is placed in the margin using \cs{marginpar}; the command +\cs{RungePic} is a convenience macro that uses \cs{includegraphics} in +import the picture. The important options are +\texttt{link=restore,dest=rungePic}, this first key-value pair causes +\cs{jdRect} to create a restore link, the second one says to create a +viewing window with a name of \texttt{rungePic}, this is the +destination the Carl Runge link jumps to. + + +\item \texttt{nodest}: A Boolean switch whose default value is + \texttt{false}. When \texttt{nodest} is used (making the switch a + value of \texttt{true}), no viewing window is created. + +\item \texttt{dest=\meta{name}}: This key is a way of explicitly naming the + viewing window (the destination). The destination is normally + automatically generated when \texttt{button=true}, this key is + used with the \texttt{link} key, as illustrated above. +\item \texttt{allowFX}: A Boolean switch (of sorts). The \texttt{fitr} + allows for special effects (FX) when a viewing window is jumped to + and when the view is restored. The default value of + \texttt{allowFX} is \texttt{true} allow special effects if there + is any defined. By saying \texttt{allowFX=false}, no special + effects are used, even if some are defined. + +\item[] An example of special effects you say? Try clicking on the + Pythagorean Theorem + \jdRect*[allowFX,adddestw=10bp,adddesth=10bp]{$ a^2 + b^2 = c^2 $} +\end{itemize} + +\section{Some Examples} + +\everymath{\displaystyle} + +In this section, several examples are presented that illustrate the +options of \cs{jdRect}. + +\begin{example}\label{previewEx}\previewtrue\viewMagWintrue +\textbf{Illustrate Preview Rectangles.} The \texttt{preview} and +\texttt{viewMagWin} options just set Boolean switches. In this example, we +manually gives these switches a value of \texttt{true} +(\cs{previewtrue}\cs{viewMagWintrue}). Take a close look at the following +function +\jdRect*{$ f(x) = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^x e^{-t^2/2}\,\text{d}t$}, +or the more general form +\jdRect*[adddestw=20bp,adddesth=10bp]{$ f(x;\mu;\sigma) = \frac{1}{\sigma\sqrt{2\pi}}\int_{-\infty}^x e^{-\frac{(t-\mu)^2}{2\sigma^2}}\,\text{d}t$} +The preview rectangles are shown: For the one on the left, the dimensions +of the push button and the viewing rectangle are the same; for one on the +right, the dimensions of the viewing window have been increased by +using \texttt{adddestw=20bp,adddesth=10bp}. When you jump to each of these +viewing windows, you the one on the left is magnified much more than the +one on the right; the larger viewing window allows the user to see some of +the surrounding text.\fitit +\end{example} + +\begin{example}\label{displayEqEx} +\textbf{Display Math.} Displayed math presents a problem. We take the +following set of equations to illustrate. + +Suppose we want to classify third order \textsf{Runge-Kutta} type methods. +Start with +\begin{align*} +\jdRect[height=1.3in,width=2.6in,lift=16pt,shift=-15pt, + adddestw=10bp,adddesth=10bp] +K_1 &= hf(t_n, y_n)\\ +K_2 &= hf(t_n +r h, y_n+aK_1)\\ +K_3 &= hf(t_n +s h, y_n+bK_1+cK_2)\\ +K &= w_1 K_1+ w_2 K_2+ w_3 K_3\\ +y_{n+1} &= y_n+K +\end{align*} +Find the system of equations satisfied by +\jdRect*[adddestw=10,adddesth=10]{$r,s, a, b, c, w_1, w_2, w_3$} +that will make the above algorithm a third order method. + +The verbatim listing of this set of aligned equations is +\begin{Verbatim}[xleftmargin=20pt,numbers=left] +\begin{align*} +\jdRect[height=1.3in,width=2.6in,lift=16pt,shift=-15pt, + adddestw=10bp,adddesth=10bp] +K_1 &= hf(t_n, y_n)\\ +K_2 &= hf(t_n +r h, y_n+aK_1)\\ +K_3 &= hf(t_n +s h, y_n+bK_1+cK_2)\\ +K &= w_1 K_1+ w_2 K_2+ w_3 K_3\\ +y_{n+1} &= y_n+K +\end{align*} +\end{Verbatim} +This is an example of \cs{jdRect} (the non-\texttt{*} version), so there +is no second argument. In this case, we create our button dimensions +using \texttt{height=1.3in,width=2.6in}, line~(2). Note the positioning +of the \cs{jdRect} command, the upper-left point of the display. We then +use \texttt{lift=16pt,shift=-15pt} to move the button around to cover the +equations, line~(2); finally, we increase the dimensions of the viewing +window in line~(3) with \texttt{adddestw=10bp,adddesth=10bp}. Now, how +were the values of these keys determined? By trial and error, while the +\texttt{preview} and \texttt{viewMagWin} options were in effect. Below are +the same equations with \cs{previewtrue} and \cs{viewMagWintrue}, locally +invoked:\previewtrue\viewMagWintrue +\begin{align*} +\jdRect[height=1.3in,width=2.6in,lift=16pt,shift=-15pt, + adddestw=10bp,adddesth=10bp] +K_1 &= hf(t_n, y_n)\\ +K_2 &= hf(t_n +r h, y_n+aK_1)\\ +K_3 &= hf(t_n +s h, y_n+bK_1+cK_2)\\ +K &= w_1 K_1+ w_2 K_2+ w_3 K_3\\ +y_{n+1} &= y_n+K +\end{align*} +The preview rectangles do not take up any {\TeX} space, so they overlap +parts of the paragraph content. When you zoom in, you'll see part of the +part of the word ``invoked:'', as seen in the upper-left corner, at least +according to the viewing window preview. Is it so? + +After you've set the position of the rectangles, and after all changes +have been made to the underlying content, you don't need the preview +modes.\fitit +\end{example} + +\begin{example}\label{CustomAppr} +\textbf{Customizing the appearance.} The properties of the underlying push button +is to be visible, but does not print. The background and the border are +transparent. The default properties are passed to the push button using a +presets command: +\begin{Verbatim}[xleftmargin=20pt] +\newcommand{\overlayPresets}{\H{I}\BG{}\BC{}\S{S}} +\end{Verbatim} +See the \textsf{eforms} manual for the meaning of these cryptic symbols. +You can modify these settings locally, within a group, or globally. In +this example, we change the border to red dashed line. We redefine +\cs{overlayPresets} as follows: +\begin{Verbatim}[numbers=left,xleftmargin=20pt] +\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{red}\S{D}} +\end{Verbatim} +\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{red}\S{D}}% +The changes are in line~(2), we say \verb!\BC{red}! (the \textsf{xcolor} package is +required here for named colors; otherwise, we would say \verb~\BC{1 0 0}~), +and we've change \verb!\S{S}! to \verb~\S{D}~, which gives a dashed +(\texttt{D}) border as opposed to a solid (\texttt{S}) border. Now to +illustrate this. My name is \jdRect*{D. P. Story!}; lets increase the +viewing window, shall we? My name is \jdRect*[adddestw=10bp,adddesth=10bp]{D. P. +Story!}. Keep in mind that we are overlaying a push button; if you want +the underlying text to have a color, you need to color it yourself: +\jdRect*[adddestw=10bp,adddesth=10bp]{\textcolor{blue}{D. P. Story}!} +This last button has code, +\begin{Verbatim}[xleftmargin=20pt] +\jdRect*[adddestw=10bp,adddesth=10bp]% + {\textcolor{blue}{D. P. Story}!} +\end{Verbatim} +As the changes to the preset appearance are inside a group, after this +example (environment)) \cs{overlayPresets} will revert to its definition +that was in effect outside the example.\fitit +\end{example} + +\section{Special Effects} + +For the standard set up, where there is a push button that overlays the +content along with the viewing window is jumps to, there are two +JavaScript ``hooks'' that can be exploited +\begin{itemize} + \item \texttt{overlayJmpHook()} is an undefined JavaScript + function that is executed after the jump to the viewing + window. (It is enclosed in a \texttt{try/catch} construct that + catches the error thrown.) The document author can define + \texttt{overlayJmpHook()} to perform some action following the + jump. The distribution of {\fitrpkg} comes with one + definition, \texttt{jmpHookBlink.js}, which blinks the border + following the jump. + \item \texttt{overlayRestoreHook()} is an undefined JavaScript + function that is executed following the restored view action. + The document author needs to make a custom definition if + special effects are desired. The distribution of {\fitrpkg} + comes with one definition, \texttt{restoreHookBlink.js}, + which blinks the border following the restore action. +\end{itemize} +The preamble of this document says, +\begin{Verbatim}[xleftmargin=20pt] +\usepackage[js=restoreHookBlink,js=jmpHookBlink]{lmacs} +\end{Verbatim} +The \textsf{lmacs} package is a new package I made available to CTAN, its +a simple package that imports files with extensions of \texttt{.def}, \texttt{.cfg}, and +\texttt{.js}. We import \texttt{restoreHookBlink.js} and +\texttt{jmpHookBlink.js} using a key-value method, where the key is one of +the supported extensions; thus \texttt{js=restoreHookBlink} will import +the file texttt{restoreHookBlink.js} if it exists. By the way, another +nice feature of \textsf{lmacs} is that you can prefix an exclamation point +(!) to cancel out that import, for example, if we wanted to use \texttt{jmpHookBlink} +but not \texttt{restoreHookBlink} we say +\begin{Verbatim}[xleftmargin=20pt] +\usepackage[!js=restoreHookBlink,js=jmpHookBlink]{lmacs} +\end{Verbatim} + +\begin{example}\label{fx}\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{blue}\S{D}}% +\textbf{Special Effects.} Jump to the +\jdRect*[allowFX,adddestw=10bp,adddesth=10bp]{{\fitrpkg} Package!} + +The verbatim listing is +\begin{Verbatim}[xleftmargin=20pt,numbers=left] +\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{blue}\S{D}}% +... +Jump to the \jdRect*[allowFX,adddestw=10bp,adddesth=10bp]% + {{\fitrpkg} Package!} +\end{Verbatim} +We redefined the \cs{overlayPresets} command, choosing an initial border +of blue. In line~(4), I've used \texttt{allowFX}, this key does not +normally to appear in the option list, its default value is normally +\texttt{true}; however, for this document, the following definition was +made in the preamble +\begin{Verbatim}[xleftmargin=20pt] +\renewcommand\allowFXDefault{false} +\end{Verbatim} +This (re)definition of \cs{allowFXDefault} sets the default value of +\texttt{allowFX} to \texttt{false}. This was done so the special effects +JavaScript functions could be imported (using \texttt{lmacs}) but their +effects would not be seen, by default. To see their effect, we have to +explicitly put \texttt{allowFX} to \texttt{true}, which is what the single +key does. (Or, you can say \texttt{allowFX=true}, but that is five more key +presses.)\fitit +\end{example} + +Now, I simply must get back to my retirement. \dps + +\end{document} diff --git a/texmf-dist/doc/latex/fitr/fitr_minimal.tex b/texmf-dist/doc/latex/fitr/fitr_minimal.tex new file mode 100644 index 00000000..160f38fa --- /dev/null +++ b/texmf-dist/doc/latex/fitr/fitr_minimal.tex @@ -0,0 +1,92 @@ +% +% This file works for Adobe Distiller as the PDF creator, with drivers dvips or dvipsone. +% It also works for pdftex (and luatex), dvipdfm, dvipdfmx, and xetex. +% +\documentclass[11pt]{article} +\usepackage{amsmath} +\usepackage[dvipsone,!preview,!viewMagWin]{fitr} +\usepackage[js=restoreHookBlink,js=jmpHookBlink]{lmacs} +\usepackage{graphicx} + +\hypersetup +{% + pdftitle={Jumping to a Rectangular Region}, + pdfauthor={D. P. Story}, + pdfsubject={Demo file to test the FitR view destination of PDF}, + pdfkeywords={LaTeX, PDF, Acrobat, JavaScript} +} + +\parindent0pt \parskip6pt \pagestyle{empty} + +% \renewcommand{\overlayPresets}{\H{I}\S{D}\BG{}\BC{blue}} +% \renewcommand{\allowFXDefault}{false} + +\begin{document} + +\begin{center}\sffamily\bfseries\Large + Jumping to a Rectangular Region\\[1ex]\normalsize\normalcolor + Dr. D. P. Story, \href{http://www.acrotex.net}{Acro\!\TeX.NeT} +\end{center} + +\textbf{Introduction.} This document demonstrates a technique designed to +help people with low vision read material by providing them with a +convenient way to magnify specific regions of the document. This is +especially useful for reading technical material such as mathematics, as +is demonstrated here. + +\textbf{Instructions:} Click on any of the mathematics to magnify a region +around it, the border will blink briefly to focus your attention on it. +To restore the previous view, click on the region again, +the formula is briefly highlighted by a blinking border so +can quickly find your place in the document. + + +\textbf{Sample Mathematical Text.} Consider the problem of numerically +solving the first order differential equation +\jdRect*[adddestw=60,adddesth=20]{$y'=f(t,y)$} on +\jdRect*[adddestw=1in,adddesth=30]{$[t_{start}, t_{end}]$}. Suppose we +want to classify third order \textsf{Runge-Kutta} type methods. Start with +\begin{align*} +\jdRect[height=1.3in,width=2.6in,lift=16pt,shift=-15pt,adddestw=10,adddesth=10] % +K_1 &= hf(t_n, y_n)\\ +K_2 &= hf(t_n +r h, y_n+aK_1)\\ +K_3 &= hf(t_n +s h, y_n+bK_1+cK_2)\\ +K &= w_1 K_1+ w_2 K_2+ w_3 K_3\\ +y_{n+1} &= y_n+K +\end{align*} +Find the system of equations satisfied by +\jdRect*[adddestw=10,adddesth=10]{$r,s, a, b, c, w_1, w_2, w_3$} +that will make the above algorithm a third order method. + +\textbf{Inline links.} Links can be provided within the text to jump to a +magnified region that needs to be inspected more closely. The links below +are different from the ones above. After jumping to a magnified rectangle, +restore the preview view by clicking on the rectangle. + +\def\RungePic{\includegraphics[width=\marginparwidth]{runge}} +\def\KuttaPic{\includegraphics[width=\marginparwidth]{Kutta}} +\def\jrOpts#1#2{link=#1,dest=#2} + +\textbf{\jdRect*[nodest,\jrOpts{jmp}{rungePic},adddestw=10,adddesth=10]{Carl Runge}}% +\marginpar{\jdRect*[\jrOpts{restore}{rungePic},adddestw=\marginparsep, +adddesth=\marginparpush]{\parbox[b]{\marginparwidth}{\RungePic\\ +\normalcolor\centering\footnotesize\textsf{Carl Runge}}}} (1867-1944) +was the third of four sons from a well-to-do German merchant family. He +is remembered for his \textsf{Runge-Kutta} method for solving +differential equations. + +\textbf{\jdRect*[nodest,\jrOpts{jmp}{KuttaPic}]{Martin Kutta}}% +\marginpar{\jdRect*[\jrOpts{restore}{KuttaPic},adddestw=\marginparsep, +adddesth=\marginparpush]{\parbox[b]{\marginparwidth}{\KuttaPic\\ +\normalcolor\centering\footnotesize\textsf{Martin Kutta}}}} (1867-1944) +extended the Runge's method of solving ordinary differential equations. He +is also known for his work on airfoils. + +% Again, don't forget to press +%\textbf{Alt+Left Arrow} to return to the view you had before you clicked +%on the link. + +\begin{flushright} +This work was motivated by Mohsen M. +\end{flushright} +\end{document} diff --git a/texmf-dist/doc/latex/fitr/jmpHookBlink.js b/texmf-dist/doc/latex/fitr/jmpHookBlink.js new file mode 100644 index 00000000..c6ea043e --- /dev/null +++ b/texmf-dist/doc/latex/fitr/jmpHookBlink.js @@ -0,0 +1,41 @@ +% +% This script hooks into the DLJS of fitr to blink the field +% border when the user clicks in it. Length of the blink +% is 1250 milli-seconds. +% +\begin{insDLJS}[overlayJmpHook]{jfitr}{Blink border after jump} +function overlayJmpHook(event) { + toggleBC.field=event.target; + toggleBC.field=event.target; + toggleBC.startColor=event.target.strokeColor; + toggleBC.altColor=(color.equal(toggleBC.startColor,color.transparent))?% +color.red:color.transparent; + oSIJ=app.setInterval("toggleBC();",250); + oTOJ=app.setTimeOut("app.clearInterval(oSIJ); resetBC();",1250); +} +if (typeof toggleBC != "function" ) { + function toggleBC() { + var oField=toggleBC.field; + oField.strokeColor=% + (color.equal(oField.strokeColor,toggleBC.startColor))?% +toggleBC.altColor:toggleBC.startColor; + } + function resetBC() { + toggleBC.field.strokeColor=toggleBC.startColor; + } +} +\end{insDLJS} +\endinput + +function toggleBC() { + var oField=toggleBC.field; + oField.strokeColor=% +(color.equal(oField.strokeColor,toggleBC.startColor))?% +toggleBC.altColor:toggleBC.startColor; +} + +%function toggleBC() { +% var oField=toggleBC.field; +% oField.strokeColor=% +%(color.equal(oField.strokeColor,color.transparent))?color.red:color.transparent; +%} diff --git a/texmf-dist/doc/latex/fitr/restoreHookBlink.js b/texmf-dist/doc/latex/fitr/restoreHookBlink.js new file mode 100644 index 00000000..77f6077e --- /dev/null +++ b/texmf-dist/doc/latex/fitr/restoreHookBlink.js @@ -0,0 +1,33 @@ +% +% This script hooks into the DLJS of fitr to blink the field +% border when the user clicks in it. Length of the blink +% is 1250 milli-seconds. +% +\begin{insDLJS}[overlayRestoreHook]{rfitr}{Blink border on restore} +function overlayRestoreHook(event,bRestore) { + if (!bRestore) return; + toggleBC.field=event.target; + toggleBC.startColor=event.target.strokeColor; + toggleBC.altColor=(color.equal(toggleBC.startColor,color.transparent))?% +color.red:color.transparent; + oSIR=app.setInterval("toggleBC();",250); + oTOR=app.setTimeOut("app.clearInterval(oSIR); resetBC();",1250); +} +if (typeof toggleBC != "function" ) { + function toggleBC() { + var oField=toggleBC.field; + oField.strokeColor=% + (color.equal(oField.strokeColor,toggleBC.startColor))?% +toggleBC.altColor:toggleBC.startColor; + } + function resetBC() { + toggleBC.field.strokeColor=toggleBC.startColor; + } +} +\end{insDLJS} +\endinput +function toggleBC() { + var oField=toggleBC.field; + oField.strokeColor=% +(color.equal(oField.strokeColor,color.transparent))?color.red:color.transparent; +} diff --git a/texmf-dist/doc/latex/fitr/runge.bb b/texmf-dist/doc/latex/fitr/runge.bb new file mode 100644 index 00000000..fc1a526a --- /dev/null +++ b/texmf-dist/doc/latex/fitr/runge.bb @@ -0,0 +1,5 @@ +%%Title: C:/Users/D. P. Story/Desktop/examples/runge.pdf +%%Creator: extractbb 20120420 +%%BoundingBox: 0 0 269 326 +%%CreationDate: Wed Jun 27 19:32:48 2012 + diff --git a/texmf-dist/doc/latex/fitr/runge.eps b/texmf-dist/doc/latex/fitr/runge.eps new file mode 100644 index 00000000..283816ea Binary files /dev/null and b/texmf-dist/doc/latex/fitr/runge.eps differ diff --git a/texmf-dist/doc/latex/fitr/runge.jpg b/texmf-dist/doc/latex/fitr/runge.jpg new file mode 100644 index 00000000..db05c74b Binary files /dev/null and b/texmf-dist/doc/latex/fitr/runge.jpg differ diff --git a/texmf-dist/doc/latex/fitr/runge.pdf b/texmf-dist/doc/latex/fitr/runge.pdf new file mode 100644 index 00000000..85ee459f Binary files /dev/null and b/texmf-dist/doc/latex/fitr/runge.pdf differ diff --git a/texmf-dist/doc/latex/fitr/runge.xbb b/texmf-dist/doc/latex/fitr/runge.xbb new file mode 100644 index 00000000..6475eae1 --- /dev/null +++ b/texmf-dist/doc/latex/fitr/runge.xbb @@ -0,0 +1,6 @@ +%%Title: C:/Users/D. P. Story/Desktop/examples/runge.jpg +%%Creator: extractbb 20120420 +%%BoundingBox: 0 0 269 326 +%%HiResBoundingBox: 0.000000 0.000000 268.800000 326.400000 +%%CreationDate: Wed Jun 27 15:21:16 2012 + diff --git a/texmf-dist/doc/latex/jj-game/README.md b/texmf-dist/doc/latex/jj-game/README.md new file mode 100644 index 00000000..eab03163 --- /dev/null +++ b/texmf-dist/doc/latex/jj-game/README.md @@ -0,0 +1,58 @@ +The jj_game Class +Author: D. P. Story +Dated: 2016/11/24 + +JJ_game class is a Jeopardy-like game in which you compete for cyber money by +answering questions composed by the game author. The questions can be +multiple choice, math fill-in or text fill-in. + +Since the year 2000, many techniques have been developed, and this +version of jj_game has many enhancements an new features: + (1) Added the ability to pose math and text fill-in questions + + (2) Enhanced control over the color design of the game + + (3) The distribution comes with 9 designs (color schemes) + jeopardy, florida, iceland, hornet, qatar, norway, germany, + bahamas and spain + + (4) Five general graphical backgrounds provided, and two additional + ones that are used in a custom design + + (5) language option, currently english and german. Additional + languages will be added as translators volunteer + +The basic game can be constructed using dvips, pdftex, luatex, and xelatex. + +Additionally, there is a pro option that requires the use of dvips/Distiller +workflow (Acrobat Pro 7.0 or later required). + +I have used the jj_game class in some of my classes for extra +credit; for this purpose, the following features were developed: + + (6) A forcredit option that forces the student---assuming the + contestant is taking the game for credit---to enter his/her name. + + (7) With the pro option, layers are used to hide the questions + from the contestant before he/she selects a question from + the game board. When the contestant selects a question, the + question is made visible. The questions are in layers with + a no print attribute, so the contestant cannot print out the + game and distribute the questions to other contestants even if + the questions are visible. + +Documentation jjg_man.pdf contains all details of the game, and +wonderful demo files are also supplied. + +What's New (2016/11/24): Brought jj_game class up to conformance to the +modern exerquiz package, which has changed over the years. + +Comments and suggestions are always gratefully accepted and seriously +considered. + +Hope you like the new version, now, I simply must get back to my +retirement! + +one dps +dpstory at uakron dot edu +dpstory at acrotex dot net diff --git a/texmf-dist/doc/latex/jj-game/examples/jg_ca.tex b/texmf-dist/doc/latex/jj-game/examples/jg_ca.tex new file mode 100644 index 00000000..c79f58fc --- /dev/null +++ b/texmf-dist/doc/latex/jj-game/examples/jg_ca.tex @@ -0,0 +1,250 @@ +% +% Try this file with the various design options: jeopardy,florida,iceland,hornet,qatar, +% norway,germany,bahamas,spain +% +\documentclass[design=norway]{jj_game} +\usepackage{amsmath} +\usepackage{exerquiz} +\usepackage[ImplMulti]{dljslib} + +\author{D. P. Story} +\university{Northwest Florida State College} + +% +% include a standard footer at the bottom of the first page. +% +\includeFootBanner + +\titleBanner{Function Jeopardy!} +\afterGameBoardInsertion{\medskip\gameboardPrintButton} + +\GameDesign +{ + Cat: General Functions, + Cat: Quadratic Functions, + Cat: Polynomial Functions, + Cat: Rational Functions, + NumQuestions: 3, +% Goal: 1,500, % specify absolute goal + GoalPercentage: 85, % specify relative goal + ExtraHeight: .7in, + Champion: You are FuncTerrific!, +} + +\APScore{align: c} + +\begin{document} + + +\begin{instructions} +% +% Insert the Instruction page here +% +\textcolor{red}{\textbf{Extra Credit:}} Before you begin, enter your +name in the text field below. After you have finished with +\textsf{Function Jeopardy!}, print the next page (the game board page) and +turn it in for extra credit. + +% +% We ask for the contestant's name, but this is not enforced +% +\textcolor{red}{\textbf{Name:}} \underbar{\contestantName{1.5in}{11bp}} + +\textcolor{blue}{\textbf{Method of Scoring.}} If you answer a +question correctly, the dollar value of that question is added to +your total. If you miss a question, the dollar value is +\textit{subtracted} from your total. So think carefully before +you answer! + +\textcolor{blue}{\textbf{Instructions.}} Solve the problems in any +order you wish. If your total at the end is more than \$\Goal, you +will be declared \textbf{FuncTerrific}, a master of functions of +college algebra! + +\textcolor{blue}{\textbf{To Begin:}} Go to the next page. + +\end{instructions} + + +\everymath{\displaystyle} + +\begin{Questions} + +\begin{Category}{General Functions} + +\begin{Question} +Given credit for first using the functional notation $f(x)$. +\begin{oAnswer} + Who is\dots\RespBoxTxt{2}{1}{3}{Leonhard Euler}{L. Euler}{Euler} +\end{oAnswer} +\end{Question} + +\begin{Question} +Given $ f(x) = \frac{x}{x+2} $, the expression that represents $ f(1/x) $. What is \dots +\begin{oAnswer} +\begin{equation*} +f(2x)=\RespBoxMath{1/(2*x+1)}{4}{.0001}{[1,2]} +\end{equation*} +\end{oAnswer} +\end{Question} + +\begin{Question}[2] +The axis of symmetry of the graph of the function $ f(x) = 2 - ( x + 1 )^2 $. What is \dots + + +\Ans0 the $x$-axis & +\Ans0 the $y$-axis \\[1ex] +\Ans1 the line $ x = -1 $ & +\Ans0 the line $ x = 1 $ \\[1ex] +\Ans0 the line $ y = 2 $ & +\Ans0 the line $ y = -2 $ + +\end{Question} + +\end{Category} + +\begin{Category}{Quadratic Functions} + +\begin{Question} +The number of zeros of the quadratic function +$$ f(x) = x^2 - 2x + 2 $$ +What is \dots + +\Ans1 $0$ +\Ans0 $1$ +\Ans0 $2$ +\Ans0 $3$ +\end{Question} + +\begin{Question} +The vertex $V$ of the parabola $ f(x) = 3 - 4x - 4x^2 $. What is \dots + +\Ans0 $V(1/4, 7/4)$ +\Ans0 $V(-1/4, 15/4)$ +\Ans0 $V(1/2, 0)$ +\Ans1 $V(-1/2,4)$ +\Ans0 $V(3/4, -9/4)$ +\Ans0 $V(-1/2, 15/4)$ +\Ans0 None of these +\end{Question} + +\begin{Question}[4] +The price $p$ and the quantity $x$ sold of a certain product obey the +demand equation +\begin{equation*} + p = -\frac{1}{6}x + 100 +\end{equation*} +Find the quantity $x$ that maximizes revenue. + +\Ans0 $100$ & +\Ans0 $200$ & +\Ans1 $300$ & +\Ans0 $400$ \\[3ex] +\Ans0 $500$ & +\Ans0 $600$ & +\Ans0 $700$ & +\Ans0 $800$ \\[3ex] +\Ans0 $900$ & +\Ans0 $1000$ & +\Ans0 $1100$ & +\Ans0 $1200$ +\end{Question} + +\end{Category} + + +\begin{Category}{Polynomial Functions} + +\begin{Question}[4] +The \textbf{end behavior} of the polynomial function +\begin{equation*} + f(x) = (2x-1)^2 ( x + 3 )^2 ( 3x^3 + 1 )^2 +\end{equation*} +is like that of what function? What is \dots + +\Ans0 $y = x$ & +\Ans0 $y = x^{2}$ & +\Ans0 $y = x^{3}$ & +\Ans0 $y = x^{4}$ \\[3ex] +\Ans0 $y = x^{5}$ & +\Ans0 $y = x^{6}$ & +\Ans0 $y = x^{7}$ & +\Ans0 $y = x^{8}$ \\[3ex] +\Ans0 $y = x^{9}$ & +\Ans1 $y = x^{10}$ & +\Ans0 $y = x^{11}$ & +\Ans0 $y = x^{12}$ +\end{Question} + +\begin{Question} +The multiplicity of the zero $ x = 1/2 $ of the polynomial function +$ f(x) = x^2 (x - 2 ) (2x - 1 )^3$. What is \dots + +\Ans0 $1$ +\Ans0 $2$ +\Ans1 $3$ +\Ans0 Don't fool with me, $1/2$ is not a zero of this polynomial! +\Ans0 None of these +\end{Question} + +\begin{Question} +The number of times the function +$$ + y = -(x^2 + 0.5)(x-1)^2(x+1)(x-2) +$$ +touches but \textit{does not cross} the $x$-axis. What is \dots + +\Ans0 $0$ times +\Ans1 $1$ time +\Ans0 $2$ times +\Ans0 $3$ times +\Ans0 $4$ times +\end{Question} + +\end{Category} + +\begin{Category}{Rational Functions} + +\begin{Question} +For a rational function, when the degree of the numerator is greater than the +degree of the denominator, then the $x$-axis is a horizontal asymptote. True or False? + +\Ans0 True +\Ans1 False +\end{Question} + +\begin{Question} +The asymptotes for the rational function +\begin{equation*} + R(x) = \frac{3x^2 -1}{(3x-1)(2x+2)} +\end{equation*} +What are \dots + +\Ans0 $ y = 1 $, $ x = -2 $, $ x = 3$ +\Ans0 $ y = 1/6 $, $ x = -2 $, $ x = 1/3$ +\Ans1 $ y = 1/2 $, $ x = -1 $, $ x = 1/3$ +\Ans0 $ y = 1/2 $, $ x = -2 $, $ x = 3$ +\Ans0 $ y = 1 $, $ x = 1 $, $ x = 1/3$ +\Ans0 $ y = 1/6 $, $ x = -1 $, $ x = 1/3$ +\Ans0 None of these +\end{Question} + +\begin{Question} +The oblique asymptote of the rational function +\begin{equation*} + R(x) = \frac{4x^4 - 6x^3 + 5x^2 + x + 4}{2x^3 + 3x} +\end{equation*} +What is \dots + +\Ans0 $y = 4$ +\Ans0 $y = 2x + 4$ +\Ans1 $y = 2x-3$ +\Ans0 $y = 4x - 3$ +\Ans0 $y = 4x + 4$ +\Ans0 $ y = 2x + 3$ +\Ans0 $ y = 2x - 4$ +\Ans0 None of these +\end{Question} +\end{Category} +\end{Questions} +\end{document} diff --git a/texmf-dist/doc/latex/jj-game/examples/jjg_custom.tex b/texmf-dist/doc/latex/jj-game/examples/jjg_custom.tex new file mode 100644 index 00000000..b21fce8d --- /dev/null +++ b/texmf-dist/doc/latex/jj-game/examples/jjg_custom.tex @@ -0,0 +1,384 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% +%% JEOPARDY DEMO FILE %% +%% %% +%% The AcroTeX Software Development Team (Copyright 2007) %% +%% http://www.acrotex.net +%% %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass{jj_game} % or dvips, pdftex, luatex, xetex +\usepackage{amsmath} + +% This is an example of how you can design your own unique +% graphical display of the game and how you can use jj_game +% commands to place the jj_game elements on the page. + +% +% Raise the text in the banner to fit the graphic better +% +\renewcommand{\bannerTextControl}[1]{\raisebox{3pt}{#1}} +% +% Adjust font used in banner text +% +\renewcommand{\bannerTextFont}{\sffamily\bfseries\large} + +%% Possible Definition of a CENT Symbol +\def\cents{\hbox{\rm\rlap/c}} + +\titleBanner{Money Sense Jeopardy} + +% +% Add a little vertical space under the currency statement +% of the question page. +% +\aboveCurrencySkip{12pt} + +% +% Declare the graphics to be used on the first, second, the +% the question pages. +% +%\defineInstructionPageGraphic{Quiz_Jeopardy} +%\defineGameboardPageGraphic{Quiz_Jeopardy_GB} +%\defineQuestionPagesGraphic{Quiz_Jeopardy} + +%% You can also define your own Color(s), like so: +%% \definecolor{my_color}{rgb}{0.92,0.67,0.1} +%% So you are very flexible in Color Design of your +%% unique Jeopardy Game +\definecolor{demo_gb}{rgb}{0.58, 0.58, 0} +\definecolor{demo}{rgb}{0.275, 0.275, 0.275} + +\DeclareColors +{ + fillCells: transparent, + fillBanner: transparent, + textBanner: black, + textBoard: black, + fillInstructions: cornsilk, + fillGameBoard: demo_gb, + fillQuestions: cornsilk, + dollarColor: red, % Color of the Value of the Question (in the question environment) + linkColor: red, % Color of the Links (the answer possibilities) +} + +%% Note, that the measurement of the resulting PDF is given with the +%% Number of Categories, Number of the appropriate Questions, Cell Width +%% and Cell Height. The Geometry of the PDF depends on that next settings in +%% the "\GameDesign"! + +\GameDesign +{ + Cat: [\sffamily\bfseries] Fractions, % Special Font settings in the [...] for the Categories + Cat: [\sffamily\bfseries] Decimals, + Cat: [\sffamily\bfseries] Numbers/Rounding, + Cat: [\sffamily\bfseries] Money, + NumQuestions: 5, + CellWidth: 1.5in, + CellHeight: .5in, +% Goal: 1,500, % specify absolute goal + GoalPercentage: 90, % specify relative goal + ExtraHeight: 0pt, + Champion: Financial Wizardry!, +} + +\APDollar +{ + Font: Helv, + Size: 20, + TextColor: 1 1 1, % color of text for the Gameboard cell + BorderColor: 0 0 0, % color of border for the Gameboard cell + FillColor: 0.275 0.275 0.275 % the fill color for the Gameboard cell +} + +\APHidden +{ + Font: Helv, + Champion: You are TeXerrific!, + Size: 20, + TextColor: 0 0 0, + BorderColor: 0 0 0, + FillColor: 0.92 0.67 0.1 +} + +\APRight +{ + Font: Helv, + Size: 20, + TextColor: 0.62 0.55 0.067, +} + +\APWrong +{ + Font: Helv, + Size: 20, + TextColor: 0.96 0.38 0.12, +} + +\APScore +{ + Font: Helv, + Size: 20, + CellWidth: 4in, + BorderColor: , + FillColor: 1 0.8 0, + AutoPlacement: true, + Score: "Points: ", + Currency: "$", + align: c, +} + +\begin{document} + +\begin{instructions} + +\vspace*{12pt} + +\textcolor{red}{\bfseries Method of Scoring:} + +If you answer a question correctly, the dollar value of that +question is added to your total. If you miss a question, the value +is {\it subtracted\/} from your total. So think carefully before +you answer! + +\textcolor{red}{\textbf{Instructions:}} + +Solve the problems in +any order you wish. + +\textcolor{red}{\textbf{Important:}} + +Acrobat Reader 5.0 or later required. + +\begin{center} +\Acrobatmenu{NextPage}{\fcolorbox{red}{lightgray}{\sffamily\textbf{Start the Quiz}}} +\end{center} + +\end{instructions} + +%% Some Local Definitions of Layout +\DeclareColors{fillBanner: BrickRed} % Local defined Background Color for the Gameboard + +\begin{Questions} + +\begin{Category}{Fractions} + +%% Some Local Definitions of Layout +\DeclareColors{fillBanner: transparent} % Local defined Background Color for the Questions + +\begin{Question} + +An equivalent way to write a fraction is as a \dots +\Ans0 Product +\Ans1 Decimal +\Ans0 Sum +\Ans0 Factor +\end{Question} + +\begin{Question} + +The fraction $\dfrac{3}{10}$ written as a decimal is\dots +\Ans0 $0.03$ +\Ans0 $3.10$ +\Ans1 $0.3$ +\Ans0 $1.3$ +\end{Question} + +\begin{Question} + +A number equivalent to the fraction $\dfrac{99}{99}$ is\dots +\Ans0 $100$ +\Ans0 $9$ +\Ans1 $1$ +\Ans0 $198$ +\end{Question} + +\begin{Question} + +The fraction $\dfrac{77}{77}$ is equivalent to\dots +\Ans0 $\dfrac{60}{80}$ +\Ans1 $\dfrac{30}{30}$ +\Ans0 $154$ +\Ans0 $0$ +\end{Question} + +\begin{Question} + +The fraction $\dfrac{3}{2}$ is equal to\dots +\Ans0 $2\dfrac{2}{3}$ +\Ans0 $6$ +\Ans1 $1\dfrac{1}{2}$ % changed from $1\dfrac{1}{3}$ +\Ans0 $1$ +\end{Question} + +\end{Category} + + +\begin{Category}{Decimals} + +\begin{Question} + +Compare the decimals $0.4$ and $0.40$\dots +\Ans0 $0.4>0.40$ +\Ans0 $0.4<0.40$ +\Ans1 $0.4=0.40$ +\Ans0 none of the above +\end{Question} + +\begin{Question} + +Compare the decimals $0.35$ and $0.75$\dots +\Ans0 $0.35>0.75$ +\Ans1 $0.35<0.75$ +\Ans0 $0.35=0.75$ +\Ans0 none of the above +\end{Question} + +\begin{Question} + +The fraction $\dfrac{1}{2}$ is equivalent to the +decimal\dots +\Ans0 $0.20$ +\Ans0 $1.25$ +\Ans0 $0.12$ +\Ans1 $0.50$ +\end{Question} + + +\begin{Question} + +The largest number among $1.26$, $0.58$, $1.09$, $1.091$ and $0.35$ +is\dots +\Ans1 $1.26$ +\Ans0 $0.58$ +\Ans0 $1.09$ +\Ans0 $1.091$ +\Ans0 $0.35$ +\end{Question} + + +\begin{Question} + +The smallest number among $1.26$, $0.58$, $1.09$, $1.091$ and $0.35$ +is\dots +\Ans0 $1.26$ +\Ans0 $0.58$ +\Ans0 $1.09$ +\Ans0 $1.091$ +\Ans1 $0.35$ +\end{Question} + +\end{Category} + + +\begin{Category}{Numbers \& Rounding} + +\begin{Question} + +The number one million, seventy-nine thousand five is written +as\dots +\Ans0 $1{,}795{,}000$ +\Ans1 $1{,}079{,}005$ +\Ans0 $1{,}790{,}500$ +\Ans0 $1{,}709{,}050$ +\end{Question} + +\begin{Question} + +The smallest number you can make with the digits $3$, $6$, $4$, $7$, +$2$ is\dots +\Ans0 $42{,}736$ +\Ans0 $23{,}647$ +\Ans0 $32{,}467$ +\Ans1 $23{,}467$ +\end{Question} + +\begin{Question} + +The largest number you can make with the digits 5, 9, 0, 3, 8, 1 is\dots +\Ans0 $590{,}381$ +\Ans0 $183{,}095$ +\Ans1 $985{,}310$ +\Ans0 $958{,}013$ +\end{Question} + +\begin{Question} + +The expanded form of four hundred thirty-two thousand, one +hundred three is\dots +\Ans1 $400{,}000+30{,}000+2{,}000+100+3$ +\Ans0 $400+32{,}000+103$ +\Ans0 $400{,}000+30,000+2{,}000+100+30$ +\Ans0 $4{,}000{,}000+30{,}000+2{,}000+100+3$ +\end{Question} + +\begin{Question} + +In which set would all the numbers round to $60$? +\Ans0 $55$, $52$, $69$, $67$ +\Ans1 $56$, $59$, $63$, $64$ +\Ans0 $57$, $61$, $56$, $68$ +\Ans0 $58$, $62$, $57$, $69$ +\end{Question} + +\end{Category} + +\begin{Category}{Money} + +\begin{Question} + +The change received back from $\$1.00$ after buying an ice cream +cone consisted of a quarter, a dime and three pennies. The ice +cream cone cost\dots +\Ans0 $78$\cents +\Ans1 $62$\cents +\Ans0 $53$\cents +\Ans0 $38$\cents +\end{Question} + +\begin{Question} + +Which of the following equals $\$1.47$? +\Ans0 four quarters, five dimes, four nickels, seven pennies +\Ans0 six quarters, one nickel, two pennies +\Ans1 five quarters, two dimes, two pennies +\Ans0 four quarters, one dime, one nickel, two pennies +\end{Question} + +\begin{Question} + +John spent a total of $\$3.00$ on baseball cards. To find out +how much money he has left, we need to know\dots +\Ans0 How many cards John bought +\Ans0 How much a card costs +\Ans0 How many times John bought cards +\Ans1 How much money John had at first +\end{Question} + +\begin{Question} + +If you pay for a $\$13.97$ toy with a $\$50$ bill, your change +is\dots +\Ans0 $\$35.03$ +\Ans1 $\$36.03$ +\Ans0 $\$35.97$ +\Ans0 $\$36.97$ +\end{Question} + +\begin{Question} + +Kate has three dimes. Anna has four nickels. Which number sentence tells +how many cents they have together? +\Ans0 $4+3$ +\Ans0 $3+10+4+5$ +\Ans1 $(3\times 10)+(4\times 5)$ +\Ans0 $7\times(10+5)$ +\end{Question} + +\end{Category} + +\end{Questions} + +\end{document} diff --git a/texmf-dist/doc/latex/jj-game/examples/jjg_test.tex b/texmf-dist/doc/latex/jj-game/examples/jjg_test.tex new file mode 100644 index 00000000..71f9f516 --- /dev/null +++ b/texmf-dist/doc/latex/jj-game/examples/jjg_test.tex @@ -0,0 +1,198 @@ +% +% AcroTeX.Net : http://www.acrotex.net +% Copyright 2000-2007 D. P. Story +% dpstory@owc.edu +% +% Try this file with the various design options: jeopardy,florida,iceland,hornet,qatar, +% Norway,Germany,bananas,Spain +% +\documentclass{jj_game} % try the twoplayer option as well +\usepackage{amsmath} +% +% By bringing in the exerquiz package, you can also pose +% math fill-in and text-fill-in questions. +% + +\titleBanner{The \TeX\ Game!} + +\marginsize{.25in}{.25in}{.25in}{.25in} % the default + +% This is a little messy because I have parameter values for the +% foils option included here. I wouldn't think that this +% would be the normal practice. + +\DeclareColors{linkColor: red} + +\GameDesign +{ + Cat: \TeX, + Cat: \LaTeX, + Cat: Classes \&~Packages, + NumQuestions: 3, + CellWidth: 1in, + CellHeight: .5in, +% Goal: 1,500, % specify absolute goal + GoalPercentage: 90, % specify relative goal + ExtraHeight: 0pt, +} +\APHidden +{ + Champion: You are TeXerrific!, + Size: 20, +} +\APDollar +{ + Size: 20, +} + +\APRight +{ + Size: 20, +} +\APWrong +{ + Size: 20, +} +\APScore +{ + Font: Arial, +% Font: TiRo, + Size: 20, + CellWidth: 2in, + align: c, +% Score: "Score: ", +% Score: "", +% Currency: "\string\\u20ac", + Currency: "$", +} + +\newcommand\cmd[1]{\texttt{\string#1}} + +\begin{document} + +\begin{instructions} +% +% Insert the Instruction page here +% +\textcolor{red}{\textbf{Method of Scoring.}} If you answer a +question correctly, the dollar value of that question is added to +your total. If you miss a question, the dollar value is +\textit{subtracted} from your total. So think carefully before +you answer! + +\textcolor{red}{\textbf{Instructions.}} Solve the problems in +any order you wish. If your total at the end is more than \$\Goal, +you will be declared \textbf{\TeX errific}. + + +\textcolor{red}{\textbf{Important:}} Acrobat Reader 5.0 or later required + +\textcolor{red}{\textbf{To Begin:}} Go to the next page. + +\end{instructions} + +\begin{Questions} + +\begin{Category}{TeX} + +\begin{Question}[2] +The person who created \TeX. Who is \dots \vspace{2ex} + +\Ans0 Sabastian Rahtz & +\Ans1 Donald Knuth \\[2ex] +\Ans0 Leslie Lamport & +\Ans0 David Carisle \\[2ex] +\Ans0 Michel Goossens & +\Ans0 Frank Mittelbach \\[2ex] +\Ans0 Alexander Samarin + +\end{Question} + +\begin{Question} +The number of scaled points in a point. What is\dots\dots +\Ans0 $72$ +\Ans0 $1{,}157$ +\Ans1 $65{,}536$ +\Ans0 $120{,}745$ +\end{Question} + +\begin{Question} +When the Main Vertical List accumulates more than enough material +to construct a page, \TeX{} cuts off a chunk of it and places it +in a certain \cmd{\vbox}. What is \dots +\Ans0 \cmd{\box0} +\Ans0 \cmd{\box2} +\Ans1 \cmd{\box255} +\Ans0 \cmd{\box256} +\end{Question} + +\end{Category} + + +\begin{Category}{LaTeX} + +\begin{Question} +The command used to typeset the title of an \texttt{article} class +document, what is \dots +\Ans0 \cmd{\title} +\Ans1 \cmd{\maketitle} +\Ans0 \verb+\begin{title}...\end{title}+ +\Ans0 \cmd{\typesettitle} +\end{Question} + +\begin{Question} +The declaration version of the font command \cmd{\textbf}, what is +\dots +\Ans0 \cmd{\bffamily} +\Ans0 \cmd{\boldface} +\Ans0 \cmd{\bfshape} +\Ans1 \cmd{\bfseries} +\end{Question} + +\begin{Question}[2] +The command necessary to typeset the math expression +$x_{a_1}^{2b}$, what is \dots +\Ans0 \verb+$x_a_1^{2b}$+ & +\Ans1 \verb+$x_{a_1}^{2b}$+ \\ +\Ans0 \verb+$x_{a_1}^2b$+ & +\Ans0 \verb+$x_a_1^2^b$+ \\ +\Ans0 \verb+$x_{a_1}^2^b$+ & +\Ans0 \verb+$x_a_1^2b$+ +\end{Question} + +\end{Category} + +\begin{Category}{Classes \& Packages} + +\begin{Question} +The standard \LaTeX{} command used to introduce a \LaTeX{} package into the +document, what is \dots +\Ans0 \cmd{\input} +\Ans0 \cmd{\include} +\Ans1 \cmd{\usepackage} +\Ans0 \cmd{\inputpackage} +\end{Question} + +\begin{Question} +The package used to introduce language support into a \LaTeX{} +document, what is \dots +\Ans0 \texttt{multilingual} +\Ans0 \texttt{german} +\Ans0 \texttt{language} +\Ans1 \texttt{babel} +\end{Question} + +\begin{Question} +The package used for introducing cross-reference links that become +active when the document is converted to PDF, what is \dots +\Ans1 \texttt{hyperref} +\Ans0 \texttt{x-links} +\Ans0 \cmd{\ref} and \cmd{\pageref} +\Ans0 \texttt{xr-hyper} +\end{Question} + +\end{Category} + +\end{Questions} + +\end{document} diff --git a/texmf-dist/doc/latex/jj-game/examples/pro/jjg_pro_ca.tex b/texmf-dist/doc/latex/jj-game/examples/pro/jjg_pro_ca.tex new file mode 100644 index 00000000..0dd9a84e --- /dev/null +++ b/texmf-dist/doc/latex/jj-game/examples/pro/jjg_pro_ca.tex @@ -0,0 +1,261 @@ +% +% Requires AeB Pro, Acrobat 7.0 or later and distiller +% +% We choose the pro option, this brings in the use of layers---the questions are hidden +% even if the user tries to peek. The forcredit option forces the user to enter something +% in the name section before being allowed to continue. +% +% Try this file with the various design options: jeopardy,florida,iceland,hornet,qatar, +% norway,germany,bahamas,spain +% +\documentclass[pro,forcredit,design=iceland]{jj_game} % or dvips, dvipsone +\usepackage{amsmath} +\usepackage{graphicx} +\usepackage[% + dljslib={ImplMulti}, + exerquiz, + uselayers +]{aeb_pro} + +\author{D. P. Story} +\university{Northwest Florida State College} + +% +% Require version 7.0 or later (this is an AeB Pro command) +% +\requiresVersion{7} +% +% include a standard footer at the bottom of the first page. +% +\includeFootBanner + +\titleBanner{Function Jeopardy!} +\afterGameBoardInsertion{\medskip\gameboardPrintButton} + +\GameDesign +{ + Cat: General Functions, + Cat: Quadratic Functions, + Cat: Polynomial Functions, + Cat: Rational Functions, + NumQuestions: 3, +% Goal: 1,500, % specify absolute goal + GoalPercentage: 85, % specify relative goal + ExtraHeight: .7in, + Champion: You are FuncTerrific! +} + +\APScore{align: c} + +\begin{document} + + +\begin{instructions} +% +% Insert the Instruction page here +% +\textcolor{red}{\textbf{Extra Credit:}} Before you begin, enter your +name in the text field below. After you have finished with +\textsf{Function Jeopardy!}, print the next page (the game board page) and +turn it in for extra credit. + +\textcolor{red}{\textbf{Name:}} \underbar{\contestantName{1.5in}{11bp}} + +\textcolor{blue}{\textbf{Method of Scoring.}} If you answer a +question correctly, the dollar value of that question is added to +your total. If you miss a question, the dollar value is +\textit{subtracted} from your total. So think carefully before +you answer! + +\textcolor{blue}{\textbf{Instructions.}} Solve the problems in any +order you wish. If your total at the end is more than \$\Goal, you +will be declared \textbf{FuncTerrific}, a master of functions of +college algebra! + +\textcolor{blue}{\textbf{To Begin:}} Go to the next page. + +\end{instructions} + + +\everymath{\displaystyle} + +\begin{Questions} + +\begin{Category}{General Functions} + +\begin{Question} +Given credit for first using the functional notation $f(x)$. +\begin{oAnswer} +Who is\dots\space\RespBoxTxt{2}{1}{3}{Leonhard Euler}{L. Euler}{Euler} +\end{oAnswer} +\end{Question} + +\begin{Question} +Given $ f(x) = \frac{x}{x+2} $, the expression that represents $ f(1/x) $. What is \dots +\begin{oAnswer} +\begin{equation*} +f(2x)=\RespBoxMath{1/(2*x+1)}{4}{.0001}{[1,2]} +\end{equation*} +\end{oAnswer} +\end{Question} + +\begin{Question}[2] +The axis of symmetry of the graph of the function $ f(x) = 2 - ( x + 1 )^2 $. What is \dots + + +\Ans0 the $x$-axis & +\Ans0 the $y$-axis \\[1ex] +\Ans1 the line $ x = -1 $ & +\Ans0 the line $ x = 1 $ \\[1ex] +\Ans0 the line $ y = 2 $ & +\Ans0 the line $ y = -2 $ + +\end{Question} + +\end{Category} + +\begin{Category}{Quadratic Functions} + +\begin{Question} +The number of zeros of the quadratic function +$$ f(x) = x^2 - 2x + 2 $$ +What is \dots + +\Ans1 $0$ +\Ans0 $1$ +\Ans0 $2$ +\Ans0 $3$ +\end{Question} + +\begin{Question} +The vertex $V$ of the parabola $ f(x) = 3 - 4x - 4x^2 $. What is \dots + +\Ans0 $V(1/4, 7/4)$ +\Ans0 $V(-1/4, 15/4)$ +\Ans0 $V(1/2, 0)$ +\Ans1 $V(-1/2,4)$ +\Ans0 $V(3/4, -9/4)$ +\Ans0 $V(-1/2, 15/4)$ +\Ans0 None of these +\end{Question} + +\begin{Question}[4] +The price $p$ and the quantity $x$ sold of a certain product obey the +demand equation +\begin{equation*} + p = -\frac{1}{6}x + 100 +\end{equation*} +Find the quantity $x$ that maximizes revenue. + +\Ans0 $100$ & +\Ans0 $200$ & +\Ans1 $300$ & +\Ans0 $400$ \\[3ex] +\Ans0 $500$ & +\Ans0 $600$ & +\Ans0 $700$ & +\Ans0 $800$ \\[3ex] +\Ans0 $900$ & +\Ans0 $1000$ & +\Ans0 $1100$ & +\Ans0 $1200$ +\end{Question} + +\end{Category} + + +\begin{Category}{Polynomial Functions} + +\begin{Question}[4] +The \textbf{end behavior} of the polynomial function +\begin{equation*} + f(x) = (2x-1)^2 ( x + 3 )^2 ( 3x^3 + 1 )^2 +\end{equation*} +is like that of what function? What is \dots + +\Ans0 $y = x$ & +\Ans0 $y = x^{2}$ & +\Ans0 $y = x^{3}$ & +\Ans0 $y = x^{4}$ \\[3ex] +\Ans0 $y = x^{5}$ & +\Ans0 $y = x^{6}$ & +\Ans0 $y = x^{7}$ & +\Ans0 $y = x^{8}$ \\[3ex] +\Ans0 $y = x^{9}$ & +\Ans1 $y = x^{10}$ & +\Ans0 $y = x^{11}$ & +\Ans0 $y = x^{12}$ +\end{Question} + +\begin{Question} +The multiplicity of the zero $ x = 1/2 $ of the polynomial function +$ f(x) = x^2 (x - 2 ) (2x - 1 )^3$. What is \dots + +\Ans0 $1$ +\Ans0 $2$ +\Ans1 $3$ +\Ans0 Don't fool with me, $1/2$ is not a zero of this polynomial! +\Ans0 None of these +\end{Question} + +\begin{Question} +The number of times the function +$$ + y = -(x^2 + 0.5)(x-1)^2(x+1)(x-2) +$$ +touches but \textit{does not cross} the $x$-axis. What is \dots + +\Ans0 $0$ times +\Ans1 $1$ time +\Ans0 $2$ times +\Ans0 $3$ times +\Ans0 $4$ times +\end{Question} + +\end{Category} + +\begin{Category}{Rational Functions} + +\begin{Question} +For a rational function, when the degree of the numerator is greater than the +degree of the denominator, then the $x$-axis is a horizontal asymptote. True or False? + +\Ans0 True +\Ans1 False +\end{Question} + +\begin{Question} +The asymptotes for the rational function +\begin{equation*} + R(x) = \frac{3x^2 -1}{(3x-1)(2x+2)} +\end{equation*} +What are \dots + +\Ans0 $ y = 1 $, $ x = -2 $, $ x = 3$ +\Ans0 $ y = 1/6 $, $ x = -2 $, $ x = 1/3$ +\Ans1 $ y = 1/2 $, $ x = -1 $, $ x = 1/3$ +\Ans0 $ y = 1/2 $, $ x = -2 $, $ x = 3$ +\Ans0 $ y = 1 $, $ x = 1 $, $ x = 1/3$ +\Ans0 $ y = 1/6 $, $ x = -1 $, $ x = 1/3$ +\Ans0 None of these +\end{Question} + +\begin{Question} +The oblique asymptote of the rational function +\begin{equation*} + R(x) = \frac{4x^4 - 6x^3 + 5x^2 + x + 4}{2x^3 + 3x} +\end{equation*} +What is \dots + +\Ans0 $y = 4$ +\Ans0 $y = 2x + 4$ +\Ans1 $y = 2x-3$ +\Ans0 $y = 4x - 3$ +\Ans0 $y = 4x + 4$ +\Ans0 $ y = 2x + 3$ +\Ans0 $ y = 2x - 4$ +\Ans0 None of these +\end{Question} +\end{Category} +\end{Questions} +\end{document} diff --git a/texmf-dist/doc/latex/jj-game/jjg_man.pdf b/texmf-dist/doc/latex/jj-game/jjg_man.pdf new file mode 100644 index 00000000..d2e20f51 Binary files /dev/null and b/texmf-dist/doc/latex/jj-game/jjg_man.pdf differ -- cgit v1.2.3