Quote:
Originally Posted by jray9242
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:
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: