I commonly use certain types of formulae over and over and it would be nice if I could somehow embed them into the pre-defined examples. In fact, I have never used any of those so it would be great if there was a way to edit the list of samples altogether. I have not been able to poinpoint the location of the given samples in my filesystem so I suppose they are somehow embedded in the source-code. Maybe the most comfortable would be loading the examples from a certain location that could be a configurable path, similar to templates in Writer. Thanks for any comments and consideration, and many thanks for the great office suite!
The examples are hard coded in source. Currently no means via UI and profile to modify the examples or provide user curated collection of their preferred formula. But agree that would be a good enhancement to the sm Formula editor. Doubly so given the pain most LaTeX users have with formula entry (e.g. bug 73593 or bug 96208) allowing a means to do the entry/conversion once and have it available would be helpful. =-ref-= [1] https://opengrok.libreoffice.org/xref/core/starmath/source/ElementsDockingWindow.cxx
A more direct link to the formula examples in the Elements panel: https://opengrok.libreoffice.org/xref/core/starmath/source/ElementsDockingWindow.cxx?r=c37022ff#436
I'd rather go with another category "User-defined". When selected we show an Add button (and Delete) that allows to store the current function.
(In reply to Heiko Tietze from comment #3) > I'd rather go with another category "User-defined". When selected we show an > Add button (and Delete) that allows to store the current function. That makes a lot of sense! Just leave the hardcoded examples alone. And probably cleanest UI as a new SB deck. Feasible since Mike migrated the Elements and Properties panels into the SB framework (bug 125931). Also would imagine such "User-defined" StarMath/MathML snippets would go into a path on the user's profile with a config folder there (similar to autocorr and autotext), and not dumped into the registrymodifications.xcu
I just wanted to thank you for the welcoming reactions to my modest proposal. It is really wonderful to be able to suggest modifications to such a huge and great piece software. Your answers make it sound like it could be done and I hope that this eventually becomes reality. Thanks for
(In reply to sm8ps from comment #5) > I just wanted to thank you for the welcoming reactions.. That's what makes open source software great. And your kind words encourage developers to look into the proposal :-).
Heiko Tietze committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f395e6599facba41392eac3d646a0d505868e6fa Resolves tdf#163685 - Save user-defined formula It will be available in 25.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Save the formula per right click or Tools > Save User-Define Formula. Delete it per right click in the "User-defined" category.
You are prompted to enter a name for the new formula. Using the same name will replace the existing formula (the name is shown in the tooltip).
Thanks for the feature. Would be nice to have in https://wiki.documentfoundation.org/ReleaseNotes/25.2
I have finally found the time to test the functionality on today's daily build and am very happy to say that it does just what I had in mind and that the usage is quite intuitive. Many thanks to everybody involved making this possible, especially to Heiko Tietze for the programming work. What a nice gift in the time between Thanksgiving, Black Friday and Christmas! (: One suggestion regarding the naming functionality: would it make sense to have the dialogue prompt read something like "Save formula as (name appears as tooltip):" in order to make it clear where to find the name in case somebody either wishes or does not want to overwrite an existing formula? Cheers!