Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Combining readable text with image in EPUB

Return to Member Forum

  • Author
    Posts
    • #62471

      I have a bit of a dilemma on my hands right now. I have chapter openers for a book that is in print that I want to use in EPUB. The openers consist of a full-page image, on which is overlaid a text block that contains the chapter number and chapter title. I have tried everything I can think of to get these pieces to export properly, to no avail. The most logical choice was to insert the image in the text frame, and then anchor a text frame that contains the chapter number and title to float within the clear space that was left for it on the image. Works great visually in ID, but of course, the text block and the image are separated when exported to EPUB.

      Normally I would just include the text as part of the image, but if I do that, the chapter number and title can't be part of the autogenerated TOC. Is it possible to edit the toc.ncx to point to the image as the TOC entry for the first page of the chapter, and have the text display in the TOC?

      Any advice is appreciated. Thank you.

    • #62623

      You can use a trick I use to make the words appear in the TOC. Do what you proposed: include the text as part of the image. In the InDesign document, right above the image, type out what you would like to appear in the TOC. Then apply a new paragraph style that makes the words very small (for the CSS I use 0.1em) and white (color: #FCFCFC;). Make sure this style is part of your TOC style (for CS5 and 5.5) or is tagged as a chapter break for export (CS6). This causes the text to get included in the TOC, but renders it virtually invisible on the ereader. In my projects, I call this style “cover” and the CSS definition I use looks like this:

      h1.cover {

      font-size: 0.1em;

      line-height: 0.2em;

      text-align: center;

      color: #FCFCFC;

    • #62638

      This sounds quite logical. I will give it a try, and tag it for chapter break for export. Thanks so much for your advice, coreenm!

    • #62682

      FWIW, in CS6 you'll still have to include this style in your TOC style in order for that text to appear in the Navigational TOC in the EPUB. Setting a style to break upon EPUB export has nothing to do with the TOC *text* in the nav TOC, it just forces a new entry there. (If you dont' use a TOC style or include it in the style, ID uses the name of the layout with a suffix like -1, -2, etc.)

      AM

    • #62684

      Yep, I always use TOC styles, Anne-Marie, so I have this covered. Thanks!

    • #62755

      Actually, I've found that I no longer have to have the TOC at all. I simply choose the Default option and my navigational TOC all has the items named correctly.

    • #62843

      Yes, but all of the books I do are in print initially, so I need to make the TOC styles for visual presentation anyway. : )

Viewing 6 reply threads
  • The forum ‘EPUB and eBook’ is closed to new topics and replies.
Forum Ads