1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016 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 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>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages tex)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix gexp)
42 #:use-module (guix packages)
43 #:use-module (guix download)
44 #:use-module (guix build-system copy)
45 #:use-module (guix build-system gnu)
46 #:use-module (guix build-system perl)
47 #:use-module (guix build-system python)
48 #:use-module (guix build-system qt)
49 #:use-module (guix build-system trivial)
50 #:use-module (guix build-system texlive)
51 #:use-module (guix utils)
52 #:use-module (guix deprecation)
53 #:use-module (guix git-download)
54 #:use-module (guix svn-download)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages algebra)
57 #:use-module (gnu packages autotools)
58 #:use-module (gnu packages bash)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages compression)
61 #:use-module (gnu packages fontutils)
62 #:use-module (gnu packages gd)
63 #:use-module (gnu packages ghostscript)
64 #:use-module (gnu packages graphviz)
65 #:use-module (gnu packages gtk)
66 #:use-module (gnu packages icu4c)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages libreoffice)
69 #:use-module (gnu packages lua)
70 #:use-module (gnu packages multiprecision)
71 #:use-module (gnu packages pdf)
72 #:use-module (gnu packages perl)
73 #:use-module (gnu packages perl-check)
74 #:use-module (gnu packages pkg-config)
75 #:use-module (gnu packages python)
76 #:use-module (gnu packages python-xyz)
77 #:use-module (gnu packages qt)
78 #:use-module (gnu packages ruby)
79 #:use-module (gnu packages shells)
80 #:use-module (gnu packages base)
81 #:use-module (gnu packages gawk)
82 #:use-module (gnu packages web)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages xorg)
85 #:use-module (gnu packages xdisorg)
86 #:use-module (gnu packages texinfo)
87 #:use-module (ice-9 ftw)
88 #:use-module (ice-9 match)
89 #:use-module ((srfi srfi-1) #:hide (zip)))
91 (define* (simple-texlive-package name locations hash
93 "Return a template for a simple TeX Live package with the given NAME,
94 downloading from a list of LOCATIONS in the TeX Live repository, and expecting
95 the provided output HASH. If TRIVIAL? is provided, all files will simply be
96 copied to their outputs; otherwise the TEXLIVE-BUILD-SYSTEM is used."
97 (define with-documentation?
99 (any (lambda (location)
100 (string-prefix? "/doc" location))
104 (version (number->string %texlive-revision))
105 (source (texlive-origin name version
107 (outputs (if with-documentation?
110 (build-system (if trivial?
112 texlive-build-system))
115 `(lambda* (#:key outputs inputs #:allow-other-keys)
116 (let (,@(if with-documentation?
117 `((doc (string-append (assoc-ref outputs "doc")
118 "/share/texmf-dist/")))
120 (out (string-append (assoc-ref outputs "out")
121 "/share/texmf-dist/")))
122 ,@(if with-documentation?
125 (string-append (assoc-ref inputs "source") "/doc")
126 (string-append doc "/doc")))
129 (copy-recursively "." out)
130 ,@(if with-documentation?
131 '((delete-file-recursively (string-append out "/doc")))
137 (modify-phases %standard-phases
139 (replace 'build (const #t))
140 (replace 'install ,copy-files)))
142 (modify-phases %standard-phases
143 (add-after 'install 'copy-files ,copy-files))))))
149 (define hyph-utf8-scripts
152 (uri (texlive-ref "generic" "hyph-utf8"))
153 (file-name (string-append "hyph-utf8-scripts-"
154 (number->string %texlive-revision)
158 "04xzf5gr3ylyh3ls09imrx4mwq3qp1k97r9njzlan6hlff875rx2"))))
160 (define (texlive-hyphen-package name code locations hash)
161 "Return a TeX Live hyphenation package with the given NAME, using source
162 files from LOCATIONS with expected checksum HASH. CODE is not currently in use."
163 (let ((parent (simple-texlive-package
164 name locations hash #:trivial? #t)))
168 (substitute-keyword-arguments (package-arguments parent)
170 `(modify-phases ,phases
172 (lambda* (#:key inputs outputs #:allow-other-keys)
173 (let* ((out (assoc-ref outputs "out"))
174 (root (string-append out "/share/texmf-dist"))
176 (string-append root "/tex/generic/hyph-utf8/patterns/txt/"))
178 (string-append root "/tex/generic/hyph-utf8/loadhyph"))
180 (string-append root "/tex/generic/hyph-utf8/patterns/ptex"))
182 (string-append root "/tex/generic/hyph-utf8/patterns/quote")))
185 (assoc-ref inputs "hyph-utf8-scripts") "scripts")
187 ;; Prepare target directories
193 ;; Generate plain patterns
194 (with-directory-excursion "scripts"
195 (substitute* "lib/tex/hyphen/path.rb"
196 (("^([[:blank:]]+)TeXROOT = .*" _ indent)
197 (string-append indent "TeXROOT = \""
198 (getcwd) "/..\"\n")))
200 (substitute* "generate-plain-patterns.rb"
201 ;; Ruby 2 does not need this.
202 (("require 'unicode'") "")
203 ;; Write directly to the output directory
204 (("File\\.join\\(PATH::TXT")
205 (string-append "File.join(\"" patterns "\""))
206 (("File\\.join\\(PATH::QUOTE")
207 (string-append "File.join(\"" quote "\"")))
208 (invoke "ruby" "generate-plain-patterns.rb")
210 ;; Build pattern loaders
211 (substitute* "generate-pattern-loaders.rb"
212 (("File\\.join\\(PATH::LOADER")
213 (string-append "File.join(\"" loaders "\"")))
215 (invoke "ruby" "generate-pattern-loaders.rb")
217 ;; Build ptex patterns
218 (substitute* "generate-ptex-patterns.rb"
219 (("File\\.join\\(PATH::PTEX")
220 (string-append "File.join(\"" ptex "\"")))
221 (invoke "ruby" "generate-ptex-patterns.rb")))))))))
224 ("ruby-hydra" ,ruby-hydra)
225 ("hyph-utf8-scripts" ,hyph-utf8-scripts)))
226 (home-page "https://ctan.org/pkg/hyph-utf8"))))
228 (define texlive-extra-src
231 (uri "ftp://tug.org/historic/systems/texlive/2021/texlive-20210325-extra.tar.xz")
233 "171kg1n9zapw3d2g47d8l0cywa99bl9m54xkqvp9625ks22z78s6"))))
235 (define texlive-texmf-src
238 (uri "ftp://tug.org/historic/systems/texlive/2021/texlive-20210325-texmf.tar.xz")
240 "070gczcm1h9rx29w2f02xd3nhd84c4k28nfmm8qgp69yq8vd84pz"))))
242 (define-public texlive-bin
249 (uri (string-append "ftp://tug.org/historic/systems/texlive/2021/"
250 "texlive-" version "-source.tar.xz"))
253 "0jsq1p66l46k2qq0gbqmx25flj2nprsz4wrd1ybn286p11kdkvvs"))
254 (modules '((guix build utils)
257 ;; TODO: Unbundle stuff in texk/dvisvgm/dvisvgm-src/libs too.
258 '(with-directory-excursion "libs"
259 (let ((preserved-directories '("." ".." "lua53" "luajit" "pplib" "xpdf")))
260 ;; Delete bundled software, except Lua which cannot easily be
261 ;; used as an external dependency, pplib and xpdf which aren't
262 ;; supported as system libraries (see m4/kpse-xpdf-flags.m4).
263 (for-each delete-file-recursively
266 (and (not (member file preserved-directories))
267 (eq? 'directory (stat:type (stat file))))))))))))
268 (build-system gnu-build-system)
270 `(("texlive-extra-src" ,texlive-extra-src)
276 (url (string-append "svn://www.tug.org/texlive/tags/"
277 %texlive-tag "/Master/texmf-dist/"
279 (revision %texlive-revision)))
280 (file-name (string-append "texlive-scripts-"
281 (number->string %texlive-revision)
285 "10xpa4nnz1biap7qfv7fb0zk6132ki5g1j8w0bqwkggfncdfl07d"))))
287 ("fontconfig" ,fontconfig)
288 ("fontforge" ,fontforge)
289 ("freetype" ,freetype)
292 ("ghostscript" ,ghostscript)
293 ("graphite2" ,graphite2)
294 ("harfbuzz" ,harfbuzz)
296 ("libpaper" ,libpaper)
309 ("zziplib" ,zziplib)))
313 `(#:modules ((guix build gnu-build-system)
321 "--disable-native-texlive-build"
323 "--with-banner-add=/GNU Guix"
324 "--with-system-cairo"
325 "--with-system-freetype2"
328 "--with-system-graphite2"
329 "--with-system-harfbuzz"
331 "--with-system-libgs"
332 "--with-system-libpaper"
333 "--with-system-libpng"
335 "--with-system-pixman"
336 "--with-system-potrace"
337 "--with-system-teckit"
339 "--with-system-zziplib"
340 ;; LuaJIT is not ported to some architectures yet.
341 ,@(if (or (target-ppc64le?)
343 '("--disable-luajittex"
344 "--disable-luajithbtex"
345 "--disable-mfluajit")
348 ;; Disable tests on some architectures to cope with a failure of
350 ;; XXX FIXME fix luajit properly on these architectures.
351 #:tests? ,(let ((s (or (%current-target-system)
353 (not (or (string-prefix? "aarch64" s)
354 (string-prefix? "mips64" s)
355 (string-prefix? "powerpc64le" s))))
358 (modify-phases %standard-phases
359 (add-after 'unpack 'configure-ghostscript-executable
360 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
361 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
362 ;; checking for the existence of the /usr/bin directory. Since
363 ;; Guix System does not have /usr/bin, it is also detected as Windows.
364 (lambda* (#:key inputs #:allow-other-keys)
365 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
367 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
369 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))))
370 (add-after 'unpack 'patch-dvisvgm-build-files
372 ;; XXX: Ghostscript is detected, but HAVE_LIBGS is never set, so
373 ;; the appropriate linker flags are not added.
374 (substitute* "texk/dvisvgm/configure"
375 (("^have_libgs=yes" all)
376 (string-append all "\nHAVE_LIBGS=1")))))
377 (add-after 'unpack 'disable-failing-test
379 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
380 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
381 (substitute* "texk/web2c/omegafonts/check.test"
382 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
383 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))))
384 ,@(if (or (target-ppc32?)
386 ;; Some mendex tests fail on some architectures.
387 `((add-after 'unpack 'skip-mendex-tests
389 (substitute* '("texk/mendexk/tests/mendex.test"
390 "texk/upmendex/tests/upmendex.test")
391 (("srcdir/tests/pprecA-0.ind pprecA-0.ind1 \\|\\| exit 1")
392 "srcdir/tests/pprecA-0.ind pprecA-0.ind1 || exit 77")))))
394 (add-after 'unpack 'unpack-texlive-extra
395 (lambda* (#:key inputs #:allow-other-keys)
396 (mkdir "texlive-extra")
397 (with-directory-excursion "texlive-extra"
398 (apply (assoc-ref %standard-phases 'unpack)
399 (list #:source (assoc-ref inputs "texlive-extra-src"))))))
400 (add-after 'unpack-texlive-extra 'unpack-texlive-scripts
401 (lambda* (#:key inputs #:allow-other-keys)
402 (mkdir "texlive-scripts")
403 (with-directory-excursion "texlive-scripts"
404 (apply (assoc-ref %standard-phases 'unpack)
405 (list #:source (assoc-ref inputs "texlive-scripts"))))))
406 (add-after 'unpack-texlive-scripts 'patch-scripts
408 (let* ((scripts (append (find-files "texk/kpathsea" "^mktex")
409 (find-files "texk/texlive/linked_scripts"
411 (find-files "texlive-scripts" "\\.sh$")))
412 (commands '("awk" "basename" "cat" "grep" "mkdir" "rm"
413 "sed" "sort" "uname"))
414 (command-regexp (format #f "\\b(~a)\\b"
415 (string-join commands "|")))
416 (iso-8859-1-encoded-scripts
417 '("texk/texlive/linked_scripts/texlive-extra/rubibtex.sh"
418 "texk/texlive/linked_scripts/texlive-extra/rumakeindex.sh")))
420 (define (substitute-commands scripts)
422 ((command-regexp dummy command)
425 (substitute-commands (lset-difference string= scripts
426 iso-8859-1-encoded-scripts))
428 (with-fluids ((%default-port-encoding "ISO-8859-1"))
429 (substitute-commands iso-8859-1-encoded-scripts)))))
430 ;; When ST_NLINK_TRICK is set, kpathsea attempts to avoid work when
431 ;; searching files by assuming that a directory with exactly two
432 ;; links has no subdirectories. This assumption does not hold in our
433 ;; case, so some directories with symlinked subdirectories would not
435 (add-after 'patch-scripts 'patch-directory-traversal
437 (substitute* "texk/kpathsea/config.h"
438 (("#define ST_NLINK_TRICK") ""))))
440 ,@(if (target-arm32?)
441 `((add-after 'unpack 'skip-faulty-test
443 ;; Skip this faulty test on armhf-linux:
444 ;; https://issues.guix.gnu.org/54055
445 (substitute* '("texk/mendexk/tests/mendex.test"
446 "texk/upmendex/tests/upmendex.test")
448 (string-append "exit 77 # skip\n" all))))))
451 (add-after 'check 'customize-texmf.cnf
452 ;; The default texmf.cnf is provided by this package, texlive-bin.
453 ;; Every variable of interest is set relatively to the GUIX_TEXMF
454 ;; environment variable defined via a search path specification
455 ;; further below. The configuration file is patched after the test
456 ;; suite has run, as it relies on the default configuration to find
457 ;; its paths (and the GUIX_TEXMF variable isn't set yet).
459 ;; The current directory is build/ because of the out-of-tree
461 (let* ((source (first (scandir ".." (cut string-suffix?
463 (texmf.cnf (string-append "../" source
464 "/texk/kpathsea/texmf.cnf")))
465 (substitute* texmf.cnf
467 "TEXMFROOT = {$GUIX_TEXMF}/..\n")
469 "TEXMF = {$GUIX_TEXMF}\n")
471 "TEXMFCNF = {$GUIX_TEXMF}/web2c\n")
472 ;; Don't truncate lines.
473 (("^error_line = .*$") "error_line = 254\n")
474 (("^half_error_line = .*$") "half_error_line = 238\n")
475 (("^max_print_line = .*$") "max_print_line = 1000\n")))))
476 (add-after 'install 'post-install
477 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
478 (let* ((out (assoc-ref outputs "out"))
479 (patch-source-shebangs (assoc-ref %standard-phases
480 'patch-source-shebangs))
481 (share (string-append out "/share"))
482 (scripts (string-append share
483 "/texmf-dist/scripts/texlive"))
484 (source (string-append
485 "../" (first (scandir ".." (cut string-suffix?
487 (tl-extra-root (string-append source "/texlive-extra"))
489 (scandir tl-extra-root
491 (cut member <> '("." ".."))))))
492 (tlpkg-src (string-append tl-extra-root "/" tl-extra-dir
494 (config.guess (search-input-file inputs
495 "/bin/config.guess")))
497 ;; Create symbolic links for the latex variants and their man
498 ;; pages. We link lualatex to luahbtex; see issue #51252 for
500 (with-directory-excursion (string-append out "/bin/")
502 '("pdftex" "pdftex" "xetex" "luahbtex")
503 '("latex" "pdflatex" "xelatex" "lualatex")))
504 (with-directory-excursion (string-append share "/man/man1/")
505 (symlink "luatex.1" "lualatex.1"))
508 (copy-recursively tlpkg-src (string-append share "/tlpkg"))
510 ;; Install texlive-scripts.
511 (copy-recursively (string-append
512 source "/texlive-scripts/source/")
516 (let ((dirs (map dirname (list (which "sed") (which "awk")))))
517 (with-directory-excursion scripts
518 (substitute* '("mktexpk" "mktexmf" "mktexlsr")
520 (format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
523 ;; Make sure that fmtutil can find its Perl modules.
524 (substitute* (string-append scripts "/fmtutil.pl")
526 (string-append share "/")))
528 ;; Likewise for updmap.pl.
529 (substitute* (string-append scripts "/updmap.pl")
530 (("\\$TEXMFROOT/tlpkg")
531 (string-append share "/tlpkg")))
533 ;; Likewise for the tlmgr.
534 (substitute* (string-append scripts "/tlmgr.pl")
535 ((".*\\$::installerdir = \\$Master.*" all)
536 (format #f " $Master = ~s;~%~a" share all)))
538 ;; Install the config.guess script, required by tlmgr.
539 (with-directory-excursion share
540 (mkdir-p "tlpkg/installer/")
541 (symlink config.guess "tlpkg/installer/config.guess"))
543 ;; texlua shebangs are not patched by the patch-source-shebangs
544 ;; phase because the texlua executable does not exist at that
546 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
547 (with-directory-excursion out
548 (patch-source-shebangs))))))))
550 (list (search-path-specification
551 (variable "GUIX_TEXMF")
552 (files '("share/texmf-dist")))))
553 (synopsis "TeX Live, a package of the TeX typesetting system")
555 "TeX Live provides a comprehensive TeX document production system.
556 It includes all the major TeX-related programs, macro packages, and fonts
557 that are free software, including support for many languages around the
560 This package contains the binaries.")
561 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
562 (home-page "https://www.tug.org/texlive/")))
564 (define-public texlive-libkpathsea
565 (package/inherit texlive-bin
566 (name "texlive-libkpathsea")
569 (inherit (package-source texlive-bin))
572 ,(origin-snippet (package-source texlive-bin))
573 (with-directory-excursion "texk"
574 (let ((preserved-directories '("." ".." "kpathsea")))
576 delete-file-recursively
579 (and (not (member file preserved-directories))
580 (eq? 'directory (stat:type (stat file)))))))))))))
582 (substitute-keyword-arguments (package-arguments texlive-bin)
583 ((#:configure-flags flags)
584 `(cons* "--disable-all-pkgs" "--enable-kpathsea"
585 "--enable-shared" ,flags))
587 `(modify-phases %standard-phases
588 (add-after 'install 'post-install
589 (lambda* (#:key inputs outputs #:allow-other-keys)
590 (with-directory-excursion "texk/kpathsea"
591 (invoke "make" "install"))))))))
593 (synopsis "Path searching library")
594 (description "kpathsea is a library, whose purpose is to return a filename
595 from a list of user-specified directories similar to how shells look up
596 executables. It is maintained as a part of TeX Live.")))
598 (define-syntax-rule (define-deprecated-package old-name name)
599 "Define OLD-NAME as a deprecated package alias for NAME."
600 (define-deprecated/public old-name name
601 (deprecated-package (symbol->string 'old-name) name)))
604 (define texlive-docstrip
606 (inherit (simple-texlive-package
608 (list "/tex/latex/base/docstrip.tex")
610 "1pxbqbia0727vg01xv8451szm55z2w8sb0vv3kf4iqx5ibb6m0d2")
612 (home-page "https://www.ctan.org/texlive")
613 (synopsis "Utility to strip documentation from TeX files")
614 (description "This package provides the docstrip utility to strip
615 documentation from TeX files. It is part of the LaTeX base.")
616 (license license:lppl1.3+)))
618 (define-public texlive-unicode-data
620 (inherit (simple-texlive-package
621 "texlive-unicode-data"
622 (list "/tex/generic/unicode-data/"
623 "/doc/generic/unicode-data/")
625 "1d41zvjsig7sqf2j2m89dnbv3gicpb16r04b4ikps4gabhbky83k")
627 (home-page "https://www.ctan.org/pkg/unicode-data")
628 (synopsis "Unicode data and loaders for TeX")
629 (description "This bundle provides generic access to Unicode Consortium
630 data for TeX use. It contains a set of text files provided by the Unicode
631 Consortium which are currently all from Unicode 8.0.0, with the exception of
632 @code{MathClass.txt} which is not currently part of the Unicode Character
633 Database. Accompanying these source data are generic TeX loader files
634 allowing this data to be used as part of TeX runs, in particular in building
635 format files. Currently there are two loader files: one for general character
636 set up and one for initializing XeTeX character classes as has been carried
637 out to date by @code{unicode-letters.tex}.")
638 (license license:lppl1.3c+)))
640 (define-deprecated-package texlive-generic-unicode-data texlive-unicode-data)
642 (define-public texlive-hyphen-base
644 (inherit (simple-texlive-package
645 "texlive-hyphen-base"
646 (list "/tex/generic/config/language.dat"
647 "/tex/generic/config/language.dat.lua"
648 "/tex/generic/config/language.def"
649 "/tex/generic/config/language.us"
650 "/tex/generic/config/language.us.def"
651 "/tex/generic/config/language.us.lua"
652 "/tex/generic/hyphen/dumyhyph.tex"
653 "/tex/generic/hyphen/hyphen.tex"
654 "/tex/generic/hyphen/hypht1.tex"
655 "/tex/generic/hyphen/zerohyph.tex")
657 "1sagn9aybs34m1s6m3zwya5g5kbiwfnw8ifcgxssygmzzs88dgjp")
659 (home-page "https://tug.org/texlive/")
660 (synopsis "Core hyphenation support files")
661 (description "This package includes Knuth's original @file{hyphen.tex},
662 @file{zerohyph.tex} to disable hyphenation, @file{language.us} which starts
663 the autogenerated files @file{language.dat} and @file{language.def} (and
664 default versions of those), etc.")
665 (license license:knuth)))
667 (define-public texlive-dvips
669 (inherit (simple-texlive-package
671 (list "/doc/man/man1/afm2tfm.1"
672 "/doc/man/man1/dvips.1"
675 "/fonts/enc/dvips/base/"
676 "/tex/generic/dvips/")
678 "0rns1hpjy4fmsskmkwx197j8qbgdmyj0j9214sq9vhpa6nv7czm3")
680 (home-page "https://www.ctan.org/pkg/dvips")
681 (synopsis "DVI to PostScript drivers")
682 (description "This package provides files needed for converting DVI files
684 (license license:lppl)))
686 (define-public texlive-tex-ini-files
688 (inherit (simple-texlive-package
689 "texlive-tex-ini-files"
690 (list "/tex/generic/tex-ini-files/")
692 "0q1g62jg0qiqslm93ycvm30bw8ydmssjdshzsnzl7n2vpd62qfi2")
694 (home-page "https://www.ctan.org/pkg/tex-ini-files")
695 (synopsis "Files for creating TeX formats")
696 (description "This bundle provides a collection of model \".ini\" files
697 for creating TeX formats. These files are commonly used to introduced
698 distribution-dependent variations in formats. They are also used to
699 allow existing format source files to be used with newer engines, for example
700 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
701 (license license:public-domain)))
703 (define-deprecated-package texlive-generic-tex-ini-files texlive-tex-ini-files)
705 (define-public texlive-metafont
707 (name "texlive-metafont")
708 (version (number->string %texlive-revision))
710 (method svn-multi-fetch)
711 (uri (svn-multi-reference
712 (url (string-append "svn://www.tug.org/texlive/tags/"
713 %texlive-tag "/Master/texmf-dist"))
714 (locations '("/metafont/"
715 "/fonts/source/public/modes/"))
716 (revision %texlive-revision)))
717 (file-name (string-append name "-" version "-checkout"))
720 "17y72xmz5a36vdsq7pfrwj0j4c7llrm9j5kcq349cpaas7r32lmb"))))
721 (build-system gnu-build-system)
723 `(#:tests? #f ; no test target
725 (modify-phases %standard-phases
728 (lambda* (#:key inputs #:allow-other-keys)
729 (let* ((cwd (getcwd))
730 (mf (string-append cwd "/metafont"))
731 (modes (string-append cwd "/fonts/source/public/modes")))
733 (string-append modes ":"
741 (with-directory-excursion "build"
742 (invoke "inimf" "mf.mf"))))
744 (lambda* (#:key outputs #:allow-other-keys)
745 (let* ((out (assoc-ref outputs "out"))
746 (base (string-append out "/share/texmf-dist/web2c"))
747 (mf (string-append out "/share/texmf-dist/metafont/")))
750 (install-file "build/mf.base" base)
751 (with-directory-excursion "metafont"
752 (for-each (lambda (where)
753 (copy-recursively where (string-append mf where)))
754 (list "base" "misc" "config")))))))))
757 (home-page "https://www.ctan.org/pkg/metafont")
758 (synopsis "Metafont base files")
759 (description "This package provides the Metafont base files needed to
760 build fonts using the Metafont system.")
761 (license license:knuth)))
763 (define-deprecated-package texlive-metafont-base texlive-metafont)
765 (define-public texlive-fontinst
766 (let ((template (simple-texlive-package
768 (list "/doc/fonts/fontinst/"
769 "/doc/man/man1/fontinst.1"
770 "/doc/man/man1/fontinst.man1.pdf"
772 ;; This is used to build parts of
773 ;; /tex/fontinst/{base,misc}/ and
774 ;; /tex/latex/fontinst/fontdoc.sty.
775 "/source/fontinst/base/"
777 ;; These are not generated.
778 "/tex/fontinst/base/bbox.sty"
779 "/tex/fontinst/base/multislot.sty"
780 "/tex/fontinst/misc/glyphbox.mtx"
781 "/tex/fontinst/misc/glyphoff.mtx"
782 "/tex/fontinst/misc/glyphon.mtx"
783 "/tex/fontinst/misc/kernoff.mtx"
784 "/tex/fontinst/misc/kernon.mtx"
786 "/tex/fontinst/latinetx/"
787 "/tex/fontinst/latinmtx/"
788 "/tex/fontinst/mathmtx/"
789 "/tex/fontinst/smblmtx/")
791 "195jsijrpv828pqy99gm13j31nsc8bsa58zlbln2r0h5j9l44b5g")
796 (substitute-keyword-arguments (package-arguments template)
798 '((guix build gnu-build-system)
802 `(modify-phases ,phases
804 (lambda* (#:key inputs #:allow-other-keys)
806 (string-append (getcwd) "//:"
807 (getcwd) "/source/fontinst/base//:"
808 (assoc-ref inputs "texlive-docstrip") "//"))
810 (invoke "tex" "-ini" "-interaction=scrollmode"
811 "-output-directory=build"
813 ;; Since we're using docstrip without LaTeX we can't set \UseTDS
814 ;; or \BaseDirectory, so the generated files are just dumped in
815 ;; the "build" directory.
816 (add-after 'install 'install-generated-files
817 (lambda* (#:key outputs #:allow-other-keys)
818 (let* ((out (assoc-ref outputs "out"))
819 (root (string-append out "/share/texmf-dist")))
820 (for-each (match-lambda
822 (for-each (lambda (file)
824 (string-append "build/" file)
825 (string-append root dir)))
827 '(("/tex/fontinst/base"
833 ("/tex/fontinst/misc"
837 ("/tex/latex/fontinst"
841 (list texlive-bin texlive-docstrip))
842 (home-page "https://www.ctan.org/pkg/fontinst")
843 (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
844 (description "This package provides TeX macros for converting Adobe Font
845 Metric files to TeX metric and virtual font format. Fontinst helps mainly
846 with the number crunching and shovelling parts of font installation. This
847 means in practice that it creates a number of files which give the TeX
848 metrics (and related information) for a font family that TeX needs to do any
849 typesetting in these fonts.")
850 (license license:lppl1.1+))))
852 (define-deprecated-package texlive-tex-fontinst-base texlive-fontinst)
854 (define-public texlive-fontname
856 (inherit (simple-texlive-package
858 (list "/doc/fonts/fontname/fontname.texi"
859 "/fonts/map/fontname/")
861 "009qvjpw48lajp0gxpvdk10n5qw3q41cpq05ycns67mxwkcaywq6")
863 (home-page "https://www.ctan.org/pkg/fontname")
864 (synopsis "Scheme for naming fonts in TeX")
865 (description "This is Fontname, a naming scheme for (the base part of)
866 external TeX font filenames. This makes at most eight-character names
867 from (almost) arbitrarily complex font names, thus helping portability of TeX
869 (license license:public-domain)))
871 (define-public texlive-cm
872 (let ((template (simple-texlive-package
874 (list "/fonts/source/public/cm/"
875 "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map"
878 "1ky4gvcn8qn3d61bvb39512b8r92igv6il7vh02hw04223yj6q8i")
883 (substitute-keyword-arguments (package-arguments template)
884 ((#:modules modules '())
885 '((guix build gnu-build-system)
889 `(modify-phases ,phases
891 (lambda* (#:key inputs #:allow-other-keys)
892 (let ((mf (assoc-ref inputs "texlive-metafont")))
893 ;; Tell mf where to find mf.base
894 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
895 ;; Tell mf where to look for source files
897 (string-append (getcwd) "/fonts/source/public/cm/:"
898 mf "/share/texmf-dist/metafont/base")))
899 (for-each make-file-writable
900 (cons "fonts/source/public/cm/"
901 (find-files "fonts/source/public/cm/" ".*")))
902 (let ((build (string-append (getcwd) "/build"))
903 (pkdir (string-append (getcwd) "/pk/ljfour/public/cm/dpi600")))
906 (with-directory-excursion "fonts/source/public/cm/"
907 (for-each (lambda (font)
908 (format #t "building font ~a\n" font)
909 (invoke "mf" "-progname=mf"
910 (string-append "-output-directory=" build)
916 (basename font ".mf")))
918 (string-append build "/"
919 (basename font ".mf") ".600gf")
920 (string-append pkdir "/"
921 (basename font ".mf") ".pk")))
922 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
924 (add-after 'install 'install-generated-fonts
925 (lambda* (#:key inputs outputs #:allow-other-keys)
926 (let* ((out (assoc-ref outputs "out"))
927 (fonts (string-append out "/share/texmf-dist/fonts/"))
928 (pk (string-append fonts "pk"))
929 (tfm (string-append fonts "tfm/public/cm")))
930 (for-each (cut install-file <> tfm)
931 (find-files "build" "\\.*"))
932 (copy-recursively "pk" pk)
935 (list texlive-bin texlive-metafont))
936 (home-page "https://www.ctan.org/pkg/cm")
937 (synopsis "Computer Modern fonts for TeX")
938 (description "This package provides the Computer Modern fonts by Donald
939 Knuth. The Computer Modern font family is a large collection of text,
940 display, and mathematical fonts in a range of styles, based on Monotype Modern
942 (license license:knuth))))
944 (define-deprecated-package texlive-fonts-cm texlive-cm)
946 (define-public texlive-cm-super
947 (let ((template (simple-texlive-package
949 (list "/doc/fonts/cm-super/"
951 "/fonts/afm/public/cm-super/"
952 "/fonts/enc/dvips/cm-super/"
953 "/fonts/map/dvips/cm-super/"
954 "/fonts/map/vtex/cm-super/"
955 "/fonts/type1/public/cm-super/"
956 "/tex/latex/cm-super/")
958 "1k3afl0x0bqbr5mnawbnp7rr2126dwn0vwnxzibm9ggvzqilnkm6")
963 (substitute-keyword-arguments (package-arguments template)
965 `(modify-phases ,phases
966 (delete 'reset-gzip-timestamps)))))
967 (home-page "https://www.ctan.org/pkg/cm-super")
968 (synopsis "Computer Modern Super family of fonts")
969 (description "The CM-Super family provides Adobe Type 1 fonts that replace
970 the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
971 T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
972 languages except Greek), and bringing many ameliorations in typesetting
973 quality. The fonts exhibit the same metrics as the METAFONT-encoded
975 ;; With font exception
976 (license license:gpl2+))))
978 (define-deprecated-package texlive-fonts-cm-super texlive-cm-super)
980 (define-public texlive-courier
982 (inherit (simple-texlive-package
984 (list "/dvips/courier/"
985 "/fonts/afm/adobe/courier/"
986 "/fonts/afm/urw/courier/"
987 "/fonts/map/dvips/courier/"
988 "/fonts/tfm/adobe/courier/"
989 "/fonts/tfm/urw35vf/courier/"
990 "/fonts/type1/adobe/courier/"
991 "/fonts/type1/urw/courier/"
992 "/fonts/vf/adobe/courier/"
993 "/fonts/vf/urw35vf/courier/"
994 "/tex/latex/courier/"
995 "/tex4ht/ht-fonts/alias/adobe/courier/"
996 "/tex4ht/ht-fonts/unicode/adobe/courier/")
998 "05lglavi073glj26k9966351hka5ac22g4vim61dkfy001vz4i7r")
1000 (home-page "https://ctan.org/pkg/urw-base35")
1001 (synopsis "URW Base 35 font pack for LaTeX")
1002 (description "This package provides a drop-in replacements for the Courier
1003 font from Adobe's basic set.")
1004 ;; No license version specified.
1005 (license license:gpl3+)))
1007 (define-public texlive-tex-gyre
1009 (inherit (simple-texlive-package
1011 '("/doc/fonts/tex-gyre/GUST-FONT-LICENSE.txt"
1012 "/fonts/afm/public/tex-gyre/"
1013 "/fonts/enc/dvips/tex-gyre/"
1014 "/fonts/map/dvips/tex-gyre/"
1015 "/fonts/opentype/public/tex-gyre/"
1016 "/fonts/tfm/public/tex-gyre/"
1017 "/fonts/type1/public/tex-gyre/"
1018 "/tex/latex/tex-gyre/")
1020 "1ldnlmclghm3gnyv02r8a6cqybygz2ifq07mhykhf43h1pw3aq7k")
1022 (home-page "https://ctan.org/pkg/tex-gyre")
1023 (synopsis "TeX fonts extending URW fonts")
1025 "The TeX-GYRE bundle consist of multiple font families:
1027 @item Adventor, based on the URW Gothic L family of fonts;
1028 @item Bonum, based on the URW Bookman L family;
1029 @item Chorus, based on URW Chancery L Medium Italic;
1030 @item Cursor, based on URW Nimbus Mono L;
1031 @item Heros, based on URW Nimbus Sans L;
1032 @item Pagella, based on URW Palladio L;
1033 @item Schola, based on the URW Century Schoolbook L family;
1034 @item Termes, based on the URW Nimbus Roman No9 L family of fonts.
1037 The constituent standard faces of each family have been greatly extended
1038 (though Chorus omits Greek support and has no small-caps family). Each
1039 family is available in Adobe Type 1 and Open Type formats, and LaTeX
1040 support (for use with a variety of encodings) is provided.")
1041 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
1042 ;; Public License (LPPL), version 1.3c or later, but comes with an
1043 ;; additional but not legally binding clause.
1044 (license license:lppl1.3c+)))
1046 (define-public texlive-lm
1048 (inherit (simple-texlive-package
1050 (list "/doc/fonts/lm/"
1051 "/fonts/afm/public/lm/"
1052 "/fonts/enc/dvips/lm/"
1053 "/fonts/map/dvipdfm/lm/"
1054 "/fonts/map/dvips/lm/"
1055 "/fonts/opentype/public/lm/"
1056 "/fonts/tfm/public/lm/"
1057 "/fonts/type1/public/lm/"
1060 "0yyk0dr4yms82mwy4dc03zf5igyhgcb65icdah042rk23rlpxygv")
1062 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/")
1063 (synopsis "Latin Modern family of fonts")
1064 (description "The Latin Modern fonts are derived from the famous Computer
1065 Modern fonts designed by Donald E. Knuth and described in Volume E of his
1066 Computers & Typesetting series.")
1067 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
1068 ;; Public License (LPPL), version 1.3c or later, but comes with an
1069 ;; additional but not legally binding clause.
1070 (license license:lppl1.3c+)))
1072 (define-deprecated-package texlive-fonts-lm texlive-lm)
1074 (define-public texlive-knuth-lib
1075 (let ((template (simple-texlive-package
1077 (list "/fonts/source/public/knuth-lib/"
1078 "/tex/generic/knuth-lib/"
1079 "/tex/plain/knuth-lib/")
1081 "1cxyqqprp8sj2j4zp9l0wry8cq2awpz3a8i5alzpc4ndg7a6pgdf")
1086 (substitute-keyword-arguments (package-arguments template)
1088 '((guix build gnu-build-system)
1091 ((#:phases phases '())
1092 `(modify-phases ,phases
1094 (lambda* (#:key inputs #:allow-other-keys)
1095 (with-directory-excursion "fonts/source/public/knuth-lib"
1096 (let ((mf (assoc-ref inputs "texlive-metafont")))
1097 ;; Tell mf where to find mf.base
1099 (string-append mf "/share/texmf-dist/web2c"))
1100 ;; Tell mf where to look for source files
1102 (string-append (getcwd) ":"
1103 mf "/share/texmf-dist/metafont/base")))
1105 (for-each (lambda (font)
1106 (format #t "building font ~a\n" font)
1107 (invoke "mf" "-progname=mf"
1108 "-output-directory=build"
1114 (find-files "." "(manfnt|logo.+)\\.mf$")))
1116 (add-after 'install 'install-fonts
1117 (lambda* (#:key outputs #:allow-other-keys)
1118 (with-directory-excursion "fonts/source/public/knuth-lib"
1119 (let* ((out (assoc-ref outputs "out"))
1121 out "/share/texmf-dist/fonts/tfm/public/knuth-lib")))
1122 (for-each (cut install-file <> tfm)
1123 (find-files "build" "\\.tfm"))
1126 (list texlive-bin texlive-metafont))
1127 (home-page "https://www.ctan.org/pkg/knuth-lib")
1128 (synopsis "Small library of METAFONT sources")
1129 (description "This is a collection of core TeX and METAFONT macro files
1130 from Donald Knuth, including the plain format, plain base, and the MF logo
1132 (license license:knuth))))
1134 (define-deprecated-package texlive-fonts-knuth-lib texlive-knuth-lib)
1136 (define-public texlive-fonts-latex
1138 (name "texlive-fonts-latex")
1139 (version (number->string %texlive-revision))
1143 (url (string-append "svn://www.tug.org/texlive/tags/"
1144 %texlive-tag "/Master/texmf-dist/"
1145 "/fonts/source/public/latex-fonts"))
1146 (revision %texlive-revision)))
1147 (file-name (string-append name "-" version "-checkout"))
1150 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
1151 (build-system gnu-build-system)
1153 `(#:modules ((guix build gnu-build-system)
1157 #:tests? #f ; no tests
1159 (modify-phases %standard-phases
1162 (lambda* (#:key inputs #:allow-other-keys)
1163 (let ((mf (assoc-ref inputs "texlive-metafont")))
1164 ;; Tell mf where to find mf.base
1165 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1166 ;; Tell mf where to look for source files
1168 (string-append (getcwd) ":"
1169 mf "/share/texmf-dist/metafont/base:"
1170 (assoc-ref inputs "texlive-cm")
1171 "/share/texmf-dist/fonts/source/public/cm")))
1173 (for-each (lambda (font)
1174 (format #t "building font ~a\n" font)
1175 (invoke "mf" "-progname=mf"
1176 "-output-directory=build"
1182 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
1183 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
1184 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
1185 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
1186 "line10" "linew10"))
1189 (lambda* (#:key outputs #:allow-other-keys)
1190 (let* ((out (assoc-ref outputs "out"))
1192 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
1194 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
1195 (for-each (cut install-file <> tfm)
1196 (find-files "build" "\\.*"))
1197 (for-each (cut install-file <> mf)
1198 (find-files "." "\\.mf"))
1201 (list texlive-bin texlive-metafont texlive-cm))
1202 (home-page "https://www.ctan.org/pkg/latex-fonts")
1203 (synopsis "Collection of fonts used in LaTeX distributions")
1204 (description "This is a collection of fonts for use with standard LaTeX
1205 packages and classes. It includes invisible fonts (for use with the slides
1206 class), line and circle fonts (for use in the picture environment) and LaTeX
1208 (license license:lppl1.2+)))
1210 (define-public texlive-mflogo
1211 (let ((template (simple-texlive-package
1213 (list "/doc/latex/mflogo/"
1214 "/source/latex/mflogo/"
1215 "/fonts/source/public/mflogo/logosl8.mf")
1217 "1vb4mg7fh4k54g7nqwiw3qm4iir8whpfnspis76l4sddzar1amh7"))))
1221 (substitute-keyword-arguments (package-arguments template)
1223 '((guix build texlive-build-system)
1227 ((#:tex-directory _ #t)
1229 ((#:phases phases '())
1230 `(modify-phases ,phases
1231 (add-after 'unpack 'chdir
1233 (chdir "source/latex/mflogo") #t))
1234 (add-after 'build 'build-font-metrics
1235 (lambda* (#:key inputs #:allow-other-keys)
1236 (let ((root "../../..")
1237 (mf (assoc-ref inputs "texlive-metafont"))
1238 (kl (assoc-ref inputs "texlive-knuth-lib")))
1239 ;; Tell mf where to find mf.base
1241 (string-append mf "/share/texmf-dist/web2c"))
1242 ;; Tell mf where to look for source files
1244 (string-append root ":"
1245 mf "/share/texmf-dist/metafont/base:"
1246 kl "/share/texmf-dist/fonts/source/public/knuth-lib:"
1247 root "/fonts/source/public/mflogo/"))
1248 (for-each (lambda (font)
1249 (format #t "building font ~a\n" font)
1250 (invoke "mf" "-progname=mf"
1251 "-output-directory=build"
1256 "input " (basename font))))
1257 (find-files (string-append root
1258 "/fonts/source/public/mflogo/")
1261 (add-before 'install 'install-fonts
1262 (lambda* (#:key outputs #:allow-other-keys)
1263 (let* ((out (assoc-ref outputs "out"))
1265 out "/share/texmf-dist/fonts/tfm/public/mflogo")))
1266 (for-each (lambda (file)
1267 (install-file file tfm)
1269 (find-files "build" "\\.tfm"))
1272 (list texlive-bin texlive-metafont texlive-knuth-lib))
1273 (home-page "http://www.ctan.org/pkg/mflogo")
1274 (synopsis "LaTeX support for Metafont logo fonts")
1276 "This package provides LaTeX and font definition files to access the
1277 Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont
1278 logos in LaTeX documents.")
1279 (license license:lppl))))
1281 (define-deprecated-package texlive-latex-mflogo texlive-mflogo)
1283 (define-public texlive-mflogo-font
1285 (inherit (simple-texlive-package
1286 "texlive-mflogo-font"
1287 (list "/doc/fonts/mflogo-font/README"
1288 "/fonts/afm/hoekwater/mflogo-font/"
1289 "/fonts/map/dvips/mflogo-font/"
1290 "/fonts/type1/hoekwater/mflogo-font/")
1292 "094mknjv8ki2pvj1zin0f1z4f1w12g0cfqjiqcsawjsry4yfrmbg")
1294 (home-page "https://www.ctan.org/pkg/mflogo-font")
1295 (synopsis "Metafont logo font")
1297 "These fonts were created in METAFONT by Knuth, for his own publications.
1298 At some stage, the letters P and S were added, so that the METAPOST logo could
1299 also be expressed. The fonts were originally issued (of course) as METAFONT
1300 source; they have since been autotraced and reissued in Adobe Type 1 format by
1302 (license license:knuth)))
1304 (define-deprecated-package texlive-fonts-mflogo-font texlive-mflogo-font)
1306 (define-public texlive-amsfonts
1307 (let ((template (simple-texlive-package
1309 (list "/source/latex/amsfonts/"
1310 "/fonts/source/public/amsfonts/"
1311 "/fonts/type1/public/amsfonts/"
1312 "/fonts/afm/public/amsfonts/"
1313 "/fonts/map/dvips/amsfonts/"
1314 "/tex/plain/amsfonts/"
1315 "/doc/fonts/amsfonts/")
1317 "15q70nkjf8wqzbd5ivcdx3i2sdgqxjb38q0qn9a2qw9i0qcnx6zw"))))
1320 ;; TODO: This package is missing files.
1321 (replacement texlive-amsfonts/fixed)
1323 (substitute-keyword-arguments (package-arguments template)
1324 ((#:build-targets _ #t)
1325 '(list "amsfonts.ins"))
1326 ((#:tex-directory _ #t)
1328 ((#:modules modules '())
1329 `((guix build texlive-build-system)
1335 `(modify-phases ,phases
1336 (add-before 'build 'build-fonts
1337 (lambda* (#:key inputs #:allow-other-keys)
1338 ;; Allow self fonts sources and other resources to be
1340 (setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF")
1343 (let ((build (string-append (getcwd) "/build-fonts")))
1345 (with-directory-excursion "fonts/source/public/amsfonts"
1346 (for-each (lambda (font)
1347 (format #t "building font ~a\n" (basename font ".mf"))
1348 (with-directory-excursion (dirname font)
1349 (invoke "mf" "-progname=mf"
1350 (string-append "-output-directory=" build)
1357 (basename font ".mf")))))
1358 (find-files "." "[0-9]+\\.mf$"))))
1360 ;; There are no metafont sources for the Euler fonts, so we
1361 ;; convert the afm files instead.
1362 (let ((build (string-append (getcwd) "/build-fonts/euler")))
1364 (with-directory-excursion "fonts/afm/public/amsfonts/euler"
1365 (for-each (lambda (font)
1366 (format #t "converting afm font ~a\n" (basename font ".afm"))
1367 (invoke "afm2tfm" font
1368 (string-append build "/"
1369 (basename font ".tfm"))))
1370 (find-files "(cmextra|cyrillic|dummy|euler|symbols)"
1373 ;; Frustratingly, not all fonts can be created this way. To
1374 ;; generate eufm8.tfm, for example, we first scale down
1375 ;; eufm10.afm to eufm8.pl, and then generate the tfm file from
1378 (string-append ":" build "//:"
1379 (getcwd) "/fonts/afm/public/amsfonts//:"
1380 (getcwd) "/source/latex/amsfonts//:"))
1381 (with-directory-excursion build
1382 (for-each (match-lambda
1383 (((target-base target-size)
1384 (source-base source-size))
1385 (let ((factor (number->string
1386 (truncate/ (* 1000 target-size)
1389 "-interaction=scrollmode"
1390 (string-append "\\input fontinst.sty "
1391 "\\transformfont{" target-base "}"
1392 "{\\scalefont{" factor "}"
1393 "{\\fromafm{" source-base "}}} "
1396 (string-append target-base ".pl")
1397 (string-append target-base ".tfm"))
1398 (delete-file (string-append target-base ".pl"))))
1400 '((("eufm8" 8) ("eufm10" 10))
1402 (("eufb6" 6) ("eufb7" 7))
1403 (("eufb8" 8) ("eufb10" 10))
1404 (("eufb9" 9) ("eufb10" 10))
1406 (("eufm6" 6) ("eufb7" 7))
1407 (("eufm9" 9) ("eufb10" 10))
1409 (("eurb6" 6) ("eurb7" 7))
1410 (("eurb8" 8) ("eurb10" 10))
1411 (("eurb9" 9) ("eurb10" 10))
1413 (("eurm6" 6) ("eurm7" 7))
1414 (("eurm8" 8) ("eurm10" 10))
1415 (("eurm9" 9) ("eurm10" 10))))))))
1416 (add-after 'install 'install-generated-fonts
1417 (lambda* (#:key inputs outputs #:allow-other-keys)
1418 (copy-recursively "build-fonts"
1420 (assoc-ref outputs "out")
1421 "/share/texmf-dist/fonts/tfm/public/amsfonts"))))))))
1423 (list (texlive-updmap.cfg (list texlive-fontinst))))
1424 (home-page "https://www.ctan.org/pkg/amsfonts")
1425 (synopsis "TeX fonts from the American Mathematical Society")
1427 "This package provides an extended set of fonts for use in mathematics,
1428 including: extra mathematical symbols; blackboard bold letters (uppercase
1429 only); fraktur letters; subscript sizes of bold math italic and bold Greek
1430 letters; subscript sizes of large symbols such as sum and product; added sizes
1431 of the Computer Modern small caps font; cyrillic fonts (from the University of
1432 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1433 files, and all except the Euler fonts are provided as Metafont source. The
1434 distribution also includes the canonical Type 1 versions of the Computer
1435 Modern family of fonts. The Euler fonts are supported by separate packages;
1436 details can be found in the documentation.")
1437 (license license:silofl1.1))))
1439 (define-public texlive-amsfonts/fixed
1440 (let ((template (simple-texlive-package
1441 "texlive-amsfonts-fixed"
1442 (list "/source/latex/amsfonts/"
1443 "/fonts/source/public/amsfonts/"
1444 "/fonts/type1/public/amsfonts/"
1445 "/fonts/afm/public/amsfonts/"
1446 "/fonts/tfm/public/amsfonts/"
1447 "/fonts/map/dvips/amsfonts/"
1448 "/tex/plain/amsfonts/"
1449 "/doc/fonts/amsfonts/")
1451 "1rpl87643q8v6gcqsz68mjha8wac6cqx7mr16ds8f0ccbw7a4w9b"))))
1455 (substitute-keyword-arguments (package-arguments template)
1456 ((#:build-targets _ #t)
1457 '(list "amsfonts.ins"))
1458 ((#:tex-directory _ #t)
1461 `(modify-phases ,phases
1462 (add-after 'unpack 'chdir
1463 (lambda _ (chdir "source/latex/amsfonts")))
1464 (add-before 'copy-files 'unchdir
1465 (lambda _ (chdir "../../..")))
1466 (add-after 'copy-files 'remove-extra-files
1467 (lambda* (#:key outputs #:allow-other-keys)
1468 (delete-file-recursively
1469 (string-append (assoc-ref outputs "out")
1470 "/share/texmf-dist/source/latex/amsfonts/build/"))))))))
1471 (home-page "https://www.ctan.org/pkg/amsfonts")
1472 (synopsis "TeX fonts from the American Mathematical Society")
1474 "This package provides an extended set of fonts for use in mathematics,
1475 including: extra mathematical symbols; blackboard bold letters (uppercase
1476 only); fraktur letters; subscript sizes of bold math italic and bold Greek
1477 letters; subscript sizes of large symbols such as sum and product; added sizes
1478 of the Computer Modern small caps font; cyrillic fonts (from the University of
1479 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1480 files, and all except the Euler fonts are provided as Metafont source. The
1481 distribution also includes the canonical Type 1 versions of the Computer
1482 Modern family of fonts. The Euler fonts are supported by separate packages;
1483 details can be found in the documentation.")
1484 (license license:silofl1.1))))
1486 (define-deprecated-package texlive-fonts-amsfonts texlive-amsfonts)
1488 (define-deprecated-package texlive-latex-amsfonts texlive-amsfonts)
1490 (define-public texlive-mkpattern
1492 (inherit (simple-texlive-package
1494 (list "/doc/plain/mkpattern/README"
1495 "/doc/plain/mkpattern/mkpatdoc.tex"
1496 "/doc/plain/mkpattern/mkpatter.pdf"
1497 "/doc/plain/mkpattern/mkpattern-exmpl.tex"
1498 "/tex/plain/mkpattern/mkpatter.tex")
1500 "0sxnkbcc802jl3fj56x9hvg978bpv15lhrwj0aykb4syq29l47ga")
1502 (home-page "https://ctan.org/pkg/mkpattern")
1503 (synopsis "Utility for making hyphenation patterns")
1504 (description "Mkpattern is a general purpose program for the generation of
1505 hyphenation patterns, with definition of letter sets and template-like
1506 constructions. It also provides an easy way to handle different input and
1507 output encodings, and features generation of clean UTF-8 patterns.")
1508 (license license:lppl)))
1510 ;; This provides etex.src which is needed to build various formats, including
1511 ;; luatex.fmt and pdflatex.fmt
1512 (define-public texlive-etex
1513 (let ((template (simple-texlive-package
1515 (list "/doc/etex/base/"
1516 "/doc/man/man1/etex.1"
1517 "/doc/man/man1/etex.man1.pdf"
1519 "/fonts/source/public/etex/")
1521 "1qv6vxm5a8pw38gas3i69ivmsn79zj2yq5n5vdmh0rzic5hw2hmc")
1526 (substitute-keyword-arguments (package-arguments template)
1528 `(modify-phases ,phases
1531 (lambda* (#:key inputs #:allow-other-keys)
1532 (let ((mf (assoc-ref inputs "texlive-metafont")))
1533 ;; Tell mf where to find mf.base
1534 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1535 ;; Tell mf where to look for source files
1537 (string-append (getcwd)
1538 "/fonts/source/public/etex/:"
1539 mf "/share/texmf-dist/metafont/base:"
1540 (assoc-ref inputs "texlive-cm")
1541 "/share/texmf-dist/fonts/source/public/cm")))
1542 (invoke "mf" "-progname=mf"
1549 (add-after 'install 'install-font
1550 (lambda* (#:key outputs #:allow-other-keys)
1553 (string-append (assoc-ref outputs "out")
1554 "/share/texmf-dist/fonts/tfm/public/etex/"))
1557 (list texlive-bin texlive-metafont texlive-cm))
1558 (home-page "https://www.ctan.org/pkg/etex")
1559 (synopsis "Extended version of TeX")
1561 "This package provides an extended version of TeX (which is capable of
1562 running as if it were TeX unmodified). E-TeX has been specified by the LaTeX
1563 team as the engine for the development of LaTeX2e; as a result, LaTeX
1564 programmers may assume e-TeX functionality. The pdftex engine directly
1565 incorporates the e-TeX extensions.")
1566 (license license:knuth))))
1568 (define-public texlive-tex-plain
1570 (inherit (simple-texlive-package
1572 (list "/tex/plain/")
1574 "0gwygkm8i2jmpf7bfg6fb6824rl7fq4a2s0wni73v0fz6s4chr1n")
1576 (home-page "https://www.ctan.org/pkg/plain")
1577 (synopsis "Plain TeX format and supporting files")
1579 "This package contains files used to build the Plain TeX format, as
1580 described in the TeXbook, together with various supporting files (some also
1581 discussed in the book).")
1582 (license license:knuth)))
1584 (define-public texlive-hardwrap
1586 (inherit (simple-texlive-package
1588 (list "doc/latex/hardwrap/"
1589 "tex/latex/hardwrap/"
1590 "source/latex/hardwrap/")
1592 "0ql3xml1ccll44q945n7w72p6d51y5wcrkawi7cg621gy5d6wzx5")
1594 (home-page "https://ctan.org/macros/latex/contrib/hardwrap")
1595 (synopsis "Hard wrap text to a certain character length")
1597 "The package facilitates wrapping text to a specific character width, breaking
1598 lines by words rather than, as done by TeX, by characters. The primary use for
1599 these facilities is to aid the generation of messages sent to the log file or
1600 console output to display messages to the user. Package authors may also find
1601 this useful when writing out arbitary text to an external file.")
1602 (license license:lppl1.3+)))
1604 (define-public texlive-helvetic
1606 (inherit (simple-texlive-package
1608 (list "/dvips/helvetic/"
1609 "/fonts/afm/adobe/helvetic/"
1610 "/fonts/afm/urw/helvetic/"
1611 "/fonts/map/dvips/helvetic/"
1612 "/fonts/tfm/adobe/helvetic/"
1613 "/fonts/tfm/monotype/helvetic/"
1614 "/fonts/tfm/urw35vf/helvetic/"
1615 "/fonts/type1/urw/helvetic/"
1616 "/fonts/vf/adobe/helvetic/"
1617 "/fonts/vf/monotype/helvetic/"
1618 "/fonts/vf/urw35vf/helvetic/"
1619 "/tex/latex/helvetic/")
1621 "0c3f1ly7y6404z0akbfbbfql13sz717v0n0g69qjpr69hi4n0nsl")
1623 (home-page "https://ctan.org/pkg/urw-base35")
1624 (synopsis "URW Base 35 font pack for LaTeX")
1625 (description "This package provides a drop-in replacements for the Helvetica
1626 font from Adobe's basic set.")
1627 ;; No license version specified.
1628 (license license:gpl3+)))
1630 (define-public texlive-hyphen-afrikaans
1632 (inherit (texlive-hyphen-package
1633 "texlive-hyphen-afrikaans" "af"
1634 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex")
1636 "1k9k27a27bbrb0gz36191w32l2v6d3zbdh8zhrp4l3ild2pj3n4l")))
1637 (synopsis "Hyphenation patterns for Afrikaans")
1638 (description "The package provides hyphenation patterns for the Afrikaans
1640 (license license:lppl1.3+)))
1642 (define-public texlive-hyphen-ancientgreek
1644 (inherit (texlive-hyphen-package
1645 "texlive-hyphen-ancientgreek" "grc"
1646 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-grc.tex"
1647 "/tex/generic/hyphen/grahyph5.tex"
1648 "/tex/generic/hyphen/ibyhyph.tex")
1650 "01326lb6z0s8krcfgs8i1pnjfrm4gr33rc53gy80f63qbv4ssxrw")))
1651 (synopsis "Hyphenation patterns for ancient Greek")
1652 (description "The package provides hyphenation patterns for ancient
1654 (license license:lppl1.3+)))
1656 (define-public texlive-hyphen-armenian
1657 (let ((template (texlive-hyphen-package
1658 "texlive-hyphen-armenian" "hy"
1659 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hy.tex")
1661 "0hzny0npynsb07syxrpbfa5pkpj8r0j51pj64yxyfl1c0bak1fwp"))))
1664 (synopsis "Hyphenation patterns for Armenian")
1665 (description "The package provides hyphenation patterns for the Armenian
1667 ;; Any version of the LGPL.
1668 (license license:lgpl3+))))
1670 (define-public texlive-hyphen-basque
1671 (let ((template (texlive-hyphen-package
1672 "texlive-hyphen-basque" "eu"
1673 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex")
1675 "15w969g1jqzn68l2b2lzf7iv7g3kil02aba3if6cag3qcnq92ra9"))))
1678 (synopsis "Hyphenation patterns for Basque")
1679 (description "The package provides hyphenation patterns for the Basque
1681 ;; Similar to Unicode license.
1682 (license (license:fsf-free
1683 "/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex")))))
1685 (define-public texlive-hyphen-belarusian
1687 (inherit (texlive-hyphen-package
1688 "texlive-hyphen-belarusian" "be"
1689 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-be.tex")
1691 "0ppm12wndaxv9da62dwkbnk7w9nijikn6jkc97m76xis338g2h02")))
1692 (synopsis "Hyphenation patterns for Belarusian")
1693 (description "The package provides hyphenation patterns for the Belarusian
1695 (license license:expat)))
1697 (define-public texlive-hyphen-bulgarian
1699 (inherit (texlive-hyphen-package
1700 "texlive-hyphen-bulgarian" "bg"
1701 '("/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex")
1703 "0m254y71j3qrb71klvfalfmic3kjy31l85b9cgpdm5yznlsq3i8d")))
1704 (synopsis "Hyphenation patterns for Bulgarian")
1705 (description "The package provides hyphenation patterns for the Bulgarian
1706 language in T2A and UTF-8 encodings.")
1707 (license (license:non-copyleft
1708 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex"
1709 "Ancestral BSD variant"))))
1711 (define-public texlive-hyphen-catalan
1713 (inherit (texlive-hyphen-package
1714 "texlive-hyphen-catalan" "ca"
1715 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex")
1717 "10zzlfz5v8d9csg85ibpp2vfvmpqa56vbl85qy5gws099vygpayg")))
1718 (synopsis "Hyphenation patterns for Catalan")
1719 (description "The package provides hyphenation patterns for Catalan in
1720 T1/EC and UTF-8 encodings.")
1721 (license license:lppl1.0+)))
1723 (define-public texlive-hyphen-chinese
1725 (inherit (texlive-hyphen-package
1726 "texlive-hyphen-chinese" "zh-latn-pinyin"
1727 '("/tex/generic/hyph-utf8/patterns/ptex/hyph-zh-latn-pinyin.ec.tex"
1728 "/tex/generic/hyph-utf8/patterns/tex/hyph-zh-latn-pinyin.tex")
1730 "1hhh30hcjymm2igpllly04cavsfmd6xrjkd9zax6b2wdxn3ka4pm")))
1731 (synopsis "Hyphenation patterns for unaccented Chinese pinyin")
1732 (description "The package provides hyphenation patterns for unaccented
1733 Chinese pinyin T1/EC and UTF-8 encodings.")
1734 (license license:gpl2+)))
1736 (define-public texlive-hyphen-churchslavonic
1738 (inherit (texlive-hyphen-package
1739 "texlive-hyphen-churchslavonic" "cu"
1740 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cu.tex")
1742 "0fhbwaapq2213msbhgr0d1lw06ihmrqirxj092mn73d8ynl13qlh")))
1743 (synopsis "Hyphenation patterns for Church Slavonic")
1744 (description "The package provides hyphenation patterns for Church
1745 Slavonic in UTF-8 encoding.")
1746 (license license:expat)))
1748 (define-public texlive-hyphen-coptic
1750 (inherit (texlive-hyphen-package
1751 "texlive-hyphen-coptic" "cop"
1752 (list "/tex/generic/hyph-utf8/patterns/tex-8bit/copthyph.tex"
1753 "/tex/generic/hyph-utf8/patterns/tex/hyph-cop.tex")
1755 "1jlxxvyfa2aljizaa3qlcxyhqsrb4dawv3q3fbyp2lxz6ag9fy6m")))
1756 (synopsis "Hyphenation patterns for Coptic")
1757 (description "The package provides hyphenation patterns for Coptic in
1758 UTF-8 encoding as well as in ASCII-based encoding for 8-bit engines.")
1759 ;; No explicit license declaration, so we use the project license.
1760 (license license:lppl)))
1762 (define-public texlive-hyphen-croatian
1764 (inherit (texlive-hyphen-package
1765 "texlive-hyphen-croatian" "hr"
1766 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hr.tex")
1768 "12n9r2winai15jc622sqdwclgcs1s68r6vcf7ic8vvq0x9qhwc5v")))
1769 (synopsis "Hyphenation patterns for Croatian")
1770 (description "The package provides hyphenation patterns for Croatian in
1771 T1/EC and UTF-8 encodings.")
1772 (license license:lppl1.0+)))
1774 (define-public texlive-hyphen-czech
1776 (inherit (texlive-hyphen-package
1777 "texlive-hyphen-czech" "cs"
1778 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cs.tex")
1780 "1q37s6p8yfyi3rp1azbz421lg4lr4aiki8m631i4x9rmps89m8iq")))
1781 (synopsis "Hyphenation patterns for Czech")
1782 (description "The package provides hyphenation patterns for Czech in T1/EC
1783 and UTF-8 encodings.")
1784 (license license:gpl2+)))
1786 (define-public texlive-hyphen-danish
1788 (inherit (texlive-hyphen-package
1789 "texlive-hyphen-danish" "da"
1790 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-da.tex")
1792 "1vj8nip64rzcrcg3skm4vqad1ggqwgan74znrdns610wjcm1z9qd")))
1793 (synopsis "Hyphenation patterns for Danish")
1794 (description "The package provides hyphenation patterns for Danish in
1795 T1/EC and UTF-8 encodings.")
1796 ;; Either LPPL 1.3 or later, or Expat
1797 (license (list license:lppl1.3+ license:expat))))
1799 (define-public texlive-hyphen-dutch
1801 (inherit (texlive-hyphen-package
1802 "texlive-hyphen-dutch" "nl"
1803 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex")
1805 "1bg9g790ksq5cn8qihai6pacmkp9vpf35h4771z361nvwa40l8yk")))
1806 (synopsis "Hyphenation patterns for Dutch")
1807 (description "The package provides hyphenation patterns for Dutch in T1/EC
1808 and UTF-8 encodings.")
1809 (license license:lppl1.0+)))
1811 (define-public texlive-hyphen-english
1813 (inherit (texlive-hyphen-package
1814 "texlive-hyphen-english" '("en-gb" "en-us")
1815 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-en-gb.tex"
1816 "/tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex")
1818 "08b3jihjaamcl1pvffi0s47nwavkm66l9mrrmby3l32dfpkprrc5")))
1819 (synopsis "Hyphenation patterns for American and British English")
1820 (description "The package provides additional hyphenation patterns for
1821 American and British English in ASCII encoding.")
1822 (license (license:non-copyleft
1823 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex"
1824 "FSF all permissive license"))))
1826 (define-public texlive-hyphen-esperanto
1828 (inherit (texlive-hyphen-package
1829 "texlive-hyphen-esperanto" "eo"
1830 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eo.tex")
1832 "1503kzn9bk4mm4ba35cka2hm8rz0v3j5l30v5rrsd4rqgpibcgic")))
1833 (synopsis "Hyphenation patterns for Esperanto")
1834 (description "The package provides hyphenation patterns for Esperanto ISO
1835 Latin 3 and UTF-8 encodings.")
1836 (license license:lppl1.0+)))
1838 (define-public texlive-hyphen-estonian
1840 (inherit (texlive-hyphen-package
1841 "texlive-hyphen-estonian" "et"
1842 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-et.tex")
1844 "1rdas2450ib02rwy65i69l86nyc9h15bl07xbbwhmhxfnj8zj4v8")))
1845 (synopsis "Hyphenation patterns for Estonian")
1846 (description "The package provides hyphenation patterns for Estonian in
1847 T1/EC and UTF-8 encodings.")
1848 ;; Dual licensed under either license.
1849 (license (list license:lppl1.3+ license:expat))))
1851 (define-public texlive-hyphen-ethiopic
1852 (let ((template (texlive-hyphen-package
1853 "texlive-hyphen-ethiopic" "mul-ethi"
1854 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mul-ethi.tex")
1856 "1b93fc6j4aybh0pgq23hsn1njm6asf7sfz803fbj3ai0whsxd10l"))))
1859 (synopsis "Hyphenation patterns for Ethiopic scripts")
1860 (description "The package provides hyphenation patterns for languages
1861 written using the Ethiopic script for Unicode engines. They are not supposed
1862 to be linguistically relevant in all cases and should, for proper typography,
1863 be replaced by files tailored to individual languages.")
1864 (license license:expat))))
1866 (define-public texlive-hyphen-finnish
1868 (inherit (texlive-hyphen-package
1869 "texlive-hyphen-finnish" "fi"
1870 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi.tex")
1872 "1pa8sjs9zvnv1y6dma4s60sf9cr4zrvhxwm6i8cnshm84q16w4bc")))
1873 (synopsis "Hyphenation patterns for Finnish")
1874 (description "The package provides hyphenation patterns for Finnish in
1875 T1/EC and UTF-8 encodings.")
1876 (license license:public-domain)))
1878 (define-public texlive-hyphen-schoolfinnish
1880 (inherit (texlive-hyphen-package
1881 "texlive-hyphen-schoolfinnish" "fi-x-school"
1882 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi-x-school.tex")
1884 "1w5n6gaclgifbbnafg32vz3mfaibyldvh4yh1ya3sq9fwfmv035c")))
1885 (synopsis "Hyphenation patterns for Finnish for school")
1886 (description "The package provides hyphenation patterns for Finnish for
1887 school in T1/EC and UTF-8 encodings.")
1888 (license license:public-domain)))
1890 (define-public texlive-hyphen-french
1892 (inherit (texlive-hyphen-package
1893 "texlive-hyphen-french" "fr"
1894 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fr.tex")
1896 "0jc3kqys6cxjw8x8pzjln7z78l8s7f5rlyrkv7dzr1kiwnwilk9d")))
1897 (synopsis "Hyphenation patterns for French")
1898 (description "The package provides hyphenation patterns for French in
1899 T1/EC and UTF-8 encodings.")
1900 (license license:expat)))
1902 (define-public texlive-hyphen-friulan
1904 (inherit (texlive-hyphen-package
1905 "texlive-hyphen-friulan" "fur"
1906 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fur.tex")
1908 "1dlnh8slpf50mryxv7zzbx08xp54zkdfs1j7y37ipwbrajvd740f")))
1909 (synopsis "Hyphenation patterns for Friulan")
1910 (description "The package provides hyphenation patterns for Friulan in
1912 (license license:lppl1.3+)))
1914 (define-public texlive-hyphen-galician
1915 (let ((template (texlive-hyphen-package
1916 "texlive-hyphen-galician" "gl"
1917 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-gl.tex")
1919 "13zx2r3nrxdr025g2lxrph0ga6wf7cs8dxixn4fhbl6xr1cx028g"))))
1922 (synopsis "Hyphenation patterns for Galician")
1923 (description "The package provides hyphenation patterns for Galician in
1924 T1/EC and UTF-8 encodings.")
1925 (license license:lppl1.3))))
1927 (define-public texlive-hyphen-georgian
1929 (inherit (texlive-hyphen-package
1930 "texlive-hyphen-georgian" "ka"
1931 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ka.tex")
1933 "0l0hk7ka04fr8x11nnw95x151cxyycy0fph772m3a3p8qk4x9wp7")))
1934 (synopsis "Hyphenation patterns for Georgian")
1935 (description "The package provides hyphenation patterns for Georgian in
1936 T8M, T8K, and UTF-8 encodings.")
1937 (license license:lppl1.3+)))
1939 (define-public texlive-hyphen-german
1941 (inherit (texlive-hyphen-package
1942 "texlive-hyphen-german" '("de-1901" "de-1996" "de-ch-1901")
1943 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1901.tex"
1944 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1996.tex"
1945 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-ch-1901.tex"
1946 "/tex/generic/dehyph/dehyphn.tex"
1947 "/tex/generic/dehyph/dehypht.tex"
1948 "/tex/generic/dehyph/dehyphtex.tex"
1949 "/tex/generic/dehyph/README")
1951 "17cc5hd0fr3ykpgly9nxaiz4sik3kmfn2wyxz1fkdnqqhl3i41a0")))
1952 (synopsis "Hyphenation patterns for German")
1953 (description "This package provides hyphenation patterns for German in
1954 T1/EC and UTF-8 encodings, for traditional and reformed spelling, including
1956 ;; The patterns are released under the Expat license; the dehyph* files
1957 ;; are released under the LPPL version 1 or later.
1958 (license (list license:expat license:lppl1.0+))))
1960 (define-public texlive-hyphen-greek
1962 (inherit (texlive-hyphen-package
1963 "texlive-hyphen-greek" '("el-monoton" "el-polyton")
1964 (list "/doc/generic/elhyphen/"
1965 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-monoton.tex"
1966 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-polyton.tex"
1967 "/tex/generic/hyphen/grmhyph5.tex"
1968 "/tex/generic/hyphen/grphyph5.tex")
1970 "1qyr6m1nh6d4wj68616cfxv4wjpiy1w2rlldxlx2ajzba381w3hf")))
1971 (synopsis "Hyphenation patterns for Greek")
1972 (description "This package provides hyphenation patterns for Modern Greek
1973 in monotonic and polytonic spelling in LGR and UTF-8 encodings.")
1974 (license license:lppl)))
1976 (define-public texlive-hyphen-hungarian
1978 (inherit (texlive-hyphen-package
1979 "texlive-hyphen-hungarian" "hu"
1980 (list "/doc/generic/huhyphen/"
1981 "/doc/generic/hyph-utf8/languages/hu/"
1982 "/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex")
1984 "006d2290lcsqzh9ljansbaj9k52s17zgkw0kpsspn5l7a8n00zcl")))
1985 (synopsis "Hyphenation patterns for Hungarian")
1986 (description "This package provides hyphenation patterns for Hungarian in
1987 T1/EC and UTF-8 encodings.")
1988 ;; Any of these licenses
1989 (license (list license:gpl2 license:lgpl2.1+ license:mpl1.1))))
1991 (define-public texlive-hyphen-icelandic
1993 (inherit (texlive-hyphen-package
1994 "texlive-hyphen-icelandic" "is"
1995 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-is.tex")
1997 "1m9xj41csj3ldym09d82zjbd3345sg2z10d8pxpvhgibf97mb66h")))
1998 (synopsis "Hyphenation patterns for Icelandic")
1999 (description "This package provides hyphenation patterns for Icelandic in
2000 T1/EC and UTF-8 encodings.")
2001 (license license:lppl1.2+)))
2003 (define-public texlive-hyphen-indic
2005 (inherit (texlive-hyphen-package
2006 "texlive-hyphen-indic"
2007 '("as" "bn" "gu" "hi" "kn" "ml" "mr" "or" "pa" "ta" "te")
2008 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-as.tex"
2009 "/tex/generic/hyph-utf8/patterns/tex/hyph-bn.tex"
2010 "/tex/generic/hyph-utf8/patterns/tex/hyph-gu.tex"
2011 "/tex/generic/hyph-utf8/patterns/tex/hyph-hi.tex"
2012 "/tex/generic/hyph-utf8/patterns/tex/hyph-kn.tex"
2013 "/tex/generic/hyph-utf8/patterns/tex/hyph-ml.tex"
2014 "/tex/generic/hyph-utf8/patterns/tex/hyph-mr.tex"
2015 "/tex/generic/hyph-utf8/patterns/tex/hyph-or.tex"
2016 "/tex/generic/hyph-utf8/patterns/tex/hyph-pa.tex"
2017 "/tex/generic/hyph-utf8/patterns/tex/hyph-ta.tex"
2018 "/tex/generic/hyph-utf8/patterns/tex/hyph-te.tex")
2020 "02d2kcd3lpk95fykjwhzw9s2a1s2w1skz8h2mmszrz979d1xzhpm")))
2021 (synopsis "Indic hyphenation patterns")
2022 (description "This package provides hyphenation patterns for Assamese,
2023 Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Panjabi, Tamil
2024 and Telugu for Unicode engines.")
2025 (license license:expat)))
2027 (define-public texlive-hyphen-indonesian
2029 (inherit (texlive-hyphen-package
2030 "texlive-hyphen-indonesian" "id"
2031 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-id.tex")
2033 "1r62w02rf0i4z0jgij54d16qjbj0zyfwm9dwdkqka76jrivij83q")))
2034 (synopsis "Indonesian hyphenation patterns")
2035 (description "This package provides hyphenation patterns for
2036 Indonesian (Bahasa Indonesia) in ASCII encoding. They are probably also
2037 usable for Malay (Bahasa Melayu).")
2038 (license license:gpl2)))
2040 (define-public texlive-hyphen-interlingua
2042 (inherit (texlive-hyphen-package
2043 "texlive-hyphen-interlingua" "ia"
2044 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ia.tex")
2046 "0a9na20vjnzhgjbicaxay0jk4rm5zg1rjyiswr377mjhd9mx5cg3")))
2047 (synopsis "Interlingua hyphenation patterns")
2048 (description "This package provides hyphenation patterns for Interlingua
2049 in ASCII encoding.")
2050 (license license:lppl1.3+)))
2052 (define-public texlive-hyphen-irish
2054 (inherit (texlive-hyphen-package
2055 "texlive-hyphen-irish" "ga"
2056 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ga.tex")
2058 "1h1l9jzkpsb91nyhz6s6c9jfrbz8jx5ip8vyq3dkz0rl6g960i6b")))
2059 (synopsis "Irish hyphenation patterns")
2060 (description "This package provides hyphenation patterns for
2061 Irish (Gaeilge) in T1/EC and UTF-8 encodings.")
2062 ;; Either of these licenses
2063 (license (list license:gpl2+ license:expat))))
2065 (define-public texlive-hyphen-italian
2067 (inherit (texlive-hyphen-package
2068 "texlive-hyphen-italian" "it"
2069 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-it.tex")
2071 "03c7jiqslfxvl3gbdx79hggbvrfi2l4z2bnwxc0na8f8lkp1m787")))
2072 (synopsis "Italian hyphenation patterns")
2073 (description "This package provides hyphenation patterns for Italian in
2074 ASCII encoding. Compliant with the Recommendation UNI 6461 on hyphenation
2075 issued by the Italian Standards Institution (Ente Nazionale di Unificazione
2077 (license license:lppl1.3+)))
2079 (define-public texlive-hyphen-kurmanji
2081 (inherit (texlive-hyphen-package
2082 "texlive-hyphen-kurmanji" "kmr"
2083 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-kmr.tex")
2085 "01ylbsi5wymrdrxr9b28nmjmcj72mdhqr657lwsb6m9aj33c9ql6")))
2086 (synopsis "Kurmanji hyphenation patterns")
2087 (description "This package provides hyphenation patterns for
2088 Kurmanji (Northern Kurdish) as spoken in Turkey and by the Kurdish diaspora in
2089 Europe, in T1/EC and UTF-8 encodings.")
2090 (license license:lppl1.3)))
2092 (define-public texlive-hyphen-latin
2094 (inherit (texlive-hyphen-package
2095 "texlive-hyphen-latin" '("la-x-classic" "la-x-liturgic" "la")
2096 '("/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex"
2097 "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-liturgic.tex"
2098 "/tex/generic/hyph-utf8/patterns/tex/hyph-la.tex"
2099 "/tex/generic/hyph-utf8/patterns/tex-8bit/hyph-la-x-classic.ec.tex")
2101 "119rf6sk1f639ky6zr9njn21nsxzgfmjci94y26745qs8w08ilkl")))
2102 (synopsis "Liturgical Latin hyphenation patterns")
2103 (description "This package provides hyphenation patterns for Latin in
2104 T1/EC and UTF-8 encodings, mainly in modern spelling (u when u is needed and v
2105 when v is needed), medieval spelling with the ligatures @code{\\ae} and
2106 @code{\\oe} and the (uncial) lowercase 'v' written as a 'u' is also supported.
2107 Apparently there is no conflict between the patterns of modern Latin and those
2108 of medieval Latin. It also includes hyphenation patterns for the Classical
2109 Latin in T1/EC and UTF-8 encodings. Classical Latin hyphenation patterns are
2110 different from those of 'plain' Latin, the latter being more adapted to modern
2111 Latin. It also provides hyphenation patterns for the Liturgical Latin in
2112 T1/EC and UTF-8 encodings.")
2113 ;; Either of these licenses
2114 (license (list license:lppl1.0+ license:expat))))
2116 (define-public texlive-hyphen-latvian
2118 (inherit (texlive-hyphen-package
2119 "texlive-hyphen-latvian" "lv"
2120 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lv.tex")
2122 "00jf8xma4ldz0zpqwma97k9q3j0mqx7qdj6b7baph3n5xgc24aaw")))
2123 (synopsis "Latvian hyphenation patterns")
2124 (description "This package provides hyphenation patterns for Latvian in
2125 L7X and UTF-8 encodings.")
2126 ;; Either of these licenses.
2127 (license (list license:gpl2 license:lgpl2.1))))
2129 (define-public texlive-hyphen-lithuanian
2131 (inherit (texlive-hyphen-package
2132 "texlive-hyphen-lithuanian" "lt"
2133 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lt.tex")
2135 "1kfq7j2ajg6nj952s1ygd520sj9z9kl0bqvd291a36ni2b1frzgd")))
2136 (synopsis "Lithuanian hyphenation patterns")
2137 (description "This package provides hyphenation patterns for Lithuanian in
2138 L7X and UTF-8 encodings.")
2139 ;; "Do ... whatever ... as long as you respect the copyright"; as part of
2140 ;; the hyph-utf8 package we choose the LPPL license.
2141 (license license:lppl)))
2143 (define-public texlive-hyphen-macedonian
2145 (inherit (texlive-hyphen-package
2146 "texlive-hyphen-macedonian" "mk"
2147 '("/tex/generic/hyph-utf8/patterns/tex/hyph-mk.tex"
2148 "/tex/generic/hyph-utf8/patterns/tex-8bit/hyph-mk.macedonian.tex")
2150 "1fv6y8gpic5ciw8cclfxc8h3wr5xir1j0a7shixja1pmdyz7db2b")))
2151 (synopsis "Macedonian hyphenation patterns")
2152 (description "This package provides hyphenation patterns for Macedonian.")
2153 ;; XXX: License just says 'GPL'. Assume GPL2 since the file predates GPL3.
2154 (license license:gpl2+)))
2156 (define-public texlive-hyphen-mongolian
2158 (inherit (texlive-hyphen-package
2159 "texlive-hyphen-mongolian" '("mn-cyrl-x-lmc" "mn-cyrl")
2160 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl-x-lmc.tex"
2161 "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl.tex")
2163 "1y1b91ihrdl9bad3rxlsfjpd9wmyd5zzgci3qv9w8qqk33jxhwya")))
2164 (synopsis "Mongolian hyphenation patterns in Cyrillic script")
2165 (description "This package provides hyphenation patterns for Mongolian in
2166 T2A, LMC and UTF-8 encodings.")
2167 ;; Either of these licenses
2168 (license (list license:lppl1.3+ license:expat))))
2170 (define-public texlive-hyphen-norwegian
2172 (inherit (texlive-hyphen-package
2173 "texlive-hyphen-norwegian" '("nb" "nn" "no")
2174 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nb.tex"
2175 "/tex/generic/hyph-utf8/patterns/tex/hyph-nn.tex"
2176 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex")
2178 "08gbwj64p4fckm199k52yp5lx65h9f4wwdkvl4pv4aa7k370jq9y")))
2179 (synopsis "Norwegian Bokmal and Nynorsk hyphenation patterns")
2180 (description "This package provides hyphenation patterns for Norwegian
2181 Bokmal and Nynorsk in T1/EC and UTF-8 encodings.")
2182 (license (license:non-copyleft
2183 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex"
2184 "FSF All permissive license"))))
2186 (define-public texlive-hyphen-occitan
2188 (inherit (texlive-hyphen-package
2189 "texlive-hyphen-occitan" "oc"
2190 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-oc.tex")
2192 "0vhjbq2nr58vhqwwky3cwx4dqiwjmmfwp81rb65mfpf0m8yypdfg")))
2193 (synopsis "Occitan hyphenation patterns")
2194 (description "This package provides hyphenation patterns for Occitan in
2195 T1/EC and UTF-8 encodings. They are supposed to be valid for all the Occitan
2196 variants spoken and written in the wide area called 'Occitanie' by the French.
2197 It ranges from the Val d'Aran within Catalunya, to the South Western Italian
2198 Alps encompassing the southern half of the French pentagon.")
2199 (license license:lppl1.0+)))
2201 (define-public texlive-hyphen-pali
2203 (inherit (texlive-hyphen-package
2204 "texlive-hyphen-pali" "pi"
2205 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pi.tex")
2207 "1fak853s4ijdqgrnhwymaq1lh8jab3qfyxapdmf6qpg6bqd20kxq")))
2208 (synopsis "Panjabi hyphenation patterns")
2209 (description "This package provides hyphenation patterns for Panjabi in
2211 ;; Can be used with either license.
2212 (license (list license:expat license:lgpl3+ license:gpl3+))))
2214 (define-public texlive-hyphen-piedmontese
2216 (inherit (texlive-hyphen-package
2217 "texlive-hyphen-piedmontese" "pms"
2218 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pms.tex")
2220 "0xva3l2gwzkqw1sz64k5g5iprhdyr27w1mv8rxp8x62i5y3aqr1k")))
2221 (synopsis "Piedmontese hyphenation patterns")
2222 (description "This package provides hyphenation patterns for Piedmontese
2223 in ASCII encoding. Compliant with 'Gramatica dla lengua piemonteisa' by
2225 (license license:lppl1.3+)))
2227 (define-public texlive-hyphen-polish
2229 (inherit (texlive-hyphen-package
2230 "texlive-hyphen-polish" "pl"
2231 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex")
2233 "1c22g99isxapv4xjrmsw24hhp1xb83wbgcxyd8j24mxdnizywxzm")))
2234 (synopsis "Polish hyphenation patterns")
2235 (description "This package provides hyphenation patterns for Polish in QX
2236 and UTF-8 encodings.")
2237 ;; No differing license declared, so we choose the project license.
2238 (license license:lppl)))
2240 (define-public texlive-hyphen-portuguese
2242 (inherit (texlive-hyphen-package
2243 "texlive-hyphen-portuguese" "pt"
2244 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pt.tex")
2246 "00rkjy4p7893zs940bq3s4hp7al0skgxqggj5qfax0bx8karf30b")))
2247 (synopsis "Portuguese hyphenation patterns")
2248 (description "This package provides hyphenation patterns for Portuguese in
2249 T1/EC and UTF-8 encodings.")
2250 (license license:bsd-3)))
2252 (define-public texlive-hyphen-romanian
2254 (inherit (texlive-hyphen-package
2255 "texlive-hyphen-romanian" "ro"
2256 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ro.tex")
2258 "1ykb5v7ip6p3n34wq8qypfyrap4gg946by5rsl6ab0k5gv6ypsbf")))
2259 (synopsis "Romanian hyphenation patterns")
2260 (description "This package provides hyphenation patterns for Romanian in
2261 T1/EC and UTF-8 encodings.")
2262 ;; No differing license declared, so we choose the project license.
2263 (license license:lppl)))
2265 (define-public texlive-hyphen-romansh
2267 (inherit (texlive-hyphen-package
2268 "texlive-hyphen-romansh" "rm"
2269 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex")
2271 "0a1q9p6sp5n6a9w6xhwk03vmkrrmnh2md7g1k4qhnf0dc4h7dy9r")))
2272 (synopsis "Romansh hyphenation patterns")
2273 (description "This package provides hyphenation patterns for Romansh in
2274 ASCII encodings. They are supposed to comply with the rules indicated by the
2275 Lia Rumantscha (Romansh language society).")
2276 (license license:lppl1.3+)))
2278 (define-public texlive-hyphen-russian
2280 (inherit (texlive-hyphen-package
2281 "texlive-hyphen-russian" "ru"
2282 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex")
2284 "00sy7qh5f8ryxw36fwbyd1yi2hxhv7hmk99yp7dwh73n4mxv6lpl")))
2285 (synopsis "Russian hyphenation patterns")
2286 (description "This package provides hyphenation patterns for Russian in
2287 T2A and UTF-8 encodings.")
2288 (license license:lppl1.2+)))
2290 (define-public texlive-hyphen-sanskrit
2292 (inherit (texlive-hyphen-package
2293 "texlive-hyphen-sanskrit" "sa"
2294 (list "/doc/generic/hyph-utf8/languages/sa/hyphenmin.txt"
2295 "/tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex")
2297 "1bkzj8swj4lbswf1vr4pb1jg6dixzs7p8h8zm8s8as52h442aida")))
2298 (synopsis "Sanskrit hyphenation patterns")
2299 (description "This package provides hyphenation patterns for Sanskrit and
2300 Prakrit in longdesc transliteration, and in Devanagari, Bengali, Kannada,
2301 Malayalam longdesc and Telugu scripts for Unicode engines.")
2302 ;; "You may freely use, copy, modify and/or distribute this file."
2303 (license (license:non-copyleft
2304 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex"))))
2306 (define-public texlive-hyphen-serbian
2308 (inherit (texlive-hyphen-package
2309 "texlive-hyphen-serbian" '("sh-cyrl" "sh-latn" "sr-cyrl")
2310 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-cyrl.tex"
2311 "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-latn.tex"
2312 "/tex/generic/hyph-utf8/patterns/tex/hyph-sr-cyrl.tex")
2314 "0pwc9z0m5y6acq1vqm0da9akg156jbhxzvsfp2f8bsz5b99y5z45")))
2315 (synopsis "Serbian hyphenation patterns")
2316 (description "This package provides hyphenation patterns for Serbian in
2317 T1/EC, T2A and UTF-8 encodings.")
2318 ;; Any version of the GPL.
2319 (license license:gpl3+)))
2321 (define-public texlive-hyphen-slovak
2323 (inherit (texlive-hyphen-package
2324 "texlive-hyphen-slovak" "sk"
2325 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex")
2327 "0ppp53bbclp5c8wvx748krvrp5y5053khgkjnnv966a90fvp3vgd")))
2328 (synopsis "Slovak hyphenation patterns")
2329 (description "This package provides hyphenation patterns for Slovak in
2330 T1/EC and UTF-8 encodings.")
2331 (license license:gpl2+)))
2333 (define-public texlive-hyphen-slovenian
2335 (inherit (texlive-hyphen-package
2336 "texlive-hyphen-slovenian" "sl"
2337 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sl.tex")
2339 "02n8l9yf4hqyhbpsc1n6b2mggy09z6lq4dcb8ndiwawb6h0mp7s4")))
2340 (synopsis "Slovenian hyphenation patterns")
2341 (description "This package provides hyphenation patterns for Slovenian in
2342 T1/EC and UTF-8 encodings.")
2344 (license (list license:lppl1.0+ license:expat))))
2346 (define-public texlive-hyphen-spanish
2348 ;; The source files "eshyph-make.lua" and "eshyph.src" are provided to
2349 ;; generate obsolete hyphenation patterns, which aren't included in a
2350 ;; default TeX Live distribution, so we don't include them either.
2351 (inherit (texlive-hyphen-package
2352 "texlive-hyphen-spanish" "es"
2353 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-es.tex")
2355 "05lbvjkj304xxghyihk8js0kmg97ddlgijld3bp81bc28h4cav0v")))
2356 (synopsis "Hyphenation patterns for Spanish")
2357 (description "The package provides hyphenation patterns for Spanish in
2358 T1/EC and UTF-8 encodings.")
2359 (license license:expat)))
2361 (define-public texlive-hyphen-swedish
2363 (inherit (texlive-hyphen-package
2364 "texlive-hyphen-swedish" "sv"
2365 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sv.tex")
2367 "1n7incy7n24pix1q2i8c3h7i78zpql5ayhskavlmy6mhd7ayncaw")))
2368 (synopsis "Swedish hyphenation patterns")
2369 (description "This package provides hyphenation patterns for Swedish in
2370 T1/EC and UTF-8 encodings.")
2371 (license license:lppl1.2+)))
2373 (define-public texlive-hyphen-thai
2375 (inherit (texlive-hyphen-package
2376 "texlive-hyphen-thai" "th"
2377 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-th.tex")
2379 "00gxcs4jfqifd5cnrjipn77m73fmpw2qms4lp216jj3kz4a7h9kf")))
2380 (synopsis "Thai hyphenation patterns")
2381 (description "This package provides hyphenation patterns for Thai in LTH
2382 and UTF-8 encodings.")
2383 (license license:lppl1.3+)))
2385 (define-public texlive-hyphen-turkish
2386 (let ((template (texlive-hyphen-package
2387 "texlive-hyphen-turkish" "tr"
2388 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-tr.tex")
2390 "04sihjgpm31i5bi67rrfp15w3imn7hxwwk70v0vhx053ghxy72vh"))))
2393 (synopsis "Hyphenation patterns for Turkish")
2394 (description "The package provides hyphenation patterns for Turkish in
2395 T1/EC and UTF-8 encodings. The patterns for Turkish were first produced for
2396 the Ottoman Texts Project in 1987 and were suitable for both Modern Turkish
2397 and Ottoman Turkish in Latin script, however the required character set didn't
2398 fit into EC encoding, so support for Ottoman Turkish had to be dropped to keep
2399 compatibility with 8-bit engines.")
2400 (license license:lppl1.0+))))
2402 (define-public texlive-hyphen-turkmen
2403 (let ((template (texlive-hyphen-package
2404 "texlive-hyphen-turkmen" "tk"
2405 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-tk.tex")
2407 "0g5ip2lw9g47s61mv3cypswc6qm7zy9c4iqq4h19ysvds81adzkr"))))
2410 (synopsis "Hyphenation patterns for Turkmen")
2411 (description "The package provides hyphenation patterns for Turkmen in
2412 T1/EC and UTF-8 encodings.")
2413 (license license:expat))))
2415 (define-public texlive-hyphen-ukrainian
2417 (inherit (texlive-hyphen-package
2418 "texlive-hyphen-ukrainian" "uk"
2419 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-uk.tex")
2421 "0fbfhx1fmbshxr4ihsjaqgx251h69h7i288p8gh3w6ysgxr53p60")))
2422 (synopsis "Ukrainian hyphenation patterns")
2423 (description "This package provides hyphenation patterns for Ukrainian in
2424 T2A and UTF-8 encodings.")
2425 ;; No version specified
2426 (license license:lppl)))
2428 (define-public texlive-hyphen-uppersorbian
2430 (inherit (texlive-hyphen-package
2431 "texlive-hyphen-uppersorbian" "hsb"
2432 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hsb.tex")
2434 "0x0051wph3sqmzzw6prvjy6bp7gn02rbmys1bmbc210jk3pkylfj")))
2435 (synopsis "Upper Sorbian hyphenation patterns")
2436 (description "This package provides hyphenation patterns for Upper Sorbian
2437 in T1/EC and UTF-8 encodings.")
2438 (license license:lppl1.3a+)))
2440 (define-public texlive-hyphen-welsh
2442 (inherit (texlive-hyphen-package
2443 "texlive-hyphen-welsh" "cy"
2444 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cy.tex")
2446 "1bpxp3jiifdw7waw2idz5j9xgi3526nkxm8mbmsspr4mlf2xyr76")))
2447 (synopsis "Welsh hyphenation patterns")
2448 (description "This package provides hyphenation patterns for Welsh in
2449 T1/EC and UTF-8 encodings.")
2451 (license (list license:lppl1.0+ license:expat))))
2453 (define-public texlive-hyph-utf8
2455 (inherit (simple-texlive-package
2457 (list "/source/generic/hyph-utf8/"
2458 "/source/luatex/hyph-utf8/"
2459 "/doc/luatex/hyph-utf8/"
2460 "/tex/luatex/hyph-utf8/etex.src"
2461 ;; Used to extract luatex-hyphen.lua
2462 "/tex/latex/base/docstrip.tex"
2464 ;; Documentation; we can't use the whole directory because
2465 ;; it includes files from other packages.
2466 "/doc/generic/hyph-utf8/CHANGES"
2467 "/doc/generic/hyph-utf8/HISTORY"
2468 "/doc/generic/hyph-utf8/hyph-utf8.pdf"
2469 "/doc/generic/hyph-utf8/hyph-utf8.tex"
2470 "/doc/generic/hyph-utf8/hyphenation-distribution.pdf"
2471 "/doc/generic/hyph-utf8/hyphenation-distribution.tex"
2472 "/doc/generic/hyph-utf8/img/miktex-languages.png"
2473 "/doc/generic/hyph-utf8/img/texlive-collection.png")
2475 "0rgp0zn36gwzqwpmjb9h01ns3m19v3r7lpw1h0pc9bx115w6c9jx")))
2476 (outputs '("out" "doc"))
2477 (build-system gnu-build-system)
2479 `(#:tests? #f ; there are none
2480 #:modules ((guix build gnu-build-system)
2484 (list "-C" "source/luatex/hyph-utf8/"
2485 (string-append "DO_TEX = tex --interaction=nonstopmode '&tex' $<")
2486 (string-append "RUNDIR =" (assoc-ref %outputs "out") "/share/texmf-dist/tex/luatex/hyph-utf8/")
2487 (string-append "DOCDIR =" (assoc-ref %outputs "doc") "/share/texmf-dist/doc/luatex/hyph-utf8/")
2488 ;; hyphen.cfg is neither included nor generated, so let's only build the lua file.
2489 (string-append "UNPACKED = $(NAME).lua"))
2491 (modify-phases %standard-phases
2492 ;; TeX isn't usable at this point, so we first need to generate the
2495 (lambda* (#:key inputs outputs #:allow-other-keys)
2496 ;; Target directories must exist.
2497 (mkdir-p (string-append (assoc-ref %outputs "out")
2498 "/share/texmf-dist/tex/luatex/hyph-utf8/"))
2499 (mkdir-p (string-append (assoc-ref %outputs "doc")
2500 "/share/texmf-dist/doc/luatex/hyph-utf8/"))
2502 ;; We cannot build the documentation because that requires a
2503 ;; fully functional pdflatex, which depends on this package.
2504 (substitute* "source/luatex/hyph-utf8/Makefile"
2505 (("all: .*") "all: $(RUNFILES)\n"))
2507 ;; Find required fonts for building tex.fmt
2509 (string-append (assoc-ref inputs "texlive-cm")
2510 "/share/texmf-dist/fonts/tfm/public/cm:"
2511 (assoc-ref inputs "texlive-knuth-lib")
2512 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
2513 ;; ...and find all tex files in this environment.
2518 (map (match-lambda ((_ . dir) dir)) inputs)
2521 ;; Generate tex.fmt.
2522 (let ((where "source/luatex/hyph-utf8"))
2524 (with-directory-excursion where
2525 (invoke "tex" "-ini"
2526 (string-append (assoc-ref inputs "texlive-tex-plain")
2527 "/share/texmf-dist/tex/plain/config/tex.ini"))))))
2528 (add-before 'build 'build-loaders-and-converters
2529 (lambda* (#:key outputs #:allow-other-keys)
2530 (let* ((root (string-append (assoc-ref outputs "out")
2531 "/share/texmf-dist"))
2534 "/tex/generic/hyph-utf8/conversions")))
2538 (with-directory-excursion "source/generic/hyph-utf8"
2539 (substitute* "generate-converters.rb"
2540 (("\\$path_root=File.*")
2541 (string-append "$path_root=\"" root "\"\n"))
2542 ;; Avoid error with newer Ruby.
2543 (("#1\\{%") "#1{%%"))
2544 (invoke "ruby" "generate-converters.rb"))
2547 (lambda* (#:key source outputs #:allow-other-keys)
2548 (let ((doc (assoc-ref outputs "doc"))
2549 (out (assoc-ref outputs "out")))
2552 (string-append source "/doc")
2553 (string-append doc "/doc"))
2555 (string-append source "/tex/luatex/hyph-utf8/etex.src")
2556 (string-append out "/share/texmf-dist/tex/luatex/hyph-utf8/")))
2561 ;; The following packages are needed for build "tex.fmt", which we need
2562 ;; for a working "tex".
2566 texlive-hyphen-base))
2567 (home-page "https://ctan.org/pkg/hyph-utf8")
2568 (synopsis "Hyphenation patterns expressed in UTF-8")
2569 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
2570 hyphenation patterns in UTF-8 format, whereas older systems require
2571 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
2572 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
2573 etc). The present package offers a collection of conversions of existing
2574 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
2575 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
2576 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
2577 converters, will completely supplant the older patterns.")
2578 ;; Individual files each have their own license. Most of these files are
2579 ;; independent hyphenation patterns.
2580 (license (list license:lppl1.0+
2595 license:public-domain
2598 (define-deprecated-package texlive-generic-hyph-utf8 texlive-hyph-utf8)
2600 (define-public texlive-dehyph-exptl
2602 (inherit (simple-texlive-package
2603 "texlive-dehyph-exptl"
2604 (list "/tex/generic/dehyph-exptl/"
2605 "/doc/generic/dehyph-exptl/")
2607 "0l57a0r4gycp94kz6lrxqvh9m57j2shmbr2laf5zjb0qnrisq46d")
2610 (list texlive-hyphen-base texlive-hyph-utf8))
2611 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
2612 (synopsis "Hyphenation patterns for German")
2613 (description "The package provides experimental hyphenation patterns for
2614 the German language, covering both traditional and reformed orthography. The
2615 patterns can be used with packages Babel and hyphsubst from the Oberdiek
2617 ;; Hyphenation patterns are under the Expat license; documentation is
2619 (license (list license:expat license:lppl))))
2621 (define-deprecated-package texlive-generic-dehyph-exptl texlive-dehyph-exptl)
2623 (define-public texlive-ukrhyph
2625 (inherit (simple-texlive-package
2627 (list "/doc/generic/ukrhyph/"
2628 "/tex/generic/ukrhyph/")
2630 "01ma274sixcrbpb7fpqkxwfvrnzfj2srv9b4a42rfnph1pdql74z")
2632 (home-page "https://www.ctan.org/pkg/ukrhyph")
2633 (synopsis "Hyphenation patterns for Ukrainian")
2634 (description "The package provides a range of hyphenation patterns for
2635 Ukrainian, depending on the encoding of the output font including the standard
2637 (license license:lppl)))
2639 (define-public texlive-ruhyphen
2640 (let ((template (simple-texlive-package
2642 (list "/source/generic/ruhyphen/"
2643 "/tex/generic/ruhyphen/")
2645 "18n1bqhh8jv765vz3a3fjwffy7m71vhwx9yq8zl0p5j7p72q9qcn")
2650 (substitute-keyword-arguments (package-arguments template)
2652 `(modify-phases ,phases
2655 (let ((cwd (getcwd)))
2656 ;; Remove generated files.
2657 (for-each delete-file
2658 (find-files "tex/generic/ruhyphen/"
2660 (substitute* "source/generic/ruhyphen/Makefile"
2661 (("./mkcyryo") (string-append cwd "/source/generic/ruhyphen/mkcyryo")))
2662 (with-directory-excursion "tex/generic/ruhyphen"
2664 (string-append cwd "/source/generic/ruhyphen/Makefile"))))))))))
2666 (list coreutils gawk sed grep perl))
2667 (home-page "https://www.ctan.org/pkg/ruhyphen")
2668 (synopsis "Hyphenation patterns for Russian")
2669 (description "The package provides a collection of Russian hyphenation
2670 patterns supporting a number of Cyrillic font encodings, including T2,
2671 UCY (Omega Unicode Cyrillic), LCY, LWN (OT2), and koi8-r.")
2672 (license license:lppl))))
2674 (define-public texlive-inputenx
2676 (inherit (simple-texlive-package
2678 (list "doc/latex/inputenx/"
2679 "tex/latex/inputenx/"
2680 "source/latex/inputenx/")
2682 "0snjndrcynm4w8m9iq8gmadzhrbwvsdy4y1ak24ia0hpsicdi4aj")
2684 (home-page "https://ctan.org/macros/latex/contrib/inputenx")
2685 (synopsis "Enhanced input encoding handling")
2687 "This package deals with input encodings. It provides a wider range of input
2688 encodings using standard mappings, than does inputenc; it also covers nearly all
2689 slots. In this way, it serves as more uptodate replacement for package
2691 (license license:lppl1.3+)))
2693 (define-public texlive-kpathsea
2694 (let ((template (simple-texlive-package
2696 (list "/web2c/amiga-pl.tcx"
2697 "/web2c/cp1250cs.tcx"
2698 "/web2c/cp1250pl.tcx"
2699 "/web2c/cp1250t1.tcx"
2701 "/web2c/cp852-cs.tcx"
2702 "/web2c/cp852-pl.tcx"
2705 "/web2c/fmtutil.cnf"
2712 "/web2c/macce-pl.tcx"
2713 "/web2c/macce-t1.tcx"
2718 "/web2c/mktexdir.opt"
2720 "/web2c/mktexnam.opt"
2722 "/web2c/natural.tcx"
2723 "/web2c/tcvn-t5.tcx"
2724 "/web2c/viscii-t5.tcx")
2726 "00q2nny7lw7jxyln6ch4h0alygbrzk8yynliyc291m53kds1h0mr")
2731 (substitute-keyword-arguments (package-arguments template)
2732 ((#:phases phases '%standard-phases)
2733 `(modify-phases ,phases
2734 (add-after 'unpack 'patch-references
2735 (lambda* (#:key inputs #:allow-other-keys)
2736 (let ((dirs (map dirname (list (which "sed")
2738 (substitute* '("web2c/mktexdir"
2742 (format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
2746 (home-page "https://www.tug.org/texlive/")
2747 (synopsis "Files related to the path searching library for TeX")
2748 (description "Kpathsea is a library and utility programs which provide
2749 path searching facilities for TeX file types, including the self-locating
2750 feature required for movable installations, layered on top of a general search
2751 mechanism. This package provides supporting files.")
2752 (license license:lgpl3+))))
2754 (define-public texlive-kpfonts
2756 (inherit (simple-texlive-package
2758 (list "doc/fonts/kpfonts/"
2759 "fonts/enc/dvips/kpfonts/"
2760 "fonts/map/dvips/kpfonts/"
2761 "fonts/tfm/public/kpfonts/"
2762 "fonts/type1/public/kpfonts/"
2763 "fonts/vf/public/kpfonts/"
2764 "source/fonts/kpfonts/"
2765 "tex/latex/kpfonts/")
2766 (base32 "0inai1p9bbjd5x790nsamakjaj0imvwv21mp9f98dwvdlj58vkqb")
2768 (home-page "https://ctan.org/fonts/kpfonts")
2769 (synopsis "Complete set of fonts for text and mathematics")
2771 "The family contains text fonts in roman, sans-serif and monospaced
2772 shapes, with true small caps and old-style numbers; the package offers full
2773 support of the textcomp package. The mathematics fonts include all the AMS
2774 fonts, in both normal and bold weights. Each of the font types is available
2775 in two main versions: default and light. Each version is available in four
2776 variants: default; oldstyle numbers; oldstyle numbers with old ligatures such
2777 as ct and st, and long-tailed capital Q; and veryoldstyle with long s. Other
2778 variants include small caps as default or large small caps, and for
2779 mathematics both upright and slanted shapes for Greek letters, as well as
2780 default and narrow versions of multiple integrals.")
2781 (license license:gpl3+)))
2783 (define-public texlive-latexconfig
2785 (inherit (simple-texlive-package
2786 "texlive-latexconfig"
2787 (list "/tex/latex/latexconfig/")
2789 "10ynmd8b9b9l1wl1mva23yz4zir53p6r5z31s39wmxz19pj12qvx")
2791 (home-page "https://www.tug.org/")
2792 (synopsis "Configuration files for LaTeX-related formats")
2793 (description "The package provides configuration files for LaTeX-related
2795 (license license:lppl)))
2797 (define-public texlive-latex-base
2798 (let ((template (simple-texlive-package
2799 "texlive-latex-base"
2800 (list "/doc/latex/base/"
2801 "/source/latex/base/"
2802 ;; Almost all files in /tex/latex/base are generated, but
2804 "/tex/latex/base/idx.tex"
2805 "/tex/latex/base/lablst.tex"
2806 "/tex/latex/base/ltnews.cls"
2807 "/tex/latex/base/ltxcheck.tex"
2808 "/tex/latex/base/ltxguide.cls"
2809 "/tex/latex/base/minimal.cls"
2810 "/tex/latex/base/sample2e.tex"
2811 "/tex/latex/base/small2e.tex"
2812 "/tex/latex/base/testpage.tex"
2813 "/tex/latex/base/texsys.cfg")
2815 "0msyjz0937rc7hs77v6la152sdiwd73qj41z1mlyh0m3dns9qz4g")
2820 (substitute-keyword-arguments (package-arguments template)
2821 ((#:modules modules '())
2822 '((guix build gnu-build-system)
2827 `(modify-phases ,phases
2828 ;; The literal tab in the dtx file is translated to the string
2829 ;; "^^I" in the generated Lua file, which causes a syntax error.
2830 (add-after 'unpack 'fix-lua-sources
2832 (substitute* "source/latex/base/ltluatex.dtx"
2835 (lambda* (#:key inputs #:allow-other-keys)
2836 ;; Find required fonts
2842 (assoc-ref inputs pkg-name)
2843 "/share/texmf-dist/fonts/tfm/public"
2845 '(("texlive-etex" . "/etex")
2846 ("texlive-cm" . "/cm")
2847 ("texlive-fonts-latex" . "/latex-fonts")
2848 ("texlive-knuth-lib" . "/knuth-lib")))
2850 (let ((cwd (getcwd)))
2854 cwd "/source/latex/base//:"
2857 (map (match-lambda ((_ . dir) dir)) inputs)
2859 (setenv "LUAINPUTS" (string-append cwd "/build:")))
2861 ;; This is the actual build step.
2863 (invoke "tex" "-ini" "-interaction=scrollmode"
2864 "-output-directory=build" "unpack.ins")
2866 ;; XXX: We can't build all formats at this point, nor are they
2867 ;; part of the LaTeX base, so we disable them. Actually, we
2868 ;; should be running this all in a profile hook, so that only
2869 ;; selected formats and hyphenation patterns are included, but it
2870 ;; takes long and TeX Live isn't designed to be modular like
2871 ;; that. Everything operates on a shared directory, which we
2872 ;; would only have at profile generation time.
2873 (let ((disabled-formats
2874 '("aleph aleph" "lamed aleph" "uptex uptex" "euptex euptex"
2875 "eptex eptex" "ptex ptex" "pdfxmltex pdftex" "platex eptex"
2876 "platex-dev eptex" "uplatex-dev euptex"
2877 "csplain pdftex" "mf mf-nowin" "mex pdftex" "pdfmex pdftex"
2878 "luacsplain luatex" "optex luatex"
2879 ;; LuaJIT is not ported to powerpc64le* or riscv64 yet and
2880 ;; building these fail on powerpc.
2881 ,@(if (or (target-powerpc?)
2883 '("luajittex" "luajithbtex" "mfluajit") '())
2884 "cont-en xetex" "cont-en pdftex" "pdfcsplain xetex"
2885 "pdfcsplain pdftex" "pdfcsplain luatex" "cslatex pdftex"
2886 "mptopdf pdftex" "uplatex euptex" "jadetex pdftex"
2887 "amstex pdftex" "pdfcslatex pdftex" "lollipop tex"
2888 "xmltex pdftex" "pdfjadetex pdftex" "eplain pdftex"
2889 "texsis pdftex" "mltex pdftex" "utf8mex pdftex")))
2891 (install-file (string-append
2892 (assoc-ref inputs "texlive-kpathsea")
2893 "/share/texmf-dist/web2c/fmtutil.cnf")
2895 (make-file-writable "web2c/fmtutil.cnf")
2896 (substitute* "web2c/fmtutil.cnf"
2897 (((string-append "^(" (string-join disabled-formats "|") ")") m)
2898 (string-append "#! " m))
2899 (("translate-file=cp227")
2900 (format #f "translate-file=~a/share/texmf-dist/web2c/cp227"
2901 (assoc-ref inputs "texlive-kpathsea")))))
2902 (invoke "fmtutil-sys" "--all"
2904 (string-append "--cnffile=web2c/fmtutil.cnf"))
2905 ;; We don't actually want to install it.
2906 (delete-file "web2c/fmtutil.cnf")))
2907 (add-after 'install 'install-more
2908 (lambda* (#:key inputs outputs #:allow-other-keys)
2909 (let* ((out (assoc-ref outputs "out"))
2910 (root (string-append out "/share/texmf-dist"))
2911 (target (string-append root "/tex/latex/base"))
2912 (web2c (string-append root "/web2c"))
2913 (makeindex (string-append root "/makeindex/latex")))
2914 (for-each delete-file (find-files "." "\\.(log|aux)$"))
2916 ;; The usedir directive in docstrip.ins is ignored, so these
2917 ;; two files end up in the wrong place. Move them.
2919 (for-each (lambda (file)
2920 (install-file file makeindex)
2924 (for-each (cut install-file <> target)
2925 (find-files "build" ".*"))
2926 (for-each (cut install-file <> web2c)
2927 (find-files "web2c" ".*")))))))))
2929 `(("texlive-bin" ,texlive-bin)
2930 ("texlive-tex-ini-files" ,texlive-tex-ini-files)
2931 ("texlive-tex-plain" ,texlive-tex-plain)
2932 ("texlive-kpathsea" ,texlive-kpathsea)
2933 ("texlive-cm" ,texlive-cm)
2934 ("texlive-fonts-latex" ,texlive-fonts-latex)
2935 ("texlive-knuth-lib" ,texlive-knuth-lib)
2936 ("texlive-luatexconfig"
2938 "texlive-luatexconfig" (number->string %texlive-revision)
2939 (list "/tex/generic/config/luatex-unicode-letters.tex"
2940 "/tex/generic/config/luatexiniconfig.tex"
2941 "/web2c/texmfcnf.lua")
2943 "0yjx7nw9mgfgnq1givkzbxh7z7ncw1liaddjgm7n2nwn0aw6xfdg")))))
2945 (list texlive-dehyph-exptl
2949 texlive-hyphen-afrikaans
2950 texlive-hyphen-ancientgreek
2951 texlive-hyphen-armenian
2952 texlive-hyphen-basque
2953 texlive-hyphen-belarusian
2954 texlive-hyphen-bulgarian
2955 texlive-hyphen-catalan
2956 texlive-hyphen-chinese
2957 texlive-hyphen-churchslavonic
2958 texlive-hyphen-coptic
2959 texlive-hyphen-croatian
2960 texlive-hyphen-czech
2961 texlive-hyphen-danish
2962 texlive-hyphen-dutch
2963 texlive-hyphen-english
2964 texlive-hyphen-esperanto
2965 texlive-hyphen-estonian
2966 texlive-hyphen-ethiopic
2967 texlive-hyphen-finnish
2968 texlive-hyphen-schoolfinnish
2969 texlive-hyphen-french
2970 texlive-hyphen-friulan
2971 texlive-hyphen-galician
2972 texlive-hyphen-georgian
2973 texlive-hyphen-german
2974 texlive-hyphen-greek
2975 texlive-hyphen-hungarian
2976 texlive-hyphen-icelandic
2977 texlive-hyphen-indic
2978 texlive-hyphen-indonesian
2979 texlive-hyphen-interlingua
2980 texlive-hyphen-irish
2981 texlive-hyphen-italian
2982 texlive-hyphen-kurmanji
2983 texlive-hyphen-latin
2984 texlive-hyphen-latvian
2985 texlive-hyphen-lithuanian
2986 texlive-hyphen-macedonian
2987 texlive-hyphen-mongolian
2988 texlive-hyphen-norwegian
2989 texlive-hyphen-occitan
2991 texlive-hyphen-piedmontese
2992 texlive-hyphen-polish
2993 texlive-hyphen-portuguese
2994 texlive-hyphen-romanian
2995 texlive-hyphen-romansh
2996 texlive-hyphen-russian
2997 texlive-hyphen-sanskrit
2998 texlive-hyphen-serbian
2999 texlive-hyphen-slovak
3000 texlive-hyphen-slovenian
3001 texlive-hyphen-spanish
3002 texlive-hyphen-swedish
3004 texlive-hyphen-turkish
3005 texlive-hyphen-turkmen
3006 texlive-hyphen-ukrainian
3007 texlive-hyphen-uppersorbian
3008 texlive-hyphen-welsh
3009 texlive-unicode-data
3012 texlive-latex-l3kernel
3013 texlive-latex-l3backend
3014 ;; TODO: This dependency isn't needed for LaTeX version 2021-06-01
3016 ;; https://tug.org/pipermail/tex-live/2021-June/047180.html
3017 texlive-latex-l3packages
3018 texlive-latexconfig))
3019 (home-page "https://www.ctan.org/pkg/latex-base")
3020 (synopsis "Base sources of LaTeX")
3022 "This bundle comprises the source of LaTeX itself, together with several
3023 packages which are considered \"part of the kernel\". This bundle, together
3024 with the required packages, constitutes what every LaTeX distribution should
3026 (license license:lppl1.3c+))))
3028 (define-public texlive-latex-atveryend
3030 (inherit (simple-texlive-package
3031 "texlive-latex-atveryend"
3032 '("/doc/latex/atveryend/README.md"
3033 "/tex/latex/atveryend/")
3035 "1gz5ssxjlqa53a8blsmdk2qjahzc910ldh26xjxfxgqnqb03rqx7")
3037 (home-page "https://www.ctan.org/pkg/atveryend")
3038 (synopsis "Hooks at the very end of a document")
3040 "This LaTeX packages provides two hooks for @code{\\end@{document@}}
3041 that are executed after the hook of @code{\\AtEndDocument}:
3042 @code{\\AfterLastShipout} can be used for code that is to be executed right
3043 after the last @code{\\clearpage} before the @file{.aux} file is closed.
3044 @code{\\AtVeryEndDocument} is used for code after closing and final reading
3045 of the @file{.aux} file.")
3046 (license license:lppl1.3c+)))
3048 (define-public texlive-latex-auxhook
3050 (inherit (simple-texlive-package
3051 "texlive-latex-auxhook"
3052 '("/doc/latex/auxhook/README.md"
3053 "/tex/latex/auxhook/")
3055 "1xh445shr00rh43nnz03xh8k2mdrxgsr03lllqpgvwhm6yzsydkf")
3057 (home-page "https://www.ctan.org/pkg/auxhook")
3058 (synopsis "Hooks for auxiliary files")
3060 "This package provides hooks for adding code at the beginning of
3061 @file{.aux} files.")
3062 (license license:lppl1.3c+)))
3064 (define-public texlive-latex-epstopdf-pkg
3066 (inherit (simple-texlive-package
3067 "texlive-latex-epstopdf-pkg"
3068 '("/doc/latex/epstopdf-pkg/"
3069 "/tex/latex/epstopdf-pkg/")
3071 "0zl6jiyp2cvvyqx3lwxdkcvvnkqgbwj4issq07cagf61gljq6fns")
3073 (home-page "https://www.ctan.org/pkg/epstopdf-pkg")
3074 (synopsis "Call @command{epstopdf} \"on the fly\"")
3076 "The package adds support for EPS files in the @code{graphicx} package
3077 when running under pdfTeX. If an EPS graphic is detected, the package
3078 spawns a process to convert the EPS to PDF, using the script
3079 @command{epstopdf}.")
3080 (license license:lppl1.3c+)))
3082 (define-public texlive-latex-filecontents
3084 (name "texlive-latex-filecontents")
3085 (version (number->string %texlive-revision))
3088 (uri (texlive-ref "latex" "filecontents"))
3089 (file-name (string-append name "-" version "-checkout"))
3092 "1cmfigg5jx3hmdyh4gv8kwxi7dg076ldkxmr46s05xvhzjig1z9x"))))
3093 (build-system texlive-build-system)
3094 (arguments '(#:tex-directory "latex/filecontents"))
3095 (home-page "https://www.ctan.org/pkg/filecontents")
3096 (synopsis "Extended filecontents and filecontents* environments")
3098 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
3099 enable a LaTeX source file to generate external files as it runs through
3100 LaTeX. However, there are two limitations of these environments: they refuse
3101 to overwrite existing files, and they can only be used in the preamble of a
3102 document. The filecontents package removes these limitations, letting you
3103 overwrite existing files and letting you use @code{filecontents} /
3104 @code{filecontents*} anywhere.")
3105 (license license:lppl1.3c+)))
3107 (define-public texlive-epsf
3109 (inherit (simple-texlive-package
3111 (list "/doc/generic/epsf/"
3112 "/tex/generic/epsf/")
3114 "03jcf0kqh47is965d2590miwj7d5kif3c4mgsnvkyl664jzjkh92")
3116 (home-page "https://www.ctan.org/pkg/epsf")
3117 (synopsis "Simple macros for EPS inclusion")
3119 "This package provides the original (and now obsolescent) graphics
3120 inclusion macros for use with dvips, still widely used by Plain TeX users (in
3121 particular). For LaTeX users, the package is nowadays (rather strongly)
3122 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
3123 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
3124 users, via its Plain TeX version.)")
3125 (license license:public-domain)))
3127 (define-deprecated-package texlive-generic-epsf texlive-epsf)
3129 (define-public texlive-latex-fancyvrb
3131 (inherit (simple-texlive-package
3132 "texlive-latex-fancyvrb"
3133 (list "/doc/latex/fancyvrb/README"
3134 "/tex/latex/fancyvrb/")
3136 "0pdilgpw4zc0ipp4z9kdi61nymifyjy2mfpk74xk2cw9vhynkk3w")
3138 (home-page "https://www.ctan.org/pkg/fancyvrb")
3139 (synopsis "Sophisticated verbatim text")
3141 "This package provides tools for the flexible handling of verbatim text
3142 including: verbatim commands in footnotes; a variety of verbatim environments
3143 with many parameters; ability to define new customized verbatim environments;
3144 save and restore verbatim text and environments; write and read files in
3145 verbatim mode; build \"example\" environments (showing both result and
3147 (license license:lppl1.0+)))
3149 (define-public texlive-graphics-def
3151 (inherit (simple-texlive-package
3152 "texlive-graphics-def"
3153 (list "/doc/latex/graphics-def/README.md"
3154 "/tex/latex/graphics-def/")
3156 "0b66fy06safyrd717rfr476g1gz6nqfv1vqvam7ac2yy0g0djb17")
3159 (list texlive-latex-epstopdf-pkg))
3160 (home-page "https://www.ctan.org/pkg/latex-graphics")
3161 (synopsis "Color and graphics option files")
3163 "This bundle is a combined distribution consisting of @file{dvips.def},
3164 @file{pdftex.def}, @file{luatex.def}, @file{xetex.def}, @file{dvipdfmx.def},
3165 and @file{dvisvgm.def} driver option files for the LaTeX graphics and color
3167 (license license:lppl1.3c+)))
3169 (define-public texlive-graphics-cfg
3171 (inherit (simple-texlive-package
3172 "texlive-graphics-cfg"
3173 (list "/doc/latex/graphics-cfg/README.md"
3174 "/tex/latex/graphics-cfg/")
3176 "00n63adb2laf43lzix39xl68aq0k5k80mmrw602w99w5n7f96gsf")
3178 (home-page "https://www.ctan.org/pkg/latex-graphics")
3179 (synopsis "Sample configuration files for LaTeX color and graphics")
3181 "This bundle includes @file{color.cfg} and @file{graphics.cfg} files that
3182 set default \"driver\" options for the color and graphics packages.")
3183 (license license:public-domain)))
3185 (define-public texlive-greek-fontenc
3187 (inherit (simple-texlive-package
3188 "texlive-greek-fontenc"
3189 (list "doc/latex/greek-fontenc/"
3190 "tex/latex/greek-fontenc/"
3191 "source/latex/greek-fontenc/")
3193 "1ncsvj5mlnkgllrvqdnbkv0qwpv2y7jkq3x2wdmm7d3daqq0ka5h")
3195 (home-page "https://ctan.org/language/greek/greek-fontenc")
3196 (synopsis "LICR macros and encoding definition files for Greek")
3198 "The package provides Greek LICR macro definitions and encoding definition files
3199 for Greek text font encodings for use with fontenc.")
3200 (license license:lppl1.3+)))
3202 (define-public texlive-latex-graphics
3204 (name "texlive-latex-graphics")
3205 (version (number->string %texlive-revision))
3208 (uri (texlive-ref "latex" "graphics"))
3209 (file-name (string-append name "-" version "-checkout"))
3212 "0fgjl58f25zvagssz4dwmmsclzw8cr7mx00kdrbx2kcnamcb7h8d"))))
3213 (build-system texlive-build-system)
3214 (arguments '(#:tex-directory "latex/graphics"))
3216 (list texlive-graphics-cfg texlive-graphics-def))
3217 (home-page "https://www.ctan.org/pkg/latex-graphics")
3218 (synopsis "LaTeX standard graphics bundle")
3220 "This is a collection of LaTeX packages for producing color, including
3221 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
3222 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
3223 keyval, and lscape.")
3224 (license license:lppl1.3c+)))
3226 (define-public texlive-latex-hycolor
3228 (inherit (simple-texlive-package
3229 "texlive-latex-hycolor"
3230 (list "/doc/latex/hycolor/README.md"
3231 "/tex/latex/hycolor/")
3233 "026lfb4l7b3q8g6zc68siqandhb1x98cbycn7njknqva6s99aiqn")
3235 (home-page "https://www.ctan.org/pkg/latex-graphics")
3236 (synopsis "Color for hyperref and bookmark")
3238 "This package provides the code for the @code{color} option that is
3239 used by @code{hyperref} and @code{bookmark}.")
3240 (license license:lppl1.3c+)))
3242 (define-public texlive-xcolor
3243 (let ((template (simple-texlive-package
3245 (list "/doc/latex/xcolor/"
3246 "/source/latex/xcolor/")
3248 "12q6spmpxg30alhvarjmxzigmz7lazapbrb0mc4vhbn6n1sdz7pp"))))
3252 (substitute-keyword-arguments (package-arguments template)
3253 ((#:tex-directory _ #t)
3256 `(modify-phases ,phases
3257 (add-after 'unpack 'chdir
3258 (lambda _ (chdir "source/latex/xcolor") #t))
3259 (add-after 'install 'move-files
3260 (lambda* (#:key outputs #:allow-other-keys)
3261 (let ((share (string-append (assoc-ref outputs "out")
3262 "/share/texmf-dist")))
3263 (mkdir-p (string-append share "/dvips/xcolor"))
3264 (rename-file (string-append share "/tex/latex/xcolor/xcolor.pro")
3265 (string-append share "/dvips/xcolor/xcolor.pro"))
3267 (home-page "https://www.ctan.org/pkg/xcolor")
3268 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
3270 "The package starts from the basic facilities of the colorcolor package,
3271 and provides easy driver-independent access to several kinds of color tints,
3272 shades, tones, and mixes of arbitrary colors. It allows a user to select a
3273 document-wide target color model and offers complete tools for conversion
3274 between eight color models. Additionally, there is a command for alternating
3275 row colors plus repeated non-aligned material (like horizontal lines) in
3277 (license license:lppl1.2+))))
3279 (define-deprecated-package texlive-latex-xcolor texlive-xcolor)
3281 (define-public texlive-xmltex
3282 (let ((template (simple-texlive-package
3285 "/doc/otherformats/xmltex/"
3288 "023gv9axq05vwqz50fnkig24dzahwlc4raks2s8xc4pzrv2dv1zy"))))
3292 (substitute-keyword-arguments (package-arguments template)
3293 ((#:tex-directory _ #t)
3295 ((#:phases phases '%standard-phases)
3296 `(modify-phases ,phases
3297 (add-before 'install 'generate-formats
3298 (lambda* (#:key inputs #:allow-other-keys)
3300 (for-each (lambda (f)
3301 (copy-file f (basename f)))
3302 (find-files "tex" "\\.(ini|tex)$"))
3303 (invoke "fmtutil-sys" "--byfmt" "xmltex"
3305 (invoke "fmtutil-sys" "--byfmt" "pdfxmltex"
3307 (add-after 'install 'install-formats-and-wrappers
3308 (lambda* (#:key inputs outputs #:allow-other-keys)
3309 (let* ((out (assoc-ref outputs "out"))
3310 (texlive-bin (assoc-ref inputs "texlive-bin"))
3311 (pdftex (string-append texlive-bin "/bin/pdftex"))
3312 (web2c (string-append out "/share/texmf-dist/web2c")))
3314 (copy-recursively "web2c" web2c)
3315 ;; Create convenience command wrappers.
3316 (mkdir-p (string-append out "/bin"))
3317 (symlink pdftex (string-append out "/bin/xmltex"))
3318 (symlink pdftex (string-append out "/bin/pdfxmltex"))
3321 ;; The following fonts are propagated as a texlive-updmap.cfg as the font
3322 ;; maps need to be recreated for the fonts to be usable. They are
3323 ;; required by xmltex through mlnames.sty and unicode.sty.
3324 `(("texlive" ,(texlive-updmap.cfg
3335 ;; The following fonts, while not required, are used if
3340 (list texlive-tex-ini-files))
3341 (home-page "https://www.ctan.org/pkg/xmltex/")
3342 (synopsis "Support for parsing XML documents")
3343 (description "The package provides an implementation of a parser for
3344 documents matching the XML 1.0 and XML Namespace Recommendations. Element and
3345 attribute names, as well as character data, may use any characters allowed in
3346 XML, using UTF-8 or a suitable 8-bit encoding.")
3347 (license license:lppl1.0+)))) ;per xmltex/base/readme.txt
3349 (define-public texlive-hyperref
3350 (let ((template (simple-texlive-package
3352 (list "/doc/latex/hyperref/"
3353 "/source/latex/hyperref/"
3354 ;; These files are not generated from the sources
3355 "/tex/latex/hyperref/minitoc-hyper.sty"
3356 "/tex/latex/hyperref/ntheorem-hyper.sty"
3357 "/tex/latex/hyperref/xr-hyper.sty")
3359 "0nmbxaq676m2y9fgdji0bxqchmrli4hwhspijaszx51b3ki6bj2h"))))
3363 (substitute-keyword-arguments (package-arguments template)
3364 ((#:tex-directory _ #t)
3367 `(modify-phases ,phases
3368 (add-after 'unpack 'chdir
3369 (lambda _ (chdir "source/latex/hyperref") #t))))))
3371 (list texlive-generic-atbegshi
3372 texlive-generic-bitset
3373 texlive-generic-etexcmds
3374 texlive-generic-gettitlestring
3375 texlive-generic-iftex
3376 texlive-generic-infwarerr
3377 texlive-generic-intcalc
3378 texlive-generic-kvdefinekeys
3379 texlive-generic-kvsetkeys
3380 texlive-generic-ltxcmds
3381 texlive-generic-pdfescape
3382 texlive-latex-auxhook
3383 texlive-latex-atveryend
3384 texlive-latex-hycolor
3385 texlive-latex-kvoptions
3386 texlive-latex-letltxmacro
3387 texlive-latex-pdftexcmds
3388 texlive-latex-refcount
3389 texlive-latex-rerunfilecheck
3391 (home-page "https://www.ctan.org/pkg/hyperref")
3392 (synopsis "Extensive support for hypertext in LaTeX")
3394 "The @code{hyperref} package is used to handle cross-referencing commands
3395 in LaTeX to produce hypertext links in the document. The package provides
3396 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
3397 embedded @code{pdfmark} commands for processing by Acrobat
3398 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
3399 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
3400 pdf and HTML backends. The package is distributed with the @code{backref} and
3401 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
3402 (license license:lppl1.3+))))
3404 (define-deprecated-package texlive-latex-hyperref texlive-hyperref)
3406 (define-public texlive-oberdiek
3408 (name "texlive-oberdiek")
3409 (version (number->string %texlive-revision))
3412 (uri (texlive-ref "latex" "oberdiek"))
3413 (file-name (string-append name "-" version "-checkout"))
3416 "1cadrkpdqs65gxsaszfgfd8wqp8pvpik2sjmlyq3hz5p9yna3p9m"))))
3417 (build-system texlive-build-system)
3419 '(#:tex-directory "latex/oberdiek"
3420 #:build-targets '("oberdiek.ins")
3422 (modify-phases %standard-phases
3423 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
3424 (add-after 'unpack 'do-not-process-ifpdf.ins
3426 (substitute* "oberdiek.ins"
3427 (("ifpdf.ins") "ifpdf.dtx"))
3430 (list texlive-generic-iftex))
3431 (home-page "https://www.ctan.org/pkg/oberdiek")
3432 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
3434 "The bundle comprises various LaTeX packages, providing among others:
3435 better accessibility support for PDF files; extensible chemists reaction
3436 arrows; record information about document class(es) used; and many more.")
3437 (license license:lppl1.3+)))
3439 (define-deprecated-package texlive-latex-oberdiek texlive-oberdiek)
3441 (define-public texlive-latex-rerunfilecheck
3443 (inherit (simple-texlive-package
3444 "texlive-latex-rerunfilecheck"
3445 '("/doc/latex/rerunfilecheck/"
3446 "/tex/latex/rerunfilecheck/")
3448 "1myz0d5bxhxvl4220ikywh921qld8n324kk9kscqbc5iw4063g56")
3451 (list texlive-generic-infwarerr texlive-generic-uniquecounter
3452 texlive-latex-atveryend texlive-latex-kvoptions
3453 texlive-latex-pdftexcmds))
3454 (home-page "https://www.ctan.org/pkg/rerunfilecheck")
3455 (synopsis "Checksum based rerun checks on auxiliary files")
3457 "This package provides additional rerun warnings if some auxiliary
3458 files have changed. It is based on MD5 checksum, provided by pdfTeX.")
3459 (license license:lppl1.3c+)))
3461 (define-public texlive-latex-tools
3463 (name "texlive-latex-tools")
3464 (version (number->string %texlive-revision))
3467 (uri (texlive-ref "latex" "tools"))
3468 (file-name (string-append name "-" version "-checkout"))
3471 "1vm5wfyd0vbmv31a29fc7k8y14xiw00msvdx9n7dzsn9zpfjflqs"))))
3472 (build-system texlive-build-system)
3474 '(#:tex-directory "latex/tools"
3475 #:build-targets '("tools.ins")
3476 #:phases (modify-phases %standard-phases
3477 (add-after 'install 'provide-array-2016-10-06.sty
3478 (lambda* (#:key outputs #:allow-other-keys)
3479 ;; XXX: array.sty does:
3480 ;; "DeclareRelease{}{2016-10-06}{array-2016-10-06.sty}"
3481 ;; ...which causes some users (hypre) to look for that
3482 ;; file specifically. Provide it.
3483 (with-directory-excursion (string-append
3484 (assoc-ref outputs "out")
3485 "/share/texmf-dist/tex"
3487 (symlink "array.sty" "array-2016-10-06.sty")))))))
3488 (home-page "https://www.ctan.org/pkg/latex-tools")
3489 (synopsis "LaTeX standard tools bundle")
3491 "This package is a collection of (variously) simple tools provided as
3492 part of the LaTeX required tools distribution, comprising the following
3493 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
3494 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
3495 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
3497 (license license:lppl1.3+)))
3499 (define-public texlive-url
3501 (inherit (simple-texlive-package
3503 (list "/doc/latex/url/"
3506 "184m40wgnx939ky2hbxnj0v9aak023ldrhgffp0lgyk9wdqpxlqg")
3508 (home-page "https://www.ctan.org/pkg/url")
3509 (synopsis "Verbatim with URL-sensitive line breaks")
3510 (description "The command @code{\\url} is a form of verbatim command that
3511 allows linebreaks at certain characters or combinations of characters, accepts
3512 reconfiguration, and can usually be used in the argument to another command.
3513 The command is intended for email addresses, hypertext links,
3514 directories/paths, etc., which normally have no spaces, so by default the
3515 package ignores spaces in its argument. However, a package option allows
3516 spaces, which is useful for operating systems where spaces are a common part
3518 ;; The license header states that it is under LPPL version 2 or later, but
3519 ;; the latest version is 1.3c.
3520 (license license:lppl1.3c+)))
3522 (define-deprecated-package texlive-latex-url texlive-url)
3524 (define-public texlive-tetex
3526 (inherit (simple-texlive-package
3528 (list "/dvips/tetex/"
3529 "/fonts/enc/dvips/tetex/"
3530 "/fonts/map/dvips/tetex/")
3532 "1si3as8mwi8837965djlw6jhwwzsp3r1hkflvdxv2avx9vb45hjb")
3534 (home-page "https://www.ctan.org/pkg/tetex")
3535 (synopsis "Font maps originally from teTeX")
3536 (description "This package provides font maps that were originally part of
3537 the now obsolete teTeX distributions but are still used at the core of the TeX
3538 Live distribution.")
3539 (license license:public-domain)))
3541 (define-public texlive-latex-l3kernel
3543 (name "texlive-latex-l3kernel")
3544 (version (number->string %texlive-revision))
3547 (uri (texlive-ref "latex" "l3kernel"))
3548 (file-name (string-append name "-" version "-checkout"))
3551 "068xkinrkl6qjf8r6a9i0msvnzp4y7a3gnd2h12ws0km1dv19r20"))))
3552 (build-system texlive-build-system)
3554 '(#:tex-directory "latex/l3kernel"
3557 #:texlive-latex-base #f))
3559 (list texlive-docstrip))
3560 (home-page "https://www.ctan.org/pkg/l3kernel")
3561 (synopsis "LaTeX3 programmers’ interface")
3563 "The l3kernel bundle provides an implementation of the LaTeX3
3564 programmers’ interface, as a set of packages that run under LaTeX 2e. The
3565 interface provides the foundation on which the LaTeX3 kernel and other future
3566 code are built: it is an API for TeX programmers. The packages are set up so
3567 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
3568 (license license:lppl1.3c+)))
3570 (define-public texlive-latex-l3backend
3572 (name "texlive-latex-l3backend")
3573 (version (number->string %texlive-revision))
3576 (uri (texlive-ref "latex" "l3backend"))
3577 (file-name (string-append name "-" version "-checkout"))
3580 "0mlwyzssqn6wkyv9hzp24d40p8f20zrjqgvqyqs1rd7q7awan42a"))))
3581 (build-system texlive-build-system)
3583 '(#:tex-directory "latex/l3backend"
3586 #:texlive-latex-base #f))
3588 (list texlive-docstrip))
3589 (home-page "https://www.ctan.org/pkg/l3backend")
3590 (synopsis "LaTeX3 backend drivers")
3592 "This package forms parts of expl3, and contains the code used to
3593 interface with backends (drivers) across the expl3 codebase. The functions
3594 here are defined differently depending on the engine in use. As such, these
3595 are distributed separately from l3kernel to allow this code to be updated on
3596 an independent schedule.")
3597 (license license:lppl1.3c+)))
3599 (define-public texlive-latex-l3packages
3601 (name "texlive-latex-l3packages")
3602 (version (number->string %texlive-revision))
3603 (source (texlive-origin name version
3604 '("/source/latex/l3packages/"
3605 ;; These files have been generated with a
3606 ;; bespoke source tree and then modified by
3607 ;; hand. It's unfeasible to recreate them. See:
3608 ;; https://tug.org/pipermail/tex-live/2021-June/047188.html
3609 "/tex/latex/l3packages/xparse/xparse-2018-04-12.sty"
3610 "/tex/latex/l3packages/xparse/xparse-2020-10-01.sty"
3612 ;; TODO: This file can be removed when using
3613 ;; LaTeX version 2021-06-01 or newer. See:
3614 ;; https://tug.org/pipermail/tex-live/2021-June/047180.html
3615 "/tex/latex/l3packages/xparse/xparse-generic.tex")
3616 (base32 "05rjxdqhhg7z1z2rmhmwj2qf09xygymayy3jzj9fdphk0pab3amm")))
3617 (build-system texlive-build-system)
3619 '(#:tex-directory "latex/l3packages"
3622 #:texlive-latex-base #f
3623 ;; build-targets must be specified manually since they are in
3625 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
3627 (modify-phases %standard-phases
3628 ;; All package sources are in sub-directories, so we need to add them
3630 (add-after 'unpack 'set-TEXINPUTS
3632 (let ((cwd (getcwd)))
3634 (string-append cwd "/source/latex/l3packages/l3keys2e:"
3635 cwd "/source/latex/l3packages/xparse:"
3636 cwd "/source/latex/l3packages/xfrac:"
3637 cwd "/source/latex/l3packages/xfp:"
3638 cwd "/source/latex/l3packages/xtemplate"
3639 ;; The terminating ":" is required to include the
3640 ;; l3kernel input as well.
3643 (add-after 'install 'copy-generated-files
3644 (lambda* (#:key outputs #:allow-other-keys)
3645 (let ((dest (string-append (assoc-ref outputs "out")
3646 "/share/texmf-dist/tex/latex/l3packages")))
3647 (copy-recursively "tex/latex/l3packages/xparse" dest)))))
3650 (list texlive-docstrip))
3652 (list texlive-latex-l3kernel))
3653 (home-page "https://www.ctan.org/pkg/l3packages")
3654 (synopsis "High-level LaTeX3 concepts")
3656 "This bundle holds prototype implementations of concepts for a LaTeX
3657 designer interface, to be used with the experimental LaTeX kernel as
3658 programming tools and kernel support. Packages provided in this release are:
3661 @item l3keys2e, which makes the facilities of the kernel module l3keys
3662 available for use by LaTeX 2e packages;
3663 @item xfrac, which provides flexible splitlevel fractions;
3664 @item xparse, which provides a high-level interface for declaring document
3666 @item xtemplate, which provides a means of defining generic functions using a
3669 (license license:lppl1.3c+)))
3671 (define-public texlive-dvips-l3backend
3673 (inherit (simple-texlive-package
3674 "texlive-dvips-l3backend"
3676 "/dvips/l3backend/")
3678 "1hvj153h1pn93h6n76dv3mg9ai0mcz9q9mysfiqjfpqzijz9ikky")
3680 (home-page "https://www.ctan.org/pkg/l3backend")
3681 (synopsis "LaTeX3 backend drivers for dvips")
3683 "This package forms parts of expl3, and contains the code used to
3684 interface with backends (drivers) across the expl3 codebase. The functions
3685 here are defined for the dvips engine only.")
3686 (license license:lppl1.3c+)))
3688 (define-public texlive-fontspec
3689 (let ((template (simple-texlive-package
3691 (list "/doc/latex/fontspec/"
3692 "/source/latex/fontspec/"
3693 "/tex/latex/fontspec/fontspec.cfg")
3695 "06rms8dw1j67v3rgv6xmfykdmgbxi5rp78yxc782cy1sw07blgsg"))))
3699 (substitute-keyword-arguments (package-arguments template)
3700 ((#:tex-directory _ #t)
3703 `(modify-phases ,phases
3704 (add-after 'unpack 'chdir
3705 (lambda _ (chdir "source/latex/fontspec/") #t))))))
3707 (list texlive-latex-l3packages))
3708 (home-page "https://www.ctan.org/pkg/fontspec")
3709 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
3711 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
3712 automatic and unified interface to feature-rich AAT and OpenType fonts through
3713 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
3714 the l3kernel and xparse bundles from the LaTeX 3 development team.")
3715 (license license:lppl1.3+))))
3717 (define-deprecated-package texlive-latex-fontspec texlive-fontspec)
3719 (define-public texlive-grffile
3720 (let ((template (simple-texlive-package
3722 (list "/doc/latex/grffile/README.md"
3723 "/source/latex/grffile/grffile.dtx")
3725 "1ib2n4d52faipvxdvdh4ar1p5j997h7cza26sfyd8z3qdf0naqgx"))))
3729 (substitute-keyword-arguments (package-arguments template)
3730 ((#:tex-directory _ #t)
3732 ((#:build-targets _ #t)
3733 '(list "grffile.dtx"))
3735 `(modify-phases ,phases
3736 (add-after 'unpack 'chdir
3737 (lambda _ (chdir "source/latex/grffile/")))))))
3738 (home-page "https://www.ctan.org/pkg/grffile")
3739 (synopsis "Extended file name support for graphics (legacy package)")
3741 "The original grffile package extended the file name processing of the
3742 @code{graphics} package to support a larger range of file names. The base
3743 LaTeX code now supports multiple dots and spaces, and this package by default
3744 is a stub that just loads @code{graphicx}.")
3745 (license license:lppl1.3c+))))
3747 (define-public texlive-stringenc
3748 (let ((template (simple-texlive-package
3750 (list "/doc/latex/stringenc/README.md"
3751 "/source/latex/stringenc/stringenc.dtx")
3753 "19sfi5jxldxmy79pxmapmgmn3iknf8wjczasvlrrwv0gyycxdzhw"))))
3756 (outputs '("doc" "out"))
3758 (substitute-keyword-arguments (package-arguments template)
3759 ((#:tex-directory _ #t)
3760 "generic/stringenc")
3761 ((#:build-targets _ #t)
3762 '(list "stringenc.dtx"))
3764 `(modify-phases ,phases
3765 (add-after 'unpack 'chdir
3766 (lambda _ (chdir "source/latex/stringenc/")))
3767 (add-after 'copy-files 'clean-up
3768 (lambda* (#:key inputs outputs #:allow-other-keys)
3769 (delete-file-recursively
3770 (string-append (assoc-ref outputs "out") "/share/texmf-dist/build"))
3772 (string-append (assoc-ref outputs "out") "/share/texmf-dist/stringenc.dtx"))
3774 (string-append (assoc-ref inputs "source") "/source/latex/stringenc/stringenc.dtx")
3775 (string-append (assoc-ref outputs "out") "/share/texmf-dist/source/latex/stringenc/"))
3777 (string-append (assoc-ref inputs "source") "/doc/latex/stringenc/README.md")
3778 (string-append (assoc-ref outputs "doc") "/doc/latex/stringenc/"))))))))
3779 (home-page "https://www.ctan.org/pkg/stringenc")
3780 (synopsis "Converting a string between different encodings")
3782 "This package provides @code{\\StringEncodingConvert} for converting a
3783 string between different encodings. Both LaTeX and plain-TeX are supported.")
3784 (license license:lppl1.3c+))))
3786 (define-public texlive-l3build
3787 (let ((template (simple-texlive-package
3789 (list "/doc/latex/l3build/"
3790 "/doc/man/man1/l3build.1"
3792 "/tex/latex/l3build/"
3793 ;; TODO: The dtx file builds only the documentation.
3794 ;; We avoid this for a simpler package definition,
3795 ;; but it may be possible to exclude
3796 ;; /doc/latex/l3build and the man page in the future.
3797 "/source/latex/l3build/")
3799 "1fcay05jj53qgp2b98jpawi0id298fs5xc4y1r5krrfr4sp4hd59")
3804 (substitute-keyword-arguments (package-arguments template)
3806 `(modify-phases ,phases
3807 (add-after 'install 'patch-shebangs-again
3808 (lambda* (#:key inputs outputs #:allow-other-keys)
3809 ;; XXX: Since the 'patch-shebangs' phase cannot change the
3810 ;; original source files patch the shebangs again here.
3811 (let* ((coreutils (assoc-ref inputs "coreutils"))
3812 (texlive-bin (assoc-ref inputs "texlive-bin"))
3813 (path (list (string-append coreutils "/bin")
3814 (string-append texlive-bin "/bin"))))
3815 (for-each (lambda (file)
3816 (format #t "~a~%" file)
3817 (patch-shebang file path))
3818 (find-files (assoc-ref outputs "out")))
3821 (list coreutils texlive-bin))
3822 (home-page "https://github.com/latex3/luaotfload")
3823 (synopsis "Testing and building system for LaTeX")
3825 "The l3build module is designed to support the development of
3826 high-quality LaTeX code by providing: a unit testing system, automated
3827 typesetting of code sources, and a reliable packaging system for CTAN
3828 releases. The bundle consists of a Lua script to run the tasks and a
3829 @code{.tex} file which provides the testing environment.")
3830 (license license:lppl1.3c+))))
3832 (define-public texlive-lualibs
3835 (simple-texlive-package
3837 (list "doc/luatex/lualibs/"
3838 "source/luatex/lualibs/"
3839 "tex/luatex/lualibs/")
3840 (base32 "0gf60vj9y75a7dlrmpbyqgsa00s1717r6if3lm5ldm41i9fm8ywz")
3841 ;; The source dtx file only unpacks three files. This is why we
3842 ;; install all the files as they are, because there is no clear
3843 ;; way to generate them all.
3845 (home-page "https://ctan.org/macros/luatex/generic/lualibs")
3846 (synopsis "Additional Lua functions for LuaTeX macro programmers")
3848 "Lualibs is a collection of Lua modules useful for general programming.
3849 The bundle is based on Lua modules shipped with ConTeXt, and made available in
3850 this bundle for use independent of ConTeXt.")
3851 ;; GPL version 2 only
3852 (license license:gpl2)))
3854 (define-deprecated-package texlive-luatex-lualibs texlive-lualibs)
3856 (define-public texlive-lua-alt-getopt
3859 (simple-texlive-package
3860 "texlive-lua-alt-getopt"
3861 (list "doc/support/lua-alt-getopt/" "scripts/lua-alt-getopt/")
3862 (base32 "0cizxzn33n3pn98xkqnxb8s6vdwkar3xrwhraqrs05pjfdn9d4wz")
3864 (home-page "https://ctan.org/support/lualibs/lua-alt-getopt")
3865 (synopsis "Process application arguments the same way as getopt_long")
3867 "This package provides a Lua module for processing application arguments
3868 in the same way as BSD/GNU @code{getopt_long(3)} functions do.")
3869 (license license:expat)))
3871 ;; TODO: We should be able to build this from the sources on Github with
3872 ;; texlive-l3build, but I haven't been able to get it to work.
3873 (define-public texlive-luaotfload
3874 (let ((template (simple-texlive-package
3875 "texlive-luaotfload"
3876 (list "/doc/luatex/luaotfload/"
3877 "/doc/man/man1/luaotfload-tool.1"
3878 "/doc/man/man5/luaotfload.conf.5"
3879 "/source/luatex/luaotfload/fontloader-reference-load-order.lua"
3880 "/source/luatex/luaotfload/fontloader-reference-load-order.tex"
3881 "/scripts/luaotfload/luaotfload-tool.lua"
3882 "/tex/luatex/luaotfload/")
3884 "10wznvxx3qsl88n560py5vyx5r3a3914anbqfhwcmhmwg097xxl4")
3889 (list texlive-lua-alt-getopt ;for luaotfload-tool
3891 (home-page "https://github.com/lualatex/luaotfload")
3892 (synopsis "OpenType font loader for LuaTeX")
3894 "Luaotfload is an adaptation of the ConTeXt font loading system for the
3895 Plain and LaTeX formats. It allows OpenType fonts to be loaded with font
3896 features accessible using an extended font request syntax while providing
3897 compatibilitywith XeTeX. By indexing metadata in a database it facilitates
3898 loading fonts by their proper names instead of file names.")
3899 ;; GPL version 2 only
3900 (license license:gpl2))))
3902 (define-deprecated-package texlive-luatex-luaotfload texlive-luaotfload)
3904 (define-public texlive-latex-amsmath
3906 (name "texlive-latex-amsmath")
3907 (version (number->string %texlive-revision))
3910 (uri (texlive-ref "latex" "amsmath"))
3911 (file-name (string-append name "-" version "-checkout"))
3914 "172zybw7rp05jca8wl6x0mh6z6gncdyi1j9wdfyjnhbvqw0z4wi4"))))
3915 ;; This package misses important files
3916 (replacement texlive-amsmath)
3917 (build-system texlive-build-system)
3918 (arguments '(#:tex-directory "latex/amsmath"))
3919 (home-page "https://www.ctan.org/pkg/amsmath")
3920 (synopsis "AMS mathematical facilities for LaTeX")
3922 "This is the principal package in the AMS-LaTeX distribution. It adapts
3923 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
3924 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
3925 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
3926 symbols), @code{amsopnamsopn} (for operator names) and
3927 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
3928 This package is part of the LaTeX required distribution; however, several
3929 contributed packages add still further to its appeal; examples are
3930 @code{empheqempheq}, which provides functions for decorating and highlighting
3931 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
3933 (license license:lppl1.3c+)))
3935 (define-public texlive-amsmath
3936 (let ((template (simple-texlive-package
3938 (list "/doc/latex/amsmath/"
3939 "/source/latex/amsmath/"
3940 ;; These two files are not generated from any of the
3942 "/tex/latex/amsmath/amsmath-2018-12-01.sty"
3943 "/tex/latex/amsmath/amstex.sty")
3945 "0gmdzhgr0h57xhsl61c5jsp4fj4pbmdr8p6k96am5jbyrbbx121q"))))
3949 (substitute-keyword-arguments (package-arguments template)
3950 ((#:tex-directory _ #t)
3953 `(modify-phases ,phases
3954 (add-after 'unpack 'chdir
3955 (lambda _ (chdir "source/latex/amsmath/")))
3956 (add-before 'copy-files 'unchdir
3958 (chdir "../../..")))
3959 (add-after 'copy-files 'delete-extra-files
3960 (lambda* (#:key outputs #:allow-other-keys)
3961 (delete-file-recursively
3962 (string-append (assoc-ref outputs "out")
3963 "/share/texmf-dist/source/latex/amsmath/build"))))))))
3964 (home-page "https://www.ctan.org/pkg/amsmath")
3965 (synopsis "AMS mathematical facilities for LaTeX")
3967 "This is the principal package in the AMS-LaTeX distribution. It adapts
3968 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
3969 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
3970 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
3971 symbols), @code{amsopnamsopn} (for operator names) and
3972 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
3973 This package is part of the LaTeX required distribution; however, several
3974 contributed packages add still further to its appeal; examples are
3975 @code{empheqempheq}, which provides functions for decorating and highlighting
3976 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
3978 (license license:lppl1.3c+))))
3980 (define-public texlive-amscls
3981 (let ((template (simple-texlive-package
3983 (list "/doc/latex/amscls/"
3984 "/source/latex/amscls/"
3985 "/bibtex/bst/amscls/")
3987 "0vw0b815slvfqfd8qffyfzb3xfvyv6k77m12xp0l67hs8p08s5b7"))))
3991 (substitute-keyword-arguments (package-arguments template)
3992 ((#:tex-directory _ #t)
3995 `(modify-phases ,phases
3996 (add-after 'unpack 'chdir
3997 (lambda _ (chdir "source/latex/amscls/") #t))))))
3998 (home-page "https://www.ctan.org/pkg/amscls")
3999 (synopsis "AMS document classes for LaTeX")
4001 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
4002 articles for the AMS), @code{amsbookamsbook} (for books) and
4003 @code{amsprocamsproc} (for proceedings), together with some supporting
4004 material. The material is made available as part of the AMS-LaTeX
4006 (license license:lppl1.3c+))))
4008 (define-deprecated-package texlive-latex-amscls texlive-amscls)
4010 (define-public texlive-babel
4011 (let ((template (simple-texlive-package
4013 (list "/doc/latex/babel/"
4014 "/source/latex/babel/"
4015 "/makeindex/babel/")
4017 "0qr5vjp79g1c1l6k173qhfdfabgbky73wymzhm56pazx4a8r08wz"))))
4020 ;; TODO: This package is missing files.
4021 (replacement texlive-babel/fixed)
4023 (substitute-keyword-arguments (package-arguments template)
4024 ((#:tex-directory _ #t)
4027 `(modify-phases ,phases
4028 (add-after 'unpack 'chdir
4029 (lambda _ (chdir "source/latex/babel/") #t))
4030 ;; This package tries to produce babel.aux twice but refuses to
4031 ;; overwrite the first one.
4032 (add-before 'build 'fix-ins
4034 (substitute* "babel.ins"
4035 (("askonceonly") "askforoverwritefalse"))
4037 (add-after 'install 'install-locales
4038 (lambda* (#:key outputs #:allow-other-keys)
4039 (let ((locale-directory
4040 (string-append (assoc-ref outputs "out")
4041 "/share/texmf-dist/tex/generic/babel/locale/")))
4042 (mkdir-p locale-directory)
4043 (invoke "unzip" "locale.zip" "-d"
4044 locale-directory))))))))
4047 (home-page "https://www.ctan.org/pkg/babel")
4048 (synopsis "Multilingual support for Plain TeX or LaTeX")
4050 "The package manages culturally-determined typographical (and other)
4051 rules, and hyphenation patterns for a wide range of languages. A document may
4052 select a single language to be supported, or it may select several, in which
4053 case the document may switch from one language to another in a variety of
4054 ways. Babel uses contributed configuration files that provide the detail of
4055 what has to be done for each language. Users of XeTeX are advised to use the
4056 polyglossia package rather than Babel.")
4057 (license license:lppl1.3+))))
4059 (define-public texlive-babel/fixed
4061 (inherit texlive-babel)
4062 (name "texlive-babel-fixed")
4064 (substitute-keyword-arguments (package-arguments texlive-babel)
4066 `(modify-phases ,phases
4067 (add-before 'copy-files 'unchdir
4069 (chdir "../../..")))
4070 (add-after 'copy-files 'delete-extra-files
4071 (lambda* (#:key outputs #:allow-other-keys)
4072 (delete-file-recursively
4073 (string-append (assoc-ref outputs "out")
4074 "/share/texmf-dist/source/latex/babel/build"))
4076 (string-append (assoc-ref outputs "out")
4077 "/share/texmf-dist/tex/generic/babel/bbind.ist"))
4079 (string-append (assoc-ref outputs "out")
4080 "/share/texmf-dist/tex/generic/babel/bbglo.ist"))))))))))
4082 (define-deprecated-package texlive-latex-babel texlive-babel)
4084 (define-public texlive-generic-babel-english
4086 (name "texlive-generic-babel-english")
4087 (version (number->string %texlive-revision))
4090 (uri (texlive-ref "generic" "babel-english"))
4091 (file-name (string-append name "-" version "-checkout"))
4094 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
4095 (build-system texlive-build-system)
4096 (arguments '(#:tex-directory "generic/babel-english"))
4097 (home-page "https://www.ctan.org/pkg/babel-english")
4098 (synopsis "Babel support for English")
4100 "This package provides the language definition file for support of
4101 English in @code{babel}. Care is taken to select British hyphenation patterns
4102 for British English and Australian text, and default (\"american\") patterns
4103 for Canadian and USA text.")
4104 (license license:lppl1.3+)))
4106 (define-public texlive-babel-french
4108 (simple-texlive-package
4109 "texlive-babel-french"
4110 (list "doc/generic/babel-french/"
4111 "source/generic/babel-french/"
4112 "tex/generic/babel-french/")
4113 (base32 "0cgn4dq5wnlfh9wddjzxsf7p56pk29lyndg56zg6558y7xf67cw8"))))
4116 (outputs '("out" "doc"))
4118 (substitute-keyword-arguments (package-arguments template)
4119 ((#:tex-directory _ '())
4120 "generic/babel-french")
4121 ((#:build-targets _ '())
4122 ;; TODO: use dtx and build documentation.
4123 '(list "frenchb.ins"))
4125 `(modify-phases ,phases
4126 (add-after 'unpack 'chdir
4127 (lambda _ (chdir "source/generic/babel-french")))
4128 (replace 'copy-files
4129 (lambda* (#:key inputs outputs #:allow-other-keys)
4130 (let ((origin (assoc-ref inputs "source"))
4131 (source (string-append (assoc-ref outputs "out")
4132 "/share/texmf-dist/source"))
4133 (doc (string-append (assoc-ref outputs "doc")
4134 "/share/texmf-dist/doc")))
4135 (copy-recursively (string-append origin "/source") source)
4136 (copy-recursively (string-append origin "/doc") doc))))))))
4137 (home-page "https://ctan.org/macros/latex/contrib/babel-contrib/french")
4138 (synopsis "Babel contributed support for French")
4140 "The package, formerly known as frenchb, establishes French conventions
4141 in a document (or a subset of the conventions, if French is not the main
4142 language of the document).")
4143 (license license:lppl1.3+))))
4145 (define-deprecated-package texlive-generic-babel-french texlive-babel-french)
4147 (define-public texlive-generic-babel-german
4149 (name "texlive-generic-babel-german")
4150 (version (number->string %texlive-revision))
4153 (uri (texlive-ref "generic" "babel-german"))
4154 (file-name (string-append name "-" version "-checkout"))
4157 "1x9hnr9gz5mqdb97cinivn9xjnfr4qi996aa4cnr2sm2dsbhqxnp"))))
4158 (build-system texlive-build-system)
4159 (arguments '(#:tex-directory "generic/babel-german"))
4160 (home-page "https://www.ctan.org/pkg/babel-german")
4161 (synopsis "Babel support for German")
4163 "This package provides the language definition file for support of German
4164 in @code{babel}. It provides all the necessary macros, definitions and
4165 settings to typeset German documents. The bundle includes support for the
4166 traditional and reformed German orthography as well as for the Austrian and
4167 Swiss varieties of German.")
4168 (license license:lppl1.3+)))
4170 (define-public texlive-babel-swedish
4171 (let ((template (simple-texlive-package
4172 "texlive-babel-swedish"
4173 (list "/source/generic/babel-swedish/")
4175 "03rp4n9wkqyckman765r8v8j2pg5fg9frbfxsnhq0i2mr0yhbr6v"))))
4179 (substitute-keyword-arguments (package-arguments template)
4180 ((#:tex-directory _ '())
4181 "generic/babel-swedish")
4182 ((#:build-targets _ '())
4183 ''("swedish.ins")) ; TODO: use dtx and build documentation
4185 `(modify-phases ,phases
4186 (add-after 'unpack 'chdir
4187 (lambda _ (chdir "source/generic/babel-swedish")))))))
4188 (home-page "https://www.ctan.org/pkg/babel-swedish")
4189 (synopsis "Babel support for Swedish")
4190 (description "This package provides the language definition file for
4191 support of Swedish in @code{babel}. It provides all the necessary macros,
4192 definitions and settings to typeset Swedish documents.")
4193 (license license:lppl1.3c+))))
4195 (define-public texlive-latex-cyrillic
4197 (name "texlive-latex-cyrillic")
4198 (version (number->string %texlive-revision))
4201 (uri (texlive-ref "latex" "cyrillic"))
4202 (file-name (string-append name "-" version "-checkout"))
4205 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
4206 (build-system texlive-build-system)
4208 '(#:tex-directory "latex/cyrillic"))
4209 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
4210 (synopsis "Support for Cyrillic fonts in LaTeX")
4212 "This bundle of macros files provides macro support (including font
4213 encoding macros) for the use of Cyrillic characters in fonts encoded under the
4214 T2* and X2 encodings. These encodings cover (between them) pretty much every
4215 language that is written in a Cyrillic alphabet.")
4216 (license license:lppl1.3c+)))
4218 (define-public texlive-psnfss
4219 (let ((template (simple-texlive-package
4221 (list "/doc/latex/psnfss/"
4222 "/source/latex/psnfss/"
4223 "/fonts/map/dvips/psnfss/"
4225 ;; Only the .sty files are generated from the sources.
4226 "/tex/latex/psnfss/8rbch.fd"
4227 "/tex/latex/psnfss/8rpag.fd"
4228 "/tex/latex/psnfss/8rpbk.fd"
4229 "/tex/latex/psnfss/8rpcr.fd"
4230 "/tex/latex/psnfss/8rphv.fd"
4231 "/tex/latex/psnfss/8rpnc.fd"
4232 "/tex/latex/psnfss/8rppl.fd"
4233 "/tex/latex/psnfss/8rptm.fd"
4234 "/tex/latex/psnfss/8rput.fd"
4235 "/tex/latex/psnfss/8rpzc.fd"
4236 "/tex/latex/psnfss/omlbch.fd"
4237 "/tex/latex/psnfss/omlpag.fd"
4238 "/tex/latex/psnfss/omlpbk.fd"
4239 "/tex/latex/psnfss/omlpcr.fd"
4240 "/tex/latex/psnfss/omlphv.fd"
4241 "/tex/latex/psnfss/omlpnc.fd"
4242 "/tex/latex/psnfss/omlppl.fd"
4243 "/tex/latex/psnfss/omlptm.fd"
4244 "/tex/latex/psnfss/omlptmcm.fd"
4245 "/tex/latex/psnfss/omlput.fd"
4246 "/tex/latex/psnfss/omlpzc.fd"
4247 "/tex/latex/psnfss/omlzplm.fd"
4248 "/tex/latex/psnfss/omlzpple.fd"
4249 "/tex/latex/psnfss/omlztmcm.fd"
4250 "/tex/latex/psnfss/omsbch.fd"
4251 "/tex/latex/psnfss/omspag.fd"
4252 "/tex/latex/psnfss/omspbk.fd"
4253 "/tex/latex/psnfss/omspcr.fd"
4254 "/tex/latex/psnfss/omsphv.fd"
4255 "/tex/latex/psnfss/omspnc.fd"
4256 "/tex/latex/psnfss/omsppl.fd"
4257 "/tex/latex/psnfss/omsptm.fd"
4258 "/tex/latex/psnfss/omsput.fd"
4259 "/tex/latex/psnfss/omspzc.fd"
4260 "/tex/latex/psnfss/omspzccm.fd"
4261 "/tex/latex/psnfss/omszplm.fd"
4262 "/tex/latex/psnfss/omszpple.fd"
4263 "/tex/latex/psnfss/omsztmcm.fd"
4264 "/tex/latex/psnfss/omxpsycm.fd"
4265 "/tex/latex/psnfss/omxzplm.fd"
4266 "/tex/latex/psnfss/omxzpple.fd"
4267 "/tex/latex/psnfss/omxztmcm.fd"
4268 "/tex/latex/psnfss/ot1bch.fd"
4269 "/tex/latex/psnfss/ot1pag.fd"
4270 "/tex/latex/psnfss/ot1pbk.fd"
4271 "/tex/latex/psnfss/ot1pcr.fd"
4272 "/tex/latex/psnfss/ot1phv.fd"
4273 "/tex/latex/psnfss/ot1pnc.fd"
4274 "/tex/latex/psnfss/ot1ppl.fd"
4275 "/tex/latex/psnfss/ot1pplj.fd"
4276 "/tex/latex/psnfss/ot1pplx.fd"
4277 "/tex/latex/psnfss/ot1ptm.fd"
4278 "/tex/latex/psnfss/ot1ptmcm.fd"
4279 "/tex/latex/psnfss/ot1put.fd"
4280 "/tex/latex/psnfss/ot1pzc.fd"
4281 "/tex/latex/psnfss/ot1zplm.fd"
4282 "/tex/latex/psnfss/ot1zpple.fd"
4283 "/tex/latex/psnfss/ot1ztmcm.fd"
4284 "/tex/latex/psnfss/t1bch.fd"
4285 "/tex/latex/psnfss/t1pag.fd"
4286 "/tex/latex/psnfss/t1pbk.fd"
4287 "/tex/latex/psnfss/t1pcr.fd"
4288 "/tex/latex/psnfss/t1phv.fd"
4289 "/tex/latex/psnfss/t1pnc.fd"
4290 "/tex/latex/psnfss/t1ppl.fd"
4291 "/tex/latex/psnfss/t1pplj.fd"
4292 "/tex/latex/psnfss/t1pplx.fd"
4293 "/tex/latex/psnfss/t1ptm.fd"
4294 "/tex/latex/psnfss/t1put.fd"
4295 "/tex/latex/psnfss/t1pzc.fd"
4296 "/tex/latex/psnfss/ts1bch.fd"
4297 "/tex/latex/psnfss/ts1pag.fd"
4298 "/tex/latex/psnfss/ts1pbk.fd"
4299 "/tex/latex/psnfss/ts1pcr.fd"
4300 "/tex/latex/psnfss/ts1phv.fd"
4301 "/tex/latex/psnfss/ts1pnc.fd"
4302 "/tex/latex/psnfss/ts1ppl.fd"
4303 "/tex/latex/psnfss/ts1pplj.fd"
4304 "/tex/latex/psnfss/ts1pplx.fd"
4305 "/tex/latex/psnfss/ts1ptm.fd"
4306 "/tex/latex/psnfss/ts1put.fd"
4307 "/tex/latex/psnfss/ts1pzc.fd"
4308 "/tex/latex/psnfss/ufplm.fd"
4309 "/tex/latex/psnfss/ufplmbb.fd"
4310 "/tex/latex/psnfss/upsy.fd"
4311 "/tex/latex/psnfss/upzd.fd")
4313 "11f14dzhwsy4pli21acccip43d36nf3pac33ihjffnps1i2mhqkd"))))
4316 ;; TODO: This package is missing files.
4317 (replacement texlive-psnfss/fixed)
4319 (substitute-keyword-arguments (package-arguments template)
4320 ((#:tex-directory _ #t)
4323 `(modify-phases ,phases
4324 (add-after 'unpack 'chdir
4326 (chdir "source/latex/psnfss") #t))))))
4329 (home-page "https://www.ctan.org/pkg/psnfss")
4330 (synopsis "Font support for common PostScript fonts")
4332 "The PSNFSS collection includes a set of files that provide a complete
4333 working setup of the LaTeX font selection scheme (NFSS2) for use with common
4334 PostScript fonts. The base set of text fonts covered by PSNFSS includes the
4335 AvantGarde, Bookman, Courier, Helvetica, New Century Schoolbook, Palatino,
4336 Symbol, Times Roman and Zapf Dingbats fonts. In addition, the fonts Bitstream
4337 Charter and Adobe Utopia are covered. Separate packages are provided to load
4338 each font for use as the main text font. The package @code{helvet} allows
4339 Helvetica to be loaded with its size scaled to something more appropriate for
4340 use as a Sans-Serif font to match Times, while @code{pifont} provides the
4341 means to select single glyphs from symbol fonts. The bundle as a whole is
4342 part of the LaTeX required set of packages.")
4343 (license license:lppl1.2+))))
4345 (define-public texlive-psnfss/fixed
4347 (inherit texlive-psnfss)
4348 (name "texlive-psnfss-fixed")
4350 (substitute-keyword-arguments (package-arguments texlive-psnfss)
4352 `(modify-phases ,phases
4353 (add-before 'copy-files 'unchdir
4355 (chdir "../../..")))
4356 (add-after 'copy-files 'delete-extra-files
4357 (lambda* (#:key outputs #:allow-other-keys)
4358 (delete-file-recursively
4359 (string-append (assoc-ref outputs "out")
4360 "/share/texmf-dist/source/latex/psnfss/build"))))))))))
4362 (define-deprecated-package texlive-latex-psnfss texlive-psnfss)
4364 ;; For user profiles
4365 (define-public texlive-base
4366 (let ((default-packages
4371 texlive-cm-super ; to avoid bitmap fonts
4375 texlive-kpathsea ;for mktex.opt
4376 ;; LaTeX packages from the "required" set.
4377 texlive-latex-amsmath
4380 texlive-generic-babel-english
4381 texlive-latex-cyrillic
4382 texlive-latex-graphics
4387 (name "texlive-base")
4388 (version (number->string %texlive-revision))
4390 (build-system trivial-build-system)
4393 (begin (mkdir (assoc-ref %outputs "out")))))
4395 (map (lambda (package)
4396 (list (package-name package) package))
4398 (home-page (package-home-page texlive-bin))
4399 (synopsis "TeX Live base packages")
4400 (description "This is a very limited subset of the TeX Live distribution.
4401 It includes little more than the required set of LaTeX packages.")
4402 (license (fold (lambda (package result)
4403 (match (package-license package)
4405 (append lst result))
4406 ((? license:license? license)
4407 (cons license result))))
4409 default-packages)))))
4411 (define-public texlive-default-updmap.cfg
4414 (uri (string-append "https://tug.org/svn/texlive/tags/"
4415 %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg"
4416 "?revision=" (number->string %texlive-revision)))
4417 (file-name (string-append "updmap.cfg-"
4418 (number->string %texlive-revision)))
4421 "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c"))))
4423 ;;; TODO: Add a TeX Live profile hook computing fonts maps (and others?)
4424 ;;; configuration from the packages in the profile, similar to what's done
4426 (define-public texlive-updmap.cfg
4427 (lambda* (#:optional (packages '()))
4428 "Return a 'texlive-updmap.cfg' package which contains the fonts map
4429 configuration of a base set of packages plus PACKAGES."
4430 (let ((default-packages (match (package-propagated-inputs texlive-base)
4431 (((labels packages) ...) packages))))
4433 (version (number->string %texlive-revision))
4436 (uri (string-append "https://tug.org/svn/texlive/tags/"
4438 "/Master/texmf-dist/web2c/updmap.cfg"
4439 "?revision=" version))
4440 (file-name "updmap.cfg")
4443 "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c"))))
4444 (name "texlive-updmap.cfg")
4445 (build-system copy-build-system)
4447 '(#:modules ((guix build copy-build-system)
4450 (ice-9 textual-ports))
4451 #:install-plan '(("updmap.cfg" "share/texmf-config/web2c/")
4452 ("map" "share/texmf-dist/fonts/map"))
4454 (modify-phases %standard-phases
4455 (add-before 'install 'regenerate-updmap.cfg
4457 (make-file-writable "updmap.cfg")
4459 ;; Disable unavailable map files.
4460 (let* ((port (open-pipe* OPEN_WRITE "updmap-sys"
4463 "--cnffile" "updmap.cfg")))
4464 (display "Y\n" port)
4465 (when (not (zero? (status:exit-val (close-pipe port))))
4466 (error "failed to filter updmap.cfg")))
4468 ;; Set TEXMFSYSVAR to a sane and writable value; updmap fails
4469 ;; if it cannot create its log file there.
4470 (setenv "TEXMFSYSVAR" (getcwd))
4473 (invoke "updmap-sys"
4474 "--cnffile" "updmap.cfg"
4475 "--dvipdfmxoutputdir" "map/dvipdfmx/updmap/"
4476 "--dvipsoutputdir" "map/dvips/updmap/"
4477 "--pdftexoutputdir" "map/pdftex/updmap/"))))))
4478 (propagated-inputs (map (lambda (package)
4479 (list (package-name package) package))
4480 (append default-packages packages)))
4481 (home-page (package-home-page texlive-bin))
4482 (synopsis "TeX Live fonts map configuration")
4483 (description "This package contains the fonts map configuration file
4484 generated for the base TeX Live packages as well as, optionally, user-provided
4486 (license (delete-duplicates
4487 (fold (lambda (package result)
4488 (match (package-license package)
4490 (append lst result))
4491 ((? license:license? license)
4492 (cons license result))))
4494 (append default-packages packages))))))))
4496 (define-deprecated/alias texlive-union texlive-updmap.cfg)
4497 (export texlive-union)
4499 ;; For use in package definitions only
4500 (define-public texlive-tiny
4502 (inherit (texlive-updmap.cfg))
4503 (name "texlive-tiny")
4504 (description "This is a very limited subset of the TeX Live distribution.
4505 It includes little more than the required set of LaTeX packages.")))
4507 (define-public texlive-tipa
4509 (inherit (simple-texlive-package
4511 (list "/tex4ht/ht-fonts/alias/tipa/"
4513 "/fonts/map/dvips/tipa/"
4514 "/fonts/source/public/tipa/"
4515 "/fonts/tfm/public/tipa/"
4516 "/fonts/type1/public/tipa/"
4519 "0cqzf8vb10b8jw99m9gflskxa4c3rpiznxglix6chl5lai5sgw44")
4521 (home-page "https://www.ctan.org/pkg/tipa")
4522 (synopsis "Fonts and macros for IPA phonetics characters")
4523 (description "These fonts are considered the \"ultimate answer\" to IPA
4524 typesetting. The encoding of these 8-bit fonts has been registered as LaTeX
4525 standard encoding T3, and the set of addendum symbols as encoding
4526 TS3. \"Times-like\" Adobe Type 1 versions are provided for both the T3 and the
4528 (license license:lppl)))
4530 (define-public texlive-latex-amsrefs
4532 (name "texlive-latex-amsrefs")
4533 (version (number->string %texlive-revision))
4536 (uri (texlive-ref "latex" "amsrefs"))
4537 (file-name (string-append name "-" version "-checkout"))
4540 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
4541 (build-system texlive-build-system)
4542 (arguments '(#:tex-directory "latex/amsrefs"))
4543 (home-page "https://www.ctan.org/pkg/amsrefs")
4544 (synopsis "LaTeX-based replacement for BibTeX")
4546 "Amsrefs is a LaTeX package for bibliographies that provides an archival
4547 data format similar to the format of BibTeX database files, but adapted to
4548 make direct processing by LaTeX easier. The package can be used either in
4549 conjunction with BibTeX or as a replacement for BibTeX.")
4550 (license license:lppl1.3+)))
4552 (define-public texlive-latex-bigfoot
4554 (name "texlive-latex-bigfoot")
4555 (version (number->string %texlive-revision))
4558 (uri (texlive-ref "latex" "bigfoot"))
4559 (file-name (string-append name "-" version "-checkout"))
4562 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
4563 (build-system texlive-build-system)
4565 '(#:tex-directory "latex/bigfoot"
4567 (modify-phases %standard-phases
4568 (add-after 'unpack 'remove-generated-file
4570 (for-each delete-file (find-files "." "\\.drv$"))
4572 (home-page "https://www.ctan.org/pkg/bigfoot")
4573 (synopsis "Footnotes for critical editions")
4575 "This package aims to provide a one-stop solution to requirements for
4576 footnotes. It offers: Multiple footnote apparatus superior to that of
4577 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
4578 into a single paragraph (this choice may be selected per footnote series);
4579 Things you might have expected (such as @code{\\verb}-like material in
4580 footnotes, and color selections over page breaks) now work. Note that the
4581 majority of the bigfoot package's interface is identical to that of
4582 @code{manyfoot}; users should seek information from that package's
4583 documentation. The bigfoot bundle also provides the @code{perpage} and
4584 @code{suffix} packages.")
4585 (license license:gpl2+)))
4587 (define-public texlive-latex-blindtext
4589 (name "texlive-latex-blindtext")
4590 (version (number->string %texlive-revision))
4593 (uri (texlive-ref "latex" "blindtext"))
4594 (file-name (string-append name "-" version "-checkout"))
4597 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
4598 (build-system texlive-build-system)
4599 (arguments '(#:tex-directory "latex/blindtext"))
4600 (home-page "https://www.ctan.org/pkg/blindtext")
4601 (synopsis "Producing 'blind' text for testing")
4603 "The package provides the commands @code{\\blindtext} and
4604 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
4605 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
4606 an entire random document with sections, lists, mathematics, etc. The package
4607 supports three languages, @code{english}, @code{(n)german} and @code{latin};
4608 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
4609 ipsum\" text, see the @code{lipsum} package).")
4610 (license license:lppl)))
4612 (define-public texlive-latex-dinbrief
4614 (name "texlive-latex-dinbrief")
4615 (version (number->string %texlive-revision))
4618 (uri (texlive-ref "latex" "dinbrief"))
4619 (file-name (string-append name "-" version "-checkout"))
4622 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
4623 (build-system texlive-build-system)
4625 '(#:tex-directory "latex/dinbrief"
4627 (modify-phases %standard-phases
4628 (add-after 'unpack 'remove-generated-file
4630 (delete-file "dinbrief.drv")
4632 (add-after 'unpack 'fix-encoding-error
4634 (with-fluids ((%default-port-encoding "ISO-8859-1"))
4635 (substitute* "dinbrief.dtx"
4636 (("zur Verf.+ung. In der Pr\"aambel")
4637 "zur Verf\"ung. In der Pr\"aambel")))
4639 (home-page "https://www.ctan.org/pkg/dinbrief")
4640 (synopsis "German letter DIN style")
4642 "This package implements a document layout for writing letters according
4643 to the rules of DIN (Deutsches Institut für Normung, German standardisation
4644 institute). A style file for LaTeX 2.09 (with limited support of the
4645 features) is part of the package. Since the letter layout is based on a
4646 German standard, the user guide is written in German, but most macros have
4647 English names from which the user can recognize what they are used for. In
4648 addition there are example files showing how letters may be created with the
4650 (license license:lppl)))
4652 (define-public texlive-latex-draftwatermark
4654 (name "texlive-latex-draftwatermark")
4655 (version (number->string %texlive-revision))
4658 (uri (texlive-ref "latex" "draftwatermark"))
4659 (file-name (string-append name "-" version "-checkout"))
4662 "0rhn74ywv000b89w8qjf1i0qsk6kd1mjapfwis14jwjvbjqgvj95"))))
4663 (build-system texlive-build-system)
4664 (arguments '(#:tex-directory "latex/draftwatermark"))
4665 (home-page "https://www.ctan.org/pkg/draftwatermark")
4666 (synopsis "Put a grey textual watermark on document pages")
4668 "This package provides a means to add a textual, light grey watermark on
4669 every page or on the first page of a document. Typical usage may consist in
4670 writing words such as DRAFT or CONFIDENTIAL across document pages. The
4671 package performs a similar function to that of @code{draftcopy}, but its
4672 implementation is output device independent, and made very simple by relying
4674 (license license:lppl1.3+)))
4676 (define-public texlive-latex-environ
4678 (name "texlive-latex-environ")
4679 (version (number->string %texlive-revision))
4682 (uri (texlive-ref "latex" "environ"))
4683 (file-name (string-append name "-" version "-checkout"))
4686 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
4687 (build-system texlive-build-system)
4688 (arguments '(#:tex-directory "latex/environ"))
4689 (home-page "https://www.ctan.org/pkg/environ")
4690 (synopsis "New interface for environments in LaTeX")
4692 "This package provides the @code{\\collect@@body} command (as in
4693 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
4694 for collecting the body text of an environment. These commands are used to
4695 define a new author interface to creating new environments.")
4696 (license license:lppl)))
4698 (define-public texlive-latex-eqparbox
4700 (name "texlive-latex-eqparbox")
4701 (version (number->string %texlive-revision))
4704 (uri (texlive-ref "latex" "eqparbox"))
4705 (file-name (string-append name "-" version "-checkout"))
4708 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
4709 (build-system texlive-build-system)
4710 (arguments '(#:tex-directory "latex/eqparbox"))
4711 (home-page "https://www.ctan.org/pkg/eqparbox")
4712 (synopsis "Create equal-widthed parboxes")
4714 "LaTeX users sometimes need to ensure that two or more blocks of text
4715 occupy the same amount of horizontal space on the page. To that end, the
4716 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
4717 just like @code{\\parbox}, except that instead of specifying a width, one
4718 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
4719 where they are in the document---will stretch to fit the widest
4720 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
4721 for a variety of alignment purposes, as is evidenced by the examples in
4722 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
4724 (license license:lppl1.3+)))
4726 (define-public texlive-latex-etoc
4728 (inherit (simple-texlive-package
4729 "texlive-latex-etoc"
4730 '("/doc/latex/etoc/README.md"
4731 "/doc/latex/etoc/etoc.pdf"
4734 "0198cn75m1y8ggbfv1qlnif0d9275f6mxqsansyqw4np0rv6q9sv")
4736 (home-page "https://www.ctan.org/pkg/etoc")
4737 (synopsis "Completely customisable TOCs")
4739 "This package gives the user complete control of how the entries of
4740 the table of contents should be constituted from the name, number, and page
4741 number of each sectioning unit. The layout is controlled by the definition
4742 of ‘line styles’ for each sectioning level used in the document.
4744 The package provides its own custom line styles (which may be used as
4745 examples), and continues to support the standard formatting inherited from
4746 the LaTeX document classes, but the package can also allow the user to
4747 delegate the details to packages dealing with list making environments (such
4748 as enumitem). The package’s default global style typesets tables of contents
4749 in a multi-column format, with either a standard heading, or a ruled title
4750 (optionally with a frame around the table).
4752 The @code{\\tableofcontents} command may be used arbitrarily many times in
4753 the same document, while @code{\\localtableofcontents} provides a ‘local’
4754 table of contents.")
4755 (license license:lppl1.3c+)))
4757 (define-public texlive-latex-expdlist
4759 (name "texlive-latex-expdlist")
4760 (version (number->string %texlive-revision))
4763 (uri (texlive-ref "latex" "expdlist"))
4764 (file-name (string-append name "-" version "-checkout"))
4767 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
4768 (build-system texlive-build-system)
4770 '(#:tex-directory "latex/expdlist"
4772 (modify-phases %standard-phases
4773 (add-after 'unpack 'remove-generated-file
4775 (for-each delete-file
4776 (find-files "." "\\.drv$"))
4778 (home-page "https://www.ctan.org/pkg/expdlist")
4779 (synopsis "Expanded description environments")
4781 "The package provides additional features for the LaTeX
4782 @code{description} environment, including adjustable left margin. The package
4783 also allows the user to \"break\" a list (for example, to interpose a comment)
4784 without affecting the structure of the list (this works for @code{itemize} and
4785 @code{enumerate} lists, and numbered lists remain in sequence).")
4786 (license license:lppl)))
4788 (define-public texlive-filemod
4790 (inherit (simple-texlive-package
4792 (list "/doc/latex/filemod/"
4793 "/tex/latex/filemod/"
4794 "/tex/generic/filemod/")
4796 "1snsj7kblkj1ig3x3845lsypz7ab04lf0dcpdh946xakgjnz4fb5")
4798 (home-page "https://www.ctan.org/pkg/filemod")
4799 (synopsis "Provide file modification times, and compare them")
4801 "This package provides macros to read and compare the modification dates
4802 of files. The files may be @code{.tex} files, images or other files (as long
4803 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
4804 of pdfLaTeX to find the file modification date as PDF date string, parses the
4805 string and returns the value to the user. The package will also work for DVI
4806 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
4807 mode. The functionality is provided by purely expandable macros or by faster
4808 but non-expandable ones.")
4809 (license license:lppl1.3+)))
4811 (define-deprecated-package texlive-latex-filemod texlive-filemod)
4813 (define-public texlive-latex-hanging
4815 (inherit (simple-texlive-package
4816 "texlive-latex-hanging"
4817 '("/tex/latex/hanging/")
4819 "0s86yaxyfv9zxf4svwg9s13by9vrw38apfg0hsfchsimsdd6gsbb")
4821 (home-page "https://www.ctan.org/pkg/hanging")
4822 (synopsis "Typeset hanging paragraphs")
4824 "The @code{hanging} package facilitates the typesetting of hanging
4825 paragraphs. The package also enables typesetting with hanging punctuation,
4826 by making punctuation characters active.")
4827 (license license:lppl1.3c+)))
4829 (define-public texlive-fira
4831 (inherit (simple-texlive-package
4833 (list "doc/fonts/fira/"
4835 "fonts/vf/public/fira/"
4836 "fonts/type1/public/fira/"
4837 "fonts/tfm/public/fira/"
4838 "fonts/opentype/public/fira/"
4839 "fonts/map/dvips/fira/"
4840 "fonts/enc/dvips/fira/")
4841 (base32 "1v3688hziqz4jywfysiv19vsdzfkknrf83zfbi7lhiqpgkpsfsm2")
4843 (build-system texlive-build-system)
4844 (home-page "https://ctan.org/fonts/fira")
4845 (synopsis "Fira fonts with LaTeX support")
4847 "This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX support for
4848 the Fira Sans family of fonts designed by Erik Spiekermann and Ralph du
4849 Carrois of Carrois Type Design. Fira Sans is available in eleven weights with
4850 corresponding italics: light, regular, medium, bold, ...")
4851 (license (list license:lppl
4852 license:silofl1.1))))
4854 (define-public texlive-latex-ifplatform
4856 (name "texlive-latex-ifplatform")
4857 (version (number->string %texlive-revision))
4860 (uri (texlive-ref "latex" "ifplatform"))
4861 (file-name (string-append name "-" version "-checkout"))
4864 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
4865 (build-system texlive-build-system)
4866 (arguments '(#:tex-directory "latex/ifplatform"))
4867 (home-page "https://www.ctan.org/pkg/ifplatform")
4868 (synopsis "Conditionals to test which platform is being used")
4870 "This package uses the (La)TeX extension @code{-shell-escape} to
4871 establish whether the document is being processed on a Windows or on a
4872 Unix-like system, or on Cygwin (Unix environment over a Windows system).
4873 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
4874 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
4875 on a Unix-like system, which may be used to distinguish between various
4876 classes of systems.")
4877 (license license:lppl)))
4879 (define-public texlive-latex-natbib
4881 (name "texlive-latex-natbib")
4882 (version (number->string %texlive-revision))
4885 (uri (texlive-ref "latex" "natbib"))
4886 (file-name (string-append name "-" version "-checkout"))
4889 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
4890 (build-system texlive-build-system)
4891 (arguments '(#:tex-directory "latex/natbib"))
4892 (home-page "https://www.ctan.org/pkg/natbib")
4893 (synopsis "Flexible bibliography support")
4895 "This bundle provides a package that implements both author-year and
4896 numbered references, as well as much detailed of support for other
4897 bibliography use. Also provided are versions of the standard BibTeX styles
4898 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
4899 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
4900 designed from the start to be compatible with @code{natbib}.")
4901 (license license:lppl)))
4903 (define-public texlive-latex-newunicodechar
4905 (inherit (simple-texlive-package
4906 "texlive-latex-newunicodechar"
4907 '("/doc/latex/newunicodechar/" "/tex/latex/newunicodechar/")
4909 "0pwx3ylhvk5hxjnalas00grrbwla79j424i27hrm0zgflq7wsbrj")
4911 (home-page "https://www.ctan.org/pkg/newunicodechar")
4912 (synopsis "Definitions of the meaning of Unicode characters")
4914 "This package provides a friendly interface for defining the meaning of
4915 Unicode characters. The document should be processed by (pdf)LaTeX with the
4916 Unicode option of @code{inputenc} or @code{inputenx}, or by XeLaTeX/LuaLaTeX.")
4917 (license license:lppl1.3c+)))
4919 (define-public texlive-latex-pdftexcmds
4921 (inherit (simple-texlive-package
4922 "texlive-latex-pdftexcmds"
4923 '("/doc/generic/pdftexcmds/"
4924 "/tex/generic/pdftexcmds/")
4926 "1hph0djbfc8hlwfc41rzlf8l3ccyyvc0n7a0qdrr9881jwd6iv1b")
4929 (list texlive-generic-iftex texlive-generic-infwarerr
4930 texlive-generic-ltxcmds))
4931 (home-page "https://www.ctan.org/pkg/pdftexcmds")
4932 (synopsis "LuaTeX support for pdfTeX utility functions")
4934 "This package makes a number of utility functions from pdfTeX
4935 available for luaTeX by reimplementing them using Lua.")
4936 (license license:lppl1.3c+)))
4938 (define-public texlive-latex-psfrag
4940 (name "texlive-latex-psfrag")
4941 (version (number->string %texlive-revision))
4944 (uri (texlive-ref "latex" "psfrag"))
4945 (file-name (string-append name "-" version "-checkout"))
4948 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
4949 (build-system texlive-build-system)
4950 (arguments '(#:tex-directory "latex/psfrag"))
4951 (home-page "https://www.ctan.org/pkg/psfrag")
4952 (synopsis "Replace strings in encapsulated PostScript figures")
4954 "This package allows LaTeX constructions (equations, picture
4955 environments, etc.) to be precisely superimposed over Encapsulated PostScript
4956 figures, using your own favorite drawing tool to create an EPS figure and
4957 placing simple text \"tags\" where each replacement is to be placed, with
4958 PSfrag automatically removing these tags from the figure and replacing them
4959 with a user specified LaTeX construction, properly aligned, scaled, and/or
4961 (license (license:fsf-free "file://psfrag.dtx"))))
4963 (define-public texlive-pstool
4965 (inherit (simple-texlive-package
4967 (list "/doc/latex/pstool/"
4968 "/tex/latex/pstool/")
4970 "12clzcw2cl7g2chr2phgmmiwxw4859cln1gbx1wgp8bl9iw590nc")
4973 (list texlive-latex-bigfoot ; for suffix
4975 texlive-latex-graphics
4976 texlive-latex-ifplatform
4977 texlive-latex-l3kernel ; for expl3
4979 texlive-latex-psfrag
4980 texlive-latex-tools ; for shellesc
4981 texlive-latex-trimspaces
4982 texlive-latex-xkeyval))
4983 (home-page "https://www.ctan.org/pkg/pstool")
4984 (synopsis "Process PostScript graphics within pdfLaTeX documents")
4986 "This is a package for processing PostScript graphics with @code{psfrag}
4987 labels within pdfLaTeX documents. Every graphic is compiled individually,
4988 drastically speeding up compilation time when only a single figure needs
4990 (license license:lppl)))
4992 (define-deprecated-package texlive-latex-pstool texlive-pstool)
4994 (define-public texlive-latex-refcount
4996 (inherit (simple-texlive-package
4997 "texlive-latex-refcount"
4998 (list "/doc/latex/refcount/"
4999 "/tex/latex/refcount/")
5001 "0pkmqj2qihndlv3ks33xzqw91q46jx79r3aygj68d8dflyddi583")
5003 (home-page "https://www.ctan.org/pkg/refcount")
5004 (synopsis "Counter operations with label references")
5006 "This package provides the @code{\\setcounterref} and
5007 @code{\\addtocounterref} commands which use the section (or other) number
5008 from the reference as the value to put into the counter. It also provides
5009 @code{\\setcounterpageref} and @code{\\addtocounterpageref} that do the
5010 corresponding thing with the page reference of the label.")
5011 (license license:lppl1.3c+)))
5013 (define-public texlive-seminar
5015 (inherit (simple-texlive-package
5017 (list "/doc/latex/seminar/"
5018 "/tex/latex/seminar/")
5020 "1clgw5xy867khzfn8d210rc5hsw5s7r0pznhk84niybvw4zc7r3f")
5022 (home-page "https://www.ctan.org/pkg/seminar")
5023 (synopsis "Make overhead slides")
5024 ;; TODO: This package may need fancybox and xcomment at runtime.
5026 "This package provides a class that produces overhead
5027 slides (transparencies), with many facilities. Seminar is not nowadays
5028 reckoned a good basis for a presentation — users are advised to use more
5029 recent classes such as powerdot or beamer, both of which are tuned to
5030 21st-century presentation styles.")
5031 (license license:lppl1.2+)))
5033 (define-deprecated-package texlive-latex-seminar texlive-seminar)
5035 (define-public texlive-latex-stackengine
5037 (inherit (simple-texlive-package
5038 "texlive-latex-stackengine"
5039 (list "/doc/latex/stackengine/"
5040 "/tex/latex/stackengine/")
5042 "1rbw3dmb6kl3wlnpxacr8cmp2ivac1kpnb33k7r5s3lp1q59ck38")
5044 (home-page "https://www.ctan.org/pkg/stackengine")
5045 (synopsis "Customised stacking of objects")
5047 "The package provides a versatile way to stack objects vertically in a
5048 variety of customizable ways. A number of useful macros are provided, all
5049 of which make use of the @code{stackengine} core.")
5050 (license license:lppl1.3+)))
5052 (define-public texlive-latex-tocloft
5054 (inherit (simple-texlive-package
5055 "texlive-latex-tocloft"
5056 '("/doc/latex/tocloft/" "/tex/latex/tocloft/")
5058 "0mg3hpzq7wpm6mnnvb0rp3wby56zyxkyai8d2h3f4vk93zrc6awk")
5060 (home-page "https://www.ctan.org/pkg/tocloft")
5061 (synopsis "Control table of contents")
5063 "This package provides control over the typography of the
5064 @dfn{Table of Contents}, @dfn{List of Figures} and @dfn{List of Tables},
5065 and the ability to create new ‘List of ...’. The ToC @code{\\parskip} may
5067 (license license:lppl1.3c+)))
5069 (define-public texlive-latex-trimspaces
5071 (name "texlive-latex-trimspaces")
5072 (version (number->string %texlive-revision))
5075 (uri (texlive-ref "latex" "trimspaces"))
5076 (file-name (string-append name "-" version "-checkout"))
5079 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
5080 (build-system texlive-build-system)
5082 '(#:tex-directory "latex/trimspaces"
5083 #:tex-format "latex"
5085 (modify-phases %standard-phases
5086 (add-after 'unpack 'fix-bug
5088 ;; The "ins" file refers to the wrong source file.
5089 (substitute* "trimspaces.ins"
5090 (("pstool.tex") "trimspaces.tex"))
5093 (list texlive-latex-filecontents))
5094 (home-page "https://www.ctan.org/pkg/trimspaces")
5095 (synopsis "Trim spaces around an argument or within a macro")
5097 "This very short package allows you to expandably remove spaces around a
5098 token list (commands are provided to remove spaces before, spaces after, or
5099 both); or to remove surrounding spaces within a macro definition, or to define
5100 space-stripped macros.")
5101 (license license:lppl)))
5103 (define-public texlive-calrsfs
5106 (simple-texlive-package
5108 (list "doc/latex/calrsfs/" "tex/latex/calrsfs/")
5109 (base32 "0aqa0k0zzzicx5nynd29i9pdb7a4j6fvf1xwrbm4qg64pl55i6xa")
5111 (home-page "https://ctan.org/macros/latex/contrib/calrsfs")
5112 (synopsis "Copperplate calligraphic letters in LaTeX")
5113 (description "This package provides a math interface to the Rsfs fonts.")
5114 (license license:public-domain)))
5116 (define-public texlive-capt-of
5118 (simple-texlive-package
5120 (list "doc/latex/capt-of/"
5121 "source/latex/capt-of/"
5122 "tex/latex/capt-of/")
5123 (base32 "0bf0cdd9ca3kkqxqqkq6jalh5ybs60l80l5gfkl2whk2v4bnzfvz"))))
5126 (outputs '("out" "doc"))
5128 (substitute-keyword-arguments (package-arguments template)
5129 ((#:tex-directory _ '())
5131 ((#:build-targets _ '())
5132 '(list "capt-of.ins"))
5134 `(modify-phases ,phases
5135 (add-after 'unpack 'chdir
5137 (chdir "source/latex/capt-of")))
5138 (replace 'copy-files
5139 (lambda* (#:key inputs outputs #:allow-other-keys)
5140 (let ((origin (assoc-ref inputs "source"))
5141 (source (string-append (assoc-ref outputs "out")
5142 "/share/texmf-dist/source"))
5143 (doc (string-append (assoc-ref outputs "doc")
5144 "/share/texmf-dist/doc")))
5145 (copy-recursively (string-append origin "/source") source)
5146 (copy-recursively (string-append origin "/doc") doc))))))))
5147 (home-page "https://www.ctan.org/pkg/capt-of")
5148 (synopsis "Captions on more than floats")
5150 "This package defines a command @code{\\captionof} for putting a caption
5151 to something that's not a float.")
5152 (license license:lppl))))
5154 (define-deprecated-package texlive-latex-capt-of texlive-capt-of)
5156 (define-public texlive-carlisle
5158 (inherit (simple-texlive-package
5160 (list "doc/latex/carlisle/"
5161 "source/latex/carlisle/"
5162 "tex/latex/carlisle/")
5163 (base32 "139k4n8dv6pbal1mx4m8b239x3i9cw61f6digk9mxscbxwvxfngb")
5165 (home-page "https://ctan.org/macros/latex/contrib/carlisle")
5166 (synopsis "David Carlisle's small packages")
5168 "Many of David Carlisle's more substantial packages stand on their own,
5169 or as part of the LaTeX latex-tools set; this set contains: making dotless
5170 @emph{j} characters for fonts that don't have them; a method for combining the
5171 capabilities of longtable and tabularx; an environment for including plain TeX
5172 in LaTeX documents; a jiffy to create slashed characters for physicists.")
5173 (license license:lppl)))
5175 (define-public texlive-doi
5177 (inherit (simple-texlive-package
5179 (list "/doc/latex/doi/README.md"
5182 "18z9922lqb3hliqn95h883fndqs4lgyi5yqbnq2932ya0imc3j7h")
5184 (home-page "https://www.ctan.org/pkg/doi")
5185 (synopsis "Create correct hyperlinks for DOI numbers")
5187 "You can hyperlink DOI numbers to doi.org. However, some publishers have
5188 elected to use nasty characters in their DOI numbering scheme (@code{<},
5189 @code{>}, @code{_} and @code{;} have all been spotted). This will either
5190 upset LaTeX, or your PDF reader. This package contains a single user-level
5191 command @code{\\doi{}}, which takes a DOI number, and creates a correct
5192 hyperlink to the target of the DOI.")
5193 ;; Any version of the LPPL.
5194 (license license:lppl1.3+)))
5196 (define-deprecated-package texlive-latex-doi texlive-doi)
5198 (define-public texlive-etoolbox
5200 (inherit (simple-texlive-package
5202 (list "/doc/latex/etoolbox/"
5203 "/tex/latex/etoolbox/")
5205 "070iaj540rglf0c80l0hjkwg6aa7qyskhh4iwyhf7n8vrg5cjjab")
5207 (home-page "https://www.ctan.org/pkg/etoolbox")
5208 (synopsis "e-TeX tools for LaTeX")
5210 "This package is a toolbox of programming facilities geared primarily
5211 towards LaTeX class and package authors. It provides LaTeX frontends to some
5212 of the new primitives provided by e-TeX as well as some generic tools which
5213 are not strictly related to e-TeX but match the profile of this package. The
5214 package provides functions that seem to offer alternative ways of implementing
5215 some LaTeX kernel commands; nevertheless, the package will not modify any part
5216 of the LaTeX kernel.")
5217 (license license:lppl1.3+)))
5219 (define-deprecated-package texlive-latex-etoolbox texlive-etoolbox)
5221 (define-public texlive-latex-fncychap
5223 (name "texlive-latex-fncychap")
5224 (version (number->string %texlive-revision))
5228 (url (string-append "svn://www.tug.org/texlive/tags/"
5229 %texlive-tag "/Master/texmf-dist/"
5230 "/tex/latex/fncychap"))
5231 (revision %texlive-revision)))
5232 (file-name (string-append name "-" version "-checkout"))
5235 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
5236 (build-system trivial-build-system)
5238 `(#:modules ((guix build utils))
5241 (use-modules (guix build utils))
5242 (let ((target (string-append (assoc-ref %outputs "out")
5243 "/share/texmf-dist/tex/latex/fncychap")))
5245 (copy-recursively (assoc-ref %build-inputs "source") target)
5247 (home-page "https://www.ctan.org/pkg/fncychap")
5248 (synopsis "Seven predefined chapter heading styles")
5250 "This package provides seven predefined chapter heading styles. Each
5251 style can be modified using a set of simple commands. Optionally one can
5252 modify the formatting routines in order to create additional chapter
5254 (license license:lppl1.3+)))
5256 (define-public texlive-latex-framed
5258 (name "texlive-latex-framed")
5259 (version (number->string %texlive-revision))
5263 (url (string-append "svn://www.tug.org/texlive/tags/"
5264 %texlive-tag "/Master/texmf-dist/"
5265 "/tex/latex/framed"))
5266 (revision %texlive-revision)))
5267 (file-name (string-append name "-" version "-checkout"))
5270 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
5271 (build-system trivial-build-system)
5273 `(#:modules ((guix build utils))
5276 (use-modules (guix build utils))
5277 (let ((target (string-append (assoc-ref %outputs "out")
5278 "/share/texmf-dist/tex/latex/framed")))
5280 (copy-recursively (assoc-ref %build-inputs "source") target)
5282 (home-page "https://www.ctan.org/pkg/framed")
5283 (synopsis "Framed or shaded regions that can break across pages")
5285 "The package creates three environments: @code{framed}, which puts an
5286 ordinary frame box around the region, @code{shaded}, which shades the region,
5287 and @code{leftbar}, which places a line at the left side. The environments
5288 allow a break at their start (the @code{\\FrameCommand} enables creation of a
5289 title that is “attached” to the environment); breaks are also allowed in the
5290 course of the framed/shaded matter. There is also a command
5291 @code{\\MakeFramed} to make your own framed-style environments.")
5292 ;; The header states: "These macros may be freely transmitted, reproduced,
5293 ;; or modified for any purpose provided that this notice is left intact."
5294 (license (license:fsf-free "file://framed.sty"))))
5296 (define-public texlive-latex-g-brief
5298 (name "texlive-latex-g-brief")
5299 (version (number->string %texlive-revision))
5302 (uri (texlive-ref "latex" "g-brief"))
5303 (file-name (string-append name "-" version "-checkout"))
5306 "1br4kv9y17cvngp83ykpvy7gy3jqfan5plk7sggcgbdfhndi5dsr"))))
5307 (build-system texlive-build-system)
5309 '(#:tex-directory "latex/g-brief"
5311 (modify-phases %standard-phases
5312 (add-after 'unpack 'remove-generated-file
5314 (delete-file "g-brief.drv")
5316 (home-page "https://www.ctan.org/pkg/g-brief")
5317 (synopsis "Letter document class")
5319 "This package is designed for formatting formless letters in German; it
5320 can also be used for English (by those who can read the documentation). There
5321 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
5322 \"old\" and a \"new\" version of g-brief.")
5323 (license license:lppl)))
5325 (define-public texlive-latex-galois
5327 (name "texlive-latex-galois")
5328 (version (number->string %texlive-revision))
5331 (uri (texlive-ref "latex" "galois"))
5332 (file-name (string-append name "-" version "-checkout"))
5335 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
5336 (build-system texlive-build-system)
5337 (arguments '(#:tex-directory "latex/galois"))
5338 (home-page "https://www.ctan.org/pkg/galois")
5339 (synopsis "Typeset Galois connections")
5341 "The package deals with connections in two-dimensional style, optionally
5343 (license license:lppl)))
5345 (define-public texlive-latex-gcite
5347 (name "texlive-latex-gcite")
5348 (version (number->string %texlive-revision))
5351 (uri (texlive-ref "latex" "gcite"))
5352 (file-name (string-append name "-" version "-checkout"))
5355 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
5356 (build-system texlive-build-system)
5357 (arguments '(#:tex-directory "latex/gcite"))
5358 (home-page "https://www.ctan.org/pkg/gcite")
5359 (synopsis "Citations in a reader-friendly style")
5361 "The package allows citations in the German style, which is considered by
5362 many to be particularly reader-friendly. The citation provides a small amount
5363 of bibliographic information in a footnote on the page where each citation is
5364 made. It combines a desire to eliminate unnecessary page-turning with the
5365 look-up efficiency afforded by numeric citations. The package makes use of
5366 BibLaTeX, and is considered experimental.")
5367 (license license:lppl1.3+)))
5369 (define-public texlive-latex-geometry
5371 (name "texlive-latex-geometry")
5372 (version (number->string %texlive-revision))
5375 (uri (texlive-ref "latex" "geometry"))
5376 (file-name (string-append name "-" version "-checkout"))
5379 "0a9nrmiwksnpa6iaapirqid974ai56qgin2n4h9mggy9v8gp7r71"))))
5380 (build-system texlive-build-system)
5381 (arguments '(#:tex-directory "latex/geometry"))
5383 (list texlive-oberdiek)) ;for ifpdf
5384 (home-page "https://www.ctan.org/pkg/geometry")
5385 (synopsis "Flexible and complete interface to document dimensions")
5387 "This package provides an easy and flexible user interface to customize
5388 page layout, implementing auto-centering and auto-balancing mechanisms so that
5389 the users have only to give the least description for the page layout. The
5390 package knows about all the standard paper sizes, so that the user need not
5391 know what the nominal \"real\" dimensions of the paper are, just its standard
5392 name (such as a4, letter, etc.). An important feature is the package's
5393 ability to communicate the paper size it's set up to the output.")
5394 (license license:lppl)))
5396 (define-public texlive-latex-mdwtools
5398 (name "texlive-latex-mdwtools")
5399 (version (number->string %texlive-revision))
5402 (uri (texlive-ref "latex" "mdwtools"))
5403 (file-name (string-append name "-" version "-checkout"))
5406 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
5407 (build-system texlive-build-system)
5408 (arguments '(#:tex-directory "latex/mdwtools"))
5409 (home-page "https://www.ctan.org/pkg/mdwtools")
5410 (synopsis "Miscellaneous tools by Mark Wooding")
5412 "This collection of tools includes: @code{atsupport} for short commands
5413 starting with @code{@@}, macros to sanitize the OT1 encoding of the
5414 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
5415 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
5416 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
5417 array environments; verbatim handling; and syntax diagrams.")
5418 (license license:gpl3+)))
5420 (define-public texlive-latex-polyglossia
5422 (name "texlive-latex-polyglossia")
5423 (version (number->string %texlive-revision))
5426 (uri (texlive-ref "latex" "polyglossia"))
5427 (file-name (string-append name "-" version "-checkout"))
5430 "1ci6hr8hx4g2x359n6wqvw6w8fv42cjjpzxxxd3pn6av5nkaiav3"))))
5431 (build-system texlive-build-system)
5432 (arguments '(#:tex-directory "latex/polyglossia"))
5433 (home-page "https://www.ctan.org/pkg/polyglossia")
5434 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
5436 "This package provides a complete Babel replacement for users of LuaLaTeX
5437 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
5438 (license license:lppl1.3+)))
5440 (define-public texlive-latex-supertabular
5442 (name "texlive-latex-supertabular")
5443 (version (number->string %texlive-revision))
5446 (uri (texlive-ref "latex" "supertabular"))
5447 (file-name (string-append name "-" version "-checkout"))
5450 "19fd0bqxjkzc16bza3w20pnsc90gbhbllm244b3h6sink4dlnn54"))))
5451 (build-system texlive-build-system)
5452 (arguments '(#:tex-directory "latex/supertabular"))
5453 (home-page "https://www.ctan.org/pkg/supertabular")
5454 (synopsis "Multi-page tables package")
5456 "This package was a predecessor of @code{longtable}; the newer
5457 package (designed on quite different principles) is easier to use and more
5458 flexible, in many cases, but supertabular retains its usefulness in a few
5459 situations where longtable has problems.")
5460 (license license:lppl1.3+)))
5462 (define-public texlive-tex-texinfo
5464 (name "texlive-tex-texinfo")
5465 (version (number->string %texlive-revision))
5469 (url (string-append "svn://www.tug.org/texlive/tags/"
5470 %texlive-tag "/Master/texmf-dist/"
5472 (revision %texlive-revision)))
5473 (file-name (string-append name "-" version "-checkout"))
5476 "1qcmcsxdsibca0mad559vhz36xaxsbkivgv1hc98vdyd90fg4y31"))))
5477 (build-system trivial-build-system)
5479 `(#:modules ((guix build utils))
5482 (use-modules (guix build utils))
5483 (let ((target (string-append (assoc-ref %outputs "out")
5484 "/share/texmf-dist/tex/texinfo")))
5486 (copy-recursively (assoc-ref %build-inputs "source") target)
5488 (home-page "https://www.ctan.org/pkg/texinfo")
5489 (synopsis "TeX macros to handle Texinfo files")
5491 "Texinfo is the preferred format for documentation in the GNU project;
5492 the format may be used to produce online or printed output from a single
5493 source. The Texinfo macros may be used to produce printable output using TeX;
5494 other programs in the distribution offer online interactive use (with
5495 hypertext linkages in some cases).")
5496 (license license:gpl3+)))
5498 (define-public texlive-textcase
5500 (inherit (simple-texlive-package
5502 (list "doc/latex/textcase/"
5503 "tex/latex/textcase/"
5504 "source/latex/textcase/")
5506 "185fibd41wd0v51gnai29ygi32snkk00p00110kcnk1bcnmpiw82")
5508 (home-page "https://ctan.org/macros/latex/contrib/textcase")
5509 (synopsis "Case conversion ignoring mathematics, etc")
5511 "The textcase package offers commands @code{\\MakeTextUppercase} and
5512 @code{\\MakeTextLowercase} are similar to the standard @code{\\MakeUppercase}
5513 and @code{\\MakeLowercase}, but they do not change the case of any sections of
5514 mathematics, or the arguments of @code{\\cite}, @code{\\label} and
5515 @code{\\ref} commands within the argument. A further command
5516 @code{\\NoCaseChange} does nothing but suppress case change within its
5517 argument, so to force uppercase of a section including an environment, one
5521 \\MakeTextUppercase{...\\NoCaseChange{\\begin{foo}} ...\\NoCaseChange{\\end{foo}}...}
5523 (license license:lppl)))
5525 (define-public texlive-latex-upquote
5527 (name "texlive-latex-upquote")
5528 (version (number->string %texlive-revision))
5531 (uri (texlive-ref "latex" "upquote"))
5532 (file-name (string-append name "-" version "-checkout"))
5535 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
5536 (build-system texlive-build-system)
5537 (arguments '(#:tex-directory "latex/upquote"))
5538 (home-page "https://www.ctan.org/pkg/upquote")
5539 (synopsis "Show \"realistic\" quotes in verbatim")
5541 "Typewriter-style fonts are best for program listings, but Computer
5542 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
5543 single quotes. Other fonts, and most programming languages, print @code{`} as
5544 a grave accent and @code{'} upright; @code{'} is used both to open and to
5545 close quoted strings. The package switches the typewriter font to Computer
5546 Modern Typewriter in OT1 encoding, and modifies the behaviour of
5547 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
5548 in the expected way. It does this regardless of other fonts or encodings in
5549 use, so long as the package is loaded after the other fonts were. The package
5550 does not affect @code{\\tt}, @code{\\texttt}, etc.")
5551 (license license:lppl1.2+)))
5553 (define-public texlive-latex-anysize
5555 (name "texlive-latex-anysize")
5556 (version (number->string %texlive-revision))
5560 (url (string-append "svn://www.tug.org/texlive/tags/"
5561 %texlive-tag "/Master/texmf-dist/"
5562 "/tex/latex/anysize"))
5563 (revision %texlive-revision)))
5564 (file-name (string-append name "-" version "-checkout"))
5567 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
5568 (build-system trivial-build-system)
5570 `(#:modules ((guix build utils))
5573 (use-modules (guix build utils))
5574 (let ((target (string-append (assoc-ref %outputs "out")
5575 "/share/texmf-dist/tex/latex/anysize")))
5577 (copy-recursively (assoc-ref %build-inputs "source") target)
5579 (home-page "https://www.ctan.org/pkg/anysize")
5580 (synopsis "Simple package to set up document margins")
5582 "This is a simple package to set up document margins. This package is
5583 considered obsolete; alternatives are the @code{typearea} package from the
5584 @code{koma-script} bundle, or the @code{geometry} package.")
5585 (license license:public-domain)))
5587 (define-public texlive-latex-appendix
5589 (name "texlive-latex-appendix")
5590 (version (number->string %texlive-revision))
5593 (uri (texlive-ref "latex" "appendix"))
5594 (file-name (string-append name "-" version "-checkout"))
5597 "1gc2brr2rs495w7qi6spdva1xrza94x7a36dncjdkghnsq8r92h4"))))
5598 (build-system texlive-build-system)
5599 (arguments '(#:tex-directory "latex/appendix"))
5600 (home-page "https://www.ctan.org/pkg/appendix")
5601 (synopsis "Extra control of appendices")
5603 "The appendix package provides various ways of formatting the titles of
5604 appendices. Also (sub)appendices environments are provided that can be used,
5605 for example, for per chapter/section appendices. An @code{appendices}
5606 environment is provided which can be used instead of the @code{\\appendix}
5608 (license license:lppl)))
5610 (define-public texlive-latex-bookmark
5612 (inherit (simple-texlive-package
5613 "texlive-latex-bookmark"
5614 (list "/doc/latex/bookmark/"
5615 "/tex/latex/bookmark/")
5617 "0xwjdah0p4an0fknvgj9y5phl62sf522z6570pvy6c09hkz0j4h1")
5619 (home-page "https://www.ctan.org/pkg/bookmark")
5620 (synopsis "Bookmark (outline) organization for hyperref")
5622 "This package implements a new bookmark (outline) organization for the
5623 @code{hyperref} package. Bookmark properties such as style and color. Other
5624 action types are available (URI, GoToR, Named).")
5625 (license license:lppl1.3c+)))
5627 (define-public texlive-latex-changebar
5629 (name "texlive-latex-changebar")
5630 (version (number->string %texlive-revision))
5633 (uri (texlive-ref "latex" "changebar"))
5634 (file-name (string-append name "-" version "-checkout"))
5637 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
5638 (build-system texlive-build-system)
5639 (arguments '(#:tex-directory "latex/changebar"))
5640 (home-page "https://www.ctan.org/pkg/changebar")
5641 (synopsis "Generate changebars in LaTeX documents")
5643 "Identify areas of text to be marked with changebars with the
5644 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
5645 package uses @code{drivers} to place the bars; the available drivers can work
5646 with @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
5647 drivers, and VTeX and pdfTeX.")
5648 (license license:lppl)))
5650 (define-public texlive-latex-cmap
5652 (name "texlive-latex-cmap")
5653 (version (number->string %texlive-revision))
5657 (url (string-append "svn://www.tug.org/texlive/tags/"
5658 %texlive-tag "/Master/texmf-dist/"
5660 (revision %texlive-revision)))
5661 (file-name (string-append name "-" version "-checkout"))
5664 "0m4r52gw9vwsi1pzwh0cy03jxhwizymi4a2fj3jfs5rrvh105r5y"))))
5665 (build-system trivial-build-system)
5667 `(#:modules ((guix build utils))
5670 (use-modules (guix build utils))
5671 (let ((target (string-append (assoc-ref %outputs "out")
5672 "/share/texmf-dist/tex/latex/cmap")))
5674 (copy-recursively (assoc-ref %build-inputs "source") target)
5676 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
5677 Master/texmf-dist/tex/latex/cmap/")
5678 (synopsis "CMap support for PDF files")
5680 "This package embeds CMap tables into PDF files to make search and
5681 copy-and-paste functions work properly.")
5682 (license license:lppl)))
5684 (define-public texlive-latex-colortbl
5686 (name "texlive-latex-colortbl")
5687 (version (number->string %texlive-revision))
5690 (uri (texlive-ref "latex" "colortbl"))
5691 (file-name (string-append name "-" version "-checkout"))
5694 "1qa0mh0fy9hcvfsmprv6q50q0qzdjjfbxi3axap26z6zg3qj68bc"))))
5695 (build-system texlive-build-system)
5696 (arguments '(#:tex-directory "latex/colortbl"))
5697 (home-page "https://www.ctan.org/pkg/colortbl")
5698 (synopsis "Add colour to LaTeX tables")
5700 "This package allows rows, columns, and even individual cells in LaTeX
5701 tables to be coloured.")
5702 (license license:lppl)))
5704 (define-public texlive-latex-fancybox
5706 (name "texlive-latex-fancybox")
5707 (version (number->string %texlive-revision))
5711 (url (string-append "svn://www.tug.org/texlive/tags/"
5712 %texlive-tag "/Master/texmf-dist/"
5713 "/tex/latex/fancybox"))
5714 (revision %texlive-revision)))
5715 (file-name (string-append name "-" version "-checkout"))
5718 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
5719 (build-system trivial-build-system)
5721 `(#:modules ((guix build utils))
5724 (use-modules (guix build utils))
5725 (let ((target (string-append (assoc-ref %outputs "out")
5726 "/share/texmf-dist/tex/latex/fancybox")))
5728 (copy-recursively (assoc-ref %build-inputs "source") target)
5730 (home-page "https://www.ctan.org/pkg/fancybox")
5731 (synopsis "Variants of \\fbox and other games with boxes")
5733 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
5734 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
5735 using box macros and flexible verbatim macros. You can box mathematics,
5736 floats, center, flushleft, and flushright, lists, and pages.")
5737 (license license:lppl1.2+)))
5739 (define-public texlive-latex-fancyhdr
5741 (name "texlive-latex-fancyhdr")
5742 (version (number->string %texlive-revision))
5746 (url (string-append "svn://www.tug.org/texlive/tags/"
5747 %texlive-tag "/Master/texmf-dist/"
5748 "/tex/latex/fancyhdr"))
5749 (revision %texlive-revision)))
5750 (file-name (string-append name "-" version "-checkout"))
5753 "1h2zv7cps0pknqhy2dyfclyi002lmsfshm0rn6ywfl9p4fnvh0bc"))))
5754 (build-system trivial-build-system)
5756 `(#:modules ((guix build utils))
5759 (use-modules (guix build utils))
5760 (let ((target (string-append (assoc-ref %outputs "out")
5761 "/share/texmf-dist/tex/latex/fancyhdr")))
5763 (copy-recursively (assoc-ref %build-inputs "source") target)
5765 (home-page "https://www.ctan.org/pkg/fancyhdr")
5766 (synopsis "Extensive control of page headers and footers in LaTeX2e")
5768 "The package provides extensive facilities, both for constructing headers
5769 and footers, and for controlling their use (for example, at times when LaTeX
5770 would automatically change the heading style in use).")
5771 (license license:lppl)))
5773 (define-public texlive-latex-float
5775 (name "texlive-latex-float")
5776 (version (number->string %texlive-revision))
5779 (uri (texlive-ref "latex" "float"))
5780 (file-name (string-append name "-" version "-checkout"))
5783 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
5784 (build-system texlive-build-system)
5785 (arguments '(#:tex-directory "latex/float"))
5786 (home-page "https://www.ctan.org/pkg/float")
5787 (synopsis "Improved interface for floating objects")
5789 "This package improves the interface for defining floating objects such
5790 as figures and tables. It introduces the boxed float, the ruled float and the
5791 plaintop float. You can define your own floats and improve the behaviour of
5792 the old ones. The package also provides the @code{H} float modifier option of
5793 the obsolete @code{here} package. You can select this as automatic default
5794 with @code{\\floatplacement{figure}{H}}.")
5795 (license license:lppl)))
5797 (define-public texlive-latex-footmisc
5799 (name "texlive-latex-footmisc")
5800 (version (number->string %texlive-revision))
5803 (uri (texlive-ref "latex" "footmisc"))
5804 (file-name (string-append name "-" version "-checkout"))
5807 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
5808 (build-system texlive-build-system)
5809 (arguments '(#:tex-directory "latex/footmisc"))
5810 (home-page "https://www.ctan.org/pkg/footmisc")
5811 (synopsis "Range of footnote options")
5813 "This is a collection of ways to change the typesetting of footnotes.
5814 The package provides means of changing the layout of the footnotes themselves,
5815 a way to number footnotes per page, to make footnotes disappear in a
5816 \"moving\" argument, and to deal with multiple references to footnotes from
5817 the same place. The package also has a range of techniques for labelling
5818 footnotes with symbols rather than numbers.")
5819 (license license:lppl1.3+)))
5821 (define-public texlive-latex-letltxmacro
5823 (inherit (simple-texlive-package
5824 "texlive-latex-letltxmacro"
5825 (list "/doc/latex/letltxmacro/"
5826 "/tex/latex/letltxmacro/")
5828 "0yy1m1jiyxq2pssp0pidaa2swx6lyxw3zwpm2r8m0v2r3lvsyyxx")
5830 (home-page "https://www.ctan.org/pkg/letltxmacro")
5831 (synopsis "Let assignment for macros")
5833 "TeX’s @code{\\let} assignment does not work for LaTeX macros with
5834 optional arguments, or for macros that are defined as robust macros by
5835 @code{\\DeclareRobustCommand}. This package defines @code{\\LetLtxMacro}
5836 that also takes care of the involved internal macros.")
5837 (license license:lppl1.3c+)))
5839 (define-public texlive-listings
5841 (name "texlive-listings")
5842 (version (number->string %texlive-revision))
5845 (uri (texlive-ref "latex" "listings"))
5847 ;; TODO: Drop "latex-" on next rebuild cycle.
5848 (string-append "texlive-latex-listings-" version "-checkout"))
5851 "082zri3gp8s6p2difhk1pbix2vzmvsf6fmld2z78v35xwk3fiya0"))))
5852 (build-system texlive-build-system)
5854 '(#:tex-directory "latex/listings"
5855 #:build-targets '("listings.ins")))
5856 (home-page "https://www.ctan.org/pkg/listings")
5857 (synopsis "Typeset source code listings using LaTeX")
5859 "The package enables the user to typeset programs (programming code)
5860 within LaTeX; the source code is read directly by TeX---no front-end processor
5861 is needed. Keywords, comments and strings can be typeset using different
5862 styles. Support for @code{hyperref} is provided.")
5863 (license license:lppl1.3+)))
5865 (define-public texlive-latex-listings
5866 (deprecated-package "texlive-latex-listings" texlive-listings))
5868 (define-public texlive-latex-jknapltx
5870 (name "texlive-latex-jknapltx")
5871 (version (number->string %texlive-revision))
5875 (url (string-append "svn://www.tug.org/texlive/tags/"
5876 %texlive-tag "/Master/texmf-dist/"
5877 "/tex/latex/jknapltx"))
5878 (revision %texlive-revision)))
5879 (file-name (string-append name "-" version "-checkout"))
5882 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
5883 (build-system trivial-build-system)
5885 `(#:modules ((guix build utils))
5888 (use-modules (guix build utils))
5889 (let ((target (string-append (assoc-ref %outputs "out")
5890 "/share/texmf-dist/tex/latex/jknapltx")))
5892 (copy-recursively (assoc-ref %build-inputs "source") target)
5894 (home-page "https://www.ctan.org/pkg/jknappen")
5895 (synopsis "Miscellaneous packages by Joerg Knappen")
5897 "This package provides miscellaneous macros by Joerg Knappen, including:
5898 represent counters in greek; Maxwell's non-commutative division;
5899 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
5900 @code{inputenc} definition files that allow verbatim input in the respective
5901 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
5902 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
5903 transliterate semitic languages; patches to make (La)TeX formulae embeddable
5904 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
5905 (license license:gpl2)))
5907 (define-public texlive-latex-kvoptions
5909 (inherit (simple-texlive-package
5910 "texlive-latex-kvoptions"
5911 (list "/doc/latex/kvoptions/"
5912 "/tex/latex/kvoptions/")
5914 "02i4n2n3j4lg68d3nam08m63kb4irc99wfhyc2z51r02lm1wwmvw")
5917 (list texlive-generic-kvsetkeys texlive-generic-ltxcmds))
5918 (home-page "https://www.ctan.org/pkg/kvoptions")
5919 (synopsis "Key/value format for package options")
5921 "This package provides facilities for using key-value format in
5923 (license license:lppl1.3c+)))
5925 (define-public texlive-fonts-ec
5927 (name "texlive-fonts-ec")
5928 (version (number->string %texlive-revision))
5932 (url (string-append "svn://www.tug.org/texlive/tags/"
5933 %texlive-tag "/Master/texmf-dist/"
5934 "/fonts/source/jknappen/ec/"))
5935 (revision %texlive-revision)))
5936 (file-name (string-append name "-" version "-checkout"))
5939 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
5940 (build-system gnu-build-system)
5942 `(#:modules ((guix build gnu-build-system)
5946 #:tests? #f ; no tests
5948 (modify-phases %standard-phases
5951 (lambda* (#:key inputs #:allow-other-keys)
5952 (let ((mf (assoc-ref inputs "texlive-metafont")))
5953 ;; Tell mf where to find mf.base
5954 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
5955 ;; Tell mf where to look for source files
5957 (string-append (getcwd) ":"
5958 mf "/share/texmf-dist/metafont/base:"
5959 (assoc-ref inputs "texlive-cm")
5960 "/share/texmf-dist/fonts/source/public/cm")))
5962 (for-each (lambda (font)
5963 (format #t "building font ~a\n" font)
5964 (invoke "mf" "-progname=mf"
5965 "-output-directory=build"
5970 "input " (basename font ".mf"))))
5971 (find-files "." "[0-9]+\\.mf$"))
5974 (lambda* (#:key outputs #:allow-other-keys)
5975 (let* ((out (assoc-ref outputs "out"))
5977 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
5979 out "/share/texmf-dist/fonts/source/jknappen/ec")))
5980 (for-each (cut install-file <> tfm)
5981 (find-files "build" "\\.*"))
5982 (for-each (cut install-file <> mf)
5983 (find-files "." "\\.mf"))
5986 (list texlive-bin texlive-metafont texlive-cm))
5987 (home-page "https://www.ctan.org/pkg/ec")
5988 (synopsis "Computer modern fonts in T1 and TS1 encodings")
5990 "The EC fonts are European Computer Modern Fonts, supporting the complete
5991 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
5992 These fonts are intended to be stable with no changes being made to the tfm
5993 files. The set also contains a Text Companion Symbol font, called @code{tc},
5994 featuring many useful characters needed in text typesetting, for example
5995 oldstyle digits, currency symbols (including the newly created Euro symbol),
5996 the permille sign, copyright, trade mark and servicemark as well as a copyleft
5997 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
5998 EC fonts supersede the preliminary version released as the DC fonts. The
5999 fonts are available in (traced) Adobe Type 1 format, as part of the
6000 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
6001 set, Latin Modern, is not actually a direct development of the EC set, and
6002 differs from the EC in a number of particulars.")
6003 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
6004 texlive-2019.3/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
6006 ;; FIXME: the fonts should be built from source, but running "tex aefonts.tex"
6007 ;; fails with obscure TeX-typical error messages.
6008 (define-public texlive-ae
6010 (inherit (simple-texlive-package
6012 (list "/doc/fonts/ae/"
6014 "/fonts/tfm/public/ae/"
6015 "/fonts/vf/public/ae/"
6018 "1xkzg381y0avdq381r2m990wp27czkdff0qkvsp2n5q62yc0bdsw")
6020 (home-page "https://www.ctan.org/pkg/ae")
6021 (synopsis "Virtual fonts for T1 encoded CMR-fonts")
6023 "This package provides a set of virtual fonts which emulates T1 coded
6024 fonts using the standard CM fonts. The package name, AE fonts, supposedly
6025 stands for \"Almost European\". The main use of the package was to produce
6026 PDF files using Adobe Type 1 versions of the CM fonts instead of bitmapped EC
6027 fonts. Note that direct substitutes for the bitmapped EC fonts are available,
6028 via the CM-super, Latin Modern and (in a restricted way) CM-LGC font sets.")
6029 (license license:lppl1.3+)))
6031 (define-public texlive-inconsolata
6033 (inherit (simple-texlive-package
6034 "texlive-inconsolata"
6035 (list "/doc/fonts/inconsolata/"
6036 "/fonts/enc/dvips/inconsolata/"
6037 "/fonts/map/dvips/inconsolata/"
6038 "/fonts/opentype/public/inconsolata/"
6039 "/fonts/tfm/public/inconsolata/"
6040 "/fonts/type1/public/inconsolata/"
6041 "/tex/latex/inconsolata/")
6043 "19lvma52vk7x8d7j4s9ymjwm3w2k08860fh6dkzn76scgpdm4wlb")
6045 (home-page "https://www.ctan.org/pkg/inconsolata")
6046 (synopsis "Monospaced font with support files for use with TeX")
6048 "Inconsolata is a monospaced font designed by Raph Levien. This package
6049 contains the font (in both Adobe Type 1 and OpenType formats) in regular and
6050 bold weights, with additional glyphs and options to control slashed zero,
6051 upright quotes and a shapelier lower-case L, plus metric files for use with
6052 TeX, and LaTeX font definition and other relevant files.")
6053 (license (list license:lppl1.3+
6057 (define-public texlive-times
6059 (inherit (simple-texlive-package
6061 (list "/dvips/times/"
6062 "/fonts/afm/adobe/times/"
6063 "/fonts/afm/urw/times/"
6064 "/fonts/tfm/adobe/times/"
6065 "/fonts/tfm/urw35vf/times/"
6066 "/fonts/type1/urw/times/"
6067 "/fonts/vf/adobe/times/"
6068 "/fonts/vf/urw35vf/times/"
6069 "/fonts/map/dvips/times/"
6070 "/tex/latex/times/")
6072 "13g41a7vbkvsf7ki9dgl7qm100w382mnlqkcngwgl3axp6s5s8l0")
6074 (home-page "https://ctan.org/pkg/urw-base35")
6075 (synopsis "URW Base 35 font pack for LaTeX")
6077 "This package provides a drop-in replacements for the Times font from
6078 Adobe's basic set.")
6079 ;; No license version specified.
6080 (license license:gpl3+)))
6082 (define-deprecated-package texlive-fonts-adobe-times texlive-times)
6084 (define-public texlive-palatino
6086 (inherit (simple-texlive-package
6088 (list "/dvips/palatino/"
6089 "/fonts/afm/adobe/palatino/"
6090 "/fonts/afm/urw/palatino/"
6091 "/fonts/tfm/adobe/palatino/"
6092 "/fonts/tfm/urw35vf/palatino/"
6093 "/fonts/type1/urw/palatino/"
6094 "/fonts/vf/adobe/palatino/"
6095 "/fonts/vf/urw35vf/palatino/"
6097 "/fonts/map/dvips/palatino/"
6098 "/tex/latex/palatino/")
6100 "12jc0av7v99857jigmva47qaxyllhpzsnqis10n0qya2kz44xf22")
6102 (home-page "https://ctan.org/pkg/urw-base35")
6103 (synopsis "URW Base 35 font pack for LaTeX")
6105 "This package provides a drop-in replacements for the Palatino font from
6106 Adobe's basic set.")
6107 ;; No license version specified.
6108 (license license:gpl3+)))
6110 (define-deprecated-package texlive-fonts-adobe-palatino texlive-palatino)
6112 (define-public texlive-zapfding
6114 (inherit (simple-texlive-package
6116 (list "/dvips/zapfding/"
6117 "/fonts/afm/adobe/zapfding/"
6118 "/fonts/afm/urw/zapfding/"
6119 "/fonts/tfm/adobe/zapfding/"
6120 "/fonts/tfm/urw35vf/zapfding/"
6121 "/fonts/type1/urw/zapfding/"
6122 "/fonts/map/dvips/zapfding/"
6123 "/tex/latex/zapfding/")
6125 "17mls8wilz9api9ivsbcczpiqp1f39qy8wa6ajssi8zhnc5lq7zn")
6127 (home-page "https://ctan.org/pkg/urw-base35")
6128 (synopsis "URW Base 35 font pack for LaTeX")
6130 "This package provides a drop-in replacements for the Zapfding font from
6131 Adobe's basic set.")
6132 ;; No license version specified.
6133 (license license:gpl3+)))
6135 (define-deprecated-package texlive-fonts-adobe-zapfding texlive-zapfding)
6137 (define-public texlive-fonts-rsfs
6139 (name "texlive-fonts-rsfs")
6140 (version (number->string %texlive-revision))
6144 (url (string-append "svn://www.tug.org/texlive/tags/"
6145 %texlive-tag "/Master/texmf-dist/"
6146 "/fonts/source/public/rsfs/"))
6147 (revision %texlive-revision)))
6148 (file-name (string-append name "-" version "-checkout"))
6151 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
6152 (build-system gnu-build-system)
6154 `(#:modules ((guix build gnu-build-system)
6158 #:tests? #f ; no tests
6160 (modify-phases %standard-phases
6163 (lambda* (#:key inputs #:allow-other-keys)
6164 (let ((mf (assoc-ref inputs "texlive-metafont")))
6165 ;; Tell mf where to find mf.base
6166 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
6167 ;; Tell mf where to look for source files
6169 (string-append (getcwd) ":"
6170 mf "/share/texmf-dist/metafont/base:"
6171 (assoc-ref inputs "texlive-cm")
6172 "/share/texmf-dist/fonts/source/public/cm")))
6174 (for-each (lambda (font)
6175 (format #t "building font ~a\n" font)
6176 (invoke "mf" "-progname=mf"
6177 "-output-directory=build"
6182 "input " (basename font ".mf"))))
6183 (find-files "." "[0-9]+\\.mf$"))
6186 (lambda* (#:key outputs #:allow-other-keys)
6187 (let* ((out (assoc-ref outputs "out"))
6189 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
6191 out "/share/texmf-dist/fonts/source/public/rsfs")))
6192 (for-each (cut install-file <> tfm)
6193 (find-files "build" "\\.*"))
6194 (for-each (cut install-file <> mf)
6195 (find-files "." "\\.mf"))
6198 (list texlive-bin texlive-metafont texlive-cm))
6199 (home-page "https://www.ctan.org/pkg/rsfs")
6200 (synopsis "Ralph Smith's Formal Script font")
6202 "The fonts provide uppercase formal script letters for use as symbols in
6203 scientific and mathematical typesetting (in contrast to the informal script
6204 fonts such as that used for the calligraphic symbols in the TeX maths symbol
6205 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
6206 format. LaTeX support, for using these fonts in mathematics, is available via
6207 one of the packages @code{calrsfs} and @code{mathrsfs}.")
6208 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
6210 (define-public texlive-latex-eso-pic
6212 (name "texlive-latex-eso-pic")
6213 (version (number->string %texlive-revision))
6216 (uri (texlive-ref "latex" "eso-pic"))
6217 (file-name (string-append name "-" version "-checkout"))
6220 "12f7pbhiav4iz3rra5vq85v9f14h8j1ybi42kvnkzgjsay87p7gf"))))
6221 (build-system texlive-build-system)
6222 (arguments '(#:tex-directory "latex/eso-pic"))
6223 (home-page "https://www.ctan.org/pkg/eso-pic")
6224 (synopsis "Add picture commands (or backgrounds) to every page")
6226 "The package adds one or more user commands to LaTeX's @code{shipout}
6227 routine, which may be used to place the output at fixed positions. The
6228 @code{grid} option may be used to find the correct places.")
6229 (license license:lppl1.3+)))
6231 (define-public texlive-latex-eepic
6233 (name "texlive-latex-eepic")
6234 (version (number->string %texlive-revision))
6238 (url (string-append "svn://www.tug.org/texlive/tags/"
6239 %texlive-tag "/Master/texmf-dist/"
6240 "/tex/latex/eepic"))
6241 (revision %texlive-revision)))
6242 (file-name (string-append name "-" version "-checkout"))
6245 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
6246 (build-system trivial-build-system)
6248 `(#:modules ((guix build utils))
6251 (use-modules (guix build utils))
6252 (let ((target (string-append (assoc-ref %outputs "out")
6253 "/share/texmf-dist/tex/latex/eepic")))
6255 (copy-recursively (assoc-ref %build-inputs "source") target)
6257 (home-page "https://www.ctan.org/pkg/eepic")
6258 (synopsis "Extensions to epic and the LaTeX drawing tools")
6260 "Extensions to @code{epic} and the LaTeX picture drawing environment,
6261 include the drawing of lines at any slope, the drawing of circles in any
6262 radii, and the drawing of dotted and dashed lines much faster with much less
6263 TeX memory, and providing several new commands for drawing ellipses, arcs,
6264 splines, and filled circles and ellipses. The package uses @code{tpic}
6265 @code{\\special} commands.")
6266 (license license:public-domain)))
6268 (define-public texlive-enumitem
6271 (simple-texlive-package
6273 (list "doc/latex/enumitem/" "tex/latex/enumitem/")
6274 (base32 "0qwbyjb4a82qjxrfmz06v3w5vly75id4ix4sw7lz2az68kz080dv")
6276 (home-page "https://www.ctan.org/pkg/enumitem")
6277 (synopsis "Customize basic list environments")
6279 "This package is intended to ease customizing the three basic list
6280 environments: @code{enumerate}, @code{itemize} and @code{description}. It
6281 extends their syntax to allow an optional argument where a set of parameters
6282 in the form @code{key=value} are available, for example:
6283 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
6284 (license license:lppl1.3+)))
6286 (define-deprecated-package texlive-latex-enumitem texlive-enumitem)
6288 (define-public texlive-latex-multirow
6290 (name "texlive-latex-multirow")
6291 (version (number->string %texlive-revision))
6294 (uri (texlive-ref "latex" "multirow"))
6295 (file-name (string-append name "-" version "-checkout"))
6298 "1kak9i6nwz6vc4xjj6lbvkb69s49pis6qynjzvsjraxbdw28y2dq"))))
6299 (build-system texlive-build-system)
6300 (arguments '(#:tex-directory "latex/multirow"))
6301 (home-page "https://www.ctan.org/pkg/multirow")
6302 (synopsis "Create tabular cells spanning multiple rows")
6304 "The package provides tools for creating tabular cells spanning multiple
6305 rows. It has a lot of flexibility, including an option for specifying an
6306 entry at the \"natural\" width of its text.")
6307 (license license:lppl1.3+)))
6309 (define-public texlive-latex-overpic
6311 (name "texlive-latex-overpic")
6312 (version (number->string %texlive-revision))
6316 (url (string-append "svn://www.tug.org/texlive/tags/"
6317 %texlive-tag "/Master/texmf-dist/"
6318 "/tex/latex/overpic"))
6319 (revision %texlive-revision)))
6320 (file-name (string-append name "-" version "-checkout"))
6323 "1ygsr0rsdabj61zask3346xrwiphz5i6f1nfb9k4d3234psh09kb"))))
6324 (build-system trivial-build-system)
6326 `(#:modules ((guix build utils))
6329 (use-modules (guix build utils))
6330 (let ((target (string-append (assoc-ref %outputs "out")
6331 "/share/texmf-dist/tex/latex/overpic")))
6333 (copy-recursively (assoc-ref %build-inputs "source") target)
6335 (home-page "https://www.ctan.org/pkg/overpic")
6336 (synopsis "Combine LaTeX commands over included graphics")
6338 "The @code{overpic} environment is a cross between the LaTeX
6339 @code{picture} environment and the @code{\\includegraphics} command of
6340 @code{graphicx}. The resulting picture environment has the same dimensions as
6341 the included graphic. LaTeX commands can be placed on the graphic at defined
6342 positions; a grid for orientation is available.")
6343 (license license:lppl1.0+)))
6345 (define-public texlive-latex-parskip
6347 (name "texlive-latex-parskip")
6348 (version (number->string %texlive-revision))
6352 (url (string-append "svn://www.tug.org/texlive/tags/"
6353 %texlive-tag "/Master/texmf-dist/"
6354 "/tex/latex/parskip"))
6355 (revision %texlive-revision)))
6356 (file-name (string-append name "-" version "-checkout"))
6359 "1zll8jci8lsd7y44j567akf6y8fp2p7qq23rs527zhr0br9mn3sh"))))
6360 (build-system trivial-build-system)
6362 `(#:modules ((guix build utils))
6365 (use-modules (guix build utils))
6366 (let ((target (string-append (assoc-ref %outputs "out")
6367 "/share/texmf-dist/tex/latex/parskip")))
6369 (copy-recursively (assoc-ref %build-inputs "source") target)
6371 (home-page "https://www.ctan.org/pkg/parskip")
6372 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
6374 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
6375 that is untidy; this package (though it is no substitute for a properly
6376 designed class) helps alleviate this untidiness.")
6377 (license license:lppl)))
6379 (define-public texlive-latex-pdfpages
6381 (name "texlive-latex-pdfpages")
6382 (version (number->string %texlive-revision))
6385 (uri (texlive-ref "latex" "pdfpages"))
6386 (file-name (string-append name "-" version "-checkout"))
6389 "140kl8r7g2ak2frjn5pmwiwibfynyfwp897r9vk8pypmn390lzr2"))))
6390 (build-system texlive-build-system)
6391 (arguments '(#:tex-directory "latex/pdfpages"))
6392 (home-page "https://www.ctan.org/pkg/pdfpages")
6393 (synopsis "Include PDF documents in LaTeX")
6395 "This package simplifies the inclusion of external multi-page PDF
6396 documents in LaTeX documents. Pages may be freely selected and it is possible
6397 to put several logical pages onto each sheet of paper. Furthermore a lot of
6398 hypertext features like hyperlinks and article threads are provided. The
6399 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
6400 use this package to insert PostScript files, in addition to PDF files.")
6401 (license license:lppl1.3+)))
6403 (define-public texlive-stmaryrd
6404 (let ((template (simple-texlive-package
6406 (list "/fonts/afm/public/stmaryrd/"
6407 "/fonts/map/dvips/stmaryrd/"
6408 "/fonts/source/public/stmaryrd/"
6409 "/fonts/tfm/public/stmaryrd/"
6410 "/fonts/type1/public/stmaryrd/"
6411 "/source/fonts/stmaryrd/"
6412 "/doc/fonts/stmaryrd/")
6414 "0yn0yl6x1z9ab5gb56lhvkqabd2agz3ggxifwxkiysrj5780j29z"))))
6417 ;; TODO: This package is missing files.
6418 (replacement texlive-stmaryrd/fixed)
6419 (arguments (substitute-keyword-arguments (package-arguments template)
6420 ((#:tex-directory _ #t)
6423 `(modify-phases ,phases
6424 (add-after 'unpack 'chdir
6426 (chdir "source/fonts/stmaryrd")
6428 (add-after 'chdir 'patch-ins
6430 (substitute* "stmaryrd.ins"
6431 (("^%% LaTeX2e.*") "\\input docstrip\n")
6432 (("fontdef\\}\\}" line)
6433 (string-append line "\n\\endbatchfile")))
6435 (home-page "https://www.ctan.org/pkg/stmaryrd")
6436 (synopsis "St Mary Road symbols for theoretical computer science")
6438 "The fonts were originally distributed as Metafont sources only, but
6439 Adobe Type 1 versions are also now available. Macro support is provided for
6440 use under LaTeX; the package supports the @code{only} option (provided by the
6441 @code{somedefs} package) to restrict what is loaded, for those who don't need
6443 (license license:lppl))))
6445 (define-public texlive-stmaryrd/fixed
6447 (inherit texlive-stmaryrd)
6448 (name "texlive-stmaryrd-fixed")
6450 (substitute-keyword-arguments (package-arguments texlive-stmaryrd)
6451 ((#:tex-directory _ #t)
6454 `(modify-phases ,phases
6455 (add-before 'copy-files 'unchdir
6457 (chdir "../../..")))
6458 (add-after 'copy-files 'delete-extra-files
6459 (lambda* (#:key outputs #:allow-other-keys)
6460 (delete-file-recursively
6461 (string-append (assoc-ref outputs "out")
6462 "/share/texmf-dist/source/fonts/stmaryrd/build"))))))))))
6464 (define-deprecated-package texlive-fonts-stmaryrd texlive-stmaryrd)
6466 (define-public texlive-latex-subfigure
6468 (name "texlive-latex-subfigure")
6469 (version (number->string %texlive-revision))
6472 (uri (texlive-ref "latex" "subfigure"))
6473 (file-name (string-append name "-" version "-checkout"))
6476 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
6477 (build-system texlive-build-system)
6478 (arguments '(#:tex-directory "latex/subfigure"))
6479 (home-page "https://www.ctan.org/pkg/subfigure")
6480 (synopsis "Figures divided into subfigures")
6482 "This (deprecated) package provides support for the manipulation and
6483 reference of small or \"sub\" figures and tables within a single figure or
6484 table environment. It is convenient to use this package when your subfigures
6485 are to be separately captioned, referenced, or are to be included in the
6486 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
6487 used inside a figure environment for each subfigure. An optional first
6488 argument is used as the caption for that subfigure. The package is now
6489 considered obsolete: it was superseded by @code{subfig}, but users may find
6490 the more recent @code{subcaption} package more satisfactory.")
6491 (license license:lppl)))
6493 (define-public texlive-latex-tabulary
6495 (name "texlive-latex-tabulary")
6496 (version (number->string %texlive-revision))
6499 (uri (texlive-ref "latex" "tabulary"))
6500 (file-name (string-append name "-" version "-checkout"))
6503 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
6504 (build-system texlive-build-system)
6505 (arguments '(#:tex-directory "latex/tabulary"))
6506 (home-page "https://www.ctan.org/pkg/tabulary")
6507 (synopsis "Tabular with variable width columns balanced")
6509 "The package defines a @code{tabular*}-like environment, @code{tabulary},
6510 taking a \"total width\" argument as well as the column specifications. The
6511 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
6512 variable width columns (@code{\\raggedright}, @code{\\centering},
6513 @code{\\raggedleft}, and normally justified). In contrast to
6514 @code{tabularx}'s @code{X} columns, the width of each column is weighted
6515 according to the natural width of the widest cell in the column.")
6516 (license license:lppl)))
6518 (define-public texlive-latex-threeparttable
6520 (name "texlive-latex-threeparttable")
6521 (version (number->string %texlive-revision))
6525 (url (string-append "svn://www.tug.org/texlive/tags/"
6526 %texlive-tag "/Master/texmf-dist/"
6527 "/tex/latex/threeparttable"))
6528 (revision %texlive-revision)))
6529 (file-name (string-append name "-" version "-checkout"))
6532 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
6533 (build-system trivial-build-system)
6535 `(#:modules ((guix build utils))
6538 (use-modules (guix build utils))
6539 (let ((target (string-append (assoc-ref %outputs "out")
6540 "/share/texmf-dist/tex/latex/threeparttable")))
6542 (copy-recursively (assoc-ref %build-inputs "source") target)
6544 (home-page "https://www.ctan.org/pkg/threeparttable")
6545 (synopsis "Tables with captions and notes all the same width")
6547 "This package facilitates tables with titles (captions) and notes. The
6548 title and notes are given a width equal to the body of the table (a
6549 @code{tabular} environment). By itself, a @code{threeparttable} does not
6550 float, but you can put it in a @code{table} or a @code{table*} or some other
6552 (license (license:fsf-free "file://threeparttable.sty"))))
6554 (define-public texlive-txfonts
6556 (inherit (simple-texlive-package
6558 (list "/doc/fonts/txfonts/"
6560 "/fonts/afm/public/txfonts/"
6561 "/fonts/tfm/public/txfonts/"
6562 "/fonts/type1/public/txfonts/"
6563 "/fonts/vf/public/txfonts/"
6565 "/fonts/map/dvips/txfonts/"
6566 "/fonts/enc/dvips/txfonts/"
6567 "/tex/latex/txfonts/")
6569 "017zjas5y1zlyq0iy4x6mv1qbz23xcy3y5xs0crj6zdnfvnccqgp")
6571 (home-page "https://www.ctan.org/pkg/txfonts")
6572 (synopsis "Times-like fonts in support of mathematics")
6574 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
6575 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
6576 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
6577 providing all the symbols of the Computer Modern and AMS fonts, including all
6578 the Greek capital letters from CMR; and additional maths fonts of various
6581 The set is complemented by a sans-serif set of text fonts, based on
6582 Helvetica/NimbusSanL, and a monospace set.
6584 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
6585 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
6586 ;; Any version of the GPL with font exception.
6587 (license license:gpl3+)))
6589 (define-deprecated-package texlive-fonts-txfonts texlive-txfonts)
6591 (define-public texlive-fonts-iwona
6593 (name "texlive-fonts-iwona")
6597 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
6598 (string-map (lambda (c)
6605 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
6606 (build-system trivial-build-system)
6608 `(#:modules ((guix build utils))
6611 (use-modules (guix build utils))
6612 (let ((target (string-append (assoc-ref %outputs "out")
6613 "/share/texmf-dist/"))
6614 (unzip (search-input-file %build-inputs "/bin/unzip")))
6615 (invoke unzip (assoc-ref %build-inputs "source"))
6617 (copy-recursively "iwona" target)
6621 (home-page "http://jmn.pl/en/kurier-i-iwona/")
6622 (synopsis "Sans-serif typeface for TeX")
6623 (description "Iwona is a two-element sans-serif typeface. It was created
6624 as an alternative version of the Kurier typeface, which was designed in 1975
6625 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
6626 supervision of Roman Tomaszewski. Kurier was designed for linotype
6627 typesetting of newspapers and similar periodicals. The Iwona fonts are an
6628 alternative version of the Kurier fonts. The difference lies in the absence
6629 of ink traps which typify the Kurier font.")
6630 (license license:gfl1.0)))
6632 (define-public texlive-jknappen
6634 (inherit (simple-texlive-package
6636 (list "/fonts/source/jknappen/"
6637 "/fonts/tfm/jknappen/"
6638 "/tex4ht/ht-fonts/alias/jknappen/"
6639 "/tex4ht/ht-fonts/unicode/jknappen/")
6641 "0xvy3c845jc7iw1h9rcm1r2yvm1ni1sm9r9k9j2cfc82xy43rwij")
6643 (home-page "https://www.ctan.org/pkg/jknappen")
6644 (synopsis "Miscellaneous packages by Jörg Knappen")
6646 "This package contains a collection of macros by Jörg Knappen:
6649 New counterstyles @code{\\greek} and @code{\\Greek}.
6651 Non-commutative fractions
6655 Inputenc definition files that allow verbatim input in the respective ISO
6658 Blackboard bold fonts for use in maths.
6660 Mathematical script letters, as traditionally used in physics for Lagrangian,
6661 Hamiltonian, path integral measures, etc.
6663 New alignment options for parboxen at top and bottom of the box.
6665 Interchanges the roles of sans serif and roman fonts throughout the document.
6667 Support for special latin letters and diacritics used in transliteration of
6670 Intelligent hyphen/minus, which guesses whether to render as hyphen or minus.
6672 Commands replacing the characters <, >, and &.
6674 A compatibility package for users of the older versions of the textcomp package.
6676 Simple Young tableaux.
6678 (license license:gpl2))) ;per the 00readme_txt file.
6680 (define-public texlive-jadetex
6681 (let ((template (simple-texlive-package
6683 (list "/doc/man/man1/jadetex.1"
6684 "/doc/man/man1/jadetex.man1.pdf"
6685 "/doc/man/man1/pdfjadetex.1"
6686 "/doc/man/man1/pdfjadetex.man1.pdf"
6687 "/source/jadetex/base/"
6688 ;; The following files are not generated from
6690 "/tex/jadetex/base/jadetex.ini"
6691 "/tex/jadetex/base/pdfjadetex.ini"
6692 "/tex/jadetex/base/uentities.sty")
6694 "03chyc3vjqgxcj985gy4k0bd0lf1n4a6sgbhc7k84jparjk3hx4i"))))
6698 (substitute-keyword-arguments (package-arguments template)
6699 ((#:tex-directory _ #t)
6702 `(modify-phases ,phases
6703 (add-after 'unpack 'unify-source-directory
6705 (chdir "source/jadetex/base")
6706 (for-each (lambda (f)
6707 (copy-file f (basename f)))
6708 (find-files "../../../tex/jadetex/base"))
6710 (add-after 'build 'generate-formats
6711 (lambda* (#:key inputs #:allow-other-keys)
6713 (for-each (lambda (f)
6714 (symlink f (basename f)))
6715 (find-files "build"))
6716 (invoke "fmtutil-sys" "--byfmt" "jadetex"
6718 (invoke "fmtutil-sys" "--byfmt" "pdfjadetex"
6720 (add-after 'install 'install-formats-and-wrappers
6721 (lambda* (#:key inputs outputs #:allow-other-keys)
6722 (let* ((out (assoc-ref outputs "out"))
6723 (texlive-bin (assoc-ref inputs "texlive-bin"))
6724 (pdftex (string-append texlive-bin "/bin/pdftex"))
6725 (web2c (string-append out "/share/texmf-dist/web2c")))
6727 (copy-recursively "web2c" web2c)
6728 ;; Create convenience command wrappers.
6729 (mkdir-p (string-append out "/bin"))
6730 (symlink pdftex (string-append out "/bin/jadetex"))
6731 (symlink pdftex (string-append out "/bin/pdfjadetex"))
6734 ;; Propagate the texlive-updmap.cfg input used by xmltex, which provides the
6735 ;; required fonts for its use.
6736 (list texlive-xmltex texlive-kpathsea)) ;for fmtutil.cnf template
6738 (list texlive-cm ;for cmex10 and others
6739 texlive-fonts-latex ;for lasy6
6740 ;; The t1cmr.fd file of texlive-latex-base refers to the ecrm font,
6741 ;; provided by the jknappen package collection.
6744 texlive-latex-colortbl
6745 texlive-latex-fancyhdr
6746 texlive-latex-graphics ;for color.sty
6747 texlive-latex-tools ;for array.sty
6749 texlive-tex-ini-files ;for pdftexconfig
6751 (home-page "https://www.ctan.org/pkg/jadetex/")
6752 (synopsis "TeX macros to produce TeX output using OpenJade")
6753 (description "JadeTeX is a companion package to the OpenJade DSSSL
6754 processor. OpenJade applies a DSSSL stylesheet to an SGML or XML document.
6755 The output of this process can be in a number of forms, including a set of
6756 high level LaTeX macros. It is the task of the JadeTeX package to transform
6757 these macros into DVI/PostScript (using the @command{jadetex} command) or
6758 Portable Document Format (PDF) form (using the @command{pdfjadetex}
6760 ;; The license text is found at the header of the jadetex.dtx file.
6761 (license license:expat))))
6763 (define-public texlive-libertine
6765 (inherit (simple-texlive-package
6767 (list "/doc/fonts/libertine/"
6769 "/fonts/enc/dvips/libertine/"
6770 "/fonts/map/dvips/libertine/"
6771 "/fonts/opentype/public/libertine/"
6772 "/fonts/tfm/public/libertine/"
6773 "/fonts/type1/public/libertine/"
6774 "/fonts/vf/public/libertine/"
6776 "/tex/latex/libertine/")
6778 "1d5r80isyvs2v3i8pzlhsn7ns6bn8ldkbs82g25widraixlhg6yg")
6780 (home-page "https://www.ctan.org/pkg/libertine")
6781 (synopsis "Use Linux Libertine and Biolinum fonts with LaTeX")
6783 "The package provides the Libertine and Biolinum fonts in both Type 1 and
6784 OTF styles, together with support macros for their use. Monospaced and
6785 display fonts, and the \"keyboard\" set are also included, in OTF style, only.
6786 The @code{mweights} package is used to manage the selection of font weights.
6787 The package supersedes both the @code{libertineotf} and the
6788 @code{libertine-legacy} packages.")
6789 (license (list license:gpl2+ ; with font exception
6793 (define-public texlive-dejavu
6795 (inherit (simple-texlive-package
6797 (list "/doc/fonts/dejavu/"
6799 "/fonts/enc/dvips/dejavu/"
6800 "/fonts/map/dvips/dejavu/"
6802 "/fonts/afm/public/dejavu/"
6803 "/fonts/tfm/public/dejavu/"
6804 "/fonts/truetype/public/dejavu/"
6805 "/fonts/type1/public/dejavu/"
6806 "/fonts/vf/public/dejavu/"
6808 "/tex/latex/dejavu/")
6810 "0y4qf5jl0xncah9nkcaalmy69wwq02n3j895zp71n2p0nfi24aka")
6812 (home-page "https://www.ctan.org/pkg/libertine")
6813 (synopsis "LaTeX support for the DejaVu fonts")
6815 "The package contains LaTeX support for the DejaVu fonts, which are
6816 derived from the Vera fonts but contain more characters and styles. The fonts
6817 are included in the original TrueType format, and in converted Type 1 format.
6818 The (currently) supported encodings are: OT1, T1, IL2, TS1, T2*, X2, QX, and
6819 LGR. The package doesn't (currently) support mathematics.")
6820 (license license:lppl)))
6822 (define-public texlive-latex-titlesec
6824 (name "texlive-latex-titlesec")
6825 (version (number->string %texlive-revision))
6829 (url (string-append "svn://www.tug.org/texlive/tags/"
6830 %texlive-tag "/Master/texmf-dist/"
6831 "/tex/latex/titlesec"))
6832 (revision %texlive-revision)))
6833 (file-name (string-append name "-" version "-checkout"))
6836 "1kw7dvxvdfbf31zw0n8r0g5xak3vcdf25n33fqw93j59zpc5nvbl"))))
6837 (build-system trivial-build-system)
6839 `(#:modules ((guix build utils))
6842 (use-modules (guix build utils))
6843 (let ((target (string-append (assoc-ref %outputs "out")
6844 "/share/texmf-dist/tex/latex/titlesec")))
6846 (copy-recursively (assoc-ref %build-inputs "source") target)
6848 (home-page "https://www.ctan.org/pkg/titlesec")
6849 (synopsis "Select alternative section titles")
6851 "This package provides an interface to sectioning commands for selection
6852 from various title styles, e.g. for marginal titles and to change the font of
6853 all headings with a single command, also providing simple one-step page
6854 styles. It also includes a package to change the page styles when there are
6855 floats in a page. You may assign headers/footers to individual floats, too.")
6856 (license license:lppl)))
6858 (define-public texlive-latex-type1cm
6860 (name "texlive-latex-type1cm")
6861 (version (number->string %texlive-revision))
6864 (uri (texlive-ref "latex" "type1cm"))
6865 (file-name (string-append name "-" version "-checkout"))
6868 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
6869 (build-system texlive-build-system)
6870 (arguments '(#:tex-directory "latex/type1cm"))
6871 (home-page "https://www.ctan.org/pkg/type1cm")
6872 (synopsis "Arbitrary size font selection in LaTeX")
6874 "LaTeX, by default, restricts the sizes at which you can use its default
6875 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
6876 specified by Knuth). The @code{type1cm} package removes this restriction;
6877 this is particularly useful when using scalable versions of the CM
6878 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
6879 PCTeX, etc.). In fact, since modern distributions will automatically generate
6880 any bitmap font you might need, @code{type1cm} has wider application than just
6881 those using scalable versions of the fonts. Note that the LaTeX distribution
6882 now contains a package @code{fix-cm},f which performs the task of
6883 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
6885 (license license:lppl)))
6887 (define-public texlive-lh
6888 (let ((template (simple-texlive-package
6890 (list "/doc/fonts/lh/"
6896 "0vw75i52asi5sssp8k9r8dy4ihvqbvmbsl3dini3ls8cky15lz37"))))
6899 (outputs '("out" "doc"))
6901 (substitute-keyword-arguments (package-arguments template)
6902 ((#:tex-directory _ #t)
6904 ((#:build-targets _ '())
6905 ''("nfssfox.ins" "lcyfonts.ins" "ot2fonts.ins" "t2ccfonts.ins"))
6907 `(modify-phases ,phases
6908 (add-after 'unpack 'chdir
6909 (lambda _ (chdir "source/latex/lh")))
6910 (replace 'copy-files
6911 (lambda* (#:key inputs outputs #:allow-other-keys)
6912 (let* ((source (assoc-ref inputs "source"))
6913 (doc (string-append (assoc-ref outputs "doc")
6914 "/share/texmf-dist/doc"))
6915 (target (string-append (assoc-ref outputs "out")
6916 "/share/texmf-dist"))
6917 (tex (string-append target "/tex/latex/lh/")))
6918 (copy-recursively "build/" tex)
6919 (copy-recursively (string-append source "/fonts/source/lh")
6920 (string-append target "/fonts/source/lh"))
6921 (copy-recursively (string-append source "/tex/plain/lh")
6922 (string-append target "/tex/plain/lh"))
6923 (copy-recursively (string-append source "/doc")
6925 (home-page "https://www.ctan.org/pkg/lh")
6926 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
6928 "The LH fonts address the problem of the wide variety of alphabets that
6929 are written with Cyrillic-style characters. The fonts are the original basis
6930 of the set of T2* and X2 encodings that are now used when LaTeX users need to
6931 write in Cyrillic languages. Macro support in standard LaTeX encodings is
6932 offered through the latex-cyrillic and t2 bundles, and the package itself
6933 offers support for other (more traditional) encodings. The fonts, in the
6934 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
6935 CM-Super family of fonts. The package also offers its own LaTeX support for
6936 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
6937 (license license:lppl))))
6939 (define-deprecated-package texlive-latex-lh texlive-lh)
6941 (define-public texlive-marvosym
6943 (inherit (simple-texlive-package
6945 (list "/doc/fonts/marvosym/"
6946 "/fonts/afm/public/marvosym/"
6947 "/fonts/map/dvips/marvosym/"
6948 "/fonts/tfm/public/marvosym/"
6949 "/fonts/truetype/public/marvosym/"
6950 "/fonts/type1/public/marvosym/"
6951 "/tex/latex/marvosym/")
6953 "0m3bbg06cia8ni86fjhvb7x4a5qcxgnpqcvicfms91w2px9ysc46")
6955 (home-page "https://martinvogel.de/blog/index.php?\
6956 /archives/131-Marvosym.ttf.html")
6957 (synopsis "Martin Vogel's Symbols (marvosym) font")
6958 (description "The Martin Vogel’s Symbols fonts (marvosym) contains the
6959 Euro currency symbol as defined by the European commission, along with symbols
6960 for structural engineering, symbols for steel cross-sections, astronomy
6961 signs (sun, moon, planets), the 12 signs of the zodiac, scissor symbols, CE
6962 sign and others. This package contains both the original TrueType font and
6963 the derived Type 1 font, together with support files for TeX (LaTeX).")
6964 (license (list license:lppl ;for TeX support files
6965 license:silofl1.1)))) ;for fonts
6967 (define-public texlive-metapost
6969 (name "texlive-metapost")
6970 (version (number->string %texlive-revision))
6974 (url (string-append "svn://www.tug.org/texlive/tags/"
6975 %texlive-tag "/Master/texmf-dist/"
6977 (revision %texlive-revision)))
6978 (file-name (string-append name "-" version "-checkout"))
6981 "140k9dz2g2vj5ypgyqx3px9c1y9a820y8kq139p96lw0yk6839aw"))))
6982 (build-system trivial-build-system)
6984 `(#:modules ((guix build utils))
6987 (use-modules (guix build utils))
6988 (let ((target (string-append (assoc-ref %outputs "out")
6989 "/share/texmf-dist/metapost")))
6991 (copy-recursively (assoc-ref %build-inputs "source") target)
6993 (home-page "https://www.ctan.org/pkg/metapost")
6994 (synopsis "Create scalable illustrations")
6996 "MetaPost uses a language based on that of Metafont to produce precise
6997 technical illustrations. Its output is scalable PostScript or SVG, rather
6998 than the bitmaps Metafont creates.")
6999 (license license:lppl)))
7001 (define-public texlive-latex-acmart
7003 (name "texlive-latex-acmart")
7007 (uri (texlive-ref "latex" "acmart"))
7010 "12wxav9r6v7dlfja9myrwz7famgfpcfwd292qzmgg283xgngh9kd"))
7011 (file-name (string-append name "-" version "-checkout"))))
7012 (build-system texlive-build-system)
7013 (arguments '(#:tex-directory "latex/acmart"))
7014 (home-page "https://www.ctan.org/pkg/acmart")
7015 (synopsis "Class for typesetting publications of ACM")
7017 "This package provides a class for typesetting publications of the
7018 Association for Computing Machinery (ACM).")
7019 (license license:lppl1.3+)))
7021 (define-public texlive-latex-varwidth
7023 (name "texlive-latex-varwidth")
7024 (version (number->string %texlive-revision))
7028 (url (string-append "svn://www.tug.org/texlive/tags/"
7029 %texlive-tag "/Master/texmf-dist/"
7030 "/tex/latex/varwidth"))
7031 (revision %texlive-revision)))
7032 (file-name (string-append name "-" version "-checkout"))
7035 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
7036 (build-system trivial-build-system)
7038 `(#:modules ((guix build utils))
7041 (use-modules (guix build utils))
7042 (let ((target (string-append (assoc-ref %outputs "out")
7043 "/share/texmf-dist/tex/latex/varwidth")))
7045 (copy-recursively (assoc-ref %build-inputs "source") target)
7047 (home-page "https://www.ctan.org/pkg/varwidth")
7048 (synopsis "Variable-width minipage")
7050 "The @code{varwidth} environment is superficially similar to
7051 @code{minipage}, but the specified width is just a maximum value — the box may
7052 get a narrower “natural” width.")
7053 (license license:lppl)))
7055 (define-public texlive-varwidth
7057 (inherit (simple-texlive-package
7059 (list "doc/latex/varwidth/" "tex/latex/varwidth/")
7060 (base32 "0jcrv4klcjpl17ml0zyqfvkrq6qwn2imxv8syqs5m6qk0fk7hg6l")
7062 (home-page "https://ctan.org/macros/latex/contrib/varwidth")
7063 (synopsis "Variable-width minipage LaTeX environment")
7065 "The varwidth environment is superficially similar to minipage, but the
7066 specified width is just a maximum value --- the box may get a narrower natural
7068 (license license:lppl)))
7070 (define-public texlive-wasy
7072 (inherit (simple-texlive-package
7074 (list "/fonts/source/public/wasy/"
7075 "/fonts/tfm/public/wasy/"
7079 "1swzxgld3lndi5q0q6zkwbw06ndh13fvp04as7zpwyhh646s0hbx")
7081 (home-page "https://www.ctan.org/pkg/wasy")
7082 (synopsis "Waldi symbol fonts")
7083 (description "This package provides the @code{wasy} (Waldi symbol) fonts,
7084 in the Metafont and Adobe Type 1 formats. Support under LaTeX is provided by
7085 the @code{wasysym} package.")
7086 (license license:public-domain)))
7088 (define-public texlive-wasysym
7090 (name "texlive-wasysym")
7091 (version (number->string %texlive-revision))
7094 (uri (texlive-ref "latex" "wasysym"))
7095 (file-name (string-append name "-" version "-checkout"))
7098 "0zxcf0pfqf439cfwl0r5dd93b0v4pbiih36n2pwshdlvnmy0nr50"))))
7099 (build-system texlive-build-system)
7100 (arguments '(#:tex-directory "latex/wasysym"))
7101 (home-page "https://www.ctan.org/pkg/wasysym")
7102 (synopsis "LaTeX support file to use the @code{wasy} fonts")
7104 "The @code{wasy} (Waldi Symbol) font by Roland Waldi provides many glyphs like
7105 male and female symbols and astronomical symbols, as well as the complete
7106 @code{lasy} font set and other odds and ends. The @code{wasysym} package
7107 implements an easy to use interface for these symbols.")
7108 (license license:lppl)))
7110 (define-deprecated-package texlive-latex-wasysym texlive-wasysym)
7112 (define-public texlive-wrapfig
7115 (simple-texlive-package
7117 (list "doc/latex/wrapfig/" "tex/latex/wrapfig/")
7118 (base32 "0wk1vp0dqsp597xzsqbwj8xk80v7d77qmpjir84n54f920rf9ka9")
7120 (home-page "https://ctan.org/macros/latex/contrib/wrapfig")
7121 (synopsis "Produces figures which text can flow around")
7123 "This package allows figures or tables to have text wrapped around them.
7124 It does not work in combination with list environments, but can be used in a
7125 @code{parbox} or @code{minipage}, and in two-column format.")
7126 (license license:lppl)))
7128 (define-deprecated-package texlive-latex-wrapfig texlive-wrapfig)
7130 (define-public texlive-latex-ucs
7132 (name "texlive-latex-ucs")
7133 (version (number->string %texlive-revision))
7137 (url (string-append "svn://www.tug.org/texlive/tags/"
7138 %texlive-tag "/Master/texmf-dist/"
7140 (revision %texlive-revision)))
7141 (file-name (string-append name "-" version "-checkout"))
7144 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
7145 (build-system trivial-build-system)
7147 `(#:modules ((guix build utils))
7150 (use-modules (guix build utils))
7151 (let ((target (string-append (assoc-ref %outputs "out")
7152 "/share/texmf-dist/tex/latex/ucs")))
7154 (copy-recursively (assoc-ref %build-inputs "source") target)
7156 (home-page "https://www.ctan.org/pkg/ucs")
7157 (synopsis "Extended UTF-8 input encoding support for LaTeX")
7159 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
7160 together with a large number of support files. The @code{utf8x.def}
7161 definition file for use with @code{inputenc} covers a wider range of Unicode
7162 characters than does @code{utf8.def} in the LaTeX distribution. The package
7163 provides facilities for efficient use of its large sets of Unicode characters.
7164 Glyph production may be controlled by various options, which permits use of
7165 non-ASCII characters when coding mathematical formulae. Note that the bundle
7166 previously had an alias “unicode”; that alias has now been withdrawn, and no
7167 package of that name now exists.")
7168 (license license:lppl1.3+)))
7170 (define-public texlive-latex-preview
7172 (name "texlive-latex-preview")
7173 (version (number->string %texlive-revision))
7176 (uri (texlive-ref "latex" "preview"))
7177 (file-name (string-append name "-" version "-checkout"))
7180 "0hnf821yvki9bzfkz79ns9m1msjp3yvd4dhf3268wrpr1zjx6w8v"))))
7181 (build-system texlive-build-system)
7183 '(#:tex-directory "latex/preview"
7185 (modify-phases %standard-phases
7186 (add-after 'unpack 'remove-generated-file
7188 (delete-file "preview.drv")
7190 (home-page "https://www.ctan.org/pkg/preview")
7191 (synopsis "Extract bits of a LaTeX source for output")
7193 "The main purpose of the preview package is the extraction of selected
7194 elements from a LaTeX source, like formulas or graphics, into separate
7195 pages of a DVI file. A flexible and convenient interface allows it to
7196 specify what commands and constructs should be extracted. This works
7197 with DVI files postprocessed by either Dvips and Ghostscript or
7198 dvipng, but it also works when you are using PDFTeX for generating PDF
7200 (license license:gpl3+)))
7202 (define-public texlive-latex-acronym
7204 (name "texlive-latex-acronym")
7205 (version (number->string %texlive-revision))
7208 (uri (texlive-ref "latex" "acronym"))
7209 (file-name (string-append name "-" version "-checkout"))
7212 "09pd4wynksg1y1ddxnqbhk2dc185zw5nyi794d86n3qx8l014ijy"))))
7213 (build-system texlive-build-system)
7214 (arguments '(#:tex-directory "latex/acronym"))
7215 (home-page "https://www.ctan.org/pkg/acronym")
7216 (synopsis "Expand acronyms at least once")
7218 "This package ensures that all acronyms used in the text are spelled out
7219 in full at least once. It also provides an environment to build a list of
7220 acronyms used. The package is compatible with PDF bookmarks. The package
7221 requires the suffix package, which in turn requires that it runs under
7223 (license license:lppl1.3+)))
7225 (define-public texlive-pdftex
7227 (inherit (simple-texlive-package
7229 (list "/doc/pdftex/"
7230 "/doc/man/man1/pdftex.1"
7231 "/doc/man/man1/pdfetex.1"
7232 "/fonts/map/dvips/dummy-space/dummy-space.map"
7233 "/fonts/tfm/public/pdftex/dummy-space.tfm"
7234 "/fonts/type1/public/pdftex/dummy-space.pfb"
7235 "/scripts/simpdftex/simpdftex"
7236 "/tex/generic/config/pdftex-dvi.tex"
7237 "/tex/generic/pdftex/glyphtounicode.tex"
7238 "/tex/generic/pdftex/pdfcolor.tex")
7240 "1wx928rqsv0x1a8vc7aq49w3nglr4bmlhl822slqglymfxrmb91b")
7242 ;; TODO: add this missing package:
7250 texlive-tex-ini-files
7252 (home-page "https://www.ctan.org/pkg/pdftex")
7253 (synopsis "TeX extension for direct creation of PDF")
7255 "This package provides an extension of TeX which can be configured to
7256 directly generate PDF documents instead of DVI.")
7257 (license license:gpl2+)))
7259 (define-deprecated-package texlive-generic-pdftex texlive-pdftex)
7261 (define texlive-texmf
7263 (name "texlive-texmf")
7264 (version "20210325")
7265 (source texlive-texmf-src)
7266 (build-system gnu-build-system)
7268 `(("texlive-bin" ,texlive-bin)
7275 `(#:modules ((guix build gnu-build-system)
7279 ;; This package takes 4 GiB, which we can't afford to distribute from
7284 (modify-phases (map (cut assq <> %standard-phases)
7285 '(set-paths unpack patch-source-shebangs))
7286 (add-after 'unpack 'unset-environment-variables
7289 (unsetenv "TEXMFCNF")
7291 (add-after 'patch-source-shebangs 'install
7292 (lambda* (#:key outputs #:allow-other-keys)
7293 (let ((share (string-append (assoc-ref outputs "out") "/share")))
7295 (invoke "mv" "texmf-dist" share))))
7296 (add-after 'install 'texmf-config
7297 (lambda* (#:key inputs outputs #:allow-other-keys)
7298 (let* ((out (assoc-ref outputs "out"))
7299 (share (string-append out "/share"))
7300 (texmfroot (string-append share "/texmf-dist/web2c"))
7301 (texmfcnf (string-append texmfroot "/texmf.cnf"))
7302 (fmtutilcnf (string-append texmfroot "/fmtutil.cnf"))
7303 (texlive-bin (assoc-ref inputs "texlive-bin"))
7304 (texbin (string-append texlive-bin "/bin"))
7305 (tlpkg (string-append texlive-bin "/share/tlpkg")))
7306 ;; LuaJIT is not ported to powerpc64* yet.
7307 (if ,(target-ppc64le?)
7308 (substitute* fmtutilcnf
7309 (("^(luajittex|luajithbtex|mfluajit)" m)
7310 (string-append "#! " m))))
7311 ;; Register SHARE as TEXMFROOT in texmf.cnf.
7312 (substitute* texmfcnf
7313 (("TEXMFROOT = \\$SELFAUTOPARENT")
7314 (string-append "TEXMFROOT = " share))
7315 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
7316 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
7317 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
7318 ;; Register paths in texmfcnf.lua, needed for context.
7319 (substitute* (string-append texmfroot "/texmfcnf.lua")
7320 (("selfautodir:") out)
7321 (("selfautoparent:") (string-append share "/")))
7322 ;; Set path to TeXLive Perl modules
7324 (string-append (getenv "PERL5LIB") ":" tlpkg))
7325 ;; Configure the texmf-dist tree; inspired from
7326 ;; http://slackbuilds.org/repository/13.37/office/texlive/
7327 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
7328 (setenv "TEXMFCNF" texmfroot)
7329 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
7331 (invoke "fmtutil-sys" "--all")))))))
7332 (properties `((max-silent-time . 9600))) ; don't time out while grafting
7333 (synopsis "TeX Live, a package of the TeX typesetting system")
7335 "TeX Live provides a comprehensive TeX document production system.
7336 It includes all the major TeX-related programs, macro packages, and fonts
7337 that are free software, including support for many languages around the
7340 This package contains the complete tree of texmf-dist data.")
7341 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
7342 (home-page "https://www.tug.org/texlive/")))
7344 (define-public texlive
7347 (version "20210325")
7349 (build-system trivial-build-system)
7350 (inputs `(("bash" ,bash-minimal) ;for wrap-program
7351 ("texlive-bin" ,texlive-bin)
7352 ("texlive-texmf" ,texlive-texmf)))
7353 (native-search-paths
7354 (list (search-path-specification
7355 (variable "TEXMFLOCAL")
7356 (files '("share/texmf-local")))))
7358 `(#:modules ((guix build utils))
7360 ;; Build the union of texlive-bin and texlive-texmf, but take the
7361 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
7363 (use-modules (guix build utils))
7364 (let ((out (assoc-ref %outputs "out"))
7365 (bin (assoc-ref %build-inputs "texlive-bin"))
7366 (texmf (assoc-ref %build-inputs "texlive-texmf"))
7367 (bash (assoc-ref %build-inputs "bash")))
7369 (with-directory-excursion out
7372 (symlink (string-append bin "/" name) name))
7375 (with-directory-excursion "bin"
7376 (setenv "PATH" (string-append bash "/bin"))
7379 (symlink name (basename name))
7383 (,(string-append texmf "/share/texmf-dist/web2c")))))
7384 (find-files (string-append bin "/bin/") "")))
7386 (with-directory-excursion "share"
7389 (symlink (string-append bin "/share/" name) name))
7390 '("info" "man" "tlpkg"))
7393 (symlink (string-append texmf "/share/" name) name))
7394 '("texmf-dist" "texmf-var"))))
7396 (synopsis "TeX Live, a package of the TeX typesetting system")
7398 "TeX Live provides a comprehensive TeX document production system.
7399 It includes all the major TeX-related programs, macro packages, and fonts
7400 that are free software, including support for many languages around the
7403 This package contains the complete TeX Live distribution.")
7404 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
7405 (home-page "https://www.tug.org/texlive/")))
7407 (define-public perl-text-bibtex
7409 (name "perl-text-bibtex")
7414 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
7418 "0b7lmjvfmypps1nw6nsdikgaakm0n0g4186glaqazg5xd1p5h55h"))))
7419 (build-system perl-build-system)
7422 (modify-phases %standard-phases
7423 (add-after 'unpack 'add-output-directory-to-rpath
7424 (lambda* (#:key outputs #:allow-other-keys)
7425 (substitute* "inc/MyBuilder.pm"
7427 (string-append "-Wl,-rpath="
7428 (assoc-ref outputs "out") "/lib " line)))
7430 (add-after 'unpack 'install-libraries-to-/lib
7431 (lambda* (#:key outputs #:allow-other-keys)
7432 (substitute* "Build.PL"
7436 (list perl-capture-tiny perl-config-autoconf perl-extutils-libbuilder
7438 (home-page "https://metacpan.org/release/Text-BibTeX")
7439 (synopsis "Interface to read and parse BibTeX files")
7440 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
7441 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
7442 at many different levels: you may work with BibTeX entries as simple field to
7443 string mappings, or get at the original form of the data as a list of simple
7444 values (strings, macros, or numbers) pasted together.")
7445 (license license:perl-license)))
7447 (define-public biber
7449 ;; Note: When updating Biber, make sure it matches our BibLaTeX version by
7450 ;; checking the Biber/BibLaTeX compatibility matrix in the BibLaTeX manual
7451 ;; at <https://ctan.org/pkg/biblatex>.
7457 (url "https://github.com/plk/biber/")
7458 (commit (string-append "v" version))))
7459 (file-name (git-file-name name version))
7462 "0586q8y1f2k23mvb02ccm3qsb35cwskafksixsjaih7a7xcf5gxx"))))
7463 (build-system perl-build-system)
7466 (modify-phases %standard-phases
7467 (add-after 'install 'wrap-programs
7468 (lambda* (#:key outputs #:allow-other-keys)
7469 (let* ((out (assoc-ref outputs "out"))
7470 (perl5lib (getenv "PERL5LIB")))
7471 (wrap-program (string-append out "/bin/biber")
7472 `("PERL5LIB" ":" prefix
7473 (,(string-append perl5lib ":" out
7474 "/lib/perl5/site_perl")))))
7477 (list perl-autovivification
7482 perl-datetime-format-builder
7483 perl-datetime-calendar-julian
7493 perl-parse-recdescent
7494 perl-unicode-collate
7495 perl-unicode-normalize
7496 perl-unicode-linebreak
7497 perl-encode-eucjpascii
7499 perl-encode-hanextra
7501 perl-xml-libxml-simple
7511 perl-lwp-protocol-https
7515 perl-lingua-translit))
7517 `(("perl-config-autoconf" ,perl-config-autoconf)
7518 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
7519 ("perl-module-build" ,perl-module-build)
7521 ("perl-file-which" ,perl-file-which)
7522 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
7523 ("perl-test-differences" ,perl-test-differences)))
7524 (home-page "http://biblatex-biber.sourceforge.net/")
7525 (synopsis "Backend for the BibLaTeX citation management tool")
7526 (description "Biber is a BibTeX replacement for users of biblatex. Among
7527 other things it comes with full Unicode support.")
7528 (license license:artistic2.0)))
7530 (define-public rubber
7536 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
7537 version "/+download/rubber-"
7539 (string-append "http://ebeffara.free.fr/pub/rubber-"
7540 version ".tar.gz")))
7543 "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p"))))
7544 (build-system python-build-system)
7546 '(#:tests? #f ; no `check' target
7548 (modify-phases %standard-phases
7551 (lambda* (#:key outputs #:allow-other-keys)
7552 ;; texlive is required to build the PDF documentation; do not
7554 (invoke "python" "setup.py" "build" "--pdf=False" "install"
7555 (string-append "--prefix=" (assoc-ref outputs "out"))))))))
7556 (native-inputs (list texinfo))
7557 (home-page "https://launchpad.net/rubber")
7558 (synopsis "Wrapper for LaTeX and friends")
7560 "Rubber is a program whose purpose is to handle all tasks related to the
7561 compilation of LaTeX documents. This includes compiling the document itself,
7562 of course, enough times so that all references are defined, and running BibTeX
7563 to manage bibliographic references. Automatic execution of dvips to produce
7564 PostScript documents is also included, as well as usage of pdfLaTeX to produce
7566 (license license:gpl2+)))
7568 (define-public texmaker
7574 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
7575 version ".tar.bz2"))
7578 "1qnh5g8zkjpjmw2l8spcynpfgs3wpcfcla5ms2kkgvkbdlzspqqx"))))
7579 (build-system gnu-build-system)
7582 (modify-phases %standard-phases
7583 ;; Qt has its own configuration utility.
7585 (lambda* (#:key outputs #:allow-other-keys)
7586 (let ((out (assoc-ref outputs "out")))
7588 (string-append "PREFIX=" out)
7589 (string-append "DESKTOPDIR=" out "/share/applications")
7590 (string-append "ICONDIR=" out "/share/pixmaps")
7591 (string-append "METAINFODIR=" out "/share/metainfo")
7592 "texmaker.pro")))))))
7594 (list poppler-qt5 qtbase-5 qtscript zlib))
7597 (home-page "http://www.xm1math.net/texmaker/")
7598 (synopsis "LaTeX editor")
7599 (description "Texmaker is a program that integrates many tools needed to
7600 develop documents with LaTeX, in a single application.")
7601 (license license:gpl2+)))
7603 (define-public teximpatient
7605 (name "teximpatient")
7608 (method url-fetch/tarbomb)
7609 (uri (string-append "mirror://gnu/" name "/" name "-"
7613 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
7614 (build-system gnu-build-system)
7616 `(#:tests? #f ; there are none
7618 (modify-phases %standard-phases
7619 (add-after 'unpack 'fix-packaging-error
7620 (lambda* (#:key inputs #:allow-other-keys)
7621 ;; This file should have been part of the tarball.
7624 (assoc-ref inputs "automake")
7627 ;; Remove generated file.
7628 (delete-file "book.pdf")
7631 `(("texlive" ,(texlive-updmap.cfg (list texlive-amsfonts
7637 ("automake" ,automake)))
7638 (home-page "https://www.gnu.org/software/teximpatient/")
7639 (synopsis "Book on TeX, plain TeX and Eplain")
7640 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
7641 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
7643 (license license:fdl1.3+)))
7651 (uri (string-append "https://ftp.lyx.org/pub/lyx/stable/"
7652 (version-major+minor version) ".x/"
7653 "lyx-" version ".tar.xz"))
7656 "0y7sx804ral14py5jwmb3icvyd6rsw806dfclw0qx28r6iix5gn6"))
7657 (modules '((guix build utils)))
7660 (delete-file-recursively "3rdparty")
7662 (build-system qt-build-system)
7664 (list #:configure-flags
7665 #~(list "-DLYX_USE_QT=QT5"
7666 "-DLYX_EXTERNAL_BOOST=1"
7669 "-DLYX_PROGRAM_SUFFIX=OFF"
7670 (string-append "-DLYX_INSTALL_PREFIX=" #$output))
7672 #~(modify-phases %standard-phases
7673 (add-after 'unpack 'patch-python
7674 (lambda* (#:key inputs #:allow-other-keys)
7675 (substitute* '("lib/configure.py"
7676 "src/support/ForkedCalls.cpp"
7677 "src/support/Systemcall.cpp"
7678 "src/support/os.cpp"
7679 "src/support/filetools.cpp")
7682 (assoc-ref inputs "python")
7683 "/bin/python3 ")))))
7684 (add-after 'unpack 'add-missing-test-file
7686 ;; Create missing file that would cause tests to fail.
7687 (with-output-to-file "src/tests/check_layout.cmake"
7691 hunspell ; Note: Could also use aspell instead.
7699 `(("texlive" ,(texlive-updmap.cfg (list texlive-fonts-ec)))))
7701 (list python pkg-config))
7702 (home-page "https://www.lyx.org/")
7703 (synopsis "Document preparation system with GUI")
7704 (description "LyX is a document preparation system. It excels at letting
7705 you create complex technical and scientific articles with mathematics,
7706 cross-references, bibliographies, indexes, etc. It is very good for working
7707 with documents of any length in which the usual processing abilities are
7708 required: automatic sectioning and pagination, spell checking and so forth.")
7709 (license license:gpl2+)))
7711 (define-public texlive-latex-media9
7713 (name "texlive-latex-media9")
7714 (version (number->string %texlive-revision))
7718 (url (string-append "svn://www.tug.org/texlive/tags/"
7719 %texlive-tag "/Master/texmf-dist/"
7720 "/tex/latex/media9"))
7721 (revision %texlive-revision)))
7722 (file-name (string-append name "-" version "-checkout"))
7725 "0a1v70k6231323y1lazfda1y9568w8hn7c8jhc7rblkhdfv3slw7"))))
7726 (build-system trivial-build-system)
7728 `(#:modules ((guix build utils))
7731 (use-modules (guix build utils))
7732 (let ((target (string-append (assoc-ref %outputs "out")
7733 "/share/texmf-dist/tex/latex/media9")))
7735 (copy-recursively (assoc-ref %build-inputs "source") target)
7737 (home-page "https://www.ctan.org/pkg/media9")
7738 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
7740 "The package provides an interface to embed interactive Flash (SWF) and 3D
7741 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
7742 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
7743 compatibility. Playback of multimedia files uses the built-in Flash Player of
7744 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
7745 supports the efficient H.264 codec for video compression.
7747 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
7748 specification. It replaces the now obsolete @code{movie15} package.")
7749 (license license:lppl)))
7751 (define-public texlive-latex-ocgx2
7753 (name "texlive-latex-ocgx2")
7754 (version (number->string %texlive-revision))
7758 (url (string-append "svn://www.tug.org/texlive/tags/"
7759 %texlive-tag "/Master/texmf-dist/"
7760 "/tex/latex/ocgx2"))
7761 (revision %texlive-revision)))
7762 (file-name (string-append name "-" version "-checkout"))
7765 "1mrz1mj59m27bfya52vi4lm84ifisaf30pmf8id1biqwcq4jyynh"))))
7766 (build-system trivial-build-system)
7768 `(#:modules ((guix build utils))
7771 (use-modules (guix build utils))
7772 (let ((target (string-append (assoc-ref %outputs "out")
7773 "/share/texmf-dist/tex/latex/ogcx2")))
7775 (copy-recursively (assoc-ref %build-inputs "source") target)
7777 (home-page "https://www.ctan.org/pkg/ocgx2")
7778 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
7780 "This package provides OCG (Optional Content Groups) support within a PDF
7783 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
7784 @code{ocg-p} packages and adds support for all known engines and back-ends
7788 @item LaTeX → dvips → @code{ps2pdf}/Distiller
7789 @item (Xe)LaTeX(x) → @code{dvipdfmx}
7790 @item pdfLaTeX and LuaLaTeX .
7793 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
7794 (license license:lppl)))
7796 (define-public texlive-latex-ms
7798 (name "texlive-latex-ms")
7799 (version (number->string %texlive-revision))
7802 (uri (texlive-ref "latex" "ms"))
7803 (file-name (string-append name "-" version "-checkout"))
7806 "04ww5abfm7dx81d21yr2gwy9jswaalnfm2384xp4cyx7srd9spfv"))))
7807 (build-system texlive-build-system)
7809 '(#:tex-directory "latex/ms"
7810 #:tex-format "latex"))
7811 (home-page "https://ctan.org/pkg/ms")
7812 (synopsis "Various LATEX packages by Martin Schröder")
7814 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
7817 @item @command{count1to}, make use of fixed TEX counters;
7818 @item @command{everysel}, set commands to execute every time a font is selected;
7819 @item @command{everyshi}, set commands to execute whenever a page is shipped out;
7820 @item @command{multitoc}, typeset the table of contents in multiple columns;
7821 @item @command{prelim2e}, mark typeset pages as preliminary; and
7822 @item @command{ragged2e}, typeset ragged text and allow hyphenation.
7824 (license license:lppl1.3c+)))
7826 (define-public texlive-numprint
7828 (simple-texlive-package
7830 (list "doc/latex/numprint/"
7831 "source/latex/numprint/"
7832 "tex/latex/numprint/")
7833 (base32 "1rqbqj4ffcfxxxxbs100pdslaiimwzgg19mf2qzcmm5snxwrf7zj"))))
7836 (outputs '("out" "doc"))
7838 (substitute-keyword-arguments (package-arguments template)
7839 ((#:tex-directory _ '())
7841 ((#:build-targets _ '())
7842 '(list "numprint.ins"))
7844 `(modify-phases ,phases
7845 (add-after 'unpack 'chdir
7847 (chdir "source/latex/numprint")))
7848 (replace 'copy-files
7849 (lambda* (#:key inputs outputs #:allow-other-keys)
7850 (let ((origin (assoc-ref inputs "source"))
7851 (source (string-append (assoc-ref outputs "out")
7852 "/share/texmf-dist/source"))
7853 (doc (string-append (assoc-ref outputs "doc")
7854 "/share/texmf-dist/doc")))
7855 (copy-recursively (string-append origin "/source") source)
7856 (copy-recursively (string-append origin "/doc") doc))))))))
7857 (home-page "https://www.ctan.org/pkg/numprint")
7858 (synopsis "Print numbers with separators and exponent if necessary")
7860 "The package numprint prints numbers with a separator every three
7861 digits and converts numbers given as 12345.6e789 to 12\\,345,6\\cdot
7862 10^{789}. Numbers are printed in the current mode (text or math) in
7863 order to use the correct font.
7865 Many things, including the decimal sign, the thousand separator, as
7866 well as the product sign can be changed by the user, e.g., to reach
7867 12,345.6\\times 10^{789}.
7869 If an optional argument is given it is printed upright as unit.
7870 Numbers can be rounded to a given number of digits. The package
7871 supports an automatic, language-dependent change of the number format.
7873 Tabular alignment using the tabular, array, tabularx, and longtable
7874 environments (similar to the dcolumn and rccol packages) is supported
7875 using all features of numprint. Additional text can be added before
7876 and after the formatted number.")
7877 (license license:lppl))))
7879 (define-deprecated-package texlive-latex-numprint texlive-numprint)
7881 (define-public texlive-latex-needspace
7883 (name "texlive-latex-needspace")
7884 (version (number->string %texlive-revision))
7887 (uri (texlive-ref "latex" "needspace"))
7888 (file-name (string-append name "-" version "-checkout"))
7891 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
7892 (build-system texlive-build-system)
7894 '(#:tex-directory "latex/needspace"
7895 #:tex-format "latex"))
7897 (list texlive-latex-filecontents))
7898 (home-page "https://www.ctan.org/pkg/needspace")
7899 (synopsis "Insert pagebreak if not enough space")
7901 "Provides commands to disable pagebreaking within a given vertical
7902 space. If there is not enough space between the command and the bottom of the
7903 page, a new page will be started.")
7904 (license license:lppl)))
7906 (define-public texlive-latex-changepage
7908 (name "texlive-latex-changepage")
7909 (version (number->string %texlive-revision))
7913 (uri (texlive-ref "latex" "changepage"))
7914 (file-name (string-append name "-" version "-checkout"))
7917 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
7918 (build-system texlive-build-system)
7920 '(#:tex-directory "latex/changepage"
7921 #:tex-format "latex"))
7923 (list texlive-latex-filecontents))
7924 (home-page "https://www.ctan.org/pkg/changepage")
7925 (synopsis "Margin adjustment and detection of odd/even pages")
7927 "The package provides commands to change the page layout in the middle of
7928 a document, and to robustly check for typesetting on odd or even pages.
7929 Instructions for use are at the end of the file. The package is an extraction
7930 of code from the @code{memoir} class, whose user interface it shares.")
7931 (license license:lppl1.3+)))
7933 (define-public texlive-latex-eukdate
7935 (name "texlive-latex-eukdate")
7936 (version (number->string %texlive-revision))
7941 (url (string-append "svn://www.tug.org/texlive/tags/"
7942 %texlive-tag "/Master/texmf-dist/"
7943 "/tex/latex/eukdate"))
7944 (revision %texlive-revision)))
7945 (file-name (string-append name "-" version "-checkout"))
7948 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
7949 (build-system trivial-build-system)
7951 `(#:modules ((guix build utils))
7954 (use-modules (guix build utils))
7955 (let ((target (string-append (assoc-ref %outputs "out")
7956 "/share/texmf-dist/tex/latex/eukdate")))
7958 (copy-recursively (assoc-ref %build-inputs "source") target)
7960 (home-page "https://www.ctan.org/pkg/eukdate")
7961 (synopsis "UK format dates, with weekday")
7963 "The package is used to change the format of @code{\\today}’s date,
7964 including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
7965 is preferred in many parts of the world, as distinct from that which is used in
7966 @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
7967 (license license:lppl)))
7969 (define-public texlive-ulem
7971 (inherit (simple-texlive-package
7973 (list "doc/generic/ulem/" "tex/generic/ulem/")
7974 (base32 "0wcfnw5h6lsg2ilvkkf7mns8jgcn0n5sh45iznfsb49pfb4mming")
7976 (home-page "https://www.ctan.org/pkg/ulem")
7977 (synopsis "Underline text in TeX")
7979 "The package provides an @code{\\ul} (underline) command which will break
7980 over line ends; this technique may be used to replace @code{\\em} (both in that
7981 form and as the @code{\\emph} command), so as to make output look as if it comes
7982 from a typewriter. The package also offers double and wavy underlining, and
7983 striking out (line through words) and crossing out (/// over words).")
7984 (license license:lppl1.3c+)))
7986 (define-deprecated-package texlive-generic-ulem texlive-ulem)
7988 (define-public texlive-pgf
7990 (name "texlive-pgf")
7991 (version (number->string %texlive-revision))
7996 (url (string-append "svn://www.tug.org/texlive/tags/"
7997 %texlive-tag "/Master/texmf-dist/"
7999 (revision %texlive-revision)))
8000 (file-name (string-append name "-" version "-checkout"))
8003 "1jk10rxz5f8vh46am11b40hxhhikk67h9jr3z877q5qc8kwppgza"))))
8004 (build-system trivial-build-system)
8006 `(("texlive-latex-pgf-generic"
8010 (url (string-append "svn://www.tug.org/texlive/tags/"
8011 %texlive-tag "/Master/texmf-dist/"
8012 "/tex/generic/pgf"))
8013 (revision %texlive-revision)))
8014 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
8017 "05zdq7y3am109m5534ahqqp9x5iar3ha68v1r4zkrdly2mijxz2j"))))))
8019 (list texlive-xcolor))
8021 `(#:modules ((guix build utils))
8024 (use-modules (guix build utils))
8025 (let ((target-generic (string-append (assoc-ref %outputs "out")
8026 "/share/texmf-dist/tex/generic/pgf"))
8027 (target-latex (string-append (assoc-ref %outputs "out")
8028 "/share/texmf-dist/tex/latex/pgf")))
8029 (mkdir-p target-generic)
8030 (mkdir-p target-latex)
8031 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
8032 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
8034 (home-page "https://www.ctan.org/pkg/tikz")
8035 (synopsis "Create PostScript and PDF graphics in TeX")
8037 "PGF is a macro package for creating graphics. It is platform- and
8038 format-independent and works together with the most important TeX backend
8039 drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
8042 Its usage is similar to pstricks and the standard picture environment. PGF
8043 works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
8044 produce either PostScript or PDF output.")
8045 (license license:lppl1.3c+)))
8047 (define-public texlive-latex-pgf
8048 (deprecated-package "texlive-latex-pgf" texlive-pgf))
8050 (define-public texlive-latex-koma-script
8052 (name "texlive-latex-koma-script")
8053 (version (number->string %texlive-revision))
8057 (url (string-append "svn://www.tug.org/texlive/tags/"
8058 %texlive-tag "/Master/texmf-dist/"
8059 "/tex/latex/koma-script"))
8060 (revision %texlive-revision)))
8061 (file-name (string-append name "-" version "-checkout"))
8064 "1m6i8162r6ka19q517llrf0lax80rrsq564qirwk1chv5dqsmnfi"))))
8065 (build-system trivial-build-system)
8067 `(#:modules ((guix build utils))
8070 (use-modules (guix build utils)
8072 (let ((root (string-append (assoc-ref %outputs "out")
8073 "/share/texmf-dist/"))
8074 (pkgs '(("source" . "tex/latex/koma-script"))))
8075 (for-each (match-lambda
8077 (let ((target (string-append root dir)))
8079 (copy-recursively (assoc-ref %build-inputs pkg)
8083 (home-page "https://www.ctan.org/pkg/koma-script")
8084 (synopsis "Bundle of versatile classes and packages")
8086 "The KOMA-Script bundle provides replacements for the article, report, and
8087 book classes with emphasis on typography and versatility. There is also a
8090 The bundle also offers:
8093 @item a package for calculating type areas in the way laid down by the
8094 typographer Jan Tschichold,
8095 @item packages for easily changing and defining page styles,
8096 @item a package scrdate for getting not only the current date but also the name
8098 @item a package scrtime for getting the current time.
8101 All these packages may be used not only with KOMA-Script classes but also with
8102 the standard classes.
8104 Since every package has its own version number, the version number quoted only
8105 refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
8106 typearea (which are the main parts of the bundle).")
8107 (license license:lppl1.3+)))
8109 (define-public texlive-generic-atbegshi
8111 (inherit (simple-texlive-package
8112 "texlive-generic-atbegshi"
8113 '("/doc/latex/atbegshi/"
8114 "/tex/generic/atbegshi/")
8116 "184fr5kd3wl44ix63lwb3ll7dhiikkyw1czbnzrl4am4rx0zh4d8")
8118 (home-page "https://www.ctan.org/pkg/atbegshi")
8119 (synopsis "Execute commands at @code{\\shipout} time")
8121 "This package is a modern reimplementation of package @code{everyshi},
8122 providing various commands to be executed before a @code{\\shipout} command.
8123 It makes use of e-TeX’s facilities if they are available. The package may
8124 be used either with LaTeX or with plain TeX.")
8125 (license license:lppl1.3c+)))
8127 (define-public texlive-generic-bigintcalc
8129 (inherit (simple-texlive-package
8130 "texlive-generic-bigintcalc"
8131 '("/doc/latex/bigintcalc/README.md"
8132 "/tex/generic/bigintcalc/")
8134 "19grk4p1dh566hgpzhnjyjnrw57hpjijcpr7ci401n9jszcc1xkz")
8137 (list texlive-latex-pdftexcmds))
8138 (home-page "https://www.ctan.org/pkg/bigintcalc")
8139 (synopsis "Integer calculations on very large numbers")
8141 "This package provides expandable arithmetic operations with big
8142 integers that can exceed TeX's number limits.")
8143 (license license:lppl1.3c+)))
8145 (define-public texlive-generic-bitset
8147 (inherit (simple-texlive-package
8148 "texlive-generic-bitset"
8149 '("/doc/latex/bitset/README.md"
8150 "/tex/generic/bitset/")
8152 "0inj6qpzizvsbxdfsaijnl4iq976kyrnchnm3gc1kc2w389zrn1l")
8155 (list texlive-generic-infwarerr texlive-generic-intcalc
8156 texlive-generic-bigintcalc))
8157 (home-page "https://www.ctan.org/pkg/bitset")
8158 (synopsis "Handle bit-vector datatype")
8160 "This package defines and implements the data type bit set, a vector
8161 of bits. The size of the vector may grow dynamically. Individual bits
8162 can be manipulated.")
8163 (license license:lppl1.3c+)))
8165 (define-public texlive-generic-etexcmds
8167 (inherit (simple-texlive-package
8168 "texlive-generic-etexcmds"
8169 '("/doc/latex/etexcmds/README.md"
8170 "/tex/generic/etexcmds/")
8172 "11y6pnlq13bp0ybi7c82g8ds8085zv1zaslgqv3dzhgi3dklpc0c")
8175 (list texlive-generic-infwarerr texlive-generic-iftex))
8176 (home-page "https://www.ctan.org/pkg/etexcmds")
8177 (synopsis "Avoid name clashes with e-TeX commands")
8179 "New primitive commands are introduced in e-TeX; sometimes the names
8180 collide with existing macros. This package solves the name clashes by
8181 adding a prefix to e-TeX’s commands. For example, ε-TeX’s
8182 @code{\\unexpanded} is provided as @code{\\etex@@unexpanded}.")
8183 (license license:lppl1.3c+)))
8185 (define-public texlive-generic-gettitlestring
8187 (inherit (simple-texlive-package
8188 "texlive-generic-gettitlestring"
8189 '("/doc/latex/gettitlestring/"
8190 "/tex/generic/gettitlestring/")
8192 "1p4hg9mac03rzvj9dw0ws3zdh55fy1ns954f912algw9f2aq4xgp")
8194 (home-page "https://www.ctan.org/pkg/gettitlestring")
8195 (synopsis "Clean up title references")
8197 "This package provides commands for cleaning up the title string
8198 (such as removing @code{\\label} commands) for packages that typeset such
8200 (license license:lppl1.3c+)))
8202 (define-public texlive-generic-infwarerr
8204 (inherit (simple-texlive-package
8205 "texlive-generic-infwarerr"
8206 '("/tex/generic/infwarerr/")
8208 "19nlrbfmqbkjrrx9x75s9nd6crg1lzimb2fr3hfblaivj6lx8p4r")
8210 (home-page "https://www.ctan.org/pkg/infwarerr")
8211 (synopsis "Information/warning/error macros")
8213 "This package provides a complete set of macros for information,
8214 warning and error messages. Under LaTeX, the commands are wrappers for
8215 the corresponding LaTeX commands; under Plain TeX they are available as
8216 complete implementations.")
8217 (license license:lppl1.3c+)))
8219 (define-public texlive-generic-intcalc
8221 (inherit (simple-texlive-package
8222 "texlive-generic-intcalc"
8223 '("/tex/generic/intcalc/")
8225 "0llrnayqwdqxi91yh7panbbiljina3bynv2hxhi6sssaw3pyd92l")
8227 (home-page "https://www.ctan.org/pkg/intcalc")
8228 (synopsis "Expandable arithmetic operations with integers")
8230 "This package provides expandable arithmetic operations with integers,
8231 using the e-TeX extension @code{\\numexpr} if it is available.")
8232 (license license:lppl1.3c+)))
8234 (define-public texlive-generic-kvdefinekeys
8236 (inherit (simple-texlive-package
8237 "texlive-generic-kvdefinekeys"
8238 '("/tex/generic/kvdefinekeys/")
8240 "12nn74skhwiszbdhawqds31caz6d59a5pjmwar0r8lmk4f1jr3xh")
8242 (home-page "https://www.ctan.org/pkg/kvdefinekeys")
8243 (synopsis "Define keys for use in the @code{kvsetkeys} package")
8245 "This package provides the @code{\\kv@@define@@key} (analogous to
8246 keyval’s @code{\\define@@key}, to define keys for use by @code{kvsetkeys}.")
8247 (license license:lppl1.3c+)))
8249 (define-public texlive-generic-kvsetkeys
8251 (inherit (simple-texlive-package
8252 "texlive-generic-kvsetkeys"
8253 '("/tex/generic/kvsetkeys/")
8255 "149vpmv4vms269dzq4sghlngg380sasvxnb3sx9rfs7d9j0finvi")
8257 (home-page "https://www.ctan.org/pkg/kvsetkeys")
8258 (synopsis "Key value parser with default handler support")
8260 "This package provides @code{\\kvsetkeys}, a variant of @code{\\setkeys}
8261 from the @code{keyval} package. Users can specify a handler that deals with
8262 unknown options. Active commas and equal signs may be used, and only one
8263 level of curly braces are removed from the values.")
8264 (license license:lppl1.3c+)))
8266 (define-public texlive-generic-listofitems
8268 (name "texlive-generic-listofitems")
8269 (version (number->string %texlive-revision))
8273 (url (string-append "svn://www.tug.org/texlive/tags/"
8274 %texlive-tag "/Master/texmf-dist/"
8275 "/tex/generic/listofitems"))
8276 (revision %texlive-revision)))
8277 (file-name (string-append name "-" version "-checkout"))
8280 "1wnbnfrhi6hgqa78jsw6hljzi03i5x99mlr5n2419hgws52hk67y"))))
8281 (build-system trivial-build-system)
8283 `(#:modules ((guix build utils))
8286 (use-modules (guix build utils))
8287 (let ((target (string-append (assoc-ref %outputs "out")
8288 "/share/texmf-dist/tex/generic/listofitems")))
8290 (copy-recursively (assoc-ref %build-inputs "source") target)
8292 (home-page "https://www.ctan.org/pkg/listofitems")
8293 (synopsis "Grab items in lists using user-specified separation character")
8295 "This package allows one to capture all the items of a list, for which
8296 the parsing character has been selected by the user, and to access any of
8297 these items with a simple syntax.")
8298 (license license:lppl1.3c+)))
8300 (define-public texlive-generic-ltxcmds
8302 (inherit (simple-texlive-package
8303 "texlive-generic-ltxcmds"
8304 '("/tex/generic/ltxcmds/")
8306 "1lr77yai2qivlx26s5094czpfxmg96bhxps5wbm8xn7cpsw0zbd9")
8308 (home-page "https://www.ctan.org/pkg/ltxcmds")
8309 (synopsis "LaTeX kernel commands extracted for general use")
8311 "This package exports some utility macros from the LaTeX kernel into
8312 a separate namespace and also makes them available for other formats such
8314 (license license:lppl1.3c+)))
8316 (define-public texlive-generic-pdfescape
8318 (inherit (simple-texlive-package
8319 "texlive-generic-pdfescape"
8320 '("/tex/generic/pdfescape/")
8322 "1vbdjmm9bi9ngzz2z1b8jnf6nzf9xsaj5pvyswg13y4dr00mnz6n")
8324 (home-page "https://www.ctan.org/pkg/pdfescape")
8325 (synopsis "pdfTeX's escape features for plain TeX")
8327 "This package implements pdfTeX's escape features (@code{\\pdfescapehex},
8328 @code{\\pdfunescapehex}, @code{\\pdfescapename}, @code{\\pdfescapestring})
8329 using TeX or e-TeX.")
8330 (license license:lppl1.3c+)))
8332 (define-public texlive-generic-uniquecounter
8334 (inherit (simple-texlive-package
8335 "texlive-generic-uniquecounter"
8336 '("/doc/latex/uniquecounter/"
8337 "/tex/generic/uniquecounter/")
8339 "1bjh8vwiqlkmjqndnh4xp116524x4m3hdcyq2s231jiqy8il8dcc")
8342 (list texlive-generic-bigintcalc texlive-generic-infwarerr))
8343 (home-page "https://www.ctan.org/pkg/uniquecounter")
8344 (synopsis "Unlimited unique counter")
8346 "This package provides a kind of counter that provides unique number
8347 values. Several counters can be created with different names. The numeric
8348 values are not limited.")
8349 (license license:lppl1.3c+)))
8351 (define-public texlive-latex-readarray
8353 (name "texlive-latex-readarray")
8354 (version (number->string %texlive-revision))
8358 (url (string-append "svn://www.tug.org/texlive/tags/"
8359 %texlive-tag "/Master/texmf-dist/"
8360 "/tex/latex/readarray"))
8361 (revision %texlive-revision)))
8362 (file-name (string-append name "-" version "-checkout"))
8365 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
8366 (build-system trivial-build-system)
8368 `(#:modules ((guix build utils))
8371 (use-modules (guix build utils))
8372 (let ((target (string-append (assoc-ref %outputs "out")
8373 "/share/texmf-dist/tex/latex/readarray")))
8375 (copy-recursively (assoc-ref %build-inputs "source") target)
8378 (list texlive-generic-listofitems))
8379 (home-page "https://www.ctan.org/pkg/readarray")
8380 (synopsis "Read, store and recall array-formatted data")
8382 "This package allows the user to input formatted data into elements of a
8383 2-D or 3-D array and to recall that data at will by individual cell number.
8384 The data can be but need not be numerical in nature. It can be, for example,
8386 (license license:lppl1.3)))
8388 (define-public texlive-latex-verbatimbox
8390 (name "texlive-latex-verbatimbox")
8391 (version (number->string %texlive-revision))
8395 (url (string-append "svn://www.tug.org/texlive/tags/"
8396 %texlive-tag "/Master/texmf-dist/"
8397 "/tex/latex/verbatimbox"))
8398 (revision %texlive-revision)))
8399 (file-name (string-append name "-" version "-checkout"))
8402 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
8403 (build-system trivial-build-system)
8405 `(#:modules ((guix build utils))
8408 (use-modules (guix build utils))
8409 (let ((target (string-append (assoc-ref %outputs "out")
8410 "/share/texmf-dist/tex/latex/verbatimbox")))
8412 (copy-recursively (assoc-ref %build-inputs "source") target)
8415 (list texlive-latex-readarray))
8416 (home-page "https://www.ctan.org/pkg/verbatimbox")
8417 (synopsis "Deposit verbatim text in a box")
8419 "The package provides a @code{verbbox} environment to place its contents
8420 into a globally available box, or into a box specified by the user. The
8421 global box may then be used in a variety of situations (for example, providing
8422 a replica of the @code{boxedverbatim} environment itself). A valuable use is
8423 in places where the standard @code{verbatim} environment (which is based on a
8424 @code{trivlist}) may not appear.")
8425 (license license:lppl1.3+)))
8427 (define-public texlive-latex-examplep
8429 (name "texlive-latex-examplep")
8430 (version (number->string %texlive-revision))
8434 (url (string-append "svn://www.tug.org/texlive/tags/"
8435 %texlive-tag "/Master/texmf-dist/"
8436 "/tex/latex/examplep"))
8437 (revision %texlive-revision)))
8438 (file-name (string-append name "-" version "-checkout"))
8441 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
8442 (build-system trivial-build-system)
8444 `(#:modules ((guix build utils))
8447 (use-modules (guix build utils))
8448 (let ((target (string-append (assoc-ref %outputs "out")
8449 "/share/texmf-dist/tex/latex/examplep")))
8451 (copy-recursively (assoc-ref %build-inputs "source") target)
8453 (home-page "https://www.ctan.org/pkg/examplep")
8454 (synopsis "Verbatim phrases and listings in LaTeX")
8456 "Examplep provides sophisticated features for typesetting verbatim source
8457 code listings, including the display of the source code and its compiled LaTeX
8458 or METAPOST output side-by-side, with automatic width detection and enabled
8459 page breaks (in the source), without the need for specifying the source twice.
8460 Special care is taken that section, page and footnote numbers do not interfere
8461 with the main document. For typesetting short verbatim phrases, a replacement
8462 for the @code{\\verb} command is also provided in the package, which can be
8463 used inside tables and moving arguments such as footnotes and section
8465 ;; No version of the GPL is specified.
8466 (license license:gpl3+)))
8468 (define-public texlive-xypic
8469 (let ((template (simple-texlive-package
8471 (list "/doc/generic/xypic/"
8472 "/dvips/xypic/xy389dict.pro"
8473 "/fonts/enc/dvips/xypic/"
8474 "/fonts/map/dvips/xypic/xypic.map"
8476 "/fonts/source/public/xypic/"
8477 "/fonts/afm/public/xypic/"
8478 "/fonts/tfm/public/xypic/"
8479 "/fonts/type1/public/xypic/"
8480 "/tex/generic/xypic/")
8482 "09b51bbm189xh7039h5n8nmab5nn2bybhh26qjn08763m80zdhjg")
8487 (substitute-keyword-arguments (package-arguments template)
8489 `(modify-phases ,phases
8490 (delete 'reset-gzip-timestamps)))))
8491 (home-page "https://www.ctan.org/pkg/xypic")
8492 (synopsis "Flexible diagramming macros")
8493 (description "This is a package for typesetting a variety of graphs and
8494 diagrams with TeX. Xy-pic works with most formats (including LaTeX,
8495 AMS-LaTeX, AMS-TeX, and plain TeX). The distribution includes Michael Barr's
8496 @code{diag} package, which was previously distributed stand-alone.")
8497 (license license:gpl3+))))
8499 (define-deprecated-package texlive-fonts-xypic texlive-xypic)
8501 (define-deprecated-package texlive-generic-xypic texlive-xypic)
8503 (define-public texlive-bibtex
8505 (name "texlive-bibtex")
8506 (version (number->string %texlive-revision))
8511 (url (string-append "svn://www.tug.org/texlive/tags/"
8512 %texlive-tag "/Master/texmf-dist/"
8514 (revision %texlive-revision)))
8515 (file-name (string-append name "-" version "-checkout"))
8518 "0fr0s3jhrvplddb42if570dxllz54fa0pf4d2am27h8m385nghbf"))))
8519 (build-system trivial-build-system)
8521 `(#:modules ((guix build utils))
8524 (use-modules (guix build utils))
8525 (let ((target (string-append (assoc-ref %outputs "out")
8526 "/share/texmf-dist/bibtex")))
8528 (copy-recursively (assoc-ref %build-inputs "source") target)
8530 (home-page "https://www.ctan.org/pkg/bibtex")
8531 (synopsis "Process bibliographies for LaTeX")
8533 "BibTeX allows the user to store his citation data in generic form, while
8534 printing citations in a document in the form specified by a BibTeX style, to
8535 be specified in the document itself (one often needs a LaTeX citation-style
8536 package, such as @command{natbib} as well).")
8537 (license license:knuth)))
8539 (define-public texlive-charter
8541 (inherit (simple-texlive-package
8543 (list "/doc/fonts/charter/readme.charter"
8544 "/fonts/afm/bitstrea/charter/"
8545 "/fonts/tfm/bitstrea/charter/"
8546 "/fonts/type1/bitstrea/charter/"
8547 "/fonts/vf/bitstrea/charter/")
8549 "09l5ymgz48s3hyn776l01g3isk3dnhrj1vdavdw4qq4kfxxpqdn9")
8551 ;; This provides charter.map.
8553 (list texlive-psnfss))
8554 (home-page "https://www.ctan.org/pkg/charter")
8555 (synopsis "Charter fonts for TeX")
8556 (description "This package provides a copy of the Charter Type-1 fonts
8557 which Bitstream contributed to the X consortium, renamed for use with TeX.
8558 Support for use with LaTeX is available in @code{freenfss}, part of
8560 (license (license:non-copyleft
8561 "http://mirrors.ctan.org/fonts/charter/readme.charter"))))
8563 (define-deprecated-package texlive-fonts-charter texlive-charter)
8565 (define-public texlive-context
8567 (inherit (simple-texlive-package
8569 (list "/doc/context/"
8570 "/doc/man/man1/context.1"
8571 "/doc/man/man1/luatools.1"
8572 "/doc/man/man1/mtx-babel.1"
8573 "/doc/man/man1/mtx-base.1"
8574 "/doc/man/man1/mtx-bibtex.1"
8575 "/doc/man/man1/mtx-cache.1"
8576 "/doc/man/man1/mtx-chars.1"
8577 "/doc/man/man1/mtx-check.1"
8578 "/doc/man/man1/mtx-colors.1"
8579 "/doc/man/man1/mtx-context.1"
8580 "/doc/man/man1/mtx-dvi.1"
8581 "/doc/man/man1/mtx-epub.1"
8582 "/doc/man/man1/mtx-evohome.1"
8583 "/doc/man/man1/mtx-fcd.1"
8584 "/doc/man/man1/mtx-flac.1"
8585 "/doc/man/man1/mtx-fonts.1"
8586 "/doc/man/man1/mtx-grep.1"
8587 "/doc/man/man1/mtx-interface.1"
8588 "/doc/man/man1/mtx-metapost.1"
8589 "/doc/man/man1/mtx-modules.1"
8590 "/doc/man/man1/mtx-package.1"
8591 "/doc/man/man1/mtx-pdf.1"
8592 "/doc/man/man1/mtx-plain.1"
8593 "/doc/man/man1/mtx-profile.1"
8594 "/doc/man/man1/mtx-rsync.1"
8595 "/doc/man/man1/mtx-scite.1"
8596 "/doc/man/man1/mtx-server.1"
8597 "/doc/man/man1/mtx-texworks.1"
8598 "/doc/man/man1/mtx-timing.1"
8599 "/doc/man/man1/mtx-tools.1"
8600 "/doc/man/man1/mtx-unicode.1"
8601 "/doc/man/man1/mtx-unzip.1"
8602 "/doc/man/man1/mtx-update.1"
8603 "/doc/man/man1/mtx-watch.1"
8604 "/doc/man/man1/mtx-youless.1"
8606 "/bibtex/bst/context/"
8609 "/fonts/afm/hoekwater/context/contnav.afm"
8610 "/fonts/cid/fontforge/Adobe-CNS1-4.cidmap"
8611 "/fonts/cid/fontforge/Adobe-GB1-4.cidmap"
8612 "/fonts/cid/fontforge/Adobe-Identity-0.cidmap"
8613 "/fonts/cid/fontforge/Adobe-Japan1-5.cidmap"
8614 "/fonts/cid/fontforge/Adobe-Japan1-6.cidmap"
8615 "/fonts/cid/fontforge/Adobe-Japan2-0.cidmap"
8616 "/fonts/cid/fontforge/Adobe-Korea1-2.cidmap"
8617 "/fonts/enc/dvips/context/"
8618 "/fonts/map/dvips/context/"
8619 "/fonts/map/luatex/context/"
8620 "/fonts/map/pdftex/context/"
8621 "/fonts/misc/xetex/fontmapping/context/"
8622 "/fonts/tfm/hoekwater/context/"
8623 "/fonts/type1/hoekwater/context/"
8624 "/metapost/context/"
8626 "/tex/context/base/"
8628 "/tex/context/colors/"
8629 "/tex/context/fonts/"
8630 "/tex/context/interface/"
8631 "/tex/context/modules/"
8632 "/tex/context/patterns/"
8633 "/tex/context/sample/"
8634 "/tex/context/test/"
8635 "/tex/context/user/"
8636 "/tex/generic/context/"
8637 "/tex/latex/context/")
8639 "1rsw760f52rj62i7ms89xgxdi0qw6hag5fs5hb667nclr4kdkam8")
8641 ;; TODO: add these missing packages:
8642 ;; xetex, luatex, lm-math, manfnt-font, and mptopdf
8644 (list texlive-amsfonts
8649 texlive-mflogo-font))
8650 (home-page "https://www.ctan.org/pkg/context")
8651 (synopsis "Full featured, parameter driven macro package for TeX")
8652 (description "ConTeXt is a full featured, parameter driven macro package,
8653 which fully supports advanced interactive documents. See the ConTeXt garden
8654 for a wealth of support information.")
8655 ;; The GPL applies to all code; alternatively, the LaTeX license may be used.
8656 ;; The CC-BY-SA license applies to all documentation.
8657 (license (list license:lppl1.3c+
8659 license:cc-by-sa4.0))))
8661 (define-deprecated-package texlive-context-base texlive-context)
8663 (define-public texlive-beamer
8665 (inherit (simple-texlive-package
8667 (list "/doc/latex/beamer/"
8668 "/tex/latex/beamer/")
8670 "091n27n4l3iac911bvmpp735ffryyzaq46mkclgn3q9jsvc4ngiv")
8673 (list texlive-hyperref texlive-oberdiek texlive-etoolbox
8675 (home-page "https://www.ctan.org/pkg/beamer")
8676 (synopsis "LaTeX class for producing presentations and slides")
8677 (description "The beamer LaTeX class can be used for producing slides.
8678 The class works in both PostScript and direct PDF output modes, using the
8679 @code{pgf} graphics system for visual effects. Content is created in the
8680 @code{frame} environment, and each frame can be made up of a number of slides
8681 using a simple notation for specifying material to appear on each slide within
8682 a frame. Short versions of title, authors, institute can also be specified as
8683 optional parameters. Whole frame graphics are supported by plain frames. The
8684 class supports @code{figure} and @code{table} environments, transparency
8685 effects, varying slide transitions and animations.")
8686 ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is
8687 ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+.
8688 (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+))))
8690 (define-deprecated-package texlive-latex-beamer texlive-beamer)
8692 (define-public texlive-latex-xmpincl
8694 (name "texlive-latex-xmpincl")
8695 (version (number->string %texlive-revision))
8699 (uri (texlive-ref "latex" "xmpincl"))
8700 (file-name (string-append name "-" version "-checkout"))
8703 "0lq3dfb4fsw955gjwllnk7cg00ciq5mva64mlpbva6g2jz117734"))))
8704 (build-system texlive-build-system)
8705 (arguments '(#:tex-directory "latex/xmpincl"))
8706 (home-page "http://www.ctan.org/pkg/xmpincl")
8707 (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX")
8709 "The XMP (eXtensible Metadata platform) is a framework to add metadata to
8710 digital material to enhance the workflow in publication. The essence is that
8711 the metadata is stored in an XML file, and this XML stream is then embedded in
8712 the file to which it applies.")
8713 (license license:gpl3+)))
8715 (define-public texlive-pdfx
8716 (let ((template (simple-texlive-package
8718 (list "/doc/latex/pdfx/"
8719 "/source/latex/pdfx/"
8722 "1z4j4d92k2fjmf8jfap4zn7ij97d9rz2jcs9aslcac07ag4x5bdp"))))
8726 (substitute-keyword-arguments (package-arguments template)
8727 ((#:tex-directory _ #t)
8730 `(modify-phases ,phases
8731 (add-after 'unpack 'delete-generated-file
8733 ;; Generate this file from sources
8734 (delete-file "tex/latex/pdfx/pdfx.sty")
8736 (add-after 'delete-generated-file 'chdir
8737 (lambda _ (chdir "source/latex/pdfx") #t))
8738 (add-after 'chdir 'fix-encoding
8740 (substitute* "pdfx.dtx"
8741 ((" .+umaczy") "umaczy"))
8744 (list texlive-pdftex))
8745 (home-page "https://www.ctan.org/pkg/pdfx")
8746 (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX")
8748 "This package helps LaTeX users to create PDF/X, PDF/A and other
8749 standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.")
8750 (license license:lppl1.2+))))
8752 (define-deprecated-package texlive-latex-pdfx texlive-pdfx)
8754 (define-public texlive-ydoc
8755 (let ((template (simple-texlive-package
8757 (list "/doc/latex/ydoc/"
8758 "/source/latex/ydoc/")
8760 "0ckcpy1b8v1fk3qc8qkxgiag2wc0qzxm6bgksv000m4m1hsi2g8b")
8764 (outputs '("out" "doc"))
8766 (substitute-keyword-arguments (package-arguments template)
8767 ((#:tex-directory _ #t)
8769 ((#:build-targets _ #t)
8772 `(modify-phases ,phases
8773 (add-after 'unpack 'chdir
8774 (lambda _ (chdir "source/latex/ydoc") #t))
8775 (add-after 'copy-files 'move-files
8776 (lambda* (#:key inputs outputs #:allow-other-keys)
8777 (let ((source (assoc-ref inputs "source"))
8778 (doc (string-append (assoc-ref outputs "doc")
8779 "/share/texmf-dist/doc")))
8780 (copy-recursively (string-append source "/doc") doc))))))))
8781 (home-page "http://www.ctan.org/pkg/ydoc")
8782 (synopsis "Macros for documentation of LaTeX classes and packages")
8783 (description "The package provides macros and environments to document
8784 LaTeX packages and classes. It is an (as yet unfinished) alternative to the
8785 @code{ltxdoc} class and the @code{doc} or @code{xdoc} packages. The aim is to
8786 provide a different layout and more modern styles (using the @code{xcolor},
8787 @code{hyperref} packages, etc.) This is an alpha release, and should probably
8788 not (yet) be used with other packages, since the implementation might
8790 (license license:lppl1.3+))))
8792 (define-public texlive-pstricks
8793 (let ((template (simple-texlive-package
8795 (list "/doc/generic/pstricks/"
8797 "/tex/generic/pstricks/"
8798 "/tex/latex/pstricks/")
8800 "15c9iqfq2y9c8c78cvqb6vzd5a5rm7qq5x7m05jq1hb8sgqrqb0j")
8805 (substitute-keyword-arguments (package-arguments template)
8807 `(modify-phases ,phases
8808 (delete 'reset-gzip-timestamps)))))
8809 (home-page "http://www.ctan.org/pkg/pstricks")
8810 (synopsis "PostScript macros for TeX")
8811 (description "PSTricks offers an extensive collection of macros for
8812 generating PostScript that is usable with most TeX macro formats, including
8813 Plain TeX, LaTeX, AMS-TeX, and AMS-LaTeX. Included are macros for colour,
8814 graphics, pie charts, rotation, trees and overlays. It has many special
8815 features, including a wide variety of graphics (picture drawing) macros, with
8816 a flexible interface and with colour support. There are macros for colouring
8817 or shading the cells of tables.")
8818 (license license:lppl1.3+))))
8820 (define-public texlive-pst-text
8821 (let ((template (simple-texlive-package
8823 (list "/doc/generic/pst-text/"
8824 "/dvips/pst-text/pst-text.pro"
8825 "/tex/generic/pst-text/"
8826 "/tex/latex/pst-text/")
8828 "146fpzd1xlqi94q5r48z8ni8qww713yh6nwkbr9pw27mjrqdadb9")
8833 (list texlive-pstricks))
8834 (home-page "http://www.ctan.org/pkg/pst-text")
8835 (synopsis "Text and character manipulation in PSTricks")
8836 (description "Pst-text is a PSTricks based package for plotting text along
8837 a different path and manipulating characters. It includes the functionality
8838 of the old package @code{pst-char}.")
8839 (license license:lppl))))
8841 (define-public texlive-marginnote
8842 (let ((template (simple-texlive-package
8843 "texlive-marginnote"
8844 (list "/source/latex/marginnote/marginnote.dtx")
8846 "152bwxhnssj40rr72r6cfirvqbnc0h7xnagfrbz58v2xck53qhg1"))))
8849 (home-page "http://www.ctan.org/pkg/marginnote")
8851 (substitute-keyword-arguments (package-arguments template)
8852 ((#:tex-directory _ '())
8854 ((#:build-targets _ '())
8855 ''("marginnote.dtx"))
8857 `(modify-phases ,phases
8858 (add-after 'unpack 'chdir
8859 (lambda _ (chdir "source/latex/marginnote") #t))))))
8860 (synopsis "Notes in the margin")
8861 (description "This package provides the command @code{\\marginnote} that
8862 may be used instead of @code{\\marginpar} at almost every place where
8863 @code{\\marginpar} cannot be used, e.g., inside floats, footnotes, or in
8864 frames made with the @code{framed} package.")
8865 (license license:lppl1.3c+))))
8867 (define-public texlive-generic-iftex
8868 (let ((template (simple-texlive-package
8869 "texlive-generic-iftex"
8870 (list "/doc/generic/iftex/"
8871 "/tex/generic/iftex/")
8873 "147xa5kl4kjs05nj8v3kd7dpr5xkz3xp3gdvjih32ccd7527f5vp")
8877 (home-page "http://www.ctan.org/pkg/iftex")
8878 (synopsis "Determine the currently used TeX engine")
8879 (description "This package, which works both for Plain TeX and for
8880 LaTeX, defines the @code{\\ifPDFTeX}, @code{\\ifXeTeX}, and @code{\\ifLuaTeX}
8881 conditionals for testing which engine is being used for typesetting. The
8882 package also provides the @code{\\RequirePDFTeX}, @code{\\RequireXeTeX}, and
8883 @code{\\RequireLuaTeX} commands which throw an error if pdfTeX, XeTeX or
8884 LuaTeX (respectively) is not the engine in use.")
8885 (license license:lppl1.3+))))
8887 (define-deprecated-package texlive-iftex texlive-generic-iftex)
8889 (define-deprecated-package texlive-generic-ifxetex texlive-generic-iftex)
8891 (define-public texlive-tabu
8893 (simple-texlive-package
8895 (list "doc/latex/tabu/"
8896 "source/latex/tabu/"
8898 (base32 "0mixyrqavipq4ni38z42x3579cdjbz54cp2qqb4q4yhfbl0a4pka"))))
8901 (outputs '("out" "doc"))
8903 (substitute-keyword-arguments (package-arguments template)
8904 ((#:tex-directory _ '())
8906 ((#:build-targets _ '())
8909 `(modify-phases ,phases
8910 (add-after 'unpack 'chdir
8911 (lambda _ (chdir "source/latex/tabu")))
8912 (replace 'copy-files
8913 (lambda* (#:key inputs outputs #:allow-other-keys)
8914 (let ((origin (assoc-ref inputs "source"))
8915 (source (string-append (assoc-ref outputs "out")
8916 "/share/texmf-dist/source"))
8917 (doc (string-append (assoc-ref outputs "doc")
8918 "/share/texmf-dist/doc")))
8919 (copy-recursively (string-append origin "/source") source)
8920 (copy-recursively (string-append origin "/doc") doc))))))))
8921 (propagated-inputs (list texlive-varwidth))
8922 (home-page "https://ctan.org/macros/latex/contrib/tabu")
8923 (synopsis "Flexible LaTeX tabulars")
8925 "The package provides an environment, tabu, which will make any sort of
8926 tabular, and an environment longtabu which provides the facilities of tabu in
8927 a modified longtable environment. The package requires array, xcolor for
8928 coloured rules in tables, and colortbl for coloured cells. The longtabu
8929 environment further requires that longtable be loaded. The package itself
8930 does not load any of these packages for the user. The tabu environment may be
8931 used in place of @code{tabular}, @code{tabular*} and @code{tabularx}
8932 environments, as well as the @code{array} environment in maths mode.")
8933 (license license:lppl1.3+))))
8935 (define-public texlive-tools
8936 (let ((template (simple-texlive-package
8938 (list "/doc/latex/tools/"
8939 "/source/latex/tools/")
8941 "1xas0b69r3d5x4zhcqysgybyqaikd9avv6r1bdckb947id3iaz58"))))
8945 (substitute-keyword-arguments (package-arguments template)
8946 ((#:tex-directory _ '())
8948 ((#:build-targets _ '())
8951 `(modify-phases ,phases
8952 (add-after 'unpack 'chdir
8953 (lambda _ (chdir "source/latex/tools") #t))))))
8954 (home-page "https://www.ctan.org/tex-archive/macros/latex/required/tools/")
8955 (synopsis "LaTeX standard tools bundle")
8956 (description "This package provides a collection of simple tools that
8957 are part of the LaTeX required tools distribution, comprising the packages:
8958 @code{afterpage}, @code{array}, @code{bm}, @code{calc}, @code{dcolumn},
8959 @code{delarray}, @code{enumerate}, @code{fileerr}, @code{fontsmpl},
8960 @code{ftnright}, @code{hhline}, @code{indentfirst}, @code{layout},
8961 @code{longtable}, @code{multicol}, @code{rawfonts}, @code{showkeys},
8962 @code{somedefs}, @code{tabularx}, @code{theorem}, @code{trace},
8963 @code{varioref}, @code{verbatim}, @code{xr}, and @code{xspace}.")
8964 (license license:lppl1.3+))))
8966 (define-public texlive-latex-xkeyval
8968 (name "texlive-latex-xkeyval")
8969 (version (number->string %texlive-revision))
8972 (uri (texlive-ref "latex" "xkeyval"))
8973 (file-name (string-append name "-" version "-checkout"))
8976 "0w4x82wmdvcmy8z3p55xvpz5q7jac1q1j591hi8mngfyqa8rda1c"))))
8977 (build-system texlive-build-system)
8979 '(#:tex-directory "latex/xkeyval"
8980 #:build-targets '("xkeyval.dtx")
8981 #:tex-format "latex" ; won't build with luatex
8983 (modify-phases %standard-phases
8984 ;; This package cannot be built out of tree as it expects to find
8985 ;; built files in the working directory.
8986 (add-before 'build 'fix-build
8989 (string-append (getcwd) "/build:"))
8990 (substitute* "xkeyval.dtx"
8991 (("usepackage\\{xcolor\\}")
8992 "usepackage[dvips]{xcolor}"))
8994 ;; FIXME: We don't have a package for this font yet.
8995 (add-after 'unpack 'remove-dependency-on-fourier
8997 (substitute* "xkeyval.dtx"
8998 (("\\\\usepackage\\{fourier\\}") ""))
9000 (add-after 'install 'move-files
9001 (lambda* (#:key outputs #:allow-other-keys)
9002 (let* ((out (assoc-ref outputs "out"))
9003 (share (string-append out "/share/texmf-dist"))
9004 (source (string-append share "/tex/latex/xkeyval/"))
9005 (target (string-append share "/tex/generic/xkeyval/")))
9007 (for-each (lambda (file)
9008 (rename-file (string-append source file)
9009 (string-append target file)))
9021 (list texlive-latex-base
9025 texlive-graphics-def
9027 texlive-latex-footmisc
9029 ;; TODO: Use non-deprecated name on next rebuild cycle.
9030 texlive-latex-listings
9032 texlive-generic-iftex
9037 ;; TODO: Use non-deprecated name on next rebuild cycle.
9039 (home-page "http://www.ctan.org/pkg/xkeyval")
9040 (synopsis "Extension of the keyval package")
9042 "This package is an extension of the keyval package and offers additional
9043 macros for setting keys and declaring and setting class or package options.
9044 The package allows the programmer to specify a prefix to the name of the
9045 macros it defines for keys, and to define families of key definitions; these
9046 all help use in documents where several packages define their own sets of
9048 (license license:lppl1.3+)))
9050 (define-public texlive-standalone
9052 (name "texlive-standalone")
9053 (version (number->string %texlive-revision))
9057 (uri (texlive-ref "latex" "standalone"))
9058 (file-name (string-append name "-" version "-checkout"))
9061 "192ydxcn8ir96q8qwvnppksmqf5i0p50i0wz6iqazbwmh3dqxpx4"))))
9062 (build-system texlive-build-system)
9063 (arguments '(#:tex-directory "latex/standalone"))
9065 (list texlive-latex-xkeyval))
9067 (list texlive-ydoc))
9068 (home-page "http://www.ctan.org/pkg/standalone")
9069 (synopsis "Compile TeX pictures stand-alone or as part of a document")
9070 (description "A class and package is provided which allows TeX pictures or
9071 other TeX code to be compiled standalone or as part of a main document.
9072 Special support for pictures with beamer overlays is also provided. The
9073 package is used in the main document and skips extra preambles in sub-files.
9074 The class may be used to simplify the preamble in sub-files. By default the
9075 @code{preview} package is used to display the typeset code without margins.
9076 The behaviour in standalone mode may adjusted using a configuration file
9077 @code{standalone.cfg} to redefine the standalone environment.")
9078 (license license:lppl1.3+)))
9080 (define-public texlive-siunitx
9082 (name "texlive-siunitx")
9083 (version (number->string %texlive-revision))
9084 (source (texlive-origin
9086 (list "/source/latex/siunitx/siunitx.dtx"
9087 "/doc/latex/siunitx/README.md")
9089 "05kl7yid2npp2gbfshnv2xd08w81fkh5h2n5wd9xcpbhlqjzx9sj")))
9090 (build-system texlive-build-system)
9092 '(#:tex-directory "latex/siunitx"
9093 #:build-targets '("siunitx.dtx")
9095 (modify-phases %standard-phases
9096 (add-after 'unpack 'chdir
9097 (lambda _ (chdir "source/latex/siunitx") #t)))))
9099 (list texlive-latex-l3kernel texlive-latex-l3packages))
9100 (home-page "http://www.ctan.org/pkg/siunitx")
9101 (synopsis "Comprehensive SI units package")
9103 "Typesetting values with units requires care to ensure that the combined
9104 mathematical meaning of the value plus unit combination is clear. In
9105 particular, the SI units system lays down a consistent set of units with rules
9106 on how they are to be used. However, different countries and publishers have
9107 differing conventions on the exact appearance of numbers (and units). A
9108 number of LaTeX packages have been developed to provide consistent application
9109 of the various rules. The @code{siunitx} package takes the best from the
9110 existing packages, and adds new features and a consistent interface. A number
9111 of new ideas have been incorporated, to fill gaps in the existing provision.
9112 The package also provides backward-compatibility with @code{SIunits},
9113 @code{sistyle}, @code{unitsdef} and @code{units}. The aim is to have one
9114 package to handle all of the possible unit-related needs of LaTeX users.")
9115 (license license:lppl1.3c)))
9117 (define-public texlive-booktabs
9119 (name "texlive-booktabs")
9120 (version (number->string %texlive-revision))
9124 (uri (texlive-ref "latex" "booktabs"))
9125 (file-name (string-append name "-" version "-checkout"))
9128 "1mycxzl761p2zzmva8xsjbxbvrxx3vhi5p160mh9kiqwhrs5biz5"))))
9129 (build-system texlive-build-system)
9130 (arguments '(#:tex-directory "latex/booktabs"))
9131 (home-page "http://www.ctan.org/pkg/booktabs")
9132 (synopsis "Publication quality tables in LaTeX")
9134 "This package enhances the quality of tables in LaTeX, providing extra
9135 commands as well as behind-the-scenes optimisation. Guidelines are given as
9136 to what constitutes a good table in this context. The package offers
9137 @code{longtable} compatibility.")
9138 (license license:lppl1.3+)))
9140 (define-public texlive-csquotes
9141 (let ((template (simple-texlive-package
9143 (list "/doc/latex/csquotes/"
9144 "/tex/latex/csquotes/")
9146 "17y5mrmjmi7n0cgq4cnqr55f4bni6lx1pfdv5pzsmbrzha3mhbfg")
9151 (list texlive-etoolbox))
9152 (home-page "https://www.ctan.org/pkg/csquotes")
9153 (synopsis "Context sensitive quotation facilities")
9154 (description "This package provides advanced facilities for inline and
9155 display quotations. It is designed for a wide range of tasks ranging from the
9156 most simple applications to the more complex demands of formal quotations.
9157 The facilities include commands, environments, and user-definable 'smart
9158 quotes' which dynamically adjust to their context. Quotation marks are
9159 switched automatically if quotations are nested and they can be adjusted to
9160 the current language if the babel package is available. There are additional
9161 facilities designed to cope with the more specific demands of academic
9162 writing, especially in the humanities and the social sciences. All quote
9163 styles as well as the optional active quotes are freely configurable.")
9164 (license license:lppl1.3c+))))
9166 (define-public texlive-logreq
9167 (let ((template (simple-texlive-package
9169 (list "/doc/latex/logreq/"
9170 "/tex/latex/logreq/")
9172 "13difccs3cxlkqlnhw286yb0c7mifrxfd402a2x5wwxv0m1kgfqd")
9177 (list texlive-etoolbox))
9178 (home-page "https://www.ctan.org/pkg/logreq")
9179 (synopsis "Support for automation of the LaTeX workflow")
9180 (description "The package helps to automate a typical LaTeX
9181 workflow that involves running LaTeX several times and running tools
9182 such as BibTeX or makeindex. It will log requests like \"please rerun
9183 LaTeX\" or \"please run BibTeX on file X\" to an external file in a
9184 machine-readable format. Compiler scripts and integrated LaTeX
9185 editing environments may parse this file to determine the next steps
9186 in the workflow. In sum, the package will do two things:
9190 enable package authors to use LaTeX commands to issue requests, and
9193 collect all requests from all packages and write them to an external
9196 (license license:lppl1.3c))))
9198 (define-public texlive-biblatex
9199 (let ((template (simple-texlive-package
9201 (list "/doc/latex/biblatex/"
9202 "/tex/latex/biblatex/")
9204 "091cz2vrq22d1fr05wljd8vbllsz95q2hn2p8hhrwb2l2xrmxwn8")
9209 (list texlive-logreq texlive-url))
9210 (home-page "https://www.ctan.org/pkg/biblatex")
9211 (synopsis "Sophisticated bibliographies in LaTeX")
9212 (description "BibLaTeX is a complete reimplementation of the
9213 bibliographic facilities provided by LaTeX. Formatting of the
9214 bibliography is entirely controlled by LaTeX macros, facilitating the
9215 design of new bibliography and citation styles. BibLaTeX uses its own
9216 data backend program \"biber\" to read and process the bibliographic
9217 data. With biber, the range of features provided by biblatex
9222 full unicode support,
9225 customisable bibliography labels,
9228 multiple bibliographies in the same document, and
9231 subdivided bibliographies, such as bibliographies per chapter or
9234 (license license:lppl1.3c))))
9236 (define-public texlive-todonotes
9237 (let ((template (simple-texlive-package
9239 (list "/doc/latex/todonotes/"
9240 "/tex/latex/todonotes/")
9242 "1jqw8jy73488bdr971w0dnlggsvicagpnpx8ddqkma920ba8rabp")
9247 (list texlive-pgf texlive-latex-xkeyval))
9248 (home-page "http://www.ctan.org/pkg/todonotes")
9249 (synopsis "Marking things to do in a LaTeX document")
9250 (description "The @code{todonotes} package lets the user mark
9251 things to do later, in a simple and visually appealing way. The
9252 package takes several options to enable customization and finetuning
9253 of the visual appearance.")
9254 (license license:lppl1.3+))))
9256 (define-public texlive-units
9257 (let ((template (simple-texlive-package
9259 (list "/doc/latex/units/"
9260 "/tex/latex/units/")
9262 "1ia1vzy8dp7pdvmawwnmh9lmkajmpnnh62dixrjpb6mnxq118bfd")
9266 (home-page "http://www.ctan.org/pkg/units")
9267 (synopsis "Typeset physical units and fractions")
9268 (description "@code{units} is a package for typesetting physical
9269 units in a standard-looking way. The package is based upon
9270 @code{nicefrac}, a package for typing fractions. @code{nicefrac} is
9271 included in the @code{units} bundle.")
9272 (license license:gpl3+))))
9274 (define-public texlive-microtype
9275 (let ((template (simple-texlive-package
9277 (list "/doc/latex/microtype/"
9278 "/tex/latex/microtype/")
9280 "07861ixrjzxm0l24z82ivhaj4v6xm4ijbaabp66jxsf8s8h7dq9n")
9284 (home-page "http://www.ctan.org/pkg/microtype")
9285 (synopsis "Subliminal refinements towards typographical perfection")
9286 (description "@code{microtype} provides a LaTeX interface to the
9287 micro-typographic extensions that were introduced by pdfTeX and have
9288 since propagated to XeTeX and LuaTeX: most prominently character
9289 protrusion and font expansion, the adjustment of kerning and interword
9290 spacing, hyphenatable letterspacing and the possibility to disable all
9291 or selected ligatures. These features may be applied to customisable
9292 sets of fonts. All micro-typographic aspects of the fonts can be
9293 configured in a straight-forward and flexible way. Settings for
9294 various fonts are provided. An alternative package
9295 @code{letterspace}, which also works with plain TeX, is included in
9297 (license license:lppl1.3c))))
9299 (define-public texlive-caption
9300 (let ((template (simple-texlive-package
9302 (list "/doc/latex/caption/"
9303 "/tex/latex/caption/")
9305 "1isnn375d14xsx398j3m8rbb0pdk12kijw4xcgl82xici170klwq")
9309 (home-page "http://www.ctan.org/pkg/caption")
9310 (synopsis "Customising captions in floating environments")
9311 (description "The @code{caption} package provides many ways to
9312 customise the captions in floating environments like figure and table.
9313 Facilities include rotating captions, sideways captions and continued
9314 captions (for tables or figures that come in several parts). A list
9315 of compatibility notes, for other packages, is provided in the
9316 documentation. The package also provides the \"caption outside
9317 float\" facility, in the same way that simpler packages like
9318 @code{capt-ofcapt-of} do. The package supersedes @code{caption2}.
9319 Packages @code{bicaption}, @code{ltcaption}, @code{newfloat},
9320 @code{subcaption} and @code{totalcount} are included in the bundle.")
9321 (license license:lppl1.3+))))
9323 (define-public texlive-symbol
9325 (inherit (simple-texlive-package
9327 (list "/dvips/symbol/"
9328 "/fonts/afm/adobe/symbol/"
9329 "/fonts/afm/urw/symbol/"
9330 "/fonts/tfm/adobe/symbol/"
9331 "/fonts/tfm/urw35vf/symbol/"
9332 "/fonts/type1/urw/symbol/"
9333 "/fonts/map/dvips/symbol/"
9334 "/tex/latex/symbol/")
9336 "01xiygb88xwi7rfvh1zrlxzi5pqb5fvylws5zzszg379iz4pyzwj")
9338 (home-page "https://ctan.org/pkg/urw-base35")
9339 (synopsis "URW Base 35 font pack for LaTeX")
9340 (description "This package provides a drop-in replacement for the
9341 Symbol font from Adobe's basic set.")
9342 (license license:gpl2)))
9344 (define-public texlive-mathpazo
9346 (inherit (simple-texlive-package
9348 (list "/doc/latex/mathpazo/"
9349 "/fonts/afm/public/mathpazo/"
9350 "/fonts/tfm/public/mathpazo/"
9351 "/fonts/type1/public/mathpazo/"
9352 "/fonts/vf/public/mathpazo/")
9354 "02in6hdnbnkz216mpy8g6fk3wmlls8nh5982vmg37vhbj77lk0rh")
9356 (home-page "http://www.ctan.org/pkg/mathpazo")
9357 (synopsis "Fonts to typeset mathematics to match Palatino")
9358 (description "The Pazo Math fonts are a family of PostScript fonts
9359 suitable for typesetting mathematics in combination with the Palatino
9360 family of text fonts. The Pazo Math family is made up of five fonts
9361 provided in Adobe Type 1 format. These contain glyphs that are
9362 usually not available in Palatino and for which Computer Modern looks
9363 odd when combined with Palatino. These glyphs include the uppercase
9364 Greek alphabet in upright and slanted shapes, the lowercase Greek
9365 alphabet in slanted shape, several mathematical glyphs and the
9366 uppercase letters commonly used to represent various number sets.
9367 LaTeX macro support is provided in package @code{psnfss}.")
9368 (license license:gpl3+)))
9370 (define-public texlive-fpl
9372 (inherit (simple-texlive-package
9374 (list "/doc/fonts/fpl/"
9375 "/source/fonts/fpl/"
9376 "/fonts/afm/public/fpl/"
9377 "/fonts/type1/public/fpl/")
9379 "02gkl516z9kn8xqs269pdkqn37sxm8ib0pcs43s4rs2rhyyl5z68")
9381 (home-page "https://www.ctan.org/pkg/fpl")
9382 (synopsis "SC and OsF fonts for URW Palladio L")
9383 (description "The FPL Fonts provide a set of SC/OsF fonts for URW
9384 Palladio L which are compatible with the Palatino SC/OsF fonts from
9385 Adobe. LaTeX use is enabled by the mathpazo package, which is part of
9386 the @code{psnfss} distribution.")
9387 ;; Either LPPL version 1.0 or later, or GPL version 2
9388 (license (list license:lppl1.0+ license:gpl2))))
9390 (define-public texlive-arev
9392 (inherit (simple-texlive-package
9394 (list "/doc/fonts/arev/"
9395 "/fonts/afm/public/arev/"
9396 "/fonts/enc/dvips/arev/"
9397 "/fonts/map/dvips/arev/"
9398 "/fonts/tfm/public/arev/"
9399 "/fonts/type1/public/arev/"
9400 "/fonts/vf/public/arev/"
9403 "15wkgc48r52mjpymv6l7j9bl99kwxbvg3g1mi3qyq7nfm799dkxy")
9405 (home-page "https://www.ctan.org/pkg/arev")
9406 (synopsis "Fonts and LaTeX support files for Arev Sans")
9407 (description "The @code{arev} package provides type 1 fonts,
9408 virtual fonts and LaTeX packages for using Arev Sans in both text and
9409 mathematics. Arev Sans is a derivative of Bitstream Vera Sans, adding
9410 support for Greek and Cyrillic characters and a few variant letters
9411 appropriate for mathematics. The font is primarily used in LaTeX for
9412 presentations, particularly when using a computer projector. Arev
9413 Sans has large x-height, \"open letters\", wide spacing and thick
9414 stems. The style is very similar to the SliTeX font lcmss but
9415 heavier. Arev is one of a very small number of sans-font mathematics
9416 support packages. Others are cmbright, hvmath and kerkis.")
9417 (license (list license:silofl1.1 ;for Arev Sans
9418 license:lppl1.3a ;for TeX support files
9419 license:gpl2)))) ;for ams-mdbch.sty
9421 (define-public texlive-mathdesign
9423 (inherit (simple-texlive-package
9424 "texlive-mathdesign"
9425 (list "/doc/fonts/mathdesign/"
9426 "/dvips/mathdesign/"
9427 "/fonts/enc/dvips/mathdesign/"
9428 "/fonts/map/dvips/mathdesign/"
9429 "/fonts/tfm/public/mathdesign/"
9430 "/fonts/type1/public/mathdesign/"
9431 "/fonts/vf/public/mathdesign/"
9432 "/tex/latex/mathdesign/")
9434 "0jcby2sd0l3ank2drxc0qcf5d1cwa8idzh4g91h4nxk8zrzxj8nr")
9436 (home-page "https://www.ctan.org/pkg/mathdesign")
9437 (synopsis "Mathematical fonts to fit with particular text fonts")
9438 (description "The Math Design project offers free mathematical
9439 fonts that match with existing text fonts. To date, three free font
9440 families are available: Adobe Utopia, URW Garamond and Bitstream
9441 Charter. Mathdesign covers the whole LaTeX glyph set including AMS
9442 symbols. Both roman and bold versions of these symbols can be used.
9443 Moreover, there is a choice between three greek fonts (two of them
9444 created by the Greek Font Society).")
9445 (license license:gpl2+)))
9447 (define-public texlive-bera
9449 (inherit (simple-texlive-package
9451 (list "/doc/fonts/bera/"
9452 "/fonts/afm/public/bera/"
9453 "/fonts/map/dvips/bera/"
9454 "/fonts/tfm/public/bera/"
9455 "/fonts/type1/public/bera/"
9456 "/fonts/vf/public/bera/"
9459 "1pkmhhr6ah44xhipjr7nianv03hr4w4bn45xcvp264yw6ymqzqwr")
9461 (home-page "https://www.ctan.org/pkg/bera")
9462 (synopsis "Bera fonts")
9463 (description "The @code{bera} package contains the Bera Type 1
9464 fonts and files to use the fonts with LaTeX. Bera is a set of three
9465 font families: Bera Serif (a slab-serif Roman), Bera Sans (a Frutiger
9466 descendant) and Bera Mono (monospaced/typewriter). The Bera family is
9467 a repackaging, for use with TeX, of the Bitstream Vera family.")
9468 (license license:silofl1.1)))
9470 (define-public texlive-fourier
9472 (inherit (simple-texlive-package
9474 (list "/doc/fonts/fourier/"
9475 "/fonts/afm/public/fourier/"
9476 "/fonts/map/dvips/fourier/"
9477 "/fonts/tfm/public/fourier/"
9478 "/fonts/type1/public/fourier/"
9479 "/fonts/vf/public/fourier/"
9480 "/tex/latex/fourier/")
9482 "04d575nd4yvl58g9dfab9mrjxiv4792bdkz4bjvlkx6x257vlfzn")
9484 (home-page "https://www.ctan.org/pkg/fourier")
9485 (synopsis "Utopia fonts for LaTeX documents")
9486 (description "Fourier-GUTenberg is a LaTeX typesetting system
9487 which uses Adobe Utopia as its standard base font. Fourier-GUTenberg
9488 provides all complementary typefaces needed to allow Utopia based TeX
9489 typesetting including an extensive mathematics set and several other
9490 symbols. The system is absolutely stand-alone; apart from Utopia and
9491 Fourier no other typefaces are required. Utopia is a registered
9492 trademark of Adobe Systems Incorporated.")
9493 (license license:lppl)))
9495 (define-public texlive-utopia
9497 (inherit (simple-texlive-package
9499 (list "/doc/fonts/utopia/"
9500 "/fonts/afm/adobe/utopia/"
9501 "/fonts/tfm/adobe/utopia/"
9502 "/fonts/type1/adobe/utopia/"
9503 "/fonts/vf/adobe/utopia/")
9505 "113wgkfz4z0ls2grxxfj17l42a1yv9r5ipcd0156xnfsrqvqzxfc")
9507 (home-page "https://www.ctan.org/pkg/utopia")
9508 (synopsis "Adobe Utopia fonts")
9509 (description "The Adobe Standard Encoding set of the Utopia font
9510 family, as contributed to the X Consortium. The set comprises upright
9511 and italic shapes in medium and bold weights. Macro support and
9512 matching maths fonts are provided by the @code{fourier} and
9513 @code{mathdesign} font packages.")
9514 (license (license:fsf-free
9515 "http://mirrors.ctan.org/fonts/utopia/README"))))
9517 (define-public texlive-fontaxes
9519 (name "texlive-fontaxes")
9524 (uri (texlive-ref "latex" "fontaxes"))
9525 (file-name (string-append name "-" version "-checkout"))
9528 "0j3w1y66pkf3bjl9dh5xy3lfg33rg08s4wx37a3jcndvcji20j3f"))))
9529 (build-system texlive-build-system)
9530 (arguments '(#:tex-directory "latex/fontaxes"))
9531 (home-page "http://www.ctan.org/pkg/fontaxes")
9532 (synopsis "Additional font axes for LaTeX")
9533 (description "The @code{fontaxes} package adds several new font
9534 axes on top of LaTeX's New Font Selection Scheme (NFSS). In
9535 particular, it splits the shape axis into a primary and a secondary
9536 shape axis and it adds three new axes to deal with the different
9537 figure versions offered by many professional fonts.")
9538 (license license:lppl1.3+)))
9540 (define-public texlive-preprint
9542 (name "texlive-preprint")
9547 (uri (texlive-ref "latex" "preprint"))
9548 (file-name (string-append name "-" version "-checkout"))
9551 "173ik9xad3zih6gcdwdkzyljarh06ky6c5d2x1yjs22qqi75py5a"))))
9552 (build-system texlive-build-system)
9553 (arguments '(#:tex-directory "latex/preprint"))
9554 (home-page "http://www.ctan.org/pkg/preprint")
9555 (synopsis "Bundle of modules for preprints")
9556 (description "The bundle comprises: @code{authblk}, which permits
9557 footnote style author/affiliation input in the @command{\\author} command,
9558 @code{balance}, to balance the end of @command{\\twocolumn} pages,
9559 @code{figcaps}, to send figure captions, etc., to end document,
9560 @code{fullpage}, to set narrow page margins and set a fixed page style, and
9561 @code{sublabel}, which permits counters to be subnumbered.")
9562 (license license:lppl1.3+)))
9564 (define-public texlive-mweights
9566 (inherit (simple-texlive-package
9568 (list "/doc/latex/mweights/"
9569 "/tex/latex/mweights/")
9571 "12493g3yz06mhiybnphqbp49fjzy36clzw63b74mkfhsg1pq7h1b")
9573 (home-page "https://www.ctan.org/pkg/mweights")
9574 (synopsis "Support for multiple-weight font packages")
9575 (description "Many font families available for use with LaTeX are
9576 available at multiple weights. Many Type 1-oriented support packages
9577 for such fonts re-define the standard @code{\\mddefault} or
9578 @code{\\bfdefault} macros. This can create difficulties if the weight
9579 desired for one font family is not available for another font family,
9580 or if it differs from the weight desired for another font family. The
9581 @code{mweights} package provides a solution to these difficulties.")
9582 (license license:lppl)))
9584 (define-public texlive-cabin
9586 (inherit (simple-texlive-package
9588 (list "/doc/fonts/cabin/"
9589 "/fonts/enc/dvips/cabin/"
9590 "/fonts/map/dvips/cabin/"
9591 "/fonts/opentype/impallari/cabin/"
9592 "/fonts/tfm/impallari/cabin/"
9593 "/fonts/type1/impallari/cabin/"
9594 "/fonts/vf/impallari/cabin/"
9595 "/tex/latex/cabin/")
9597 "1gqqqbj7i18fs1ss5n3axd821hzq5kbv1dl7dqxp4gba619f1rli")
9599 (home-page "https://www.ctan.org/pkg/cabin")
9600 (synopsis "Humanist Sans Serif font with LaTeX support")
9601 (description "Cabin is a humanist sans with four weights, true
9602 italics and small capitals. According to its designer, Pablo
9603 Impallari, Cabin was inspired by the typefaces of Edward Johnston and
9604 Eric Gill. Cabin incorporates modern proportions, optical adjustments
9605 and some elements of the geometric sans. @code{cabin.sty} supports
9606 use of the font under LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX. It uses
9607 the @code{mweights} package to manage the user's view of all those
9608 font weights. An @code{sfdefault} option is provided to enable Cabin
9609 as the default text font. The @code{fontaxes} package is required for
9610 use with [pdf]LaTeX.")
9611 (license (list license:silofl1.1 ;for Cabin
9612 license:lppl)))) ;for support files
9614 (define-public texlive-newtx
9616 (inherit (simple-texlive-package
9618 (list "/doc/fonts/newtx/"
9619 "/fonts/afm/public/newtx/"
9620 "/fonts/enc/dvips/newtx/"
9621 "/fonts/map/dvips/newtx/"
9622 "/fonts/opentype/public/newtx/"
9623 "/fonts/tfm/public/newtx/"
9624 "/fonts/type1/public/newtx/"
9625 "/fonts/vf/public/newtx/"
9626 "/tex/latex/newtx/")
9628 "0h0wm3cd0wxag5x7vy3vgr42jd8m6ffkl90pnkvqdxzbnfdjv3l6")
9630 (home-page "https://www.ctan.org/pkg/newtx")
9631 (synopsis "Repackaging of the TX fonts with improved metrics")
9632 (description "The @code{newtx} bundle splits
9633 @code{txfonts.sty} (from the TX fonts distribution) into two
9634 independent packages, @code{newtxtext.sty} and @code{newtxmath.sty},
9635 each with fixes and enhancements. @code{newtxmath}'s metrics have
9636 been re-evaluated to provide a less tight appearance and to provide a
9637 @code{libertine} option that substitutes Libertine italic and Greek
9638 letters for the existing math italic and Greek glyphs, making a
9639 mathematics package that matches Libertine text quite well.")
9640 (license license:lppl1.3)))
9642 (define-public texlive-xcharter
9644 (inherit (simple-texlive-package
9646 (list "/doc/fonts/xcharter/"
9647 "/fonts/afm/public/xcharter/"
9648 "/fonts/enc/dvips/xcharter/"
9649 "/fonts/map/dvips/xcharter/"
9650 "/fonts/opentype/public/xcharter/"
9651 "/fonts/tfm/public/xcharter/"
9652 "/fonts/type1/public/xcharter/"
9653 "/fonts/vf/public/xcharter/"
9654 "/tex/latex/xcharter/")
9656 "0d8rvcmvxrlxqqxpirxqbhmiijpsz5y4vvldh1jnc018aannjlhm")
9658 (home-page "https://www.ctan.org/pkg/xcharter")
9659 (synopsis "Extension of the Bitstream Charter fonts")
9660 (description "@code{xcharter} repackages Bitstream Charter with an
9661 extended set of features. The extension provides small caps, oldstyle
9662 figures and superior figures in all four styles, accompanied by LaTeX
9663 font support files. The fonts themselves are provided in both Adobe
9664 Type 1 and OTF formats, with supporting files as necessary.")
9665 (license (list (license:fsf-free
9666 "http://mirrors.ctan.org/fonts/xcharter/README")
9669 (define-public texlive-ly1
9671 (inherit (simple-texlive-package
9673 (list "/doc/fonts/ly1/"
9674 "/fonts/enc/dvips/ly1/"
9675 "/fonts/map/dvips/ly1/"
9676 "/fonts/tfm/adobe/ly1/"
9677 "/fonts/vf/adobe/ly1/"
9680 "0wjyw0risgvrq97zfciglwy1f4msvfslln6pz0q8yzzx8wsv3zgq")
9682 (home-page "https://www.ctan.org/pkg/ly1")
9683 (synopsis "Support for LY1 LaTeX encoding")
9684 (description "The legacy @emph{texnansi} (TeX and ANSI) encoding
9685 is known in the LaTeX scheme of things as @emph{LY1} encoding. The
9686 @code{ly1} bundle includes metrics and LaTeX macros to use the three
9687 basic Adobe Type 1 fonts (Times, Helvetica and Courier) in LaTeX using
9689 (license license:lppl1.0+)))
9691 (define-public texlive-sectsty
9692 (let ((template (simple-texlive-package
9694 (list "/doc/latex/sectsty/"
9695 "/source/latex/sectsty/")
9697 "08m90j7cg6w46vnwgsp10clpj4l6c9a6l8dad20q3mnd32l84hbl"))))
9701 (substitute-keyword-arguments (package-arguments template)
9702 ((#:tex-directory _ '())
9704 ((#:build-targets _ '())
9706 ((#:tex-format _ "latex") "latex")
9708 `(modify-phases ,phases
9709 (add-after 'unpack 'chdir
9710 (lambda _ (chdir "source/latex/sectsty")))))))
9711 (home-page "https://www.ctan.org/pkg/sectsty")
9712 (synopsis "Control sectional headers")
9713 (description "This is a LaTeX2ε package to help change the style of any or
9714 all of LaTeX's sectional headers in the article, book, or report classes.
9715 Examples include the addition of rules above or below a section title.")
9716 (license license:lppl1.2+))))
9718 (define-public texlive-morefloats
9719 (let ((template (simple-texlive-package
9720 "texlive-morefloats"
9721 (list "/doc/latex/morefloats/"
9722 "/source/latex/morefloats/")
9724 "0n0405fjxyjlbjspzfvhl0wjkwiqicj3hk8fa0g7agw72wlxscpl"))))
9728 (substitute-keyword-arguments (package-arguments template)
9729 ((#:tex-directory _ '())
9731 ((#:build-targets _ '())
9732 ''("morefloats.ins"))
9734 `(modify-phases ,phases
9735 (add-after 'unpack 'chdir
9736 (lambda _ (chdir "source/latex/morefloats")))))))
9737 (home-page "https://www.ctan.org/pkg/morefloats")
9738 (synopsis "Increase the number of simultaneous LaTeX floats")
9739 (description "LaTeX can, by default, only cope with 18 outstanding floats;
9740 any more, and you get the error “too many unprocessed floats”. This package
9741 releases the limit; TeX itself imposes limits (which are independent of the
9742 help offered by e-TeX).
9744 However, if your floats can’t be placed anywhere, extending the number of
9745 floats merely delays the arrival of the inevitable error message.")
9746 (license license:lppl1.3c+))))
9748 (define-public texlive-ifmtarg
9749 (let ((template (simple-texlive-package
9751 (list "/doc/latex/ifmtarg/"
9752 "/source/latex/ifmtarg/")
9754 "0cwjn4bhq9zyfxr1595hgyc1d7rcsf9lva55x98q81xy5xrrmrb2"))))
9758 (substitute-keyword-arguments (package-arguments template)
9759 ((#:tex-directory _ '())
9761 ((#:build-targets _ '())
9763 ((#:tex-format _ "latex") "latex")
9765 `(modify-phases ,phases
9766 (add-after 'unpack 'chdir
9767 (lambda _ (chdir "source/latex/ifmtarg")))))))
9769 (list texlive-latex-filecontents))
9770 (home-page "https://www.ctan.org/pkg/ifmtarg")
9771 (synopsis "If-then-else command for processing potentially empty arguments")
9772 (description "This package provides a command for the LaTeX programmer for
9773 testing whether an argument is empty.")
9774 (license license:lppl1.3c+))))
9776 (define-public texlive-pagenote
9777 (let ((template (simple-texlive-package
9779 (list "/doc/latex/pagenote/"
9780 "/source/latex/pagenote/")
9782 "0cqfqrfvnzq7ldaf255hcvi8xsfx8h7iha3hs8p9gdi3cfzbcmjm"))))
9786 (substitute-keyword-arguments (package-arguments template)
9787 ((#:tex-directory _ '())
9789 ((#:build-targets _ '())
9792 `(modify-phases ,phases
9793 (add-after 'unpack 'chdir
9794 (lambda _ (chdir "source/latex/pagenote")))))))
9796 (list texlive-ifmtarg))
9797 (home-page "https://www.ctan.org/pkg/pagenote")
9798 (synopsis "Notes at end of document")
9799 (description "The pagenote package provides tagged notes on a separate
9800 page (also known as ‘end notes’).")
9801 (license license:lppl1.3c+))))
9803 (define-public texlive-titling
9804 (let ((template (simple-texlive-package
9806 (list "/doc/latex/titling/"
9807 "/source/latex/titling/")
9809 "0pc3806kc9p2dizdghis0p0b00xs0gmlh2nmf94f5wasz5mkw6bk"))))
9813 (substitute-keyword-arguments (package-arguments template)
9814 ((#:tex-directory _ '())
9816 ((#:build-targets _ '())
9818 ((#:tex-format _ "latex") "latex")
9820 `(modify-phases ,phases
9821 (add-after 'unpack 'chdir
9822 (lambda _ (chdir "source/latex/titling")))))))
9825 (home-page "https://www.ctan.org/pkg/titling")
9826 (synopsis "Control typesetting of the \\maketitle command")
9827 (description "The @code{titling} package provides control over the
9828 typesetting of the @code{\\maketitle} command and @code{\\thanks} commands,
9829 and makes the \title, @code{\\author} and @code{\\date} information
9830 permanently available. Multiple titles are allowed in a single document. New
9831 titling elements can be added and a @code{titlepage} title can be centered on
9833 (license license:lppl))))
9835 (define-public texlive-ifoddpage
9836 (let ((template (simple-texlive-package
9838 (list "/source/latex/ifoddpage/")
9840 "14x0haj3xjsk9dn2djg117sl7x5nbwgbivhjj3ichnxlgrlf1bis"))))
9844 (substitute-keyword-arguments (package-arguments template)
9845 ((#:tex-directory _ '())
9847 ((#:build-targets _ '())
9848 ''("ifoddpage.ins"))
9850 `(modify-phases ,phases
9851 (add-after 'unpack 'chdir
9852 (lambda _ (chdir "source/latex/ifoddpage")))))))
9854 (list texlive-ydoc))
9855 (home-page "https://www.ctan.org/pkg/ifoddpage")
9856 (synopsis "Determine if the current page is odd or even")
9857 (description "This package provides an @code{\\ifoddpage} conditional to
9858 determine if the current page is odd or even. The macro @code{\\checkoddpage}
9859 must be used directly before to check the page number using a label. Two
9860 compiler runs are therefore required to achieve correct results. In addition,
9861 the conditional @code{\\ifoddpageoronside} is provided which is also true in
9862 @code{oneside} mode where all pages use the odd page layout.")
9863 (license license:lppl1.3))))
9865 (define-public texlive-storebox
9866 (let ((template (simple-texlive-package
9868 (list "/source/latex/storebox/")
9870 "1ybpjfrria57fwvr9kriiw6y76ivwvsyb6ayp0bi750smsv8k5n1"))))
9874 (substitute-keyword-arguments (package-arguments template)
9875 ((#:tex-directory _ '())
9877 ((#:build-targets _ '())
9880 `(modify-phases ,phases
9881 (add-after 'unpack 'chdir
9882 (lambda _ (chdir "source/latex/storebox")))))))
9884 (list texlive-ydoc))
9885 (home-page "https://www.ctan.org/pkg/storebox")
9886 (synopsis "Storing information for reuse")
9887 (description "The package provides \"store boxes\" whose user interface
9888 matches that of normal LaTeX \"save boxes\", except that the content of a
9889 store box appears at most once in the output PDF file, however often it is
9890 used. The present version of the package supports pdfLaTeX and LuaLaTeX; when
9891 DVI is output, store boxes behave the same as save boxes.")
9892 (license license:lppl1.3))))
9894 (define-public texlive-collectbox
9895 (let ((template (simple-texlive-package
9896 "texlive-collectbox"
9897 (list "/source/latex/collectbox/")
9899 "1k0bbphvr20k9hgpr3dv869h9ygxx3g8vjapkc63nq8i13crpsvz"))))
9903 (substitute-keyword-arguments (package-arguments template)
9904 ((#:tex-directory _ '())
9906 ((#:build-targets _ '())
9907 ''("collectbox.ins"))
9909 `(modify-phases ,phases
9910 (add-after 'unpack 'chdir
9911 (lambda _ (chdir "source/latex/collectbox")))))))
9913 (list texlive-ydoc))
9914 (home-page "https://www.ctan.org/pkg/collectbox")
9915 (synopsis "Collect and process macro arguments as boxes")
9916 (description "The package provides macros to collect and process a macro
9917 argument (i.e., something which looks like a macro argument) as a horizontal
9918 box rather than as a real macro argument. The \"arguments\" are stored as if
9919 they had been saved by @code{\\savebox} or by the @code{lrbox} environment.
9920 Grouping tokens @code{\\bgroup} and @code{\\egroup} may be used, which allows
9921 the user to have the beginning and end of a group in different macro
9922 invocations, or to place them in the begin and end code of an environment.
9923 Arguments may contain verbatim material or other special use of characters.
9924 The macros were designed for use within other macros.")
9925 (license license:lppl1.3))))
9927 (define-public texlive-grfext
9928 (let ((template (simple-texlive-package
9930 (list "/doc/latex/grfext/README.md"
9931 "/source/latex/grfext/grfext.dtx")
9933 "1cdvjp9gcnixxlbl8ibwz1yr799gwax5hm686hwmwsigdgafhzgq"))))
9937 (substitute-keyword-arguments (package-arguments template)
9938 ((#:tex-directory _ '())
9940 ((#:build-targets _ '())
9943 `(modify-phases ,phases
9944 (add-after 'unpack 'chdir
9945 (lambda _ (chdir "source/latex/grfext")))))))
9946 (home-page "https://github.com/ho-tex/grfext")
9947 (synopsis "Manipulate the graphics package's list of extensions")
9948 (description "This package provides macros for adding to, and reordering
9949 the list of graphics file extensions recognised by package graphics.")
9950 (license license:lppl1.3c+))))
9952 (define-public texlive-adjustbox
9953 (let ((template (simple-texlive-package
9955 (list "/doc/latex/adjustbox/"
9956 "/source/latex/adjustbox/")
9958 "074nxbnl184b6iwhis5n85pilq3b2pld3bbrq0wc30hw462m898k"))))
9962 (substitute-keyword-arguments (package-arguments template)
9963 ((#:tex-directory _ '())
9965 ((#:build-targets _ '())
9966 ''("adjustbox.ins"))
9968 `(modify-phases ,phases
9969 (add-after 'unpack 'chdir
9970 (lambda _ (chdir "source/latex/adjustbox")))))))
9972 (list texlive-ydoc))
9975 texlive-latex-varwidth
9976 texlive-latex-xkeyval
9980 (home-page "https://www.ctan.org/pkg/adjustbox")
9981 (synopsis "Graphics package-alike macros for “general” boxes")
9982 (description "The package provides several macros to adjust boxed
9983 content. One purpose is to supplement the standard @code{graphics} package,
9984 which defines the macros @code{\\resizebox}, @code{\\scalebox} and
9985 @code{\\rotatebox} , with the macros @code{\\trimbox} and @code{\\clipbox}.
9986 The main feature is the general @code{\\adjustbox} macro which extends the
9987 @code{key=value} interface of @code{\\includegraphics} from the
9988 @code{graphics} package and applies it to general text content. Additional
9989 provided box macros are @code{\\lapbox}, @code{\\marginbox},
9990 @code{\\minsizebox}, @code{\\maxsizebox} and @code{\\phantombox}.")
9991 (license license:lppl1.3))))
9993 (define-public texlive-tcolorbox
9994 (let ((template (simple-texlive-package
9996 (list "/doc/latex/tcolorbox/"
9997 "/tex/latex/tcolorbox/")
9999 "1qnsbblkadzdn1fx2k21xnlwcb35pg9xya24chkm66jmidi22qp0")
10000 #:trivial? #true)))
10004 (list texlive-etoolbox texlive-latex-environ texlive-pgf
10005 texlive-latex-tools))
10006 (home-page "https://www.ctan.org/pkg/tcolorbox")
10007 (synopsis "Colored boxes, for LaTeX examples and theorems, etc")
10008 (description "This package provides an environment for colored and
10009 framed text boxes with a heading line. Optionally, such a box may be split in
10010 an upper and a lower part; thus the package may be used for the setting of
10011 LaTeX examples where one part of the box displays the source code and the
10012 other part shows the output. Another common use case is the setting of
10013 theorems. The package supports saving and reuse of source code and text
10015 (license license:lppl1.3c+))))
10017 (define-public texlive-latex-ebproof
10019 (name "texlive-latex-ebproof")
10024 (uri (git-reference
10025 (url "https://framagit.org/manu/ebproof")
10027 (file-name (git-file-name name version))
10030 "1zkrfaf343js0yc1x7m3d8hzbh5izn0lb01jrmdpjm51kdbh30xq"))))
10031 (build-system texlive-build-system)
10032 (arguments '(#:tex-directory "latex/ebproof"))
10034 (list texlive-latex-l3kernel))
10035 (home-page "http://www.ctan.org/pkg/ebproof")
10037 "Formal proofs in the style of sequent calculus")
10039 "This package provides commands to typeset proof trees in the style of
10040 sequent calculus and related systems. The commands allow for writing
10041 inferences with any number of premises and alignment of successive formulas on
10042 an arbitrary point. Various options allow complete control over spacing,
10043 styles of inference rules, placement of labels, etc.")
10044 (license license:lppl1.3+)))
10046 (define-public texlive-latex-bussproofs
10047 (let ((template (simple-texlive-package
10048 "texlive-latex-bussproofs"
10049 (list "/doc/latex/bussproofs/"
10050 "/tex/latex/bussproofs/")
10052 "1gb8y9g89fqw1kix4d2vb7mj440vlb8hnpsa3jqpk9yicndwcyk6"))))
10056 (substitute-keyword-arguments (package-arguments template)
10057 ((#:tex-directory _ '())
10058 "latex/bussproofs")
10059 ((#:build-targets _ '())
10060 ''()) ; "bussproofs.sty"
10062 `(modify-phases ,phases
10063 (add-after 'unpack 'chdir
10064 (lambda _ (chdir "tex/latex/bussproofs")))))))
10065 (home-page "https://www.math.ucsd.edu/~sbuss/ResearchWeb/bussproofs/index.html")
10066 (synopsis "Formal proofs in the style of sequent calculus")
10068 "This package provides commands to typeset proof trees in the style of
10069 sequent calculus and related systems.")
10070 (license license:lppl1.3+))))
10072 (define-public texlive-eurosym
10073 (let ((template (simple-texlive-package
10075 (list "/doc/fonts/eurosym/"
10076 "/fonts/map/dvips/eurosym/"
10077 "/fonts/source/public/eurosym/"
10078 "/fonts/tfm/public/eurosym/"
10079 "/fonts/type1/public/eurosym/"
10080 "/tex/latex/eurosym/eurosym.sty")
10082 "0ml24rxbl1yir4s3fjjxm0z7axklc3p33syg41b76zc7hck9mk8s")
10083 #:trivial? #true)))
10086 (home-page "https://www.ctan.org/pkg/eurosym")
10087 (synopsis "METAFONT and macros for Euro sign")
10088 (description "This package provides the European currency symbol for the
10089 Euro implemented in METAFONT, using the official European Commission
10090 dimensions, and providing several shapes (normal, slanted, bold, outline).
10091 The package also includes a LaTeX package which defines the macro,
10092 pre-compiled font files, and documentation.")
10093 (license (license:non-copyleft "file:///doc/fonts/eurosym/COPYING")))))
10095 (define-public texlive-kastrup
10097 (name "texlive-kastrup")
10098 (version (number->string %texlive-revision))
10102 (uri (texlive-ref "generic" "kastrup"))
10103 (file-name (string-append name "-" version "-checkout"))
10106 "1kkshc48brkq2nx3rlbv78a2130izykbf33ri1q2shqr8pjfmmq8"))))
10107 (build-system texlive-build-system)
10109 '(#:tex-directory "generic/kastrup"
10111 (modify-phases %standard-phases
10112 (add-after 'unpack 'remove-generated-file
10114 (delete-file "binhex.drv")
10116 (home-page "http://www.ctan.org/pkg/binhex")
10117 (synopsis "Convert numbers into binary, octal and hexadecimal")
10118 (description "The @code{kastrup} package provides the
10119 @emph{binhex.tex} file. This file provides expandable macros for both
10120 fixed-width and minimum-width numbers to bases 2, 4, 8 and 16. All
10121 constructs TeX accepts as arguments to its @code{\\number} primitive
10122 are valid as arguments for the macros. The package may be used under
10123 LaTeX and plain TeX.")
10124 (license (license:fsf-free "file:/binhex.dtx"))))
10126 (define-public texlive-translator
10128 (inherit (simple-texlive-package
10129 "texlive-translator"
10130 (list "doc/latex/translator/"
10131 "tex/latex/translator/")
10132 (base32 "13rxdqhvgwc5lz2wsw4jwsb92614wlxsa90rmzxyrc6xjz1jypnk")
10134 (build-system texlive-build-system)
10135 (home-page "https://ctan.org/macros/latex/contrib/translator")
10136 (synopsis "Easy translation of strings in LaTeX")
10138 "This LaTeX package provides a flexible mechanism for translating
10139 individual words into different languages. For example, it can be used to
10140 translate a word like \"figure\" into, say, the German word \"Abbildung\".
10141 Such a translation mechanism is useful when the author of some package would
10142 like to localize the package such that texts are correctly translated into the
10143 language preferred by the user. This package is not intended to be used to
10144 automatically translate more than a few words.")
10145 (license (list license:lppl license:gpl1+))))
10147 (define-public texlive-latex-textpos
10149 (inherit (simple-texlive-package
10150 "texlive-latex-textpos"
10151 (list "doc/latex/textpos/"
10152 "tex/latex/textpos/")
10153 (base32 "0sqm3pr9jyf9sf432qawscbf50glj58acwcfzyk58ijic2g01hzl")
10155 (build-system texlive-build-system)
10156 (home-page "https://ctan.org/pkg/textpos")
10157 (synopsis "Absolute positioning of text on the LaTeX page")
10159 "This package facilitates placing boxes at absolute positions on the
10160 LaTeX page. There are several reasons why this might be useful, but the main
10161 one (or at least my motivating one) is to help produce a large-format
10164 This package provides a single environment, plus a starred variant, which
10165 contains the text (or graphics, or table, or whatever) which is to be placed
10166 on the page, and which specifies where it is to be placed. The environment is
10167 accompanied by various configuration commands.")
10168 (license license:lppl)))
10170 (define-public texlive-xifthen
10172 (inherit (simple-texlive-package
10174 (list "doc/latex/xifthen/"
10175 "tex/latex/xifthen/")
10177 "0b33mlmnxsj5mi06v2w2zgamk51mgv1lxdr1cax8nkpn9g7n9axw")
10179 (build-system texlive-build-system)
10180 (home-page "https://ctan.org/pkg/xifthen")
10181 (synopsis "Extended conditional commands")
10183 "This package extends the @code{ifthen} package by implementing new
10184 commands to go within the first argument of @code{\\\\ifthenelse}: to test
10185 whether a string is void or not, if a command is defined or equivalent to
10186 another. The package also enables use of complex expressions as introduced by
10187 the package @code{calc}, together with the ability of defining new commands to
10188 handle complex tests.")
10189 (license license:lppl)))
10191 (define-public bibtool
10200 (url "https://github.com/ge-ne/bibtool")
10201 (commit (string-append
10203 (string-map (lambda (c) (if (char=? c #\.) #\_ c))
10205 (file-name (git-file-name name version))
10207 (base32 "0grnmqj8w5018nd7r6drnq2yvfhf22gj9i3rj8ilhzm7zmz3zn0g"))))
10208 (build-system gnu-build-system)
10210 `(#:test-target "test"))
10213 (home-page "http://www.gerd-neugebauer.de/software/TeX/BibTool/en")
10214 (synopsis "Tool for manipulating BibTeX databases")
10216 "BibTool manipulates BibTeX files. The possibilities of BibTool include
10217 sorting and merging of BibTeX databases, generation of uniform reference keys,
10218 and selecting references used in a publication.")
10219 (license license:gpl2+)))