From 672f0a1d02109f844569a8724e33d138a637bb8a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 15:46:07 +0200 Subject: [PATCH] gnu: Add texlive-cmdtrack. * gnu/packages/tex.scm (texlive-cmdtrack): New variable. --- gnu/packages/tex.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 4aa9485a9c..a8467a65e7 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -76244,6 +76244,30 @@ places its contents into a full page width colour strip.") command @samp{\\foo}), in a reliable way.") (license license:lppl))) +(define-public texlive-cmdtrack + (package + (name "texlive-cmdtrack") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/cmdtrack/" + "source/latex/cmdtrack/" + "tex/latex/cmdtrack/") + (base32 + "1dmmz5pmp5ql9wq9vlh888hn2q6djjpia3h8c2580yxs5pwk1hrq"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (home-page "https://ctan.org/pkg/cmdtrack") + (synopsis "Check used commands") + (description + "The package keeps track of whether a command defined in a document preamble +is actually used somewhere in the document. After the package is loaded in +the preamble of a document, all @code{\\newcommand} (and similar command +definitions) between that point and the beginning of the document will be +marked for logging. At the end of the document a report of command usage will +be printed in the TeX log.") + (license license:lppl1.0+))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar