Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index

On 8/1/20 12:36 PM, John Kaufmann wrote:
On 2020-08-01 09:39, Luuk wrote:
Somtehing like this document:

I'm sure that solves OU's problem, but:

(1) How did you make the word/paragraph "Dedication:" an indexing target?

(2) To hide it, what was the reason for choosing a White font color rather than the Hidden attribute?


I am sure the solutions rendered by others will work, but here is another solution, manipulating the TOC format, which I use some times:

1. Create a new style, say "Dedication", and assign this style to the
   text you want hidden in the document body (i.e. the dedication
   heading). You can then make the style hidden. This is under Font
   Effects in the Paragraph Style window and at the bottom of the left
2. Edit the TOC, and assign the style "Dedication" to, say, Level 10.
   To do this, under the Index/Table tab, check Additional Styles and
   the ellipses button [...]. In the popup, select the Dedication style
   on the left and then using the >> button, move it to level 10 on the
   right and click OK.
3. Now under the Entries tab, select Level 10 and delete everything to
   the left of the "T" in the Structure format line. Then in the text
   block before the T, add "Dedication" (no quotes). This is needed
   because hiding the text in the Dedication paragraph style propagates
   to the Contents style in the TOC and it is hidden in the TOC as
   well. This is a sledge hammer approach and the two texts need to
   match, or maybe not, as you wish.
4. Then under the Styles tab, select the Paragraph Style you want to
   use for the Level 10 TOC line (do not select Dedication!), usually a
   Contents style.

I tested this using OpenOffice, but it should be the same for LO, and it does work - no "Dedication" paragraph text before the actual dedication paragraph, but there is a "Dedication" entry in the TOC.

The downside to this solution is that you may not use TOC level 10 for the usual association with Heading 10, and there are limited (less than 10) different styles that can be assigned this way. In fact, to be safe, under the Index/Table tab and then in the "Evaluate up to level" spinbox, change it from 10 to 9 in order to disable normal Heading 10 styles. I used this method for appendixes where I wanted the appendix letter and a dash to prefix appendix page numbers in the TOC. In this application, I only had two heading levels, one for the main body and the other for Appendix A. Both headings have their own styles, associated with different TOC levels and I am not using any of the "canned" Heading styles.



To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.