The following macro \mytest should 1) evaluate it's argument and 2) typeset it verbatim. The output looks ok for me, but the log files says:
LaTeX Info: Active space character found while output routine is active (This is related to \AddToHook. Without it I do not get this message.)
Is there something wrong with the code? How can I get rid of this info?
\documentclass{article} \ExplSyntaxOn \NewDocumentCommand\mytest{+v} { \AddToHook{shipout/background}{ \put(20,-100){ \begin{minipage}[t]{120mm} #1 \end{minipage} } } \tl_set_rescan:Nnn\l_tmp_tl{}{#1} \tl_use:N\l_tmp_tl } \ExplSyntaxOff \begin{document} test \mytest{ aaa \fbox{bbb} ccc} \end{document}