119 lines
2.7 KiB
TeX
119 lines
2.7 KiB
TeX
\documentclass[11pt]{report}
|
|
|
|
\title{{\Huge VMime Book} \\ \ \\ A Developer's Guide To VMime}
|
|
\author{Vincent Richard \\ vincent@vmime.org}
|
|
|
|
\usepackage{graphicx}
|
|
\usepackage{tabularx}
|
|
\usepackage{array}
|
|
\usepackage{listings}
|
|
\usepackage[usenames]{color}
|
|
\usepackage{ucs}
|
|
\usepackage[utf8x]{inputenc}
|
|
\usepackage[vcentering,dvips]{geometry}
|
|
%\usepackage{type1cm} % scalable Computer Modern fonts
|
|
\usepackage{courier} % use Adobe Courier instead of Computer Modern Typewriter
|
|
\usepackage{fancyheadings}
|
|
\usepackage{hyperref}
|
|
\usepackage{verbatim}
|
|
\usepackage{footmisc}
|
|
|
|
|
|
\setcounter{secnumdepth}{10}
|
|
\setcounter{tocdepth}{10}
|
|
|
|
\def\vcode{\tt}
|
|
\def\vnull{{\tt NULL}}
|
|
\newcommand{\vnote}[1]{{\sc note:} #1}
|
|
\def\vexample{\tt\sc}
|
|
\newcommand{\verti}[1]{\rotatebox{90}{#1\ }} % vertical text
|
|
\def\vdot{$\bullet$}
|
|
|
|
\sloppy % Disable "overfull \hbox..." warnings
|
|
|
|
\newcommand{\Chapter}[1]{\chapter{#1} \setcounter{figure}{1}}
|
|
|
|
% 'listings' configuration
|
|
\definecolor{listingFrame}{rgb}{0.9,0.9,0.9}
|
|
\lstset{language=C++,showstringspaces=false}
|
|
\lstset{keywordstyle=\bf,commentstyle=\it}
|
|
\lstset{captionpos=b,extendedchars=true,inputencoding=latin1}
|
|
\lstset{fontadjust=true,basewidth={0.5em,0.4em},columns=fixed,flexiblecolumns=false}
|
|
\lstset{frame=leftline,framerule=0.1cm,framesep=0.3cm,rulecolor=\color{listingFrame}}
|
|
\lstset{abovecaptionskip=0.5cm,xleftmargin=1.1cm,aboveskip=0.5cm,belowskip=0.2cm}
|
|
|
|
% 'hyperref' configuration
|
|
\hypersetup{
|
|
backref=true,pagebackref=true,hyperindex=rue,colorlinks=true,
|
|
breaklinks=true,urlcolor=blue,linkcolor=black,bookmarks=true,bookmarksopen=true
|
|
}
|
|
|
|
% HTML output configuration
|
|
%HEVEA\renewcommand{\includegraphics}[2][]{\imgsrc{#2}}
|
|
%HEVEA\renewcommand{\verti}[1]{#1}
|
|
%HEVEA\def\vdot{\bullet}
|
|
%HEVEA\newcommand{\linespread}{}
|
|
%HEVEA\newcommand{\clubpenalty}{}
|
|
%HEVEA\newcommand{\widowpenalty}{}
|
|
%HEVEA\newcommand{\geometry}{}
|
|
|
|
|
|
% Page layout
|
|
\geometry{papersize={210mm,297mm},total={160mm,230mm}}
|
|
|
|
% Text layout
|
|
\setlength{\skip\footins}{1cm} % margin between text and footnotes
|
|
\clubpenalty=1000
|
|
\addtolength{\parskip}{+0.3cm}
|
|
\linespread{1.05}
|
|
\widowpenalty=1000
|
|
|
|
|
|
\begin{document}
|
|
|
|
% Title page
|
|
\maketitle
|
|
\newpage
|
|
|
|
% Table of contents
|
|
\tableofcontents
|
|
\newpage
|
|
|
|
% Chapters
|
|
\include{intro}
|
|
\include{building}
|
|
\include{start}
|
|
\include{basics}
|
|
\include{msg}
|
|
\include{net}
|
|
|
|
\thispagestyle{empty}
|
|
\ \newpage
|
|
|
|
|
|
%HEVEA\begin{comment}
|
|
|
|
% List of listings
|
|
\lstlistoflistings
|
|
\addcontentsline{toc}{chapter}{Listings}
|
|
|
|
% List of figures
|
|
\listoffigures
|
|
\addcontentsline{toc}{chapter}{List of figures}
|
|
|
|
% List of table
|
|
\listoftables
|
|
\addcontentsline{toc}{chapter}{List of tables}
|
|
|
|
%HEVEA\end{comment}
|
|
|
|
|
|
% Appendixes
|
|
\appendix
|
|
|
|
\chapter{The GNU General Public License\label{appendix_license}}
|
|
\verbatiminput{../../COPYING}
|
|
|
|
\end{document}
|
|
|