Change TOC title

Having trouble installing Oxygen? Got a bug to report? Post it all here.
[Stupid]_[User]
Posts: 21
Joined: Mon Dec 05, 2022 9:35 am

Change TOC title

Post by [Stupid]_[User] »

Hi all!

I have a TOC with "Contents" title in my document. Is it a way to change these title to another one?
Capture (1).PNG
You do not have the required permissions to view the files attached to this post.
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

Re: Change TOC title

Post by chrispitude »

Hi Mr. User,

Which transformation type are you using?
[Stupid]_[User]
Posts: 21
Joined: Mon Dec 05, 2022 9:35 am

Re: Change TOC title

Post by [Stupid]_[User] »

chrispitude wrote: Tue Dec 20, 2022 2:16 pm Hi Mr. User,

Which transformation type are you using?
Hi chrispitude!
I use DITA PDF - based on HTML5 & CSS transformation type.
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

Re: Change TOC title

Post by julien_lacour »

Hello,

The following fragment will do the trick:

Code: Select all

/* Title of the TOC page */
*[class ~= "toc/title"][empty]:before {
  content: "Agenda";
}
There are more information about How to Customize CSS Strings in our user-guide.
Also, these rules are easy to find by debugging the CSS in your browser.

Regards,
Julien
[Stupid]_[User]
Posts: 21
Joined: Mon Dec 05, 2022 9:35 am

Re: Change TOC title

Post by [Stupid]_[User] »

julien_lacour wrote: Wed Dec 21, 2022 10:24 am Hello,

The following fragment will do the trick:

Code: Select all

/* Title of the TOC page */
*[class ~= "toc/title"][empty]:before {
  content: "Agenda";
}
There are more information about How to Customize CSS Strings in our user-guide.
Also, these rules are easy to find by debugging the CSS in your browser.

Regards,
Julien
Hello, Julien!

It works great! Thanks a lot!
Post Reply