From fc8208e8bc5e9be95dea38e230f88cb2c803c9b9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 6 Feb 2017 10:50:36 +0100 Subject: Use unicode-math by default in default.latex template. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mathspec will be used in xelatex if the `mathspec` variable is set; otherwise unicode-math will be used. Thanks to Václav Haisman. --- test/lhs-test.latex | 6 +----- test/lhs-test.latex+lhs | 6 +----- test/writer.latex | 6 +----- test/writers-lang-and-dir.latex | 6 +----- 4 files changed, 4 insertions(+), 20 deletions(-) (limited to 'test') diff --git a/test/lhs-test.latex b/test/lhs-test.latex index d1ad9db69..bc02b6ae5 100644 --- a/test/lhs-test.latex +++ b/test/lhs-test.latex @@ -7,11 +7,7 @@ \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \else % if luatex or xelatex - \ifxetex - \usepackage{mathspec} - \else - \usepackage{fontspec} - \fi + \usepackage{unicode-math} \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs index c781e79b3..64271b415 100644 --- a/test/lhs-test.latex+lhs +++ b/test/lhs-test.latex+lhs @@ -7,11 +7,7 @@ \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \else % if luatex or xelatex - \ifxetex - \usepackage{mathspec} - \else - \usepackage{fontspec} - \fi + \usepackage{unicode-math} \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments diff --git a/test/writer.latex b/test/writer.latex index 5cf39c9c3..8f834df8f 100644 --- a/test/writer.latex +++ b/test/writer.latex @@ -7,11 +7,7 @@ \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \else % if luatex or xelatex - \ifxetex - \usepackage{mathspec} - \else - \usepackage{fontspec} - \fi + \usepackage{unicode-math} \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex index f79984feb..1c705399b 100644 --- a/test/writers-lang-and-dir.latex +++ b/test/writers-lang-and-dir.latex @@ -7,11 +7,7 @@ \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \else % if luatex or xelatex - \ifxetex - \usepackage{mathspec} - \else - \usepackage{fontspec} - \fi + \usepackage{unicode-math} \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments -- cgit v1.2.3