Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2014, 08:02 AM   #1
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
I am sure this is elementary, but I don't know

Using Sigil - I want the picture - which is coded as suggested by Sigil's FAQ page to be the beginning of a chapter and be in the TOC to be on its own page.

<h1 style="text-align: center;" title="True Tales of God's Heroes"><img alt="Misericordia Fourth Reader_Page_013" src="../Images/Misericordia%20Fourth%20Reader_Page_013.jpeg" /></h1>

I want the next line

<p class="s1 s2">TRUE TALES OF GOD’S HEROES</p> to start a fresh page instead of start at the bottom page right under the picture.

I know I can just split into a new file, but is there a simple way in Sigil to command a regular paragraph to begin a fresh page within the same chapter/section/file? Should I code the picture to fill the page? I thought about copying the code from the cover file as that seems to use a code to fill the page. I wasn't sure how to integrate that svg code with the h1 - TOC issue.

The full code is below

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>1 Section 1 | Misericordia Fourth Reader</title>
<meta content="D0F15332-8BE5-4500-848C-D1A65E029346" name="EPB-UUID" />
<link href="../Styles/book.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="body" style="white-space:normal">
<h1 style="text-align: center;" title="True Tales of God's Heroes"><img alt="Misericordia Fourth Reader_Page_013" src="../Images/Misericordia%20Fourth%20Reader_Page_013.jpeg" /></h1>

<p class="s1 s2">TRUE TALES OF GOD’S HEROES</p>
rosshalde is offline   Reply With Quote
Old 11-20-2014, 08:50 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by rosshalde View Post
I know I can just split into a new file, but is there a simple way in Sigil to command a regular paragraph to begin a fresh page within the same chapter/section/file?
To be honest, splitting into a new file IS the simple way. Otherwise, you're going to have to apply "page-break-before: always" CSS attributes to the class of the element (in your case; <p>) where you want a page-break. Which will work, of course, but also brings its own bugbears related to top-margin on various devices.

No, in your instance the simplest way is to split the file and make "TRUE TALES OF GOD’S HEROES" a heading (h1,2,3,4) so it gets picked up by the TOC generator.

In short, unless there are some really weird considerations (and there don't seems to be any here), just create (split) a new file wherever you want page breaks. It's easiest (and most compliant/supported) by far.
DiapDealer is offline   Reply With Quote
Advert
Old 11-20-2014, 08:59 AM   #3
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Thanks, I will just go ahead and split the document in two pieces
rosshalde is offline   Reply With Quote
Old 11-21-2014, 08:30 AM   #4
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I am often amazed at how many "chapters" I have in a single book. At first I resisted this, since it didn't seem elegant to me, but then I stopped worrying and started to love what was happening. It's not as if the reader is conscious of the page break; he'll just keep turning the pages.

In addition to every chapter, I have a separate file for the cover, TOC, title page, almost every photograph, occasionally a caption, the copyright / About the Author page, and Further Reading. This can be fifty "chapters." So what? It works.
Notjohn is offline   Reply With Quote
Old 11-21-2014, 09:02 AM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Notjohn View Post
I am often amazed at how many "chapters" I have in a single book. At first I resisted this, since it didn't seem elegant to me, but then I stopped worrying and started to love what was happening. It's not as if the reader is conscious of the page break; he'll just keep turning the pages.

In addition to every chapter, I have a separate file for the cover, TOC, title page, almost every photograph, occasionally a caption, the copyright / About the Author page, and Further Reading. This can be fifty "chapters." So what? It works.
Yep. I've found the same thing. I use as many files as it takes to achieve what I want.

I think a lot of people resist because of the whole "chapter" association/dogma. It's unfortunate that everyone took to calling them "chapter" files in the first place. Oh well.
DiapDealer is offline   Reply With Quote
Advert
Old 11-21-2014, 10:16 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The initial default for the multiple-file rename tool is Section0001 .
Works for me in initially, most cases where I discover kitchen sink* file naming.
I use this to allow a narrow Book browser window

Later, I may rename a few as Mile markers for really large lists, just to make locating easier.


* ISBN title-Author-series-section-firstbornsname
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Would You Create a New Elementary School Library? morriss003 General Discussions 9 09-21-2012 08:48 AM
Fourth Flavor of Neutrino? New Elementary Particle? kennyc Lounge 2 11-03-2010 09:39 AM
Kindle use in elementary school ~Kate Amazon Kindle 0 05-11-2010 10:04 PM


All times are GMT -4. The time now is 07:47 AM.


MobileRead.com is a privately owned, operated and funded community.