commit: ea5b43c5e8b666124592fae8e0697f0d990ab1f4
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon May 13 20:51:12 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon May 13 20:51:12 2024 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=ea5b43c5
pms.cls: Redefine headings for list of tables etc.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
pms.cls | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/pms.cls b/pms.cls
index d9907b7..0cf630b 100644
--- a/pms.cls
+++ b/pms.cls
@@ -128,11 +128,18 @@
% Define a new column type P for tables, like p but with ragged-right text
\newcolumntype{P}[1]{>{\setlength\rightskip{0pt plus 1fil}}p{#1}}
+% Redefine headings for list of tables/figures/algorithms
+\renewcommand{\listtablename}{Tables}
+\renewcommand{\listfigurename}{Figures}
+\g@addto@macro\@documentclasshook{
+ \renewcommand{\listalgorithmname}{Algorithms}
+}
+
% Define a float environment for listings
\floatstyle{ruled}
\newfloat{listing}{tbp}{lol}[chapter]
\floatname{listing}{Listing}
-\newcommand{\listoflistings}{\listof{listing}{List of Listings}}
+\newcommand{\listoflistings}{\listof{listing}{Listings}}
% Prevent page break before a list
\newcommand{\nobreakpar}{\par\nobreak\@afterheading}