Re: KOMA-Script book: duplicate ToC pages [RESOLVED]

2022-11-30 Thread Rich Shepard

On Wed, 30 Nov 2022, Udicoudco wrote:


DId you use \chapter* for the preface title? The starred version does not
affect headers. I saw in the preamble that you sent that you use
\pagenumbering{roman}, I'm guessing that means you are unaware of the
\frontmatter, \mainmatter, \backmatter commands.


Udi,

It's been 17 years since I last wrote a book for publication and I've
forgotten about using \frontmatter, \mainmatter, and \backmatter.


These macros are usually defined in book document classes. The purpose of
\frontmatter is to make the pages numbered in lower case roman numerals,
and the chapters to be unnumbered (even the unstarred version), but the
chapters (using \chapter not \chapter*) will appear in in the ToC and will
change \chaptermark as usual.


Yep. That did the trick. Now Preface's second page has Preface in the header
and the Introduction is still Chapter 1. Thank you.

Regards,

Rich


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script book: duplicate ToC pages [RESOLVED]

2022-11-30 Thread Udicoudco
On Wed, Nov 30, 2022 at 10:03 PM Rich Shepard 
wrote:

> On Wed, 30 Nov 2022, Rich Shepard wrote:
>
> > The reason is that I somehow put the ToC and lists after the Preface,
> too.
>
> Okay. One more issue: Why does the second page of the Preface have 'List of
> Tables' in the header rather than 'Preface'?
>
> Rich
>
Hello,

DId you use \chapter* for the preface title? The starred version does not
affect headers. I saw in the preamble that you sent that you use
\pagenumbering{roman}, I'm guessing that means you are unaware of the
\frontmatter, \mainmatter, \backmatter commands.

These macros are usually defined in book document classes. The purpose of
\frontmatter is to make the pages numbered in lower case roman numerals,
and the chapters to be unnumbered (even the unstarred version), but the
chapters (using \chapter not \chapter*) will appear in in the ToC and will
change \chaptermark as usual.

I think currently lyx is not supporting \frontmatter, so you will need to
use it with ERT, and you should note that because of that chapters in the
front matter will be numbered in the GUI but not in the exported pdf. The
problem with that is it will affect the numbers in the main matter, that's
why i usually write the chapters in the front matter in ERT (i.e i write
\chapter{Chapter Name} in ERT). I've provided a minimal example to
demonstrate that (note the page numbering although i did not write anything
in the preamble, and see which chapters are in the ToC).

For more information I suggest you read this page

.

Regards,
Udi

> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


newfile8.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script book: duplicate ToC pages [RESOLVED]

2022-11-30 Thread Rich Shepard

On Wed, 30 Nov 2022, Rich Shepard wrote:


The reason is that I somehow put the ToC and lists after the Preface, too.


Okay. One more issue: Why does the second page of the Preface have 'List of
Tables' in the header rather than 'Preface'?

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script book: duplicate ToC pages [RESOLVED]

2022-11-30 Thread Rich Shepard

On Wed, 30 Nov 2022, Rich Shepard wrote:


Why, after the ToC, List of Figures, List of Tables, and Preface (which
has as a header List of Tables rather than Preface) followed by a blank
page, then pages with only the titles of the ToC and lists before the
introduction.


The reason is that I somehow put the ToC and lists after the Preface, too.

Sigh.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users