Superscripted font is cut off and line spacing increased when smaller block quoted text has footnote or endnote in it, due to use of one font size for all footnotes in document.
While I realize this may be caused by a limitation of the .odt format itself, given that it may not support saving different anchor text font sizes for footnotes against different main document text sizes, there IS a way to program a workaround, and that should be done. Simply look at the size of the surrounding text (to the anchor text of the footnote) and if that surrounding text is a smaller point size than the default text (e.g., of a document's main body), then calculate the size and position of the superscript for the anchor text (i.e., footnote or endnote indicator) to be proportionally smaller.
For example, if my main document text, in the Default style, is 11 points, and that is the size used as the basis for calculating the footnote anchor text size and position when it is superscripted in the main document, things are fine. But as soon as my main document has a block quote of text that is say 9 points in its style, then when I place a footnote in that block quote or at the end of it, LibreOffice 7.x calculates the size of the anchor text for that note based upon the 11 point size of the anchor text style, and NOT based upon the proper 9 point size of the actual document text being footnoted. Consequently, the size of the anchor text in or at the end of the block quote ends up being TOO LARGE and its position TOO HIGH, so that a) the top of the anchor text-styled note number may be cut off AND the line spacing of the block quote line containing the footnote is thrown off and made too large, messing up the appearance of the document. That looks very poor and can be rectified with slightly better programming that takes into account the point size of surrounding document text (e.g., 9 points instead of the default 11 points).
The above has been a problem with Apache OpenOffice and LibreOffice from the start, and has been a carried-over issue from the IBM Lotus Symphony days as well. Given the LibreOffice strives to be a more polished product and even compete to an extent against paid suites (e.g., Microsoft Office) this SHOULD and CAN be fixed, regardless of any possible .odt file format limitation.
Steps to Reproduce:
1. Create a document with a default text size of 11, for example. Create a paragraph using that default. Set the anchor text style for footnotes to use the same font at the same 11 point size, as its basis for calculating the superscript size and position of the note anchor text
2. Create a block quote with the same font but using a 9 point text size, and place a paragraph of text in the document using that block quote. Then place a footnote in or at the end of that block quote.
3. Having done step 2, you will notice that the line of text in the block quote containing the footnote anchor text is a) misaligned with line spacing that is too large for the block quote (e.g., when the latter is single spaced text) and b) the footnote anchor text (e.g., "1" for the first footnote) will likely be cut off at the top, showing only a portion of the "1", and that is because the size of the anchor text and its superscripted placement are both being calculated on the basis of the anchor text style for footnotes using an 11 point text size rather than the 9 point text size of the surrounding document.
The footnote (or endnote if that's what's used) anchor text is too large and cut off at the top when the footnote (or endnote) is placed in or at the end of the block quote in the document.
The anchor text for the footnote in the smaller-point block quote (which is 9 points rather than the 11 points of the default style) should be smaller and a bit lower than corresponding anchor text for a footnote placed in the text based upon the default style having an 11 point size. In other words, even a note anchor placed in a block quote having a somewhat smaller point size than the point size of the main document's text should NOT be cut off or cause the line of text in which it's placed to have line spacing that is too large and obviously different from the rest of the lines in the block quote.
User Profile Reset: No
No other information.
I sure would like to see some responses to, and movement on this easily reproduced superscripted anchor issue in LibreOffice! Anyone, please?
Please add a sample document and maybe also a screenshot. IIRC, the calculation of footnotes has been changed recently, so testing with a recent version might also good.
So, I went to create a sample document showing this issue, and in the process, discovered the cause—and how you may easily reproduce it.
If one does as I originally outlined, BUT ALSO has specified a point size for the font in the Footnote Anchor (or Endnote Anchor) character style, then the issue occurs! While it IS necessary to be able to change the font face in the footnote or endnote anchor character style, as we can now, there is NO reason to also allow one to set the font's point size in that SAME style, as doing so overrides the normal behavior, and actually causes the issue I reported.
Therefore, I recommend either disabling the ability to specify the point size for the specified font in the Footnote Anchor and Endnote Anchor character styles (and only in those styles), or giving the user some warning that applying a specified point size to the font in those anchor style may cause improper appearance of the text.
Bottom line: not specifying, if one has then removing the specification of, the point size for the employed font in the Footnote Anchor character style solved my issue.
Justin, you changed the calculation of super/subscript recently. What's your thoughts here?
(In reply to Heiko Tietze from comment #4)
> Justin, you changed the calculation of super/subscript recently. What's your
> thoughts here?
I'd say that when styles are used properly, then it sounds like there is no problem. But when you change the style, it obviously will affect everything that uses that style. (And I don't see any point in having a pop-up that warns the user that his changes to a footnote style will affect footnotes.) I read through this report a week ago and didn't see anything worth commenting on.
Since there is no example document attached, I didn't bother to try to completely understand or reproduce the problem for myself.
Taking Justin's comment to resolve the ticket as NAB. If you have further information, TH, please reopen and go into details.
(In reply to Justin L from comment #5)
> (In reply to Heiko Tietze from comment #4)
> > Justin, you changed the calculation of super/subscript recently. What's your
> > thoughts here?
> I'd say that when styles are used properly, then it sounds like there is no
> problem. But when you change the style, it obviously will affect everything
> that uses that style. (And I don't see any point in having a pop-up that
> warns the user that his changes to a footnote style will affect footnotes.)
> I read through this report a week ago and didn't see anything worth
> commenting on.
> Since there is no example document attached, I didn't bother to try to
> completely understand or reproduce the problem for myself.
I do an enormous amount of technical, heavily-documented writing. You may not see any point to the pop-up warning request, but to me, you are just being arrogant with such an observation. There is definitely a need for such a pop-up, or the ability to specify the point size for the font should be removed in the situation I've described. That would all make LibreOffice Writer both friendlier and more reliable, while helping to avert what can be a difficult to resolve situation on its face.
(In reply to Heiko Tietze from comment #2)
> Please add a sample document and maybe also a screenshot. IIRC, the
> calculation of footnotes has been changed recently, so testing with a recent
> version might also good.
Sample document is still missing. This makes it easier for us to verify the bug.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it.
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)