In another post, I told of my troubles with LibreOffice and Outline Numbering and how it stopped me from setting a table of contents in a file I downloaded from Google Drive. Finally, I successfully inserted a table of contents into a Google Docs document using LibreOffice with the correct page numbering. It's not hard but somewhat tedious. There are basically 4 things you need to do.
Step 1: Setup the document.
Download the Google Doc document as an LibreOffice/OpenOffice .ODT file. It will likely download it into a temp file. Normally, you can't edit that. So save the file somewhere else to allow for editing. Move the cursor top of the page.
Insert a manual break and change the type to Page Break. Then set the Style to be Default. Now change page number to 1.
Again, move the cursor up to top of document. Press F11 to bring up the Styles and Formatting window. Select the Page Styles icon from the top row and double click on the First Page style.
Just to check, move the cursors between the top of the document and into the other section and back up and check the name of the section on the status bar at the bottom of the window. The top one should say First Page while the one below it should say Default.
For a better way to do it, scroll down to the comments sections and check out Julian's way of doing Step 2 onward.
Step 2: Correct Outline Numbering styles
Click on Tools - > Outline Numbering to bring up the Outline Numbering window.
Select Level 1 from the list on the left. In the Paragraph Styles section, choose Heading 1.
Now select Level 2 from the list. Under Paragraph Styles, select Heading 2.
Repeat the process for all levels that have an empty Paragraph Sytle.
Step 1: Setup the document.
Download the Google Doc document as an LibreOffice/OpenOffice .ODT file. It will likely download it into a temp file. Normally, you can't edit that. So save the file somewhere else to allow for editing. Move the cursor top of the page.
Insert a manual break and change the type to Page Break. Then set the Style to be Default. Now change page number to 1.
Again, move the cursor up to top of document. Press F11 to bring up the Styles and Formatting window. Select the Page Styles icon from the top row and double click on the First Page style.
Just to check, move the cursors between the top of the document and into the other section and back up and check the name of the section on the status bar at the bottom of the window. The top one should say First Page while the one below it should say Default.
For a better way to do it, scroll down to the comments sections and check out Julian's way of doing Step 2 onward.
Step 2: Correct Outline Numbering styles
Click on Tools - > Outline Numbering to bring up the Outline Numbering window.
Select Level 1 from the list on the left. In the Paragraph Styles section, choose Heading 1.
Now select Level 2 from the list. Under Paragraph Styles, select Heading 2.
Repeat the process for all levels that have an empty Paragraph Sytle.