From: Thomas Pietrzak Date: Fri, 12 Apr 2019 07:04:25 +0000 (+0200) Subject: list of definitions X-Git-Tag: first-full-draft~231 X-Git-Url: https://git.thomaspietrzak.com/?a=commitdiff_plain;h=8f8ff6526e6c5b07136344f9b429c460f2c70621;p=hdr.git list of definitions --- diff --git a/mystyle.sty b/mystyle.sty index 7886039..096944b 100644 --- a/mystyle.sty +++ b/mystyle.sty @@ -153,6 +153,18 @@ \@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 }} @@ -217,8 +229,17 @@ \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}