[PATCH v2 3/8] Define 'listing' environment for style guide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 461d28b39c4d2ea05cda3fe4a256ee27677576fe Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Thu, 20 Jul 2017 23:42:40 +0900
Subject: [PATCH v2 3/8] Define 'listing' environment for style guide

Define an experimental floating environment for code snippet
to be used in style guide. It requires "floatrowpf" package
(customized floatrow).

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 perfbook.tex | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/perfbook.tex b/perfbook.tex
index cda014c..629ecea 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -80,6 +80,9 @@
 \renewcommand{\path}[1]{\nolinkurl{#1}} % workaround of interference with mathastext
 }{}
 
+\usepackage{floatrowpf} % Use customized floatrow
+\DeclareNewFloatType{listing}{placement=htbp,name=Listing,within=chapter,fileext=lst}
+
 \usepackage{bm} % for bold math mode fonts --- should be after math mode font choice
 
 \IfLmttForCode{
--
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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux