Is there a way, in LaTeX3, to find out whether a given control sequence or variable is a box register (created with \box_new:(cN))?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\box_if_exist:NTF, but this doesn't really test if the control sequence has been created with\box_new:N. There isn't a\boxdefprimitive in TeX: box registers are accessed only with integers. So\box_new:Nactually defines an integer constant. – egreg Jan 22 at 15:23\box_if_empty_p:Nevaluates to false, can I be sure the tested integer is a box? – AlexG Jan 22 at 15:32\box_new:N– egreg Jan 22 at 15:39