08-16-2010, 02:32 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
|
Math Epub
Hi,
I'm using sigil to create a ebook about geometry. Because of a lack of character, for symbols like \triangle \angle etc. I have to use png's. The issue I am having is that Sigil automatically places a space between the symbol image and the text after it. I am somewhat new to html and epub, but I have a strong background in LaTeX. Is there anything I can place between the png and the text after it, to get rid of the space? Thanks. |
08-16-2010, 03:04 PM | #2 |
Groupie
Posts: 185
Karma: 1004070
Join Date: Jul 2010
Location: Italy
Device: Kindle for Android, Google Play Books
|
In case you are interested, ePub supports SVG images, and the popular Inkscape SVG editor can also render TeX code.
|
Advert | |
|
08-16-2010, 05:32 PM | #3 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Are you generating specific pics, or are you trying to use general symbols? If general, unicode supports a lot of mathematics symbols -- try using Character Map to find the ones you need, and embed the font you like in the document itself so there won't be any missing symbols.
|
08-18-2010, 02:32 AM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
|
I'm using general symbols, because certain symbols would show up as working in sigil, but onced view with an iPad or adobe digital editions, the symbol would appear as a question mark. So I had to replace ⧍ with a png because it wouldn't show up in readers, and I had to replace Ɵ because it would not allow me to italicize it.
I haven't tried to use svg's. Will a svg resize on a reader? |
08-18-2010, 03:45 AM | #5 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Depends on the Reading System. Others will have to answer to that specifically -- I'm currently between readers, and haven't ever owned the most popular ones.
I assume that Sigil is properly naming the code page. So the iPad and ADE aren't unicode-capable? That, while not shocking given the disregard with which our corporate overlords do things, does surprise me a little. I think you would almost have to go out of your way these days to disable unicode. For the PNG spacing: I just tried it with a simple paragraph, and I don't have a space at all. Could you share a small snippet of code? |
Advert | |
|
08-18-2010, 09:42 AM | #6 | ||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Quote:
Font embedding saves the day for RS's that support it (iPad doesn't). |
||
08-18-2010, 09:54 AM | #7 | |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
08-18-2010, 10:48 AM | #8 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
|
Unfortunately, everything I make needs to be able to show up in iBooks on the iPad.
I have tried just having no space, between the picture and text, but sigil will automatically replace the space. here's what the code looks like for ⧍ABC Code:
.calibre1 { height: auto; width: auto; border-width: 0px; border-style: none; white-space: nowrap; padding: 0 } .ecbx { font-weight: bold } <img alt="" class="calibre1" src="../Images/triangle.png" /> <span class="ecbx">ABC</span> |
08-24-2010, 03:28 PM | #9 |
Developer
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
|
One thing you might try -- don't know if this will work, but it's worth a shot. Add a negative right margin declaration like so:
Code:
.calibre1 { height: auto; width: auto; border-width: 0px; border-style: none; white-space: nowrap; padding: 0; margin: 0 -0.5em 0 0; } To auto-resize an image, you could try specifying the size of the image in units of em. So: Code:
.calibre1 { width: 1.2em; border-width: 0px; border-style: none; white-space: nowrap; padding: 0; margin: 0 -0.5em 0 0; } |
08-26-2010, 12:27 PM | #10 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
|
The Negative margins worked great. I really don't have an issue with the way the png are showing up, because I have them about the median size of the range of font sizes a reader device can use.
|
Tags |
math, sigil, space |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB Math: Best Practices for Mathematics in Ebooks | Adjust | News | 0 | 08-23-2010 10:17 PM |
PRS-505 Math equations | luma | Sony Reader | 4 | 06-04-2010 07:44 AM |
Math Books | MachinegunDojo | Reading Recommendations | 6 | 04-14-2010 11:06 AM |
Math fiction | Pablo | Reading Recommendations | 1 | 10-06-2009 09:57 PM |
Calling all Math Enthusiasts! | Mike's Place | Introduce Yourself | 36 | 05-20-2009 07:13 PM |