Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I include/exclude titles from the table of content?

Oscar Cabezas Calzada
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 18, 2022

Hi,

I'm having a hard time finding the expression to enter in order to include or exclude a particular title to the TOC.

Can anyone help? Altassian's help pages redirects you to a very user unfriendly website you would need coding background knowledge to understand.

Thank you beforehand!

2 answers

2 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2022

Hello @Oscar Cabezas Calzada , yes Regex is a more advanced topic, but there are many website out there they can help you understand how to write the correct expressions. Basically it is just like using wildcards.

Here is one intro page to look at: https://www.thisdot.co/blog/understanding-regex 

And then here is a link to a tester I use: https://regex101.com/

The tester will save you a lot of time in trying figure out the correct syntax.

If you have an example of heading you want to exclude, you can just use the first few letters of the heading and it will work. You only need complex expressions when you have a lot of similar headings and need to differentiate based on some particular string.

Oscar Cabezas Calzada
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2022

Thanks a lot @Bill Bailey ! The tester was great help.

 

I was also able to manage the list of headings by playing with the Anchors.

 

Best regards,

0 votes
D. Michel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2023

See as well using the pipe ( | ) as a separator in a list of headline texts: [title1|title2|title3]

TOC Macro - Exclude two headings with different na... (atlassian.com)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events