summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-04-17 22:11:36 +0000
committerKarl Berry <karl@freefriends.org>2015-04-17 22:11:36 +0000
commit277463648965be21e215d982f6623c11a2e154ee (patch)
tree1fa8c3f5ab5052ba4b85231729bcd96faecd3b11 /Master/texmf-dist/tex/latex/pdfpages/ppluatex.def
parent9d73edf70f696c94e5792b550c678cfd26c68cd6 (diff)
pdfpages (17apr15)
git-svn-id: svn://tug.org/texlive/trunk@36894 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfpages/ppluatex.def')
-rw-r--r--Master/texmf-dist/tex/latex/pdfpages/ppluatex.def162
1 files changed, 162 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def b/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def
new file mode 100644
index 00000000000..7f68c81f325
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def
@@ -0,0 +1,162 @@
+%%
+%% This is file `ppluatex.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pdfpages.dtx (with options: `ppluatexdef')
+%%
+%% This file is part of the pdfpages package.
+%%
+%% Copyright (C) 2001-2015 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
+%% <http://www.latex-project.org/lppl.txt>.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is
+%% Andreas Matthias <andreas.matthias@gmail.com>.
+%%
+%% Please send error reports and suggestions for improvements to
+%% Andreas MATTHIAS <andreas.matthias@gmail.com>.
+%%
+\def\AM@fileversion{v0.4w}
+\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: 2015-04-15 23:44:35 +0200 (Wed, 15 Apr 2015) $
+\ProvidesFile{ppluatex.def}
+ [\AM@filedate\space\AM@fileversion\space
+ Pdfpages driver for luaTeX (AM)]
+\ifcase\pdfoutput
+ \input{ppnull.def}
+ \expandafter\endinput
+\fi
+%% \def\AM@getpagecount{%
+%% \setbox\@tempboxa=\hbox{\includegraphics{\AM@currentdocname}}%
+%% \edef\AM@pagecount{\the\pdflastximagepages}%
+%% }
+\let\AM@Gread@@pdftex\Gread@@pdftex
+\renewcommand*{\Gread@@pdftex}[1]{%
+ \xdef\AM@currentdocname@fix{#1}%
+ \AM@Gread@@pdftex{#1}%
+}
+\def\AM@getpagecount{%
+ \setbox\@tempboxa=\hbox{\includegraphics{\AM@currentdocname}}%
+ \pdfximage{\AM@currentdocname@fix}%
+ \edef\AM@pagecount{\the\pdflastximagepages}%
+}
+\let\AM@pagewidth\pdfpagewidth
+\let\AM@pageheight\pdfpageheight
+\def\AM@setpagedimen{%
+ \setlength{\pdfpagewidth}{\wd\@tempboxa}%
+ \setlength{\pdfpageheight}{\ht\@tempboxa + \dp\@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
+ height \ht\@tempboxa
+ depth \dp\@tempboxa
+ {/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{%
+ \pdfannot width \wd\@tempboxa
+ height \ht\@tempboxa
+ depth \dp\@tempboxa
+ {/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{%
+ \pdfthread width \wd\@tempboxa
+ height \ht\@tempboxa
+ depth \dp\@tempboxa
+ attr {/I <<\threadinfodict>>}%
+ name {\AM@threadname}%
+}
+\let\AM@thread@special@end\relax
+\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}
+\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}{\ht\@tempboxa + \dp\@tempboxa}
+ \edef\AM@region@depth{\the\@tempdima}
+}
+\let\AM@disable@includegraphics\relax
+\endinput
+%%
+%% End of file `ppluatex.def'.