Insert page before TOC

Hi

Ive got a document with a TOC, is there a way to insert a page before the TOC without deleting the TOC? I've tried with inserting a page break as well.

regards

Ian

Libreoffice
Version: 6.4.3.2
Build ID: 40(Build:2)
CPU threads: 2; OS: Linux 5.6; UI render: default; VCL: kf5;
Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB
Calc: threaded

Hi Ian,

you could try this:
Change the TOC. It is protected against manual changes.
Set the cursor at the start of the TOC.
Press Alt + Enter two times.
The first break will be part of the TOC, the second break will be out of
the TOC.
Set the TOC back to protection against manual changes.

Regards

Robert

Hi Ian,

you could try this:
Change the TOC. It is protected against manual changes.

How do you change it if its protected other than update it? I couldn't find how to "unprotect it"

Set the cursor at the start of the TOC.
Press Alt + Enter two times.
The first break will be part of the TOC, the second break will be out of
the TOC.
Set the TOC back to protection against manual changes.

Thats didn't work due to above i guess.
The only work-around i found was to delete the TOC and then insert a page then re-create the TOC.
I would have thought that LO should be able to insert a page (or page break etc) above a TOC without breaking the integrity of the TOC (but you'll have to remember to manually update it as usual with the new page numbers afterwards)

Regards

Robert

regards

Ian

Hi Ian,

you could try this:
Change the TOC. It is protected against manual changes.

How do you change it if its protected other than update it? I couldn't find how to "unprotect it"

Right click with mouse on the TOC → Edit Index
Type → Type and Title → Protected against manual changes (must be unchecked)

Regards

Robert

Thanks Robert.
That allowed me to insert a page break but the new page had a background colour the same as the TOC and changing the style from "Contents Heading" to Default Style" wouldn't remove it.
So it looks like the only work around is to delete the TOC to insert a page.

Hi Ian,

Thanks Robert. That allowed me to insert a page break but the new
page had a background colour the same as the TOC and changing the
style from "Contents Heading" to Default Style" wouldn't remove it.

Did you really press Alt + Enter two times?
The first break will be part of the TOC, the second break will be out of
the TOC.

I have tested this before and saw that the first Alt + Enter was part of
the TOC and will have been gone when updating the TOC.

Regards

Robert

damn, yes, i did forget. works as you said now. At the end of the day, it might be quicker to delete the TOC, insert a page and the recreate the TOC.

thanks again.