Numbered headings - want "1.1" as my numbered heading, not "1.1."

Using the numbered headings macro I want to display the numbered headings like this:

1

1.1

1.1.1

instead of like this:

1.

1.1.

1.1.1.

Basically, I don't want the final period in the formatting.

2 answers

1 accepted

Hi,

This can be done through the custom numbering option.

To do this, choose custom as the Number format.

Then, fill in the format for each heading, like below:

h1 format: [h1.decimal]

h2 format: [h1.decimal].[h2.decimal]

h3 format: [h1.decimal].[h2.decimal].[h3.decimal]

and so on.

Thank you so much, Sander!

I was able to get the exact format I wanted using the number-format parameter in the numberedheadings macro.

Here's my input:

{numberedheadings:number-format=custom|h1=[h1.decimal]|h2=[h1.decimal].[h2.decimal]|h3=[h1.decimal].[h2.decimal].[h3.decimal]}
h1. Fruit and veg
h2. Fruit
h3. Apples
h3. Oranges
h2. Vegetables
h3. Potatoes
h3. Green Beans
{numberedheadings}

Here's what I got:

1 Fruit and veg
1.1 Fruit
1.1.1 Apples
1.1.2 Oranges
1.2 Vegetables
1.2.1 Potatoes
1.2.2 Green Beans

This is actually the ISO-2145 format. The latest version of Numbered headings (v 2.3.0) has build in support for this type of format with the new 'iso-2145' formatter. So when using this new formatter there is no need for you to set a specific custom format each time you want to number without the last dot!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

173 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you