8000 Declare Unicode 2212 as "-" · matplotlib/matplotlib@06fa4d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06fa4d3

Browse files
author
Philipp Arras
committed
Declare Unicode 2212 as "-"
1 parent 127aabd commit 06fa4d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ def _build_latex_header():
215215
r"\usepackage{graphicx}",
216216
latex_preamble,
217217
latex_fontspec,
218+
r"\ifx\pdftexversion\relax",
219+
r"\else\usepackage[utf8]{inputenc}",
220+
r"\DeclareUnicodeCharacter{2212}{-}",
221+
r"\fi",
218222
r"\begin{document}",
219223
r"text $math \mu$", # force latex to load fonts now
220224
r"\typeout{pgf_backend_query_start}",

0 commit comments

Comments
 (0)
0