diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/hang/ChangeLog | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hang/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hang/hang.pdf | bin | 31286 -> 31162 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hang/hang.tex | 9 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hang/sample.pdf | bin | 20058 -> 19962 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hang/sample.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/hang/hang.sty | 19 |
7 files changed, 19 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/hang/ChangeLog b/Master/texmf-dist/doc/latex/hang/ChangeLog index 41dcae51f7f..2a542cbb079 100644 --- a/Master/texmf-dist/doc/latex/hang/ChangeLog +++ b/Master/texmf-dist/doc/latex/hang/ChangeLog @@ -1,3 +1,7 @@ +2017-02-18: + * make the default indentation length dependent on the current font + * bump version to 2.1 + 2015-05-13: * control hanging indentation by \hangingindent length * control left margin by \hangingleftmargin and \labeledleftmargin lengths diff --git a/Master/texmf-dist/doc/latex/hang/README b/Master/texmf-dist/doc/latex/hang/README index 0d2c1d9a231..e230ab6fead 100644 --- a/Master/texmf-dist/doc/latex/hang/README +++ b/Master/texmf-dist/doc/latex/hang/README @@ -1,4 +1,4 @@ -The "hang" LaTeX package (version 2.0) +The "hang" LaTeX package (version 2.1) -------------------------------------- The "hang" package provides environments for hanging paragraphs and list items. diff --git a/Master/texmf-dist/doc/latex/hang/hang.pdf b/Master/texmf-dist/doc/latex/hang/hang.pdf Binary files differindex d01432bb568..de6b16925c7 100644 --- a/Master/texmf-dist/doc/latex/hang/hang.pdf +++ b/Master/texmf-dist/doc/latex/hang/hang.pdf diff --git a/Master/texmf-dist/doc/latex/hang/hang.tex b/Master/texmf-dist/doc/latex/hang/hang.tex index 3088ea626d4..35d87876309 100644 --- a/Master/texmf-dist/doc/latex/hang/hang.tex +++ b/Master/texmf-dist/doc/latex/hang/hang.tex @@ -16,7 +16,7 @@ adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, fe \title{\textsf{hang} -- environments for hanging \\ paragraphs and list items} \author{Andreas Nolda} -\date{2015/05/13 (v.\,2.0)} +\date{2017/02/18 (v.\,2.1)} \maketitle \noindent The \textsf{hang} package provides environments for hanging paragraphs @@ -34,12 +34,11 @@ first one are indented by some \meta{length}: \end{hangingpar} \end{hangingexample} -\DescribeMacro{\hangingindent} In the following environments, the -indentation \meta{length} is controlled by the |\hangingindent| length, which -can be changed as follows: \begin{quote} +\DescribeMacro{\hangingindent} In the following environments, the indentation +\meta{length} defaults to |1em|. It is controlled by the |\hangingindent| +length, which can be changed as follows: \begin{quote} |\setlength{\hangingindent}{|\meta{length}|}| \end{quote} -By default, it is set to |1em|. \DescribeMacro{\hangingleftmargin} The left margin of the whole hanging paragraph or list item equals the |\hangingleftmargin| length, which defaults to diff --git a/Master/texmf-dist/doc/latex/hang/sample.pdf b/Master/texmf-dist/doc/latex/hang/sample.pdf Binary files differindex 5dccc66e6dd..03c91a5c64c 100644 --- a/Master/texmf-dist/doc/latex/hang/sample.pdf +++ b/Master/texmf-dist/doc/latex/hang/sample.pdf diff --git a/Master/texmf-dist/doc/latex/hang/sample.tex b/Master/texmf-dist/doc/latex/hang/sample.tex index 56b1b3500bb..82c1afa3074 100644 --- a/Master/texmf-dist/doc/latex/hang/sample.tex +++ b/Master/texmf-dist/doc/latex/hang/sample.tex @@ -17,7 +17,7 @@ eu neque.}} \begin{document} \title{Sample use of the \textsf{hang} package} \author{Andreas Nolda} -\date{2015/05/13} +\date{2017/02/18} \maketitle \section{Hanging paragraphs and list items} 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}% |