Your specification calls for an alphabetical index.
Don’t make it yourself. Writer provides an alphabetical index feature without the fuss of cross-references.
(You can have a step 0 where you remove your cross-references)
When you add a new song, repeat step 1. To update the index, right-click in it and Update Index/Table
.
EDIT 2021-04-30
In this Lyrics demo.odt, I created an outline of your document based on Heading 1 and Heading 2 paragraph styles:
-
Heading 1 is used to create a separator page with a centered capital letter
-
Heading 2 is the song title with supplementary information to enter into the TOC
- below the song title, you can have as many Text Body paragraphs as you need for artists, lyrics, duration, … I recommend you use one paragraph style per meaning (one for lyrics, one for artists, …) so that you can format them independently
Page breaks are added to the Heading n paragraph styles so that there is no need to type them manually.
TOC is inserted with Insert
>TOC & Index
>TOC, Index or Bibliography
. TOC is formatted by Contents n family. You can tune these styles to fit your taste. Hyperlinks are generated: Ctrl
+click to jump to the song title. However, I have not coded the return link to the TOC in the Heading 2 paragraphs (because the link word would also appear in the TOC). You can as quickly return to the TOC with a fast scroll.
I noticed that all your document is Default Paragraph Style with direct formatting. This is wrong. Read the Writer Guide and learn how to work with styles.
##Sorting your songs
Once your document is structured with Heading n outline, use the Navigator (compass icon or F5
). Expand the Headings section. Click on a heading to select it and use one of the arrows in the Navigator toolbar to move it. Depending on the UI widgets, these arrows may be difficult to identify visually, so hover your mouse over the icons to spot the Promote Chapter and Demote Chapter arrows. They move the corresponding Heading n (and all Heading m with m>n and non-Heading m below the selected heading) one position up or down in the outline.
This is not as handy as a global sort but you can arrange your “chapters” as you like.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!