summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/hang/hang.sty19
1 files changed, 9 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/hang/hang.sty b/Master/texmf-dist/tex/latex/hang/hang.sty
index 6933b6bbf60..888bfc5956c 100644
--- a/Master/texmf-dist/tex/latex/hang/hang.sty
+++ b/Master/texmf-dist/tex/latex/hang/hang.sty
@@ -1,9 +1,9 @@
-\ProvidesPackage{hang}[2015/05/13 v2.0 Hanging paragraphs and list items]
+\ProvidesPackage{hang}[2017/02/18 v2.1 Hanging paragraphs and list items]
-% Copyright (C) 2015 Andreas Nolda
+% Copyright (C) 2017 Andreas Nolda
% Author: Andreas Nolda <andreas@nolda.org>
-% Version: 2.0
+% Version: 2.1
% This work may be distributed and/or modified under the conditions of the LaTeX
% Project Public License, either version 1.3 of this license or (at your option)
@@ -15,12 +15,9 @@
\newlength{\hangingleftmargin}
\newlength{\labeledleftmargin}
-\setlength{\hangingindent}{1em}
-\setlength{\hangingleftmargin}{\z@}
-\setlength{\labeledleftmargin}{\z@}
-
\newenvironment{hangingpar}%
- {\begin{list}{}%
+ {\ifnum\hangingindent=0\setlength{\hangingindent}{1em}\fi
+ \begin{list}{}%
{\setlength{\leftmargin}{\hangingleftmargin}%
\addtolength{\leftmargin}{\hangingindent}%
\setlength{\itemindent}{-\hangingindent}%
@@ -32,7 +29,8 @@
{\end{list}}
\newenvironment{hanginglist}%
- {\begin{list}{}%
+ {\ifnum\hangingindent=0\setlength{\hangingindent}{1em}\fi
+ \begin{list}{}%
{\setlength{\leftmargin}{\hangingleftmargin}%
\addtolength{\leftmargin}{\hangingindent}%
\setlength{\itemindent}{-\hangingindent}%
@@ -40,7 +38,8 @@
{\end{list}}
\newenvironment{compacthang}%
- {\begin{list}{}%
+ {\ifnum\hangingindent=0\setlength{\hangingindent}{1em}\fi
+ \begin{list}{}%
{\setlength{\leftmargin}{\hangingleftmargin}%
\addtolength{\leftmargin}{\hangingindent}%
\setlength{\itemindent}{-\hangingindent}%