[Tex/LaTex] How to line-break a framed text box

framedline-breaking

Is it possible to line-break a framed text box in LaTeX? If so, is it necessary to use some package to do so, and what is the name of that package?

EDIT: For greater clarity, let me give an example. Suppose I am typing a line of text and I put a long word in a framed box at the end of this line. Because by default LaTeX will not line-break such a framed box it will stick out of the right margin of text. My question concerns the possibility of line-breaking this framed text box over to the left side of the next line. In this way, both the text and the frame itself would be line-breaked from the right side of the given line to the left side of the next line.

Best Answer

I know only a trick, which works only manually:

\documentclass[12pt,a5paper]{article}
\usepackage{fbox}
\begin{document}

We look inside the alternate reality of the president’s 
Twitter account, where he absorbs and amplifies a 
noxious stream of disinformation.

We look inside the alternate reality of the \fbox[lbt]{presi-} \fbox[rbt]{dent’s} 
Twitter account, where he absorbs and amplifies a 
noxious stream of disinformation.

\end{document}

enter image description here

Related Question