Ancestry book - Table of contents

Hallo,

I am using Gramps 6.0.4, Flatpack installation on Linux Mint 22.1 Cinnamon.
Under Reports → Books, I have created a book that contains the following documents:
Title page, Custom text, Detailed ancestor report, Table of contents.
In the table of contents, the custom text is listed 4 times as follows:

Custom text (This ancestry book gives you an overview of your ancestors.) 2
Custom text (This ancestry book gives you an overview of your ancestors.) 2
Custom text (This ancestry book gives you an overview of your ancestors.) 2
Custom text (This ancestry book gives you an overview of your ancestors.) 2
2 is the page of the book

Is this a bug? What could be the cause?

I tested using 6.0.3 (upgrading to .4 is on today’s todo list but there was no change of the book or reports between versions) and only one instance of the custom text entry displayed. I tested by adding three more versions of the custom text entry but they displayed with pages 3, 4 & 5.

Curious.

The Table of Contents is usually display at the front of a book and an Index added to the end.

You may also want to initially output to “OpenDocumentText”. This allows you to edit the results in your word processor to add actual page numbers and any other enhancements or edits. If the multiple entries for Custom Text persists, you can edit out the errors.

Just did my upgrade to 6.0.4 and the report shows only one instance of the Custom Text.

If it matters, I am using Win10.

Hallo, I tried a couple of versions of the custom text. If there are “carriage returns” in one ore more of the “introductory text”, the “middle text” or the “final text” the table of content changes. I deleted all carriage return in all of these three texts an here you can see the result of the table of content now. There is only one entry.

Benutzerdefinierter Text (Dieses Ahnenbuch gibt Dir einen 4
Überblick über Deine Vorfahren. Sie haben sich bemüht,
Dir die Voraussetzungen für ein schönes Leben zu
schaffen. Bitte denke daran und halte sie in Ehren.)

The table of content shows the correct content (Benutzerdefinierter Text),
but it shows as well the “introductory text” (Dieses Ahnenbuch gibt Dir einen
Überblick über Deine Vorfahren. Sie haben sich bemüht,
Dir die Voraussetzungen für ein schönes Leben zu
schaffen. Bitte denke daran und halte sie in Ehren.)

It shows as well the right page no.. (4)

I changed now the content of the “introductonary text” to “…” and moved the rest to the middle text.
After that the table of content looks so:
Inhaltsverzeichnis
Benutzerdefinierter Text (…) 3
Ahnenbericht für Bosse Pommerening 4

To check/test all these you have to fill in text into the customizes text form.

Sorry for my bad English.
I hope it`s understandable.

Okay, I finally created multiple Table of Contents entries from a single Custom Text entry.

Custom text has three boxes where text can be entered. Initial Text, Middle Text, and Final Text.

When I entered more than one line of text in the Initial Text box, this is when the Table of Contents started creating more than one entry.

Use the Initial Text box as a single line entry as a Title header for the page. And use the Middle and Final Text boxes for the text you want to convey to the reader.

Hope this works for you.

Hi, many thanks for your answer.
Yes it would work for me. I tried it already, created the book as an ODT file and opened it with Libre Office Writer. But the pages were the table of content and the index should be are empty. I assume that the Libre Office Writer doesn´t recognize the font type of these two documents and changed these with the stile editor but without success.

The codes to generate the TOC and an Index are embedded with the Custom Text file’s text and the actual text report you added to the book.

You can go to the LibreOffice’s menu >> Tools >> Update to populate the index and TOC.

You can add the page numbers to the odt file. Or edit the index list into two or three columns. Or any other edits to make the report “pretty”. Just remember to update the TOC and indexes to any page number changes before actually printing.

Hallo, to avoid misunderstandings.
Your suggestion is not to use the TOC and Index in Gramps but create a Ancestry book without these both documents and create the table of content and the index within Libre Office Writer?

The choice of how to generate index and table of contents is supported in different ways. And which you choose depends on the “deliverables” target.

The Gramps-generated ToC and Index are fairly basic for use generating finished or ready-to-post hotlinked web documents. They will not have pagination… since screen page count changes dynamically.

The embedded index and ToC markers are for when the objective is for print/PDF … where chapter/page numbers will be needed and have to be calculated. And for when you will be collating additional content. Or when you want use the greater layout and formatting controls offered by a desktop publishing tool. Being able to regenerate a ToC and/or Index means using their internal tools to build those sections.

When you send the book created in Gramps to a PDF file or directly to a printer, the TOC or index will be populated with entries and page numbers.

When you send the book to an OpenTextDocument odt file, it is still in the edit stage. Gramps adds all the coding necessary to create the TOC and Index pages but those pages are not initially populated. If you had created a document from scratch and wanted to add a TOC and index, you would add the coding for each of those entries; menu >> Insert >> Table of Contents and Index. The actual TOC and Index pages would not initially display.

To populate the Table of Content and Index pages in the LibreOffice odt file, use menu >> Tools >> Update.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.