summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-05-13 22:51:12 +0200
committerUlrich Müller <ulm@gentoo.org>2024-05-13 22:51:12 +0200
commitea5b43c5e8b666124592fae8e0697f0d990ab1f4 (patch)
tree880dd3115a72c43745425c43661d31b3c52fa447
parentpms.cls, eapi-cheatsheet.tex: Avoid conditional code in \date (diff)
downloadpms-ea5b43c5e8b666124592fae8e0697f0d990ab1f4.tar.gz
pms-ea5b43c5e8b666124592fae8e0697f0d990ab1f4.tar.bz2
pms-ea5b43c5e8b666124592fae8e0697f0d990ab1f4.zip
pms.cls: Redefine headings for list of tables etc.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--pms.cls9
1 files changed, 8 insertions, 1 deletions
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}