|
|
#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. |
|
|
|
|
|
#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 | |
|
|
|
|
#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.
|
|
|
|
|
|
#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? |
|
|
|
|
|
#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 | |
|
|
|
|
#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). |
||
|
|
|
|
|
#7 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,838
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#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>
|
|
|
|
|
|
#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;
}
|
|
|
|
|
|
#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 |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EPUB Math: Best Practices for Mathematics in Ebooks | Adjust | News | 0 | 08-23-2010 11:17 PM |
| PRS-505 Math equations | luma | Sony Reader | 4 | 06-04-2010 08:44 AM |
| Math Books | MachinegunDojo | Reading Recommendations | 6 | 04-14-2010 12:06 PM |
| Math fiction | Pablo | Reading Recommendations | 1 | 10-06-2009 10:57 PM |
| Calling all Math Enthusiasts! | Mike's Place | Introduce Yourself | 36 | 05-20-2009 08:13 PM |