[Tex/LaTex] Changing chapter titles in Masters-Doctoral-thesis template

chaptersformattingtemplates

I'm using MastersDoctoralThesis template to write my thesis. By default it gives chapters as below:

1 Introduction

I want a title similar to below (center aligned, CAPITALIZED, and chapter number in roman numerals)

Chapter I

INTRODUCTION

Best Answer


If you do not have to use this template, do not use it. See https://en.wikibooks.org/wiki/LaTeX/Scientific_Reports


Do not make any changes to the class file. If you do, you must rename it.

Add the following three lines to the preamble to get what you want. There is no need to change the class file. The class was designed to be customizable to the end user. The option chapterinoneline is not default and needs to be commented out.

\renewcommand{\chapteralign}{\centering}
\renewcommand{\chapterfont}{\Huge\bfseries\MakeUppercase}
\renewcommand{\thechapter}{\Roman{chapter}}

and in the document body use

 \chapter{{Wombat}}

(note the extra craces).

anupMdt


Alternatively, one could use at a later point

\renewcommand{\thechapter}{\arabic{chapter}}
\renewcommand{\mdtChapapp}{}{}
\renewcommand{\chapteralign}{\raggedleft}
\renewcommand{\chapterfont}{\color{black}\huge}
\renewcommand{\chapterinbetweenskip}{}{\vspace*{0pt}}
\renewcommand{\chapterprefixfont}{\fontsize{56pt}{0pt}\selectfont\color{mdtRed}}

\chapter{Alpaca}

to get the following result:

anupMdtAlt

Disclaimer: Only with the next update.

Related Question