summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/incgraph
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-18 23:27:07 +0000
committerKarl Berry <karl@freefriends.org>2013-01-18 23:27:07 +0000
commitf901e73019caa315b6e70b5a14846bb546f232f7 (patch)
tree4d71f2960e3d22e0c3a2998553a94c633076c309 /Master/texmf-dist/tex/latex/incgraph
parentfb0e09783157c2c9f8e6899a25abc2442b8a77f6 (diff)
incgraph (17jan13)
git-svn-id: svn://tug.org/texlive/trunk@28868 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/incgraph')
-rw-r--r--Master/texmf-dist/tex/latex/incgraph/incgraph.sty20
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/incgraph/incgraph.sty b/Master/texmf-dist/tex/latex/incgraph/incgraph.sty
index 5020e69c43f..040db66ac46 100644
--- a/Master/texmf-dist/tex/latex/incgraph/incgraph.sty
+++ b/Master/texmf-dist/tex/latex/incgraph/incgraph.sty
@@ -1,8 +1,8 @@
-%% The LaTeX package incgraph - version 1.10 (2012/09/28)
+%% The LaTeX package incgraph - version 1.11 (2013/01/16)
%% incgraph.sty: Graphics inclusion page
%%
%% -------------------------------------------------------------------------------------------
-%% Copyright (c) 2012 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% Copyright (c) 2012-2013 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
%% -------------------------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{incgraph}[2012/09/28 version 1.10 LaTeX special graphics inclusion]
+\ProvidesPackage{incgraph}[2013/01/16 version 1.11 LaTeX special graphics inclusion]
\DeclareOption{pgf}{\def\igrreq@pgf{\RequirePackage{pgf}[2008/01/15]\RequirePackage{pgffor}}}%
\DeclareOption{nopgf}{\def\igrreq@pgf{}}%
@@ -104,7 +104,15 @@
%
\igr@length=-1in%
\advance\igr@length by -\hoffset%
- \advance\igr@length by -\@themargin%
+ \if@twoside
+ \ifodd\c@page
+ \advance\igr@length by -\oddsidemargin%
+ \else
+ \advance\igr@length by -\evensidemargin%
+ \fi
+ \else
+ \advance\igr@length by -\oddsidemargin%
+ \fi%
\edef\igr@offx@left{\the\igr@length}%
%
\igr@length=\pdfpagewidth%
@@ -273,7 +281,7 @@
\igrset{#1}%
\igr@match@hook%
\igr@nextAutoTarget%
- \begin{lrbox}{\igrbox}%
+ \clearpage\begin{lrbox}{\igrbox}%
}{%
\unskip\ifx\igr@label@text\igr@empty\else\label{\igr@label@text}\fi\end{lrbox}%
\igr@length=\wd\igrbox%
@@ -380,7 +388,7 @@
no overlay/.code={\let\igr@overlay=\igr@overlay@off},
portrait/.code={\def\igr@turn{port}},
landscape/.code={\def\igr@turn{land}},
- paper size/.code args={#1:#2}{\edef\igr@target@width{#1}\edef\igr@target@height{#2}\let\igr@output=\igr@out@center@fit},
+ paper size/.code args={#1:#2}{\def\igr@target@width{#1}\def\igr@target@height{#2}\let\igr@output=\igr@out@center@fit},
a0paper/.style={paper size=841mm:1189mm},
a1paper/.style={paper size=594mm:841mm},
a2paper/.style={paper size=420mm:594mm},