Set a trap at the end of input. macro is executed after the last line of the input file has been processed.
For example, if the document had to have a section at the bottom of the last page for someone to approve it, the
emrequest could be used..de approval . ne 5v . sp |(\\n[.t] - 6v) . in +4i . lc _ . br Approved:\t\a . sp Date:\t\t\a .. . .em approval