2 %% This style is derivated from the docbook one
4 \NeedsTeXFormat{LaTeX2e}
5 \ProvidesPackage{ardour}[2007/04/04 My DocBook Style]
7 %% Just use the original package and pass the options
8 \RequirePackageWithOptions{docbook}
13 % Define \dbend as the dangerous bend sign
15 \def\dbend{{\manual\char127}}
17 % Redefine sidebar environment to use the dangerous bend style
18 % Danger, Will Robinson!
19 \def\sidebar{\begin{trivlist}\item[]\noindent%
20 \begingroup\hangindent=2pc\hangafter=-2%\clubpenalty=10000%
21 \def\par{\endgraf\endgroup}%
22 \hbox to0pt{\hskip-\hangindent\dbend\hfill}\ignorespaces}
23 \def\endsidebar{\par\end{trivlist}}
26 % Futz with the title page; basically a copy of
27 % /usr/share/texmf/tex/latex/dblatex/style/dbk_title.sty
31 \ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}
36 \setlength{\oldbaselineskip}{\baselineskip}
37 \setlength{\baselineskip}{2\oldbaselineskip}
42 \huge{\textbf{\DBKtitle}}\\ %
45 \Large{\DBKauthor}\\ %
46 \ifx\DBKsubtitle\relax\else%
47 \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
49 \huge{\textbf{\DBKsubtitle}}\\ %
53 \setlength{\baselineskip}{\oldbaselineskip}
57 \begin{tabular}{p{7cm} p{7cm}}
58 \Large{\DBKreference{} \edhead} & \\
63 % Format for the other pages
65 \setlength{\baselineskip}{\oldbaselineskip}
66 %\chead[]{\DBKcheadfront}