Page numbers not showing in place

sovhist sovhist at yahoo.com
Tue Nov 30 06:18:40 UTC 2021


  
> On 11/29/21 7:00 PM, Melvin Bolton wrote:
>> I have in the past completed a lengthy book, using Lyx,  without  
>> needing to trouble anybody for help,  but I'm now baffled by what  
>> should be a simple, basic task and I have no idea what to try next.
>>  
>> My problem is that the pagestyle settings that should place page  
>> numbers in the footer, are showing them in the output only on the  
>> first page of each chapter, which the User Guide says is treated by  
>> Lyx as a special environment.
>> I began with KOMA-Script ( scrbook) with pagestyle set to 'plain' as  
>> I'd done previously. This places page numbers in the outer end of the  
>> footer as I prefer them. When I found them only appearing on the
>> first  
>> page of each chapter I searched online and tried pasting a few  
>> commands in the preamble but nothing helped and mostly I got  
>> compilation errors. I've cleared the preamble.
>>  
>> I tried Lyx Standard Class (Book) with pagestyle set to 'plain',
>> which  
>> centred the page numbers as it should, but still only on first pages  
>> of chapters. Neither was there any improvement after I tried
>> pagestyle  
>> set to 'fancy' and tried to customize that. It's as though chapter  
>> footers are not accessible, except for first page.
>>  
>> In my document, immediately before the first chapter, I have the  
>> following ERT:  \mainmatter\pagestyle{plain} \setcounter{page}{1}
>>  
>> The frontmatter is fine because I have don't want page numbers there  
>> and have pagestyle set to 'empty.' That, at least, has worked; there  
>> were Roman numerals there to begin with.
>> Finally, I did a reinstallation of Lyx (ver. 2.3.6.1) in case of  
>> corruption, (apparently not) and I'm now out of ideas.
>>  
>> I shall be truly grateful for any help, but I will need precise  
>> instruction if I am to paste commands correctly into the preamble. I  
>> really am an old novice.
>>  
>> Thank you
>>  
>> Melvin
>>  

Hello.

First of all, you should delete (or comment out) all the stuff about
pagestyle from preamble and document itself. Then set pagestyle to fancy
and after that you should inseart headers and footers to make  this
pagestyle work. How to do that, you can see in the UserGuide (it is
available from the Help menu), in 6.12 section.
Hope this helps.

Valdemaras


More information about the lyx-users mailing list