From 4ed4e2dd5903561ca215efae2da8ff92c6036298 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 15:58:53 +0200 Subject: [PATCH] gnu: Add texlive-prettyref. * gnu/packages/tex.scm (texlive-prettyref): 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 fd047ae4a2..96935e9841 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -92914,6 +92914,30 @@ (define-public texlive-pressrelease "This package provides a configurable class for writing press releases.") (license license:lppl1.3+))) +(define-public texlive-prettyref + (package + (name "texlive-prettyref") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/prettyref/" + "source/latex/prettyref/" + "tex/latex/prettyref/") + (base32 + "1kp50ipij9n32w5ri7qir5qqnxkm08d3rrq3ngc0k1lpnibc8xwn"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (home-page "https://ctan.org/pkg/prettyref") + (synopsis "Make label references self-identify") + (description + "@code{prettyref} provides a command @code{\\newrefformat}, which specifies +the way in which a reference is typeset, according to a label identification. +The identification is set in the @code{\\label} command, by using prefixed +label names; so instead of @code{\\label@{mysection@}}, one uses +@code{\\label@{sec:mysection@}}, and @code{prettyref} interprets the +@samp{sec:} part.") + (license license:public-domain))) + ;;; ;;; 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