BTW: I find it quite confusing that clearpage is derived from pagebreak.
There should be some "empty" base class from which all three command
classes are derived.

clear page etc extend page break so the logic is not so strange here.

Anyway, using pagebreak and its derived class as an example, it is
easy to generalize the idea and implement a bunch of simple insets.
The problem is that, as JMarc pointed out, we should focus on what
insets do, not on individual latex commands. For example, we may
implement one page break inset, but with options to clear page,
although I have no idea how to do that cleanly.

Cheers,
Bo

Reply via email to