![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, EPUB has no support for LaTeX, it allows only HTML and SVG.
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
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? |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use a comment
<!--- whatever --> |
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
@kovid suggestion is the way to go, so it will stay hidden and not mess with your code. |
|
![]() |
![]() |
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
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 |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
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 |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
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
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |