We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34511a6 + 07856d8 commit ce1c9daCopy full SHA for ce1c9da
lib/matplotlib/backends/backend_pgf.py
@@ -212,9 +212,10 @@ def _build_latex_header():
212
# fonts later when we don't expect the additional output on stdout.
213
# TODO: is this sufficient?
214
latex_header = [
215
+ r"\documentclass{minimal}",
216
# Include TeX program name as a comment for cache invalidation.
217
+ # TeX does not allow this to be the first line.
218
r"% !TeX program = {}".format(rcParams["pgf.texsystem"]),
- r"\documentclass{minimal}",
219
latex_preamble,
220
latex_fontspec,
221
r"\begin{document}",
0 commit comments