Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.37 KB | None | 0 0
  1. % This style option is designed to work with the report document
  2. % style of LaTeX version 2.09. Use
  3. % \documentstyle[mitthesis]{report}
  4. % Adapted by Philip Milne from Stephen Gildea's mitthesis style file.
  5. % Later hacked by FEB to reflect updated University regulations and
  6. % to ensure compatibility with LaTeX2e
  7. %
  8. % Updated on 19/01/05 by PJH to reflect updated University regulations.
  9. % 31/07/13. Edited by Alex Watson (ARW):
  10. % * Now works correctly for two-sided printing.
  11. % * We now use the geometry package to set margins. The results are
  12. % slightly different from the previous version, but the margins
  13. % still conform to the regulations.
  14. % * Now the word `degrees' is produced instead of `degree' if you
  15. % are submitting for multiple degrees. I think this was a regression.
  16. % * Fixed the \copyrightpage macro to work also for two-sided printing.
  17. % Both the title and the copyright text are now placed vertically
  18. % one-third of the way down their respective pages.
  19. % * Changed the (to my mind) odd vertical spacing of the copyright text,
  20. % which everyone who submits a thesis seems to do anyway.
  21. % * Compatibility with babel.
  22.  
  23. % Updated on 9/12/13 by PJH to reflect the new declaration on the restriction of circulation of the thesis.
  24. % * Removed the \norestrictions command since the declarations for restrictions and no restrictions are now the same.
  25. % * Required the entry of the Faculty/School (with \faculty) so that this may be included in the new declaration.
  26. % * Changed the signature line to reflect that this is now the signature of a member of the faculty, not the author.
  27.  
  28. %% Announce ourselves
  29. \ProvidesPackage{baththesis}
  30.  
  31.  
  32. %% We redefine \cleardoublepage to take an optional argument which sets the
  33. %% page style of the empty page which may be generated. This has two
  34. %% effects:
  35. %% 1. We use it to ensure empty pages generated before the start of the
  36. %% thesis don't receive page numbers.
  37. %% 2. With this definition of \cleardoublepage, empty pages generated by the
  38. %% book class or the openright option of the report class will not receive
  39. %% any headers, even if using fancyhdr or similar. To alter this behaviour,
  40. %% change the default value of the optional argument (`plain' below).
  41. %% Adapted from the fancyhdr manual.
  42.  
  43.  
  44. \renewcommand{\cleardoublepage}[1][plain]{%
  45. \clearpage\if@twoside \ifodd\c@page\else
  46. \hbox{}%
  47. \thispagestyle{#1}%
  48. \newpage
  49. \if@twocolumn\hbox{}\newpage\fi\fi\fi
  50. }
  51.  
  52.  
  53.  
  54. %% -- This is how we used to set the page layout. Replaced by the geometry
  55. %% -- package below.
  56. %% Page layout: the regs ask for a margin of at least 40mm on the
  57. %% binding edge (left hand margin) and at least 15mm on all other
  58. %% margins. The following does the job
  59. %\oddsidemargin 15mm
  60. %\evensidemargin 0pt
  61. %\textwidth 5.7in
  62. %\textheight 234mm
  63. %\topmargin 0in
  64. %\headheight 0in % no header
  65. %\textheight 8.5in
  66. %\headsep \headheight
  67. %\footskip .4in
  68.  
  69.  
  70. %% Set page layout with the (more flexible) geometry package. This also
  71. %% accommodates two-sided printing. I have used the same height and width
  72. %% as the original package authors.
  73. %%
  74. %% For me this produces the following margins:
  75. %% inner=40mm, outer=26mm, top=21mm, bottom=39mm.
  76. %% - ARW.
  77.  
  78. %% If you want to use the fancyhdr package, include
  79. % \geometry{head=x}
  80. %% in your premable, with x >= 13.6pt.
  81.  
  82.  
  83. \RequirePackage{geometry}
  84. \geometry{a4paper, inner=40mm, textheight=8.5in, textwidth=5.7in, foot=.4in}
  85.  
  86.  
  87. %% The regs allow single or one-and-a-half line spacing.
  88. %% To allow for the latter we use the setspace package which is supposed to
  89. %% work with any dialect of LaTeX---well, it did after messing with
  90. %% it for several hours....
  91. %%
  92. %% If you need single spacing, add \singlespacing to your preamble after
  93. %% including baththesis.
  94.  
  95. \RequirePackage{setspace}
  96. \onehalfspacing
  97.  
  98. % If you are getting two degrees, use \and between the names.
  99.  
  100. \def\degree#1{
  101. \setbox0\hbox{#1} %for side effect of setting \@degreeword [?? -ARW.]
  102. \gdef\@degree{#1}
  103. }
  104.  
  105. % \and is used inside the \degree argument to separate two degrees
  106.  
  107. \gdef\@degreeword{degree}
  108. \def\and{\gdef\@degreeword{degrees} \par and \par}
  109.  
  110. \def\degreemonthyear#1{\gdef\@degreemonthyear{#1}}
  111.  
  112. % input department name
  113. \def\department#1{\gdef\@department{#1}}
  114.  
  115. % input faculty/school name
  116. \def\faculty#1{\gdef\@faculty{#1}}
  117.  
  118. \def\@standardcopyright{\centering Attention is drawn to the fact that copyright of this
  119. thesis rests with the author. A copy of this thesis has been supplied on
  120. condition that anyone who consults it is understood to recognise
  121. that its copyright rests with the author and that they must not copy it
  122. or use material from it except as permitted by law or with the consent
  123. of the author.}
  124.  
  125. %% New statement of restrictions requires a space for the date from which the thesis may be made available.
  126.  
  127. \def\@restriction{\newline\parbox{55ex}{}}
  128.  
  129.  
  130. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  131. % Old statement of restrictions now redundant - PJH
  132. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  133.  
  134. %% \def\norestrictions{\gdef\@restriction{This thesis may be made available
  135. %% for consultation within the University Library and may be photocopied
  136. %% or lent to other libraries for the purposes of consultation.}}
  137. %%
  138. %% \def\restrictions#1{\gdef\@restriction{This thesis may not be consulted,
  139. %% photocopied or lent to other libraries without the permission of the
  140. %% author for #1 years from the date of acceptance of the thesis.}}
  141. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  142.  
  143.  
  144. \gdef\@iscopyrightpage{0}
  145. \gdef\@copyrightpage{\vfill}
  146. \gdef\@copyrightpageafter{\vspace*{\stretch{1}}}
  147. \def\copyrightpage{%
  148. \gdef\@iscopyrightpage{1}%
  149. \gdef\@copyrightpage{%
  150. \par\vspace*{\stretch{2}}%% * see below
  151. \cleardoublepage[empty]%
  152. \thispagestyle{empty}%
  153. \vspace*{\stretch{1}}%
  154. }%
  155. \gdef\@copyrightpageafter{%
  156. \vspace*{\stretch{2}}%
  157. }%
  158. }
  159. %% * This typesets the title about one-third of the way down the page.
  160. %% To revert to the previous behaviour, change the line marked by * to
  161. %% \par\vspace*{\stretch{1}}
  162. %% instead.
  163.  
  164.  
  165. \def\signature#1#2{%
  166. \par\noindent#1\dotfill\null\par
  167. {%
  168. \raggedleft \mbox{#2 \hspace{1in}}\par
  169. }%
  170. }
  171.  
  172.  
  173.  
  174. \def\maketitle{
  175. \begin{titlepage}
  176.  
  177. \if@twoside
  178. % The title page and the copyright page (if applicable) should be odd
  179. % pages outside the page numbering system. This does the trick.
  180. \if\@iscopyrightpage 0
  181. \setcounter{page}{-1}
  182. \else
  183. \setcounter{page}{-3}
  184. \fi
  185. \else
  186. \if\@iscopyrightpage 0
  187. \setcounter{page}{0}
  188. \else
  189. \setcounter{page}{-1}
  190. \fi
  191. \fi
  192.  
  193. \thispagestyle{empty}
  194.  
  195. \parskip 10pt% plus 1fil minus 1fil
  196.  
  197. \null\vspace*{\stretch{1}}
  198.  
  199. \begin{center}
  200.  
  201. \large
  202.  
  203. \def\baselinestretch{1.2}
  204.  
  205. {\def\baselinestretch{1.2}\huge\bf \@title \par}
  206.  
  207. submitted by
  208.  
  209. {\huge \@author}
  210.  
  211. for the \@degreeword\ of \@degree
  212.  
  213. of the
  214.  
  215. {\huge University of Bath}
  216.  
  217. \@department
  218.  
  219. \@degreemonthyear
  220.  
  221. %\vfill
  222.  
  223. \end{center}
  224.  
  225. % If there is no \copyrightpage, then \@copyrightpage just puts \vfill,
  226. % which by the way will be compressed if the thesis title is very long.
  227. % If there is a \copyrightpage, then \@copyrightpage puts us on a
  228. % new odd page.
  229. \@copyrightpage
  230.  
  231. \begin{center}
  232.  
  233. \bf COPYRIGHT
  234.  
  235. \end{center}
  236.  
  237. \noindent
  238. \@standardcopyright
  239.  
  240. \noindent
  241. \@restriction
  242.  
  243. \vfill
  244.  
  245. \begin{center}
  246.  
  247. %% The invocation of \signature previously included the name of the signatory, i.e the author, as the second parameter. The signatory is now a member of the faculty and hence their name may not be known in advance. As such, \signature's second argument is now left blank. - PJH, 2013
  248.  
  249. \signature{Signed on behalf of the \@faculty}{}
  250.  
  251. \@copyrightpageafter
  252.  
  253. \end{center}
  254.  
  255. % The \kern0pt pushes any depth into the height. Thanks to Richard Stone.
  256.  
  257. \par\kern 0pt\null
  258.  
  259. \end{titlepage}}
  260.  
  261.  
  262.  
  263. %% Redefine the abstract environment so it carries a page number and
  264. %% the heading `Summary'.
  265. %%
  266. %% If you use the babel package, you must load it before baththesis.
  267.  
  268. % \@ifpackageloaded{babel}{
  269. % \addto\extrasenglish{
  270. % \def\abstractname{Summary}
  271. % }
  272. %
  273. % \addto\extrasbritish{
  274. % \def\abstractname{Summary}
  275. % }
  276. % }{
  277. %
  278. % \def\abstractname{Summary}
  279. % }
  280.  
  281.  
  282. \def\abstract{%
  283. \cleardoublepage%
  284. \null \vfil
  285. \thispagestyle{plain}
  286. \begin{center}%
  287. \Large\bfseries \abstractname%
  288. \end{center}%
  289. }
  290.  
  291.  
  292. \def\endabstract{%
  293. \par\vfil\null\newpage
  294. }
  295.  
  296.  
  297.  
  298. % If using the report style, use - instead of . in the figure number.
  299. % [This isn't in the regulations but it has been in baththesis forever.
  300. % Comment it out if you don't like it. - ARW.]
  301.  
  302. \@ifundefined{thechapter}{}{\def\thefigure{\thechapter-\arabic{figure}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement