Files
bds.mr.dpg/doc/usersguide/zlbook.cls
T
2026-01-03 18:31:15 +01:00

89 lines
2.2 KiB
OpenEdge ABL

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{zlbook}
\LoadClass[a4paper,twoside,11pt]{book}
\usepackage{times}
\usepackage{chappg}
\usepackage{here}
\usepackage{alltt}
\usepackage[bookman]{quotchap}
\RequirePackage{shortvrb}
\MakeShortVerb{\§}
\let\o@verbatim\verbatim
\def\verbatim{%
\ifhmode\unskip\par\fi
% \nopagebreak % Overridden by list penalty
\ifx\@currsize\normalsize
\small
\fi
\o@verbatim
}
% No paragraph indentation, space between paragraphs
\setlength{\parindent}{0pt}
\setlength{\parskip}{\medskipamount}
\renewcommand{\thepage}{\thechapter\ - \arabic{page}}
\usepackage{fancyhdr}
\pagestyle{fancy}
%\addtolength{\headwidth}{0.5in}
%\addtolength{\headwidth}{\marginparsep}
%\addtolength{\headwidth}{\marginparwidth}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
%\fancyhead[LE,RO]{\bfseries\thepage}
%\fancyhead[RO]{\bfseries\rightmark}
%\fancyhead[LE]{\bfseries\leftmark}
\fancyfoot[RO]{\bfseries\thepage}
\fancyfoot[LE]{\bfseries\thepage}
\fancyhead[RO]{\rightmark}
\fancyhead[LE]{\leftmark}
\fancyfoot[RO]{\thepage}
\fancyfoot[LE]{\thepage}
\fancypagestyle{plain}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
%\renewcommand{\normalsize}{\fontsize{10pt}{12pt}\selectfont}
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\begin{center}
% This page intentionally left blank.
\end{center}
\vspace{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
%\addtolength{\textwidth}{1cm}
\newenvironment{decl}[1][]%
{\par\small\addvspace{4.5ex plus 1ex}%
\vskip -\parskip
\ifx\relax#1\relax
\def\@decl@date{}%
\else
\def\@decl@date{\NEWfeature{#1}}%
\fi
\noindent\hspace{-\leftmargini}%
\begin{tabular}{|l|}\hline\ignorespaces}%
{\\\hline\end{tabular}\nobreak\@decl@date\par\nobreak
\vspace{2.3ex}\vskip -\parskip}
\newcommand{\NEWfeature}[1]{%
\hskip 1sp \marginpar{\small\sffamily\raggedright
New feature\\#1}}