Frames

所向无敌的两个命令是 \fbox 和 \boxed

Text Frame

\fbox{hello}

text1.png

\fbox{However long the sentence is, it will not break into separate lines.}

text2.png

\framebox{same as \texttt{\textbackslash fbox}, but more controls}

text3.png

Inline Math Frame

\boxed{e^{i\pi}+1=0} \fbox{$e^{i\pi}+1=0$}

imath.png

Displayed Math Frame

\[ \boxed{A=U\Sigma V^T} \]

dmath1.png

\[ \boxed{\delta_{ij}=\begin{cases}1&i=j\&i\ne j\end{cases}} \]

dmath2.png

Object Frame

\centering
\fbox{
\begin{minipage}{.6\linewidth}
Put non-floating objects inside the \texttt{\textbackslash fbox}, e.g., minipages, tabulars, etc.
\end{minipage}
}

obj1.png

\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}
}

obj21.png

1 Response to “Frames”


  1. 1 zeynep July 27, 2009 at 4:23 am

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


Leave a Reply




Categories

Blog Stats

  • 40,485 hits