Skip to content

Make used tex packages consistent between ps and other backends. #20446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jun 16, 2021

... by wrapping ps-specific packages in \@ifpackageloaded, which makes
their use transparent to the end user (if they already loaded it
themselves, we don't do anything). So don't mention them anymore in the
matplotlibrc docs either.

Also, graphicx doesn't need the dvips option (the graphicx docs
explicitly state "normally you should... allow it to be defaulted
automatically".

(The pgf backend is a completely different beast and has its own custom
preamble anyways.)

Closes #10042.

PR Summary

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

@QuLogic
Copy link
Member

QuLogic commented Jun 16, 2021

Maybe add a test like #10049?

... by wrapping ps-specific packages in `\@ifpackageloaded`, which makes
their use transparent to the end user (if they already loaded it
themselves, we don't do anything).  So don't mention them anymore in the
matplotlibrc docs either.

Also, graphicx doesn't need the dvips option (the graphicx docs
explicitly state "normally you should... allow it to be defaulted
automatically".

(The pgf backend is a completely different beast and has its own custom
preamble anyways.)
@anntzer
Copy link
Contributor Author

anntzer commented Jun 16, 2021

sure

@QuLogic QuLogic merged commit 32afcf5 into matplotlib:master Jun 17, 2021
@QuLogic QuLogic added this to the v3.5.0 milestone Jun 17, 2021
@anntzer anntzer deleted the psp branch June 17, 2021 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent use of graphicx and color packages in LaTeX preambles
3 participants