Change a heading, but only in the TOC / Hidden headings?

So, according to APA, you don’t actually title your introduction section “Introduction”. Instead, there should be the full title of the paper.

Is it possible to have a heading that says “A Novel Perspective on Sandwiches in the 21st Century”, but actually have it say “Introduction” in the TOC I’d potentially insert in the document - or actually, more importantly, in the TOC of the resulting PDF?

Or, a different solution I thought of: Have the title as regular body text, but right above it, an invisible heading of 0 size that says “Introduction”?

Thanks in advance!

Please upload a small sample file here (an ODF file format one)

You can edit a TOC manually - if you set its properties properly.

I’m not entirely sure we understand each other - I did produce one, but I don’t see how it provides any additional clarity. However, I can’t upload it as I’m a new user on this forum.

I see, but how? I did look in the manual and tried to Google. Also, would that mean I lose the benefits of using headings to generate my TOC, such as automatic page numbering?

That is nonsense, I am also new, and it works.

Fake Text.odt (8.2 KB)

  • Edit your question
  • Use Upload icon

Upload-File-2021-08-19 11-32

I understand, but consider:

(And yes, pasting the image via Ctrl+V worked, not sure what’s the difference)

Note that you have a “Basic” TL badge, and @tmladek doesn’t yet.

image

image

OK. I didn’t pay attention to it.

This is not easily done.

Typing a heading with attribute Hidden won’t work because the collection pass when creating the TOC removes any character flagged Hidden.

My suggestion is a workaround rather than a plain bullet-proof solution.

  • Define a user paragraph style Fake Heading.
  • Go to Outline & Numbering tab and force Outline level to Level 1.
  • In Indents & Spacing, set
    spacing above and below to 0.
  • In Text Flow, make sure Keep with next paragraph is checked.
  • OK temporarily to allow for easy typing.

Type your TOC pseudo-heading under your user-style Fake Heading. Press Enter to type your “document” heading in a style similar to Heading 1 but not Heading 1 so that it is not collected in TOC. Such a style could be a direct derivative from Heading 1 (just right-click and New in the side style pane; it inherits all attributes except outline level which is reset to Text Body).

When you’re satisfied, modify your Fake Heading style to set font size to 2pt (the minimum in Writer) and font color to white (or rather your page background colour).

1 Like