Is there any way to check for what the contents of a box are? I see that there's a way to check if it's void, and what type of box it is, but can you check what's in it?
I'm working on a reflowing scheme for double column paragraphed footnotes, and my approach is to reflow the box every time a footnote is added. This has the side effect of reflowing the hyphens at the end of a hyphenated line. So I'm looking for a way to check if the \lastbox on a line is a hyphen, and remove it if it is.
An MWE could be produced if deemed necessary, but the direct question shouldn't need one.
\lastbox. – egreg Sep 26 '17 at 19:48