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/ppxetex.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/ppxetex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/pdfpages/ppxetex.def | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfpages/ppxetex.def b/Master/texmf-dist/tex/latex/pdfpages/ppxetex.def new file mode 100644 index 00000000000..ebde43c152b --- /dev/null +++ b/Master/texmf-dist/tex/latex/pdfpages/ppxetex.def @@ -0,0 +1,180 @@ +%% +%% This is file `ppxetex.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pdfpages.dtx (with options: `ppxetexdef') +%% +%% This file is part of the pdfpages package. +%% +%% +%% Please send error reports and suggestions for improvements to +%% Andreas MATTHIAS <andreas.matthias@gmail.com>. +%% +\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: 2008-04-01 17:31:14 +0200 (Tue, 01 Apr 2008) $ +\ProvidesFile{ppxetex.def} + [\AM@filedate\space\AM@fileversion\space + Pdfpages driver for XeTeX (AM)] +\begingroup +\@ifundefined{ver@xetex.def}{% + \PackageError{pdfpages} + {The graphics package was loaded with driver\MessageBreak + `\Gin@driver', which cannot be used with XeTeX} + {Check the driver option of the graphics package.} + \global\let\AM@endinput\relax + \aftergroup\endinput}{} +\endgroup +{\catcode`\"=12 + \gdef\AM@XeTeXquote{"}% +} +\def\AM@getpagecount{% + \edef\AM@pagecount{\the\XeTeXpdfpagecount\AM@XeTeXquote + \AM@currentdocname\AM@XeTeXquote\relax}% +} +\begingroup +\ifnum\XeTeXversion=0 + \edef\temp{\expandafter\@gobble\XeTeXrevision} + \ifnum\temp<997 + \PackageError{pdfpages} + {Package pdfpages requires at least XeTeX-0.997} + {Update your TeX distribution!} + \global\let\AM@endinput\relax + \aftergroup\endinput + \fi +\fi +\endgroup +\let\AM@pagewidth\pdfpagewidth +\let\AM@pageheight\pdfpageheight +\def\AM@setpagedimen{% + \setlength{\pdfpagewidth}{\the\wd\@tempboxa}% + \setlength{\pdfpageheight}{\the\ht\@tempboxa}% +} +\def\AM@pagesize@boogie{% + \ifdim\AM@pagewidth=\z@ + \ifdim\AM@pageheight=\z@ + \let\AM@pagewidth\paperwidth + \let\AM@pageheight\paperheight + \fi + \fi +} +\let\AM@fitpaper@special\relax +\def\AM@findfile#1{% + \AM@findfile@i{#1}{pdf}% + \AM@findfile@ii{#1}% +} +\long\def\AM@IfFileExists#1#2#3{% + \openin\@inputcheck=\AM@XeTeXquote#1\AM@XeTeXquote\relax + \ifeof\@inputcheck + \ifx\input@path\@undefined + \def\reserved@a{#3}% + \else + \def\reserved@a{\@iffileonpath{#1}{#2}{#3}}% + \fi + \else + \closein\@inputcheck + \edef\@filef@und{#1 }% + \def\reserved@a{#2}% + \fi + \reserved@a} +\def\AM@setlscape{\special{pdf: put @thispage << /Rotate 90 >>}} +\def\AM@linktodoc@special@begin{% + \special{pdf: annot + width \the\wd\@tempboxa\space + height \the\ht\@tempboxa\space + depth \the\dp\@tempboxa\space + << /Type /Annot + /Subtype /Link /Border [0 0 0] + /A << /S /GoToR + /F (\AM@linkfilename) + /D [\AM@linktodoc@page@m@ne \AM@linktodocfit] + \ifAM@newwindow/NewWindow true\fi >> + >>}% +} +\let\AM@linktodoc@special@end\relax +\def\AM@survey@special@begin{% + \special{pdf: annot + width \the\wd\@tempboxa\space + height \the\ht\@tempboxa\space + depth \the\dp\@tempboxa\space + << /Type /Annot + /Subtype /Link /Border [0 0 0] + /A << /S /GoTo + /D (pdfpages.\AM@linktodoc@page@m@ne) >> + >>}% +} +\let\AM@survey@special@end\relax +\def\AM@thread@special@begin{% + \special{pdf: thread @\AM@threadname\space + width \the\wd\@tempboxa\space + height \the\ht\@tempboxa\space + depth \the\dp\@tempboxa\space + <<\threadinfodict>> + }% +} +\let\AM@thread@special@end\relax +\def\AM@view{/Fit} +\def\AM@dest@special{% + \special{pdf: dest (\AM@linkname.\AM@page) [ @thispage \AM@view ]}} +\def\AM@anchor@special{% + \special{pdf: dest (pdfpages.\the\count1) [ @thispage /Fit ]}} +\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 @ypos}% + \else + \def\x{FitBH}% + \ifx\x\tag + \gdef\AM@view{/FitBH @ypos}% + \else + \def\x{FitV}% + \ifx\x\tag + \gdef\AM@view{/FitV @xpos}% + \else + \def\x{FitBV}% + \ifx\x\tag + \gdef\AM@view{/FitBV @xpos}% + \else + \def\x{fitr}% + \ifx\x\tag + \gdef\AM@view{/XYZ @xpos @ypos null}% + \PackageWarningNoLine{pdfpages}{% + `linkfit=FitR' is not supported.}% + \else + \def\x{FitB}% + \ifx\x\tag + \gdef\AM@view{/FitB}% + \else + \def\x{XYZ}% + \ifx\x\tag + \gdef\AM@view{/XYZ @xpos @ypos null}% + \else + \def\x{Region}% + \ifx\x\tag + \gdef\AM@view{/XYZ @xpos @ypos null}% + \PackageWarningNoLine{pdfpages}{% + `linkfit=Region' is not supported by XeTeX.}% + \else + \gdef\AM@view{/Fit}% + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \endgroup +} +\def\AM@region@calc{} +\let\AM@disable@includegraphics\relax +\endinput +%% +%% End of file `ppxetex.def'. |