-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy paththeoremList.sty
36 lines (30 loc) · 921 Bytes
/
theoremList.sty
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
\usepackage{thmtools}
\newif\ifusethmname
\makeatletter
\renewcommand\thmt@mklistcmd{
\@xa\protected@edef\csname l@\thmt@envname\endcsname{
\@nx\@dottedtocline{1}{1.5em}{\@nx\thmt@listnumwidth}
}
\ifthmt@isstarred
\@xa\def\csname ll@\thmt@envname\endcsname{
\protect\numberline{\protect\let\protect\autodot\protect\@empty}
\ifusethmname
\thmt@thmname
\fi
\ifx\@empty\thmt@shortoptarg\else\protect\thmtformatoptarg{\thmt@shortoptarg}\fi
}
\else
\@xa\def\csname ll@\thmt@envname\endcsname{
\protect\numberline{\csname the\thmt@envname\endcsname}
\ifusethmname
\thmt@thmname
\fi
\ifx\@empty\thmt@shortoptarg\else\protect\thmtformatoptarg{\thmt@shortoptarg}\fi
}
\fi
\@xa\gdef\csname thmt@contentsline@\thmt@envname\endcsname{
\thmt@contentslineShow% default:show
}
}
\makeatother
\renewcommand{\thmtformatoptarg}[1]{#1}%