[Tex/LaTex] How to indent and hanging indent

indentation

I am having trouble with indenting. I would like a non-indented paragraph to be followed by an indented multi-line example. That example should have a hanging indent. I've tried using the hanging package, with no success. Here is an MWE:

\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}

\begin{document}

\noindent Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. \\

{\textbf{Example}}: Suppose this is an example. I would like the example to be indented (yay, it is!), and I would like the text on the next line of the example to line up with the letter ``S" in ``Suppose" at the beginning of the first sentence in the example. \\

\noindent Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph.
\end{document}

Best Answer

You can use a description list:

\begin{description}[leftmargin=!,labelwidth=\widthof{\bfseries Example:}]
  \item [Example:] Suppose this is an example. I would like ... 
\end{description}

enter image description here

If you also want to indent the entire Example block you can use labelindent. For instance, with

\begin{description}[leftmargin=!,labelwidth=\widthof{\bfseries Example:},labelindent=2.0em]
  \item [Example:] Suppose this is an example. I would like ... 
\end{description}

you get:

enter image description here

Code:

\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}

\usepackage{enumitem}
\usepackage{calc}

\begin{document}

\noindent Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. 

\begin{description}[leftmargin=!,labelwidth=\widthof{\bfseries Example:}]
  \item [Example:] Suppose this is an example. I would like the example to be indented (yay, it is!), and I would like the text on the next line of the example to line up with the letter ``S" in ``Suppose" at the beginning of the first sentence in the example. 
\end{description}

\noindent Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words are here, and they form a paragraph.
\end{document}
Related Question