arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/CUEDthesisPSnPDF.cls	2012-08-16 17:17:42.721545262 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/cuedthesispsnpdf.cls	2007-07-01 13:41:31.000000000 +0200
@@ -1,52 +1,40 @@
-%
-% CUEDthesis v1.1
-% By Harish Bhanderi 
 %--> Google.com search "hyperref options"
 %-->
@@ -82,49 +81,52 @@
 %--> http://www.uni-giessen.de/partosch/eurotex99/ oberdiek/print/sli4a4col.pdf
 %--> http://me.in-berlin.de/~miwie/tex-refs/html/latex-packages.html
 %-->
-    \usepackage[ pdftex, plainpages = false, pdfpagelabels,
-                 pdfpagelayout = useoutlines,
-                 bookmarks,
-                 bookmarksopen = true,
-                 bookmarksnumbered = true,
-                 breaklinks = true,
-                 linktocpage,
-                 pagebackref,
-                 colorlinks = true,
-                 linkcolor = blue,
-                 urlcolor  = blue,
-                 citecolor = red,
-                 anchorcolor = green,
-                 hyperindex = true,
-                 hyperfigures
-                 ]{hyperref}
-    \usepackage[pdftex]{graphicx}
-    \DeclareGraphicsExtensions{.png, .jpg, .pdf}
-
-    \pdfcompresslevel=9
-    \graphicspath{{ThesisFigs/PNG/}{ThesisFigs/PDF/}{ThesisFigs/}}
-\else
-    \usepackage[ dvips,
-                 bookmarks,
-                 bookmarksopen = true,
-                 bookmarksnumbered = true,
-                 breaklinks = true,
-                 linktocpage,
-                 pagebackref,
-                 colorlinks = true,
-                 linkcolor = blue,
-                 urlcolor  = blue,
-                 citecolor = red,
-                 anchorcolor = green,
-                 hyperindex = true,
-                 hyperfigures
-                 ]{hyperref}
+% ANNOYING HYPERLINKS COMMENTED OUT
+%    \usepackage[ pdftex, plainpages = true, pdfpagelabels,
+%                 pdfpagelayout = useoutlines,
+%                 bookmarks,
+%                 bookmarksopen = true,
+%                 bookmarksnumbered = true,
+%                 breaklinks = true,
+%                 linktocpage,
+%                 pagebackref,
+%                 colorlinks = true,
+%                 linkcolor = blue,
+%                 urlcolor  = blue,
+%                 citecolor = red,
+%                 anchorcolor = green,
+%                 hyperindex = true,
+%                 hyperfigures
+%                 ]{hyperref}
+% Removed!
+%%    \DeclareGraphicsExtensions{.png, .jpg, .pdf}
+%%    \usepackage[pdftex]{graphicx}
+%%    \pdfcompresslevel=9
+%%    \graphicspath{{ThesisFigs/PNG/}{ThesisFigs/PDF/}{ThesisFigs/}}
+%%\else
+% I'VE COMMENTED THE ANNOYING HYPERLINKS OUT
+
+%    \usepackage[ dvips,
+%                 bookmarks,
+%                 bookmarksopen = true,
+%                 bookmarksnumbered = true,
+%                 breaklinks = true,
+%                 linktocpage,
+%                 pagebackref,
+%                 colorlinks = true,
+%                 linkcolor = blue,
+%                 urlcolor  = blue,
+%                 citecolor = red,
+%                 anchorcolor = green,
+%                 hyperindex = true,
+%                 hyperfigures
+%                 ]{hyperref}

-    %\usepackage{epsfig}
-    \usepackage{graphicx}
     \DeclareGraphicsExtensions{.eps, .ps}
-    \graphicspath{{ThesisFigs/EPS/}{ThesisFigs/}}
-\fi
+    \usepackage{epsfig}
+    \usepackage{graphicx}
+%    \graphicspath{{ThesisFigs/EPS/}{ThesisFigs/}}
+%\fi

 %define the page size including an offset for binding
 %\setlength{\topmargin}{0.0in}
@@ -135,83 +137,72 @@


 %A4 settings
-\ifpdf
-   \pdfpageheight=297mm
-   \pdfpagewidth=210mm
-\else
-   \setlength{\paperheight}{297mm}
-   \setlength{\paperwidth}{210mm}
-\fi
+%\ifpdf
+%   \pdfpageheight=297mm
+%   \pdfpagewidth=210mm
+%\else
+
+%\usepackage[totalwidth=480pt,totalheight=680pt]{geometry}
+%\setlength{\paperheight}{279mm} % 297
+%\setlength{\paperwidth}{216mm}  % 210
+
+%\fi
+
+% Amir's definitions:
+%\setlength{\textwidth}{16cm} \setlength{\textheight}{22cm}
+%\addtolength{\oddsidemargin}{-11mm}
+%\addtolength{\topmargin}{-20mm}
+%\setlength{\parskip}{1mm}
+\addtolength{\baselineskip}{.5mm}
+

 \setlength{\hoffset}{0.00cm}
-\setlength{\voffset}{0.00cm}
+\setlength{\voffset}{-1.3cm}  % -1.5 works for arXiv PS
+
+\setlength{\evensidemargin}{0.6cm} %0.2cm}%1.96cm}  % LH margin of even page numbers
+\setlength{\oddsidemargin}{0.9cm} %1.3cm }%1.3cm}   % LH margin of odd page numbers
+\setlength{\topmargin}{1mm}
+\setlength{\headheight}{1.36cm} %1.36cm
+\setlength{\headsep}{1.00cm}
+\setlength{\textheight}{20.84cm}
+\setlength{\textwidth}{14.5cm}
+\setlength{\marginparsep}{1mm}
+\setlength{\marginparwidth}{3cm}
+\setlength{\footskip}{2.36cm}

-%\setlength{\evensidemargin}{1.96cm}
-%\setlength{\topmargin}{1mm}
-%\setlength{\headheight}{1.36cm}
-%\setlength{\headsep}{1.00cm}
-%\setlength{\textheight}{20.84cm}
-%\setlength{\textwidth}{14.5cm}
-%\setlength{\marginparsep}{1mm}
-%\setlength{\marginparwidth}{3cm}
-%\setlength{\footskip}{2.36cm}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}
-\newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}
-\def\today{\ifcase\month\or
-  January\or February\or March\or April\or May\or June\or
-  July\or August\or September\or October\or November\or December\fi
-  \space \number\year}
-\usepackage{setspace}
-\onehalfspacing
-%\setlength{\parindent}{0pt}
-%\setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}
-\usepackage{vmargin}
-\setmarginsrb           { 1.5in}  % left margin
-                        { 0.6in}  % top margin
-                        { 1.0in}  % right margin
-                        { 0.8in}  % bottom margin
-                        {  20pt}  % head height
-                        {0.25in}  % head sep
-                        {   9pt}  % foot height
-                        { 0.3in}  % foot sep
-\raggedbottom
-\setlength{\topskip}{1\topskip \@plus 5\p@}
-\doublehyphendemerits=10000       % No consecutive line hyphens.
-\brokenpenalty=10000              % No broken words across columns/pages.
-\widowpenalty=9999                % Almost no widows at bottom of page.
-\clubpenalty=9999                 % Almost no orphans at top of page.
-\interfootnotelinepenalty=9999    % Almost never break footnotes.
-\usepackage{fancyhdr}
-\lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
-\rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
-\chead{}\lfoot{}\rfoot{}\cfoot{}
 \pagestyle{fancy}
-\renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}
-\renewcommand{\sectionmark}[1]{}
-\renewcommand{\subsectionmark}[1]{}
-\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
-\hbox{}
-\thispagestyle{empty}
-\newpage
-\if@twocolumn\hbox{}\newpage\fi\fi\fi}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-%\pagestyle{fancy}
-\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. #1 }}{}}
-\renewcommand{\sectionmark}[1]{}
-%\fancyhf{}
-%\fancyhead[RO]{\bfseries\rightmark}
+%\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. #1 }}{}} % Original version: Uppercase chapter titles
+\renewcommand{\chaptermark}[1]{ \markboth{\thechapter.  #1 }{}}
+\renewcommand{\sectionmark}[1]{\markright{\thesection\  #1}}
+\fancyhf{}
+%    \fancyhead[LE,RO]{\bfseries\thepage}    % Page number (boldface) in left on even
+                                            % pages and right on odd pages
+%    \fancyhead[RE]{\bfseries\leftmark}      % Chapter in the right on even pages
+%    \fancyhead[LO]{\bfseries\rightmark}     % Section in the left on odd pages
+
+%\fancyhead[RO]{\bfseries\leftmark}
 %\fancyhead[LE]{\bfseries\leftmark}
-%\fancyfoot[C]{\thepage}
+
+\fancyhead[RO]{\bfseries\rightmark}
+\fancyhead[LE]{\bfseries\leftmark}
+\fancyfoot[C]{\thepage}
 \renewcommand{\headrulewidth}{0.5pt}
 \renewcommand{\footrulewidth}{0pt}
 \addtolength{\headheight}{0.5pt}
-%\fancypagestyle{plain}{
-%  \fancyhead{}
-%  \renewcommand{\headrulewidth}{0pt}
-%}
+\fancypagestyle{plain}{
+  \fancyhead{}
+  \renewcommand{\headrulewidth}{0pt}
+}
+%% %%% New stuff
+%%     \makeatletter
+%%     \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else %
+%%         \hbox{}%
+%%         \thispagestyle{empty}%              % Empty header styles
+%%         \newpage%
+%%         \if@twocolumn\hbox{}\newpage\fi\fi\fi}
+%%     \makeatother

+%% %%%

 \newcommand{\submittedtext}{{A thesis submitted for the degree of}}
 %
@@ -224,13 +215,13 @@
 % The year and term the degree will be officially conferred
 \def\degreedate#1{\gdef\@degreedate{#1}}
 % The full (unabbreviated) name of the degree
-%\def\degree#1{\gdef\@degree{#1}}
+\def\degree#1{\gdef\@degree{#1}}
 % The name of your college or department(eg. Trinity, Pembroke, Maths, Physics)
 \def\collegeordept#1{\gdef\@collegeordept{#1}}
 % The name of your University
-%\def\university#1{\gdef\@university{#1}}
+\def\university#1{\gdef\@university{#1}}
 % Defining the crest
-%\def\crest#1{\gdef\@crest{#1}}
+\def\crest#1{\gdef\@crest{#1}}

 % These macros define an environment for front matter that is always
 % single column even in a double-column document.
@@ -241,19 +232,18 @@
        {\if@restonecol\twocolumn\else\newpage\fi}

 %define title page layout
-%\renewcommand{\maketitle}{%
-\renewcommand{\a}{%
+\renewcommand{\maketitle}{%
+
 \begin{alwayssingle}
     \renewcommand{\footnotesize}{\small}
     \renewcommand{\footnoterule}{\relax}
     \thispagestyle{empty}
 %  \null\vfill
   \begin{center}
-    { \LARGE {\bfseries {\@title}} \par}
-\vspace*{55mm}
-%{\large \vspace*{35mm} {{\@crest} \par} \vspace*{25mm}}
-    {{\LARGE \@author} \par}
-{\large \vspace*{1ex}
+    { \Huge {\bfseries {\@title}} \par}
+{\large \vspace*{30mm} {{\@crest} \par} \vspace*{20mm}}  % 35/25
+    {{\Large \@author} \par}
+{\large \vspace*{2ex}  %1ex
     {{\@collegeordept} \par}
 \vspace*{1ex}
     {{\@university} \par}
@@ -265,7 +255,8 @@
     {\@degreedate}}
   \end{center}
   \null\vfill
-\end{alwayssingle}}
+\end{alwayssingle}
+}

 % DEDICATION
 %
@@ -291,8 +282,7 @@
 % themselves appear in a quote environment, i.e. tabbed in at both sides, and
 % on its own page.

-%\newenvironment{acknowledgements}
-\newenvironment{acknowledgementsold}
+\newenvironment{acknowledgements}
 {\pagestyle{empty}
 \begin{alwayssingle}
 \begin{center}
@@ -325,10 +315,10 @@

 \newenvironment{abstracts} {\begin{alwayssingle} \pagestyle{empty}
   \begin{center}
-  \vspace*{1.5cm}
-  {\Large \bfseries  \underline{Abstract}}
+  \vspace{-1cm}  %1.5cm
+  {\Large \bfseries  Abstract}
   \end{center}
-  \vspace{0.5cm}
+  \vspace{0.4cm}
    \begin{quote}}
 {\end{quote}\end{alwayssingle}}

@@ -363,8 +353,6 @@
   \end{center}}
 {\end{alwayssingle}}

-
-
 %ROMANPAGES
 %
 % The romanpages environment set the page numbering to lowercase roman one
@@ -374,267 +362,5 @@
 \newenvironment{romanpages}
 {\setcounter{page}{1}
   \renewcommand{\thepage}{\roman{page}}}
-{\newpage\renewcommand{\thepage}{\arabic{page}}}
-%{\newpage\renewcommand{\thepage}{\arabic{page}}\setcounter{page}{1}}
+{\newpage\renewcommand{\thepage}{\arabic{page}}\setcounter{page}{1}}

-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%	new	things		%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\newcommand\Declaration[1]{
-\btypeout{Declaration of Authorship}
-\addtotoc{Declaration of Authorship}
-\thispagestyle{plain}
-\null\vfil
-%\vskip 60\p@
-{\Huge\bf Declaration of Authorship}\par
-%\chapter*{Declaration of Authorship}
-\vskip 30\p@
-{\normalsize #1}
-\vfil\vfil\null
-\cleardoublepage
-}
-
-\newcommand*{\titlelong}[1]{\def\titlelo{#1}}
-\newcommand*{\supervisor}[1]{\def\supname{#1}}
-\newcommand*{\examiner}[1]{\def\examname{#1}}
-\newcommand*{\degree}[1]{\def\degreename{#1}}
-\newcommand*{\authors}[1]{\def\authornames{#1}}
-\newcommand*{\addresses}[1]{\def\addressnames{#1}}
-\newcommand*{\university}[1]{\def\univname{#1}}
-\newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}
-\newcommand*{\department}[1]{\def\deptname{#1}}
-\newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}
-\newcommand*{\group}[1]{\def\groupname{#1}}
-\newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}
-\newcommand*{\faculty}[1]{\def\facname{#1}}
-\newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}
-\newcommand*{\subject}[1]{\def\subjectname{#1}}
-\newcommand*{\keywords}[1]{\def\keywordnames{#1}}
-\supervisor  {}
-\examiner    {}
-\degree      {}
-\authors     {}
-\university  {
-                {University of Southampton}}
-\UNIVERSITY  {
-                {UNIVERSITY OF SOUTHAMPTON}}
-\department  {
-                {School of Physics and Astronomy}}
-\DEPARTMENT  {
-                {SCHOOL OF PHYSICS AND ASTRONOMY}}
-\group       {
-                {Southampton High Energy Physics}}
-\GROUP       {
-                {SOUTHAMPTON HIGH ENERGY PHYSICS}}
-\faculty     {
-                {Faculty of Physical and Applied Sciences}}
-\FACULTY     {
-                {FACULTY OF PHYSICAL AND APPLIED SCIENCES}}
-\addresses   {}
-\subject     {}
-\keywords    {}
-\renewcommand\maketitle{
-  \btypeout{Title Page}
-  %\hypersetup{pdftitle={\@title}}
-  %\hypersetup{pdfsubject=\subjectname}
-  %\hypersetup{pdfauthor=\authornames}
-  %\hypersetup{pdfkeywords=\keywordnames}
-  \thispagestyle{empty}
-  \begin{titlepage}
-    \let\footnotesize\small
-    \let\footnoterule\relax
-    \let \footnote \thanks
-    \setcounter{footnote}{0}
-    \null\vfil
-    \vskip 60\p@
-    \begin{center}
-      \setlength{\parskip}{0pt}
-      {\large\textbf{\UNIVNAME}\par}
-      \vfill
-      {\huge \bf \@title \par}
-      \vfill
-      {\LARGE by \par}
-      \smallskip
-      {\LARGE \authornames \par}
-      \vfill
-      {\large A thesis submitted in partial fulfillment for the \par}
-      {\large degree of Doctor of Philosophy \par}
-      \bigskip
-      \bigskip
-      {\large in the \par}
-      {\large \facname \par}
-      {\large \deptname \par}
-      \bigskip
-      \bigskip
-      \bigskip
-      {\Large \@date \par}
-      \bigskip
-    \end{center}
-    \par
-    \@thanks
-    \vfil\null
-  \end{titlepage}
-  \setcounter{footnote}{0}%
-  \global\let\thanks\relax
-  \global\let\maketitle\relax
-  \global\let\@thanks\@empty
-  \global\let\@author\@empty
-  \global\let\@date\@empty
-  \global\let\@title\@empty
-  \global\let\title\relax
-  \global\let\author\relax
-  \global\let\date\relax
-  \global\let\and\relax
-  \cleardoublepage
-}
-\newenvironment{abstract}
-{
-  \btypeout{Abstract Page}
-  \thispagestyle{empty}
-  \null\vfil
-  \begin{center}
-    \setlength{\parskip}{0pt}
-    {\normalsize \UNIVNAME \par}
-    \bigskip
-    {\huge{\textit{\underline{Abstract}}} \par}
-    \bigskip
-    {\normalsize \FACNAME \par}
-    {\normalsize \DEPTNAME \par}
-    \bigskip
-    {\normalsize \underline{Doctor of Philosophy}\par}
-    \bigskip
-    {\large\bf \titlelo \par}
-    \medskip
-    {\normalsize by \authornames \par}
-    \bigskip
-  \end{center}
-}
-{
-  \vfil\vfil\vfil\null
-  \cleardoublepage
-}
-\addtocounter{secnumdepth}{1}
-\setcounter{tocdepth}{6}
-\newcounter{dummy}
-\newcommand\addtotoc[1]{
-\refstepcounter{dummy}
-\addcontentsline{toc}{chapter}{#1}}
-\renewcommand\tableofcontents{
-\btypeout{Table of Contents}
-\begin{spacing}{1}{
-    \setlength{\parskip}{1pt}
-    \if@twocolumn
-      \@restonecoltrue\onecolumn
-    \else
-      \@restonecolfalse
-    \fi
-    \chapter*{\contentsname
-        \@mkboth{
-           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
-    \@starttoc{toc}
-    \if@restonecol\twocolumn\fi
-   \cleardoublepage
-}\end{spacing}
-}
-\renewcommand\listoffigures{
-\btypeout{List of Figures}
-\addtotoc{List of Figures}
-\begin{spacing}{1}{
-    \setlength{\parskip}{1pt}
-    \if@twocolumn
-      \@restonecoltrue\onecolumn
-    \else
-      \@restonecolfalse
-    \fi
-    \chapter*{\listfigurename
-      \@mkboth{\MakeUppercase\listfigurename}
-              {\MakeUppercase\listfigurename}}
-    \@starttoc{lof}
-    \if@restonecol\twocolumn\fi
-    \cleardoublepage
-%    \clearpage
-}\end{spacing}
-}
-\renewcommand\listoftables{
-\btypeout{List of Tables}
-\addtotoc{List of Tables}
-\begin{spacing}{1}{
-    \setlength{\parskip}{1pt}
-    \if@twocolumn
-      \@restonecoltrue\onecolumn
-    \else
-      \@restonecolfalse
-    \fi
-    \chapter*{\listtablename
-      \@mkboth{
-          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
-    \@starttoc{lot}
-    \if@restonecol\twocolumn\fi
-    \cleardoublepage
-%    \clearpage
-}\end{spacing}
-}
-\newcommand\listsymbolname{Abbreviations}
-\usepackage{longtable}
-\newcommand\listofsymbols[2]{
-\btypeout{\listsymbolname}
-\addtotoc{\listsymbolname}
-    \chapter*{\listsymbolname
-      \@mkboth{
-          \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
-\begin{longtable}[c]{#1}#2\end{longtable}\par
-    \cleardoublepage
-}
-\newcommand\listconstants{Physical Constants}
-\usepackage{longtable}
-\newcommand\listofconstants[2]{
-\btypeout{\listconstants}
-\addtotoc{\listconstants}
-    \chapter*{\listconstants
-      \@mkboth{
-          \MakeUppercase\listconstants}{\MakeUppercase\listconstants}}
-\begin{longtable}[c]{#1}#2\end{longtable}\par
-    \cleardoublepage
-}
-\newcommand\listnomenclature{Symbols}
-\usepackage{longtable}
-\newcommand\listofnomenclature[2]{
-\btypeout{\listnomenclature}
-\addtotoc{\listnomenclature}
-    \chapter*{\listnomenclature
-      \@mkboth{
-          \MakeUppercase\listnomenclature}{\MakeUppercase\listnomenclature}}
-\begin{longtable}[c]{#1}#2\end{longtable}\par
-    \cleardoublepage
-}
-\newcommand\acknowledgements[1]{
-\btypeout{Acknowledgements}
-\addtotoc{Acknowledgements}
-\thispagestyle{plain}
-\chapter*{Acknowledgements}
-{\normalsize #1}
-%\vfil\vfil\null
-%\null \vfil
-}
-\newcommand\dedicatory[1]{
-\btypeout{Dedicatory}
-\thispagestyle{plain}
-\null\vfil
-\vskip 60\p@
-\begin{center}{\Large \sl #1}\end{center}
-\vfil\null
-\cleardoublepage
-}
-\renewcommand\backmatter{
-  \if@openright
-    \cleardoublepage
-  \else
-    \clearpage
-  \fi
-  \addtotoc{\bibname}
-  \btypeout{\bibname}
-  \@mainmatterfalse}
-\endinput

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns