\documentclass[a4paper,oneside,centered,noparindent,noparskip]{bookest} \usepackage[utf8x]{inputenc} %\usepackage[italian]{babel} \usepackage{palatino} \usepackage{guit} \hyphenation{Su-pe-rio-re} \hypersetup{ pdftitle={The bookest class}, pdfsubject={An extension for the book class}, pdfauthor={Riccardo Bresciani}, pdfkeywords={TeX, LaTeX, pdfLaTeX, book, bookest}, pdfstartview=FitV, %colorlinks } \setoddheadtext{{\colorA The \texttt{bookest} class --- Version 1.0\hfill Riccardo Bresciani}} \setoddfoot{\hfill{\colorA\thepage}\hfill} \makeatletter \renewcommand \thesection{\@arabic\c@section.} \renewcommand\thesubsection{\thesection\@arabic\c@subsection} \makeatother \newcommand{\tA}[1]{\texttt{\colorA #1}} \begin{document} \chapter*{The \texttt{bookest} class\\{\Large Version 1.0 --- \today}\\{\Large Riccardo Bresciani}} The \texttt{bookest} class in an extension of the standard \texttt{book} class, which it relies on and that is loaded with the default options. \ppar The extensions provided by the class involve: \begin{enumerate} \item colors; \item document layout; \item headings and footers; \item title page layout; \item \dots \end{enumerate} \section{Colors} \texttt{bookest} requires the \texttt{color} and the \texttt{pdfcolmk}\footnote{This package, reported by Massimiliano Dominici (\GuIT), allows to bypass some of the limitations that pdf\TeX\ has up to version 1.30, mainly the unsupported \emph{colorstack}. Currently the package is loaded by default, but as soon as the main ditributions (MiK\TeX, te\TeX, \dots) will have pdf\TeX\ versione 1.40 this package will be removed from the class.} packages to provide color support to the document. \ppar Specifically, colors \texttt{A} and \texttt{B} are defined: they will be used in the definition of the sectioning commands and in coloring of some text elements --- e.g. the \texttt{footnote} rules or the list labels in \texttt{itemize}, \texttt{enumerate} e \texttt{description}. \ppar The default document is black and white, the user can anyway define the colors accordingly to his taste by using the commands listed in \ref{coloricomandi}. \ppar \texttt{bookest} provides some preset color combinations, that can be activated with the corresponding class options listed in \ref{coloriopzioni}. Using these options requires the \texttt{hyperref} package, as link and anchor colors (color \texttt{A}) and citation color (color \texttt{B}) are set. \subsection{Commands}\label{coloricomandi} \begin{description} \item[\texttt{\textbackslash colorA}, \texttt{\textbackslash colorB}, \texttt{\textbackslash black}] declare the colors used by the class (\texttt{A} and \texttt{B} empty by default and user-definable, plus black); \item[\texttt{\textbackslash setcolorA\{\textit{ }\}}, \texttt{\textbackslash setcolorB\{\textit{ }\}}] specify color \texttt{A} and \texttt{B} in RGB format; \item[\texttt{\textbackslash SETcolorA\{\textit{}\}}, \texttt{\textbackslash SETcolorB\{\textit{}\}}] redefine the commands \texttt{\textbackslash colorA} and \texttt{\textbackslash colorB} in \texttt{\textit{}}; \end{description} \subsection{Options}\label{coloriopzioni} \begin{description} \item[\texttt{noitemcolor}] cancels the list coloration in \texttt{itemize}, \texttt{enumerate} and \texttt{description}; \end{description} \ppar \begin{description} \item[\texttt{blue}, \texttt{green}, \texttt{red}] are generic color themes; \item[\texttt{guitgreen}] is a color theme using the colors of the Gruppo Utilizzatori Italiani di \TeX\ (\GuIT). \item[\texttt{sssupcolor1}, \texttt{sssupcolor2}, \texttt{sssupcolor3}] are color themes using the colors of the Scuola Superiore Sant'Anna logo; \item[\texttt{enscblue}] is a color theme using the colors of the École Normale Supérieure de Cachan logo. \end{description} \section{Document layout} \texttt{bookest} provides options to control: \begin{itemize} \item doubleside (inherets that ones of \texttt{book}); \item margins; \item line spacing; \item paragraph indentation and spacing. \end{itemize} \subsection{Options} \begin{description} \item[\texttt{oneside}, \texttt{twoside}] toggles duplex options (default: \texttt{twoside}); \end{description} \ppar \begin{description} \item[\texttt{centered}] sets page margins (2.5 cm horizontal, 3 cm above and below) --- requires the \texttt{geometry} package; \item[\texttt{left5mm}] sets page margins allowing 5 mm for binding (3 cm left, 2 cm right and 3 cm above and below) requires the \texttt{geometry} package; \item[\texttt{left8mm}] sets page margins allowing 8 mm for binding (3.3 cm left, 1.7 cm right and 3 cm above and below) --- requires the \texttt{geometry} package; \end{description} \ppar \begin{description} \item[\texttt{onehalfspacing}] line spacing to 1.5 --- requires the \texttt{setspace} package; \item[\texttt{doublespacing}] line spacing to 2 --- requires the \texttt{setspace} package; \end{description} \ppar \begin{description} \item[\texttt{noparindent}] sets paragraph indentation to 0; \item[\texttt{noparskip}] sets paragraph spacing to 0. \end{description} \section{Headings and footers} \texttt{bookest} provides commands to allow the user to set easily headings and footers. Moreover it provides a default setting that is different from \texttt{book}\footnote{To use the default \texttt{book} styles one has to simply use the command \texttt{\textbackslash pagestyle\{\textit{