From c22bdede8f9b45b6dd93f8c0fbec39062fcf309f Mon Sep 17 00:00:00 2001 From: sivertism <sliper.sivert@gmail.com> Date: Wed, 13 Feb 2019 11:59:04 +0000 Subject: [PATCH] Updated templates to use the subcaption package, replacing the deprecated subfigures package. --- source/latex/uosdocs/uosdocs.dtx | 8 ++++---- templates/latex/uosdocs/Article.tex | 4 ++-- templates/latex/uosdocs/Introduction.tex | 4 ++-- tex/latex/uosdocs/uosarticle.cls | 2 +- tex/latex/uosdocs/uosgdp.cls | 2 +- tex/latex/uosdocs/uosgdpsummary.cls | 2 +- tex/latex/uosdocs/uosminithesis.cls | 2 +- tex/latex/uosdocs/uosprogress.cls | 2 +- tex/latex/uosdocs/uosproject.cls | 2 +- tex/latex/uosdocs/uosreport.cls | 2 +- tex/latex/uosdocs/uosthesis.cls | 2 +- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/source/latex/uosdocs/uosdocs.dtx b/source/latex/uosdocs/uosdocs.dtx index a9e449a..8bb3176 100644 --- a/source/latex/uosdocs/uosdocs.dtx +++ b/source/latex/uosdocs/uosdocs.dtx @@ -513,10 +513,10 @@ % % \subsection{Subfigures and subtables} % -% Load the \texttt{subfigure} package, so we can include subfigures easily. +% Load the \texttt{subcaption} package, so we can include subfigures easily. % % \begin{macrocode} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} % \end{macrocode} @@ -1596,11 +1596,11 @@ You probably found all the files from \cite{Gunn:2001:pdflatex}. This page shows you a subfigure example in \fref{Figure:figsubex}. \begin{figure}[!htb] \centering - \subfigure[The left caption]{ + \subcaptionbox{The left caption}{ \includegraphics[width=4.2cm]{figure} \label{Figure:figsubex:left} } - \subfigure[The right caption]{ + \subcaptionbox{The right caption}{ \includegraphics[width=4.2cm]{figure} \label{Figure:figsubex:right} } diff --git a/templates/latex/uosdocs/Article.tex b/templates/latex/uosdocs/Article.tex index 78ce995..b1e4fd3 100644 --- a/templates/latex/uosdocs/Article.tex +++ b/templates/latex/uosdocs/Article.tex @@ -57,11 +57,11 @@ You probably found all the files from \cite{Gunn:2001:pdflatex}. This page shows you a subfigure example in \fref{Figure:figsubex}. \begin{figure}[!htb] \centering - \subfigure[The left caption]{ + \subcaptionbox{The left caption}{ \includegraphics[width=4.2cm]{figure} \label{Figure:figsubex:left} } - \subfigure[The right caption]{ + \subcaptionbox{The right caption}{ \includegraphics[width=4.2cm]{figure} \label{Figure:figsubex:right} } diff --git a/templates/latex/uosdocs/Introduction.tex b/templates/latex/uosdocs/Introduction.tex index a7cad11..cc08b71 100644 --- a/templates/latex/uosdocs/Introduction.tex +++ b/templates/latex/uosdocs/Introduction.tex @@ -28,11 +28,11 @@ You probably found all the files from \cite{Gunn:2001:pdflatex}. This page shows you a subfigure example in \fref{Figure:figsubex}. \begin{figure}[!htb] \centering - \subfigure[The left caption]{ + \subcaptionbox{The left caption}{ \includegraphics[width=4.2cm]{figure} \label{Figure:figsubex:left} } - \subfigure[The right caption]{ + \subcaptionbox{The right caption}{ \includegraphics[width=4.2cm]{figure} \label{Figure:figsubex:right} } diff --git a/tex/latex/uosdocs/uosarticle.cls b/tex/latex/uosdocs/uosarticle.cls index 7eaa22c..2b2565c 100644 --- a/tex/latex/uosdocs/uosarticle.cls +++ b/tex/latex/uosdocs/uosarticle.cls @@ -131,7 +131,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} diff --git a/tex/latex/uosdocs/uosgdp.cls b/tex/latex/uosdocs/uosgdp.cls index 9b69bd9..2fbb219 100644 --- a/tex/latex/uosdocs/uosgdp.cls +++ b/tex/latex/uosdocs/uosgdp.cls @@ -131,7 +131,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} diff --git a/tex/latex/uosdocs/uosgdpsummary.cls b/tex/latex/uosdocs/uosgdpsummary.cls index 2d7d050..6be7d14 100644 --- a/tex/latex/uosdocs/uosgdpsummary.cls +++ b/tex/latex/uosdocs/uosgdpsummary.cls @@ -129,7 +129,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} diff --git a/tex/latex/uosdocs/uosminithesis.cls b/tex/latex/uosdocs/uosminithesis.cls index 2e64ca3..817370a 100644 --- a/tex/latex/uosdocs/uosminithesis.cls +++ b/tex/latex/uosdocs/uosminithesis.cls @@ -131,7 +131,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} diff --git a/tex/latex/uosdocs/uosprogress.cls b/tex/latex/uosdocs/uosprogress.cls index 281e51d..e8e05ab 100644 --- a/tex/latex/uosdocs/uosprogress.cls +++ b/tex/latex/uosdocs/uosprogress.cls @@ -131,7 +131,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} diff --git a/tex/latex/uosdocs/uosproject.cls b/tex/latex/uosdocs/uosproject.cls index 0cce1a0..5f911a9 100644 --- a/tex/latex/uosdocs/uosproject.cls +++ b/tex/latex/uosdocs/uosproject.cls @@ -131,7 +131,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} diff --git a/tex/latex/uosdocs/uosreport.cls b/tex/latex/uosdocs/uosreport.cls index ab08a99..94cb244 100644 --- a/tex/latex/uosdocs/uosreport.cls +++ b/tex/latex/uosdocs/uosreport.cls @@ -131,7 +131,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} diff --git a/tex/latex/uosdocs/uosthesis.cls b/tex/latex/uosdocs/uosthesis.cls index 4ca0e7e..0a2f6c4 100644 --- a/tex/latex/uosdocs/uosthesis.cls +++ b/tex/latex/uosdocs/uosthesis.cls @@ -135,7 +135,7 @@ \setcounter{dbltopnumber}{9} \usepackage{graphicx} \usepackage{epstopdf} -\usepackage[scriptsize]{subfigure} +\usepackage[]{subcaption} \usepackage{booktabs} \usepackage{rotating} \usepackage{listings} -- GitLab