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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.