All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH -perfbook 4/4] ebook: Reduce chapter heading's font size and spaces
Date: Tue, 28 Dec 2021 23:33:15 +0900	[thread overview]
Message-ID: <cf3e3922-8d10-94c7-e5b1-7240e1fc7478@gmail.com> (raw)
In-Reply-To: <4fde622a-0aa3-e6df-1b20-1469ed676813@gmail.com>

The default font size of \Huge for chapter headings is too large
in ebook-sized builds.

Reduce the size and spaces around them by adding titlesec settings.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 perfbook-lt.tex | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index c45d033c..cdc0acc7 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -415,6 +415,10 @@
     %\pagestyle{empty}
     %\usepackage[scaled]{helvet}
     %\renewcommand{\familydefault}{\sfdefault}
+    % Smaller font and tighter space for chapter title
+    \titleformat{\chapter}[display]{\normalfont\bfseries}
+                {\Large\chaptertitlename~\thechapter}{0pt}{\LARGE}
+    \titlespacing*{\chapter}{0pt}{*1}{*2}
   }{
   \IfHardCover{
     \usepackage[papersize={8.25in,10.75in},body={4.75in,8.25in},onecolumn]{geometry}
-- 
2.17.1



  parent reply	other threads:[~2021-12-28 14:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-28 14:25 [PATCH -perfbook 0/4] ebook: Improve overall page layout Akira Yokosawa
2021-12-28 14:27 ` [PATCH -perfbook 1/4] ebook: Allocate enough width for four-digit page counts in TOC Akira Yokosawa
2021-12-28 14:29 ` [PATCH -perfbook 2/4] ebook: Print page counts on upper-right edge of page Akira Yokosawa
2021-12-28 14:31 ` [PATCH -perfbook 3/4] ebook: Use normal epigraph for chapter headings Akira Yokosawa
2021-12-28 14:33 ` Akira Yokosawa [this message]
2021-12-28 17:06 ` [PATCH -perfbook 0/4] ebook: Improve overall page layout Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf3e3922-8d10-94c7-e5b1-7240e1fc7478@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@kernel.org \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.