# How to place page number in top right corner of title page using scartcl class

I was able to place page numbers on all other pages using \rhead{\thepage} but the page number on the title page is on the bottom middle. I am using \pagestyle{fancy}. How do I place the page number in the top right?

• The title page by default uses the plain pagesstyle. Try adding \thispagestyle{fancy} or redefine the plain page style with fancyhdr. May 11 at 19:51
• although this works, I have a running header on the left which I do not want on the title page as well as the line. How would I redefine the plain page style? Thanks May 11 at 19:57
• Do you want a header rule for this title page? May 11 at 20:00
• I think that should work, how would I add the header though without the line showing up May 11 at 22:48

With a KOMA-Script class it is recommended to use package scrlayer-scrpage for header and footer.

Example:

\documentclass{scrartcl}
\usepackage{blindtext}% only for dummy text

\clearpairofpagestyles

\begin{document}
\title{Title}
\author{Author}

\maketitle
\blinddocument
\end{document}


You could use

\fancypagestyle{plain}{}


This makes page style plain the same as fancy. The second (empty) parameter can be used to add additional definitions if you want plain to be a little different from fancy. So if you don't want the running header on the left, and not the line, use

\fancypagestyle{plain}{\fancyhead[R]{}\renewcommand{\headrulewidth}{0pt}}