blob: 82c1afa3074df94cbe3d5db638caabb844c6b082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
\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{2017/02/18}
\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}
|