## LaTeX forum ⇒ LyX ⇒ Include pdf, page number without page header

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
schroedingers_lion
Posts: 8
Joined: Sun May 19, 2019 5:31 pm

### Include pdf, page number without page header

Good evening,

can anyone tell me how to insert page numbers on my included pdf document without the page headers?
I am in document class KOMA-script Book. On every page, I have a header that consists of a horizontal line with the name of the current chapter. However, in my included pdf, this runs right through the first text line.

In the dialog for including pdfs, I have chosen the options "pages=-" which gives me only the pdf, without header or number.
If I also add "pagecommand={\pagestyle{plain}}" or "pagecommand={\pagestyle{empty}}" I do get numbers, but also with a header. Shouldn't "plain" do what I want? Is this a Lyx bug?

Best regards!

rais
Posts: 220
Joined: Sun Nov 16, 2014 8:51 pm
doubtful, but then, I don't use Lyx.
From your description you've already changed the standard behavior of scrbook (pages starting a chapter don't usually contain a header, and you claim to have it on all pages).
And by the sound of it you've redefined plain, even empty page style.

To see how, please export your LyX file to LaTeX, then you can post the resulting .tex file here.

KR
Rainer

schroedingers_lion
Posts: 8
Joined: Sun May 19, 2019 5:31 pm
Hi, thank you for the response.

So I do not have the header at chapter-pages - sorry for being inaccurate.
Since it is a large document and the content is not meant for the public, I would have to delete all the content passages in the .tex document.

Maybe the preamble is enough? In the document itself, there does not seem to be any adjustment of pagestyles or documentclasses.


rais
Posts: 220
Joined: Sun Nov 16, 2014 8:51 pm
ah, there's no such redefinition after all.
Try
pagecommand={\thispagestyle{plain}}

(notice the "this")

KR
Rainer