View Single Post
Old 01-03-2018, 12:11 PM   #13
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by jray9242 View Post
Do I create each chapter as a standalone HTML complete with CSS and then merge them in Sigil?
Just keep every chapter in a seperate file.

Instead of having one giant HTML file like this:

Code:
<body>
<p class="pagebreak">Copyright info</p>

<p class="pagebreak">Chapter 1</p>
<p>Text in Chapter 1.</p>

<p class="pagebreak">Chapter 2</p>
<p>Text in Chapter 2.</p>
</body>
You want seperate HTML files:

copyright.xhtml:

Code:
[...]
<body>
<p>Copyright info</p>
</body>
Chapter1.xhtml:

Code:
[...]
<body>
<h2>Chapter 1</h2>
<p>Text in Chapter 1.</p>
</body>
Chapter2.xhtml:

Code:
[...]
<body>
<h2>Chapter 2</h2>
<p>Text in Chapter 2.</p>
</body>
As theducks said, you can use the Split at Cursor button:

Click image for larger version

Name:	SigilSplitAtCursor.png
Views:	212
Size:	42.5 KB
ID:	161203

if you want to split each file one-by-one.

Or you could use the Insert > Split Marker + Edit > Split at Markers method.

In the end, your EPUB should look something like this:

Click image for larger version

Name:	AfterSigilSplitChapters.png
Views:	224
Size:	21.8 KB
ID:	161204
Tex2002ans is offline   Reply With Quote