An example file of your CSS style sheet
#1  roger64 01-28-2011, 12:54 AM
Hi, Luke

I am about to publish on MobileRead several EPUBs using W2E and I have a modest request.

You leave us the choice of the font. Out of that, we have to use your CSS sheet. However, out of the main styles, I am sometimes surprised by what I get on my screen. Under the same style name, you and me can put very different things.

So, I came upon this proposal: please, could you prepare and publish here on MobileRead a short odt text using your styles, so that we can select quickly which particular style to use.

You just would have to write each style with his name and, this way, we could know quickly and preciseley how your particular styles look ans select them confidently without undue trial and error, a kind of tool we could use a little like a painter's palette or, better, to adapt precisely a model using your style names.

A personal wish: keeping on your site your latest extension, would also be very handy.

#2  eBookLuke 02-04-2011, 02:14 AM
Right, this request will be part of the "user manual".
The only problem is to translate the style name in all languages.
In a week, more or less, I will release a list of the suported styles.



#3  weedfreak 02-11-2011, 01:43 PM
I found it is 'more or less' obvious, at least to me, what the styles are by looking at the css file in any ebook made with W2epub. I was looking as I was not happy with one or two styles and wanted to change them, preferably at creation time.

I found the cs.xba file deep in LibreOffice uno_packages which is the file that creates the css file. With a proper text editor you can alter this file to produce your own css file (at your own risk of course.) You need to restart Writer to get the changes registered, but it is quite painless and you get your books formatted as you want them.

#4  eBookLuke 02-11-2011, 04:22 PM
Quote weedfreak
I found it is 'more or less' obvious, at least to me, …I was looking as I was not happy with one or two styles and wanted to change them, preferably at creation time…
The simplest way:

Go to Tools>Macros>Organize Macros>OpenOffice Basic
Then goto MyMacros>Writer2ePub>CSS>CreateCSSfile and press Edit.

Now you can change the code that creates the CSS, according to tou need.

As soon I will have some time, I will add the capability to use a editable CSS and/or a choice of some CSSs


#5  weedfreak 02-11-2011, 04:27 PM
Thank you even easier than my roundabout way. An editable css would also be be nice, but this is anyway my most use LO extension.

#6  Ken Irving 04-07-2012, 01:37 PM
For almost everything I do through writer2epub I have my own standard style sheet that I add into the epub file after it's done, copying over the one generated by writer2epub. I thought about modifying the CSS code within the macro itself, but felt that would make for too many problems.

#7  Michael_ZZ 04-11-2012, 03:59 AM
Now, this is a great tip (a couple of days old, though )

I've added that to the German Wiki (Advanced section).

Today's Posts | Search this Thread | Login | Register