8000 Merge pull request #13944 from anntzer/pgfunicodemath · matplotlib/matplotlib@11f0181 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11f0181

Browse files
authored
Merge pull request #13944 from anntzer/pgfunicodemath
Document how to support unicode minus in pgf backend.
2 parents 
8000
a3d7bcb + 207dab6 commit 11f0181

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,10 +790,17 @@ def _print_pgf_to_fh(self, fh, *args,
790790
%% Make sure the required packages are loaded in your preamble
791791
%% \\usepackage{pgf}
792792
%%
793+
%% and, on pdftex
794+
%% \\usepackage[utf8]{inputenc}\\DeclareUnicodeCharacter{2212}{-}
795+
%%
796+
%% or, on luatex and xetex
797+
%% \\usepackage{unicode-math}
798+
%%
793799
%% Figures using additional raster images can only be included by \\input if
794800
%% they are in the same directory as the main LaTeX file. For loading figures
795801
%% from other directories you can use the `import` package
796802
%% \\usepackage{import}
803+
%%
797804
%% and then include the figures with
798805
%% \\import{<path to file>}{<filename>.pgf}
799806
%%

0 commit comments

Comments
 (0)
0