Skip to content

Document the dependency on the type1ec LaTeX package #17412

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

Closed
adeak opened this issue May 14, 2020 · 4 comments · Fixed by #17675
Closed

Document the dependency on the type1ec LaTeX package #17412

adeak opened this issue May 14, 2020 · 4 comments · Fixed by #17675

Comments

@adeak
Copy link
Contributor

adeak commented May 14, 2020

I've just run into #16911. The problem is that the type1ec LaTeX package is necessary when text.latex.unicode is True in the rcParams (which is the default since 3.0). On debian this is part of the cm-super system package. I've had some trouble discovering this information.

  1. As of Clarify error with usetex when cm-super is not installed. #14151 the problem is clear at least: type1ec is missing. (Although I got this error using a completely innocent, ascii-only, as far as I know ligature-free label in a plot. The error hadn't come up two figures earlier with other, innocent, ascii-only labels. And this is without text.usetex.)
  2. This LaTeX package isn't mentioned anywhere on the matplotlib website, and only one closed issue mentions it.
  3. It's not trivial to track down the appropriate debian package, fortunately the linked issue took care of this.
  4. As a side note, I read that the default for text.latex.unicode changed to True in 3.0 here, but this is not mentioned in the easy-to-find What's new, only in the hard-to-discover API changes.

Ideally the dependency should be mentioned somewhere, perhaps among the installation guide. Currently that page mentions

LaTeX and GhostScript (>=9.0) : for rendering text with LaTeX;

In Text rendering with LaTeX (which focusses on usetex) it mentions

On Ubuntu and Gentoo, the base texlive install does not ship with the type1cm package. You may need to install some of the extra packages to get all the goodies that come bundled with other latex distributions.

Note that type1cm is part of texlive-latex-extra which is a straightforward system package to install for LaTeX stuff, and for matplotlib in particular. However, type1ec is not included there, and what's worse, apt search type1ec doesn't turn up any resuts (unlike the same for type1cm).

@r0cketr1kky
Copy link

Hi @adeak , I'm currently documenting the installation procedures on all systems(Ubuntu, Debian, Windows, Conda) so I can include this dependency in the docs as you suggested :)

@adeak
Copy link
Contributor Author

adeak commented May 14, 2020

@r0cketr1kky sounds great, thanks!

@r0cketr1kky
Copy link

I've added it on my PR checklist so that I don't forget to include this :)

@marty90
Copy link

marty90 commented Jun 9, 2020

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants