11-25-2012, 09:06 AM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2012
Location: The Netherlands
Device: none
|
How to suppress headings?
L.S.,
When using WordPerfect I can suppress headers, footers, pagenumbers etc. They are there but you don't see them. Is this also possible in Sigil? I need headings for the creation of a TOC, but I want them to be invisible for the reader. Yours, Willem |
11-25-2012, 10:02 AM | #2 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Not sure I'm exactly following, but if you just want to create headings in the html code to use for NCX ToC generation (but don't want the chapter heading/title to be rendered when reading), I recommend something to the effect of ...
in the (x)html: Code:
<h2 class="heading_noshow" title="Section One"> </h2> Code:
and in the CSS: .heading_noshow { display: none; } (Leaving the text of the 'h' tags empty--no --seems to work on some systems as well, but I'm not sure if it plays nice universally) |
Advert | |
|
11-25-2012, 10:07 AM | #3 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2012
Location: The Netherlands
Device: none
|
Thank you very much! I will try it and I will tell you if it works.
Yours, Willem |
11-25-2012, 10:31 AM | #4 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2012
Location: The Netherlands
Device: none
|
Before I continue I want to make sure that you exactly understand what I am trying to do.
Right now I add "[Hoofdstuk 1]" at the top of a chapter and click on h4. When I generate a TOC "[Hoofdstuk 1]" appears in the right window. "[Hoofdstuk 1]" in the right window is exactly what I want, but within the chapter I don't need it and I want to suppress it for the viewer. Where can I find the CSS file in wich I have to insert: .heading_noshow { display: none; } I can find a subdirectory "Styles" but it is empty. I have searched with the Explorer without any result. There is no CSS stylesheet within my Sigil directory. Must I create a stylesheet myself first? Right now the heading of chapter 1 reads: <h4 id="sigil_toc_id_3" style="text-align: center;">[Hoofdstuk 1]</h4> Yours, Willem Last edited by wkuiper; 11-25-2012 at 10:34 AM. |
11-25-2012, 10:44 AM | #5 | |
Well trained by Cats
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
|
Quote:
What you have is inline styles, while the styles work, you have to modify each place used (see my markup in red) |
|
Advert | |
|
11-25-2012, 10:47 AM | #6 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sorry, you'll have to use Sigil's Code View to enter the html I suggested. You won't be able to achieve what you want using Book (WYSIWYG) View alone.
As for creating/adding/linking a CSS file... my apologies... I assumed too much about your ePub-knowledge/skill-level. If you're not using an external stylesheet for your ePub (and don't know how), perhaps you should forget that part for now. How to create an external stylesheet and ensure it's properly linked in all the necessary html files is probably a lesson in itself (for another time). In Code view, make sure you have: Code:
<h4 title="[Hoofdstuk 1]"></h2> EDIT: theducks method should definitely work for you, as well. But either way, you're going to have to step out of the comfort of Book View and "get your hands dirty" in Code View to do what you want. Last edited by DiapDealer; 11-25-2012 at 10:50 AM. |
11-25-2012, 11:06 AM | #7 | |
Well trained by Cats
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
|
Quote:
|
|
11-25-2012, 11:38 AM | #8 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
11-25-2012, 12:08 PM | #9 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2012
Location: The Netherlands
Device: none
|
Do not overestimate me as a 'programmer', but I can manage the code view window and I know something about html.
Let me show you my work in progress: It is an edition of a Dutch book printed in 1564. I have no e-reader myself for more than one reason but I would like to share some editions of late medieval romances with people who do not read on dead wood stained with ink (as a collegue said). I am satisfied with the result when I import this file in Adobe Digital Editions. Yet I would like to be able to suppress the TOC headings for the reader without having to go to a programmers school. It is not that I am lazy. Editing the romance is more important than suppressing the chapter titles. Moreover this is the simple version of the edition. The real edition is also containing the French source. But since epub cannot cope with footnotes I have discarded them for the epub edition. Yours, Willem |
11-25-2012, 01:32 PM | #10 | |
Well trained by Cats
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
|
Quote:
Call them chapter (or section notes). Put the notes at the end of each section(chapter). Use the Link and Anchor features of Sigil Six to place the linkages. The user will need to know how to navigate 'links' with their model reader (done all different ways , but usually done) |
|
11-25-2012, 01:37 PM | #11 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2012
Location: The Netherlands
Device: none
|
I use so many footnotes that it is impossible for a reader to go forward and back all the time. I keep my footnotes for my pdf-editions. They can be read very well on a 10.1 inch tablet.
|
11-25-2012, 04:43 PM | #12 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 11-25-2012 at 04:46 PM. |
|
11-25-2012, 04:54 PM | #13 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2012
Location: The Netherlands
Device: none
|
DiapDealer,
Thanks to Sigil F1 I found out that one does not need a (separate) style sheet. <style> ... </style> is enough. So I styled your ".heading_noshow { display: none; }" and I added your "display: none;" After one or more trial and errors I finally got what I wanted: a 'no show' heading. Wish I could double your karma points ;<) Yours very grateful, Willem |
11-26-2012, 02:04 AM | #14 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Willem, please consider using a stylesheet. It makes your life easier, also for other layout stuff. An internal stylesheet must be repeated for each file. Don't forget, the html file must not be larger than 300 kb. Otherwise it will nor load or work very slowly on readers. In general each chapter has his own file. That makes having an external stylesheet very handy.
|
11-26-2012, 06:05 AM | #15 | |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Quote:
I worked on a book that had many pictures. At first, I thought that italics looked good for the captions. But after a while, I didn't like them so much. Because I had used a stylesheet, I got rid of the reference to italics in the stylesheet for my capt style and instantly, all of my captions were normal type. Same thing goes for type size, indent or no indent, all changed at once if you use a stylesheet. Clips make it easy to add a style. If I want to make a caption, I just right click inside a <p> and use a clip that inserts class="capt" and there it is. You can use clips to add anything you want. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suppress Cover Inclusion | BetterRed | Conversion | 6 | 05-25-2012 07:39 PM |
Suppress Cover in Book Details Panel? | capidamonte | Calibre | 6 | 04-15-2012 07:15 AM |
ePub Suppress Cover Page | daveps | Calibre | 3 | 02-10-2010 10:12 AM |
Possible to suppress .jpg output in mobi-meta? | GRiker | Calibre | 3 | 05-04-2009 06:28 PM |