summaryrefslogtreecommitdiff
path: root/gnu/packages/tex.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-03-21 23:39:43 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-03-21 23:39:43 -0400
commita9429c8f2207841c649438187d6e19046d323a16 (patch)
treea06e4b8a87b6a42742cf6750276746a10b6c2139 /gnu/packages/tex.scm
parentf0136b36ae8c1e9c174043bd50e0e24413c0f345 (diff)
parent49b350fafc2c3ea1db66461b73d4e304cd13ec92 (diff)
Merge branch 'staging' into core-updates.
Diffstat (limited to 'gnu/packages/tex.scm')
-rw-r--r--gnu/packages/tex.scm823
1 files changed, 540 insertions, 283 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e419917a80..1c8c1f61a8 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -337,13 +337,13 @@ files from LOCATIONS with expected checksum HASH. CODE is not currently in use.
"--with-system-teckit"
"--with-system-zlib"
"--with-system-zziplib"
- ;; LuaJIT is not ported to powerpc64le* yet.
- ,@(if (string-prefix? "powerpc64le" (or (%current-target-system)
- (%current-system)))
- '("--disable-luajittex"
- "--disable-luajithbtex"
- "--disable-mfluajit")
- '()))
+ ;; LuaJIT is not ported to some architectures yet.
+ ,@(if (or (target-ppc64le?)
+ (target-riscv64?))
+ '("--disable-luajittex"
+ "--disable-luajithbtex"
+ "--disable-mfluajit")
+ '()))
;; Disable tests on some architectures to cope with a failure of
;; luajiterr.test.
@@ -381,7 +381,8 @@ files from LOCATIONS with expected checksum HASH. CODE is not currently in use.
(substitute* "texk/web2c/omegafonts/check.test"
(("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
"./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))))
- ,@(if (target-ppc32?)
+ ,@(if (or (target-ppc32?)
+ (target-riscv64?))
;; Some mendex tests fail on some architectures.
`((add-after 'unpack 'skip-mendex-tests
(lambda _
@@ -435,6 +436,18 @@ files from LOCATIONS with expected checksum HASH. CODE is not currently in use.
(lambda _
(substitute* "texk/kpathsea/config.h"
(("#define ST_NLINK_TRICK") ""))))
+
+ ,@(if (target-arm32?)
+ `((add-after 'unpack 'skip-faulty-test
+ (lambda _
+ ;; Skip this faulty test on armhf-linux:
+ ;; https://issues.guix.gnu.org/54055
+ (substitute* '("texk/mendexk/tests/mendex.test"
+ "texk/upmendex/tests/upmendex.test")
+ (("^TEXMFCNF=" all)
+ (string-append "exit 77 # skip\n" all))))))
+ '())
+
(add-after 'check 'customize-texmf.cnf
;; The default texmf.cnf is provided by this package, texlive-bin.
;; Every variable of interest is set relatively to the GUIX_TEXMF
@@ -1430,11 +1443,12 @@ details can be found in the documentation.")
"/fonts/source/public/amsfonts/"
"/fonts/type1/public/amsfonts/"
"/fonts/afm/public/amsfonts/"
+ "/fonts/tfm/public/amsfonts/"
"/fonts/map/dvips/amsfonts/"
"/tex/plain/amsfonts/"
"/doc/fonts/amsfonts/")
(base32
- "15q70nkjf8wqzbd5ivcdx3i2sdgqxjb38q0qn9a2qw9i0qcnx6zw"))))
+ "1rpl87643q8v6gcqsz68mjha8wac6cqx7mr16ds8f0ccbw7a4w9b"))))
(package
(inherit template)
(arguments
@@ -1443,135 +1457,17 @@ details can be found in the documentation.")
'(list "amsfonts.ins"))
((#:tex-directory _ #t)
"latex/amsfonts")
- ((#:modules modules '())
- `((guix build texlive-build-system)
- (guix build utils)
- (ice-9 match)
- (srfi srfi-1)
- (srfi srfi-26)))
((#:phases phases)
`(modify-phases ,phases
- (add-before 'build 'build-fonts
- (lambda* (#:key inputs #:allow-other-keys)
- ;; Allow self fonts sources and other resources to be
- ;; discovered.
- (setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF")
- ":" (getcwd)))
-
- (let ((build "/tmp/build-fonts"))
- (mkdir-p build)
- (with-directory-excursion "fonts/source/public/amsfonts"
- (for-each (lambda (font)
- (format #t "building font ~a\n" (basename font ".mf"))
- (with-directory-excursion (dirname font)
- (let ((outdir (string-append build "/" (dirname font))))
- (mkdir-p outdir)
- (invoke "mf" "-progname=mf"
- (string-append "-output-directory=" outdir)
- (string-append "\\"
- "mode:=ljfour; "
- "mag:=1; "
- "nonstopmode; "
- "input "
- (getcwd) "/"
- (basename font ".mf"))))))
- (find-files "." "([0-9]+|dummy)\\.mf$"))))
-
- ;; There are no metafont sources for the Euler fonts, so we
- ;; convert the afm files instead.
- (let ((build "/tmp/build-fonts"))
- (mkdir-p build)
- (with-directory-excursion "fonts/afm/public/amsfonts/"
- ;; These files have bogus values for the Descender field,
- ;; so we can't process them.
- (substitute* (find-files "." "eus(b|m).*\\.afm$")
- (("^Descender -2147483648") ""))
-
- (for-each (lambda (font)
- (let ((directory (string-append build "/" (dirname font))))
- (mkdir-p directory)
- (format #t "converting afm font ~a\n" (basename font ".afm"))
- (invoke "afm2tfm" font
- (string-append directory "/"
- (basename font ".afm")
- ".tfm"))))
- (find-files "." "\\.afm$")))
-
- ;; Frustratingly, not all fonts can be created this way. To
- ;; generate eufm8.tfm, for example, we first scale down
- ;; eufm10.afm to eufm8.pl, and then generate the tfm file from
- ;; the pl file.
- (setenv "TEXINPUTS"
- (string-append ":" build "//:"
- (getcwd) "/fonts/afm/public/amsfonts//:"
- (getcwd) "/source/latex/amsfonts//:"))
-
- (with-directory-excursion (string-append build "/euler")
- (for-each (match-lambda
- (((target-base target-size)
- (source-base source-size))
- (let ((factor (number->string
- (truncate/ (* 1000 target-size)
- source-size))))
- (invoke "tex"
- "-interaction=scrollmode"
- (string-append "\\input fontinst.sty "
- "\\transformfont{" target-base "}"
- "{\\scalefont{" factor "}"
- "{\\fromafm{" source-base "}}} "
- "\\bye")))
- (invoke "pltotf"
- (string-append target-base ".pl")
- (string-append target-base ".tfm"))
- (delete-file (string-append target-base ".pl"))))
-
- '((("eufb6" 6) ("eufb7" 7))
- (("eufb8" 8) ("eufb10" 10))
- (("eufb9" 9) ("eufb10" 10))
-
- (("eufm6" 6) ("eufm7" 7))
- (("eufm8" 8) ("eufm10" 10))
- (("eufm9" 9) ("eufm10" 10))
-
- (("eurb6" 6) ("eurb7" 7))
- (("eurb8" 8) ("eurb10" 10))
- (("eurb9" 9) ("eurb10" 10))
-
- (("eurm6" 6) ("eurm7" 7))
- (("eurm8" 8) ("eurm10" 10))
- (("eurm9" 9) ("eurm10" 10))
-
- (("eusb6" 6) ("eusb7" 7))
- (("eusb8" 8) ("eusb10" 10))
- (("eusb9" 9) ("eusb10" 10))
-
- (("eusm6" 6) ("eusm7" 7))
- (("eusm8" 8) ("eusm10" 10))
- (("eusm9" 9) ("eusm10" 10))))))))
- (add-after 'install 'install-generated-fonts
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (copy-recursively "/tmp/build-fonts"
- (string-append
- (assoc-ref outputs "out")
- "/share/texmf-dist/fonts/tfm/public/amsfonts"))))
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/amsfonts")))
+ (add-before 'copy-files 'unchdir
+ (lambda _ (chdir "../../..")))
(add-after 'copy-files 'remove-extra-files
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((prefix (string-append
- (assoc-ref outputs "out")
- "/share/texmf-dist/fonts/")))
- (for-each delete-file
- (find-files (string-append prefix
- "tfm/public/amsfonts/")
- "\\.(mtx|pl|log|600gf)"))
- (for-each delete-file-recursively
- (list (string-append (assoc-ref outputs "out")
- "/share/texmf-dist/build/")
- (string-append prefix
- "tfm/public/amsfonts/cm/")
- (string-append prefix
- "tfm/public/amsfonts/latxfont/"))))))))))
- (native-inputs
- (list (texlive-updmap.cfg (list texlive-fontinst))))
+ (lambda* (#:key outputs #:allow-other-keys)
+ (delete-file-recursively
+ (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist/source/latex/amsfonts/build/"))))))))
(home-page "https://www.ctan.org/pkg/amsfonts")
(synopsis "TeX fonts from the American Mathematical Society")
(description
@@ -1685,6 +1581,26 @@ described in the TeXbook, together with various supporting files (some also
discussed in the book).")
(license license:knuth)))
+(define-public texlive-hardwrap
+ (package
+ (inherit (simple-texlive-package
+ "texlive-hardwrap"
+ (list "doc/latex/hardwrap/"
+ "tex/latex/hardwrap/"
+ "source/latex/hardwrap/")
+ (base32
+ "0ql3xml1ccll44q945n7w72p6d51y5wcrkawi7cg621gy5d6wzx5")
+ #:trivial? #t))
+ (home-page "https://ctan.org/macros/latex/contrib/hardwrap")
+ (synopsis "Hard wrap text to a certain character length")
+ (description
+ "The package facilitates wrapping text to a specific character width, breaking
+lines by words rather than, as done by TeX, by characters. The primary use for
+these facilities is to aid the generation of messages sent to the log file or
+console output to display messages to the user. Package authors may also find
+this useful when writing out arbitary text to an external file.")
+ (license license:lppl1.3+)))
+
(define-public texlive-helvetic
(package
(inherit (simple-texlive-package
@@ -2755,6 +2671,25 @@ patterns supporting a number of Cyrillic font encodings, including T2,
UCY (Omega Unicode Cyrillic), LCY, LWN (OT2), and koi8-r.")
(license license:lppl))))
+(define-public texlive-inputenx
+ (package
+ (inherit (simple-texlive-package
+ "texlive-inputenx"
+ (list "doc/latex/inputenx/"
+ "tex/latex/inputenx/"
+ "source/latex/inputenx/")
+ (base32
+ "0snjndrcynm4w8m9iq8gmadzhrbwvsdy4y1ak24ia0hpsicdi4aj")
+ #:trivial? #t))
+ (home-page "https://ctan.org/macros/latex/contrib/inputenx")
+ (synopsis "Enhanced input encoding handling")
+ (description
+ "This package deals with input encodings. It provides a wider range of input
+encodings using standard mappings, than does inputenc; it also covers nearly all
+slots. In this way, it serves as more uptodate replacement for package
+inputenc.")
+ (license license:lppl1.3+)))
+
(define-public texlive-kpathsea
(let ((template (simple-texlive-package
"texlive-kpathsea"
@@ -2816,6 +2751,35 @@ feature required for movable installations, layered on top of a general search
mechanism. This package provides supporting files.")
(license license:lgpl3+))))
+(define-public texlive-kpfonts
+ (package
+ (inherit (simple-texlive-package
+ "texlive-kpfonts"
+ (list "doc/fonts/kpfonts/"
+ "fonts/enc/dvips/kpfonts/"
+ "fonts/map/dvips/kpfonts/"
+ "fonts/tfm/public/kpfonts/"
+ "fonts/type1/public/kpfonts/"
+ "fonts/vf/public/kpfonts/"
+ "source/fonts/kpfonts/"
+ "tex/latex/kpfonts/")
+ (base32 "0inai1p9bbjd5x790nsamakjaj0imvwv21mp9f98dwvdlj58vkqb")
+ #:trivial? #t))
+ (home-page "https://ctan.org/fonts/kpfonts")
+ (synopsis "Complete set of fonts for text and mathematics")
+ (description
+ "The family contains text fonts in roman, sans-serif and monospaced
+shapes, with true small caps and old-style numbers; the package offers full
+support of the textcomp package. The mathematics fonts include all the AMS
+fonts, in both normal and bold weights. Each of the font types is available
+in two main versions: default and light. Each version is available in four
+variants: default; oldstyle numbers; oldstyle numbers with old ligatures such
+as ct and st, and long-tailed capital Q; and veryoldstyle with long s. Other
+variants include small caps as default or large small caps, and for
+mathematics both upright and slanted shapes for Greek letters, as well as
+default and narrow versions of multiple integrals.")
+ (license license:gpl3+)))
+
(define-public texlive-latexconfig
(package
(inherit (simple-texlive-package
@@ -2912,9 +2876,10 @@ formats.")
"platex-dev eptex" "uplatex-dev euptex"
"csplain pdftex" "mf mf-nowin" "mex pdftex" "pdfmex pdftex"
"luacsplain luatex" "optex luatex"
- ;; LuaJIT is not ported to powerpc64le* yet and
+ ;; LuaJIT is not ported to powerpc64le* or riscv64 yet and
;; building these fail on powerpc.
- ,@(if (target-powerpc?)
+ ,@(if (or (target-powerpc?)
+ (target-riscv64?))
'("luajittex" "luajithbtex" "mfluajit") '())
"cont-en xetex" "cont-en pdftex" "pdfcsplain xetex"
"pdfcsplain pdftex" "pdfcsplain luatex" "cslatex pdftex"
@@ -3322,6 +3287,23 @@ keyval, and lscape.")
(define-deprecated-package texlive-latex-graphics texlive-graphics)
+(define-public texlive-greek-fontenc
+ (package
+ (inherit (simple-texlive-package
+ "texlive-greek-fontenc"
+ (list "doc/latex/greek-fontenc/"
+ "tex/latex/greek-fontenc/"
+ "source/latex/greek-fontenc/")
+ (base32
+ "1ncsvj5mlnkgllrvqdnbkv0qwpv2y7jkq3x2wdmm7d3daqq0ka5h")
+ #:trivial? #t))
+ (home-page "https://ctan.org/language/greek/greek-fontenc")
+ (synopsis "LICR macros and encoding definition files for Greek")
+ (description
+ "The package provides Greek LICR macro definitions and encoding definition files
+for Greek text font encodings for use with fontenc.")
+ (license license:lppl1.3+)))
+
(define-public texlive-hycolor
(let ((template (simple-texlive-package
"texlive-hycolor"
@@ -4140,6 +4122,8 @@ loading fonts by their proper names instead of file names.")
(sha256
(base32
"172zybw7rp05jca8wl6x0mh6z6gncdyi1j9wdfyjnhbvqw0z4wi4"))))
+ ;; This package misses important files
+ (replacement texlive-amsmath)
(build-system texlive-build-system)
(arguments '(#:tex-directory "latex/amsmath"))
(home-page "https://www.ctan.org/pkg/amsmath")
@@ -4158,6 +4142,51 @@ mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
definitions.")
(license license:lppl1.3c+)))
+(define-public texlive-amsmath
+ (let ((template (simple-texlive-package
+ "texlive-amsmath"
+ (list "/doc/latex/amsmath/"
+ "/source/latex/amsmath/"
+ ;; These two files are not generated from any of the
+ ;; dtx/ins files.
+ "/tex/latex/amsmath/amsmath-2018-12-01.sty"
+ "/tex/latex/amsmath/amstex.sty")
+ (base32
+ "0gmdzhgr0h57xhsl61c5jsp4fj4pbmdr8p6k96am5jbyrbbx121q"))))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ #t)
+ "latex/amsmath")
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/amsmath/")))
+ (add-before 'copy-files 'unchdir
+ (lambda _
+ (chdir "../../..")))
+ (add-after 'copy-files 'delete-extra-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (delete-file-recursively
+ (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist/source/latex/amsmath/build"))))))))
+ (home-page "https://www.ctan.org/pkg/amsmath")
+ (synopsis "AMS mathematical facilities for LaTeX")
+ (description
+ "This is the principal package in the AMS-LaTeX distribution. It adapts
+for use in LaTeX most of the mathematical features found in AMS-TeX; it is
+highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
+When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
+symbols), @code{amsopnamsopn} (for operator names) and
+@code{amstextamstext} (for text embedded in mathematics) are also loaded.
+This package is part of the LaTeX required distribution; however, several
+contributed packages add still further to its appeal; examples are
+@code{empheqempheq}, which provides functions for decorating and highlighting
+mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
+definitions.")
+ (license license:lppl1.3c+))))
+
(define-public texlive-amscls
(let ((template (simple-texlive-package
"texlive-amscls"
@@ -4198,6 +4227,8 @@ distribution.")
"0qr5vjp79g1c1l6k173qhfdfabgbky73wymzhm56pazx4a8r08wz"))))
(package
(inherit template)
+ ;; TODO: This package is missing files.
+ (replacement texlive-babel/fixed)
(arguments
(substitute-keyword-arguments (package-arguments template)
((#:tex-directory _ #t)
@@ -4235,6 +4266,29 @@ what has to be done for each language. Users of XeTeX are advised to use the
polyglossia package rather than Babel.")
(license license:lppl1.3+))))
+(define-public texlive-babel/fixed
+ (package
+ (inherit texlive-babel)
+ (name "texlive-babel-fixed")
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-babel)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'copy-files 'unchdir
+ (lambda _
+ (chdir "../../..")))
+ (add-after 'copy-files 'delete-extra-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (delete-file-recursively
+ (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist/source/latex/babel/build"))
+ (delete-file
+ (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist/tex/generic/babel/bbind.ist"))
+ (delete-file
+ (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist/tex/generic/babel/bbglo.ist"))))))))))
+
(define-deprecated-package texlive-latex-babel texlive-babel)
(define-public texlive-generic-babel-english
@@ -4259,25 +4313,46 @@ for British English and Australian text, and default (\"american\") patterns
for Canadian and USA text.")
(license license:lppl1.3+)))
-(define-public texlive-generic-babel-french
- (package
- (name "texlive-generic-babel-french")
- (version (number->string %texlive-revision))
- (source
- (origin
- (method svn-fetch)
- (uri (texlive-ref "generic" "babel-french"))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32 "0ww8bkbccacdyp2y3p2m1y49zxx5pyh7dyyyyfmlzfm6w9rz0g1g"))))
- (build-system texlive-build-system)
- (arguments '(#:tex-directory "generic/babel-french"))
- (home-page "https://www.ctan.org/pkg/babel-french")
- (synopsis "Babel support for French")
- (description
- "This package provides support for the French language for the
-babel multilingual system.")
- (license license:lppl1.3+)))
+(define-public texlive-babel-french
+ (let ((template
+ (simple-texlive-package
+ "texlive-babel-french"
+ (list "doc/generic/babel-french/"
+ "source/generic/babel-french/"
+ "tex/generic/babel-french/")
+ (base32 "0cgn4dq5wnlfh9wddjzxsf7p56pk29lyndg56zg6558y7xf67cw8"))))
+ (package
+ (inherit template)
+ (outputs '("out" "doc"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ '())
+ "generic/babel-french")
+ ((#:build-targets _ '())
+ ;; TODO: use dtx and build documentation.
+ '(list "frenchb.ins"))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/generic/babel-french")))
+ (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://ctan.org/macros/latex/contrib/babel-contrib/french")
+ (synopsis "Babel contributed support for French")
+ (description
+ "The package, formerly known as frenchb, establishes French conventions
+in a document (or a subset of the conventions, if French is not the main
+language of the document).")
+ (license license:lppl1.3+))))
+
+(define-deprecated-package texlive-generic-babel-french texlive-babel-french)
(define-public texlive-generic-babel-german
(package
@@ -4448,6 +4523,8 @@ language that is written in a Cyrillic alphabet.")
"11f14dzhwsy4pli21acccip43d36nf3pac33ihjffnps1i2mhqkd"))))
(package
(inherit template)
+ ;; TODO: This package is missing files.
+ (replacement texlive-psnfss/fixed)
(arguments
(substitute-keyword-arguments (package-arguments template)
((#:tex-directory _ #t)
@@ -4475,6 +4552,23 @@ means to select single glyphs from symbol fonts. The bundle as a whole is
part of the LaTeX required set of packages.")
(license license:lppl1.2+))))
+(define-public texlive-psnfss/fixed
+ (package
+ (inherit texlive-psnfss)
+ (name "texlive-psnfss-fixed")
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-psnfss)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'copy-files 'unchdir
+ (lambda _
+ (chdir "../../..")))
+ (add-after 'copy-files 'delete-extra-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (delete-file-recursively
+ (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist/source/latex/psnfss/build"))))))))))
+
(define-deprecated-package texlive-latex-psnfss texlive-psnfss)
;; For user profiles
@@ -4524,6 +4618,18 @@ It includes little more than the required set of LaTeX packages.")
'()
default-packages)))))
+(define-public texlive-default-updmap.cfg
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://tug.org/svn/texlive/tags/"
+ %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg"
+ "?revision=" (number->string %texlive-revision)))
+ (file-name (string-append "updmap.cfg-"
+ (number->string %texlive-revision)))
+ (sha256
+ (base32
+ "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c"))))
+
;;; TODO: Add a TeX Live profile hook computing fonts maps (and others?)
;;; configuration from the packages in the profile, similar to what's done
;;; below.
@@ -5251,37 +5357,76 @@ both); or to remove surrounding spaces within a macro definition, or to define
space-stripped macros.")
(license license:lppl)))
-(define-public texlive-latex-capt-of
+(define-public texlive-calrsfs
(package
- (name "texlive-latex-capt-of")
- (version (number->string %texlive-revision))
- (source (origin
- (method svn-fetch)
- (uri (svn-reference
- (url (string-append "svn://www.tug.org/texlive/tags/"
- %texlive-tag "/Master/texmf-dist/"
- "/tex/latex/capt-of"))
- (revision %texlive-revision)))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32
- "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let ((target (string-append (assoc-ref %outputs "out")
- "/share/texmf-dist/tex/latex/capt-of")))
- (mkdir-p target)
- (copy-recursively (assoc-ref %build-inputs "source") target)
- #t))))
- (home-page "https://www.ctan.org/pkg/capt-of")
- (synopsis "Captions on more than floats")
- (description
- "This package defines a command @code{\\captionof} for putting a caption
+ (inherit
+ (simple-texlive-package
+ "texlive-calrsfs"
+ (list "doc/latex/calrsfs/" "tex/latex/calrsfs/")
+ (base32 "0aqa0k0zzzicx5nynd29i9pdb7a4j6fvf1xwrbm4qg64pl55i6xa")
+ #:trivial? #t))
+ (home-page "https://ctan.org/macros/latex/contrib/calrsfs")
+ (synopsis "Copperplate calligraphic letters in LaTeX")
+ (description "This package provides a math interface to the Rsfs fonts.")
+ (license license:public-domain)))
+
+(define-public texlive-capt-of
+ (let ((template
+ (simple-texlive-package
+ "texlive-capt-of"
+ (list "doc/latex/capt-of/"
+ "source/latex/capt-of/"
+ "tex/latex/capt-of/")
+ (base32 "0bf0cdd9ca3kkqxqqkq6jalh5ybs60l80l5gfkl2whk2v4bnzfvz"))))
+ (package
+ (inherit template)
+ (outputs '("out" "doc"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ '())
+ "latex/capt-of")
+ ((#:build-targets _ '())
+ '(list "capt-of.ins"))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "source/latex/capt-of")))
+ (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/capt-of")
+ (synopsis "Captions on more than floats")
+ (description
+ "This package defines a command @code{\\captionof} for putting a caption
to something that's not a float.")
+ (license license:lppl))))
+
+(define-deprecated-package texlive-latex-capt-of texlive-capt-of)
+
+(define-public texlive-carlisle
+ (package
+ (inherit (simple-texlive-package
+ "texlive-carlisle"
+ (list "doc/latex/carlisle/"
+ "source/latex/carlisle/"
+ "tex/latex/carlisle/")
+ (base32 "139k4n8dv6pbal1mx4m8b239x3i9cw61f6digk9mxscbxwvxfngb")
+ #:trivial? #t))
+ (home-page "https://ctan.org/macros/latex/contrib/carlisle")
+ (synopsis "David Carlisle's small packages")
+ (description
+ "Many of David Carlisle's more substantial packages stand on their own,
+or as part of the LaTeX latex-tools set; this set contains: making dotless
+@emph{j} characters for fonts that don't have them; a method for combining the
+capabilities of longtable and tabularx; an environment for including plain TeX
+in LaTeX documents; a jiffy to create slashed characters for physicists.")
(license license:lppl)))
(define-public texlive-doi
@@ -5607,6 +5752,33 @@ other programs in the distribution offer online interactive use (with
hypertext linkages in some cases).")
(license license:gpl3+)))
+(define-public texlive-textcase
+ (package
+ (inherit (simple-texlive-package
+ "texlive-textcase"
+ (list "doc/latex/textcase/"
+ "tex/latex/textcase/"
+ "source/latex/textcase/")
+ (base32
+ "185fibd41wd0v51gnai29ygi32snkk00p00110kcnk1bcnmpiw82")
+ #:trivial? #t))
+ (home-page "https://ctan.org/macros/latex/contrib/textcase")
+ (synopsis "Case conversion ignoring mathematics, etc")
+ (description
+ "The textcase package offers commands @code{\\MakeTextUppercase} and
+@code{\\MakeTextLowercase} are similar to the standard @code{\\MakeUppercase}
+and @code{\\MakeLowercase}, but they do not change the case of any sections of
+mathematics, or the arguments of @code{\\cite}, @code{\\label} and
+@code{\\ref} commands within the argument. A further command
+@code{\\NoCaseChange} does nothing but suppress case change within its
+argument, so to force uppercase of a section including an environment, one
+might say:
+
+@example
+\\MakeTextUppercase{...\\NoCaseChange{\\begin{foo}} ...\\NoCaseChange{\\end{foo}}...}
+@end example\n")
+ (license license:lppl)))
+
(define-public texlive-latex-upquote
(package
(name "texlive-latex-upquote")
@@ -5993,6 +6165,9 @@ styles. Support for @code{hyperref} is provided.")
(define-deprecated-package texlive-latex-listings texlive-listings)
+(define-public texlive-latex-listings
+ (deprecated-package "texlive-latex-listings" texlive-listings))
+
(define-public texlive-latex-jknapltx
(package
(name "texlive-latex-jknapltx")
@@ -6444,32 +6619,14 @@ splines, and filled circles and ellipses. The package uses @code{tpic}
@code{\\special} commands.")
(license license:public-domain)))
-(define-public texlive-latex-enumitem
+(define-public texlive-enumitem
(package
- (name "texlive-latex-enumitem")
- (version (number->string %texlive-revision))
- (source (origin
- (method svn-fetch)
- (uri (svn-reference
- (url (string-append "svn://www.tug.org/texlive/tags/"
- %texlive-tag "/Master/texmf-dist/"
- "/tex/latex/enumitem"))
- (revision %texlive-revision)))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32
- "1j8svflnx9w897mdavyf1f0n256wh4bbclrhv5vx7b501gmlbp7d"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let ((target (string-append (assoc-ref %outputs "out")
- "/share/texmf-dist/tex/latex/enumitem")))
- (mkdir-p target)
- (copy-recursively (assoc-ref %build-inputs "source") target)
- #t))))
+ (inherit
+ (simple-texlive-package
+ "texlive-enumitem"
+ (list "doc/latex/enumitem/" "tex/latex/enumitem/")
+ (base32 "0qwbyjb4a82qjxrfmz06v3w5vly75id4ix4sw7lz2az68kz080dv")
+ #:trivial? #t))
(home-page "https://www.ctan.org/pkg/enumitem")
(synopsis "Customize basic list environments")
(description
@@ -6480,6 +6637,8 @@ in the form @code{key=value} are available, for example:
@code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
(license license:lppl1.3+)))
+(define-deprecated-package texlive-latex-enumitem texlive-enumitem)
+
(define-public texlive-latex-multirow
(package
(name "texlive-latex-multirow")
@@ -6631,6 +6790,8 @@ use this package to insert PostScript files, in addition to PDF files.")
"0yn0yl6x1z9ab5gb56lhvkqabd2agz3ggxifwxkiysrj5780j29z"))))
(package
(inherit template)
+ ;; TODO: This package is missing files.
+ (replacement texlive-stmaryrd/fixed)
(arguments (substitute-keyword-arguments (package-arguments template)
((#:tex-directory _ #t)
"latex/stmaryrd")
@@ -6657,6 +6818,25 @@ use under LaTeX; the package supports the @code{only} option (provided by the
the whole font.")
(license license:lppl))))
+(define-public texlive-stmaryrd/fixed
+ (package
+ (inherit texlive-stmaryrd)
+ (name "texlive-stmaryrd-fixed")
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-stmaryrd)
+ ((#:tex-directory _ #t)
+ "latex/stmaryrd")
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'copy-files 'unchdir
+ (lambda _
+ (chdir "../../..")))
+ (add-after 'copy-files 'delete-extra-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (delete-file-recursively
+ (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist/source/fonts/stmaryrd/build"))))))))))
+
(define-deprecated-package texlive-fonts-stmaryrd texlive-stmaryrd)
(define-public texlive-subfigure
@@ -6956,14 +7136,14 @@ Simple Young tableaux.
;; The t1cmr.fd file of texlive-latex-base refers to the ecrm font,
;; provided by the jknappen package collection.
texlive-jknappen
- texlive-generic-ulem
texlive-hyperref
texlive-latex-colortbl
texlive-fancyhdr
texlive-graphics ;for color.sty
texlive-tools ;for array.sty
texlive-marvosym
- texlive-tex-ini-files)) ;for pdftexconfig
+ texlive-tex-ini-files ;for pdftexconfig
+ texlive-ulem))
(home-page "https://www.ctan.org/pkg/jadetex/")
(synopsis "TeX macros to produce TeX output using OpenJade")
(description "JadeTeX is a companion package to the OpenJade DSSSL
@@ -7252,6 +7432,21 @@ Association for Computing Machinery (ACM).")
get a narrower “natural” width.")
(license license:lppl)))
+(define-public texlive-varwidth
+ (package
+ (inherit (simple-texlive-package
+ "texlive-varwidth"
+ (list "doc/latex/varwidth/" "tex/latex/varwidth/")
+ (base32 "0jcrv4klcjpl17ml0zyqfvkrq6qwn2imxv8syqs5m6qk0fk7hg6l")
+ #:trivial? #t))
+ (home-page "https://ctan.org/macros/latex/contrib/varwidth")
+ (synopsis "Variable-width minipage LaTeX environment")
+ (description
+ "The varwidth environment is superficially similar to minipage, but the
+specified width is just a maximum value --- the box may get a narrower natural
+width.")
+ (license license:lppl)))
+
(define-public texlive-wasy
(package
(inherit (simple-texlive-package
@@ -7294,33 +7489,15 @@ implements an easy to use interface for these symbols.")
(define-deprecated-package texlive-latex-wasysym texlive-wasysym)
-(define-public texlive-latex-wrapfig
+(define-public texlive-wrapfig
(package
- (name "texlive-latex-wrapfig")
- (version (number->string %texlive-revision))
- (source (origin
- (method svn-fetch)
- (uri (svn-reference
- (url (string-append "svn://www.tug.org/texlive/tags/"
- %texlive-tag "/Master/texmf-dist/"
- "/tex/latex/wrapfig"))
- (revision %texlive-revision)))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32
- "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let ((target (string-append (assoc-ref %outputs "out")
- "/share/texmf-dist/tex/latex/wrapfig")))
- (mkdir-p target)
- (copy-recursively (assoc-ref %build-inputs "source") target)
- #t))))
- (home-page "https://www.ctan.org/pkg/wrapfig")
+ (inherit
+ (simple-texlive-package
+ "texlive-wrapfig"
+ (list "doc/latex/wrapfig/" "tex/latex/wrapfig/")
+ (base32 "0wk1vp0dqsp597xzsqbwj8xk80v7d77qmpjir84n54f920rf9ka9")
+ #:trivial? #t))
+ (home-page "https://ctan.org/macros/latex/contrib/wrapfig")
(synopsis "Produces figures which text can flow around")
(description
"This package allows figures or tables to have text wrapped around them.
@@ -7328,6 +7505,8 @@ It does not work in combination with list environments, but can be used in a
@code{parbox} or @code{minipage}, and in two-column format.")
(license license:lppl)))
+(define-deprecated-package texlive-latex-wrapfig texlive-wrapfig)
+
(define-public texlive-latex-ucs
(package
(name "texlive-latex-ucs")
@@ -7792,7 +7971,7 @@ PDF documents.")
(string-append "METAINFODIR=" out "/share/metainfo")
"texmaker.pro")))))))
(inputs
- (list poppler-qt5 qtbase-5 qtscript qtwebkit zlib))
+ (list poppler-qt5 qtbase-5 qtscript zlib))
(native-inputs
(list pkg-config))
(home-page "http://www.xm1math.net/texmaker/")
@@ -8034,23 +8213,41 @@ typeset the table of contents in multiple columns.")
(define-deprecated-package texlive-latex-ms texlive-ms)
-(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
+(define-public texlive-numprint
+ (let ((template
+ (simple-texlive-package
+ "texlive-numprint"
+ (list "doc/latex/numprint/"
+ "source/latex/numprint/"
+ "tex/latex/numprint/")
+ (base32 "1rqbqj4ffcfxxxxbs100pdslaiimwzgg19mf2qzcmm5snxwrf7zj"))))
+ (package
+ (inherit template)
+ (outputs '("out" "doc"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ '())
+ "latex/numprint")
+ ((#:build-targets _ '())
+ '(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
10^{789}. Numbers are printed in the current mode (text or math) in
order to use the correct font.
@@ -8067,7 +8264,9 @@ 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)))
+ (license license:lppl))))
+
+(define-deprecated-package texlive-latex-numprint texlive-numprint)
(define-public texlive-latex-needspace
(package
@@ -8157,33 +8356,13 @@ is preferred in many parts of the world, as distinct from that which is used in
@code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
(license license:lppl)))
-(define-public texlive-generic-ulem
+(define-public texlive-ulem
(package
- (name "texlive-generic-ulem")
- (version (number->string %texlive-revision))
- (source
- (origin
- (method svn-fetch)
- (uri (svn-reference
- (url (string-append "svn://www.tug.org/texlive/tags/"
- %texlive-tag "/Master/texmf-dist/"
- "/tex/generic/ulem"))
- (revision %texlive-revision)))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32
- "161ka7sckiakcr1fgydxpc580sr16vp4sp3avjl2v9jn1pd2pwp0"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let ((target (string-append (assoc-ref %outputs "out")
- "/share/texmf-dist/tex/generic/ulem")))
- (mkdir-p target)
- (copy-recursively (assoc-ref %build-inputs "source") target)
- #t))))
+ (inherit (simple-texlive-package
+ "texlive-ulem"
+ (list "doc/generic/ulem/" "tex/generic/ulem/")
+ (base32 "0wcfnw5h6lsg2ilvkkf7mns8jgcn0n5sh45iznfsb49pfb4mming")
+ #:trivial? #t))
(home-page "https://www.ctan.org/pkg/ulem")
(synopsis "Underline text in TeX")
(description
@@ -8246,6 +8425,9 @@ pstricks, it can produce either PostScript or PDF output.")
(define-deprecated-package texlive-latex-pgf texlive-pgf)
+(define-public texlive-latex-pgf
+ (deprecated-package "texlive-latex-pgf" texlive-pgf))
+
(define-public texlive-latex-koma-script
(package
(name "texlive-latex-koma-script")
@@ -9380,6 +9562,81 @@ LuaTeX (respectively) is not the engine in use.")
(define-deprecated-package texlive-generic-ifxetex texlive-iftex)
+(define-public texlive-tabu
+ (let ((template
+ (simple-texlive-package
+ "texlive-tabu"
+ (list "doc/latex/tabu/"
+ "source/latex/tabu/"
+ "tex/latex/tabu/")
+ (base32 "0mixyrqavipq4ni38z42x3579cdjbz54cp2qqb4q4yhfbl0a4pka"))))
+ (package
+ (inherit template)
+ (outputs '("out" "doc"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ '())
+ "latex/tabu")
+ ((#:build-targets _ '())
+ '(list "tabu.dtx"))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/tabu")))
+ (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))))))))
+ (propagated-inputs (list texlive-varwidth))
+ (home-page "https://ctan.org/macros/latex/contrib/tabu")
+ (synopsis "Flexible LaTeX tabulars")
+ (description
+ "The package provides an environment, tabu, which will make any sort of
+tabular, and an environment longtabu which provides the facilities of tabu in
+a modified longtable environment. The package requires array, xcolor for
+coloured rules in tables, and colortbl for coloured cells. The longtabu
+environment further requires that longtable be loaded. The package itself
+does not load any of these packages for the user. The tabu environment may be
+used in place of @code{tabular}, @code{tabular*} and @code{tabularx}
+environments, as well as the @code{array} environment in maths mode.")
+ (license license:lppl1.3+))))
+
+(define-public texlive-tools
+ (let ((template (simple-texlive-package
+ "texlive-tools"
+ (list "/doc/latex/tools/"
+ "/source/latex/tools/")
+ (base32
+ "1xas0b69r3d5x4zhcqysgybyqaikd9avv6r1bdckb947id3iaz58"))))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ '())
+ "latex/tools")
+ ((#:build-targets _ '())
+ ''("tools.ins"))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/tools") #t))))))
+ (home-page "https://www.ctan.org/tex-archive/macros/latex/required/tools/")
+ (synopsis "LaTeX standard tools bundle")
+ (description "This package provides a collection of simple tools that
+are part of the LaTeX required tools distribution, comprising the packages:
+@code{afterpage}, @code{array}, @code{bm}, @code{calc}, @code{dcolumn},
+@code{delarray}, @code{enumerate}, @code{fileerr}, @code{fontsmpl},
+@code{ftnright}, @code{hhline}, @code{indentfirst}, @code{layout},
+@code{longtable}, @code{multicol}, @code{rawfonts}, @code{showkeys},
+@code{somedefs}, @code{tabularx}, @code{theorem}, @code{trace},
+@code{varioref}, @code{verbatim}, @code{xr}, and @code{xspace}.")
+ (license license:lppl1.3+))))
+
(define-public texlive-latex-xkeyval
(package
(name "texlive-latex-xkeyval")