The aim of LDS Kindle Books is two-fold:

The aim of LDS Kindle Books is two-fold:
  1. Provide free LDS books to Kindle owners

  2. Alert Kindle owners about new LDS books available in Kindle format.

The types of FREE publications include Gospel resources published by LDS.org in Kindle compatible formats, LDS General Conference talks, and LDS books which are free from copyright.

Linked books generally include publications from Deseret Book released for the Kindle or books by LDS authors produced by other publishers.

Saturday, August 29, 2009

Table of Contents and Links

For those of you wishing to create Kindle books based on html, consider adding a table of contents to your book.

This is not a complicated process with some basic knowledge of html.

Step 1:
Establish references within the document:
<a name="1">Chapter 1</a>
Use the anchor tag (<a> and </a>) using name with a # in front to create a reference point for Chapter 1 within a document.

Step 2:
Create a link to the newly created reference.
<a href="#1">Chapter 1</a>
Use the anchor tag, but this time you with href and a # before the name of the reference.

Step 3:
Now that you have links and references, you can create an internal table of contents:
<a name="#Contents">Contents</a>
<a href="#1">Chapter 1</a>
<a href="#1">Chapter 2</a>
Steps 1-3 will allow you to create a table of contents at the beginning of the document, but will not show up when selecting "menu".

To add this feature, there is just one more step required:

Step 4:
Copy the table of contents and add a "toc" reference.
<div name="toc"> and </div name="toc">
The final outcome should look like this:
<div name="toc">
<a name="#Contents">Contents</a>
<a href="#1">Chapter 1</a>
<a href="#1">Chapter 2</a>
</div name="toc">

<a name="#Contents">Contents</a>
<a href="#1">Chapter 1</a>
<a href="#1">Chapter 2</a>
For a finishing touch, you can add a page break with the following code:
<p style="page-break-before: always;"></p>

No comments: