summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script/doc/book-remarkbox-patch-en.tex
blob: 31a70c35df2ccad22a681477f4fc3314be237302 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
\documentclass{book}

\usepackage[enablepatch={chapter,listoffigures}]{tocbasic}

\DeclareNewTOC[%
  type=remarkbox,%
  types=remarkboxes,%
  float,% definiere floating environment
  counterwithin=chapter,% counter depends on chapter
  floattype=4,%
  name=Remark,%
  tocentryindent=1.5em,%
  tocentrynumwidth=2.3em,%
  listname={List of Remarks}%
]{lor}

% add entries to the table of contents
\setuptoc{lof}{totoc}% list of figures
\setuptoc{lor}{totoc}% list of remarks

\usepackage{mwe}

\begin{document}
\tableofcontents
\listoffigures
\listofremarkboxes

\chapter{First Example Chapter}
\blindtext
\begin{figure}
  \centering
  \rule{1cm}{1cm}
  \caption{First Figure}
\end{figure}
\begin{remarkbox}
  \caption{First Remark}
\end{remarkbox}

\blindtext
\begin{figure}
  \centering
  \rule{1cm}{1cm}
  \caption{Second Figure}
\end{figure}
\begin{remarkbox}
  \caption{Second Remark}
\end{remarkbox}

\blindtext

\chapter{Second Example Chapter}
\blindtext
\begin{figure}
  \centering
  \rule{1cm}{1cm}
  \caption{Third Figure}
\end{figure}
\begin{remarkbox}
  \caption{Third Remark}
\end{remarkbox}

\blindtext
\begin{figure}
  \centering
  \rule{1cm}{1cm}
  \caption{Fourth Figure}
\end{figure}
\begin{remarkbox}
  \caption{Fourth Remark}
\end{remarkbox}

\blindtext

\end{document}