Skip navigation
Currently Being Moderated

InDesign CS6 EPub export: Possible to avoid object styles?

Jun 28, 2012 12:00 PM

Tags: #cs6 #epub

After upgrading to CS6 I've been having issues with the new EPub export command. After expanding the EPUB file that was created I noticed all of the achored objects had been given their own, unique DIV classes in the default CSS file (ie the one now named after the INDD file) that included a bunch of formatting that I didn't want carried over from the print layout.

 

I gather this is being called a new 'feature', but there doesn't seem to be a way to disable it. I thought the whole point of being able to use your own CSS file was to make a clean break from the styles applied in the print layout? I tried deleting the entire default CSS file and recompressing the EPUB and this actually seems to work (although I'm not sure why it does, since I would have thought that the unique class names wouldn't match with any defined in my basic CSS file?), although I'd prefer to avoid having to break the files open in the first place.

 

Or am I missing something?

 

Thanks!

 
Replies
  • Currently Being Moderated
    Jun 28, 2012 12:04 PM   in reply to guardaroba

    In the CS6 EPUB Export dialog box, on the Advanced Panel > CSS Options, try unchecking Include Style Definitions, Preserve Local Overrides and Include Embeddable Fonts. Then select your own CSS file.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2012 12:05 PM   in reply to guardaroba

    I would guess that the reason it appears to work is because the classes are ignored.

     

     

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2012 11:50 AM   in reply to guardaroba

    Ron Bilodeau who creates EPUB files for O'Reilly wrote a piece about EPUB from CS6 in the newest issue of InDesign Magazine. Perhaps what he says will be useful to you:

     

    "In the Advanced tab of the EPUB Export Options dialog box there is now an option

    to include multiple CSS stylesheets, in addition to the CSS that InDesign generates (Figure 3).

     

    "Initially, I was annoyed by this change, because Adobe removed the option to ignore the InDesign-generated CSS and only use a custom external CSS. I write my own custom EPUB CSS and therefore wanted to use that instead of what InDesign generates. But it didn’t take me long to realize that this new solution is pretty elegant. By default, any custom stylesheet attributes will override matching elements from the InDesign-generated CSS. This means that you have ultimate control over what is displayed. If you’re happy with how some of the InDesign-generated CSS works in your EPUB file, then simply leave those elements alone and let them do their job. For other elements that you’re not happy with, you can simply override them with your custom CSS. If you prefer to not write your own EPUB CSS, simply export your EPUB file without choosing any additional CSS file(s) and let InDesign do all the work."

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points