list of definitions
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Fri, 12 Apr 2019 07:04:25 +0000 (09:04 +0200)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Fri, 12 Apr 2019 07:04:25 +0000 (09:04 +0200)
mystyle.sty

index 788603989bea6b5596245f2b8de1501487eee302..096944b528a747a027faf81a3f0dee50cc0a1381 100644 (file)
    \@starttoc{lot}%
    \if@restonecol\twocolumn\fi
 }
+
+\newcommand{\listofdefinitions}{%
+   \if@twocolumn
+      \@restonecoltrue\onecolumn
+   \else
+      \@restonecolfalse
+   \fi
+   \chapter*{List of Definitions
+      \@mkboth{\listtablename}{\listtablename}}%    Headings not uppercased
+   \@starttoc{lod}%
+   \if@restonecol\twocolumn\fi
+}
 \makeatother
 \def\figurename{{\protect\sc \protect\small\bfseries Figure }}
 \def\tablename{{\protect\sc \protect\small\bfseries Table }}
 
 \usepackage{mdframed}
 
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lod}
 \newtheorem{@definition}{Definition}[chapter]
-\newenvironment{definition}{\vspace{3mm}\begin{mdframed}[backgroundcolor=gray90, linewidth=0pt]\begin{@definition}\upshape}{\end{@definition}\end{mdframed}}
+\newenvironment{definition}[1]{
+  \addcontentsline{lod}{section}{#1}
+  \vspace{3mm}\begin{mdframed}[backgroundcolor=gray90, linewidth=0pt]\begin{@definition}\upshape
+}
+{
+  \end{@definition}\end{mdframed}
+}
 \makeatletter
 \renewcommand{\the@definition}{\arabic{@definition}}
 \@addtoreset{@definition}{chapter}