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)
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI'm using MastersDoctoralThesis template to write my thesis. By default it gives chapters as below:
I want a title similar to below (center aligned, CAPITALIZED, and chapter number in roman numerals)
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).
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:
Disclaimer: Only with the next update.
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
Mar 25, 2018 at 7:51