Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.70 KB | None | 0 0
  1. definecolor{chaptergrey}{RGB}{0,0,255}
  2.  
  3. documentclass[a4paper,twoside]{ociamthesis}
  4. % This one will format for one-sided binding (ie left margin > right margin; no extra blank pages):
  5. %documentclass[a4paper]{ociamthesis}
  6. % This one will format for PDF output (ie equal margins, no extra blank pages):
  7. %documentclass[a4paper,nobind]{ociamthesis}
  8.  
  9.  
  10. definecolor{chaptergrey}{RGB}{0,0,255}
  11.  
  12. %%%%% SELECT YOUR DRAFT OPTIONS
  13. % Three options going on here; use in any combination. But remember to turn the first two off before
  14. % generating a PDF to send to the printer!
  15.  
  16. % This adds a "DRAFT" footer to every normal page. (The first page of each chapter is not a "normal" page.)
  17. fancyfoot[C]{emph{DRAFT Printed on today}}
  18.  
  19. % This highlights (in blue) corrections marked with (for words) mccorrect{blah} or (for whole
  20. % paragraphs) begin{mccorrection} . . . end{mccorrection}. This can be useful for sending a PDF of
  21. % your corrected thesis to your examiners for review. Turn it off, and the blue disappears.
  22. correctionstrue
  23.  
  24.  
  25. %%%%% BIBLIOGRAPHY SETUP
  26. % Note that your bibliography will require some tweaking depending on your department, preferred format, etc.
  27. % The options included below are just very basic "sciencey" and "humanitiesey" options to get started.
  28. % If you've not used LaTeX before, I recommend reading a little about biblatex/biber and getting started with it.
  29. % If you're already a LaTeX pro and are used to natbib or something, modify as necessary.
  30. % Either way, you'll have to choose and configure an appropriate bibliography format...
  31.  
  32. % The science-type option: numerical in-text citation with references in order of appearance.
  33. usepackage[style=numeric-comp, sorting=none, backend=biber, doi=false, isbn=false]{biblatex}
  34. newcommand*{bibtitle}{References}
  35.  
  36. % The humanities-type option: author-year in-text citation with an alphabetical works cited.
  37. %usepackage[style=authoryear, sorting=nyt, backend=biber, maxcitenames=2, useprefix, doi=false, isbn=false]{biblatex}
  38. %newcommand*{bibtitle}{Works Cited}
  39.  
  40. % This makes the bibliography left-aligned (not 'justified') and slightly smaller font.
  41. renewcommand*{bibfont}{raggedrightsmall}
  42.  
  43. % Change this to the name of your .bib file (usually exported from a citation manager like Zotero or EndNote).
  44. addbibresource{references.bib}
  45.  
  46.  
  47. % Uncomment this if you want equation numbers per section (2.3.12), instead of per chapter (2.18):
  48. %numberwithin{equation}{subsection}
  49.  
  50.  
  51.  
  52. %%%%% THESIS / TITLE PAGE INFORMATION
  53. % Everybody needs to complete the following:
  54. title{Suitably impressive thesis title}
  55. author{Your Name}
  56. college{Your College}
  57.  
  58. % Master's candidates who require the alternate title page (with candidate number and word count)
  59. % must also un-comment and complete the following three lines:
  60. %masterssubmissiontrue
  61. %candidateno{933516}
  62. %wordcount{28,815}
  63.  
  64. % Uncomment the following line if your degree also includes exams (eg most masters):
  65. %renewcommand{submittedtext}{Submitted in partial completion of the}
  66. % Your full degree name. (But remember that DPhils aren't "in" anything. They're just DPhils.)
  67. degree{Doctor of Philosophy}
  68. % Term and year of submission, or date if your board requires (eg most masters)
  69. degreedate{Michaelmas 2014}
  70.  
  71.  
  72. %%%%% YOUR OWN PERSONAL MACROS
  73. % This is a good place to dump your own LaTeX macros as they come up.
  74.  
  75. % To make text superscripts shortcuts
  76. renewcommand{th}{textsuperscript{th}} % ex: I won 4th place
  77. newcommand{nd}{textsuperscript{nd}}
  78. renewcommand{st}{textsuperscript{st}}
  79. newcommand{rd}{textsuperscript{rd}}
  80.  
  81.  
  82.  
  83. %%%%% THE ACTUAL DOCUMENT STARTS HERE
  84. begin{document}
  85.  
  86.  
  87.  
  88. %%%%% CHOOSE YOUR LINE SPACING HERE
  89. % This is the official option. Use it for your submission copy and library copy:
  90. setlength{textbaselineskip}{22pt plus2pt}
  91. % This is closer spacing (about 1.5-spaced) that you might prefer for your personal copies:
  92. %setlength{textbaselineskip}{18pt plus2pt minus1pt}
  93.  
  94. % You can set the spacing here for the roman-numbered pages (acknowledgements, table of contents, etc.)
  95. setlength{frontmatterbaselineskip}{17pt plus1pt minus1pt}
  96.  
  97. % Leave this line alone; it gets things started for the real document.
  98. setlength{baselineskip}{textbaselineskip}
  99.  
  100.  
  101. %%%%% CHOOSE YOUR SECTION NUMBERING DEPTH HERE
  102. % You have two choices. First, how far down are sections numbered? (Below that, they're named but
  103. % don't get numbers.) Second, what level of section appears in the table of contents? These don't have
  104. % to match: you can have numbered sections that don't show up in the ToC, or unnumbered sections that
  105. % do. Throughout, 0 = chapter; 1 = section; 2 = subsection; 3 = subsubsection, 4 = paragraph...
  106.  
  107. % The level that gets a number:
  108. setcounter{secnumdepth}{2}
  109. % The level that shows up in the ToC:
  110. setcounter{tocdepth}{2}
  111.  
  112.  
  113. %%%%% ABSTRACT SEPARATE
  114. % This is used to create the separate, one-page abstract that you are required to hand into the Exam
  115. % Schools. You can comment it out to generate a PDF for printing or whatnot.
  116. begin{abstractseparate}
  117. input{text/abstract} % Create an abstract.tex file in the 'text' folder for your abstract.
  118. end{abstractseparate}
  119.  
  120.  
  121. % JEM: Pages are roman numbered from here, though page numbers are invisible until ToC. This is in
  122. % keeping with most typesetting conventions.
  123. begin{romanpages}
  124.  
  125. % Title page is created here
  126. maketitle
  127.  
  128. %%%%% DEDICATION -- If you'd like one, un-comment the following.
  129. %begin{dedication}
  130. %This thesis is dedicated to\
  131. %someone\
  132. %for some special reason\
  133. %end{dedication}
  134.  
  135. %%%%% ACKNOWLEDGEMENTS -- Nothing to do here except comment out if you don't want it.
  136. begin{acknowledgements}
  137. input{text/acknowledgements}
  138. end{acknowledgements}
  139.  
  140. %%%%% ABSTRACT -- Nothing to do here except comment out if you don't want it.
  141. begin{abstract}
  142. input{text/abstract}
  143. end{abstract}
  144.  
  145. %%%%% MINI TABLES
  146. % This lays the groundwork for per-chapter, mini tables of contents. Comment the following line
  147. % (and remove minitoc from the chapter files) if you don't want this. Un-comment either of the
  148. % next two lines if you want a per-chapter list of figures or tables.
  149. dominitoc % include a mini table of contents
  150. %dominilof % include a mini list of figures
  151. %dominilot % include a mini list of tables
  152.  
  153. % This aligns the bottom of the text of each page. It generally makes things look better.
  154. flushbottom
  155.  
  156. % This is where the whole-document ToC appears:
  157. tableofcontents
  158.  
  159. listoffigures
  160. mtcaddchapter
  161. % mtcaddchapter is needed when adding a non-chapter (but chapter-like) entity to avoid confusing minitoc
  162.  
  163. % Uncomment to generate a list of tables:
  164. %listoftables
  165. % mtcaddchapter
  166.  
  167. %%%%% LIST OF ABBREVIATIONS
  168. % This example includes a list of abbreviations. Look at text/abbreviations.tex to see how that file is
  169. % formatted. The template can handle any kind of list though, so this might be a good place for a
  170. % glossary, etc.
  171. include{text/abbreviations}
  172.  
  173. % The Roman pages, like the Roman Empire, must come to its inevitable close.
  174. end{romanpages}
  175.  
  176.  
  177. %%%%% CHAPTERS
  178. % Add or remove any chapters you'd like here, by file name (excluding '.tex'):
  179. flushbottom
  180. include{text/ch1-intro}
  181. include{text/ch2-litreview}
  182.  
  183.  
  184. %% APPENDICES %%
  185. % Starts lettered appendices, adds a heading in table of contents, and adds a
  186. % page that just says "Appendices" to signal the end of your main text.
  187. startappendices
  188. % Add or remove any appendices you'd like here:
  189. include{text/appendix-1}
  190.  
  191.  
  192. %%%%% REFERENCES
  193.  
  194. % JEM: Quote for the top of references (just like a chapter quote if you're using them). Comment to skip.
  195. begin{savequote}[8cm]
  196. The first kind of intellectual and artistic personality belongs to the hedgehogs, the second to the foxes dots
  197. qauthor{--- Sir Isaiah Berlin cite{berlin_hedgehog_2013}}
  198. end{savequote}
  199.  
  200. setlength{baselineskip}{0pt} % JEM: Single-space References
  201.  
  202. {renewcommand*MakeUppercase[1]{#1}%
  203. printbibliography[heading=bibintoc,title={bibtitle}]}
  204.  
  205.  
  206. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement