summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-09-19 20:40:02 +0000
committerKarl Berry <karl@freefriends.org>2015-09-19 20:40:02 +0000
commitbe9467b2d5a4aa70891c03ed63922abe06edc5dd (patch)
treef9bc67fbc98a672f455b7921d58ed9a94c7e5db4 /Master/texmf-dist/source/latex
parent1b2803558f1ef395c8b6b073457c4aed6a878f54 (diff)
pdfpages (19sep15)
git-svn-id: svn://tug.org/texlive/trunk@38406 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx33
1 files changed, 28 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx b/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx
index a992c2bf948..cd0011b9339 100644
--- a/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx
+++ b/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx
@@ -27,12 +27,12 @@
%<*dtx>
\makeatletter
%</dtx>
-\def\AM@fileversion{v0.5c}
+\def\AM@fileversion{v0.5d}
\def\AM@Git@Date@process$#1: #2 #3${\AM@Git@Date@process@i#2\END}
\def\AM@Git@Date@process@i#1-#2-#3\END{\def\AM@Git@Date{#1/#2/#3}}
\def\AM@Git@SHA@process$#1: #2${\def\AM@Git@SHA{#2}}
-\AM@Git@Date@process$Date: 2015-08-16 20:57:52 +0200 $
-\AM@Git@SHA@process$SHA-1: 0165ce378c8de8098af302bb25e577befd88f5d0 $
+\AM@Git@Date@process$Date: 2015-09-18 22:10:48 +0200 $
+\AM@Git@SHA@process$SHA-1: f1e7d3caf5b8b03ed23867a46e056f5fdfa03499 $
%</!(example1,example2,example3,installer)>
%
%
@@ -84,7 +84,7 @@
%
% \GetFileInfo{pdfpages.dtx}
%
-% \CheckSum{4786}
+% \CheckSum{4799}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -1175,7 +1175,24 @@
\RequirePackage{count1to}%
\AddToShipoutPicture{\AM@setanchor}%
\fi
-\RequirePackage{pdflscape}
+% \end{macrocode}
+% To rotate pages we use |\PLS@Rotate| from |pdflscape|. But simply
+% loading |pdflscape| modifies the |landscape| environment such that
+% \emph{all} landscape pages are rotated by default. To prevent this
+% we postpone the loading of the package.
+%
+% If the user loads |pdflscape| explicitely she gets the rotated
+% landscape environment and the packages will not be reloaded by the next
+% commands. However, if |pdflscape| is not loaded by the user, then we
+% load it and reset the |landscape| environment afterwards.
+% \begin{macrocode}
+\AtBeginDocument{%
+ \let\AM@orig@landscape\landscape
+ \let\AM@orig@endlandscape\endlandscape
+ \RequirePackage{pdflscape}%
+ \let\landscape\AM@orig@landscape
+ \let\endlandscape\AM@orig@endlandscape
+}
% \end{macrocode}
% Let's save the original meaning of |\includegraphics|, because
% graphicx.sty in demo mode (`demo' option) will overwrite |\includegraphics|
@@ -4514,6 +4531,12 @@
% pages of a PDF.
% \end{itemize}
%
+% \subsection*{2015/09/18 v0.5d}
+% \begin{itemize}
+% \item \emph{Iff} pdflscape is \emph{not} loaded by the user explicitly,
+% reset modification of the landscape environment after loading
+% pdflscape.
+% \end{itemize}
%
% \Finale
%