diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/fitr/examples |
Initial commit
Diffstat (limited to 'macros/latex/contrib/fitr/examples')
-rw-r--r-- | macros/latex/contrib/fitr/examples/Kutta.bb | 5 | ||||
-rw-r--r-- | macros/latex/contrib/fitr/examples/Kutta.eps | bin | 0 -> 344944 bytes | |||
-rw-r--r-- | macros/latex/contrib/fitr/examples/Kutta.jpeg | bin | 0 -> 9863 bytes | |||
-rw-r--r-- | macros/latex/contrib/fitr/examples/Kutta.pdf | bin | 0 -> 15308 bytes | |||
-rw-r--r-- | macros/latex/contrib/fitr/examples/Kutta.xbb | 6 | ||||
-rw-r--r-- | macros/latex/contrib/fitr/examples/fitr_demo.pdf | bin | 0 -> 80760 bytes | |||
-rw-r--r-- | macros/latex/contrib/fitr/examples/fitr_demo.tex | 106 | ||||
-rw-r--r-- | macros/latex/contrib/fitr/examples/fitr_minimal.tex | 92 | ||||
-rw-r--r-- | macros/latex/contrib/fitr/examples/jmpHookBlink.js | 41 | ||||
-rw-r--r-- | macros/latex/contrib/fitr/examples/restoreHookBlink.js | 33 | ||||
-rw-r--r-- | macros/latex/contrib/fitr/examples/runge.bb | 5 | ||||
-rw-r--r-- | macros/latex/contrib/fitr/examples/runge.eps | bin | 0 -> 413683 bytes | |||
-rw-r--r-- | macros/latex/contrib/fitr/examples/runge.jpg | bin | 0 -> 7628 bytes | |||
-rw-r--r-- | macros/latex/contrib/fitr/examples/runge.pdf | bin | 0 -> 13182 bytes | |||
-rw-r--r-- | macros/latex/contrib/fitr/examples/runge.xbb | 6 |
15 files changed, 294 insertions, 0 deletions
diff --git a/macros/latex/contrib/fitr/examples/Kutta.bb b/macros/latex/contrib/fitr/examples/Kutta.bb new file mode 100644 index 0000000000..52e9f93c6c --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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/macros/latex/contrib/fitr/examples/Kutta.eps b/macros/latex/contrib/fitr/examples/Kutta.eps Binary files differnew file mode 100644 index 0000000000..8ad5349e64 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/Kutta.eps diff --git a/macros/latex/contrib/fitr/examples/Kutta.jpeg b/macros/latex/contrib/fitr/examples/Kutta.jpeg Binary files differnew file mode 100644 index 0000000000..d847cb2a7e --- /dev/null +++ b/macros/latex/contrib/fitr/examples/Kutta.jpeg diff --git a/macros/latex/contrib/fitr/examples/Kutta.pdf b/macros/latex/contrib/fitr/examples/Kutta.pdf Binary files differnew file mode 100644 index 0000000000..e737d265d0 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/Kutta.pdf diff --git a/macros/latex/contrib/fitr/examples/Kutta.xbb b/macros/latex/contrib/fitr/examples/Kutta.xbb new file mode 100644 index 0000000000..f8d9a29fb9 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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/macros/latex/contrib/fitr/examples/fitr_demo.pdf b/macros/latex/contrib/fitr/examples/fitr_demo.pdf Binary files differnew file mode 100644 index 0000000000..9e43557892 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/fitr_demo.pdf diff --git a/macros/latex/contrib/fitr/examples/fitr_demo.tex b/macros/latex/contrib/fitr/examples/fitr_demo.tex new file mode 100644 index 0000000000..7fe7536f40 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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/macros/latex/contrib/fitr/examples/fitr_minimal.tex b/macros/latex/contrib/fitr/examples/fitr_minimal.tex new file mode 100644 index 0000000000..160f38fa6d --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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/macros/latex/contrib/fitr/examples/jmpHookBlink.js b/macros/latex/contrib/fitr/examples/jmpHookBlink.js new file mode 100644 index 0000000000..c6ea043e77 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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/macros/latex/contrib/fitr/examples/restoreHookBlink.js b/macros/latex/contrib/fitr/examples/restoreHookBlink.js new file mode 100644 index 0000000000..77f6077ee4 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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/macros/latex/contrib/fitr/examples/runge.bb b/macros/latex/contrib/fitr/examples/runge.bb new file mode 100644 index 0000000000..fc1a526a84 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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/macros/latex/contrib/fitr/examples/runge.eps b/macros/latex/contrib/fitr/examples/runge.eps Binary files differnew file mode 100644 index 0000000000..283816eabd --- /dev/null +++ b/macros/latex/contrib/fitr/examples/runge.eps diff --git a/macros/latex/contrib/fitr/examples/runge.jpg b/macros/latex/contrib/fitr/examples/runge.jpg Binary files differnew file mode 100644 index 0000000000..db05c74bf0 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/runge.jpg diff --git a/macros/latex/contrib/fitr/examples/runge.pdf b/macros/latex/contrib/fitr/examples/runge.pdf Binary files differnew file mode 100644 index 0000000000..85ee459f91 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/runge.pdf diff --git a/macros/latex/contrib/fitr/examples/runge.xbb b/macros/latex/contrib/fitr/examples/runge.xbb new file mode 100644 index 0000000000..6475eae1e0 --- /dev/null +++ b/macros/latex/contrib/fitr/examples/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 + |