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?
|
|
Here a solution based on my 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:
|
|||||||
|
|
This should work for you. It does the necessary vertical corrections so that the text is on a baseline (the same vertical level as the surrounding text). You can change the Edit: I removed the Edit 2: Added
|
|||||||||||
|
|
Below is a solution based on ConTeXt. I define a special
which gives
You can add a |
|||
|
|
|
Here is the mandatory overkill
Notes:
Code:
|
|||||||||||
|
|
This is a solution that uses
|
|||
|
|
|
tohecz just beat me to it. Here is an alternative version:
|
|||
|





