latex3/svn-mirror — Issue #49: More elaborate \box_show:...
Author: blefloch
Created: 2011-10-26 04:34:58+00:00
State: open

Currently, we just have `\box_show:N` = `\tex_showbox:D`. That's moderately useful (at least for me), as with default settings of `\tracingonline`, `\showboxbreadth` and `\showboxdepth`, that prints almost nothing, to the log. I'd prefer something like

\cs_new_protected:Npn \box_show:Nnn #1#2#3
{
\group_begin:
\int_set:Nn \tex_showboxbreadth:D { #2 }
\int_set:Nn \tex_showboxdepth:D { #3 }
\int_set_eq:NN \tex_tracingonline:D \c_one % \c_two?
\tex_showbox:D #1
\group_end:
}

This would print some useful info on the terminal, similar to `\int_show:N` and friends. Then we can make `\box_show:N` be equal to `\box_show:Nnn` with useful defaults (but I'm happy sticking with `\box_show:N` = `\tex_showbox:D`).