View Single Post
Old 11-03-2008, 03:17 AM   #1
sahlberg
Junior Member
sahlberg began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2008
Device: prs-505
Table of content troubles with HTML2LRF

I just can not fugure out how to do this so please help me :-)

In the HTML book I am marking up I am using chapterheadings and subheadings.
A chapter would thus look something like this in the HTML :

<h2>CHAPTER I</h2>
<h3>name of chapter</h3>

Now I want to have a nice table of content in my LRF book, but I want the entries to look slightly differently!
I want this to show up as
"CHAPTER 1: name of chapter"
in the TOC.


This is what I have tried, trying to use "hidden" headings so they would not show up in the book itself but (and I was naive enough to think that it would still show up in the TOC :-( )

<h2 class='lrfchapter' style='visibility: hidden'>CHAPTER I: name of chapter</h2>
<h2>CHAPTER I</h2>
<h3>name of chapter</h3>
and then running html2lrf with the arguments :
--no-links-in-toc --add-chapters-to-toc --chapter-attr="h2,class,lrfchapter"


This doesnt work because the entries show up with "unknown" due to the visibility: hidden style.


Does anyone have any suggestions on how I can do this?
Is it possible?
sahlberg is offline   Reply With Quote