| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Looks like psfrags interacts badly with `\newgeometry`, so we need to
use `\geometry` instead in the custom preamble to set the paper size.
In turn this means that `\usepackage{geometry}` needs to move to before
the custom preamble into `TexManager._get_preamble()`, and thus we
can't pass the dvips option to it anymore, but fortunately dvips is
documented as the default driver anyways (section 5.6 of `geometry`
docs). Also, in order to keep everything under 79 characters wide,
change `{72in,72in}` to just `72in` (which is synonymous per section
4.3.3 of `geometry` docs).
Also insert some extra newlines in the generated tex file for ease of
debugging.
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
$ git checkout v3.2.x $ git pull
$ git cherry-pick -m1 da6dfab9f8c6f10207eef43906a9fdbc17486e9f
$ git commit -am 'Backport PR #16913: Fix use of psfrags in ps backend + usetex.'
git push YOURFORK v3.2.x:auto-backport-of-pr-16913-on-v3.2.x
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
Sorry, something went wrong.
Fix use of psfrags in ps backend + usetex.
Conflicts:
lib/matplotlib/backends/backend_ps.py
- near by change of rcParams -> mpl.rcParams
lib/matplotlib/texmanager.py
- do not implicitly backport rcParam deprecations
| Back | FazBrowse Home | New Git URL |
Looks like psfrags interacts badly with \newgeometry, so we need to
use \geometry instead in the custom preamble to set the paper size.
In turn this means that \usepackage{geometry} needs to move to before
the custom preamble into TexManager._get_preamble(), and thus we
can't pass the dvips option to it anymore, but fortunately dvips is
documented as the default driver anyways (section 5.6 of geometry
docs). Also, in order to keep everything under 79 characters wide,
change {72in,72in} to just 72in (which is synonymous per section
4.3.3 of geometry docs).
Also insert some extra newlines in the generated tex file for ease of
debugging.
Closes #16898; sorry I don't have a test for now.
PR Summary
PR Checklist