I leave the page style in LyX to the default and then put this in the preamble.
A Minimal Working Example helps, but I wouldput something like this into the preamble: \usepackage{lastpage} \usepackage{scrpage2} \clearscrheadfoot \ohead{Page \thepage\ of \pageref{LastPage}} \pagestyle{scrheadings} :-)-O el On 2016-10-25 00:55, Rich Shepard wrote: > On Mon, 24 Oct 2016, Dr Eberhard Lisse wrote: > >> I rolled my own with Koma-Script Article, and used scrheadings and >> lastpage in the preamble :-)-O > > The KOMA-script English manual, in Sections 5.1.2 and 5.1.3, > describe running headers and footers and their formatting. What I do > not see is how to integrate text with LaTeX commands. > > For example, this compiles: > > \ohead{\thepage} > > but if I want to have the outerhead read > > \ohead{Page \thepage of \lastpage} > > there's an error. I've tried various modifications of this > unsuccessfully. I'd appreciate a pointer to a doc that tells me how > to format this and how to split a header so it covers two lines. > > Rich >