diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-04-01 22:18:12 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-04-01 22:18:12 +0000 |
commit | f44341da2268b46c80eae3b9f0b0fcda4901e336 (patch) | |
tree | 4a529583b314ae396da6813bc3f529ea56549bc0 /Master/texmf-dist/tex/latex/pdfpages/pppdftex.def | |
parent | 2b114ee4fca0cefdc1df4d7baae0db2dbfa2172b (diff) |
pdfpages v0.4c (2008-04-01)
git-svn-id: svn://tug.org/texlive/trunk@7280 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfpages/pppdftex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/pdfpages/pppdftex.def | 90 |
1 files changed, 77 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def b/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def index 537326f7008..dc9c03569ce 100644 --- a/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def +++ b/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def @@ -10,25 +10,26 @@ %% %% Copyright (C) 2001-2006 Andreas MATTHIAS %% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either -%% version 1.3c of this license or (at your option) any -%% later version. The latest version of this license is in +%% This work may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in %% http://www.latex-project.org/lppl.txt -%% and version 1.3c or later is part of all distributions of -%% LaTeX version 2005/12/01 or later. +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. %% -%% The Current Maintainer of this work is Andreas Matthias <amat@kabsi.at>. +%% The Current Maintainer of this work is +%% Andreas Matthias <andreas.matthias@gmail.com>. %% %% Please send error reports and suggestions for improvements to -%% Andreas MATTHIAS <amat@kabsi.at>. +%% Andreas MATTHIAS <andreas.matthias@gmail.com>. %% -\def\AM@fileversion{v0.4a} +\def\AM@fileversion{v0.4c} \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: 2006-08-12 01:13:35 +0200 (Sat, 12 Aug 2006) $ +\AM@SVN@Date$Date: 2008-04-01 17:31:14 +0200 (Tue, 01 Apr 2008) $ \ProvidesFile{pppdftex.def} [\AM@filedate\space\AM@fileversion\space Pdfpages driver for pdfTeX (AM)] @@ -75,11 +76,17 @@ \setlength{\pdfpagewidth}{\the\wd\@tempboxa}% \setlength{\pdfpageheight}{\the\ht\@tempboxa}% } +\let\AM@pagesize@boogie\relax \let\AM@fitpaper@special\relax \def\AM@findfile#1{% \AM@findfile@i{#1}{pdf}% \AM@findfile@ii{#1}% } +\AtBeginDocument{% +\@ifpackageloaded{grffile}{% + \let\AM@IfFileExists\grffile@IfFileExists}{% + \let\AM@IfFileExists\IfFileExists}% +} \def\AM@setlscape{\pdfpageattr{/Rotate 90}} \def\AM@linktodoc@special@begin{% \pdfannot width \wd\@tempboxa @@ -109,10 +116,67 @@ name {\AM@threadname}% } \let\AM@thread@special@end\relax -\def\AM@dest@special{\pdfdest name {\AM@linkname.\AM@page} \AM@linkfit} +\def\AM@view{fit} +\def\AM@dest@special{\pdfdest name {\AM@linkname.\AM@page} \AM@view} \def\AM@anchor@special{\pdfdest name {pdfpages.\the\count1} fit} -\edef\AM@linkfit@special{fitr width\the\wd\@tempboxa\space - height0pt depth\the\@tempdima} +\def\AM@convert@dest#1{% + \expandafter\AM@convert@dest@i\ifdim\z@=0pt#1 \END\fi} +\def\AM@convert@dest@i#1 #2\END{% + \begingroup + \def\tag{#1}% + \def\x{FitH}% + \ifx\x\tag + \gdef\AM@view{fith}% + \else + \def\x{FitBH}% + \ifx\x\tag + \gdef\AM@view{fitbh}% + \else + \def\x{FitV}% + \ifx\x\tag + \gdef\AM@view{fitv}% + \else + \def\x{FitBV}% + \ifx\x\tag + \gdef\AM@view{fitbv}% + \else + \def\x{FitR}% + \ifx\x\tag + \gdef\AM@view{fitr}% + \PackageWarningNoLine{pdfpages}{% + `linkfit=FitR' is not supported, + I will try `linkfit=Region'.}% + \def\tag{region}% + \else + \def\x{FitB}% + \ifx\x\tag + \gdef\AM@view{fitb}% + \else + \def\x{XZY}% + \ifx\x\tag + \gdef\AM@view{xyz zoom #2}% + \else + \def\x{Region}% + \ifx\x\tag + \gdef\AM@view{fitr + width\the\wd\@tempboxa\space + height0pt depth\AM@region@depth}% + \else + \gdef\AM@view{fit}% + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \endgroup +} +\def\AM@region@calc{% + \setlength{\@tempdima}{\the\ht\@tempboxa + \the\dp\@tempboxa} + \edef\AM@region@depth{\the\@tempdima} +} \let\AM@disable@includegraphics\relax \endinput %% |