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.
expl3seqfeatures are needed here. Withbottomyou mean the footer? – Nov 04 '15 at 17:14keepingon the same page ... – Nov 04 '15 at 17:53#1and the second argument should be shifted to the footer. This isn't floating! Perhapssavelowertois the better way. – Nov 04 '15 at 23:03\savelowertoseems like the right idea. I think I'll dig through the source to see how to accomplish the same thing in my own commands. – Sean Easter Nov 05 '15 at 01:24