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.

Boxed environment for with title and alignment

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
    \textit{Task:} & & #3 \tabularnewline
    \hline
  \end{tabularx}%
}

\begin{document}

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

\end{document}

Boxed environment for with title and alignment

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

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.201 (s). 12 q(s)