From 5ceb6c375a6aed85dbf98f6020f1fdb8eb33e384 Mon Sep 17 00:00:00 2001 From: tjiagoM Date: Wed, 10 May 2017 23:00:48 +0100 Subject: [PATCH] spacing environment removed from the style. Added example with backrefs --- .circleci/tests/backrefs/thesis.bib | 6 ++ .circleci/tests/backrefs/thesis.tex | 87 +++++++++++++++++++++++++++++ README.md | 3 +- cam-thesis.cls | 20 +++---- 4 files changed, 104 insertions(+), 12 deletions(-) create mode 100644 .circleci/tests/backrefs/thesis.bib create mode 100644 .circleci/tests/backrefs/thesis.tex diff --git a/.circleci/tests/backrefs/thesis.bib b/.circleci/tests/backrefs/thesis.bib new file mode 100644 index 0000000..b5fdc61 --- /dev/null +++ b/.circleci/tests/backrefs/thesis.bib @@ -0,0 +1,6 @@ +@Misc{example, + author = {Jean Martina and Rok Strni{\v s}a and Matej Urbas}, + title = {{Cambridge Ph.D.~\LaTeX{} class file}}, + year = 2008, + month = jul, +} diff --git a/.circleci/tests/backrefs/thesis.tex b/.circleci/tests/backrefs/thesis.tex new file mode 100644 index 0000000..57c5447 --- /dev/null +++ b/.circleci/tests/backrefs/thesis.tex @@ -0,0 +1,87 @@ +\documentclass[backrefs,withindex,glossary]{cam-thesis} + +\title{My dissertation title} + +\author{My Full Name} + +%% College affiliation: +\college{Queens'} + +\collegeshield{CollegeShields/Queens} + +\submissiondate{November, 2042} + +\date{August, 2042} + +\subjectline{Computer Science} +\keywords{techreport thesis sample} + + + +\abstract{% + My abstract ... +} + + + +\acknowledgements{% + My acknowledgements ... +} + + + +\newglossaryentry{HOL}{ + name=HOL, + description={Higher-order logic} +} + + + +\begin{document} + +\frontmatter{} + + + +\chapter{Introduction} +This document was created with the help of a custom class file~\cite{example}. A +{\em \LaTeX{} class file}\index{\LaTeX{} class file@LaTeX class file} is a file, +which holds style information for a particular \LaTeX{} class\footnote{You can +find more about classes at \url{http://www.ctan.org/pkg/clsguide}.}. + +This is an example glossary reference: \GLS{HOL}. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +\marginpar[Margin note.]{Margin par.} + +This is a second reference so in Bibliography it is possible to see two different pages~\cite{example}. + + + +\cleardoublepage +\phantomsection +\addcontentsline{toc}{chapter}{Bibliography} +\bibliographystyle{plain} +\bibliography{thesis} + + + +\appendix + +\chapter{Extra Information} +Some more text ... + + + +\printthesisindex + +\end{document} diff --git a/README.md b/README.md index 0cf2e3b..ab35954 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,8 @@ It also supports some custom options. _Note_: the package `makeidx` is used to create the index. -* `backrefs`: Add back references in the Bibliography section. In other words, for each reference, it adds the page(s) where it is cited. +* `backrefs`: Add back references in the Bibliography section (here's + [a sample](https://dl.bintray.com/matej/thesis/backrefs-master.pdf)). In other words, for each reference, it adds the page(s) where it is cited. _Note_: the package `backref` is used to create the back references. diff --git a/cam-thesis.cls b/cam-thesis.cls index 362646f..d7cbe9e 100644 --- a/cam-thesis.cls +++ b/cam-thesis.cls @@ -363,17 +363,15 @@ for the degree of Doctor of Philosophy% \begin{lrbox}{\cam@title} \begin{minipage}[c][\height][c]{.98\textwidth} \begin{center} - \begin{spacing}{1} - {\Huge% - \ifcam@times\else% - \bfseries% - \fi% - {\@title{}}% - \ifcam@firstyr\\% - {\vspace{5mm}\emph{\LARGE PhD Proposal}}% - \fi}% - \end{spacing} - \end{center} + \Huge% + \ifcam@times\else% + \bfseries% + \fi% + {\@title{}}% + \ifcam@firstyr\\% + {\vspace{5mm}\emph{\LARGE PhD Proposal}}% + \fi% + \end{center} \end{minipage} \end{lrbox}