2

Template can be found here: https://www.latextemplates.com/template/masters-doctoral-thesis

    \usepackage{graphicx}

    \begin{figure}[h!]

     \centering

    \includegraphics[width=0.7\linewidth]{Figures/Executiontime}

        \caption[Execution time]{Execution time}
        \label{fig:Execution time}

    \end{figure}

it gives me an output like this enter image description here

How i can change from FIGURE 4.5 to Figure 4.5 in small letters rather than caps

3
  • 4
    I think it depends on the documentclass and the packages you use... So please give a minimum working example starting from the documentclass command and ending in \end{document}... Welcome!
    – koleygr
    Commented Jul 20, 2017 at 16:19
  • Well this is actually for my thesis and i am using this template from latextemplates.com latextemplates.com/template/masters-doctoral-thesis
    – Sunny
    Commented Jul 20, 2017 at 20:27
  • Please accept the answer if your problem is solved. Commented Jul 20, 2017 at 22:03

1 Answer 1

3
  • Look for the file MastersDoctoralThesis.cls.
  • Open it in a text editor of your choice. I recommend notepad++.
  • Lines 202-203 are important.
  • Delete labelfont=sc (sc = Small Caps, google it!) or replace it with labelfont=bf for example.
  • Have a look at the caption manual for further information.
  • Recommended: As you can read in the comments, alternatively, you can just use \captionsetup{labelfont=bf} before \begin{document}.

\RequirePackage{caption} % Required for customising the captions
\captionsetup{justification=centerlast,font=small,labelfont=sc,margin=50pt}

enter image description here

enter image description here

enter image description here (using option labelfont=bf)

7
  • 1
    Eh... usually editing .cls files is not recommended, unless it is a really bad class (which will be improved by editing, most likely ;-))
    – user31729
    Commented Jul 20, 2017 at 21:41
  • 1
    \captionsetup{labelfont=bf} before \begin{document} in the document is enough, without editing the .cls file
    – user31729
    Commented Jul 20, 2017 at 21:48
  • I edited the answer accordingly. Since the cls file is not part of a distribution like MiKTeX I did not think that is a "big deal". Commented Jul 20, 2017 at 22:03
  • 1
    It's one of those template classes with issues. Ask @Johannes_B for more information ;-)
    – user31729
    Commented Jul 20, 2017 at 22:04
  • 1
    Making a change in the preamble should be the only answer shown. Changing the class file is just wrong, imho. See the class file itself. Also, it makes support so so so very much harder.
    – Johannes_B
    Commented Mar 9, 2018 at 7:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .