Changes

Jump to: navigation, search

Add Table of Contents or Index to reports

1,254 bytes added, 18:08, 9 July 2022
m
no edit summary
{{languages|Add Table of Contents or Index to reports}}
How to add a table Table of contents Contents(TOC) or an index to a Gramps generated report in [httphttps://www.libreoffice.org/download/ LibreOffice]. LibreOffice is a great companion for Gramps.
==Getting startedBackground==[[File:Toc tutorial 1Gramps embeds invisible indexing markers in reports created in the Open Document Text (.jpg|thumb|left|250px|Figodt) format. 1 Creating These indexing markers are also supported in the older Open Office (.sxw) formats.  The HTML and PDF output formats have a Book Report]]different system of named anchors, designed to support hotlinking.[[File:Toc tutorial 2These hidden tags allow the generation of a Table of Contents or an Index of names within reports.jpg|thumb|right|250px|Fig Note that the hidden tags can also be used during post-process collation of Gramps generated reports with other materials. When pages of a such a collated document are re-flowed, the tags can allow a desktop publishing application to control pagination and generate their own style of indices, tables of content & end notes. 2 Book Report]]
Gramps embeds marks Because post-process repagination is so ubiquitous, the addition of dated and paginated footers is both easier and more efficient in those external desktop publishing suites. Footers spanning multiple reports created in is not a feature planned for the Open Document Text (.odt) format (also in the older Open Office Gramps Books (.sxw) formatsreport automation and collation). These tags allow the creation of a Table of Contents or Index of names in programtool.
==Getting started==
[[File:Toc tutorial 1.jpg|thumb|right|450px|Fig. 1 Creating a Book Report]]
The first step is to create a report. This example creates a book report to demonstrate that multiple reports can be combined.
From the menu select {{man menu|Reports->Books->Book Report}}.
{{-}}
[[File:Toc tutorial 2.jpg|thumb|right|450px|Fig. 2 Book Report]]
This opens the book report dialog. It has two lists. The top list shows all the available reports that can be added to the book. The bottom list shows all the reports that have been added.
==Insert a Table of Contents==
[[File:Toc tutorial 3.jpg|thumb|left|250px|Fig.3 ]] Once the report has been generated, open it in LibreOffice. Many people like the Table of Contents to appear after the Title Page. To do so, first insert a page break after the text of the Title Page.
{{-}}
[[File:Toc tutorial 3.jpg|thumb|right|450px|Fig.3 Insert break > Type > Page Break]]
Many people like the Table of Contents to appear after the Title Page. To do so, first insert a page break after the text of the Title Page.
From the {{man button|file}} menu, select {{man menu|Insert->Manual Break ...'}}. Choose {{man button|Page Break}} and click {{man button|OK}}
{{-}}[[File:Toc tutorial 4.jpg|thumb|right|250px450px|Fig. 4]][[File:Toc tutorial 5Insert->Indexes and Tables->Indexes and Tables .jpg|thumb|left|250px|Fig. 5]][[File:Toc tutorial 6.jpg|thumb|250px|right|Fig.6 Example of a Table of Content]]  
Scroll to the newly inserted page and add the Table of Contents by selecting {{man menu|Insert->Indexes and Tables->Indexes and Tables ...}}.
{{-}}
[[File:Toc tutorial 5.jpg|thumb|right|450px|Fig. 5 Indexes and Tables - dialog]]
In the {{man label|Indexes and Tables}} dialog, change the type to {{man label|Table of Contents}}. Also, be sure that the {{man label|Outline}} check box is unchecked and the {{man label|Index Marks}} check box is checked. This tells LibreOffice to create the TOC from the marks that were embedded by Gramps.
{{-}}
[[File:Toc tutorial 6.jpg|thumb|450px|right|Fig. 6 Example of a Table of Content]]
After you click {{man button|OK}}, the Table of Contents should appear.
 
{{-}}
==Insert an Index==
[[File:Toc tutorial 7.jpg|thumb|left|250px|Fig. 7]]
[[File:Toc tutorial 8.jpg|thumb|right|250px|Fig. 8 Example of an index]]
[[File:Toc tutorial 3.jpg|thumb|right|450px|Fig. 7 Insert break > Type > Page Break]]
Most people like the index to be at the end of the book. To do so, place the cursor at the very end of the book, and insert a page break like you did for the TOC.
From the {{man button|file}} menu, select {{man menu|Insert->Manual Break ...'}}. Choose {{man button|Page Break}} and click {{man button|OK}}
 
{{-}}
[[File:Toc tutorial 7.jpg|thumb|right|450px|Fig. 8 Indexes and Tables - dialog]]
Next, open the {{man label|Indexes and Tables}} dialog like you did for the TOC. This time, change the type to {{man label|Alphabetical Index}}.
{{-}}
[[File:Toc tutorial 8.jpg|thumb|right|450px|Fig. 9 Example of an index]]
Click {{man button|OK}} and the index will appear.
{{-}}
==Conclusion==
*Adding a TOC (Table of Contents) and an Index to your documents can be done quickly. Do you have other tips and tricks, share them!
==See also==
* [[Gramps_4.1_Wiki_Manual_Gramps_{{Version manual}}_Wiki_Manual_-_Reports_-_part_3#Books]]
[[Category:Tutorials]]
[[Category:How do I...|A]]
4,599
edits

Navigation menu