|  09-25-2012, 06:29 AM | #1 | 
| Groupie            Posts: 184 Karma: 2572 Join Date: Aug 2010 Device: Kindle | 
				
				TOC and the book title
			 
			
			Since I use h1, h2, and h3 heads when writing the title page, Sigil recognizes the title, sub-title, and author & publisher as chapters in the book. What is the best way to head this off? Shall I define h4, h5, and h6 to serve that purpose, or will that just result in having the title TOC'd as a very minor entry?
		 | 
|   |   | 
|  09-25-2012, 06:50 AM | #2 | |
| Addict            Posts: 254 Karma: 69786 Join Date: May 2006 Location: Oslo, Norway Device: Kobo Aura, Sony PRS-650 | Quote: 
 I would however advise you to avoid header tags for things you don't want to appear in the TOC. Headers have structural meanings which go beyond "making the font larger", for instance I believe they are also used by screen readers to partition content. In the books I produce I usually want the title-page to appear in the TOC, so I leave the book title as a differently styled h1 tag, and make classes for the other title page paragraphs which I then style. Last edited by Man Eating Duck; 09-25-2012 at 07:07 AM. | |
|   |   | 
|  09-25-2012, 07:09 AM | #3 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			You should not use heading tags for things that are not headings. I use something like: Code: <p class="title">Book Title</p> <p class="subtitle">Book Subtitle</p> <p class="author">Author</p> <p class="date">Date</p> | 
|   |   | 
|  09-25-2012, 07:24 AM | #4 | 
| Addict            Posts: 254 Karma: 69786 Join Date: May 2006 Location: Oslo, Norway Device: Kobo Aura, Sony PRS-650 | 
			
			Whatever Jellby says is pretty much the definitive answer   Styling is very much a matter of preference, but here are the definitions I use, renamed according to his example (several definitions, like font-face, are inherited in addition to these): Code: p.title { 
	font-size : 1.7em; 
	text-align : center; 
	margin : 3.9em 0 0 0; 
}
p.subtitle { 
	font-size : 1.33em; 
	text-align : center; 
	margin : 1em 0 0 0; 
}
p.author { 
	font-size : 1.1em; 
	text-align : center; 
	margin : 2em 0 0 0; 
}
p.date { 
	font-size : 1em; 
	text-align : center; 
	margin : 3em 0 0 0; 
}Last edited by Man Eating Duck; 09-25-2012 at 09:14 AM. | 
|   |   | 
|  09-25-2012, 09:56 AM | #5 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 When generating the TOC, there are (un)tick boxes to flag H tags to not be used for the TOC by Sigil IMHO If you just want Size, Weight: you are best using the CSS to control these and NOT H tags (so old school HTML2  ) | |
|   |   | 
|  09-25-2012, 11:39 AM | #6 | 
| Groupie            Posts: 184 Karma: 2572 Join Date: Aug 2010 Device: Kindle | 
			
			That's great, thanks. (Yes, I have been unchecking the multiple TOC items for the title page, but it does make me nervous, and separately styling them will cheer me up no end.)
		 | 
|   |   | 
|  09-25-2012, 12:56 PM | #7 | |
| Sigil developer            Posts: 1,274 Karma: 1101600 Join Date: Jan 2011 Location: UK Device: Kindle PW, K4 NT, K3, Kobo Touch | Quote: 
 All it does it add a sigilNotInTOC class attribute to your heading (so it can remember you excluded it when you re-run the TOC generation), and then it excludes it from the items that will be put into your TOC. If you uncheck the Show TOC Items Only option at the bottom of the dialog you can see the entries are still there, just without a checkmark. | |
|   |   | 
|  09-26-2012, 05:07 AM | #8 | |
| Bookmaker & Cat Slave            Posts: 11,503 Karma: 158448243 Join Date: Apr 2010 Location: Phoenix, AZ Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 | Quote: 
  ) Hitch | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| DR1000 How to show book title instead of name | friflaj | iRex | 2 | 09-16-2011 01:08 PM | 
| Generated TOC links back to TOC page in the book | Caleb666 | Sigil | 7 | 08-17-2011 11:58 AM | 
| Different text in TOC & actual chapter title | Algiedi | Conversion | 25 | 07-24-2011 01:12 AM | 
| Title/Author showing up in TOC, kindle bookmarks issue | mmorgan | Calibre | 1 | 05-17-2011 03:23 PM | 
| TOC Title Character Limit | edmac | Calibre | 1 | 03-03-2011 11:23 AM |