Paul Smith wrote:
I would like to box the textExercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding "Exercise 1". I tried \fbox, but with no success.
with package calc \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Herbert