3

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

6

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.

| improve this answer | |
  • thank you! it works .. but there are a liitle more concerns.1. Single set of braces worked as well. 2. chapter numbers are now I, II, III but when using \section{First section} in fourth chapter, it gives: IV.1 First section i.e section numbering also changed partially into roman (both in TOC and main body) PS : I need to keep section numbering – anup Mar 25 '18 at 7:47
  • @anupdhungana Please edit the question. – Johannes_B Mar 25 '18 at 7:48
  • Of course it changes. The sections inherit the style of the chapters. It is a matter of consistency. – Johannes_B Mar 25 '18 at 7:49
  • You can change the section numbering similar to the chapter numbering. \renewcommand{\thesection}{\arabic{chapter}.\arabic{section}} – Johannes_B Mar 25 '18 at 7:51
  • that works very well. one more question just for clarification: why is double braces required ? it worked in single {} in my case. – anup Mar 25 '18 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.