git.iko.soy/typeable/pandoc
on master help sign in
Use unicode-math by default in default.latex template.
fc8208eJohn MacFarlane
MANUAL.txt+16−13
@@ -182,21 +182,23 @@ By default, pandoc will use LaTeX to convert it to PDF:
182
182
183Production of a PDF requires that a LaTeX engine be installed (see
183Production of a PDF requires that a LaTeX engine be installed (see
184`--latex-engine`, below), and assumes that the following LaTeX packages
184`--latex-engine`, below), and assumes that the following LaTeX packages
185−are available: [`amsfonts`], [`amsmath`], [`lm`],
185+are available: [`amsfonts`], [`amsmath`], [`lm`], [`unicode-math`],
186[`ifxetex`], [`ifluatex`], [`eurosym`], [`listings`] (if the
186[`ifxetex`], [`ifluatex`], [`eurosym`], [`listings`] (if the
187`--listings` option is used), [`fancyvrb`], [`longtable`],
187`--listings` option is used), [`fancyvrb`], [`longtable`],
188−[`booktabs`], [`graphicx`] and [`grffile`] (if the
188+[`booktabs`], [`graphicx`] and [`grffile`] (if the document
189−document contains images), [`hyperref`], [`ulem`],
189+contains images), [`hyperref`], [`ulem`], [`geometry`] (with the
190−[`geometry`] (with the `geometry` variable set), [`setspace`] (with
190+`geometry` variable set), [`setspace`] (with `linestretch`), and
191−`linestretch`), and [`babel`] (with `lang`). The use of `xelatex` or
191+[`babel`] (with `lang`). The use of `xelatex` or `lualatex` as
192−`lualatex` as the LaTeX engine requires [`fontspec`]; `xelatex` uses
192+the LaTeX engine requires [`fontspec`]. `xelatex` uses
193−[`mathspec`], [`polyglossia`] (with `lang`), [`xecjk`], and
193+[`polyglossia`] (with `lang`), [`xecjk`], and [`bidi`] (with the
194−[`bidi`] (with the `dir` variable set). The [`upquote`] and
194+`dir` variable set). If the `mathspec` variable is set,
195+`xelatex` will use [`mathspec`] instead of [`unicode-math`].
195−[`microtype`] packages are used if available, and [`csquotes`] will
196+The [`upquote`] and [`microtype`] packages are used if
197+available, and [`csquotes`] will be used for [smart punctuation]
196−be used for [smart punctuation] if added to the template or included in
198+if added to the template or included in any header file. The
197−any header file. The [`natbib`], [`biblatex`], [`bibtex`], and [`biber`]
199+[`natbib`], [`biblatex`], [`bibtex`], and [`biber`] packages can
198−packages can optionally be used for [citation rendering]. These are
200+optionally be used for [citation rendering]. These are included
199−included with all recent versions of [TeX Live].
201+with all recent versions of [TeX Live].
200
202
201Alternatively, pandoc can use ConTeXt or `wkhtmltopdf` to create a PDF.
203Alternatively, pandoc can use ConTeXt or `wkhtmltopdf` to create a PDF.
202To do this, specify an output file with a `.pdf` extension,
204To do this, specify an output file with a `.pdf` extension,
@@ -228,6 +230,7 @@ will affect the output, as will `--css`.
228[`babel`]: https://ctan.org/pkg/babel
230[`babel`]: https://ctan.org/pkg/babel
229[`bidi`]: https://ctan.org/pkg/bidi
231[`bidi`]: https://ctan.org/pkg/bidi
230[`mathspec`]: https://ctan.org/pkg/mathspec
232[`mathspec`]: https://ctan.org/pkg/mathspec
233+[`unicode-math`]: https://ctan.org/pkg/unicode-math
231[`polyglossia`]: https://ctan.org/pkg/polyglossia
234[`polyglossia`]: https://ctan.org/pkg/polyglossia
232[`fontspec`]: https://ctan.org/pkg/fontspec
235[`fontspec`]: https://ctan.org/pkg/fontspec
233[`upquote`]: https://ctan.org/pkg/upquote
236[`upquote`]: https://ctan.org/pkg/upquote
data/templates+1−1

Submodule changed.

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