From 32cbcbb847392140d904acb38ae3bbe09cb2cc9e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 29 Aug 2011 00:11:34 +0000 Subject: new latex package rviewport (28aug11) git-svn-id: svn://tug.org/texlive/trunk@23739 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/rviewport/rviewport.sty | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/rviewport/rviewport.sty (limited to 'Master/texmf-dist/tex/latex/rviewport') 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'. -- cgit v1.2.3