LyX v2.0.6 on Linux. Document class is book
(extra font sizes).
Scenario
I have a master document including two child documents (so far), both of which are the same document class as the master. The first child has some non-numbered chapters (chapter*). The second child document begins with Part I, after which I want to begin numbered chapters.
I begin a new paragraph (hit Return) and select Chapter from the style drop-down. I get a big bold "Chapter 1". So far, so good.
Problem
Almost anything I do after that makes the Chapter heading disappear.
For example, I pasted in text for the first paragraph of the chapter but it appeared in Chapter style. Changing it to Standard made the chapter heading disappear. Then I inserted another line above the paragraph and changed that to a chapter. Then, when I press the down arrow to continue editing my text, the heading disappears again.
My question
How can I have a book that consists of Parts with numbered chapters in LyX?
Update
The chapters stay if they have a non-empty name. I don't really want to name them, but it seems I can use a hard space (ctrl+space). Am I thereby Doing It Wrong, or is this an appropriate workaround for the situation?
book
so I assume this is a LyX issue. I think LyX allows you to enter code directly but I've never used it so don't know the details. But\chapter{}
will do what you want.\chapter{}
in an ERT (Ctrl + L), as the chapters show up in the Outline view.\chapter{~}
would be rendered differently than\chapter
? This is not just a book + chapter issue, right? I believe it is the same with any numbered section.\documentclass[openany]{book} \begin{document} \chapter{} Lorem ipsum \chapter{~} Lorem ipsum \end{document}
. Notice there is more whitespace before Lorem ipsum in the second case. Screenshot: imgur.com/UeIqBpX. (scav: This would be a reason for preferring ERTs. It didn't occur to me when I wrote my previous comment.)