10-05-2009, 02:31 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: Sony Pocket
|
Chapters showing unwanted pagebreaks and < h1 > text
Hello. I love Calibre - it is an amazing tool!
I'm using it to convert an HTML file full of jpg images to an ePub with chapters. I don't want theheader tags that define the chapters to have pages or even be seen while I'm reading the pages in the viewer, but I would like them to be labeled and indented appropriately in the TOC. So with the html, below, I come very close. I use the TOC screen "Level 1 TOC XPath expression" = "//h:h1" and corresponding level 2 to h2. I force an auto-gerenation of the TOC. Lastly, for the "Insert breaks before (XPath expression)" = "/". With these settings, I get a TOC which indexes correctly, but I'm not able to strip out the chapter headers or remove the pagebreaks after I generate the ePub. Any suggestions? Thanks! - Rich <html> <body> <img width=601 height=800 src="00000_000.jpg" > <img width=601 height=800 src="00000_001.jpg" > <h1 class="chapter"> Chapter One </h1> <img width=601 height=800 src="00001_000.jpg" > <img width=601 height=800 src="00001_001.jpg" > <img width=601 height=800 src="00001_002.jpg" > <img width=601 height=800 src="00001_003.jpg" > <h2 class="chapter"> Section 1</h2> <img width=601 height=800 src="00002_000.jpg" > </body> </html> |
10-05-2009, 03:04 PM | #2 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just add
h1 { display:none} to extra css |
Advert | |
|
10-05-2009, 04:50 PM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: Sony Pocket
|
Genius!!! Thanks!!!
- Rich |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Screen showing lines and broken text | riverdale | iRiver Story | 13 | 11-09-2010 08:54 AM |
Unwanted Pagebreaks | Timoleon | Calibre | 3 | 09-19-2010 07:53 PM |
Calibre not showing text in UI | senshikaze | Calibre | 4 | 06-27-2010 05:22 PM |
chapters (HTML-files) not showing up | erik5000 | ePub | 1 | 12-21-2009 04:22 PM |
Epub and pagebreaks | mtravellerh | Calibre | 3 | 11-02-2008 05:30 PM |