This answer explains how to use
expl3 to store a
seq variable to place content later in a document. I'd like to write a command that:
- Writes the first argument to the main flow of the page.
- Writes the second argument to the contents of a floating element at the bottom of the page. (A
tcolorboxbox in this case, though not necessarily.) This argument will in practice only ever be a single sentence, and the command should concatenate them into a paragraph.
- Writes these only if there is room for both on the current page. If not, it should begin a new page with the first argument, and a new floating element at bottom, containing the second argument.
It may be that
expl3 is unnecessary here, in which case I welcome other approaches.