summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bookcover/bookcover.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/bookcover/bookcover.dtx')
-rw-r--r--macros/latex/contrib/bookcover/bookcover.dtx18
1 files changed, 9 insertions, 9 deletions
diff --git a/macros/latex/contrib/bookcover/bookcover.dtx b/macros/latex/contrib/bookcover/bookcover.dtx
index 47ddeb2314..06a364f007 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-2020 by Tibor Tomacs
+% Copyright (C) 2015-2022 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,19 +17,19 @@
% \iffalse
%<*driver>
\ProvidesFile{bookcover.dtx}
-\newcommand{\eifiledate}{2021/01/04}
-\newcommand{\eifilever}{v3.3}
+\newcommand{\eifiledate}{2022/08/08}
+\newcommand{\eifilever}{v3.4}
%</driver>
%<class>
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-%<class>\ProvidesClass{bookcover}[2021/01/04 v3.3 class for book covers and dust jackets]
+%<class>\ProvidesClass{bookcover}[2022/08/08 v3.4 class for book covers and dust jackets]
%
%<*driver>
\documentclass{ltxdoc}
\OnlyDescription
\usepackage[T1]{fontenc}
+\AddToHook{begindocument/before}[doc/hyperref]{\hypersetup{pdfstartview=FitH,bookmarksnumbered,colorlinks,allcolors=teal}}
\usepackage[paperwidth=210mm,paperheight=295mm,textwidth=160mm,top=25mm,bottom=25mm,outer=25mm]{geometry}
-\usepackage[unicode,pdfstartview=FitH,bookmarksnumbered,colorlinks,allcolors=teal]{hyperref}
\usepackage[english]{babel}
\usepackage{graphicx,listings,calc,multirow,array,paralist,eso-pic,tikz}
@@ -1226,17 +1226,17 @@
\def\bookcover@tikz@content#1{%
\begin{tikzpicture}[overlay,yshift=-\bookcover@partheight@]
- \begin{scope}[transparent,line width=0pt]
+ \begingroup
\pgfset{minimum width=\bookcover@partwidth@,minimum height=\bookcover@partheight@}
- \pgfnode{rectangle}{south west}{}{part}{\pgfusepath{draw}}
+ \pgfnode{rectangle}{south west}{}{part}{\pgfusepath{}}
\pgfset{minimum width=\bookcover@partwidth@-\bookcover@tikz@trimmed@part@width@minus,
minimum height=\bookcover@partheight@-\bookcover@tikz@trimmed@part@height@minus}
\pgftransformshift{\pgfpoint{\bookcover@tikz@trimmed@part@push@right}
{\bookcover@tikz@trimmed@part@push@up}}
- \pgfnode{rectangle}{south west}{}{trimmed part}{\pgfusepath{draw}}
+ \pgfnode{rectangle}{south west}{}{trimmed part}{\pgfusepath{}}
\pgfnodealias{current trimmed part}{trimmed part}% for old method
\pgfnodealias{current part}{part}% for old method
- \end{scope}
+ \endgroup
#1
\end{tikzpicture}}