changeset 233:642b003bba2a

latex template: disable protrusion for typewriter font. Closes #1549. Thanks to lemzwerg.
author John MacFarlane <jgm@berkeley.edu>
date Wed, 20 Aug 2014 08:14:53 -0700
parents 723725872c69
children 98a0815c4ecf
files default.latex
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/default.latex	Sun Aug 17 09:57:11 2014 -0700
+++ b/default.latex	Wed Aug 20 08:14:53 2014 -0700
@@ -42,7 +42,10 @@
 % use upquote if available, for straight quotes in verbatim environments
 \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
 % use microtype if available
-\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+\IfFileExists{microtype.sty}{%
+\usepackage{microtype}
+\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
+}{}
 $if(geometry)$
 \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
 $endif$