Page 1 of 1

Change TOC title

Posted: Tue Dec 20, 2022 1:20 pm
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

Re: Change TOC title

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

Which transformation type are you using?

Re: Change TOC title

Posted: Wed Dec 21, 2022 9:19 am
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.

Re: Change TOC title

Posted: Wed Dec 21, 2022 10:24 am
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

Re: Change TOC title

Posted: Thu Dec 22, 2022 6:16 pm
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!