必要に応じてテキストをインデントする

必要に応じてテキストをインデントする

テキストを次のようにインデントしたいと思います。図

試してみましたが、良い解決策は見つかりませんでした。どなたか助けていただければ幸いです...

答え1

環境を利用したいdescription

\documentclass{book}

\begin{document}

\mainmatter

\chapter{Introduction}

Something to tell what this book is about. Now we
describe the contents of each chapter.

\begin{description}
\item[Chapter 2] deals with gnus, big animals rarely found in Arctic
regions, but that frequently plague silly text examples like this.
Note that gnus are not to be confused with gnats, that are much
smaller animals; enough of this silliness to fill up more than
two lines.

\item[Chapter 3] deals with reindeer, big animals that live in
cold countries and that are very important in this time of the year.
We'll tell how to possibly see reindeer, by remaining awake all the
night between 24 and 25 December.
\end{description}

Something more about the text.

\end{document}

ここに画像の説明を入力してください

説明リストをカスタマイズする必要がある場合は、enumitemパッケージが推奨されます。この例では、インデントは通常の段落のインデントと同じに設定されています。

\documentclass{book}
\usepackage{enumitem}

\begin{document}

\mainmatter

\chapter{Introduction}

Something to tell what this book is about. Now we
describe the contents of each chapter.

\begin{description}[leftmargin=\parindent]
\item[Chapter 2] deals with gnus, big animals rarely found in Arctic
regions, but that frequently plague silly text examples like this.
Note that gnus are not to be confused with gnats, that are much
smaller animals; enough of this silliness to fill up more than
two lines.

\item[Chapter 3] deals with reindeer, big animals that live in
cold countries and that are very important in this time of the year.
We'll tell how to possibly see reindeer, by remaining awake all the 
night between 24 and 25 December.

\end{description}

Something more about the text.

\end{document}

ここに画像の説明を入力してください

関連情報