diff options
Diffstat (limited to 'macros/latex')
-rw-r--r-- | macros/latex/contrib/bookcover/README | 2 | ||||
-rw-r--r-- | macros/latex/contrib/bookcover/bookcover-example1.pdf | bin | 717534 -> 717536 bytes | |||
-rw-r--r-- | macros/latex/contrib/bookcover/bookcover-example2.pdf | bin | 82337 -> 82335 bytes | |||
-rw-r--r-- | macros/latex/contrib/bookcover/bookcover.dtx | 146 | ||||
-rw-r--r-- | macros/latex/contrib/bookcover/bookcover.ins | 4 | ||||
-rw-r--r-- | macros/latex/contrib/bookcover/bookcover.pdf | bin | 1572853 -> 1594968 bytes |
6 files changed, 139 insertions, 13 deletions
diff --git a/macros/latex/contrib/bookcover/README b/macros/latex/contrib/bookcover/README index 8c6a2a48da..2c4bdb2ed9 100644 --- a/macros/latex/contrib/bookcover/README +++ b/macros/latex/contrib/bookcover/README @@ -1,4 +1,4 @@ -bookcover class, 2015-2022 by Tibor Tomacs +bookcover class, 2015-2024 by Tibor Tomacs This class helps typesetting book covers and dust jackets. diff --git a/macros/latex/contrib/bookcover/bookcover-example1.pdf b/macros/latex/contrib/bookcover/bookcover-example1.pdf Binary files differindex 39d5f4d433..9a0bf0a0fb 100644 --- a/macros/latex/contrib/bookcover/bookcover-example1.pdf +++ b/macros/latex/contrib/bookcover/bookcover-example1.pdf diff --git a/macros/latex/contrib/bookcover/bookcover-example2.pdf b/macros/latex/contrib/bookcover/bookcover-example2.pdf Binary files differindex 68861f16ef..18f966373c 100644 --- a/macros/latex/contrib/bookcover/bookcover-example2.pdf +++ b/macros/latex/contrib/bookcover/bookcover-example2.pdf diff --git a/macros/latex/contrib/bookcover/bookcover.dtx b/macros/latex/contrib/bookcover/bookcover.dtx index c71b62e227..c33d32f1cd 100644 --- a/macros/latex/contrib/bookcover/bookcover.dtx +++ b/macros/latex/contrib/bookcover/bookcover.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2015-2022 by Tibor Tomacs +% Copyright (C) 2015-2024 by Tibor Tomacs % % 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}{2022/12/29} -\newcommand{\eifilever}{v3.5} +\newcommand{\eifiledate}{2024/04/06} +\newcommand{\eifilever}{v3.6} %</driver> %<class> %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] -%<class>\ProvidesClass{bookcover}[2022/12/29 v3.5 class for book covers and dust jackets] +%<class>\ProvidesClass{bookcover}[2024/04/06 v3.6 class for book covers and dust jackets] % %<*driver> \documentclass{ltxdoc} @@ -92,6 +92,8 @@ \color{black!90}\mbox{}\lower.15ex\hbox{[B}ook% \color{red!70!black}\lower.15ex\hbox{C}over\lower.15ex\hbox{]}}} +\def\bookcoversizename#1(#2,#3)#4{\texttt{\color{command}#1} ($#2\times#3$\,#4)} + \setlength{\parindent}{0pt} \setlength{\parskip}{8pt} \renewcommand{\descriptionlabel}[1]{\hspace{0mm}} @@ -126,7 +128,7 @@ % \textsf{Class for book covers and dust jackets}\\[2mm] % {\large\texttt{bookcover.cls}\\ % \eifilever\ (\eifiledate)}} -% \author{Tibor T\'{o}m\'{a}cs\\{\normalsize\href{mailto:tomacs.tibor@uni-eszterhazy.hu}{\texttt{tomacs.tibor@uni-eszterhazy.hu}}}} +% \author{Tibor T\'{o}m\'{a}cs\\{\normalsize\href{mailto:tomacs.tibor@gmail.com}{\texttt{tomacs.tibor@gmail.com}}}} % \date{} % \maketitle % @@ -174,15 +176,53 @@ % \medskip The list of \meta{options}: % % \begin{compactdesc} -% \item[]\commandinline|coverheight=!<length>!| Cover height (default \texttt{coverheight=240mm}). -% \item[]\commandinline|coverwidth=!<length>!| Front/back cover width (default \texttt{coverwidth=170mm}). +% \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): +% \bookcoversizename{default}(170,240){mm} +% \bookcoversizename{a0}(841,1189){mm} +% \bookcoversizename{a1}(594,841){mm} +% \bookcoversizename{a2}(420,594){mm} +% \bookcoversizename{a3}(297,420){mm} +% \bookcoversizename{a4}(210,297){mm} +% \bookcoversizename{a5}(148,210){mm} +% \bookcoversizename{a6}(105,148){mm} +% \bookcoversizename{b0}(1000,1414){mm} +% \bookcoversizename{b1}(707,1000){mm} +% \bookcoversizename{b2}(500,707){mm} +% \bookcoversizename{b3}(353,500){mm} +% \bookcoversizename{b4}(250,353){mm} +% \bookcoversizename{b5}(176,250){mm} +% \bookcoversizename{b6}(125,176){mm} +% \bookcoversizename{c0}(917,1297){mm} +% \bookcoversizename{c1}(648,917){mm} +% \bookcoversizename{c2}(458,648){mm} +% \bookcoversizename{c3}(324,458){mm} +% \bookcoversizename{c4}(229,324){mm} +% \bookcoversizename{c5}(162,229){mm} +% \bookcoversizename{c6}(114,162){mm} +% \bookcoversizename{b0j}(1030,1456){mm} +% \bookcoversizename{b1j}(728,1030){mm} +% \bookcoversizename{b2j}(515,728){mm} +% \bookcoversizename{b3j}(364,515){mm} +% \bookcoversizename{b4j}(257,364){mm} +% \bookcoversizename{b5j}(182,257){mm} +% \bookcoversizename{b6j}(128,182){mm} +% \bookcoversizename{ansia}(8.5,11){in} +% \bookcoversizename{ansib}(11,17){in} +% \bookcoversizename{ansic}(17,22){in} +% \bookcoversizename{ansid}(22,34){in} +% \bookcoversizename{ansie}(34,44){in} +% \bookcoversizename{letter}(8.5,11){in} +% \bookcoversizename{legal}(8.5,14){in} +% \bookcoversizename{executive}(7.25,10.5){in} +% \item[]\commandinline|coverheight=!<length>!| Cover height without bleed. It overrides the height specified by the \texttt{cover} option. +% \item[]\commandinline|coverwidth=!<length>!| Front/back cover width. It overrides the width specified by the \texttt{cover} option. % \item[]\commandinline|spinewidth=!<length>!| Spine width (default \texttt{spinewidth=5mm}). % \item[]\commandinline|flapwidth=!<length>!| Flap width (default \texttt{flapwidth=0mm}). % \item[]\commandinline|wrapwidth=!<length>!| Wrap width (default \texttt{wrapwidth=0mm}). It has no effect with \texttt{flapwidth=0mm} option. % \item[]\commandinline|bleedwidth=!<length>!| Bleed width (default \texttt{bleedwidth=5mm}). % \item[]\commandinline|marklength=!<length>!| Mark length (default \texttt{marklength=10mm}). % \item[]\commandinline|foldingmargin| or \commandinline|foldingmargin=true| The bleed will not a trimmed area but a folding margin. The crop marks will be placed at the corners of the bleed and the options \texttt{flapwidth} and \texttt{wrapwidth} will be ineffective, meaning there will be no flaps. -% \item[]\commandinline|foldingmargin=false| (Default.) +% \item[]\commandinline|foldingmargin=false| (Default.) % \item[]\commandinline|10pt| (Default.) Normal font size is 10\,pt. % \item[]\commandinline|11pt| Normal font size is 11\,pt. % \item[]\commandinline|12pt| Normal font size is 12\,pt. @@ -267,6 +307,11 @@ % \end{commandlst} % The possible \meta{geometry parameteres} 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}. % +% If you want to check the set dimensions, use the following command in the |bookcoverdescription| environment: +% \begin{commandlst} +% \showbookcoverparameters +% \end{commandlst} +% % If the value of the \texttt{trimmed} option is \texttt{true}, then you can set the trimmed part by the following command before any \texttt{bookcover} environment: % \begin{commandlst} % \bookcovertrimmedpart{!<trimmed part>!}[!<left>!,!<bottom>!,!<right>!,!<top>!] @@ -897,8 +942,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} @@ -929,6 +975,7 @@ %% NEW IF \newif\if@inbookcoverenv +\newif\if@bookcoverset@check %% USER LENGTHS @@ -958,6 +1005,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} @@ -969,6 +1069,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{% diff --git a/macros/latex/contrib/bookcover/bookcover.ins b/macros/latex/contrib/bookcover/bookcover.ins index c621cb1586..5f601760d3 100644 --- a/macros/latex/contrib/bookcover/bookcover.ins +++ b/macros/latex/contrib/bookcover/bookcover.ins @@ -1,5 +1,5 @@ -% 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 @@ -15,7 +15,7 @@ \usedir{tex/latex/bookcover} \preamble 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 diff --git a/macros/latex/contrib/bookcover/bookcover.pdf b/macros/latex/contrib/bookcover/bookcover.pdf Binary files differindex a87ac663d1..e6d0f8ee65 100644 --- a/macros/latex/contrib/bookcover/bookcover.pdf +++ b/macros/latex/contrib/bookcover/bookcover.pdf |