shading and framed text box example

This commit is contained in:
Robin Clark 2011-08-21 19:18:09 +01:00
parent 2078211ae0
commit 3dc3e2ce8d

View File

@ -0,0 +1,26 @@
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{framed}
\begin{document}
\begin{table}[h]
\centering
\colorbox{blue!20}{
\begin{minipage}{.5\textwidth}
\centering
\begin{tabular}{ccc}
test & test & test\\
test & test & test
\end{tabular}
\caption{testcaption}
\end{minipage}}
\end{table}
\begin{framed}
This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope. This is framed text, I hope.
This is framed text, I hope. This is framed text, I hope. This is framed text, I hope.
\end{framed}
\end{document}