qwersyk / Newelle

Newelle - Your Ultimate Virtual Assistant
https://flathub.org/apps/io.github.qwersyk.Newelle
GNU General Public License v3.0
152 stars 19 forks source link

Displaying math formula in Newelle with LaTex #68

Open FrancescoCaracciolo opened 3 months ago

FrancescoCaracciolo commented 3 months ago

It would be nice to allow displaying LaTex math formulas in Newelle. The problem is that I don't think that GTK supports LaTex rendering, so we will probably have to display them as images.

qwersyk commented 3 months ago

grafik I so think this can be implemented through an extension.

qwersyk commented 3 months ago

The problem may occur with importing matplotlib.

FrancescoCaracciolo commented 3 months ago

The problem with making it an extension is that if the text contains multiple equations, like while solving a math problem, it won't display the formula in the middle of the text

FrancescoCaracciolo commented 6 days ago

Today I tried implementing it but with not much success. In GTK is very hard putting images between text, so for simple equations in text I can't get it to work. For equations on a new line all good though. So I decided to only make an extension for now immagine Download