Title: Document the dependency on the type1ec LaTeX package · Issue #17412 · matplotlib/matplotlib · GitHub
Open Graph Title: Document the dependency on the type1ec LaTeX package · Issue #17412 · matplotlib/matplotlib
X Title: Document the dependency on the type1ec LaTeX package · Issue #17412 · matplotlib/matplotlib
Description: 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 ...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17412
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document the dependency on the type1ec LaTeX package ","articleBody":"I've just run into https://github.com/matplotlib/matplotlib/issues/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.\r\n\r\n 1. As of https://github.com/matplotlib/matplotlib/pull/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`.)\r\n 2. This LaTeX package [isn't mentioned anywhere on the matplotlib website](https://matplotlib.org/search.html?q=type1ec), and [only one closed issue](https://github.com/matplotlib/matplotlib/issues/16911) mentions it.\r\n 3. It's not trivial to track down the appropriate debian package, fortunately the linked issue took care of this.\r\n 4. As a side note, I read that the default for `text.latex.unicode` changed to `True` in 3.0 [here](https://github.com/matplotlib/matplotlib/pull/14151), but this is not mentioned [in the easy-to-find What's new](https://matplotlib.org/users/prev_whats_new/whats_new_3.0.html), only in the [hard-to-discover API changes](https://matplotlib.org/api/prev_api_changes/api_changes_3.0.0.html).\r\n\r\nIdeally the dependency should be mentioned somewhere, perhaps among [the installation guide](https://matplotlib.org/users/installing.html). Currently that page mentions\r\n\r\n\u003e LaTeX and GhostScript (\u003e=9.0) : for rendering text with LaTeX;\r\n\r\nIn [Text rendering with LaTeX](https://matplotlib.org/tutorials/text/usetex.html) (which focusses on `usetex`) it mentions\r\n\r\n\u003e 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.\r\n\r\nNote 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`).","author":{"url":"https://github.com/adeak","@type":"Person","name":"adeak"},"datePublished":"2020-05-14T12:20:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/17412/matplotlib/issues/17412"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4e34abe-4a2a-5e75-e7bb-35e69de89a30 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3F8:1162CE:45C73:5B9B5:6A52E61C |
| html-safe-nonce | 67ba8554b35ce867980162ee5785b932ab049b66433a9405ca65116868cf2ebc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Y4OjExNjJDRTo0NUM3Mzo1QjlCNTo2QTUyRTYxQyIsInZpc2l0b3JfaWQiOiI3NjY4NjMzNjg3NTM4NDYwMTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fa58ddacaae0b596ab5b7c5901454dac983e57186ef1fc9262da311c72750059 |
| hovercard-subject-tag | issue:618184211 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/17412/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c889f3548b440a810521c3b2875b7d82a0d12542f1ff7aeccc9620c55e073edf/matplotlib/matplotlib/issues/17412 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c889f3548b440a810521c3b2875b7d82a0d12542f1ff7aeccc9620c55e073edf/matplotlib/matplotlib/issues/17412 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adeak |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width