

(If you have not defined a TOC style or don’t choose it when exporting, or if you’re using CS4, everything is exported as a p element.) Regardless, all header and p elements get a class equal to the name of the paragraph style in InDesign. InDesign” in Chapter 2), then the InDesign paragraph styles selected to generate the TOC will be exported as headers ( h1, h2, and so on), while every other paragraph-even Bulleted and Numbered lists-will be exported as a p element. If you have, and if you’ve selected that TOC style upon export (see “Export EPUB from In CS5, the way the actual text is exported depends directly on whether or not you’ve defined a TOC style (see “Creating a Everything is enclosed in larger div elements with generic classes. InDesign exports paragraphs from the TOC as headers and everything else as p elements. (If a document begins with an image, the img elements are enclosed in generated-style classed divs while the text frames are enclosed in generated-style-2 divs.) All generated-style classes may be deleted. Images are exported into divs of their own with a class of generated-style-2 while grouped items, unsurprisingly, get divs with a class of group. It then creates another div, with a class of generated-style for each frame, in order, from left-top to bottom-right. First, it creates one large div element whose id is the title of your InDesign file. When InDesign exports a document, it generates style information in a very specific way.

To edit InDesign’s files, you’ll have to unzip the EPUB as described in “Unzipping an EPUB” in the previous Even if you haven’t used InDesign, you may find Section, I’ll show you how to clean up the EPUB files that InDesign produces. I think InDesign is a really powerful tool for creating EPUB files, but it’s nowhere near perfect-at least not yet. Learn More Buy Cleaning up InDesign EPUB files EPUB Straight to the Point: Creating ebooks for the Apple iPad and other ereaders
