From 2d8d735bb7994dbac2faaf2bb86a81f25cf38b52 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 3 Jan 2017 20:53:17 -0800 Subject: LaTeX template: allow passing `microtypeoptions` to microtype. Thanks to Vaclav Haisman. --- MANUAL.txt | 3 +++ data/templates | 2 +- tests/lhs-test.latex | 2 +- tests/lhs-test.latex+lhs | 2 +- tests/writer.latex | 2 +- tests/writers-lang-and-dir.latex | 2 +- 6 files changed, 8 insertions(+), 5 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 index 64a97848c..2dc4054e7 160000 --- a/data/templates +++ b/data/templates @@ -1 +1 @@ -Subproject commit 64a97848c4969276dfa0251f5b67ce2680ee042b +Subproject commit 2dc4054e7c8809ca3fe0628cf1372fbe34df2a1b 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} -- cgit v1.2.3