A place where I want to submit a paper requires the following.
- A certain header on the title page,
- the abstract not on the title, but the second page
- a different header from page 2 onward
- page number displayed on all pages including title pages (as counting title page as 1).
This sounds easy enough. I originally attempted this with fancyhdr
, now switched to scrlayer-scrpage
because I read that fancyhdr
should not go with KOMA, but still cannot get it to work. Here is my MWE:
\documentclass[12pt, titlepage]{scrartcl}
\usepackage{geometry}
\geometry{top=1in, bottom=1in, left=1in, right=1in}
\usepackage[affil-it]{authblk}
\linespread{2}
\usepackage{scrlayer-scrpage}
\clearpairofpagestyles
\begin{document}
\ihead{\normalfont Running Head: This header to be only on title page}
\chead{}
\ohead{\normalfont \thepage }
\setcounter{page}{1}
\title{mytitle}
\author{Donald Duck}
\maketitle
\begin{abstract}
\begin{center}
Abstract
\end{center}
Abstract text...
\end{abstract}
\newpage
\ihead{\normalfont This header to appear from abstract page onward}
\chead{}
\ohead{ \normalfont \thepage}
\section{Introduction}
Begin text here.
\end{document}
As of now, there are no headers on the title and abstract page, and the header that is supposed to start on page 2 only starts at page 3.
What are the commands necessary to display two different headers on the title page and "abstract page"?
Best Answer
With option
titlepage
command\maketitle
uses environmenttitlepage
that uses\thispagestyle{empty}
. This is independent from usingfancyhdr
orscrlayer-scrpage
(and even the same witharticle
instead ofscrartcl
).For the head of the title page you can use
\titlehead
. If it should not be part of the text area but of the page margin, you can move it up using\vspace*
and\vspace
with negative values.The centered abstract head can be set automatically using option
abstract
. But with optiontitlepage
theabstract
environment is also atitlepage
environment. So it uses\thispagestyle{empty}
too. In the following example I use an explicit\thispagestyle{headings}
in theabstract
environment to change the page style of the abstract page.Results in:
An alternative would be, to change the page style of the title page. You can use again
\titlehead
to achieve this: