diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-23 21:06:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-23 21:06:47 +0000 |
commit | a966a76688af35e8f788ba4cd9a98743c496ae73 (patch) | |
tree | b3095755a2db4ce5e44615e51546a37e76d9f1a4 /Master/texmf-dist/tex/latex/lwarp/lwarp-hang.sty | |
parent | 03faaffd813fcdcc0465e974b5120de2690f0f46 (diff) |
lwarp (23nov17)
git-svn-id: svn://tug.org/texlive/trunk@45895 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-hang.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-hang.sty | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-hang.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-hang.sty new file mode 100644 index 00000000000..30fba575b43 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-hang.sty @@ -0,0 +1,83 @@ +%% +%% This is file `lwarp-hang.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lwarp.dtx (with options: `hang') +%% This is a generated file. +%% Copyright 2016-2017 Brian Dunn +%% +%% 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) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +\LWR@ProvidesPackageDrop{hang} +\newlength{\hangingindent} +\setlength{\hangingindent}{1em} +\newlength{\hangingleftmargin} +\setlength{\hangingleftmargin}{0em} + +\newcommand*{\LWR@findhangingleftmargin}{% +\setlength{\LWR@templengthone}{\hangingleftmargin}% +\addtolength{\LWR@templengthone}{\hangingindent}% +} + +\newenvironment{hangingpar} +{ + \LWR@findhangingleftmargin% + \uselengthunit{PT}% + \BlockClass[% + margin-left:\rndprintlength{\LWR@templengthone}; % + text-indent:-\rndprintlength{\hangingindent}% + ]% + {hangingpar}% +} +{\endBlockClass} + +\newenvironment{hanginglist} +{% + \renewcommand*{\LWR@printcloselist}{\LWR@printcloseitemize}% + \renewcommand*{\LWR@printopenlist}{% + \LWR@findhangingleftmargin% + \uselengthunit{PT}% + ul style="list-style-type:none; % + margin-left:\rndprintlength{\LWR@templengthone}; % + text-indent:-\rndprintlength{\hangingindent}"% + }% + \let\item\LWR@itemizeitem% + \list{}{}% +} +{\endlist} + +\newenvironment{compacthang} +{\hanginglist} +{\endhanginglist} + +\newlength{\labeledleftmargin} +\setlength{\labeledleftmargin}{0em} + +\newenvironment{labeledpar}[2] +{% + \BlockClass[% + \LWR@findhangingleftmargin% + \uselengthunit{PT}% + margin-left:\rndprintlength{\LWR@templengthone}; % + text-indent:-\rndprintlength{\hangingindent}% + ]{labeledpar}#2% +} +{\endBlockClass} + +\newenvironment{labeledlist}[1] +{\hanginglist} +{\endhanginglist} + +\newenvironment{compactlabel}[1] +{\hanginglist} +{\endhanginglist} +\endinput +%% +%% End of file `lwarp-hang.sty'. |