texlive[48449] Master/texmf-dist: gentombow (21aug18)

commits+karl at tug.org commits+karl at tug.org
Tue Aug 21 23:52:17 CEST 2018


Revision: 48449
          http://tug.org/svn/texlive?view=revision&revision=48449
Author:   karl
Date:     2018-08-21 23:52:16 +0200 (Tue, 21 Aug 2018)
Log Message:
-----------
gentombow (21aug18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/gentombow/README.md
    trunk/Master/texmf-dist/doc/latex/gentombow/gentombow-ja.pdf
    trunk/Master/texmf-dist/doc/latex/gentombow/gentombow-ja.tex
    trunk/Master/texmf-dist/doc/latex/gentombow/gentombow.pdf
    trunk/Master/texmf-dist/doc/latex/gentombow/gentombow.tex
    trunk/Master/texmf-dist/tex/latex/gentombow/gentombow.sty

Modified: trunk/Master/texmf-dist/doc/latex/gentombow/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/gentombow/README.md	2018-08-21 21:52:01 UTC (rev 48448)
+++ trunk/Master/texmf-dist/doc/latex/gentombow/README.md	2018-08-21 21:52:16 UTC (rev 48449)
@@ -44,6 +44,6 @@
 
 ## Release Date
 
-2018-05-17
+2018-08-20
 
 Hironobu Yamashita

Modified: trunk/Master/texmf-dist/doc/latex/gentombow/gentombow-ja.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/gentombow/gentombow-ja.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/gentombow/gentombow-ja.tex	2018-08-21 21:52:01 UTC (rev 48448)
+++ trunk/Master/texmf-dist/doc/latex/gentombow/gentombow-ja.tex	2018-08-21 21:52:16 UTC (rev 48449)
@@ -430,9 +430,11 @@
                         (\verb+\settombowbanner+,
                           \verb+\settombowbannerfont+,
                           \verb+\settombowwidth+の各命令)
-  \item 2018/03/16 v0.9g \textsf{gentombow}に\textsf{pxgentombow}を統合、
+  \item 2018/05/17 v0.9g \textsf{gentombow}に\textsf{pxgentombow}を統合、
                          \verb+pdfbox+オプションの追加、
                          \verb+\settombowbleed+, \verb+\settombowcolor+の追加
+  \item 2018/08/20 v0.9h 用紙サイズ検出に\texttt{hagaki}を追加、
+                         \textsf{pdfpages}対策の改良
 \end{itemize}
 
 \end{document}

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

Modified: trunk/Master/texmf-dist/doc/latex/gentombow/gentombow.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/gentombow/gentombow.tex	2018-08-21 21:52:01 UTC (rev 48448)
+++ trunk/Master/texmf-dist/doc/latex/gentombow/gentombow.tex	2018-08-21 21:52:16 UTC (rev 48449)
@@ -287,6 +287,8 @@
   \item 2018/05/17 v0.9g Add \verb+pdfbox+ option,
                          \verb+\settombowbleed+ and
                          \verb+\settombowcolor+.
+  \item 2018/08/20 v0.9h Add \texttt{hagaki} size for paper detection,
+                         improve patches for \textsf{pdfpages}.
 \end{itemize}
 
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/gentombow/gentombow.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/gentombow/gentombow.sty	2018-08-21 21:52:01 UTC (rev 48448)
+++ trunk/Master/texmf-dist/tex/latex/gentombow/gentombow.sty	2018-08-21 21:52:16 UTC (rev 48449)
@@ -8,7 +8,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{gentombow}
-    [2018/05/17 v0.9g Generate crop mark 'tombow']
+    [2018/08/20 v0.9h Generate crop mark 'tombow']
 \def\pxgtmb at pkgname{gentombow}
 \@namedef{ver at pxgentombow.sty}{}% fake
 
@@ -18,7 +18,7 @@
 %% supported engines
 % case 2: pdfLaTeX etc.
 % case 1: pLaTeX2e <2018-04-01>+2 or older
-% case 0: newer pLaTeX2e
+% case 0: pLaTeX2e <2018-05-20> or newer
 \ifx\pfmtversion\@undefined
   \@ifpackageloaded{luatexja}{}{\chardef\pxgtmb at errlevel=\tw@}
 \fi
@@ -430,6 +430,7 @@
 \pxgtmb at addpapersize[a3]{letter}{8.5in}{11in}
 \pxgtmb at addpapersize[a3]{legal}{8.5in}{14in}
 \pxgtmb at addpapersize[a4]{executive}{7.25in}{10.5in}
+\pxgtmb at addpapersize[a5]{hagaki}{100mm}{148mm}
 
 %% package options part 4
 \def\pxgtmb at pdfbox@status{0}
@@ -664,6 +665,10 @@
 
 %% patch internal for pdfpages to work with tombow
 %% (tested on pdfpages 2017/10/31 v0.5l)
+%% Note the code is the same as that of pxpdfpages.sty,
+%% but reserved here since gentombow.sty can be used on
+%% any LaTeX format
+%% (cf. pxpdfpages.sty is restricted to (u)pLaTeX)
 \def\pxgtmb at patch@pdfpages{%
   \RequirePackage{etoolbox}
   \patchcmd{\AM at output}{%
@@ -679,7 +684,14 @@
   }
   {\PackageInfo{\pxgtmb at pkgname}{Patch for pdfpages applied}}
   {\PackageWarningNoLine{\pxgtmb at pkgname}{Patch for pdfpages failed}}%
-  }
+}
+%% however, if running (u)pLaTeX, use pxpdfpages.sty if available
+\ifx\pfmtname\@undefined\else
+  \IfFileExists{pxpdfpages.sty}{%
+    \def\pxgtmb at patch@pdfpages{\RequirePackage{pxpdfpages}}%
+  }{}
+\fi
+%% do it
 \AtBeginDocument{\@ifpackageloaded{pdfpages}{\pxgtmb at patch@pdfpages}{}}
 
 \endinput



More information about the tex-live-commits mailing list