diff options
author | Karl Berry <karl@freefriends.org> | 2024-04-06 20:06:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-04-06 20:06:41 +0000 |
commit | afd1c0f0be3ec59122f16722cae80b70d7e3f8ba (patch) | |
tree | 1c8850a7a02d152df9172ec2b1b9f930d9c31a12 /Master/texmf-dist/tex | |
parent | ce3c9ec398392d2ded781d0ee23bf0951156993f (diff) |
bookcover (6apr24)
git-svn-id: svn://tug.org/texlive/trunk@70872 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/bookcover/bookcover.cls | 89 |
1 files changed, 85 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/bookcover/bookcover.cls b/Master/texmf-dist/tex/latex/bookcover/bookcover.cls index cc3ef40e5d7..aa3a8f8a3d8 100644 --- a/Master/texmf-dist/tex/latex/bookcover/bookcover.cls +++ b/Master/texmf-dist/tex/latex/bookcover/bookcover.cls @@ -6,7 +6,7 @@ %% %% ./bookcover.dtx (with options: `class') %% This is a generated file. -%% Copyright (C) 2015-2022 Tibor Tomacs +%% Copyright (C) 2015-2024 Tibor Tomacs %% 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 @@ -19,7 +19,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesClass{bookcover}[2022/12/29 v3.5 class for book covers and dust jackets] +\ProvidesClass{bookcover}[2024/04/06 v3.6 class for book covers and dust jackets] %% OPTIONS @@ -28,8 +28,9 @@ \DeclareVoidOption{10pt}{\PassOptionsToClass{10pt}{article}} \DeclareVoidOption{11pt}{\PassOptionsToClass{11pt}{article}} \DeclareVoidOption{12pt}{\PassOptionsToClass{12pt}{article}} -\DeclareStringOption[170mm]{coverwidth} -\DeclareStringOption[240mm]{coverheight} +\DeclareStringOption{coverwidth} +\DeclareStringOption{coverheight} +\DeclareStringOption[default]{cover} \DeclareStringOption[5mm]{spinewidth} \DeclareStringOption[0mm]{flapwidth} \DeclareStringOption[0mm]{wrapwidth} @@ -60,6 +61,7 @@ %% NEW IF \newif\if@inbookcoverenv +\newif\if@bookcoverset@check %% USER LENGTHS @@ -89,6 +91,59 @@ \let\partheight\bookcover@partheight@ \let\partwidth\bookcover@partwidth@ +%% COVER SIZE SETTING + +\def\bookcover@coversetsize#1(#2,#3)#4{ + \ifdefstring{\bookcover@cover}{#1}{ + \ifdefstring{\bookcover@coverwidth}{}{\def\bookcover@coverwidth{#2#4}}{} + \ifdefstring{\bookcover@coverheight}{}{\def\bookcover@coverheight{#3#4}}{} + \@bookcoverset@checktrue}{}} + +\bookcover@coversetsize{a0}(841,1189){mm}% ISO A0 +\bookcover@coversetsize{a1}(594,841){mm}% ISO A1 +\bookcover@coversetsize{a2}(420,594){mm}% ISO A2 +\bookcover@coversetsize{a3}(297,420){mm}% ISO A3 +\bookcover@coversetsize{a4}(210,297){mm}% ISO A4 +\bookcover@coversetsize{a5}(148,210){mm}% ISO A5 +\bookcover@coversetsize{a6}(105,148){mm}% ISO A6 +\bookcover@coversetsize{b0}(1000,1414){mm}% ISO B0 +\bookcover@coversetsize{b1}(707,1000){mm}% ISO B1 +\bookcover@coversetsize{b2}(500,707){mm}% ISO B2 +\bookcover@coversetsize{b3}(353,500){mm}% ISO B3 +\bookcover@coversetsize{b4}(250,353){mm}% ISO B4 +\bookcover@coversetsize{b5}(176,250){mm}% ISO B5 +\bookcover@coversetsize{b6}(125,176){mm}% ISO B6 +\bookcover@coversetsize{c0}(917,1297){mm}% ISO C0 +\bookcover@coversetsize{c1}(648,917){mm}% ISO C1 +\bookcover@coversetsize{c2}(458,648){mm}% ISO C2 +\bookcover@coversetsize{c3}(324,458){mm}% ISO C3 +\bookcover@coversetsize{c4}(229,324){mm}% ISO C4 +\bookcover@coversetsize{c5}(162,229){mm}% ISO C5 +\bookcover@coversetsize{c6}(114,162){mm}% ISO C6 +\bookcover@coversetsize{b0j}(1030,1456){mm}% JIS B0 +\bookcover@coversetsize{b1j}(728,1030){mm}% JIS B1 +\bookcover@coversetsize{b2j}(515,728){mm}% JIS B2 +\bookcover@coversetsize{b3j}(364,515){mm}% JIS B3 +\bookcover@coversetsize{b4j}(257,364){mm}% JIS B4 +\bookcover@coversetsize{b5j}(182,257){mm}% JIS B5 +\bookcover@coversetsize{b6j}(128,182){mm}% JIS B6 +\bookcover@coversetsize{ansia}(8.5,11){in} +\bookcover@coversetsize{ansib}(11,17){in} +\bookcover@coversetsize{ansic}(17,22){in} +\bookcover@coversetsize{ansid}(22,34){in} +\bookcover@coversetsize{ansie}(34,44){in} +\bookcover@coversetsize{letter}(8.5,11){in} +\bookcover@coversetsize{legal}(8.5,14){in} +\bookcover@coversetsize{executive}(7.25,10.5){in} +\bookcover@coversetsize{default}(170,240){mm} + +\if@bookcoverset@check\else + \ClassWarning{bookcover}{'\bookcover@cover' is not valid cover size name (changed to 'default' value)} + \def\bookcover@cover{default} + \ifdefstring{\bookcover@coverwidth}{}{\def\bookcover@coverwidth{170mm}}{} + \ifdefstring{\bookcover@coverheight}{}{\def\bookcover@coverheight{240mm}}{} +\fi + %% USER LENGTHS SETTING \setlength{\coverwidth}{\bookcover@coverwidth} @@ -100,6 +155,32 @@ \setlength{\markthick}{\bookcover@markthick} \setlength{\bleedwidth}{\bookcover@bleedwidth} +%% SHOW BOOKCOVER PARAMETERS + +\def\showbookcoverparameters{% + \begin{tabular}{@{}r@{ = }l@{}} + book cover type& + \ifbookcover@foldingmargin book cover for hardcover book + \else + \ifdim\flapwidth>0pt dust jacket + \else + book cover for paperback book + \fi + \fi\\ + front/back cover width & \bookcover@coverwidth\\ + front/back cover height & \bookcover@coverheight\\ + spine width & \bookcover@spinewidth\\ + \ifbookcover@foldingmargin + \else + \ifdim\flapwidth>0pt + flap width & \bookcover@flapwidth\\ + \ifdim\wrapwidth>0pt wrap width & \bookcover@wrapwidth\\\fi + \fi + \fi + bleed width & \bookcover@bleedwidth\\ + mark length & \bookcover@marklength + \end{tabular}} + %% PAGE DIMENSIONS SETTING \geometry{% |