[texhax] Document class Book

Fehd, Ronald J. (CDC/CCHIS/NCPHI) rjf2 at CDC.GOV
Fri Aug 10 16:48:15 CEST 2007


From: "Eloi Machado" 

> I need a template of a tex file 
> with documentclass book. 
> Does anyone of you have it?

According to Chicago Manual of Style

http://www.chicagomanualofstyle.org/home.html

a book has several parts: front, main, back

Due to production considerations,
i.e., that FrontMatter is written after the body of the book
and has roman numerals paging,
document class book has commands 
\frontmatter and
\backmatter
for changing page numbering.

Below is a template that I have developed.

Does this answer your Q?

Ron Fehd  the {SAS} macro maven  CDC Atlanta GA USA RJF2 at cdc dot gov

\documentclass{book}
\pdfoutput=0%out=job.dvi
%\pdfoutput=1%out=job.pdf
\title{\jobname\ example
      }%end title
\author{Ronald J. Fehd
       }%end author
%\usepackage{}
%note: use for development and testing
%\includeonly{frontMatter}
%\includeonly{partA}
%\includeonly{chapA}
%\includeonly{partZ}
%\usepackage[]{hyperref}%
\begin{document}%%%%%%%%%%%%%%%%%%%%%%%%
\include{frontMatter}
\include{partA}
%\include{chapA}
%\include{partZ}
\appendix %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{chAppendixA}
\include{chAppendixB}
\include{chAppendixZ}
\include{backMatter}
\end{document} %%%%%%%%%%%%%%%%%%%%%%%%%
\endinput

*** partA.tex ***
\part{Example A}%\label{part:A}
\input{chapA}
\input{chapB}
\input{chapZ}
\endinput

*** chapA.tex ***
%\hypertarget{ch:A}{\relax}%
\chapter{Example A}%\label{ch:A}
\input{chapAsectA}
\input{chapAsectB}
\input{chapAsectZ}
\endinput

%name: FrontMatter.tex
%source: The Chicago Manual of Style, 14 ed.
%\include{frontHalfTitle}
\maketitle
\frontmatter
%\include{frontCopyright}
%\include{frontDedication}
%\include{frontEpigraph}
\tableofcontents
\listoffigures
\listoftables
%\include{frontForeword}
%\include{frontPreface}%and Acknowledgements
%\include{frontIntroduction}
%\include{frontListAbbreviations}
%\include{frontEditorialMethod}
%\include{frontListContributors}
%\include{frontChronology}
\endinput

%name  : BackMatter.tex
%source: The Chicago Manual of Style, 14 ed.
%after Chapters==Appendices:
%\backmatter
%\include{backNotes}
%\include{backGlossary}
%\include{backBibliography}% or Reference List
%\renewcommand{\refname}{\subsection{Bibliography}}
%\renewcommand{\refname}{\subsection{Reference List}}
\bibliography{\jobname}%generates thebib environment
%\include{backContributors}%
%\include{backIndex}%\theindex
%\include{backErrata}
\endinput



More information about the texhax mailing list