Skip to content

Commit 591928e

Browse files
authored
Merge pull request #128 from boeddeker/patch-1
fontspec is XeLaTeX and LuaLaTeX specific
2 parents 54f64d4 + 828d6e3 commit 591928e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

matplotlib2tikz/save.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ def _print_pgfplot_libs_message(data):
208208
print('=========================================================')
209209
print('Please add the following lines to your LaTeX preamble:\n')
210210
print('\\usepackage[utf8]{inputenc}')
211-
print('\\usepackage{fontspec}')
211+
print('\\usepackage{fontspec}'
212+
' % This line only for XeLaTeX and LuaLaTeX')
212213
print('\\usepackage{pgfplots}')
213214
if tikzlibs:
214215
print('\\usetikzlibrary{' + tikzlibs + '}')

0 commit comments

Comments
 (0)