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

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

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

Post by tornado »

Hello,
iam using the MastersDoctoralThesis template from https://www.latextemplates.com/template ... ral-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:

Code: Select all

\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:

Code: Select all

\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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply