| Summary: | [TL2010] Missing Requires in texlive-minted package | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mohamed El Morabity <pikachu.2014> | ||||
| Component: | texlive | Assignee: | Jindrich Novy <jnovy> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 14 | CC: | jnovy, pertusus, pknirsch, wierdlmate | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-10-18 11:28:04 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Mohamed El Morabity
2011-03-01 10:43:09 UTC
Please attach the reproducer :) Created attachment 481606 [details]
Sample LaTeX file which calls minted
(In reply to comment #1) > Please attach the reproducer :) Sorry! Here it is, I hope :) Reproduced and fixed. The fix will occur in the next repo update. Thanks! Closing this bug report since it is solved for a moment. The issue hasn't been resolved in Fedora 27. I presume, this is because the required package is now the python3 version of pygments, so the package that is needed is python3-pygments.
The texlive-minted package also requires some additional packages. For example, it requires texlive-framed. To see the full list of required texlive packages minted needs, see the minted.sty file. Here is the relevant part
\RequirePackage{keyval}
\RequirePackage{kvoptions}
\RequirePackage{fancyvrb}
\RequirePackage{float}
\RequirePackage{ifthen}
\RequirePackage{calc}
\RequirePackage{ifplatform}
\RequirePackage{pdftexcmds}
\RequirePackage{etoolbox}
\RequirePackage{xstring}
\RequirePackage{lineno}
\RequirePackage{framed}
\IfFileExists{shellesc.sty}
{\RequirePackage{shellesc}
\@ifpackagelater{shellesc}{2016/04/29}
{}
{\protected\def\ShellEscape{\immediate\write18 }}}
{\protected\def\ShellEscape{\immediate\write18 }}
\AtBeginDocument{%
\@ifpackageloaded{color}{}{%
\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}}%
}
I add that you can test the problem with Mohamed's file above, but make sure you remove python3-pygments and texlive-framed. In fact, the removal of these files should give you a hint that something is wrong, since the removal of, say, texlive-framed should trigger the removal of texlive-minted----but it doesn't. Here is what you can see on Fedora 26 (the same on Fedora 27) when you remove the packages (sorry for the Hungarian) $ sudo dnf remove python3-pygments texlive-framed Függőségek feloldva. ================================================================================ Csomag Arch Verzió Tároló Méret ================================================================================ Eltávolítás: python3-pygments noarch 2.2.0-7.fc26 @fedora 9.6 M texlive-framed noarch 6:svn26789.0.96-33.fc26.2 @fedora 22 k Tranzakció összegzés ================================================================================ Eltávolítás 2 Csomagok Felszabadított terület: 9.7 M Ez így jó? [y/N]y Tranzakció ellenőrzés futtatása Tranzakció ellenőrzés sikeres. Tranzakció teszt futtatása Tranzakció teszt sikeres. Tranzakció futtatása Előkészítés : 1/1 Törlés : texlive-framed-6:svn26789.0.96-33.fc26.2.noarch 1/2 Törlés : python3-pygments-2.2.0-7.fc26.noarch 2/2 Beállítás : python3-pygments-2.2.0-7.fc26.noarch 2/2 Ellenőrzés : texlive-framed-6:svn26789.0.96-33.fc26.2.noarch 1/2 Ellenőrzés : python3-pygments-2.2.0-7.fc26.noarch 2/2 Eltávolítva: python3-pygments.noarch 2.2.0-7.fc26 texlive-framed.noarch 6:svn26789.0.96-33.fc26.2 Kész! And here is what you get now when compiling Mohamed's file $ pdflatex minted-demo.tex |grep -i error ! LaTeX Error: File `framed.sty' not found. So let us install texlive-framed $ sudo dnf install texlive-framed and let us try to compile Mohamed's file again $ pdflatex -shell-escape minted-demo.tex|grep -i error which: no pygmentize in (/usr/libexec/python2-sphinx:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/apu/bin) system returned with code 256 ! Package minted Error: You must have `pygmentize' installed to use this packag |