Skip to content

Deprecate text.latex.unicode. #11255

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
May 30, 2018
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 15, 2018

It is 2018 and Python3 is ruling the world; it is high time for usetex
to default to unicode support as well.

See https://tex.stackexchange.com/questions/13067/utf8x-vs-utf8-inputenc
https://groups.google.com/forum/?fromgroups=#!msg/comp.text.tex/4LC-xODb-LU/1Bd5UZOMNM4J
regarding why \usepackage[utf8]{inputenc} is better.

(If \usepackage[utf8]{inputenc} is irremediably breaking some users'
setups we can always revisit this decision.)

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -111,8 +111,8 @@ text.usetex : False # use latex for all text handling. The following fo
# If another font is desired which can loaded using the
# LaTeX \usepackage command, please inquire at the
# matplotlib mailing list
text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling
# unicode strings.
# text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling
Copy link
Member

Choose a reason for hiding this comment

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

Why is this commented out? Either we leave the setting for the classic style to False (maybe we should?), or we explicitly set it to True.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to just delete them (given that the ultimate goal is to just get rid of the rcs, and that this should not change the result of any plot, just make more plots usetex-compilable).

It is 2018 and Python3 is ruling the world; it is high time for usetex
to default to unicode support as well.

(If ``\usepackage[utf8]{inputenc}`` is irremediably breaking some users'
setup we can always revisit this decision.)
@anntzer anntzer force-pushed the text.latex.unicode branch from 9112b02 to e9a8120 Compare May 17, 2018 05:35
@dstansby dstansby merged commit 5a3da1f into matplotlib:master May 30, 2018
@dstansby dstansby added this to the v3.0 milestone May 30, 2018
@anntzer anntzer deleted the text.latex.unicode branch May 30, 2018 17:49
@efiring
Copy link
Member

efiring commented May 31, 2018

Would someone revert this ASAP, please? Or fix the problem it is causing, which is flooding the test output with deprecation warnings?

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.

4 participants