texlive[74795] Master/texmf-dist: bookcover (30mar25)

commits+karl at tug.org commits+karl at tug.org
Sun Mar 30 22:33:30 CEST 2025


Revision: 74795
          https://tug.org/svn/texlive?view=revision&revision=74795
Author:   karl
Date:     2025-03-30 22:33:30 +0200 (Sun, 30 Mar 2025)
Log Message:
-----------
bookcover (30mar25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/bookcover/README
    trunk/Master/texmf-dist/doc/latex/bookcover/bookcover-example1.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/bookcover-example2.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/bookcover-example2.tex
    trunk/Master/texmf-dist/doc/latex/bookcover/bookcover.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-barcode.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-description.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-dustjacket.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-foldingmargin.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-margins.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-newpart.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-parts.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-pi.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-ruler.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-scheme-foldingmargin.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-scheme-widthflaps.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-scheme-withoutflaps.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-tikz.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-tikzclip.pdf
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-trimming.pdf
    trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx
    trunk/Master/texmf-dist/source/latex/bookcover/bookcover.ins
    trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-showonly.pdf

Modified: trunk/Master/texmf-dist/doc/latex/bookcover/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bookcover/README	2025-03-30 20:33:14 UTC (rev 74794)
+++ trunk/Master/texmf-dist/doc/latex/bookcover/README	2025-03-30 20:33:30 UTC (rev 74795)
@@ -1,4 +1,4 @@
-bookcover class, 2015-2024 by Tibor Tómács
+bookcover class, 2015-2025 by Tibor Tómács
 
 This class helps typesetting book covers and dust jackets.
 

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

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

Modified: trunk/Master/texmf-dist/doc/latex/bookcover/bookcover-example2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bookcover/bookcover-example2.tex	2025-03-30 20:33:14 UTC (rev 74794)
+++ trunk/Master/texmf-dist/doc/latex/bookcover/bookcover-example2.tex	2025-03-30 20:33:30 UTC (rev 74795)
@@ -32,13 +32,13 @@
 % Title on the spine
 \bookcovercomponent{center}{spine}{
     \rotatebox[origin=c]{-90}{\large\bfseries
-        ANNALES MATHEMATICAE 43.~(2024)}}
+        ANNALES MATHEMATICAE 43.~(2025)}}
 
 % Text and picture on the front cover
 \bookcovercomponent{normal}{front}[22mm,20mm,22mm,40mm]{
     \centering
     {\huge\bfseries ANNALES\\ MATHEMATICAE\\[13mm]}
-    {\large\bfseries TOMUS 43.~(2024)}
+    {\large\bfseries TOMUS 43.~(2025)}
     \vfill
     \includegraphics{./figures/bookcover-pi.pdf}
     \vfill

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

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

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

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

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

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

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

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

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

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

Modified: trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-scheme-foldingmargin.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-scheme-widthflaps.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-scheme-withoutflaps.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-showonly.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-showonly.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-showonly.pdf	2025-03-30 20:33:14 UTC (rev 74794)
+++ trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-showonly.pdf	2025-03-30 20:33:30 UTC (rev 74795)

Property changes on: trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-showonly.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/bookcover/figures/bookcover-tikz.pdf
===================================================================
(Binary files differ)

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

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

Modified: trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx	2025-03-30 20:33:14 UTC (rev 74794)
+++ trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx	2025-03-30 20:33:30 UTC (rev 74795)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2015-2024 by Tibor Tómács
+% Copyright (C) 2015-2025 by Tibor Tómács
 %
 % This file may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.2
@@ -17,12 +17,12 @@
 % \iffalse
 %<*driver>
 \ProvidesFile{bookcover.dtx}
-\newcommand{\eifiledate}{2024/10/04}
-\newcommand{\eifilever}{v3.7}
+\newcommand{\eifiledate}{2025/03/30}
+\newcommand{\eifilever}{v3.8}
 %</driver>
 %<class>
 %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-%<class>\ProvidesClass{bookcover}[2024/10/04 v3.7 class for book covers and dust jackets]
+%<class>\ProvidesClass{bookcover}[2025/03/30 v3.8 class for book covers and dust jackets]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -195,9 +195,9 @@
 %
 % \medskip
 % \begin{compactdesc}
-% \item \commandinline|cover=!<size-name>!|
+% \item \commandinline|cover=!<size name>!|
 % It specifies the front/back cover width and height (without bleed) by name (default \texttt{cover=default}).
-% Allowed \meta{size-names} (width${}\times{}$height):
+% Allowed \meta{size name} (width${}\times{}$height):
 % \bookcoversizename{default}(170,240){mm}
 % \bookcoversizename{a0}(841,1189){mm}
 % \bookcoversizename{a1}(594,841){mm}
@@ -267,8 +267,16 @@
 % \item \commandinline|trimmed=!<boolean>!|
 % If the \meta{boolean} is \commandinline|true|, then the result will be the trimmed version for demonstration.
 % (Default \texttt{trimmed=false} for printing.)
+% See an example in subsection~\ref{subsec:trimming}.
 % \item \commandinline|trimmingcolor=!<color name>!|
 % Color of trimming (default \texttt{trimmingcolor=white}).
+% \item \commandinline|showonlypart={!<part>!}|
+% The dimensions of the pdf will match the dimensions of the \meta{part} and only the \meta{part} will be visible (see in the section~\ref{sec:parts}).
+% This ignores the \texttt{trimmed} option.
+% See an example in subsection~\ref{subsec:showonly}.
+% \item \commandinline|showonlycovernum=!<number>!|
+% If there are multiple covers in a document (e.g.\ outer and inner), only the \meta{number}\textsuperscript{th} will be displayed.
+% See an example in subsection~\ref{subsec:showonly}.
 % \end{compactdesc}
 %
 % \medskip
@@ -278,7 +286,7 @@
 % \section{Commands and environments}
 %
 % Use the \commandinline{bookcover} environment in the document body to create a new book cover.
-% If you need to edit both sides of the cover, you can do it with two \texttt{bookcover} environments (see an example in the Subsection~\ref{subsec-two-sided-example}).
+% If you need to edit both sides of the cover, you can do it with two \texttt{bookcover} environments (see an example in the subsection~\ref{subsec-two-sided-example}).
 % You can create a book cover component by using the following command or environment in the \texttt{bookcover} environment:
 % \begin{commandlst}
 % \bookcovercomponent{!<component type>!}{!<part>!}[!<left>!,!<bottom>!,!<right>!,!<top>!]{!<content>!}
@@ -292,12 +300,12 @@
 %
 % \begin{compactdesc}
 % \item \meta{component type}
-% It determines the type of the bookcover component (see the Section~\ref{sec:componenttypes}).
+% It determines the type of the bookcover component (see the section~\ref{sec:componenttypes}).
 % Predefined component types:
 % \commandinline{color}, \commandinline{tikz}, \commandinline{tikz clip}, \commandinline{picture}, \commandinline{normal}, \commandinline{center}, \commandinline{ruler}. 
 % \item \meta{part}
 % This determines where in the book cover the \meta{content} is located.
-% You can read the description of \meta{part} in the Section~\ref{sec:parts}.
+% You can read the description of \meta{part} in the section~\ref{sec:parts}.
 % Some predefined parts:
 % \commandinline{front} (front cover), \commandinline{bg front} (front cover extended to the bleed), \commandinline{back} (back cover), \commandinline{bg back} (back cover extended to the bleed), \commandinline{whole} (whole book cover), \commandinline{bg whole} (whole book cover extended to the bleed), \commandinline{spine}, etc. 
 % \item \meta{left},\meta{bottom},\meta{right},\meta{top}
@@ -306,7 +314,7 @@
 % If the \meta{left}, \meta{bottom}, \meta{right} or \meta{top} is empty or space, then its value will be \texttt{0mm}.
 % If the value of a margin is negative, the part size will increase instead of decreasing.
 % \item \meta{content}
-% This can be text, image, color, etc., which depends on the \meta{component type} (see the Section~\ref{sec:componenttypes}).
+% This can be text, image, color, etc., which depends on the \meta{component type} (see the section~\ref{sec:componenttypes}).
 % This will be located in the \meta{part}.
 % \end{compactdesc}
 %
@@ -316,9 +324,9 @@
 % \medskip
 % \begin{compactdesc}
 % \item \commandinline{\partheight}
-% The height of the \meta{part} (reduced by \meta{bottom} and \meta{top} in \meta{content}).
+% The height of the \meta{part} (in the \meta{content} it will be reduced by \meta{bottom} and \meta{top}).
 % \item \commandinline{\partwidth}
-% The width of the \meta{part} (reduced by \meta{left} and \meta{right} in \meta{content}).
+% The width of the \meta{part} (in the \meta{content} it will be reduced by \meta{left} and \meta{right}).
 % \item \commandinline{\coverheight}
 % Cover height.
 % \item \commandinline{\coverwidth}
@@ -340,27 +348,29 @@
 % The first one creates the bottom layer and the last one creates the top layer.
 %
 % \medskip
-% In the following example we use |\bookcovercomponent| commands.
+% The following two examples are equivalent.
 %
 % \example
 % \begin{examplelst}
 % \documentclass[spinewidth=15mm,markcolor=black]{bookcover}
+%
 % \begin{document}
+%
 % \begin{bookcover}
 %     \bookcovercomponent{color}{bg whole}{orange}
 %     \bookcovercomponent{normal}{front}[,,,0.4\partheight]{
 %         \centering\bfseries\huge Book title}
 % \end{bookcover}
+%
 % \end{document}
 % \end{examplelst}
 %
-% In the following example we use |bookcoverelement| environments.
-% This example is equivalent to the previous one.
-%
 % \example
 % \begin{examplelst}
 % \documentclass[spinewidth=15mm,markcolor=black]{bookcover}
+%
 % \begin{document}
+%
 % \begin{bookcover}
 %     \begin{bookcoverelement}{color}{bg whole}
 %         orange
@@ -369,6 +379,7 @@
 %         \centering\bfseries\huge Book title
 %     \end{bookcoverelement}
 % \end{bookcover}
+%
 % \end{document}
 % \end{examplelst}
 %
@@ -381,7 +392,7 @@
 % The possible \meta{geometry parameters} are the same as for |\newgeometry| in the |geometry| package.
 % Its default value is |margin=1in|.
 % Unlike |\newgeometry|, it can be used in the preamble as well.
-% See an example in the Subsection~\ref{subsec:desc}.
+% See an example in the subsection~\ref{subsec:desc}.
 %
 % \medskip
 % If you want to check the dimensions, use the following command in the |bookcoverdescription| environment:
@@ -394,7 +405,7 @@
 % \bookcovertrimmedpart{!<trimmed part>!}[!<left>!,!<bottom>!,!<right>!,!<top>!]
 % \end{commandlst}
 %
-% Without this command, or if the \meta{trimmed part} is empty or space, then its value will be \texttt{whole} (see the Section~\ref{sec:parts}).
+% Without this command, or if the \meta{trimmed part} is empty or space, then its value will be \texttt{whole} (see the section~\ref{sec:parts}).
 % The \meta{left}, \meta{bottom}, \meta{right} and \meta{top} are the margins of the \meta{trimmed part}.
 % The default value of every margin is \texttt{0mm}.
 % If the \meta{left}, \meta{bottom}, \meta{right} or \meta{top} is empty or space, then its value will be \texttt{0mm}.
@@ -407,8 +418,8 @@
 % \setbookcover{!<options>!}
 % \end{commandlst}
 % The \meta{options} can be as follows:
-% \commandinline|markthick=!<length>!|, \commandinline|markcolor=!<color name>!|, \commandinline|pagecolor=!<color name>!|, \commandinline|trimmed|, \commandinline|trimmed=false|, \commandinline|trimmingcolor=!<color name>!| (see the Section~\ref{sec:class}).
-% See an example in the Subsection~\ref{subsec:trimming}.
+% \commandinline|markthick=!<length>!|, \commandinline|markcolor=!<color name>!|, \commandinline|pagecolor=!<color name>!|, \commandinline|trimmed|, \commandinline|trimmed=false|, \commandinline|trimmingcolor=!<color name>!| (see the section~\ref{sec:class}).
+% See an example in the subsection~\ref{subsec:trimming}.
 %
 % \section{Book cover parts}\label{sec:parts}
 %
@@ -441,7 +452,7 @@
 % \medskip
 % The following figures also show the full and abbreviated names of the blue parts.
 %
-% \subsection{Book cover without flaps, background parts}
+% \subsection{Book cover without flaps -- background parts}
 %
 % \setcounter{partfig}{1}
 % \loop
@@ -449,7 +460,7 @@
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\par\bigskip\stepcounter{partfig}
 % \ifnum\value{partfig}<7\repeat
 %
-% \subsection{Book cover without flaps, foreground parts}
+% \subsection{Book cover without flaps -- foreground parts}
 %
 % \loop
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\hfill\stepcounter{partfig}
@@ -456,7 +467,7 @@
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\par\bigskip\stepcounter{partfig}
 % \ifnum\value{partfig}<13\repeat
 %
-% \subsection{Book cover without flaps, other parts}
+% \subsection{Book cover without flaps -- other parts}
 %
 % \loop
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\hfill\stepcounter{partfig}
@@ -464,7 +475,7 @@
 % \ifnum\value{partfig}<17\repeat
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\stepcounter{partfig}
 %
-% \subsection{Book cover with flaps, background parts}
+% \subsection{Book cover with flaps -- background parts}
 %
 % \loop
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\hfill\stepcounter{partfig}
@@ -471,7 +482,7 @@
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\par\bigskip\stepcounter{partfig}
 % \ifnum\value{partfig}<46\repeat
 %
-% \subsection{Book cover with flaps, foreground parts}
+% \subsection{Book cover with flaps -- foreground parts}
 %
 % \loop
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\hfill\stepcounter{partfig}
@@ -478,7 +489,7 @@
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\par\bigskip\stepcounter{partfig}
 % \ifnum\value{partfig}<74\repeat
 %
-% \subsection{Book cover with flaps, other parts}
+% \subsection{Book cover with flaps -- other parts}
 %
 % \loop
 % \fbox{\includegraphics[page=\thepartfig]{figures/bookcover-parts.pdf}}\hfill\stepcounter{partfig}
@@ -494,7 +505,7 @@
 % \renewbookcoverpart{!<defined part>!}{!<setting>!}
 % \end{commandlst}
 %
-% In \meta{setting} you have to set the new part sizes, the coordinates of its upper left corner (the origin is the upper left corner of the printed area), and the parameters of the \texttt{trimmed part} rectangle node in the \texttt{tikz} and \texttt{tikz clip} component types (see in the Section~\ref{sec:componenttypes}).
+% In \meta{setting} you have to set the new part sizes, the coordinates of its upper left corner (the origin is the upper left corner of the printed area), and the parameters of the \texttt{trimmed part} rectangle node in the \texttt{tikz} and \texttt{tikz clip} component types (see in the section~\ref{sec:componenttypes}).
 % Use the following commands to do this:
 % \begin{commandlst}
 % \setpartposx{!<coord x>!}
@@ -509,18 +520,14 @@
 % \end{center}
 %
 % To specify the previous lengths, you can use the following length commands, which are declared by the options of the document class:
+% \commandinline{\coverheight},
+% \commandinline{\coverwidth},
+% \commandinline{\spinewidth},
+% \commandinline{\flapwidth},
+% \commandinline{\wrapwidth},
+% \commandinline{\bleedwidth},
+% \commandinline{\marklength}.
 %
-% \medskip
-% \begin{compactdesc}
-% \item \commandinline{\coverheight} Cover height.
-% \item \commandinline{\coverwidth} Front/back cover width.
-% \item \commandinline{\spinewidth} Spine width.
-% \item \commandinline{\flapwidth} Flap width.
-% \item \commandinline{\wrapwidth} Wrap width.
-% \item \commandinline{\bleedwidth} Bleed width.
-% \item \commandinline{\marklength} Mark length.
-% \end{compactdesc}
-%
 % \example
 % \begin{examplelst}
 % \documentclass[flapwidth=3cm]{bookcover} % Also try it with flapwidth=0cm option!
@@ -562,20 +569,16 @@
 % If the \meta{left}, \meta{bottom}, \meta{right} or \meta{top} is empty or space, then its value will be \texttt{0mm}.
 % If the value of a margin is negative, the part size will increase instead of decreasing.
 % You can use the following length commands to specify the margins:
+% \commandinline{\partheight} (the height of the \meta{defined part}),
+% \commandinline{\partwidth} (the width of the \meta{defined part}),
+% \commandinline{\coverheight},
+% \commandinline{\coverwidth},
+% \commandinline{\spinewidth},
+% \commandinline{\flapwidth},
+% \commandinline{\wrapwidth},
+% \commandinline{\bleedwidth},
+% \commandinline{\marklength}.
 %
-% \medskip
-% \begin{compactdesc}
-% \item \commandinline{\partheight} The height of the \meta{defined part}.
-% \item \commandinline{\partwidth} The width of the \meta{defined part}.
-% \item \commandinline{\coverheight} Cover height.
-% \item \commandinline{\coverwidth} Front/back cover width.
-% \item \commandinline{\spinewidth} Spine width.
-% \item \commandinline{\flapwidth} Flap width.
-% \item \commandinline{\wrapwidth} Wrap width.
-% \item \commandinline{\bleedwidth} Bleed width.
-% \item \commandinline{\marklength} Mark length.
-% \end{compactdesc}
-%
 % \example
 % \begin{examplelst}
 % \documentclass[spinewidth=2cm]{bookcover}
@@ -641,11 +644,11 @@
 % \example
 % \begin{examplelst}
 % \begin{bookcover}
-% \bookcovercomponent{tikz}{bg whole}{
-%     \fill[black] (part.south west) rectangle (part.north east);
-%     \fill[gray] (trimmed part.south east) rectangle (trimmed part.north west);}
-% \bookcovercomponent{tikz}{bg front}{
-%     \fill[blue] (part.south west) -- (part.center) -- (part.north west) -- cycle;}
+%     \bookcovercomponent{tikz}{bg whole}{
+%         \fill[black] (part.south west) rectangle (part.north east);
+%         \fill[gray] (trimmed part.south east) rectangle (trimmed part.north west);}
+%     \bookcovercomponent{tikz}{bg front}{
+%         \fill[blue] (part.south west) -- (part.center) -- (part.north west) -- cycle;}
 % \end{bookcover}
 % \end{examplelst}
 % \begin{center}
@@ -659,10 +662,10 @@
 % \example
 % \begin{examplelst}
 % \begin{bookcover}
-% \bookcovercomponent{tikz clip}{front}{
-%     \fill[blue] (part.west) circle [radius=8mm];}
-% \bookcovercomponent{tikz}{front}{
-%     \fill[gray] (part.west) circle [radius=4mm];}
+%     \bookcovercomponent{tikz clip}{front}{
+%         \fill[blue] (part.west) circle [radius=8mm];}
+%     \bookcovercomponent{tikz}{front}{
+%         \fill[gray] (part.west) circle [radius=4mm];}
 % \end{bookcover}
 % \end{examplelst}
 % \begin{center}
@@ -801,15 +804,19 @@
 % \example
 % \begin{examplelst}
 % \documentclass{bookcover}
+%
 % \newbookcovercomponenttype{center picture}{
 %     \vfill
 %     \centering
 %     \includegraphics[width=0.5\partwidth]{#1}
 %     \vfill}
+%
 % \begin{document}
+%
 % \begin{bookcover}
 %     \bookcovercomponent{center picture}{front}{fig.pdf}
 % \end{bookcover}
+%
 % \end{document}
 % \end{examplelst}
 %
@@ -991,7 +998,7 @@
 %     \centering
 %     {\huge\bfseries ANNALES\\ INFORMATICAE\par}
 %     \vfill
-%     {\large\bfseries TOMUS 43.~(2024)}
+%     {\large\bfseries TOMUS 43.~(2025)}
 %     \vfill
 %     {\large COMMISSIO REDACTORIUM}\\[3mm]
 %     \lipsum[2]}
@@ -1002,7 +1009,7 @@
 % 
 % \bookcovercomponent{center}{spine}{
 %     \rotatebox[origin=c]{-90}{\footnotesize\bfseries
-%         ANNALES INFORMATICAE 43.~(2024)}}
+%         ANNALES INFORMATICAE 43.~(2025)}}
 % 
 % \bookcovercomponent{ruler}{whole}{,,} % Check dimensions
 %
@@ -1024,6 +1031,64 @@
 % \end{examplelst}
 %
 % \newpage
+% \subsection{The showonlypart and showonlycovernum options}\label{subsec:showonly}
+%
+% \begin{center}
+% \fcolorbox{black!50}{white}{\includegraphics[width=.5\textwidth-.8pt]{figures/bookcover-showonly}}
+% \end{center}
+%
+% The previous example has been modified with the \texttt{showonlypart} and \texttt{showonlycovernum} options so that only the front part of the outer cover appears in the pdf.
+%
+% \begin{examplelst}
+% \documentclass[
+%     spinewidth=15mm,
+%     showonlypart={front}, % Show only front part
+%     showonlycovernum=1,   % Show only outside cover
+%     ]{bookcover}
+%
+% \usepackage[latin]{babel}
+% \usepackage{lipsum,microtype}
+% 
+% \begin{document}
+%
+% % Outside cover
+% \begin{bookcover}
+% 
+% \bookcovercomponent{color}{bg whole}{
+%     top color=white, bottom color=green!30!black}
+% 
+% \bookcovercomponent{normal}{front}[22mm,60mm,22mm,70mm]{
+%     \centering
+%     {\huge\bfseries ANNALES\\ INFORMATICAE\par}
+%     \vfill
+%     {\large\bfseries TOMUS 43.~(2025)}
+%     \vfill
+%     {\large COMMISSIO REDACTORIUM}\\[3mm]
+%     \lipsum[2]}
+% 
+% \bookcovercomponent{normal}{back}[22mm,10mm,22mm,30mm]{
+%     {\centering\large ABSTRACTUM\\[5mm]}
+%     \lipsum[1-4]}
+% 
+% \bookcovercomponent{center}{spine}{
+%     \rotatebox[origin=c]{-90}{\footnotesize\bfseries
+%         ANNALES INFORMATICAE 43.~(2025)}}
+% 
+% \end{bookcover}
+% 
+% % Inside back cover 
+% \begin{bookcover}
+% 
+% \bookcovercomponent{normal}{inside back}[22mm,10mm,22mm,30mm]{
+%     {\centering\large GRATULATIO\\[5mm]}
+%     \lipsum[1-4]}
+% 
+% \end{bookcover}
+% 
+% \end{document}
+% \end{examplelst}
+%
+% \newpage
 % \subsection{A book cover with folding margin for hardcover book}
 %
 % \begin{center}
@@ -1039,13 +1104,8 @@
 %     markcolor=black,
 %     foldingmargin,
 %     12pt,
-% %    trimmed % Show only trimmed part!
 %     ]{bookcover}
-% 
-% %\bookcovertrimmedpart{front} % Trimmed part is the front cover
-% %\bookcovertrimmedpart{back} % Trimmed part is the back cover
-% %\bookcovertrimmedpart{spine} % Trimmed part is the spine
-% 
+%
 % \letnamebookcoverpart{front with margin}{front}[5mm,5mm,5mm,5mm]
 % \letnamebookcoverpart{front upper third}{front with margin}[,2\partheight/3,,]
 % \letnamebookcoverpart{front lower third}{front with margin}[,,,2\partheight/3]
@@ -1129,6 +1189,8 @@
 \DeclareStringOption[white]{trimmingcolor}
 \DeclareBoolOption[false]{trimmed}
 \DeclareBoolOption[false]{foldingmargin}
+\DeclareStringOption{showonlypart}
+\DeclareStringOption{showonlycovernum}
 \DeclareBoolOption[false]{bgtikznodes}% for old method
 \DeclareBoolOption[false]{bgtikzclip}% for old method
 \ProcessKeyvalOptions{bookcover}
@@ -1383,6 +1445,34 @@
 \NewDocumentCommand{\bookcovertrimmedpart}{ m O{,,,} }{\def\bookcover at trimmedpart{#1}\def\bookcover at trimmedmargin{#2}}
 \bookcovertrimmedpart{bookcoverpart at whole}
 
+%% SHOWONLYPART OPTION
+
+\ifdefempty{\bookcover at showonlypart}{}{
+    \AddToHook{begindocument/before}{
+        \@ifundefined{bookcover at part@param@\bookcover at showonlypart}{\@latexerr{Part '\bookcover at showonlypart' is undefined.}{}}{
+            \RenewDocumentEnvironment{bookcoverdescription}{ +b }{}{}
+            \RemoveFromHook{env/bookcoverdescription/before}
+            \RemoveFromHook{env/bookcoverdescription/after}
+            \let\bookcover at marks\relax
+            \bookcover at trimmedfalse
+            \csname bookcover at part@param@\bookcover at showonlypart\endcsname
+            \def\Gm at warning#1{}
+            \geometry{%
+                paperwidth=\bookcover at partwidth@,
+                paperheight=\bookcover at partheight@,
+                left=-\bookcover at xpos@,
+                top=-\bookcover at ypos@}}}}
+
+%% SHOWONLYCOVERNUM OPTION
+
+\ifdefempty{\bookcover at showonlycovernum}{}{
+    \newcounter{bookcover at num}
+    \AddToHook{env/bookcover/begin}{%
+        \stepcounter{bookcover at num}%
+        \ifnum\value{bookcover at num}=\bookcover at showonlycovernum\else%
+            \RenewDocumentEnvironment{bookcover}{ +b }{}{}%
+        \fi}}
+
 %% BOOKCOVER ENVIRONMENT
 
 \def\bookcover{%
@@ -1394,9 +1484,10 @@
 
 \def\endbookcover{%
     \ifbookcover at trimmed\bookcover at trimming@part\fi%
-    \bookcover at marks%
+    \ifdim\bookcover at markthick>0pt\ifdim\bookcover at marklength>0pt\bookcover at marks\fi\fi%
     \end{picture}%
-    \par\@inbookcoverenvfalse}
+    \par%
+    \@inbookcoverenvfalse}
 
 %% BOOKCOVER COMPONENT
 
@@ -1844,8 +1935,8 @@
     \bookcover at tikz@trimmed at part@param{2\bleedwidth}{2\bleedwidth}{\bleedwidth}{\bleedwidth}}
 
 \newbookcoverpart{whole page}{
-    \bookcover at partheight{\paperheight}
-    \bookcover at partwidth{\paperwidth}}
+    \bookcover at partheight{2\marklength+2\bleedwidth+\coverheight}
+    \bookcover at partwidth{2\marklength+2\bleedwidth+2\coverwidth+2\flapwidth+2\wrapwidth+\spinewidth}}
 
 \letnamebookcoverpart{bookcoverpart at wholepage}{whole page} % bookcoverpart at wholepage is protected part
 

Modified: trunk/Master/texmf-dist/source/latex/bookcover/bookcover.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/bookcover/bookcover.ins	2025-03-30 20:33:14 UTC (rev 74794)
+++ trunk/Master/texmf-dist/source/latex/bookcover/bookcover.ins	2025-03-30 20:33:30 UTC (rev 74795)
@@ -1,5 +1,5 @@
 
-% Copyright (C) 2015-2024 Tibor Tómács
+% Copyright (C) 2015-2025 Tibor Tómács
 % This file may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
 % version 1.2 of this license or (at your option) any later
@@ -15,14 +15,14 @@
 \usedir{tex/latex/bookcover}
 \preamble
 This is a generated file.
-Copyright (C) 2015-2024 Tibor Tómács
+Copyright (C) 2015-2025 Tibor Tómács
 This file may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either
 version 1.2 of this license or (at your option) any later
 version. The latest version of this license is in:
 
-	http://www.latex-project.org/lppl.txt
-	
+    http://www.latex-project.org/lppl.txt
+
 and version 1.2 or later is part of all distributions of
 LaTeX version 1999/12/01 or later.
 

Modified: trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls	2025-03-30 20:33:14 UTC (rev 74794)
+++ trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls	2025-03-30 20:33:30 UTC (rev 74795)
@@ -6,13 +6,13 @@
 %%
 %% ./bookcover.dtx  (with options: `class')
 %% This is a generated file.
-%% Copyright (C) 2015-2024 Tibor Tómács
+%% Copyright (C) 2015-2025 Tibor Tómács
 %% This file may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
 %% version 1.2 of this license or (at your option) any later
 %% version. The latest version of this license is in:
 %% 
-%% http://www.latex-project.org/lppl.txt
+%%     http://www.latex-project.org/lppl.txt
 %% 
 %% and version 1.2 or later is part of all distributions of
 %% LaTeX version 1999/12/01 or later.
@@ -19,7 +19,7 @@
 %% 
 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesClass{bookcover}[2024/10/04 v3.7 class for book covers and dust jackets]
+\ProvidesClass{bookcover}[2025/03/30 v3.8 class for book covers and dust jackets]
 
 %% OPTIONS
 
@@ -42,6 +42,8 @@
 \DeclareStringOption[white]{trimmingcolor}
 \DeclareBoolOption[false]{trimmed}
 \DeclareBoolOption[false]{foldingmargin}
+\DeclareStringOption{showonlypart}
+\DeclareStringOption{showonlycovernum}
 \DeclareBoolOption[false]{bgtikznodes}% for old method
 \DeclareBoolOption[false]{bgtikzclip}% for old method
 \ProcessKeyvalOptions{bookcover}
@@ -296,6 +298,34 @@
 \NewDocumentCommand{\bookcovertrimmedpart}{ m O{,,,} }{\def\bookcover at trimmedpart{#1}\def\bookcover at trimmedmargin{#2}}
 \bookcovertrimmedpart{bookcoverpart at whole}
 
+%% SHOWONLYPART OPTION
+
+\ifdefempty{\bookcover at showonlypart}{}{
+    \AddToHook{begindocument/before}{
+        \@ifundefined{bookcover at part@param@\bookcover at showonlypart}{\@latexerr{Part '\bookcover at showonlypart' is undefined.}{}}{
+            \RenewDocumentEnvironment{bookcoverdescription}{ +b }{}{}
+            \RemoveFromHook{env/bookcoverdescription/before}
+            \RemoveFromHook{env/bookcoverdescription/after}
+            \let\bookcover at marks\relax
+            \bookcover at trimmedfalse
+            \csname bookcover at part@param@\bookcover at showonlypart\endcsname
+            \def\Gm at warning#1{}
+            \geometry{%
+                paperwidth=\bookcover at partwidth@,
+                paperheight=\bookcover at partheight@,
+                left=-\bookcover at xpos@,
+                top=-\bookcover at ypos@}}}}
+
+%% SHOWONLYCOVERNUM OPTION
+
+\ifdefempty{\bookcover at showonlycovernum}{}{
+    \newcounter{bookcover at num}
+    \AddToHook{env/bookcover/begin}{%
+        \stepcounter{bookcover at num}%
+        \ifnum\value{bookcover at num}=\bookcover at showonlycovernum\else%
+            \RenewDocumentEnvironment{bookcover}{ +b }{}{}%
+        \fi}}
+
 %% BOOKCOVER ENVIRONMENT
 
 \def\bookcover{%
@@ -307,9 +337,10 @@
 
 \def\endbookcover{%
     \ifbookcover at trimmed\bookcover at trimming@part\fi%
-    \bookcover at marks%
+    \ifdim\bookcover at markthick>0pt\ifdim\bookcover at marklength>0pt\bookcover at marks\fi\fi%
     \end{picture}%
-    \par\@inbookcoverenvfalse}
+    \par%
+    \@inbookcoverenvfalse}
 
 %% BOOKCOVER COMPONENT
 
@@ -757,8 +788,8 @@
     \bookcover at tikz@trimmed at part@param{2\bleedwidth}{2\bleedwidth}{\bleedwidth}{\bleedwidth}}
 
 \newbookcoverpart{whole page}{
-    \bookcover at partheight{\paperheight}
-    \bookcover at partwidth{\paperwidth}}
+    \bookcover at partheight{2\marklength+2\bleedwidth+\coverheight}
+    \bookcover at partwidth{2\marklength+2\bleedwidth+2\coverwidth+2\flapwidth+2\wrapwidth+\spinewidth}}
 
 \letnamebookcoverpart{bookcoverpart at wholepage}{whole page} % bookcoverpart at wholepage is protected part
 



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