summaryrefslogtreecommitdiffstats
path: root/build/custom-dblatex.sty
blob: 606b9abb6730783cb976a198c008a2a2e128236c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%%
%% This style is derived from the docbook one.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{asciidoc}[2008/06/05 AsciiDoc DocBook Style]
%% Just use the original package and pass the options.
\RequirePackageWithOptions{docbook}

% Sidebar is a boxed minipage that can contain verbatim.
% Changed shadow box to double box.
\renewenvironment{sidebar}[1][0.95\textwidth]{
  \hspace{0mm}\newline%
  \noindent\begin{Sbox}\begin{minipage}{#1}%
  \setlength\parskip{\medskipamount}%
}{
  \end{minipage}\end{Sbox}\doublebox{\TheSbox}%
}

\usepackage{alltt}
\usepackage{upquote}

% "DRAFT" on first page
\definecolor{LtGrey}{rgb}{0.875,0.875,0.875}
\AddToShipoutPicture*{ \AtTextCenter{ \makebox(0,0)[c]{\resizebox{\textwidth}{!}{ \rotatebox{45}{\textsf{\textbf{\color{LtGrey}DRAFT}}}}} } }

\def\Company{sysmocom - s.f.m.c. GmbH}

\def\DBKcover{
\ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}

% ensure the section is called just HISTORY as required by GFDL
\def\DBKrevtitle{HISTORY}

% put numbers in section headers up to depth 5 (instead of just 3 by default)
\setcounter{secnumdepth}{5}

% interligne double
\setlength{\oldbaselineskip}{\baselineskip}
\setlength{\baselineskip}{2\oldbaselineskip}
\textsf{
\vfill
\begin{center}
  \includegraphics{../common/images/sysmocom.pdf}
  \ \\ %
  \huge{\Company}
\end{center}
\vspace{2.5cm}
\begin{center}
  \includegraphics{../common/images/osmocom.pdf}
  \ \\ %
  \vspace{0.5cm}
  \huge{\textbf{\DBKtitle}}\\ %
  \ifx\DBKsubtitle\relax\else%
    \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
    \ \\ %
    \huge{\textbf{\DBKsubtitle}}\\ %
  \fi
  \vspace*{2.5cm}
  \large{by \DBKauthor}
\end{center}
\vfill
\setlength{\baselineskip}{\oldbaselineskip}
\hspace{1cm}
\vspace{1cm}
\begin{center}
\begin{tabular}{p{7cm} p{7cm}}
\Large{\DBKreference{} \edhead} & \\
\end{tabular}
\end{center}
}

% Format for the other pages
%\newpage
\setlength{\baselineskip}{\oldbaselineskip}
}

% left footer
\def\DBKpublisher{}

\def\releasebox{}
\rfoot[]{\DBKreleaseinfo, \DBKdate}

\def\maketitle{
	\DBKcover
	\DBKcopyright
	\DBKlegalblock
	\newpage
	\lfoot[]{\DBKcopyright}
	\DBKdomitete
}