unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52583] [PATCH] Add texlive-latex-numprint
@ 2021-12-17 18:37 Nicolas Goaziou
  2021-12-26 17:47 ` Mathieu Othacehe
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2021-12-17 18:37 UTC (permalink / raw)
  To: 52583

[-- Attachment #1: Type: text/plain, Size: 78 bytes --]

Hello,

This patch adds texlive-latex-numprint.

Regards,
-- 
Nicolas Goaziou

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Add texlive-latex-numprint --]
[-- Type: text/x-diff, Size: 2354 bytes --]

From 9522e8ee96f96c4f8669124a38cc214fd14ea4c1 Mon Sep 17 00:00:00 2001
Message-Id: <9522e8ee96f96c4f8669124a38cc214fd14ea4c1.1639766179.git.mail@nicolasgoaziou.fr>
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Fri, 17 Dec 2021 19:34:42 +0100
Subject: [PATCH] gnu: Add texlive-latex-numprint.

* gnu/packages/tex.scm (texlive-latex-numprint): New variable.
---
 gnu/packages/tex.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index ebb7f86552..ac66c6f7c4 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -7493,6 +7493,41 @@ (define-public texlive-latex-ms
 @end itemize\n")
     (license license:lppl1.3c+)))
 
+(define-public texlive-latex-numprint
+  (package
+    (name "texlive-latex-numprint")
+    (version (number->string %texlive-revision))
+    (source
+     (origin
+       (method svn-fetch)
+       (uri (texlive-ref "latex" "numprint"))
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32 "00xyvdfvypfj2wj7wf2qrxpc34wwd0dkdv3bqvb86ydhlpn1jg76"))))
+    (build-system texlive-build-system)
+    (arguments '(#:tex-directory "latex/numprint"))
+    (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
+10^{789}.  Numbers are printed in the current mode (text or math) in
+order to use the correct font.
+
+Many things, including the decimal sign, the thousand separator, as
+well as the product sign can be changed by the user, e.g., to reach
+12,345.6\\times 10^{789}.
+
+If an optional argument is given it is printed upright as unit.
+Numbers can be rounded to a given number of digits.  The package
+supports an automatic, language-dependent change of the number format.
+
+Tabular alignment using the tabular, array, tabularx, and longtable
+environments (similar to the dcolumn and rccol packages) is supported
+using all features of numprint.  Additional text can be added before
+and after the formatted number.")
+    (license license:lppl)))
+
 (define-public texlive-latex-needspace
   (package
     (name "texlive-latex-needspace")
-- 
2.34.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#52583] [PATCH] Add texlive-latex-numprint
  2021-12-17 18:37 [bug#52583] [PATCH] Add texlive-latex-numprint Nicolas Goaziou
@ 2021-12-26 17:47 ` Mathieu Othacehe
  2021-12-26 20:33   ` bug#52583: " Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Othacehe @ 2021-12-26 17:47 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 52583


Hello Nicolas,

> This patch adds texlive-latex-numprint.

Looks fine, thanks!

Mathieu




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52583: [PATCH] Add texlive-latex-numprint
  2021-12-26 17:47 ` Mathieu Othacehe
@ 2021-12-26 20:33   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2021-12-26 20:33 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 52583-done

Hello,

Mathieu Othacehe <othacehe@gnu.org> writes:

> Looks fine, thanks!

Applied. Thanks!

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-26 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 18:37 [bug#52583] [PATCH] Add texlive-latex-numprint Nicolas Goaziou
2021-12-26 17:47 ` Mathieu Othacehe
2021-12-26 20:33   ` bug#52583: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).