LaTeX forum ⇒ Theses, Books, Title pagesMastersDoctoralThesis template - how to turn off page number on a specific page?

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
tornado
Posts: 2
Joined: Fri May 13, 2022 8:37 am

MastersDoctoralThesis template - how to turn off page number on a specific page?

Postby tornado » Fri May 13, 2022 8:47 am

Hello,
iam using the MastersDoctoralThesis template from https://www.latextemplates.com/template/masters-doctoral-thesis.

I want to add a page right after the cover with some informations on the book - and i dont want to show the page number on that page, but my current skills do not sufficient for this. In the .cls file i created an environment for the page like this to set the pagestyle to empty but the number still appears:

\ifbool{consistentlayout}{
	\DeclareDocumentCommand{\behindthecoverpage}{
	    \thispagestyle{empty}
		m O{\vspace*{.7\textheight} }  }{
			\tttypeout{Dedicatory}
			\markboth{}{}
			#2
			{\hfill\parbox{.4\textwidth}{\flushright#1\par}}
		}
}{
	\newcommand\behindthecoverpage[1]{
		%\checktoopen
		\null\vfil
		\thispagestyle{empty}
		#1
		\vfil\null
	}
}


In the .tex file i create the environment like this:

\behindthecoverpage{
\begin{minipage}[b]{0.9\textwidth}
\vspace{21cm}
\small\raggedright
\setlength{\parskip}{0.5\baselineskip}
{\scshape\small My Name: }\textsl{\ttitle}. \,Month 202X\par
{\scshape\small Supervisors:\par}
{\small Prof. Dr. XY}\\
{\small Prof. Dr. XY 2}
\end{minipage}
}


Can anyone please help?

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook

Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 3 guests