fix spacing in dblatex title page
[pve-docs.git] / asciidoc-dblatex-custom.sty
CommitLineData
72470ed6
DM
1%%
2%% This style is derived from the docbook one.
3%%
4\NeedsTeXFormat{LaTeX2e}
5\ProvidesPackage{asciidoc-proxmox}[2016/10/30 AsciiDoc DocBook Style]
6
7% this will set letterpaper, because docbook.sty honors page layout
8% made by geometry package
9%\usepackage[letterpaper,total={7.25in,9.25in}, top=1in]{geometry}
10%\usepackage[a4paper]{geometry}
11
12\usepackage[a4paper, left=2cm, right=1cm, top=2.5cm, bottom=2cm ]{geometry}
13
14%% Just use the original package and pass the options.
15\RequirePackageWithOptions{docbook}
16
17% Sidebar is a boxed minipage that can contain verbatim.
18% Changed shadow box to double box.
19\renewenvironment{sidebar}[1][0.95\textwidth]{
20 \hspace{0mm}\newline%
21 \noindent\begin{Sbox}\begin{minipage}{#1}%
22 \setlength\parskip{\medskipamount}%
23}{
24 \end{minipage}\end{Sbox}\doublebox{\TheSbox}%
25}
26
27% For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.
28\usepackage{alltt}
29
30\definecolor{proxmoxred}{RGB}{229, 112, 0}
333a2f49 31\definecolor{proxmoxgrey1}{RGB}{229, 229, 229}
72470ed6 32
28d58d93 33\def\drawtitlepage{
72470ed6 34 \AddToShipoutPicture*{
28d58d93 35 \put(0,\LenToUnit{2.5cm}){
333a2f49 36 {\color{proxmoxgrey1}\rule{\paperwidth}{22cm}}}
28d58d93
DM
37 \put(\LenToUnit{\dimexpr(\paperwidth-11cm)},
38 \LenToUnit{\dimexpr(\paperheight-3.5cm)}){
39 \includegraphics[width=10cm]{proxmox-logo}}
333a2f49 40 }
72470ed6
DM
41}
42
43% custom cover page
44\def\DBKcover{
45 \thispagestyle{empty}
28d58d93 46 \vspace*{4cm}
72470ed6 47 \sffamily
333a2f49 48 \begin{center}
a39cf740
DM
49 {\Huge \bfseries \scshape \color{proxmoxred} \DBKtitle \\[0.5cm]}
50 {\Large \bfseries \scshape \DBKsubtitle \\[1cm]}
333a2f49
DM
51 {\includegraphics[width=132mm]{proxmox-ci-header} \\}
52 \end{center}
72470ed6 53 \vfill
333a2f49 54 \begin{flushright}
67ea62c9
DM
55 {\Large \DBKdate \\ \medskip}
56 {\Large \bfseries \sffamily Proxmox Server Solutions Gmbh \\ \medskip }
57 {\Large \bfseries \sffamily \color{proxmoxred} www.proxmox.com}
72470ed6 58 \end{flushright}
333a2f49 59 \vspace*{1cm}
28d58d93 60 \drawtitlepage
72470ed6
DM
61 \pagebreak[4]
62}