\documentclass[a4paper]{ltxdoc}
\usepackage{hang}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{latin}
\newcommand{\lipsumone}{\textlatin{Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae,
felis.}}
\newcommand{\lipsumtwo}{\textlatin{Curabitur dictum gravida mauris. Nam arcu
libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue
eu neque.}}
\setlength{\parindent}{1em}

\frenchspacing
\sloppy

\begin{document}
\title{Sample use of the \textsf{hang} package}
\author{Andreas Nolda}
\date{2015/05/13}
\maketitle

\section{Hanging paragraphs and list items}

\subsection{Hanging paragraphs}

\begin{hangingpar}
\DescribeMacro{hangingpar}\lipsumone
\end{hangingpar}
\begin{hangingpar}
\DescribeMacro{hangingpar}\lipsumtwo
\end{hangingpar}

\subsection{Hanging list items}

\begin{hanginglist}
\item\DescribeMacro{hanginglist}\lipsumone
\item\lipsumtwo
\end{hanginglist}

\begin{compacthang}
\item\DescribeMacro{compacthang}\lipsumone
\item\lipsumtwo
\end{compacthang}

\section{Labeled paragraphs and list items}

\subsection{Labeled paragraphs}

\begin{labeledpar}{Label 10}{Label 9}
\DescribeMacro{labeledpar}\lipsumone
\end{labeledpar}
\begin{labeledpar}{Label 10}{Label 10}
\DescribeMacro{labeledpar}\lipsumtwo
\end{labeledpar}

\subsection{Labeled list items}

\begin{labeledlist}{Label 10}
\item[Label 9]\DescribeMacro{labeledlist}\lipsumone
\item[Label 10]\lipsumtwo
\end{labeledlist}

\pagebreak
\begin{compactlabel}{Label 10}
\item[Label 9]\DescribeMacro{compactlabel}\lipsumone
\item[Label 10]\lipsumtwo
\end{compactlabel}


\end{document}
