Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b63a2df

Browse files
committed
Remove overspecified latex geometry.
The geometry package derives `body` from `papersize` and `margin`. Even though the value given for `body` is consistent (`papersize - 2*margin`), giving all three of them yields a warning in the tex log (which can be seen e.g. when processing an invalid tex string in usetex mode (e.g. `figtext(.5, .5, r"\foo")`): ``` Package geometry Warning: Over-specification in `h'-direction. `width' (5058.9pt) is ignored. Package geometry Warning: Over-specification in `v'-direction. `height' (5058.9pt) is ignored. ``` Just get rid of the overspecification.
1 parent c30f762 commit b63a2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _get_preamble(self):
190190
r"\DeclareUnicodeCharacter{2212}{\ensuremath{-}}",
191191
# geometry is loaded before the custom preamble as convert_psfrags
192192
# relies on a custom preamble to change the geometry.
193-
r"\usepackage[papersize=72in,body=70in,margin=1in]{geometry}",
193+
r"\usepackage[papersize=72in, margin=1in]{geometry}",
194194
self.get_custom_preamble(),
195195
# textcomp is loaded last (if not already loaded by the custom
196196
# preamble) in order not to clash with custom packages (e.g.

0 commit comments

Comments
 (0)