ngz pushed a commit to branch tex-team-next in repository guix. commit 205361728e899a1e6cb8ed6b997a6a2c9b12ff87 Author: Nicolas Goaziou <m...@nicolasgoaziou.fr> AuthorDate: Sat May 6 12:31:32 2023 +0200
gnu: Add texlive-filehook. * gnu/packages/tex.scm (texlive-filehook): New variable. --- gnu/packages/tex.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 9a1cd1087a..ad3669fafd 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -3306,6 +3306,35 @@ overwrite existing files and letting you use @code{filecontents} (define-deprecated-package texlive-latex-filecontents texlive-filecontents) +(define-public texlive-filehook + (package + (name "texlive-filehook") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/filehook/" + "source/latex/filehook/" + "tex/latex/filehook/") + (base32 + "03dsnv8fn111kn8h2fa281w2jvcdrqag1im6mkkfahvjgl1apk6k"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (native-inputs + (list texlive-ydoc)) + (propagated-inputs + (list texlive-kvoptions + texlive-pgf)) + (home-page "https://ctan.org/pkg/filehook") + (synopsis "Hooks for input files") + (description + "The package provides several file hooks (@code{AtBegin}, @code{AtEnd}, +...) for files read by @code{\\input}, @code{\\include} and +@code{\\InputIfFileExists}. General hooks for all such files (e.g., all +@code{\\included} ones) and file specific hooks only used for named files are +provided; two hooks are provided for the end of @code{\\included} files --- +one before, and one after the final @code{\\clearpage}.") + (license license:lppl1.3+))) + (define-public texlive-epsf (package (inherit (simple-texlive-package