From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6C04C1384B4 for ; Tue, 3 Nov 2015 19:59:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5B7821C071; Tue, 3 Nov 2015 19:59:38 +0000 (UTC) Received: from a1www.kph.uni-mainz.de (a1www.kph.uni-mainz.de [134.93.134.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C27C21C071 for ; Tue, 3 Nov 2015 19:59:33 +0000 (UTC) Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.9/8.14.7) with ESMTP id tA3JxVNX027393 for ; Tue, 3 Nov 2015 20:59:31 +0100 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.8/8.14.2) with ESMTP id tA3JxV0P030256; Tue, 3 Nov 2015 20:59:31 +0100 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.8/8.14.8/Submit) id tA3JxVZ6030252; Tue, 3 Nov 2015 20:59:31 +0100 Message-ID: <22073.4643.366861.256510@a1i15.kph.uni-mainz.de> Date: Tue, 3 Nov 2015 20:59:31 +0100 To: gentoo-pms@lists.gentoo.org Subject: [gentoo-pms] [PATCH 1/3] pms.cls: More uniform style for algorithms and listings. In-Reply-To: <22073.4569.425979.448340@a1i15.kph.uni-mainz.de> References: <22073.4569.425979.448340@a1i15.kph.uni-mainz.de> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Package Manager Specification discussions X-BeenThere: gentoo-pms@gentoo.org X-BeenThere: gentoo-pms@lists.gentoo.org Reply-To: gentoo-pms@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="pgp+signed+LeViwu37EG9+6Vk"; micalg=pgp-sha256; protocol="application/pgp-signature" X-Archives-Salt: f07efce8-1ece-407d-8ec9-0ce3709d25df X-Archives-Hash: 5cbb80250dc67cdc60e1ca21fe3022cd This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --pgp+signed+LeViwu37EG9+6Vk Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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". --- pms.cls | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pms.cls b/pms.cls index 0b900c0..222690c 100644 --- a/pms.cls +++ b/pms.cls @@ -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}} -- 2.6.2 --pgp+signed+LeViwu37EG9+6Vk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCAAGBQJWORIeAAoJEMMJBoUcYcJz4s0H/30IyMGvsf8kbFsYY/1LY9hd +SgODIqGgyqkKJH3nvhkAWH/ZAd0Z3WATOSnwnbsNAlvOZcWc+A+q4OqdI6Jk5J/ UkuDVqG1JVb6mlgNbspAa8JxMkiZbf5PSN95svVLMzWSQtIN989TAkM3avN03vHO cAqmt8CebJ1HcarcjVXMNhRtDMzNWVpkRsyWuJ5qlO6LghtY2EbQURXZaYyoGorY tt2fmkTzzl1y+HcLX9Ho2aEdjSXbHoNb6P7Zo6iqeE12e8aCVkgzOTqOVGqIFUSW eP5NRj662Wy535y67jYownBQXvlpTdiTUlEKYgkxL6AW3x8BYIJ4Qmfjj0usgY0= =Nvvf -----END PGP SIGNATURE----- --pgp+signed+LeViwu37EG9+6Vk--