From f9222a29362bb5f9255d385a4eb4b030fe8a27b0 Mon Sep 17 00:00:00 2001 From: Ola Leifler <ola.leifler@liu.se> Date: Tue, 4 Oct 2016 11:58:55 +0200 Subject: [PATCH] Fixes #10 with the use of package totalcount --- liuthesis.cls | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/liuthesis.cls b/liuthesis.cls index a70e7d6..ef5e71a 100644 --- a/liuthesis.cls +++ b/liuthesis.cls @@ -6,9 +6,9 @@ %% Maintainer: %% Created: Fri Mar 20 08:25:23 2009 (CET) %% Version: -%% Last-Updated: Tue Jun 21 13:27:01 2016 (+0200) +%% Last-Updated: Tue Oct 4 11:57:14 2016 (+0200) %% By: Ola Leifler -%% Update #: 1140 +%% Update #: 1144 %% URL: %% Keywords: %% Compatibility: @@ -69,6 +69,9 @@ \RequirePackage[absolute]{textpos} +% For conditionally including lists of tables and figures +\RequirePackage[figure,table]{totalcount} + \createvariable{thesislanguage} \createvariable{faculty} \createvariable{issn} @@ -509,7 +512,7 @@ \clearpage{} {\ifxetex\fontspec{Times}\fi \begin{abstract} - {\footnotesize \@abstract} + {\small \@abstract} \end{abstract} } } @@ -891,11 +894,9 @@ publication and for assurance of document integrity, please refer to its www hom {\addcontentsline{toc}{chapter}{Acknowledgments}} \@acknowledgments \clearpage - \tableofcontents - \clearpage{} - \listoffigures - \clearpage{} - \listoftables + \tableofcontents + \iftotalfigures \clearpage{}\listoffigures\fi + \iftotaltables \clearpage{}\listoftables\fi %\cleartorecto% Does not work for some reason \ifprinterfriendly \cleartooddpage -- GitLab