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
texlive: provide a working pygmentex executable #75730
Conversation
The old top-level pygmentex package is replaced with an alias.
@@ -333,6 +333,7 @@ mapAliases ({ | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not cover the use case introduced in #56063. Is that ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
The old top-level pygmentex package is replaced with an alias.
Motivation for this change
Fixes: #10885
Closes: #55933
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @