# Boxed environment for with title and alignment

I would want to achieve something similar than these nice descriptive boxed styles used to describe problems in Combinatorial Optimization: Theory and Algorithms by Jens Vygen et al.

The box has the length of \textwidth. I have found out that fancybox can do something similar, but I haven't been able to add the title correctly or align the text into two sections. Is there a good package for achieving something similar?

Replay

Here's a quite primitive version with tabularx.

\documentclass{article}

\usepackage{tabularx}
\usepackage{blindtext}

\newcommand{\myboxstuff}[3]{%
\noindent%
\begin{tabularx}{\linewidth}{|llX|}
\hline
\multicolumn{3}{|X|}{\scshape #1} \tabularnewline
& & \tabularnewline
\textit{Instance:} & & #2 \tabularnewline
& & \tabularnewline
\hline
\end{tabularx}%
}

\begin{document}

\myboxstuff{Linear Programming}{Some Matrix\dots}{\blindtext}

\end{document}



Category: boxes Time: 2016-07-29 Views: 0
Tags: boxes framed