From b3cf6973881fee79b4abb0be96dcfd5330bfeeea Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 10 Jul 2020 03:02:35 +0000 Subject: CTAN sync 202007100302 --- .../latex/contrib/fitr/examples/fitr_minimal.tex | 66 +++++++++++++++++++--- 1 file changed, 57 insertions(+), 9 deletions(-) (limited to 'macros/latex/contrib/fitr/examples/fitr_minimal.tex') diff --git a/macros/latex/contrib/fitr/examples/fitr_minimal.tex b/macros/latex/contrib/fitr/examples/fitr_minimal.tex index 160f38fa6d..953c3ffb49 100644 --- a/macros/latex/contrib/fitr/examples/fitr_minimal.tex +++ b/macros/latex/contrib/fitr/examples/fitr_minimal.tex @@ -1,23 +1,29 @@ % -% 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. +% Works for all workflows. +% If gonative is specified, dvips->ps2pdf works as well. % \documentclass[11pt]{article} -\usepackage{amsmath} -\usepackage[dvipsone,!preview,!viewMagWin]{fitr} -\usepackage[js=restoreHookBlink,js=jmpHookBlink]{lmacs} +\usepackage{amsmath} % use only for the align environment +\usepackage[blinkonjmp,blinkonrestore,!preview,!viewMagWin]{fitr} \usepackage{graphicx} +% Uncomment to use custom hooks, there are minimal functions already defined. +% Uncomment to see these simple examples. +%\usepackage[js=jmpHook,js=restoreHook]{lmacs} + \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} + pdfkeywords={LaTeX, PDF, Acrobat, JavaScript}, + pdfpagemode=UseNone } \parindent0pt \parskip6pt \pagestyle{empty} +\def\cs#1{\texttt{\char`\\#1}} + % \renewcommand{\overlayPresets}{\H{I}\S{D}\BG{}\BC{blue}} % \renewcommand{\allowFXDefault}{false} @@ -25,7 +31,7 @@ \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} + Dr. D. P. Story, \href{http://www.acrotex.net}{Acro\negthinspace\TeX.NeT} \end{center} \textbf{Introduction.} This document demonstrates a technique designed to @@ -63,8 +69,8 @@ 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\RungePic{\includegraphics[width=\marginparwidth]{graphics/runge}} +\def\KuttaPic{\includegraphics[width=\marginparwidth]{graphics/Kutta}} \def\jrOpts#1#2{link=#1,dest=#2} \textbf{\jdRect*[nodest,\jrOpts{jmp}{rungePic},adddestw=10,adddesth=10]{Carl Runge}}% @@ -89,4 +95,46 @@ is also known for his work on airfoils. \begin{flushright} This work was motivated by Mohsen M. \end{flushright} + +\newpage + +\noindent\textbf{FX and verbatim text.} The \cs{jsRect*} can ``scoop up'' verbatim text. We illustrate +with several examples from the documentation. + +Using the \cs{verb} command: \jdRect*[adddestw=10bp,adddesth=10bp]{\verb!#$$%&$%^&$%^$!} + +% measure the width of the widest line in the verbatim listing below +\newsavebox\fitrBox +\begin{lrbox}{\fitrBox} +\verb~\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{blue}\S{D}}%~% +\end{lrbox}\edef\wdDisplay{\the\wd\fitrBox} + +\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{blue}\S{D}}% + +Jump to the \jdRect*[adddestw=10bp,adddesth=10bp]{\textsf{fitr} Package!} Click +on the verbatim region below to view the listing up close. +\restoreOverlayPresets +\begin{flushleft} +\jdRect*[adddestw=10bp,adddesth=10bp] +{\begin{minipage}{\wdDisplay} +\begin{verbatim} +\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{blue}\S{D}}% +... +Jump to the \jdRect*[adddestw=10bp,adddesth=10bp]% + {{\fitrpkg} Package!} +\end{verbatim} +\end{minipage}} +\end{flushleft} +\jdRect[width=\wdDisplay,height=4\baselineskip,lift=-\baselineskip,adddestw=10bp,adddesth=10bp]% +Now using \cs{jdRect}.\parskip0pt +%\previewOn\viewMagWinOn +\begin{verbatim} +\renewcommand{\overlayPresets}{\H{I}\BG{}\BC{blue}\S{D}}% +... +Jump to the \jdRect*[adddestw=10bp,adddesth=10bp]% + {{\fitrpkg} Package!} +\end{verbatim} + + + \end{document} -- cgit v1.2.3