[Tex/LaTex] Adding border/frame around boxes

graphicsmacrospackage-writing

I'm trying to modify a package to suit my needs but since I'm not very familar with the tex macro language I would like to add a border around the boxes created by the package so I can see exactly what they are doing.

The code that allocates the boxes is

\setbox0\box\csname pc@column@\number\count@\endcsname%
\csname pc@column@width@\number\count@\endcsname\z@%

\vbox{\unvbox\@tempboxa}%

and I'd like to simply put a frame around it or even give it a unique semi-opaque background color.

Best Answer

The new(ish) lua-visual-debug package might be your friend here

tex.stackexchange.com/questions/2083/how-can-i-visualize-boxes

As that hooks the visible markings in at a later stage it can avoid problems that occur if you try to add rules to the boxes, where the debugging rules and colour inadvertently affect other aspects of the typesetting.

Related Question