18 |
%% Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
%% Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
19 |
%% Boston, MA 02111-1307 USA |
%% Boston, MA 02111-1307 USA |
20 |
%%\fi |
%%\fi |
21 |
% \CheckSum{1632} |
% \CheckSum{1634} |
22 |
% \GetFileInfo{preview.sty} |
% \GetFileInfo{preview.sty} |
23 |
% \date{\filedate} |
% \date{\filedate} |
24 |
% \author{David Kastrup\thanks{\texttt{dak@gnu.org}}} |
% \author{David Kastrup\thanks{\texttt{dak@gnu.org}}} |
1556 |
% \begin{macrocode} |
% \begin{macrocode} |
1557 |
%<tightpage>\ifnum\pr@graphicstype=\@ne |
%<tightpage>\ifnum\pr@graphicstype=\@ne |
1558 |
%<tightpage>\preview@delay{\AtBeginDvi{% |
%<tightpage>\preview@delay{\AtBeginDvi{% |
1559 |
%<tightpage> \special{!/preview@tightpage true def} |
% \end{macrocode} |
1560 |
|
% Backwards-compatibility. Once we are certain that dvipng-1.6 or |
1561 |
|
% later is widely used, this can be exchanged for the simple |
1562 |
|
% |\special{!/preview@tightpage true def}| |
1563 |
|
% \begin{macrocode} |
1564 |
|
%<tightpage> \special{!/preview@tightpage true def (} |
1565 |
|
%<tightpage> \special{!userdict begin/bop-hook{% |
1566 |
|
%<tightpage> 7{currentfile token not{stop}if |
1567 |
|
%<tightpage> 65781.76 div DVImag mul}repeat |
1568 |
|
%<tightpage> 72 add 72 2 copy gt{exch}if 4 2 roll |
1569 |
|
%<tightpage> neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}% |
1570 |
|
%<tightpage> {exch dup 0 lt{pop 0}if}ifelse 720 add exch 720 add |
1571 |
|
%<tightpage> 3 1 roll |
1572 |
|
%<tightpage> 4{5 -1 roll add 4 1 roll}repeat |
1573 |
|
%<tightpage> <</PageSize[5 -1 roll 6 index sub 5 -1 roll 5 index sub]% |
1574 |
|
%<tightpage> /PageOffset[7 -2 roll [1 1 dtransform exch]% |
1575 |
|
%<tightpage> {0 ge{neg}if exch}forall]>>setpagedevice% |
1576 |
|
%<tightpage> //bop-hook exec}bind def end}} |
1577 |
|
%<tightpage> \special{!userdict 7{currentfile token not{stop}if 65781.76 div ) pop} |
1578 |
|
% \end{macrocode} |
1579 |
|
% End of backwards-compatibility code. |
1580 |
|
% \begin{macrocode} |
1581 |
%<tightpage> \special{!userdict begin/bop-hook{% |
%<tightpage> \special{!userdict begin/bop-hook{% |
1582 |
%<tightpage> preview-bop-level 0 le{% |
%<tightpage> preview-bop-level 0 le{% |
1583 |
%<tightpage> 7{currentfile token not{stop}if |
%<tightpage> 7{currentfile token not{stop}if |