How do I add a Table of Contents

2019-05-18 16:22发布

问题:

I have a document that I'm generating with headers and would like to generate a table of contents but I can't find an example in the documentation of how to insert an AutogeneratedRegion: https://developers.google.com/apps-script/class_tableofcontents

Could someone give me an example of how to add this?

回答1:

There is no such option yet available in Apps Script to generate table of contents. You may file a feature request here