[PATCH 3/3] Disable 'microtype' in code snippets

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

 



>From a37c36710b08dce3b4be06416a131b1f99aa327a Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
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@xxxxxxxxx>
---
 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


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