Files
bind9/doc/tex/armstyle.sty.in
Michał Kępień be37b11157 Update postal mail address in the ARM
Ensure ISC's postal mail address present on the second page of the PDF
version of the BIND ARM is up to date.
2020-09-02 18:12:16 +02:00

110 lines
2.7 KiB
Plaintext

%%
%% This style is derivated from the docbook one
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{armstyle}[]
%% Just use the original package and pass the options
\RequirePackageWithOptions{db2latex}
% 2015-09-03 reed -- used with figure
\usepackage{float}
% For page layout
\usepackage{geometry}
% don't want date on the cover page
\let\@date\@empty
% get rid of "Chapter" on start of each chapter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\Huge\bfseries\sffamily \thechapter\space\space\space\space%
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries \sffamily #1\par\nobreak
\vskip 40\p@
}}
% for use of \titleformat
\usepackage{titlesec}
\titleformat*{\section}{\Large\bfseries\scshape\sffamily}
\titleformat*{\subsection}{\large\bfseries\sffamily}
% Contents font too ; note I don't know what last parts of this are for
\titleformat{\chapter}{\Huge\bfseries\sffamily}{\thechapter}{1em}{} \vspace{6pt}
% font for the Index headline also
\titleformat{\index}{\Huge\bfseries\sffamily}{Index}{1em}{} \vspace{6pt}
% following two lines for no indenting paragraphs and spacing between
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
% fancy footers
\pagestyle{fancy}
\fancyfoot[ce,co]{\thepage}
\fancyfoot[le,ro]{@BIND9_VERSIONSHORT@}
\renewcommand{\headrulewidth}{0.4 pt}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyfoot[ce,co]{\thepage}%
\fancyfoot[le,ro]{@BIND9_VERSIONSHORT@}
\renewcommand{\headrulewidth}{0 pt}
}
\fancypagestyle{empty}{%
\fancyhf{}%
\renewcommand{\headrulewidth}{0 pt}
\renewcommand{\footrulewidth}{0 pt}
}
% custom title and copyright pages
\def\maketitle{
\thispagestyle{empty}
\null\vfil
\vskip 60pt
\begin{center}%
{ %\LARGE
\Huge
\bfseries
\DBKtitle \\
\par
}
\vskip 3em%
{ %\large
\Large
\lineskip .75em%
@BIND9_VERSIONSTRING@
\par
}
\vfil\null
% Not sure exactly how much to trim logo, but given that
% this is a centered environment, we need not be too precise
% so long as the image is centered in the input PDF, we
% trim enough for it to fit on the page, and we do not trim
% so much that we clip out part of the graphic itself.
% This seems to work, anyway.
% trim=left bottom right top
%\includegraphics[trim=400 150 400 0,clip,scale=2.5]{isc-logo.pdf} % old logo
\includegraphics[trim=175 320 200 200,clip]{isc-logo.pdf}
\end{center}\par
\newpage
\thispagestyle{empty}
\vfill
\DBKcopyright \\
\vfill\null
\begin{center}
Internet Systems Consortium, Inc. \\
PO Box 360 \\
Newmarket, NH 03857 \\
USA \\
https://www.isc.org/
\end{center}
\vfil\null
}