]>
Commit | Line | Data |
---|---|---|
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 | % use parbox for description labels to allow line breaks | |
28 | \renewcommand\descriptionlabel[1]{ | |
29 | \parbox[t]{\linewidth}{\raggedright\bfseries #1\smallskip}} | |
30 | ||
31 | % For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`. | |
32 | \usepackage{alltt} | |
33 | % To preserve simple quotes in the blocks of code | |
34 | \usepackage{upquote} | |
35 | ||
36 | \definecolor{proxmoxred}{RGB}{229, 112, 0} | |
37 | \definecolor{proxmoxgrey1}{RGB}{229, 229, 229} | |
38 | ||
39 | \def\drawtitlepage{ | |
40 | \AddToShipoutPicture*{ | |
41 | \put(\LenToUnit{0cm},\LenToUnit{2.5cm}){ | |
42 | {\color{proxmoxgrey1}\rule{\paperwidth}{22cm}}} | |
43 | \put(\LenToUnit{\dimexpr(\paperwidth-11cm)}, | |
44 | \LenToUnit{\dimexpr(\paperheight-3.5cm)}){ | |
45 | \includegraphics[width=10cm]{proxmox-logo}} | |
46 | } | |
47 | } | |
48 | ||
49 | % custom cover page | |
50 | \def\DBKcover{ | |
51 | \thispagestyle{empty} | |
52 | \vspace*{4cm} | |
53 | \sffamily | |
54 | \begin{center} | |
55 | {\Huge \scshape \color{proxmoxred} \DBKtitle \\[0.5cm]} | |
56 | {\Large \scshape \DBKsubtitle \\[1cm]} | |
57 | {\includegraphics[width=132mm]{proxmox-ci-header} \\} | |
58 | \end{center} | |
59 | \vfill | |
60 | \begin{flushright} | |
61 | {\Large \sffamily | |
62 | \DBKdate \\ | |
63 | Proxmox Server Solutions GmbH \\ | |
64 | \color{proxmoxred} www.proxmox.com \\ | |
65 | } | |
66 | \end{flushright} | |
67 | \vspace*{1cm} | |
68 | \drawtitlepage | |
69 | \pagebreak[4] | |
70 | } |