I want to put some small boxes around certain words in a paragraph. The boxes will never contain more than one word.
\ovalbox command described in the
fancybox documentation is close to what I need. However, I found some problems:
- The rounded corners do not line up with the sides perfectly.
- Text to the left and right in the paragraph are pushed away.
- The spacing between lines in the paragraph is increased vertically.
I would like to create boxes which:
- Adjust horizontally to fit the width of the text inside.
- Have rounded or beveled corners.
- Can be filled with a solid color.
- Will not cause any text inside or around the box to move.
- Will not impact the vertical spacing of lines.