Get the title
separate preamble and doc