I am running into problem compiling a thesis using a University specific (chapter-based) documentclass. It seems to be default that figures (and tables) are numbered Figure thechapter.thesection.figure
Problem is that I have figures placed directly in the section, i.e.
\chapter{On something}
\begin{figure}
...
\end{figure}
\section{Something specific}
\subsection{Even more in detail}
This renders that the number on the figure will be: Figure 1.0.1; hence I will need to go for either: thechapter.figure (prefered) or contious numbering through the thesis.
I have tried various remedies, e.g:
Code: Select all
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
Code: Select all
\usepackage{chngcntr}
\counterwithout{figure}{section}
Any suggestions?
Cannot easily create a mwe due to documentclass but here is the preamble:
Code: Select all
\RequirePackage[l2tabu,orthodox]{nag} % This package helps prevent you from doing things wrong.
% change doctorate to licentiate if necessary
\documentclass[licentiate,g5paper]{chalmers-thesis}
% All options are; doctorate, licentiate, masters, bachelors, nocover, draft, g5paper,
% and everything the standard report class support.
\usepackage[ansinew]{inputenc} % File encoding, you should try to stick to utf8. Change back!!!
\usepackage{microtype} % Magically improves typesetting for pdflatex
\usepackage{subfiles} % Convenient use of subfiles in documents. Using \subfile is optional. See README
\usepackage[swedish, english]{babel}
\usepackage{csquotes} % Needed for biblatex
\usepackage[
bibencoding=latin1,
citestyle=authoryear,
natbib=true,
hyperref=true,
bibstyle=authoryear,
maxcitenames=2,
sorting=nyt,
dashed=false
]{biblatex}
\usepackage{textcomp}
\usepackage{hyperref} % Required for in document links and document metadata.
\usepackage{mathtools} % All your math related needs
\usepackage{tikz} % Draw figures, required for cover page
\usepackage{subfig} % Subfloats
\usepackage{subfloat}
\usepackage[capitalise]{cleveref}
\usepackage{subfig}
\usepackage{epstopdf}
\usepackage{tikz}
\usepackage{float}
\usepackage{pdfpages}
\usepackage{amsfonts}
\usepackage{pax} % java -jar pax.jar name.pdf
\usepackage{upgreek}
\usepackage{tabularx}
\usepackage{todonotes}
\usepackage{epsfig}
\usepackage[tight,nice]{units}
\usepackage{graphicx}
\usepackage{siunitx}
\usepackage{placeins}
\usepackage{chngcntr}
\crefname{figure}{Figure}{Figures}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{arrows}
\usepackage[parfill]{parskip}
David