texlive[56691] Master/texmf-dist: flippdf (18oct20)

commits+karl at tug.org commits+karl at tug.org
Sun Oct 18 22:49:28 CEST 2020


Revision: 56691
          http://tug.org/svn/texlive?view=revision&revision=56691
Author:   karl
Date:     2020-10-18 22:49:28 +0200 (Sun, 18 Oct 2020)
Log Message:
-----------
flippdf (18oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/flippdf/flippdf.pdf
    trunk/Master/texmf-dist/source/latex/flippdf/flippdf.dtx
    trunk/Master/texmf-dist/source/latex/flippdf/flippdf.ins
    trunk/Master/texmf-dist/tex/latex/flippdf/flippdf.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/flippdf/README.md

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/flippdf/README

Deleted: trunk/Master/texmf-dist/doc/latex/flippdf/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/flippdf/README	2020-10-18 20:48:24 UTC (rev 56690)
+++ trunk/Master/texmf-dist/doc/latex/flippdf/README	2020-10-18 20:49:28 UTC (rev 56691)
@@ -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 at 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".

Added: trunk/Master/texmf-dist/doc/latex/flippdf/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/flippdf/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/flippdf/README.md	2020-10-18 20:49:28 UTC (rev 56691)
@@ -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 at 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".


Property changes on: trunk/Master/texmf-dist/doc/latex/flippdf/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/flippdf/flippdf.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/flippdf/flippdf.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/flippdf/flippdf.dtx	2020-10-18 20:48:24 UTC (rev 56690)
+++ trunk/Master/texmf-dist/source/latex/flippdf/flippdf.dtx	2020-10-18 20:49:28 UTC (rev 56691)
@@ -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 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 work has the LPPL maintenance status "author-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 at 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,7 +190,7 @@
 %<*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.}
@@ -192,7 +197,7 @@
 %    \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.
@@ -199,8 +204,21 @@
 %    \begin{macrocode}
 \RequirePackage{everypage}[2007/06/20]
 %    \end{macrocode}
+%
+% 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 at sc@flippdf}
-%
 % Define a boolean variable to remember if pages are to be flipped or
 % not.
 %    \begin{macrocode}
@@ -229,13 +247,27 @@
 %    \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 at sc@flippdf
-  \pdfliteral direct {-1 0 0 1 \strip at pt\paperwidth\space 0 cm}
-  \fi}
+\ifpdftex
+  \AddEverypageHook{%
+    \if at sc@flippdf
+      \pdfliteral direct {-1 0 0 1 \strip at 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 at sc@flippdf
+      \pdfextension literal direct {-1 0 0 1 \strip at pt\paperwidth\space 0 cm}%
+    \fi}%
+\fi
+%    \end{macrocode}
 % \iffalse
 %</flippdf>
 % \fi

Modified: trunk/Master/texmf-dist/source/latex/flippdf/flippdf.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/flippdf/flippdf.ins	2020-10-18 20:48:24 UTC (rev 56690)
+++ trunk/Master/texmf-dist/source/latex/flippdf/flippdf.ins	2020-10-18 20:49:28 UTC (rev 56691)
@@ -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 @@
 \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{***********************************************************}
 

Modified: trunk/Master/texmf-dist/tex/latex/flippdf/flippdf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/flippdf/flippdf.sty	2020-10-18 20:48:24 UTC (rev 56690)
+++ trunk/Master/texmf-dist/tex/latex/flippdf/flippdf.sty	2020-10-18 20:49:28 UTC (rev 56691)
@@ -31,8 +31,16 @@
 %% 
 \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 at sc@flippdf
 \newcommand\FlipPDF{\@sc at flippdftrue}
 \newcommand\UnFlipPDF{\@sc at flippdffalse}
@@ -39,10 +47,18 @@
 \FlipPDF
 \DeclareOption{off}{\UnFlipPDF}
 \ProcessOptions
-\AddEverypageHook{%
-  \if at sc@flippdf
-  \pdfliteral direct {-1 0 0 1 \strip at pt\paperwidth\space 0 cm}
-  \fi}
+\ifpdftex
+  \AddEverypageHook{%
+    \if at sc@flippdf
+      \pdfliteral direct {-1 0 0 1 \strip at pt\paperwidth\space 0 cm}%
+    \fi}%
+\fi
+\ifluatex
+  \AddEverypageHook{%
+    \if at sc@flippdf
+      \pdfextension literal direct {-1 0 0 1 \strip at pt\paperwidth\space 0 cm}%
+    \fi}%
+\fi
 \endinput
 %%
 %% End of file `flippdf.sty'.



More information about the tex-live-commits mailing list.