Thread: Image upscale
View Single Post
Old 09-13-2023, 03:00 PM   #7
Elvys
Member
Elvys began at the beginning.
 
Elvys's Avatar
 
Posts: 17
Karma: 10
Join Date: Sep 2021
Location: Spain
Device: Kobo Sage
Quote:
Originally Posted by DNSB View Post
I would suggest something like using a style to set the image size relatively close to the text size. Change the height to get your best match.

Something like:

Code:
.formula {
height: 1.5em;
width: auto;
}
And in the text files, use something similar to the following:

<img alt="formula name" class="formula" src="../Images/formula002.jpeg">

I suspect that Regex will be your best friend for this task.
I'm afraid that wouldn't work either, some formulas are several lines height.
Elvys is offline   Reply With Quote