>From 1fa65ab2cc4fc6a836c2ebca307e79d91445f243 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Sat, 5 Aug 2017 18:15:45 +0900 Subject: [PATCH 1/6] Define 'listing' environment for style guide Define an experimental floating environment for code snippet to be used in style guide. It requires "float" package. Choose the "plain" style at the moment. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- perfbook.tex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perfbook.tex b/perfbook.tex index 7e201a6..f750455 100644 --- a/perfbook.tex +++ b/perfbook.tex @@ -17,6 +17,10 @@ \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts \usepackage{etoolbox} +\usepackage{float} +\floatstyle{plain} +\newfloat{listing}{tbhp}{lst}[chapter] +\floatname{listing}{Listing} \usepackage{lscape} \usepackage{epsfig} \usepackage{subfigure} -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html