https://bugs.documentfoundation.org/show_bug.cgi?id=32363
--- Comment #32 from László Németh <[email protected]> --- (In reply to Eyal Rozenberg from comment #28) > (In reply to László Németh from comment #21) > > There are two solutions: the first is to create new page styles for the > > abbreviated titles, which is good for a long Chapter 1, which always starts > > on a new page (more information: > > https://help.libreoffice.org/latest/en-US/text/swriter/guide/ > > header_pagestyles.html). > > I don't understand this suggested solution. How would creating a new page > style result in the ToC entry for my heading to have different text than the > heading itself? And what does that have to do with pagination? This bug was about marginals, header and footer. A new page style has own header and footer, so it's possible to use plain text in the header for the short chapter name. It's not hard to do it manually, if your document contains only a few long chapter names, and they start on new pages. Otherwise macro automation can use this workaround. This method would be a complete solution for the Neveléstudomány journal, where only the articles that start on a new page can have a very long title, which must be shortened for the header.) > > > The other solution is more general and likely comfortable, too: using a > > hidden short heading after the long heading – and if you need the short > > version on the first page, too, repeating that before the long heading, too. > > The header/footer show the abbreviated heading, which is invisible in the > > body text and in the ToC. > > > > A working test document is attached. > > The test document is somewhat confusing, because all of the text is lorem > ipsum gibberish that is hard to distinguish. But, be that as it may - the > text in the ToC entries is the same text as in text body. I think, this is the correct. The problem was the header/footer, where there was no place for the long text. > > Ah, I think perhaps you were focusing on page headers or footers. Remember > what RGB said: That is just a use case of abbreviated text. The point is to > be able to use a short version of the heading paragraph's text, wherever it > is that you need to use it. The popular uses are in ToCs and in page headers > or footers. I suggest to focus only on the page header/footer in this issue, because we have more multiple similar problems, than a single problem with multiple use cases. > > I'm not sure I understand the second solution, even if we only thing about > page headers, even after your expalanation. The different kinds of "Hidden" > things - "Hidden characters", "Hidden text", "Hidden paragraphs" - each with > their own toggle in Tools > Options - are thoroughly confusing. People > should certainly not be treating alternative text as "hidden" actual text, > and rely on using the UI for hiding things to achieve such an effect. > > Anyway, bottom line: it doesn't WORKSFORME, so un-resolving... Ah, it doesn't work for me either using numbered chapter names: it seems, hiding the paragraphs with Font Effect doesn't effect the numbering (maybe it's worth to check conditionally hidden paragraphs, too). It's possible to fix the numbering removing the numbers before the hidden chapter names (pressing backspace at the start of the paragraph), but the number removed from the header, too. For the numbered headings, I have a working solution using in my development code for Bug 163894, but only with shortening the long headers using partial formatting with the referred character style (e.g. "Lorem ipsum dolores..." -> "Lorem ipsum", without ellipsis. A promising preview is attached... -- You are receiving this mail because: You are the assignee for the bug.
