From: Dietmar Maurer Date: Sat, 1 Oct 2016 11:22:13 +0000 (+0200) Subject: improve cover page X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=333a2f49350cb123de5fe19889f3bb02db342ce1 improve cover page --- diff --git a/Makefile b/Makefile index a285eb8..de86437 100644 --- a/Makefile +++ b/Makefile @@ -223,11 +223,12 @@ pve-admin-guide.chunked: ${PVE_ADMIN_GUIDE_SOURCES} rm -rf pve-admin-guide.chunked a2x -a docinfo -a docinfo1 -a icons -f chunked pve-admin-guide.adoc -pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_SOURCES} docinfo.xml pve-admin-guide-docinfo.xml +test pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_SOURCES} docinfo.xml pve-admin-guide-docinfo.xml inkscape -z -D --export-pdf=logo.pdf images/proxmox-logo.svg + inkscape -z -D --export-pdf=proxmox-ci-header.pdf images/proxmox-ci-header.svg grep ">Release ${DOCRELEASE}<" pve-admin-guide-docinfo.xml || (echo "wrong release in pve-admin-guide-docinfo.xml" && false); a2x -a docinfo -a docinfo1 -f pdf -L --dblatex-opts "-P latex.output.revhistory=0" --dblatex-opts "-P latex.class.options=12pt" --dblatex-opts "-P doc.section.depth=2 -P toc.section.depth=2" --dblatex-opts "-P doc.publisher.show=0 -s asciidoc-dblatex-custom.sty" pve-admin-guide.adoc - rm logo.pdf + rm logo.pdf proxmox-ci-header.pdf pve-admin-guide.epub: ${PVE_ADMIN_GUIDE_SOURCES} a2x -f epub pve-admin-guide.adoc @@ -283,5 +284,5 @@ update: clean make all clean: - rm -rf logo.pdf *.tmp.xml *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked + rm -rf logo.pdf proxmox-ci-header.pdf *.tmp.xml *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked find . -name '*~' -exec rm {} ';' diff --git a/asciidoc-dblatex-custom.sty b/asciidoc-dblatex-custom.sty index caa7bb7..469d4e7 100644 --- a/asciidoc-dblatex-custom.sty +++ b/asciidoc-dblatex-custom.sty @@ -28,31 +28,34 @@ \usepackage{alltt} \definecolor{proxmoxred}{RGB}{229, 112, 0} +\definecolor{proxmoxgrey1}{RGB}{229, 229, 229} -\newlength\mylength -\def\redribbon{ - \setlength\mylength{0.3\paperheight} +\def\greyribbon{ \AddToShipoutPicture*{ - \put(0,\LenToUnit{\mylength}){% - {\color{proxmoxred}\rule{\paperwidth}{2cm}}} - } + \put(0,\LenToUnit{2.5cm}){% + {\color{proxmoxgrey1}\rule{\paperwidth}{22cm}}} + } } % custom cover page \def\DBKcover{ \thispagestyle{empty} \begin{flushright} - \includegraphics[width=0.5\textwidth]{logo} \\ - \vspace*{1in} - \bfseries + \includegraphics[width=0.5\textwidth]{logo} \\ + \end{flushright} + \vspace*{2.5cm} \sffamily - {\Huge \DBKtitle \\[1ex]\large ~~~ \\} - {\Huge \DBKsubtitle \\[1ex]\large ~~~ \\} - \vspace*{4.1in} - {\Large \DBKdate \\} + \begin{center} + {\Huge \bfseries \scshape \color{proxmoxred} \DBKtitle \\[1ex]\large ~~~ \\} + {\Large \bfseries \scshape \DBKsubtitle \\[1ex]\large ~~~ \\} + {\includegraphics[width=132mm]{proxmox-ci-header} \\} + \end{center} \vfill - {\Large \bfseries \sffamily Proxmox Server Solutions Gmbh} + \begin{flushright} + {\Large \DBKdate \\} + {\Large \bfseries \sffamily Proxmox Server Solutions Gmbh \\ \color{proxmoxred} www.proxmox.com} \end{flushright} - \redribbon + \vspace*{1cm} + \greyribbon \pagebreak[4] } diff --git a/images/proxmox-ci-header.svg b/images/proxmox-ci-header.svg new file mode 100755 index 0000000..4efa8a1 --- /dev/null +++ b/images/proxmox-ci-header.svg @@ -0,0 +1,110 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + +