I am trying to have two lines in inside \fbox
but is not working. Below is my code
\documentclass{beamer}
\usepackage{vietnam}
\begin{document}
\begin{frame}
\frametitle{Exhaustive Search}
{\centering\fbox{ One billion searches per second $\Rightarrow 36 yrs \newline All this to recover only $10$ bits !}}
\end{frame}
\end{document}
Update:
Best Answer
A
\fbox
doesn't admit line breaks. You have, however, several posiibilities:Use a
\parbox
(or aminipage
) inside the\fbox
:Inside the
\fbox
, Use avarwidth
environment from thevarwidth
package if you want the width to adjust automatically:Or use a box defined using
tcolorbox
:Or a TikZ
\node
with thealign
key:Or...