diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/flippdf/README | 23 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/flippdf/README.md | 28 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/flippdf/flippdf.pdf | bin | 134345 -> 135228 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/flippdf/flippdf.dtx | 92 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/flippdf/flippdf.ins | 21 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/flippdf/flippdf.sty | 26 |
6 files changed, 124 insertions, 66 deletions
diff --git a/Master/texmf-dist/doc/latex/flippdf/README b/Master/texmf-dist/doc/latex/flippdf/README deleted file mode 100644 index 77526cf4b50..00000000000 --- a/Master/texmf-dist/doc/latex/flippdf/README +++ /dev/null @@ -1,23 +0,0 @@ -The "flippdf" package extends LaTeX making it possible to typeset a "mirrored" -version of the document. This is sometimes required by publishers who use -printing processes that require "camera-ready" documents to be printable on -transparent films, so that one reads the pages correctly by looking through the -film (i.e., with the unprinted side of the film towards his eyes). This package -requires "everypage" by the same author and works with pdfLaTeX only. - -The "flippdf" package is copyright 2006, 2020 by Sergio Callegari -<sergio.callegari@gmail.com> - -It comprises this README file, as well as files -flippdf.dtx -flippf.ins - -To install the package, run LaTeX on the installation script -flipdf.ins and follow the instructions provided by the script itself. - -"flippdf" may be distributed and/or modified under the conditions of -the LaTeX Project Public License, version 1.3c. This license is at -http://www.latex-project.org/lppl.txt and is part of all -distributions of LaTeX version 2003/06/01 or later. - -This work has the LPPL maintenance status "author-maintained". diff --git a/Master/texmf-dist/doc/latex/flippdf/README.md b/Master/texmf-dist/doc/latex/flippdf/README.md new file mode 100644 index 00000000000..33c3b4def14 --- /dev/null +++ b/Master/texmf-dist/doc/latex/flippdf/README.md @@ -0,0 +1,28 @@ +# The `flippdf` package + +The `flippdf` package extends LaTeX making it possible to typeset a *mirrored* +version of the document. This is sometimes required by publishers who use +printing processes that require "camera-ready" documents to be printable on +transparent films, so that one reads the pages correctly by looking through the +film (i.e., with the unprinted side of the film towards his eyes). This package +requires `everypage` by the same author and works with pdfLaTeX and luaLaTeX +only and only in PDF output mode. + +The `flippdf` package is copyright 2006, 2020 by Sergio Callegari +<sergio.callegari@gmail.com> + +It comprises this `README.md` file, as well as files +- `flippdf.dtx` +- `flippf.ins` + +To install the package, run LaTeX on the installation script +flipdf.ins and follow the instructions provided by the script itself. + + +## License + +Package `flippdf` may be distributed and/or modified under the conditions of +the LaTeX Project Public License, version 1.3c. This license is available at +https://www.latex-project.org/lppl/lppl-1-3c/. + +This work has the LPPL maintenance status "maintained". diff --git a/Master/texmf-dist/doc/latex/flippdf/flippdf.pdf b/Master/texmf-dist/doc/latex/flippdf/flippdf.pdf Binary files differindex 12a1900edd0..bfa6b881fa4 100644 --- a/Master/texmf-dist/doc/latex/flippdf/flippdf.pdf +++ b/Master/texmf-dist/doc/latex/flippdf/flippdf.pdf diff --git a/Master/texmf-dist/source/latex/flippdf/flippdf.dtx b/Master/texmf-dist/source/latex/flippdf/flippdf.dtx index cc775ee1137..e329d4f2a28 100644 --- a/Master/texmf-dist/source/latex/flippdf/flippdf.dtx +++ b/Master/texmf-dist/source/latex/flippdf/flippdf.dtx @@ -8,14 +8,16 @@ % a contribution to the LaTeX2e system. % --------------------------------------------- % -% It may be distributed and/or modified under the conditions of the -% LaTeX Project Public License, version 1.3c of this licence. -% This license is at http://www.latex-project.org/lppl.txt and is part -% of all distributions of LaTeX version 2003/06/01 or later. -% -% This work has the LPPL maintenance status "author-maintained". +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, version 1.3c. +% This license is in +% https://www.latex-project.org/lppl/lppl-1-3c/ +% and is part of all distributions of LaTeX later than +% 2008-05-04. +% +% This work has the LPPL maintenance status "maintained". % -% This program consists of the files listed in the README file +% This program consists of the files listed in the README.md file % included in the package. % %<*driver> @@ -38,18 +40,19 @@ % \DoNotIndex{\NeedsTeXFormat, \documentclass} % \DoNotIndex{\begin, \end} % \DoNotIndex{\def, \gdef, \let, \newcommand} -% \DoNotIndex{\ProvidesPackage, \RequirePackage, \usepackage} +% \DoNotIndex{\ProvidesPackage, \RequirePackage, \usepackage, \PackageError} % \DoNotIndex{\DeclareOption, \ProcessOptions} -% \DoNotIndex{\ifx, \fi, \newif} +% \DoNotIndex{\ifx, \fi, \newif, \else} % \DoNotIndex{\paperwidth, \space, \strip@pt} % \DoNotIndex{\maketitle, \title, \lipsum} +% \DoNotIndex{\thispagestyle, \relax, \setcounter, \Large, \clearpage, \bigskip} % -% \CheckSum{22} +% \CheckSum{40} % % \def\filename{flippdf.dtx} -% \def\fileversion{1.0b} -% \def\filedate{2020/10/11} -% \def\docdate{2020/10/11} +% \def\fileversion{1.1} +% \def\filedate{2020/10/17} +% \def\docdate{2020/10/17} % % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option @@ -71,14 +74,15 @@ % \maketitle % % \begin{abstract} -% The \Lpack{pdfflip} package extends \hologo{pdfLaTeX} making it -% possible to typeset a ``mirrored'' version of the document. This is -% sometimes required by publishers who use photographic printing -% processes that need ``camera-ready'' documents to be printable on -% transparent films, so that one reads the pages correctly by looking -% \emph{through} the film with the \emph{unprinted} side of the film -% towards his eyes. This package requires \Lpack{everypage} by the same -% author and works with \hologo{pdfLaTeX} only. +% The \Lpack{pdfflip} package extends \hologo{pdfLaTeX} and +% \hologo{LuaLaTeX} making it possible to typeset a ``mirrored'' version +% of the document. This is sometimes required by publishers who use +% photographic printing processes that need ``camera-ready'' documents +% to be printable on transparent films, so that one reads the pages +% correctly by looking \emph{through} the film with the \emph{unprinted} +% side of the film towards his eyes. This package requires +% \Lpack{everypage} by the same author and works exclusively with +% \hologo{pdfLaTeX} and \hologo{LuaLaTeX} in PDF output mode. % \end{abstract} % % \section{Introduction} @@ -94,7 +98,8 @@ % by page basis. % % This package requires \Lpack{everypage} by the same author and works -% with \hologo{pdfLaTeX} only. +% exclusively with \hologo{pdfLaTeX} and \hologo{LuaLaTeX} in PDF output +% mode. % % \section{User interface} % By default, once loaded as: @@ -185,22 +190,35 @@ %<*flippdf> % \fi % Announce the name and version of the package, that requires -% \hologo{LaTeX2e} (actually \hologo{pdfLaTeX}). +% \hologo{LaTeX2e} (actually \hologo{pdfLaTeX} or \hologo{LuaLaTeX}). % \changes{R1.0b}{2020/10/11}{% % Require \Lpack{everypage} package to be at least at its 2007/06/20 (R1.1) % release.} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{flippdf}% - [2020/10/11 1.0b Horizontal flipping of pages with pdfLaTeX] + [2020/10/17 1.1 Horizontal flipping of pages with pdfLaTeX] % \end{macrocode} % % Assure that the dependence on \Lpack{everypage} is satisfied. % \begin{macrocode} \RequirePackage{everypage}[2007/06/20] % \end{macrocode} -% \begin{macro}{\if@sc@flippdf} % +% Depend on \Lpack{iftex} and error out if not working in PDF mode +% \changes{R1.1}{2020/10/17}{Error out if output mode is not PDF.}% +% \begin{macrocode} +\RequirePackage{iftex} +\AtBeginDocument{% + \ifpdf + \relax + \else + \PackageError{flippdf}{% + package only works in pdf output mode}% + \fi} +% \end{macrocode} +% +% \begin{macro}{\if@sc@flippdf} % Define a boolean variable to remember if pages are to be flipped or % not. % \begin{macrocode} @@ -229,12 +247,26 @@ % \end{macrocode} % % And eventually, tell \LaTeX\ to flip every page, by using the -% \Lpack{everypage} hook: +% \Lpack{everypage} hook. First consider the case when running in +% \hologo{pdfLaTeX} % \begin{macrocode} -\AddEverypageHook{% - \if@sc@flippdf - \pdfliteral direct {-1 0 0 1 \strip@pt\paperwidth\space 0 cm} - \fi} +\ifpdftex + \AddEverypageHook{% + \if@sc@flippdf + \pdfliteral direct {-1 0 0 1 \strip@pt\paperwidth\space 0 cm}% + \fi}% +\fi +% \end{macrocode} +% Then consider the case when running in \hologo{LuaLaTeX} +% \changes{R1.1}{2020/10/17}{Extend package to work also with +% \hologo{LuaLaTeX}.} +% \begin{macrocode} +\ifluatex + \AddEverypageHook{% + \if@sc@flippdf + \pdfextension literal direct {-1 0 0 1 \strip@pt\paperwidth\space 0 cm}% + \fi}% +\fi % \end{macrocode} % \iffalse %</flippdf> diff --git a/Master/texmf-dist/source/latex/flippdf/flippdf.ins b/Master/texmf-dist/source/latex/flippdf/flippdf.ins index 0b917030470..b8f327f0b5e 100644 --- a/Master/texmf-dist/source/latex/flippdf/flippdf.ins +++ b/Master/texmf-dist/source/latex/flippdf/flippdf.ins @@ -7,14 +7,16 @@ %% a contribution to the LaTeX2e system. %% --------------------------------------------- %% -%% It may be distributed and/or modified under the conditions of the -%% LaTeX Project Public License, version 1.3c. This version of the -%% license is at http://www.latex-project.org/lppl.txt and is part -%% of all distributions of LaTeX version 2003/06/01 or later. +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, version 1.3c. +%% This license is in +%% https://www.latex-project.org/lppl/lppl-1-3c/ +%% and is part of all distributions of LaTeX later than +%% 2008-05-04. %% -%% This work has the LPPL maintenance status "author-maintained". +%% This work has the LPPL maintenance status "maintained". %% -%% This program consists of the files listed in the README file +%% This program consists of the files listed in the README.md file %% included in the package. %% %% This file will generate fast loadable files and documentation @@ -74,9 +76,12 @@ necessarily be in the same archive or directory.) \Msg{* - run flippdf.dtx through LaTeX} \Msg{* - process flippdf.idx by:} \Msg{* \space\space\space\space makeindex -s gind.ist flippdf} -\Msg{* Process flippdf.glo by:} +\Msg{* - process flippdf.glo by:} \Msg{* \space\space\space\space makeindex -s gglo.ist -o flippdf.gls flippdf.glo} -\Msg{* Re run through LaTeX the flippdf.dtx as necessary} +\Msg{* - re run through LaTeX the flippdf.dtx as necessary} +\Msg{* You may then want to move the test-flippdf*.tex files produced by} +\Msg{* processing this ins file together with the documentation (e.g., in an} +\Msg{* examples subdirectory} \Msg{*} \Msg{***********************************************************} diff --git a/Master/texmf-dist/tex/latex/flippdf/flippdf.sty b/Master/texmf-dist/tex/latex/flippdf/flippdf.sty index 262b6efcfdd..42b7aaaf4aa 100644 --- a/Master/texmf-dist/tex/latex/flippdf/flippdf.sty +++ b/Master/texmf-dist/tex/latex/flippdf/flippdf.sty @@ -31,18 +31,34 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{flippdf}% - [2020/10/11 1.0b Horizontal flipping of pages with pdfLaTeX] + [2020/10/17 1.1 Horizontal flipping of pages with pdfLaTeX] \RequirePackage{everypage}[2007/06/20] +\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 -\AddEverypageHook{% - \if@sc@flippdf - \pdfliteral direct {-1 0 0 1 \strip@pt\paperwidth\space 0 cm} - \fi} +\ifpdftex + \AddEverypageHook{% + \if@sc@flippdf + \pdfliteral direct {-1 0 0 1 \strip@pt\paperwidth\space 0 cm}% + \fi}% +\fi +\ifluatex + \AddEverypageHook{% + \if@sc@flippdf + \pdfextension literal direct {-1 0 0 1 \strip@pt\paperwidth\space 0 cm}% + \fi}% +\fi \endinput %% %% End of file `flippdf.sty'. |