From 9c7c89e558665c1553ab3dea66c31f6de2a5af64 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 22 Aug 2023 16:44:15 +0200 Subject: gnu: Add texlive-thucoursework. * gnu/packages/tex.scm (texlive-thucoursework): New variable. --- gnu/packages/tex.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index e7505aae64..e17ddb2e91 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -29732,6 +29732,54 @@ (define-public texlive-thubeamer "This package provides a Beamer theme designed for Tsinghua University.") (license license:lppl1.3c))) +(define-public texlive-thucoursework + (package + (name "texlive-thucoursework") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/thucoursework/" + "source/latex/thucoursework/" + "tex/latex/thucoursework/") + (base32 + "1cv2kadwzwwrw3q98wy7cjjl3084qqp55ki50v7m2ylrjxinwkv4"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (arguments + (list + #:tex-format "xelatex" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'skip-documentation-build + ;; Only extract the ".sty" files. + (lambda _ + (substitute* "source/latex/thucoursework/thucoursework.dtx" + (("\\\\DocInput\\{\\\\jobname\\.dtx\\}") ""))))))) + (native-inputs + (list texlive-booktabs + texlive-carlisle + texlive-ctex + texlive-enumitem + texlive-etoolbox + texlive-fancyhdr + texlive-hypdoc + texlive-kastrup + texlive-listings + texlive-metalogo + texlive-newpx + texlive-newtx + texlive-oberdiek + texlive-realscripts + texlive-xcolor + texlive-xstring)) + (home-page "https://ctan.org/pkg/thucoursework") + (synopsis "Coursework template for Tsinghua University") + (description + "This package provides a LaTeX package for students of Tsinghua +University to write coursework more efficiently. It can also be used by +students from other universities.") + (license license:lppl1.3+))) + (define-public texlive-tinos (package (name "texlive-tinos") -- cgit v1.2.3