Once you have made the corrections that solve the style and display issues, then you can take a copy of the CSS file and save this somewhere in your working files with a logical name (mine is dream.css). If we need to return to InDesign then we will lose these corrections that we make to the CSS, because InDesign will generate the same ones again. On the other hand, just opening the XHTML file in a web browser will also give a good idea of the result. If you want to view one of your XHTML files when open in Atom, you should obtain an extension called HTML-Preview. We can make adjustments to the height of this block of colour by adjusting the leading – in CSS this is the line-height: I grabbed the hexadecimal value of the colour from the swatch in InDesign.
We then look for and find this block in the CSS. In our Export Tagging setting we configured the paragraph style called act to use the tag - h1 with a class name of ‘act’. Version alert: Since InDesign 2015 edition it is possible to use Background Shading in a paragraph style, so we might us this instead of offsetting a paragraph rule. The reason for this error is that InDesign does not export the rules (lines) above or below the paragraphs from the paragraph style settings, and our tex is white so it disappears. You will remember from our previous chapter that we found that an offer rule that provided a background grey block to the Act heading had disappeared when we views the ePUB. The main CSS file is where the generic styles are located (those which are common throughout the eBook), and then each of the others will only include style information for elements present in those separate XHTML files.Īll we want to do at this stage is to edit the stylesheet called idGeneratedStyles_0.css. If you have used the InDesign book panel to organise your content, you are gong to find several CSS files one main file with a filename- idGeneratedStyles_0.css and then further stylesheets one for each of the documents in your book panel.
#EPUB PACKAGER HOW TO#
In our workflow we plan to return to InDesign for further edits, so let us explore how to create our own copy of the stylesheet (CSS), that we can link back in the next time we export to the ePUB. This means avoiding the editing of the XHTML documents and just focussing on the stylesheets. This really depends on how the ePUB looks after export from InDesign and what changes you want to make, but crucially you need to keep your options open to go back to InDesign to make further changes. I tend to use Atom as the text editor, and once you have unpacked the ePub (using the script just described), then you can drag the complete folder onto the Atom app, and this will then become a project that you can edit.
#EPUB PACKAGER SOFTWARE#
It really depends on the software tools that you have. These days I use Atom Vscode as my text editor and so, although you can view the insides of the ePub package, you need to unpack before editing.Įdit: Atom and Vscode are very similar Unpacking and repackingįor this I recommend downloading eCanCrusher available here: Can we Edit? Oxygen is more sophisticated and expensive it will allow you to remove and add files into the package, so if you wanted replace a picture, Oxygen will do it! BBedit is the one I have used, but Oxygen XML will also give you that ability. Some text editors have the functionality to edit the components of the ePUB package even without unpacking. Not all aspects of our wonderfully crafted typographic design work will give perfect results in the ePub. When we have created a reflowable ePub by exporting from InDesign, we may find that there are some stylistic details that need tidying up, changing or even correcting. Displaying the Table of Contents as a Page.How can the Landmarks help in the way the eBook is read?.Editing inside the ePUB package On this Page