# KOMA-article: Page X of Y not showing in first page footer

(Warning: Question from newbie to LaTeX :-)

Using koma-article in Org-mode, I want to show "X of Y" in the footer of all pages. I followed the instructions in this post, and it works fine for pages 2 and after, but the first page shows only "1" in the footer.

I have the following:

#+TITLE: Title
#+AUTHOR: Author
#+DATE: Today
#+OPTIONS:   H:3 num:nil toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+LaTeX_CLASS: koma-article


Adding the following 2 lines to the above makes the footer on the first page to show "1 of Y" as wanted, but then the title and author is missing from the top of the first page (although the date still shows at the top):

#+LaTeX_HEADER: \maketitle


How do I show "1 of Y" on the first page while keeping the title and author format intact?

-
Hello and welcome to TeX.SX! The best way to embed code in your questions is to simply paste it and indent it by 4 spaces. –  ℝaphink Sep 6 '11 at 7:56
What is this #+LaTeX_HEADER: kind of syntax you're using? I've never seen that before. –  ℝaphink Sep 6 '11 at 8:38
@Raphink: It's syntax of the Emacs Org mode for export to LaTeX. –  mhp Sep 6 '11 at 8:42
These are Emacs Org-mode in-buffer settings prefixes. Everything after the : gets passed to the LaTeX exporter from Org-mode, as I understand it. –  Toby Sep 6 '11 at 8:45
@Toby: You don't need to specify \maketitle explicitly since \maketitle should be automatically added by the Org mode export function. Moreover, #+LaTeX_HEADER: \thispagestyle{scrheadings} is not much good as this will be exported to the preamble (before \begin{document}). –  mhp Sep 6 '11 at 8:58

Try

...

When using scrpage2 with scrheadings, you need to specify the whole headers and footers yourself. Here, you've only specified the \cfoot, so you need to also specify the header.