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

Try running the pgf backend off the article class. #23443

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
Jul 22, 2022

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jul 18, 2022

Apparently the minimal class is problematic from some use cases, and its
used discouraged (https://tex.stackexchange.com/questions/42114).

This does require loading hyperref using a standard usepackage, though.

While we're at it, remove the early font loading, which seems
unnecessary too. (Or we should add a test or a comment that shows a
case where it's needed.)

Closes #18271. Admittedly I don't know for sure that this won't break any use cases, but I don't see how to find that out without trying...

PR Summary

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • 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).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@QuLogic
Copy link
Member

QuLogic commented Jul 21, 2022

I would say this probably needs an API note?

Apparently the minimal class is problematic from some use cases, and its
used discouraged (https://tex.stackexchange.com/questions/42114).

This does require loading hyperref using a standard usepackage, though.

While we're at it, remove the early font loading, which seems
unnecessary too.  (Or we should add a test or a comment that shows a
case where it's needed.)
@anntzer
Copy link
Contributor Author

anntzer commented Jul 21, 2022

done.

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see how it goes.

@oscargus oscargus added this to the v3.6.0 milestone Jul 22, 2022
@oscargus oscargus merged commit 4d85f70 into matplotlib:main Jul 22, 2022
@anntzer anntzer deleted the pgfarticle branch July 22, 2022 11:34
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Aug 19, 2022
This follows from matplotlib#23443 where pgf started using `article` instead of
`minimal`, but the testing check was not updated for it.
@ArchangeGabriel
Copy link
Contributor

ArchangeGabriel commented Sep 15, 2024

Just a small question way after: has the standalone class be considered. This is the standard option for… well, standalone figures (just to be clear, I don’t think there is an issue with using article, at least I did not find any, but I was wondering what would change when using standalone instead as this is the recommended class for those things).

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.

PGF uses the minimal document class
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.