Looks like there is no proper way to have a symbol with both a subscript and a prime sign in LibO Math. I.e. if you try to have something equivalent to LaTeX "x'_1" you can either do x_1^' but in this way the prime sign ends up way too small and too high; or x'_1 but in this way the subscript gets too much on the right; or x_1' but in this way the prime sign gets too much on the right
You can workaround it by using x_1^{size*1.6 ′} and setting the spacing for superscript to 0%. In what mathematical context and meaning do you need such a type setting?
Thanks, but this too is not very satisfactory. Seems to be hackish, because it hardwires a 1.6 that should actually depend on the relative font size that you selected. Furthermore, the ' goes way too high. > In what mathematical context and meaning do you need such a type setting? I work in electronic engineering. But basically, I think that this can be useful in many contexts. Basically, whenever one has a quantity with a subscript and needs a prime sign to differentiate a "companion" quantity.
Note that the issue can be solved in different ways: 1) Assuring that ' is treated as a proper superscript, so that a subscript is placed below it and not also to the side of it; 2) providing the concept of "negative space" to LibO Math, so that one can remove the horizontal space taken by the prime sign. 3) providing the concept of "object taking no space" to LibO Math, so that the prime sign can be inserted without it taking any horizontal space. Note that 1) is what LaTeX does seamlessly. And I must admit that I am spoiled by LaTeX.
Created attachment 129786 [details] Use of mpadded in MathML (In reply to sergio.callegari from comment #3) > Note that the issue can be solved in different ways: > > 1) Assuring that ' is treated as a proper superscript, so that a subscript > is placed below it and not also to the side of it; There is no problem using an apostrophe (' U+0027) or a prime (′ U+2032) as superscript and stacking of superscript and subscript works too. But for these two characters the tick is rendered high in itself, so it looks as if it is placed very high, in case the character is set to superscript in addition. To get a better looking solution, you need an option to get influence on the position, and that would be way "2". The currently possible setting in Format > Spacing > Category: Indexes is a global setting. A setting per character or group is needed. > > 2) providing the concept of "negative space" to LibO Math, so that one can > remove the horizontal space taken by the prime sign. I would go with this proposal, because the normative language is not StarMath but MathML. And MathML has already the attributes lspace and voffset in its <mpadded> element and allows negative values for them. The request here would be to extend StarMath to support this element and its attributes. I have attached MathML examples, where you can see, how <mpadded> works. Look at it in a browser like SeaMonkey (or perhaps Firefox; I have not tried). You can open the examples in an editor and alter the attribute values. Would this solve your request? If yes, then I suggest, to alter the subject accordingly. > > 3) providing the concept of "object taking no space" to LibO Math, so that > the prime sign can be inserted without it taking any horizontal space. I do not see the difference to way "2". > > Note that 1) is what LaTeX does seamlessly. And I must admit that I am > spoiled by LaTeX. What does LaTeX, if you do not use a prime but a different character, for example a "T"? Would you please attach an image, how LaTeX renders these examples, in a large zoom?
> What does LaTeX, if you do not use a prime but a different character, for > example a "T"? Would you please attach an image, how LaTeX renders these > examples, in a large zoom? Dear Reporter, Could you please answer the question above? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the question is answered
Sorry for having missed your questions before. Please check the attached file.
Created attachment 137410 [details] Demo file, with visual answer to question. This is odg and contains both "LaTeX" rendering (rendered as svg via the texmaths extension) and the corresponding LibO Math rendering.
(In reply to sergio.callegari from comment #7) > Created attachment 137410 [details] > Demo file, with visual answer to question. > > This is odg and contains both "LaTeX" rendering (rendered as svg via the > texmaths extension) and the corresponding LibO Math rendering. You did not answer the first question in comment #4 (Would this solve your request?). So status set back to NEEDINFO, please set it back to UNCONFIRMED once requested informations are provided. Best regards. JBF
Sorry, you are right, I missed that. I think that the "normal_padded_prime" example looks like a significant improvement with respect to the current situation. I would definitely go for it!
(In reply to sergio.callegari from comment #9) > Sorry, you are right, I missed that. > > I think that the "normal_padded_prime" example looks like a significant > improvement with respect to the current situation. I would definitely go for > it! @Sergio, should this bug then be closed as RESOLVED WORKSFORME ?
Dear Bug Submitter, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping-20190321
Answered in comment #9. Closing as WorksForMe from the given answer. Please, feel free to reopen if you disagree. Best regards. JBF