fu'><a href='addTitle.html'>addTitle</a></span>( <span class='no'>doc</span>, <span class='st'>"My second title"</span>, <span class='kw'>level</span> <span class='kw'>=</span> <span class='fl'>1</span> )

<span class='co'># Write the object in file "addTOC_example1.docx"</span>
<span class='fu'><a href='writeDoc.html'>writeDoc</a></span>( <span class='no'>doc</span>, <span class='st'>"addTOC_example1.docx"</span> )

<span class='co'># custom TOC -----</span>

<span class='no'>doc</span> <span class='kw'>=<