summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-tocloft.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-tocloft.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-tocloft.sty43
1 files changed, 34 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-tocloft.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-tocloft.sty
index 1e05d8fe368..1fe9a61bf71 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-tocloft.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-tocloft.sty
@@ -202,16 +202,20 @@
\newcommand{\pagenumbersoff}[1]{}
\newcommand{\pagenumberson}[1]{}
-\NewDocumentCommand{\newlistof}{o m m m}
-{%
+\NewDocumentCommand{\newlistentry}{o m m m}
+{
\IfValueTF{#1}
-{\newfloat{#2}{tbp}{#3}[#1]}
-{\newfloat{#2}{tbp}{#3}}
-\@namedef{listof#2}{\listof{#2}{#4}}
-\@namedef{#2depth}{1}
-\expandafter\newlength\csuse{cftbefore#2skip}
-\expandafter\newlength\csuse{cft#2indent}
-\expandafter\newlength\csuse{cft#2numwidth}
+{
+ \newcounter{#2}[#1]
+ \expandafter\edef\csname the#2\endcsname{
+ \expandafter\noexpand\csname the#1\endcsname.\noexpand\arabic{#2}
+ }
+}
+{\newcounter{#2}}
+\@namedef{l@#2}##1##2{\hypertocfloat{1}{#2}{#3}{##1}{##2}}
+\expandafter\newlength\csname cftbefore#2skip\endcsname
+\expandafter\newlength\csname cft#2indent\endcsname
+\expandafter\newlength\csname cft#2numwidth\endcsname
\@namedef{cft#2font}{}
\@namedef{cft#2presnum}{}
\@namedef{cft#2aftersnum}{}
@@ -220,6 +224,27 @@
\@namedef{cft#2dotsep}{1}
\@namedef{cft#2pagefont}{}
\@namedef{cft#2afterpnum}{}
+\@namedef{toclevel@#2}{#4}
+\@namedef{cft#2fillnum}##1{}
+}
+
+\NewDocumentCommand{\newlistof}{o m m m}
+{%
+\IfValueTF{#1}
+{\newlistentry[#1]{#2}{#3}{0}}
+{\newlistentry{#2}{#3}{0}}
+\@namedef{ext@#2}{#3}
+\newcounter{#3depth}
+\setcounter{#3depth}{1}
+\@namedef{cftmark#3}{}
+\@namedef{listof#2}{\listof{#2}{#4}}
+\@namedef{@cftmake#3title}{}
+\expandafter\newlength\csname cftbefore#3titleskip\endcsname
+\expandafter\newlength\csname cftafter#3titleskip\endcsname
+\@namedef{cft#3titlefont}{}
+\@namedef{cftafter#3title}{}
+\@namedef{cft#3prehook}{}
+\@namedef{cft#3posthook}{}
}
\newcommand{\cftchapterprecis}[1]{%