[Tex/LaTex] Put a text into Brackets (no math mode)

bracketsmath-mode

enter image description here

I want to make something like this. Put a text into Brackets (can be (). {}, [] …, whatever type is the easiest).

I am looking for an easy way. There are a lot of similar question on this site, yet they need quite a lot of text writing.

Isn´t there any way like:

$\left\lbrace \text{something to write here, also $math$ in some parts of the text} \right\rbrace$
  • but without the $ and \text{}?
  • Using MiKTeX Package (on Windows), so having the most packages available.

EDIT: The text put into Brackets will be a stand alone text (paragraph), no including in other text. So can be environments like \begin{} \end{}.

Best Answer

Your question is very far from clear. Here's a hint:

\documentclass{article}

% This package is just for the example
\usepackage{lipsum}

\newenvironment{braced}
 {\par\smallskip\hbox to\columnwidth\bgroup
  \hss$\left\{\begin{minipage}{\columnwidth}}
 {\end{minipage}\right\}$\hss\egroup\smallskip}

\begin{document}

\lipsum[2]

\begin{braced}
\lipsum[3]
\end{braced}

\lipsum[4]

\end{document}

enter image description here

The environment ends a possible preceding paragraph and inserts a small vertical space. Then it opens an \hbox as wide as the current \columnwidth (you may want to use \linewidth if you plan to use this inside a list environment). In this box math mode is started and \left\{ is issued. Then a minipage is opened, as wide as \columnwidth. This finishes the starting part. The ending part closes the minipage and issues \right\} to balance the left delimiter and closes math mode; then the \hbox is closed and typeset. A small vertical space is added. Since \hss is added at either side of the math formula, the braces will be in the margins (the box is actually wider than \columnwidth, but the shrinkable glue provided by \hss makes it appear to fit).