Skip to content

type1ec.sty needed for TeX output of plots. Not a standard texlive #16911

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
LRydin opened this issue Mar 26, 2020 · 10 comments
Closed

type1ec.sty needed for TeX output of plots. Not a standard texlive #16911

LRydin opened this issue Mar 26, 2020 · 10 comments
Milestone

Comments

@LRydin
Copy link

LRydin commented Mar 26, 2020

Bug report

Bug summary

type1ec.sty not found. I have never encountered this before v3.2.1. Standard texlive (apt install texlive-latex-extra) does not come with this (only type1cm.sty).

Code for reproduction

import numpy as np
import matplotlib
matplotlib.rcParams['pgf.texsystem'] = 'pdflatex'
matplotlib.rcParams.update({'font.family': 'serif', 'font.size': 18,
    'axes.labelsize': 20,'axes.titlesize': 24, 'figure.titlesize' : 28})
matplotlib.rcParams['text.usetex'] = True
import matplotlib.pyplot as plt

fig, ax = plt.subplots(1,1)
x = np.random.norm(0,1)
y = np.random.norm(0,2)
ax.plot(x,y, label='a label')
ax.legend(fontsize=15)

Actual outcome

Sorry for the short description,

...
type1ec.sty not found.
...

Expected outcome

Expected no problems with plotting. `fontsize=12` runs on some choices of label. Labels with a single character also produce no error...

Fix
on linux: apt install cm-super.

Is it now necessary to have cm-supper for plotting TeX?

Matplotlib version

  • Operating system: Linux (Ubuntu 19.10)
  • Matplotlib version: 3.2.1
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline (seems strange to me)
  • Python version: 3.7.6
  • Jupyter version (if applicable): 6.0.3
  • Other libraries:
@anntzer
Copy link
Contributor

anntzer commented Mar 26, 2020

Yes, this has been made necessary so that unicode input works (#14146 and linked issues).

@LRydin
Copy link
Author

LRydin commented Mar 26, 2020

Wonderful, thanks. If not included in the documentation, I would say it is helpful to do so :)

Cheers

@RiteshBhola
Copy link

Thank you
It solved my issue.

@zhu00ling
Copy link

i solved this bug on ubuntu by adding the cm-super. but the same bug appears on mac.

@tacaswell tacaswell added this to the v3.3.0 milestone May 26, 2021
@sanurielf
Copy link

i solved this bug on ubuntu by adding the cm-super. but the same bug appears on mac.

I solved using tlmgr in OSX:

sudo tlmgr install cm-super

@ale-munozarancibia
Copy link

In Fedora 35, I kept having the "not found" error for type1ec.sty and type1cm.sty although both were installed. I was able to solve it installing texlive-psutils with dnf.

@shikhar-saxena
Copy link

I keep getting the "not found" error too. And I couldn't fix it, despite installing cm-super?

@RiteshBhola
Copy link

RiteshBhola commented Aug 13, 2023 via email

@shikhar-saxena
Copy link

Yeah I have installed both of them but it doesn't work for some reason.

@OleHolmNielsen
Copy link

We struggled with finding an appropriate RPM package for RockyLinux 9 (clone of RHEL 9), and found that this package needs to be installed:

dnf install texlive-type1cm

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

No branches or pull requests

9 participants