It depends on who publishes the book. Some publishers only do certai formattng. If you are publishing/printing it yourself, and text editor, word processor, desktop publishing program that does your formatting requirements.
In Word - select Insert - Reference, Index and Tables and you may select from the tabs (Table of Contents and the formatting desired) Word Help will assist in bookmarking the subheading that will populate the table of content.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.