Skip to content

Commit

Permalink
spacing environment removed from the style. Added example with backrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
tjiagoM committed May 10, 2017
1 parent 75a35f2 commit 5ceb6c3
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .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,
}
87 changes: 87 additions & 0 deletions .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}
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -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.

Expand Down
20 changes: 9 additions & 11 deletions cam-thesis.cls
Expand Up @@ -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}

Expand Down

0 comments on commit 5ceb6c3

Please sign in to comment.