Added new function to insert text

in the middle of a chapter/section.