[Evolution-users] Latex Equations plugin for Evolution
Cyril Soler
cyril.soler at inria.fr
Sat Apr 5 13:36:33 UTC 2025
Hi, I have been looking for a plugin to convert latex code into proper equations (such as this $\int_0^\infty f(x)dx$ => nice equation inside the text) without success, so I implemented one.
I would like to publish the code, but before that I need to make the UI
user-friendly. I have a few questions, which I hope this mailing list
is the right place for (Please tell me if I'm wrong):
- I use this to add an action to the toolbar of the msg composer
window:
staticGtkActionEntrymsg_composer_entries[]={
{ "convert-latex-equations-action",
"pdflatex",
N_("M_y Message Composer Action..."),
"<Shift><Control>l",
N_("Convert LaTeX equations"),
G_CALLBACK (action_msg_composer_cb) }
};
however, the "pdflatex" icon is only available in the breeze icon theme (/usr/share/icons/breeze/actions/22/latex.svg)
so the plugin doesn't find it.
Q1: how can I specify this icon?
Q2: how can I specify my own svg (or png) icon?
I obviously looked into the examples here: https://github.com/GNOME/evolution/tree/master/src/plugins but none of them seem to use their own icon.
Also:
Q3: how can I enable/disable a button of the interface (the one I added) dynamically depending on whether the editor is HTML of plain text (inserting images requires HTML)
Thank you in advance for any help or proper redirection!
Cyril
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/evolution-users/attachments/20250405/cdcfb8ed/attachment.htm>
More information about the evolution-users
mailing list