View Single Post
Old 04-16-2013, 06:29 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by grannyGrumpy View Post
I hope you find a solution, I will absolutely steal it!
Impossible to "steal" something which is intangible!! Are we not all here to make better ebooks?

But feel free to copy/emulate what we learn here in this topic!

Also, feel free to also take a look at any of the 100+ books I have worked on over the past year (almost all Non-Fiction Economics books) and give comments/tips/suggestions. It will be much appreciated.

I also must begin compiling all these tips/tricks I have absorbed from the forums into one ultimate resource. Sometimes these goodies just disappear into the abyss... never to be seen again!

Quote:
Originally Posted by mzmm View Post
ha, i just ran into this problem in a book i'm working on literally 10 minutes ago.
Oh? Which book?

Quote:
Originally Posted by mzmm View Post
here's what i'm using now to float a number inline with a block of text:

Code:
<p style="float:right;">(##)</p>

<p>here's some text with a number floated to the right of it</p>
Thanks, but I was aiming more for the "one line" solution.. although this looks to be viable as well.

Quote:
Originally Posted by Agama View Post
Here's an ePub showing both float left and right.
I use spans in the paragraph but they are both defined before the text of the paragraph, (otherwise they don't float properly.) Works with my Sony reader which is ADE based. (I think this is really the same as mzmm's solution, but I prefer using span.)
I spent a few minutes on Agama's test EPUB, and I believe I have figured out what the problem is:

This code works fine in ADE (as Agama's EPUB shows) (See Image 1):

Code:
<p class="cen"><span class="fll">(1)</span> <span class="flr">(1)</span> A lot more text than normal Text</p>
This code does not work fine in ADE (See Image 2):

Code:
<p class="cen"><span class="fll">(1)</span>A lot more text than normal Text <span class="flr">(1)</span></p>
I even tried this (no space), but it was also dropped down a line:

Code:
<p class="cen"><span class="fll">(1)</span>A lot more text than normal Text<span class="flr">(1)</span></p>
Quite frustrating... I wanted the formula number to still be on the right side if the floating failed.... now it seems as if I will have to move them all to the beginning of the formula to appease the ADE gods.
Attached Thumbnails
Click image for larger version

Name:	ADEFloatTest1.png
Views:	317
Size:	8.2 KB
ID:	104498   Click image for larger version

Name:	ADEFloatTest2.png
Views:	329
Size:	8.2 KB
ID:	104499  
Tex2002ans is offline   Reply With Quote