diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-13 21:33:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-13 21:33:22 +0000 |
commit | 7d00fa0a4bf524d8ce252a3948a7a49baaa15f17 (patch) | |
tree | 7ffa4782ac3c262a05013522b98e6c06776c999c /Master/texmf-dist/doc/latex/hang/sample.tex | |
parent | 9f28862d6cb8fd41c321dae74aba8d5603b2ccc2 (diff) |
hang (13may15)
git-svn-id: svn://tug.org/texlive/trunk@37383 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/hang/sample.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/hang/sample.tex | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/hang/sample.tex b/Master/texmf-dist/doc/latex/hang/sample.tex new file mode 100644 index 00000000000..56b1b3500bb --- /dev/null +++ b/Master/texmf-dist/doc/latex/hang/sample.tex @@ -0,0 +1,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{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} |