I'd like to bot a square box around some text. I'd like to denote a labelled object of size 1, in combinatorics this is often symbolised by something like \boxed{1}
. It would be nicer if the box was a square. Is there an adequate command for this?
[Tex/LaTex] Text in squared box
boxesframed
Related Question
- [Tex/LaTex] Creating a shaded box with an outline
- [Tex/LaTex] Boxed equation with empheq: adding text outside box
- [Tex/LaTex] Debugging – any packages that will draw individual line (and word) frame boxes
- [Tex/LaTex] beamer style text box
- [Tex/LaTex] Box or sidebar for additional text
- [Tex/LaTex] Creating a question box
- [Tex/LaTex] How to draw a box around this
Best Answer
Here a solution based on my
collectbox
package. This makes it support verbatim and other special text.It doesn't change the baseline of the content, which is what you normally want.
Alternatively you can avoid the package and box the content directly: