kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
833 stars 400 forks source link

Add the word 'Figure' and 'Table' to \listoffigures and \listoftables #136

Closed sidrat28 closed 7 years ago

sidrat28 commented 7 years ago

Hello,

I want to add the word 'Figure' and 'Table' to \listoffigures and \listoftables so that I have something like:

Figure 1.1 caption of figure 1 ### instead of: ### 1.1 caption of figure 1

Table 1.1 caption of table 1 ### instead of: ### 1.1 caption of table 1

I have already tried to add the folowing at the end of the preample.tex file:

\usepackage{tocloft} \renewcommand{\cftfigfont}{Figure } \renewcommand{\cfttabfont}{Table }

It works fine for adding the words 'Figure' and 'Table'. However, the general behaviour when I compile is weird. For example, page headers are removed when they shouldn't and added sometimes when they shouldn't. I also noticed problem with adding the white empty pages.

Thank you for the great template and for the help in advance :)

sidrat28 commented 7 years ago

I managed to resolve the issue by loading the 'tocloft' package with the 'titles' option:

\usepackage[titles]{tocloft} \renewcommand{\cftfigfont}{Figure } \renewcommand{\cfttabfont}{Table }