summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/floatrow/listpen.sty
blob: 7925512793cfcdb18d43063bee216ffb14319cb8 (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
46
47
48
49
50
51
52
53
54
55
56
57
%%
%% 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}
       [2007/10/28 v0.1d list penalty managing]
%%^^A|\newcommand\CenterFloatBoxes{\CADJfalse\OADJfalse|
\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}
\newcommand\RestoreSpaces{\@nobreakfalse}
\newcommand\RemoveSpaces {\@nobreaktrue}
\newcommand\newseparatedlabel[3]{%
    \@ifdefinable#1{%
        \def#1##1{\protected@edef\@currentlabel{\string
            \LP@label@sep {\csname the#3\endcsname}}\label{sub##1}%
          \protected@edef\@currentlabel{\csname the#2\endcsname
            \string\LP@label@sep {\csname the#3\endcsname}}\label{##1}}}}
\newcommand\newseparatedref[2]{\@ifdefinable#1{\def#1##1{{\def\LP@label@sep{#2}\ref{##1}}}}}
\@ifdefinable\LP@label@sep{}
\newcommand\makelabelseparator[1]{\def\LP@label@sep{#1}}
\endinput
%%
%% End of file `listpen.sty'.