summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/pdfpages
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-02 18:21:00 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-02 18:21:00 +0000
commit4f6e73b15013b1595fea23f062c096a523cebc5e (patch)
treeaca6bdba622664b4e4a1f61af65b26933e1518e7 /Master/texmf-dist/source/latex/pdfpages
parent22917af7ced7579b6c1cba90f72199305d2c54ec (diff)
pdfpages 2011/07/02 v0.4p
git-svn-id: svn://tug.org/texlive/trunk@23319 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/pdfpages')
-rw-r--r--Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx86
1 files changed, 22 insertions, 64 deletions
diff --git a/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx b/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx
index e384465d867..07a33efef98 100644
--- a/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx
+++ b/Master/texmf-dist/source/latex/pdfpages/pdfpages.dtx
@@ -27,10 +27,10 @@
%<*dtx>
\makeatletter
%</dtx>
-\def\AM@fileversion{v0.4n}
+\def\AM@fileversion{v0.4p}
\def\AM@SVN@Date@i#1-#2-#3\END{\def\AM@filedate{#1/#2/#3}}
\def\AM@SVN@Date$Date: #1 #2${\AM@SVN@Date@i#1\END}
-\AM@SVN@Date$Date: 2011-03-10 19:57:14 +0100 (Thu, 10 Mar 2011) $
+\AM@SVN@Date$Date: 2011-07-31 16:09:45 +0200 (Sun, 31 Jul 2011) $
%</!(example1,example2,example3,installer)>
%
%
@@ -80,7 +80,7 @@
%
% \GetFileInfo{pdfpages.dtx}
%
-% \CheckSum{4651}
+% \CheckSum{4592}
%
% \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
@@ -1053,7 +1053,7 @@
\DeclareOption{final}{\AM@pkg@draftfalse}
\DeclareOption{enable-survey}{\AM@pkg@surveytrue}
\DeclareOption{disable-survey}{\AM@pkg@surveyfalse}
-% \begin{macrocode}
+% \end{macrocode}
% |\AM@ifdriverlater| checks that the driver loaded is more recent
% than the given date. See |\@ifpackagelater| from the standard
% \LaTeX\ kernel.
@@ -1159,6 +1159,7 @@
\newif\ifAM@firstpage\AM@firstpagefalse
\newif\ifAM@reflect\AM@reflectfalse
\newif\ifAM@reflectall\AM@reflectallfalse
+\newif\ifAM@scale\AM@scaletrue
% \end{macrocode}
% \subsection{Commands}
% Declare macro names and define default values.
@@ -1449,11 +1450,7 @@
% \end{macrocode}
% Determine scaling factor:
% The logical pages are scaled such, that they match on
-% one sheet of paper. To determine the scaling
-% factor all |scale| options given by the user must be
-% discarded first (|\AM@remove@scale|).
-% But they are \textit{not} discarded when finally being
-% shipped out.
+% one sheet of paper.
% \begin{macrocode}
\@ifundefined{AM@pagetemplate}
{\AM@readfirst{\AM@pagelist}%
@@ -1560,7 +1557,9 @@
\AM@split@options{Gin}{#1}%
\ifAM@templatesize
\setbox\@tempboxa=\hbox{%
- \scalebox{\AM@globalscale}{\copy\AM@templatesizebox}}%
+ \scalebox{\AM@scale@factor}{\copy\AM@templatesizebox}}%
+ \setbox\@tempboxa=\hbox{%
+ \scalebox{\AM@globalscale}{\copy\@tempboxa}}%
\setbox\@tempboxa=\hbox{%
\rotatebox{\AM@lscape@rot}{\copy\@tempboxa}}%
\else
@@ -2305,50 +2304,6 @@
\edef\AM@resorteddoclist{\expandafter\@gobble\AM@resorteddoclist}%
}
% \end{macrocode}
-% \macro{\AM@remove@scale}
-% \macro{\AM@remove@scalei}
-% \macro{\AM@remove@scaleii}
-% Remove the \texttt{scale} item from the options list (|#1|)
-% and then save it in |\AM@options|.
-% \begin{macrocode}
-\newif\ifAM@scale
-\newcommand{\AM@remove@scale}{}
-\def\AM@remove@scale#1{%
- \def\AM@options{}%
- \AM@remove@scalei#1,\END,
-}
-% \end{macrocode}
-% \begin{macrocode}
-\newcommand{\AM@remove@scalei}{}
-\def\AM@remove@scalei#1,{%
- \ifx\END#1
- \else
- \AM@scalefalse
- \AM@remove@scaleii#1=\END
- \ifAM@scale
- \else
- \ifx\empty\AM@options
- \edef\AM@options{#1}%
- \else
- \toks@\expandafter{\AM@options,#1}%
- \edef\AM@options{\the\toks@}%
- \fi
- \fi
- \expandafter\AM@remove@scalei
- \fi
-}
-% \end{macrocode}
-% \begin{macrocode}
-\newcommand{\AM@remove@scaleii}{}
-\def\AM@remove@scaleii#1=#2\END{%
- \ifx\\#2\\%
- \else
- \def\AM@temp{#1}%
- \edef\AM@temp{\AM@trim@space{\AM@temp}}%
- \ifthenelse{\equal{scale}{\AM@temp}}{\AM@scaletrue}{}%
- \fi
-}
-% \end{macrocode}
% \macro{\AM@split@options}
% \macro{\AM@split@optionsi}
% \macro{\AM@split@oprionsii}
@@ -2363,6 +2318,7 @@
\newcommand{\AM@split@options}{}
\def\AM@split@options#1#2{%
\def\AM@param{#1}%
+ \def\AM@scale@factor{1}%
\@temptokena{}%
\AM@split@optionsi#2,\END,
}
@@ -2443,7 +2399,12 @@
\equal{reflect*}{\AM@temp}\or
\equal{lastpage}{\AM@temp}}
{\AM@pdfpages@optionstrue}{}%
- \ifthenelse{\equal{scale}{\AM@temp}}{\AM@scaletrue}{}%
+ \ifthenelse{\equal{scale}{\AM@temp}}{%
+ \AM@scaletrue
+ \def\AM@ooo##1={##1}
+ \setlength{\@tempdima}{\p@ * \AM@scale@factor * \real{\AM@ooo#2}}%
+ \edef\AM@scale@factor{\strip@pt\@tempdima}%
+ }{}%
}
% \end{macrocode}
% \macro{\AM@trim@space}
@@ -3497,15 +3458,6 @@
\gdef\AM@XeTeXquote{"}%
}
% \end{macrocode}
-% Get last page number.
-% \begin{macrocode}
-% \def\AM@remove@relax#1\relax{#1}
-% \def\AM@getpagecount{%
-% \edef\AM@pagecount{\expandafter\AM@remove@relax
-% \the\XeTeXpdfpagecount\AM@XeTeXquote
-% \AM@currentdocname\AM@XeTeXquote\relax}%
-% }
-% \end{macrocode}
% Get last page number. |\XeTeXpdfpagecount| is only defined
% for |pdf| files. For all other file types |\AM@pagecount|
% must be set to |1| explicitely.
@@ -4217,6 +4169,12 @@
% after |\setkeys|.
% \end{itemize}
%
+%
+% \subsection*{2011/07/02 v0.4p}
+% \begin{itemize}
+% \item Bugfix: |templatesize| ignored |scale| option.
+% \end{itemize}
+%
% \Finale
%
% \iffalse