View Full Version : Epub formatting


kurt_da_nerd
06-16-2008, 05:05 PM
:help:Does anyone know how to make indentions for paragraphs when converting to ePub??? I know that for html documents, you simply put ^t^p, but that doesn't seem to work for ePub format. I've been trying to figure it out for hours!:smack: If anyone has ANY ideas please let me know.


thanks:2thumbsup,
Kurt_da_nerd

Hadrien
06-16-2008, 08:27 PM
Change the properties for p in your CSS file.

Peter Sorotokin
06-16-2008, 09:42 PM
:help:Does anyone know how to make indentions for paragraphs when converting to ePub??? I know that for html documents, you simply put ^t^p, but that doesn't seem to work for ePub format. I've been trying to figure it out for hours!:smack: If anyone has ANY ideas please let me know.

Your stylesheet should say something like

p { margin: 0px; text-indent: 1em; }

This is proper way to do it in HTML as well, BTW.

kurt_da_nerd
06-17-2008, 01:19 PM
First off thanks for the replies however, i am still having trouble. i am amble to put that piece of code into my xhtml document, however i cannot figure out how get the new xhtml document back into epub format. that only program that i have that can convert files to epub format is indesign and i cannot figure out how to get an xhtml file back into indesign

i have tried to just put the "text" of the xhtml file into indesign like i would a word document but all that does is create an epub file of the code, and not formatted text.

any help is appreciated

-kurt_da_nerd

Hadrien
06-17-2008, 01:43 PM
First off thanks for the replies however, i am still having trouble. i am amble to put that piece of code into my xhtml document, however i cannot figure out how get the new xhtml document back into epub format. that only program that i have that can convert files to epub format is indesign and i cannot figure out how to get an xhtml file back into indesign

i have tried to just put the "text" of the xhtml file into indesign like i would a word document but all that does is create an epub file of the code, and not formatted text.

any help is appreciated

-kurt_da_nerd

An ePub file is basically a zip file containing all of your documents. Any software capable of opening a zip file can also open an ePub document. Open the document and edit your CSS stylesheets directly this way.

kurt_da_nerd
06-17-2008, 01:59 PM
thanks. However, I am very new to this whole eBook making extravaganza, and I do not know what a CSS style sheet is, or how to access it. could you please give me some tips? Possibly some examples of good programs to use as well?

wallcraft
06-17-2008, 02:26 PM
See Experimenting with epub - Creation (http://www.teleread.org/blog/2007/10/31/experimenting-with-epub-creation/).

MichaelCampbell
05-11-2010, 12:13 PM
Although most mobile readers refer to your CSS stylesheet, they ignore paragraph tags in favor of their own settings. I don't know why, and it's maddening.

If you want to force your style choices, use span tags, which are generally respected. For titles and headlines, use heading tags.

Here's a FAQ on ePub formatting. (http://web.me.com/micksomaha/MC/eBooks_ePubs.html)

charleski
05-11-2010, 03:04 PM
Although most mobile readers refer to your CSS stylesheet, they ignore paragraph tags in favor of their own settings. I don't know why, and it's maddening.
Err, no...

ePub readers recognise <p> and <div> tags just like any renderer and they default to block-level elements, whereas <span> tags default to inline elements (a behaviour which can, of course, be changed).

Maybe you should give an example of the code that's been causing you problems.