1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016, 2022 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
6 ;;; Copyright © 2016, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
8 ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
9 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
10 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
11 ;;; Copyright © 2017, 2020, 2021 Marius Bakke <marius@gnu.org>
12 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
13 ;;; Copyright © 2018 Danny Milosavljevic <dannym+a@scratchpost.org>
14 ;;; Copyright © 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
15 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
16 ;;; Copyright © 2020, 2021 Paul Garlick <pgarlick@tourbillion-technology.com>
17 ;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
18 ;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
19 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
20 ;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
21 ;;; Copyright © 2021 Julien Lepiller <julien@lepiller.eu>
22 ;;; Copyright © 2021 Thiago Jung Bauermann <bauermann@kolabnow.com>
23 ;;; Copyright © 2022 Jack Hill <jackhill@jackhill.us>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages tex)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (guix gexp)
43 #:use-module (guix packages)
44 #:use-module (guix download)
45 #:use-module (guix build-system copy)
46 #:use-module (guix build-system gnu)
47 #:use-module (guix build-system perl)
48 #:use-module (guix build-system python)
49 #:use-module (guix build-system qt)
50 #:use-module (guix build-system trivial)
51 #:use-module (guix build-system texlive)
52 #:use-module (guix utils)
53 #:use-module (guix deprecation)
54 #:use-module (guix gexp)
55 #:use-module (guix git-download)
56 #:use-module (guix svn-download)
57 #:use-module (gnu packages)
58 #:use-module (gnu packages algebra)
59 #:use-module (gnu packages autotools)
60 #:use-module (gnu packages bash)
61 #:use-module (gnu packages boost)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages lisp)
64 #:use-module (gnu packages fonts)
65 #:use-module (gnu packages fontutils)
66 #:use-module (gnu packages gd)
67 #:use-module (gnu packages ghostscript)
68 #:use-module (gnu packages graphviz)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages icu4c)
71 #:use-module (gnu packages image)
72 #:use-module (gnu packages libreoffice)
73 #:use-module (gnu packages lua)
74 #:use-module (gnu packages multiprecision)
75 #:use-module (gnu packages pdf)
76 #:use-module (gnu packages perl)
77 #:use-module (gnu packages perl-check)
78 #:use-module (gnu packages pkg-config)
79 #:use-module (gnu packages python)
80 #:use-module (gnu packages python-xyz)
81 #:use-module (gnu packages qt)
82 #:use-module (gnu packages ruby)
83 #:use-module (gnu packages shells)
84 #:use-module (gnu packages base)
85 #:use-module (gnu packages gawk)
86 #:use-module (gnu packages web)
87 #:use-module (gnu packages xml)
88 #:use-module (gnu packages xorg)
89 #:use-module (gnu packages xdisorg)
90 #:use-module (gnu packages texinfo)
91 #:use-module (ice-9 ftw)
92 #:use-module (ice-9 match)
93 #:use-module ((srfi srfi-1) #:hide (zip)))
95 (define* (simple-texlive-package name locations hash
97 "Return a template for a simple TeX Live package with the given NAME,
98 downloading from a list of LOCATIONS in the TeX Live repository, and expecting
99 the provided output HASH. If TRIVIAL? is provided, all files will simply be
100 copied to their outputs; otherwise the TEXLIVE-BUILD-SYSTEM is used."
101 (define with-documentation?
103 (any (lambda (location)
104 (string-prefix? "/doc" location))
108 (version (number->string %texlive-revision))
109 (source (texlive-origin name version
111 (outputs (if with-documentation?
114 (build-system (if trivial?
116 texlive-build-system))
119 `(lambda* (#:key outputs inputs #:allow-other-keys)
120 (let (,@(if with-documentation?
121 `((doc (string-append (assoc-ref outputs "doc")
122 "/share/texmf-dist/")))
124 (out (string-append (assoc-ref outputs "out")
125 "/share/texmf-dist/")))
126 ,@(if with-documentation?
129 (string-append (assoc-ref inputs "source") "/doc")
130 (string-append doc "/doc")))
133 (copy-recursively "." out)
134 ,@(if with-documentation?
135 '((delete-file-recursively (string-append out "/doc")))
141 (modify-phases %standard-phases
143 (replace 'build (const #t))
144 (replace 'install ,copy-files)))
146 (modify-phases %standard-phases
147 (add-after 'install 'copy-files ,copy-files))))))
153 (define hyph-utf8-scripts
156 (uri (texlive-ref "generic" "hyph-utf8"))
157 (file-name (string-append "hyph-utf8-scripts-"
158 (number->string %texlive-revision)
162 "04xzf5gr3ylyh3ls09imrx4mwq3qp1k97r9njzlan6hlff875rx2"))))
164 (define (texlive-hyphen-package name code locations hash)
165 "Return a TeX Live hyphenation package with the given NAME, using source
166 files from LOCATIONS with expected checksum HASH. CODE is not currently in use."
167 (let ((parent (simple-texlive-package
168 name locations hash #:trivial? #t)))
172 (substitute-keyword-arguments (package-arguments parent)
174 `(modify-phases ,phases
176 (lambda* (#:key inputs outputs #:allow-other-keys)
177 (let* ((out (assoc-ref outputs "out"))
178 (root (string-append out "/share/texmf-dist"))
180 (string-append root "/tex/generic/hyph-utf8/patterns/txt/"))
182 (string-append root "/tex/generic/hyph-utf8/loadhyph"))
184 (string-append root "/tex/generic/hyph-utf8/patterns/ptex"))
186 (string-append root "/tex/generic/hyph-utf8/patterns/quote")))
189 (assoc-ref inputs "hyph-utf8-scripts") "scripts")
191 ;; Prepare target directories
197 ;; Generate plain patterns
198 (with-directory-excursion "scripts"
199 (substitute* "lib/tex/hyphen/path.rb"
200 (("^([[:blank:]]+)TeXROOT = .*" _ indent)
201 (string-append indent "TeXROOT = \""
202 (getcwd) "/..\"\n")))
204 (substitute* "generate-plain-patterns.rb"
205 ;; Ruby 2 does not need this.
206 (("require 'unicode'") "")
207 ;; Write directly to the output directory
208 (("File\\.join\\(PATH::TXT")
209 (string-append "File.join(\"" patterns "\""))
210 (("File\\.join\\(PATH::QUOTE")
211 (string-append "File.join(\"" quote "\"")))
212 (invoke "ruby" "generate-plain-patterns.rb")
214 ;; Build pattern loaders
215 (substitute* "generate-pattern-loaders.rb"
216 (("File\\.join\\(PATH::LOADER")
217 (string-append "File.join(\"" loaders "\"")))
219 (invoke "ruby" "generate-pattern-loaders.rb")
221 ;; Build ptex patterns
222 (substitute* "generate-ptex-patterns.rb"
223 (("File\\.join\\(PATH::PTEX")
224 (string-append "File.join(\"" ptex "\"")))
225 (invoke "ruby" "generate-ptex-patterns.rb")))))))))
228 ("ruby-hydra" ,ruby-hydra)
229 ("hyph-utf8-scripts" ,hyph-utf8-scripts)))
230 (home-page "https://ctan.org/pkg/hyph-utf8"))))
232 (define texlive-extra-src
235 (uri "ftp://tug.org/historic/systems/texlive/2021/texlive-20210325-extra.tar.xz")
237 "171kg1n9zapw3d2g47d8l0cywa99bl9m54xkqvp9625ks22z78s6"))))
239 (define texlive-texmf-src
242 (uri "ftp://tug.org/historic/systems/texlive/2021/texlive-20210325-texmf.tar.xz")
244 "070gczcm1h9rx29w2f02xd3nhd84c4k28nfmm8qgp69yq8vd84pz"))))
246 (define-public texlive-bin
253 (uri (string-append "ftp://tug.org/historic/systems/texlive/2021/"
254 "texlive-" version "-source.tar.xz"))
257 "0jsq1p66l46k2qq0gbqmx25flj2nprsz4wrd1ybn286p11kdkvvs"))
258 (modules '((guix build utils)
261 ;; TODO: Unbundle stuff in texk/dvisvgm/dvisvgm-src/libs too.
262 '(with-directory-excursion "libs"
263 (let ((preserved-directories '("." ".." "lua53" "luajit" "pplib" "xpdf")))
264 ;; Delete bundled software, except Lua which cannot easily be
265 ;; used as an external dependency, pplib and xpdf which aren't
266 ;; supported as system libraries (see m4/kpse-xpdf-flags.m4).
267 (for-each delete-file-recursively
270 (and (not (member file preserved-directories))
271 (eq? 'directory (stat:type (stat file))))))))))))
272 (build-system gnu-build-system)
274 `(("texlive-extra-src" ,texlive-extra-src)
280 (url (string-append "svn://www.tug.org/texlive/tags/"
281 %texlive-tag "/Master/texmf-dist/"
283 (revision %texlive-revision)))
284 (file-name (string-append "texlive-scripts-"
285 (number->string %texlive-revision)
289 "10xpa4nnz1biap7qfv7fb0zk6132ki5g1j8w0bqwkggfncdfl07d"))))
291 ("fontconfig" ,fontconfig)
292 ("fontforge" ,fontforge)
293 ("freetype" ,freetype)
296 ("ghostscript" ,ghostscript)
297 ("graphite2" ,graphite2)
298 ("harfbuzz" ,harfbuzz)
300 ("libpaper" ,libpaper)
313 ("zziplib" ,zziplib)))
317 `(#:modules ((guix build gnu-build-system)
325 "--disable-native-texlive-build"
327 "--with-banner-add=/GNU Guix"
328 "--with-system-cairo"
329 "--with-system-freetype2"
332 "--with-system-graphite2"
333 "--with-system-harfbuzz"
335 "--with-system-libgs"
336 "--with-system-libpaper"
337 "--with-system-libpng"
339 "--with-system-pixman"
340 "--with-system-potrace"
341 "--with-system-teckit"
343 "--with-system-zziplib"
344 ;; LuaJIT is not ported to some architectures yet.
345 ,@(if (or (target-ppc64le?)
347 '("--disable-luajittex"
348 "--disable-luajithbtex"
349 "--disable-mfluajit")
352 ;; Disable tests on some architectures to cope with a failure of
354 ;; XXX FIXME fix luajit properly on these architectures.
355 #:tests? ,(let ((s (or (%current-target-system)
357 (not (or (string-prefix? "aarch64" s)
358 (string-prefix? "mips64" s)
359 (string-prefix? "powerpc64le" s))))
362 (modify-phases %standard-phases
363 (add-after 'unpack 'configure-ghostscript-executable
364 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
365 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
366 ;; checking for the existence of the /usr/bin directory. Since
367 ;; Guix System does not have /usr/bin, it is also detected as Windows.
368 (lambda* (#:key inputs #:allow-other-keys)
369 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
371 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
373 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))))
374 (add-after 'unpack 'patch-dvisvgm-build-files
376 ;; XXX: Ghostscript is detected, but HAVE_LIBGS is never set, so
377 ;; the appropriate linker flags are not added.
378 (substitute* "texk/dvisvgm/configure"
379 (("^have_libgs=yes" all)
380 (string-append all "\nHAVE_LIBGS=1")))))
381 (add-after 'unpack 'disable-failing-test
383 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
384 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
385 (substitute* "texk/web2c/omegafonts/check.test"
386 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
387 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))))
388 ,@(if (or (target-ppc32?)
390 ;; Some mendex tests fail on some architectures.
391 `((add-after 'unpack 'skip-mendex-tests
393 (substitute* '("texk/mendexk/tests/mendex.test"
394 "texk/upmendex/tests/upmendex.test")
395 (("srcdir/tests/pprecA-0.ind pprecA-0.ind1 \\|\\| exit 1")
396 "srcdir/tests/pprecA-0.ind pprecA-0.ind1 || exit 77")))))
398 (add-after 'unpack 'unpack-texlive-extra
399 (lambda* (#:key inputs #:allow-other-keys)
400 (mkdir "texlive-extra")
401 (with-directory-excursion "texlive-extra"
402 (apply (assoc-ref %standard-phases 'unpack)
403 (list #:source (assoc-ref inputs "texlive-extra-src"))))))
404 (add-after 'unpack-texlive-extra 'unpack-texlive-scripts
405 (lambda* (#:key inputs #:allow-other-keys)
406 (mkdir "texlive-scripts")
407 (with-directory-excursion "texlive-scripts"
408 (apply (assoc-ref %standard-phases 'unpack)
409 (list #:source (assoc-ref inputs "texlive-scripts"))))))
410 (add-after 'unpack-texlive-scripts 'patch-scripts
412 (let* ((scripts (append (find-files "texk/kpathsea" "^mktex")
413 (find-files "texk/texlive/linked_scripts"
415 (find-files "texlive-scripts" "\\.sh$")))
416 (commands '("awk" "basename" "cat" "grep" "mkdir" "rm"
417 "sed" "sort" "uname"))
418 (command-regexp (format #f "\\b(~a)\\b"
419 (string-join commands "|")))
420 (iso-8859-1-encoded-scripts
421 '("texk/texlive/linked_scripts/texlive-extra/rubibtex.sh"
422 "texk/texlive/linked_scripts/texlive-extra/rumakeindex.sh")))
424 (define (substitute-commands scripts)
426 ((command-regexp dummy command)
429 (substitute-commands (lset-difference string= scripts
430 iso-8859-1-encoded-scripts))
432 (with-fluids ((%default-port-encoding "ISO-8859-1"))
433 (substitute-commands iso-8859-1-encoded-scripts)))))
434 ;; When ST_NLINK_TRICK is set, kpathsea attempts to avoid work when
435 ;; searching files by assuming that a directory with exactly two
436 ;; links has no subdirectories. This assumption does not hold in our
437 ;; case, so some directories with symlinked subdirectories would not
439 (add-after 'patch-scripts 'patch-directory-traversal
441 (substitute* "texk/kpathsea/config.h"
442 (("#define ST_NLINK_TRICK") ""))))
444 ,@(if (target-arm32?)
445 `((add-after 'unpack 'skip-faulty-test
447 ;; Skip this faulty test on armhf-linux:
448 ;; https://issues.guix.gnu.org/54055
449 (substitute* '("texk/mendexk/tests/mendex.test"
450 "texk/upmendex/tests/upmendex.test")
452 (string-append "exit 77 # skip\n" all))))))
455 (add-after 'check 'customize-texmf.cnf
456 ;; The default texmf.cnf is provided by this package, texlive-bin.
457 ;; Every variable of interest is set relatively to the GUIX_TEXMF
458 ;; environment variable defined via a search path specification
459 ;; further below. The configuration file is patched after the test
460 ;; suite has run, as it relies on the default configuration to find
461 ;; its paths (and the GUIX_TEXMF variable isn't set yet).
463 ;; The current directory is build/ because of the out-of-tree
465 (let* ((source (first (scandir ".." (cut string-suffix?
467 (texmf.cnf (string-append "../" source
468 "/texk/kpathsea/texmf.cnf")))
469 (substitute* texmf.cnf
471 "TEXMFROOT = {$GUIX_TEXMF}/..\n")
473 "TEXMF = {$GUIX_TEXMF}\n")
475 "TEXMFCNF = {$GUIX_TEXMF}/web2c\n")
476 ;; Don't truncate lines.
477 (("^error_line = .*$") "error_line = 254\n")
478 (("^half_error_line = .*$") "half_error_line = 238\n")
479 (("^max_print_line = .*$") "max_print_line = 1000\n")))))
480 (add-after 'install 'post-install
481 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
482 (let* ((out (assoc-ref outputs "out"))
483 (patch-source-shebangs (assoc-ref %standard-phases
484 'patch-source-shebangs))
485 (share (string-append out "/share"))
486 (scripts (string-append share
487 "/texmf-dist/scripts/texlive"))
488 (source (string-append
489 "../" (first (scandir ".." (cut string-suffix?
491 (tl-extra-root (string-append source "/texlive-extra"))
493 (scandir tl-extra-root
495 (cut member <> '("." ".."))))))
496 (tlpkg-src (string-append tl-extra-root "/" tl-extra-dir
498 (config.guess (search-input-file inputs
499 "/bin/config.guess")))
501 ;; Create symbolic links for the latex variants and their man
502 ;; pages. We link lualatex to luahbtex; see issue #51252 for
504 (with-directory-excursion (string-append out "/bin/")
506 '("pdftex" "pdftex" "xetex" "luahbtex")
507 '("latex" "pdflatex" "xelatex" "lualatex")))
508 (with-directory-excursion (string-append share "/man/man1/")
509 (symlink "luatex.1" "lualatex.1"))
512 (copy-recursively tlpkg-src (string-append share "/tlpkg"))
514 ;; Install texlive-scripts.
515 (copy-recursively (string-append
516 source "/texlive-scripts/source/")
520 (let ((dirs (map dirname (list (which "sed") (which "awk")))))
521 (with-directory-excursion scripts
522 (substitute* '("mktexpk" "mktexmf" "mktexlsr")
524 (format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
527 ;; Make sure that fmtutil can find its Perl modules.
528 (substitute* (string-append scripts "/fmtutil.pl")
530 (string-append share "/")))
532 ;; Likewise for updmap.pl.
533 (substitute* (string-append scripts "/updmap.pl")
534 (("\\$TEXMFROOT/tlpkg")
535 (string-append share "/tlpkg")))
537 ;; Likewise for the tlmgr.
538 (substitute* (string-append scripts "/tlmgr.pl")
539 ((".*\\$::installerdir = \\$Master.*" all)
540 (format #f " $Master = ~s;~%~a" share all)))
542 ;; Install the config.guess script, required by tlmgr.
543 (with-directory-excursion share
544 (mkdir-p "tlpkg/installer/")
545 (symlink config.guess "tlpkg/installer/config.guess"))
547 ;; texlua shebangs are not patched by the patch-source-shebangs
548 ;; phase because the texlua executable does not exist at that
550 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
551 (with-directory-excursion out
552 (patch-source-shebangs))))))))
554 (list (search-path-specification
555 (variable "GUIX_TEXMF")
556 (files '("share/texmf-dist")))))
557 (synopsis "TeX Live, a package of the TeX typesetting system")
559 "TeX Live provides a comprehensive TeX document production system.
560 It includes all the major TeX-related programs, macro packages, and fonts
561 that are free software, including support for many languages around the
564 This package contains the binaries.")
565 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
566 (home-page "https://www.tug.org/texlive/")))
568 (define-public texlive-bidi
570 (name "texlive-bidi")
571 ;; Take the version from texlive-2022.0 as the one from texlive 2021.0 is
575 (method svn-multi-fetch)
576 (uri (svn-multi-reference
577 (url (string-append "svn://www.tug.org/texlive/tags/"
578 "texlive-2022.0/Master/texmf-dist"))
579 (locations (list "doc/xelatex/bidi/"
580 "source/xelatex/bidi/"))
582 (file-name (string-append name "-" version "-checkout"))
585 "09nfvsjfnms3pclyd2rcivyb5qvzw48b934i3bcl83hv69ix2ks7"))))
586 (outputs '("out" "doc"))
587 (build-system texlive-build-system)
590 #:tex-directory "xelatex/bidi"
591 #:phases #~(modify-phases %standard-phases
592 (add-after 'unpack 'chdir
594 (chdir "source/xelatex/bidi")))
595 (add-after 'install 'install-doc
596 (lambda* (#:key outputs #:allow-other-keys)
597 (let ((doc (string-append (assoc-ref outputs "doc")
598 "/share/texmf-dist/doc")))
600 (copy-recursively (string-append #$source "/doc")
602 (propagated-inputs (list texlive-generic-iftex
603 texlive-generic-ltxcmds
605 texlive-latex-xkeyval
607 (home-page "https://ctan.org/pkg/bidi")
608 (synopsis "Bidirectional typesetting in plain TeX and LaTeX using XeTeX")
609 (description "The @code{bidi} package provides a convenient interface for
610 typesetting bidirectional texts with plain TeX and LaTeX. The package
611 includes adaptations for use with many other commonly-used packages.")
612 (license license:lppl1.3+)))
614 (define-public texlive-libkpathsea
615 (package/inherit texlive-bin
616 (name "texlive-libkpathsea")
619 (inherit (package-source texlive-bin))
622 ,(origin-snippet (package-source texlive-bin))
623 (with-directory-excursion "texk"
624 (let ((preserved-directories '("." ".." "kpathsea")))
626 delete-file-recursively
629 (and (not (member file preserved-directories))
630 (eq? 'directory (stat:type (stat file)))))))))))))
632 (substitute-keyword-arguments (package-arguments texlive-bin)
633 ((#:configure-flags flags)
634 `(cons* "--disable-all-pkgs" "--enable-kpathsea"
635 "--enable-shared" ,flags))
637 `(modify-phases %standard-phases
638 (add-after 'install 'post-install
639 (lambda* (#:key inputs outputs #:allow-other-keys)
640 (with-directory-excursion "texk/kpathsea"
641 (invoke "make" "install"))))))))
643 (synopsis "Path searching library")
644 (description "kpathsea is a library, whose purpose is to return a filename
645 from a list of user-specified directories similar to how shells look up
646 executables. It is maintained as a part of TeX Live.")))
648 (define-syntax-rule (define-deprecated-package old-name name)
649 "Define OLD-NAME as a deprecated package alias for NAME."
650 (define-deprecated/public old-name name
651 (deprecated-package (symbol->string 'old-name) name)))
654 (define texlive-docstrip
656 (inherit (simple-texlive-package
658 (list "/tex/latex/base/docstrip.tex")
660 "1pxbqbia0727vg01xv8451szm55z2w8sb0vv3kf4iqx5ibb6m0d2")
662 (home-page "https://www.ctan.org/texlive")
663 (synopsis "Utility to strip documentation from TeX files")
664 (description "This package provides the docstrip utility to strip
665 documentation from TeX files. It is part of the LaTeX base.")
666 (license license:lppl1.3+)))
668 (define-public texlive-underscore
670 (inherit (simple-texlive-package
672 (list "/doc/latex/underscore/"
673 "/tex/latex/underscore/")
675 "0slxsxc9azmv3gsm55jkhkv8a06wafankp55hhsdd6k4prp8szrb")
677 (home-page "https://www.ctan.org/pkg/underscore")
678 (synopsis "Control the behaviour of @samp{_} in text")
679 (description "This package causes @code{\\_} in text mode (i.e.,
680 @code{\\textunderscore}) to print an underscore so that hyphenation of words
681 either side of it is not affected; a package option controls whether an actual
682 hyphenation point appears after the underscore, or merely a break point. The
683 package also arranges that, while in text, @samp{_} itself behaves as
684 @code{\\textunderscore} (the behaviour of @samp{_} in maths mode is not
686 (license license:lppl1.2+)))
688 (define-public texlive-unicode-data
690 (inherit (simple-texlive-package
691 "texlive-unicode-data"
692 (list "/tex/generic/unicode-data/"
693 "/doc/generic/unicode-data/")
695 "1d41zvjsig7sqf2j2m89dnbv3gicpb16r04b4ikps4gabhbky83k")
697 (home-page "https://www.ctan.org/pkg/unicode-data")
698 (synopsis "Unicode data and loaders for TeX")
699 (description "This bundle provides generic access to Unicode Consortium
700 data for TeX use. It contains a set of text files provided by the Unicode
701 Consortium which are currently all from Unicode 8.0.0, with the exception of
702 @code{MathClass.txt} which is not currently part of the Unicode Character
703 Database. Accompanying these source data are generic TeX loader files
704 allowing this data to be used as part of TeX runs, in particular in building
705 format files. Currently there are two loader files: one for general character
706 set up and one for initializing XeTeX character classes as has been carried
707 out to date by @code{unicode-letters.tex}.")
708 (license license:lppl1.3c+)))
710 (define-deprecated-package texlive-generic-unicode-data texlive-unicode-data)
712 (define-public texlive-hyphen-base
714 (inherit (simple-texlive-package
715 "texlive-hyphen-base"
716 (list "/tex/generic/config/language.dat"
717 "/tex/generic/config/language.dat.lua"
718 "/tex/generic/config/language.def"
719 "/tex/generic/config/language.us"
720 "/tex/generic/config/language.us.def"
721 "/tex/generic/config/language.us.lua"
722 "/tex/generic/hyphen/dumyhyph.tex"
723 "/tex/generic/hyphen/hyphen.tex"
724 "/tex/generic/hyphen/hypht1.tex"
725 "/tex/generic/hyphen/zerohyph.tex")
727 "1sagn9aybs34m1s6m3zwya5g5kbiwfnw8ifcgxssygmzzs88dgjp")
729 (home-page "https://tug.org/texlive/")
730 (synopsis "Core hyphenation support files")
731 (description "This package includes Knuth's original @file{hyphen.tex},
732 @file{zerohyph.tex} to disable hyphenation, @file{language.us} which starts
733 the autogenerated files @file{language.dat} and @file{language.def} (and
734 default versions of those), etc.")
735 (license license:knuth)))
737 (define-public texlive-dvips
739 (inherit (simple-texlive-package
741 (list "/doc/man/man1/afm2tfm.1"
742 "/doc/man/man1/dvips.1"
745 "/fonts/enc/dvips/base/"
746 "/tex/generic/dvips/")
748 "0rns1hpjy4fmsskmkwx197j8qbgdmyj0j9214sq9vhpa6nv7czm3")
750 (home-page "https://www.ctan.org/pkg/dvips")
751 (synopsis "DVI to PostScript drivers")
752 (description "This package provides files needed for converting DVI files
754 (license license:lppl)))
756 (define-public texlive-tex-ini-files
758 (inherit (simple-texlive-package
759 "texlive-tex-ini-files"
760 (list "/tex/generic/tex-ini-files/")
762 "0q1g62jg0qiqslm93ycvm30bw8ydmssjdshzsnzl7n2vpd62qfi2")
764 (home-page "https://www.ctan.org/pkg/tex-ini-files")
765 (synopsis "Files for creating TeX formats")
766 (description "This bundle provides a collection of model \".ini\" files
767 for creating TeX formats. These files are commonly used to introduced
768 distribution-dependent variations in formats. They are also used to
769 allow existing format source files to be used with newer engines, for example
770 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
771 (license license:public-domain)))
773 (define-deprecated-package texlive-generic-tex-ini-files texlive-tex-ini-files)
775 (define-public texlive-metafont
777 (name "texlive-metafont")
778 (version (number->string %texlive-revision))
780 (method svn-multi-fetch)
781 (uri (svn-multi-reference
782 (url (string-append "svn://www.tug.org/texlive/tags/"
783 %texlive-tag "/Master/texmf-dist"))
784 (locations '("/metafont/"
785 "/fonts/source/public/modes/"))
786 (revision %texlive-revision)))
787 (file-name (string-append name "-" version "-checkout"))
790 "17y72xmz5a36vdsq7pfrwj0j4c7llrm9j5kcq349cpaas7r32lmb"))))
791 (build-system gnu-build-system)
793 `(#:tests? #f ; no test target
795 (modify-phases %standard-phases
798 (lambda* (#:key inputs #:allow-other-keys)
799 (let* ((cwd (getcwd))
800 (mf (string-append cwd "/metafont"))
801 (modes (string-append cwd "/fonts/source/public/modes")))
803 (string-append modes ":"
811 (with-directory-excursion "build"
812 (invoke "inimf" "mf.mf"))))
814 (lambda* (#:key outputs #:allow-other-keys)
815 (let* ((out (assoc-ref outputs "out"))
816 (base (string-append out "/share/texmf-dist/web2c"))
817 (mf (string-append out "/share/texmf-dist/metafont/")))
820 (install-file "build/mf.base" base)
821 (with-directory-excursion "metafont"
822 (for-each (lambda (where)
823 (copy-recursively where (string-append mf where)))
824 (list "base" "misc" "config")))))))))
827 (home-page "https://www.ctan.org/pkg/metafont")
828 (synopsis "Metafont base files")
829 (description "This package provides the Metafont base files needed to
830 build fonts using the Metafont system.")
831 (license license:knuth)))
833 (define-deprecated-package texlive-metafont-base texlive-metafont)
835 (define-public texlive-fontinst
836 (let ((template (simple-texlive-package
838 (list "/doc/fonts/fontinst/"
839 "/doc/man/man1/fontinst.1"
840 "/doc/man/man1/fontinst.man1.pdf"
842 ;; This is used to build parts of
843 ;; /tex/fontinst/{base,misc}/ and
844 ;; /tex/latex/fontinst/fontdoc.sty.
845 "/source/fontinst/base/"
847 ;; These are not generated.
848 "/tex/fontinst/base/bbox.sty"
849 "/tex/fontinst/base/multislot.sty"
850 "/tex/fontinst/misc/glyphbox.mtx"
851 "/tex/fontinst/misc/glyphoff.mtx"
852 "/tex/fontinst/misc/glyphon.mtx"
853 "/tex/fontinst/misc/kernoff.mtx"
854 "/tex/fontinst/misc/kernon.mtx"
856 "/tex/fontinst/latinetx/"
857 "/tex/fontinst/latinmtx/"
858 "/tex/fontinst/mathmtx/"
859 "/tex/fontinst/smblmtx/")
861 "195jsijrpv828pqy99gm13j31nsc8bsa58zlbln2r0h5j9l44b5g")
866 (substitute-keyword-arguments (package-arguments template)
868 '((guix build gnu-build-system)
872 `(modify-phases ,phases
874 (lambda* (#:key inputs #:allow-other-keys)
876 (string-append (getcwd) "//:"
877 (getcwd) "/source/fontinst/base//:"
878 (assoc-ref inputs "texlive-docstrip") "//"))
880 (invoke "tex" "-ini" "-interaction=scrollmode"
881 "-output-directory=build"
883 ;; Since we're using docstrip without LaTeX we can't set \UseTDS
884 ;; or \BaseDirectory, so the generated files are just dumped in
885 ;; the "build" directory.
886 (add-after 'install 'install-generated-files
887 (lambda* (#:key outputs #:allow-other-keys)
888 (let* ((out (assoc-ref outputs "out"))
889 (root (string-append out "/share/texmf-dist")))
890 (for-each (match-lambda
892 (for-each (lambda (file)
894 (string-append "build/" file)
895 (string-append root dir)))
897 '(("/tex/fontinst/base"
903 ("/tex/fontinst/misc"
907 ("/tex/latex/fontinst"
911 (list texlive-bin texlive-docstrip))
912 (home-page "https://www.ctan.org/pkg/fontinst")
913 (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
914 (description "This package provides TeX macros for converting Adobe Font
915 Metric files to TeX metric and virtual font format. Fontinst helps mainly
916 with the number crunching and shovelling parts of font installation. This
917 means in practice that it creates a number of files which give the TeX
918 metrics (and related information) for a font family that TeX needs to do any
919 typesetting in these fonts.")
920 (license license:lppl1.1+))))
922 (define-deprecated-package texlive-tex-fontinst-base texlive-fontinst)
924 (define-public texlive-fontname
926 (inherit (simple-texlive-package
928 (list "/doc/fonts/fontname/fontname.texi"
929 "/fonts/map/fontname/")
931 "009qvjpw48lajp0gxpvdk10n5qw3q41cpq05ycns67mxwkcaywq6")
933 (home-page "https://www.ctan.org/pkg/fontname")
934 (synopsis "Scheme for naming fonts in TeX")
935 (description "This is Fontname, a naming scheme for (the base part of)
936 external TeX font filenames. This makes at most eight-character names
937 from (almost) arbitrarily complex font names, thus helping portability of TeX
939 (license license:public-domain)))
941 (define-public texlive-cbfonts ;71 MiB of greek fonts
943 (inherit (simple-texlive-package
945 (list "/doc/fonts/cbfonts/"
946 "/fonts/type1/public/cbfonts/")
948 "01j22cbwq9jkni5vvrpz2mg1799cbx3aq801sni74i8wb1zcf6y1")
950 (propagated-inputs (list texlive-cbfonts-fd))
951 (home-page "https://www.ctan.org/pkg/cbgreek-complete")
952 (synopsis "Complete set of Greek fonts")
953 (description "This bundle presents the whole of Beccari's original Greek
954 font set, which use the @i{Lispiakos} font shape derived from the shape of the
955 fonts used in printers' shops in Lispia. The fonts are available both as
956 Metafont source and in Adobe Type 1 format, and at the same wide set of design
957 sizes as are such font sets as the EC fonts.")
958 (license license:lppl1.3c+)))
960 (define-public texlive-cbfonts-fd
962 (inherit (simple-texlive-package
964 (list "/doc/fonts/cbfonts/"
965 "/tex/latex/cbfonts-fd/")
967 "0g91p2qcgqn916vgf777h45dabv2r6l6f9xkcq0b3gpir3qsj3d4")
969 (home-page "https://www.ctan.org/pkg/cbfonts-fd")
970 (synopsis "LaTeX font description files for the CB Greek fonts")
971 (description "The package provides font description files for all the many
972 shapes available from the cbfonts collection. The files provide the means
973 whereby the @acronym{NFSS, New Font Selection Scheme} knows which fonts a
974 LaTeX user is requesting.
976 Tip: installing @code{texlive-cbfonts} will automatically propagate this one.")
977 (license license:lppl1.3c+)))
979 (define-public texlive-cm
980 (let ((template (simple-texlive-package
982 (list "/fonts/source/public/cm/"
983 "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map"
986 "1ky4gvcn8qn3d61bvb39512b8r92igv6il7vh02hw04223yj6q8i")
991 (substitute-keyword-arguments (package-arguments template)
992 ((#:modules modules '())
993 '((guix build gnu-build-system)
997 `(modify-phases ,phases
999 (lambda* (#:key inputs #:allow-other-keys)
1000 (let ((mf (assoc-ref inputs "texlive-metafont")))
1001 ;; Tell mf where to find mf.base
1002 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1003 ;; Tell mf where to look for source files
1005 (string-append (getcwd) "/fonts/source/public/cm/:"
1006 mf "/share/texmf-dist/metafont/base")))
1007 (for-each make-file-writable
1008 (cons "fonts/source/public/cm/"
1009 (find-files "fonts/source/public/cm/" ".*")))
1010 (let ((build (string-append (getcwd) "/build"))
1011 (pkdir (string-append (getcwd) "/pk/ljfour/public/cm/dpi600")))
1014 (with-directory-excursion "fonts/source/public/cm/"
1015 (for-each (lambda (font)
1016 (format #t "building font ~a\n" font)
1017 (invoke "mf" "-progname=mf"
1018 (string-append "-output-directory=" build)
1024 (basename font ".mf")))
1026 (string-append build "/"
1027 (basename font ".mf") ".600gf")
1028 (string-append pkdir "/"
1029 (basename font ".mf") ".pk")))
1030 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
1032 (add-after 'install 'install-generated-fonts
1033 (lambda* (#:key inputs outputs #:allow-other-keys)
1034 (let* ((out (assoc-ref outputs "out"))
1035 (fonts (string-append out "/share/texmf-dist/fonts/"))
1036 (pk (string-append fonts "pk"))
1037 (tfm (string-append fonts "tfm/public/cm")))
1038 (for-each (cut install-file <> tfm)
1039 (find-files "build" "\\.*"))
1040 (copy-recursively "pk" pk)
1043 (list texlive-bin texlive-metafont))
1044 (home-page "https://www.ctan.org/pkg/cm")
1045 (synopsis "Computer Modern fonts for TeX")
1046 (description "This package provides the Computer Modern fonts by Donald
1047 Knuth. The Computer Modern font family is a large collection of text,
1048 display, and mathematical fonts in a range of styles, based on Monotype Modern
1050 (license license:knuth))))
1052 (define-deprecated-package texlive-fonts-cm texlive-cm)
1054 (define-public texlive-cm-lgc
1056 (inherit (simple-texlive-package
1058 (list "/doc/fonts/cm-lgc/"
1059 "/fonts/afm/public/cm-lgc/"
1060 "/fonts/type1/public/cm-lgc/"
1061 "/fonts/vf/public/cm-lgc/"
1062 "/tex/latex/cm-lgc/")
1064 "0rm7wgyb07y8h6vbvc2xzsqnxy322d4j9ly2p67z84b81c8i3zpc")
1066 (home-page "https://www.ctan.org/pkg/cm-lgc")
1067 (synopsis "Type 1 CM-based fonts for Latin, Greek and Cyrillic")
1068 (description "The fonts are converted from Metafont sources of the
1069 Computer Modern font families, using @command{textrace}. Supported encodings
1070 are: T1 (Latin), T2A (Cyrillic), LGR (Greek) and TS1. The package also
1071 includes Unicode virtual fonts for use with Omega. The font set is not a
1072 replacement for any of the other Computer Modern-based font sets (for example,
1073 cm-super for Latin and Cyrillic, or cbgreek for Greek), since it is available
1074 at a single size only; it offers a compact set for @i{general} working. The
1075 fonts themselves are encoded to external standards, and virtual fonts are
1076 provided for use with TeX.")
1077 (license license:gpl2+)))
1079 (define-public texlive-cm-super
1080 (let ((template (simple-texlive-package
1082 (list "/doc/fonts/cm-super/"
1084 "/fonts/afm/public/cm-super/"
1085 "/fonts/enc/dvips/cm-super/"
1086 "/fonts/map/dvips/cm-super/"
1087 "/fonts/map/vtex/cm-super/"
1088 "/fonts/type1/public/cm-super/"
1089 "/tex/latex/cm-super/")
1091 "1k3afl0x0bqbr5mnawbnp7rr2126dwn0vwnxzibm9ggvzqilnkm6")
1096 (substitute-keyword-arguments (package-arguments template)
1098 `(modify-phases ,phases
1099 (delete 'reset-gzip-timestamps)))))
1100 (home-page "https://www.ctan.org/pkg/cm-super")
1101 (synopsis "Computer Modern Super family of fonts")
1102 (description "The CM-Super family provides Adobe Type 1 fonts that replace
1103 the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
1104 T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
1105 languages except Greek), and bringing many ameliorations in typesetting
1106 quality. The fonts exhibit the same metrics as the METAFONT-encoded
1108 ;; With font exception
1109 (license license:gpl2+))))
1111 (define-deprecated-package texlive-fonts-cm-super texlive-cm-super)
1113 (define-public texlive-courier
1115 (inherit (simple-texlive-package
1117 (list "/dvips/courier/"
1118 "/fonts/afm/adobe/courier/"
1119 "/fonts/afm/urw/courier/"
1120 "/fonts/map/dvips/courier/"
1121 "/fonts/tfm/adobe/courier/"
1122 "/fonts/tfm/urw35vf/courier/"
1123 "/fonts/type1/adobe/courier/"
1124 "/fonts/type1/urw/courier/"
1125 "/fonts/vf/adobe/courier/"
1126 "/fonts/vf/urw35vf/courier/"
1127 "/tex/latex/courier/"
1128 "/tex4ht/ht-fonts/alias/adobe/courier/"
1129 "/tex4ht/ht-fonts/unicode/adobe/courier/")
1131 "05lglavi073glj26k9966351hka5ac22g4vim61dkfy001vz4i7r")
1133 (home-page "https://ctan.org/pkg/urw-base35")
1134 (synopsis "URW Base 35 font pack for LaTeX")
1135 (description "This package provides a drop-in replacements for the Courier
1136 font from Adobe's basic set.")
1137 ;; No license version specified.
1138 (license license:gpl3+)))
1140 (define-public texlive-tex-gyre
1142 (inherit (simple-texlive-package
1144 '("/doc/fonts/tex-gyre/GUST-FONT-LICENSE.txt"
1145 "/fonts/afm/public/tex-gyre/"
1146 "/fonts/enc/dvips/tex-gyre/"
1147 "/fonts/map/dvips/tex-gyre/"
1148 "/fonts/opentype/public/tex-gyre/"
1149 "/fonts/tfm/public/tex-gyre/"
1150 "/fonts/type1/public/tex-gyre/"
1151 "/tex/latex/tex-gyre/")
1153 "1ldnlmclghm3gnyv02r8a6cqybygz2ifq07mhykhf43h1pw3aq7k")
1155 (home-page "https://ctan.org/pkg/tex-gyre")
1156 (synopsis "TeX fonts extending URW fonts")
1158 "The TeX-GYRE bundle consist of multiple font families:
1160 @item Adventor, based on the URW Gothic L family of fonts;
1161 @item Bonum, based on the URW Bookman L family;
1162 @item Chorus, based on URW Chancery L Medium Italic;
1163 @item Cursor, based on URW Nimbus Mono L;
1164 @item Heros, based on URW Nimbus Sans L;
1165 @item Pagella, based on URW Palladio L;
1166 @item Schola, based on the URW Century Schoolbook L family;
1167 @item Termes, based on the URW Nimbus Roman No9 L family of fonts.
1170 The constituent standard faces of each family have been greatly extended
1171 (though Chorus omits Greek support and has no small-caps family). Each
1172 family is available in Adobe Type 1 and Open Type formats, and LaTeX
1173 support (for use with a variety of encodings) is provided.")
1174 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
1175 ;; Public License (LPPL), version 1.3c or later, but comes with an
1176 ;; additional but not legally binding clause.
1177 (license license:lppl1.3c+)))
1179 (define-public texlive-lm
1181 (inherit (simple-texlive-package
1183 (list "/doc/fonts/lm/"
1184 "/fonts/afm/public/lm/"
1185 "/fonts/enc/dvips/lm/"
1186 "/fonts/map/dvipdfm/lm/"
1187 "/fonts/map/dvips/lm/"
1188 "/fonts/opentype/public/lm/"
1189 "/fonts/tfm/public/lm/"
1190 "/fonts/type1/public/lm/"
1193 "0yyk0dr4yms82mwy4dc03zf5igyhgcb65icdah042rk23rlpxygv")
1195 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/")
1196 (synopsis "Latin Modern family of fonts")
1197 (description "The Latin Modern fonts are derived from the famous Computer
1198 Modern fonts designed by Donald E. Knuth and described in Volume E of his
1199 Computers & Typesetting series.")
1200 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
1201 ;; Public License (LPPL), version 1.3c or later, but comes with an
1202 ;; additional but not legally binding clause.
1203 (license license:lppl1.3c+)))
1205 (define-deprecated-package texlive-fonts-lm texlive-lm)
1207 (define-public texlive-lm-math
1209 (inherit (simple-texlive-package
1211 (list "/doc/fonts/lm-math/"
1212 "/fonts/opentype/public/lm-math/")
1214 "0gqdk8x3r1iz4n8j6r3pcqbwalxvkihayvmjfq4iv6hwb0pvys8z")
1216 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern")
1217 (synopsis "OpenType maths fonts for Latin Modern")
1218 (description "Latin Modern Math is a maths companion for the Latin Modern
1219 family of fonts, in OpenType format. For use with LuaLaTeX or XeLaTeX,
1220 support is available from the @code{unicode-math} package.")
1221 (license license:gfl1.0)))
1223 (define-public texlive-knuth-lib
1224 (let ((template (simple-texlive-package
1226 (list "/fonts/source/public/knuth-lib/"
1227 "/tex/generic/knuth-lib/"
1228 "/tex/plain/knuth-lib/")
1230 "1cxyqqprp8sj2j4zp9l0wry8cq2awpz3a8i5alzpc4ndg7a6pgdf")
1235 (substitute-keyword-arguments (package-arguments template)
1237 '((guix build gnu-build-system)
1240 ((#:phases phases '())
1241 `(modify-phases ,phases
1243 (lambda* (#:key inputs #:allow-other-keys)
1244 (with-directory-excursion "fonts/source/public/knuth-lib"
1245 (let ((mf (assoc-ref inputs "texlive-metafont")))
1246 ;; Tell mf where to find mf.base
1248 (string-append mf "/share/texmf-dist/web2c"))
1249 ;; Tell mf where to look for source files
1251 (string-append (getcwd) ":"
1252 mf "/share/texmf-dist/metafont/base")))
1254 (for-each (lambda (font)
1255 (format #t "building font ~a\n" font)
1256 (invoke "mf" "-progname=mf"
1257 "-output-directory=build"
1263 (find-files "." "(manfnt|logo.+)\\.mf$")))
1265 (add-after 'install 'install-fonts
1266 (lambda* (#:key outputs #:allow-other-keys)
1267 (with-directory-excursion "fonts/source/public/knuth-lib"
1268 (let* ((out (assoc-ref outputs "out"))
1270 out "/share/texmf-dist/fonts/tfm/public/knuth-lib")))
1271 (for-each (cut install-file <> tfm)
1272 (find-files "build" "\\.tfm"))
1275 (list texlive-bin texlive-metafont))
1276 (home-page "https://www.ctan.org/pkg/knuth-lib")
1277 (synopsis "Small library of METAFONT sources")
1278 (description "This is a collection of core TeX and METAFONT macro files
1279 from Donald Knuth, including the plain format, plain base, and the MF logo
1281 (license license:knuth))))
1283 (define-deprecated-package texlive-fonts-knuth-lib texlive-knuth-lib)
1285 (define-public texlive-fonts-latex
1287 (name "texlive-fonts-latex")
1288 (version (number->string %texlive-revision))
1292 (url (string-append "svn://www.tug.org/texlive/tags/"
1293 %texlive-tag "/Master/texmf-dist/"
1294 "/fonts/source/public/latex-fonts"))
1295 (revision %texlive-revision)))
1296 (file-name (string-append name "-" version "-checkout"))
1299 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
1300 (build-system gnu-build-system)
1302 `(#:modules ((guix build gnu-build-system)
1306 #:tests? #f ; no tests
1308 (modify-phases %standard-phases
1311 (lambda* (#:key inputs #:allow-other-keys)
1312 (let ((mf (assoc-ref inputs "texlive-metafont")))
1313 ;; Tell mf where to find mf.base
1314 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1315 ;; Tell mf where to look for source files
1317 (string-append (getcwd) ":"
1318 mf "/share/texmf-dist/metafont/base:"
1319 (assoc-ref inputs "texlive-cm")
1320 "/share/texmf-dist/fonts/source/public/cm")))
1322 (for-each (lambda (font)
1323 (format #t "building font ~a\n" font)
1324 (invoke "mf" "-progname=mf"
1325 "-output-directory=build"
1331 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
1332 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
1333 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
1334 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
1335 "line10" "linew10"))
1338 (lambda* (#:key outputs #:allow-other-keys)
1339 (let* ((out (assoc-ref outputs "out"))
1341 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
1343 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
1344 (for-each (cut install-file <> tfm)
1345 (find-files "build" "\\.*"))
1346 (for-each (cut install-file <> mf)
1347 (find-files "." "\\.mf"))
1350 (list texlive-bin texlive-metafont texlive-cm))
1351 (home-page "https://www.ctan.org/pkg/latex-fonts")
1352 (synopsis "Collection of fonts used in LaTeX distributions")
1353 (description "This is a collection of fonts for use with standard LaTeX
1354 packages and classes. It includes invisible fonts (for use with the slides
1355 class), line and circle fonts (for use in the picture environment) and LaTeX
1357 (license license:lppl1.2+)))
1359 (define-public texlive-mflogo
1360 (let ((template (simple-texlive-package
1362 (list "/doc/latex/mflogo/"
1363 "/source/latex/mflogo/"
1364 "/fonts/source/public/mflogo/logosl8.mf")
1366 "1vb4mg7fh4k54g7nqwiw3qm4iir8whpfnspis76l4sddzar1amh7"))))
1370 (substitute-keyword-arguments (package-arguments template)
1372 '((guix build texlive-build-system)
1376 ((#:tex-directory _ #t)
1378 ((#:phases phases '())
1379 `(modify-phases ,phases
1380 (add-after 'unpack 'chdir
1382 (chdir "source/latex/mflogo") #t))
1383 (add-after 'build 'build-font-metrics
1384 (lambda* (#:key inputs #:allow-other-keys)
1385 (let ((root "../../..")
1386 (mf (assoc-ref inputs "texlive-metafont"))
1387 (kl (assoc-ref inputs "texlive-knuth-lib")))
1388 ;; Tell mf where to find mf.base
1390 (string-append mf "/share/texmf-dist/web2c"))
1391 ;; Tell mf where to look for source files
1393 (string-append root ":"
1394 mf "/share/texmf-dist/metafont/base:"
1395 kl "/share/texmf-dist/fonts/source/public/knuth-lib:"
1396 root "/fonts/source/public/mflogo/"))
1397 (for-each (lambda (font)
1398 (format #t "building font ~a\n" font)
1399 (invoke "mf" "-progname=mf"
1400 "-output-directory=build"
1405 "input " (basename font))))
1406 (find-files (string-append root
1407 "/fonts/source/public/mflogo/")
1410 (add-before 'install 'install-fonts
1411 (lambda* (#:key outputs #:allow-other-keys)
1412 (let* ((out (assoc-ref outputs "out"))
1414 out "/share/texmf-dist/fonts/tfm/public/mflogo")))
1415 (for-each (lambda (file)
1416 (install-file file tfm)
1418 (find-files "build" "\\.tfm"))
1421 (list texlive-bin texlive-metafont texlive-knuth-lib))
1422 (home-page "http://www.ctan.org/pkg/mflogo")
1423 (synopsis "LaTeX support for Metafont logo fonts")
1425 "This package provides LaTeX and font definition files to access the
1426 Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont
1427 logos in LaTeX documents.")
1428 (license license:lppl))))
1430 (define-deprecated-package texlive-latex-mflogo texlive-mflogo)
1432 (define-public texlive-mflogo-font
1434 (inherit (simple-texlive-package
1435 "texlive-mflogo-font"
1436 (list "/doc/fonts/mflogo-font/README"
1437 "/fonts/afm/hoekwater/mflogo-font/"
1438 "/fonts/map/dvips/mflogo-font/"
1439 "/fonts/type1/hoekwater/mflogo-font/")
1441 "094mknjv8ki2pvj1zin0f1z4f1w12g0cfqjiqcsawjsry4yfrmbg")
1443 (home-page "https://www.ctan.org/pkg/mflogo-font")
1444 (synopsis "Metafont logo font")
1446 "These fonts were created in METAFONT by Knuth, for his own publications.
1447 At some stage, the letters P and S were added, so that the METAPOST logo could
1448 also be expressed. The fonts were originally issued (of course) as METAFONT
1449 source; they have since been autotraced and reissued in Adobe Type 1 format by
1451 (license license:knuth)))
1453 (define-deprecated-package texlive-fonts-mflogo-font texlive-mflogo-font)
1455 (define-public texlive-amsfonts
1456 (let ((template (simple-texlive-package
1458 (list "/source/latex/amsfonts/"
1459 "/fonts/source/public/amsfonts/"
1460 "/fonts/type1/public/amsfonts/"
1461 "/fonts/afm/public/amsfonts/"
1462 "/fonts/tfm/public/amsfonts/"
1463 "/fonts/map/dvips/amsfonts/"
1464 "/tex/plain/amsfonts/"
1465 "/doc/fonts/amsfonts/")
1467 "1rpl87643q8v6gcqsz68mjha8wac6cqx7mr16ds8f0ccbw7a4w9b"))))
1471 (substitute-keyword-arguments (package-arguments template)
1472 ((#:build-targets _ #t)
1473 '(list "amsfonts.ins"))
1474 ((#:tex-directory _ #t)
1477 `(modify-phases ,phases
1478 (add-after 'unpack 'chdir
1479 (lambda _ (chdir "source/latex/amsfonts")))
1480 (add-before 'copy-files 'unchdir
1481 (lambda _ (chdir "../../..")))
1482 (add-after 'copy-files 'remove-extra-files
1483 (lambda* (#:key outputs #:allow-other-keys)
1484 (delete-file-recursively
1485 (string-append (assoc-ref outputs "out")
1486 "/share/texmf-dist/source/latex/amsfonts/build/"))))))))
1487 (home-page "https://www.ctan.org/pkg/amsfonts")
1488 (synopsis "TeX fonts from the American Mathematical Society")
1490 "This package provides an extended set of fonts for use in mathematics,
1491 including: extra mathematical symbols; blackboard bold letters (uppercase
1492 only); fraktur letters; subscript sizes of bold math italic and bold Greek
1493 letters; subscript sizes of large symbols such as sum and product; added sizes
1494 of the Computer Modern small caps font; cyrillic fonts (from the University of
1495 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1496 files, and all except the Euler fonts are provided as Metafont source. The
1497 distribution also includes the canonical Type 1 versions of the Computer
1498 Modern family of fonts. The Euler fonts are supported by separate packages;
1499 details can be found in the documentation.")
1500 (license license:silofl1.1))))
1502 (define-deprecated-package texlive-fonts-amsfonts texlive-amsfonts)
1504 (define-deprecated-package texlive-latex-amsfonts texlive-amsfonts)
1506 (define-public texlive-mkpattern
1508 (inherit (simple-texlive-package
1510 (list "/doc/plain/mkpattern/README"
1511 "/doc/plain/mkpattern/mkpatdoc.tex"
1512 "/doc/plain/mkpattern/mkpatter.pdf"
1513 "/doc/plain/mkpattern/mkpattern-exmpl.tex"
1514 "/tex/plain/mkpattern/mkpatter.tex")
1516 "0sxnkbcc802jl3fj56x9hvg978bpv15lhrwj0aykb4syq29l47ga")
1518 (home-page "https://ctan.org/pkg/mkpattern")
1519 (synopsis "Utility for making hyphenation patterns")
1520 (description "Mkpattern is a general purpose program for the generation of
1521 hyphenation patterns, with definition of letter sets and template-like
1522 constructions. It also provides an easy way to handle different input and
1523 output encodings, and features generation of clean UTF-8 patterns.")
1524 (license license:lppl)))
1526 ;; This provides etex.src which is needed to build various formats, including
1527 ;; luatex.fmt and pdflatex.fmt
1528 (define-public texlive-etex
1529 (let ((template (simple-texlive-package
1531 (list "/doc/etex/base/"
1532 "/doc/man/man1/etex.1"
1533 "/doc/man/man1/etex.man1.pdf"
1535 "/fonts/source/public/etex/")
1537 "1qv6vxm5a8pw38gas3i69ivmsn79zj2yq5n5vdmh0rzic5hw2hmc")
1542 (substitute-keyword-arguments (package-arguments template)
1544 `(modify-phases ,phases
1547 (lambda* (#:key inputs #:allow-other-keys)
1548 (let ((mf (assoc-ref inputs "texlive-metafont")))
1549 ;; Tell mf where to find mf.base
1550 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1551 ;; Tell mf where to look for source files
1553 (string-append (getcwd)
1554 "/fonts/source/public/etex/:"
1555 mf "/share/texmf-dist/metafont/base:"
1556 (assoc-ref inputs "texlive-cm")
1557 "/share/texmf-dist/fonts/source/public/cm")))
1558 (invoke "mf" "-progname=mf"
1565 (add-after 'install 'install-font
1566 (lambda* (#:key outputs #:allow-other-keys)
1569 (string-append (assoc-ref outputs "out")
1570 "/share/texmf-dist/fonts/tfm/public/etex/"))
1573 (list texlive-bin texlive-metafont texlive-cm))
1574 (home-page "https://www.ctan.org/pkg/etex")
1575 (synopsis "Extended version of TeX")
1577 "This package provides an extended version of TeX (which is capable of
1578 running as if it were TeX unmodified). E-TeX has been specified by the LaTeX
1579 team as the engine for the development of LaTeX2e; as a result, LaTeX
1580 programmers may assume e-TeX functionality. The pdftex engine directly
1581 incorporates the e-TeX extensions.")
1582 (license license:knuth))))
1584 (define-public texlive-tex-plain
1586 (inherit (simple-texlive-package
1588 (list "/tex/plain/")
1590 "0gwygkm8i2jmpf7bfg6fb6824rl7fq4a2s0wni73v0fz6s4chr1n")
1592 (home-page "https://www.ctan.org/pkg/plain")
1593 (synopsis "Plain TeX format and supporting files")
1595 "This package contains files used to build the Plain TeX format, as
1596 described in the TeXbook, together with various supporting files (some also
1597 discussed in the book).")
1598 (license license:knuth)))
1600 (define-public texlive-hardwrap
1602 (inherit (simple-texlive-package
1604 (list "doc/latex/hardwrap/"
1605 "tex/latex/hardwrap/"
1606 "source/latex/hardwrap/")
1608 "0ql3xml1ccll44q945n7w72p6d51y5wcrkawi7cg621gy5d6wzx5")
1610 (home-page "https://ctan.org/macros/latex/contrib/hardwrap")
1611 (synopsis "Hard wrap text to a certain character length")
1613 "The package facilitates wrapping text to a specific character width, breaking
1614 lines by words rather than, as done by TeX, by characters. The primary use for
1615 these facilities is to aid the generation of messages sent to the log file or
1616 console output to display messages to the user. Package authors may also find
1617 this useful when writing out arbitary text to an external file.")
1618 (license license:lppl1.3+)))
1620 (define-public texlive-helvetic
1622 (inherit (simple-texlive-package
1624 (list "/dvips/helvetic/"
1625 "/fonts/afm/adobe/helvetic/"
1626 "/fonts/afm/urw/helvetic/"
1627 "/fonts/map/dvips/helvetic/"
1628 "/fonts/tfm/adobe/helvetic/"
1629 "/fonts/tfm/monotype/helvetic/"
1630 "/fonts/tfm/urw35vf/helvetic/"
1631 "/fonts/type1/urw/helvetic/"
1632 "/fonts/vf/adobe/helvetic/"
1633 "/fonts/vf/monotype/helvetic/"
1634 "/fonts/vf/urw35vf/helvetic/"
1635 "/tex/latex/helvetic/")
1637 "0c3f1ly7y6404z0akbfbbfql13sz717v0n0g69qjpr69hi4n0nsl")
1639 (home-page "https://ctan.org/pkg/urw-base35")
1640 (synopsis "URW Base 35 font pack for LaTeX")
1641 (description "This package provides a drop-in replacements for the Helvetica
1642 font from Adobe's basic set.")
1643 ;; No license version specified.
1644 (license license:gpl3+)))
1646 (define-public texlive-hyphen-afrikaans
1648 (inherit (texlive-hyphen-package
1649 "texlive-hyphen-afrikaans" "af"
1650 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex")
1652 "1k9k27a27bbrb0gz36191w32l2v6d3zbdh8zhrp4l3ild2pj3n4l")))
1653 (synopsis "Hyphenation patterns for Afrikaans")
1654 (description "The package provides hyphenation patterns for the Afrikaans
1656 (license license:lppl1.3+)))
1658 (define-public texlive-hyphen-ancientgreek
1660 (inherit (texlive-hyphen-package
1661 "texlive-hyphen-ancientgreek" "grc"
1662 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-grc.tex"
1663 "/tex/generic/hyphen/grahyph5.tex"
1664 "/tex/generic/hyphen/ibyhyph.tex")
1666 "01326lb6z0s8krcfgs8i1pnjfrm4gr33rc53gy80f63qbv4ssxrw")))
1667 (synopsis "Hyphenation patterns for ancient Greek")
1668 (description "The package provides hyphenation patterns for ancient
1670 (license license:lppl1.3+)))
1672 (define-public texlive-hyphen-armenian
1673 (let ((template (texlive-hyphen-package
1674 "texlive-hyphen-armenian" "hy"
1675 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hy.tex")
1677 "0hzny0npynsb07syxrpbfa5pkpj8r0j51pj64yxyfl1c0bak1fwp"))))
1680 (synopsis "Hyphenation patterns for Armenian")
1681 (description "The package provides hyphenation patterns for the Armenian
1683 ;; Any version of the LGPL.
1684 (license license:lgpl3+))))
1686 (define-public texlive-hyphen-basque
1687 (let ((template (texlive-hyphen-package
1688 "texlive-hyphen-basque" "eu"
1689 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex")
1691 "15w969g1jqzn68l2b2lzf7iv7g3kil02aba3if6cag3qcnq92ra9"))))
1694 (synopsis "Hyphenation patterns for Basque")
1695 (description "The package provides hyphenation patterns for the Basque
1697 ;; Similar to Unicode license.
1698 (license (license:fsf-free
1699 "/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex")))))
1701 (define-public texlive-hyphen-belarusian
1703 (inherit (texlive-hyphen-package
1704 "texlive-hyphen-belarusian" "be"
1705 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-be.tex")
1707 "0ppm12wndaxv9da62dwkbnk7w9nijikn6jkc97m76xis338g2h02")))
1708 (synopsis "Hyphenation patterns for Belarusian")
1709 (description "The package provides hyphenation patterns for the Belarusian
1711 (license license:expat)))
1713 (define-public texlive-hyphen-bulgarian
1715 (inherit (texlive-hyphen-package
1716 "texlive-hyphen-bulgarian" "bg"
1717 '("/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex")
1719 "0m254y71j3qrb71klvfalfmic3kjy31l85b9cgpdm5yznlsq3i8d")))
1720 (synopsis "Hyphenation patterns for Bulgarian")
1721 (description "The package provides hyphenation patterns for the Bulgarian
1722 language in T2A and UTF-8 encodings.")
1723 (license (license:non-copyleft
1724 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex"
1725 "Ancestral BSD variant"))))
1727 (define-public texlive-hyphen-catalan
1729 (inherit (texlive-hyphen-package
1730 "texlive-hyphen-catalan" "ca"
1731 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex")
1733 "10zzlfz5v8d9csg85ibpp2vfvmpqa56vbl85qy5gws099vygpayg")))
1734 (synopsis "Hyphenation patterns for Catalan")
1735 (description "The package provides hyphenation patterns for Catalan in
1736 T1/EC and UTF-8 encodings.")
1737 (license license:lppl1.0+)))
1739 (define-public texlive-hyphen-chinese
1741 (inherit (texlive-hyphen-package
1742 "texlive-hyphen-chinese" "zh-latn-pinyin"
1743 '("/tex/generic/hyph-utf8/patterns/ptex/hyph-zh-latn-pinyin.ec.tex"
1744 "/tex/generic/hyph-utf8/patterns/tex/hyph-zh-latn-pinyin.tex")
1746 "1hhh30hcjymm2igpllly04cavsfmd6xrjkd9zax6b2wdxn3ka4pm")))
1747 (synopsis "Hyphenation patterns for unaccented Chinese pinyin")
1748 (description "The package provides hyphenation patterns for unaccented
1749 Chinese pinyin T1/EC and UTF-8 encodings.")
1750 (license license:gpl2+)))
1752 (define-public texlive-hyphen-churchslavonic
1754 (inherit (texlive-hyphen-package
1755 "texlive-hyphen-churchslavonic" "cu"
1756 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cu.tex")
1758 "0fhbwaapq2213msbhgr0d1lw06ihmrqirxj092mn73d8ynl13qlh")))
1759 (synopsis "Hyphenation patterns for Church Slavonic")
1760 (description "The package provides hyphenation patterns for Church
1761 Slavonic in UTF-8 encoding.")
1762 (license license:expat)))
1764 (define-public texlive-hyphen-coptic
1766 (inherit (texlive-hyphen-package
1767 "texlive-hyphen-coptic" "cop"
1768 (list "/tex/generic/hyph-utf8/patterns/tex-8bit/copthyph.tex"
1769 "/tex/generic/hyph-utf8/patterns/tex/hyph-cop.tex")
1771 "1jlxxvyfa2aljizaa3qlcxyhqsrb4dawv3q3fbyp2lxz6ag9fy6m")))
1772 (synopsis "Hyphenation patterns for Coptic")
1773 (description "The package provides hyphenation patterns for Coptic in
1774 UTF-8 encoding as well as in ASCII-based encoding for 8-bit engines.")
1775 ;; No explicit license declaration, so we use the project license.
1776 (license license:lppl)))
1778 (define-public texlive-hyphen-croatian
1780 (inherit (texlive-hyphen-package
1781 "texlive-hyphen-croatian" "hr"
1782 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hr.tex")
1784 "12n9r2winai15jc622sqdwclgcs1s68r6vcf7ic8vvq0x9qhwc5v")))
1785 (synopsis "Hyphenation patterns for Croatian")
1786 (description "The package provides hyphenation patterns for Croatian in
1787 T1/EC and UTF-8 encodings.")
1788 (license license:lppl1.0+)))
1790 (define-public texlive-hyphen-czech
1792 (inherit (texlive-hyphen-package
1793 "texlive-hyphen-czech" "cs"
1794 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cs.tex")
1796 "1q37s6p8yfyi3rp1azbz421lg4lr4aiki8m631i4x9rmps89m8iq")))
1797 (synopsis "Hyphenation patterns for Czech")
1798 (description "The package provides hyphenation patterns for Czech in T1/EC
1799 and UTF-8 encodings.")
1800 (license license:gpl2+)))
1802 (define-public texlive-hyphen-danish
1804 (inherit (texlive-hyphen-package
1805 "texlive-hyphen-danish" "da"
1806 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-da.tex")
1808 "1vj8nip64rzcrcg3skm4vqad1ggqwgan74znrdns610wjcm1z9qd")))
1809 (synopsis "Hyphenation patterns for Danish")
1810 (description "The package provides hyphenation patterns for Danish in
1811 T1/EC and UTF-8 encodings.")
1812 ;; Either LPPL 1.3 or later, or Expat
1813 (license (list license:lppl1.3+ license:expat))))
1815 (define-public texlive-hyphen-dutch
1817 (inherit (texlive-hyphen-package
1818 "texlive-hyphen-dutch" "nl"
1819 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex")
1821 "1bg9g790ksq5cn8qihai6pacmkp9vpf35h4771z361nvwa40l8yk")))
1822 (synopsis "Hyphenation patterns for Dutch")
1823 (description "The package provides hyphenation patterns for Dutch in T1/EC
1824 and UTF-8 encodings.")
1825 (license license:lppl1.0+)))
1827 (define-public texlive-hyphen-english
1829 (inherit (texlive-hyphen-package
1830 "texlive-hyphen-english" '("en-gb" "en-us")
1831 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-en-gb.tex"
1832 "/tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex")
1834 "08b3jihjaamcl1pvffi0s47nwavkm66l9mrrmby3l32dfpkprrc5")))
1835 (synopsis "Hyphenation patterns for American and British English")
1836 (description "The package provides additional hyphenation patterns for
1837 American and British English in ASCII encoding.")
1838 (license (license:non-copyleft
1839 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex"
1840 "FSF all permissive license"))))
1842 (define-public texlive-hyphen-esperanto
1844 (inherit (texlive-hyphen-package
1845 "texlive-hyphen-esperanto" "eo"
1846 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eo.tex")
1848 "1503kzn9bk4mm4ba35cka2hm8rz0v3j5l30v5rrsd4rqgpibcgic")))
1849 (synopsis "Hyphenation patterns for Esperanto")
1850 (description "The package provides hyphenation patterns for Esperanto ISO
1851 Latin 3 and UTF-8 encodings.")
1852 (license license:lppl1.0+)))
1854 (define-public texlive-hyphen-estonian
1856 (inherit (texlive-hyphen-package
1857 "texlive-hyphen-estonian" "et"
1858 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-et.tex")
1860 "1rdas2450ib02rwy65i69l86nyc9h15bl07xbbwhmhxfnj8zj4v8")))
1861 (synopsis "Hyphenation patterns for Estonian")
1862 (description "The package provides hyphenation patterns for Estonian in
1863 T1/EC and UTF-8 encodings.")
1864 ;; Dual licensed under either license.
1865 (license (list license:lppl1.3+ license:expat))))
1867 (define-public texlive-hyphen-ethiopic
1868 (let ((template (texlive-hyphen-package
1869 "texlive-hyphen-ethiopic" "mul-ethi"
1870 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mul-ethi.tex")
1872 "1b93fc6j4aybh0pgq23hsn1njm6asf7sfz803fbj3ai0whsxd10l"))))
1875 (synopsis "Hyphenation patterns for Ethiopic scripts")
1876 (description "The package provides hyphenation patterns for languages
1877 written using the Ethiopic script for Unicode engines. They are not supposed
1878 to be linguistically relevant in all cases and should, for proper typography,
1879 be replaced by files tailored to individual languages.")
1880 (license license:expat))))
1882 (define-public texlive-hyphen-finnish
1884 (inherit (texlive-hyphen-package
1885 "texlive-hyphen-finnish" "fi"
1886 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi.tex")
1888 "1pa8sjs9zvnv1y6dma4s60sf9cr4zrvhxwm6i8cnshm84q16w4bc")))
1889 (synopsis "Hyphenation patterns for Finnish")
1890 (description "The package provides hyphenation patterns for Finnish in
1891 T1/EC and UTF-8 encodings.")
1892 (license license:public-domain)))
1894 (define-public texlive-hyphen-schoolfinnish
1896 (inherit (texlive-hyphen-package
1897 "texlive-hyphen-schoolfinnish" "fi-x-school"
1898 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi-x-school.tex")
1900 "1w5n6gaclgifbbnafg32vz3mfaibyldvh4yh1ya3sq9fwfmv035c")))
1901 (synopsis "Hyphenation patterns for Finnish for school")
1902 (description "The package provides hyphenation patterns for Finnish for
1903 school in T1/EC and UTF-8 encodings.")
1904 (license license:public-domain)))
1906 (define-public texlive-hyphen-french
1908 (inherit (texlive-hyphen-package
1909 "texlive-hyphen-french" "fr"
1910 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fr.tex")
1912 "0jc3kqys6cxjw8x8pzjln7z78l8s7f5rlyrkv7dzr1kiwnwilk9d")))
1913 (synopsis "Hyphenation patterns for French")
1914 (description "The package provides hyphenation patterns for French in
1915 T1/EC and UTF-8 encodings.")
1916 (license license:expat)))
1918 (define-public texlive-hyphen-friulan
1920 (inherit (texlive-hyphen-package
1921 "texlive-hyphen-friulan" "fur"
1922 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fur.tex")
1924 "1dlnh8slpf50mryxv7zzbx08xp54zkdfs1j7y37ipwbrajvd740f")))
1925 (synopsis "Hyphenation patterns for Friulan")
1926 (description "The package provides hyphenation patterns for Friulan in
1928 (license license:lppl1.3+)))
1930 (define-public texlive-hyphen-galician
1931 (let ((template (texlive-hyphen-package
1932 "texlive-hyphen-galician" "gl"
1933 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-gl.tex")
1935 "13zx2r3nrxdr025g2lxrph0ga6wf7cs8dxixn4fhbl6xr1cx028g"))))
1938 (synopsis "Hyphenation patterns for Galician")
1939 (description "The package provides hyphenation patterns for Galician in
1940 T1/EC and UTF-8 encodings.")
1941 (license license:lppl1.3))))
1943 (define-public texlive-hyphen-georgian
1945 (inherit (texlive-hyphen-package
1946 "texlive-hyphen-georgian" "ka"
1947 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ka.tex")
1949 "0l0hk7ka04fr8x11nnw95x151cxyycy0fph772m3a3p8qk4x9wp7")))
1950 (synopsis "Hyphenation patterns for Georgian")
1951 (description "The package provides hyphenation patterns for Georgian in
1952 T8M, T8K, and UTF-8 encodings.")
1953 (license license:lppl1.3+)))
1955 (define-public texlive-hyphen-german
1957 (inherit (texlive-hyphen-package
1958 "texlive-hyphen-german" '("de-1901" "de-1996" "de-ch-1901")
1959 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1901.tex"
1960 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1996.tex"
1961 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-ch-1901.tex"
1962 "/tex/generic/dehyph/dehyphn.tex"
1963 "/tex/generic/dehyph/dehypht.tex"
1964 "/tex/generic/dehyph/dehyphtex.tex"
1965 "/tex/generic/dehyph/README")
1967 "17cc5hd0fr3ykpgly9nxaiz4sik3kmfn2wyxz1fkdnqqhl3i41a0")))
1968 (synopsis "Hyphenation patterns for German")
1969 (description "This package provides hyphenation patterns for German in
1970 T1/EC and UTF-8 encodings, for traditional and reformed spelling, including
1972 ;; The patterns are released under the Expat license; the dehyph* files
1973 ;; are released under the LPPL version 1 or later.
1974 (license (list license:expat license:lppl1.0+))))
1976 (define-public texlive-hyphen-greek
1978 (inherit (texlive-hyphen-package
1979 "texlive-hyphen-greek" '("el-monoton" "el-polyton")
1980 (list "/doc/generic/elhyphen/"
1981 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-monoton.tex"
1982 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-polyton.tex"
1983 "/tex/generic/hyphen/grmhyph5.tex"
1984 "/tex/generic/hyphen/grphyph5.tex")
1986 "1qyr6m1nh6d4wj68616cfxv4wjpiy1w2rlldxlx2ajzba381w3hf")))
1987 (synopsis "Hyphenation patterns for Greek")
1988 (description "This package provides hyphenation patterns for Modern Greek
1989 in monotonic and polytonic spelling in LGR and UTF-8 encodings.")
1990 (license license:lppl)))
1992 (define-public texlive-hyphen-hungarian
1994 (inherit (texlive-hyphen-package
1995 "texlive-hyphen-hungarian" "hu"
1996 (list "/doc/generic/huhyphen/"
1997 "/doc/generic/hyph-utf8/languages/hu/"
1998 "/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex")
2000 "006d2290lcsqzh9ljansbaj9k52s17zgkw0kpsspn5l7a8n00zcl")))
2001 (synopsis "Hyphenation patterns for Hungarian")
2002 (description "This package provides hyphenation patterns for Hungarian in
2003 T1/EC and UTF-8 encodings.")
2004 ;; Any of these licenses
2005 (license (list license:gpl2 license:lgpl2.1+ license:mpl1.1))))
2007 (define-public texlive-hyphen-icelandic
2009 (inherit (texlive-hyphen-package
2010 "texlive-hyphen-icelandic" "is"
2011 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-is.tex")
2013 "1m9xj41csj3ldym09d82zjbd3345sg2z10d8pxpvhgibf97mb66h")))
2014 (synopsis "Hyphenation patterns for Icelandic")
2015 (description "This package provides hyphenation patterns for Icelandic in
2016 T1/EC and UTF-8 encodings.")
2017 (license license:lppl1.2+)))
2019 (define-public texlive-hyphen-indic
2021 (inherit (texlive-hyphen-package
2022 "texlive-hyphen-indic"
2023 '("as" "bn" "gu" "hi" "kn" "ml" "mr" "or" "pa" "ta" "te")
2024 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-as.tex"
2025 "/tex/generic/hyph-utf8/patterns/tex/hyph-bn.tex"
2026 "/tex/generic/hyph-utf8/patterns/tex/hyph-gu.tex"
2027 "/tex/generic/hyph-utf8/patterns/tex/hyph-hi.tex"
2028 "/tex/generic/hyph-utf8/patterns/tex/hyph-kn.tex"
2029 "/tex/generic/hyph-utf8/patterns/tex/hyph-ml.tex"
2030 "/tex/generic/hyph-utf8/patterns/tex/hyph-mr.tex"
2031 "/tex/generic/hyph-utf8/patterns/tex/hyph-or.tex"
2032 "/tex/generic/hyph-utf8/patterns/tex/hyph-pa.tex"
2033 "/tex/generic/hyph-utf8/patterns/tex/hyph-ta.tex"
2034 "/tex/generic/hyph-utf8/patterns/tex/hyph-te.tex")
2036 "02d2kcd3lpk95fykjwhzw9s2a1s2w1skz8h2mmszrz979d1xzhpm")))
2037 (synopsis "Indic hyphenation patterns")
2038 (description "This package provides hyphenation patterns for Assamese,
2039 Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Panjabi, Tamil
2040 and Telugu for Unicode engines.")
2041 (license license:expat)))
2043 (define-public texlive-hyphen-indonesian
2045 (inherit (texlive-hyphen-package
2046 "texlive-hyphen-indonesian" "id"
2047 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-id.tex")
2049 "1r62w02rf0i4z0jgij54d16qjbj0zyfwm9dwdkqka76jrivij83q")))
2050 (synopsis "Indonesian hyphenation patterns")
2051 (description "This package provides hyphenation patterns for
2052 Indonesian (Bahasa Indonesia) in ASCII encoding. They are probably also
2053 usable for Malay (Bahasa Melayu).")
2054 (license license:gpl2)))
2056 (define-public texlive-hyphen-interlingua
2058 (inherit (texlive-hyphen-package
2059 "texlive-hyphen-interlingua" "ia"
2060 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ia.tex")
2062 "0a9na20vjnzhgjbicaxay0jk4rm5zg1rjyiswr377mjhd9mx5cg3")))
2063 (synopsis "Interlingua hyphenation patterns")
2064 (description "This package provides hyphenation patterns for Interlingua
2065 in ASCII encoding.")
2066 (license license:lppl1.3+)))
2068 (define-public texlive-hyphen-irish
2070 (inherit (texlive-hyphen-package
2071 "texlive-hyphen-irish" "ga"
2072 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ga.tex")
2074 "1h1l9jzkpsb91nyhz6s6c9jfrbz8jx5ip8vyq3dkz0rl6g960i6b")))
2075 (synopsis "Irish hyphenation patterns")
2076 (description "This package provides hyphenation patterns for
2077 Irish (Gaeilge) in T1/EC and UTF-8 encodings.")
2078 ;; Either of these licenses
2079 (license (list license:gpl2+ license:expat))))
2081 (define-public texlive-hyphen-italian
2083 (inherit (texlive-hyphen-package
2084 "texlive-hyphen-italian" "it"
2085 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-it.tex")
2087 "03c7jiqslfxvl3gbdx79hggbvrfi2l4z2bnwxc0na8f8lkp1m787")))
2088 (synopsis "Italian hyphenation patterns")
2089 (description "This package provides hyphenation patterns for Italian in
2090 ASCII encoding. Compliant with the Recommendation UNI 6461 on hyphenation
2091 issued by the Italian Standards Institution (Ente Nazionale di Unificazione
2093 (license license:lppl1.3+)))
2095 (define-public texlive-hyphen-kurmanji
2097 (inherit (texlive-hyphen-package
2098 "texlive-hyphen-kurmanji" "kmr"
2099 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-kmr.tex")
2101 "01ylbsi5wymrdrxr9b28nmjmcj72mdhqr657lwsb6m9aj33c9ql6")))
2102 (synopsis "Kurmanji hyphenation patterns")
2103 (description "This package provides hyphenation patterns for
2104 Kurmanji (Northern Kurdish) as spoken in Turkey and by the Kurdish diaspora in
2105 Europe, in T1/EC and UTF-8 encodings.")
2106 (license license:lppl1.3)))
2108 (define-public texlive-hyphen-latin
2110 (inherit (texlive-hyphen-package
2111 "texlive-hyphen-latin" '("la-x-classic" "la-x-liturgic" "la")
2112 '("/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex"
2113 "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-liturgic.tex"
2114 "/tex/generic/hyph-utf8/patterns/tex/hyph-la.tex"
2115 "/tex/generic/hyph-utf8/patterns/tex-8bit/hyph-la-x-classic.ec.tex")
2117 "119rf6sk1f639ky6zr9njn21nsxzgfmjci94y26745qs8w08ilkl")))
2118 (synopsis "Liturgical Latin hyphenation patterns")
2119 (description "This package provides hyphenation patterns for Latin in
2120 T1/EC and UTF-8 encodings, mainly in modern spelling (u when u is needed and v
2121 when v is needed), medieval spelling with the ligatures @code{\\ae} and
2122 @code{\\oe} and the (uncial) lowercase 'v' written as a 'u' is also supported.
2123 Apparently there is no conflict between the patterns of modern Latin and those
2124 of medieval Latin. It also includes hyphenation patterns for the Classical
2125 Latin in T1/EC and UTF-8 encodings. Classical Latin hyphenation patterns are
2126 different from those of 'plain' Latin, the latter being more adapted to modern
2127 Latin. It also provides hyphenation patterns for the Liturgical Latin in
2128 T1/EC and UTF-8 encodings.")
2129 ;; Either of these licenses
2130 (license (list license:lppl1.0+ license:expat))))
2132 (define-public texlive-hyphen-latvian
2134 (inherit (texlive-hyphen-package
2135 "texlive-hyphen-latvian" "lv"
2136 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lv.tex")
2138 "00jf8xma4ldz0zpqwma97k9q3j0mqx7qdj6b7baph3n5xgc24aaw")))
2139 (synopsis "Latvian hyphenation patterns")
2140 (description "This package provides hyphenation patterns for Latvian in
2141 L7X and UTF-8 encodings.")
2142 ;; Either of these licenses.
2143 (license (list license:gpl2 license:lgpl2.1))))
2145 (define-public texlive-hyphen-lithuanian
2147 (inherit (texlive-hyphen-package
2148 "texlive-hyphen-lithuanian" "lt"
2149 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lt.tex")
2151 "1kfq7j2ajg6nj952s1ygd520sj9z9kl0bqvd291a36ni2b1frzgd")))
2152 (synopsis "Lithuanian hyphenation patterns")
2153 (description "This package provides hyphenation patterns for Lithuanian in
2154 L7X and UTF-8 encodings.")
2155 ;; "Do ... whatever ... as long as you respect the copyright"; as part of
2156 ;; the hyph-utf8 package we choose the LPPL license.
2157 (license license:lppl)))
2159 (define-public texlive-hyphen-macedonian
2161 (inherit (texlive-hyphen-package
2162 "texlive-hyphen-macedonian" "mk"
2163 '("/tex/generic/hyph-utf8/patterns/tex/hyph-mk.tex"
2164 "/tex/generic/hyph-utf8/patterns/tex-8bit/hyph-mk.macedonian.tex")
2166 "1fv6y8gpic5ciw8cclfxc8h3wr5xir1j0a7shixja1pmdyz7db2b")))
2167 (synopsis "Macedonian hyphenation patterns")
2168 (description "This package provides hyphenation patterns for Macedonian.")
2169 ;; XXX: License just says 'GPL'. Assume GPL2 since the file predates GPL3.
2170 (license license:gpl2+)))
2172 (define-public texlive-hyphen-mongolian
2174 (inherit (texlive-hyphen-package
2175 "texlive-hyphen-mongolian" '("mn-cyrl-x-lmc" "mn-cyrl")
2176 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl-x-lmc.tex"
2177 "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl.tex")
2179 "1y1b91ihrdl9bad3rxlsfjpd9wmyd5zzgci3qv9w8qqk33jxhwya")))
2180 (synopsis "Mongolian hyphenation patterns in Cyrillic script")
2181 (description "This package provides hyphenation patterns for Mongolian in
2182 T2A, LMC and UTF-8 encodings.")
2183 ;; Either of these licenses
2184 (license (list license:lppl1.3+ license:expat))))
2186 (define-public texlive-hyphen-norwegian
2188 (inherit (texlive-hyphen-package
2189 "texlive-hyphen-norwegian" '("nb" "nn" "no")
2190 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nb.tex"
2191 "/tex/generic/hyph-utf8/patterns/tex/hyph-nn.tex"
2192 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex")
2194 "08gbwj64p4fckm199k52yp5lx65h9f4wwdkvl4pv4aa7k370jq9y")))
2195 (synopsis "Norwegian Bokmal and Nynorsk hyphenation patterns")
2196 (description "This package provides hyphenation patterns for Norwegian
2197 Bokmal and Nynorsk in T1/EC and UTF-8 encodings.")
2198 (license (license:non-copyleft
2199 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex"
2200 "FSF All permissive license"))))
2202 (define-public texlive-hyphen-occitan
2204 (inherit (texlive-hyphen-package
2205 "texlive-hyphen-occitan" "oc"
2206 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-oc.tex")
2208 "0vhjbq2nr58vhqwwky3cwx4dqiwjmmfwp81rb65mfpf0m8yypdfg")))
2209 (synopsis "Occitan hyphenation patterns")
2210 (description "This package provides hyphenation patterns for Occitan in
2211 T1/EC and UTF-8 encodings. They are supposed to be valid for all the Occitan
2212 variants spoken and written in the wide area called 'Occitanie' by the French.
2213 It ranges from the Val d'Aran within Catalunya, to the South Western Italian
2214 Alps encompassing the southern half of the French pentagon.")
2215 (license license:lppl1.0+)))
2217 (define-public texlive-hyphen-pali
2219 (inherit (texlive-hyphen-package
2220 "texlive-hyphen-pali" "pi"
2221 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pi.tex")
2223 "1fak853s4ijdqgrnhwymaq1lh8jab3qfyxapdmf6qpg6bqd20kxq")))
2224 (synopsis "Panjabi hyphenation patterns")
2225 (description "This package provides hyphenation patterns for Panjabi in
2227 ;; Can be used with either license.
2228 (license (list license:expat license:lgpl3+ license:gpl3+))))
2230 (define-public texlive-hyphen-piedmontese
2232 (inherit (texlive-hyphen-package
2233 "texlive-hyphen-piedmontese" "pms"
2234 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pms.tex")
2236 "0xva3l2gwzkqw1sz64k5g5iprhdyr27w1mv8rxp8x62i5y3aqr1k")))
2237 (synopsis "Piedmontese hyphenation patterns")
2238 (description "This package provides hyphenation patterns for Piedmontese
2239 in ASCII encoding. Compliant with 'Gramatica dla lengua piemonteisa' by
2241 (license license:lppl1.3+)))
2243 (define-public texlive-hyphen-polish
2245 (inherit (texlive-hyphen-package
2246 "texlive-hyphen-polish" "pl"
2247 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex")
2249 "1c22g99isxapv4xjrmsw24hhp1xb83wbgcxyd8j24mxdnizywxzm")))
2250 (synopsis "Polish hyphenation patterns")
2251 (description "This package provides hyphenation patterns for Polish in QX
2252 and UTF-8 encodings.")
2253 ;; No differing license declared, so we choose the project license.
2254 (license license:lppl)))
2256 (define-public texlive-hyphen-portuguese
2258 (inherit (texlive-hyphen-package
2259 "texlive-hyphen-portuguese" "pt"
2260 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pt.tex")
2262 "00rkjy4p7893zs940bq3s4hp7al0skgxqggj5qfax0bx8karf30b")))
2263 (synopsis "Portuguese hyphenation patterns")
2264 (description "This package provides hyphenation patterns for Portuguese in
2265 T1/EC and UTF-8 encodings.")
2266 (license license:bsd-3)))
2268 (define-public texlive-hyphen-romanian
2270 (inherit (texlive-hyphen-package
2271 "texlive-hyphen-romanian" "ro"
2272 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ro.tex")
2274 "1ykb5v7ip6p3n34wq8qypfyrap4gg946by5rsl6ab0k5gv6ypsbf")))
2275 (synopsis "Romanian hyphenation patterns")
2276 (description "This package provides hyphenation patterns for Romanian in
2277 T1/EC and UTF-8 encodings.")
2278 ;; No differing license declared, so we choose the project license.
2279 (license license:lppl)))
2281 (define-public texlive-hyphen-romansh
2283 (inherit (texlive-hyphen-package
2284 "texlive-hyphen-romansh" "rm"
2285 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex")
2287 "0a1q9p6sp5n6a9w6xhwk03vmkrrmnh2md7g1k4qhnf0dc4h7dy9r")))
2288 (synopsis "Romansh hyphenation patterns")
2289 (description "This package provides hyphenation patterns for Romansh in
2290 ASCII encodings. They are supposed to comply with the rules indicated by the
2291 Lia Rumantscha (Romansh language society).")
2292 (license license:lppl1.3+)))
2294 (define-public texlive-hyphen-russian
2296 (inherit (texlive-hyphen-package
2297 "texlive-hyphen-russian" "ru"
2298 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex")
2300 "00sy7qh5f8ryxw36fwbyd1yi2hxhv7hmk99yp7dwh73n4mxv6lpl")))
2301 (synopsis "Russian hyphenation patterns")
2302 (description "This package provides hyphenation patterns for Russian in
2303 T2A and UTF-8 encodings.")
2304 (license license:lppl1.2+)))
2306 (define-public texlive-hyphen-sanskrit
2308 (inherit (texlive-hyphen-package
2309 "texlive-hyphen-sanskrit" "sa"
2310 (list "/doc/generic/hyph-utf8/languages/sa/hyphenmin.txt"
2311 "/tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex")
2313 "1bkzj8swj4lbswf1vr4pb1jg6dixzs7p8h8zm8s8as52h442aida")))
2314 (synopsis "Sanskrit hyphenation patterns")
2315 (description "This package provides hyphenation patterns for Sanskrit and
2316 Prakrit in longdesc transliteration, and in Devanagari, Bengali, Kannada,
2317 Malayalam longdesc and Telugu scripts for Unicode engines.")
2318 ;; "You may freely use, copy, modify and/or distribute this file."
2319 (license (license:non-copyleft
2320 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex"))))
2322 (define-public texlive-hyphen-serbian
2324 (inherit (texlive-hyphen-package
2325 "texlive-hyphen-serbian" '("sh-cyrl" "sh-latn" "sr-cyrl")
2326 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-cyrl.tex"
2327 "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-latn.tex"
2328 "/tex/generic/hyph-utf8/patterns/tex/hyph-sr-cyrl.tex")
2330 "0pwc9z0m5y6acq1vqm0da9akg156jbhxzvsfp2f8bsz5b99y5z45")))
2331 (synopsis "Serbian hyphenation patterns")
2332 (description "This package provides hyphenation patterns for Serbian in
2333 T1/EC, T2A and UTF-8 encodings.")
2334 ;; Any version of the GPL.
2335 (license license:gpl3+)))
2337 (define-public texlive-hyphen-slovak
2339 (inherit (texlive-hyphen-package
2340 "texlive-hyphen-slovak" "sk"
2341 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex")
2343 "0ppp53bbclp5c8wvx748krvrp5y5053khgkjnnv966a90fvp3vgd")))
2344 (synopsis "Slovak hyphenation patterns")
2345 (description "This package provides hyphenation patterns for Slovak in
2346 T1/EC and UTF-8 encodings.")
2347 (license license:gpl2+)))
2349 (define-public texlive-hyphen-slovenian
2351 (inherit (texlive-hyphen-package
2352 "texlive-hyphen-slovenian" "sl"
2353 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sl.tex")
2355 "02n8l9yf4hqyhbpsc1n6b2mggy09z6lq4dcb8ndiwawb6h0mp7s4")))
2356 (synopsis "Slovenian hyphenation patterns")
2357 (description "This package provides hyphenation patterns for Slovenian in
2358 T1/EC and UTF-8 encodings.")
2360 (license (list license:lppl1.0+ license:expat))))
2362 (define-public texlive-hyphen-spanish
2364 ;; The source files "eshyph-make.lua" and "eshyph.src" are provided to
2365 ;; generate obsolete hyphenation patterns, which aren't included in a
2366 ;; default TeX Live distribution, so we don't include them either.
2367 (inherit (texlive-hyphen-package
2368 "texlive-hyphen-spanish" "es"
2369 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-es.tex")
2371 "05lbvjkj304xxghyihk8js0kmg97ddlgijld3bp81bc28h4cav0v")))
2372 (synopsis "Hyphenation patterns for Spanish")
2373 (description "The package provides hyphenation patterns for Spanish in
2374 T1/EC and UTF-8 encodings.")
2375 (license license:expat)))
2377 (define-public texlive-hyphen-swedish
2379 (inherit (texlive-hyphen-package
2380 "texlive-hyphen-swedish" "sv"
2381 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sv.tex")
2383 "1n7incy7n24pix1q2i8c3h7i78zpql5ayhskavlmy6mhd7ayncaw")))
2384 (synopsis "Swedish hyphenation patterns")
2385 (description "This package provides hyphenation patterns for Swedish in
2386 T1/EC and UTF-8 encodings.")
2387 (license license:lppl1.2+)))
2389 (define-public texlive-hyphen-thai
2391 (inherit (texlive-hyphen-package
2392 "texlive-hyphen-thai" "th"
2393 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-th.tex")
2395 "00gxcs4jfqifd5cnrjipn77m73fmpw2qms4lp216jj3kz4a7h9kf")))
2396 (synopsis "Thai hyphenation patterns")
2397 (description "This package provides hyphenation patterns for Thai in LTH
2398 and UTF-8 encodings.")
2399 (license license:lppl1.3+)))
2401 (define-public texlive-hyphen-turkish
2402 (let ((template (texlive-hyphen-package
2403 "texlive-hyphen-turkish" "tr"
2404 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-tr.tex")
2406 "04sihjgpm31i5bi67rrfp15w3imn7hxwwk70v0vhx053ghxy72vh"))))
2409 (synopsis "Hyphenation patterns for Turkish")
2410 (description "The package provides hyphenation patterns for Turkish in
2411 T1/EC and UTF-8 encodings. The patterns for Turkish were first produced for
2412 the Ottoman Texts Project in 1987 and were suitable for both Modern Turkish
2413 and Ottoman Turkish in Latin script, however the required character set didn't
2414 fit into EC encoding, so support for Ottoman Turkish had to be dropped to keep
2415 compatibility with 8-bit engines.")
2416 (license license:lppl1.0+))))
2418 (define-public texlive-hyphen-turkmen
2419 (let ((template (texlive-hyphen-package
2420 "texlive-hyphen-turkmen" "tk"
2421 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-tk.tex")
2423 "0g5ip2lw9g47s61mv3cypswc6qm7zy9c4iqq4h19ysvds81adzkr"))))
2426 (synopsis "Hyphenation patterns for Turkmen")
2427 (description "The package provides hyphenation patterns for Turkmen in
2428 T1/EC and UTF-8 encodings.")
2429 (license license:expat))))
2431 (define-public texlive-hyphen-ukrainian
2433 (inherit (texlive-hyphen-package
2434 "texlive-hyphen-ukrainian" "uk"
2435 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-uk.tex")
2437 "0fbfhx1fmbshxr4ihsjaqgx251h69h7i288p8gh3w6ysgxr53p60")))
2438 (synopsis "Ukrainian hyphenation patterns")
2439 (description "This package provides hyphenation patterns for Ukrainian in
2440 T2A and UTF-8 encodings.")
2441 ;; No version specified
2442 (license license:lppl)))
2444 (define-public texlive-hyphen-uppersorbian
2446 (inherit (texlive-hyphen-package
2447 "texlive-hyphen-uppersorbian" "hsb"
2448 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hsb.tex")
2450 "0x0051wph3sqmzzw6prvjy6bp7gn02rbmys1bmbc210jk3pkylfj")))
2451 (synopsis "Upper Sorbian hyphenation patterns")
2452 (description "This package provides hyphenation patterns for Upper Sorbian
2453 in T1/EC and UTF-8 encodings.")
2454 (license license:lppl1.3a+)))
2456 (define-public texlive-hyphen-welsh
2458 (inherit (texlive-hyphen-package
2459 "texlive-hyphen-welsh" "cy"
2460 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cy.tex")
2462 "1bpxp3jiifdw7waw2idz5j9xgi3526nkxm8mbmsspr4mlf2xyr76")))
2463 (synopsis "Welsh hyphenation patterns")
2464 (description "This package provides hyphenation patterns for Welsh in
2465 T1/EC and UTF-8 encodings.")
2467 (license (list license:lppl1.0+ license:expat))))
2469 (define-public texlive-hyph-utf8
2471 (inherit (simple-texlive-package
2473 (list "/source/generic/hyph-utf8/"
2474 "/source/luatex/hyph-utf8/"
2475 "/doc/luatex/hyph-utf8/"
2476 "/tex/luatex/hyph-utf8/etex.src"
2477 ;; Used to extract luatex-hyphen.lua
2478 "/tex/latex/base/docstrip.tex"
2480 ;; Documentation; we can't use the whole directory because
2481 ;; it includes files from other packages.
2482 "/doc/generic/hyph-utf8/CHANGES"
2483 "/doc/generic/hyph-utf8/HISTORY"
2484 "/doc/generic/hyph-utf8/hyph-utf8.pdf"
2485 "/doc/generic/hyph-utf8/hyph-utf8.tex"
2486 "/doc/generic/hyph-utf8/hyphenation-distribution.pdf"
2487 "/doc/generic/hyph-utf8/hyphenation-distribution.tex"
2488 "/doc/generic/hyph-utf8/img/miktex-languages.png"
2489 "/doc/generic/hyph-utf8/img/texlive-collection.png")
2491 "0rgp0zn36gwzqwpmjb9h01ns3m19v3r7lpw1h0pc9bx115w6c9jx")))
2492 (outputs '("out" "doc"))
2493 (build-system gnu-build-system)
2495 `(#:tests? #f ; there are none
2496 #:modules ((guix build gnu-build-system)
2500 (list "-C" "source/luatex/hyph-utf8/"
2501 (string-append "DO_TEX = tex --interaction=nonstopmode '&tex' $<")
2502 (string-append "RUNDIR =" (assoc-ref %outputs "out") "/share/texmf-dist/tex/luatex/hyph-utf8/")
2503 (string-append "DOCDIR =" (assoc-ref %outputs "doc") "/share/texmf-dist/doc/luatex/hyph-utf8/")
2504 ;; hyphen.cfg is neither included nor generated, so let's only build the lua file.
2505 (string-append "UNPACKED = $(NAME).lua"))
2507 (modify-phases %standard-phases
2508 ;; TeX isn't usable at this point, so we first need to generate the
2511 (lambda* (#:key inputs outputs #:allow-other-keys)
2512 ;; Target directories must exist.
2513 (mkdir-p (string-append (assoc-ref %outputs "out")
2514 "/share/texmf-dist/tex/luatex/hyph-utf8/"))
2515 (mkdir-p (string-append (assoc-ref %outputs "doc")
2516 "/share/texmf-dist/doc/luatex/hyph-utf8/"))
2518 ;; We cannot build the documentation because that requires a
2519 ;; fully functional pdflatex, which depends on this package.
2520 (substitute* "source/luatex/hyph-utf8/Makefile"
2521 (("all: .*") "all: $(RUNFILES)\n"))
2523 ;; Find required fonts for building tex.fmt
2525 (string-append (assoc-ref inputs "texlive-cm")
2526 "/share/texmf-dist/fonts/tfm/public/cm:"
2527 (assoc-ref inputs "texlive-knuth-lib")
2528 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
2529 ;; ...and find all tex files in this environment.
2534 (map (match-lambda ((_ . dir) dir)) inputs)
2537 ;; Generate tex.fmt.
2538 (let ((where "source/luatex/hyph-utf8"))
2540 (with-directory-excursion where
2541 (invoke "tex" "-ini"
2542 (string-append (assoc-ref inputs "texlive-tex-plain")
2543 "/share/texmf-dist/tex/plain/config/tex.ini"))))))
2544 (add-before 'build 'build-loaders-and-converters
2545 (lambda* (#:key outputs #:allow-other-keys)
2546 (let* ((root (string-append (assoc-ref outputs "out")
2547 "/share/texmf-dist"))
2550 "/tex/generic/hyph-utf8/conversions")))
2554 (with-directory-excursion "source/generic/hyph-utf8"
2555 (substitute* "generate-converters.rb"
2556 (("\\$path_root=File.*")
2557 (string-append "$path_root=\"" root "\"\n"))
2558 ;; Avoid error with newer Ruby.
2559 (("#1\\{%") "#1{%%"))
2560 (invoke "ruby" "generate-converters.rb"))
2563 (lambda* (#:key source outputs #:allow-other-keys)
2564 (let ((doc (assoc-ref outputs "doc"))
2565 (out (assoc-ref outputs "out")))
2568 (string-append source "/doc")
2569 (string-append doc "/doc"))
2571 (string-append source "/tex/luatex/hyph-utf8/etex.src")
2572 (string-append out "/share/texmf-dist/tex/luatex/hyph-utf8/")))
2577 ;; The following packages are needed for build "tex.fmt", which we need
2578 ;; for a working "tex".
2582 texlive-hyphen-base))
2583 (home-page "https://ctan.org/pkg/hyph-utf8")
2584 (synopsis "Hyphenation patterns expressed in UTF-8")
2585 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
2586 hyphenation patterns in UTF-8 format, whereas older systems require
2587 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
2588 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
2589 etc). The present package offers a collection of conversions of existing
2590 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
2591 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
2592 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
2593 converters, will completely supplant the older patterns.")
2594 ;; Individual files each have their own license. Most of these files are
2595 ;; independent hyphenation patterns.
2596 (license (list license:lppl1.0+
2611 license:public-domain
2614 (define-deprecated-package texlive-generic-hyph-utf8 texlive-hyph-utf8)
2616 (define-public texlive-dehyph-exptl
2618 (inherit (simple-texlive-package
2619 "texlive-dehyph-exptl"
2620 (list "/tex/generic/dehyph-exptl/"
2621 "/doc/generic/dehyph-exptl/")
2623 "0l57a0r4gycp94kz6lrxqvh9m57j2shmbr2laf5zjb0qnrisq46d")
2626 (list texlive-hyphen-base texlive-hyph-utf8))
2627 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
2628 (synopsis "Hyphenation patterns for German")
2629 (description "The package provides experimental hyphenation patterns for
2630 the German language, covering both traditional and reformed orthography. The
2631 patterns can be used with packages Babel and hyphsubst from the Oberdiek
2633 ;; Hyphenation patterns are under the Expat license; documentation is
2635 (license (list license:expat license:lppl))))
2637 (define-deprecated-package texlive-generic-dehyph-exptl texlive-dehyph-exptl)
2639 (define-public texlive-ukrhyph
2641 (inherit (simple-texlive-package
2643 (list "/doc/generic/ukrhyph/"
2644 "/tex/generic/ukrhyph/")
2646 "01ma274sixcrbpb7fpqkxwfvrnzfj2srv9b4a42rfnph1pdql74z")
2648 (home-page "https://www.ctan.org/pkg/ukrhyph")
2649 (synopsis "Hyphenation patterns for Ukrainian")
2650 (description "The package provides a range of hyphenation patterns for
2651 Ukrainian, depending on the encoding of the output font including the standard
2653 (license license:lppl)))
2655 (define-public texlive-ruhyphen
2656 (let ((template (simple-texlive-package
2658 (list "/source/generic/ruhyphen/"
2659 "/tex/generic/ruhyphen/")
2661 "18n1bqhh8jv765vz3a3fjwffy7m71vhwx9yq8zl0p5j7p72q9qcn")
2666 (substitute-keyword-arguments (package-arguments template)
2668 `(modify-phases ,phases
2671 (let ((cwd (getcwd)))
2672 ;; Remove generated files.
2673 (for-each delete-file
2674 (find-files "tex/generic/ruhyphen/"
2676 (substitute* "source/generic/ruhyphen/Makefile"
2677 (("./mkcyryo") (string-append cwd "/source/generic/ruhyphen/mkcyryo")))
2678 (with-directory-excursion "tex/generic/ruhyphen"
2680 (string-append cwd "/source/generic/ruhyphen/Makefile"))))))))))
2682 (list coreutils gawk sed grep perl))
2683 (home-page "https://www.ctan.org/pkg/ruhyphen")
2684 (synopsis "Hyphenation patterns for Russian")
2685 (description "The package provides a collection of Russian hyphenation
2686 patterns supporting a number of Cyrillic font encodings, including T2,
2687 UCY (Omega Unicode Cyrillic), LCY, LWN (OT2), and koi8-r.")
2688 (license license:lppl))))
2690 (define-public texlive-inputenx
2692 (inherit (simple-texlive-package
2694 (list "doc/latex/inputenx/"
2695 "tex/latex/inputenx/"
2696 "source/latex/inputenx/")
2698 "0snjndrcynm4w8m9iq8gmadzhrbwvsdy4y1ak24ia0hpsicdi4aj")
2700 (home-page "https://ctan.org/macros/latex/contrib/inputenx")
2701 (synopsis "Enhanced input encoding handling")
2703 "This package deals with input encodings. It provides a wider range of input
2704 encodings using standard mappings, than does inputenc. It also covers nearly all
2705 slots. In this way, it serves as more up to date replacement for the inputenc
2707 (license license:lppl1.3+)))
2709 (define-public texlive-kpathsea
2710 (let ((template (simple-texlive-package
2712 (list "/web2c/amiga-pl.tcx"
2713 "/web2c/cp1250cs.tcx"
2714 "/web2c/cp1250pl.tcx"
2715 "/web2c/cp1250t1.tcx"
2717 "/web2c/cp852-cs.tcx"
2718 "/web2c/cp852-pl.tcx"
2721 "/web2c/fmtutil.cnf"
2728 "/web2c/macce-pl.tcx"
2729 "/web2c/macce-t1.tcx"
2734 "/web2c/mktexdir.opt"
2736 "/web2c/mktexnam.opt"
2738 "/web2c/natural.tcx"
2739 "/web2c/tcvn-t5.tcx"
2740 "/web2c/viscii-t5.tcx")
2742 "00q2nny7lw7jxyln6ch4h0alygbrzk8yynliyc291m53kds1h0mr")
2747 (substitute-keyword-arguments (package-arguments template)
2748 ((#:phases phases '%standard-phases)
2749 `(modify-phases ,phases
2750 (add-after 'unpack 'patch-references
2751 (lambda* (#:key inputs #:allow-other-keys)
2752 (let ((dirs (map dirname (list (which "sed")
2754 (substitute* '("web2c/mktexdir"
2758 (format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
2762 (home-page "https://www.tug.org/texlive/")
2763 (synopsis "Files related to the path searching library for TeX")
2764 (description "Kpathsea is a library and utility programs which provide
2765 path searching facilities for TeX file types, including the self-locating
2766 feature required for movable installations, layered on top of a general search
2767 mechanism. This package provides supporting files.")
2768 (license license:lgpl3+))))
2770 (define-public texlive-kpfonts
2772 (inherit (simple-texlive-package
2774 (list "doc/fonts/kpfonts/"
2775 "fonts/enc/dvips/kpfonts/"
2776 "fonts/map/dvips/kpfonts/"
2777 "fonts/tfm/public/kpfonts/"
2778 "fonts/type1/public/kpfonts/"
2779 "fonts/vf/public/kpfonts/"
2780 "source/fonts/kpfonts/"
2781 "tex/latex/kpfonts/")
2782 (base32 "0inai1p9bbjd5x790nsamakjaj0imvwv21mp9f98dwvdlj58vkqb")
2784 (home-page "https://ctan.org/fonts/kpfonts")
2785 (synopsis "Complete set of fonts for text and mathematics")
2787 "The family contains text fonts in roman, sans-serif and monospaced
2788 shapes, with true small caps and old-style numbers; the package offers full
2789 support of the textcomp package. The mathematics fonts include all the AMS
2790 fonts, in both normal and bold weights. Each of the font types is available
2791 in two main versions: default and light. Each version is available in four
2792 variants: default; oldstyle numbers; oldstyle numbers with old ligatures such
2793 as ct and st, and long-tailed capital Q; and veryoldstyle with long s. Other
2794 variants include small caps as default or large small caps, and for
2795 mathematics both upright and slanted shapes for Greek letters, as well as
2796 default and narrow versions of multiple integrals.")
2797 (license license:gpl3+)))
2799 (define-public texlive-latexconfig
2801 (inherit (simple-texlive-package
2802 "texlive-latexconfig"
2803 (list "/tex/latex/latexconfig/")
2805 "10ynmd8b9b9l1wl1mva23yz4zir53p6r5z31s39wmxz19pj12qvx")
2807 (home-page "https://www.tug.org/")
2808 (synopsis "Configuration files for LaTeX-related formats")
2809 (description "The package provides configuration files for LaTeX-related
2811 (license license:lppl)))
2813 (define-public texlive-latex-base
2814 (let ((template (simple-texlive-package
2815 "texlive-latex-base"
2816 (list "/doc/latex/base/"
2817 "/source/latex/base/"
2818 ;; Almost all files in /tex/latex/base are generated, but
2820 "/tex/latex/base/idx.tex"
2821 "/tex/latex/base/lablst.tex"
2822 "/tex/latex/base/ltnews.cls"
2823 "/tex/latex/base/ltxcheck.tex"
2824 "/tex/latex/base/ltxguide.cls"
2825 "/tex/latex/base/minimal.cls"
2826 "/tex/latex/base/sample2e.tex"
2827 "/tex/latex/base/small2e.tex"
2828 "/tex/latex/base/testpage.tex"
2829 "/tex/latex/base/texsys.cfg")
2831 "0msyjz0937rc7hs77v6la152sdiwd73qj41z1mlyh0m3dns9qz4g")
2836 (substitute-keyword-arguments (package-arguments template)
2837 ((#:modules modules '())
2838 '((guix build gnu-build-system)
2843 `(modify-phases ,phases
2844 ;; The literal tab in the dtx file is translated to the string
2845 ;; "^^I" in the generated Lua file, which causes a syntax error.
2846 (add-after 'unpack 'fix-lua-sources
2848 (substitute* "source/latex/base/ltluatex.dtx"
2851 (lambda* (#:key inputs #:allow-other-keys)
2852 ;; Find required fonts
2858 (assoc-ref inputs pkg-name)
2859 "/share/texmf-dist/fonts/tfm/public"
2861 '(("texlive-etex" . "/etex")
2862 ("texlive-cm" . "/cm")
2863 ("texlive-fonts-latex" . "/latex-fonts")
2864 ("texlive-knuth-lib" . "/knuth-lib")))
2866 (let ((cwd (getcwd)))
2870 cwd "/source/latex/base//:"
2873 (map (match-lambda ((_ . dir) dir)) inputs)
2875 (setenv "LUAINPUTS" (string-append cwd "/build:")))
2877 ;; This is the actual build step.
2879 (invoke "tex" "-ini" "-interaction=scrollmode"
2880 "-output-directory=build" "unpack.ins")
2882 ;; XXX: We can't build all formats at this point, nor are they
2883 ;; part of the LaTeX base, so we disable them. Actually, we
2884 ;; should be running this all in a profile hook, so that only
2885 ;; selected formats and hyphenation patterns are included, but it
2886 ;; takes long and TeX Live isn't designed to be modular like
2887 ;; that. Everything operates on a shared directory, which we
2888 ;; would only have at profile generation time.
2889 (let ((disabled-formats
2890 '("aleph aleph" "lamed aleph" "uptex uptex" "euptex euptex"
2891 "eptex eptex" "ptex ptex" "pdfxmltex pdftex" "platex eptex"
2892 "platex-dev eptex" "uplatex-dev euptex"
2893 "csplain pdftex" "mf mf-nowin" "mex pdftex" "pdfmex pdftex"
2894 "luacsplain luatex" "optex luatex"
2895 ;; LuaJIT is not ported to powerpc64le* or riscv64 yet and
2896 ;; building these fail on powerpc.
2897 ,@(if (or (target-powerpc?)
2899 '("luajittex" "luajithbtex" "mfluajit") '())
2900 "cont-en xetex" "cont-en pdftex" "pdfcsplain xetex"
2901 "pdfcsplain pdftex" "pdfcsplain luatex" "cslatex pdftex"
2902 "mptopdf pdftex" "uplatex euptex" "jadetex pdftex"
2903 "amstex pdftex" "pdfcslatex pdftex" "lollipop tex"
2904 "xmltex pdftex" "pdfjadetex pdftex" "eplain pdftex"
2905 "texsis pdftex" "mltex pdftex" "utf8mex pdftex")))
2907 (install-file (string-append
2908 (assoc-ref inputs "texlive-kpathsea")
2909 "/share/texmf-dist/web2c/fmtutil.cnf")
2911 (make-file-writable "web2c/fmtutil.cnf")
2912 (substitute* "web2c/fmtutil.cnf"
2913 (((string-append "^(" (string-join disabled-formats "|") ")") m)
2914 (string-append "#! " m))
2915 (("translate-file=cp227")
2916 (format #f "translate-file=~a/share/texmf-dist/web2c/cp227"
2917 (assoc-ref inputs "texlive-kpathsea")))))
2918 (invoke "fmtutil-sys" "--all"
2920 (string-append "--cnffile=web2c/fmtutil.cnf"))
2921 ;; We don't actually want to install it.
2922 (delete-file "web2c/fmtutil.cnf")))
2923 (add-after 'install 'install-more
2924 (lambda* (#:key inputs outputs #:allow-other-keys)
2925 (let* ((out (assoc-ref outputs "out"))
2926 (root (string-append out "/share/texmf-dist"))
2927 (target (string-append root "/tex/latex/base"))
2928 (web2c (string-append root "/web2c"))
2929 (makeindex (string-append root "/makeindex/latex")))
2930 (for-each delete-file (find-files "." "\\.(log|aux)$"))
2932 ;; The usedir directive in docstrip.ins is ignored, so these
2933 ;; two files end up in the wrong place. Move them.
2935 (for-each (lambda (file)
2936 (install-file file makeindex)
2940 (for-each (cut install-file <> target)
2941 (find-files "build" ".*"))
2942 (for-each (cut install-file <> web2c)
2943 (find-files "web2c" ".*")))))))))
2945 `(("texlive-bin" ,texlive-bin)
2946 ("texlive-tex-ini-files" ,texlive-tex-ini-files)
2947 ("texlive-tex-plain" ,texlive-tex-plain)
2948 ("texlive-kpathsea" ,texlive-kpathsea)
2949 ("texlive-cm" ,texlive-cm)
2950 ("texlive-fonts-latex" ,texlive-fonts-latex)
2951 ("texlive-knuth-lib" ,texlive-knuth-lib)
2952 ("texlive-luatexconfig"
2954 "texlive-luatexconfig" (number->string %texlive-revision)
2955 (list "/tex/generic/config/luatex-unicode-letters.tex"
2956 "/tex/generic/config/luatexiniconfig.tex"
2957 "/web2c/texmfcnf.lua")
2959 "0yjx7nw9mgfgnq1givkzbxh7z7ncw1liaddjgm7n2nwn0aw6xfdg")))))
2961 (list texlive-dehyph-exptl
2965 texlive-hyphen-afrikaans
2966 texlive-hyphen-ancientgreek
2967 texlive-hyphen-armenian
2968 texlive-hyphen-basque
2969 texlive-hyphen-belarusian
2970 texlive-hyphen-bulgarian
2971 texlive-hyphen-catalan
2972 texlive-hyphen-chinese
2973 texlive-hyphen-churchslavonic
2974 texlive-hyphen-coptic
2975 texlive-hyphen-croatian
2976 texlive-hyphen-czech
2977 texlive-hyphen-danish
2978 texlive-hyphen-dutch
2979 texlive-hyphen-english
2980 texlive-hyphen-esperanto
2981 texlive-hyphen-estonian
2982 texlive-hyphen-ethiopic
2983 texlive-hyphen-finnish
2984 texlive-hyphen-schoolfinnish
2985 texlive-hyphen-french
2986 texlive-hyphen-friulan
2987 texlive-hyphen-galician
2988 texlive-hyphen-georgian
2989 texlive-hyphen-german
2990 texlive-hyphen-greek
2991 texlive-hyphen-hungarian
2992 texlive-hyphen-icelandic
2993 texlive-hyphen-indic
2994 texlive-hyphen-indonesian
2995 texlive-hyphen-interlingua
2996 texlive-hyphen-irish
2997 texlive-hyphen-italian
2998 texlive-hyphen-kurmanji
2999 texlive-hyphen-latin
3000 texlive-hyphen-latvian
3001 texlive-hyphen-lithuanian
3002 texlive-hyphen-macedonian
3003 texlive-hyphen-mongolian
3004 texlive-hyphen-norwegian
3005 texlive-hyphen-occitan
3007 texlive-hyphen-piedmontese
3008 texlive-hyphen-polish
3009 texlive-hyphen-portuguese
3010 texlive-hyphen-romanian
3011 texlive-hyphen-romansh
3012 texlive-hyphen-russian
3013 texlive-hyphen-sanskrit
3014 texlive-hyphen-serbian
3015 texlive-hyphen-slovak
3016 texlive-hyphen-slovenian
3017 texlive-hyphen-spanish
3018 texlive-hyphen-swedish
3020 texlive-hyphen-turkish
3021 texlive-hyphen-turkmen
3022 texlive-hyphen-ukrainian
3023 texlive-hyphen-uppersorbian
3024 texlive-hyphen-welsh
3025 texlive-unicode-data
3028 texlive-latex-l3kernel
3029 texlive-latex-l3backend
3030 ;; TODO: This dependency isn't needed for LaTeX version 2021-06-01
3032 ;; https://tug.org/pipermail/tex-live/2021-June/047180.html
3033 texlive-latex-l3packages
3034 texlive-latexconfig))
3035 (home-page "https://www.ctan.org/pkg/latex-base")
3036 (synopsis "Base sources of LaTeX")
3038 "This bundle comprises the source of LaTeX itself, together with several
3039 packages which are considered \"part of the kernel\". This bundle, together
3040 with the required packages, constitutes what every LaTeX distribution should
3042 (license license:lppl1.3c+))))
3044 (define-public texlive-latex-atveryend
3046 (inherit (simple-texlive-package
3047 "texlive-latex-atveryend"
3048 '("/doc/latex/atveryend/README.md"
3049 "/tex/latex/atveryend/")
3051 "1gz5ssxjlqa53a8blsmdk2qjahzc910ldh26xjxfxgqnqb03rqx7")
3053 (home-page "https://www.ctan.org/pkg/atveryend")
3054 (synopsis "Hooks at the very end of a document")
3056 "This LaTeX packages provides two hooks for @code{\\end@{document@}}
3057 that are executed after the hook of @code{\\AtEndDocument}:
3058 @code{\\AfterLastShipout} can be used for code that is to be executed right
3059 after the last @code{\\clearpage} before the @file{.aux} file is closed.
3060 @code{\\AtVeryEndDocument} is used for code after closing and final reading
3061 of the @file{.aux} file.")
3062 (license license:lppl1.3c+)))
3064 (define-public texlive-latex-auxhook
3066 (inherit (simple-texlive-package
3067 "texlive-latex-auxhook"
3068 '("/doc/latex/auxhook/README.md"
3069 "/tex/latex/auxhook/")
3071 "1xh445shr00rh43nnz03xh8k2mdrxgsr03lllqpgvwhm6yzsydkf")
3073 (home-page "https://www.ctan.org/pkg/auxhook")
3074 (synopsis "Hooks for auxiliary files")
3076 "This package provides hooks for adding code at the beginning of
3077 @file{.aux} files.")
3078 (license license:lppl1.3c+)))
3080 (define-public texlive-latex-epstopdf-pkg
3082 (inherit (simple-texlive-package
3083 "texlive-latex-epstopdf-pkg"
3084 '("/doc/latex/epstopdf-pkg/"
3085 "/tex/latex/epstopdf-pkg/")
3087 "0zl6jiyp2cvvyqx3lwxdkcvvnkqgbwj4issq07cagf61gljq6fns")
3089 (home-page "https://www.ctan.org/pkg/epstopdf-pkg")
3090 (synopsis "Call @command{epstopdf} \"on the fly\"")
3092 "The package adds support for EPS files in the @code{graphicx} package
3093 when running under pdfTeX. If an EPS graphic is detected, the package
3094 spawns a process to convert the EPS to PDF, using the script
3095 @command{epstopdf}.")
3096 (license license:lppl1.3c+)))
3098 (define-public texlive-latex-filecontents
3100 (name "texlive-latex-filecontents")
3101 (version (number->string %texlive-revision))
3104 (uri (texlive-ref "latex" "filecontents"))
3105 (file-name (string-append name "-" version "-checkout"))
3108 "1cmfigg5jx3hmdyh4gv8kwxi7dg076ldkxmr46s05xvhzjig1z9x"))))
3109 (build-system texlive-build-system)
3110 (arguments '(#:tex-directory "latex/filecontents"))
3111 (home-page "https://www.ctan.org/pkg/filecontents")
3112 (synopsis "Extended filecontents and filecontents* environments")
3114 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
3115 enable a LaTeX source file to generate external files as it runs through
3116 LaTeX. However, there are two limitations of these environments: they refuse
3117 to overwrite existing files, and they can only be used in the preamble of a
3118 document. The filecontents package removes these limitations, letting you
3119 overwrite existing files and letting you use @code{filecontents} /
3120 @code{filecontents*} anywhere.")
3121 (license license:lppl1.3c+)))
3123 (define-public texlive-epsf
3125 (inherit (simple-texlive-package
3127 (list "/doc/generic/epsf/"
3128 "/tex/generic/epsf/")
3130 "03jcf0kqh47is965d2590miwj7d5kif3c4mgsnvkyl664jzjkh92")
3132 (home-page "https://www.ctan.org/pkg/epsf")
3133 (synopsis "Simple macros for EPS inclusion")
3135 "This package provides the original (and now obsolescent) graphics
3136 inclusion macros for use with dvips, still widely used by Plain TeX users (in
3137 particular). For LaTeX users, the package is nowadays (rather strongly)
3138 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
3139 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
3140 users, via its Plain TeX version.)")
3141 (license license:public-domain)))
3143 (define-deprecated-package texlive-generic-epsf texlive-epsf)
3145 (define-public texlive-latex-fancyvrb
3147 (inherit (simple-texlive-package
3148 "texlive-latex-fancyvrb"
3149 (list "/doc/latex/fancyvrb/README"
3150 "/tex/latex/fancyvrb/")
3152 "0pdilgpw4zc0ipp4z9kdi61nymifyjy2mfpk74xk2cw9vhynkk3w")
3154 (home-page "https://www.ctan.org/pkg/fancyvrb")
3155 (synopsis "Sophisticated verbatim text")
3157 "This package provides tools for the flexible handling of verbatim text
3158 including: verbatim commands in footnotes; a variety of verbatim environments
3159 with many parameters; ability to define new customized verbatim environments;
3160 save and restore verbatim text and environments; write and read files in
3161 verbatim mode; build \"example\" environments (showing both result and
3163 (license license:lppl1.0+)))
3165 (define-public texlive-graphics-def
3167 (inherit (simple-texlive-package
3168 "texlive-graphics-def"
3169 (list "/doc/latex/graphics-def/README.md"
3170 "/tex/latex/graphics-def/")
3172 "0b66fy06safyrd717rfr476g1gz6nqfv1vqvam7ac2yy0g0djb17")
3175 (list texlive-latex-epstopdf-pkg))
3176 (home-page "https://www.ctan.org/pkg/latex-graphics")
3177 (synopsis "Color and graphics option files")
3179 "This bundle is a combined distribution consisting of @file{dvips.def},
3180 @file{pdftex.def}, @file{luatex.def}, @file{xetex.def}, @file{dvipdfmx.def},
3181 and @file{dvisvgm.def} driver option files for the LaTeX graphics and color
3183 (license license:lppl1.3c+)))
3185 (define-public texlive-graphics-cfg
3187 (inherit (simple-texlive-package
3188 "texlive-graphics-cfg"
3189 (list "/doc/latex/graphics-cfg/README.md"
3190 "/tex/latex/graphics-cfg/")
3192 "00n63adb2laf43lzix39xl68aq0k5k80mmrw602w99w5n7f96gsf")
3194 (home-page "https://www.ctan.org/pkg/latex-graphics")
3195 (synopsis "Sample configuration files for LaTeX color and graphics")
3197 "This bundle includes @file{color.cfg} and @file{graphics.cfg} files that
3198 set default \"driver\" options for the color and graphics packages.")
3199 (license license:public-domain)))
3201 (define-public texlive-greek-fontenc
3203 (inherit (simple-texlive-package
3204 "texlive-greek-fontenc"
3205 (list "doc/latex/greek-fontenc/"
3206 "tex/latex/greek-fontenc/"
3207 "source/latex/greek-fontenc/")
3209 "1ncsvj5mlnkgllrvqdnbkv0qwpv2y7jkq3x2wdmm7d3daqq0ka5h")
3211 (home-page "https://ctan.org/language/greek/greek-fontenc")
3212 (synopsis "LICR macros and encoding definition files for Greek")
3214 "The package provides Greek LICR macro definitions and encoding definition files
3215 for Greek text font encodings for use with fontenc.")
3216 (license license:lppl1.3+)))
3218 (define-public texlive-latex-graphics
3220 (name "texlive-latex-graphics")
3221 (version (number->string %texlive-revision))
3224 (uri (texlive-ref "latex" "graphics"))
3225 (file-name (string-append name "-" version "-checkout"))
3228 "0fgjl58f25zvagssz4dwmmsclzw8cr7mx00kdrbx2kcnamcb7h8d"))))
3229 (build-system texlive-build-system)
3230 (arguments '(#:tex-directory "latex/graphics"))
3232 (list texlive-graphics-cfg texlive-graphics-def))
3233 (home-page "https://www.ctan.org/pkg/latex-graphics")
3234 (synopsis "LaTeX standard graphics bundle")
3236 "This is a collection of LaTeX packages for producing color, including
3237 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
3238 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
3239 keyval, and lscape.")
3240 (license license:lppl1.3c+)))
3242 (define-public texlive-latex-hycolor
3244 (inherit (simple-texlive-package
3245 "texlive-latex-hycolor"
3246 (list "/doc/latex/hycolor/README.md"
3247 "/tex/latex/hycolor/")
3249 "026lfb4l7b3q8g6zc68siqandhb1x98cbycn7njknqva6s99aiqn")
3251 (home-page "https://www.ctan.org/pkg/latex-graphics")
3252 (synopsis "Color for hyperref and bookmark")
3254 "This package provides the code for the @code{color} option that is
3255 used by @code{hyperref} and @code{bookmark}.")
3256 (license license:lppl1.3c+)))
3258 (define-public texlive-xcolor
3259 (let ((template (simple-texlive-package
3261 (list "/doc/latex/xcolor/"
3262 "/source/latex/xcolor/")
3264 "12q6spmpxg30alhvarjmxzigmz7lazapbrb0mc4vhbn6n1sdz7pp"))))
3268 (substitute-keyword-arguments (package-arguments template)
3269 ((#:tex-directory _ #t)
3272 `(modify-phases ,phases
3273 (add-after 'unpack 'chdir
3274 (lambda _ (chdir "source/latex/xcolor") #t))
3275 (add-after 'install 'move-files
3276 (lambda* (#:key outputs #:allow-other-keys)
3277 (let ((share (string-append (assoc-ref outputs "out")
3278 "/share/texmf-dist")))
3279 (mkdir-p (string-append share "/dvips/xcolor"))
3280 (rename-file (string-append share "/tex/latex/xcolor/xcolor.pro")
3281 (string-append share "/dvips/xcolor/xcolor.pro"))
3283 ;; TODO: Propagate texlive-hyperref and many others in the next rebuild
3284 ;; cycle. Grep for '\usepackage' to see what packages it requires.
3285 ;; (propagated-inputs (list texlive-hyperref ...))
3286 (home-page "https://www.ctan.org/pkg/xcolor")
3287 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
3289 "The package starts from the basic facilities of the colorcolor package,
3290 and provides easy driver-independent access to several kinds of color tints,
3291 shades, tones, and mixes of arbitrary colors. It allows a user to select a
3292 document-wide target color model and offers complete tools for conversion
3293 between eight color models. Additionally, there is a command for alternating
3294 row colors plus repeated non-aligned material (like horizontal lines) in
3296 (license license:lppl1.2+))))
3298 (define-deprecated-package texlive-latex-xcolor texlive-xcolor)
3300 (define-public texlive-xmltex
3301 (let ((template (simple-texlive-package
3304 "/doc/otherformats/xmltex/"
3307 "023gv9axq05vwqz50fnkig24dzahwlc4raks2s8xc4pzrv2dv1zy"))))
3311 (substitute-keyword-arguments (package-arguments template)
3312 ((#:tex-directory _ #t)
3314 ((#:phases phases '%standard-phases)
3315 `(modify-phases ,phases
3316 (add-before 'install 'generate-formats
3317 (lambda* (#:key inputs #:allow-other-keys)
3319 (for-each (lambda (f)
3320 (copy-file f (basename f)))
3321 (find-files "tex" "\\.(ini|tex)$"))
3322 (invoke "fmtutil-sys" "--byfmt" "xmltex"
3324 (invoke "fmtutil-sys" "--byfmt" "pdfxmltex"
3326 (add-after 'install 'install-formats-and-wrappers
3327 (lambda* (#:key inputs outputs #:allow-other-keys)
3328 (let* ((out (assoc-ref outputs "out"))
3329 (texlive-bin (assoc-ref inputs "texlive-bin"))
3330 (pdftex (string-append texlive-bin "/bin/pdftex"))
3331 (web2c (string-append out "/share/texmf-dist/web2c")))
3333 (copy-recursively "web2c" web2c)
3334 ;; Create convenience command wrappers.
3335 (mkdir-p (string-append out "/bin"))
3336 (symlink pdftex (string-append out "/bin/xmltex"))
3337 (symlink pdftex (string-append out "/bin/pdfxmltex"))
3340 ;; The following fonts are propagated as a texlive-updmap.cfg as the font
3341 ;; maps need to be recreated for the fonts to be usable. They are
3342 ;; required by xmltex through mlnames.sty and unicode.sty.
3343 `(("texlive" ,(texlive-updmap.cfg
3354 ;; The following fonts, while not required, are used if
3359 (list texlive-tex-ini-files))
3360 (home-page "https://www.ctan.org/pkg/xmltex/")
3361 (synopsis "Support for parsing XML documents")
3362 (description "The package provides an implementation of a parser for
3363 documents matching the XML 1.0 and XML Namespace Recommendations. Element and
3364 attribute names, as well as character data, may use any characters allowed in
3365 XML, using UTF-8 or a suitable 8-bit encoding.")
3366 (license license:lppl1.0+)))) ;per xmltex/base/readme.txt
3368 (define-public texlive-hyperref
3369 (let ((template (simple-texlive-package
3371 (list "/doc/latex/hyperref/"
3372 "/source/latex/hyperref/"
3373 ;; These files are not generated from the sources
3374 "/tex/latex/hyperref/minitoc-hyper.sty"
3375 "/tex/latex/hyperref/ntheorem-hyper.sty"
3376 "/tex/latex/hyperref/xr-hyper.sty")
3378 "0nmbxaq676m2y9fgdji0bxqchmrli4hwhspijaszx51b3ki6bj2h"))))
3382 (substitute-keyword-arguments (package-arguments template)
3383 ((#:tex-directory _ #t)
3386 `(modify-phases ,phases
3387 (add-after 'unpack 'chdir
3388 (lambda _ (chdir "source/latex/hyperref") #t))))))
3390 (list texlive-generic-atbegshi
3391 texlive-generic-bitset
3392 texlive-generic-etexcmds
3393 texlive-generic-gettitlestring
3394 texlive-generic-iftex
3395 texlive-generic-infwarerr
3396 texlive-generic-intcalc
3397 texlive-generic-kvdefinekeys
3398 texlive-generic-kvsetkeys
3399 texlive-generic-ltxcmds
3400 texlive-generic-pdfescape
3401 texlive-latex-auxhook
3402 texlive-latex-atveryend
3403 texlive-latex-hycolor
3404 texlive-latex-kvoptions
3405 texlive-latex-letltxmacro
3406 texlive-latex-pdftexcmds
3407 texlive-latex-refcount
3408 texlive-latex-rerunfilecheck
3410 ;; TODO: Add this in next rebuild cycle.
3412 ;;texlive-latex-graphics ;for keyval
3416 (home-page "https://www.ctan.org/pkg/hyperref")
3417 (synopsis "Extensive support for hypertext in LaTeX")
3419 "The @code{hyperref} package is used to handle cross-referencing commands
3420 in LaTeX to produce hypertext links in the document. The package provides
3421 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
3422 embedded @code{pdfmark} commands for processing by Acrobat
3423 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
3424 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
3425 pdf and HTML backends. The package is distributed with the @code{backref} and
3426 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
3427 (license license:lppl1.3+))))
3429 (define-deprecated-package texlive-latex-hyperref texlive-hyperref)
3431 (define-public texlive-oberdiek
3433 (name "texlive-oberdiek")
3434 (version (number->string %texlive-revision))
3437 (uri (texlive-ref "latex" "oberdiek"))
3438 (file-name (string-append name "-" version "-checkout"))
3441 "1cadrkpdqs65gxsaszfgfd8wqp8pvpik2sjmlyq3hz5p9yna3p9m"))))
3442 (build-system texlive-build-system)
3444 '(#:tex-directory "latex/oberdiek"
3445 #:build-targets '("oberdiek.ins")
3447 (modify-phases %standard-phases
3448 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
3449 (add-after 'unpack 'do-not-process-ifpdf.ins
3451 (substitute* "oberdiek.ins"
3452 (("ifpdf.ins") "ifpdf.dtx"))
3455 (list texlive-generic-iftex))
3456 (home-page "https://www.ctan.org/pkg/oberdiek")
3457 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
3459 "The bundle comprises various LaTeX packages, providing among others:
3460 better accessibility support for PDF files; extensible chemists reaction
3461 arrows; record information about document class(es) used; and many more.")
3462 (license license:lppl1.3+)))
3464 (define-deprecated-package texlive-latex-oberdiek texlive-oberdiek)
3466 (define-public texlive-latex-rerunfilecheck
3468 (inherit (simple-texlive-package
3469 "texlive-latex-rerunfilecheck"
3470 '("/doc/latex/rerunfilecheck/"
3471 "/tex/latex/rerunfilecheck/")
3473 "1myz0d5bxhxvl4220ikywh921qld8n324kk9kscqbc5iw4063g56")
3476 (list texlive-generic-infwarerr texlive-generic-uniquecounter
3477 texlive-latex-atveryend texlive-latex-kvoptions
3478 texlive-latex-pdftexcmds))
3479 (home-page "https://www.ctan.org/pkg/rerunfilecheck")
3480 (synopsis "Checksum based rerun checks on auxiliary files")
3482 "This package provides additional rerun warnings if some auxiliary
3483 files have changed. It is based on MD5 checksum, provided by pdfTeX.")
3484 (license license:lppl1.3c+)))
3486 (define-public texlive-latex-tools
3488 (name "texlive-latex-tools")
3489 (version (number->string %texlive-revision))
3492 (uri (texlive-ref "latex" "tools"))
3493 (file-name (string-append name "-" version "-checkout"))
3496 "1vm5wfyd0vbmv31a29fc7k8y14xiw00msvdx9n7dzsn9zpfjflqs"))))
3497 (build-system texlive-build-system)
3499 '(#:tex-directory "latex/tools"
3500 #:build-targets '("tools.ins")
3501 #:phases (modify-phases %standard-phases
3502 (add-after 'install 'provide-array-2016-10-06.sty
3503 (lambda* (#:key outputs #:allow-other-keys)
3504 ;; XXX: array.sty does:
3505 ;; "DeclareRelease{}{2016-10-06}{array-2016-10-06.sty}"
3506 ;; ...which causes some users (hypre) to look for that
3507 ;; file specifically. Provide it.
3508 (with-directory-excursion (string-append
3509 (assoc-ref outputs "out")
3510 "/share/texmf-dist/tex"
3512 (symlink "array.sty" "array-2016-10-06.sty")))))))
3513 (home-page "https://www.ctan.org/pkg/latex-tools")
3514 (synopsis "LaTeX standard tools bundle")
3516 "This package is a collection of (variously) simple tools provided as
3517 part of the LaTeX required tools distribution, comprising the following
3518 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
3519 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
3520 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
3522 (license license:lppl1.3+)))
3524 (define-public texlive-url
3526 (inherit (simple-texlive-package
3528 (list "/doc/latex/url/"
3531 "184m40wgnx939ky2hbxnj0v9aak023ldrhgffp0lgyk9wdqpxlqg")
3533 (home-page "https://www.ctan.org/pkg/url")
3534 (synopsis "Verbatim with URL-sensitive line breaks")
3535 (description "The command @code{\\url} is a form of verbatim command that
3536 allows linebreaks at certain characters or combinations of characters, accepts
3537 reconfiguration, and can usually be used in the argument to another command.
3538 The command is intended for email addresses, hypertext links,
3539 directories/paths, etc., which normally have no spaces, so by default the
3540 package ignores spaces in its argument. However, a package option allows
3541 spaces, which is useful for operating systems where spaces are a common part
3543 ;; The license header states that it is under LPPL version 2 or later, but
3544 ;; the latest version is 1.3c.
3545 (license license:lppl1.3c+)))
3547 (define-deprecated-package texlive-latex-url texlive-url)
3549 (define-public texlive-tetex
3551 (inherit (simple-texlive-package
3553 (list "/dvips/tetex/"
3554 "/fonts/enc/dvips/tetex/"
3555 "/fonts/map/dvips/tetex/")
3557 "1si3as8mwi8837965djlw6jhwwzsp3r1hkflvdxv2avx9vb45hjb")
3559 (home-page "https://www.ctan.org/pkg/tetex")
3560 (synopsis "Font maps originally from teTeX")
3561 (description "This package provides font maps that were originally part of
3562 the now obsolete teTeX distributions but are still used at the core of the TeX
3563 Live distribution.")
3564 (license license:public-domain)))
3566 (define-public texlive-latex-l3kernel
3568 (name "texlive-latex-l3kernel")
3569 (version (number->string %texlive-revision))
3572 (uri (texlive-ref "latex" "l3kernel"))
3573 (file-name (string-append name "-" version "-checkout"))
3576 "068xkinrkl6qjf8r6a9i0msvnzp4y7a3gnd2h12ws0km1dv19r20"))))
3577 (build-system texlive-build-system)
3579 '(#:tex-directory "latex/l3kernel"
3582 #:texlive-latex-base #f))
3584 (list texlive-docstrip))
3585 (home-page "https://www.ctan.org/pkg/l3kernel")
3586 (synopsis "LaTeX3 programmers’ interface")
3588 "The l3kernel bundle provides an implementation of the LaTeX3
3589 programmers’ interface, as a set of packages that run under LaTeX 2e. The
3590 interface provides the foundation on which the LaTeX3 kernel and other future
3591 code are built: it is an API for TeX programmers. The packages are set up so
3592 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
3593 (license license:lppl1.3c+)))
3595 (define-public texlive-latex-l3backend
3597 (name "texlive-latex-l3backend")
3598 (version (number->string %texlive-revision))
3601 (uri (texlive-ref "latex" "l3backend"))
3602 (file-name (string-append name "-" version "-checkout"))
3605 "0mlwyzssqn6wkyv9hzp24d40p8f20zrjqgvqyqs1rd7q7awan42a"))))
3606 (build-system texlive-build-system)
3608 '(#:tex-directory "latex/l3backend"
3611 #:texlive-latex-base #f))
3613 (list texlive-docstrip))
3614 (home-page "https://www.ctan.org/pkg/l3backend")
3615 (synopsis "LaTeX3 backend drivers")
3617 "This package forms parts of expl3, and contains the code used to
3618 interface with backends (drivers) across the expl3 codebase. The functions
3619 here are defined differently depending on the engine in use. As such, these
3620 are distributed separately from l3kernel to allow this code to be updated on
3621 an independent schedule.")
3622 (license license:lppl1.3c+)))
3624 (define-public texlive-latex-l3packages
3626 (name "texlive-latex-l3packages")
3627 (version (number->string %texlive-revision))
3628 (source (texlive-origin name version
3629 '("/source/latex/l3packages/"
3630 ;; These files have been generated with a
3631 ;; bespoke source tree and then modified by
3632 ;; hand. It's unfeasible to recreate them. See:
3633 ;; https://tug.org/pipermail/tex-live/2021-June/047188.html
3634 "/tex/latex/l3packages/xparse/xparse-2018-04-12.sty"
3635 "/tex/latex/l3packages/xparse/xparse-2020-10-01.sty"
3637 ;; TODO: This file can be removed when using
3638 ;; LaTeX version 2021-06-01 or newer. See:
3639 ;; https://tug.org/pipermail/tex-live/2021-June/047180.html
3640 "/tex/latex/l3packages/xparse/xparse-generic.tex")
3641 (base32 "05rjxdqhhg7z1z2rmhmwj2qf09xygymayy3jzj9fdphk0pab3amm")))
3642 (build-system texlive-build-system)
3644 '(#:tex-directory "latex/l3packages"
3647 #:texlive-latex-base #f
3648 ;; build-targets must be specified manually since they are in
3650 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
3652 (modify-phases %standard-phases
3653 ;; All package sources are in sub-directories, so we need to add them
3655 (add-after 'unpack 'set-TEXINPUTS
3657 (let ((cwd (getcwd)))
3659 (string-append cwd "/source/latex/l3packages/l3keys2e:"
3660 cwd "/source/latex/l3packages/xparse:"
3661 cwd "/source/latex/l3packages/xfrac:"
3662 cwd "/source/latex/l3packages/xfp:"
3663 cwd "/source/latex/l3packages/xtemplate"
3664 ;; The terminating ":" is required to include the
3665 ;; l3kernel input as well.
3668 (add-after 'install 'copy-generated-files
3669 (lambda* (#:key outputs #:allow-other-keys)
3670 (let ((dest (string-append (assoc-ref outputs "out")
3671 "/share/texmf-dist/tex/latex/l3packages")))
3672 (copy-recursively "tex/latex/l3packages/xparse" dest)))))
3675 (list texlive-docstrip))
3677 (list texlive-latex-l3kernel))
3678 (home-page "https://www.ctan.org/pkg/l3packages")
3679 (synopsis "High-level LaTeX3 concepts")
3681 "This bundle holds prototype implementations of concepts for a LaTeX
3682 designer interface, to be used with the experimental LaTeX kernel as
3683 programming tools and kernel support. Packages provided in this release are:
3686 @item l3keys2e, which makes the facilities of the kernel module l3keys
3687 available for use by LaTeX 2e packages;
3688 @item xfrac, which provides flexible splitlevel fractions;
3689 @item xparse, which provides a high-level interface for declaring document
3691 @item xtemplate, which provides a means of defining generic functions using a
3694 (license license:lppl1.3c+)))
3696 (define-public texlive-dvips-l3backend
3698 (inherit (simple-texlive-package
3699 "texlive-dvips-l3backend"
3701 "/dvips/l3backend/")
3703 "1hvj153h1pn93h6n76dv3mg9ai0mcz9q9mysfiqjfpqzijz9ikky")
3705 (home-page "https://www.ctan.org/pkg/l3backend")
3706 (synopsis "LaTeX3 backend drivers for dvips")
3708 "This package forms parts of expl3, and contains the code used to
3709 interface with backends (drivers) across the expl3 codebase. The functions
3710 here are defined for the dvips engine only.")
3711 (license license:lppl1.3c+)))
3713 (define-public texlive-fontspec
3714 (let ((template (simple-texlive-package
3716 (list "/doc/latex/fontspec/"
3717 "/source/latex/fontspec/"
3718 "/tex/latex/fontspec/fontspec.cfg")
3720 "06rms8dw1j67v3rgv6xmfykdmgbxi5rp78yxc782cy1sw07blgsg"))))
3724 (substitute-keyword-arguments (package-arguments template)
3725 ((#:tex-directory _ #t)
3728 `(modify-phases ,phases
3729 (add-after 'unpack 'chdir
3730 (lambda _ (chdir "source/latex/fontspec/") #t))))))
3732 (list texlive-cm texlive-latex-l3packages texlive-lm))
3733 (home-page "https://www.ctan.org/pkg/fontspec")
3734 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
3736 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
3737 automatic and unified interface to feature-rich AAT and OpenType fonts through
3738 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
3739 the l3kernel and xparse bundles from the LaTeX 3 development team.")
3740 (license license:lppl1.3+))))
3742 (define-deprecated-package texlive-latex-fontspec texlive-fontspec)
3744 (define-public texlive-grffile
3745 (let ((template (simple-texlive-package
3747 (list "/doc/latex/grffile/README.md"
3748 "/source/latex/grffile/grffile.dtx")
3750 "1ib2n4d52faipvxdvdh4ar1p5j997h7cza26sfyd8z3qdf0naqgx"))))
3754 (substitute-keyword-arguments (package-arguments template)
3755 ((#:tex-directory _ #t)
3757 ((#:build-targets _ #t)
3758 '(list "grffile.dtx"))
3760 `(modify-phases ,phases
3761 (add-after 'unpack 'chdir
3762 (lambda _ (chdir "source/latex/grffile/")))))))
3763 (home-page "https://www.ctan.org/pkg/grffile")
3764 (synopsis "Extended file name support for graphics (legacy package)")
3766 "The original grffile package extended the file name processing of the
3767 @code{graphics} package to support a larger range of file names. The base
3768 LaTeX code now supports multiple dots and spaces, and this package by default
3769 is a stub that just loads @code{graphicx}.")
3770 (license license:lppl1.3c+))))
3772 (define-public texlive-stringenc
3773 (let ((template (simple-texlive-package
3775 (list "/doc/latex/stringenc/README.md"
3776 "/source/latex/stringenc/stringenc.dtx")
3778 "19sfi5jxldxmy79pxmapmgmn3iknf8wjczasvlrrwv0gyycxdzhw"))))
3781 (outputs '("doc" "out"))
3783 (substitute-keyword-arguments (package-arguments template)
3784 ((#:tex-directory _ #t)
3785 "generic/stringenc")
3786 ((#:build-targets _ #t)
3787 '(list "stringenc.dtx"))
3789 `(modify-phases ,phases
3790 (add-after 'unpack 'chdir
3791 (lambda _ (chdir "source/latex/stringenc/")))
3792 (add-after 'copy-files 'clean-up
3793 (lambda* (#:key inputs outputs #:allow-other-keys)
3794 (delete-file-recursively
3795 (string-append (assoc-ref outputs "out") "/share/texmf-dist/build"))
3797 (string-append (assoc-ref outputs "out") "/share/texmf-dist/stringenc.dtx"))
3799 (string-append (assoc-ref inputs "source") "/source/latex/stringenc/stringenc.dtx")
3800 (string-append (assoc-ref outputs "out") "/share/texmf-dist/source/latex/stringenc/"))
3802 (string-append (assoc-ref inputs "source") "/doc/latex/stringenc/README.md")
3803 (string-append (assoc-ref outputs "doc") "/doc/latex/stringenc/"))))))))
3804 (home-page "https://www.ctan.org/pkg/stringenc")
3805 (synopsis "Converting a string between different encodings")
3807 "This package provides @code{\\StringEncodingConvert} for converting a
3808 string between different encodings. Both LaTeX and plain-TeX are supported.")
3809 (license license:lppl1.3c+))))
3811 (define-public texlive-l3build
3812 (let ((template (simple-texlive-package
3814 (list "/doc/latex/l3build/"
3815 "/doc/man/man1/l3build.1"
3817 "/tex/latex/l3build/"
3818 ;; TODO: The dtx file builds only the documentation.
3819 ;; We avoid this for a simpler package definition,
3820 ;; but it may be possible to exclude
3821 ;; /doc/latex/l3build and the man page in the future.
3822 "/source/latex/l3build/")
3824 "1fcay05jj53qgp2b98jpawi0id298fs5xc4y1r5krrfr4sp4hd59")
3829 (substitute-keyword-arguments (package-arguments template)
3831 `(modify-phases ,phases
3832 (add-after 'install 'patch-shebangs-again
3833 (lambda* (#:key inputs outputs #:allow-other-keys)
3834 ;; XXX: Since the 'patch-shebangs' phase cannot change the
3835 ;; original source files patch the shebangs again here.
3836 (let* ((coreutils (assoc-ref inputs "coreutils"))
3837 (texlive-bin (assoc-ref inputs "texlive-bin"))
3838 (path (list (string-append coreutils "/bin")
3839 (string-append texlive-bin "/bin"))))
3840 (for-each (lambda (file)
3841 (format #t "~a~%" file)
3842 (patch-shebang file path))
3843 (find-files (assoc-ref outputs "out")))
3846 (list coreutils texlive-bin))
3847 (home-page "https://github.com/latex3/luaotfload")
3848 (synopsis "Testing and building system for LaTeX")
3850 "The l3build module is designed to support the development of
3851 high-quality LaTeX code by providing: a unit testing system, automated
3852 typesetting of code sources, and a reliable packaging system for CTAN
3853 releases. The bundle consists of a Lua script to run the tasks and a
3854 @code{.tex} file which provides the testing environment.")
3855 (license license:lppl1.3c+))))
3857 (define-public texlive-lualibs
3860 (simple-texlive-package
3862 (list "doc/luatex/lualibs/"
3863 "source/luatex/lualibs/"
3864 "tex/luatex/lualibs/")
3865 (base32 "0gf60vj9y75a7dlrmpbyqgsa00s1717r6if3lm5ldm41i9fm8ywz")
3866 ;; The source dtx file only unpacks three files. This is why we
3867 ;; install all the files as they are, because there is no clear
3868 ;; way to generate them all.
3870 (home-page "https://ctan.org/macros/luatex/generic/lualibs")
3871 (synopsis "Additional Lua functions for LuaTeX macro programmers")
3873 "Lualibs is a collection of Lua modules useful for general programming.
3874 The bundle is based on Lua modules shipped with ConTeXt, and made available in
3875 this bundle for use independent of ConTeXt.")
3876 ;; GPL version 2 only
3877 (license license:gpl2)))
3879 (define-deprecated-package texlive-luatex-lualibs texlive-lualibs)
3881 (define-public texlive-lua-alt-getopt
3884 (simple-texlive-package
3885 "texlive-lua-alt-getopt"
3886 (list "doc/support/lua-alt-getopt/" "scripts/lua-alt-getopt/")
3887 (base32 "0cizxzn33n3pn98xkqnxb8s6vdwkar3xrwhraqrs05pjfdn9d4wz")
3889 (home-page "https://ctan.org/support/lualibs/lua-alt-getopt")
3890 (synopsis "Process application arguments the same way as getopt_long")
3892 "This package provides a Lua module for processing application arguments
3893 in the same way as BSD/GNU @code{getopt_long(3)} functions do.")
3894 (license license:expat)))
3896 ;; TODO: We should be able to build this from the sources on Github with
3897 ;; texlive-l3build, but I haven't been able to get it to work.
3898 (define-public texlive-luaotfload
3899 (let ((template (simple-texlive-package
3900 "texlive-luaotfload"
3901 (list "/doc/luatex/luaotfload/"
3902 "/doc/man/man1/luaotfload-tool.1"
3903 "/doc/man/man5/luaotfload.conf.5"
3904 "/source/luatex/luaotfload/fontloader-reference-load-order.lua"
3905 "/source/luatex/luaotfload/fontloader-reference-load-order.tex"
3906 "/scripts/luaotfload/luaotfload-tool.lua"
3907 "/tex/luatex/luaotfload/")
3909 "10wznvxx3qsl88n560py5vyx5r3a3914anbqfhwcmhmwg097xxl4")
3914 (list texlive-lua-alt-getopt ;for luaotfload-tool
3916 (home-page "https://github.com/lualatex/luaotfload")
3917 (synopsis "OpenType font loader for LuaTeX")
3919 "Luaotfload is an adaptation of the ConTeXt font loading system for the
3920 Plain and LaTeX formats. It allows OpenType fonts to be loaded with font
3921 features accessible using an extended font request syntax while providing
3922 compatibilitywith XeTeX. By indexing metadata in a database it facilitates
3923 loading fonts by their proper names instead of file names.")
3924 ;; GPL version 2 only
3925 (license license:gpl2))))
3927 (define-deprecated-package texlive-luatex-luaotfload texlive-luaotfload)
3929 (define-public texlive-amsmath
3930 (let ((template (simple-texlive-package
3932 (list "/doc/latex/amsmath/"
3933 "/source/latex/amsmath/"
3934 ;; These two files are not generated from any of the
3936 "/tex/latex/amsmath/amsmath-2018-12-01.sty"
3937 "/tex/latex/amsmath/amstex.sty")
3939 "0gmdzhgr0h57xhsl61c5jsp4fj4pbmdr8p6k96am5jbyrbbx121q"))))
3943 (substitute-keyword-arguments (package-arguments template)
3944 ((#:tex-directory _ #t)
3947 `(modify-phases ,phases
3948 (add-after 'unpack 'chdir
3949 (lambda _ (chdir "source/latex/amsmath/")))
3950 (add-before 'copy-files 'unchdir
3952 (chdir "../../..")))
3953 (add-after 'copy-files 'delete-extra-files
3954 (lambda* (#:key outputs #:allow-other-keys)
3955 (delete-file-recursively
3956 (string-append (assoc-ref outputs "out")
3957 "/share/texmf-dist/source/latex/amsmath/build"))))))))
3958 (home-page "https://www.ctan.org/pkg/amsmath")
3959 (synopsis "AMS mathematical facilities for LaTeX")
3961 "This is the principal package in the AMS-LaTeX distribution. It adapts
3962 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
3963 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
3964 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
3965 symbols), @code{amsopnamsopn} (for operator names) and
3966 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
3967 This package is part of the LaTeX required distribution; however, several
3968 contributed packages add still further to its appeal; examples are
3969 @code{empheqempheq}, which provides functions for decorating and highlighting
3970 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
3972 (license license:lppl1.3c+))))
3974 (define-deprecated-package texlive-latex-amsmath texlive-amsmath)
3976 (define-public texlive-amscls
3977 (let ((template (simple-texlive-package
3979 (list "/doc/latex/amscls/"
3980 "/source/latex/amscls/"
3981 "/bibtex/bst/amscls/")
3983 "0vw0b815slvfqfd8qffyfzb3xfvyv6k77m12xp0l67hs8p08s5b7"))))
3987 (substitute-keyword-arguments (package-arguments template)
3988 ((#:tex-directory _ #t)
3991 `(modify-phases ,phases
3992 (add-after 'unpack 'chdir
3993 (lambda _ (chdir "source/latex/amscls/") #t))))))
3994 (home-page "https://www.ctan.org/pkg/amscls")
3995 (synopsis "AMS document classes for LaTeX")
3997 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
3998 articles for the AMS), @code{amsbookamsbook} (for books) and
3999 @code{amsprocamsproc} (for proceedings), together with some supporting
4000 material. The material is made available as part of the AMS-LaTeX
4002 (license license:lppl1.3c+))))
4004 (define-deprecated-package texlive-latex-amscls texlive-amscls)
4006 (define-public texlive-babel
4007 (let ((template (simple-texlive-package
4009 (list "/doc/latex/babel/"
4010 "/source/latex/babel/"
4011 "/makeindex/babel/")
4013 "0qr5vjp79g1c1l6k173qhfdfabgbky73wymzhm56pazx4a8r08wz"))))
4017 (substitute-keyword-arguments (package-arguments template)
4018 ((#:tex-directory _ #t)
4021 `(modify-phases ,phases
4022 (add-after 'unpack 'chdir
4023 (lambda _ (chdir "source/latex/babel/")))
4024 ;; This package tries to produce babel.aux twice but refuses to
4025 ;; overwrite the first one.
4026 (add-before 'build 'fix-ins
4028 (substitute* "babel.ins"
4029 (("askonceonly") "askforoverwritefalse"))))
4030 (add-before 'copy-files 'unchdir
4032 (chdir "../../..")))
4033 (add-after 'copy-files 'delete-extra-files
4034 (lambda* (#:key outputs #:allow-other-keys)
4035 (delete-file-recursively
4036 (string-append (assoc-ref outputs "out")
4037 "/share/texmf-dist/source/latex/babel/build"))
4039 (string-append (assoc-ref outputs "out")
4040 "/share/texmf-dist/tex/generic/babel/bbind.ist"))
4042 (string-append (assoc-ref outputs "out")
4043 "/share/texmf-dist/tex/generic/babel/bbglo.ist"))))
4044 (add-after 'install 'install-locales
4045 (lambda* (#:key outputs #:allow-other-keys)
4046 (let ((locale-directory
4047 (string-append (assoc-ref outputs "out")
4048 "/share/texmf-dist/tex/generic/babel/locale/")))
4049 (mkdir-p locale-directory)
4050 (invoke "unzip" "locale.zip" "-d"
4051 locale-directory))))))))
4054 (home-page "https://www.ctan.org/pkg/babel")
4055 (synopsis "Multilingual support for Plain TeX or LaTeX")
4057 "The package manages culturally-determined typographical (and other)
4058 rules, and hyphenation patterns for a wide range of languages. A document may
4059 select a single language to be supported, or it may select several, in which
4060 case the document may switch from one language to another in a variety of
4061 ways. Babel uses contributed configuration files that provide the detail of
4062 what has to be done for each language. Users of XeTeX are advised to use the
4063 polyglossia package rather than Babel.")
4064 (license license:lppl1.3+))))
4066 (define-deprecated-package texlive-latex-babel texlive-babel)
4068 (define-public texlive-cs
4070 (inherit (simple-texlive-package
4073 "fonts/enc/dvips/cs/"
4074 "fonts/map/dvips/cs/"
4075 "fonts/source/public/cs/"
4076 ;; TODO: Remove these pre-built files after the manual
4077 ;; build below is fixed.
4078 ;; The font fails to build from the Metafont sources, with
4080 ;; This is METAFONT, Version 2.71828182 (TeX Live 2021/GNU Guix) [...]
4082 ;; >> cap_curve#-dot_size#
4083 ;; ! Unknown relation will be considered false.
4084 ;; <to be read again>
4085 "fonts/tfm/cs/cs-a35/"
4086 "fonts/tfm/cs/cs-charter/"
4087 "fonts/tfm/public/cs/"
4088 "fonts/type1/public/cs/"
4089 "fonts/vf/cs/cs-a35/")
4090 (base32 "1ww5lrqja051fh0ygmfdyy5a6bhwq9k5zv857vwiqf5syvw5djps")
4092 (home-page "http://petr.olsak.net/cstex/")
4093 (synopsis "Czech/Slovak-tuned Computer Modern fonts")
4094 (description "This package provides Czech/Slovak-tuned Computer Modern
4095 fonts in the Metafont format; Type 1 format versions (csfonts-t1) are also
4097 (license license:gpl2+))) ;see fonts/source/public/cs/cscode.mf
4099 ;;; Note: if this package is modified, its name must be changed to comply with
4101 (define-public texlive-csplain
4103 (inherit (simple-texlive-package
4105 (list "tex/csplain/base/")
4106 (base32 "0cgrwc8lgf2x2hq6bb4kqxw597card985zdd9ipn7k98mmwrxhz3")
4108 (home-page "http://petr.olsak.net/csplain-e.html")
4109 (synopsis "Plain TeX multilanguage support")
4110 (description "CSplain is a small extension of basic Plain TeX macros from
4111 which the formats @code{csplain} and @code{pdfcsplain} can be generated. It
4112 supports: hyphenation of words for 50+ languages, simple and powerful font
4113 loading system (various sizes of fonts), TeX, pdfTeX, XeTeX and LuaTeX
4114 engines, math fonts simply loaded with full amstex-like features, three
4115 internal encodings (IL2 for Czech/Slovak languages, T1 for many languages with
4116 latin alphabet and Unicode in new TeX engines), natural UTF-8 input in pdfTeX
4117 using encTeX without any active characters, Czech and Slovak special
4118 typesetting features. An important part of the package is OPmac, which
4119 implements most of LaTeX's features (sectioning, font selection, color, hyper
4120 reference and URLs, bibliography, index, table of contents, tables, etc.) by
4121 Plain TeX macros. The OPmac macros can generate a bibliography without any
4123 ;; This custom permissive license includes as a redistribution condition
4124 ;; that says the package must be renamed from 'csplain' if it is modified.
4125 (license (license:non-copyleft "file:///tex/csplain/base/csplain.ini"))))
4127 (define-public texlive-generic-babel-english
4129 (name "texlive-generic-babel-english")
4130 (version (number->string %texlive-revision))
4133 (uri (texlive-ref "generic" "babel-english"))
4134 (file-name (string-append name "-" version "-checkout"))
4137 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
4138 (build-system texlive-build-system)
4139 (arguments '(#:tex-directory "generic/babel-english"))
4140 (home-page "https://www.ctan.org/pkg/babel-english")
4141 (synopsis "Babel support for English")
4143 "This package provides the language definition file for support of
4144 English in @code{babel}. Care is taken to select British hyphenation patterns
4145 for British English and Australian text, and default (\"american\") patterns
4146 for Canadian and USA text.")
4147 (license license:lppl1.3+)))
4149 (define-public texlive-babel-french
4151 (simple-texlive-package
4152 "texlive-babel-french"
4153 (list "doc/generic/babel-french/"
4154 "source/generic/babel-french/"
4155 "tex/generic/babel-french/")
4156 (base32 "0cgn4dq5wnlfh9wddjzxsf7p56pk29lyndg56zg6558y7xf67cw8"))))
4159 (outputs '("out" "doc"))
4161 (substitute-keyword-arguments (package-arguments template)
4162 ((#:tex-directory _ '())
4163 "generic/babel-french")
4164 ((#:build-targets _ '())
4165 ;; TODO: use dtx and build documentation.
4166 '(list "frenchb.ins"))
4168 `(modify-phases ,phases
4169 (add-after 'unpack 'chdir
4170 (lambda _ (chdir "source/generic/babel-french")))
4171 (replace 'copy-files
4172 (lambda* (#:key inputs outputs #:allow-other-keys)
4173 (let ((origin (assoc-ref inputs "source"))
4174 (source (string-append (assoc-ref outputs "out")
4175 "/share/texmf-dist/source"))
4176 (doc (string-append (assoc-ref outputs "doc")
4177 "/share/texmf-dist/doc")))
4178 (copy-recursively (string-append origin "/source") source)
4179 (copy-recursively (string-append origin "/doc") doc))))))))
4180 (home-page "https://ctan.org/macros/latex/contrib/babel-contrib/french")
4181 (synopsis "Babel contributed support for French")
4183 "The package, formerly known as frenchb, establishes French conventions
4184 in a document (or a subset of the conventions, if French is not the main
4185 language of the document).")
4186 (license license:lppl1.3+))))
4188 (define-deprecated-package texlive-generic-babel-french texlive-babel-french)
4190 (define-public texlive-generic-babel-german
4192 (name "texlive-generic-babel-german")
4193 (version (number->string %texlive-revision))
4196 (uri (texlive-ref "generic" "babel-german"))
4197 (file-name (string-append name "-" version "-checkout"))
4200 "1x9hnr9gz5mqdb97cinivn9xjnfr4qi996aa4cnr2sm2dsbhqxnp"))))
4201 (build-system texlive-build-system)
4202 (arguments '(#:tex-directory "generic/babel-german"))
4203 (home-page "https://www.ctan.org/pkg/babel-german")
4204 (synopsis "Babel support for German")
4206 "This package provides the language definition file for support of German
4207 in @code{babel}. It provides all the necessary macros, definitions and
4208 settings to typeset German documents. The bundle includes support for the
4209 traditional and reformed German orthography as well as for the Austrian and
4210 Swiss varieties of German.")
4211 (license license:lppl1.3+)))
4213 (define-public texlive-babel-swedish
4214 (let ((template (simple-texlive-package
4215 "texlive-babel-swedish"
4216 (list "/source/generic/babel-swedish/")
4218 "03rp4n9wkqyckman765r8v8j2pg5fg9frbfxsnhq0i2mr0yhbr6v"))))
4222 (substitute-keyword-arguments (package-arguments template)
4223 ((#:tex-directory _ '())
4224 "generic/babel-swedish")
4225 ((#:build-targets _ '())
4226 ''("swedish.ins")) ; TODO: use dtx and build documentation
4228 `(modify-phases ,phases
4229 (add-after 'unpack 'chdir
4230 (lambda _ (chdir "source/generic/babel-swedish")))))))
4231 (home-page "https://www.ctan.org/pkg/babel-swedish")
4232 (synopsis "Babel support for Swedish")
4233 (description "This package provides the language definition file for
4234 support of Swedish in @code{babel}. It provides all the necessary macros,
4235 definitions and settings to typeset Swedish documents.")
4236 (license license:lppl1.3c+))))
4238 (define-public texlive-latex-cyrillic
4240 (name "texlive-latex-cyrillic")
4241 (version (number->string %texlive-revision))
4244 (uri (texlive-ref "latex" "cyrillic"))
4245 (file-name (string-append name "-" version "-checkout"))
4248 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
4249 (build-system texlive-build-system)
4251 '(#:tex-directory "latex/cyrillic"))
4252 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
4253 (synopsis "Support for Cyrillic fonts in LaTeX")
4255 "This bundle of macros files provides macro support (including font
4256 encoding macros) for the use of Cyrillic characters in fonts encoded under the
4257 T2* and X2 encodings. These encodings cover (between them) pretty much every
4258 language that is written in a Cyrillic alphabet.")
4259 (license license:lppl1.3c+)))
4261 (define-public texlive-psnfss
4262 (let ((template (simple-texlive-package
4264 (list "/doc/latex/psnfss/"
4265 "/source/latex/psnfss/"
4266 "/fonts/map/dvips/psnfss/"
4268 ;; Only the .sty files are generated from the sources.
4269 "/tex/latex/psnfss/8rbch.fd"
4270 "/tex/latex/psnfss/8rpag.fd"
4271 "/tex/latex/psnfss/8rpbk.fd"
4272 "/tex/latex/psnfss/8rpcr.fd"
4273 "/tex/latex/psnfss/8rphv.fd"
4274 "/tex/latex/psnfss/8rpnc.fd"
4275 "/tex/latex/psnfss/8rppl.fd"
4276 "/tex/latex/psnfss/8rptm.fd"
4277 "/tex/latex/psnfss/8rput.fd"
4278 "/tex/latex/psnfss/8rpzc.fd"
4279 "/tex/latex/psnfss/omlbch.fd"
4280 "/tex/latex/psnfss/omlpag.fd"
4281 "/tex/latex/psnfss/omlpbk.fd"
4282 "/tex/latex/psnfss/omlpcr.fd"
4283 "/tex/latex/psnfss/omlphv.fd"
4284 "/tex/latex/psnfss/omlpnc.fd"
4285 "/tex/latex/psnfss/omlppl.fd"
4286 "/tex/latex/psnfss/omlptm.fd"
4287 "/tex/latex/psnfss/omlptmcm.fd"
4288 "/tex/latex/psnfss/omlput.fd"
4289 "/tex/latex/psnfss/omlpzc.fd"
4290 "/tex/latex/psnfss/omlzplm.fd"
4291 "/tex/latex/psnfss/omlzpple.fd"
4292 "/tex/latex/psnfss/omlztmcm.fd"
4293 "/tex/latex/psnfss/omsbch.fd"
4294 "/tex/latex/psnfss/omspag.fd"
4295 "/tex/latex/psnfss/omspbk.fd"
4296 "/tex/latex/psnfss/omspcr.fd"
4297 "/tex/latex/psnfss/omsphv.fd"
4298 "/tex/latex/psnfss/omspnc.fd"
4299 "/tex/latex/psnfss/omsppl.fd"
4300 "/tex/latex/psnfss/omsptm.fd"
4301 "/tex/latex/psnfss/omsput.fd"
4302 "/tex/latex/psnfss/omspzc.fd"
4303 "/tex/latex/psnfss/omspzccm.fd"
4304 "/tex/latex/psnfss/omszplm.fd"
4305 "/tex/latex/psnfss/omszpple.fd"
4306 "/tex/latex/psnfss/omsztmcm.fd"
4307 "/tex/latex/psnfss/omxpsycm.fd"
4308 "/tex/latex/psnfss/omxzplm.fd"
4309 "/tex/latex/psnfss/omxzpple.fd"
4310 "/tex/latex/psnfss/omxztmcm.fd"
4311 "/tex/latex/psnfss/ot1bch.fd"
4312 "/tex/latex/psnfss/ot1pag.fd"
4313 "/tex/latex/psnfss/ot1pbk.fd"
4314 "/tex/latex/psnfss/ot1pcr.fd"
4315 "/tex/latex/psnfss/ot1phv.fd"
4316 "/tex/latex/psnfss/ot1pnc.fd"
4317 "/tex/latex/psnfss/ot1ppl.fd"
4318 "/tex/latex/psnfss/ot1pplj.fd"
4319 "/tex/latex/psnfss/ot1pplx.fd"
4320 "/tex/latex/psnfss/ot1ptm.fd"
4321 "/tex/latex/psnfss/ot1ptmcm.fd"
4322 "/tex/latex/psnfss/ot1put.fd"
4323 "/tex/latex/psnfss/ot1pzc.fd"
4324 "/tex/latex/psnfss/ot1zplm.fd"
4325 "/tex/latex/psnfss/ot1zpple.fd"
4326 "/tex/latex/psnfss/ot1ztmcm.fd"
4327 "/tex/latex/psnfss/t1bch.fd"
4328 "/tex/latex/psnfss/t1pag.fd"
4329 "/tex/latex/psnfss/t1pbk.fd"
4330 "/tex/latex/psnfss/t1pcr.fd"
4331 "/tex/latex/psnfss/t1phv.fd"
4332 "/tex/latex/psnfss/t1pnc.fd"
4333 "/tex/latex/psnfss/t1ppl.fd"
4334 "/tex/latex/psnfss/t1pplj.fd"
4335 "/tex/latex/psnfss/t1pplx.fd"
4336 "/tex/latex/psnfss/t1ptm.fd"
4337 "/tex/latex/psnfss/t1put.fd"
4338 "/tex/latex/psnfss/t1pzc.fd"
4339 "/tex/latex/psnfss/ts1bch.fd"
4340 "/tex/latex/psnfss/ts1pag.fd"
4341 "/tex/latex/psnfss/ts1pbk.fd"
4342 "/tex/latex/psnfss/ts1pcr.fd"
4343 "/tex/latex/psnfss/ts1phv.fd"
4344 "/tex/latex/psnfss/ts1pnc.fd"
4345 "/tex/latex/psnfss/ts1ppl.fd"
4346 "/tex/latex/psnfss/ts1pplj.fd"
4347 "/tex/latex/psnfss/ts1pplx.fd"
4348 "/tex/latex/psnfss/ts1ptm.fd"
4349 "/tex/latex/psnfss/ts1put.fd"
4350 "/tex/latex/psnfss/ts1pzc.fd"
4351 "/tex/latex/psnfss/ufplm.fd"
4352 "/tex/latex/psnfss/ufplmbb.fd"
4353 "/tex/latex/psnfss/upsy.fd"
4354 "/tex/latex/psnfss/upzd.fd")
4356 "11f14dzhwsy4pli21acccip43d36nf3pac33ihjffnps1i2mhqkd"))))
4360 (substitute-keyword-arguments (package-arguments template)
4361 ((#:tex-directory _ #t)
4364 `(modify-phases ,phases
4365 (add-after 'unpack 'chdir
4367 (chdir "source/latex/psnfss")))
4368 (add-before 'copy-files 'unchdir
4370 (chdir "../../..")))
4371 (add-after 'copy-files 'delete-extra-files
4372 (lambda* (#:key outputs #:allow-other-keys)
4373 (delete-file-recursively
4374 (string-append (assoc-ref outputs "out")
4375 "/share/texmf-dist/source/latex/psnfss/build"))))))))
4378 (home-page "https://www.ctan.org/pkg/psnfss")
4379 (synopsis "Font support for common PostScript fonts")
4381 "The PSNFSS collection includes a set of files that provide a complete
4382 working setup of the LaTeX font selection scheme (NFSS2) for use with common
4383 PostScript fonts. The base set of text fonts covered by PSNFSS includes the
4384 AvantGarde, Bookman, Courier, Helvetica, New Century Schoolbook, Palatino,
4385 Symbol, Times Roman and Zapf Dingbats fonts. In addition, the fonts Bitstream
4386 Charter and Adobe Utopia are covered. Separate packages are provided to load
4387 each font for use as the main text font. The package @code{helvet} allows
4388 Helvetica to be loaded with its size scaled to something more appropriate for
4389 use as a Sans-Serif font to match Times, while @code{pifont} provides the
4390 means to select single glyphs from symbol fonts. The bundle as a whole is
4391 part of the LaTeX required set of packages.")
4392 (license license:lppl1.2+))))
4394 (define-deprecated-package texlive-latex-psnfss texlive-psnfss)
4396 ;; For user profiles
4397 (define-public texlive-base
4398 (let ((default-packages
4403 texlive-cm-super ; to avoid bitmap fonts
4407 texlive-kpathsea ;for mktex.opt
4408 ;; LaTeX packages from the "required" set.
4412 texlive-generic-babel-english
4413 texlive-latex-cyrillic
4414 texlive-latex-graphics
4419 (name "texlive-base")
4420 (version (number->string %texlive-revision))
4422 (build-system trivial-build-system)
4425 (begin (mkdir (assoc-ref %outputs "out")))))
4427 (map (lambda (package)
4428 (list (package-name package) package))
4430 (home-page (package-home-page texlive-bin))
4431 (synopsis "TeX Live base packages")
4432 (description "This is a very limited subset of the TeX Live distribution.
4433 It includes little more than the required set of LaTeX packages.")
4434 (license (fold (lambda (package result)
4435 (match (package-license package)
4437 (append lst result))
4438 ((? license:license? license)
4439 (cons license result))))
4441 default-packages)))))
4443 (define-public texlive-default-updmap.cfg
4446 (uri (string-append "https://tug.org/svn/texlive/tags/"
4447 %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg"
4448 "?revision=" (number->string %texlive-revision)))
4449 (file-name (string-append "updmap.cfg-"
4450 (number->string %texlive-revision)))
4453 "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c"))))
4455 ;;; TODO: Add a TeX Live profile hook computing fonts maps (and others?)
4456 ;;; configuration from the packages in the profile, similar to what's done
4458 (define-public texlive-updmap.cfg
4459 (lambda* (#:optional (packages '()))
4460 "Return a 'texlive-updmap.cfg' package which contains the fonts map
4461 configuration of a base set of packages plus PACKAGES."
4462 (let ((default-packages (match (package-propagated-inputs texlive-base)
4463 (((labels packages) ...) packages))))
4465 (version (number->string %texlive-revision))
4468 (uri (string-append "https://tug.org/svn/texlive/tags/"
4470 "/Master/texmf-dist/web2c/updmap.cfg"
4471 "?revision=" version))
4472 (file-name "updmap.cfg")
4475 "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c"))))
4476 (name "texlive-updmap.cfg")
4477 (build-system copy-build-system)
4479 '(#:modules ((guix build copy-build-system)
4482 (ice-9 textual-ports))
4483 #:install-plan '(("updmap.cfg" "share/texmf-config/web2c/")
4484 ("map" "share/texmf-dist/fonts/map"))
4486 (modify-phases %standard-phases
4487 (add-before 'install 'regenerate-updmap.cfg
4489 (make-file-writable "updmap.cfg")
4491 ;; Disable unavailable map files.
4492 (let* ((port (open-pipe* OPEN_WRITE "updmap-sys"
4495 "--cnffile" "updmap.cfg")))
4496 (display "Y\n" port)
4497 (when (not (zero? (status:exit-val (close-pipe port))))
4498 (error "failed to filter updmap.cfg")))
4500 ;; Set TEXMFSYSVAR to a sane and writable value; updmap fails
4501 ;; if it cannot create its log file there.
4502 (setenv "TEXMFSYSVAR" (getcwd))
4505 (invoke "updmap-sys"
4506 "--cnffile" "updmap.cfg"
4507 "--dvipdfmxoutputdir" "map/dvipdfmx/updmap/"
4508 "--dvipsoutputdir" "map/dvips/updmap/"
4509 "--pdftexoutputdir" "map/pdftex/updmap/"))))))
4510 (propagated-inputs (map (lambda (package)
4511 (list (package-name package) package))
4512 (append default-packages packages)))
4513 (home-page (package-home-page texlive-bin))
4514 (synopsis "TeX Live fonts map configuration")
4515 (description "This package contains the fonts map configuration file
4516 generated for the base TeX Live packages as well as, optionally, user-provided
4518 (license (delete-duplicates
4519 (fold (lambda (package result)
4520 (match (package-license package)
4522 (append lst result))
4523 ((? license:license? license)
4524 (cons license result))))
4526 (append default-packages packages))))))))
4528 (define-deprecated/alias texlive-union texlive-updmap.cfg)
4529 (export texlive-union)
4531 ;; For use in package definitions only
4532 (define-public texlive-tiny
4534 (inherit (texlive-updmap.cfg))
4535 (name "texlive-tiny")
4536 (description "This is a very limited subset of the TeX Live distribution.
4537 It includes little more than the required set of LaTeX packages.")))
4539 (define-public texlive-tipa
4541 (inherit (simple-texlive-package
4543 (list "/tex4ht/ht-fonts/alias/tipa/"
4545 "/fonts/map/dvips/tipa/"
4546 "/fonts/source/public/tipa/"
4547 "/fonts/tfm/public/tipa/"
4548 "/fonts/type1/public/tipa/"
4551 "0cqzf8vb10b8jw99m9gflskxa4c3rpiznxglix6chl5lai5sgw44")
4553 (home-page "https://www.ctan.org/pkg/tipa")
4554 (synopsis "Fonts and macros for IPA phonetics characters")
4555 (description "These fonts are considered the \"ultimate answer\" to IPA
4556 typesetting. The encoding of these 8-bit fonts has been registered as LaTeX
4557 standard encoding T3, and the set of addendum symbols as encoding
4558 TS3. \"Times-like\" Adobe Type 1 versions are provided for both the T3 and the
4560 (license license:lppl)))
4562 (define-public texlive-latex-amsrefs
4564 (name "texlive-latex-amsrefs")
4565 (version (number->string %texlive-revision))
4568 (uri (texlive-ref "latex" "amsrefs"))
4569 (file-name (string-append name "-" version "-checkout"))
4572 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
4573 (build-system texlive-build-system)
4574 (arguments '(#:tex-directory "latex/amsrefs"))
4575 (home-page "https://www.ctan.org/pkg/amsrefs")
4576 (synopsis "LaTeX-based replacement for BibTeX")
4578 "Amsrefs is a LaTeX package for bibliographies that provides an archival
4579 data format similar to the format of BibTeX database files, but adapted to
4580 make direct processing by LaTeX easier. The package can be used either in
4581 conjunction with BibTeX or as a replacement for BibTeX.")
4582 (license license:lppl1.3+)))
4584 (define-public texlive-latex-bigfoot
4586 (name "texlive-latex-bigfoot")
4587 (version (number->string %texlive-revision))
4590 (uri (texlive-ref "latex" "bigfoot"))
4591 (file-name (string-append name "-" version "-checkout"))
4594 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
4595 (build-system texlive-build-system)
4597 '(#:tex-directory "latex/bigfoot"
4599 (modify-phases %standard-phases
4600 (add-after 'unpack 'remove-generated-file
4602 (for-each delete-file (find-files "." "\\.drv$"))
4604 (home-page "https://www.ctan.org/pkg/bigfoot")
4605 (synopsis "Footnotes for critical editions")
4607 "This package aims to provide a one-stop solution to requirements for
4608 footnotes. It offers: Multiple footnote apparatus superior to that of
4609 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
4610 into a single paragraph (this choice may be selected per footnote series);
4611 Things you might have expected (such as @code{\\verb}-like material in
4612 footnotes, and color selections over page breaks) now work. Note that the
4613 majority of the bigfoot package's interface is identical to that of
4614 @code{manyfoot}; users should seek information from that package's
4615 documentation. The bigfoot bundle also provides the @code{perpage} and
4616 @code{suffix} packages.")
4617 (license license:gpl2+)))
4619 (define-public texlive-latex-blindtext
4621 (name "texlive-latex-blindtext")
4622 (version (number->string %texlive-revision))
4625 (uri (texlive-ref "latex" "blindtext"))
4626 (file-name (string-append name "-" version "-checkout"))
4629 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
4630 (build-system texlive-build-system)
4631 (arguments '(#:tex-directory "latex/blindtext"))
4632 (home-page "https://www.ctan.org/pkg/blindtext")
4633 (synopsis "Producing 'blind' text for testing")
4635 "The package provides the commands @code{\\blindtext} and
4636 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
4637 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
4638 an entire random document with sections, lists, mathematics, etc. The package
4639 supports three languages, @code{english}, @code{(n)german} and @code{latin};
4640 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
4641 ipsum\" text, see the @code{lipsum} package).")
4642 (license license:lppl)))
4644 (define-public texlive-latex-dinbrief
4646 (name "texlive-latex-dinbrief")
4647 (version (number->string %texlive-revision))
4650 (uri (texlive-ref "latex" "dinbrief"))
4651 (file-name (string-append name "-" version "-checkout"))
4654 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
4655 (build-system texlive-build-system)
4657 '(#:tex-directory "latex/dinbrief"
4659 (modify-phases %standard-phases
4660 (add-after 'unpack 'remove-generated-file
4662 (delete-file "dinbrief.drv")
4664 (add-after 'unpack 'fix-encoding-error
4666 (with-fluids ((%default-port-encoding "ISO-8859-1"))
4667 (substitute* "dinbrief.dtx"
4668 (("zur Verf.+ung. In der Pr\"aambel")
4669 "zur Verf\"ung. In der Pr\"aambel")))
4671 (home-page "https://www.ctan.org/pkg/dinbrief")
4672 (synopsis "German letter DIN style")
4674 "This package implements a document layout for writing letters according
4675 to the rules of DIN (Deutsches Institut für Normung, German standardisation
4676 institute). A style file for LaTeX 2.09 (with limited support of the
4677 features) is part of the package. Since the letter layout is based on a
4678 German standard, the user guide is written in German, but most macros have
4679 English names from which the user can recognize what they are used for. In
4680 addition there are example files showing how letters may be created with the
4682 (license license:lppl)))
4684 (define-public texlive-latex-draftwatermark
4686 (name "texlive-latex-draftwatermark")
4687 (version (number->string %texlive-revision))
4690 (uri (texlive-ref "latex" "draftwatermark"))
4691 (file-name (string-append name "-" version "-checkout"))
4694 "0rhn74ywv000b89w8qjf1i0qsk6kd1mjapfwis14jwjvbjqgvj95"))))
4695 (build-system texlive-build-system)
4696 (arguments '(#:tex-directory "latex/draftwatermark"))
4697 (home-page "https://www.ctan.org/pkg/draftwatermark")
4698 (synopsis "Put a grey textual watermark on document pages")
4700 "This package provides a means to add a textual, light grey watermark on
4701 every page or on the first page of a document. Typical usage may consist in
4702 writing words such as DRAFT or CONFIDENTIAL across document pages. The
4703 package performs a similar function to that of @code{draftcopy}, but its
4704 implementation is output device independent, and made very simple by relying
4706 (license license:lppl1.3+)))
4708 (define-public texlive-latex-environ
4710 (name "texlive-latex-environ")
4711 (version (number->string %texlive-revision))
4714 (uri (texlive-ref "latex" "environ"))
4715 (file-name (string-append name "-" version "-checkout"))
4718 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
4719 (build-system texlive-build-system)
4720 (arguments '(#:tex-directory "latex/environ"))
4721 (home-page "https://www.ctan.org/pkg/environ")
4722 (synopsis "New interface for environments in LaTeX")
4724 "This package provides the @code{\\collect@@body} command (as in
4725 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
4726 for collecting the body text of an environment. These commands are used to
4727 define a new author interface to creating new environments.")
4728 (license license:lppl)))
4730 (define-public texlive-latex-eqparbox
4732 (name "texlive-latex-eqparbox")
4733 (version (number->string %texlive-revision))
4736 (uri (texlive-ref "latex" "eqparbox"))
4737 (file-name (string-append name "-" version "-checkout"))
4740 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
4741 (build-system texlive-build-system)
4742 (arguments '(#:tex-directory "latex/eqparbox"))
4743 (home-page "https://www.ctan.org/pkg/eqparbox")
4744 (synopsis "Create equal-widthed parboxes")
4746 "LaTeX users sometimes need to ensure that two or more blocks of text
4747 occupy the same amount of horizontal space on the page. To that end, the
4748 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
4749 just like @code{\\parbox}, except that instead of specifying a width, one
4750 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
4751 where they are in the document---will stretch to fit the widest
4752 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
4753 for a variety of alignment purposes, as is evidenced by the examples in
4754 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
4756 (license license:lppl1.3+)))
4758 (define-public texlive-latex-etoc
4760 (inherit (simple-texlive-package
4761 "texlive-latex-etoc"
4762 '("/doc/latex/etoc/README.md"
4763 "/doc/latex/etoc/etoc.pdf"
4766 "0198cn75m1y8ggbfv1qlnif0d9275f6mxqsansyqw4np0rv6q9sv")
4768 (home-page "https://www.ctan.org/pkg/etoc")
4769 (synopsis "Completely customisable TOCs")
4771 "This package gives the user complete control of how the entries of
4772 the table of contents should be constituted from the name, number, and page
4773 number of each sectioning unit. The layout is controlled by the definition
4774 of ‘line styles’ for each sectioning level used in the document.
4776 The package provides its own custom line styles (which may be used as
4777 examples), and continues to support the standard formatting inherited from
4778 the LaTeX document classes, but the package can also allow the user to
4779 delegate the details to packages dealing with list making environments (such
4780 as enumitem). The package’s default global style typesets tables of contents
4781 in a multi-column format, with either a standard heading, or a ruled title
4782 (optionally with a frame around the table).
4784 The @code{\\tableofcontents} command may be used arbitrarily many times in
4785 the same document, while @code{\\localtableofcontents} provides a ‘local’
4786 table of contents.")
4787 (license license:lppl1.3c+)))
4789 (define-public texlive-latex-expdlist
4791 (name "texlive-latex-expdlist")
4792 (version (number->string %texlive-revision))
4795 (uri (texlive-ref "latex" "expdlist"))
4796 (file-name (string-append name "-" version "-checkout"))
4799 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
4800 (build-system texlive-build-system)
4802 '(#:tex-directory "latex/expdlist"
4804 (modify-phases %standard-phases
4805 (add-after 'unpack 'remove-generated-file
4807 (for-each delete-file
4808 (find-files "." "\\.drv$"))
4810 (home-page "https://www.ctan.org/pkg/expdlist")
4811 (synopsis "Expanded description environments")
4813 "The package provides additional features for the LaTeX
4814 @code{description} environment, including adjustable left margin. The package
4815 also allows the user to \"break\" a list (for example, to interpose a comment)
4816 without affecting the structure of the list (this works for @code{itemize} and
4817 @code{enumerate} lists, and numbered lists remain in sequence).")
4818 (license license:lppl)))
4820 (define-public texlive-filemod
4822 (inherit (simple-texlive-package
4824 (list "/doc/latex/filemod/"
4825 "/tex/latex/filemod/"
4826 "/tex/generic/filemod/")
4828 "1snsj7kblkj1ig3x3845lsypz7ab04lf0dcpdh946xakgjnz4fb5")
4830 (home-page "https://www.ctan.org/pkg/filemod")
4831 (synopsis "Provide file modification times, and compare them")
4833 "This package provides macros to read and compare the modification dates
4834 of files. The files may be @code{.tex} files, images or other files (as long
4835 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
4836 of pdfLaTeX to find the file modification date as PDF date string, parses the
4837 string and returns the value to the user. The package will also work for DVI
4838 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
4839 mode. The functionality is provided by purely expandable macros or by faster
4840 but non-expandable ones.")
4841 (license license:lppl1.3+)))
4843 (define-deprecated-package texlive-latex-filemod texlive-filemod)
4845 (define-public texlive-latex-hanging
4847 (inherit (simple-texlive-package
4848 "texlive-latex-hanging"
4849 '("/tex/latex/hanging/")
4851 "0s86yaxyfv9zxf4svwg9s13by9vrw38apfg0hsfchsimsdd6gsbb")
4853 (home-page "https://www.ctan.org/pkg/hanging")
4854 (synopsis "Typeset hanging paragraphs")
4856 "The @code{hanging} package facilitates the typesetting of hanging
4857 paragraphs. The package also enables typesetting with hanging punctuation,
4858 by making punctuation characters active.")
4859 (license license:lppl1.3c+)))
4861 (define-public texlive-fira
4863 (inherit (simple-texlive-package
4865 (list "doc/fonts/fira/"
4867 "fonts/vf/public/fira/"
4868 "fonts/type1/public/fira/"
4869 "fonts/tfm/public/fira/"
4870 "fonts/opentype/public/fira/"
4871 "fonts/map/dvips/fira/"
4872 "fonts/enc/dvips/fira/")
4873 (base32 "1v3688hziqz4jywfysiv19vsdzfkknrf83zfbi7lhiqpgkpsfsm2")
4875 (build-system texlive-build-system)
4876 (home-page "https://ctan.org/fonts/fira")
4877 (synopsis "Fira fonts with LaTeX support")
4879 "This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX support for
4880 the Fira Sans family of fonts designed by Erik Spiekermann and Ralph du
4881 Carrois of Carrois Type Design. Fira Sans is available in eleven weights with
4882 corresponding italics: light, regular, medium, bold, ...")
4883 (license (list license:lppl
4884 license:silofl1.1))))
4886 (define-public texlive-latex-ifplatform
4888 (name "texlive-latex-ifplatform")
4889 (version (number->string %texlive-revision))
4892 (uri (texlive-ref "latex" "ifplatform"))
4893 (file-name (string-append name "-" version "-checkout"))
4896 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
4897 (build-system texlive-build-system)
4898 (arguments '(#:tex-directory "latex/ifplatform"))
4899 (home-page "https://www.ctan.org/pkg/ifplatform")
4900 (synopsis "Conditionals to test which platform is being used")
4902 "This package uses the (La)TeX extension @code{-shell-escape} to
4903 establish whether the document is being processed on a Windows or on a
4904 Unix-like system, or on Cygwin (Unix environment over a Windows system).
4905 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
4906 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
4907 on a Unix-like system, which may be used to distinguish between various
4908 classes of systems.")
4909 (license license:lppl)))
4911 (define-public texlive-latex-natbib
4913 (name "texlive-latex-natbib")
4914 (version (number->string %texlive-revision))
4917 (uri (texlive-ref "latex" "natbib"))
4918 (file-name (string-append name "-" version "-checkout"))
4921 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
4922 (build-system texlive-build-system)
4923 (arguments '(#:tex-directory "latex/natbib"))
4924 (home-page "https://www.ctan.org/pkg/natbib")
4925 (synopsis "Flexible bibliography support")
4927 "This bundle provides a package that implements both author-year and
4928 numbered references, as well as much detailed of support for other
4929 bibliography use. Also provided are versions of the standard BibTeX styles
4930 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
4931 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
4932 designed from the start to be compatible with @code{natbib}.")
4933 (license license:lppl)))
4935 (define-public texlive-latex-newunicodechar
4937 (inherit (simple-texlive-package
4938 "texlive-latex-newunicodechar"
4939 '("/doc/latex/newunicodechar/" "/tex/latex/newunicodechar/")
4941 "0pwx3ylhvk5hxjnalas00grrbwla79j424i27hrm0zgflq7wsbrj")
4943 (home-page "https://www.ctan.org/pkg/newunicodechar")
4944 (synopsis "Definitions of the meaning of Unicode characters")
4946 "This package provides a friendly interface for defining the meaning of
4947 Unicode characters. The document should be processed by (pdf)LaTeX with the
4948 Unicode option of @code{inputenc} or @code{inputenx}, or by XeLaTeX/LuaLaTeX.")
4949 (license license:lppl1.3c+)))
4951 (define-public texlive-latex-pdftexcmds
4953 (inherit (simple-texlive-package
4954 "texlive-latex-pdftexcmds"
4955 '("/doc/generic/pdftexcmds/"
4956 "/tex/generic/pdftexcmds/")
4958 "1hph0djbfc8hlwfc41rzlf8l3ccyyvc0n7a0qdrr9881jwd6iv1b")
4961 (list texlive-generic-iftex texlive-generic-infwarerr
4962 texlive-generic-ltxcmds))
4963 (home-page "https://www.ctan.org/pkg/pdftexcmds")
4964 (synopsis "LuaTeX support for pdfTeX utility functions")
4966 "This package makes a number of utility functions from pdfTeX
4967 available for luaTeX by reimplementing them using Lua.")
4968 (license license:lppl1.3c+)))
4970 (define-public texlive-latex-psfrag
4972 (name "texlive-latex-psfrag")
4973 (version (number->string %texlive-revision))
4976 (uri (texlive-ref "latex" "psfrag"))
4977 (file-name (string-append name "-" version "-checkout"))
4980 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
4981 (build-system texlive-build-system)
4982 (arguments '(#:tex-directory "latex/psfrag"))
4983 (home-page "https://www.ctan.org/pkg/psfrag")
4984 (synopsis "Replace strings in encapsulated PostScript figures")
4986 "This package allows LaTeX constructions (equations, picture
4987 environments, etc.) to be precisely superimposed over Encapsulated PostScript
4988 figures, using your own favorite drawing tool to create an EPS figure and
4989 placing simple text \"tags\" where each replacement is to be placed, with
4990 PSfrag automatically removing these tags from the figure and replacing them
4991 with a user specified LaTeX construction, properly aligned, scaled, and/or
4993 (license (license:fsf-free "file://psfrag.dtx"))))
4995 (define-public texlive-pstool
4997 (inherit (simple-texlive-package
4999 (list "/doc/latex/pstool/"
5000 "/tex/latex/pstool/")
5002 "12clzcw2cl7g2chr2phgmmiwxw4859cln1gbx1wgp8bl9iw590nc")
5005 (list texlive-latex-bigfoot ; for suffix
5007 texlive-latex-graphics
5008 texlive-latex-ifplatform
5009 texlive-latex-l3kernel ; for expl3
5011 texlive-latex-psfrag
5012 texlive-latex-tools ; for shellesc
5013 texlive-latex-trimspaces
5014 texlive-latex-xkeyval))
5015 (home-page "https://www.ctan.org/pkg/pstool")
5016 (synopsis "Process PostScript graphics within pdfLaTeX documents")
5018 "This is a package for processing PostScript graphics with @code{psfrag}
5019 labels within pdfLaTeX documents. Every graphic is compiled individually,
5020 drastically speeding up compilation time when only a single figure needs
5022 (license license:lppl)))
5024 (define-deprecated-package texlive-latex-pstool texlive-pstool)
5026 (define-public texlive-latex-refcount
5028 (inherit (simple-texlive-package
5029 "texlive-latex-refcount"
5030 (list "/doc/latex/refcount/"
5031 "/tex/latex/refcount/")
5033 "0pkmqj2qihndlv3ks33xzqw91q46jx79r3aygj68d8dflyddi583")
5035 (home-page "https://www.ctan.org/pkg/refcount")
5036 (synopsis "Counter operations with label references")
5038 "This package provides the @code{\\setcounterref} and
5039 @code{\\addtocounterref} commands which use the section (or other) number
5040 from the reference as the value to put into the counter. It also provides
5041 @code{\\setcounterpageref} and @code{\\addtocounterpageref} that do the
5042 corresponding thing with the page reference of the label.")
5043 (license license:lppl1.3c+)))
5045 (define-public texlive-seminar
5047 (inherit (simple-texlive-package
5049 (list "/doc/latex/seminar/"
5050 "/tex/latex/seminar/")
5052 "1clgw5xy867khzfn8d210rc5hsw5s7r0pznhk84niybvw4zc7r3f")
5054 (home-page "https://www.ctan.org/pkg/seminar")
5055 (synopsis "Make overhead slides")
5056 ;; TODO: This package may need fancybox and xcomment at runtime.
5058 "This package provides a class that produces overhead
5059 slides (transparencies), with many facilities. Seminar is not nowadays
5060 reckoned a good basis for a presentation — users are advised to use more
5061 recent classes such as powerdot or beamer, both of which are tuned to
5062 21st-century presentation styles.")
5063 (license license:lppl1.2+)))
5065 (define-deprecated-package texlive-latex-seminar texlive-seminar)
5067 (define-public texlive-latex-stackengine
5069 (inherit (simple-texlive-package
5070 "texlive-latex-stackengine"
5071 (list "/doc/latex/stackengine/"
5072 "/tex/latex/stackengine/")
5074 "1rbw3dmb6kl3wlnpxacr8cmp2ivac1kpnb33k7r5s3lp1q59ck38")
5076 (home-page "https://www.ctan.org/pkg/stackengine")
5077 (synopsis "Customised stacking of objects")
5079 "The package provides a versatile way to stack objects vertically in a
5080 variety of customizable ways. A number of useful macros are provided, all
5081 of which make use of the @code{stackengine} core.")
5082 (license license:lppl1.3+)))
5084 (define-public texlive-latex-tocloft
5086 (inherit (simple-texlive-package
5087 "texlive-latex-tocloft"
5088 '("/doc/latex/tocloft/" "/tex/latex/tocloft/")
5090 "0mg3hpzq7wpm6mnnvb0rp3wby56zyxkyai8d2h3f4vk93zrc6awk")
5092 (home-page "https://www.ctan.org/pkg/tocloft")
5093 (synopsis "Control table of contents")
5095 "This package provides control over the typography of the
5096 @dfn{Table of Contents}, @dfn{List of Figures} and @dfn{List of Tables},
5097 and the ability to create new ‘List of ...’. The ToC @code{\\parskip} may
5099 (license license:lppl1.3c+)))
5101 (define-public texlive-latex-trimspaces
5103 (name "texlive-latex-trimspaces")
5104 (version (number->string %texlive-revision))
5107 (uri (texlive-ref "latex" "trimspaces"))
5108 (file-name (string-append name "-" version "-checkout"))
5111 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
5112 (build-system texlive-build-system)
5114 '(#:tex-directory "latex/trimspaces"
5115 #:tex-format "latex"
5117 (modify-phases %standard-phases
5118 (add-after 'unpack 'fix-bug
5120 ;; The "ins" file refers to the wrong source file.
5121 (substitute* "trimspaces.ins"
5122 (("pstool.tex") "trimspaces.tex"))
5125 (list texlive-latex-filecontents))
5126 (home-page "https://www.ctan.org/pkg/trimspaces")
5127 (synopsis "Trim spaces around an argument or within a macro")
5129 "This very short package allows you to expandably remove spaces around a
5130 token list (commands are provided to remove spaces before, spaces after, or
5131 both); or to remove surrounding spaces within a macro definition, or to define
5132 space-stripped macros.")
5133 (license license:lppl)))
5135 (define-public texlive-calrsfs
5138 (simple-texlive-package
5140 (list "doc/latex/calrsfs/" "tex/latex/calrsfs/")
5141 (base32 "0aqa0k0zzzicx5nynd29i9pdb7a4j6fvf1xwrbm4qg64pl55i6xa")
5143 (home-page "https://ctan.org/macros/latex/contrib/calrsfs")
5144 (synopsis "Copperplate calligraphic letters in LaTeX")
5145 (description "This package provides a math interface to the Rsfs fonts.")
5146 (license license:public-domain)))
5148 (define-public texlive-capt-of
5150 (simple-texlive-package
5152 (list "doc/latex/capt-of/"
5153 "source/latex/capt-of/"
5154 "tex/latex/capt-of/")
5155 (base32 "0bf0cdd9ca3kkqxqqkq6jalh5ybs60l80l5gfkl2whk2v4bnzfvz"))))
5158 (outputs '("out" "doc"))
5160 (substitute-keyword-arguments (package-arguments template)
5161 ((#:tex-directory _ '())
5163 ((#:build-targets _ '())
5164 '(list "capt-of.ins"))
5166 `(modify-phases ,phases
5167 (add-after 'unpack 'chdir
5169 (chdir "source/latex/capt-of")))
5170 (replace 'copy-files
5171 (lambda* (#:key inputs outputs #:allow-other-keys)
5172 (let ((origin (assoc-ref inputs "source"))
5173 (source (string-append (assoc-ref outputs "out")
5174 "/share/texmf-dist/source"))
5175 (doc (string-append (assoc-ref outputs "doc")
5176 "/share/texmf-dist/doc")))
5177 (copy-recursively (string-append origin "/source") source)
5178 (copy-recursively (string-append origin "/doc") doc))))))))
5179 (home-page "https://www.ctan.org/pkg/capt-of")
5180 (synopsis "Captions on more than floats")
5182 "This package defines a command @code{\\captionof} for putting a caption
5183 to something that's not a float.")
5184 (license license:lppl))))
5186 (define-deprecated-package texlive-latex-capt-of texlive-capt-of)
5188 (define-public texlive-carlisle
5190 (inherit (simple-texlive-package
5192 (list "doc/latex/carlisle/"
5193 "source/latex/carlisle/"
5194 "tex/latex/carlisle/")
5195 (base32 "139k4n8dv6pbal1mx4m8b239x3i9cw61f6digk9mxscbxwvxfngb")
5197 (home-page "https://ctan.org/macros/latex/contrib/carlisle")
5198 (synopsis "David Carlisle's small packages")
5200 "Many of David Carlisle's more substantial packages stand on their own,
5201 or as part of the LaTeX latex-tools set; this set contains: making dotless
5202 @emph{j} characters for fonts that don't have them; a method for combining the
5203 capabilities of longtable and tabularx; an environment for including plain TeX
5204 in LaTeX documents; a jiffy to create slashed characters for physicists.")
5205 (license license:lppl)))
5207 (define-public texlive-doi
5209 (inherit (simple-texlive-package
5211 (list "/doc/latex/doi/README.md"
5214 "18z9922lqb3hliqn95h883fndqs4lgyi5yqbnq2932ya0imc3j7h")
5216 (home-page "https://www.ctan.org/pkg/doi")
5217 (synopsis "Create correct hyperlinks for DOI numbers")
5219 "You can hyperlink DOI numbers to doi.org. However, some publishers have
5220 elected to use nasty characters in their DOI numbering scheme (@code{<},
5221 @code{>}, @code{_} and @code{;} have all been spotted). This will either
5222 upset LaTeX, or your PDF reader. This package contains a single user-level
5223 command @code{\\doi{}}, which takes a DOI number, and creates a correct
5224 hyperlink to the target of the DOI.")
5225 ;; Any version of the LPPL.
5226 (license license:lppl1.3+)))
5228 (define-deprecated-package texlive-latex-doi texlive-doi)
5230 (define-public texlive-etoolbox
5232 (inherit (simple-texlive-package
5234 (list "/doc/latex/etoolbox/"
5235 "/tex/latex/etoolbox/")
5237 "070iaj540rglf0c80l0hjkwg6aa7qyskhh4iwyhf7n8vrg5cjjab")
5239 (home-page "https://www.ctan.org/pkg/etoolbox")
5240 (synopsis "e-TeX tools for LaTeX")
5242 "This package is a toolbox of programming facilities geared primarily
5243 towards LaTeX class and package authors. It provides LaTeX frontends to some
5244 of the new primitives provided by e-TeX as well as some generic tools which
5245 are not strictly related to e-TeX but match the profile of this package. The
5246 package provides functions that seem to offer alternative ways of implementing
5247 some LaTeX kernel commands; nevertheless, the package will not modify any part
5248 of the LaTeX kernel.")
5249 (license license:lppl1.3+)))
5251 (define-deprecated-package texlive-latex-etoolbox texlive-etoolbox)
5253 (define-public texlive-latex-fncychap
5255 (name "texlive-latex-fncychap")
5256 (version (number->string %texlive-revision))
5260 (url (string-append "svn://www.tug.org/texlive/tags/"
5261 %texlive-tag "/Master/texmf-dist/"
5262 "/tex/latex/fncychap"))
5263 (revision %texlive-revision)))
5264 (file-name (string-append name "-" version "-checkout"))
5267 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
5268 (build-system trivial-build-system)
5270 `(#:modules ((guix build utils))
5273 (use-modules (guix build utils))
5274 (let ((target (string-append (assoc-ref %outputs "out")
5275 "/share/texmf-dist/tex/latex/fncychap")))
5277 (copy-recursively (assoc-ref %build-inputs "source") target)
5279 (home-page "https://www.ctan.org/pkg/fncychap")
5280 (synopsis "Seven predefined chapter heading styles")
5282 "This package provides seven predefined chapter heading styles. Each
5283 style can be modified using a set of simple commands. Optionally one can
5284 modify the formatting routines in order to create additional chapter
5286 (license license:lppl1.3+)))
5288 (define-public texlive-latex-framed
5290 (name "texlive-latex-framed")
5291 (version (number->string %texlive-revision))
5295 (url (string-append "svn://www.tug.org/texlive/tags/"
5296 %texlive-tag "/Master/texmf-dist/"
5297 "/tex/latex/framed"))
5298 (revision %texlive-revision)))
5299 (file-name (string-append name "-" version "-checkout"))
5302 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
5303 (build-system trivial-build-system)
5305 `(#:modules ((guix build utils))
5308 (use-modules (guix build utils))
5309 (let ((target (string-append (assoc-ref %outputs "out")
5310 "/share/texmf-dist/tex/latex/framed")))
5312 (copy-recursively (assoc-ref %build-inputs "source") target)
5314 (home-page "https://www.ctan.org/pkg/framed")
5315 (synopsis "Framed or shaded regions that can break across pages")
5317 "The package creates three environments: @code{framed}, which puts an
5318 ordinary frame box around the region, @code{shaded}, which shades the region,
5319 and @code{leftbar}, which places a line at the left side. The environments
5320 allow a break at their start (the @code{\\FrameCommand} enables creation of a
5321 title that is “attached” to the environment); breaks are also allowed in the
5322 course of the framed/shaded matter. There is also a command
5323 @code{\\MakeFramed} to make your own framed-style environments.")
5324 ;; The header states: "These macros may be freely transmitted, reproduced,
5325 ;; or modified for any purpose provided that this notice is left intact."
5326 (license (license:fsf-free "file://framed.sty"))))
5328 (define-public texlive-latex-g-brief
5330 (name "texlive-latex-g-brief")
5331 (version (number->string %texlive-revision))
5334 (uri (texlive-ref "latex" "g-brief"))
5335 (file-name (string-append name "-" version "-checkout"))
5338 "1br4kv9y17cvngp83ykpvy7gy3jqfan5plk7sggcgbdfhndi5dsr"))))
5339 (build-system texlive-build-system)
5341 '(#:tex-directory "latex/g-brief"
5343 (modify-phases %standard-phases
5344 (add-after 'unpack 'remove-generated-file
5346 (delete-file "g-brief.drv")
5348 (home-page "https://www.ctan.org/pkg/g-brief")
5349 (synopsis "Letter document class")
5351 "This package is designed for formatting formless letters in German; it
5352 can also be used for English (by those who can read the documentation). There
5353 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
5354 \"old\" and a \"new\" version of g-brief.")
5355 (license license:lppl)))
5357 (define-public texlive-latex-galois
5359 (name "texlive-latex-galois")
5360 (version (number->string %texlive-revision))
5363 (uri (texlive-ref "latex" "galois"))
5364 (file-name (string-append name "-" version "-checkout"))
5367 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
5368 (build-system texlive-build-system)
5369 (arguments '(#:tex-directory "latex/galois"))
5370 (home-page "https://www.ctan.org/pkg/galois")
5371 (synopsis "Typeset Galois connections")
5373 "The package deals with connections in two-dimensional style, optionally
5375 (license license:lppl)))
5377 (define-public texlive-latex-gcite
5379 (name "texlive-latex-gcite")
5380 (version (number->string %texlive-revision))
5383 (uri (texlive-ref "latex" "gcite"))
5384 (file-name (string-append name "-" version "-checkout"))
5387 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
5388 (build-system texlive-build-system)
5389 (arguments '(#:tex-directory "latex/gcite"))
5390 (home-page "https://www.ctan.org/pkg/gcite")
5391 (synopsis "Citations in a reader-friendly style")
5393 "The package allows citations in the German style, which is considered by
5394 many to be particularly reader-friendly. The citation provides a small amount
5395 of bibliographic information in a footnote on the page where each citation is
5396 made. It combines a desire to eliminate unnecessary page-turning with the
5397 look-up efficiency afforded by numeric citations. The package makes use of
5398 BibLaTeX, and is considered experimental.")
5399 (license license:lppl1.3+)))
5401 (define-public texlive-latex-geometry
5403 (name "texlive-latex-geometry")
5404 (version (number->string %texlive-revision))
5407 (uri (texlive-ref "latex" "geometry"))
5408 (file-name (string-append name "-" version "-checkout"))
5411 "0a9nrmiwksnpa6iaapirqid974ai56qgin2n4h9mggy9v8gp7r71"))))
5412 (build-system texlive-build-system)
5413 (arguments '(#:tex-directory "latex/geometry"))
5415 (list texlive-oberdiek ;for ifpdf
5416 texlive-latex-graphics)) ;for keyval
5417 (home-page "https://www.ctan.org/pkg/geometry")
5418 (synopsis "Flexible and complete interface to document dimensions")
5420 "This package provides an easy and flexible user interface to customize
5421 page layout, implementing auto-centering and auto-balancing mechanisms so that
5422 the users have only to give the least description for the page layout. The
5423 package knows about all the standard paper sizes, so that the user need not
5424 know what the nominal \"real\" dimensions of the paper are, just its standard
5425 name (such as a4, letter, etc.). An important feature is the package's
5426 ability to communicate the paper size it's set up to the output.")
5427 (license license:lppl)))
5429 (define-public texlive-latex-mdwtools
5431 (name "texlive-latex-mdwtools")
5432 (version (number->string %texlive-revision))
5435 (uri (texlive-ref "latex" "mdwtools"))
5436 (file-name (string-append name "-" version "-checkout"))
5439 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
5440 (build-system texlive-build-system)
5441 (arguments '(#:tex-directory "latex/mdwtools"))
5442 (home-page "https://www.ctan.org/pkg/mdwtools")
5443 (synopsis "Miscellaneous tools by Mark Wooding")
5445 "This collection of tools includes: @code{atsupport} for short commands
5446 starting with @code{@@}, macros to sanitize the OT1 encoding of the
5447 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
5448 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
5449 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
5450 array environments; verbatim handling; and syntax diagrams.")
5451 (license license:gpl3+)))
5453 (define-public texlive-makecmds
5455 (inherit (simple-texlive-package
5457 (list "doc/latex/makecmds/README"
5458 "source/latex/makecmds/makecmds.dtx"
5459 "source/latex/makecmds/makecmds.ins")
5460 (base32 "0znx80x6ic7a25v9dw8yjibq7lx65wangcyii18kk5x5z4jljba9")))
5461 (outputs '("out" "doc"))
5464 #:tex-directory "latex/makecmds"
5466 #~(modify-phases %standard-phases
5467 (add-before 'build 'chdir
5469 (setenv "ROOT_DIR" (getcwd))
5470 (chdir "source/latex/makecmds")))
5471 (add-after 'build 'build-doc
5473 (copy-file "makecmds.dtx" "build/makecmds.dtx")
5475 (invoke "pdflatex" "makecmds.dtx"))) ;generate makecmds.pdf
5477 (lambda* (#:key outputs tex-directory #:allow-other-keys)
5478 (let ((doc (string-append (assoc-ref outputs "doc")
5479 "/share/doc/" tex-directory))
5480 (out (string-append #$output "/share/texmf-dist/tex/"
5482 (install-file "makecmds.pdf" doc)
5483 (install-file (car (find-files (getenv "ROOT_DIR") "README"))
5485 (install-file "makecmds.sty" out)))))))
5486 (native-inputs (list (texlive-updmap.cfg
5487 (list texlive-amsfonts
5489 (home-page "https://www.ctan.org/pkg/makecmds")
5490 (synopsis "TeX macro to define or redefine a command")
5491 (description "The package provides a @code{\\makecommand} command, which
5492 is like @code{\\newcommand} or @code{\\renewcommand} except it
5493 always (re)defines a command. There is also @code{\\makeenvironment} and
5494 @code{\\provideenvironment} for environments.")
5495 (license license:lppl1.3c+)))
5497 (define-public texlive-metalogo
5499 (inherit (simple-texlive-package
5501 (list "doc/latex/metalogo/README"
5502 ;; These PDFs are apparently used as graphic files, not
5504 "doc/latex/metalogo/TeXoutline.pdf"
5505 "doc/latex/metalogo/eLaToutline.pdf"
5506 "source/latex/metalogo/metalogo.dtx"
5507 "source/latex/metalogo/metalogo.ins")
5508 (base32 "0v1jwp8xhzwn0a4apiyya17s4r1kpn6q9nmv38jj1wwdvgia0jpi")))
5509 (outputs '("out" "doc"))
5512 #:tex-directory "latex/metalogo"
5514 #~(modify-phases %standard-phases
5515 (add-before 'build 'chdir
5517 (setenv "ROOT_DIR" (getcwd))
5518 (chdir "source/latex/metalogo")))
5519 (add-after 'chdir 'patch-metalogo.dtx
5521 (substitute* "metalogo.dtx"
5522 ;; Prevent embedding a build time date, for reproducibility.
5523 (("^% \\\\date.*") "")
5524 ;; These fonts are not free.
5525 (("^\\\\setmainfont.*") "")
5526 (("^\\\\DeclareSymbolFont\\{SabonMaths}.*") "")
5527 (("^\\\\AtBeginDocument\\{.*") "")
5528 ((".*\\\\expandafter.*\\\\symSabonMaths.*") "")
5529 (("^\\\\setsansfont.*MgOpen Cosmetica.*") "")
5530 (("^\\\\setmonofont.*Consolas.*") "")
5531 ;; The 'stix' texlive font package has been obsoleted by
5533 (("^\\\\newfontfamily\\\\stixgeneral\\{STIXGeneral}")
5534 "\\newfontfamily\\stixgeneral{STIX Two Text}"))))
5535 (add-after 'build 'build-doc
5536 (lambda* (#:key outputs tex-directory #:allow-other-keys)
5537 (define doc-sources (string-append (getenv "ROOT_DIR")
5538 "/doc/latex/metalogo"))
5539 (copy-file "metalogo.dtx" "build/metalogo.dtx")
5540 (mkdir "build/graphics")
5541 (copy-file (string-append doc-sources "/TeXoutline.pdf")
5542 "build/graphics/TeXoutline.pdf")
5543 (copy-file (string-append doc-sources "/eLaToutline.pdf")
5544 "build/graphics/eLaToutline.pdf")
5546 (invoke "xelatex" "metalogo.dtx"))) ;generate metalogo.pdf
5548 (lambda* (#:key outputs tex-directory #:allow-other-keys)
5549 (let ((doc (string-append (assoc-ref outputs "doc")
5550 "/share/doc/" tex-directory))
5551 (out (string-append #$output "/share/texmf-dist/tex/"
5553 (install-file "metalogo.pdf" doc)
5554 (install-file (car (find-files (getenv "ROOT_DIR") "README"))
5556 (install-file "metalogo.sty" out)))))))
5557 (native-inputs (list fontconfig ;for XDG_DATA_DIRS, to locate OTF fonts
5561 texlive-generic-iftex
5563 texlive-latex-eukdate
5564 texlive-latex-graphics
5565 texlive-latex-multirow
5566 texlive-lm ;for lmroman10-regular
5568 (propagated-inputs (list texlive-fontspec texlive-generic-iftex
5569 texlive-latex-graphics))
5570 (home-page "https://ctan.org/pkg/metalogo")
5571 (synopsis "Extended TeX logo macros")
5572 (description "This package exposes spacing parameters for various TeX
5573 logos to the end user, to optimise the logos for different fonts. It is
5574 written especially for XeLaTeX users.")
5575 (license license:lppl1.3c+)))
5577 (define-public texlive-paralist
5579 (inherit (simple-texlive-package
5581 (list "doc/latex/paralist/README"
5582 "source/latex/paralist/paralist.dtx"
5583 "source/latex/paralist/paralist.ins")
5584 (base32 "1lz8yds2i64wkb89a9amydwkzsdbc09s1kbgn7vgh2qsxqrrgwam")))
5585 (outputs '("out" "doc"))
5588 #:tex-directory "latex/paralist"
5590 #~(modify-phases %standard-phases
5591 (add-before 'build 'chdir
5593 (setenv "ROOT_DIR" (getcwd))
5594 (chdir "source/latex/paralist")))
5595 (add-after 'build 'build-doc
5596 (lambda* (#:key outputs tex-directory #:allow-other-keys)
5597 (copy-file "paralist.dtx" "build/paralist.dtx")
5599 (invoke "pdflatex" "paralist.dtx")))
5601 (lambda* (#:key outputs tex-directory #:allow-other-keys)
5602 (let ((doc (string-append (assoc-ref outputs "doc")
5603 "/share/doc/" tex-directory))
5604 (out (string-append #$output "/share/texmf-dist/tex/"
5606 (install-file "paralist.pdf" doc)
5607 (install-file (car (find-files (getenv "ROOT_DIR") "README"))
5609 (install-file "paralist.sty" out)))))))
5610 (native-inputs (list texlive-latex-base
5613 texlive-jknappen))))
5614 (home-page "https://ctan.org/pkg/paralist")
5615 (synopsis "Enumerate and itemize within paragraphs")
5616 (description "The @code{paralist} package provides enumerate and itemize
5617 environments that can be used within paragraphs to format the items either as
5618 running text or as separate paragraphs with a preceding number or symbol. It
5619 also provides compacted versions of enumerate and itemize.")
5620 (license license:lppl1.0+)))
5622 (define-public texlive-polyglossia
5624 (inherit (simple-texlive-package
5625 "texlive-polyglossia"
5626 (list "source/latex/polyglossia/"
5627 ;; These files are not part of polyglossia.dtx
5628 "tex/latex/polyglossia/arabicnumbers.sty"
5629 "tex/latex/polyglossia/xpg-cyrillicnumbers.sty")
5630 (base32 "1p0hhclypv2zbs8h64c6sd689m9ym3vvpn966qpwpjxbymsrc49g")))
5631 (outputs '("out" "doc"))
5634 #:tex-directory "latex/polyglossia"
5635 #:tex-format "xelatex"
5637 #~(modify-phases %standard-phases
5638 (add-after 'unpack 'build-and-install-xelatex.fmt
5639 (lambda* (#:key tex-format #:allow-other-keys)
5640 (invoke "fmtutil-sys" "--byfmt" tex-format "--fmtdir=web2c")
5641 ;; Extend the current TEXMF environment variable to make
5642 ;; available the newly built formats.
5643 (setenv "GUIX_TEXMF" (string-append (getcwd) ":"
5644 (getenv "GUIX_TEXMF")))
5645 ;; XXX: Extend the base (more limited) xelatex.fmt provided by
5646 ;; texlive-latex-base, otherwise packages using Polyglossia
5647 ;; would encounter the same lack of hyphenation support problem.
5648 (install-file "web2c/xetex/xelatex.fmt"
5649 (string-append #$output
5650 "/share/texmf-dist/web2c/xetex"))))
5651 (add-before 'build 'chdir
5653 ;; This is so the build can find the files not part of the .dtx.
5654 (setenv "TEXINPUTS" (string-append (getcwd)
5655 "/tex/latex/polyglossia:"))
5656 (chdir "source/latex/polyglossia")))
5657 (add-after 'chdir 'substitute-nonfree-fonts
5659 (substitute* "polyglossia.dtx"
5660 (("\\{Serto Jerusalem}")
5662 (add-after 'substitute-nonfree-fonts 'extract-dtx
5663 (lambda* (#:key tex-format #:allow-other-keys)
5664 (invoke tex-format "polyglossia.dtx")))
5665 (add-after 'install 'install-doc
5666 (lambda* (#:key outputs tex-directory #:allow-other-keys)
5667 (let ((doc (string-append (assoc-ref outputs "doc")
5668 "/share/texmf-dist/doc" tex-directory)))
5669 (install-file "README.md" doc)
5670 (install-file "polyglossia.pdf" doc)))))))
5671 (native-inputs (list fontconfig ;for XDG_DATA_DIRS (to locate fonts)
5680 texlive-bin ;for fmtutil.cnf
5685 texlive-latex-fancyvrb
5690 ;; TODO: Remove texlive-stringenc and
5691 ;; texlive-zapfding after texlive-hyperref propagates
5695 texlive-latex-graphics
5696 texlive-kpathsea ;for cp227.tcx & friends
5702 texlive-tex-ini-files)) ;for pdftexconfig
5703 ;; polyglossia.sty \RequirePackage or \\usepackage these other TexLive
5710 ;; TODO: Remove texlive-stringenc and
5711 ;; texlive-zapfding after texlive-hyperref propagates
5716 texlive-latex-l3packages ;expl3, l3keys2e, xparse
5718 texlive-latex-xkeyval))
5719 (home-page "https://www.ctan.org/pkg/polyglossia")
5720 (synopsis "Alternative to Babel for XeLaTeX and LuaLaTeX")
5721 (description "This package provides a complete Babel replacement for users
5722 of LuaLaTeX and XeLaTeX. It includes support for over 70 different languages,
5723 some of which in different regional or national varieties, or using a
5724 different writing system. It enables:
5727 Loading the appropriate hyphenation patterns.
5729 Setting the script and language tags of the current font (if possible and
5730 available), using the package fontspec.
5732 Switching to a font assigned by the user to a particular script or language.
5734 Adjusting some typographical conventions in function of the current language
5735 (such as afterindent, frenchindent, spaces before or after punctuation marks,
5738 Redefining the document strings (like @samp{chapter}, @samp{figure},
5739 @samp{bibliography}). Adapting the formatting of dates (for non-gregorian
5740 calendars via external packages bundled with polyglossia: currently the
5741 Hebrew, Islamic and Farsi calendars are supported).
5743 For languages that have their own numeration system, modifying the formatting
5744 of numbers appropriately.
5746 Ensuring the proper directionality if the document contains languages
5747 written from right to left (via the packages bidi and luabidi, available
5750 (license license:expat)))
5752 (define-deprecated-package texlive-latex-polyglossia texlive-polyglossia)
5754 (define-public texlive-latex-supertabular
5756 (name "texlive-latex-supertabular")
5757 (version (number->string %texlive-revision))
5760 (uri (texlive-ref "latex" "supertabular"))
5761 (file-name (string-append name "-" version "-checkout"))
5764 "19fd0bqxjkzc16bza3w20pnsc90gbhbllm244b3h6sink4dlnn54"))))
5765 (build-system texlive-build-system)
5766 (arguments '(#:tex-directory "latex/supertabular"))
5767 (home-page "https://www.ctan.org/pkg/supertabular")
5768 (synopsis "Multi-page tables package")
5770 "This package was a predecessor of @code{longtable}; the newer
5771 package (designed on quite different principles) is easier to use and more
5772 flexible, in many cases, but supertabular retains its usefulness in a few
5773 situations where longtable has problems.")
5774 (license license:lppl1.3+)))
5776 (define-public texlive-tex-texinfo
5778 (name "texlive-tex-texinfo")
5779 (version (number->string %texlive-revision))
5783 (url (string-append "svn://www.tug.org/texlive/tags/"
5784 %texlive-tag "/Master/texmf-dist/"
5786 (revision %texlive-revision)))
5787 (file-name (string-append name "-" version "-checkout"))
5790 "1qcmcsxdsibca0mad559vhz36xaxsbkivgv1hc98vdyd90fg4y31"))))
5791 (build-system trivial-build-system)
5793 `(#:modules ((guix build utils))
5796 (use-modules (guix build utils))
5797 (let ((target (string-append (assoc-ref %outputs "out")
5798 "/share/texmf-dist/tex/texinfo")))
5800 (copy-recursively (assoc-ref %build-inputs "source") target)
5802 (home-page "https://www.ctan.org/pkg/texinfo")
5803 (synopsis "TeX macros to handle Texinfo files")
5805 "Texinfo is the preferred format for documentation in the GNU project;
5806 the format may be used to produce online or printed output from a single
5807 source. The Texinfo macros may be used to produce printable output using TeX;
5808 other programs in the distribution offer online interactive use (with
5809 hypertext linkages in some cases).")
5810 (license license:gpl3+)))
5812 (define-public texlive-textcase
5814 (inherit (simple-texlive-package
5816 (list "doc/latex/textcase/"
5817 "tex/latex/textcase/"
5818 "source/latex/textcase/")
5820 "185fibd41wd0v51gnai29ygi32snkk00p00110kcnk1bcnmpiw82")
5822 (home-page "https://ctan.org/macros/latex/contrib/textcase")
5823 (synopsis "Case conversion ignoring mathematics, etc")
5825 "The textcase package offers commands @code{\\MakeTextUppercase} and
5826 @code{\\MakeTextLowercase} are similar to the standard @code{\\MakeUppercase}
5827 and @code{\\MakeLowercase}, but they do not change the case of any sections of
5828 mathematics, or the arguments of @code{\\cite}, @code{\\label} and
5829 @code{\\ref} commands within the argument. A further command
5830 @code{\\NoCaseChange} does nothing but suppress case change within its
5831 argument, so to force uppercase of a section including an environment, one
5835 \\MakeTextUppercase{...\\NoCaseChange{\\begin{foo}} ...\\NoCaseChange{\\end{foo}}...}
5837 (license license:lppl)))
5839 (define-public texlive-latex-upquote
5841 (name "texlive-latex-upquote")
5842 (version (number->string %texlive-revision))
5845 (uri (texlive-ref "latex" "upquote"))
5846 (file-name (string-append name "-" version "-checkout"))
5849 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
5850 (build-system texlive-build-system)
5851 (arguments '(#:tex-directory "latex/upquote"))
5852 (home-page "https://www.ctan.org/pkg/upquote")
5853 (synopsis "Show \"realistic\" quotes in verbatim")
5855 "Typewriter-style fonts are best for program listings, but Computer
5856 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
5857 single quotes. Other fonts, and most programming languages, print @code{`} as
5858 a grave accent and @code{'} upright; @code{'} is used both to open and to
5859 close quoted strings. The package switches the typewriter font to Computer
5860 Modern Typewriter in OT1 encoding, and modifies the behaviour of
5861 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
5862 in the expected way. It does this regardless of other fonts or encodings in
5863 use, so long as the package is loaded after the other fonts were. The package
5864 does not affect @code{\\tt}, @code{\\texttt}, etc.")
5865 (license license:lppl1.2+)))
5867 (define-public texlive-latex-anysize
5869 (name "texlive-latex-anysize")
5870 (version (number->string %texlive-revision))
5874 (url (string-append "svn://www.tug.org/texlive/tags/"
5875 %texlive-tag "/Master/texmf-dist/"
5876 "/tex/latex/anysize"))
5877 (revision %texlive-revision)))
5878 (file-name (string-append name "-" version "-checkout"))
5881 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
5882 (build-system trivial-build-system)
5884 `(#:modules ((guix build utils))
5887 (use-modules (guix build utils))
5888 (let ((target (string-append (assoc-ref %outputs "out")
5889 "/share/texmf-dist/tex/latex/anysize")))
5891 (copy-recursively (assoc-ref %build-inputs "source") target)
5893 (home-page "https://www.ctan.org/pkg/anysize")
5894 (synopsis "Simple package to set up document margins")
5896 "This is a simple package to set up document margins. This package is
5897 considered obsolete; alternatives are the @code{typearea} package from the
5898 @code{koma-script} bundle, or the @code{geometry} package.")
5899 (license license:public-domain)))
5901 (define-public texlive-latex-appendix
5903 (name "texlive-latex-appendix")
5904 (version (number->string %texlive-revision))
5907 (uri (texlive-ref "latex" "appendix"))
5908 (file-name (string-append name "-" version "-checkout"))
5911 "1gc2brr2rs495w7qi6spdva1xrza94x7a36dncjdkghnsq8r92h4"))))
5912 (build-system texlive-build-system)
5913 (arguments '(#:tex-directory "latex/appendix"))
5914 (home-page "https://www.ctan.org/pkg/appendix")
5915 (synopsis "Extra control of appendices")
5917 "The appendix package provides various ways of formatting the titles of
5918 appendices. Also (sub)appendices environments are provided that can be used,
5919 for example, for per chapter/section appendices. An @code{appendices}
5920 environment is provided which can be used instead of the @code{\\appendix}
5922 (license license:lppl)))
5924 (define-public texlive-latex-bookmark
5926 (inherit (simple-texlive-package
5927 "texlive-latex-bookmark"
5928 (list "/doc/latex/bookmark/"
5929 "/tex/latex/bookmark/")
5931 "0xwjdah0p4an0fknvgj9y5phl62sf522z6570pvy6c09hkz0j4h1")
5933 (home-page "https://www.ctan.org/pkg/bookmark")
5934 (synopsis "Bookmark (outline) organization for hyperref")
5936 "This package implements a new bookmark (outline) organization for the
5937 @code{hyperref} package. Bookmark properties such as style and color. Other
5938 action types are available (URI, GoToR, Named).")
5939 (license license:lppl1.3c+)))
5941 (define-public texlive-latex-changebar
5943 (name "texlive-latex-changebar")
5944 (version (number->string %texlive-revision))
5947 (uri (texlive-ref "latex" "changebar"))
5948 (file-name (string-append name "-" version "-checkout"))
5951 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
5952 (build-system texlive-build-system)
5953 (arguments '(#:tex-directory "latex/changebar"))
5954 (home-page "https://www.ctan.org/pkg/changebar")
5955 (synopsis "Generate changebars in LaTeX documents")
5957 "Identify areas of text to be marked with changebars with the
5958 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
5959 package uses @code{drivers} to place the bars; the available drivers can work
5960 with @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
5961 drivers, and VTeX and pdfTeX.")
5962 (license license:lppl)))
5964 (define-public texlive-latex-cmap
5966 (name "texlive-latex-cmap")
5967 (version (number->string %texlive-revision))
5971 (url (string-append "svn://www.tug.org/texlive/tags/"
5972 %texlive-tag "/Master/texmf-dist/"
5974 (revision %texlive-revision)))
5975 (file-name (string-append name "-" version "-checkout"))
5978 "0m4r52gw9vwsi1pzwh0cy03jxhwizymi4a2fj3jfs5rrvh105r5y"))))
5979 (build-system trivial-build-system)
5981 `(#:modules ((guix build utils))
5984 (use-modules (guix build utils))
5985 (let ((target (string-append (assoc-ref %outputs "out")
5986 "/share/texmf-dist/tex/latex/cmap")))
5988 (copy-recursively (assoc-ref %build-inputs "source") target)
5990 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
5991 Master/texmf-dist/tex/latex/cmap/")
5992 (synopsis "CMap support for PDF files")
5994 "This package embeds CMap tables into PDF files to make search and
5995 copy-and-paste functions work properly.")
5996 (license license:lppl)))
5998 (define-public texlive-latex-colortbl
6000 (name "texlive-latex-colortbl")
6001 (version (number->string %texlive-revision))
6004 (uri (texlive-ref "latex" "colortbl"))
6005 (file-name (string-append name "-" version "-checkout"))
6008 "1qa0mh0fy9hcvfsmprv6q50q0qzdjjfbxi3axap26z6zg3qj68bc"))))
6009 (build-system texlive-build-system)
6010 (arguments '(#:tex-directory "latex/colortbl"))
6011 (home-page "https://www.ctan.org/pkg/colortbl")
6012 (synopsis "Add colour to LaTeX tables")
6014 "This package allows rows, columns, and even individual cells in LaTeX
6015 tables to be coloured.")
6016 (license license:lppl)))
6018 (define-public texlive-latex-fancybox
6020 (name "texlive-latex-fancybox")
6021 (version (number->string %texlive-revision))
6025 (url (string-append "svn://www.tug.org/texlive/tags/"
6026 %texlive-tag "/Master/texmf-dist/"
6027 "/tex/latex/fancybox"))
6028 (revision %texlive-revision)))
6029 (file-name (string-append name "-" version "-checkout"))
6032 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
6033 (build-system trivial-build-system)
6035 `(#:modules ((guix build utils))
6038 (use-modules (guix build utils))
6039 (let ((target (string-append (assoc-ref %outputs "out")
6040 "/share/texmf-dist/tex/latex/fancybox")))
6042 (copy-recursively (assoc-ref %build-inputs "source") target)
6044 (home-page "https://www.ctan.org/pkg/fancybox")
6045 (synopsis "Variants of \\fbox and other games with boxes")
6047 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
6048 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
6049 using box macros and flexible verbatim macros. You can box mathematics,
6050 floats, center, flushleft, and flushright, lists, and pages.")
6051 (license license:lppl1.2+)))
6053 (define-public texlive-latex-fancyhdr
6055 (name "texlive-latex-fancyhdr")
6056 (version (number->string %texlive-revision))
6060 (url (string-append "svn://www.tug.org/texlive/tags/"
6061 %texlive-tag "/Master/texmf-dist/"
6062 "/tex/latex/fancyhdr"))
6063 (revision %texlive-revision)))
6064 (file-name (string-append name "-" version "-checkout"))
6067 "1h2zv7cps0pknqhy2dyfclyi002lmsfshm0rn6ywfl9p4fnvh0bc"))))
6068 (build-system trivial-build-system)
6070 `(#:modules ((guix build utils))
6073 (use-modules (guix build utils))
6074 (let ((target (string-append (assoc-ref %outputs "out")
6075 "/share/texmf-dist/tex/latex/fancyhdr")))
6077 (copy-recursively (assoc-ref %build-inputs "source") target)
6079 (home-page "https://www.ctan.org/pkg/fancyhdr")
6080 (synopsis "Extensive control of page headers and footers in LaTeX2e")
6082 "The package provides extensive facilities, both for constructing headers
6083 and footers, and for controlling their use (for example, at times when LaTeX
6084 would automatically change the heading style in use).")
6085 (license license:lppl)))
6087 (define-public texlive-latex-float
6089 (name "texlive-latex-float")
6090 (version (number->string %texlive-revision))
6093 (uri (texlive-ref "latex" "float"))
6094 (file-name (string-append name "-" version "-checkout"))
6097 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
6098 (build-system texlive-build-system)
6099 (arguments '(#:tex-directory "latex/float"))
6100 (home-page "https://www.ctan.org/pkg/float")
6101 (synopsis "Improved interface for floating objects")
6103 "This package improves the interface for defining floating objects such
6104 as figures and tables. It introduces the boxed float, the ruled float and the
6105 plaintop float. You can define your own floats and improve the behaviour of
6106 the old ones. The package also provides the @code{H} float modifier option of
6107 the obsolete @code{here} package. You can select this as automatic default
6108 with @code{\\floatplacement{figure}{H}}.")
6109 (license license:lppl)))
6111 (define-public texlive-latex-footmisc
6113 (name "texlive-latex-footmisc")
6114 (version (number->string %texlive-revision))
6117 (uri (texlive-ref "latex" "footmisc"))
6118 (file-name (string-append name "-" version "-checkout"))
6121 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
6122 (build-system texlive-build-system)
6123 (arguments '(#:tex-directory "latex/footmisc"))
6124 (home-page "https://www.ctan.org/pkg/footmisc")
6125 (synopsis "Range of footnote options")
6127 "This is a collection of ways to change the typesetting of footnotes.
6128 The package provides means of changing the layout of the footnotes themselves,
6129 a way to number footnotes per page, to make footnotes disappear in a
6130 \"moving\" argument, and to deal with multiple references to footnotes from
6131 the same place. The package also has a range of techniques for labelling
6132 footnotes with symbols rather than numbers.")
6133 (license license:lppl1.3+)))
6135 (define-public texlive-latex-letltxmacro
6137 (inherit (simple-texlive-package
6138 "texlive-latex-letltxmacro"
6139 (list "/doc/latex/letltxmacro/"
6140 "/tex/latex/letltxmacro/")
6142 "0yy1m1jiyxq2pssp0pidaa2swx6lyxw3zwpm2r8m0v2r3lvsyyxx")
6144 (home-page "https://www.ctan.org/pkg/letltxmacro")
6145 (synopsis "Let assignment for macros")
6147 "TeX’s @code{\\let} assignment does not work for LaTeX macros with
6148 optional arguments, or for macros that are defined as robust macros by
6149 @code{\\DeclareRobustCommand}. This package defines @code{\\LetLtxMacro}
6150 that also takes care of the involved internal macros.")
6151 (license license:lppl1.3c+)))
6153 (define-public texlive-listings
6155 (name "texlive-listings")
6156 (version (number->string %texlive-revision))
6159 (uri (texlive-ref "latex" "listings"))
6161 ;; TODO: Drop "latex-" on next rebuild cycle.
6162 (string-append "texlive-latex-listings-" version "-checkout"))
6165 "082zri3gp8s6p2difhk1pbix2vzmvsf6fmld2z78v35xwk3fiya0"))))
6166 (build-system texlive-build-system)
6168 '(#:tex-directory "latex/listings"
6169 #:build-targets '("listings.ins")))
6170 (home-page "https://www.ctan.org/pkg/listings")
6171 (synopsis "Typeset source code listings using LaTeX")
6173 "The package enables the user to typeset programs (programming code)
6174 within LaTeX; the source code is read directly by TeX---no front-end processor
6175 is needed. Keywords, comments and strings can be typeset using different
6176 styles. Support for @code{hyperref} is provided.")
6177 (license license:lppl1.3+)))
6179 (define-public texlive-latex-listings
6180 (deprecated-package "texlive-latex-listings" texlive-listings))
6182 (define-public texlive-latex-jknapltx
6184 (name "texlive-latex-jknapltx")
6185 (version (number->string %texlive-revision))
6189 (url (string-append "svn://www.tug.org/texlive/tags/"
6190 %texlive-tag "/Master/texmf-dist/"
6191 "/tex/latex/jknapltx"))
6192 (revision %texlive-revision)))
6193 (file-name (string-append name "-" version "-checkout"))
6196 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
6197 (build-system trivial-build-system)
6199 `(#:modules ((guix build utils))
6202 (use-modules (guix build utils))
6203 (let ((target (string-append (assoc-ref %outputs "out")
6204 "/share/texmf-dist/tex/latex/jknapltx")))
6206 (copy-recursively (assoc-ref %build-inputs "source") target)
6208 (home-page "https://www.ctan.org/pkg/jknappen")
6209 (synopsis "Miscellaneous packages by Joerg Knappen")
6211 "This package provides miscellaneous macros by Joerg Knappen, including:
6212 represent counters in greek; Maxwell's non-commutative division;
6213 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
6214 @code{inputenc} definition files that allow verbatim input in the respective
6215 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
6216 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
6217 transliterate semitic languages; patches to make (La)TeX formulae embeddable
6218 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
6219 (license license:gpl2)))
6221 (define-public texlive-latex-kvoptions
6223 (inherit (simple-texlive-package
6224 "texlive-latex-kvoptions"
6225 (list "/doc/latex/kvoptions/"
6226 "/tex/latex/kvoptions/")
6228 "02i4n2n3j4lg68d3nam08m63kb4irc99wfhyc2z51r02lm1wwmvw")
6231 (list texlive-generic-kvsetkeys texlive-generic-ltxcmds))
6232 (home-page "https://www.ctan.org/pkg/kvoptions")
6233 (synopsis "Key/value format for package options")
6235 "This package provides facilities for using key-value format in
6237 (license license:lppl1.3c+)))
6239 (define-public texlive-fonts-ec
6241 (name "texlive-fonts-ec")
6242 (version (number->string %texlive-revision))
6246 (url (string-append "svn://www.tug.org/texlive/tags/"
6247 %texlive-tag "/Master/texmf-dist/"
6248 "/fonts/source/jknappen/ec/"))
6249 (revision %texlive-revision)))
6250 (file-name (string-append name "-" version "-checkout"))
6253 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
6254 (build-system gnu-build-system)
6256 `(#:modules ((guix build gnu-build-system)
6260 #:tests? #f ; no tests
6262 (modify-phases %standard-phases
6265 (lambda* (#:key inputs #:allow-other-keys)
6266 (let ((mf (assoc-ref inputs "texlive-metafont")))
6267 ;; Tell mf where to find mf.base
6268 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
6269 ;; Tell mf where to look for source files
6271 (string-append (getcwd) ":"
6272 mf "/share/texmf-dist/metafont/base:"
6273 (assoc-ref inputs "texlive-cm")
6274 "/share/texmf-dist/fonts/source/public/cm")))
6276 (for-each (lambda (font)
6277 (format #t "building font ~a\n" font)
6278 (invoke "mf" "-progname=mf"
6279 "-output-directory=build"
6284 "input " (basename font ".mf"))))
6285 (find-files "." "[0-9]+\\.mf$"))
6288 (lambda* (#:key outputs #:allow-other-keys)
6289 (let* ((out (assoc-ref outputs "out"))
6291 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
6293 out "/share/texmf-dist/fonts/source/jknappen/ec")))
6294 (for-each (cut install-file <> tfm)
6295 (find-files "build" "\\.*"))
6296 (for-each (cut install-file <> mf)
6297 (find-files "." "\\.mf"))
6300 (list texlive-bin texlive-metafont texlive-cm))
6301 (home-page "https://www.ctan.org/pkg/ec")
6302 (synopsis "Computer modern fonts in T1 and TS1 encodings")
6304 "The EC fonts are European Computer Modern Fonts, supporting the complete
6305 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
6306 These fonts are intended to be stable with no changes being made to the tfm
6307 files. The set also contains a Text Companion Symbol font, called @code{tc},
6308 featuring many useful characters needed in text typesetting, for example
6309 oldstyle digits, currency symbols (including the newly created Euro symbol),
6310 the permille sign, copyright, trade mark and servicemark as well as a copyleft
6311 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
6312 EC fonts supersede the preliminary version released as the DC fonts. The
6313 fonts are available in (traced) Adobe Type 1 format, as part of the
6314 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
6315 set, Latin Modern, is not actually a direct development of the EC set, and
6316 differs from the EC in a number of particulars.")
6317 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
6318 texlive-2019.3/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
6320 ;; FIXME: the fonts should be built from source, but running "tex aefonts.tex"
6321 ;; fails with obscure TeX-typical error messages.
6322 (define-public texlive-ae
6324 (inherit (simple-texlive-package
6326 (list "/doc/fonts/ae/"
6328 "/fonts/tfm/public/ae/"
6329 "/fonts/vf/public/ae/"
6332 "1xkzg381y0avdq381r2m990wp27czkdff0qkvsp2n5q62yc0bdsw")
6334 (home-page "https://www.ctan.org/pkg/ae")
6335 (synopsis "Virtual fonts for T1 encoded CMR-fonts")
6337 "This package provides a set of virtual fonts which emulates T1 coded
6338 fonts using the standard CM fonts. The package name, AE fonts, supposedly
6339 stands for \"Almost European\". The main use of the package was to produce
6340 PDF files using Adobe Type 1 versions of the CM fonts instead of bitmapped EC
6341 fonts. Note that direct substitutes for the bitmapped EC fonts are available,
6342 via the CM-super, Latin Modern and (in a restricted way) CM-LGC font sets.")
6343 (license license:lppl1.3+)))
6345 (define-public texlive-inconsolata
6347 (inherit (simple-texlive-package
6348 "texlive-inconsolata"
6349 (list "/doc/fonts/inconsolata/"
6350 "/fonts/enc/dvips/inconsolata/"
6351 "/fonts/map/dvips/inconsolata/"
6352 "/fonts/opentype/public/inconsolata/"
6353 "/fonts/tfm/public/inconsolata/"
6354 "/fonts/type1/public/inconsolata/"
6355 "/tex/latex/inconsolata/")
6357 "19lvma52vk7x8d7j4s9ymjwm3w2k08860fh6dkzn76scgpdm4wlb")
6359 (home-page "https://www.ctan.org/pkg/inconsolata")
6360 (synopsis "Monospaced font with support files for use with TeX")
6362 "Inconsolata is a monospaced font designed by Raph Levien. This package
6363 contains the font (in both Adobe Type 1 and OpenType formats) in regular and
6364 bold weights, with additional glyphs and options to control slashed zero,
6365 upright quotes and a shapelier lower-case L, plus metric files for use with
6366 TeX, and LaTeX font definition and other relevant files.")
6367 (license (list license:lppl1.3+
6371 (define-public texlive-times
6373 (inherit (simple-texlive-package
6375 (list "/dvips/times/"
6376 "/fonts/afm/adobe/times/"
6377 "/fonts/afm/urw/times/"
6378 "/fonts/tfm/adobe/times/"
6379 "/fonts/tfm/urw35vf/times/"
6380 "/fonts/type1/urw/times/"
6381 "/fonts/vf/adobe/times/"
6382 "/fonts/vf/urw35vf/times/"
6383 "/fonts/map/dvips/times/"
6384 "/tex/latex/times/")
6386 "13g41a7vbkvsf7ki9dgl7qm100w382mnlqkcngwgl3axp6s5s8l0")
6388 (home-page "https://ctan.org/pkg/urw-base35")
6389 (synopsis "URW Base 35 font pack for LaTeX")
6391 "This package provides a drop-in replacements for the Times font from
6392 Adobe's basic set.")
6393 ;; No license version specified.
6394 (license license:gpl3+)))
6396 (define-deprecated-package texlive-fonts-adobe-times texlive-times)
6398 (define-public texlive-palatino
6400 (inherit (simple-texlive-package
6402 (list "/dvips/palatino/"
6403 "/fonts/afm/adobe/palatino/"
6404 "/fonts/afm/urw/palatino/"
6405 "/fonts/tfm/adobe/palatino/"
6406 "/fonts/tfm/urw35vf/palatino/"
6407 "/fonts/type1/urw/palatino/"
6408 "/fonts/vf/adobe/palatino/"
6409 "/fonts/vf/urw35vf/palatino/"
6411 "/fonts/map/dvips/palatino/"
6412 "/tex/latex/palatino/")
6414 "12jc0av7v99857jigmva47qaxyllhpzsnqis10n0qya2kz44xf22")
6416 (home-page "https://ctan.org/pkg/urw-base35")
6417 (synopsis "URW Base 35 font pack for LaTeX")
6419 "This package provides a drop-in replacements for the Palatino font from
6420 Adobe's basic set.")
6421 ;; No license version specified.
6422 (license license:gpl3+)))
6424 (define-deprecated-package texlive-fonts-adobe-palatino texlive-palatino)
6426 (define-public texlive-zapfding
6428 (inherit (simple-texlive-package
6430 (list "/dvips/zapfding/"
6431 "/fonts/afm/adobe/zapfding/"
6432 "/fonts/afm/urw/zapfding/"
6433 "/fonts/tfm/adobe/zapfding/"
6434 "/fonts/tfm/urw35vf/zapfding/"
6435 "/fonts/type1/urw/zapfding/"
6436 "/fonts/map/dvips/zapfding/"
6437 "/tex/latex/zapfding/")
6439 "17mls8wilz9api9ivsbcczpiqp1f39qy8wa6ajssi8zhnc5lq7zn")
6441 (home-page "https://ctan.org/pkg/urw-base35")
6442 (synopsis "URW Base 35 font pack for LaTeX")
6444 "This package provides a drop-in replacements for the Zapfding font from
6445 Adobe's basic set.")
6446 ;; No license version specified.
6447 (license license:gpl3+)))
6449 (define-public texlive-zref
6451 (inherit (simple-texlive-package
6453 (list "doc/latex/zref/"
6454 "source/latex/zref/")
6455 (base32 "09l2wrqx0navislkx15iazv7jy0ip8bqaw3c0hjf0jy81kqrrm01")))
6456 (outputs '("out" "doc"))
6459 #:build-targets #~(list "zref.dtx")
6460 #:tex-directory "latex/zref"
6462 #~(modify-phases %standard-phases
6463 (add-after 'unpack 'chdir
6465 (setenv "ROOT_DIR" (getcwd))
6466 (chdir "source/latex/zref")))
6467 (add-after 'install 'install-doc
6468 (lambda* (#:key outputs #:allow-other-keys)
6469 (define doc (string-append (assoc-ref outputs "doc")
6470 "/share/texmf-dist/doc"))
6472 (copy-recursively (string-append (getenv "ROOT_DIR") "/doc")
6474 (propagated-inputs (list texlive-generic-atbegshi
6475 texlive-generic-gettitlestring
6476 texlive-generic-iftex
6477 texlive-latex-atveryend
6478 texlive-latex-kvoptions
6479 texlive-latex-pdftexcmds
6480 texlive-latex-xkeyval))
6481 (home-page "https://github.com/ho-tex/zref")
6482 (synopsis "Reference scheme for LaTeX")
6483 (description "This package offers a means to remove the limitation, of
6484 only two properties, that is inherent in the way LaTeX's reference system
6485 works. The package implements an extensible referencing system, where
6486 properties may be defined and used in the course of a document. It provides
6487 an interface for macro programmers to access the new reference scheme and some
6488 modules that use it. Modules available are:
6491 use zref for traditional labels and references;
6493 retrieve absolute page numbers (physical pages, as opposed to the logical page
6494 number that is normally typeset when a page number is requested;
6496 provide a zref-label for the last page of the document;
6498 provide the page number of the next page of the document;
6500 provide the total number of pages in the document;
6501 @item zref-pagelayout
6502 provide the page layout parameters of a each page (which may then be printed
6503 at the end of the document);
6505 make a counter reset for each new page;
6507 make section title or caption text available through the reference system;
6509 make positions on a page available;
6511 controlled dot-filling
6513 record the latest environment's name and the line it started on;
6515 provide the facilities of the xr and xr-hyper packages.
6517 (license license:lppl1.3c+)))
6519 (define-deprecated-package texlive-fonts-adobe-zapfding texlive-zapfding)
6521 (define-public texlive-fonts-rsfs
6523 (name "texlive-fonts-rsfs")
6524 (version (number->string %texlive-revision))
6528 (url (string-append "svn://www.tug.org/texlive/tags/"
6529 %texlive-tag "/Master/texmf-dist/"
6530 "/fonts/source/public/rsfs/"))
6531 (revision %texlive-revision)))
6532 (file-name (string-append name "-" version "-checkout"))
6535 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
6536 (build-system gnu-build-system)
6538 `(#:modules ((guix build gnu-build-system)
6542 #:tests? #f ; no tests
6544 (modify-phases %standard-phases
6547 (lambda* (#:key inputs #:allow-other-keys)
6548 (let ((mf (assoc-ref inputs "texlive-metafont")))
6549 ;; Tell mf where to find mf.base
6550 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
6551 ;; Tell mf where to look for source files
6553 (string-append (getcwd) ":"
6554 mf "/share/texmf-dist/metafont/base:"
6555 (assoc-ref inputs "texlive-cm")
6556 "/share/texmf-dist/fonts/source/public/cm")))
6558 (for-each (lambda (font)
6559 (format #t "building font ~a\n" font)
6560 (invoke "mf" "-progname=mf"
6561 "-output-directory=build"
6566 "input " (basename font ".mf"))))
6567 (find-files "." "[0-9]+\\.mf$"))
6570 (lambda* (#:key outputs #:allow-other-keys)
6571 (let* ((out (assoc-ref outputs "out"))
6573 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
6575 out "/share/texmf-dist/fonts/source/public/rsfs")))
6576 (for-each (cut install-file <> tfm)
6577 (find-files "build" "\\.*"))
6578 (for-each (cut install-file <> mf)
6579 (find-files "." "\\.mf"))
6582 (list texlive-bin texlive-metafont texlive-cm))
6583 (home-page "https://www.ctan.org/pkg/rsfs")
6584 (synopsis "Ralph Smith's Formal Script font")
6586 "The fonts provide uppercase formal script letters for use as symbols in
6587 scientific and mathematical typesetting (in contrast to the informal script
6588 fonts such as that used for the calligraphic symbols in the TeX maths symbol
6589 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
6590 format. LaTeX support, for using these fonts in mathematics, is available via
6591 one of the packages @code{calrsfs} and @code{mathrsfs}.")
6592 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
6594 (define-public texlive-latex-eso-pic
6596 (name "texlive-latex-eso-pic")
6597 (version (number->string %texlive-revision))
6600 (uri (texlive-ref "latex" "eso-pic"))
6601 (file-name (string-append name "-" version "-checkout"))
6604 "12f7pbhiav4iz3rra5vq85v9f14h8j1ybi42kvnkzgjsay87p7gf"))))
6605 (build-system texlive-build-system)
6606 (arguments '(#:tex-directory "latex/eso-pic"))
6607 (home-page "https://www.ctan.org/pkg/eso-pic")
6608 (synopsis "Add picture commands (or backgrounds) to every page")
6610 "The package adds one or more user commands to LaTeX's @code{shipout}
6611 routine, which may be used to place the output at fixed positions. The
6612 @code{grid} option may be used to find the correct places.")
6613 (license license:lppl1.3+)))
6615 (define-public texlive-latex-eepic
6617 (name "texlive-latex-eepic")
6618 (version (number->string %texlive-revision))
6622 (url (string-append "svn://www.tug.org/texlive/tags/"
6623 %texlive-tag "/Master/texmf-dist/"
6624 "/tex/latex/eepic"))
6625 (revision %texlive-revision)))
6626 (file-name (string-append name "-" version "-checkout"))
6629 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
6630 (build-system trivial-build-system)
6632 `(#:modules ((guix build utils))
6635 (use-modules (guix build utils))
6636 (let ((target (string-append (assoc-ref %outputs "out")
6637 "/share/texmf-dist/tex/latex/eepic")))
6639 (copy-recursively (assoc-ref %build-inputs "source") target)
6641 (home-page "https://www.ctan.org/pkg/eepic")
6642 (synopsis "Extensions to epic and the LaTeX drawing tools")
6644 "Extensions to @code{epic} and the LaTeX picture drawing environment,
6645 include the drawing of lines at any slope, the drawing of circles in any
6646 radii, and the drawing of dotted and dashed lines much faster with much less
6647 TeX memory, and providing several new commands for drawing ellipses, arcs,
6648 splines, and filled circles and ellipses. The package uses @code{tpic}
6649 @code{\\special} commands.")
6650 (license license:public-domain)))
6652 (define-public texlive-enumitem
6655 (simple-texlive-package
6657 (list "doc/latex/enumitem/" "tex/latex/enumitem/")
6658 (base32 "0qwbyjb4a82qjxrfmz06v3w5vly75id4ix4sw7lz2az68kz080dv")
6660 (home-page "https://www.ctan.org/pkg/enumitem")
6661 (synopsis "Customize basic list environments")
6663 "This package is intended to ease customizing the three basic list
6664 environments: @code{enumerate}, @code{itemize} and @code{description}. It
6665 extends their syntax to allow an optional argument where a set of parameters
6666 in the form @code{key=value} are available, for example:
6667 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
6668 (license license:lppl1.3+)))
6670 (define-deprecated-package texlive-latex-enumitem texlive-enumitem)
6672 (define-public texlive-latex-multirow
6674 (name "texlive-latex-multirow")
6675 (version (number->string %texlive-revision))
6678 (uri (texlive-ref "latex" "multirow"))
6679 (file-name (string-append name "-" version "-checkout"))
6682 "1kak9i6nwz6vc4xjj6lbvkb69s49pis6qynjzvsjraxbdw28y2dq"))))
6683 (build-system texlive-build-system)
6684 (arguments '(#:tex-directory "latex/multirow"))
6685 (home-page "https://www.ctan.org/pkg/multirow")
6686 (synopsis "Create tabular cells spanning multiple rows")
6688 "The package provides tools for creating tabular cells spanning multiple
6689 rows. It has a lot of flexibility, including an option for specifying an
6690 entry at the \"natural\" width of its text.")
6691 (license license:lppl1.3+)))
6693 (define-public texlive-latex-overpic
6695 (name "texlive-latex-overpic")
6696 (version (number->string %texlive-revision))
6700 (url (string-append "svn://www.tug.org/texlive/tags/"
6701 %texlive-tag "/Master/texmf-dist/"
6702 "/tex/latex/overpic"))
6703 (revision %texlive-revision)))
6704 (file-name (string-append name "-" version "-checkout"))
6707 "1ygsr0rsdabj61zask3346xrwiphz5i6f1nfb9k4d3234psh09kb"))))
6708 (build-system trivial-build-system)
6710 `(#:modules ((guix build utils))
6713 (use-modules (guix build utils))
6714 (let ((target (string-append (assoc-ref %outputs "out")
6715 "/share/texmf-dist/tex/latex/overpic")))
6717 (copy-recursively (assoc-ref %build-inputs "source") target)
6719 (home-page "https://www.ctan.org/pkg/overpic")
6720 (synopsis "Combine LaTeX commands over included graphics")
6722 "The @code{overpic} environment is a cross between the LaTeX
6723 @code{picture} environment and the @code{\\includegraphics} command of
6724 @code{graphicx}. The resulting picture environment has the same dimensions as
6725 the included graphic. LaTeX commands can be placed on the graphic at defined
6726 positions; a grid for orientation is available.")
6727 (license license:lppl1.0+)))
6729 (define-public texlive-latex-parskip
6731 (name "texlive-latex-parskip")
6732 (version (number->string %texlive-revision))
6736 (url (string-append "svn://www.tug.org/texlive/tags/"
6737 %texlive-tag "/Master/texmf-dist/"
6738 "/tex/latex/parskip"))
6739 (revision %texlive-revision)))
6740 (file-name (string-append name "-" version "-checkout"))
6743 "1zll8jci8lsd7y44j567akf6y8fp2p7qq23rs527zhr0br9mn3sh"))))
6744 (build-system trivial-build-system)
6746 `(#:modules ((guix build utils))
6749 (use-modules (guix build utils))
6750 (let ((target (string-append (assoc-ref %outputs "out")
6751 "/share/texmf-dist/tex/latex/parskip")))
6753 (copy-recursively (assoc-ref %build-inputs "source") target)
6755 (home-page "https://www.ctan.org/pkg/parskip")
6756 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
6758 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
6759 that is untidy; this package (though it is no substitute for a properly
6760 designed class) helps alleviate this untidiness.")
6761 (license license:lppl)))
6763 (define-public texlive-latex-pdfpages
6765 (name "texlive-latex-pdfpages")
6766 (version (number->string %texlive-revision))
6769 (uri (texlive-ref "latex" "pdfpages"))
6770 (file-name (string-append name "-" version "-checkout"))
6773 "140kl8r7g2ak2frjn5pmwiwibfynyfwp897r9vk8pypmn390lzr2"))))
6774 (build-system texlive-build-system)
6775 (arguments '(#:tex-directory "latex/pdfpages"))
6776 (home-page "https://www.ctan.org/pkg/pdfpages")
6777 (synopsis "Include PDF documents in LaTeX")
6779 "This package simplifies the inclusion of external multi-page PDF
6780 documents in LaTeX documents. Pages may be freely selected and it is possible
6781 to put several logical pages onto each sheet of paper. Furthermore a lot of
6782 hypertext features like hyperlinks and article threads are provided. The
6783 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
6784 use this package to insert PostScript files, in addition to PDF files.")
6785 (license license:lppl1.3+)))
6787 (define-public texlive-stix2-otf
6788 (let ((base (simple-texlive-package
6790 (list "/doc/fonts/stix2-otf/"
6791 "/fonts/opentype/public/stix2-otf/")
6792 (base32 "0i7rd1wn5jgm3gbi779gy78apz63w034ck4pn73xw6s10zgjzmgl")
6793 ;; Building these fonts requires FontLab, which is nonfree.
6798 (substitute-keyword-arguments (package-arguments base)
6800 #~(modify-phases #$phases
6801 (add-after 'install 'symlink-fonts-to-system-fonts-prefix
6802 ;; This is so that fontconfig can locate the fonts, such as
6803 ;; when using xetex or xelatex.
6805 (let ((system-fonts-prefix (string-append #$output
6807 (mkdir-p system-fonts-prefix)
6808 (symlink (string-append
6809 #$output "/share/texmf-dist/fonts/opentype"
6810 "/public/stix2-otf")
6811 (string-append system-fonts-prefix
6812 "/stix2-otf")))))))))
6813 (home-page "https://www.stixfonts.org/")
6814 (synopsis "OpenType Unicode text and maths fonts")
6815 (description "The Scientific and Technical Information eXchange (STIX)
6816 fonts are intended to satisfy the demanding needs of authors, publishers,
6817 printers, and others working in the scientific, medical, and technical fields.
6818 They combine a comprehensive Unicode-based collection of mathematical symbols
6819 and alphabets with a set of text faces suitable for professional publishing.")
6820 (license license:silofl1.1))))
6822 (define-public texlive-stmaryrd
6823 (let ((template (simple-texlive-package
6825 (list "/fonts/afm/public/stmaryrd/"
6826 "/fonts/map/dvips/stmaryrd/"
6827 "/fonts/source/public/stmaryrd/"
6828 "/fonts/tfm/public/stmaryrd/"
6829 "/fonts/type1/public/stmaryrd/"
6830 "/source/fonts/stmaryrd/"
6831 "/doc/fonts/stmaryrd/")
6833 "0yn0yl6x1z9ab5gb56lhvkqabd2agz3ggxifwxkiysrj5780j29z"))))
6836 (arguments (substitute-keyword-arguments (package-arguments template)
6837 ((#:tex-directory _ #t)
6840 `(modify-phases ,phases
6841 (add-after 'unpack 'chdir
6843 (chdir "source/fonts/stmaryrd")
6845 (add-after 'chdir 'patch-ins
6847 (substitute* "stmaryrd.ins"
6848 (("^%% LaTeX2e.*") "\\input docstrip\n")
6849 (("fontdef\\}\\}" line)
6850 (string-append line "\n\\endbatchfile")))
6852 (add-before 'copy-files 'unchdir
6854 (chdir "../../..")))
6855 (add-after 'copy-files 'delete-extra-files
6856 (lambda* (#:key outputs #:allow-other-keys)
6857 (delete-file-recursively
6858 (string-append (assoc-ref outputs "out")
6859 "/share/texmf-dist/source/fonts/stmaryrd/build"))))))))
6860 (home-page "https://www.ctan.org/pkg/stmaryrd")
6861 (synopsis "St Mary Road symbols for theoretical computer science")
6863 "The fonts were originally distributed as Metafont sources only, but
6864 Adobe Type 1 versions are also now available. Macro support is provided for
6865 use under LaTeX; the package supports the @code{only} option (provided by the
6866 @code{somedefs} package) to restrict what is loaded, for those who don't need
6868 (license license:lppl))))
6870 (define-deprecated-package texlive-fonts-stmaryrd texlive-stmaryrd)
6872 (define-public texlive-latex-subfigure
6874 (name "texlive-latex-subfigure")
6875 (version (number->string %texlive-revision))
6878 (uri (texlive-ref "latex" "subfigure"))
6879 (file-name (string-append name "-" version "-checkout"))
6882 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
6883 (build-system texlive-build-system)
6884 (arguments '(#:tex-directory "latex/subfigure"))
6885 (home-page "https://www.ctan.org/pkg/subfigure")
6886 (synopsis "Figures divided into subfigures")
6888 "This (deprecated) package provides support for the manipulation and
6889 reference of small or \"sub\" figures and tables within a single figure or
6890 table environment. It is convenient to use this package when your subfigures
6891 are to be separately captioned, referenced, or are to be included in the
6892 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
6893 used inside a figure environment for each subfigure. An optional first
6894 argument is used as the caption for that subfigure. The package is now
6895 considered obsolete: it was superseded by @code{subfig}, but users may find
6896 the more recent @code{subcaption} package more satisfactory.")
6897 (license license:lppl)))
6899 (define-public texlive-latex-tabulary
6901 (name "texlive-latex-tabulary")
6902 (version (number->string %texlive-revision))
6905 (uri (texlive-ref "latex" "tabulary"))
6906 (file-name (string-append name "-" version "-checkout"))
6909 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
6910 (build-system texlive-build-system)
6911 (arguments '(#:tex-directory "latex/tabulary"))
6912 (home-page "https://www.ctan.org/pkg/tabulary")
6913 (synopsis "Tabular with variable width columns balanced")
6915 "The package defines a @code{tabular*}-like environment, @code{tabulary},
6916 taking a \"total width\" argument as well as the column specifications. The
6917 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
6918 variable width columns (@code{\\raggedright}, @code{\\centering},
6919 @code{\\raggedleft}, and normally justified). In contrast to
6920 @code{tabularx}'s @code{X} columns, the width of each column is weighted
6921 according to the natural width of the widest cell in the column.")
6922 (license license:lppl)))
6924 (define-public texlive-latex-threeparttable
6926 (name "texlive-latex-threeparttable")
6927 (version (number->string %texlive-revision))
6931 (url (string-append "svn://www.tug.org/texlive/tags/"
6932 %texlive-tag "/Master/texmf-dist/"
6933 "/tex/latex/threeparttable"))
6934 (revision %texlive-revision)))
6935 (file-name (string-append name "-" version "-checkout"))
6938 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
6939 (build-system trivial-build-system)
6941 `(#:modules ((guix build utils))
6944 (use-modules (guix build utils))
6945 (let ((target (string-append (assoc-ref %outputs "out")
6946 "/share/texmf-dist/tex/latex/threeparttable")))
6948 (copy-recursively (assoc-ref %build-inputs "source") target)
6950 (home-page "https://www.ctan.org/pkg/threeparttable")
6951 (synopsis "Tables with captions and notes all the same width")
6953 "This package facilitates tables with titles (captions) and notes. The
6954 title and notes are given a width equal to the body of the table (a
6955 @code{tabular} environment). By itself, a @code{threeparttable} does not
6956 float, but you can put it in a @code{table} or a @code{table*} or some other
6958 (license (license:fsf-free "file://threeparttable.sty"))))
6960 (define-public texlive-txfonts
6962 (inherit (simple-texlive-package
6964 (list "/doc/fonts/txfonts/"
6966 "/fonts/afm/public/txfonts/"
6967 "/fonts/tfm/public/txfonts/"
6968 "/fonts/type1/public/txfonts/"
6969 "/fonts/vf/public/txfonts/"
6971 "/fonts/map/dvips/txfonts/"
6972 "/fonts/enc/dvips/txfonts/"
6973 "/tex/latex/txfonts/")
6975 "017zjas5y1zlyq0iy4x6mv1qbz23xcy3y5xs0crj6zdnfvnccqgp")
6977 (home-page "https://www.ctan.org/pkg/txfonts")
6978 (synopsis "Times-like fonts in support of mathematics")
6980 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
6981 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
6982 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
6983 providing all the symbols of the Computer Modern and AMS fonts, including all
6984 the Greek capital letters from CMR; and additional maths fonts of various
6987 The set is complemented by a sans-serif set of text fonts, based on
6988 Helvetica/NimbusSanL, and a monospace set.
6990 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
6991 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
6992 ;; Any version of the GPL with font exception.
6993 (license license:gpl3+)))
6995 (define-deprecated-package texlive-fonts-txfonts texlive-txfonts)
6997 (define-public texlive-fonts-iwona
6999 (name "texlive-fonts-iwona")
7003 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
7004 (string-map (lambda (c)
7011 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
7012 (build-system trivial-build-system)
7014 `(#:modules ((guix build utils))
7017 (use-modules (guix build utils))
7018 (let ((target (string-append (assoc-ref %outputs "out")
7019 "/share/texmf-dist/"))
7020 (unzip (search-input-file %build-inputs "/bin/unzip")))
7021 (invoke unzip (assoc-ref %build-inputs "source"))
7023 (copy-recursively "iwona" target)
7027 (home-page "http://jmn.pl/en/kurier-i-iwona/")
7028 (synopsis "Sans-serif typeface for TeX")
7029 (description "Iwona is a two-element sans-serif typeface. It was created
7030 as an alternative version of the Kurier typeface, which was designed in 1975
7031 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
7032 supervision of Roman Tomaszewski. Kurier was designed for linotype
7033 typesetting of newspapers and similar periodicals. The Iwona fonts are an
7034 alternative version of the Kurier fonts. The difference lies in the absence
7035 of ink traps which typify the Kurier font.")
7036 (license license:gfl1.0)))
7038 (define-public texlive-jknappen
7040 (inherit (simple-texlive-package
7042 (list "/fonts/source/jknappen/"
7043 "/fonts/tfm/jknappen/"
7044 "/tex4ht/ht-fonts/alias/jknappen/"
7045 "/tex4ht/ht-fonts/unicode/jknappen/")
7047 "0xvy3c845jc7iw1h9rcm1r2yvm1ni1sm9r9k9j2cfc82xy43rwij")
7049 (home-page "https://www.ctan.org/pkg/jknappen")
7050 (synopsis "Miscellaneous packages by Jörg Knappen")
7052 "This package contains a collection of macros by Jörg Knappen:
7055 New counterstyles @code{\\greek} and @code{\\Greek}.
7057 Non-commutative fractions
7061 Inputenc definition files that allow verbatim input in the respective ISO
7064 Blackboard bold fonts for use in maths.
7066 Mathematical script letters, as traditionally used in physics for Lagrangian,
7067 Hamiltonian, path integral measures, etc.
7069 New alignment options for parboxen at top and bottom of the box.
7071 Interchanges the roles of sans serif and roman fonts throughout the document.
7073 Support for special latin letters and diacritics used in transliteration of
7076 Intelligent hyphen/minus, which guesses whether to render as hyphen or minus.
7078 Commands replacing the characters <, >, and &.
7080 A compatibility package for users of the older versions of the textcomp package.
7082 Simple Young tableaux.
7084 (license license:gpl2))) ;per the 00readme_txt file.
7086 (define-public texlive-jadetex
7087 (let ((template (simple-texlive-package
7089 (list "/doc/man/man1/jadetex.1"
7090 "/doc/man/man1/jadetex.man1.pdf"
7091 "/doc/man/man1/pdfjadetex.1"
7092 "/doc/man/man1/pdfjadetex.man1.pdf"
7093 "/source/jadetex/base/"
7094 ;; The following files are not generated from
7096 "/tex/jadetex/base/jadetex.ini"
7097 "/tex/jadetex/base/pdfjadetex.ini"
7098 "/tex/jadetex/base/uentities.sty")
7100 "03chyc3vjqgxcj985gy4k0bd0lf1n4a6sgbhc7k84jparjk3hx4i"))))
7104 (substitute-keyword-arguments (package-arguments template)
7105 ((#:tex-directory _ #t)
7108 `(modify-phases ,phases
7109 (add-after 'unpack 'unify-source-directory
7111 (chdir "source/jadetex/base")
7112 (for-each (lambda (f)
7113 (copy-file f (basename f)))
7114 (find-files "../../../tex/jadetex/base"))
7116 (add-after 'build 'generate-formats
7117 (lambda* (#:key inputs #:allow-other-keys)
7119 (for-each (lambda (f)
7120 (symlink f (basename f)))
7121 (find-files "build"))
7122 (invoke "fmtutil-sys" "--byfmt" "jadetex"
7124 (invoke "fmtutil-sys" "--byfmt" "pdfjadetex"
7126 (add-after 'install 'install-formats-and-wrappers
7127 (lambda* (#:key inputs outputs #:allow-other-keys)
7128 (let* ((out (assoc-ref outputs "out"))
7129 (texlive-bin (assoc-ref inputs "texlive-bin"))
7130 (pdftex (string-append texlive-bin "/bin/pdftex"))
7131 (web2c (string-append out "/share/texmf-dist/web2c")))
7133 (copy-recursively "web2c" web2c)
7134 ;; Create convenience command wrappers.
7135 (mkdir-p (string-append out "/bin"))
7136 (symlink pdftex (string-append out "/bin/jadetex"))
7137 (symlink pdftex (string-append out "/bin/pdfjadetex"))
7140 ;; Propagate the texlive-updmap.cfg input used by xmltex, which provides the
7141 ;; required fonts for its use.
7142 (list texlive-xmltex texlive-kpathsea)) ;for fmtutil.cnf template
7144 (list texlive-cm ;for cmex10 and others
7145 texlive-fonts-latex ;for lasy6
7146 ;; The t1cmr.fd file of texlive-latex-base refers to the ecrm font,
7147 ;; provided by the jknappen package collection.
7150 texlive-latex-colortbl
7151 texlive-latex-fancyhdr
7152 texlive-latex-graphics ;for color.sty
7153 texlive-latex-tools ;for array.sty
7155 texlive-tex-ini-files ;for pdftexconfig
7157 (home-page "https://www.ctan.org/pkg/jadetex/")
7158 (synopsis "TeX macros to produce TeX output using OpenJade")
7159 (description "JadeTeX is a companion package to the OpenJade DSSSL
7160 processor. OpenJade applies a DSSSL stylesheet to an SGML or XML document.
7161 The output of this process can be in a number of forms, including a set of
7162 high level LaTeX macros. It is the task of the JadeTeX package to transform
7163 these macros into DVI/PostScript (using the @command{jadetex} command) or
7164 Portable Document Format (PDF) form (using the @command{pdfjadetex}
7166 ;; The license text is found at the header of the jadetex.dtx file.
7167 (license license:expat))))
7169 (define-public texlive-libertine
7171 (inherit (simple-texlive-package
7173 (list "/doc/fonts/libertine/"
7175 "/fonts/enc/dvips/libertine/"
7176 "/fonts/map/dvips/libertine/"
7177 "/fonts/opentype/public/libertine/"
7178 "/fonts/tfm/public/libertine/"
7179 "/fonts/type1/public/libertine/"
7180 "/fonts/vf/public/libertine/"
7182 "/tex/latex/libertine/")
7184 "1d5r80isyvs2v3i8pzlhsn7ns6bn8ldkbs82g25widraixlhg6yg")
7186 (home-page "https://www.ctan.org/pkg/libertine")
7187 (synopsis "Use Linux Libertine and Biolinum fonts with LaTeX")
7189 "The package provides the Libertine and Biolinum fonts in both Type 1 and
7190 OTF styles, together with support macros for their use. Monospaced and
7191 display fonts, and the \"keyboard\" set are also included, in OTF style, only.
7192 The @code{mweights} package is used to manage the selection of font weights.
7193 The package supersedes both the @code{libertineotf} and the
7194 @code{libertine-legacy} packages.")
7195 (license (list license:gpl2+ ; with font exception
7199 (define-public texlive-dejavu
7201 (inherit (simple-texlive-package
7203 (list "/doc/fonts/dejavu/"
7205 "/fonts/enc/dvips/dejavu/"
7206 "/fonts/map/dvips/dejavu/"
7208 "/fonts/afm/public/dejavu/"
7209 "/fonts/tfm/public/dejavu/"
7210 "/fonts/truetype/public/dejavu/"
7211 "/fonts/type1/public/dejavu/"
7212 "/fonts/vf/public/dejavu/"
7214 "/tex/latex/dejavu/")
7216 "0y4qf5jl0xncah9nkcaalmy69wwq02n3j895zp71n2p0nfi24aka")
7218 (home-page "https://www.ctan.org/pkg/libertine")
7219 (synopsis "LaTeX support for the DejaVu fonts")
7221 "The package contains LaTeX support for the DejaVu fonts, which are
7222 derived from the Vera fonts but contain more characters and styles. The fonts
7223 are included in the original TrueType format, and in converted Type 1 format.
7224 The (currently) supported encodings are: OT1, T1, IL2, TS1, T2*, X2, QX, and
7225 LGR. The package doesn't (currently) support mathematics.")
7226 (license license:lppl)))
7228 (define-public texlive-latex-titlesec
7230 (name "texlive-latex-titlesec")
7231 (version (number->string %texlive-revision))
7235 (url (string-append "svn://www.tug.org/texlive/tags/"
7236 %texlive-tag "/Master/texmf-dist/"
7237 "/tex/latex/titlesec"))
7238 (revision %texlive-revision)))
7239 (file-name (string-append name "-" version "-checkout"))
7242 "1kw7dvxvdfbf31zw0n8r0g5xak3vcdf25n33fqw93j59zpc5nvbl"))))
7243 (build-system trivial-build-system)
7245 `(#:modules ((guix build utils))
7248 (use-modules (guix build utils))
7249 (let ((target (string-append (assoc-ref %outputs "out")
7250 "/share/texmf-dist/tex/latex/titlesec")))
7252 (copy-recursively (assoc-ref %build-inputs "source") target)
7254 (home-page "https://www.ctan.org/pkg/titlesec")
7255 (synopsis "Select alternative section titles")
7257 "This package provides an interface to sectioning commands for selection
7258 from various title styles, e.g. for marginal titles and to change the font of
7259 all headings with a single command, also providing simple one-step page
7260 styles. It also includes a package to change the page styles when there are
7261 floats in a page. You may assign headers/footers to individual floats, too.")
7262 (license license:lppl)))
7264 (define-public texlive-latex-type1cm
7266 (name "texlive-latex-type1cm")
7267 (version (number->string %texlive-revision))
7270 (uri (texlive-ref "latex" "type1cm"))
7271 (file-name (string-append name "-" version "-checkout"))
7274 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
7275 (build-system texlive-build-system)
7276 (arguments '(#:tex-directory "latex/type1cm"))
7277 (home-page "https://www.ctan.org/pkg/type1cm")
7278 (synopsis "Arbitrary size font selection in LaTeX")
7280 "LaTeX, by default, restricts the sizes at which you can use its default
7281 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
7282 specified by Knuth). The @code{type1cm} package removes this restriction;
7283 this is particularly useful when using scalable versions of the CM
7284 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
7285 PCTeX, etc.). In fact, since modern distributions will automatically generate
7286 any bitmap font you might need, @code{type1cm} has wider application than just
7287 those using scalable versions of the fonts. Note that the LaTeX distribution
7288 now contains a package @code{fix-cm},f which performs the task of
7289 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
7291 (license license:lppl)))
7293 (define-public texlive-lh
7294 (let ((template (simple-texlive-package
7296 (list "/doc/fonts/lh/"
7302 "0vw75i52asi5sssp8k9r8dy4ihvqbvmbsl3dini3ls8cky15lz37"))))
7305 (outputs '("out" "doc"))
7307 (substitute-keyword-arguments (package-arguments template)
7308 ((#:tex-directory _ #t)
7310 ((#:build-targets _ '())
7311 ''("nfssfox.ins" "lcyfonts.ins" "ot2fonts.ins" "t2ccfonts.ins"))
7313 `(modify-phases ,phases
7314 (add-after 'unpack 'chdir
7315 (lambda _ (chdir "source/latex/lh")))
7316 (replace 'copy-files
7317 (lambda* (#:key inputs outputs #:allow-other-keys)
7318 (let* ((source (assoc-ref inputs "source"))
7319 (doc (string-append (assoc-ref outputs "doc")
7320 "/share/texmf-dist/doc"))
7321 (target (string-append (assoc-ref outputs "out")
7322 "/share/texmf-dist"))
7323 (tex (string-append target "/tex/latex/lh/")))
7324 (copy-recursively "build/" tex)
7325 (copy-recursively (string-append source "/fonts/source/lh")
7326 (string-append target "/fonts/source/lh"))
7327 (copy-recursively (string-append source "/tex/plain/lh")
7328 (string-append target "/tex/plain/lh"))
7329 (copy-recursively (string-append source "/doc")
7331 (home-page "https://www.ctan.org/pkg/lh")
7332 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
7334 "The LH fonts address the problem of the wide variety of alphabets that
7335 are written with Cyrillic-style characters. The fonts are the original basis
7336 of the set of T2* and X2 encodings that are now used when LaTeX users need to
7337 write in Cyrillic languages. Macro support in standard LaTeX encodings is
7338 offered through the latex-cyrillic and t2 bundles, and the package itself
7339 offers support for other (more traditional) encodings. The fonts, in the
7340 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
7341 CM-Super family of fonts. The package also offers its own LaTeX support for
7342 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
7343 (license license:lppl))))
7345 (define-deprecated-package texlive-latex-lh texlive-lh)
7347 (define-public texlive-marvosym
7349 (inherit (simple-texlive-package
7351 (list "/doc/fonts/marvosym/"
7352 "/fonts/afm/public/marvosym/"
7353 "/fonts/map/dvips/marvosym/"
7354 "/fonts/tfm/public/marvosym/"
7355 "/fonts/truetype/public/marvosym/"
7356 "/fonts/type1/public/marvosym/"
7357 "/tex/latex/marvosym/")
7359 "0m3bbg06cia8ni86fjhvb7x4a5qcxgnpqcvicfms91w2px9ysc46")
7361 (home-page "https://martinvogel.de/blog/index.php?\
7362 /archives/131-Marvosym.ttf.html")
7363 (synopsis "Martin Vogel's Symbols (marvosym) font")
7364 (description "The Martin Vogel’s Symbols fonts (marvosym) contains the
7365 Euro currency symbol as defined by the European commission, along with symbols
7366 for structural engineering, symbols for steel cross-sections, astronomy
7367 signs (sun, moon, planets), the 12 signs of the zodiac, scissor symbols, CE
7368 sign and others. This package contains both the original TrueType font and
7369 the derived Type 1 font, together with support files for TeX (LaTeX).")
7370 (license (list license:lppl ;for TeX support files
7371 license:silofl1.1)))) ;for fonts
7373 (define-public texlive-metapost
7375 (name "texlive-metapost")
7376 (version (number->string %texlive-revision))
7380 (url (string-append "svn://www.tug.org/texlive/tags/"
7381 %texlive-tag "/Master/texmf-dist/"
7383 (revision %texlive-revision)))
7384 (file-name (string-append name "-" version "-checkout"))
7387 "140k9dz2g2vj5ypgyqx3px9c1y9a820y8kq139p96lw0yk6839aw"))))
7388 (build-system trivial-build-system)
7390 `(#:modules ((guix build utils))
7393 (use-modules (guix build utils))
7394 (let ((target (string-append (assoc-ref %outputs "out")
7395 "/share/texmf-dist/metapost")))
7397 (copy-recursively (assoc-ref %build-inputs "source") target)
7399 (home-page "https://www.ctan.org/pkg/metapost")
7400 (synopsis "Create scalable illustrations")
7402 "MetaPost uses a language based on that of Metafont to produce precise
7403 technical illustrations. Its output is scalable PostScript or SVG, rather
7404 than the bitmaps Metafont creates.")
7405 (license license:lppl)))
7407 (define-public texlive-latex-acmart
7409 (name "texlive-latex-acmart")
7413 (uri (texlive-ref "latex" "acmart"))
7416 "12wxav9r6v7dlfja9myrwz7famgfpcfwd292qzmgg283xgngh9kd"))
7417 (file-name (string-append name "-" version "-checkout"))))
7418 (build-system texlive-build-system)
7419 (arguments '(#:tex-directory "latex/acmart"))
7420 (home-page "https://www.ctan.org/pkg/acmart")
7421 (synopsis "Class for typesetting publications of ACM")
7423 "This package provides a class for typesetting publications of the
7424 Association for Computing Machinery (ACM).")
7425 (license license:lppl1.3+)))
7427 (define-public texlive-latex-varwidth
7429 (name "texlive-latex-varwidth")
7430 (version (number->string %texlive-revision))
7434 (url (string-append "svn://www.tug.org/texlive/tags/"
7435 %texlive-tag "/Master/texmf-dist/"
7436 "/tex/latex/varwidth"))
7437 (revision %texlive-revision)))
7438 (file-name (string-append name "-" version "-checkout"))
7441 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
7442 (build-system trivial-build-system)
7444 `(#:modules ((guix build utils))
7447 (use-modules (guix build utils))
7448 (let ((target (string-append (assoc-ref %outputs "out")
7449 "/share/texmf-dist/tex/latex/varwidth")))
7451 (copy-recursively (assoc-ref %build-inputs "source") target)
7453 (home-page "https://www.ctan.org/pkg/varwidth")
7454 (synopsis "Variable-width minipage")
7456 "The @code{varwidth} environment is superficially similar to
7457 @code{minipage}, but the specified width is just a maximum value — the box may
7458 get a narrower “natural” width.")
7459 (license license:lppl)))
7461 (define-public texlive-varwidth
7463 (inherit (simple-texlive-package
7465 (list "doc/latex/varwidth/" "tex/latex/varwidth/")
7466 (base32 "0jcrv4klcjpl17ml0zyqfvkrq6qwn2imxv8syqs5m6qk0fk7hg6l")
7468 (home-page "https://ctan.org/macros/latex/contrib/varwidth")
7469 (synopsis "Variable-width minipage LaTeX environment")
7471 "The varwidth environment is superficially similar to minipage, but the
7472 specified width is just a maximum value --- the box may get a narrower natural
7474 (license license:lppl)))
7476 (define-public texlive-wasy
7478 (inherit (simple-texlive-package
7480 (list "/fonts/source/public/wasy/"
7481 "/fonts/tfm/public/wasy/"
7485 "1swzxgld3lndi5q0q6zkwbw06ndh13fvp04as7zpwyhh646s0hbx")
7487 (home-page "https://www.ctan.org/pkg/wasy")
7488 (synopsis "Waldi symbol fonts")
7489 (description "This package provides the @code{wasy} (Waldi symbol) fonts,
7490 in the Metafont and Adobe Type 1 formats. Support under LaTeX is provided by
7491 the @code{wasysym} package.")
7492 (license license:public-domain)))
7494 (define-public texlive-wasysym
7496 (name "texlive-wasysym")
7497 (version (number->string %texlive-revision))
7500 (uri (texlive-ref "latex" "wasysym"))
7501 (file-name (string-append name "-" version "-checkout"))
7504 "0zxcf0pfqf439cfwl0r5dd93b0v4pbiih36n2pwshdlvnmy0nr50"))))
7505 (build-system texlive-build-system)
7506 (arguments '(#:tex-directory "latex/wasysym"))
7507 (home-page "https://www.ctan.org/pkg/wasysym")
7508 (synopsis "LaTeX support file to use the @code{wasy} fonts")
7510 "The @code{wasy} (Waldi Symbol) font by Roland Waldi provides many glyphs like
7511 male and female symbols and astronomical symbols, as well as the complete
7512 @code{lasy} font set and other odds and ends. The @code{wasysym} package
7513 implements an easy to use interface for these symbols.")
7514 (license license:lppl)))
7516 (define-deprecated-package texlive-latex-wasysym texlive-wasysym)
7518 (define-public texlive-wrapfig
7521 (simple-texlive-package
7523 (list "doc/latex/wrapfig/" "tex/latex/wrapfig/")
7524 (base32 "0wk1vp0dqsp597xzsqbwj8xk80v7d77qmpjir84n54f920rf9ka9")
7526 (home-page "https://ctan.org/macros/latex/contrib/wrapfig")
7527 (synopsis "Produces figures which text can flow around")
7529 "This package allows figures or tables to have text wrapped around them.
7530 It does not work in combination with list environments, but can be used in a
7531 @code{parbox} or @code{minipage}, and in two-column format.")
7532 (license license:lppl)))
7534 (define-deprecated-package texlive-latex-wrapfig texlive-wrapfig)
7536 (define-public texlive-latex-ucs
7538 (name "texlive-latex-ucs")
7539 (version (number->string %texlive-revision))
7543 (url (string-append "svn://www.tug.org/texlive/tags/"
7544 %texlive-tag "/Master/texmf-dist/"
7546 (revision %texlive-revision)))
7547 (file-name (string-append name "-" version "-checkout"))
7550 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
7551 (build-system trivial-build-system)
7553 `(#:modules ((guix build utils))
7556 (use-modules (guix build utils))
7557 (let ((target (string-append (assoc-ref %outputs "out")
7558 "/share/texmf-dist/tex/latex/ucs")))
7560 (copy-recursively (assoc-ref %build-inputs "source") target)
7562 (home-page "https://www.ctan.org/pkg/ucs")
7563 (synopsis "Extended UTF-8 input encoding support for LaTeX")
7565 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
7566 together with a large number of support files. The @code{utf8x.def}
7567 definition file for use with @code{inputenc} covers a wider range of Unicode
7568 characters than does @code{utf8.def} in the LaTeX distribution. The package
7569 provides facilities for efficient use of its large sets of Unicode characters.
7570 Glyph production may be controlled by various options, which permits use of
7571 non-ASCII characters when coding mathematical formulae. Note that the bundle
7572 previously had an alias “unicode”; that alias has now been withdrawn, and no
7573 package of that name now exists.")
7574 (license license:lppl1.3+)))
7576 (define-public texlive-latex-preview
7578 (name "texlive-latex-preview")
7579 (version (number->string %texlive-revision))
7582 (uri (texlive-ref "latex" "preview"))
7583 (file-name (string-append name "-" version "-checkout"))
7586 "0hnf821yvki9bzfkz79ns9m1msjp3yvd4dhf3268wrpr1zjx6w8v"))))
7587 (build-system texlive-build-system)
7589 '(#:tex-directory "latex/preview"
7591 (modify-phases %standard-phases
7592 (add-after 'unpack 'remove-generated-file
7594 (delete-file "preview.drv")
7596 (home-page "https://www.ctan.org/pkg/preview")
7597 (synopsis "Extract bits of a LaTeX source for output")
7599 "The main purpose of the preview package is the extraction of selected
7600 elements from a LaTeX source, like formulas or graphics, into separate
7601 pages of a DVI file. A flexible and convenient interface allows it to
7602 specify what commands and constructs should be extracted. This works
7603 with DVI files postprocessed by either Dvips and Ghostscript or
7604 dvipng, but it also works when you are using PDFTeX for generating PDF
7606 (license license:gpl3+)))
7608 (define-public texlive-latex-acronym
7610 (name "texlive-latex-acronym")
7611 (version (number->string %texlive-revision))
7614 (uri (texlive-ref "latex" "acronym"))
7615 (file-name (string-append name "-" version "-checkout"))
7618 "09pd4wynksg1y1ddxnqbhk2dc185zw5nyi794d86n3qx8l014ijy"))))
7619 (build-system texlive-build-system)
7620 (arguments '(#:tex-directory "latex/acronym"))
7621 (home-page "https://www.ctan.org/pkg/acronym")
7622 (synopsis "Expand acronyms at least once")
7624 "This package ensures that all acronyms used in the text are spelled out
7625 in full at least once. It also provides an environment to build a list of
7626 acronyms used. The package is compatible with PDF bookmarks. The package
7627 requires the suffix package, which in turn requires that it runs under
7629 (license license:lppl1.3+)))
7631 (define-public texlive-pdftex
7633 (inherit (simple-texlive-package
7635 (list "/doc/pdftex/"
7636 "/doc/man/man1/pdftex.1"
7637 "/doc/man/man1/pdfetex.1"
7638 "/fonts/map/dvips/dummy-space/dummy-space.map"
7639 "/fonts/tfm/public/pdftex/dummy-space.tfm"
7640 "/fonts/type1/public/pdftex/dummy-space.pfb"
7641 "/scripts/simpdftex/simpdftex"
7642 "/tex/generic/config/pdftex-dvi.tex"
7643 "/tex/generic/pdftex/glyphtounicode.tex"
7644 "/tex/generic/pdftex/pdfcolor.tex")
7646 "1wx928rqsv0x1a8vc7aq49w3nglr4bmlhl822slqglymfxrmb91b")
7648 ;; TODO: add this missing package:
7656 texlive-tex-ini-files
7658 (home-page "https://www.ctan.org/pkg/pdftex")
7659 (synopsis "TeX extension for direct creation of PDF")
7661 "This package provides an extension of TeX which can be configured to
7662 directly generate PDF documents instead of DVI.")
7663 (license license:gpl2+)))
7665 (define-deprecated-package texlive-generic-pdftex texlive-pdftex)
7667 (define texlive-texmf
7669 (name "texlive-texmf")
7670 (version "20210325")
7671 (source texlive-texmf-src)
7672 (build-system gnu-build-system)
7674 `(("texlive-bin" ,texlive-bin)
7681 `(#:modules ((guix build gnu-build-system)
7685 ;; This package takes 4 GiB, which we can't afford to distribute from
7690 (modify-phases (map (cut assq <> %standard-phases)
7691 '(set-paths unpack patch-source-shebangs))
7692 (add-after 'unpack 'unset-environment-variables
7695 (unsetenv "TEXMFCNF")
7697 (add-after 'patch-source-shebangs 'install
7698 (lambda* (#:key outputs #:allow-other-keys)
7699 (let ((share (string-append (assoc-ref outputs "out") "/share")))
7701 (invoke "mv" "texmf-dist" share))))
7702 (add-after 'install 'texmf-config
7703 (lambda* (#:key inputs outputs #:allow-other-keys)
7704 (let* ((out (assoc-ref outputs "out"))
7705 (share (string-append out "/share"))
7706 (texmfroot (string-append share "/texmf-dist/web2c"))
7707 (texmfcnf (string-append texmfroot "/texmf.cnf"))
7708 (fmtutilcnf (string-append texmfroot "/fmtutil.cnf"))
7709 (texlive-bin (assoc-ref inputs "texlive-bin"))
7710 (texbin (string-append texlive-bin "/bin"))
7711 (tlpkg (string-append texlive-bin "/share/tlpkg")))
7712 ;; LuaJIT is not ported to powerpc64* yet.
7713 (if ,(target-ppc64le?)
7714 (substitute* fmtutilcnf
7715 (("^(luajittex|luajithbtex|mfluajit)" m)
7716 (string-append "#! " m))))
7717 ;; Register SHARE as TEXMFROOT in texmf.cnf.
7718 (substitute* texmfcnf
7719 (("TEXMFROOT = \\$SELFAUTOPARENT")
7720 (string-append "TEXMFROOT = " share))
7721 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
7722 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
7723 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
7724 ;; Register paths in texmfcnf.lua, needed for context.
7725 (substitute* (string-append texmfroot "/texmfcnf.lua")
7726 (("selfautodir:") out)
7727 (("selfautoparent:") (string-append share "/")))
7728 ;; Set path to TeXLive Perl modules
7730 (string-append (getenv "PERL5LIB") ":" tlpkg))
7731 ;; Configure the texmf-dist tree; inspired from
7732 ;; http://slackbuilds.org/repository/13.37/office/texlive/
7733 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
7734 (setenv "TEXMFCNF" texmfroot)
7735 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
7737 (invoke "fmtutil-sys" "--all")))))))
7738 (properties `((max-silent-time . 9600))) ; don't time out while grafting
7739 (synopsis "TeX Live, a package of the TeX typesetting system")
7741 "TeX Live provides a comprehensive TeX document production system.
7742 It includes all the major TeX-related programs, macro packages, and fonts
7743 that are free software, including support for many languages around the
7746 This package contains the complete tree of texmf-dist data.")
7747 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
7748 (home-page "https://www.tug.org/texlive/")))
7750 (define-public texlive
7753 (version "20210325")
7755 (build-system trivial-build-system)
7756 (inputs `(("bash" ,bash-minimal) ;for wrap-program
7757 ("texlive-bin" ,texlive-bin)
7758 ("texlive-texmf" ,texlive-texmf)))
7759 (native-search-paths
7760 (list (search-path-specification
7761 (variable "TEXMFLOCAL")
7762 (files '("share/texmf-local")))))
7764 `(#:modules ((guix build utils))
7766 ;; Build the union of texlive-bin and texlive-texmf, but take the
7767 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
7769 (use-modules (guix build utils))
7770 (let ((out (assoc-ref %outputs "out"))
7771 (bin (assoc-ref %build-inputs "texlive-bin"))
7772 (texmf (assoc-ref %build-inputs "texlive-texmf"))
7773 (bash (assoc-ref %build-inputs "bash")))
7775 (with-directory-excursion out
7778 (symlink (string-append bin "/" name) name))
7781 (with-directory-excursion "bin"
7782 (setenv "PATH" (string-append bash "/bin"))
7785 (symlink name (basename name))
7789 (,(string-append texmf "/share/texmf-dist/web2c")))))
7790 (find-files (string-append bin "/bin/") "")))
7792 (with-directory-excursion "share"
7795 (symlink (string-append bin "/share/" name) name))
7796 '("info" "man" "tlpkg"))
7799 (symlink (string-append texmf "/share/" name) name))
7800 '("texmf-dist" "texmf-var"))))
7802 (synopsis "TeX Live, a package of the TeX typesetting system")
7804 "TeX Live provides a comprehensive TeX document production system.
7805 It includes all the major TeX-related programs, macro packages, and fonts
7806 that are free software, including support for many languages around the
7809 This package contains the complete TeX Live distribution.")
7810 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
7811 (home-page "https://www.tug.org/texlive/")))
7813 (define-public perl-text-bibtex
7815 (name "perl-text-bibtex")
7820 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
7824 "0b7lmjvfmypps1nw6nsdikgaakm0n0g4186glaqazg5xd1p5h55h"))))
7825 (build-system perl-build-system)
7828 (modify-phases %standard-phases
7829 (add-after 'unpack 'add-output-directory-to-rpath
7830 (lambda* (#:key outputs #:allow-other-keys)
7831 (substitute* "inc/MyBuilder.pm"
7833 (string-append "-Wl,-rpath="
7834 (assoc-ref outputs "out") "/lib " line)))
7836 (add-after 'unpack 'install-libraries-to-/lib
7837 (lambda* (#:key outputs #:allow-other-keys)
7838 (substitute* "Build.PL"
7842 (list perl-capture-tiny perl-config-autoconf perl-extutils-libbuilder
7844 (home-page "https://metacpan.org/release/Text-BibTeX")
7845 (synopsis "Interface to read and parse BibTeX files")
7846 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
7847 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
7848 at many different levels: you may work with BibTeX entries as simple field to
7849 string mappings, or get at the original form of the data as a list of simple
7850 values (strings, macros, or numbers) pasted together.")
7851 (license license:perl-license)))
7853 (define-public biber
7855 ;; Note: When updating Biber, make sure it matches our BibLaTeX version by
7856 ;; checking the Biber/BibLaTeX compatibility matrix in the BibLaTeX manual
7857 ;; at <https://ctan.org/pkg/biblatex>.
7863 (url "https://github.com/plk/biber/")
7864 (commit (string-append "v" version))))
7865 (file-name (git-file-name name version))
7868 "0586q8y1f2k23mvb02ccm3qsb35cwskafksixsjaih7a7xcf5gxx"))))
7869 (build-system perl-build-system)
7872 (modify-phases %standard-phases
7873 (add-after 'install 'wrap-programs
7874 (lambda* (#:key outputs #:allow-other-keys)
7875 (let* ((out (assoc-ref outputs "out"))
7876 (perl5lib (getenv "PERL5LIB")))
7877 (wrap-program (string-append out "/bin/biber")
7878 `("PERL5LIB" ":" prefix
7879 (,(string-append perl5lib ":" out
7880 "/lib/perl5/site_perl")))))
7883 (list perl-autovivification
7888 perl-datetime-format-builder
7889 perl-datetime-calendar-julian
7899 perl-parse-recdescent
7900 perl-unicode-collate
7901 perl-unicode-normalize
7902 perl-unicode-linebreak
7903 perl-encode-eucjpascii
7905 perl-encode-hanextra
7907 perl-xml-libxml-simple
7917 perl-lwp-protocol-https
7921 perl-lingua-translit))
7923 `(("perl-config-autoconf" ,perl-config-autoconf)
7924 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
7925 ("perl-module-build" ,perl-module-build)
7927 ("perl-file-which" ,perl-file-which)
7928 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
7929 ("perl-test-differences" ,perl-test-differences)))
7930 (home-page "http://biblatex-biber.sourceforge.net/")
7931 (synopsis "Backend for the BibLaTeX citation management tool")
7932 (description "Biber is a BibTeX replacement for users of biblatex. Among
7933 other things it comes with full Unicode support.")
7934 (license license:artistic2.0)))
7936 (define-public rubber
7942 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
7943 version "/+download/rubber-"
7945 (string-append "http://ebeffara.free.fr/pub/rubber-"
7946 version ".tar.gz")))
7949 "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p"))))
7950 (build-system python-build-system)
7952 '(#:tests? #f ; no `check' target
7954 (modify-phases %standard-phases
7957 (lambda* (#:key outputs #:allow-other-keys)
7958 ;; texlive is required to build the PDF documentation; do not
7960 (invoke "python" "setup.py" "build" "--pdf=False" "install"
7961 (string-append "--prefix=" (assoc-ref outputs "out"))))))))
7962 (native-inputs (list texinfo))
7963 (home-page "https://launchpad.net/rubber")
7964 (synopsis "Wrapper for LaTeX and friends")
7966 "Rubber is a program whose purpose is to handle all tasks related to the
7967 compilation of LaTeX documents. This includes compiling the document itself,
7968 of course, enough times so that all references are defined, and running BibTeX
7969 to manage bibliographic references. Automatic execution of dvips to produce
7970 PostScript documents is also included, as well as usage of pdfLaTeX to produce
7972 (license license:gpl2+)))
7974 (define-public texmaker
7980 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
7981 version ".tar.bz2"))
7984 "1qnh5g8zkjpjmw2l8spcynpfgs3wpcfcla5ms2kkgvkbdlzspqqx"))))
7985 (build-system gnu-build-system)
7988 (modify-phases %standard-phases
7989 ;; Qt has its own configuration utility.
7991 (lambda* (#:key outputs #:allow-other-keys)
7992 (let ((out (assoc-ref outputs "out")))
7994 (string-append "PREFIX=" out)
7995 (string-append "DESKTOPDIR=" out "/share/applications")
7996 (string-append "ICONDIR=" out "/share/pixmaps")
7997 (string-append "METAINFODIR=" out "/share/metainfo")
7998 "texmaker.pro")))))))
8000 (list poppler-qt5 qtbase-5 qtscript zlib))
8003 (home-page "http://www.xm1math.net/texmaker/")
8004 (synopsis "LaTeX editor")
8005 (description "Texmaker is a program that integrates many tools needed to
8006 develop documents with LaTeX, in a single application.")
8007 (license license:gpl2+)))
8009 (define-public teximpatient
8011 (name "teximpatient")
8014 (method url-fetch/tarbomb)
8015 (uri (string-append "mirror://gnu/" name "/" name "-"
8019 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
8020 (build-system gnu-build-system)
8022 `(#:tests? #f ; there are none
8024 (modify-phases %standard-phases
8025 (add-after 'unpack 'fix-packaging-error
8026 (lambda* (#:key inputs #:allow-other-keys)
8027 ;; This file should have been part of the tarball.
8030 (assoc-ref inputs "automake")
8033 ;; Remove generated file.
8034 (delete-file "book.pdf")
8037 `(("texlive" ,(texlive-updmap.cfg (list texlive-amsfonts
8043 ("automake" ,automake)))
8044 (home-page "https://www.gnu.org/software/teximpatient/")
8045 (synopsis "Book on TeX, plain TeX and Eplain")
8046 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
8047 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
8049 (license license:fdl1.3+)))
8057 (uri (string-append "https://ftp.lyx.org/pub/lyx/stable/"
8058 (version-major+minor version) ".x/"
8059 "lyx-" version ".tar.xz"))
8062 "0y7sx804ral14py5jwmb3icvyd6rsw806dfclw0qx28r6iix5gn6"))
8063 (modules '((guix build utils)))
8066 (delete-file-recursively "3rdparty")
8068 (build-system qt-build-system)
8070 (list #:configure-flags
8071 #~(list "-DLYX_USE_QT=QT5"
8072 "-DLYX_EXTERNAL_BOOST=1"
8075 "-DLYX_PROGRAM_SUFFIX=OFF"
8076 (string-append "-DLYX_INSTALL_PREFIX=" #$output))
8078 #~(modify-phases %standard-phases
8079 (add-after 'unpack 'patch-python
8080 (lambda* (#:key inputs #:allow-other-keys)
8081 (substitute* '("lib/configure.py"
8082 "src/support/ForkedCalls.cpp"
8083 "src/support/Systemcall.cpp"
8084 "src/support/os.cpp"
8085 "src/support/filetools.cpp")
8088 (assoc-ref inputs "python")
8089 "/bin/python3 ")))))
8090 (add-after 'unpack 'add-missing-test-file
8092 ;; Create missing file that would cause tests to fail.
8093 (with-output-to-file "src/tests/check_layout.cmake"
8097 hunspell ; Note: Could also use aspell instead.
8105 `(("texlive" ,(texlive-updmap.cfg (list texlive-fonts-ec)))))
8107 (list python pkg-config))
8108 (home-page "https://www.lyx.org/")
8109 (synopsis "Document preparation system with GUI")
8110 (description "LyX is a document preparation system. It excels at letting
8111 you create complex technical and scientific articles with mathematics,
8112 cross-references, bibliographies, indexes, etc. It is very good for working
8113 with documents of any length in which the usual processing abilities are
8114 required: automatic sectioning and pagination, spell checking and so forth.")
8115 (license license:gpl2+)))
8117 (define-public texlive-latex-media9
8119 (name "texlive-latex-media9")
8120 (version (number->string %texlive-revision))
8124 (url (string-append "svn://www.tug.org/texlive/tags/"
8125 %texlive-tag "/Master/texmf-dist/"
8126 "/tex/latex/media9"))
8127 (revision %texlive-revision)))
8128 (file-name (string-append name "-" version "-checkout"))
8131 "0a1v70k6231323y1lazfda1y9568w8hn7c8jhc7rblkhdfv3slw7"))))
8132 (build-system trivial-build-system)
8134 `(#:modules ((guix build utils))
8137 (use-modules (guix build utils))
8138 (let ((target (string-append (assoc-ref %outputs "out")
8139 "/share/texmf-dist/tex/latex/media9")))
8141 (copy-recursively (assoc-ref %build-inputs "source") target)
8143 (home-page "https://www.ctan.org/pkg/media9")
8144 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
8146 "The package provides an interface to embed interactive Flash (SWF) and 3D
8147 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
8148 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
8149 compatibility. Playback of multimedia files uses the built-in Flash Player of
8150 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
8151 supports the efficient H.264 codec for video compression.
8153 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
8154 specification. It replaces the now obsolete @code{movie15} package.")
8155 (license license:lppl)))
8157 (define-public texlive-latex-ocgx2
8159 (name "texlive-latex-ocgx2")
8160 (version (number->string %texlive-revision))
8164 (url (string-append "svn://www.tug.org/texlive/tags/"
8165 %texlive-tag "/Master/texmf-dist/"
8166 "/tex/latex/ocgx2"))
8167 (revision %texlive-revision)))
8168 (file-name (string-append name "-" version "-checkout"))
8171 "1mrz1mj59m27bfya52vi4lm84ifisaf30pmf8id1biqwcq4jyynh"))))
8172 (build-system trivial-build-system)
8174 `(#:modules ((guix build utils))
8177 (use-modules (guix build utils))
8178 (let ((target (string-append (assoc-ref %outputs "out")
8179 "/share/texmf-dist/tex/latex/ogcx2")))
8181 (copy-recursively (assoc-ref %build-inputs "source") target)
8183 (home-page "https://www.ctan.org/pkg/ocgx2")
8184 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
8186 "This package provides OCG (Optional Content Groups) support within a PDF
8189 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
8190 @code{ocg-p} packages and adds support for all known engines and back-ends
8194 @item LaTeX → dvips → @code{ps2pdf}/Distiller
8195 @item (Xe)LaTeX(x) → @code{dvipdfmx}
8196 @item pdfLaTeX and LuaLaTeX .
8199 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
8200 (license license:lppl)))
8202 (define-public texlive-latex-ms
8204 (name "texlive-latex-ms")
8205 (version (number->string %texlive-revision))
8208 (uri (texlive-ref "latex" "ms"))
8209 (file-name (string-append name "-" version "-checkout"))
8212 "04ww5abfm7dx81d21yr2gwy9jswaalnfm2384xp4cyx7srd9spfv"))))
8213 (build-system texlive-build-system)
8215 '(#:tex-directory "latex/ms"
8216 #:tex-format "latex"))
8217 (home-page "https://ctan.org/pkg/ms")
8218 (synopsis "Various LATEX packages by Martin Schröder")
8220 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
8223 @item @command{count1to}, make use of fixed TEX counters;
8224 @item @command{everysel}, set commands to execute every time a font is selected;
8225 @item @command{everyshi}, set commands to execute whenever a page is shipped out;
8226 @item @command{multitoc}, typeset the table of contents in multiple columns;
8227 @item @command{prelim2e}, mark typeset pages as preliminary; and
8228 @item @command{ragged2e}, typeset ragged text and allow hyphenation.
8230 (license license:lppl1.3c+)))
8232 (define-public texlive-numprint
8234 (simple-texlive-package
8236 (list "doc/latex/numprint/"
8237 "source/latex/numprint/"
8238 "tex/latex/numprint/")
8239 (base32 "1rqbqj4ffcfxxxxbs100pdslaiimwzgg19mf2qzcmm5snxwrf7zj"))))
8242 (outputs '("out" "doc"))
8244 (substitute-keyword-arguments (package-arguments template)
8245 ((#:tex-directory _ '())
8247 ((#:build-targets _ '())
8248 '(list "numprint.ins"))
8250 `(modify-phases ,phases
8251 (add-after 'unpack 'chdir
8253 (chdir "source/latex/numprint")))
8254 (replace 'copy-files
8255 (lambda* (#:key inputs outputs #:allow-other-keys)
8256 (let ((origin (assoc-ref inputs "source"))
8257 (source (string-append (assoc-ref outputs "out")
8258 "/share/texmf-dist/source"))
8259 (doc (string-append (assoc-ref outputs "doc")
8260 "/share/texmf-dist/doc")))
8261 (copy-recursively (string-append origin "/source") source)
8262 (copy-recursively (string-append origin "/doc") doc))))))))
8263 (home-page "https://www.ctan.org/pkg/numprint")
8264 (synopsis "Print numbers with separators and exponent if necessary")
8266 "The package numprint prints numbers with a separator every three
8267 digits and converts numbers given as 12345.6e789 to 12\\,345,6\\cdot
8268 10^{789}. Numbers are printed in the current mode (text or math) in
8269 order to use the correct font.
8271 Many things, including the decimal sign, the thousand separator, as
8272 well as the product sign can be changed by the user, e.g., to reach
8273 12,345.6\\times 10^{789}.
8275 If an optional argument is given it is printed upright as unit.
8276 Numbers can be rounded to a given number of digits. The package
8277 supports an automatic, language-dependent change of the number format.
8279 Tabular alignment using the tabular, array, tabularx, and longtable
8280 environments (similar to the dcolumn and rccol packages) is supported
8281 using all features of numprint. Additional text can be added before
8282 and after the formatted number.")
8283 (license license:lppl))))
8285 (define-deprecated-package texlive-latex-numprint texlive-numprint)
8287 (define-public texlive-latex-needspace
8289 (name "texlive-latex-needspace")
8290 (version (number->string %texlive-revision))
8293 (uri (texlive-ref "latex" "needspace"))
8294 (file-name (string-append name "-" version "-checkout"))
8297 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
8298 (build-system texlive-build-system)
8300 '(#:tex-directory "latex/needspace"
8301 #:tex-format "latex"))
8303 (list texlive-latex-filecontents))
8304 (home-page "https://www.ctan.org/pkg/needspace")
8305 (synopsis "Insert pagebreak if not enough space")
8307 "Provides commands to disable pagebreaking within a given vertical
8308 space. If there is not enough space between the command and the bottom of the
8309 page, a new page will be started.")
8310 (license license:lppl)))
8312 (define-public texlive-latex-changepage
8314 (name "texlive-latex-changepage")
8315 (version (number->string %texlive-revision))
8319 (uri (texlive-ref "latex" "changepage"))
8320 (file-name (string-append name "-" version "-checkout"))
8323 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
8324 (build-system texlive-build-system)
8326 '(#:tex-directory "latex/changepage"
8327 #:tex-format "latex"))
8329 (list texlive-latex-filecontents))
8330 (home-page "https://www.ctan.org/pkg/changepage")
8331 (synopsis "Margin adjustment and detection of odd/even pages")
8333 "The package provides commands to change the page layout in the middle of
8334 a document, and to robustly check for typesetting on odd or even pages.
8335 Instructions for use are at the end of the file. The package is an extraction
8336 of code from the @code{memoir} class, whose user interface it shares.")
8337 (license license:lppl1.3+)))
8339 (define-public texlive-latex-eukdate
8341 (name "texlive-latex-eukdate")
8342 (version (number->string %texlive-revision))
8347 (url (string-append "svn://www.tug.org/texlive/tags/"
8348 %texlive-tag "/Master/texmf-dist/"
8349 "/tex/latex/eukdate"))
8350 (revision %texlive-revision)))
8351 (file-name (string-append name "-" version "-checkout"))
8354 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
8355 (build-system trivial-build-system)
8357 `(#:modules ((guix build utils))
8360 (use-modules (guix build utils))
8361 (let ((target (string-append (assoc-ref %outputs "out")
8362 "/share/texmf-dist/tex/latex/eukdate")))
8364 (copy-recursively (assoc-ref %build-inputs "source") target)
8366 (home-page "https://www.ctan.org/pkg/eukdate")
8367 (synopsis "UK format dates, with weekday")
8369 "The package is used to change the format of @code{\\today}’s date,
8370 including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
8371 is preferred in many parts of the world, as distinct from that which is used in
8372 @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
8373 (license license:lppl)))
8375 (define-public texlive-ulem
8377 (inherit (simple-texlive-package
8379 (list "doc/generic/ulem/" "tex/generic/ulem/")
8380 (base32 "0wcfnw5h6lsg2ilvkkf7mns8jgcn0n5sh45iznfsb49pfb4mming")
8382 (home-page "https://www.ctan.org/pkg/ulem")
8383 (synopsis "Underline text in TeX")
8385 "The package provides an @code{\\ul} (underline) command which will break
8386 over line ends; this technique may be used to replace @code{\\em} (both in that
8387 form and as the @code{\\emph} command), so as to make output look as if it comes
8388 from a typewriter. The package also offers double and wavy underlining, and
8389 striking out (line through words) and crossing out (/// over words).")
8390 (license license:lppl1.3c+)))
8392 (define-deprecated-package texlive-generic-ulem texlive-ulem)
8394 (define-public texlive-pgf
8396 (name "texlive-pgf")
8397 (version (number->string %texlive-revision))
8402 (url (string-append "svn://www.tug.org/texlive/tags/"
8403 %texlive-tag "/Master/texmf-dist/"
8405 (revision %texlive-revision)))
8406 (file-name (string-append name "-" version "-checkout"))
8409 "1jk10rxz5f8vh46am11b40hxhhikk67h9jr3z877q5qc8kwppgza"))))
8410 (build-system trivial-build-system)
8412 `(("texlive-latex-pgf-generic"
8416 (url (string-append "svn://www.tug.org/texlive/tags/"
8417 %texlive-tag "/Master/texmf-dist/"
8418 "/tex/generic/pgf"))
8419 (revision %texlive-revision)))
8420 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
8423 "05zdq7y3am109m5534ahqqp9x5iar3ha68v1r4zkrdly2mijxz2j"))))))
8425 (list texlive-xcolor))
8427 `(#:modules ((guix build utils))
8430 (use-modules (guix build utils))
8431 (let ((target-generic (string-append (assoc-ref %outputs "out")
8432 "/share/texmf-dist/tex/generic/pgf"))
8433 (target-latex (string-append (assoc-ref %outputs "out")
8434 "/share/texmf-dist/tex/latex/pgf")))
8435 (mkdir-p target-generic)
8436 (mkdir-p target-latex)
8437 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
8438 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
8440 (home-page "https://www.ctan.org/pkg/tikz")
8441 (synopsis "Create PostScript and PDF graphics in TeX")
8443 "PGF is a macro package for creating graphics. It is platform- and
8444 format-independent and works together with the most important TeX backend
8445 drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
8448 Its usage is similar to pstricks and the standard picture environment. PGF
8449 works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
8450 produce either PostScript or PDF output.")
8451 (license license:lppl1.3c+)))
8453 (define-public texlive-latex-pgf
8454 (deprecated-package "texlive-latex-pgf" texlive-pgf))
8456 (define-public texlive-latex-koma-script
8458 (name "texlive-latex-koma-script")
8459 (version (number->string %texlive-revision))
8463 (url (string-append "svn://www.tug.org/texlive/tags/"
8464 %texlive-tag "/Master/texmf-dist/"
8465 "/tex/latex/koma-script"))
8466 (revision %texlive-revision)))
8467 (file-name (string-append name "-" version "-checkout"))
8470 "1m6i8162r6ka19q517llrf0lax80rrsq564qirwk1chv5dqsmnfi"))))
8471 (build-system trivial-build-system)
8473 `(#:modules ((guix build utils))
8476 (use-modules (guix build utils)
8478 (let ((root (string-append (assoc-ref %outputs "out")
8479 "/share/texmf-dist/"))
8480 (pkgs '(("source" . "tex/latex/koma-script"))))
8481 (for-each (match-lambda
8483 (let ((target (string-append root dir)))
8485 (copy-recursively (assoc-ref %build-inputs pkg)
8489 (home-page "https://www.ctan.org/pkg/koma-script")
8490 (synopsis "Bundle of versatile classes and packages")
8492 "The KOMA-Script bundle provides replacements for the article, report, and
8493 book classes with emphasis on typography and versatility. There is also a
8496 The bundle also offers:
8499 @item a package for calculating type areas in the way laid down by the
8500 typographer Jan Tschichold,
8501 @item packages for easily changing and defining page styles,
8502 @item a package scrdate for getting not only the current date but also the name
8504 @item a package scrtime for getting the current time.
8507 All these packages may be used not only with KOMA-Script classes but also with
8508 the standard classes.
8510 Since every package has its own version number, the version number quoted only
8511 refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
8512 typearea (which are the main parts of the bundle).")
8513 (license license:lppl1.3+)))
8515 (define-public texlive-generic-atbegshi
8517 (inherit (simple-texlive-package
8518 "texlive-generic-atbegshi"
8519 '("/doc/latex/atbegshi/"
8520 "/tex/generic/atbegshi/")
8522 "184fr5kd3wl44ix63lwb3ll7dhiikkyw1czbnzrl4am4rx0zh4d8")
8524 (home-page "https://www.ctan.org/pkg/atbegshi")
8525 (synopsis "Execute commands at @code{\\shipout} time")
8527 "This package is a modern reimplementation of package @code{everyshi},
8528 providing various commands to be executed before a @code{\\shipout} command.
8529 It makes use of e-TeX’s facilities if they are available. The package may
8530 be used either with LaTeX or with plain TeX.")
8531 (license license:lppl1.3c+)))
8533 (define-public texlive-generic-bigintcalc
8535 (inherit (simple-texlive-package
8536 "texlive-generic-bigintcalc"
8537 '("/doc/latex/bigintcalc/README.md"
8538 "/tex/generic/bigintcalc/")
8540 "19grk4p1dh566hgpzhnjyjnrw57hpjijcpr7ci401n9jszcc1xkz")
8543 (list texlive-latex-pdftexcmds))
8544 (home-page "https://www.ctan.org/pkg/bigintcalc")
8545 (synopsis "Integer calculations on very large numbers")
8547 "This package provides expandable arithmetic operations with big
8548 integers that can exceed TeX's number limits.")
8549 (license license:lppl1.3c+)))
8551 (define-public texlive-generic-bitset
8553 (inherit (simple-texlive-package
8554 "texlive-generic-bitset"
8555 '("/doc/latex/bitset/README.md"
8556 "/tex/generic/bitset/")
8558 "0inj6qpzizvsbxdfsaijnl4iq976kyrnchnm3gc1kc2w389zrn1l")
8561 (list texlive-generic-infwarerr texlive-generic-intcalc
8562 texlive-generic-bigintcalc))
8563 (home-page "https://www.ctan.org/pkg/bitset")
8564 (synopsis "Handle bit-vector datatype")
8566 "This package defines and implements the data type bit set, a vector
8567 of bits. The size of the vector may grow dynamically. Individual bits
8568 can be manipulated.")
8569 (license license:lppl1.3c+)))
8571 (define-public texlive-generic-etexcmds
8573 (inherit (simple-texlive-package
8574 "texlive-generic-etexcmds"
8575 '("/doc/latex/etexcmds/README.md"
8576 "/tex/generic/etexcmds/")
8578 "11y6pnlq13bp0ybi7c82g8ds8085zv1zaslgqv3dzhgi3dklpc0c")
8581 (list texlive-generic-infwarerr texlive-generic-iftex))
8582 (home-page "https://www.ctan.org/pkg/etexcmds")
8583 (synopsis "Avoid name clashes with e-TeX commands")
8585 "New primitive commands are introduced in e-TeX; sometimes the names
8586 collide with existing macros. This package solves the name clashes by
8587 adding a prefix to e-TeX’s commands. For example, ε-TeX’s
8588 @code{\\unexpanded} is provided as @code{\\etex@@unexpanded}.")
8589 (license license:lppl1.3c+)))
8591 (define-public texlive-generic-gettitlestring
8593 (inherit (simple-texlive-package
8594 "texlive-generic-gettitlestring"
8595 '("/doc/latex/gettitlestring/"
8596 "/tex/generic/gettitlestring/")
8598 "1p4hg9mac03rzvj9dw0ws3zdh55fy1ns954f912algw9f2aq4xgp")
8600 (home-page "https://www.ctan.org/pkg/gettitlestring")
8601 (synopsis "Clean up title references")
8603 "This package provides commands for cleaning up the title string
8604 (such as removing @code{\\label} commands) for packages that typeset such
8606 (license license:lppl1.3c+)))
8608 (define-public texlive-generic-infwarerr
8610 (inherit (simple-texlive-package
8611 "texlive-generic-infwarerr"
8612 '("/tex/generic/infwarerr/")
8614 "19nlrbfmqbkjrrx9x75s9nd6crg1lzimb2fr3hfblaivj6lx8p4r")
8616 (home-page "https://www.ctan.org/pkg/infwarerr")
8617 (synopsis "Information/warning/error macros")
8619 "This package provides a complete set of macros for information,
8620 warning and error messages. Under LaTeX, the commands are wrappers for
8621 the corresponding LaTeX commands; under Plain TeX they are available as
8622 complete implementations.")
8623 (license license:lppl1.3c+)))
8625 (define-public texlive-generic-intcalc
8627 (inherit (simple-texlive-package
8628 "texlive-generic-intcalc"
8629 '("/tex/generic/intcalc/")
8631 "0llrnayqwdqxi91yh7panbbiljina3bynv2hxhi6sssaw3pyd92l")
8633 (home-page "https://www.ctan.org/pkg/intcalc")
8634 (synopsis "Expandable arithmetic operations with integers")
8636 "This package provides expandable arithmetic operations with integers,
8637 using the e-TeX extension @code{\\numexpr} if it is available.")
8638 (license license:lppl1.3c+)))
8640 (define-public texlive-generic-kvdefinekeys
8642 (inherit (simple-texlive-package
8643 "texlive-generic-kvdefinekeys"
8644 '("/tex/generic/kvdefinekeys/")
8646 "12nn74skhwiszbdhawqds31caz6d59a5pjmwar0r8lmk4f1jr3xh")
8648 (home-page "https://www.ctan.org/pkg/kvdefinekeys")
8649 (synopsis "Define keys for use in the @code{kvsetkeys} package")
8651 "This package provides the @code{\\kv@@define@@key} (analogous to
8652 keyval’s @code{\\define@@key}, to define keys for use by @code{kvsetkeys}.")
8653 (license license:lppl1.3c+)))
8655 (define-public texlive-generic-kvsetkeys
8657 (inherit (simple-texlive-package
8658 "texlive-generic-kvsetkeys"
8659 '("/tex/generic/kvsetkeys/")
8661 "149vpmv4vms269dzq4sghlngg380sasvxnb3sx9rfs7d9j0finvi")
8663 (home-page "https://www.ctan.org/pkg/kvsetkeys")
8664 (synopsis "Key value parser with default handler support")
8666 "This package provides @code{\\kvsetkeys}, a variant of @code{\\setkeys}
8667 from the @code{keyval} package. Users can specify a handler that deals with
8668 unknown options. Active commas and equal signs may be used, and only one
8669 level of curly braces are removed from the values.")
8670 (license license:lppl1.3c+)))
8672 (define-public texlive-generic-listofitems
8674 (name "texlive-generic-listofitems")
8675 (version (number->string %texlive-revision))
8679 (url (string-append "svn://www.tug.org/texlive/tags/"
8680 %texlive-tag "/Master/texmf-dist/"
8681 "/tex/generic/listofitems"))
8682 (revision %texlive-revision)))
8683 (file-name (string-append name "-" version "-checkout"))
8686 "1wnbnfrhi6hgqa78jsw6hljzi03i5x99mlr5n2419hgws52hk67y"))))
8687 (build-system trivial-build-system)
8689 `(#:modules ((guix build utils))
8692 (use-modules (guix build utils))
8693 (let ((target (string-append (assoc-ref %outputs "out")
8694 "/share/texmf-dist/tex/generic/listofitems")))
8696 (copy-recursively (assoc-ref %build-inputs "source") target)
8698 (home-page "https://www.ctan.org/pkg/listofitems")
8699 (synopsis "Grab items in lists using user-specified separation character")
8701 "This package allows one to capture all the items of a list, for which
8702 the parsing character has been selected by the user, and to access any of
8703 these items with a simple syntax.")
8704 (license license:lppl1.3c+)))
8706 (define-public texlive-generic-ltxcmds
8708 (inherit (simple-texlive-package
8709 "texlive-generic-ltxcmds"
8710 '("/tex/generic/ltxcmds/")
8712 "1lr77yai2qivlx26s5094czpfxmg96bhxps5wbm8xn7cpsw0zbd9")
8714 (home-page "https://www.ctan.org/pkg/ltxcmds")
8715 (synopsis "LaTeX kernel commands extracted for general use")
8717 "This package exports some utility macros from the LaTeX kernel into
8718 a separate namespace and also makes them available for other formats such
8720 (license license:lppl1.3c+)))
8722 (define-public texlive-generic-pdfescape
8724 (inherit (simple-texlive-package
8725 "texlive-generic-pdfescape"
8726 '("/tex/generic/pdfescape/")
8728 "1vbdjmm9bi9ngzz2z1b8jnf6nzf9xsaj5pvyswg13y4dr00mnz6n")
8730 (home-page "https://www.ctan.org/pkg/pdfescape")
8731 (synopsis "pdfTeX's escape features for plain TeX")
8733 "This package implements pdfTeX's escape features (@code{\\pdfescapehex},
8734 @code{\\pdfunescapehex}, @code{\\pdfescapename}, @code{\\pdfescapestring})
8735 using TeX or e-TeX.")
8736 (license license:lppl1.3c+)))
8738 (define-public texlive-generic-uniquecounter
8740 (inherit (simple-texlive-package
8741 "texlive-generic-uniquecounter"
8742 '("/doc/latex/uniquecounter/"
8743 "/tex/generic/uniquecounter/")
8745 "1bjh8vwiqlkmjqndnh4xp116524x4m3hdcyq2s231jiqy8il8dcc")
8748 (list texlive-generic-bigintcalc texlive-generic-infwarerr))
8749 (home-page "https://www.ctan.org/pkg/uniquecounter")
8750 (synopsis "Unlimited unique counter")
8752 "This package provides a kind of counter that provides unique number
8753 values. Several counters can be created with different names. The numeric
8754 values are not limited.")
8755 (license license:lppl1.3c+)))
8757 (define-public texlive-latex-readarray
8759 (name "texlive-latex-readarray")
8760 (version (number->string %texlive-revision))
8764 (url (string-append "svn://www.tug.org/texlive/tags/"
8765 %texlive-tag "/Master/texmf-dist/"
8766 "/tex/latex/readarray"))
8767 (revision %texlive-revision)))
8768 (file-name (string-append name "-" version "-checkout"))
8771 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
8772 (build-system trivial-build-system)
8774 `(#:modules ((guix build utils))
8777 (use-modules (guix build utils))
8778 (let ((target (string-append (assoc-ref %outputs "out")
8779 "/share/texmf-dist/tex/latex/readarray")))
8781 (copy-recursively (assoc-ref %build-inputs "source") target)
8784 (list texlive-generic-listofitems))
8785 (home-page "https://www.ctan.org/pkg/readarray")
8786 (synopsis "Read, store and recall array-formatted data")
8788 "This package allows the user to input formatted data into elements of a
8789 2-D or 3-D array and to recall that data at will by individual cell number.
8790 The data can be but need not be numerical in nature. It can be, for example,
8792 (license license:lppl1.3)))
8794 (define-public texlive-latex-verbatimbox
8796 (name "texlive-latex-verbatimbox")
8797 (version (number->string %texlive-revision))
8801 (url (string-append "svn://www.tug.org/texlive/tags/"
8802 %texlive-tag "/Master/texmf-dist/"
8803 "/tex/latex/verbatimbox"))
8804 (revision %texlive-revision)))
8805 (file-name (string-append name "-" version "-checkout"))
8808 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
8809 (build-system trivial-build-system)
8811 `(#:modules ((guix build utils))
8814 (use-modules (guix build utils))
8815 (let ((target (string-append (assoc-ref %outputs "out")
8816 "/share/texmf-dist/tex/latex/verbatimbox")))
8818 (copy-recursively (assoc-ref %build-inputs "source") target)
8821 (list texlive-latex-readarray))
8822 (home-page "https://www.ctan.org/pkg/verbatimbox")
8823 (synopsis "Deposit verbatim text in a box")
8825 "The package provides a @code{verbbox} environment to place its contents
8826 into a globally available box, or into a box specified by the user. The
8827 global box may then be used in a variety of situations (for example, providing
8828 a replica of the @code{boxedverbatim} environment itself). A valuable use is
8829 in places where the standard @code{verbatim} environment (which is based on a
8830 @code{trivlist}) may not appear.")
8831 (license license:lppl1.3+)))
8833 (define-public texlive-latex-examplep
8835 (name "texlive-latex-examplep")
8836 (version (number->string %texlive-revision))
8840 (url (string-append "svn://www.tug.org/texlive/tags/"
8841 %texlive-tag "/Master/texmf-dist/"
8842 "/tex/latex/examplep"))
8843 (revision %texlive-revision)))
8844 (file-name (string-append name "-" version "-checkout"))
8847 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
8848 (build-system trivial-build-system)
8850 `(#:modules ((guix build utils))
8853 (use-modules (guix build utils))
8854 (let ((target (string-append (assoc-ref %outputs "out")
8855 "/share/texmf-dist/tex/latex/examplep")))
8857 (copy-recursively (assoc-ref %build-inputs "source") target)
8859 (home-page "https://www.ctan.org/pkg/examplep")
8860 (synopsis "Verbatim phrases and listings in LaTeX")
8862 "Examplep provides sophisticated features for typesetting verbatim source
8863 code listings, including the display of the source code and its compiled LaTeX
8864 or METAPOST output side-by-side, with automatic width detection and enabled
8865 page breaks (in the source), without the need for specifying the source twice.
8866 Special care is taken that section, page and footnote numbers do not interfere
8867 with the main document. For typesetting short verbatim phrases, a replacement
8868 for the @code{\\verb} command is also provided in the package, which can be
8869 used inside tables and moving arguments such as footnotes and section
8871 ;; No version of the GPL is specified.
8872 (license license:gpl3+)))
8874 (define-public texlive-xunicode
8877 (simple-texlive-package "texlive-xunicode"
8878 (list "doc/xelatex/xunicode/"
8879 "tex/xelatex/xunicode/")
8881 "1d96i8kd2lhbykc3rxy2jjvws404f2vy1cvdcp5bdr6l9m72q1fa")
8883 (propagated-inputs (list texlive-tipa))
8884 (home-page "https://ctan.org/macros/xetex/latex/xunicode")
8885 (synopsis "Generate Unicode characters from accented glyphs")
8887 "The package supports XeTeX's (and other putative future similar engines')
8888 need for Unicode characters, in a similar way to what the fontenc does for
8889 8-bit (and the like) fonts: convert accent-glyph sequence to a single Unicode
8890 character for output. The package also covers glyphs specified by
8891 packages (such as @code{tipa}) which define many commands for single text
8893 (license license:lppl1.3+)))
8895 (define-public texlive-xypic
8896 (let ((template (simple-texlive-package
8898 (list "/doc/generic/xypic/"
8899 "/dvips/xypic/xy389dict.pro"
8900 "/fonts/enc/dvips/xypic/"
8901 "/fonts/map/dvips/xypic/xypic.map"
8903 "/fonts/source/public/xypic/"
8904 "/fonts/afm/public/xypic/"
8905 "/fonts/tfm/public/xypic/"
8906 "/fonts/type1/public/xypic/"
8907 "/tex/generic/xypic/")
8909 "09b51bbm189xh7039h5n8nmab5nn2bybhh26qjn08763m80zdhjg")
8914 (substitute-keyword-arguments (package-arguments template)
8916 `(modify-phases ,phases
8917 (delete 'reset-gzip-timestamps)))))
8918 (home-page "https://www.ctan.org/pkg/xypic")
8919 (synopsis "Flexible diagramming macros")
8920 (description "This is a package for typesetting a variety of graphs and
8921 diagrams with TeX. Xy-pic works with most formats (including LaTeX,
8922 AMS-LaTeX, AMS-TeX, and plain TeX). The distribution includes Michael Barr's
8923 @code{diag} package, which was previously distributed stand-alone.")
8924 (license license:gpl3+))))
8926 (define-deprecated-package texlive-fonts-xypic texlive-xypic)
8928 (define-deprecated-package texlive-generic-xypic texlive-xypic)
8930 (define-public texlive-bibtex
8932 (name "texlive-bibtex")
8933 (version (number->string %texlive-revision))
8938 (url (string-append "svn://www.tug.org/texlive/tags/"
8939 %texlive-tag "/Master/texmf-dist/"
8941 (revision %texlive-revision)))
8942 (file-name (string-append name "-" version "-checkout"))
8945 "0fr0s3jhrvplddb42if570dxllz54fa0pf4d2am27h8m385nghbf"))))
8946 (build-system trivial-build-system)
8948 `(#:modules ((guix build utils))
8951 (use-modules (guix build utils))
8952 (let ((target (string-append (assoc-ref %outputs "out")
8953 "/share/texmf-dist/bibtex")))
8955 (copy-recursively (assoc-ref %build-inputs "source") target)
8957 (home-page "https://www.ctan.org/pkg/bibtex")
8958 (synopsis "Process bibliographies for LaTeX")
8960 "BibTeX allows the user to store his citation data in generic form, while
8961 printing citations in a document in the form specified by a BibTeX style, to
8962 be specified in the document itself (one often needs a LaTeX citation-style
8963 package, such as @command{natbib} as well).")
8964 (license license:knuth)))
8966 (define-public texlive-charter
8968 (inherit (simple-texlive-package
8970 (list "/doc/fonts/charter/readme.charter"
8971 "/fonts/afm/bitstrea/charter/"
8972 "/fonts/tfm/bitstrea/charter/"
8973 "/fonts/type1/bitstrea/charter/"
8974 "/fonts/vf/bitstrea/charter/")
8976 "09l5ymgz48s3hyn776l01g3isk3dnhrj1vdavdw4qq4kfxxpqdn9")
8978 ;; This provides charter.map.
8980 (list texlive-psnfss))
8981 (home-page "https://www.ctan.org/pkg/charter")
8982 (synopsis "Charter fonts for TeX")
8983 (description "This package provides a copy of the Charter Type-1 fonts
8984 which Bitstream contributed to the X consortium, renamed for use with TeX.
8985 Support for use with LaTeX is available in @code{freenfss}, part of
8987 (license (license:non-copyleft
8988 "http://mirrors.ctan.org/fonts/charter/readme.charter"))))
8990 (define-deprecated-package texlive-fonts-charter texlive-charter)
8992 (define-public texlive-context
8994 (inherit (simple-texlive-package
8996 (list "/doc/context/"
8997 "/doc/man/man1/context.1"
8998 "/doc/man/man1/luatools.1"
8999 "/doc/man/man1/mtx-babel.1"
9000 "/doc/man/man1/mtx-base.1"
9001 "/doc/man/man1/mtx-bibtex.1"
9002 "/doc/man/man1/mtx-cache.1"
9003 "/doc/man/man1/mtx-chars.1"
9004 "/doc/man/man1/mtx-check.1"
9005 "/doc/man/man1/mtx-colors.1"
9006 "/doc/man/man1/mtx-context.1"
9007 "/doc/man/man1/mtx-dvi.1"
9008 "/doc/man/man1/mtx-epub.1"
9009 "/doc/man/man1/mtx-evohome.1"
9010 "/doc/man/man1/mtx-fcd.1"
9011 "/doc/man/man1/mtx-flac.1"
9012 "/doc/man/man1/mtx-fonts.1"
9013 "/doc/man/man1/mtx-grep.1"
9014 "/doc/man/man1/mtx-interface.1"
9015 "/doc/man/man1/mtx-metapost.1"
9016 "/doc/man/man1/mtx-modules.1"
9017 "/doc/man/man1/mtx-package.1"
9018 "/doc/man/man1/mtx-pdf.1"
9019 "/doc/man/man1/mtx-plain.1"
9020 "/doc/man/man1/mtx-profile.1"
9021 "/doc/man/man1/mtx-rsync.1"
9022 "/doc/man/man1/mtx-scite.1"
9023 "/doc/man/man1/mtx-server.1"
9024 "/doc/man/man1/mtx-texworks.1"
9025 "/doc/man/man1/mtx-timing.1"
9026 "/doc/man/man1/mtx-tools.1"
9027 "/doc/man/man1/mtx-unicode.1"
9028 "/doc/man/man1/mtx-unzip.1"
9029 "/doc/man/man1/mtx-update.1"
9030 "/doc/man/man1/mtx-watch.1"
9031 "/doc/man/man1/mtx-youless.1"
9033 "/bibtex/bst/context/"
9036 "/fonts/afm/hoekwater/context/contnav.afm"
9037 "/fonts/cid/fontforge/Adobe-CNS1-4.cidmap"
9038 "/fonts/cid/fontforge/Adobe-GB1-4.cidmap"
9039 "/fonts/cid/fontforge/Adobe-Identity-0.cidmap"
9040 "/fonts/cid/fontforge/Adobe-Japan1-5.cidmap"
9041 "/fonts/cid/fontforge/Adobe-Japan1-6.cidmap"
9042 "/fonts/cid/fontforge/Adobe-Japan2-0.cidmap"
9043 "/fonts/cid/fontforge/Adobe-Korea1-2.cidmap"
9044 "/fonts/enc/dvips/context/"
9045 "/fonts/map/dvips/context/"
9046 "/fonts/map/luatex/context/"
9047 "/fonts/map/pdftex/context/"
9048 "/fonts/misc/xetex/fontmapping/context/"
9049 "/fonts/tfm/hoekwater/context/"
9050 "/fonts/type1/hoekwater/context/"
9051 "/metapost/context/"
9053 "/tex/context/base/"
9055 "/tex/context/colors/"
9056 "/tex/context/fonts/"
9057 "/tex/context/interface/"
9058 "/tex/context/modules/"
9059 "/tex/context/patterns/"
9060 "/tex/context/sample/"
9061 "/tex/context/test/"
9062 "/tex/context/user/"
9063 "/tex/generic/context/"
9064 "/tex/latex/context/")
9066 "1rsw760f52rj62i7ms89xgxdi0qw6hag5fs5hb667nclr4kdkam8")
9068 ;; TODO: add these missing packages:
9069 ;; xetex, luatex, lm-math, manfnt-font, and mptopdf
9071 (list texlive-amsfonts
9076 texlive-mflogo-font))
9077 (home-page "https://www.ctan.org/pkg/context")
9078 (synopsis "Full featured, parameter driven macro package for TeX")
9079 (description "ConTeXt is a full featured, parameter driven macro package,
9080 which fully supports advanced interactive documents. See the ConTeXt garden
9081 for a wealth of support information.")
9082 ;; The GPL applies to all code; alternatively, the LaTeX license may be used.
9083 ;; The CC-BY-SA license applies to all documentation.
9084 (license (list license:lppl1.3c+
9086 license:cc-by-sa4.0))))
9088 (define-deprecated-package texlive-context-base texlive-context)
9090 (define-public texlive-beamer
9092 (inherit (simple-texlive-package
9094 (list "/doc/latex/beamer/"
9095 "/tex/latex/beamer/")
9097 "091n27n4l3iac911bvmpp735ffryyzaq46mkclgn3q9jsvc4ngiv")
9100 (list texlive-hyperref texlive-oberdiek texlive-etoolbox
9102 (home-page "https://www.ctan.org/pkg/beamer")
9103 (synopsis "LaTeX class for producing presentations and slides")
9104 (description "The beamer LaTeX class can be used for producing slides.
9105 The class works in both PostScript and direct PDF output modes, using the
9106 @code{pgf} graphics system for visual effects. Content is created in the
9107 @code{frame} environment, and each frame can be made up of a number of slides
9108 using a simple notation for specifying material to appear on each slide within
9109 a frame. Short versions of title, authors, institute can also be specified as
9110 optional parameters. Whole frame graphics are supported by plain frames. The
9111 class supports @code{figure} and @code{table} environments, transparency
9112 effects, varying slide transitions and animations.")
9113 ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is
9114 ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+.
9115 (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+))))
9117 (define-deprecated-package texlive-latex-beamer texlive-beamer)
9119 (define-public texlive-latex-xmpincl
9121 (name "texlive-latex-xmpincl")
9122 (version (number->string %texlive-revision))
9126 (uri (texlive-ref "latex" "xmpincl"))
9127 (file-name (string-append name "-" version "-checkout"))
9130 "0lq3dfb4fsw955gjwllnk7cg00ciq5mva64mlpbva6g2jz117734"))))
9131 (build-system texlive-build-system)
9132 (arguments '(#:tex-directory "latex/xmpincl"))
9133 (home-page "http://www.ctan.org/pkg/xmpincl")
9134 (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX")
9136 "The XMP (eXtensible Metadata platform) is a framework to add metadata to
9137 digital material to enhance the workflow in publication. The essence is that
9138 the metadata is stored in an XML file, and this XML stream is then embedded in
9139 the file to which it applies.")
9140 (license license:gpl3+)))
9142 (define-public texlive-pdfx
9143 (let ((template (simple-texlive-package
9145 (list "/doc/latex/pdfx/"
9146 "/source/latex/pdfx/"
9149 "1z4j4d92k2fjmf8jfap4zn7ij97d9rz2jcs9aslcac07ag4x5bdp"))))
9153 (substitute-keyword-arguments (package-arguments template)
9154 ((#:tex-directory _ #t)
9157 `(modify-phases ,phases
9158 (add-after 'unpack 'delete-generated-file
9160 ;; Generate this file from sources
9161 (delete-file "tex/latex/pdfx/pdfx.sty")
9163 (add-after 'delete-generated-file 'chdir
9164 (lambda _ (chdir "source/latex/pdfx") #t))
9165 (add-after 'chdir 'fix-encoding
9167 (substitute* "pdfx.dtx"
9168 ((" .+umaczy") "umaczy"))
9171 (list texlive-pdftex))
9172 (home-page "https://www.ctan.org/pkg/pdfx")
9173 (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX")
9175 "This package helps LaTeX users to create PDF/X, PDF/A and other
9176 standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.")
9177 (license license:lppl1.2+))))
9179 (define-deprecated-package texlive-latex-pdfx texlive-pdfx)
9181 (define-public texlive-ydoc
9182 (let ((template (simple-texlive-package
9184 (list "/doc/latex/ydoc/"
9185 "/source/latex/ydoc/")
9187 "0ckcpy1b8v1fk3qc8qkxgiag2wc0qzxm6bgksv000m4m1hsi2g8b")
9191 (outputs '("out" "doc"))
9193 (substitute-keyword-arguments (package-arguments template)
9194 ((#:tex-directory _ #t)
9196 ((#:build-targets _ #t)
9199 `(modify-phases ,phases
9200 (add-after 'unpack 'chdir
9201 (lambda _ (chdir "source/latex/ydoc") #t))
9202 (add-after 'copy-files 'move-files
9203 (lambda* (#:key inputs outputs #:allow-other-keys)
9204 (let ((source (assoc-ref inputs "source"))
9205 (doc (string-append (assoc-ref outputs "doc")
9206 "/share/texmf-dist/doc")))
9207 (copy-recursively (string-append source "/doc") doc))))))))
9208 (home-page "http://www.ctan.org/pkg/ydoc")
9209 (synopsis "Macros for documentation of LaTeX classes and packages")
9210 (description "The package provides macros and environments to document
9211 LaTeX packages and classes. It is an (as yet unfinished) alternative to the
9212 @code{ltxdoc} class and the @code{doc} or @code{xdoc} packages. The aim is to
9213 provide a different layout and more modern styles (using the @code{xcolor},
9214 @code{hyperref} packages, etc.) This is an alpha release, and should probably
9215 not (yet) be used with other packages, since the implementation might
9217 (license license:lppl1.3+))))
9219 (define-public texlive-pstricks
9220 (let ((template (simple-texlive-package
9222 (list "/doc/generic/pstricks/"
9224 "/tex/generic/pstricks/"
9225 "/tex/latex/pstricks/")
9227 "15c9iqfq2y9c8c78cvqb6vzd5a5rm7qq5x7m05jq1hb8sgqrqb0j")
9232 (substitute-keyword-arguments (package-arguments template)
9234 `(modify-phases ,phases
9235 (delete 'reset-gzip-timestamps)))))
9236 (home-page "http://www.ctan.org/pkg/pstricks")
9237 (synopsis "PostScript macros for TeX")
9238 (description "PSTricks offers an extensive collection of macros for
9239 generating PostScript that is usable with most TeX macro formats, including
9240 Plain TeX, LaTeX, AMS-TeX, and AMS-LaTeX. Included are macros for colour,
9241 graphics, pie charts, rotation, trees and overlays. It has many special
9242 features, including a wide variety of graphics (picture drawing) macros, with
9243 a flexible interface and with colour support. There are macros for colouring
9244 or shading the cells of tables.")
9245 (license license:lppl1.3+))))
9247 (define-public texlive-pst-text
9248 (let ((template (simple-texlive-package
9250 (list "/doc/generic/pst-text/"
9251 "/dvips/pst-text/pst-text.pro"
9252 "/tex/generic/pst-text/"
9253 "/tex/latex/pst-text/")
9255 "146fpzd1xlqi94q5r48z8ni8qww713yh6nwkbr9pw27mjrqdadb9")
9260 (list texlive-pstricks))
9261 (home-page "http://www.ctan.org/pkg/pst-text")
9262 (synopsis "Text and character manipulation in PSTricks")
9263 (description "Pst-text is a PSTricks based package for plotting text along
9264 a different path and manipulating characters. It includes the functionality
9265 of the old package @code{pst-char}.")
9266 (license license:lppl))))
9268 (define-public texlive-marginnote
9269 (let ((template (simple-texlive-package
9270 "texlive-marginnote"
9271 (list "/source/latex/marginnote/marginnote.dtx")
9273 "152bwxhnssj40rr72r6cfirvqbnc0h7xnagfrbz58v2xck53qhg1"))))
9276 (home-page "http://www.ctan.org/pkg/marginnote")
9278 (substitute-keyword-arguments (package-arguments template)
9279 ((#:tex-directory _ '())
9281 ((#:build-targets _ '())
9282 ''("marginnote.dtx"))
9284 `(modify-phases ,phases
9285 (add-after 'unpack 'chdir
9286 (lambda _ (chdir "source/latex/marginnote") #t))))))
9287 (synopsis "Notes in the margin")
9288 (description "This package provides the command @code{\\marginnote} that
9289 may be used instead of @code{\\marginpar} at almost every place where
9290 @code{\\marginpar} cannot be used, e.g., inside floats, footnotes, or in
9291 frames made with the @code{framed} package.")
9292 (license license:lppl1.3c+))))
9294 (define-public texlive-generic-iftex
9295 (let ((template (simple-texlive-package
9296 "texlive-generic-iftex"
9297 (list "/doc/generic/iftex/"
9298 "/tex/generic/iftex/")
9300 "147xa5kl4kjs05nj8v3kd7dpr5xkz3xp3gdvjih32ccd7527f5vp")
9304 (home-page "http://www.ctan.org/pkg/iftex")
9305 (synopsis "Determine the currently used TeX engine")
9306 (description "This package, which works both for Plain TeX and for
9307 LaTeX, defines the @code{\\ifPDFTeX}, @code{\\ifXeTeX}, and @code{\\ifLuaTeX}
9308 conditionals for testing which engine is being used for typesetting. The
9309 package also provides the @code{\\RequirePDFTeX}, @code{\\RequireXeTeX}, and
9310 @code{\\RequireLuaTeX} commands which throw an error if pdfTeX, XeTeX or
9311 LuaTeX (respectively) is not the engine in use.")
9312 (license license:lppl1.3+))))
9314 (define-deprecated-package texlive-iftex texlive-generic-iftex)
9316 (define-deprecated-package texlive-generic-ifxetex texlive-generic-iftex)
9318 (define-public texlive-tabu
9320 (simple-texlive-package
9322 (list "doc/latex/tabu/"
9323 "source/latex/tabu/"
9325 (base32 "0mixyrqavipq4ni38z42x3579cdjbz54cp2qqb4q4yhfbl0a4pka"))))
9328 (outputs '("out" "doc"))
9330 (substitute-keyword-arguments (package-arguments template)
9331 ((#:tex-directory _ '())
9333 ((#:build-targets _ '())
9336 `(modify-phases ,phases
9337 (add-after 'unpack 'chdir
9338 (lambda _ (chdir "source/latex/tabu")))
9339 (replace 'copy-files
9340 (lambda* (#:key inputs outputs #:allow-other-keys)
9341 (let ((origin (assoc-ref inputs "source"))
9342 (source (string-append (assoc-ref outputs "out")
9343 "/share/texmf-dist/source"))
9344 (doc (string-append (assoc-ref outputs "doc")
9345 "/share/texmf-dist/doc")))
9346 (copy-recursively (string-append origin "/source") source)
9347 (copy-recursively (string-append origin "/doc") doc))))))))
9348 (propagated-inputs (list texlive-varwidth))
9349 (home-page "https://ctan.org/macros/latex/contrib/tabu")
9350 (synopsis "Flexible LaTeX tabulars")
9352 "The package provides an environment, tabu, which will make any sort of
9353 tabular, and an environment longtabu which provides the facilities of tabu in
9354 a modified longtable environment. The package requires array, xcolor for
9355 coloured rules in tables, and colortbl for coloured cells. The longtabu
9356 environment further requires that longtable be loaded. The package itself
9357 does not load any of these packages for the user. The tabu environment may be
9358 used in place of @code{tabular}, @code{tabular*} and @code{tabularx}
9359 environments, as well as the @code{array} environment in maths mode.")
9360 (license license:lppl1.3+))))
9362 (define-public texlive-tools
9363 (let ((template (simple-texlive-package
9365 (list "/doc/latex/tools/"
9366 "/source/latex/tools/")
9368 "1xas0b69r3d5x4zhcqysgybyqaikd9avv6r1bdckb947id3iaz58"))))
9372 (substitute-keyword-arguments (package-arguments template)
9373 ((#:tex-directory _ '())
9375 ((#:build-targets _ '())
9378 `(modify-phases ,phases
9379 (add-after 'unpack 'chdir
9380 (lambda _ (chdir "source/latex/tools") #t))))))
9381 (home-page "https://www.ctan.org/tex-archive/macros/latex/required/tools/")
9382 (synopsis "LaTeX standard tools bundle")
9383 (description "This package provides a collection of simple tools that
9384 are part of the LaTeX required tools distribution, comprising the packages:
9385 @code{afterpage}, @code{array}, @code{bm}, @code{calc}, @code{dcolumn},
9386 @code{delarray}, @code{enumerate}, @code{fileerr}, @code{fontsmpl},
9387 @code{ftnright}, @code{hhline}, @code{indentfirst}, @code{layout},
9388 @code{longtable}, @code{multicol}, @code{rawfonts}, @code{showkeys},
9389 @code{somedefs}, @code{tabularx}, @code{theorem}, @code{trace},
9390 @code{varioref}, @code{verbatim}, @code{xr}, and @code{xspace}.")
9391 (license license:lppl1.3+))))
9393 (define-public texlive-latex-xkeyval
9395 (name "texlive-latex-xkeyval")
9396 (version (number->string %texlive-revision))
9399 (uri (texlive-ref "latex" "xkeyval"))
9400 (file-name (string-append name "-" version "-checkout"))
9403 "0w4x82wmdvcmy8z3p55xvpz5q7jac1q1j591hi8mngfyqa8rda1c"))))
9404 (build-system texlive-build-system)
9406 '(#:tex-directory "latex/xkeyval"
9407 #:build-targets '("xkeyval.dtx")
9408 #:tex-format "latex" ; won't build with luatex
9410 (modify-phases %standard-phases
9411 ;; This package cannot be built out of tree as it expects to find
9412 ;; built files in the working directory.
9413 (add-before 'build 'fix-build
9416 (string-append (getcwd) "/build:"))
9417 (substitute* "xkeyval.dtx"
9418 (("usepackage\\{xcolor\\}")
9419 "usepackage[dvips]{xcolor}"))
9421 ;; FIXME: We don't have a package for this font yet.
9422 (add-after 'unpack 'remove-dependency-on-fourier
9424 (substitute* "xkeyval.dtx"
9425 (("\\\\usepackage\\{fourier\\}") ""))
9427 (add-after 'install 'move-files
9428 (lambda* (#:key outputs #:allow-other-keys)
9429 (let* ((out (assoc-ref outputs "out"))
9430 (share (string-append out "/share/texmf-dist"))
9431 (source (string-append share "/tex/latex/xkeyval/"))
9432 (target (string-append share "/tex/generic/xkeyval/")))
9434 (for-each (lambda (file)
9435 (rename-file (string-append source file)
9436 (string-append target file)))
9448 (list texlive-latex-base
9452 texlive-graphics-def
9454 texlive-latex-footmisc
9456 ;; TODO: Use non-deprecated name on next rebuild cycle.
9457 texlive-latex-listings
9459 texlive-generic-iftex
9464 ;; TODO: Use non-deprecated name on next rebuild cycle.
9466 (home-page "http://www.ctan.org/pkg/xkeyval")
9467 (synopsis "Extension of the keyval package")
9469 "This package is an extension of the keyval package and offers additional
9470 macros for setting keys and declaring and setting class or package options.
9471 The package allows the programmer to specify a prefix to the name of the
9472 macros it defines for keys, and to define families of key definitions; these
9473 all help use in documents where several packages define their own sets of
9475 (license license:lppl1.3+)))
9477 (define-public texlive-standalone
9479 (name "texlive-standalone")
9480 (version (number->string %texlive-revision))
9484 (uri (texlive-ref "latex" "standalone"))
9485 (file-name (string-append name "-" version "-checkout"))
9488 "192ydxcn8ir96q8qwvnppksmqf5i0p50i0wz6iqazbwmh3dqxpx4"))))
9489 (build-system texlive-build-system)
9490 (arguments '(#:tex-directory "latex/standalone"))
9492 (list texlive-latex-xkeyval))
9494 (list texlive-ydoc))
9495 (home-page "http://www.ctan.org/pkg/standalone")
9496 (synopsis "Compile TeX pictures stand-alone or as part of a document")
9497 (description "A class and package is provided which allows TeX pictures or
9498 other TeX code to be compiled standalone or as part of a main document.
9499 Special support for pictures with beamer overlays is also provided. The
9500 package is used in the main document and skips extra preambles in sub-files.
9501 The class may be used to simplify the preamble in sub-files. By default the
9502 @code{preview} package is used to display the typeset code without margins.
9503 The behaviour in standalone mode may adjusted using a configuration file
9504 @code{standalone.cfg} to redefine the standalone environment.")
9505 (license license:lppl1.3+)))
9507 (define-public texlive-siunitx
9509 (name "texlive-siunitx")
9510 (version (number->string %texlive-revision))
9511 (source (texlive-origin
9513 (list "/source/latex/siunitx/siunitx.dtx"
9514 "/doc/latex/siunitx/README.md")
9516 "05kl7yid2npp2gbfshnv2xd08w81fkh5h2n5wd9xcpbhlqjzx9sj")))
9517 (build-system texlive-build-system)
9519 '(#:tex-directory "latex/siunitx"
9520 #:build-targets '("siunitx.dtx")
9522 (modify-phases %standard-phases
9523 (add-after 'unpack 'chdir
9524 (lambda _ (chdir "source/latex/siunitx") #t)))))
9526 (list texlive-latex-l3kernel texlive-latex-l3packages))
9527 (home-page "http://www.ctan.org/pkg/siunitx")
9528 (synopsis "Comprehensive SI units package")
9530 "Typesetting values with units requires care to ensure that the combined
9531 mathematical meaning of the value plus unit combination is clear. In
9532 particular, the SI units system lays down a consistent set of units with rules
9533 on how they are to be used. However, different countries and publishers have
9534 differing conventions on the exact appearance of numbers (and units). A
9535 number of LaTeX packages have been developed to provide consistent application
9536 of the various rules. The @code{siunitx} package takes the best from the
9537 existing packages, and adds new features and a consistent interface. A number
9538 of new ideas have been incorporated, to fill gaps in the existing provision.
9539 The package also provides backward-compatibility with @code{SIunits},
9540 @code{sistyle}, @code{unitsdef} and @code{units}. The aim is to have one
9541 package to handle all of the possible unit-related needs of LaTeX users.")
9542 (license license:lppl1.3c)))
9544 (define-public texlive-booktabs
9546 (name "texlive-booktabs")
9547 (version (number->string %texlive-revision))
9551 (uri (texlive-ref "latex" "booktabs"))
9552 (file-name (string-append name "-" version "-checkout"))
9555 "1mycxzl761p2zzmva8xsjbxbvrxx3vhi5p160mh9kiqwhrs5biz5"))))
9556 (build-system texlive-build-system)
9557 (arguments '(#:tex-directory "latex/booktabs"))
9558 (home-page "http://www.ctan.org/pkg/booktabs")
9559 (synopsis "Publication quality tables in LaTeX")
9561 "This package enhances the quality of tables in LaTeX, providing extra
9562 commands as well as behind-the-scenes optimisation. Guidelines are given as
9563 to what constitutes a good table in this context. The package offers
9564 @code{longtable} compatibility.")
9565 (license license:lppl1.3+)))
9567 (define-public texlive-csquotes
9568 (let ((template (simple-texlive-package
9570 (list "/doc/latex/csquotes/"
9571 "/tex/latex/csquotes/")
9573 "17y5mrmjmi7n0cgq4cnqr55f4bni6lx1pfdv5pzsmbrzha3mhbfg")
9578 (list texlive-etoolbox))
9579 (home-page "https://www.ctan.org/pkg/csquotes")
9580 (synopsis "Context sensitive quotation facilities")
9581 (description "This package provides advanced facilities for inline and
9582 display quotations. It is designed for a wide range of tasks ranging from the
9583 most simple applications to the more complex demands of formal quotations.
9584 The facilities include commands, environments, and user-definable 'smart
9585 quotes' which dynamically adjust to their context. Quotation marks are
9586 switched automatically if quotations are nested and they can be adjusted to
9587 the current language if the babel package is available. There are additional
9588 facilities designed to cope with the more specific demands of academic
9589 writing, especially in the humanities and the social sciences. All quote
9590 styles as well as the optional active quotes are freely configurable.")
9591 (license license:lppl1.3c+))))
9593 (define-public texlive-logreq
9594 (let ((template (simple-texlive-package
9596 (list "/doc/latex/logreq/"
9597 "/tex/latex/logreq/")
9599 "13difccs3cxlkqlnhw286yb0c7mifrxfd402a2x5wwxv0m1kgfqd")
9604 (list texlive-etoolbox))
9605 (home-page "https://www.ctan.org/pkg/logreq")
9606 (synopsis "Support for automation of the LaTeX workflow")
9607 (description "The package helps to automate a typical LaTeX
9608 workflow that involves running LaTeX several times and running tools
9609 such as BibTeX or makeindex. It will log requests like \"please rerun
9610 LaTeX\" or \"please run BibTeX on file X\" to an external file in a
9611 machine-readable format. Compiler scripts and integrated LaTeX
9612 editing environments may parse this file to determine the next steps
9613 in the workflow. In sum, the package will do two things:
9617 enable package authors to use LaTeX commands to issue requests, and
9620 collect all requests from all packages and write them to an external
9623 (license license:lppl1.3c))))
9625 (define-public texlive-biblatex
9626 (let ((template (simple-texlive-package
9628 (list "/doc/latex/biblatex/"
9629 "/tex/latex/biblatex/")
9631 "091cz2vrq22d1fr05wljd8vbllsz95q2hn2p8hhrwb2l2xrmxwn8")
9636 (list texlive-logreq texlive-url))
9637 (home-page "https://www.ctan.org/pkg/biblatex")
9638 (synopsis "Sophisticated bibliographies in LaTeX")
9639 (description "BibLaTeX is a complete reimplementation of the
9640 bibliographic facilities provided by LaTeX. Formatting of the
9641 bibliography is entirely controlled by LaTeX macros, facilitating the
9642 design of new bibliography and citation styles. BibLaTeX uses its own
9643 data backend program \"biber\" to read and process the bibliographic
9644 data. With biber, the range of features provided by biblatex
9649 full unicode support,
9652 customisable bibliography labels,
9655 multiple bibliographies in the same document, and
9658 subdivided bibliographies, such as bibliographies per chapter or
9661 (license license:lppl1.3c))))
9663 (define-public texlive-todonotes
9664 (let ((template (simple-texlive-package
9666 (list "/doc/latex/todonotes/"
9667 "/tex/latex/todonotes/")
9669 "1jqw8jy73488bdr971w0dnlggsvicagpnpx8ddqkma920ba8rabp")
9674 (list texlive-pgf texlive-latex-xkeyval))
9675 (home-page "http://www.ctan.org/pkg/todonotes")
9676 (synopsis "Marking things to do in a LaTeX document")
9677 (description "The @code{todonotes} package lets the user mark
9678 things to do later, in a simple and visually appealing way. The
9679 package takes several options to enable customization and finetuning
9680 of the visual appearance.")
9681 (license license:lppl1.3+))))
9683 (define-public texlive-units
9684 (let ((template (simple-texlive-package
9686 (list "/doc/latex/units/"
9687 "/tex/latex/units/")
9689 "1ia1vzy8dp7pdvmawwnmh9lmkajmpnnh62dixrjpb6mnxq118bfd")
9693 (home-page "http://www.ctan.org/pkg/units")
9694 (synopsis "Typeset physical units and fractions")
9695 (description "@code{units} is a package for typesetting physical
9696 units in a standard-looking way. The package is based upon
9697 @code{nicefrac}, a package for typing fractions. @code{nicefrac} is
9698 included in the @code{units} bundle.")
9699 (license license:gpl3+))))
9701 (define-public texlive-microtype
9702 (let ((template (simple-texlive-package
9704 (list "/doc/latex/microtype/"
9705 "/tex/latex/microtype/")
9707 "07861ixrjzxm0l24z82ivhaj4v6xm4ijbaabp66jxsf8s8h7dq9n")
9711 (home-page "http://www.ctan.org/pkg/microtype")
9712 (synopsis "Subliminal refinements towards typographical perfection")
9713 (description "@code{microtype} provides a LaTeX interface to the
9714 micro-typographic extensions that were introduced by pdfTeX and have
9715 since propagated to XeTeX and LuaTeX: most prominently character
9716 protrusion and font expansion, the adjustment of kerning and interword
9717 spacing, hyphenatable letterspacing and the possibility to disable all
9718 or selected ligatures. These features may be applied to customisable
9719 sets of fonts. All micro-typographic aspects of the fonts can be
9720 configured in a straight-forward and flexible way. Settings for
9721 various fonts are provided. An alternative package
9722 @code{letterspace}, which also works with plain TeX, is included in
9724 (license license:lppl1.3c))))
9726 (define-public texlive-caption
9727 (let ((template (simple-texlive-package
9729 (list "/doc/latex/caption/"
9730 "/tex/latex/caption/")
9732 "1isnn375d14xsx398j3m8rbb0pdk12kijw4xcgl82xici170klwq")
9736 (home-page "http://www.ctan.org/pkg/caption")
9737 (synopsis "Customising captions in floating environments")
9738 (description "The @code{caption} package provides many ways to
9739 customise the captions in floating environments like figure and table.
9740 Facilities include rotating captions, sideways captions and continued
9741 captions (for tables or figures that come in several parts). A list
9742 of compatibility notes, for other packages, is provided in the
9743 documentation. The package also provides the \"caption outside
9744 float\" facility, in the same way that simpler packages like
9745 @code{capt-ofcapt-of} do. The package supersedes @code{caption2}.
9746 Packages @code{bicaption}, @code{ltcaption}, @code{newfloat},
9747 @code{subcaption} and @code{totalcount} are included in the bundle.")
9748 (license license:lppl1.3+))))
9750 (define-public texlive-symbol
9752 (inherit (simple-texlive-package
9754 (list "/dvips/symbol/"
9755 "/fonts/afm/adobe/symbol/"
9756 "/fonts/afm/urw/symbol/"
9757 "/fonts/tfm/adobe/symbol/"
9758 "/fonts/tfm/urw35vf/symbol/"
9759 "/fonts/type1/urw/symbol/"
9760 "/fonts/map/dvips/symbol/"
9761 "/tex/latex/symbol/")
9763 "01xiygb88xwi7rfvh1zrlxzi5pqb5fvylws5zzszg379iz4pyzwj")
9765 (home-page "https://ctan.org/pkg/urw-base35")
9766 (synopsis "URW Base 35 font pack for LaTeX")
9767 (description "This package provides a drop-in replacement for the
9768 Symbol font from Adobe's basic set.")
9769 (license license:gpl2)))
9771 (define-public texlive-mathpazo
9773 (inherit (simple-texlive-package
9775 (list "/doc/latex/mathpazo/"
9776 "/fonts/afm/public/mathpazo/"
9777 "/fonts/tfm/public/mathpazo/"
9778 "/fonts/type1/public/mathpazo/"
9779 "/fonts/vf/public/mathpazo/")
9781 "02in6hdnbnkz216mpy8g6fk3wmlls8nh5982vmg37vhbj77lk0rh")
9783 (home-page "http://www.ctan.org/pkg/mathpazo")
9784 (synopsis "Fonts to typeset mathematics to match Palatino")
9785 (description "The Pazo Math fonts are a family of PostScript fonts
9786 suitable for typesetting mathematics in combination with the Palatino
9787 family of text fonts. The Pazo Math family is made up of five fonts
9788 provided in Adobe Type 1 format. These contain glyphs that are
9789 usually not available in Palatino and for which Computer Modern looks
9790 odd when combined with Palatino. These glyphs include the uppercase
9791 Greek alphabet in upright and slanted shapes, the lowercase Greek
9792 alphabet in slanted shape, several mathematical glyphs and the
9793 uppercase letters commonly used to represent various number sets.
9794 LaTeX macro support is provided in package @code{psnfss}.")
9795 (license license:gpl3+)))
9797 (define-public texlive-fpl
9799 (inherit (simple-texlive-package
9801 (list "/doc/fonts/fpl/"
9802 "/source/fonts/fpl/"
9803 "/fonts/afm/public/fpl/"
9804 "/fonts/type1/public/fpl/")
9806 "02gkl516z9kn8xqs269pdkqn37sxm8ib0pcs43s4rs2rhyyl5z68")
9808 (home-page "https://www.ctan.org/pkg/fpl")
9809 (synopsis "SC and OsF fonts for URW Palladio L")
9810 (description "The FPL Fonts provide a set of SC/OsF fonts for URW
9811 Palladio L which are compatible with the Palatino SC/OsF fonts from
9812 Adobe. LaTeX use is enabled by the mathpazo package, which is part of
9813 the @code{psnfss} distribution.")
9814 ;; Either LPPL version 1.0 or later, or GPL version 2
9815 (license (list license:lppl1.0+ license:gpl2))))
9817 (define-public texlive-arev
9819 (inherit (simple-texlive-package
9821 (list "/doc/fonts/arev/"
9822 "/fonts/afm/public/arev/"
9823 "/fonts/enc/dvips/arev/"
9824 "/fonts/map/dvips/arev/"
9825 "/fonts/tfm/public/arev/"
9826 "/fonts/type1/public/arev/"
9827 "/fonts/vf/public/arev/"
9830 "15wkgc48r52mjpymv6l7j9bl99kwxbvg3g1mi3qyq7nfm799dkxy")
9832 (home-page "https://www.ctan.org/pkg/arev")
9833 (synopsis "Fonts and LaTeX support files for Arev Sans")
9834 (description "The @code{arev} package provides type 1 fonts,
9835 virtual fonts and LaTeX packages for using Arev Sans in both text and
9836 mathematics. Arev Sans is a derivative of Bitstream Vera Sans, adding
9837 support for Greek and Cyrillic characters and a few variant letters
9838 appropriate for mathematics. The font is primarily used in LaTeX for
9839 presentations, particularly when using a computer projector. Arev
9840 Sans has large x-height, \"open letters\", wide spacing and thick
9841 stems. The style is very similar to the SliTeX font lcmss but
9842 heavier. Arev is one of a very small number of sans-font mathematics
9843 support packages. Others are cmbright, hvmath and kerkis.")
9844 (license (list license:silofl1.1 ;for Arev Sans
9845 license:lppl1.3a ;for TeX support files
9846 license:gpl2)))) ;for ams-mdbch.sty
9848 (define-public texlive-mathdesign
9850 (inherit (simple-texlive-package
9851 "texlive-mathdesign"
9852 (list "/doc/fonts/mathdesign/"
9853 "/dvips/mathdesign/"
9854 "/fonts/enc/dvips/mathdesign/"
9855 "/fonts/map/dvips/mathdesign/"
9856 "/fonts/tfm/public/mathdesign/"
9857 "/fonts/type1/public/mathdesign/"
9858 "/fonts/vf/public/mathdesign/"
9859 "/tex/latex/mathdesign/")
9861 "0jcby2sd0l3ank2drxc0qcf5d1cwa8idzh4g91h4nxk8zrzxj8nr")
9863 (home-page "https://www.ctan.org/pkg/mathdesign")
9864 (synopsis "Mathematical fonts to fit with particular text fonts")
9865 (description "The Math Design project offers free mathematical
9866 fonts that match with existing text fonts. To date, three free font
9867 families are available: Adobe Utopia, URW Garamond and Bitstream
9868 Charter. Mathdesign covers the whole LaTeX glyph set including AMS
9869 symbols. Both roman and bold versions of these symbols can be used.
9870 Moreover, there is a choice between three greek fonts (two of them
9871 created by the Greek Font Society).")
9872 (license license:gpl2+)))
9874 (define-public texlive-bera
9876 (inherit (simple-texlive-package
9878 (list "/doc/fonts/bera/"
9879 "/fonts/afm/public/bera/"
9880 "/fonts/map/dvips/bera/"
9881 "/fonts/tfm/public/bera/"
9882 "/fonts/type1/public/bera/"
9883 "/fonts/vf/public/bera/"
9886 "1pkmhhr6ah44xhipjr7nianv03hr4w4bn45xcvp264yw6ymqzqwr")
9888 (home-page "https://www.ctan.org/pkg/bera")
9889 (synopsis "Bera fonts")
9890 (description "The @code{bera} package contains the Bera Type 1
9891 fonts and files to use the fonts with LaTeX. Bera is a set of three
9892 font families: Bera Serif (a slab-serif Roman), Bera Sans (a Frutiger
9893 descendant) and Bera Mono (monospaced/typewriter). The Bera family is
9894 a repackaging, for use with TeX, of the Bitstream Vera family.")
9895 (license license:silofl1.1)))
9897 (define-public texlive-fourier
9899 (inherit (simple-texlive-package
9901 (list "/doc/fonts/fourier/"
9902 "/fonts/afm/public/fourier/"
9903 "/fonts/map/dvips/fourier/"
9904 "/fonts/tfm/public/fourier/"
9905 "/fonts/type1/public/fourier/"
9906 "/fonts/vf/public/fourier/"
9907 "/tex/latex/fourier/")
9909 "04d575nd4yvl58g9dfab9mrjxiv4792bdkz4bjvlkx6x257vlfzn")
9911 (home-page "https://www.ctan.org/pkg/fourier")
9912 (synopsis "Utopia fonts for LaTeX documents")
9913 (description "Fourier-GUTenberg is a LaTeX typesetting system
9914 which uses Adobe Utopia as its standard base font. Fourier-GUTenberg
9915 provides all complementary typefaces needed to allow Utopia based TeX
9916 typesetting including an extensive mathematics set and several other
9917 symbols. The system is absolutely stand-alone; apart from Utopia and
9918 Fourier no other typefaces are required. Utopia is a registered
9919 trademark of Adobe Systems Incorporated.")
9920 (license license:lppl)))
9922 (define-public texlive-utopia
9924 (inherit (simple-texlive-package
9926 (list "/doc/fonts/utopia/"
9927 "/fonts/afm/adobe/utopia/"
9928 "/fonts/tfm/adobe/utopia/"
9929 "/fonts/type1/adobe/utopia/"
9930 "/fonts/vf/adobe/utopia/")
9932 "113wgkfz4z0ls2grxxfj17l42a1yv9r5ipcd0156xnfsrqvqzxfc")
9934 (home-page "https://www.ctan.org/pkg/utopia")
9935 (synopsis "Adobe Utopia fonts")
9936 (description "The Adobe Standard Encoding set of the Utopia font
9937 family, as contributed to the X Consortium. The set comprises upright
9938 and italic shapes in medium and bold weights. Macro support and
9939 matching maths fonts are provided by the @code{fourier} and
9940 @code{mathdesign} font packages.")
9941 (license (license:fsf-free
9942 "http://mirrors.ctan.org/fonts/utopia/README"))))
9944 (define-public texlive-fontaxes
9946 (name "texlive-fontaxes")
9951 (uri (texlive-ref "latex" "fontaxes"))
9952 (file-name (string-append name "-" version "-checkout"))
9955 "0j3w1y66pkf3bjl9dh5xy3lfg33rg08s4wx37a3jcndvcji20j3f"))))
9956 (build-system texlive-build-system)
9957 (arguments '(#:tex-directory "latex/fontaxes"))
9958 (home-page "http://www.ctan.org/pkg/fontaxes")
9959 (synopsis "Additional font axes for LaTeX")
9960 (description "The @code{fontaxes} package adds several new font
9961 axes on top of LaTeX's New Font Selection Scheme (NFSS). In
9962 particular, it splits the shape axis into a primary and a secondary
9963 shape axis and it adds three new axes to deal with the different
9964 figure versions offered by many professional fonts.")
9965 (license license:lppl1.3+)))
9967 (define-public texlive-preprint
9969 (name "texlive-preprint")
9974 (uri (texlive-ref "latex" "preprint"))
9975 (file-name (string-append name "-" version "-checkout"))
9978 "173ik9xad3zih6gcdwdkzyljarh06ky6c5d2x1yjs22qqi75py5a"))))
9979 (build-system texlive-build-system)
9980 (arguments '(#:tex-directory "latex/preprint"))
9981 (home-page "http://www.ctan.org/pkg/preprint")
9982 (synopsis "Bundle of modules for preprints")
9983 (description "The bundle comprises: @code{authblk}, which permits
9984 footnote style author/affiliation input in the @command{\\author} command,
9985 @code{balance}, to balance the end of @command{\\twocolumn} pages,
9986 @code{figcaps}, to send figure captions, etc., to end document,
9987 @code{fullpage}, to set narrow page margins and set a fixed page style, and
9988 @code{sublabel}, which permits counters to be subnumbered.")
9989 (license license:lppl1.3+)))
9991 (define-public texlive-mweights
9993 (inherit (simple-texlive-package
9995 (list "/doc/latex/mweights/"
9996 "/tex/latex/mweights/")
9998 "12493g3yz06mhiybnphqbp49fjzy36clzw63b74mkfhsg1pq7h1b")
10000 (home-page "https://www.ctan.org/pkg/mweights")
10001 (synopsis "Support for multiple-weight font packages")
10002 (description "Many font families available for use with LaTeX are
10003 available at multiple weights. Many Type 1-oriented support packages
10004 for such fonts re-define the standard @code{\\mddefault} or
10005 @code{\\bfdefault} macros. This can create difficulties if the weight
10006 desired for one font family is not available for another font family,
10007 or if it differs from the weight desired for another font family. The
10008 @code{mweights} package provides a solution to these difficulties.")
10009 (license license:lppl)))
10011 (define-public texlive-cabin
10013 (inherit (simple-texlive-package
10015 (list "/doc/fonts/cabin/"
10016 "/fonts/enc/dvips/cabin/"
10017 "/fonts/map/dvips/cabin/"
10018 "/fonts/opentype/impallari/cabin/"
10019 "/fonts/tfm/impallari/cabin/"
10020 "/fonts/type1/impallari/cabin/"
10021 "/fonts/vf/impallari/cabin/"
10022 "/tex/latex/cabin/")
10024 "1gqqqbj7i18fs1ss5n3axd821hzq5kbv1dl7dqxp4gba619f1rli")
10026 (home-page "https://www.ctan.org/pkg/cabin")
10027 (synopsis "Humanist Sans Serif font with LaTeX support")
10028 (description "Cabin is a humanist sans with four weights, true
10029 italics and small capitals. According to its designer, Pablo
10030 Impallari, Cabin was inspired by the typefaces of Edward Johnston and
10031 Eric Gill. Cabin incorporates modern proportions, optical adjustments
10032 and some elements of the geometric sans. @code{cabin.sty} supports
10033 use of the font under LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX. It uses
10034 the @code{mweights} package to manage the user's view of all those
10035 font weights. An @code{sfdefault} option is provided to enable Cabin
10036 as the default text font. The @code{fontaxes} package is required for
10037 use with [pdf]LaTeX.")
10038 (license (list license:silofl1.1 ;for Cabin
10039 license:lppl)))) ;for support files
10041 (define-public texlive-newtx
10043 (inherit (simple-texlive-package
10045 (list "/doc/fonts/newtx/"
10046 "/fonts/afm/public/newtx/"
10047 "/fonts/enc/dvips/newtx/"
10048 "/fonts/map/dvips/newtx/"
10049 "/fonts/opentype/public/newtx/"
10050 "/fonts/tfm/public/newtx/"
10051 "/fonts/type1/public/newtx/"
10052 "/fonts/vf/public/newtx/"
10053 "/tex/latex/newtx/")
10055 "0h0wm3cd0wxag5x7vy3vgr42jd8m6ffkl90pnkvqdxzbnfdjv3l6")
10057 (home-page "https://www.ctan.org/pkg/newtx")
10058 (synopsis "Repackaging of the TX fonts with improved metrics")
10059 (description "The @code{newtx} bundle splits
10060 @code{txfonts.sty} (from the TX fonts distribution) into two
10061 independent packages, @code{newtxtext.sty} and @code{newtxmath.sty},
10062 each with fixes and enhancements. @code{newtxmath}'s metrics have
10063 been re-evaluated to provide a less tight appearance and to provide a
10064 @code{libertine} option that substitutes Libertine italic and Greek
10065 letters for the existing math italic and Greek glyphs, making a
10066 mathematics package that matches Libertine text quite well.")
10067 (license license:lppl1.3)))
10069 (define-public texlive-xcharter
10071 (inherit (simple-texlive-package
10073 (list "/doc/fonts/xcharter/"
10074 "/fonts/afm/public/xcharter/"
10075 "/fonts/enc/dvips/xcharter/"
10076 "/fonts/map/dvips/xcharter/"
10077 "/fonts/opentype/public/xcharter/"
10078 "/fonts/tfm/public/xcharter/"
10079 "/fonts/type1/public/xcharter/"
10080 "/fonts/vf/public/xcharter/"
10081 "/tex/latex/xcharter/")
10083 "0d8rvcmvxrlxqqxpirxqbhmiijpsz5y4vvldh1jnc018aannjlhm")
10085 (home-page "https://www.ctan.org/pkg/xcharter")
10086 (synopsis "Extension of the Bitstream Charter fonts")
10087 (description "@code{xcharter} repackages Bitstream Charter with an
10088 extended set of features. The extension provides small caps, oldstyle
10089 figures and superior figures in all four styles, accompanied by LaTeX
10090 font support files. The fonts themselves are provided in both Adobe
10091 Type 1 and OTF formats, with supporting files as necessary.")
10092 (license (list (license:fsf-free
10093 "http://mirrors.ctan.org/fonts/xcharter/README")
10094 license:lppl1.3))))
10096 (define-public texlive-ly1
10098 (inherit (simple-texlive-package
10100 (list "/doc/fonts/ly1/"
10101 "/fonts/enc/dvips/ly1/"
10102 "/fonts/map/dvips/ly1/"
10103 "/fonts/tfm/adobe/ly1/"
10104 "/fonts/vf/adobe/ly1/"
10107 "0wjyw0risgvrq97zfciglwy1f4msvfslln6pz0q8yzzx8wsv3zgq")
10109 (home-page "https://www.ctan.org/pkg/ly1")
10110 (synopsis "Support for LY1 LaTeX encoding")
10111 (description "The legacy @emph{texnansi} (TeX and ANSI) encoding
10112 is known in the LaTeX scheme of things as @emph{LY1} encoding. The
10113 @code{ly1} bundle includes metrics and LaTeX macros to use the three
10114 basic Adobe Type 1 fonts (Times, Helvetica and Courier) in LaTeX using
10116 (license license:lppl1.0+)))
10118 (define-public texlive-sectsty
10119 (let ((template (simple-texlive-package
10121 (list "/doc/latex/sectsty/"
10122 "/source/latex/sectsty/")
10124 "08m90j7cg6w46vnwgsp10clpj4l6c9a6l8dad20q3mnd32l84hbl"))))
10128 (substitute-keyword-arguments (package-arguments template)
10129 ((#:tex-directory _ '())
10131 ((#:build-targets _ '())
10133 ((#:tex-format _ "latex") "latex")
10135 `(modify-phases ,phases
10136 (add-after 'unpack 'chdir
10137 (lambda _ (chdir "source/latex/sectsty")))))))
10138 (home-page "https://www.ctan.org/pkg/sectsty")
10139 (synopsis "Control sectional headers")
10140 (description "This is a LaTeX2ε package to help change the style of any or
10141 all of LaTeX's sectional headers in the article, book, or report classes.
10142 Examples include the addition of rules above or below a section title.")
10143 (license license:lppl1.2+))))
10145 (define-public texlive-morefloats
10146 (let ((template (simple-texlive-package
10147 "texlive-morefloats"
10148 (list "/doc/latex/morefloats/"
10149 "/source/latex/morefloats/")
10151 "0n0405fjxyjlbjspzfvhl0wjkwiqicj3hk8fa0g7agw72wlxscpl"))))
10155 (substitute-keyword-arguments (package-arguments template)
10156 ((#:tex-directory _ '())
10157 "latex/morefloats")
10158 ((#:build-targets _ '())
10159 ''("morefloats.ins"))
10161 `(modify-phases ,phases
10162 (add-after 'unpack 'chdir
10163 (lambda _ (chdir "source/latex/morefloats")))))))
10164 (home-page "https://www.ctan.org/pkg/morefloats")
10165 (synopsis "Increase the number of simultaneous LaTeX floats")
10166 (description "LaTeX can, by default, only cope with 18 outstanding floats;
10167 any more, and you get the error “too many unprocessed floats”. This package
10168 releases the limit; TeX itself imposes limits (which are independent of the
10169 help offered by e-TeX).
10171 However, if your floats can’t be placed anywhere, extending the number of
10172 floats merely delays the arrival of the inevitable error message.")
10173 (license license:lppl1.3c+))))
10175 (define-public texlive-ifmtarg
10176 (let ((template (simple-texlive-package
10178 (list "/doc/latex/ifmtarg/"
10179 "/source/latex/ifmtarg/")
10181 "0cwjn4bhq9zyfxr1595hgyc1d7rcsf9lva55x98q81xy5xrrmrb2"))))
10185 (substitute-keyword-arguments (package-arguments template)
10186 ((#:tex-directory _ '())
10188 ((#:build-targets _ '())
10190 ((#:tex-format _ "latex") "latex")
10192 `(modify-phases ,phases
10193 (add-after 'unpack 'chdir
10194 (lambda _ (chdir "source/latex/ifmtarg")))))))
10196 (list texlive-latex-filecontents))
10197 (home-page "https://www.ctan.org/pkg/ifmtarg")
10198 (synopsis "If-then-else command for processing potentially empty arguments")
10199 (description "This package provides a command for the LaTeX programmer for
10200 testing whether an argument is empty.")
10201 (license license:lppl1.3c+))))
10203 (define-public texlive-pagenote
10204 (let ((template (simple-texlive-package
10206 (list "/doc/latex/pagenote/"
10207 "/source/latex/pagenote/")
10209 "0cqfqrfvnzq7ldaf255hcvi8xsfx8h7iha3hs8p9gdi3cfzbcmjm"))))
10213 (substitute-keyword-arguments (package-arguments template)
10214 ((#:tex-directory _ '())
10216 ((#:build-targets _ '())
10217 ''("pagenote.ins"))
10219 `(modify-phases ,phases
10220 (add-after 'unpack 'chdir
10221 (lambda _ (chdir "source/latex/pagenote")))))))
10223 (list texlive-ifmtarg))
10224 (home-page "https://www.ctan.org/pkg/pagenote")
10225 (synopsis "Notes at end of document")
10226 (description "The pagenote package provides tagged notes on a separate
10227 page (also known as ‘end notes’).")
10228 (license license:lppl1.3c+))))
10230 (define-public texlive-titling
10231 (let ((template (simple-texlive-package
10233 (list "/doc/latex/titling/"
10234 "/source/latex/titling/")
10236 "0pc3806kc9p2dizdghis0p0b00xs0gmlh2nmf94f5wasz5mkw6bk"))))
10240 (substitute-keyword-arguments (package-arguments template)
10241 ((#:tex-directory _ '())
10243 ((#:build-targets _ '())
10245 ((#:tex-format _ "latex") "latex")
10247 `(modify-phases ,phases
10248 (add-after 'unpack 'chdir
10249 (lambda _ (chdir "source/latex/titling")))))))
10252 (home-page "https://www.ctan.org/pkg/titling")
10253 (synopsis "Control typesetting of the \\maketitle command")
10254 (description "The @code{titling} package provides control over the
10255 typesetting of the @code{\\maketitle} command and @code{\\thanks} commands,
10256 and makes the \title, @code{\\author} and @code{\\date} information
10257 permanently available. Multiple titles are allowed in a single document. New
10258 titling elements can be added and a @code{titlepage} title can be centered on
10260 (license license:lppl))))
10262 (define-public texlive-ifoddpage
10263 (let ((template (simple-texlive-package
10264 "texlive-ifoddpage"
10265 (list "/source/latex/ifoddpage/")
10267 "14x0haj3xjsk9dn2djg117sl7x5nbwgbivhjj3ichnxlgrlf1bis"))))
10271 (substitute-keyword-arguments (package-arguments template)
10272 ((#:tex-directory _ '())
10274 ((#:build-targets _ '())
10275 ''("ifoddpage.ins"))
10277 `(modify-phases ,phases
10278 (add-after 'unpack 'chdir
10279 (lambda _ (chdir "source/latex/ifoddpage")))))))
10281 (list texlive-ydoc))
10282 (home-page "https://www.ctan.org/pkg/ifoddpage")
10283 (synopsis "Determine if the current page is odd or even")
10284 (description "This package provides an @code{\\ifoddpage} conditional to
10285 determine if the current page is odd or even. The macro @code{\\checkoddpage}
10286 must be used directly before to check the page number using a label. Two
10287 compiler runs are therefore required to achieve correct results. In addition,
10288 the conditional @code{\\ifoddpageoronside} is provided which is also true in
10289 @code{oneside} mode where all pages use the odd page layout.")
10290 (license license:lppl1.3))))
10292 (define-public texlive-storebox
10293 (let ((template (simple-texlive-package
10295 (list "/source/latex/storebox/")
10297 "1ybpjfrria57fwvr9kriiw6y76ivwvsyb6ayp0bi750smsv8k5n1"))))
10301 (substitute-keyword-arguments (package-arguments template)
10302 ((#:tex-directory _ '())
10304 ((#:build-targets _ '())
10305 ''("storebox.ins"))
10307 `(modify-phases ,phases
10308 (add-after 'unpack 'chdir
10309 (lambda _ (chdir "source/latex/storebox")))))))
10311 (list texlive-ydoc))
10312 (home-page "https://www.ctan.org/pkg/storebox")
10313 (synopsis "Storing information for reuse")
10314 (description "The package provides \"store boxes\" whose user interface
10315 matches that of normal LaTeX \"save boxes\", except that the content of a
10316 store box appears at most once in the output PDF file, however often it is
10317 used. The present version of the package supports pdfLaTeX and LuaLaTeX; when
10318 DVI is output, store boxes behave the same as save boxes.")
10319 (license license:lppl1.3))))
10321 (define-public texlive-collectbox
10322 (let ((template (simple-texlive-package
10323 "texlive-collectbox"
10324 (list "/source/latex/collectbox/")
10326 "1k0bbphvr20k9hgpr3dv869h9ygxx3g8vjapkc63nq8i13crpsvz"))))
10330 (substitute-keyword-arguments (package-arguments template)
10331 ((#:tex-directory _ '())
10332 "latex/collectbox")
10333 ((#:build-targets _ '())
10334 ''("collectbox.ins"))
10336 `(modify-phases ,phases
10337 (add-after 'unpack 'chdir
10338 (lambda _ (chdir "source/latex/collectbox")))))))
10340 (list texlive-ydoc))
10341 (home-page "https://www.ctan.org/pkg/collectbox")
10342 (synopsis "Collect and process macro arguments as boxes")
10343 (description "The package provides macros to collect and process a macro
10344 argument (i.e., something which looks like a macro argument) as a horizontal
10345 box rather than as a real macro argument. The \"arguments\" are stored as if
10346 they had been saved by @code{\\savebox} or by the @code{lrbox} environment.
10347 Grouping tokens @code{\\bgroup} and @code{\\egroup} may be used, which allows
10348 the user to have the beginning and end of a group in different macro
10349 invocations, or to place them in the begin and end code of an environment.
10350 Arguments may contain verbatim material or other special use of characters.
10351 The macros were designed for use within other macros.")
10352 (license license:lppl1.3))))
10354 (define-public texlive-grfext
10355 (let ((template (simple-texlive-package
10357 (list "/doc/latex/grfext/README.md"
10358 "/source/latex/grfext/grfext.dtx")
10360 "1cdvjp9gcnixxlbl8ibwz1yr799gwax5hm686hwmwsigdgafhzgq"))))
10364 (substitute-keyword-arguments (package-arguments template)
10365 ((#:tex-directory _ '())
10367 ((#:build-targets _ '())
10370 `(modify-phases ,phases
10371 (add-after 'unpack 'chdir
10372 (lambda _ (chdir "source/latex/grfext")))))))
10373 (home-page "https://github.com/ho-tex/grfext")
10374 (synopsis "Manipulate the graphics package's list of extensions")
10375 (description "This package provides macros for adding to, and reordering
10376 the list of graphics file extensions recognised by package graphics.")
10377 (license license:lppl1.3c+))))
10379 (define-public texlive-adjustbox
10380 (let ((template (simple-texlive-package
10381 "texlive-adjustbox"
10382 (list "/doc/latex/adjustbox/"
10383 "/source/latex/adjustbox/")
10385 "074nxbnl184b6iwhis5n85pilq3b2pld3bbrq0wc30hw462m898k"))))
10389 (substitute-keyword-arguments (package-arguments template)
10390 ((#:tex-directory _ '())
10392 ((#:build-targets _ '())
10393 ''("adjustbox.ins"))
10395 `(modify-phases ,phases
10396 (add-after 'unpack 'chdir
10397 (lambda _ (chdir "source/latex/adjustbox")))))))
10399 (list texlive-ydoc))
10402 texlive-latex-varwidth
10403 texlive-latex-xkeyval
10407 (home-page "https://www.ctan.org/pkg/adjustbox")
10408 (synopsis "Graphics package-alike macros for “general” boxes")
10409 (description "The package provides several macros to adjust boxed
10410 content. One purpose is to supplement the standard @code{graphics} package,
10411 which defines the macros @code{\\resizebox}, @code{\\scalebox} and
10412 @code{\\rotatebox} , with the macros @code{\\trimbox} and @code{\\clipbox}.
10413 The main feature is the general @code{\\adjustbox} macro which extends the
10414 @code{key=value} interface of @code{\\includegraphics} from the
10415 @code{graphics} package and applies it to general text content. Additional
10416 provided box macros are @code{\\lapbox}, @code{\\marginbox},
10417 @code{\\minsizebox}, @code{\\maxsizebox} and @code{\\phantombox}.")
10418 (license license:lppl1.3))))
10420 (define-public texlive-qrcode
10422 (inherit (simple-texlive-package
10424 (list "doc/latex/qrcode/README"
10425 "source/latex/qrcode/qrcode.dtx"
10426 "source/latex/qrcode/qrcode.ins")
10428 "1xfv0imrrbxjqwjapcf2silg19rwz2jinawy1x65c1krg919vn02")))
10429 (outputs '("out" "doc"))
10432 #:tex-directory "latex/qrcode"
10434 #~(modify-phases %standard-phases
10435 (add-before 'build 'chdir
10437 (setenv "ROOT_DIR" (getcwd))
10438 (chdir "source/latex/qrcode")))
10439 (add-after 'build 'build-doc
10441 (copy-file "qrcode.dtx" "build/qrcode.dtx")
10443 (invoke "xelatex" "qrcode.dtx")
10444 (invoke "xelatex" "qrcode.dtx"))) ;generate qrcode.pdf
10446 (lambda* (#:key tex-directory #:allow-other-keys)
10447 (let ((doc (string-append #$output:doc "/share/doc/"
10449 (out (string-append #$output "/share/texmf-dist/tex/"
10451 (install-file "qrcode.pdf" doc)
10452 (install-file (car (find-files (getenv "ROOT_DIR") "README"))
10454 (install-file "qrcode.sty" out)))))))
10457 texlive-latex-xkeyval
10460 (list (texlive-updmap.cfg (list texlive-lm texlive-zapfding))
10462 texlive-latex-xkeyval
10465 (home-page "https://www.ctan.org/pkg/qrcode")
10466 (synopsis "QR codes without external tools")
10467 (description "This package creates @acronym{QR,Quick Response} codes for
10468 LaTeX documents without depending on external graphics packages. It supports
10469 generating codes of different sizes and with different error correction
10470 levels. All functionality is provided by the single @code{\\qrcode} command.")
10471 (license license:lppl1.3c+)))
10473 (define-public texlive-tcolorbox
10474 (let ((template (simple-texlive-package
10475 "texlive-tcolorbox"
10476 (list "/doc/latex/tcolorbox/"
10477 "/tex/latex/tcolorbox/")
10479 "1qnsbblkadzdn1fx2k21xnlwcb35pg9xya24chkm66jmidi22qp0")
10480 #:trivial? #true)))
10484 (list texlive-etoolbox texlive-latex-environ texlive-pgf
10485 texlive-latex-tools))
10486 (home-page "https://www.ctan.org/pkg/tcolorbox")
10487 (synopsis "Colored boxes, for LaTeX examples and theorems, etc")
10488 (description "This package provides an environment for colored and
10489 framed text boxes with a heading line. Optionally, such a box may be split in
10490 an upper and a lower part; thus the package may be used for the setting of
10491 LaTeX examples where one part of the box displays the source code and the
10492 other part shows the output. Another common use case is the setting of
10493 theorems. The package supports saving and reuse of source code and text
10495 (license license:lppl1.3c+))))
10497 (define-public texlive-latex-ebproof
10499 (name "texlive-latex-ebproof")
10504 (uri (git-reference
10505 (url "https://framagit.org/manu/ebproof")
10507 (file-name (git-file-name name version))
10510 "1zkrfaf343js0yc1x7m3d8hzbh5izn0lb01jrmdpjm51kdbh30xq"))))
10511 (build-system texlive-build-system)
10512 (arguments '(#:tex-directory "latex/ebproof"))
10514 (list texlive-latex-l3kernel))
10515 (home-page "http://www.ctan.org/pkg/ebproof")
10517 "Formal proofs in the style of sequent calculus")
10519 "This package provides commands to typeset proof trees in the style of
10520 sequent calculus and related systems. The commands allow for writing
10521 inferences with any number of premises and alignment of successive formulas on
10522 an arbitrary point. Various options allow complete control over spacing,
10523 styles of inference rules, placement of labels, etc.")
10524 (license license:lppl1.3+)))
10526 (define-public texlive-latex-bussproofs
10527 (let ((template (simple-texlive-package
10528 "texlive-latex-bussproofs"
10529 (list "/doc/latex/bussproofs/"
10530 "/tex/latex/bussproofs/")
10532 "1gb8y9g89fqw1kix4d2vb7mj440vlb8hnpsa3jqpk9yicndwcyk6"))))
10536 (substitute-keyword-arguments (package-arguments template)
10537 ((#:tex-directory _ '())
10538 "latex/bussproofs")
10539 ((#:build-targets _ '())
10540 ''()) ; "bussproofs.sty"
10542 `(modify-phases ,phases
10543 (add-after 'unpack 'chdir
10544 (lambda _ (chdir "tex/latex/bussproofs")))))))
10545 (home-page "https://www.math.ucsd.edu/~sbuss/ResearchWeb/bussproofs/index.html")
10546 (synopsis "Formal proofs in the style of sequent calculus")
10548 "This package provides commands to typeset proof trees in the style of
10549 sequent calculus and related systems.")
10550 (license license:lppl1.3+))))
10552 (define-public texlive-eurosym
10553 (let ((template (simple-texlive-package
10555 (list "/doc/fonts/eurosym/"
10556 "/fonts/map/dvips/eurosym/"
10557 "/fonts/source/public/eurosym/"
10558 "/fonts/tfm/public/eurosym/"
10559 "/fonts/type1/public/eurosym/"
10560 "/tex/latex/eurosym/eurosym.sty")
10562 "0ml24rxbl1yir4s3fjjxm0z7axklc3p33syg41b76zc7hck9mk8s")
10563 #:trivial? #true)))
10566 (home-page "https://www.ctan.org/pkg/eurosym")
10567 (synopsis "METAFONT and macros for Euro sign")
10568 (description "This package provides the European currency symbol for the
10569 Euro implemented in METAFONT, using the official European Commission
10570 dimensions, and providing several shapes (normal, slanted, bold, outline).
10571 The package also includes a LaTeX package which defines the macro,
10572 pre-compiled font files, and documentation.")
10573 (license (license:non-copyleft "file:///doc/fonts/eurosym/COPYING")))))
10575 (define-public texlive-kastrup
10577 (name "texlive-kastrup")
10578 (version (number->string %texlive-revision))
10582 (uri (texlive-ref "generic" "kastrup"))
10583 (file-name (string-append name "-" version "-checkout"))
10586 "1kkshc48brkq2nx3rlbv78a2130izykbf33ri1q2shqr8pjfmmq8"))))
10587 (build-system texlive-build-system)
10589 '(#:tex-directory "generic/kastrup"
10591 (modify-phases %standard-phases
10592 (add-after 'unpack 'remove-generated-file
10594 (delete-file "binhex.drv")
10596 (home-page "http://www.ctan.org/pkg/binhex")
10597 (synopsis "Convert numbers into binary, octal and hexadecimal")
10598 (description "The @code{kastrup} package provides the
10599 @emph{binhex.tex} file. This file provides expandable macros for both
10600 fixed-width and minimum-width numbers to bases 2, 4, 8 and 16. All
10601 constructs TeX accepts as arguments to its @code{\\number} primitive
10602 are valid as arguments for the macros. The package may be used under
10603 LaTeX and plain TeX.")
10604 (license (license:fsf-free "file:/binhex.dtx"))))
10606 (define-public texlive-translator
10608 (inherit (simple-texlive-package
10609 "texlive-translator"
10610 (list "doc/latex/translator/"
10611 "tex/latex/translator/")
10612 (base32 "13rxdqhvgwc5lz2wsw4jwsb92614wlxsa90rmzxyrc6xjz1jypnk")
10614 (build-system texlive-build-system)
10615 (home-page "https://ctan.org/macros/latex/contrib/translator")
10616 (synopsis "Easy translation of strings in LaTeX")
10618 "This LaTeX package provides a flexible mechanism for translating
10619 individual words into different languages. For example, it can be used to
10620 translate a word like \"figure\" into, say, the German word \"Abbildung\".
10621 Such a translation mechanism is useful when the author of some package would
10622 like to localize the package such that texts are correctly translated into the
10623 language preferred by the user. This package is not intended to be used to
10624 automatically translate more than a few words.")
10625 (license (list license:lppl license:gpl1+))))
10627 (define-public texlive-latex-textpos
10629 (inherit (simple-texlive-package
10630 "texlive-latex-textpos"
10631 (list "doc/latex/textpos/"
10632 "tex/latex/textpos/")
10633 (base32 "0sqm3pr9jyf9sf432qawscbf50glj58acwcfzyk58ijic2g01hzl")
10635 (build-system texlive-build-system)
10636 (home-page "https://ctan.org/pkg/textpos")
10637 (synopsis "Absolute positioning of text on the LaTeX page")
10639 "This package facilitates placing boxes at absolute positions on the
10640 LaTeX page. There are several reasons why this might be useful, but the main
10641 one (or at least my motivating one) is to help produce a large-format
10644 This package provides a single environment, plus a starred variant, which
10645 contains the text (or graphics, or table, or whatever) which is to be placed
10646 on the page, and which specifies where it is to be placed. The environment is
10647 accompanied by various configuration commands.")
10648 (license license:lppl)))
10650 (define-public texlive-unicode-math
10652 (inherit (simple-texlive-package
10653 "texlive-unicode-math"
10654 (list "source/latex/unicode-math/"
10655 "doc/latex/unicode-math/"
10656 "tex/latex/unicode-math/unicode-math-table.tex")
10657 (base32 "1j3041dcm7wqj0x26rxm9bb7q4xa1rqsqynqdb6cbjk3jmfvskxn")))
10658 (outputs '("out" "doc"))
10661 #:tex-directory "latex/unicode-math"
10662 #:tex-format "xelatex"
10664 #~(modify-phases %standard-phases
10665 (add-after 'unpack 'copy-files
10666 ;; The documentation isn't built.
10667 (lambda* (#:key outputs tex-directory #:allow-other-keys)
10668 (let ((doc (assoc-ref outputs "doc"))
10669 (tex (string-append #$output "/share/texmf-dist/tex/"
10671 ;; Install documentation.
10672 (mkdir-p (string-append doc "/share/texmf-dist/doc" ))
10673 (copy-recursively "doc" doc)
10674 ;; Install unicode-math-table.tex, which is not
10676 (install-file "tex/latex/unicode-math/unicode-math-table.tex"
10678 (add-after 'copy-files 'chdir
10679 (lambda* (#:key tex-directory #:allow-other-keys)
10680 (chdir (string-append "source/" tex-directory)))))))
10681 (home-page "https://ctan.org/pkg/unicode-math")
10682 (synopsis "Unicode mathematics support for XeTeX and LuaTeX")
10683 (description "This package will provide a complete implementation of
10684 Unicode maths for XeLaTeX and LuaLaTeX. Unicode maths is currently supported
10685 by the following fonts:
10687 @item Latin Modern Math
10688 @item TeX Gyre Bonum Math
10689 @item TeX Gyre Pagella Math
10690 @item TeX Gyre Schola Math
10691 @item TeX Gyre Termes Math
10692 @item DejaVu Math TeX Gyre
10696 @item Libertinus Math
10699 (license license:lppl1.3c+)))
10701 (define-public texlive-xifthen
10703 (inherit (simple-texlive-package
10705 (list "doc/latex/xifthen/"
10706 "tex/latex/xifthen/")
10708 "0b33mlmnxsj5mi06v2w2zgamk51mgv1lxdr1cax8nkpn9g7n9axw")
10710 (build-system texlive-build-system)
10711 (home-page "https://ctan.org/pkg/xifthen")
10712 (synopsis "Extended conditional commands")
10714 "This package extends the @code{ifthen} package by implementing new
10715 commands to go within the first argument of @code{\\\\ifthenelse}: to test
10716 whether a string is void or not, if a command is defined or equivalent to
10717 another. The package also enables use of complex expressions as introduced by
10718 the package @code{calc}, together with the ability of defining new commands to
10719 handle complex tests.")
10720 (license license:lppl)))
10722 (define-public texlive-xindy
10724 (name "texlive-xindy")
10728 (uri (string-append "mirror://ctan/indexing/xindy/base/xindy-"
10729 version ".tar.gz"))
10732 "0hxsx4zw19kmixkmrln17sxgg1ln4pfp4lpfn5v5fyr1nwfyk3ic"))))
10733 (build-system gnu-build-system)
10736 #:configure-flags #~(list "--enable-docs")
10738 #~(modify-phases %standard-phases
10739 (add-after 'unpack 'patch-clisp
10740 (lambda* (#:key inputs #:allow-other-keys)
10741 ;; The xindy.in file is encoded in ISO-8859-1 (or iso-latin-1).
10742 (with-fluids ((%default-port-encoding "ISO-8859-1"))
10743 (substitute* "user-commands/xindy.in"
10744 (("(our \\$clisp = ).*" _ head)
10745 (format #f "our $clisp = ~s;~%"
10746 (search-input-file inputs "bin/clisp"))))))))))
10747 (native-inputs (list clisp
10751 texlive-greek-fontenc
10754 texlive-latex-cyrillic
10755 texlive-latex-geometry
10756 (texlive-updmap.cfg ;fonts
10757 (list texlive-cbfonts
10759 texlive-jknappen))))
10760 (inputs (list clisp perl)) ;used at run time
10761 (home-page "https://www.ctan.org/pkg/xindy")
10762 (synopsis "General-purpose index processor")
10763 (description "Xindy was developed after an impasse had been encountered in
10764 the attempt to complete internationalisation of @command{makeindex}. Xindy
10765 can be used to process indexes for documents marked up using (La)TeX, Nroff
10766 family and SGML-based languages. Xindy is highly configurable, both in markup
10767 terms and in terms of the collating order of the text being processed.")
10768 (license license:gpl2+)))
10770 (define-public texlive-fmtcount
10772 (inherit (simple-texlive-package
10774 (list "doc/latex/fmtcount/"
10775 "scripts/fmtcount/"
10776 "source/latex/fmtcount/"
10777 "tex/latex/fmtcount/")
10779 "1biw0g6s2arq6kq52c1yfkl0vzafja2az65c3d0syq0vgjzj9763")
10781 (home-page "https://ctan.org/macros/latex/contrib/fmtcount")
10782 (synopsis "Display the value of a LaTeX counter in a variety of formats")
10784 "The package provides commands that display the value of a LaTeX counter in a
10785 variety of formats (ordinal, text, hexadecimal, decimal, octal, binary etc).
10786 The package offers some multilingual support; configurations for use in English
10787 (both British and American usage), French (including Belgian and Swiss
10788 variants), German, Italian, Portuguese and Spanish documents are provided. This
10789 package was originally provided as part of the author's datetime package, but is
10790 now distributed separately.")))
10792 (define-public texlive-inriafonts
10794 (inherit (simple-texlive-package
10795 "texlive-inriafonts"
10796 (list "doc/fonts/inriafonts/"
10797 "fonts/enc/dvips/inriafonts/"
10798 "fonts/map/dvips/inriafonts/"
10799 "fonts/opentype/public/inriafonts/"
10800 "fonts/tfm/public/inriafonts/"
10801 "fonts/truetype/public/inriafonts/"
10802 "fonts/type1/public/inriafonts/"
10803 "fonts/vf/public/inriafonts/"
10804 "tex/latex/inriafonts/")
10806 "0ngbpr4pl7r82jmdhiksp32qvbvggf2nawwqq0pkb7cffp95ya49")
10808 (propagated-inputs (list texlive-ly1)) ;requires LY1 font encoding
10809 (home-page "https://ctan.org/fonts/inriafonts")
10810 (synopsis "Inria fonts with LaTeX support")
10812 "Inria is a free font designed by Black[Foundry] for Inria, a French research
10813 institute. It comes as Serif and Sans Serif, each with three weights and
10814 matching italics. Using these fonts with XeLaTeX and LuaLaTeX is easy using
10815 the fontspec package; we refer to the documentation of fontspec for more
10816 information. The present package provides a way of using them with LaTeX and
10817 pdfLaTeX: it provides two style files, @file{InriaSerif.sty} and
10818 @file{InriaSans.sty}, together with the PostScript version of the fonts and
10819 their associated files. These were created using autoinst.")
10820 (license (list license:lppl license:silofl1.1))))
10822 (define-public texlive-floatflt
10824 (inherit (simple-texlive-package
10826 (list "doc/latex/floatflt/"
10827 "source/latex/floatflt/"
10828 "tex/latex/floatflt/")
10830 "1piy8ajbbcadsjwp0mhlgxm2ggggnb5sn75arfs5fxiaqrwd572j")
10832 (home-page "https://ctan.org/macros/latex/contrib/floatflt")
10833 (synopsis "Wrap text around floats")
10835 "The package can float text around figures and tables which do not
10836 span the full width of a page; it improves upon floatfig, and allows
10837 tables and figures to be set left/right or alternating on even/odd pages.")
10838 (license license:lppl1.3+)))
10840 (define-public bibtool
10849 (url "https://github.com/ge-ne/bibtool")
10850 (commit (string-append
10852 (string-map (lambda (c) (if (char=? c #\.) #\_ c))
10854 (file-name (git-file-name name version))
10856 (base32 "0grnmqj8w5018nd7r6drnq2yvfhf22gj9i3rj8ilhzm7zmz3zn0g"))))
10857 (build-system gnu-build-system)
10859 `(#:test-target "test"))
10862 (home-page "http://www.gerd-neugebauer.de/software/TeX/BibTool/en")
10863 (synopsis "Tool for manipulating BibTeX databases")
10865 "BibTool manipulates BibTeX files. The possibilities of BibTool include
10866 sorting and merging of BibTeX databases, generation of uniform reference keys,
10867 and selecting references used in a publication.")
10868 (license license:gpl2+)))