From c5f219a5b242cac5f31a9e0d81adce663a321f0c Mon Sep 17 00:00:00 2001 From: Joshua Fogg <joshua.h.fogg@gmail.com> Date: Sat, 17 Jul 2021 18:02:12 +0100 Subject: [PATCH] Better examples As mentioned in #5, it's useful to have some included examples to use as a starting point. --- example-presentation.tex | 75 ++++++++++++++++++++++++++++++++++++++++ example-references.bib | 8 +++++ example-report.tex | 55 +++++++++++++++++++++++++++++ sample.tex | 62 --------------------------------- 4 files changed, 138 insertions(+), 62 deletions(-) create mode 100644 example-presentation.tex create mode 100644 example-references.bib create mode 100644 example-report.tex delete mode 100644 sample.tex diff --git a/example-presentation.tex b/example-presentation.tex new file mode 100644 index 0000000..f044b08 --- /dev/null +++ b/example-presentation.tex @@ -0,0 +1,75 @@ +\documentclass{beamer} +\usetheme[colour=UoEblue]{UsherNew} +%% Alternative options are: +% \usetheme[colour=USHERgreen]{UsherNew} +% \usetheme[colour=USHERblue]{UsherNew} +\usepackage{beamernotes} +\usepackage{lipsum} +\pdfcompresslevel=9 +\pdfobjcompresslevel=3 + +\title[Insert Title (short version of title)]{Title of Presentation} +\subtitle{Insert Subtitle (Optional)} % Optional +\author{Author Name} +\date{n\textsuperscript{th} Month YYYY} + +\begin{document} + + +\begin{frame} + \titlepage{} +\end{frame} +\bnote{ + This generates notes for pdfpc. These notes also appear + on the handout/article versions. +} + + +\begin{frame}[t]{Header title bold}\label{sec:Slide1} + Main body text Sans. Here is a way to \alert{highlight text}. + \begin{itemize} + \item Bullet points + \item Sub-lists\ldots + \begin{itemize} + \item subitem + \end{itemize} + \item \lipsum[2] + \end{itemize} +\end{frame} +\bnote{ + This is a note for the first slide. Mention how +} + + +\begin{frame}{Inserting a figure, some maths\ldots} + Example of a reference to another part of the presentation (slide~\ref{sec:Slide1}). Also an example of a slide not vertically aligned to top.\newline + + \begin{itemize} + \item Here's a figure: + \begin{figure}[h] + \centering + \colorbox{blue}{\includegraphics[width=.13\linewidth]{Images/edinburgh-logo}} + \caption{The University of Edinburgh's logo}\label{fig:edinburgh-logo} + \end{figure} + \item And here's a famous equation: + \begin{eqnarray} + \label{eq:schroedinger} + i\hbar {\frac{\partial}{\partial t}}|\psi (t)\rangle ={\hat{H}}|\psi (t)\rangle + \end{eqnarray} + \end{itemize} +\end{frame} + + +\begin{frame}[t]{References} + The stylesheet {\bf\texttt{edmaths.sty}} provides a styling for LaTeX{} documents which satisfies University of Edinburgh requirements~\cite{koeppe2007}. \newline + + \lipsum[4]\newline + + References can be added to the bottom of slides, or on a new slide. + \vfill + \bibliography{example-references} + \bibliographystyle{ieeetr} +\end{frame} + + +\end{document} diff --git a/example-references.bib b/example-references.bib new file mode 100644 index 0000000..a256061 --- /dev/null +++ b/example-references.bib @@ -0,0 +1,8 @@ + The below link contains useful bibtex templates + https://verbosus.com/bibtex-style-examples.html + +@misc{koeppe2007, + title = {Package `edmaths'}, + author = {Thomas Koeppe}, + year = {2007} +} diff --git a/example-report.tex b/example-report.tex new file mode 100644 index 0000000..a3d4b57 --- /dev/null +++ b/example-report.tex @@ -0,0 +1,55 @@ +\documentclass[12pt,twoside]{report} + +\title{Thesis Title} +\author{Author Name} +\date{YYYY} + +\usepackage[phd,fourier,hyperref,colour,fancyhdr]{edmaths} + + +\begin{document} + +\flushbottom +\pagenumbering{roman} + +\maketitle + +\declaration{} + +\begin{abstract} +The abstract goes here. +\end{abstract} + +\dedication{In memory of my sanity.} + + +\tableofcontents +% Uncomment to add 'Contents' entry to contents page +% \addcontentsline{toc}{chapter}{Contents} + +\newpage +\pagenumbering{arabic} + +\chapter{First Chapter} + +This is an example of a report made using the \texttt{edmaths} stylesheet~\cite{koeppe2007}, which is designed to ensure compliance with the University of Edinburgh's typesetting requirements for reports and theses. + +\section{First section} + +\section{Second section} + + +\chapter{Second Chapter} + +\appendix + +\chapter{First Appendix} + + +\bibliography{example-references} +\addcontentsline{toc}{chapter}{Bibliography} +% Choose a reference style from https://verbosus.com/bibtex-style-examples.html +\bibliographystyle{ieeetr} +% Or use the `amsrefs' package, https://ams.org/tex/amsrefs.html + +\end{document} diff --git a/sample.tex b/sample.tex deleted file mode 100644 index 58c71c3..0000000 --- a/sample.tex +++ /dev/null @@ -1,62 +0,0 @@ -\documentclass{beamer} -\usetheme[colour=UoEblue]{UsherNew} -%% Alternative options are: -%\usetheme[colour=USHERgreen]{UsherNew} -%\usetheme[colour=USHERblue]{UsherNew} -\usepackage{beamernotes} -\usepackage{lipsum} -\pdfcompresslevel=9 -\pdfobjcompresslevel=3 - -\title[Insert Title (short version of title)]{Title of Presentation} -\author{John Doe} -%\institute{Institute Name} -\date{3\textsuperscript{rd} July 2020} - -\begin{document} - -\begin{frame} - \titlepage -\end{frame} -\bnote{This generates notes for pdfpc. These notes also appear - on the handout/article versions.} - -\begin{frame}[t]{Header title bold} - Main body text Sans. Here is a way to \alert{highlight text}. - \label{sec:Test1} - \begin{itemize} - \item Bullet points - \item ... - \begin{itemize} - \item subitem - \end{itemize} - \item \lipsum[2] - \end{itemize} -\end{frame} - -\bnote{This is a note for the first slide. Mention how } - - -\begin{frame}{Inserting a figure, some maths...} - \begin{itemize} - \item Here's a figure: - \begin{figure}[h] - \centering - \colorbox{blue}{\includegraphics[width=.13\linewidth]{Images/edinburgh-logo}} - \caption{The University of Edinburgh's logo} - \label{fig:edinburgh-logo} - \end{figure} - \item - And here's a famous equation: - \begin{eqnarray} - \label{eq:schroedinger} - i\hbar {\frac {\partial }{\partial t}}|\psi (t)\rangle ={\hat {H}}|\psi (t)\rangle - \end{eqnarray} - \end{itemize} -\end{frame} - - - - - -\end{document} -- GitLab