Difference between revisions of "Add Table of Contents or Index to reports"

From Gramps
Jump to: navigation, search
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{languages|Add Table of Contents or Index to reports}}
 
{{languages|Add Table of Contents or Index to reports}}
  
{{out of date|update if needed for current gramps 3.3 and images}}
+
How to add a Table of Contents(TOC) or an index to a Gramps generated report in [https://www.libreoffice.org/download/ LibreOffice]. LibreOffice is a great companion for Gramps.
 
 
How to add a table of contents or an index to a Gramps generated report in [http://www.libreoffice.org/download/ LibreOffice] or [http://www.openoffice.org OpenOffice].
 
  
 
==Getting started==
 
==Getting started==
[[Image:Toc tutorial 1.jpg|thumb|left|250px|Fig. 1 Creating a Book Report]]
+
Gramps embeds marks in reports created in the Open Document Text (.odt) format (also in the older Open Office (.sxw) formats). These tags allow the creation of a Table of Contents or Index of names in program.
[[Image:Toc tutorial 2.jpg|thumb|right|250px|Fig. 2 Book Report]]
 
 
 
LibreOffice is a great companion for Gramps. As of Gramps version 2.1.5 marks are embedded in reports created in Open Document Text (.odt) (also in the older Open Office (.sxw) formats). These tags allow the creation of a Table of Contents or Index of names in program.
 
  
 +
{{-}}
 +
[[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.
 
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}}.
 
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.
 
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.
  
 +
In this example, you can see that the book will include a title page, a Complete Individual Report, a Detailed Descendant Report and a Detailed Ancestor Report. Click {{man button|OK}} to generate the report.
  
In this example, you can see that the book will include a title page, a Complete Individual Report, a Detailed Descendant Report and a Detailed Ancestor Report. Click {{man button|OK}} to generate the report.
+
{{-}}
  
 
==Insert a Table of Contents==
 
==Insert a Table of Contents==
[[Image:Toc tutorial 6.jpg|thumb|250px|left|Fig. 3 Example of a Table of Content]]
+
Once the report has been generated, open it in LibreOffice.
 
 
[[Image:Toc tutorial 3.jpg|thumb|right|250px|Fig.4 ]]
 
 
 
 
 
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}}
 
From the {{man button|file}} menu, select {{man menu|Insert->Manual Break ...'}}. Choose {{man button|Page Break}} and click {{man button|OK}}
[[Image:Toc tutorial 4.jpg|thumb|left|250px|Fig. 5]]
+
{{-}}
[[Image:Toc tutorial 5.jpg|thumb|right|250px|Fig. 6]]
+
[[File:Toc tutorial 4.jpg|thumb|right|450px|Fig. 4 Insert->Indexes and Tables->Indexes and Tables .... ]]
 
 
 
 
 
Scroll to the newly inserted page and add the Table of Contents by selecting {{man menu|Insert->Indexes and Tables->Indexes and Tables ...}}.  
 
Scroll to the newly inserted page and add the Table of Contents by selecting {{man menu|Insert->Indexes and Tables->Indexes and Tables ...}}.  
  
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 Open Office to create the TOC from the marks that were embedded by Gramps.
+
{{-}}
 +
[[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.
 
After you click {{man button|OK}}, the Table of Contents should appear.
 +
 +
{{-}}
  
 
==Insert an Index==
 
==Insert an Index==
[[Image:Toc tutorial 8.jpg|thumb|left|250px|Fig. 7 Example of an index]]
 
[[Image:Toc tutorial 7.jpg|thumb|right|250px|Fig. 8]]
 
  
 +
[[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.
  
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}}.
 
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.
 
Click {{man button|OK}} and the index will appear.
 +
{{-}}
  
 
==Conclusion==
 
==Conclusion==
*Adding a TOC and an Index to your documents can be done quickly.
+
*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==
 
==See also==
* [[Gramps_4.1_Wiki_Manual_-_Reports_-_part_3#Books]]
+
* [[Gramps_{{Version manual}}_Wiki_Manual_-_Reports_-_part_3#Books]]
  
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]
 +
[[Category:How do I...|A]]

Revision as of 00:48, 16 March 2020

How to add a Table of Contents(TOC) or an index to a Gramps generated report in LibreOffice. LibreOffice is a great companion for Gramps.

Getting started

Gramps embeds marks in reports created in the Open Document Text (.odt) format (also in the older Open Office (.sxw) formats). These tags allow the creation of a Table of Contents or Index of names in program.


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 Reports->Books->Book Report.


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.

In this example, you can see that the book will include a title page, a Complete Individual Report, a Detailed Descendant Report and a Detailed Ancestor Report. Click OK to generate the report.


Insert a Table of Contents

Once the report has been generated, open it in LibreOffice.


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 file menu, select Insert->Manual Break ...'. Choose Page Break and click OK

Fig. 4 Insert->Indexes and Tables->Indexes and Tables ....

Scroll to the newly inserted page and add the Table of Contents by selecting Insert->Indexes and Tables->Indexes and Tables ....


Fig. 5 Indexes and Tables - dialog

In the Indexes and Tables dialog, change the type to Table of Contents. Also, be sure that the Outline check box is unchecked and the Index Marks check box is checked. This tells LibreOffice to create the TOC from the marks that were embedded by Gramps.


Fig. 6 Example of a Table of Content

After you click OK, the Table of Contents should appear.


Insert an Index

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 file menu, select Insert->Manual Break ...'. Choose Page Break and click OK


Fig. 8 Indexes and Tables - dialog

Next, open the Indexes and Tables dialog like you did for the TOC. This time, change the type to Alphabetical Index.


Fig. 9 Example of an index

Click OK and the index will appear.

Conclusion

  • Adding a TOC(Table of Contents) and an Index to your documents can be done quickly.

See also