Search code examples
google-apps-scriptgoogle-docsgoogle-drive-api

How to number the headings in a Google Docs/Drive document?


Is it possible to number the headings in a Google Docs/Drive document?


Solution

  • If you want something more easy, there is a Google Add-On called "Table of Contents" that will allow you to number your headings.

    To install this add-on:

    1. Click on the Add-Ons > Get Add-Ons.
    2. Click on the "Table of Contents" icon or search for this addon to install it

    Then your Table of Contents should appear in your sidebar. Click on Heading Numbers Format menu, and choose 1.2.3

    You have to reformat your document if you have an old one in order to 'refresh' the numbers, but actually the addon works very well.

    I've seen the answer in this forum.