From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C527415817D for ; Sun, 16 Jun 2024 19:22:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CD66E2A7F; Sun, 16 Jun 2024 19:22:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07910E2A7F for ; Sun, 16 Jun 2024 19:22:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4709933C1EB for ; Sun, 16 Jun 2024 19:22:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DBB0C1ADC for ; Sun, 16 Jun 2024 19:22:41 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1718125856.01f4b868f6fc3e0e9637c7e6aa4d07b1e570f727.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 01f4b868f6fc3e0e9637c7e6aa4d07b1e570f727 X-VCS-Branch: master Date: Sun, 16 Jun 2024 19:22:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e8dd95bc-d657-4fb8-8c0c-78e02b439f5a X-Archives-Hash: 2845280f23601b1bcf03305b4690f760 commit: 01f4b868f6fc3e0e9637c7e6aa4d07b1e570f727 Author: Ulrich Müller gentoo org> AuthorDate: Sun May 12 18:34:17 2024 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Tue Jun 11 17:10:56 2024 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=01f4b868 pms.cls: Use sans serif font for title and headings This tries to update the printed version to have a more modern look. It is somewhat inspired by the KOMA-Script classes, e.g. scrreprt.cls, which also use sans-serif fonts for their headings. Slightly reduce the size of chapter headings (again, inspired by KOMA-Script, with the headings=normal package option). Note that the Helvetica font specified by helvet.sty was never used, see also the commit message of commit 9d68105. Signed-off-by: Ulrich Müller gentoo.org> pms.cls | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pms.cls b/pms.cls index c8c6101..571232f 100644 --- a/pms.cls +++ b/pms.cls @@ -11,7 +11,6 @@ \ProcessOptions\relax \LoadClass{\ClassToLoad} \PassOptionsToPackage{T1}{fontenc} -\PassOptionsToPackage{scaled=0.92}{helvet} \PassOptionsToPackage{orig,english}{isodate} % Dimensions of the text area. Define a narrow left margin to make % room for margin notes in the right (outer) margin @@ -24,6 +23,7 @@ \PassOptionsToPackage{nohyphen}{underscore} \PassOptionsToPackage{hang,flushmargin}{footmisc} \PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind} +\PassOptionsToPackage{defaultsans,scaled=0.92}{opensans} \PassOptionsToPackage{hyphens}{url} % url.sty implicitly loaded by hyperref \PassOptionsToPackage{hyperfootnotes=false}{hyperref} % footmisc compatibility \PassOptionsToPackage{local}{gitinfo2} @@ -48,6 +48,8 @@ chngcntr, % Redefinition of counters tocbibind, % Add bibliography to table of contents float, % More control over float environments + titling, % Change appearance of title information + sectsty, % Change font used for section headings gitinfo2 % Metadata from git } @@ -55,8 +57,8 @@ \newboolean{TEX4HT-HACKS} \ifx\HCode\undefined \RequirePackage{% - mathptmx, % Use Postscript fonts: Times ... - helvet, % ... and Helvetica + mathptmx, % Use Postscript fonts: URW Nimbus Roman No9 L ... + opensans, % ... and Open Sans pdfpages % Insert whole PDF documents as separate pages } \setboolean{TEX4HT-HACKS}{false} @@ -101,6 +103,18 @@ % Redefine the titlepage environment not to reset the page number \renewenvironment{titlepage}{\newpage\thispagestyle{empty}}{\newpage} +% Use sans serif font for title (titling.sty) +\pretitle{\begin{center}\sffamily\bfseries\huge} +\posttitle{\par\end{center}\vskip2.5em} +\preauthor{\begin{center}\large\lineskip0.75em\begin{tabular}[t]{c}} +\postauthor{\end{tabular}\par\end{center}\vskip2em} + +% Redefine fonts for section headings (sectsty.sty) +\allsectionsfont{\sffamily} +% Smaller chapter headings +\chapternumberfont{\sffamily\LARGE} % default is \huge +\chaptertitlefont{\sffamily\huge} % ... and \Huge + % Enumerate subsubsections and include them in the toc \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEB081581F0 for ; Wed, 11 Dec 2024 19:40:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3A29E086F; Wed, 11 Dec 2024 19:40:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 79A47E086F for ; Wed, 11 Dec 2024 19:40:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 79728343169 for ; Wed, 11 Dec 2024 19:39:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12E021CA3 for ; Wed, 11 Dec 2024 19:39:58 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1718125856.01f4b868f6fc3e0e9637c7e6aa4d07b1e570f727.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-9 commit in: / X-VCS-Repository: proj/pms X-VCS-Files: pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 01f4b868f6fc3e0e9637c7e6aa4d07b1e570f727 X-VCS-Branch: eapi-9 Date: Wed, 11 Dec 2024 19:39:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e5f72f9e-4ec7-4c24-b122-f628b7616451 X-Archives-Hash: a10fd9634a5f7452e328e783984f74b9 Message-ID: <20241211193958.Zm-nOgjfMZG7BJ-dD-ERVY3iF0qrW3S9IOfZEIF1FG0@z> commit: 01f4b868f6fc3e0e9637c7e6aa4d07b1e570f727 Author: Ulrich Müller gentoo org> AuthorDate: Sun May 12 18:34:17 2024 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Tue Jun 11 17:10:56 2024 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=01f4b868 pms.cls: Use sans serif font for title and headings This tries to update the printed version to have a more modern look. It is somewhat inspired by the KOMA-Script classes, e.g. scrreprt.cls, which also use sans-serif fonts for their headings. Slightly reduce the size of chapter headings (again, inspired by KOMA-Script, with the headings=normal package option). Note that the Helvetica font specified by helvet.sty was never used, see also the commit message of commit 9d68105. Signed-off-by: Ulrich Müller gentoo.org> pms.cls | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pms.cls b/pms.cls index c8c6101..571232f 100644 --- a/pms.cls +++ b/pms.cls @@ -11,7 +11,6 @@ \ProcessOptions\relax \LoadClass{\ClassToLoad} \PassOptionsToPackage{T1}{fontenc} -\PassOptionsToPackage{scaled=0.92}{helvet} \PassOptionsToPackage{orig,english}{isodate} % Dimensions of the text area. Define a narrow left margin to make % room for margin notes in the right (outer) margin @@ -24,6 +23,7 @@ \PassOptionsToPackage{nohyphen}{underscore} \PassOptionsToPackage{hang,flushmargin}{footmisc} \PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind} +\PassOptionsToPackage{defaultsans,scaled=0.92}{opensans} \PassOptionsToPackage{hyphens}{url} % url.sty implicitly loaded by hyperref \PassOptionsToPackage{hyperfootnotes=false}{hyperref} % footmisc compatibility \PassOptionsToPackage{local}{gitinfo2} @@ -48,6 +48,8 @@ chngcntr, % Redefinition of counters tocbibind, % Add bibliography to table of contents float, % More control over float environments + titling, % Change appearance of title information + sectsty, % Change font used for section headings gitinfo2 % Metadata from git } @@ -55,8 +57,8 @@ \newboolean{TEX4HT-HACKS} \ifx\HCode\undefined \RequirePackage{% - mathptmx, % Use Postscript fonts: Times ... - helvet, % ... and Helvetica + mathptmx, % Use Postscript fonts: URW Nimbus Roman No9 L ... + opensans, % ... and Open Sans pdfpages % Insert whole PDF documents as separate pages } \setboolean{TEX4HT-HACKS}{false} @@ -101,6 +103,18 @@ % Redefine the titlepage environment not to reset the page number \renewenvironment{titlepage}{\newpage\thispagestyle{empty}}{\newpage} +% Use sans serif font for title (titling.sty) +\pretitle{\begin{center}\sffamily\bfseries\huge} +\posttitle{\par\end{center}\vskip2.5em} +\preauthor{\begin{center}\large\lineskip0.75em\begin{tabular}[t]{c}} +\postauthor{\end{tabular}\par\end{center}\vskip2em} + +% Redefine fonts for section headings (sectsty.sty) +\allsectionsfont{\sffamily} +% Smaller chapter headings +\chapternumberfont{\sffamily\LARGE} % default is \huge +\chaptertitlefont{\sffamily\huge} % ... and \Huge + % Enumerate subsubsections and include them in the toc \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3}