texlive[57241] Master/texmf-dist: bookcover (27dec20)

commits+karl at tug.org commits+karl at tug.org
Sun Dec 27 22:58:29 CET 2020


Revision: 57241
          http://tug.org/svn/texlive?view=revision&revision=57241
Author:   karl
Date:     2020-12-27 22:58:29 +0100 (Sun, 27 Dec 2020)
Log Message:
-----------
bookcover (27dec20)

Modified Paths:
--------------
    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.pdf
    trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx
    trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls

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.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx	2020-12-27 21:58:12 UTC (rev 57240)
+++ trunk/Master/texmf-dist/source/latex/bookcover/bookcover.dtx	2020-12-27 21:58:29 UTC (rev 57241)
@@ -17,12 +17,12 @@
 % \iffalse
 %<*driver>
 \ProvidesFile{bookcover.dtx}
-\newcommand{\eifiledate}{2020/12/16}
-\newcommand{\eifilever}{v3.1}
+\newcommand{\eifiledate}{2020/12/26}
+\newcommand{\eifilever}{v3.2}
 %</driver>
 %<class>
 %<class>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-%<class>\ProvidesClass{bookcover}[2020/12/16 v3.1 class for book covers and dust jackets]
+%<class>\ProvidesClass{bookcover}[2020/12/26 v3.2 class for book covers and dust jackets]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -917,6 +917,8 @@
 \DeclareStringOption[white]{trimmingcolor}
 \DeclareBoolOption[false]{trimmed}
 \DeclareBoolOption[false]{foldingmargin}
+\DeclareBoolOption[false]{bgtikznodes}% for old method
+\DeclareBoolOption[false]{bgtikzclip}% for old method
 \ProcessKeyvalOptions{bookcover}
 
 %% CLASS AND PACKAGES
@@ -999,10 +1001,20 @@
 
 %% SETBOOKCOVER
 
-\def\setbookcover#1{%
-    \setkeys{bookcover}{#1}%
-    \setlength{\markthick}{\bookcover at markthick}}
+\newif\if at oldsetbookcover% for old method
 
+\long\def\setbookcover#1{%
+    \@for\bookcover at firstparam:={bgcolor,bgpic,bgtikz,fgsecond}\do{% for old method
+        \ifdefstring{\bookcover at firstparam}{#1}{\global\@oldsetbookcovertrue}{}}% for old method
+    \if at oldsetbookcover% for old method
+        \gdef\bookcover at firstparam{#1}% for old method
+    \else% for old method
+        \gdef\oldsetbookcover@{}% for old method
+        \setkeys{bookcover}{#1}%
+        \setlength{\markthick}{\bookcover at markthick}%
+    \fi\oldsetbookcover@% for old method
+    }
+
 %% BOOKCOVERDESCGEOMETRY
 
 \def\bookcoverdescgeometry#1{\def\bookcover at descgeometry{#1}}
@@ -1218,7 +1230,7 @@
 \newbookcovercomponenttype{picture}{%
     \includegraphics[width=\bookcover at partwidth@,height=\bookcover at partheight@]{#1}}
 
-\long\def\bookcover at tikz@content#1{%
+\def\bookcover at tikz@content#1{%
     \begin{tikzpicture}[overlay,yshift=-\bookcover at partheight@]
     \begin{scope}[transparent,line width=0pt]
         \pgfset{minimum width=\bookcover at partwidth@,minimum height=\bookcover at partheight@}
@@ -1228,6 +1240,8 @@
         \pgftransformshift{\pgfpoint{\bookcover at tikz@trimmed at part@push at right}
                                     {\bookcover at tikz@trimmed at part@push at up}}
         \pgfnode{rectangle}{south west}{}{trimmed part}{\pgfusepath{draw}}
+        \pgfnodealias{current trimmed part}{trimmed part}% for old method
+        \pgfnodealias{current part}{part}% for old method
     \end{scope}
     #1
     \end{tikzpicture}}
@@ -1777,6 +1791,140 @@
 lF-rF=whole.}%
 \do{\expandafter\bookcover at shortpartname@\bookcover at partname@}
 
+%% OLD METHOD
+
+\def\bookcover at reset{
+    \def\bookcover at bgcolor@whole{}
+    \def\bookcover at bgcolor@wholewf{}
+    \def\bookcover at bgcolor@back{}
+    \def\bookcover at bgcolor@front{}
+    \def\bookcover at bgcolor@backflap{}
+    \def\bookcover at bgcolor@frontflap{}
+    \def\bookcover at bgcolor@spine{}
+    \def\bookcover at bgpic@whole{}
+    \def\bookcover at bgpic@wholewf{}
+    \def\bookcover at bgpic@back{}
+    \def\bookcover at bgpic@front{}
+    \def\bookcover at bgpic@backflap{}
+    \def\bookcover at bgpic@frontflap{}
+    \def\bookcover at bgpic@spine{}
+    \def\bookcover at bgtikz@whole{}
+    \def\bookcover at bgtikz@wholewf{}
+    \def\bookcover at bgtikz@back{}
+    \def\bookcover at bgtikz@front{}
+    \def\bookcover at bgtikz@backflap{}
+    \def\bookcover at bgtikz@frontflap{}
+    \def\bookcover at bgtikz@spine{}
+    \def\bookcover at fgsecond@back{}
+    \def\bookcover at fgsecond@front{}
+    \def\bookcover at fgsecond@spine{}
+    \def\bookcover at fgsecond@backflap{}
+    \def\bookcover at fgsecond@frontflap{}
+    \def\bookcover at fgfirst@back{}
+    \def\bookcover at fgfirst@front{}
+    \def\bookcover at fgfirst@spine{}
+    \def\bookcover at fgfirst@backflap{}
+    \def\bookcover at fgfirst@frontflap{}
+    \def\bookcover at fgfirst@abovefront{}
+    \def\bookcover at fgfirst@belowfront{}
+    \def\bookcover at fgfirst@aboveback{}
+    \def\bookcover at fgfirst@belowback{}}
+
+\bookcover at reset
+
+\long\def\oldsetbookcover@#1#2{
+    \ifdefstring{\bookcover at firstparam}{bgcolor}{
+        \ifstrequal{#1}{whole}{\def\bookcover at bgcolor@whole{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgcolor@wholewf{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgcolor@back{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgcolor@front{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgcolor@backflap{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgcolor@frontflap{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgcolor@spine{\bookcovercomponent{color}{bg #1}{#2}}}{}}{}
+    \ifdefstring{\bookcover at firstparam}{bgpic}{
+        \ifstrequal{#1}{whole}{\def\bookcover at bgpic@whole{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgpic@wholewf{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgpic@back{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgpic@front{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgpic@backflap{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgpic@frontflap{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgpic@spine{\bookcovercomponent{picture}{bg #1}{#2}}}{}}{}
+    \ifdefstring{\bookcover at firstparam}{bgtikz}{
+        \ifbookcover at bgtikzclip
+        \ifstrequal{#1}{whole}{\def\bookcover at bgtikz@whole{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgtikz@wholewf{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgtikz@back{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgtikz@front{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgtikz@backflap{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgtikz@frontflap{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgtikz@spine{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \else
+        \ifstrequal{#1}{whole}{\def\bookcover at bgtikz@whole{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgtikz@wholewf{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgtikz@back{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgtikz@front{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgtikz@backflap{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgtikz@frontflap{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgtikz@spine{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \fi}{}
+    \ifdefstring{\bookcover at firstparam}{fgsecond}{
+        \ifstrequal{#1}{back}{\def\bookcover at fgsecond@back{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at fgsecond@front{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at fgsecond@spine{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at fgsecond@backflap{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at fgsecond@frontflap{\bookcovercomponent{normal}{#1}{#2}}}{}}{}
+    \ifdefstring{\bookcover at firstparam}{fgfirst}{
+        \ifstrequal{#1}{back}{\def\bookcover at fgfirst@back{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at fgfirst@front{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at fgfirst@spine{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at fgfirst@backflap{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at fgfirst@frontflap{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{remark}{\def\bookcover at fgfirst@abovefront{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{above front}{\def\bookcover at fgfirst@abovefront{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{below front}{\def\bookcover at fgfirst@belowfront{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{above back}{\def\bookcover at fgfirst@aboveback{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{below back}{\def\bookcover at fgfirst@belowback{\bookcovercomponent{center}{#1}{#2}}}{}}{}}
+
+\long\def\makebookcover{%
+    \begin{bookcover}
+        \bookcover at bgcolor@whole
+        \bookcover at bgcolor@wholewf
+        \bookcover at bgcolor@back
+        \bookcover at bgcolor@front
+        \bookcover at bgcolor@backflap
+        \bookcover at bgcolor@frontflap
+        \bookcover at bgcolor@spine
+        \bookcover at bgpic@whole
+        \bookcover at bgpic@wholewf
+        \bookcover at bgpic@back
+        \bookcover at bgpic@front
+        \bookcover at bgpic@backflap
+        \bookcover at bgpic@frontflap
+        \bookcover at bgpic@spine
+        \bookcover at bgtikz@whole
+        \bookcover at bgtikz@wholewf
+        \bookcover at bgtikz@back
+        \bookcover at bgtikz@front
+        \bookcover at bgtikz@backflap
+        \bookcover at bgtikz@frontflap
+        \bookcover at bgtikz@spine
+        \bookcover at fgsecond@back
+        \bookcover at fgsecond@front
+        \bookcover at fgsecond@spine
+        \bookcover at fgsecond@backflap
+        \bookcover at fgsecond@frontflap
+        \bookcover at fgfirst@back
+        \bookcover at fgfirst@front
+        \bookcover at fgfirst@spine
+        \bookcover at fgfirst@backflap
+        \bookcover at fgfirst@frontflap
+        \bookcover at fgfirst@abovefront
+        \bookcover at fgfirst@belowfront
+        \bookcover at fgfirst@aboveback
+        \bookcover at fgfirst@belowback
+    \end{bookcover}
+    \bookcover at reset}
+
 %    \end{macrocode}
 % \Finale
 \endinput
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls	2020-12-27 21:58:12 UTC (rev 57240)
+++ trunk/Master/texmf-dist/tex/latex/bookcover/bookcover.cls	2020-12-27 21:58:29 UTC (rev 57241)
@@ -19,7 +19,7 @@
 %% 
 
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesClass{bookcover}[2020/12/16 v3.1 class for book covers and dust jackets]
+\ProvidesClass{bookcover}[2020/12/26 v3.2 class for book covers and dust jackets]
 
 %% OPTIONS
 
@@ -41,6 +41,8 @@
 \DeclareStringOption[white]{trimmingcolor}
 \DeclareBoolOption[false]{trimmed}
 \DeclareBoolOption[false]{foldingmargin}
+\DeclareBoolOption[false]{bgtikznodes}% for old method
+\DeclareBoolOption[false]{bgtikzclip}% for old method
 \ProcessKeyvalOptions{bookcover}
 
 %% CLASS AND PACKAGES
@@ -123,10 +125,20 @@
 
 %% SETBOOKCOVER
 
-\def\setbookcover#1{%
-    \setkeys{bookcover}{#1}%
-    \setlength{\markthick}{\bookcover at markthick}}
+\newif\if at oldsetbookcover% for old method
 
+\long\def\setbookcover#1{%
+    \@for\bookcover at firstparam:={bgcolor,bgpic,bgtikz,fgsecond}\do{% for old method
+        \ifdefstring{\bookcover at firstparam}{#1}{\global\@oldsetbookcovertrue}{}}% for old method
+    \if at oldsetbookcover% for old method
+        \gdef\bookcover at firstparam{#1}% for old method
+    \else% for old method
+        \gdef\oldsetbookcover@{}% for old method
+        \setkeys{bookcover}{#1}%
+        \setlength{\markthick}{\bookcover at markthick}%
+    \fi\oldsetbookcover@% for old method
+    }
+
 %% BOOKCOVERDESCGEOMETRY
 
 \def\bookcoverdescgeometry#1{\def\bookcover at descgeometry{#1}}
@@ -342,7 +354,7 @@
 \newbookcovercomponenttype{picture}{%
     \includegraphics[width=\bookcover at partwidth@,height=\bookcover at partheight@]{#1}}
 
-\long\def\bookcover at tikz@content#1{%
+\def\bookcover at tikz@content#1{%
     \begin{tikzpicture}[overlay,yshift=-\bookcover at partheight@]
     \begin{scope}[transparent,line width=0pt]
         \pgfset{minimum width=\bookcover at partwidth@,minimum height=\bookcover at partheight@}
@@ -352,6 +364,8 @@
         \pgftransformshift{\pgfpoint{\bookcover at tikz@trimmed at part@push at right}
                                     {\bookcover at tikz@trimmed at part@push at up}}
         \pgfnode{rectangle}{south west}{}{trimmed part}{\pgfusepath{draw}}
+        \pgfnodealias{current trimmed part}{trimmed part}% for old method
+        \pgfnodealias{current part}{part}% for old method
     \end{scope}
     #1
     \end{tikzpicture}}
@@ -901,6 +915,140 @@
 lF-rF=whole.}%
 \do{\expandafter\bookcover at shortpartname@\bookcover at partname@}
 
+%% OLD METHOD
+
+\def\bookcover at reset{
+    \def\bookcover at bgcolor@whole{}
+    \def\bookcover at bgcolor@wholewf{}
+    \def\bookcover at bgcolor@back{}
+    \def\bookcover at bgcolor@front{}
+    \def\bookcover at bgcolor@backflap{}
+    \def\bookcover at bgcolor@frontflap{}
+    \def\bookcover at bgcolor@spine{}
+    \def\bookcover at bgpic@whole{}
+    \def\bookcover at bgpic@wholewf{}
+    \def\bookcover at bgpic@back{}
+    \def\bookcover at bgpic@front{}
+    \def\bookcover at bgpic@backflap{}
+    \def\bookcover at bgpic@frontflap{}
+    \def\bookcover at bgpic@spine{}
+    \def\bookcover at bgtikz@whole{}
+    \def\bookcover at bgtikz@wholewf{}
+    \def\bookcover at bgtikz@back{}
+    \def\bookcover at bgtikz@front{}
+    \def\bookcover at bgtikz@backflap{}
+    \def\bookcover at bgtikz@frontflap{}
+    \def\bookcover at bgtikz@spine{}
+    \def\bookcover at fgsecond@back{}
+    \def\bookcover at fgsecond@front{}
+    \def\bookcover at fgsecond@spine{}
+    \def\bookcover at fgsecond@backflap{}
+    \def\bookcover at fgsecond@frontflap{}
+    \def\bookcover at fgfirst@back{}
+    \def\bookcover at fgfirst@front{}
+    \def\bookcover at fgfirst@spine{}
+    \def\bookcover at fgfirst@backflap{}
+    \def\bookcover at fgfirst@frontflap{}
+    \def\bookcover at fgfirst@abovefront{}
+    \def\bookcover at fgfirst@belowfront{}
+    \def\bookcover at fgfirst@aboveback{}
+    \def\bookcover at fgfirst@belowback{}}
+
+\bookcover at reset
+
+\long\def\oldsetbookcover@#1#2{
+    \ifdefstring{\bookcover at firstparam}{bgcolor}{
+        \ifstrequal{#1}{whole}{\def\bookcover at bgcolor@whole{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgcolor@wholewf{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgcolor@back{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgcolor@front{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgcolor@backflap{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgcolor@frontflap{\bookcovercomponent{color}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgcolor@spine{\bookcovercomponent{color}{bg #1}{#2}}}{}}{}
+    \ifdefstring{\bookcover at firstparam}{bgpic}{
+        \ifstrequal{#1}{whole}{\def\bookcover at bgpic@whole{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgpic@wholewf{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgpic@back{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgpic@front{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgpic@backflap{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgpic@frontflap{\bookcovercomponent{picture}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgpic@spine{\bookcovercomponent{picture}{bg #1}{#2}}}{}}{}
+    \ifdefstring{\bookcover at firstparam}{bgtikz}{
+        \ifbookcover at bgtikzclip
+        \ifstrequal{#1}{whole}{\def\bookcover at bgtikz@whole{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgtikz@wholewf{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgtikz@back{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgtikz@front{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgtikz@backflap{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgtikz@frontflap{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgtikz@spine{\bookcovercomponent{tikz clip}{bg #1}{#2}}}{}
+        \else
+        \ifstrequal{#1}{whole}{\def\bookcover at bgtikz@whole{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{whole without flaps}{\def\bookcover at bgtikz@wholewf{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back}{\def\bookcover at bgtikz@back{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at bgtikz@front{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at bgtikz@backflap{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at bgtikz@frontflap{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at bgtikz@spine{\bookcovercomponent{tikz}{bg #1}{#2}}}{}
+        \fi}{}
+    \ifdefstring{\bookcover at firstparam}{fgsecond}{
+        \ifstrequal{#1}{back}{\def\bookcover at fgsecond@back{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at fgsecond@front{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at fgsecond@spine{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at fgsecond@backflap{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at fgsecond@frontflap{\bookcovercomponent{normal}{#1}{#2}}}{}}{}
+    \ifdefstring{\bookcover at firstparam}{fgfirst}{
+        \ifstrequal{#1}{back}{\def\bookcover at fgfirst@back{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front}{\def\bookcover at fgfirst@front{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{spine}{\def\bookcover at fgfirst@spine{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{back flap}{\def\bookcover at fgfirst@backflap{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{front flap}{\def\bookcover at fgfirst@frontflap{\bookcovercomponent{normal}{#1}{#2}}}{}
+        \ifstrequal{#1}{remark}{\def\bookcover at fgfirst@abovefront{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{above front}{\def\bookcover at fgfirst@abovefront{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{below front}{\def\bookcover at fgfirst@belowfront{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{above back}{\def\bookcover at fgfirst@aboveback{\bookcovercomponent{center}{#1}{#2}}}{}
+        \ifstrequal{#1}{below back}{\def\bookcover at fgfirst@belowback{\bookcovercomponent{center}{#1}{#2}}}{}}{}}
+
+\long\def\makebookcover{%
+    \begin{bookcover}
+        \bookcover at bgcolor@whole
+        \bookcover at bgcolor@wholewf
+        \bookcover at bgcolor@back
+        \bookcover at bgcolor@front
+        \bookcover at bgcolor@backflap
+        \bookcover at bgcolor@frontflap
+        \bookcover at bgcolor@spine
+        \bookcover at bgpic@whole
+        \bookcover at bgpic@wholewf
+        \bookcover at bgpic@back
+        \bookcover at bgpic@front
+        \bookcover at bgpic@backflap
+        \bookcover at bgpic@frontflap
+        \bookcover at bgpic@spine
+        \bookcover at bgtikz@whole
+        \bookcover at bgtikz@wholewf
+        \bookcover at bgtikz@back
+        \bookcover at bgtikz@front
+        \bookcover at bgtikz@backflap
+        \bookcover at bgtikz@frontflap
+        \bookcover at bgtikz@spine
+        \bookcover at fgsecond@back
+        \bookcover at fgsecond@front
+        \bookcover at fgsecond@spine
+        \bookcover at fgsecond@backflap
+        \bookcover at fgsecond@frontflap
+        \bookcover at fgfirst@back
+        \bookcover at fgfirst@front
+        \bookcover at fgfirst@spine
+        \bookcover at fgfirst@backflap
+        \bookcover at fgfirst@frontflap
+        \bookcover at fgfirst@abovefront
+        \bookcover at fgfirst@belowfront
+        \bookcover at fgfirst@aboveback
+        \bookcover at fgfirst@belowback
+    \end{bookcover}
+    \bookcover at reset}
+
 \endinput
 %%
 %% End of file `bookcover.cls'.



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