texlive[55385] Master/texmf-dist: crop (2jun20)

commits+karl at tug.org commits+karl at tug.org
Tue Jun 2 23:08:49 CEST 2020


Revision: 55385
          http://tug.org/svn/texlive?view=revision&revision=55385
Author:   karl
Date:     2020-06-02 23:08:49 +0200 (Tue, 02 Jun 2020)
Log Message:
-----------
crop (2jun20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/crop/crop.txt
    trunk/Master/texmf-dist/source/latex/crop/Makefile
    trunk/Master/texmf-dist/source/latex/crop/crop.dtx
    trunk/Master/texmf-dist/source/latex/crop/crop.ins
    trunk/Master/texmf-dist/tex/latex/crop/crop.sty

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/crop/crop.pdf

Deleted: trunk/Master/texmf-dist/doc/latex/crop/crop.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/crop/crop.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/crop/crop.txt	2020-06-02 20:36:31 UTC (rev 55384)
+++ trunk/Master/texmf-dist/doc/latex/crop/crop.txt	2020-06-02 21:08:49 UTC (rev 55385)
@@ -1,5 +1,3 @@
-$Id: crop.txt,v 1.7 2003/05/19 20:05:17 m Rel $
-
 crop.sty
 ========
 
@@ -16,14 +14,11 @@
 
 
 author          = "Melchior FRANZ"
-version         = "1.9"
-date            = "20 May 2003"
-address         = "Melchior FRANZ
-                   Rieder Hauptstrasse 52
-                   A-5212 SCHNEEGATTERN
-                   AUSTRIA"
-URL             = "http://www.unet.univie.ac.at/~a8603365/"
-email           = "a8603365 at unet.univie.ac.at"
+maintainer      = "Reuben Thomas"
+version         = "1.10"
+date            = "19 Nov 2017"
+URL             = "https://github.org/rrthomas/crop/"
+email           = "rrt at sc3d.org"
 codetable       = "ISO/ASCII"
 keywords        = "cropmarks, frame, mirror, rotate, invert"
 supported       = "yes"
@@ -53,5 +48,3 @@
 And finally to produce the documentation run LaTeX three times:
 
     $ latex crop.dtx
-
-

Modified: trunk/Master/texmf-dist/source/latex/crop/Makefile
===================================================================
--- trunk/Master/texmf-dist/source/latex/crop/Makefile	2020-06-02 20:36:31 UTC (rev 55384)
+++ trunk/Master/texmf-dist/source/latex/crop/Makefile	2020-06-02 21:08:49 UTC (rev 55385)
@@ -1,32 +1,9 @@
-# $Id: Makefile,v 1.11 2002/11/22 08:34:30 m Rel $
-
 NAME=crop
 ARCHIVE_NAME=$(NAME).tar.gz
 ARCHIVE_CONTENTS=$(NAME).dtx Makefile $(NAME).txt $(NAME).ins
-MAKEIDXOPT=
-DVIPSOPT= #-Pcmz -Pamz
-DEP=$(NAME).sty
 
-all: $(NAME).ps
+all: $(NAME).sty $(NAME).pdf
 
-print: $(NAME).ps
-	psbook $(NAME).ps|psnup -2|psselect -e|lpr
-	@ echo -n revert paper stack and hit return
-	@ read key
-	psbook $(NAME).ps|psnup -2|psselect -o -r|lpr
-
-ps: $(NAME).ps
-
-%.ps: %.dvi
-	dvips $(DVIPSOPT) $< -o $@
-
-pdf: $(NAME).pdf
-
-%.pdf: %.dtx
-	pdflatex $<
-
-arc: archive
-
 archive: $(NAME).ins
 	@ tar -czf $(ARCHIVE_NAME) $(ARCHIVE_CONTENTS)
 	@ echo $(ARCHIVE_NAME):
@@ -33,30 +10,11 @@
 	@ echo ====================
 	@ tar -tzf $(ARCHIVE_NAME)
 
-clean: 
-	rm -f $(NAME).{log,toc,lot,lof,idx,ilg,ind,aux,blg,bbl,dvi,ins}
+$(NAME).pdf:
+	latexmk $(NAME).dtx
 
-distclean: clean
-	rm -f $(NAME).{ps,pdf,sty} $(ARCHIVE_NAME)
-
-
-REFWARN = 'Rerun to get cross-references'
-LATEXMAX = 5
-
-%.dvi: %.dtx $(DEP)
-	latex $<
-	RUNS=$(LATEXMAX); \
-	while [ $$RUNS -gt 0 ] ; do \
-		if grep $(REFWARN) $*.log > /dev/null; \
-		then latex $< ; else break; fi; \
-		RUNS=`expr $$RUNS - 1`; \
-	done
-
-$(NAME).sty: $(NAME).ins FORCE
+$(NAME).sty: $(NAME).ins
 	tex $(NAME).ins
 
 $(NAME).ins:
-	latex $(NAME).dtx
-
-FORCE:
-
+	pdflatex $(NAME).dtx

Modified: trunk/Master/texmf-dist/source/latex/crop/crop.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/crop/crop.dtx	2020-06-02 20:36:31 UTC (rev 55384)
+++ trunk/Master/texmf-dist/source/latex/crop/crop.dtx	2020-06-02 21:08:49 UTC (rev 55385)
@@ -1,7 +1,6 @@
 % \iffalse
-%% File: crop.dtx Copyright (C) 1998--2003 Melchior FRANZ
-%% $Id: crop.dtx,v 1.92 2003/05/19 20:05:17 m Rel $
-%% $Version: 1.9 $
+%% File: crop.dtx Copyright (C) 1998--2017 Melchior FRANZ
+%
 %<*preamble>
 %
 %
@@ -28,15 +27,15 @@
 %% ====================================================================
 %%  @LaTeX-package-file{
 %%     author          = "Melchior FRANZ",
-%%     version         = "1.9",
-%%     date            = "20 May 2003",
+%%     version         = "1.10",
+%%     date            = "19 Nov 2017",
 %%     filename        = "crop.dtx",
 %%     address         = "Melchior FRANZ
 %%                        Rieder Hauptstrasse 52
 %%                        A-5212 SCHNEEGATTERN
 %%                        AUSTRIA",
-%%     URL             = "http://www.unet.univie.ac.at/~a8603365/",
-%%     email           = "a8603365 at unet.univie.ac.at",
+%%     URL             = "https://github.com/drehscheibe/crop/",
+%%     email           = "mfranz at aon.at",
 %%     codetable       = "ISO/ASCII",
 %%     keywords        = "cropmarks, frame, mirror, rotate, invert",
 %%     supported       = "yes",
@@ -75,10 +74,21 @@
 %
 %
 %<*driver>
-\def\fileversion{1.9}
-\def\filedate{2003/05/20}
-\documentclass[draft]{ltxdoc}
+\def\fileversion{1.10}
+\def\filedate{2017/11/19}
+\documentclass{ltxdoc}
+\usepackage{hyperref}
+\hypersetup{
+    bookmarksopen,
+    colorlinks,
+    pdftitle={The crop package},
+    pdfauthor={Melchior FRANZ},
+    pdfkeywords={crop marks, mirror, invert, center}
+}
+\usepackage[pdftex]{graphicx,color}
 %
+%
+%
 \newcommand*\option{\textsf}
 \newcommand*\package{\texttt}
 \newcommand*\program{\texttt}
@@ -130,7 +140,7 @@
 % \fi
 %
 %
-% \CheckSum{1063}
+% \CheckSum{1098}
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -154,7 +164,7 @@
 % \title{The \CROP\ package}
 %
 % \author{Melchior \textsc{FRANZ}}
-% \date{May 20, 2003}
+% \date{Nov 19, 2017}
 % \maketitle
 %
 %
@@ -199,6 +209,8 @@
 % \changes{v1.9}{2003/05/20}{don't create command sequences by merely
 %   checking for them}
 %
+% \changes{v1.10}{2017/11/19}{fix dimensions of a1, a2, a5 and a6 paper; add
+%   support for LuaTeX.}
 %
 %
 % \begin{abstract}
@@ -258,9 +270,9 @@
 %    b0, b1, b2, b3, b4, b5, b6, letter, legal, executive]\hfill\break
 %    These options declare the printing paper dimensions. One of them should be
 %    specified if the \option{center} option or one of the options \option{dvips},
-%    \option{pdftex} and \option{vtex} is used. The size options do not
-%    define the logical document page size! See section~\ref{sec:custom-logical}
-%    for how to achieve this.
+%    \option{pdftex}, \option{luatex} and \option{vtex} is used. The size options
+%    do not define the logical document page size! See
+%    section~\ref{sec:custom-logical} for how to achieve this.
 %
 % \item[\itemfont width, height]---
 %    Instead of using one of the pre-defined paper formats as described
@@ -279,11 +291,12 @@
 %    to center a document on \emph{landscape oriented} paper. It has nothing
 %    to do with \LaTeX's |landscape| document class option.
 %
-% \item[\itemfont dvips, pdftex, pdflatex, vtex, nodriver]---
-%    If you are working with \program{dvips}, \program{pdftex} or \program{vtex}
+% \item[\itemfont dvips, pdftex, pdflatex, luatex, lualatex, vtex, nodriver]---
+%   If you are working with \program{dvips}, \program{pdftex},
+%   \program{luatex} or \program{vtex}
 %    you may want to pass the dimensions of the paper that you are planning to print on to
-%    the respective driver program. Especially viewer programs like \program{gs}
-%    or \program{gv} make use of this \emph{bounding box} information. Unfortunately,
+%    the respective driver program. Especially viewer programs like \program{evince}
+%    or \program{xpdf} make use of this \emph{bounding box} information. Unfortunately,
 %    this can't be done in a generic way---there's no standard. These options select
 %    driver specific methods to set the paper size and to rotate and reflect a page.
 %
@@ -296,7 +309,8 @@
 %    through \program{pdflatex}. In this case \CROP\ will automatically use
 %    the \option{pdflatex} driver. You can also force \CROP\ not to use any
 %    of the drivers by requesting the \option{nodriver} option.
-%    \option{pdflatex} is a synonym for \option{pdftex}.
+%    \option{pdflatex} is a synonym for \option{pdftex}, and \option{lualatex}
+%    is a synonym for \option{luatex}.
 %
 % \item[\itemfont mirror]
 %    This option reflects the whole document, provided that the selected output
@@ -599,7 +613,8 @@
 %
 % \subsection{Custom printing paper sheet size}
 %
-% If you want to use one of the \option{center}, \option{dvips}, \option{pdftex} or \option{vtex}
+% If you want to use one of the \option{center}, \option{dvips}, \option{pdftex},
+% \option{pdflatex}, \option{luatex}, \option{lualatex} or \option{vtex}
 % options together with non-standard printing paper, you can set it
 % via the \option{width} and \option{height} option, or simply add
 % the respective paper definition to your |crop.cfg| file (see \ref{sec:config}).
@@ -772,7 +787,11 @@
 % (Tested with |graphics.sty|, version~1.0l as of 1999/02/16.)
 %
 %
+% \subsubsection{\package{ifluatex.sty}}
 %
+% \CROP's driver detection depends on the \package{ifluatex} package.
+%
+%
 % \StopEventually{\addtocontents{toc}{\protect\end{multicols}}}
 %
 %
@@ -807,7 +826,8 @@
 %    \begin{macrocode}
 %<*package>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{crop}[2003/05/20 v1.9 crop marks  (mf)]
+\ProvidesPackage{crop}[2017/11/19 1.10 crop marks (mf)]
+\RequirePackage{ifluatex}
 \expandafter\ifx\csname stockwidth\endcsname\relax
     \newdimen\stockwidth
     \stockwidth\paperwidth
@@ -922,6 +942,8 @@
 \DeclareOption{vtex}{\def\CROP at reqdriver{vtex}}
 \DeclareOption{pdftex}{\def\CROP at reqdriver{pdftex}}
 \DeclareOption{pdflatex}{\def\CROP at reqdriver{pdftex}}
+\DeclareOption{luatex}{\def\CROP at reqdriver{luatex}}
+\DeclareOption{lualatex}{\def\CROP at reqdriver{luatex}}
 \DeclareOption{dvips}{\def\CROP at reqdriver{dvips}}
 %    \end{macrocode}
 % \end{macro}
@@ -942,6 +964,8 @@
 \DeclareOption{vtex!}{\def\CROP at driver{vtex}}
 \DeclareOption{pdftex!}{\def\CROP at driver{pdftex}}
 \DeclareOption{pdflatex!}{\def\CROP at driver{pdftex}}
+\DeclareOption{luatex!}{\def\CROP at driver{luatex}}
+\DeclareOption{lualatex!}{\def\CROP at driver{luatex}}
 \DeclareOption{dvips!}{\def\CROP at driver{dvips}}
 \DeclareOption{nodriver}{\def\CROP at driver{none}}
 \DeclareOption{!}{\def\CROP at driver{none}}
@@ -965,10 +989,14 @@
 \newcommand*\CROP at evaldriver{%
     \ifx\CROP at driver\@empty
         \PackageInfo{crop}{requested driver: `\CROP at reqdriver'}%
-        \ifx\pdfoutput\@undefined\else
-            \ifx\pdfoutput\relax\else
-                \ifcase\pdfoutput\else
-                    \def\CROP at detdriver{pdftex}%
+        \ifluatex
+            \def\CROP at detdriver{luatex}%
+        \else
+            \ifx\pdfoutput\@undefined\else
+                \ifx\pdfoutput\relax\else
+                    \ifcase\pdfoutput\else
+                        \def\CROP at detdriver{pdftex}%
+                    \fi
                 \fi
             \fi
         \fi
@@ -1015,6 +1043,7 @@
 %
 % \begin{macro}{\CROP at init@dvips}
 % \begin{macro}{\CROP at init@pdftex}
+% \begin{macro}{\CROP at init@luatex}
 % \begin{macro}{\CROP at init@vtex}
 % \begin{macro}{\CROP at init@none}
 % These macros prepare the \CROP\ package for one of the supported
@@ -1031,11 +1060,20 @@
 }
 \newcommand*\CROP at init@pdftex{%
     \PackageInfo{crop}{using `pdftex' graphics driver}%
-    \pdfpagewidth\stockwidth
-    \pdfpageheight\stockheight
     \let\CROP at reflect\CROP at genreflect
     \let\CROP at rotate\CROP at genrotate
+    \newcommand*\CROP at shiphook{%
+        \pdfpagewidth\stockwidth
+        \pdfpageheight\stockheight
+    }%
 }
+\newcommand*\CROP at init@luatex{%
+    \PackageInfo{crop}{using `luatex' graphics driver}%
+    \pagewidth\stockwidth
+    \pageheight\stockheight
+    \let\CROP at reflect\CROP at genreflect
+    \let\CROP at rotate\CROP at genrotate
+}
 \newcommand*\CROP at init@vtex{%
     \PackageInfo{crop}{using `vtex' graphics driver}%
     \mediawidth\stockwidth
@@ -1051,6 +1089,7 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
+% \end{macro}
 %
 %
 %
@@ -1067,8 +1106,9 @@
 % \begin{macro}{\CROP at opt@height}
 % These options set different standard printing paper sizes, which
 % are needed for centering and as a hint for the \program{dvips},
-% \program{pdftex} or \program{vtex} program. Since the physical paper
-% dimensions must not underlie a possible scaling, |true| dimensions
+% \program{pdftex}, \program{luatex} or \program{vtex} program.
+% Since the physical paper
+% dimensions must not undergo a possible scaling, |true| dimensions
 % are used. The \option{landscape} option exchanges the |\hoffset| and
 % |\voffset| values.
 %
@@ -1078,12 +1118,12 @@
     \def\CROP at size#1#2{\stockheight#1 \stockwidth#2 }%
 }
 \DeclareOption{a0}{\CROP at size{841truemm}{1189truemm}}
-\DeclareOption{a1}{\CROP at size{595truemm}{841truemm}}
-\DeclareOption{a2}{\CROP at size{420truemm}{595truemm}}
+\DeclareOption{a1}{\CROP at size{594truemm}{841truemm}}
+\DeclareOption{a2}{\CROP at size{420truemm}{594truemm}}
 \DeclareOption{a3}{\CROP at size{297truemm}{420truemm}}
 \DeclareOption{a4}{\CROP at size{210truemm}{297truemm}}
-\DeclareOption{a5}{\CROP at size{149truemm}{210truemm}}
-\DeclareOption{a6}{\CROP at size{105truemm}{149truemm}}
+\DeclareOption{a5}{\CROP at size{148truemm}{210truemm}}
+\DeclareOption{a6}{\CROP at size{105truemm}{148truemm}}
 \DeclareOption{b0}{\CROP at size{1000truemm}{1414truemm}}
 \DeclareOption{b1}{\CROP at size{707truemm}{1000truemm}}
 \DeclareOption{b2}{\CROP at size{500truemm}{707truemm}}
@@ -1585,6 +1625,7 @@
     \box\@cclv
 }
 \newcommand*\CROP@@ship{%
+    \csname CROP at shiphook\endcsname
     \CROP at shipout\vbox{\CROP at shiplist}%
 }
 %    \end{macrocode}
@@ -1811,7 +1852,8 @@
 % The \option{mirror} and \option{rotate} options add a macro to the
 % \emph{shiplist,} which then gets every output page and embeds it in
 % a \POSTSCRIPT\ environment (\option{dvips}) or lets the
-% \package{graphics} package reflect or rotate it (\option{pdftex}).
+% \package{graphics} package reflect or rotate it (\option{pdftex} or
+% \option{luatex}).
 % We could also use the generic operations |\CROP at genreflect| and
 % |\CROP at genrotate| for the \option{dvips} mode. They would produce
 % correct \PS\ documents, the intermediate \DVI\ document, however,

Modified: trunk/Master/texmf-dist/source/latex/crop/crop.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/crop/crop.ins	2020-06-02 20:36:31 UTC (rev 55384)
+++ trunk/Master/texmf-dist/source/latex/crop/crop.ins	2020-06-02 21:08:49 UTC (rev 55385)
@@ -1,6 +1,6 @@
 %% LaTeX2e file `crop.ins'
 %% generated by the `filecontents' environment
-%% from source `crop' on 2003/05/20.
+%% from source `crop' on 2020/06/01.
 %%
 \def\batchfile{crop.ins}
 \input docstrip.tex

Modified: trunk/Master/texmf-dist/tex/latex/crop/crop.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/crop/crop.sty	2020-06-02 20:36:31 UTC (rev 55384)
+++ trunk/Master/texmf-dist/tex/latex/crop/crop.sty	2020-06-02 21:08:49 UTC (rev 55385)
@@ -20,11 +20,10 @@
 %% original source files, as listed above, are part of the
 %% same distribution. (The sources need not necessarily be
 %% in the same archive or directory.)
-%% File: crop.dtx Copyright (C) 1998--2003 Melchior FRANZ
-%% $Id: crop.dtx,v 1.92 2003/05/19 20:05:17 m Rel $
-%% $Version: 1.9 $
+%% File: crop.dtx Copyright (C) 1998--2017 Melchior FRANZ
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{crop}[2003/05/20 v1.9 crop marks  (mf)]
+\ProvidesPackage{crop}[2017/11/19 1.10 crop marks (mf)]
+\RequirePackage{ifluatex}
 \expandafter\ifx\csname stockwidth\endcsname\relax
     \newdimen\stockwidth
     \stockwidth\paperwidth
@@ -73,11 +72,15 @@
 \DeclareOption{vtex}{\def\CROP at reqdriver{vtex}}
 \DeclareOption{pdftex}{\def\CROP at reqdriver{pdftex}}
 \DeclareOption{pdflatex}{\def\CROP at reqdriver{pdftex}}
+\DeclareOption{luatex}{\def\CROP at reqdriver{luatex}}
+\DeclareOption{lualatex}{\def\CROP at reqdriver{luatex}}
 \DeclareOption{dvips}{\def\CROP at reqdriver{dvips}}
 \let\CROP at driver\@empty
 \DeclareOption{vtex!}{\def\CROP at driver{vtex}}
 \DeclareOption{pdftex!}{\def\CROP at driver{pdftex}}
 \DeclareOption{pdflatex!}{\def\CROP at driver{pdftex}}
+\DeclareOption{luatex!}{\def\CROP at driver{luatex}}
+\DeclareOption{lualatex!}{\def\CROP at driver{luatex}}
 \DeclareOption{dvips!}{\def\CROP at driver{dvips}}
 \DeclareOption{nodriver}{\def\CROP at driver{none}}
 \DeclareOption{!}{\def\CROP at driver{none}}
@@ -84,10 +87,14 @@
 \newcommand*\CROP at evaldriver{%
     \ifx\CROP at driver\@empty
         \PackageInfo{crop}{requested driver: `\CROP at reqdriver'}%
-        \ifx\pdfoutput\@undefined\else
-            \ifx\pdfoutput\relax\else
-                \ifcase\pdfoutput\else
-                    \def\CROP at detdriver{pdftex}%
+        \ifluatex
+            \def\CROP at detdriver{luatex}%
+        \else
+            \ifx\pdfoutput\@undefined\else
+                \ifx\pdfoutput\relax\else
+                    \ifcase\pdfoutput\else
+                        \def\CROP at detdriver{pdftex}%
+                    \fi
                 \fi
             \fi
         \fi
@@ -129,11 +136,20 @@
 }
 \newcommand*\CROP at init@pdftex{%
     \PackageInfo{crop}{using `pdftex' graphics driver}%
-    \pdfpagewidth\stockwidth
-    \pdfpageheight\stockheight
     \let\CROP at reflect\CROP at genreflect
     \let\CROP at rotate\CROP at genrotate
+    \newcommand*\CROP at shiphook{%
+        \pdfpagewidth\stockwidth
+        \pdfpageheight\stockheight
+    }%
 }
+\newcommand*\CROP at init@luatex{%
+    \PackageInfo{crop}{using `luatex' graphics driver}%
+    \pagewidth\stockwidth
+    \pageheight\stockheight
+    \let\CROP at reflect\CROP at genreflect
+    \let\CROP at rotate\CROP at genrotate
+}
 \newcommand*\CROP at init@vtex{%
     \PackageInfo{crop}{using `vtex' graphics driver}%
     \mediawidth\stockwidth
@@ -149,12 +165,12 @@
     \def\CROP at size#1#2{\stockheight#1 \stockwidth#2 }%
 }
 \DeclareOption{a0}{\CROP at size{841truemm}{1189truemm}}
-\DeclareOption{a1}{\CROP at size{595truemm}{841truemm}}
-\DeclareOption{a2}{\CROP at size{420truemm}{595truemm}}
+\DeclareOption{a1}{\CROP at size{594truemm}{841truemm}}
+\DeclareOption{a2}{\CROP at size{420truemm}{594truemm}}
 \DeclareOption{a3}{\CROP at size{297truemm}{420truemm}}
 \DeclareOption{a4}{\CROP at size{210truemm}{297truemm}}
-\DeclareOption{a5}{\CROP at size{149truemm}{210truemm}}
-\DeclareOption{a6}{\CROP at size{105truemm}{149truemm}}
+\DeclareOption{a5}{\CROP at size{148truemm}{210truemm}}
+\DeclareOption{a6}{\CROP at size{105truemm}{148truemm}}
 \DeclareOption{b0}{\CROP at size{1000truemm}{1414truemm}}
 \DeclareOption{b1}{\CROP at size{707truemm}{1000truemm}}
 \DeclareOption{b2}{\CROP at size{500truemm}{707truemm}}
@@ -351,6 +367,7 @@
     \box\@cclv
 }
 \newcommand*\CROP@@ship{%
+    \csname CROP at shiphook\endcsname
     \CROP at shipout\vbox{\CROP at shiplist}%
 }
 \newcommand*\CROP at shipadd[1]{%



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