From patchwork Fri Dec 17 18:37:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Goaziou X-Patchwork-Id: 35356 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B332427BBEA; Fri, 17 Dec 2021 18:38:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6875127BBE9 for ; Fri, 17 Dec 2021 18:38:21 +0000 (GMT) Received: from localhost ([::1]:52428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myI7Y-0005NC-JU for patchwork@mira.cbaines.net; Fri, 17 Dec 2021 13:38:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myI7G-0005N0-PL for guix-patches@gnu.org; Fri, 17 Dec 2021 13:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myI7G-0001Ex-Fw for guix-patches@gnu.org; Fri, 17 Dec 2021 13:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myI7G-0002h3-8j for guix-patches@gnu.org; Fri, 17 Dec 2021 13:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52583] [PATCH] Add texlive-latex-numprint Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Dec 2021 18:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52583 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52583@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163976623510287 (code B ref -1); Fri, 17 Dec 2021 18:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Dec 2021 18:37:15 +0000 Received: from localhost ([127.0.0.1]:40612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myI6U-0002fr-Pz for submit@debbugs.gnu.org; Fri, 17 Dec 2021 13:37:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:54084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myI6T-0002fk-Tw for submit@debbugs.gnu.org; Fri, 17 Dec 2021 13:37:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myI6T-0005LB-O4 for guix-patches@gnu.org; Fri, 17 Dec 2021 13:37:13 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myI6R-00019C-JZ for guix-patches@gnu.org; Fri, 17 Dec 2021 13:37:13 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 61D4E60009 for ; Fri, 17 Dec 2021 18:37:06 +0000 (UTC) From: Nicolas Goaziou Date: Fri, 17 Dec 2021 19:37:05 +0100 Message-ID: <87ilvn9iy6.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.195; envelope-from=mail@nicolasgoaziou.fr; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, This patch adds texlive-latex-numprint. Regards, From 9522e8ee96f96c4f8669124a38cc214fd14ea4c1 Mon Sep 17 00:00:00 2001 Message-Id: <9522e8ee96f96c4f8669124a38cc214fd14ea4c1.1639766179.git.mail@nicolasgoaziou.fr> From: Nicolas Goaziou 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