You are on page 1of 13

Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?

t=123439

Home Forums Wiki Chat Submit News! Search

Register Guidelines E-Books Today's Posts Search

MobileRead Forums > E-Book Formats > ePub User Name User Name Remember Me?

Steps for creating an ePub from Indeisgn CS3 Password Log in

Notices

Tip Got Facebook? Join our MobileRead Facebook Fan Page!

Page 1 of 2 1 2 >

Thread Tools Search this Thread

02-28-2011, 12:05 AM

Step-Step-Guide to ePub creation from InDesignCS3


Adjust
Addict Caveat: This is the way I do it, there are plenty of other and probably better methods, but I don't care, because it
works for me

Prerequisites
A working knowledge of InDesign. I will not be describing how to make a style sheet
InDesign CS3
TextWranger (or another text editor which saves as UTF-8 and supports regular expressions)
Dreamweaver CS3
Photoshop (or another image editor)

InDesign:
Tip: Every style change must have a style sheet applied to it
Posts: 351
Karma: 70000 1. Create Character Styles for Italic, Bold, Bold Italic and so on for each element eg (Smallcaps, Dropcap), ID will strip out
Join Date: Jul 2010
any nested styles you must apply the character style to compensate
Location: Australia
Device: ADE, iPad 2. Search for any Dinkus's and apply Paragraph Style "Dinkus" to it
3. Make sure all images which will float are made in-line and have a paragraph style "image" applied
4. Make sure all Bullets, Lists Quotes etc have the following Style Sheet naming convention applied eg. QuoteFirst,
QuoteMiddle, QuoteLast. With the appropriate spacing applied and also a QuoteSingleLine, with space applied to both top
and bottom. This applies to bullet lists as well Tip: InDesign WILL strip out empty carriage returns.
5. Delete all page numbers from Content page.
6. Delete all running heads and Footers. including folios.
7. Splits Document into separate Documents and create a book and insert files into it, ePub will apply a page break for each
Document, so each time you want a new page then create a new document)

8. Check file in the Book for stray elements like Blanks at the start of Files etc.
9. Create a blank Cover file and name it "Front Cover" insert into the book at the start and place an image in if you don't
already have the front cover pic any image will do, and resize to 600x860pixels and call it "Cover.jpg" (also do the Kindle
version while you there resizing to 600x800pixels and label it "Cover_kindle.jpg") Tip: Double check the cover in
Photoshop to make sure it's set to RGB
10. Strip out any Index file and backmatter adds

1 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

11. Export book to Digital Editions. (I like to use these setting below)

Unzip the sample.epub changing the name to sample.zip

The folder Structure will look something like this:

2 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

File clean up
I like to replace the "Cover-fmt.jpeg" in the Images folder with the "Cover.jpg" I made earlier, also adding in the
"Cover_kindle.jpg" to the images folder.

TextWrangler
Open the Content.opf file.
This is what they will typically look like after the conversion.

You will notice that although there are only two images in the epub.
The Content.opf file duplicates these image for every xhtml file in the manifest section. You have to remove these except for
one set. I like to keep the top set under the Cover.xhtml file
Tip: this problem is fixed in InDesign CS5
Once you've done that you need to:

start at the top you will need to add the following lines (because I don't like the way ID puts in certain things).

Firstly. In between the <metadata> tags


PHP Code:

    <dc:identifier id="isbn_9781234567890">978-1-2345-6789-0</dc:identifier>
    <dc:title>Book Title</dc:title>
    <dc:creator>Author Name</dc:creator>
    <dc:publisher>Publisher</dc:publisher>
    <dc:rights>Copyright © Author Name 2011</dc:rights>
    <dc:format />
    <dc:date>2011</dc:date>
    <dc:description>Blurb for the Book</dc:description>
    <dc:subject>Humanities; sciences; social sciences; scientific rationalism</dc
    <dc:language>en</dc:language>
    <meta name="cover" content="my-cover-image"/> 

The date, language, and Cover entries MUST be there, the rest is optional
Next in the <manifest> section
PHP Code:

    <item id="my-cover-image" href="images/Cover_kindle.jpg" media-type="image/jpeg"

This goes with the other images


Next in <spine> section
PHP Code:

    <itemref idref="cover" linear="no"/> 

This replaces the Cover line

Then at the bottom, between the </spine></package> insert


PHP Code:

<guide>
<reference type="cover" title="my-cover-image" href="images/Cover_kindle.jpg"/>

<reference type="toc" title="Table of Contents" href="Contents.xhtml"/>
</guide> 

These two relate to the Kindle conversion.


Tip: If you don't have a content.xhtml file then remove the table of contents line

So you should end up with a file looking like this:

3 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Save and close

The TOC.NCX file you can leave, unless you change order of the files, but if you had them set correctly to begin with then this
will be ok.

Dreamweaver

1. Open the Template.CSS file in Dreamweaver.


2. Insert text below into bottom of the file
PHP Code:

samp {
    font-family: sans-serif;
}
.centerImage1    {
    margin-top: 0%;
    text-indent: 0%;
    text-align: center;
    margin-bottom:0%;
        }
.image {
     margin-top: 1em;
     margin-bottom: 1em;
     margin-left: 1.2em;
     text-align: center;
}
img {
    max-width: 100%
}
p.float {
    line-height: 1.20em;
    font-size: 1.00em;
    float: left;
     clear: left;
    text-align: left;
    font-weight: normal;
    font-style: normal;
    margin: 0 0.5em 0.5em 0;
    color: rgb(0,0,0);

3. In the code where it list the "p" styles (p.stylename). Add at the end of the font family line , serif; (or "sans-serif")
depended on the paragraph style required, like this:

PHP Code:

p.x-body-no-indent {
    font-family: "Minion Pro", serif;
    line-height: 1.30em;
    font-size: 0.96em;
    margin-bottom: 0.00em;
    margin-top: 0.00em;
    text-indent: 0.00em;
    margin-right: 0.00em;
    margin-left: 0.00em;
    text-align: justify;
    font-weight: normal;
    font-style: normal;
    color: rgb(0,0,0);

4. At the bottom of the CSS file you you see:

PHP Code:

span.italic {
    font-weight: normal;
    font-style: italic;
}
span.bold {
    font-weight: normal;
    font-style: bold; 

Tip: the span.bold and span.italic entries could be blank, so you will need to add the required information above

PHP Code:

span.hyperlink {
    color: rgb(0,0,255);
    text-decoration: underline;
}
span.strong {
    font-weight: bold;
    font-style: normal;
}

span.dropcap {
    float: left; 
    font-size: 2.6em; 
    line-height: 0.9em;

4 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Now you are ready to start opening your xhtml files in Dreamweaver.
I open the Cover, Title page and any other file with a full page image.

I select the image and set the max height to 100%

I then move onto the Chapter files and go though each one, to make sure nothing strange has happened and everything is
where it should be.

Next, I open the contents file, and set up my TOC linking (I didn't bother with it in InDesign because the process is a real hit
and miss PITA. It's much easier and faster IMO to do it from here.)

All you do is select, say, Chapter One. In the "link" pallet at the bottom, click on the Folder icon and choose Chapter_01.xhtml.
And that's it...Rinse and repeat for the remaining chapter entries in your Contents file.
To link you chapters BACK to the Contents.xhtml file, then you need to open each chapter and select the text you want the
hyperlink to be on, in this case it's Chapter One. Click on the folder icon next to the "link" window at the bottom. and select the
content.xhtml.

Once you are happy with what you have, then you need to compress the epub folder back up.

I do this by dragging the folder onto an Applescript which you can find here:
https://www.mobileread.com/forums/sho...light=epub+zip

Once you have the filename.epub


I go to the three press website and run it through the validater
http://www.threepress.org/document/epub-validate/

5 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Ok. I think that's it.


This is just a guide on how I make epub files from InDesign CS3.

It is NOT to start a debate on the the quality of the CSS code as it is what InDesign generates and for that reason
I've left it as is...

I hope people will find this useful. If I have made some glaring mistakes, please feel free to let me know and I'll fix up my
post.

Last edited by Adjust; 03-01-2011 at 05:26 PM.

02-28-2011, 02:56 AM #2

That's a damned expensive way to create an ePub book! InDesign, Dreamweaver, Photoshop? How
HarryT much is that little lot going to cost someone?
eBook Enthusiast

Posts: 85,515
Karma: 82356324
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad
Pro 10.5", iPhone 6

Advert

02-28-2011, 03:06 AM #3

If theys have InDesign CS3 there's a good chance they will have the CS3 package which include
Adjust Photoshop and Dreamweaver, But as I mentioned this is how I do it.
Addict

6 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad

02-28-2011, 04:37 PM #4

And, if you're a publisher who is already using ID for the print version, it is desirable to be able to
st_albert create the epub (and other formats) from the same ID master files that contain all revisions, etc.
Guru

Posts: 675
Karma: 150000
Join Date: Feb 2010
Device: none

02-28-2011, 09:25 PM #5

Entering Metadata from InDesign


wannabee
Media Bloke Quote:

Originally Posted by st_albert


Posts: 2,380 And, if you're a publisher who is already using ID for the print version, it is desirable to be able
Karma: 113956855 to create the epub (and other formats) from the same ID master files that contain all revisions,
Join Date: Sep 2010 etc.
Location: NSW - Australia
Device: iOS
Which is the case where I work st_albert. The books are already Quark and InDesign.
Nice work Marcus. This should help a few InDesign users.

A bit more about adding the metadata to the InDesign file for export to ePub. If anyone was wondering
how it is entered - here's how. After creating the chapter files and adding them to a new book. Select
the file you created all your paragraph and character styles from the book window.
With that file open select FILE INFO from the FILE menu and add the title, author, copyright data etc. It
will export that data to the content.opf file in the ePub as metadata. As mentioned above you'll need to
edit the <dc:date /> because CS3 & 4 don't have a field to enter it and the ePub wont validate without
it.
Ensure your source file with the info and styles in it has been checked in the style source box in the
book window before exporting.
Attached Thumbnails

Advert

02-28-2011, 09:45 PM #6

Adjust Quote:
Addict Originally Posted by wannabee
A bit more about adding the metadata to the InDesign file for export to ePub. If anyone was
wondering how it is entered - here's how.

Nice one Wannabee...

I left that out on purpose because, as I have to edit the date field in anyway, I just have a dummy text
file sitting on my desktop with all the generic copy and paste info ready to go...

Hopefully what I wrote is not too confusing?

Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad

04-13-2011, 11:45 AM #7

Picture sections?
fiona86
Member Great post this was really helpful, thanks! Was wondering if you had any experience with exporting
picture sections? I'm working on some books with picture sections now and after I export the book to
digital editions the pictures get pushed to the front of the book and the some/all of the chapters are

7 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Posts: 10 missing. If anyone has any advice about this I'd love to hear it!
Karma: 10
Join Date: Apr 2011
Device: none

04-14-2011, 12:19 AM #8

Hi Fiona
wannabee
Media Bloke
I think this attachment can explain it better than I can.

Posts: 2,380 Another tip. Existing books might have artwork created in the inDesign file with vector tools etc which
Karma: 113956855 will be discarded. Zoom in on the existing art with high quality display on and do a screen dump and
Join Date: Sep 2010 work with that.
Location: NSW - Australia
Device: iOS
Oh! Welcome to the forum
Attached Files

eBooks_optimizing_images.pdf (487.3 KB, 5806 views)

04-14-2011, 02:41 AM #9

I'll have more time tomorrow to explain how I do it...


Adjust
Addict
I'm assuming your image section is in ID?

Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad

04-14-2011, 04:10 AM #10

Hi Mark, thanks for the attachment and for the welcome so glad I found this forum!
fiona86
Member
@Adjust, Yeah my image section is in ID CS3, if you have any tips that would be great!

Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none

04-14-2011, 08:51 PM #11

So basically when I get an illo section to do, it's in a separate ID document.


Adjust
Addict
InDesign CS3
And looks a little like this:

You then need to, if you haven't already, apply a caption Paragraph style the caption text...

Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad

8 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Then. All I do is rearrange the caption boxes to be underneath the photos.

And then group Photo box with the Caption Box.

That's it.

Export to digital editions:

9 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

TextWrangler
Open the both the Contents.opf files of the newly created illo Section and the eBook .opf file the illo section is going into.

And just copy the Image information inside the manifest section, into the main OPF manifest

Dreamweaver
Open the illo section .CSS file, and insert the page break line to the caption style.

Then copy it into the "book" template.css

10 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Then open the illo .xhtml file. and cop and paste all the stuff inside the <body></body> tags, and past it where you
want it to go inside you book .xhtml files...

So after a bit of fine tuning the code you should end up with something looking like this:

11 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

And from the design view:

I hope this all makes sense.


Adjust

04-14-2011, 09:15 PM #12

@adjust - Excuse me if I've missed the bleedin' obvious but why wouldn't you just keep the illustration
wannabee sections in the same document as the rest of the book so you don't have to cut and paste the manifest
Media Bloke
etc?

Posts: 2,380
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS

04-14-2011, 09:35 PM #13

Adjust Quote:
Addict Originally Posted by wannabee
@adjust - Excuse me if I've missed the bleedin' obvious but why wouldn't you just keep the
illustration sections in the same document as the rest of the book so you don't have to cut and
paste the manifest etc?

Illustration sections are printing separately to the text. Usually on a 4-Colour press and on different
paper stock. They are done in either 4, 8, 16, 32 page section. This means it can be bound up
anywhere they want to put it in the book.

It also gets printed at different times, hence the need for a separate, ID Document.

Why I didn't include it into the ID "Book" as a separate file and call it Pic section?
Posts: 351
Karma: 70000 It's because my clients want it to appear as close to where it falls in the printed edition as possible. This
Join Date: Jul 2010 mean that it needs to go inside a chapter. As pic sections very very rarely fall in between chapters.
Location: Australia
Device: ADE, iPad

04-14-2011, 10:13 PM #14

OK, I get that. However, I would have opened the colour picture file, which you have shown us above,
wannabee and copied it all and then opened the chapter you need to insert them into and paste them into the
Media Bloke
correct location of that chapter? The last page text box will overflow. You know how many pages you
just pasted so add that many pages to the chapter and Bobs your uncle.
Posts: 2,380
Karma: 113956855 I'm not telling you how to suck eggs Marcus but wouldn't that be easier than your work-around mate?
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS

04-14-2011, 11:08 PM #15

No you are correct. In my case I never get both text and illo files at the same time, so I have to do
Adjust both separately.
Addict

You would still have to Group the images to the captions and then copy and paste them into the main
text thread to ensure they are in the correct position after epub conversion.

I find it easier to manage to do it this way...

Last edited by Adjust; 04-14-2011 at 11:17 PM.

Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad

Page 1 of 2 1 2 >

« Previous Thread | Next Thread »

12 of 13 6/28/19, 6:48 PM
Steps for creating an ePub from Indeisgn CS3 - MobileRead F... https://www.mobileread.com/forums/showthread.php?t=123439

Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post

creating epub: updating file marcostt ePub 7 12-13-2010 11:05 AM

Creating epub books by hand RobW ePub 9 12-12-2010 01:04 PM

Apple: Creating ePub files with Pages kjk Apple Devices 1 08-26-2010 05:46 PM

Creating ePub files crutledge Calibre 4 12-29-2009 08:48 AM

Tips on creating EPUB Student1 ePub 3 03-22-2009 12:41 AM

All times are GMT -4. The time now is 12:48 PM.

-- Fixed Contact Us - FAQ - Guidelines - Privacy - Top

MobileRead.com is a privately owned, operated and funded community.

13 of 13 6/28/19, 6:48 PM

You might also like