summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/rviewport
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-29 00:11:34 +0000
committerKarl Berry <karl@freefriends.org>2011-08-29 00:11:34 +0000
commit32cbcbb847392140d904acb38ae3bbe09cb2cc9e (patch)
treeabde8b381521269171e36ee82d03ba5998dc2e0f /Master/texmf-dist/tex/latex/rviewport
parent62ea3c38421c330e364e1b53c366715efe3c7554 (diff)
new latex package rviewport (28aug11)
git-svn-id: svn://tug.org/texlive/trunk@23739 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/rviewport')
-rw-r--r--Master/texmf-dist/tex/latex/rviewport/rviewport.sty61
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/rviewport/rviewport.sty b/Master/texmf-dist/tex/latex/rviewport/rviewport.sty
new file mode 100644
index 00000000000..e72d359e3a9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/rviewport/rviewport.sty
@@ -0,0 +1,61 @@
+%%
+%% This is file `rviewport.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% rviewport.dtx (with options: `style')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from rviewport.sty.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file rviewport.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{rviewport}
+[2011/08/27 v1.0 Relative viewport for graphics inclusion]
+\RequirePackage{keyval}
+\define@key{Gin}{rviewport}
+ {\let\Gin@viewport@code\Gin@rviewport\Gread@parse@rvp#1 \\}
+\def\Gread@parse@rvp#1 #2 #3 #4 #5\\{%
+ \def\Gin@vllx{#1}%
+ \def\Gin@vlly{#2}%
+ \def\Gin@vurx{#3}%
+ \def\Gin@vury{#4}}%
+\def\Gin@rviewport{%
+ \let\Gin@ollx\Gin@llx
+ \let\Gin@olly\Gin@lly
+ \let\Gin@ourx\Gin@urx
+ \let\Gin@oury\Gin@ury
+ \Gin@nat@width\Gin@urx\p@
+ \advance\Gin@nat@width-\Gin@llx\p@
+ \Gin@nat@height\Gin@ury\p@
+ \advance\Gin@nat@height-\Gin@lly\p@
+ \dimen@\Gin@vurx\Gin@nat@width
+ \edef\Gin@vurx{\strip@pt\dimen@}%
+ \advance\dimen@\Gin@llx\p@
+ \edef\Gin@urx{\strip@pt\dimen@}%
+ \dimen@\Gin@vury\Gin@nat@height
+ \edef\Gin@vury{\strip@pt\dimen@}%
+ \advance\dimen@\Gin@lly\p@
+ \edef\Gin@ury{\strip@pt\dimen@}%
+ \dimen@\Gin@vllx\Gin@nat@width
+ \edef\Gin@vllx{\strip@pt\dimen@}%
+ \advance\dimen@\Gin@llx\p@
+ \edef\Gin@llx{\strip@pt\dimen@}%
+ \dimen@\Gin@vlly\Gin@nat@height
+ \edef\Gin@vlly{\strip@pt\dimen@}%
+ \advance\dimen@\Gin@lly\p@
+ \edef\Gin@lly{\strip@pt\dimen@}}
+\endinput
+%%
+%% End of file `rviewport.sty'.