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

kcooper September 19, 2012

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

1 vote
Answer accepted
Sander Brienen [Avisi]
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.
January 21, 2013

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.

1 vote
kcooper January 24, 2013

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

Tomas Theunissen March 13, 2013

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
TAGS
AUG Leaders

Atlassian Community Events