From 3dc3e2ce8da2c4408417638951a6885660f087fb Mon Sep 17 00:00:00 2001 From: Robin Clark Date: Sun, 21 Aug 2011 19:18:09 +0100 Subject: [PATCH] shading and framed text box example --- latex_examples/color_shade_and_frame.tex | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 latex_examples/color_shade_and_frame.tex diff --git a/latex_examples/color_shade_and_frame.tex b/latex_examples/color_shade_and_frame.tex new file mode 100644 index 0000000..40a36dc --- /dev/null +++ b/latex_examples/color_shade_and_frame.tex @@ -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}