% ************************** BRANDISS.CLS ************************** % Brandeis LaTeX2e dissertation class. Set up according to the rules % outlined by the GSAS for acceptable dissertation format. Be sure to % check that the output matches the current specifications. The % formatting requirements are on-line at: % http://www.brandeis.edu/gsas/students % under ``Dissertation Guidelines.'' % This class was written using the guidelines in the ``LaTeX2e for % class and package writers'' document available on-line at: % http://www.math.smith.edu/Local/latexdocs/html/clsguide/clsguide.html \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesClass{brandiss}[2004/05/05 v1.0 Local LaTeX class] %**************************** Class Options ************************ % uncompressed|compressed -> compressed or uncompressed [default] PDF. % The uncompressed|compressed option is only meaningful when a PDF is % being produced. If ``uncompressed'' is true, the PDF compression % level is set to 0 just before document production begins. And so % ``compressed'' really means ``not uncompressed''. \newif\if@uncompressed \DeclareOption{uncompressed}{\@uncompressedtrue} \DeclareOption{compressed}{\@uncompressedfalse} % online|printed -> online or printed [default] submission. % Pass these options to the brandiss package. \DeclareOption{online}{\PassOptionsToPackage{\CurrentOption}{brandiss}} \DeclareOption{printed}{\PassOptionsToPackage{\CurrentOption}{brandiss}} % Default Option: Pass all other options to the amsbook class. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{amsbook}} % Default Setup: % Use uncompressed option by default. \ExecuteOptions{uncompressed} % GSAS formatting requirements: 12 point font and one-sided printing. % Set up the amsbook class with these default options before option % processing so they can be overridden by the passed options. \PassOptionsToClass{12pt,oneside}{amsbook} % Process the options. \ProcessOptions\relax %********************** Class and Package Loads ***************** % The amsbook class provides the main document style. \LoadClass{amsbook} % Package brandiss provides front page commands. \RequirePackage{brandiss}[2004/05/05 v1.0 Standard LaTeX package] % Package ifpdf provides the \ifpdf command. \RequirePackage{ifpdf} % Package setspace provides line spacing command. \RequirePackage{setspace} % Package geometry sets the margins. % REQUIRED: Load before package fancyhdr. \RequirePackage{geometry} % Package fancyhdr allows us to set headers and footers. \RequirePackage{fancyhdr} %*********************** Settings and Definitions ****************** % GSAS formatting requirements: If a PDF document is produced, it % should not be compressed. \ifpdf\if@uncompressed\AtBeginDocument{\pdfcompresslevel=0}\fi\fi % GSAS formatting requirements: The left margin is a minimum of 1.5in. % The top, bottom, and right margins are a minimum of 1in, except top % margin of a chapter page is a minimum of 2in. All printed matter % fits in these margins. We set the margings at the GSAS minimum. % The margins of the first page of a chapter come from the amsbook % format. \geometry{ left=1.5in, right=1in, top=1in, bottom=1in,%% The margins. includeheadfoot,%% Header and footer within the margins. headheight=3ex,%% Make the headers larger than text and headsep=30pt%% separate them from the main text. } % GSAS formatting requirements: The page number is consistently placed % on every page except for the title, signature, and copyright pages. % It may be centered at the bottom of every page. We use the fancy % page style for the main body of the document. Since the plain style % used for the front pages, back pages, and the first page of a % chapter has the page number centered in the footer, we use that % style for all pages by the least effort principle. \pagestyle{fancy} \renewcommand{\headrulewidth}{0.25pt} %% Thin header line. \fancyhf{} %% Clear all fields. \fancyfoot[C]{\tiny\thepage} %% Centered page number in the footer. \if@twoside \fancyhead[LE]{\small\leftmark} %% Chapter name in the left header. \fancyhead[RO]{\small\rightmark} %% Section name in the right header. \else \fancyhead[L]{\small\leftmark} %% Chapter name in the left header. \fi % GSAS formatting requirements: Double line spacing for the front and % main parts of the document, and the front pages have roman % numbering. The \frontmatter command sets double line spacing for % the whole document. It also sets roman page numbering and plain % page style for the pages at the front of the dissertation. \renewcommand{\frontmatter}{% \doublespacing \cleardoublepage \pagenumbering{roman} \pagestyle{plain} } % GSAS formatting requirements: The main and back pages have arabic % numbering. The \mainmatter command sets arabic page numbering and % fancy page style for the pages in the main part of the dissertation. \renewcommand{\mainmatter}{% \cleardoublepage \pagenumbering{arabic} \pagestyle{fancy} } % The \backmatter command sets plain page style for the pages at the % back of the dissertation (bibliography, index). \renewcommand{\backmatter}{% \if@openright\cleardoublepage\else\clearpage\fi \pagestyle{plain} } %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: