07-13-2019, 03:14 PM | #1 |
Wizard
Posts: 1,079
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
SVG editor
I've been using
https://www.codecogs.com/latex/eqneditor.php in order to make the LaTeX to replace poor quality JPGs, GIFs, PNGs, etc. of equations with an SVG image. Working well, but when I import the SVG into a epub, I get what looks like a lot of vector paths. The result is good, but if I have to correct something, I have to start over at codecogs. Is there a way to save the SVG differently in the epub-- preferably as the 'raw' LaTeX -- so that I could just paste it into codecogs, fix, and resave? |
07-13-2019, 10:48 PM | #2 |
creator of calibre
Posts: 43,957
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, EPUB has no support for LaTeX, it allows only HTML and SVG.
|
Advert | |
|
07-14-2019, 09:11 AM | #3 |
Wizard
Posts: 1,079
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Does the img tag have a field that I could 'hide' the LaTeX in to be recalled and reused if I need to correct by pasting it back into codecogs?
The only thing I could come up with is to use the alt=" " but I'm not sure if that might cause problems somewhere else Any other ideas? |
07-14-2019, 10:34 AM | #4 |
creator of calibre
Posts: 43,957
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use a comment
<!--- whatever --> |
07-14-2019, 04:26 PM | #5 | |
Guru
Posts: 941
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
@kovid suggestion is the way to go, so it will stay hidden and not mess with your code. |
|
Advert | |
|
07-14-2019, 05:05 PM | #6 |
Wizard
Posts: 1,079
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@KG -- A <!---LaTex --> it is. Thanks
@thiago.eec -- good point, that's why I wanted to ask. In my case however I mostly just edit/reformat books to make them the way I like to read them on my PaperWhite. Still, I like to do things the right way Thanks for the tips |
07-22-2019, 12:59 PM | #7 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I gave an example in this post of how I currently use HTML Comments with LaTeX forumlas (and good alt attributes too): https://www.mobileread.com/forums/sh...50#post3655650 |
|
07-23-2019, 09:28 AM | #8 |
Wizard
Posts: 1,079
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Very nice -- FWIW I created a snippet to insert the comment tags, and position the cursor ready to past in the LaTeX formula
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor | thiago.eec | Development | 7 | 01-09-2019 08:05 PM |
SVG images | AlanHK | Kindle Formats | 0 | 08-24-2018 07:58 AM |
Can't add cover in Calibre -- get "svg-error" (the property 'svg' should be declared) | Just some guy | Editor | 7 | 04-11-2017 09:54 PM |
Editor: ToC Editor: Start entry | macnab69 | Editor | 2 | 06-25-2014 11:15 AM |
Book Editor TOC Editor Isue? | weberr | Editor | 2 | 04-17-2014 11:13 AM |