latex solution box go over the box at the end code example Example: latex text in box \fbox{\begin{minipage}{15em} ... \end{minipage}}