The internet is awash with eBooks. It’s easy to see why – they’re fast, convenient and are a great way to consume and store reading material. They can be downloaded in seconds and many thousands can fit on a single USB stick. eBooks are also interactive, allowing you to search for text, make notes or drawings and follow hyperlinks.
Whilst many bloggers will want to provide their eBooks as PDFs to give them total control on the design, layout and typography of the product. ePubs, however, have reflowable text, making them ideal for reading on smaller handheld devices.
An ePub is a free and open eBook standard file format which can be read on a variety of handheld devices including the iPhone, iPad, Kobo eReader, Barnes & Noble Nook eReader, Sony Reader Touch Edition, etc. (just about every handheld reading device except the Kindle, basically).
What sort of eBooks should be created as ePubs?
Only text heavy books should be created as ePubs. If your eBook has many diagrams, tables, etc., then you should definitely create the eBook as a PDF.
Getting started in InDesign
For starters, you will only be able to do this in CS3, CS4 and CS5.
As mentioned before, ePubs are a free-flowing format and therefore, when creating your document in InDesign, you don’t need to bother about page size, page layout, facing pages, or anything like that.
Text should flow through only one series of linked text frames. Don’t put any text (chapter headings, callout text, page numbers) in separate text frames – it won’t come out in the right place. Flow chapter headings within the main text, forget about page numbers, and you should probably forget about callout text as well but you could include it as an anchored image.
Although fonts can be embedded, I have found that this only creates unnecessary problems and some ePub viewers will change the font anyway. Format your text in a bog standard font and only use the four weights: normal, bold, italic and bold italic.
Apply Paragraph Styles and Character Styles to all the text in your document to ensure that your formatted text is preserved. ePubs contain mark up files and separate Cascading Style Sheets (CSS) – rather like a website – and InDesign uses the applied styles to generate the CSS. If your text is already formatted but not by Paragraph Styles and Character Styles, use Find/Replace to add Character Styles automatically.
The above settings apply a Character Style I’d named “bold character style” to all the bold text in the document. Even better, but sadly for CS4 only, you can use this preptext.jsx script which will add Character Styles to all the various text styles (bold, italic, superscript, etc.)
Add images as anchored objects
Graphics should be anchored within the main body of text. To create an anchored image, select the object with the Selection Tool (V) and cut (Cmd/Ctrl-X). Then double click in the text where you want the anchored object to appear – double clicking in text converts the Selection Tool to the Type Tool (T). Now paste (Cmd/Ctrl-V) in the anchored object which will now appear in the text and flow with it.
Divide long documents into separate files
In order to get chapters or sections to start on a new “page” you have to divide your book into separate InDesign documents. Then create an InDesign book file (.indb) by going File > New > Book and combine all the documents together in the correct order in the resulting palette.
Metadata information, such as the title, author, publisher, etc., is displayed in most eBook readers. In order to complete metadata entries, go File > File Info and in the resulting File Information dialog box click the Description tab and fill in the following fields:
- Document Title
- Copyright Notice
None of the other metadata fields are exported.
Exporting the ePub
To export from an InDesign document, go File > Export for Digital Editions and from an InDesign book file, choose Export Book for Digital Editions from the book palette.
In the Digital Editions Export Options dialog box I mostly kept to the default settings. I had Include Document Metadata checked (as I had set metadata in the File Information dialog box, I chose Defined Styles for Base for CSS Styles (as I had specified all styles as Paragraph and Character Styles) and I unchecked Include Embeddable Fonts as I found them to cause problems.
Delivering the ePub
ePub can be delivered by email but I’ve found it is better to upload them to Bookworm or Ibis Reader so that they can be accessed online. You have to get them to validate in order to do this which can be an extra headache. I’ve found the people at the ePub section of the MobileRead forums really helpful with little validation problems. If you’re OK with XML and CSS, the ePub can be opened and the separate files edited with oXygen XML Author.
Further reading and links
- To view ePubs on your computer download Adobe Digital Editions
- Some “How to” PDFs from Adobe, only for CS4 though
- The most useful tutorials I found were two video podcasts from Gabriel Powell at InstantIndesign.com called Creating an eBook with InDesign (Part 1) and Creating an eBook with InDesign (Part 2)
Creating an ePub is sadly not as easy as it looks. But once you’ve done it a few times it should become pretty straightforward. It was a really good feeling to finally read my eBook on an iPhone! If anyone wants my How to Market Yourself Online ebook as an ePub please get in touch.
But, as always, what about you? Has anybody any experience of creating book files for handheld devices and smart phones? What were your experiences?