To insert the title of the document:
Position the cursor where you want the title to appear in the header or footer
Click on the Insert Title button in the Header and Footer toolbox.
The title will be inserted at the chosen point. If you change the name of the document, the title inserted into the header or footer will change too.