All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Margin lengths and microtype tweaks
@ 2016-10-04 15:20 Akira Yokosawa
  2016-10-04 15:22 ` [PATCH 1/3] Rewrite custom margins for hardcover Akira Yokosawa
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Akira Yokosawa @ 2016-10-04 15:20 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From a37c36710b08dce3b4be06416a131b1f99aa327a Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Wed, 5 Oct 2016 00:00:59 +0900
Subject: [PATCH 0/3] Margin lengths and microtype tweaks

Hi Paul,

This patch series makes tiny adjustments of margin lengths
definitions and a workaround of slight miss-alignment of code
snippets caused by the use of "microtype" package.

                                        Thanks, Akira
---
Akira Yokosawa (3):
  Rewrite custom margins for hardcover
  Tweak oddside and evenside margins of onecolumn
  Disable 'microtype' in code snippets

 perfbook.tex | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.7.4


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

* [PATCH 1/3] Rewrite custom margins for hardcover
  2016-10-04 15:20 [PATCH 0/3] Margin lengths and microtype tweaks Akira Yokosawa
@ 2016-10-04 15:22 ` Akira Yokosawa
  2016-10-04 15:24 ` [PATCH 2/3] Tweak oddside and evenside margins of onecolumn Akira Yokosawa
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Akira Yokosawa @ 2016-10-04 15:22 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From 81a538c86b20d69ba711572d1627e4dc53ad9314 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Sun, 25 Sep 2016 08:22:58 +0900
Subject: [PATCH 1/3] Rewrite custom margins for hardcover

Instead of specifying absolute values for \topmargin and
\evensidemargin in \setlength commands, this commit uses
\addtolength commands and specifies "-0.25in" which corresponds
to the size reduction defined in the localized book.cls.
This change improves alignment of oddside and evenside pages
in double-side print.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 perfbook.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/perfbook.tex b/perfbook.tex
index 1493d16..dd68c58 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -109,8 +109,8 @@
 }

 \IfHardCover{
-\setlength{\topmargin}{13pt}
-\setlength{\evensidemargin}{-4pt}
+\addtolength{\topmargin}{-0.25in}
+\addtolength{\evensidemargin}{-0.25in}
 }{}

 \setcounter{secnumdepth}{3}
-- 
2.7.4



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

* [PATCH 2/3] Tweak oddside and evenside margins of onecolumn
  2016-10-04 15:20 [PATCH 0/3] Margin lengths and microtype tweaks Akira Yokosawa
  2016-10-04 15:22 ` [PATCH 1/3] Rewrite custom margins for hardcover Akira Yokosawa
@ 2016-10-04 15:24 ` Akira Yokosawa
  2016-10-04 15:25 ` [PATCH 3/3] Disable 'microtype' in code snippets Akira Yokosawa
  2016-10-05 13:23 ` [PATCH 0/3] Margin lengths and microtype tweaks Paul E. McKenney
  3 siblings, 0 replies; 5+ messages in thread
From: Akira Yokosawa @ 2016-10-04 15:24 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From adb8dde5b698103ee789d88b09aa836f72808bb9 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Mon, 3 Oct 2016 17:26:20 +0900
Subject: [PATCH 2/3] Tweak oddside and evenside margins of onecolumn

To reduce jaggy looks of odd and even pages in onecolumn layout
displayed in a PDF reader, this commit tweaks \oddsidemargin
and \evensidemargin lengths.

It keeps exact alignment of pages in double-side print.

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

diff --git a/perfbook.tex b/perfbook.tex
index dd68c58..14c06f8 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -106,6 +106,8 @@
 \setlength{\textheight}{8.25in}
 \setlength{\textwidth}{4.75in}
 \setlength{\columnsep}{0in}
+\addtolength{\oddsidemargin}{0.3in}
+\addtolength{\evensidemargin}{-0.3in}
 }

 \IfHardCover{
-- 
2.7.4



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

* [PATCH 3/3] Disable 'microtype' in code snippets
  2016-10-04 15:20 [PATCH 0/3] Margin lengths and microtype tweaks Akira Yokosawa
  2016-10-04 15:22 ` [PATCH 1/3] Rewrite custom margins for hardcover Akira Yokosawa
  2016-10-04 15:24 ` [PATCH 2/3] Tweak oddside and evenside margins of onecolumn Akira Yokosawa
@ 2016-10-04 15:25 ` Akira Yokosawa
  2016-10-05 13:23 ` [PATCH 0/3] Margin lengths and microtype tweaks Paul E. McKenney
  3 siblings, 0 replies; 5+ messages in thread
From: Akira Yokosawa @ 2016-10-04 15:25 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From a37c36710b08dce3b4be06416a131b1f99aa327a Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Mon, 3 Oct 2016 18:36:28 +0900
Subject: [PATCH 3/3] Disable 'microtype' in code snippets

"microtype" package can affect monospece-ness of code snippets.
The symptom is evident in Figures 12.17 and 12.18, where patch
diffs beginning with "-" and "+" have slightly different indents.
This commit addresses this issue by adding a \microtypesetup{}
command at the start of "verbatim" and "verbbox" environments
with the help of "etoolbox" package.

This workaround is mentioned in Section 9 of microtype documentation:
http://mirrors.ctan.org/macros/latex/contrib/microtype/microtype.pdf

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

diff --git a/perfbook.tex b/perfbook.tex
index 14c06f8..66c93fe 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -9,6 +9,9 @@

 % Improves the text layout
 \usepackage{microtype}
+\usepackage{etoolbox}
+\AtBeginEnvironment{verbatim}{\microtypesetup{activate=false}}
+\AtBeginEnvironment{verbbox}{\microtypesetup{activate=false}}

 \usepackage{lscape}
 \usepackage{epsfig}
-- 
2.7.4



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

* Re: [PATCH 0/3] Margin lengths and microtype tweaks
  2016-10-04 15:20 [PATCH 0/3] Margin lengths and microtype tweaks Akira Yokosawa
                   ` (2 preceding siblings ...)
  2016-10-04 15:25 ` [PATCH 3/3] Disable 'microtype' in code snippets Akira Yokosawa
@ 2016-10-05 13:23 ` Paul E. McKenney
  3 siblings, 0 replies; 5+ messages in thread
From: Paul E. McKenney @ 2016-10-05 13:23 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: perfbook

On Wed, Oct 05, 2016 at 12:20:20AM +0900, Akira Yokosawa wrote:
> >From a37c36710b08dce3b4be06416a131b1f99aa327a Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Wed, 5 Oct 2016 00:00:59 +0900
> Subject: [PATCH 0/3] Margin lengths and microtype tweaks
> 
> Hi Paul,
> 
> This patch series makes tiny adjustments of margin lengths
> definitions and a workaround of slight miss-alignment of code
> snippets caused by the use of "microtype" package.

Queued and pushed, thank you!

							Thanx, Paul

>                                         Thanks, Akira
> ---
> Akira Yokosawa (3):
>   Rewrite custom margins for hardcover
>   Tweak oddside and evenside margins of onecolumn
>   Disable 'microtype' in code snippets
> 
>  perfbook.tex | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> -- 
> 2.7.4
> 


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

end of thread, other threads:[~2016-10-05 13:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 15:20 [PATCH 0/3] Margin lengths and microtype tweaks Akira Yokosawa
2016-10-04 15:22 ` [PATCH 1/3] Rewrite custom margins for hardcover Akira Yokosawa
2016-10-04 15:24 ` [PATCH 2/3] Tweak oddside and evenside margins of onecolumn Akira Yokosawa
2016-10-04 15:25 ` [PATCH 3/3] Disable 'microtype' in code snippets Akira Yokosawa
2016-10-05 13:23 ` [PATCH 0/3] Margin lengths and microtype tweaks 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.