所向无敌的两个命令是 \fbox 和 \boxed
Text Frame
\fbox{hello}
\fbox{However long the sentence is, it will not break into separate lines.}
\framebox{same as \texttt{\textbackslash fbox}, but more controls}
Inline Math Frame
\boxed{e^{i\pi}+1=0} \fbox{$e^{i\pi}+1=0$}
Displayed Math Frame
\[ \boxed{A=U\Sigma V^T} \]
\[ \boxed{\delta_{ij}=\begin{cases}1&i=j\&i\ne j\end{cases}} \]
Object Frame
\centering
\fbox{
\begin{minipage}{.6\linewidth}
Put non-floating objects inside the \texttt{\textbackslash fbox}, e.g., minipages, tabulars, etc.
\end{minipage}
}
\centering
\fbox{
\begin{tabular}{c|cc}
$+$ & 0 & 1 \\
\hline
0 & 0 & 1 \\
1 & 1 & 0
\end{tabular} \hspace{.5cm}
\begin{tabular}{c|cc}
$\cdot$ & 0 & 1 \\
\hline
0 & 0 & 0 \\
1 & 0 & 1
\end{tabular}
}








you saved my day with the \fbox one. thanks!