adjust heading depth for PDF document generation

 so that heading is included in appropriate section in PDF (main advanced section)