boxを使った例


fancybox packageやcolor packageに含まれる幾つかのboxの例です。
これらの例は、

\documentclass[20pt,a4paper]{foils}
\usepackage{color}
\usepackage{fancybox}
\input colordef.tex

と宣言して出力したものです。

様々なbox

\begin{center}
{\red \fbox{{\blue This is an fbox with color.}}}\\[6pt]
\fcolorbox{red}{white}{{\blue This is an fcolorbox with white backgroud.}}\\[6pt]
\colorbox{pastelcyan}{{\red This is a colorbox.}}\\[6pt]
\fcolorbox{red}{lightyellow}{{\blue This is an fcolorbox.}}\\[6pt]
{\red \shadowbox{{\blue This is a shadowbox.}}}\\[6pt]
{\red \doublebox{{\blue This is a doublebox.}}}\\[6pt]
{\red \ovalbox{{\blue This is an ovalbox.}}}\\[6pt]
{\red \Ovalbox{{\blue This is an Ovalbox.}}}%\\[6pt]
\end{center}

boxで囲まれた番号付きの式

\fbox{
\parbox{\textwidth}{%
\begin{equation}
R_{\mu\nu}-{1\over2}g_{\mu\nu}R + \Lambda g_{\mu\nu} = 8\pi\kappa T_{\mu\nu}
\end{equation}
}}

\begin{equation}
\fbox{
$\displaystyle{
R_{\mu\nu}-{1\over2}g_{\mu\nu}R + \Lambda g_{\mu\nu} = 8\pi\kappa T_{\mu\nu}
}$
}
\end{equation}
boxで囲まれた複数行の式

\shadowbox{%
\begin{Beqnarray*}
\partial_\mu j^\mu_{B+L} &=& {{g^2}\over{16\pi}}{\rm Tr} F\tilde F \\
\partial_\mu j^\mu_{B-L} &=& 0
\end{Beqnarray*}
}

\shadowbox{%
\begin{minipage}{80mm}
\begin{eqnarray*}
\partial_\mu j^\mu_{B+L} &=& {{g^2}\over{16\pi}}{\rm Tr} F\tilde F \\
\partial_\mu j^\mu_{B-L} &=& 0
\end{eqnarray*}
\end{minipage}
}
boxで囲まれた箇条書き

\ovalbox{%
\begin{Bitemize}
\item This is the first item.
\item This is the second item.
\item This is the third item.
\end{Bitemize}
}

\ovalbox{%
\begin{minipage}{90mm}
\begin{itemize}
\item This is the first item.
\item This is the second item.
\item This is the third item.
\end{itemize}
\end{minipage}
}


研究関連のページに戻る
ホームに戻る