8000 added latex requirements from fedora spec by story645 · Pull Request #29764 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

added latex requirements from fedora spec #29764

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 2, 2025

Conversation

story645
Copy link
Member
@story645 story645 commented Mar 17, 2025

PR summary

Wrote out the list of latex dependencies from #27282 (comment) b/c I had to update to texlive 2025 and got errors until I installed the whole list.

I think this also closes #24646 b/c 'minimal' is probably encapsulated in the collections.

PR checklist

@story645 story645 force-pushed the latex-dep branch 3 times, most recently from bd182db to 1ab1a65 Compare March 17, 2025 22:24
@tacaswell
Copy link
Member

Are any of these transitive dependencies? If so it would be good to get this down to the minimal set that the user has to ask to be installed (vs the set that a package manager will decide it has to install).

@story645
Copy link
Member Author
story645 commented Mar 18, 2025

If so it would be good to get this down to the minimal set that the user has to ask to be installed

Can't find an easy way to check transitive dependencies - I used tlmgr show to condense the original fedora list to a few packages (most of the fonts are in psnfss, most of the utilities are in lwarp, etc) , but can't figure out how to see dependencies for packages.

Most of the packages are included in the collections, which are installed if you're not using the most minimal installs. I don't know how many of these are installed if you're using a different distro (such as miktex)

* `cm <https://ctan.org/pkg/cm>`_ (collection-basic)
* luahbtex (collection-basic)
* `cm-super <https://ctan.org/pkg/cm-super>`_ (collection-fontsrecommended)
* `lm <https://ctan.org/pkg/lm>`_ (collection-fontsrecommended)
* `txfonts <https://ctan.org/pkg/txfonts>`_ (collection-fontsrecommended)
* `latex <https://ctan.org/pkg/latex>`_ and latex-bin (collection-latex)
* `psnfss <https://ctan.org/pkg/psnfss>`_ (collection-latex)
* `import <https://ctan.org/pkg/import>`_ (collection-latexextra)
* `sfmath <https://ctan.org/pkg/sfmath>`_ (collection-latexextra)
* `type1cm <https://ctan.org/pkg/type1cm>`_ (collection-latexextra)
* `fontspec <https://ctan.org/pkg/fontspec>`_ (collection-latexrecommended)
* `lwarp <https://ctan.org/pkg/lwarp>`_ (collection-latexrecommended)
* `xetex <https://ctan.org/pkg/xetex>` and xetex-bin (collection-xetex)

The only package that's not in a required collection is dvipng.

@story645 story645 force-pushed the latex-dep branch 4 times, most recently from 6b498e8 to 5e14fb8 Compare March 18, 2025 20:11
@timhoffm
Copy link
Member

According to ChatGPT

Package Manager: tlmgr (TeX Live Manager)
Dependency Handling:

tlmgr does not automatically install dependencies when you install a package manually. You need to ensure you install all required dependencies yourself.
However, if you install TeX Live using a package manager like apt (Ubuntu) or brew (macOS), dependency resolution is handled by those package managers.
The full TeX Live installation (scheme-full) includes all packages, preventing dependency issues.

So whether a minimal set is sufficient or whether the user has to install all transitive dependencies depends on whether you use tlmgr or your package manager. 😞 If one wanted to be precise you'd need the distinction. But maybe we don't have to care too much? Installing the given dependencies gives you a working system, which is what counts most.

@story645
Copy link
Member Author
story645 commented Mar 18, 2025

whether the user has to install all transitive dependencies depends on whether you use tlmgr or your package manager

It's more complex than that b/c if you use the tlmgr gui, you get the option to also install dependencies.

But maybe we don't have to care too much?

My motivation here was installing cm-super and collections-fontrecommend and googling all the errors and I couldn't get things working until I went line by line on the fedora list. Which I kinda wrote this more for an audience that's troubleshooting their install than someone setting it up.

Installing the given dependencies gives you a working system

There might be some packages in collection-basic that I haven't listed, have no idea how to track them down.

@story645 story645 force-pushed the latex-dep branch 2 times, most recently from d147e66 to 9c8dc60 Compare March 18, 2025 23:38
@github-actions github-actions bot added the Documentation: examples files in galleries/examples label Apr 10, 2025
@davidlowryduda
Copy link
Contributor

Why does this new commit remove galleries/examples/text_labels_and_annotations/titles_demo.py?

@story645 story645 force-pushed the latex-dep branch 3 times, most recently from 0e2927f to 36db4b3 Compare April 10, 2025 20:17
@story645
Copy link
Member Author

b/c my git repo somehow got messy :/

@github-actions github-actions bot removed the Documentation: examples files in galleries/examples label Apr 10, 2025
@davidlowryduda
Copy link
Contributor

LGTM

`MikTeX <https://miktex.org/>`_

The following LaTeX packages:

When using tex-live, the following collections must be installed. If you cannot install
Copy link

Choose a reason for hiding this comment

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

Suggested change
When using tex-live, the following collections must be installed. If you cannot install
When using TeX Live, the following collections must be installed. If you cannot install

But does this not really also apply to MikTeX?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think miktex has collections but I can make clearer that these packages need to be installed regardless of distro

@story645
Copy link
Member Author
story645 commented May 1, 2025

Reworked it into a table and I think this is much clearer:
image

@QuLogic QuLogic modified the milestones: v3.10.2, v3.11.0 May 2, 2025
@QuLogic QuLogic merged commit d7c4fb0 into matplotlib:main May 2, 2025
22 checks passed
@story645 story645 deleted the latex-dep branch May 2, 2025 12:00
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.

[Doc]: minimal working LaTeX
5 participants
0