diff options
Diffstat (limited to 'macros/latex/contrib/beautybook/stys/Beautybook-enfig.sty')
-rw-r--r-- | macros/latex/contrib/beautybook/stys/Beautybook-enfig.sty | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/macros/latex/contrib/beautybook/stys/Beautybook-enfig.sty b/macros/latex/contrib/beautybook/stys/Beautybook-enfig.sty new file mode 100644 index 0000000000..b5c6bbe523 --- /dev/null +++ b/macros/latex/contrib/beautybook/stys/Beautybook-enfig.sty @@ -0,0 +1,55 @@ +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{stys/Beautybook-enfig}[2023/02/03,v1.0] +\definecolor{coverbgcolor}{HTML}{004183} +\definecolor{coverfgcolor}{HTML}{00744F} +\definecolor{coverbar}{HTML}{00744F} +\tikzfading[name=fade right, + right color =transparent!100, + left color=transparent!0] +\tikzfading[name=fade left, + left color =transparent!100, + right color=transparent!50] +\tikzfading[name=fade up, + top color =transparent!100, + bottom color=transparent!50] +\tikzfading[name=fade down, + bottom color =transparent!100, + top color=transparent!50] +\makeatletter +\newcommand*\makecover{ + %% Use the Tikz library positioning and clear the page header and footer + \usetikzlibrary{positioning} + \thispagestyle{empty} + \begin{tikzpicture}[remember picture,overlay] + \begin{pgfonlayer}{bottom} + \node[opacity=0.8,inner sep=0pt] at (current + page.center){\includegraphics[width=\paperwidth,height=\paperheight]{\@coverimage}}; + \end{pgfonlayer} + \shade[left color=coverbgcolor!70,right color=coverbgcolor!50,path fading=fade right,opacity=.6] + ([xshift=.5\outermarginwidth]current page.north west) rectangle ([xshift=4\outermarginwidth]current page.south west); + \shade[left color=coverfgcolor,right color=coverfgcolor!60,opacity=.8] + ([xshift=\outermarginwidth,yshift=2\outermarginwidth]current page.west) rectangle (current page.south east); + \fill[coverbar] + ([yshift=2\outermarginwidth]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.2\outermarginwidth]current page.west); + \node[anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.4\covershift]current page.north) {% + \parbox{.8\paperwidth}{ + \filright + \color{white}\sansa\fontsize{20}{23}\selectfont\@bookseries} + }; + \node[ anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.57\paperheight]current page.north) + {\parbox{.8\paperwidth}{% + \raggedright% + {\renewcommand\baselinestretch{1.1}\selectfont \color{white}\bfseries\fontsize{40}{40}\selectfont\@title\\[0.5ex] + \color{white}\sansa\fontsize{30}{30}\selectfont + \ifdefvoid{\@subtitle}{}{\@subtitle}\par} + }}; + \node[anchor=west,font=\itshape\fontsize{23}{23}\selectfont,text=white] at ([xshift=1.8\outermarginwidth,yshift=-.6\covershift]current page.west) {\@edition}; + \node[anchor=west,font=\Huge,text=white] at ([xshift=1.8\outermarginwidth,yshift=\covershift]current page.west) {\@author}; + \node[left,text=white,font=\rmfamily\Large,] at + ([shift={(-1cm,2cm)}]current page.south east) % + {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}}; + \end{tikzpicture} + \newpage +} +\makeatother +\endinput |