[PATCH 2/5] Narrow textwidth of legal and TOB pages in 2c build

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

 



>From 57d4d9e8ee4f106068747e46b3d3e4bbbc2e4774 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Sat, 7 Jan 2017 20:31:47 +0900
Subject: [PATCH 2/5] Narrow textwidth of legal and TOB pages in 2c build

In 2c layout, these pages look too wide.
By using "changepage" package, this commit narrows their effective
textwidths as the same as in 1c layout. It also moves commands to
switch between onecolumn and twocolumn layouts in legal.tex to
perfbook.tex.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 legal.tex    | 4 ----
 perfbook.tex | 8 ++++++++
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/legal.tex b/legal.tex
index 965c76e..fbd62ff 100644
--- a/legal.tex
+++ b/legal.tex
@@ -1,8 +1,6 @@
 % legal.tex
 % SPDX-License-Identifier: CC-BY-SA-3.0
 
-\IfTwoColumn{\onecolumn}{}
-
 \section*{Legal Statement}
 
 This work represents the views of the editor and the authors and does not
@@ -43,5 +41,3 @@ If you are unsure of the license for a given code fragment,
 you should assume GPLv2-only.
 
 Combined work {\textcopyright}~2005-\commityear\ by Paul E. McKenney.
-
-\IfTwoColumn{\twocolumn}{}
diff --git a/perfbook.tex b/perfbook.tex
index 2c13e3f..a3b2d84 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -27,6 +27,7 @@
 \usepackage{ifthen}
 \usepackage{xcolor}
 \usepackage[shortcuts]{extdash}
+\usepackage{changepage}
 \usepackage{listings}
 \lstset{basicstyle=\ttfamily}
 % \usepackage[strings]{underscore}
@@ -153,8 +154,15 @@
 \frontmatter
 
 \maketitle
+\IfTwoColumn{
+  \onecolumn\begin{adjustwidth*}{.95in}{.8in}
+  \addtolength{\parindent}{6pt}
+}{}
 \input{legal}
 \tableofcontents
+\IfTwoColumn{
+  \end{adjustwidth*}\twocolumn
+}{}
 
 \mainmatter
 
-- 
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



[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