Skip to content

Instantly share code, notes, and snippets.

@RyanParsley
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save RyanParsley/cf97ef91288b08c33e4e to your computer and use it in GitHub Desktop.

Select an option

Save RyanParsley/cf97ef91288b08c33e4e to your computer and use it in GitHub Desktop.

Inside InDesign

The following guidelines will configure InDesign to create nearly usable html via export. I can then take this one big html file and break it up into useable bits with a tool that I wrote.

  • Thread text boxes that contain related content to be exported.
  • Establish Paragraph Styles for exporting unique block level elements (h1, p, etc)
  • Establish Character Styles for exporting inline elements (span, strong, em, etc.)
  • Use lists and tables properly and they themselves out
  • Inside your Paragraph and Character Styles, set up 'Export Tagging' to map desired elements and classes to export
  • Create on Article per desired HTML page (the sitemap looks to suggest there will be 27 pages, but I'm not 100% sure that number is right) to be output and set it up with appropriate content
  • Any images that should be exported in the flow of content needs to be properly anchored
    • this includes all the charts and figures created in inDesign, these need to be pulled out of inDesign, converted into a png or jpg, then placed in indesign.
  • Export html with these settings altered from defaults
    • Content order: Same as Articles Panel
    • Advanced: uncheck both css boxes

Things to be aware of

  • Keep an Eye on the preflight tool to make sure there's no content unaccounted for during the threading
  • Content that shouldn't be exported (page numbers etc) should not be included in the articles
  • No content should have overrides applied to the Paragraph styles
  • There probably shouldn't be nearly as many text boxes as there are in the document. If removing some speeds you up, feel free.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment