8000 Merge pull request #14167 from anntzer/pgf · matplotlib/matplotlib@ce1c9da · GitHub
[go: up one dir, main page]

Skip to content

Commit ce1c9da

Browse files
authored
Merge pull request #14167 from anntzer/pgf
Fix backend_pgf header.
2 parents 34511a6 + 07856d8 commit ce1c9da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 2 additions & 1 deletion
< 5B49 td data-grid-cell-id="diff-3ceb75d68efae3eba151a1bb856b1ea8467d64abcb0dc725ed3fa2e441e16fca-215-216-1" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">216
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ def _build_latex_header():
212212
# fonts later when we don't expect the additional output on stdout.
213213
# TODO: is this sufficient?
214214
latex_header = [
215+
r"\documentclass{minimal}",
215
# Include TeX program name as a comment for cache invalidation.
217+
# TeX does not allow this to be the first line.
216218
r"% !TeX program = {}".format(rcParams["pgf.texsystem"]),
217-
r"\documentclass{minimal}",
218219
latex_preamble,
219220
latex_fontspec,
220221
r"\begin{document}",

0 commit comments

Comments
 (0)
0