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

Text with images not exporting correctly

Return to Member Forum

  • Author
    Posts
    • #88260

      I am exporting a book to ePub. There are seven maps with text above, and in one case, text below. I have been unable to get the text and the image to show up together on one page, although the paragraph style for the text is tagged to split, and the Keep Option is set to Start on a New Page. In the first instance, the text and map appear correctly. On the subsequent pages, the map appears on the next page, then the text on its own page. I am using Export order based on Page Layout, and the text frame for the text is the first frame to be encountered on each page. The map is anchored to the text. I have screen shots if anyone wants to see them. I’d love an explanation for the inconsistency, as well as any suggestions on a good fix.

    • #88309

      One of the constant irritations encountered when exporting from ID to ePub. Before going on please say if the text associated with the map is in its own frame.

      Paul

    • #88310

      Yes, the text is in its own frame. I have also tried grouping the frames rather than anchoring. Same problem.

    • #88323

      Sorry for the delay. If you are at all comfortable with code, you can solve this problem by putting the map and text in a <div>. You can also try grouping first then anchoring the group. Here’s how I did it: make a paragraph style with center, space before 2px, space after 8px (spaces are obviously adjustable later, they’re there to make anchoring easier). Put a new para below the two frames (not a new frame) with the para style just created. Now group the two frames. Then anchor them (there will now be only one anchor for the group), inline, to the new para symbol (position). This almost always works but I’m told the div solution “always” does (but not in mobi [kindle]).
      <div>
      <p class=”image”></p>
      <p class=”caption”>Caption text</p>
      </div>

    • #88338

      Hi Paul,
      Your solution of grouping first and then anchoring worked to keep the “caption” (actually more a headline — appearing above the map– so I had to create a text frame below the image and anchor the grouped object to the paragraph return in an otherwise empty text frame. This worked great!
      However, the entire group will not break onto its own page, no matter what I do. I applied “!important;” to “page-break-after-always” in the CSS, but it seems to be ignored.

    • #88356

      Hi Jeannie,
      I played with this for a couple hours but couldn’t make it work. I’ll keep trying but no guarantee. Is there any problem with increasing the frame of the map to include the headline and then selecting “insert page break – before” in the image box of the export dialogue?

    • #88357

      Well that didn’t take long. It’s a kludge but…. I added a page break after the last line of text before the grouped caption/image in the main text flow. After the page break, which is now the end of a story, I added a para before the end of story marker, style the same as the “caption” (although I can’t believe that matters) and anchored the group to it. Low and behold it pushed the group onto a new page in the ePub.

    • #88367

      Update: You may have already worked this out but I realized why my div solution wasn’t working—too long since I worked with code. Grouped objects already have a div surrounding them. Give it a class and the css property of “page-break-before – always” and that does the job.

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