texlive[74392] Master/texmf-dist: kdpcover (2mar25)

commits+karl at tug.org commits+karl at tug.org
Sun Mar 2 22:34:36 CET 2025


Revision: 74392
          https://tug.org/svn/texlive?view=revision&revision=74392
Author:   karl
Date:     2025-03-02 22:34:35 +0100 (Sun, 02 Mar 2025)
Log Message:
-----------
kdpcover (2mar25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/kdpcover/LICENSE.txt
    trunk/Master/texmf-dist/doc/latex/kdpcover/README.md
    trunk/Master/texmf-dist/doc/latex/kdpcover/kdpcover.pdf
    trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.dtx
    trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.ins
    trunk/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls

Modified: trunk/Master/texmf-dist/doc/latex/kdpcover/LICENSE.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/kdpcover/LICENSE.txt	2025-03-02 21:34:18 UTC (rev 74391)
+++ trunk/Master/texmf-dist/doc/latex/kdpcover/LICENSE.txt	2025-03-02 21:34:35 UTC (rev 74392)
@@ -1,6 +1,6 @@
 (The MIT License)
 
-Copyright (c) 2021-2024 Yegor Bugayenko
+Copyright (c) 2021-2025 Yegor Bugayenko
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the 'Software'), to deal

Modified: trunk/Master/texmf-dist/doc/latex/kdpcover/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/kdpcover/README.md	2025-03-02 21:34:18 UTC (rev 74391)
+++ trunk/Master/texmf-dist/doc/latex/kdpcover/README.md	2025-03-02 21:34:35 UTC (rev 74392)
@@ -34,8 +34,8 @@
 ```
 
 Otherwise, you can download
-[`kdpcover.sty`](https://yegor256.github.io/kdpcover/kdpcover.sty) and
-add to your project.
+[`kdpcover.cls`](https://yegor256.github.io/kdpcover/kdpcover.cls) and
+use in your document.
 
 If you want to contribute yourself, make a fork, then create a branch,
 then run `make` in the root directory.

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

Modified: trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.dtx	2025-03-02 21:34:18 UTC (rev 74391)
+++ trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.dtx	2025-03-02 21:34:35 UTC (rev 74392)
@@ -1,25 +1,6 @@
 % \iffalse meta-comment
-% (The MIT License)
-%
-% Copyright (c) 2021-2024 Yegor Bugayenko
-%
-% Permission is hereby granted, free of charge, to any person obtaining a copy
-% of this software and associated documentation files (the 'Software'), to deal
-% in the Software without restriction, including without limitation the rights
-% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-% copies of the Software, and to permit persons to whom the Software is
-% furnished to do so, subject to the following conditions:
-%
-% The above copyright notice and this permission notice shall be included in all
-% copies or substantial portions of the Software.
-%
-% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-% SOFTWARE.
+% SPDX-FileCopyrightText: Copyright (c) 2021-2025 Yegor Bugayenko
+% SPDX-License-Identifier: MIT
 % \fi
 
 % \CheckSum{0}
@@ -50,7 +31,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\ProvidesClass{kdpcover}
 %<*class>
-[2025/01/02 0.6.0 Cover for Kindle Direct Publishing books]
+[2025/03/02 0.6.1 Cover for Kindle Direct Publishing books]
 %</class>
 %<*driver>
 \documentclass{ltxdoc}
@@ -91,7 +72,7 @@
 % \begin{document}
 % \putSpine{kdpcover, a LaTeX class for KDP books}
 % \putVolume{1}
-% \putVersion{0.6.0}
+% \putVersion{0.6.1}
 % \putPrice{\$0.00}
 % \putCopyright{\the\year}{Yegor Bugayenko}
 % \putTitle{kdpcover}
@@ -260,6 +241,7 @@
 %    \end{macrocode}
 
 % Then, we parse class options with the help of the |pgfopts| package:
+% \changes{v0.6.1}{2025/03/02}{If the PDF file is absent, an error is printed.}
 %    \begin{macrocode}
 \RequirePackage{pgfopts}
 \makeatletter
@@ -267,6 +249,9 @@
   /kdp/.cd,
   barless/.store in = \kdp at barless,
   pdf/.code = {
+    \IfFileExists{#1}
+      {}
+      {\PackageError{kdpcover}{The "#1" file is absent}{}}%
     \iexec[trace,quiet,stdout=kdpcover-pages-count.txt]
       {qpdf --show-npages --no-warn #1 | tr -d '[[:space:]]'}
     \openin1=kdpcover-pages-count.txt
@@ -475,7 +460,7 @@
 %    \begin{macrocode}
 \newcommand\putCopyright[2]{%
   \begin{textblock}{4}[0,1](1,14)%
-    \small (c)%
+    \small (c)~%
     #1 #2%
   \end{textblock}%
 }

Modified: trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.ins	2025-03-02 21:34:18 UTC (rev 74391)
+++ trunk/Master/texmf-dist/source/latex/kdpcover/kdpcover.ins	2025-03-02 21:34:35 UTC (rev 74392)
@@ -1,24 +1,5 @@
-%% (The MIT License)
-%%
-%% Copyright (c) 2021-2024 Yegor Bugayenko
-%%
-%% Permission is hereby granted, free of charge, to any person obtaining a copy
-%% of this software and associated documentation files (the 'Software'), to deal
-%% in the Software without restriction, including without limitation the rights
-%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-%% copies of the Software, and to permit persons to whom the Software is
-%% furnished to do so, subject to the following conditions:
-%%
-%% The above copyright notice and this permission notice shall be included in all
-%% copies or substantial portions of the Software.
-%%
-%% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-%% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-%% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-%% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-%% SOFTWARE.
+%% SPDX-FileCopyrightText: Copyright (c) 2021-2025 Yegor Bugayenko
+%% SPDX-License-Identifier: MIT
 
 \input docstrip.tex
 \keepsilent
@@ -26,7 +7,7 @@
 \preamble
 (The MIT License)
 
-Copyright (c) 2021-2024 Yegor Bugayenko
+Copyright (c) 2021-2025 Yegor Bugayenko
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the 'Software'), to deal

Modified: trunk/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls	2025-03-02 21:34:18 UTC (rev 74391)
+++ trunk/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls	2025-03-02 21:34:35 UTC (rev 74392)
@@ -7,7 +7,7 @@
 %% kdpcover.dtx  (with options: `class')
 %% (The MIT License)
 %% 
-%% Copyright (c) 2021-2024 Yegor Bugayenko
+%% Copyright (c) 2021-2025 Yegor Bugayenko
 %% 
 %% Permission is hereby granted, free of charge, to any person obtaining a copy
 %% of this software and associated documentation files (the 'Software'), to deal
@@ -31,7 +31,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{kdpcover}
-[2025/01/02 0.6.0 Cover for Kindle Direct Publishing books]
+[2025/03/02 0.6.1 Cover for Kindle Direct Publishing books]
 
 
 
@@ -74,6 +74,9 @@
   /kdp/.cd,
   barless/.store in = \kdp at barless,
   pdf/.code = {
+    \IfFileExists{#1}
+      {}
+      {\PackageError{kdpcover}{The "#1" file is absent}{}}%
     \iexec[trace,quiet,stdout=kdpcover-pages-count.txt]
       {qpdf --show-npages --no-warn #1 | tr -d '[[:space:]]'}
     \openin1=kdpcover-pages-count.txt
@@ -214,7 +217,7 @@
 
 \newcommand\putCopyright[2]{%
   \begin{textblock}{4}[0,1](1,14)%
-    \small (c)%
+    \small (c)~%
     #1 #2%
   \end{textblock}%
 }



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