texlive: provide a working pygmentex executable#75730
Conversation
The old top-level pygmentex package is replaced with an alias.
| ppl-address-book = throw "deprecated in 2019-05-02: abandoned by upstream."; | ||
| processing3 = processing; # added 2019-08-16 | ||
| procps-ng = procps; # added 2018-06-08 | ||
| pygmentex = texlive.bin.pygmentex; # added 2019-12-15 |
There was a problem hiding this comment.
This does not cover the use case introduced in #56063. Is that ok?
There was a problem hiding this comment.
It is ok.
What matters is the availability of both the latex package and the python script when compiling a document that uses pygmentex. Until now they were not provided by the same package.
There was a problem hiding this comment.
Well, I believe this PR will improve user experience by providing a working python script. However I also care about backward compatibility. The workaround from #10885 is old, simple and expected to be widely used, and the good news is that it should not break with this alias. Supporting the workaround suggested in #56063 would require adding the legacy stuff to texlive.bin.pygmentex, which I would like to avoid.
|
Tested with:
\documentclass[a5paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{pygmentex}
\begin{document}
\section{C Programming}
This is my first C program:
\begin{pygmented}[lang=c]
#include <stdio.h>
int main(void) {
printf("Hello, world!\n");
return 0;
}
\end{pygmented}
\end{document} |

The old top-level pygmentex package is replaced with an alias.
Motivation for this change
Fixes: #10885
Closes: #55933
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"./result/bin/)nix path-info -Sbefore and after)Notify maintainers
cc @