guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

111/245: gnu: Add texlive-ionumbers.


From: guix-commits
Subject: 111/245: gnu: Add texlive-ionumbers.
Date: Sun, 30 Jul 2023 13:46:46 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit 94c927ae9d80955eb7471773c11fea16a069d63e
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Jul 30 16:25:51 2023 +0200

    gnu: Add texlive-ionumbers.
    
    * gnu/packages/tex.scm (texlive-ionumbers): New variable.
---
 gnu/packages/tex.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index a50a237041..d14d9bc7c9 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -4132,6 +4132,40 @@ The package also supports fence scaling and ensures that 
the enclosing fences
 will end up having the proper closing and opening types.")
     (license license:lppl1.3+)))
 
+(define-public texlive-ionumbers
+  (package
+    (name "texlive-ionumbers")
+    (version (number->string %texlive-revision))
+    (source (texlive-origin
+             name version
+             (list "doc/latex/ionumbers/"
+                   "source/latex/ionumbers/"
+                   "tex/latex/ionumbers/")
+             (base32
+              "0rbm4z2qg1ifwslxdsgzdcni701s3q32i2iaqldm7g7jinn8bivn")))
+    (outputs '("out" "doc"))
+    (build-system texlive-build-system)
+    (home-page "https://ctan.org/pkg/ionumbers";)
+    (synopsis "Restyle numbers in maths mode")
+    (description
+     "@code{ionumbers} stands for input/output numbers.  The package restyles
+numbers in maths mode.  If a number in the input file is written, e.g., as
+@samp{$3,231.44$} as commonly used in English texts, the package is able to
+restyle it to be output as @samp{$3\\,231{,}44$} as commonly used in German
+texts (and vice versa).  This may be useful, for example, if you have a large
+table and want to include it in texts with different output conventions
+without the need to change the table.
+
+The package can also automatically group digits left of the decimal separator
+(thousands) and right of the decimal separator (thousandths) in triplets
+without the need of specifing commas (English) or points (German) as
+separators.  E.g., the input @samp{$1234.567890$} can be output as
+@samp{$1\\,234.\\,567\\,890$}.
+
+Finally, an @emph{e} starts the exponent of the number.  For example,
+@samp{$21e6$} may be output as @samp{$26\\times10\\,^@{6@}$}.")
+    (license license:gpl3+)))
+
 (define-public texlive-bibtex8
   (package
     (name "texlive-bibtex8")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]