View Single Post
Old 09-30-2011, 11:10 PM   #7
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,795
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:
Originally Posted by therealjoeblow View Post
True, but without the anchors, then the in-line TOC (ie with the HTML hyperlinks) doesn't work...
You don't need anchors in the Chapter files.

Sample TOC:
Spoiler:
<?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>/title>
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*<![CDATA[*/

@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }

span.sgc-1 {text-decoration:underline}
/*]]>*/
</style>
</head>

<body class="calibre">
<p class="calibre2" id="filepos272124"><span class="calibre3 bold">Table of Contents</span></p>

<p class="calibre12"><a class="calibre8" href="../Text/c01.html"><span class="calibre9 calibre10 sgc-1">Chapter One</span></a></p>

<p class="calibre12"><a class="calibre8" href="../Text/c02.html"><span class="calibre9 calibre10 sgc-1">Chapter Two</span></a></p>

<p class="calibre12"><a class="calibre8" href="../Text/c03.html"><span class="calibre9 calibre10 sgc-1">Chapter Three</span></a></p>

<p class="calibre12"><a class="calibre8" href="../Text/c04.html"><span class="calibre9 calibre10 sgc-1">Chapter Four</span></a></p>

<p class="calibre12"><a class="calibre8" href="../Text/c05.html"><span class="calibre9 calibre10 sgc-1">Chapter Five</span></a></p>

<p class="calibre12"><a class="calibre8" href="../Text/c06.html"><span class="calibre9 calibre10 sgc-1">Chapter Six</span></a></p>

<p class="calibre12"><a class="calibre8" href="../Text/c07.html"><span class="calibre9 calibre10 sgc-1">Chapter Seven</span></a></p>

<p class="calibre12"><a class="calibre8" href="../Text/c08.html"><span class="calibre9 calibre10 sgc-1">Chapter Eight</span></a></p>
<p class="calibre12"><a class="calibre8" href="../Text/epi.html"><span class="calibre9 calibre10 sgc-1">Epilogue</span></a></p>


</body>
</html>


BTW I had to fix the file nameD, they were off by one. Chapter 1 was calling the Prologue file (someone else's Calibre conversion)

Last edited by theducks; 09-30-2011 at 11:11 PM. Reason: Spoiler added
theducks is online now   Reply With Quote