summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-04 15:43:11 +0000
committerKarl Berry <karl@freefriends.org>2011-09-04 15:43:11 +0000
commit23ef93c756c760759ef5770dc19d88e5f6276c96 (patch)
tree4cbd932b662cb31bbb6131ae68160f5f0abeec07 /Master/texmf-dist/tex
parentcd52946117f6a20d871a85a7103c220a5b5f7d14 (diff)
msu-thesis (1sep11)
git-svn-id: svn://tug.org/texlive/trunk@23794 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls30
1 files changed, 28 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls b/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
index ea3942991ea..fbc484b36eb 100644
--- a/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
+++ b/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
@@ -70,12 +70,18 @@
% problem when Copyright page was missing. Removed varioref
% and afterpage as required packages.
% Version 1.9b 2011/07/22 Made footnotes \normalsize (new requirement)
-%
+% Version 2.0 2011/08/24 Added lscape pagestyle for placement of page numbers
+% on landscape pages. Implemented as a package option
+% so that people aren't forced to load lscape or tikz
+% if they don't need it. Compatible also with pdflscape
+% for those using pdflatex; fixed problem with some long
+% TOC entries
% Use at your own risk!
% Report bugs/problems/questions to <amunn@msu.edu>
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{msu-thesis}[2011/07/22 Michigan State University Thesis Class version 1.9b]
+\ProvidesClass{msu-thesis}[2011/08/24 Michigan State University Thesis Class version 2.0]
+\newif\ifmsu@lscape\msu@lscapefalse
\DeclareOption{PhD}{\gdef\@degree{DOCTOR OF PHILOSOPHY}\gdef\@diss{DISSERTATION}}
\DeclareOption{MA}{\gdef\@degree{MASTER OF ARTS}\gdef\@diss{THESIS}}
\DeclareOption{MS}{\gdef\@degree{MASTER OF SCIENCE}\gdef\@diss{THESIS}}
@@ -88,6 +94,9 @@
\DeclareOption{MPP}{\gdef\@degree{MASTER OF PUBLIC POLICY}\gdef\@diss{THESIS}}
\DeclareOption{MSW}{\gdef\@degree{MASTER OF SOCIAL WORK}\gdef\@diss{THESIS}}
\DeclareOption{MURP}{\gdef\@degree{MASTER IN URBAN AND REGIONAL PLANNING}\gdef\@diss{THESIS}}
+\DeclareOption{lscape}{%
+\msu@lscapetrue
+\AtEndDocument{\ClassWarningNoLine{msu-thesis}{You have chosen the [lscape] option. You may need to run latex twice to get landscape page numbering to display correctly}}}
\ExecuteOptions{PhD}
\DeclareOption*{%
@@ -96,6 +105,22 @@
\ProcessOptions
\LoadClass[12pt,oneside,letterpaper]{memoir}[2008/05/27]
\RequirePackage{etex}
+% set up landscape page numbering
+\ifmsu@lscape
+ \RequirePackage{lscape}
+ \RequirePackage{tikz}
+% adjust yshift (in both commands) to meet the thesis office requirements
+% positive values will move the number closer to the bottom of the table
+% 0 seems to satisfy them, though.
+ \makepagestyle{lscape}
+ \makeevenfoot{lscape}{}{\tikz[remember picture,overlay]
+ \node[outer sep=1cm,above,rotate=90,yshift=0] at (current page.east)
+ {\thepage};}{}
+ \makeoddfoot{lscape}{}{\tikz[remember picture,overlay]
+ \node[outer sep=1cm,above,rotate=90,yshift=0] at (current page.east)
+ {\thepage};}{}
+\fi
+
% set up page for MSU Thesis guidelines
\settypeblocksize{9in}{6.5in}{*}
\setlrmargins{1in}{*}{*}
@@ -181,6 +206,7 @@
\renewcommand*{\l@appendix}[2]{%
\l@chapapp{\MakeUppercase{#1}}{#2}{\cftappendixname}} % Format appendix names
\setlength{\cftchapternumwidth}{3em}
+\setrmarg{3.5em} % better wrapping of long titles
%\setlength{\cftbeforechapterskip}{1.0em \@plus\p@}
% MSU requires double spacing between entries in the list of tables, figures etc.