Необрамленный выделенный блок

Необрамленный выделенный блок

Как создать выделенный блок без рамки, как здесь:

введите описание изображения здесь

решение1

Вы можете загрузить framedпакет и shaded*среду:

...
\usepackage{xcolor}
\usepackage{framed}
\colorlet{shadecolor}{lightgray}
...
\begin{document}
...
\begin{shaded*}
\textbf{Example: Decision space for a College Admission Decision}\\
The decision space for a college admission decision consists of  the (potentially unobservable, hopefully unpredictable) information …
\end{shaded*}
...
\end{document}

Он может разрываться на разных страницах. Версия без звездочек затекает на поля.

решение2

Другое решение с tcolorboxпакетом:

\documentclass{article}

\usepackage{tcolorbox}

\newtcolorbox{mybox}[1]{%
    colbacktitle=gray!30,
    coltitle=black,
    fonttitle=\bfseries,
    colback=gray!30,
    colframe=gray!30,
    sharp corners,
    title=#1}

\begin{document}

\begin{mybox}{Example: Decision space for a College Admissions Decision}
The decision space for a college admissions decision consists of  the \dots
\end{mybox}
\end{document}

введите описание изображения здесь

Связанный контент