1

I encountered problems with numbering of figure and table in thesis where it should be appeared Figure/Table 1.1,1.2...2.1 . I have tried to solve this problem form this post [here] as well as [here]. I have make changes according to the following suggestion from this link such as:

\usepackage{chngcntr}
\counterwithin{figure}{section}

or

\setcounter{figure}{0}
\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}

Yet. there is no changes in the numbering... Below is my MWE

\documentclass{uumthesis}
\usepackage[nosectionbib,natbibapa]{apacite}
\usepackage{hyperref}

\makeatletter
\patchcmd{\st@rtbibchapter}{\addcontentsline{toc}{chapter}{\bibname}}{\addxcontentsline{toc}{chapter}
{\texorpdfstring{\spacedlowsmallcaps{\bibname}}{\bibname}}}{}{}
\makeatother

\usepackage{graphicx}
\usepackage{amsmath}

\usepackage{caption}
\usepackage{subcaption}

\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{tabularx}

\usepackage{amssymb}

\begin{document}
\mainmatter

......

\bibliographystyle{apacite}
\bibliography{myref}
\end{document}

here is the example from the figures This suppose to be figure 1.1

This suppose to be figure 1.4

as you can see, numbering of figure is not according to section

Norin
  • 39
  • 1
    I cannot test your example because the uumthesis class is not available for me. hyperref is loaded ways too early and it has no table or figure caption at all... Please provide a compilable document that shows your issue and give us the information where this uumthesis.cls can be found –  Jan 01 '19 at 15:35
  • @ChristianHupfer the uumthesis.cls can be obtain from http://liantze.penguinattack.org/download_uumthesis.html – Norin Jan 01 '19 at 15:51
  • Looking into that class file I see nothing that prevents your request on a quick check. You must doing something wrong elsewhere. –  Jan 01 '19 at 15:59
  • Perhaps your document class does not use \thefigure in captions. Otherwise, see what \meaning\thefigure produces. – John Kormylo Jan 01 '19 at 17:19
  • @JohnKormylo: I've checked your suggestion -- the class uses the caption package and there is no indication it would omit \thefigure or is setting the figure number in a different manner. –  Jan 01 '19 at 18:18
  • @ChristianHupfer how can I track changes that I made, for me to be able for me to identify my error? It is from sample.aux forsample.log? – Norin Jan 06 '19 at 02:41

0 Answers0