| 1 |
%% |
| 2 |
%% This is file `rviewport.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% rviewport.dtx (with options: `style') |
| 8 |
%% |
| 9 |
%% IMPORTANT NOTICE: |
| 10 |
%% |
| 11 |
%% For the copyright see the source file. |
| 12 |
%% |
| 13 |
%% Any modified versions of this file must be renamed |
| 14 |
%% with new filenames distinct from rviewport.sty. |
| 15 |
%% |
| 16 |
%% For distribution of the original source see the terms |
| 17 |
%% for copying and modification in the file rviewport.dtx. |
| 18 |
%% |
| 19 |
%% This generated file may be distributed as long as the |
| 20 |
%% original source files, as listed above, are part of the |
| 21 |
%% same distribution. (The sources need not necessarily be |
| 22 |
%% in the same archive or directory.) |
| 23 |
\NeedsTeXFormat{LaTeX2e} |
| 24 |
\ProvidesPackage{rviewport} |
| 25 |
[2011/08/27 v1.0 Relative viewport for graphics inclusion] |
| 26 |
\RequirePackage{keyval} |
| 27 |
\define@key{Gin}{rviewport} |
| 28 |
{\let\Gin@viewport@code\Gin@rviewport\Gread@parse@rvp#1 \\} |
| 29 |
\def\Gread@parse@rvp#1 #2 #3 #4 #5\\{% |
| 30 |
\def\Gin@vllx{#1}% |
| 31 |
\def\Gin@vlly{#2}% |
| 32 |
\def\Gin@vurx{#3}% |
| 33 |
\def\Gin@vury{#4}}% |
| 34 |
\def\Gin@rviewport{% |
| 35 |
\let\Gin@ollx\Gin@llx |
| 36 |
\let\Gin@olly\Gin@lly |
| 37 |
\let\Gin@ourx\Gin@urx |
| 38 |
\let\Gin@oury\Gin@ury |
| 39 |
\Gin@nat@width\Gin@urx\p@ |
| 40 |
\advance\Gin@nat@width-\Gin@llx\p@ |
| 41 |
\Gin@nat@height\Gin@ury\p@ |
| 42 |
\advance\Gin@nat@height-\Gin@lly\p@ |
| 43 |
\dimen@\Gin@vurx\Gin@nat@width |
| 44 |
\edef\Gin@vurx{\strip@pt\dimen@}% |
| 45 |
\advance\dimen@\Gin@llx\p@ |
| 46 |
\edef\Gin@urx{\strip@pt\dimen@}% |
| 47 |
\dimen@\Gin@vury\Gin@nat@height |
| 48 |
\edef\Gin@vury{\strip@pt\dimen@}% |
| 49 |
\advance\dimen@\Gin@lly\p@ |
| 50 |
\edef\Gin@ury{\strip@pt\dimen@}% |
| 51 |
\dimen@\Gin@vllx\Gin@nat@width |
| 52 |
\edef\Gin@vllx{\strip@pt\dimen@}% |
| 53 |
\advance\dimen@\Gin@llx\p@ |
| 54 |
\edef\Gin@llx{\strip@pt\dimen@}% |
| 55 |
\dimen@\Gin@vlly\Gin@nat@height |
| 56 |
\edef\Gin@vlly{\strip@pt\dimen@}% |
| 57 |
\advance\dimen@\Gin@lly\p@ |
| 58 |
\edef\Gin@lly{\strip@pt\dimen@}} |
| 59 |
\endinput |
| 60 |
%% |
| 61 |
%% End of file `rviewport.sty'. |