Skip to content

Commit

Permalink
Add Plates
Browse files Browse the repository at this point in the history
- Added list of plates (photographs)
- Added plates environment
  • Loading branch information
draldric committed Mar 19, 2019
1 parent ff8439c commit 660d3c6
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Chapters/ExampleChapter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ \chapter{Example Chapter}\label{ch:Example}


\section{Figures}
This section will provide examples of how to create figures, and different types of multi/sub-figures. Additionally, if you have many figures in a section and they are bleeding too much into the following sections a \textbackslash{}clearpage command can be issued before the next section. However, note that this will force the next section to begin on a new page.
\begin{figure}[!htb]
This section will provide examples of how to create figures, and different types of multi/sub-figures. Additionally, if you have many figures in a section and they are bleeding too much into the following sections a \textbackslash{}clearpage command can be issued before the next section. However, note that this will force the next section to begin on a new page. Note that the first ``figure'' is actually a plate; a plate is the proper title associated with a photograph, using the environment `plate' instead of figure and command listofplates will generate everything for you.
\begin{plate}[!htb]
\centering
\includegraphics[width=0.7\textwidth]{example-image}
\caption{This is an example of a single image figure.}
\caption{This is an example of a single image plate.}
\label{fig:singleImage}
\end{figure}
\end{plate}

\begin{figure}[!htb]
\centering
Expand Down
39 changes: 36 additions & 3 deletions ualberta.cls
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,22 @@
{\@dblfloat{table}}
{\end@dblfloat}

\newcounter{plate}[chapter]
\renewcommand \theplate
{\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@plate}
\def\fps@plate{tbp}
\def\ftype@plate{3}
\def\ext@plate{lop}
\def\fnum@plate{\platename\nobreakspace\theplate}

\newenvironment{plate}
{\@float{plate}}
{\end@float}

\newenvironment{plate*}
{\@dblfloat{plate}}
{\end@dblfloat}

\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\p@}
Expand Down Expand Up @@ -707,6 +723,7 @@
\newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
\newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
\newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}

\newcommand\listoffigures{%
\if@twocolumn
\@restonecoltrue\onecolumn
Expand All @@ -720,6 +737,7 @@
\if@restonecol\twocolumn\fi
}
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}

\newcommand\listoftables{%
\if@twocolumn
\@restonecoltrue\onecolumn
Expand All @@ -734,6 +752,20 @@
\if@restonecol\twocolumn\fi
}
\let\l@table\l@figure

\newcommand\listofplates{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listplatename}%
\@mkboth{\MakeUppercase\listplatename}%
{\MakeUppercase\listplatename}%
\@starttoc{lop}%
\if@restonecol\twocolumn\fi
}
\let\l@plate\l@figure
\newdimen\bibindent
\setlength\bibindent{1.5em}

Expand Down Expand Up @@ -771,8 +803,8 @@

\newcommand\makededication{\chapter*{}\begin{center}\em \@dedication \em\end{center}}

\def\listofplates{\chapter*{\listplatesname}\pagestyle{plain}\thispagestyle{plain}}
\def\endlistofplates{\newpage}
% \def\listofplates{\chapter*{\listplatesname}\pagestyle{plain}\thispagestyle{plain}}
% \def\endlistofplates{\newpage}

\usepackage[acronym,nonumberlist]{glossaries}
\makenoidxglossaries
Expand Down Expand Up @@ -825,11 +857,12 @@
\newcommand\listfigurename{List of Figures}
\newcommand\listtablename{List of Tables}
\newcommand\listsymbolname{List of Symbols}
\newcommand\listplatesname{List of Plates}
\newcommand\listplatename{List of Plates}
\newcommand\bibname{Bibliography}
\newcommand\indexname{Index}
\newcommand\figurename{Figure}
\renewcommand\tablename{Table}
\newcommand\platename{Plate}
\newcommand\partname{Part}
\newcommand\chaptername{Chapter}
\newcommand\appendixname{Appendix}
Expand Down
Binary file modified ualberta.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions ualberta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
\tableofcontents % Create the Table of Contents
\listoftables % Uncomment line if you have tables
\listoffigures % Uncomment line if you have figures
\listofplates % Uncomment line if you have plates (photographs)
%\listofsymbols % Uncomment if you have a List of Symbols (Nomenclature)
%\abbreviations % Uncomment if you have a List of Acronyms
%\glsaddall \generateglossary % Uncomment if you have Glossary
Expand Down

0 comments on commit 660d3c6

Please sign in to comment.