%% %% This is file `flippdf.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% flippdf.dtx (with options: `flippdf') %% %% IMPORTANT NOTICE: %% %% Copyright 2006, 2020 %% Sergio Callegari %% %% --------------------------------------------- %% This file is part of the flippdf package, %% a contribution to the LaTeX2e system. %% --------------------------------------------- %% %% This program consists of the files listed in the README file included %% in the package. %% %% Any modified versions of this file must be renamed with new filenames %% distinct from flippdf.sty. %% %% For distribution of the original source see the terms for copying and %% modification in the file flippdf.dtx. %% %% This generated file may be distributed as long as the original source files, as %% listed above, are part of the same distribution. (The sources need not %% necessarily be in the same archive or directory.) %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{flippdf}% [2020/10/27 R2.0b Horizontal flipping of pages with pdfLaTeX] \@ifundefined{AddToHook}{% \PackageWarningNoLine{flippdf}{% You appear to be running a version of LaTeX\MessageBreak unsupported by current flippdf.\MessageBreak Forcing fallback to `flippdf-1x` that\MessageBreak uses an older code base}% \RequirePackageWithOptions{flippdf-1x}% \endinput}{} \RequirePackage{iftex} \AtBeginDocument{% \ifpdf \relax \else \PackageError{flippdf}{% package only works in pdf output mode.}% \fi} \newif\if@sc@flippdf \newcommand\FlipPDF{\@sc@flippdftrue} \newcommand\UnFlipPDF{\@sc@flippdffalse} \FlipPDF \DeclareOption{off}{\UnFlipPDF} \ProcessOptions \ifpdftex \AddToHook{shipout/background}{% \if@sc@flippdf \pdfliteral direct {-1 0 0 1 \strip@pt\paperwidth\space 0 cm}% \fi}% \fi \ifluatex \AddToHook{shipout/background}{% \if@sc@flippdf \pdfextension literal direct {% -1 0 0 1 \strip@pt\paperwidth\space 0 cm}% \fi}% \fi \endinput %% %% End of file `flippdf.sty'.