summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/floatrow/listpen.sty
blob: 8a84b2c29dba57220e712ea3b147c1e9504f15c6 (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
%%
%% This is file `listpen.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% floatrow.dtx  (with options: `listpen')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from listpen.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file floatrow.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesPackage{listpen}
       [2005/02/07 v0.1a list penalty managing]
\newcommand\allowprelistbreaks{\let\LP@penalty\@beginparpenalty
  \@testopt{\LP@setlistbreaks}{-1}}
\newcommand\allowpostlistbreaks{\let\LP@penalty\@endparpenalty
  \@testopt{\LP@setlistbreaks}{-1}}
\newcommand\allowitembreaks{\let\LP@penalty\@itempenalty
  \@testopt{\LP@setlistbreaks}{-1}}
\@ifdefinable\LP@setlistbreaks{}
\def\LP@setlistbreaks[#1#2]{\def\tempa{-}\def\tempb{#1}\ifx\tempa\tempb
   \LP@nolbk[#2]\else\LP@nolbk-[#1]\fi}
\@ifdefinable\LP@nolbk{}\@ifdefinable\LP@penalty{}
\def\LP@nolbk#1[#2]{%
    \ifcase#2\LP@penalty\z@
       \or\LP@penalty#1\@lowpenalty
          \or\LP@penalty#1\@medpenalty
             \or\LP@penalty#1\@highpenalty
                \or\LP@penalty#1\@M
    \fi}
\endinput
%%
%% End of file `listpen.sty'.