Promoting Sections Automatically

Sometimes I find myself with an overly long subsection (with many subsections, paragraphs, etc) that I want to move to its own section. Is there a way to easily promote all headings one step up in the hierarchy? For example, subsections to sections, paragraphs to subsubsections, etc.

As far as I know, one can do it only with Scheme, using the tree-searching and tree-modification routines of TeXmacs.

The outline plugin I wrote sometime ago does that:

This plugin makes it easy to control the display of the hierarchical structure of a complex document and enables reorganizing its parts in a structure-aware manner. For instance you can move a section together with its subsection, or consistently change their level in the hierarchy as a whole.

It works, but see Limitations & Warnings.

2 Likes