Skip to main content
All CollectionsAuthor Help
I'm using {sample: false} to exclude some chapters from my sample book, but the chapters are still appearing in the sample book! What is happening?
I'm using {sample: false} to exclude some chapters from my sample book, but the chapters are still appearing in the sample book! What is happening?

Keywords: sample, false, still appearing, still included

Leanpub Support avatar
Written by Leanpub Support
Updated over 2 years ago

The issue here is probably that we don't explain how sample books work properly.

When you use sample: false, the chapter title still appears in the table of contents for the sample book. This is so people get an accurate understanding of how much content is in the "real" book, and the topics it covers.

But if you go to an excluded chapter in the sample book, you will see this:

Just to be clear, here is how it was done in this example:

{sample: false}
# Chapter Two

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

​

​

Did this answer your question?