(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
#+LaTeX_HEADER: \usepackage{lastpage}
#+LaTeX_HEADER: \usepackage{scrpage2}
#+LaTeX_HEADER: \pagestyle{scrheadings}
#+LaTeX_HEADER: \cfoot{\thepage\ of \pageref{LastPage}}
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
#+LaTeX_HEADER: \thispagestyle{scrheadings}
How do I show "1 of Y" on the first page while keeping the title and author format intact?
Thank you in advance for any advice.
#+LaTeX_HEADER:kind of syntax you're using? I've never seen that before. – raphink Sep 06 '11 at 08:38\maketitleexplicitly since\maketitleshould 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 06 '11 at 08:58