summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-01-03 20:53:17 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-03 21:04:50 -0800
commit2d8d735bb7994dbac2faaf2bb86a81f25cf38b52 (patch)
tree37510a0d98219fe643a81f1e0533fb47470cbba1
parent66fc644ddb68b3d8529fa82d4de930dc4e342820 (diff)
LaTeX template: allow passing `microtypeoptions` to microtype.
Thanks to Vaclav Haisman.
-rw-r--r--MANUAL.txt3
m---------data/templates14
-rw-r--r--tests/lhs-test.latex2
-rw-r--r--tests/lhs-test.latex+lhs2
-rw-r--r--tests/writer.latex2
-rw-r--r--tests/writers-lang-and-dir.latex2
6 files changed, 14 insertions, 11 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index aa5eef671..cdacf5760 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -1315,6 +1315,9 @@ LaTeX variables are used when [creating a PDF].
: allows font encoding to be specified through `fontenc` package (with `pdflatex`);
default is `T1` (see guide to [LaTeX font encodings])
+`microtypeoptions`
+: options to pass to the microtype package
+
`colorlinks`
: add color to link text; automatically enabled if any of `linkcolor`, `citecolor`,
`urlcolor`, or `toccolor` are set
diff --git a/data/templates b/data/templates
-Subproject 64a97848c4969276dfa0251f5b67ce2680ee042
+Subproject 2dc4054e7c8809ca3fe0628cf1372fbe34df2a1
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex
index 8234fce8f..52e4f738c 100644
--- a/tests/lhs-test.latex
+++ b/tests/lhs-test.latex
@@ -18,7 +18,7 @@
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
-\usepackage{microtype}
+\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\usepackage[unicode=true]{hyperref}
diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs
index 37135ad5c..6f58740a4 100644
--- a/tests/lhs-test.latex+lhs
+++ b/tests/lhs-test.latex+lhs
@@ -18,7 +18,7 @@
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
-\usepackage{microtype}
+\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\usepackage[unicode=true]{hyperref}
diff --git a/tests/writer.latex b/tests/writer.latex
index 7784f0d01..62ddf0d80 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -18,7 +18,7 @@
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
-\usepackage{microtype}
+\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\usepackage[unicode=true]{hyperref}
diff --git a/tests/writers-lang-and-dir.latex b/tests/writers-lang-and-dir.latex
index b04b007c4..327c4db8e 100644
--- a/tests/writers-lang-and-dir.latex
+++ b/tests/writers-lang-and-dir.latex
@@ -18,7 +18,7 @@
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
-\usepackage{microtype}
+\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\usepackage[unicode=true]{hyperref}