Graphics, Figures & Tables ⇒ color inside a box
-
- Posts: 26
- Joined: Wed Sep 30, 2009 7:04 pm
color inside a box
How do I put a background color inside a box. For instance:
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[danish]{babel} % danske overskrifter
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{amsmath}
\begin{document}
\framebox[0.95\linewidth]{
\begin{minipage}{0.90\linewidth}
\noindent \underline{\textbf{Geometriske betingelser}}:
\begin{align}
\kappa=\frac{d^{2}\omega}{dx^{2}}, \qquad \epsilon=\frac{d\nu}{dx}
\end{align}
\end{minipage}
}
\end{document}
PS! I hope thisis the right place to ask such a question.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
color inside a box
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
color inside a box
Code: Select all
\fcolorbox{black}{yellow}{
\begin{minipage}{0.90\linewidth}
...
\end{minipage}
}