![]() The OPF is an XML file that has all of your book’s details, from ISBN, title, author, book cover, to the list of all the files included in the package.Īs with the NCX, I recommend using one of the sample book’s OPF as a template: Just be careful to keep the links accurate, and the playOrder, well, in order. I recommend simply using one of the NCX files in the sample books, and modifying it to match your book. Each node has the information of the name of the chapter, the location (src), and the playOrder (this is a sequential order in which each chapter appears). ![]() It may look intimidating, but if you notice it’s just a list of navPoint nodes. If you downloaded the sample books, you can see the ones included with them, but here’s an excerpt of the NCX TOC version of the HTML TOC from above: In addition to having a table of contents in your HTML, you need to have an XML file with the same information. This XML file allows for better user experience, since it lets readers navigate the book better. If you divided the HTML into multiple files, make sure they point to the file, and id. I personally prefer having my HTML TOC in a list. That’s why you need to put ids to each chapter or section heading. This is simply a list of links to the different chapters or sections of your book. Table of contents: HTMLĪt the beginning of the book, you need to have a Table of Contents (TOC). I usually put one at the end of each chapter.Ĭheck out the publishing guidelines for a list of supported CSS (page 75). Alternatively, you can use Kindle’s custom tag. If you want to create page breaks, you can use CSS: page-break-before or page-break-after. This way, the spacings will be relative to the font size chosen by the reader. Notice how margins, paddings, and font sizes are in ems. Remember that Kindle users are able to set the size and font they want to use, so you shouldn’t fiddle with that too much. Unless you are doing a graphic heavy book, children’s book, or comic book, your CSS will be very simple. Think responsive! Formatting the book: CSS Just remember that you have no control over the size of the device an the base font the reader is using. Īs you can see, you can add divs with classes, and even images (check out the publishing guidelines for the details).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |