| 1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 |
%%%%%%%%% THIS DOCUMENT IS OUT OF DATE, NEWEST FEATURES DOCUMENTED ONLY IN THE ITALIAN VERSION OF THIS DOCUMENT %%%%%%%%% |
| 3 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4 |
|
| 5 |
\documentclass[a4paper,oneside,centered,noparindent,noparskip]{bookest} |
| 6 |
|
| 7 |
\usepackage[utf8x]{inputenc} |
| 8 |
%\usepackage[italian]{babel} |
| 9 |
\usepackage{palatino} |
| 10 |
\usepackage{guit} |
| 11 |
|
| 12 |
\hyphenation{Su-pe-rio-re} |
| 13 |
|
| 14 |
\hypersetup{ |
| 15 |
pdftitle={The bookest class}, |
| 16 |
pdfsubject={An extension for the book class}, |
| 17 |
pdfauthor={Riccardo Bresciani}, |
| 18 |
pdfkeywords={TeX, LaTeX, pdfLaTeX, book, bookest}, |
| 19 |
pdfstartview=FitV, |
| 20 |
%colorlinks |
| 21 |
} |
| 22 |
|
| 23 |
\setoddheadtext{{\colorA The \texttt{bookest} class --- Version 1.0.4\hfill Riccardo Bresciani}} |
| 24 |
\setoddfoot{\hfill{\colorA\thepage}\hfill} |
| 25 |
|
| 26 |
\makeatletter |
| 27 |
\renewcommand \thesection{\@arabic\c@section.} |
| 28 |
\renewcommand\thesubsection{\thesection\@arabic\c@subsection} |
| 29 |
\makeatother |
| 30 |
|
| 31 |
\newcommand{\tA}[1]{\texttt{\colorA #1}} |
| 32 |
|
| 33 |
\shipouttext{60}{15}{\fbox{\itshape \ttfamily out of date}} |
| 34 |
|
| 35 |
\begin{document} |
| 36 |
|
| 37 |
\chapter*{The \texttt{bookest} class\\{\Large Version 1.0.4 --- May 22, 2007}\\{\Large Riccardo Bresciani}} |
| 38 |
|
| 39 |
\textit{\sffamily |
| 40 |
\begin{abstract}{\today: WARNING} |
| 41 |
This document is out of date, the newest features are documented only in the Italian version of this document. |
| 42 |
\end{abstract} |
| 43 |
\vspace{7ex}} |
| 44 |
|
| 45 |
The \texttt{bookest} class in an extension of the standard \texttt{book} class, on which it relies and that is loaded with the default options. |
| 46 |
|
| 47 |
\ppar |
| 48 |
The extensions provided by the class involve: |
| 49 |
\begin{enumerate} |
| 50 |
\item colors; |
| 51 |
\item document layout; |
| 52 |
\item headings and footers; |
| 53 |
\item title page layout; |
| 54 |
\item \dots |
| 55 |
\end{enumerate} |
| 56 |
|
| 57 |
The \texttt{bookest} web page is \url{http://tex.boris-web.net/bookest}. |
| 58 |
|
| 59 |
\section{Colors} |
| 60 |
\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. |
| 61 |
|
| 62 |
\ppar |
| 63 |
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}. |
| 64 |
|
| 65 |
\ppar |
| 66 |
The default document is black and white, the user can anyway define the colors according to his taste by using the commands listed in \ref{coloricomandi}. |
| 67 |
|
| 68 |
\ppar |
| 69 |
\texttt{bookest} provides some preset color combinations that can be activated with the corresponding class options listed in \ref{coloriopzioni}. For these options to be used the \texttt{hyperref} package is required, as link and anchor colors (color \texttt{A}) and citation color (color \texttt{B}) are set. |
| 70 |
|
| 71 |
\subsection{Commands}\label{coloricomandi} |
| 72 |
\begin{description} |
| 73 |
\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); |
| 74 |
\item[\texttt{\textbackslash setcolorA\{\textit{<R> <G> <B>}\}}, \texttt{\textbackslash setcolorB\{\textit{<R> <G> <B>}\}}] specify color \texttt{A} and \texttt{B} in RGB format; |
| 75 |
\item[\texttt{\textbackslash SETcolorA\{\textit{<command>}\}}, \texttt{\textbackslash SETcolorB\{\textit{<command>}\}}] redefine the commands \texttt{\textbackslash colorA} and \texttt{\textbackslash colorB} in \texttt{\textit{<command>}}; |
| 76 |
\end{description} |
| 77 |
|
| 78 |
\subsection{Options}\label{coloriopzioni} |
| 79 |
\begin{description} |
| 80 |
\item[\texttt{noitemcolor}] cancels the list coloration in \texttt{itemize}, \texttt{enumerate} and \texttt{description}; |
| 81 |
\end{description} |
| 82 |
\ppar |
| 83 |
\begin{description} |
| 84 |
\item[\texttt{blue}, \texttt{green}, \texttt{red}] are generic color themes; |
| 85 |
\item[\texttt{guitgreen}] is a color theme using the colors of the Gruppo Utilizzatori Italiani di \TeX\ (\GuIT). |
| 86 |
\item[\texttt{sssupcolor1}, \texttt{sssupcolor2}, \texttt{sssupcolor3}] are color themes using the colors of the Scuola Superiore Sant'Anna logo; |
| 87 |
\item[\texttt{enscblue}] is a color theme using the colors of the École Normale Supérieure de Cachan logo. |
| 88 |
\end{description} |
| 89 |
|
| 90 |
\section{Document layout} |
| 91 |
\texttt{bookest} provides options to control: |
| 92 |
\begin{itemize} |
| 93 |
\item doubleside (inherets that ones of \texttt{book}); |
| 94 |
\item margins; |
| 95 |
\item line spacing; |
| 96 |
\item paragraph indentation and spacing. |
| 97 |
\end{itemize} |
| 98 |
|
| 99 |
Moreover, \texttt{bookest} provides two commands to insert an image or a text as shipout picture. |
| 100 |
|
| 101 |
\subsection{Options} |
| 102 |
\begin{description} |
| 103 |
\item[\texttt{oneside}, \texttt{twoside}] toggles duplex options (default: \texttt{twoside}); |
| 104 |
\end{description} |
| 105 |
\ppar |
| 106 |
\begin{description} |
| 107 |
\item[\texttt{centered}] sets page margins (2.5 cm horizontal, 3 cm above and below) --- requires the \texttt{geometry} package; |
| 108 |
\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; |
| 109 |
\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; |
| 110 |
\end{description} |
| 111 |
\ppar |
| 112 |
\begin{description} |
| 113 |
\item[\texttt{onehalfspacing}] line spacing to 1.5 --- requires the \texttt{setspace} package; |
| 114 |
\item[\texttt{doublespacing}] line spacing to 2 --- requires the \texttt{setspace} package; |
| 115 |
\end{description} |
| 116 |
\ppar |
| 117 |
\begin{description} |
| 118 |
\item[\texttt{noparindent}] sets paragraph indentation to 0; |
| 119 |
\item[\texttt{noparskip}] sets paragraph spacing to 0. |
| 120 |
\end{description} |
| 121 |
|
| 122 |
\subsection{Commands} |
| 123 |
\begin{description} |
| 124 |
\item [\texttt{\textbackslash shipouttext\{\textit{<rot>}\}\{\textit{<sc>}\}\{\textit{<text>}\}}] puts in every page the text \texttt{\textit{<text>}} as shipout picture, rotating it counterclockwise by \texttt{\textit{<rot>}} degrees and applying a scale factor \texttt{\textit{<sc>}}. The default color is gray 5\% --- requires the \texttt{setspace} package --- requires the \texttt{everyshi} and \texttt{color} packages; |
| 125 |
\item [\texttt{\textbackslash shipoutimage\{\textit{<options>}\}\{\textit{<file>}\}}] puts in everypage the image \texttt{\textit{<file>}} as shipout picture, using \texttt{\textit{<options>}} as \texttt{\textbackslash includegraphics} options --- requires the \texttt{everyshi} and \texttt{graphicx} packages. |
| 126 |
\end{description} |
| 127 |
|
| 128 |
\section{Headings and footers} |
| 129 |
\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{<style>}\}}.}. |
| 130 |
|
| 131 |
\ppar |
| 132 |
It also redefines chapter headings and the \texttt{plain} style to include colors. |
| 133 |
|
| 134 |
\subsection{Commands} |
| 135 |
\begin{description} |
| 136 |
\item[\texttt{\textbackslash setoddhead}, \texttt{\textbackslash setevenhead}] define odd and even page headings; |
| 137 |
\item[\texttt{\textbackslash oddheadtext}] is the text to be used in odd page headings (default: \texttt{\{\textbackslash colorA\{ \textbackslash slshape\textbackslash rightmark\}\textbackslash hfill\textbackslash thepage\}}); |
| 138 |
\item[\texttt{\textbackslash evenheadtext}] is the text to be used in even page headings (default in the \texttt{oneside} case: \texttt{\textbackslash oddheadtext}; in the \texttt{twoside} case: \texttt{\{\textbackslash colorA\textbackslash thepage\textbackslash hfill\textbackslash slshape\textbackslash leftmark\}}); |
| 139 |
\item[\texttt{\textbackslash setoddheadtext}, \texttt{\textbackslash setevenheadtext}] set the text in \texttt{\textbackslash oddheadtext} e \texttt{\textbackslash evenheadtext}; |
| 140 |
\item[\texttt{\textbackslash setoddfoot}, \texttt{\textbackslash setevenfoot}] define odd and even page footers; |
| 141 |
\item[\texttt{\textbackslash oddfoottext}, \texttt{\textbackslash evenfoottext}] is the text to be used in odd and even page headings (default: (default: empty); |
| 142 |
\item[\texttt{\textbackslash setoddfoottext}, \texttt{\textbackslash setevenfoottext}] set the text in \texttt{\textbackslash oddfoottext} e \texttt{\textbackslash evenfoottext}; |
| 143 |
\item[\texttt{\textbackslash setleftmark}, \texttt{\textbackslash setrightmark}] sets the text in \texttt{\textbackslash leftmark} e \texttt{\textbackslash rightmark}; |
| 144 |
\item[\texttt{\textbackslash makeheadrule}] defines the horizontal rule in headings (default: \texttt{\{\textbackslash colorB\textbackslash hrule \textbackslash @width \textbackslash textwidth \textbackslash @height 0.4pt \textbackslash vskip-0.4pt\}}); |
| 145 |
\item[\texttt{\textbackslash makefootrule}] defines the horizontal rule in headings (default: \texttt{\textbackslash makeheadrule}); |
| 146 |
\end{description} |
| 147 |
|
| 148 |
\section{Title page layout} |
| 149 |
\texttt{bookest} provides commands to allow the user to customize easily the title page of his document, especially starting from preset layouts that can be activated by the options in \ref{copertinaopzioni}. |
| 150 |
|
| 151 |
\ppar |
| 152 |
The default layout has author and title centered at top of the page and to the bottom of the page is a footer made by the content of \texttt{\textbackslash titlingpageprefooter} and of \texttt{\textbackslash titlingpagefooter} divided by a horizontal line. Between title and footer is the content of \texttt{\textbackslash titlingpagemiddle}. |
| 153 |
|
| 154 |
The different options allow to vary the logo position; for each option \texttt{\textit{<optlogo>}} in \ref{copertinaopzioni} there exists a variant \texttt{\textit{<optlogo>}-nofooter} where no footer is present. |
| 155 |
|
| 156 |
\subsection{Commands} |
| 157 |
\begin{description} |
| 158 |
\item[\texttt{\textbackslash inslogo\{\textit{<file>}\}}] inserts the image \texttt{\textit{<file>}} with \texttt{\textbackslash includegraphics} options previously defined and used for the logo (default: \texttt{width=0.6\textbackslash paperwidth}); |
| 159 |
\item[\texttt{\textbackslash setlogooptions\{\textit{<options>}\}}] defines \texttt{\textit{<options>}} as the \texttt{\textbackslash includegraphics} options to be used by \texttt{\textbackslash inslogo}; |
| 160 |
\item[\texttt{\textbackslash logo}, \texttt{\textbackslash leftlogo}, \texttt{\textbackslash rightlogo}] are the path (relative or absolute) of the image to be used as logo depending on the chosen options (default for \texttt{\textbackslash logo} is the relative path \texttt{logo}, default for the others is \texttt{\textbackslash logo}); |
| 161 |
\item[\texttt{\textbackslash setlogo\{\textit{<path>}\}}, \texttt{\textbackslash setleftlogo\{\textit{<path>}\}}, \texttt{\textbackslash setrightlogo\{\textit{<path>}\}}] set to \texttt{\textit{<path>}} the content of \texttt{\textbackslash logo}, \texttt{\textbackslash leftlogo}, \texttt{\textbackslash rightlogo}; |
| 162 |
\item[\texttt{\textbackslash titlingpagemiddle}] is the text to be put in the middle of the \emph{titling page}; |
| 163 |
\item[\texttt{\textbackslash settitlingpagemiddle}] sets the text in \texttt{\textbackslash titlingpagemiddle}; |
| 164 |
\item[\texttt{\textbackslash titlingpageprefooter}] is the text to be put before the footer in the \emph{titling page}; |
| 165 |
\item[\texttt{\textbackslash settitlingpageprefooter}] sets the text in \texttt{\textbackslash titlingpageprefooter}; |
| 166 |
\item[\texttt{\textbackslash titlingpagefooter}] is the text to be used as footer in the \emph{titling page} (default: \texttt{\textbackslash today}); |
| 167 |
\item[\texttt{\textbackslash settitlingpagefooter}] sets the text in \texttt{\textbackslash titlingpagefooter}; |
| 168 |
\item[\texttt{\textbackslash settitlingpagetitle}] defines the format of the title in the \emph{titling page}; |
| 169 |
\item[\texttt{\textbackslash titling}] inserts the \emph{titling page}. |
| 170 |
\end{description} |
| 171 |
|
| 172 |
\subsection{Options}\label{copertinaopzioni} |
| 173 |
\begin{description} |
| 174 |
\item[\texttt{nofooter}] variant without footer of the default layout; |
| 175 |
\item[\texttt{logo}, \texttt{logo-nofooter}] adds to the default layout the logo in \texttt{\textbackslash logo} under the title (and matching \texttt{nofooter} variant) --- requires the \texttt{graphicx} package; |
| 176 |
\item[\texttt{logo-bg}, \texttt{logo-bg-nofooter}] adds to the default layout the logo in \texttt{\textbackslash logo} in the background (and matching \texttt{nofooter} variant) --- requires the \texttt{graphicx} and the \texttt{eso-pic} packages; |
| 177 |
\item[\texttt{logo-topl}, \texttt{logo-topl-nofooter}] adds to the default layout the logo in \texttt{\textbackslash leftlogo} at top left of the page before the title (and matching \texttt{nofooter} variant) --- requires the \texttt{graphicx} package; |
| 178 |
\item[\texttt{logo-topc}, \texttt{logo-topc-nofooter}] adds to the default layout the logo in \texttt{\textbackslash logo} at top center of the page before the title (and matching \texttt{nofooter} variant) --- requires the \texttt{graphicx} package; |
| 179 |
\item[\texttt{logo-topr}, \texttt{logo-topr-nofooter}] adds to the default layout the logo in \texttt{\textbackslash rightlogo} at top left of the page before the title (and matching \texttt{nofooter} variant) --- requires the \texttt{graphicx} package; |
| 180 |
\item[\texttt{logo-toplr}, \texttt{logo-toplr-nofooter}] adds to the default layout the logo in \texttt{\textbackslash leftlogo} at top left of the page and \texttt{\textbackslash rightlogo} at top right of the page before the title (and matching \texttt{nofooter} variant) --- requires the \texttt{graphicx} package; |
| 181 |
\end{description} |
| 182 |
|
| 183 |
\section{Miscellanea} |
| 184 |
\texttt{bookest} provides also other little shortcuts, which can be useful when using the class and that are hereby listed: |
| 185 |
|
| 186 |
\subsection{Commands} |
| 187 |
\begin{description} |
| 188 |
\item[\texttt{\textbackslash setbibname\{\textit{<name>}\}}] renames the bibliography title to \texttt{\textit{<name>}}; |
| 189 |
\item[\texttt{\textbackslash setcontentsname\{\textit{<name>}\}}] renames the contents title to \texttt{\textit{<name>}}; |
| 190 |
\item[\texttt{\textbackslash ppar}] inserts a vertical space of \texttt{1.5ex} --- useful for example with the \texttt{noparskip} option; |
| 191 |
\item[\texttt{\textbackslash dimstleftskip}] sets \texttt{\textbackslash leftskip} to \texttt{1cm}; |
| 192 |
\item[\texttt{\textbackslash UCase}] provides the command \texttt{\textbackslash MakeUppercase}, that is instead redefined as a null command to make heading and footer commands more flexible; |
| 193 |
\item[\texttt{\textbackslash epigraph\{\textit{<text1>}\}\{\textit{<text2>}\}\{\textit{<environment>}\}\{\textit{<l>}\}}] makes an epigraph, where \texttt{\textit{<text1>}} is divided from \texttt{\textit{<text2>}} by a horizontal line of color \texttt{B}. The epigraph has length \texttt{\textit{<l>}} and is contained in the environment \texttt{\textit{<environment>}}. |
| 194 |
\end{description} |
| 195 |
|
| 196 |
\subsection{Environments} |
| 197 |
\begin{description} |
| 198 |
\item[\texttt{abstract}] is an environment of width \texttt{0.9\textbackslash textwidth}, with a parameter \texttt{\textit{<title>}} to be written in bold series before the text contained in the environment; |
| 199 |
\item[\texttt{dimst}] is an environment where the text is in \texttt{slshape} and with 1 cm extra for the left margin. |
| 200 |
\end{description} |
| 201 |
|
| 202 |
\section{Contacts} |
| 203 |
For comments, suggestions or bug reports, you can contact me at the address \href{mailto:[email protected]}{\textit{[email protected]}}. |
| 204 |
|
| 205 |
\end{document} |