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

Hiding A Few Chapter Titles

Return to Member Forum

  • Author
    Posts
    • #61245
      Ron_Benrey
      Member

      We build both Kindle and ePub eBooks using InDesign CS5. We've been searching for a solution to a simple “problem.”

      We'd like “Dedication” and “Epigraph” to appear in the TOC, but not at the top of their respective eBook pages. Nothing we've tried works, including layers, playing with type characteristics, even covering the titles with white rectangles.

      Is there a simple way to achieve the effect other than manually changing XHTML code?

      Thanks,

      Ron

    • #61305

      Here's my current workaround for this:

      1) In InDesign, I add the words I want to appear in the TOC to the top of those pages: Cover, Title Page, Copyright Information, and Dedication. I assign them to a paragraph sytle called “cover” and I add this paragraph style to the EPUB TOC.

      2) After I export the file as “EPUB with corrected links” (a plug in) I then open the EPUB file in Sigil for some manipulation

      3) In the CSS file, I change the “cover” info to this:

      h1.cover {

      font-family: “Times New Roman”;

      font-weight: normal;

      font-style: normal;

      font-size: 0.1em;

      line-height: 0.2em;

      text-decoration: none;

      font-variant: normal;

      text-indent: 0em;

      text-align: center;

      color: #FCFCFC;

      margin: 0em;

      }

      This turns those page titles essentially invisible, yet they are still there and thus recognized by the TOC. The important parts of that CSS style is the font size of 0.1em, the line height of 0.2em, and the color of FCFCFC. (You could probably just delete the other pieces. This is just copied from a standard CSS sheet I use for a certain client.) The font size and line height attributes make the text extremely small. The color makes the text white, which means it dissappears on most eReaders, unless you are using a device like the iPad where it is backlit and you can choose to pick a colored background. In that case, the words would be visible, but they'd be so small that it probably still wouldn't be noticed.

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