1 |
Number algorithms per chapter, as it is done for all other floats. |
2 |
Use the same "ruled" caption style for listings as for algorithms. |
3 |
Change header for the list of listings to "List of Listings". |
4 |
--- |
5 |
pms.cls | 6 ++++-- |
6 |
1 file changed, 4 insertions(+), 2 deletions(-) |
7 |
|
8 |
diff --git a/pms.cls b/pms.cls |
9 |
index 0b900c0..222690c 100644 |
10 |
--- a/pms.cls |
11 |
+++ b/pms.cls |
12 |
@@ -18,6 +18,7 @@ |
13 |
\PassOptionsToPackage{utf8}{inputenc} |
14 |
\PassOptionsToPackage{quiet}{marginnote} |
15 |
\PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind} |
16 |
+\PassOptionsToPackage{chapter}{algorithm} |
17 |
% algorithmic and algorithm to be loaded last to avoid failures |
18 |
\RequirePackage{% |
19 |
fontenc, % Load extended font sets |
20 |
@@ -69,11 +70,12 @@ |
21 |
|
22 |
% tex4ht workaround: these need to happen after loading the float package |
23 |
\g@addto@macro\@documentclasshook{ |
24 |
- \floatstyle{plaintop} |
25 |
+ \floatstyle{ruled} |
26 |
\newfloat{listing}{tbp}{lol}[chapter] |
27 |
\floatname{listing}{Listing} |
28 |
} |
29 |
-\newcommand{\listoflistings}{\listof{listing}{Listings}} |
30 |
+\newcommand{\listoflistings}{\listof{listing}{List of Listings}} |
31 |
+ |
32 |
% Define own label and reference commands, that display the label in |
33 |
% the page margin. |
34 |
\newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}} |
35 |
-- |
36 |
2.6.2 |