Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64364d3

Browse filesBrowse files
jklymakMeeseeksDev[bot]
authored andcommitted
Backport PR #14167: Fix backend_pgf header.
1 parent 64e567e commit 64364d3
Copy full SHA for 64364d3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backends/backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+2-1Lines changed: 2 additions & 1 deletion
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}",
215216
# 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.