Previous: , Up: Vertical Position Traps   [Contents][Index]


5.29.1.3 Diversion Traps

A diversion is not formatted in the context of a page, so it lacks page location traps; instead it can have a diversion trap. There can exist at most one such vertical position trap per diversion. Use the pwh request to dump the properties of a diversion trap to the standard error stream.282

Request: .dt [dist name]

Set a trap calling name from within a diversion at location dist, which is interpreted relative to diversion rather than page boundaries. If invoked with fewer than two arguments, any diversion trap in the current diversion is removed. The register .t works within diversions. It is an error to invoke dt in the top-level diversion. See Diversions.