me
/
guix
Archived
1
0
Fork 0

gnu: Add texlive-numprint.

* gnu/packages/tex.scm (texlive-numprint): New variable.
(texlive-latex-numprint): Deprecate variable.
master
Nicolas Goaziou 2022-01-28 13:47:27 +01:00
parent decd4c3679
commit 1eedbae8b4
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 38 additions and 18 deletions

View File

@ -7663,23 +7663,41 @@ It also ensures compatibility with the @code{media9} and @code{animate} packages
@end itemize\n") @end itemize\n")
(license license:lppl1.3c+))) (license license:lppl1.3c+)))
(define-public texlive-latex-numprint (define-public texlive-numprint
(package (let ((template
(name "texlive-latex-numprint") (simple-texlive-package
(version (number->string %texlive-revision)) "texlive-numprint"
(source (list "doc/latex/numprint/"
(origin "source/latex/numprint/"
(method svn-fetch) "tex/latex/numprint/")
(uri (texlive-ref "latex" "numprint")) (base32 "1rqbqj4ffcfxxxxbs100pdslaiimwzgg19mf2qzcmm5snxwrf7zj"))))
(file-name (string-append name "-" version "-checkout")) (package
(sha256 (inherit template)
(base32 "00xyvdfvypfj2wj7wf2qrxpc34wwd0dkdv3bqvb86ydhlpn1jg76")))) (outputs '("out" "doc"))
(build-system texlive-build-system) (arguments
(arguments '(#:tex-directory "latex/numprint")) (substitute-keyword-arguments (package-arguments template)
(home-page "https://www.ctan.org/pkg/numprint") ((#:tex-directory _ '())
(synopsis "Print numbers with separators and exponent if necessary") "latex/numprint")
(description ((#:build-targets _ '())
"The package numprint prints numbers with a separator every three '(list "numprint.ins"))
((#:phases phases)
`(modify-phases ,phases
(add-after 'unpack 'chdir
(lambda _
(chdir "source/latex/numprint")))
(replace 'copy-files
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((origin (assoc-ref inputs "source"))
(source (string-append (assoc-ref outputs "out")
"/share/texmf-dist/source"))
(doc (string-append (assoc-ref outputs "doc")
"/share/texmf-dist/doc")))
(copy-recursively (string-append origin "/source") source)
(copy-recursively (string-append origin "/doc") doc))))))))
(home-page "https://www.ctan.org/pkg/numprint")
(synopsis "Print numbers with separators and exponent if necessary")
(description
"The package numprint prints numbers with a separator every three
digits and converts numbers given as 12345.6e789 to 12\\,345,6\\cdot digits and converts numbers given as 12345.6e789 to 12\\,345,6\\cdot
10^{789}. Numbers are printed in the current mode (text or math) in 10^{789}. Numbers are printed in the current mode (text or math) in
order to use the correct font. order to use the correct font.
@ -7696,7 +7714,9 @@ Tabular alignment using the tabular, array, tabularx, and longtable
environments (similar to the dcolumn and rccol packages) is supported environments (similar to the dcolumn and rccol packages) is supported
using all features of numprint. Additional text can be added before using all features of numprint. Additional text can be added before
and after the formatted number.") and after the formatted number.")
(license license:lppl))) (license license:lppl))))
(define-deprecated-package texlive-latex-numprint texlive-numprint)
(define-public texlive-latex-needspace (define-public texlive-latex-needspace
(package (package