diff options
author | 2024-05-13 22:51:12 +0200 | |
---|---|---|
committer | 2024-05-13 22:51:12 +0200 | |
commit | ea5b43c5e8b666124592fae8e0697f0d990ab1f4 (patch) | |
tree | 880dd3115a72c43745425c43661d31b3c52fa447 | |
parent | pms.cls, eapi-cheatsheet.tex: Avoid conditional code in \date (diff) | |
download | pms-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.cls | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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} |