git.iko.soy/typeable/pandoc
on master help sign in
Use unicode-math by default in default.latex template.

mathspec will be used in xelatex if the `mathspec` variable is set; otherwise unicode-math will be used. Thanks to Václav Haisman.

commitfc8208e8bc5e9be95dea38e230f88cb2c803c9b9 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 6 Feb 2017, 10:50 (10 years ago) parent6cb1e19
6 files changed+21−34
MANUAL.txt+16−13 data/templates+1−1 test/lhs-test.latex+1−5 test/lhs-test.latex+lhs+1−5 test/writer.latex+1−5 test/writers-lang-and-dir.latex+1−5
MANUAL.txt+16−13
@@ -182,21 +182,23 @@ By default, pandoc will use LaTeX to convert it to PDF:
182182
183183Production of a PDF requires that a LaTeX engine be installed (see
184184`--latex-engine`, below), and assumes that the following LaTeX packages
185−are available: [`amsfonts`], [`amsmath`], [`lm`],
185+are available: [`amsfonts`], [`amsmath`], [`lm`], [`unicode-math`],
186186[`ifxetex`], [`ifluatex`], [`eurosym`], [`listings`] (if the
187187`--listings` option is used), [`fancyvrb`], [`longtable`],
188−[`booktabs`], [`graphicx`] and [`grffile`] (if the
189−document contains images), [`hyperref`], [`ulem`],
190−[`geometry`] (with the `geometry` variable set), [`setspace`] (with
191−`linestretch`), and [`babel`] (with `lang`). The use of `xelatex` or
192−`lualatex` as the LaTeX engine requires [`fontspec`]; `xelatex` uses
193−[`mathspec`], [`polyglossia`] (with `lang`), [`xecjk`], and
194−[`bidi`] (with the `dir` variable set). The [`upquote`] and
195−[`microtype`] packages are used if available, and [`csquotes`] will
196−be used for [smart punctuation] if added to the template or included in
197−any header file. The [`natbib`], [`biblatex`], [`bibtex`], and [`biber`]
198−packages can optionally be used for [citation rendering]. These are
199−included with all recent versions of [TeX Live].
188+[`booktabs`], [`graphicx`] and [`grffile`] (if the document
189+contains images), [`hyperref`], [`ulem`], [`geometry`] (with the
190+`geometry` variable set), [`setspace`] (with `linestretch`), and
191+[`babel`] (with `lang`). The use of `xelatex` or `lualatex` as
192+the LaTeX engine requires [`fontspec`]. `xelatex` uses
193+[`polyglossia`] (with `lang`), [`xecjk`], and [`bidi`] (with the
194+`dir` variable set). If the `mathspec` variable is set,
195+`xelatex` will use [`mathspec`] instead of [`unicode-math`].
196+The [`upquote`] and [`microtype`] packages are used if
197+available, and [`csquotes`] will be used for [smart punctuation]
198+if added to the template or included in any header file. The
199+[`natbib`], [`biblatex`], [`bibtex`], and [`biber`] packages can
200+optionally be used for [citation rendering]. These are included
201+with all recent versions of [TeX Live].
200202
201203Alternatively, pandoc can use ConTeXt or `wkhtmltopdf` to create a PDF.
202204To do this, specify an output file with a `.pdf` extension,
@@ -228,6 +230,7 @@ will affect the output, as will `--css`.
228230[`babel`]: https://ctan.org/pkg/babel
229231[`bidi`]: https://ctan.org/pkg/bidi
230232[`mathspec`]: https://ctan.org/pkg/mathspec
233+[`unicode-math`]: https://ctan.org/pkg/unicode-math
231234[`polyglossia`]: https://ctan.org/pkg/polyglossia
232235[`fontspec`]: https://ctan.org/pkg/fontspec
233236[`upquote`]: https://ctan.org/pkg/upquote
data/templates+1−1

Submodule changed.

test/lhs-test.latex+1−5
@@ -7,11 +7,7 @@
77 \usepackage[T1]{fontenc}
88 \usepackage[utf8]{inputenc}
99\else % if luatex or xelatex
10− \ifxetex
11− \usepackage{mathspec}
12− \else
13− \usepackage{fontspec}
14− \fi
10+ \usepackage{unicode-math}
1511 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
1612\fi
1713% use upquote if available, for straight quotes in verbatim environments
test/lhs-test.latex+lhs+1−5
@@ -7,11 +7,7 @@
77 \usepackage[T1]{fontenc}
88 \usepackage[utf8]{inputenc}
99\else % if luatex or xelatex
10− \ifxetex
11− \usepackage{mathspec}
12− \else
13− \usepackage{fontspec}
14− \fi
10+ \usepackage{unicode-math}
1511 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
1612\fi
1713% use upquote if available, for straight quotes in verbatim environments
test/writer.latex+1−5
@@ -7,11 +7,7 @@
77 \usepackage[T1]{fontenc}
88 \usepackage[utf8]{inputenc}
99\else % if luatex or xelatex
10− \ifxetex
11− \usepackage{mathspec}
12− \else
13− \usepackage{fontspec}
14− \fi
10+ \usepackage{unicode-math}
1511 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
1612\fi
1713% use upquote if available, for straight quotes in verbatim environments
test/writers-lang-and-dir.latex+1−5
@@ -7,11 +7,7 @@
77 \usepackage[T1]{fontenc}
88 \usepackage[utf8]{inputenc}
99\else % if luatex or xelatex
10− \ifxetex
11− \usepackage{mathspec}
12− \else
13− \usepackage{fontspec}
14− \fi
10+ \usepackage{unicode-math}
1511 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
1612\fi
1713% use upquote if available, for straight quotes in verbatim environments