There is no "Special" template or program that does this for people in google doc. I do believe word has built in tools to help with headings but from a quick google, this does not seem to be possible in google docs. This is something that is usually done manually. Essentially, you are looking for something to follow an outlined template such as:
Abstract
xxxxxxx
1 Title
xxxxxx
1.1 sub title
xxxxxx
2 title
repeat as needed. The following link on Formatting Headings may also help you with what you are looking for. You may also want to check the add-on store for chrome/google where you add things like add blocker plus. A quick search there seemed to pull up some results but not sure if it does what you need but at least it points you in a direction!