diff options
author | Ulrich Müller <ulm@gentoo.org> | 2015-11-03 20:59:31 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2015-11-04 23:41:59 +0100 |
commit | f1538a2d9b13ff1d04ef349d137571895f3e0fc9 (patch) | |
tree | 9fe4abd3ecabe2046b5a7263eddbac85198da24b /pms.cls | |
parent | pms.cls: Make marginnote log output less chatty. (diff) | |
download | pms-f1538a2d9b13ff1d04ef349d137571895f3e0fc9.tar.gz pms-f1538a2d9b13ff1d04ef349d137571895f3e0fc9.tar.bz2 pms-f1538a2d9b13ff1d04ef349d137571895f3e0fc9.zip |
pms.cls: More uniform style for algorithms and listings.
Number algorithms per chapter, as it is done for all other floats.
Use the same "ruled" caption style for listings as for algorithms.
Change header for the list of listings to "List of Listings".
Diffstat (limited to 'pms.cls')
-rw-r--r-- | pms.cls | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -18,6 +18,7 @@ \PassOptionsToPackage{utf8}{inputenc} \PassOptionsToPackage{quiet}{marginnote} \PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind} +\PassOptionsToPackage{chapter}{algorithm} % algorithmic and algorithm to be loaded last to avoid failures \RequirePackage{% fontenc, % Load extended font sets @@ -69,11 +70,12 @@ % tex4ht workaround: these need to happen after loading the float package \g@addto@macro\@documentclasshook{ - \floatstyle{plaintop} + \floatstyle{ruled} \newfloat{listing}{tbp}{lol}[chapter] \floatname{listing}{Listing} } -\newcommand{\listoflistings}{\listof{listing}{Listings}} +\newcommand{\listoflistings}{\listof{listing}{List of Listings}} + % Define own label and reference commands, that display the label in % the page margin. \newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}} |