From 586b0b0a595d709c6f32aaed1bbe08869ebb9678 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 15:52:06 +0200 Subject: [PATCH] gnu: Add texlive-xcomment. * gnu/packages/tex.scm (texlive-xcomment): 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 05ed372c0c..e396b1a21c 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -84489,6 +84489,30 @@ times.") of the @code{rule-D} package.") (license license:lppl1.3c))) +(define-public texlive-xcomment + (package + (name "texlive-xcomment") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/generic/xcomment/" + "tex/generic/xcomment/") + (base32 + "1fkk619drqvadm7ixdbn2hrfnjddqylwpnqv383g0b4jjnl5x7p4"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (home-page "https://ctan.org/pkg/xcomment") + (synopsis "Allows selected environments to be included/excluded") + (description + "The package defines an environment that only typesets specified environments +within its scope. So, for example, if you want nothing but the @code{figure} +and @code{table} environments in your document, you can enclose the whole +document with an @code{xcomment} environment that excludes everything but +those. This is a lot easier than excluding the chunks of text between the +environments you want, or creating an entire document containing only those +environments.") + (license license:lppl))) + ;;; ;;; 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