There is no way to combine heading entries into a single entry. Heading x is related to its corresponding level Contents x. If x is not the same, the TOC entry is on a different level.
Consequently, you must “massage” your Heading x entry to get the desired result.
Remember that a newline (obtained with Shift
+Enter
) is passed to the TOC entry as a space character. You can then write your title, then a newline and the author name. To align title and author on different horizontal references, adjust the Heading x paragraph style Indents andSpacing properties: set Before Text to the distance where you want the author to appear and First Line to the negative of this value so that title starts at left margin. You get something like:
Improvements are possible in case the author name must be highlighted in some way (smaller size, italics, …): define a character style to apply to author name, leading to:
Here, I changed font size and face and added red colour (I also used different indents on Heading 1 compared to the previous snapshot). As you can see, this character style highlighting is not forwarded to the TOC entry.
Experiment on the content of your heading to get the expected content in the TOC. For instance, if you want “by” between title and author in the TOC and not in the heading, add the word in the heading (so that it is entered in the TOC entry), but apply a specific style to it to hide it (I defined an Invisible character style with colour set to White). This gives:
This trick relies heavily on styles (paragraph and character). If you’re not familiar with them, take this opportunity to learn. Download the Writer Guide and read the related chapter(s).
If this answer helped you, please accept it by clicking the check mark to the left and, karma permitting, upvote it. If this resolves your problem, close the question, that will help other people with the same question.