I am reading the Texbook, and there in exercise 11.2 (and the preceding page) there is a conversation of exploring box structure. The idea is that it may be put into a register that is then logged.
I have managed to obtain the contents of the register with the box structure into the log or console, via this code:
\setbox0=\hbox{{\it Some text.\/}}
\showoutput
\showbox0
I wonder if I can have whatever it says in the console typeset to the printed page instead, automatically.
\showoutputfirst in a separate file and then include the log (or part of the log) verbatim in your main document. – David Carlisle Jul 16 '19 at 06:52