Discussions of the Parallel Programming book
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH] Use 'small' font in caption of code snippet
Date: Thu, 28 Sep 2017 17:56:52 -0700	[thread overview]
Message-ID: <20170929005652.GT3521@linux.vnet.ibm.com> (raw)
In-Reply-To: <dad58b29-1422-53cb-b2ab-98b060d5fed2@gmail.com>

On Fri, Sep 29, 2017 at 07:42:07AM +0900, Akira Yokosawa wrote:
> >From e1a3f7e099581b811ea51ef20b27f019b25edee4 Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Fri, 29 Sep 2017 07:16:07 +0900
> Subject: [PATCH] Use 'small' font in caption of code snippet
> 
> As code snippets use "scriptsize" font, the "normal" font of their
> captions looks too big when placed just above the code in the "ruled"
> style. Using the "small" font can reduce the size gap.
> 
> Also use colon as a separator in the caption as the same as those of
> figures and tables.
> 
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>

It does look nicer, applied, thank you!!!

							Thanx, Paul

> ---
>  perfbook.tex | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/perfbook.tex b/perfbook.tex
> index 10346c7..84e48eb 100644
> --- a/perfbook.tex
> +++ b/perfbook.tex
> @@ -27,6 +27,7 @@
>  \usepackage{subfig}
>  \newsubfloat{listing}
>  \captionsetup{labelfont=bf}
> +\captionsetup[listing]{font=small,labelsep=colon}
>  % \usepackage{breakurl}
>  \usepackage{graphicx}
>  \usepackage{rotating}
> -- 
> 2.7.4
> 


      reply	other threads:[~2017-09-29  0:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 22:42 [PATCH] Use 'small' font in caption of code snippet Akira Yokosawa
2017-09-29  0:56 ` Paul E. McKenney [this message]

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=20170929005652.GT3521@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akiyks@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox