All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Use 'small' font in caption of code snippet
@ 2017-09-28 22:42 Akira Yokosawa
  2017-09-29  0:56 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Akira Yokosawa @ 2017-09-28 22:42 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

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>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Use 'small' font in caption of code snippet
  2017-09-28 22:42 [PATCH] Use 'small' font in caption of code snippet Akira Yokosawa
@ 2017-09-29  0:56 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2017-09-29  0:56 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: perfbook

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
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-29  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.