I want to put some text in a box like \fcolorbox{red}{gray}{text}
but such that moreover, the box is surrounded by an (non visible) space. So that if i put to such boxes near each other, there will be a small space between them. An such that if i put two such boxes in a \frac{}{} there will be some space between them and the fraction line.
What would be the shortest way to do it ?
|
|
|||||||||
|
|
The Examples:
There is also the
|
|||||
|
Now you can see the difference:
The small kern inserted by the macro will be unnoticeable (it's the minimum possible width and is less than the wavelength of visible light) if the box is not followed by another similar box: in this case, instead, it will be changed into a thin space I don't see any problem with fractions. |
|||||
|


