Add support for chapter_on_new_page

Every template that is in another directory will
be created on a new page if the setting is active.