;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014, 2015, 2016, 2022 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
;;; Copyright © 2016, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
;;; Copyright © 2016-2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017, 2020-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2020, 2021 Paul Garlick <pgarlick@tourbillion-technology.com>
;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021-2023 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
;;; Copyright © 2021 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2021 Thiago Jung Bauermann <bauermann@kolabnow.com>
;;; Copyright © 2022 Simon South <simon@simonsouth.net>
;;; Copyright © 2022 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2022 Fabio Natali <me@fabionatali.com>
;;; Copyright © 2022 Philip McGrath <philip@philipmcgrath.com>
;;; Copyright © 2023 Thomas Albers Raviola <thomas@thomaslabs.org>
;;; Copyright © 2023 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2023 Dominik Delgado Steuter <d@delgado.nrw>
;;; Copyright © 2023 Timothy Sample <samplet@ngyro.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages tex)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix gexp)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system copy)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system perl)
  #:use-module (guix build-system python)
  #:use-module (guix build-system qt)
  #:use-module (guix build-system trivial)
  #:use-module (guix build-system texlive)
  #:use-module (guix utils)
  #:use-module (guix deprecation)
  #:use-module (guix gexp)
  #:use-module (guix git-download)
  #:use-module (guix svn-download)
  #:use-module (gnu packages)
  #:use-module (gnu packages algebra)
  #:use-module (gnu packages aspell)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages bash)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages cpp)
  #:use-module (gnu packages digest)
  #:use-module (gnu packages lisp)
  #:use-module (gnu packages fonts)
  #:use-module (gnu packages fontutils)
  #:use-module (gnu packages gd)
  #:use-module (gnu packages ghostscript)
  #:use-module (gnu packages graphviz)
  #:use-module (gnu packages groff)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages icu4c)
  #:use-module (gnu packages image)
  #:use-module (gnu packages java)
  #:use-module (gnu packages libreoffice)
  #:use-module (gnu packages lua)
  #:use-module (gnu packages maths)
  #:use-module (gnu packages multiprecision)
  #:use-module (gnu packages pdf)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages perl-check)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages plotutils)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages readline)
  #:use-module (gnu packages ruby)
  #:use-module (gnu packages shells)
  #:use-module (gnu packages tcl)
  #:use-module (gnu packages base)
  #:use-module (gnu packages gawk)
  #:use-module (gnu packages web)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages texinfo)
  #:use-module (ice-9 ftw)
  #:use-module (ice-9 match)
  #:use-module ((srfi srfi-1) #:hide (zip)))

;;; Commentary:
;;;
;;; This module aims at being as faithful as possible to TeX Live
;;; distribution.  Yet, some of the packages in this module are Guix specific.
;;; The following paragraphs describe them.
;;;
;;; Guix provides two different TeX Live systems: one monolithic, the TEXLIVE
;;; package, and the other modular.  Both are built from TEXLIVE-LIBKPATHSEA,
;;; which is therefore the starting of any TeX Live update.  Both also rely on
;;; TEXLIVE-SCRIPTS, which contains core scripts and related files---although
;;; monolithic TeX Live only makes use of its source.  At that point, both
;;; systems diverge.
;;;
;;; On the one hand, the monolithic TeX Live merges TEXLIVE-BIN-FULL and
;;; TEXLIVE-TEXMF in order to create TEXLIVE.
;;;
;;; On the other hand, modular TeX Live relies on TEXLIVE-BIN, which is
;;; provided as a mandatory native input in the texlive build system.  Unlike
;;; TEXLIVE-BIN-FULL, it doesn't provide any script (but still include all the
;;; binaries; this might change in the future).  Then the system builds its
;;; way towards regular `texlive-latex-bin' package, which is a convenient
;;; native input (that can be ignored) for most TeX Live packages.  Those
;;; earlier in the build chain need the TEXLIVE-DOCSTRIP package to still be
;;; able to generate their runfiles.
;;;
;;; Default font map files are updated in a profile hook (see
;;; `texlive-font-maps' in "profiles.scm").  However, this option is not
;;; available when building documentation for a package.  Consequently, this
;;; module also provides TEXLIVE-UPDMAP.CFG function, which creates a TeX Live
;;; tree with font map files updates.  It should be used exclusively for
;;; package definitions, as a native input.  It is possible to augment that
;;; tree, in particular with additional font packages.
;;;
;;; Unlike font map files, TeX formats are not built from a profile hook, as
;;; the process would be too time-consuming, e.g., when invoking "guix shell".
;;; Instead, those are generated when the corresponding package is built.  It
;;; is therefore not possible for the build system to take into consideration
;;; hyphenation rules installed after a given format has been built.  To work
;;; around this, all hyphenations rules are packed into
;;; TEXLIVE-HYPHEN-COMPLETE, and all formats, being built with it, include all
;;; rules right from the start.
;;;
;;; Any other "texlive-name" package matches the "name" TeX Live package, as
;;; defined in the "texlive.tlpdb" file.
;;;
;;; Code:

(define-syntax-rule (define-deprecated-package old-name name)
  "Define OLD-NAME as a deprecated package alias for NAME."
  (define-deprecated/public old-name name
    (deprecated-package (symbol->string 'old-name) name)))

(define-public texlive-libkpathsea
  (package
    (name "texlive-libkpathsea")
    (version "20230313")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "ftp://tug.org/historic/systems/texlive/"
                           (string-take version 4)
                           "/texlive-" version "-source.tar.xz"))
       (sha256
        (base32
         "1fbrkv7g9j6ipmwjx27l8l9l974rmply8bhf7c2iqc6h3q7aly1q"))
       (modules '((guix build utils)
                  (ice-9 ftw)))
       (snippet
        #~(begin
            (with-directory-excursion "libs"
              (for-each
               delete-file-recursively
               (scandir "."
                        (lambda (file)
                          (and (not (member file '("." "..")))
                               (eq? 'directory (stat:type (stat file))))))))
            (with-directory-excursion "texk"
              (let ((preserved-directories '("." ".." "kpathsea")))
                (for-each
                 delete-file-recursively
                 (scandir "."
                          (lambda (file)
                            (and (not (member file preserved-directories))
                                 (eq? 'directory (stat:type (stat file)))))))))))))
    (build-system gnu-build-system)
    (arguments
     (list
      #:out-of-source? #t
      #:configure-flags
      #~(list "--disable-static"
              "--disable-native-texlive-build"
              "--enable-shared"
              "--with-banner-add=/GNU Guix"
              "--disable-all-pkgs"
              "--enable-kpathsea")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'customize-texmf.cnf
            ;; The default "texmf.cnf" file is provided by this package.
            ;; Every variable of interest is set relatively to the GUIX_TEXMF
            ;; environment variable defined via a search path below.
            ;;
            ;; This phase must happen before the `configure' phase, because
            ;; the value of the TEXMFCNF variable (modified along with the
            ;; SELFAUTOLOC reference below) is used at compile time to
            ;; generate "paths.h" file.
            (lambda _
              (substitute* "texk/kpathsea/texmf.cnf"
                (("^TEXMFROOT = .*")
                 "TEXMFROOT = {$GUIX_TEXMF}/..\n")
                (("^TEXMF = .*")
                 "TEXMF = {$GUIX_TEXMF}\n")
                (("\\$SELFAUTOLOC(/share/texmf-dist/web2c)" _ suffix)
                 (string-append #$output suffix))
                ;; Don't truncate lines.
                (("^error_line = .*$") "error_line = 254\n")
                (("^half_error_line = .*$") "half_error_line = 238\n")
                (("^max_print_line = .*$") "max_print_line = 1000\n"))))
          (add-after 'unpack 'patch-directory-traversal
            ;; When ST_NLINK_TRICK is set, kpathsea attempts to avoid work
            ;; when searching files by assuming that a directory with exactly
            ;; two links has no subdirectories.  This assumption does not hold
            ;; in our case, so some directories with symlinked sub-directories
            ;; would not be traversed.
            (lambda _
              (substitute* "texk/kpathsea/config.h"
                (("#define ST_NLINK_TRICK") ""))))
          (add-after 'install 'post-install
            (lambda _
              (with-directory-excursion "texk/kpathsea"
                (invoke "make" "install")))))))
    (native-search-paths
     (list (search-path-specification
            (variable "GUIX_TEXMF")
            (files '("share/texmf-dist")))))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Path searching library")
    (description
     "Kpathsea is a library whose purpose is to return a filename from a list
of user-specified directories similar to how shells look up executables.")
    (license license:lgpl2.1)))

(define-public texlive-scripts
  (package
    (name "texlive-scripts")
    (version (number->string %texlive-revision))
    ;; We cannot use `texlive-origin' because its locations start out in
    ;; "texmf-dist" directory which is one level below "tlpkg" that we also
    ;; need to pull here.
    (source (origin
              (method svn-multi-fetch)
              (uri (svn-multi-reference
                    (url (string-append "svn://www.tug.org/texlive/tags/"
                                        %texlive-tag "/Master/"))
                    (locations
                     (list "texmf-dist/doc/man/man1/fmtutil-sys.1"
                           "texmf-dist/doc/man/man1/fmtutil-sys.man1.pdf"
                           "texmf-dist/doc/man/man1/fmtutil-user.1"
                           "texmf-dist/doc/man/man1/fmtutil-user.man1.pdf"
                           "texmf-dist/doc/man/man1/fmtutil.1"
                           "texmf-dist/doc/man/man1/fmtutil.man1.pdf"
                           "texmf-dist/doc/man/man1/install-tl.1"
                           "texmf-dist/doc/man/man1/install-tl.man1.pdf"
                           "texmf-dist/doc/man/man1/mktexfmt.1"
                           "texmf-dist/doc/man/man1/mktexfmt.man1.pdf"
                           "texmf-dist/doc/man/man1/mktexlsr.1"
                           "texmf-dist/doc/man/man1/mktexlsr.man1.pdf"
                           "texmf-dist/doc/man/man1/mktexmf.1"
                           "texmf-dist/doc/man/man1/mktexmf.man1.pdf"
                           "texmf-dist/doc/man/man1/mktexpk.1"
                           "texmf-dist/doc/man/man1/mktexpk.man1.pdf"
                           "texmf-dist/doc/man/man1/mktextfm.1"
                           "texmf-dist/doc/man/man1/mktextfm.man1.pdf"
                           "texmf-dist/doc/man/man1/texhash.1"
                           "texmf-dist/doc/man/man1/texhash.man1.pdf"
                           "texmf-dist/doc/man/man1/tlmgr.1"
                           "texmf-dist/doc/man/man1/tlmgr.man1.pdf"
                           "texmf-dist/doc/man/man1/updmap-sys.1"
                           "texmf-dist/doc/man/man1/updmap-sys.man1.pdf"
                           "texmf-dist/doc/man/man1/updmap-user.1"
                           "texmf-dist/doc/man/man1/updmap-user.man1.pdf"
                           "texmf-dist/doc/man/man1/updmap.1"
                           "texmf-dist/doc/man/man1/updmap.man1.pdf"
                           "texmf-dist/doc/man/man5/fmtutil.cnf.5"
                           "texmf-dist/doc/man/man5/fmtutil.cnf.man5.pdf"
                           "texmf-dist/doc/man/man5/updmap.cfg.5"
                           "texmf-dist/doc/man/man5/updmap.cfg.man5.pdf"
                           "texmf-dist/dvips/tetex/"
                           "texmf-dist/fonts/enc/dvips/tetex/"
                           "texmf-dist/fonts/map/dvips/tetex/"
                           "texmf-dist/scripts/texlive/fmtutil-sys.sh"
                           "texmf-dist/scripts/texlive/fmtutil-user.sh"
                           "texmf-dist/scripts/texlive/fmtutil.pl"
                           "texmf-dist/scripts/texlive/mktexlsr.pl"
                           "texmf-dist/scripts/texlive/mktexmf"
                           "texmf-dist/scripts/texlive/mktexpk"
                           "texmf-dist/scripts/texlive/mktextfm"
                           "texmf-dist/scripts/texlive/tlmgr.pl"
                           "texmf-dist/scripts/texlive/updmap-sys.sh"
                           "texmf-dist/scripts/texlive/updmap-user.sh"
                           "texmf-dist/scripts/texlive/updmap.pl"
                           "texmf-dist/web2c/fmtutil-hdr.cnf"
                           "texmf-dist/web2c/updmap-hdr.cfg"
                           "texmf-dist/web2c/updmap.cfg"
                           "tlpkg/gpg/"
                           "tlpkg/installer/config.guess"
                           "tlpkg/installer/curl/curl-ca-bundle.crt"
                           "tlpkg/TeXLive/"
                           "tlpkg/texlive.tlpdb"))
                    (revision %texlive-revision)))
              (sha256
               "0sqbg5kjpzkpm1fq2c9hpf4f21bvjs3xas944dlbqp44lsqhcmsk")))
    (outputs '("out" "doc"))
    (build-system copy-build-system)
    (arguments
     (list
      #:imported-modules `(,@%copy-build-system-modules
                           (guix build texlive-build-system)
                           (guix build union))
      #:modules '((guix build copy-build-system)
                  ((guix build texlive-build-system) #:prefix tex:)
                  (guix build utils))
      #:install-plan
      #~'(("texmf-dist/dvips/"   "share/texmf-dist/dvips")
          ("texmf-dist/fonts/"   "share/texmf-dist/fonts")
          ("texmf-dist/scripts/" "share/texmf-dist/scripts")
          ("texmf-dist/web2c/"   "share/texmf-dist/web2c")
          ("tlpkg/"              "share/tlpkg"))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-scripts
            (lambda _
              ;; First patch shell scripts with ".sh" extension.
              (with-directory-excursion "texmf-dist"
                ((assoc-ref tex:%standard-phases 'patch-shell-scripts)))
              ;; Then patch scripts without such extension.
              (let ((dirs (map (compose dirname which)
                               (list "awk" "cat" "grep" "sed"))))
                (substitute*
                    (find-files "texmf-dist/scripts/" "^mktex(mf|pk|tfm)$")
                  (("^version=" m)
                   (format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
                           dirs m))))
              ;; Make sure that fmtutil can find its Perl modules.
              (substitute* "texmf-dist/scripts/texlive/fmtutil.pl"
                (("\\$TEXMFROOT/")
                 (string-append #$output "/share/")))
              ;; Likewise for updmap.pl.
              (substitute* "texmf-dist/scripts/texlive/updmap.pl"
                (("\\$TEXMFROOT/tlpkg")
                 (string-append #$output "/share/tlpkg")))
              ;; Likewise for the tlmgr.
              (substitute* "texmf-dist/scripts/texlive/tlmgr.pl"
                ((".*\\$::installerdir = \\$Master.*" all)
                 (format #f "  $Master = ~s;~%~a"
                         (string-append #$output "/share")
                         all)))))
          (add-after 'unpack 'fix-fmtutil
            ;; The line below generates an error when running "fmtutil".
            (lambda _
              (substitute* "texmf-dist/scripts/texlive/fmtutil.pl"
                (("require TeXLive::TLWinGoo if .*") ""))))
          (add-after 'install 'install-doc
            (lambda _
              (let ((doc (string-append #$output:doc "/share/texmf-dist/doc")))
                (mkdir-p doc)
                (copy-recursively "texmf-dist/doc/" doc))))
          (add-after 'install-doc 'link-scripts
            (lambda* (#:key outputs #:allow-other-keys)
              (with-directory-excursion "texmf-dist"
                (apply (assoc-ref tex:%standard-phases 'link-scripts)
                       (list #:outputs outputs
                             #:link-scripts
                             (find-files "scripts")))))))))
    (inputs (list perl))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "TeX Live infrastructure programs")
    (description
     "This package provides core TeX Live scripts such as @code{updmap},
@code{fmtutil}, and @code{tlmgr}.  It is is automatically installed alongside
@code{texlive-bin}.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-hyphen-complete
  (package
    (name "texlive-hyphen-complete")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/dehyph-exptl/"
                   "doc/generic/elhyphen"
                   "doc/generic/huhyphen"
                   "doc/generic/hyph-utf8/"
                   "doc/luatex/hyph-utf8/"
                   "doc/generic/ukrhyph/"
                   "source/generic/hyph-utf8/"
                   "source/luatex/hyph-utf8/"
                   "source/generic/ruhyphen/"
                   "tex/generic/config/"
                   "tex/generic/dehyph/"
                   "tex/generic/dehyph-exptl/"
                   "tex/generic/hyph-utf8/"
                   "tex/generic/hyphen/"
                   "tex/generic/ruhyphen/"
                   "tex/generic/ukrhyph/"
                   "tex/luatex/hyph-utf8/")
             (base32
              "1vzv92jvmnnga1xz5vrv8i6cy0dvrrly5x9nfrfzshlkm9bi3g4c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:tex-engine "tex"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'remove-ruby-byebug-dependency
            ;; Avoid dependency on byebug to reduce package closure
            ;; significantly, see <https://issues.guix.gnu.org/55997>.
            (lambda _
              (substitute* "source/generic/hyph-utf8/lib/tex/hyphen/language.rb"
                (("require 'byebug'") ""))))
          (add-before 'build 'regenerate-converters
            (lambda _
              (let ((root (getcwd)))
                (for-each delete-file
                          (find-files "tex/generic/hyph-utf8/conversions/"))
                (with-directory-excursion "source/generic/hyph-utf8"
                  (substitute* "generate-converters.rb"
                    (("\\$path_root=File.*")
                     (string-append "$path_root=\"" root "\"\n"))
                    ;; Avoid error with newer Ruby.
                    (("#1\\{%") "#1{%%"))
                  (invoke "ruby" "generate-converters.rb")))))
          (add-before 'build 'regenerate-patterns
            (lambda* (#:key inputs #:allow-other-keys)
              (let* ((root (getcwd))
                     (hyph-utf8 (string-append root "/tex/generic/hyph-utf8"))
                     (loaders (string-append hyph-utf8 "/loadhyph"))
                     (patterns (string-append hyph-utf8 "/patterns/txt"))
                     (ptex (string-append hyph-utf8 "/patterns/ptex"))
                     (quote (string-append hyph-utf8 "/patterns/quote")))
                ;; Initial clean-up.  Some files are not generated and need to
                ;; be preserved.
                (for-each delete-file (find-files loaders))
                (let ((preserved (list "hyph-sr-cyrl.hyp.txt"
                                       "hyph-sr-cyrl.pat.txt"
                                       "hyph-de-1901.ec.tex"
                                       "hyph-de-1996.ec.tex"
                                       "hyph-ru.t2a.tex"
                                       "hyph-uk.t2a.tex"
                                       "hyph-zh-latn-pinyin.ec.tex")))
                  (for-each
                   (lambda (directory)
                     (for-each delete-file
                               (find-files directory
                                           (lambda (f _)
                                             (not (member (basename f)
                                                          preserved))))))
                   (list patterns ptex quote)))
                ;; Generate plain patterns.  Write to the local directory.
                ;; Install phase will take care of moving the files to the
                ;; output.
                (with-directory-excursion "source/generic/hyph-utf8/"
                  (substitute* "lib/tex/hyphen/path.rb"
                    (("^([[:blank:]]+)TeXROOT = .*" _ indent)
                     (string-append indent "TeXROOT = \"" root "\"\n")))
                  (substitute* "generate-plain-patterns.rb"
                    ;; Ruby 2 does not need this.
                    (("require 'unicode'") "")
                    (("File\\.join\\(PATH::TXT")
                     (string-append "File.join(\"" patterns "\""))
                    (("File\\.join\\(PATH::QUOTE")
                     (string-append "File.join(\"" quote "\"")))
                  (invoke "ruby" "generate-plain-patterns.rb")
                  ;; Build pattern loaders.
                  (substitute* "generate-pattern-loaders.rb"
                    (("File\\.join\\(PATH::LOADER")
                     (string-append "File.join(\"" loaders "\"")))
                  (invoke "ruby" "generate-pattern-loaders.rb")
                  ;; Build ptex patterns.
                  (substitute* "generate-ptex-patterns.rb"
                    (("File\\.join\\(PATH::PTEX")
                     (string-append "File.join(\"" ptex "\"")))
                  (invoke "ruby" "generate-ptex-patterns.rb"))))))))
    (native-inputs
     (list ruby-2.7
           ruby-hydra-minimal/pinned
           texlive-docstrip
           texlive-tex))
    (home-page "https://ctan.org/pkg/hyph-utf8")
    (synopsis "Hyphenation patterns expressed in UTF-8")
    (description
     "Modern native UTF-8 engines such as XeTeX and LuaTeX need hyphenation
patterns in UTF-8 format, whereas older systems require hyphenation patterns
in the 8-bit encoding of the font in use (such encodings are codified in the
LaTeX scheme with names like OT1, T2A, TS1, OML, LY1, etc).  The present
package offers a collection of conversions of existing patterns to UTF-8
format, together with converters for use with 8-bit fonts in older systems.

This Guix-specific package provides hyphenation patterns for all languages
supported in TeX Live.  It is a strict super-set of code{hyphen-base} package
and should be preferred to it whenever a package would otherwise depend on
@code{hyph-utf8}.")
    ;; Individual files each have their own license.  Most of these files are
    ;; independent hyphenation patterns.
    (license
     (list license:asl2.0
           license:bsd-3
           license:cc0
           license:expat
           license:gpl2
           license:gpl2+
           license:gpl3+
           license:knuth
           license:lgpl2.1
           license:lgpl2.1+
           license:lgpl3+
           license:lppl
           license:lppl1.0+
           license:lppl1.2+
           license:lppl1.3
           license:lppl1.3+
           license:lppl1.3a+
           license:mpl1.1
           license:public-domain
           license:wtfpl2
           (license:fsf-free
            "/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex")
           (license:non-copyleft
            "file:///tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex"
            "Ancestral BSD variant")
           (license:non-copyleft
            "file:///tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex"
            "FSF all permissive license")
           (license:non-copyleft
            "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex"
            "FSF All permissive license")
           (license:non-copyleft
            "file:///tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex")))))

(define-deprecated-package texlive-dehyph texlive-hyphen-complete)
(define-deprecated-package texlive-generic-dehyph-exptl texlive-hyphen-complete)
(define-deprecated-package texlive-generic-hyph-utf8 texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-afrikaans texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-ancientgreek texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-armenian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-basque texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-belarusian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-bulgarian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-catalan texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-chinese texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-churchslavonic texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-coptic texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-croatian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-czech texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-danish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-dutch texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-english texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-esperanto texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-estonian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-ethiopic texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-finnish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-french texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-friulan texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-galician texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-georgian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-german texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-greek texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-hungarian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-icelandic texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-indic texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-indonesian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-interlingua texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-irish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-italian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-kurmanji texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-latin texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-latvian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-lithuanian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-macedonian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-mongolian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-norwegian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-occitan texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-pali texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-piedmontese texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-polish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-portuguese texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-romanian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-romansh texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-russian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-sanskrit texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-schoolfinnish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-serbian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-slovak texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-slovenian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-spanish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-swedish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-thai texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-turkish texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-turkmen texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-ukrainian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-uppersorbian texlive-hyphen-complete)
(define-deprecated-package texlive-hyphen-welsh texlive-hyphen-complete)
(define-deprecated-package texlive-ruhyphen texlive-hyphen-complete)
(define-deprecated-package texlive-ukrhyph texlive-hyphen-complete)

(define-public texlive-bin
  (package/inherit texlive-libkpathsea
    (name "texlive-bin")
    (source
     (origin
       (inherit (package-source texlive-libkpathsea))
       (snippet
        ;; TODO: Unbundle stuff in texk/dvisvgm/dvisvgm-src/libs too.
        #~(with-directory-excursion "libs"
            (let ((preserved-directories '("." ".." "lua53" "luajit" "pplib" "xpdf")))
              ;; Delete bundled software, except Lua which cannot easily be
              ;; used as an external dependency, pplib and xpdf which aren't
              ;; supported as system libraries (see m4/kpse-xpdf-flags.m4).
              (for-each delete-file-recursively
                        (scandir "."
                                 (lambda (file)
                                   (and (not (member file preserved-directories))
                                        (eq? 'directory
                                             (stat:type (stat file))))))))))))
    (arguments
     (list
      #:modules '((guix build gnu-build-system)
                  (guix build utils)
                  (ice-9 ftw)
                  (srfi srfi-1)
                  (srfi srfi-26))
      #:out-of-source? #t
      #:parallel-tests? #f              ;bibtex8.test fails otherwise
      #:configure-flags
      #~(let ((kpathsea #$(this-package-input "texlive-libkpathsea")))
          (list "--with-banner-add=/GNU Guix"
                "--enable-shared"
                "--disable-native-texlive-build"
                "--disable-static"
                "--disable-linked-scripts"
                "--disable-kpathsea"
                "--with-system-cairo"
                "--with-system-freetype2"
                "--with-system-gd"
                "--with-system-gmp"
                "--with-system-graphite2"
                "--with-system-harfbuzz"
                "--with-system-icu"
                "--with-system-libgs"
                "--with-system-libpaper"
                "--with-system-libpng"
                "--with-system-mpfr"
                "--with-system-pixman"
                "--with-system-potrace"
                "--with-system-teckit"
                "--with-system-zlib"
                "--with-system-zziplib"
                ;; Help locating external kpathsea.  For some reason
                ;; PKG-CONFIG is unable to find it.
                "--with-system-kpathsea"
                (format #f "--with-kpathsea-includes=~a/include" kpathsea)
                (format #f "--with-kpathsea-lib=~a/lib" kpathsea)
                ;; LuaJIT is not ported to some architectures yet.
                #$@(if (or (target-ppc64le?)
                           (target-riscv64?))
                       '("--disable-luajittex"
                         "--disable-luajithbtex"
                         "--disable-mfluajit")
                       '())))
      ;; Disable tests on some architectures to cope with a failure of
      ;; luajiterr.test.
      ;;
      ;; XXX FIXME fix luajit properly on these architectures.
      #:tests? (let ((s (or (%current-target-system)
                            (%current-system))))
                 (not (or (string-prefix? "aarch64" s)
                          (string-prefix? "mips64" s)
                          (string-prefix? "powerpc64le" s))))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'locate-external-kpathsea
            ;; Despite our best efforts, the configure scripts below is not
            ;; able to find external kpathsea.
            (lambda _
              (substitute* "texk/web2c/configure"
                (("/usr/include /usr/local/include")
                 (string-append #$(this-package-input "texlive-libkpathsea")
                                "/include")))))
          (add-after 'unpack 'patch-psutils-test
            (lambda _
              ;; This test fails due to a rounding difference with libpaper
              ;; 1.2: <https://github.com/rrthomas/libpaper/issues/23>.
              ;;
              ;; Adjust the expected outcome to account for the minute
              ;; difference.
              (substitute* "texk/psutils/tests/playres.ps"
                (("844\\.647799") "844.647797"))))
          (add-after 'unpack 'configure-ghostscript-executable
            ;; ps2eps.pl uses the "gswin32c" ghostscript executable on
            ;; Windows, and the "gs" ghostscript executable on Unix.  It
            ;; detects Unix by checking for the existence of the /usr/bin
            ;; directory.  Since Guix System does not have /usr/bin, it is
            ;; also detected as Windows.
            (lambda _
              (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
                (("gswin32c") "gs"))))
          (add-after 'unpack 'patch-dvisvgm-build-files
            (lambda _
              ;; XXX: Ghostscript is detected, but HAVE_LIBGS is never set, so
              ;; the appropriate linker flags are not added.
              (substitute* "texk/dvisvgm/configure"
                (("^have_libgs=yes" all)
                 (string-append all "\nHAVE_LIBGS=1")))))
          (add-after 'unpack 'disable-failing-test
            (lambda _
              ;; FIXME: This test fails on 32-bit architectures since Glibc
              ;; 2.28: <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
              (substitute* "texk/web2c/omegafonts/check.test"
                (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
                 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))))
          #$@(if (or (target-ppc32?)
                     (target-riscv64?))
                 ;; Some mendex tests fail on some architectures.
                 `((add-after 'unpack 'skip-mendex-tests
                     (lambda _
                       (substitute* '("texk/mendexk/tests/mendex.test"
                                      "texk/upmendex/tests/upmendex.test")
                         (("srcdir/tests/pprecA-0.ind pprecA-0.ind1 \\|\\| exit 1")
                          "srcdir/tests/pprecA-0.ind pprecA-0.ind1 || exit 77")))))
                 '())
          #$@(if (target-arm32?)
                 `((add-after 'unpack 'skip-faulty-test
                     (lambda _
                       ;; Skip this faulty test on armhf-linux:
                       ;;   https://issues.guix.gnu.org/54055
                       (substitute* '("texk/mendexk/tests/mendex.test"
                                      "texk/upmendex/tests/upmendex.test")
                         (("^TEXMFCNF=" all)
                          (string-append "exit 77 # skip\n" all))))))
                 '())
          (add-after 'install 'post-install
            (lambda _
              ;; Create symbolic links for the latex variants.  We link
              ;; lualatex to luahbtex; see issue #51252 for details.
              (with-directory-excursion (string-append #$output "/bin/")
                (for-each symlink
                          '("pdftex" "pdftex"   "xetex"   "luahbtex")
                          '("latex"  "pdflatex" "xelatex" "lualatex")))
              ;; texlua shebangs are not patched by the patch-source-shebangs
              ;; phase because the texlua executable does not exist at that
              ;; time.
              (setenv "PATH"
                      (string-append (getenv "PATH") ":" #$output "/bin"))
              (with-directory-excursion #$output
                (assoc-ref %standard-phases 'patch-source-shebangs)))))))
    (native-inputs (list groff-minimal pkg-config))
    (inputs
     (list cairo
           config
           fontconfig
           fontforge
           freetype
           gd
           ghostscript
           gmp
           graphite2
           harfbuzz
           icu4c
           libpaper
           libpng
           libxaw
           libxt
           mpfr
           perl
           pixman
           potrace
           python
           ruby-2.7
           tcsh
           teckit
           zlib
           zziplib))
    (propagated-inputs (list texlive-libkpathsea texlive-scripts))
    (synopsis "TeX Live, a package of the TeX typesetting system")
    (description
     "TeX Live provides a comprehensive TeX document production system.
It includes all the major TeX-related programs, macro packages, and fonts
that are free software, including support for many languages around the
world.

This package contains the binaries.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
    (home-page "https://www.tug.org/texlive/")))

;; This package must be located before `texlive-updmap.cfg' in the module.
(define-public texlive-scheme-basic
  (package
    (name "texlive-scheme-basic")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs (list texlive-collection-basic texlive-collection-latex))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Basic scheme (plain and latex)")
    (description
     "This is the basic TeX Live scheme: it is a small set of files sufficient
to typeset plain TeX or LaTeX documents in PostScript or PDF, using the
Computer Modern fonts.  This scheme corresponds to @code{collection-basic} and
@code{collection-latex}.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-deprecated-package texlive-base texlive-scheme-basic)

(define-public texlive-scheme-bookpub
  (package
    (name "texlive-scheme-bookpub")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-barcodes
           texlive-biber
           texlive-biblatex
           texlive-bookcover
           texlive-caption
           texlive-collection-basic
           texlive-collection-latex
           texlive-enumitem
           texlive-fontspec
           texlive-latexmk
           texlive-lipsum
           texlive-listings
           texlive-markdown
           texlive-memoir
           texlive-microtype
           texlive-minted
           texlive-novel
           texlive-octavo
           texlive-pdfpages
           texlive-pgf
           texlive-qrcode
           texlive-shapes
           texlive-titlesec
           texlive-tocloft
           texlive-tufte-latex
           texlive-willowtreebook))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Book publishing scheme (core LaTeX and add-ons)")
    (description
     "This is a book publishing scheme, containing core (Lua)LaTeX and
selected additional packages likely to be useful for non-technical book
publication.  It does not contain additional fonts (different books need
different fonts, and the packages are large), nor does it contain additional
mathematical or other technical packages.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-scheme-context
  (package
    (name "texlive-scheme-context")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-antt
           texlive-asana-math
           texlive-ccicons
           texlive-collection-context
           texlive-collection-metapost
           texlive-dejavu
           texlive-eulervm
           texlive-gentium-tug
           texlive-iwona
           texlive-kurier
           texlive-ly1
           texlive-manfnt-font
           texlive-marvosym
           texlive-mflogo-font
           texlive-poltawski
           texlive-pxfonts
           texlive-tex-gyre
           texlive-tex-gyre-math
           texlive-txfonts
           texlive-wasy
           texlive-xits))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "ConTeXt scheme")
    (description "This is the TeX Live scheme for installing ConTeXt.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-scheme-gust
  (package
    (name "texlive-scheme-gust")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-amslatex-primer
           texlive-amstex
           texlive-antt
           texlive-bibtex8
           texlive-collection-basic
           texlive-collection-context
           texlive-collection-fontsrecommended
           texlive-collection-fontutils
           texlive-collection-langpolish
           texlive-collection-latex
           texlive-collection-latexrecommended
           texlive-collection-metapost
           texlive-collection-plaingeneric
           texlive-collection-xetex
           texlive-comment
           texlive-comprehensive
           texlive-concrete
           texlive-cyklop
           texlive-dvidvi
           texlive-dviljk
           texlive-fontinstallationguide
           texlive-gustprog
           texlive-impatient
           texlive-iwona
           texlive-metafont-beginners
           texlive-metapost-examples
           texlive-poltawski
           texlive-seetexk
           texlive-seminar
           texlive-tds
           texlive-tex4ht
           texlive-texdoc))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "GUST TeX Live scheme")
    (description
     "This is the GUST TeX Live scheme: it is a set of files sufficient to
typeset Polish plain TeX, LaTeX and ConTeXt documents in PostScript or PDF.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-scheme-medium
  (package
    (name "texlive-scheme-medium")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-collection-basic
           texlive-collection-binextra
           texlive-collection-context
           texlive-collection-fontsrecommended
           texlive-collection-fontutils
           texlive-collection-langczechslovak
           texlive-collection-langenglish
           texlive-collection-langeuropean
           texlive-collection-langfrench
           texlive-collection-langgerman
           texlive-collection-langitalian
           texlive-collection-langpolish
           texlive-collection-langportuguese
           texlive-collection-langspanish
           texlive-collection-latex
           texlive-collection-latexrecommended
           texlive-collection-luatex
           texlive-collection-mathscience
           texlive-collection-metapost
           texlive-collection-plaingeneric
           texlive-collection-xetex))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Small scheme with additional packages and languages")
    (description
     "This is the medium TeX Live collection: it contains plain TeX,
LaTeX, many recommended packages, and support for most European languages.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-scheme-minimal
  (package
    (name "texlive-scheme-minimal")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs (list texlive-collection-basic))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Minimal scheme (plain only)")
    (description
     "This is the minimal TeX Live scheme, with support for only plain
TeX. (No LaTeX macros.) LuaTeX is included because Lua scripts are used in TeX
Live infrastructure.  This scheme corresponds exactly to
@code{collection-basic}.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-scheme-small
  (package
    (name "texlive-scheme-small")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-babel-basque
           texlive-babel-czech
           texlive-babel-danish
           texlive-babel-dutch
           texlive-babel-english
           texlive-babel-finnish
           texlive-babel-french
           texlive-babel-german
           texlive-babel-hungarian
           texlive-babel-italian
           texlive-babel-norsk
           texlive-babel-polish
           texlive-babel-portuges
           texlive-babel-spanish
           texlive-babel-swedish
           texlive-collection-basic
           texlive-collection-latex
           texlive-collection-latexrecommended
           texlive-collection-metapost
           texlive-collection-xetex
           texlive-ec
           texlive-eurosym
           texlive-hyphen-complete
           texlive-lm
           texlive-lualibs
           texlive-luaotfload
           texlive-luatexbase
           texlive-revtex
           texlive-synctex
           texlive-times
           texlive-tipa
           texlive-ulem
           texlive-upquote
           texlive-zapfding))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Small scheme (basic, XeTeX, Metapost, and a few languages)")
    (description
     "This is a small TeX Live scheme, corresponding to MacTeX's BasicTeX
variant.  It adds XeTeX, MetaPost, and some recommended packages to
@code{scheme-basic}.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-scheme-tetex
  (package
    (name "texlive-scheme-tetex")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-acronym
           texlive-amslatex-primer
           texlive-bbm
           texlive-bbm-macros
           texlive-bbold
           texlive-bibtex8
           texlive-cmbright
           texlive-collection-basic
           texlive-collection-context
           texlive-collection-fontsrecommended
           texlive-collection-fontutils
           texlive-collection-formatsextra
           texlive-collection-langcjk
           texlive-collection-langcyrillic
           texlive-collection-langczechslovak
           texlive-collection-langenglish
           texlive-collection-langeuropean
           texlive-collection-langfrench
           texlive-collection-langgerman
           texlive-collection-langgreek
           texlive-collection-langitalian
           texlive-collection-langother
           texlive-collection-langpolish
           texlive-collection-langportuguese
           texlive-collection-langspanish
           texlive-collection-latex
           texlive-collection-latexrecommended
           texlive-collection-mathscience
           texlive-collection-metapost
           texlive-collection-pictures
           texlive-collection-plaingeneric
           texlive-collection-pstricks
           texlive-ctie
           texlive-cweb
           texlive-detex
           texlive-dtl
           texlive-dvi2tty
           texlive-dvicopy
           texlive-dvidvi
           texlive-dviljk
           texlive-eplain
           texlive-eulervm
           texlive-gentle
           texlive-lshort-english
           texlive-mltex
           texlive-multirow
           texlive-nomencl
           texlive-patgen
           texlive-pst-pdf
           texlive-rsfs
           texlive-seetexk
           texlive-siunits
           texlive-subfigure
           texlive-supertabular
           texlive-tamethebeast
           texlive-tds
           texlive-tex-refs
           texlive-tie
           texlive-web
           texlive-xpdfopen))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "teTeX scheme (more than medium, but nowhere near full)")
    (description
     "Larger than medium, this TeX Live scheme is nearly equivalent to the
teTeX distribution that was maintained by Thomas Esser.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

;; This package must be located before any package adding it to its native
;; inputs.
(define-public texlive-updmap.cfg
  (lambda* (#:optional (packages '()))
    "Return a 'texlive-updmap.cfg' package which contains the fonts map
configuration of a base set of packages plus PACKAGES."
    (let ((default-packages (list texlive-scheme-basic)))
      (package
        (version (number->string %texlive-revision))
        (source (package-source texlive-scripts))
        (name "texlive-updmap.cfg")
        (build-system copy-build-system)
        (arguments
         (list
          #:modules '((guix build copy-build-system)
                      (guix build utils)
                      (ice-9 popen)
                      (ice-9 textual-ports))
          #:install-plan
          #~'(("texmf-dist/web2c/updmap.cfg" "share/texmf-config/web2c/")
              ("texmf-dist/web2c/map" "share/texmf-dist/fonts/map"))
          #:phases
          #~(modify-phases %standard-phases
              (add-before 'install 'regenerate-updmap.cfg
                (lambda _
                  (with-directory-excursion "texmf-dist/web2c"
                    (make-file-writable "updmap.cfg")

                    ;; Disable unavailable map files.
                    (let* ((port (open-pipe* OPEN_WRITE "updmap-sys"
                                             "--syncwithtrees"
                                             "--nohash"
                                             "--cnffile" "updmap.cfg")))
                      (display "Y\n" port)
                      (when (not (zero? (status:exit-val (close-pipe port))))
                        (error "failed to filter updmap.cfg")))

                    ;; Set TEXMFSYSVAR to a sane and writable value; updmap fails
                    ;; if it cannot create its log file there.
                    (setenv "TEXMFSYSVAR" (getcwd))

                    ;; Generate maps.
                    (invoke "updmap-sys"
                            "--cnffile"           "updmap.cfg"
                            "--dvipdfmxoutputdir" "map/dvipdfmx/updmap/"
                            "--dvipsoutputdir"    "map/dvips/updmap/"
                            "--pdftexoutputdir"   "map/pdftex/updmap/")))))))
        (native-inputs (list texlive-scripts))
        (propagated-inputs (map (lambda (package)
                                  (list (package-name package) package))
                                (append default-packages packages)))
        (home-page (package-home-page texlive-bin))
        (synopsis "TeX Live fonts map configuration")
        (description "This package contains the fonts map configuration file
generated for the base TeX Live packages as well as, optionally, user-provided
ones.")
        (license (delete-duplicates
                  (fold (lambda (package result)
                          (match (package-license package)
                            ((lst ...)
                             (append lst result))
                            ((? license:license? license)
                             (cons license result))))
                        '()
                        (append default-packages packages))))))))

(define-deprecated-package texlive-tiny texlive-scheme-basic)
(define-deprecated/alias texlive-union texlive-updmap.cfg)
(export texlive-union)

(define-public texlive-12many
  (package
    (name "texlive-12many")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/12many/" "source/latex/12many/"
                   "tex/latex/12many/")
             (base32
              "104vqgl5kqdbwfa5wxj7gpxfrqa3k4ky4806mg6zscd6palf2gi5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/one2many")
    (synopsis "Generalising mathematical index sets")
    (description
     "In the discrete branches of mathematics and the computer sciences, it
will only take some seconds before you're faced with a set like
@samp{@{1,...,m@}}.  Some people write @samp{$1\\ldotp\\ldotp m$}, others
@samp{$\\{j:1\\leq j\\leq m\\}$}, and the journal you're submitting to might
want something else entirely.  The @code{12many} package provides an interface
that makes changing from one to another a one-line change.")
    (license license:lppl)))

(define-public texlive-a2ping
  (package
    (name "texlive-a2ping")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/a2ping.1"
                   "doc/man/man1/a2ping.man1.pdf"
                   "doc/support/a2ping/" "scripts/a2ping/")
             (base32
              "1lhmh1rnykmi6i5mklj7fwhndw1xxmwy2xsy8j1px8ishf5czhvq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "a2ping.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/a2ping")
    (synopsis "Advanced PS, PDF, EPS converter")
    (description
     "@command{a2ping} is a Perl script command line utility written for Unix
that converts many raster image and vector graphics formats to EPS or PDF and
other page description formats.  Accepted input file formats are:
PS (PostScript), EPS, PDF, PNG, JPEG, TIFF, PNM, BMP, GIF, LBM, XPM, PCX,
TGA. Accepted output formats are: EPS, PCL5, PDF, PDF1, PBM, PGM, PPM, PS,
markedEPS, markedPS, PNG, XWD, BMP, TIFF, JPEG, GIF, XPM.")
    (license license:gpl3+)))

(define-public texlive-aalok
  (package
    (name "texlive-aalok")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/aalok/" "source/latex/aalok/"
                   "tex/latex/aalok/")
             (base32
              "0vpvqv60p5v3frdqa5r8k9k4zxk0icma5blw9dr6jhqfzf6lc3jy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/aalok")
    (synopsis "LaTeX class file for the Marathi journal @emph{Aalok}")
    (description
     "This package provides the class file for typesetting @emph{Aalok},
a Marathi journal, with LaTeX.")
    (license (list license:gpl3+
                   ;; Aalok (आलोक) copyleft license v1.0+.
                   (license:fsf-free "file://doc/latex/aalok/README.txt")
                   license:fdl1.3+))))

(define-public texlive-accents
  (package
    (name "texlive-accents")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/accents/" "tex/latex/accents/")
             (base32
              "0p8g86xbfladz52dwbssmw3w9mbl987d1b740d25miphvj4ia9y9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/accents")
    (synopsis "Multiple mathematical accents")
    (description
     "This package provides a package for multiple accents in mathematics,
with nice features concerning the creation of accents and placement of
scripts.")
    (license license:expat)))

(define-public texlive-accfonts
  (package
    (name "texlive-accfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/accfonts/" "scripts/accfonts/"
                   "tex/latex/accfonts/")
             (base32
              "0kja24rh0ysljwgkyg9mf47h64ayi2kmb1jb3dmvb42ywvg0w9i7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "mkt1font" "vpl2ovp" "vpl2vpl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/accfonts")
    (synopsis "Utilities to derive new fonts from existing ones")
    (description
     "The @code{accfonts} package contains three utilities to permit easy
manipulation of fonts, in particular the creation of unusual accented
characters. @command{mkt1font} works on Adobe Type 1 fonts, @command{vpl2vpl}
works on TeX virtual fonts and @command{vpl2ovp} transforms a TeX font to an
Omega one.")
    (license license:gpl3+)))

(define-public texlive-abbr
  (package
    (name "texlive-abbr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/abbr/" "tex/generic/abbr/")
             (base32
              "0zi5qkgr2nnb3jp5adv42d84w7yav1dw0lgg2vdxfsz03j1bmlsb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/abbr")
    (synopsis "Simple macros supporting abreviations for Plain and LaTeX")
    (description
     "The package provides some simple macros to support abbreviations in
Plain TeX or LaTeX.  It allows writing, e.g., @samp{\\<TEX>} instead of
@samp{\\TeX}, hence frees users from having to escape space after
parameterless macros.")
    (license license:public-domain)))

(define-public texlive-abstyles
  (package
    (name "texlive-abstyles")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/abstyles/"
                   "bibtex/bst/abstyles/"
                   "doc/bibtex/abstyles/"
                   "tex/generic/abstyles/")
             (base32
              "1ij4cp3pydfs4lch0f93gi2q7msafxyqfvv44whw1ppczidicnn2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/abstyles-orig")
    (synopsis "Adaptable BibTeX styles")
    (description
     "This package provides a family of modifications of the standard BibTeX
styles whose behaviour may be changed by changing the user document, without
change to the styles themselves.  The package is largely used nowadays in its
adaptation for working with Babel.")
    (license
     (list license:isc                  ;apreamble
           license:knuth                ;bxabst
           license:public-domain))))    ;docmac

(define-public texlive-adhocfilelist
  (package
    (name "texlive-adhocfilelist")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/adhocfilelist/"
                   "scripts/adhocfilelist/"
                   "source/support/adhocfilelist/"
                   "tex/support/adhocfilelist/")
             (base32
              "097yy38571fa2hzp4s3p125xknqgjmkhv1vgi0q9vz83b6175hc4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "adhocfilelist.sh")))
    (home-page "https://ctan.org/pkg/adhocfilelist")
    (synopsis "@code{\\listfiles} entries from the command line")
    (description
     "The package provides a Unix shell script to display a list of LaTeX
@code{\\Provides}...-command contexts on screen.  Provision is made for
controlling the searches that the package does.")
    (license license:lppl)))

(define-public texlive-adobemapping
  (package
    (name "texlive-adobemapping")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/cmap/adobemapping/")
             (base32
              "1yvf74mlmxmnq9m0wvda9xcna8xnn382bbrzizzjm5w7bk8c4g98")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/adobemapping")
    (synopsis "Adobe CMap and PDF mapping files")
    (description
     "The package comprises the collection of CMap and PDF mapping files made
available for distribution by Adobe.")
    (license license:bsd-3)))

(define-public texlive-afm2pl
  (package
    (name "texlive-afm2pl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/afm2pl.1"
                   "doc/man/man1/afm2pl.man1.pdf"
                   "fonts/enc/dvips/afm2pl/"
                   "fonts/lig/afm2pl/" "tex/fontinst/afm2pl/")
             (base32
              "19llzzr4kmmyf7l18ngx1rhaqaqvgm3md924m4dxcv7nmrvga2b2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/afm2pl")
    (synopsis "Convert AFM to TeX property list (@file{.pl}) metrics")
    (description
     "@command{afm2pl} converts a @file{.afm} (Adobe Font Metric) file into
a @file{.pl} (Property List) file, which in its turn can be converted to
a @file{.tfm} (TeX Font Metric) file.  It normally preserves kerns and
ligatures, but also offers additional control over them.")
    (license license:gpl2)))

(define-public texlive-akshar
  (package
    (name "texlive-akshar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/akshar/" "source/latex/akshar/"
                   "tex/latex/akshar/")
             (base32
              "17xiqalqpw64pgvmpsa41qf6y5fhg720rpbr57kv8ipvvm1fn3n5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/akshar")
    (synopsis "Support for syllables in the Devanagari script")
    (description
     "This LaTeX3 package provides macros and interfaces to work with
Devanagari characters and syllables in a more correct way.")
    (license license:lppl1.3c)))

(define-public texlive-albatross
  (package
    (name "texlive-albatross")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/albatross.1"
                   "doc/man/man1/albatross.man1.pdf"
                   "doc/support/albatross/"
                   "scripts/albatross/"
                   "source/support/albatross/")
             (base32
              "147cdqiyapmhs6s5cp4f0vhc71d3w9kvxk8ylbrhsp5h97r8y6w9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "albatross.sh")))
    (home-page "https://ctan.org/pkg/albatross")
    (synopsis "Find fonts that contain a given glyph")
    (description
     "This is a command line tool for finding fonts that contain
a given (Unicode) glyph.  It relies on Fontconfig.")
    (license license:bsd-3)))

(define-public texlive-aleph
  (package
    (name "texlive-aleph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/aleph/base/" "doc/man/man1/aleph.1"
                   "doc/man/man1/aleph.man1.pdf")
             (base32
              "0b7dihilh2v8qcp4m8fblyc10jc5i4fhpj3pspzinag0pk66b7nb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "aleph")))
    (propagated-inputs
     (list texlive-cm
           texlive-hyphen-base
           texlive-knuth-lib
           texlive-lambda
           texlive-latex
           texlive-plain))
    (home-page "https://ctan.org/pkg/aleph")
    (synopsis "Extended TeX")
    (description
     "This package provides a development of Omega, using most of the
extensions of TeX, itself developed for e-TeX.")
    (license license:gpl3+)))

(define-public texlive-alg
  (package
    (name "texlive-alg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/alg/" "source/latex/alg/"
                   "tex/latex/alg/")
             (base32
              "0jqk9sgw2m4c6hssfc5c3qfxqvpyppvcmy8i5crm7fsmkv0y6wkg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/alg")
    (synopsis "LaTeX environments for typesetting algorithms")
    (description
     "The package defines two environments for typesetting algorithms in LaTeX2e.
The @code{algtab} environment is used to typeset an algorithm with
automatically numbered lines.  The @code{algorithm} environment can be used to
encapsulate the @code{algtab} environment algorithm in a floating body
together with a header, a caption, etc.  @code{\\listofalgorithms} is
defined.")
    (license license:lppl)))

(define-public texlive-algobox
  (package
    (name "texlive-algobox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/algobox/" "source/latex/algobox/"
                   "tex/latex/algobox/")
             (base32
              "03z5s4v1asfp6rm51wfkmax69rlggfdyb3p1acdy8cx1gwd10f2w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/algobox")
    (synopsis "Typeset Algobox programs")
    (description
     "This LaTeX package can typeset Algobox programs almost exactly as
displayed when editing with Algobox itself, using an input syntax very similar
to the actual Algobox program text.  It gives better results than Algobox's
own LaTeX export which does not look like the editor rendition, produces
standalone documents cumbersome to customize, and has arbitrary and
inconsistent differences between the input syntax and the program text.")
    (license license:gpl3+)))

(define-public texlive-algorithm2e
  (package
    (name "texlive-algorithm2e")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/algorithm2e/"
                   "tex/latex/algorithm2e/")
             (base32
              "0bf4fc9p84zy2zdl0hiklcbbxn17j3qyl02kyj5ya00lrf6sv93n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/algorithm2e")
    (synopsis "Floating algorithm environment with algorithmic keywords")
    (description
     "Algorithm2e is an environment for writing algorithms.  An algorithm
becomes a floating object (like figure, table, etc.).  The package provides
macros that allow you to create different keywords, and a set of predefined
key words is provided; you can change the typography of the keywords.  The
package allows vertical lines delimiting a block of instructions in an
algorithm, and defines different sorts of algorithms such as @samp{Procedure}
or @samp{Function}; the name of these functions may be reused in the text or
in other algorithms.")
    (license license:lppl)))

(define-public texlive-algorithmicx
  (package
    (name "texlive-algorithmicx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/algorithmicx/"
                   "tex/latex/algorithmicx/")
             (base32
              "0q0qkzc88479y5dqifnpfxhclk48gf1c4shxi1xhgqbvjp2gqgza")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/algorithmicx")
    (synopsis "The algorithmic style you always wanted")
    (description
     "Algorithmicx provides a flexible, yet easy to use, way for inserting
good looking pseudocode or source code in your papers.  It has built in
support for pseudocode, Pascal and C, and offers powerful means to create
definitions for any programming language.  The user can adapt a pseudocode
style to his native language.")
    (license license:lppl)))

(define-public texlive-algorithms
  (package
    (name "texlive-algorithms")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/algorithms/"
                   "source/latex/algorithms/"
                   "tex/latex/algorithms/")
             (base32
              "0yw0alkigq77a2ha4hdrvpagqvyy0cv61ddhvf227wlwmvw5ch2w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/algorithms")
    (synopsis "A suite of tools for typesetting algorithms in pseudo-code")
    (description
     "The package consists of two environments: @code{algorithm} and
@code{algorithmic}.  The @code{algorithm} package defines a floating
@code{algorithm} environment designed to work with the @code{algorithmic}
style.  Within an @code{algorithmic} environment a number of commands for
typesetting popular algorithmic constructs are available.")
    (license license:lgpl2.1)))

(define-public texlive-algpseudocodex
  (package
    (name "texlive-algpseudocodex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/algpseudocodex/"
                   "tex/latex/algpseudocodex/")
             (base32
              "1gjcdmzijiagzxwjwygqpbjjapzk9dfljv5d94iabzr8032l9rsh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/algpseudocodex")
    (synopsis "Package for typesetting pseudocode")
    (description
     "This package allows typesetting pseudocode in LaTeX.  It is based on
@code{algpseudocode} from the @code{algorithmicx} package and uses the same
syntax, but adds several new features and improvements.  Notable features
include customizable indent guide lines and the ability to draw boxes around
parts of the code for highlighting differences.  This package also has better
support for long code lines spanning several lines and improved comments.")
    (license license:lppl1.3c)))

(define-public texlive-algxpar
  (package
    (name "texlive-algxpar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/algxpar/" "source/latex/algxpar/"
                   "tex/latex/algxpar/")
             (base32
              "1d4g8wl29k85x2liwab86fw1yvns68c4ms6v7mvviavcvml4d3mx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/algxpar")
    (synopsis "Support multiple lines pseudocode")
    (description
     "This package extends the package @code{algorithmicx} to support long
text which spans over multiple lines.")
    (license license:lppl1.3+)))

(define-public texlive-aligned-overset
  (package
    (name "texlive-aligned-overset")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/aligned-overset/"
                   "source/latex/aligned-overset/"
                   "tex/latex/aligned-overset/")
             (base32
              "1awawz0ypq15r16mx949g7r7pp9a60xhi8hciy1xsa6dvvj47h5x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/aligned-overset")
    (synopsis "Fix alignment at @code{\\overset} or @code{\\underset}")
    (description
     "This package allows the base character of @code{\\underset} or
@code{\\overset} to be used as the alignment position for the @code{aligned}
math environments.")
    (license license:lppl1.3c)))

(define-public texlive-alkalami
  (package
    (name "texlive-alkalami")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/alkalami/"
                   "fonts/truetype/public/alkalami/")
             (base32
              "0979xhsjar0gwjp9yqp0kaf4gp4z715gr2kdb8dkqg8zzlkqhgzk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/alkalami")
    (synopsis "Font for Arabic-based writing systems in Nigeria and Niger")
    (description
     "This font is designed for Arabic-based writing systems in the Kano
region of Nigeria and Niger.")
    (license license:silofl1.1)))

(define-public texlive-alpha-persian
  (package
    (name "texlive-alpha-persian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/alpha-persian/"
                   "doc/bibtex/alpha-persian/")
             (base32
              "15ynmgh3fp6s40c200kgr6v0q84bkzp9cv45yg90mr9d7mq72djv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/alpha-persian")
    (synopsis "Persian version of @file{alpha.bst}")
    (description
     "The package provides a Persian version of the alpha BibTeX style and
offers several enhancements.  It is compatible with the @code{hyperref},
@code{url}, @code{natbib}, and @code{cite} packages.")
    (license license:lppl1.3c)))

(define-public texlive-amscdx
  (package
    (name "texlive-amscdx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amscdx/" "source/latex/amscdx/"
                   "tex/latex/amscdx/")
             (base32
              "13gxllncd46w4kscb7isivw6x82pw9yfamcv3sq6wnx68z03n2q3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amscdx")
    (synopsis "Enhanced commutative diagrams")
    (description
     "The original @code{amscd} package provides a @code{CD} environment that
emulates the commutative diagram capabilities of AMS-TeX version 2.x.  This
means that only simple rectangular diagrams are supported, with no diagonal
arrows or more exotic features.  This enhancement package implements double,
dashed, and bidirectional arrows (left-right and up-down), and color
attributes for arrows and their annotations.  The restriction to rectangular
geometry remains.  This nevertheless allows the drawing of a much broader
class of commutative diagrams and alike.")
    (license license:lppl1.3c)))

(define-public texlive-amscls-doc
  (package
    (name "texlive-amscls-doc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amscls-doc/")
             (base32
              "0allim05cp20zhn480df2mivd3p9gnc069d7hbjlzv660bw7mapx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amscls-doc")
    (synopsis "User documentation for AMS document classes")
    (description
     "This collection comprises a set of four manuals, or Author Handbooks,
each documenting the use of a class of publications based on one of the AMS
document classes @code{amsart}, @code{amsbook}, @code{amsproc} and one hybrid,
as well as a guide to the generation of the four manuals from a coordinated
set of LaTeX source files.  The Handbooks comprise the user documentation for
the pertinent document classes.  As the source for the Handbooks consists of
a large number of files, and the intended output is multiple different
documents, the principles underlying this collection can be used as a model
for similar projects.  The manual @emph{Compiling the AMS Author Handbooks}
provides information about the structure of and interaction between the
various components.")
    (license license:lppl1.3c)))

(define-public texlive-amslatex-primer
  (package
    (name "texlive-amslatex-primer")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amslatex-primer/")
             (base32
              "1kzayyh1bycmq43s2xn81jf05r18azidbk3gv6igf2vaq37fmxil")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amslatex-primer")
    (synopsis "Getting up and running with AMS-LaTeX")
    (description
     "The document aims to get you up and running with AMS-LaTeX as quickly as
possible.  These instructions are not a substitute for the full documentation,
but they may get you started quickly enough so that you will only need to
refer to the main documentation occasionally.  In addition to AMS-LaTeX out of
the box, the document contains a section describing how to draw commutative
diagrams using Xy-pic and a section describing how to use @code{amsrefs} to
create a bibliography.")
    (license license:lppl)))

(define-public texlive-amsldoc-it
  (package
    (name "texlive-amsldoc-it")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amsldoc-it/")
             (base32
              "0d4hwb7hywy56d6934448lcr6fdx7qchkfzs806dr7wfzfy36yix")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amsldoc-it")
    (synopsis "Italian translation of @code{amsldoc}")
    (description
     "This package provides an Italian translation of @code{amsldoc}.")
    ;; Use same license as `amsmath'.
    (license license:lppl1.3c)))

(define-public texlive-amsldoc-vn
  (package
    (name "texlive-amsldoc-vn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amsldoc-vn/")
             (base32
              "1iz0zjn1v7izwbsq0zb6cvpnkbvk0nxw1b24j7dzqwk3m9j43i6x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amslatexdoc-vietnamese")
    (synopsis "Vietnamese translation of AMSLaTeX documentation")
    (description
     "This is a Vietnamese translation of @code{amsldoc}, the users guide to
@code{amsmath}.")
    (license license:lppl1.3+)))

(define-public texlive-amstex
  (package
    (name "texlive-amstex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/amstex/base/" "doc/man/man1/amstex.1"
                   "doc/man/man1/amstex.man1.pdf"
                   "tex/amstex/base/" "tex/amstex/config/")
             (base32
              "01yh10g2wwa58q151aqg246bsclks25qvd8axc1v799v37wlgqn3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "amstex")))
    (propagated-inputs
     (list texlive-amsfonts
           texlive-cm
           texlive-hyphen-base
           texlive-knuth-lib
           texlive-plain
           texlive-tex))
    (home-page "https://ctan.org/pkg/amstex")
    (synopsis "American Mathematical Society plain TeX macros")
    (description
     "AMS-TeX is a TeX macro package based on Plain TeX: it provides many
features for producing more professional-looking maths formulas with less
burden on authors.

This is the final archival distribution of AMS-TeX.  AMS-TeX is no longer
supported by the AMS, nor is it used by the AMS publishing program.  The AMS
does not recommend creating any new documents using AMS-TeX; this distribution
will be left on CTAN to facilitate processing of legacy documents and as
a historical record of a pioneering TeX macro collection that played a key
role in popularizing TeX and revolutionizing mathematics publishing.  AMS-TeX
is the historical basis of @code{amslatex}, which should now be used to
prepare submissions for the AMS.")
    (license license:lppl)))

(define-public texlive-amsthdoc-it
  (package
    (name "texlive-amsthdoc-it")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amsthdoc-it/")
             (base32
              "0ic88gs89m3d9ys40c4k7sgx6wy82c8isg2qkmd4snw5yms6fpaz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amsthdoc-it")
    (synopsis "Italian translation of @code{amsthdoc}")
    (description
     "This package provides an Italian translation of @code{amsthdoc}.")
    ;; Use same license as `amscls'.
    (license license:lppl1.3c)))

(define-public texlive-annee-scolaire
  (package
    (name "texlive-annee-scolaire")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/annee-scolaire/"
                   "source/latex/annee-scolaire/"
                   "tex/latex/annee-scolaire/")
             (base32
              "1nwm67p4s822d7r4kr3rbvnm9vlkvzjbikqy8hq2fqsc9bdx34ib")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/annee-scolaire")
    (synopsis "Automatically typeset the academic year (French way)")
    (description
     "This package provides a macro @code{\\anneescolaire} to automatically
write the academic year in the French way, according to the date of
compilation, two other macros to obtain the first and the second calendar year
of the academic year, a macro to be redefined to change the presentation of
the years.")
    (license license:lppl1.3c)))

(define-public texlive-annotate-equations
  (package
    (name "texlive-annotate-equations")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/annotate-equations/"
                   "tex/latex/annotate-equations/")
             (base32
              "1jk08yxwyijspa74k0a79wvh7q0s0xd7ji5m13qb48gw0czwjcxs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/annotate-equations")
    (synopsis "Easily annotate math equations using TikZ")
    (description
     "This package provides commands that make it easy to highlight terms in
equations and add annotation labels using TikZ.  It should work with pdfLaTeX
as well as LuaLaTeX.")
    (license license:expat)))

(define-public texlive-antanilipsum
  (package
    (name "texlive-antanilipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/antanilipsum/"
                   "source/latex/antanilipsum/"
                   "tex/latex/antanilipsum/")
             (base32
              "1yighrv3nxb266949m8sqvvl5yp8bhjq478h2abfrs1z0r65gpjr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/antanilipsum")
    (synopsis "Generate sentences in the style of @emph{Amici miei}")
    (description
     "This package is an italian blind text generator that ouputs supercazzole,
mocking nonsense phrases from the movie series @emph{Amici Miei} (``My
friends'', in English), directed by Mario Monicelli.")
    (license license:lppl1.3c)))

(define-public texlive-antomega
  (package
    (name "texlive-antomega")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/omega/antomega/" "omega/ocp/antomega/"
                   "omega/otp/antomega/"
                   "source/lambda/antomega/"
                   "tex/lambda/antomega/")
             (base32
              "02pfjm9y33mjggn9w2lrk1fxfz3m72xgbvyvrq2iri9yf0hk33pf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-build
            ;; This phase is necessary because the build phase is reluctant to
            ;; generate "hyphen.cfg" since there is another one among the
            ;; inputs already.
            (lambda _
              (substitute* "source/lambda/antomega/antomega.ins"
                (("\\\\generateFile\\{hyphen\\.cfg\\}\\{t\\}")
                 "\\generateFile{hyphen.cfg}{f}")))))))
    (propagated-inputs (list texlive-omega))
    (home-page "https://ctan.org/pkg/antomega")
    (synopsis "Alternative language support for Omega and Lambda")
    (description
     "This package provides a language support package for Omega and Lambda.
This replaces the original Omega package for use with Lambda, and provides
extra facilities (including Babel-like language switching, which eases porting
of LaTeX documents to Lambda).")
    (license license:lppl)))

(define-public texlive-apnum
  (package
    (name "texlive-apnum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/apnum/" "tex/generic/apnum/")
             (base32
              "0s6nklimzbqc1z1vhgffzp76d1kl2shz1xkf119bck482rvn3x61")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/apnum")
    (synopsis "Arbitrary precision numbers implemented by TeX macros")
    (description
     "The basic operations (addition, subtraction, multiplication,
division, power to an integer) are implemented by TeX macros in this package.
Operands may be numbers with arbitrary numbers of digits; scientific notation
is allowed.  The expression scanner is also provided.")
    (license license:public-domain)))

(define-public texlive-apprendre-a-programmer-en-tex
  (package
    (name "texlive-apprendre-a-programmer-en-tex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/apprendre-a-programmer-en-tex/")
             (base32
              "05779lk9v849k712wfjv0mhyzahwpl4n892ydamfdc5yg05bsnyv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/apprendre-a-programmer-en-tex")
    (synopsis "@emph{Apprendre à programmer en TeX} book")
    (description
     "This book explains the basic concepts required for programming in TeX
and explains the programming methods, providing many examples.  The package
makes the compileable source code as well as the compiled PDF file accessible
to everyone.")
    (license license:lppl1.2+)))

(define-public texlive-apprends-latex
  (package
    (name "texlive-apprends-latex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/apprends-latex/")
             (base32
              "1xzy7svb2xz6bdfg0f1r3whwda118pl7qdwygx1l7h4d1vqm2rcq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/apprends-latex")
    (synopsis "@emph{Apprends LaTeX!} book")
    (description
     "@emph{Apprends LaTeX!} (``Learn LaTeX'', in English) is French
documentation for LaTeX beginners.")
    (license license:lppl)))

(define-public texlive-apxproof
  (package
    (name "texlive-apxproof")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/apxproof/"
                   "source/latex/apxproof/"
                   "tex/latex/apxproof/")
             (base32
              "1m4nvqxvnsllh25qmms6szcqqpb8wffk1z0v2p507fkgsdjz9jln")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/apxproof")
    (synopsis "Proofs in appendix")
    (description
     "The package makes it easier to write articles where proofs and other
material are deferred to the appendix.  The appendix material is written in
the LaTeX code along with the main text which it naturally complements, and it
is automatically deferred.  The package can automatically send proofs to the
appendix, can repeat in the appendix the theorem environments stated in the
main text, can section the appendix automatically based on the sectioning of
the main text, and supports a separate bibliography for the appendix
material.")
    (license license:lppl1.3+)))

(define-public texlive-arabi
  (package
    (name "texlive-arabi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/arabi/"
                   "fonts/afm/arabi/arabeyes/"
                   "fonts/enc/dvips/arabi/"
                   "fonts/map/dvips/arabi/"
                   "fonts/tfm/arabi/arabeyes/"
                   "fonts/tfm/arabi/farsiweb/"
                   "fonts/type1/arabi/arabeyes/"
                   "fonts/type1/arabi/farsiweb/"
                   "tex/latex/arabi/")
             (base32
              "19js5lw5r51n97gnf7ggvnvdkaamd0aagx73hnpyfzgzj9nb8pjr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/arabi")
    (synopsis "(La)TeX support for Arabic and Farsi, compliant with Babel")
    (description
     "The package provides an Arabic and Farsi script support for TeX without
the need of any external pre-processor, and in a way that is compatible with
Babel.  The bi-directional capability supposes that the user has a TeX engine
that knows the four primitives @code{\\beginR}, @code{\\endR}, @code{\\beginL}
and @code{\\endL}.  That is the case in both the TeX--XeT and e-TeX engines.

Arabi will accept input in several 8-bit encodings, including UTF-8.  Arabi
can make use of a wide variety of Arabic and Farsi fonts, and provides one of
its own.  PDF files generated using Arabi may be searched, and text may be
copied from them and pasted elsewhere.")
    (license license:lppl)))

(define-public texlive-arabi-add
  (package
    (name "texlive-arabi-add")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/arabi-add/"
                   "tex/latex/arabi-add/")
             (base32
              "1lrr3vr9sv554bvad70rc32x0jgsam2jaflgxw0nid0629rmigdj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/arabi-add")
    (synopsis
     "Using @code{hyperref} and @code{bookmark} packages with Arabic and Farsi languages")
    (description
     "This package takes advantage of some of the possibilities that
@code{hyperref} and @code{bookmark} packages offer when you create a table of
contents for Arabic texts created by the @code{arabi} package.")
    (license license:lppl1.3)))

(define-public texlive-arabic-book
  (package
    (name "texlive-arabic-book")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/arabic-book/"
                   "tex/xelatex/arabic-book/")
             (base32
              "070agzwpgdfvjqn2klxw2m1bavy0l9b9pqqikc7il3wx107m4ni1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/arabic-book")
    (synopsis "Arabic @code{book} class")
    (description
     "This document class provides both Arabic and English support for TeX and
LaTeX.  Input may be in ASCII transliteration or other encodings
(including UTF-8), and output may be Arabic, Hebrew, or any of several
languages that use the Arabic script, as can be specified by the Polyglossia
package.  The Arabic font is presently available in any Arabic fonts style.
In order to use Amiri font style, the user needs to install the amiri package.
This document class runs with the XeTeX engine.  PDF files generated using
this class can be searched, and text can be copied from them and pasted
elsewhere.")
    (license license:lppl1.3+)))

(define-public texlive-arabluatex
  (package
    (name "texlive-arabluatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/arabluatex/"
                   "source/lualatex/arabluatex/"
                   "tex/lualatex/arabluatex/")
             (base32
              "1g1ai0inai3jniq49avfswyaysxlk1yp6n97l94pq8v3vszx0k8i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/arabluatex")
    (synopsis "ArabTeX for LuaLaTeX")
    (description
     "This package provides for LuaLaTeX an ArabTeX-like interface to generate
Arabic writing from an ascii transliteration.  It is particularly well-suited
for complex documents such as technical documents or critical editions where
a lot of left-to-right commands intertwine with Arabic writing.
@code{arabluatex} is able to process any ArabTeX input notation.  Its output
can be set in the same modes of vocalization as ArabTeX, or in different roman
transliterations.  It further allows many typographical refinements.  It will
eventually interact with some other packages yet to come to produce from
@file{.tex} source files, in addition to printed books, TEI XML compliant
critical editions and/or lexicons that can be searched, analyzed and
correlated in various ways.")
    (license (list license:gpl3+ license:cc-by-sa4.0))))

(define-public texlive-arabtex
  (package
    (name "texlive-arabtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/arabtex/"
                   "fonts/map/dvips/arabtex/"
                   "fonts/source/public/arabtex/"
                   "fonts/tfm/public/arabtex/"
                   "fonts/type1/public/arabtex/"
                   "tex/latex/arabtex/")
             (base32
              "1z1iaj59lawilydp31d3zxbd5jbny4szpdnkbwl6lrnki4c0s51c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/arabtex")
    (synopsis "Macros and fonts for typesetting Arabic")
    (description
     "ArabTeX is a package extending the capabilities of TeX and LaTeX to
generate Arabic and Hebrew text.  Input may be in ASCII transliteration or
other encodings (including UTF-8); output may be Arabic, Hebrew, or any of
several languages that use the Arabic script.  ArabTeX consists of a TeX macro
package and Arabic and Hebrew fonts (provided both in Metafont format and
Adobe Type 1).  The Arabic font is presently only available in the Naskhi
style.  ArabTeX will run with Plain TeX and also with LaTeX.")
    (license license:lppl)))

(define-public texlive-arara
  (package
    (name "texlive-arara")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/arara.1"
                   "doc/man/man1/arara.man1.pdf"
                   "doc/support/arara/" "scripts/arara/"
                   "source/support/arara/")
             (base32
              "0sshjaxz1ar24mr7dny0lp9l0bggyfsb0868s4b1k00w6jyzh1i8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "arara.sh")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'locate-java
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "scripts/arara/arara.sh"
                (("java") (search-input-file inputs "/bin/java"))))))))
    (inputs (list icedtea))
    (home-page "https://ctan.org/pkg/arara")
    (synopsis "Automation of LaTeX compilation")
    (description
     "Arara is comparable with other well-known compilation tools like
@command{latexmk} and @command{rubber}.  The key difference is that Arara
determines its actions from metadata in the source code, rather than relying
on indirect resources, such as log file analysis.  Arara requires a Java
virtual machine.")
    (license license:bsd-3)))

(define-public texlive-aramaic-serto
  (package
    (name "texlive-aramaic-serto")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/aramaic-serto/"
                   "fonts/afm/public/aramaic-serto/"
                   "fonts/map/dvips/aramaic-serto/"
                   "fonts/source/public/aramaic-serto/"
                   "fonts/tfm/public/aramaic-serto/"
                   "fonts/type1/public/aramaic-serto/"
                   "tex/latex/aramaic-serto/")
             (base32
              "154bicknhsj8nypnyzr999wj34xli0kfpic9vym805abxbpwrmsw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/aramaic-serto")
    (synopsis "Fonts and LaTeX for Syriac written in Serto")
    (description
     "This package enables (La)TeX users to typeset words or phrases (e-TeX
extensions are needed) in Syriac (Aramaic) using the Serto-alphabet.  The
package includes a preprocessor written in Python in order to deal with
right-to-left typesetting for those who do not want to use e-LaTeX and to
choose the correct letter depending on word context (initial/medial/final
form).")
    (license license:lppl1.3+)))

(define-public texlive-armtex
  (package
    (name "texlive-armtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/armenian/"
                   "fonts/afm/public/armenian/"
                   "fonts/map/dvips/armenian/"
                   "fonts/source/public/armenian/"
                   "fonts/tfm/public/armenian/"
                   "fonts/type1/public/armenian/"
                   "tex/latex/armenian/"
                   "tex/plain/armenian/")
             (base32
              "161c66av2zkxp9r32dr449sa9crmyjkjijrvx5a56avkyyr1s0kp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/armtex")
    (synopsis "System for writing in Armenian with TeX and LaTeX")
    (description
     "ArmTeX is a system for typesetting Armenian text with Plain TeX or LaTeX(2e).
It may be used with input: from a standard Latin keyboard without any special
encoding or support for Armenian letters, from any keyboard which uses an
encoding that has Armenian letters in the second half (characters 128-255) of
the extended ASCII table (for example ArmSCII8 Armenian standard), or from an
Armenian keyboard using UTF-8 encoding.")
    (license license:lppl)))

(define-public texlive-around-the-bend
  (package
    (name "texlive-around-the-bend")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/around-the-bend/")
             (base32
              "00nc6kx4ylz9g6vmjlgyjvmy1ls86pjblbcpm5z40wh5xl7l184f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/around-the-bend")
    (synopsis "Typeset exercises in TeX, with answers")
    (description
     "This is a typeset version of the files of the @code{aro-bend}, plus
three extra questions (with their answers) that Michael Downes didn't manage
to get onto CTAN.")
    (license license:lppl)))

(define-public texlive-arphic
  (package
    (name "texlive-arphic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/arphic/"
                   "dvips/arphic/"
                   "fonts/afm/arphic/bkaiu/"
                   "fonts/afm/arphic/bsmiu/"
                   "fonts/afm/arphic/gbsnu/"
                   "fonts/afm/arphic/gkaiu/"
                   "fonts/map/dvips/arphic/"
                   "fonts/tfm/arphic/bkaimp/"
                   "fonts/tfm/arphic/bkaiu/"
                   "fonts/tfm/arphic/bsmilp/"
                   "fonts/tfm/arphic/bsmiu/"
                   "fonts/tfm/arphic/gbsnlp/"
                   "fonts/tfm/arphic/gbsnu/"
                   "fonts/tfm/arphic/gkaimp/"
                   "fonts/tfm/arphic/gkaiu/"
                   "fonts/type1/arphic/bkaiu/"
                   "fonts/type1/arphic/bsmiu/"
                   "fonts/type1/arphic/gbsnu/"
                   "fonts/type1/arphic/gkaiu/"
                   "fonts/vf/arphic/bkaimp/"
                   "fonts/vf/arphic/bsmilp/"
                   "fonts/vf/arphic/gbsnlp/"
                   "fonts/vf/arphic/gkaimp/")
             (base32
              "1sqsgw9xjgd3ss2q7hwnb3vv38sg7l9i8bvsy79m5hyg29wn973x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/arphic")
    (synopsis "Arphic (Chinese) font packages")
    (description
     "These are font bundles for the Chinese Arphic fonts which work with the
CJK package.  TrueType versions of these fonts for use with XeLaTeX and
LuaLaTeX are provided by the @code{arphic-ttf} package.")
    ;; The files are generated from `chinese-fonts-truetype', located in
    ;; non-GNU FTP site, using the license below.
    (license license:arphic-1999)))

(define-public texlive-arphic-ttf
  (package
    (name "texlive-arphic-ttf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/arphic-ttf/"
                   "fonts/truetype/public/arphic-ttf/")
             (base32
              "141hsz7lhqpbz3k10kl57bg21yslrb562alk1a6q129i56zb7jby")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/arphic-ttf")
    (synopsis "TrueType version of Chinese Arphic fonts")
    (description
     "This package provides TrueType versions of the Chinese Arphic fonts for
use with XeLaTeX and LuaLaTeX.  Type1 versions of these fonts, for use with
pdfLaTeX and the @code{cjk} package, are provided by the @code{arphic}
package.")
    (license license:arphic-1999)))

(define-public texlive-ascii-chart
  (package
    (name "texlive-ascii-chart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/ascii-chart/")
             (base32
              "1m2x7iwz80plq6hbhp9xia6bp8wbi03iifs0pkr7ji3gn8hqgh1r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ascii-chart")
    (synopsis "ASCII wall chart")
    (description
     "This package contains an ASCII wall chart.  The document may be
converted between Plain TeX and LaTeX by a simple editing action.")
    (license license:lppl1.3+)))

(define-public texlive-ascmac
  (package
    (name "texlive-ascmac")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ascmac/"
                   "fonts/map/dvips/ascmac/"
                   "fonts/source/public/ascmac/"
                   "fonts/tfm/public/ascmac/"
                   "fonts/type1/public/ascmac/"
                   "source/latex/ascmac/"
                   "tex/latex/ascmac/")
             (base32
              "1d388nqyjipqsgd0pd4zrskaf3wddacg6rrmy3q1n8pvmna4gmz1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/ascmac")
    (synopsis "Boxes and picture macros with Japanese vertical writing support")
    (description
     "The bundle provides boxes and picture macros with Japanese vertical
writing support.  It uses only native picture macros and fonts for drawing
boxes and is thus driver independent.")
    (license license:bsd-3)))

(define-public texlive-asternote
  (package
    (name "texlive-asternote")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/asternote/"
                   "tex/latex/asternote/")
             (base32
              "1a53pmw237lm1yjx55qwq3fq6jq34vlw03w62vrq3ksw9346dg5r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/asternote")
    (synopsis "Annotation symbols enclosed in square brackets with an asterisk")
    (description
     "This LaTeX package can output annotation symbols enclosed in square
brackets and marked with an asterisk.")
    (license license:expat)))

(define-public texlive-asymptote-by-example-zh-cn
  (package
    (name "texlive-asymptote-by-example-zh-cn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/asymptote-by-example-zh-cn/")
             (base32
              "0854pbh3rm21rzzbhai7xijzw26qawffj4wd3mrwbva1406106ff")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/asymptote-by-example-zh-cn")
    (synopsis "Asymptote by example")
    (description "This is an Asymptote tutorial written in Simplified
Chinese.")
    (license license:gpl3+)))

(define-public texlive-asymptote-faq-zh-cn
  (package
    (name "texlive-asymptote-faq-zh-cn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/asymptote-faq-zh-cn/")
             (base32
              "0z09f5as68dz66dlj370xfx593bv50ihxx10zxmm9lk27ymr52hb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/asymptote-faq-zh-cn")
    (synopsis "Asymptote FAQ (Chinese translation)")
    (description "This is a Chinese translation of the Asymptote FAQ.")
    (license license:lppl)))

(define-public texlive-asymptote-manual-zh-cn
  (package
    (name "texlive-asymptote-manual-zh-cn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/asymptote-manual-zh-cn/")
             (base32
              "047l3bh8vvk185wkazyfw4dm6893xpa2ksn5vfc57r5rv4x16wmb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/asymptote-manual-zh-cn")
    (synopsis "Chinese translation of the Asymptote manual")
    (description
     "This is an (incomplete, simplified) Chinese translation of the Asymptote
manual.")
    (license license:lgpl3+)))

(define-public texlive-auto-pst-pdf
  (package
    (name "texlive-auto-pst-pdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/auto-pst-pdf/"
                   "source/latex/auto-pst-pdf/"
                   "tex/latex/auto-pst-pdf/")
             (base32
              "1lpjwqd0rhdzz3kywl54pjlpj1qsj7kflj0336vj2zb20rxl0hqp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-ifplatform texlive-iftex texlive-xkeyval))
    (home-page "https://ctan.org/pkg/auto-pst-pdf")
    (synopsis "Wrapper for @code{pst-pdf} (with some PSfrag features)")
    (description
     "The package uses @samp{--shell-escape} to execute @code{pst-pdf} when necessary.
Wrappers are provided for various psfrag-related features so that Matlab
figures via @code{laprint}, Mathematica figures via MathPSfrag, and regular
PSfrag figures can all be input consistently and easily.")
    (license license:lppl1.3c)))

(define-public texlive-autoaligne
  (package
    (name "texlive-autoaligne")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/autoaligne/"
                   "tex/generic/autoaligne/")
             (base32
              "138d030zgzpdwqxx55gjw35y0c3v794fpa3c6znc9kv1vj8cs9d3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/autoaligne")
    (synopsis "Align terms and members in math expressions")
    (description
     "This package allows to align terms and members between lines containing
math expressions.")
    (license license:lppl1.3c)))

(define-public texlive-autobreak
  (package
    (name "texlive-autobreak")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/autobreak/"
                   "source/latex/autobreak/"
                   "tex/latex/autobreak/")
             (base32
              "1xw4m1wyv17xi6yjfcamb1gjdwzbhrjjdpyc8fydq1qbki1yvv1k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/autobreak")
    (synopsis "Simple line breaking of long formulae")
    (description
     "This package implements a simple mechanism of line or page breaking
within the @code{align} environment of the @code{amsmath} package; new line
characters are considered as possible candidates for the breaks and the
package tries to put breaks at adequate places.  It is suitable for
computer-generated long formulae with many terms.")
    (license license:lppl1.3+)))

(define-public texlive-axodraw2
  (package
    (name "texlive-axodraw2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/axodraw2/"
                   "doc/man/man1/axohelp.1"
                   "doc/man/man1/axohelp.man1.pdf"
                   "source/latex/axodraw2/"
                   "tex/latex/axodraw2/")
             (base32
              "0x1cskdm3kmf08gdrvgasd1b3l0dri9mdmk13880dz4g2rdgbvi2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tests? #true
      #:phases
      #~(modify-phases %standard-phases
          ;; TODO: Since we're building "axohelp" from source here, it can be
          ;; removed from `texlive-bin' (world rebuild).
          (add-after 'unpack 'build-axohelp
            (lambda* (#:key tests? #:allow-other-keys)
              (with-directory-excursion "source/latex/axodraw2"
                ;; Autoreconf.
                (invoke "autoreconf" "-vfi")
                ;; Configure.
                (let ((sh (which "sh")))
                  (setenv "CONFIG_SHELL" sh)
                  (setenv "SHELL" sh)
                  (invoke sh "configure" (string-append "--prefix=" #$output)))
                ;; Build.
                (invoke "make")
                ;; Tests.
                (when tests?
                  (patch-shebang "axohelp.test") ;Bash script
                  (invoke "make" "check"))
                ;; Install.
                (invoke "make" "install")))))))
    (native-inputs (list autoconf automake pkg-config))
    (inputs (list openlibm))
    (home-page "https://ctan.org/pkg/axodraw2")
    (synopsis "Feynman diagrams in a LaTeX document")
    (description
     "This package defines macros for drawing Feynman graphs in LaTeX documents.
It is an important update of the @code{axodraw} package, but since it is not
completely backwards compatible, we have given the style file a changed name.

Many new features have been added, with new types of line, and much more
flexibility in their properties.  In addition, it is now possible to use
@code{axodraw2} with pdfLaTeX, as well as with the LaTeX-dvips method.
However with pdfLaTeX (and also LuaLaTeX and XeLaTeX), an external program,
@command{axohelp}, is used to perform the geometrical calculations needed for
the pdf code inserted in the output file.  The processing involves a run of
@command{pdflatex}, a run of @command{axohelp}, and then another run of
@command{pdflatex}.")
    (license license:gpl3+)))

(define-public texlive-backnaur
  (package
    (name "texlive-backnaur")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/backnaur/"
                   "source/latex/backnaur/"
                   "tex/latex/backnaur/")
             (base32
              "168ng265vdl74l9c2jmp34ba6ir5i6c1jb7jpyzc31g9snqmyr09")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/backnaur")
    (synopsis "Typeset Backus Naur Form definitions")
    (description
     "The package typesets Backus-Naur Form (BNF) definitions.  It prints
formatted lists of productions, with numbers if required.  It can also print
in-line BNF expressions using math mode.")
    (license license:lppl1.3c)))

(define-public texlive-bangla
  (package
    (name "texlive-bangla")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bangla/"
                   "fonts/truetype/public/bangla/"
                   "tex/latex/bangla/")
             (base32
              "0basibrsbns9s2ny6ny95hl6dj4rjf6q4z9bqn2kc9945akxg8af")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-charissil texlive-doulossil))
    (home-page "https://ctan.org/pkg/bangla")
    (synopsis "Comprehensive Bangla LaTeX package")
    (description
     "This package provides all the necessary LaTeX frontends for the Bangla
language and comes with some fonts of its own.")
    (license (list license:lppl1.3c license:silofl1.1))))

(define-public texlive-bangtex
  (package
    (name "texlive-bangtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bangtex/"
                   "fonts/source/public/bangtex/"
                   "fonts/tfm/public/bangtex/"
                   "tex/latex/bangtex/")
             (base32
              "1hmv27wpnwv70gipvfvxs1rwfjqbcy0lgn09hs2ah6ayqgr740im")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/bangtex")
    (synopsis "Writing Bangla and Assamese with LaTeX")
    (description
     "The bundle provides class files for writing Bangla and Assamese with LaTeX,
and Metafont sources for fonts.")
    (license license:lppl)))

(define-public texlive-barr
  (package
    (name "texlive-barr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/barr/" "tex/generic/barr/")
             (base32
              "1l532g0nxigbllv2lf74bwx78sf4jsfr1cad0hpq7i7kq820wbii")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/diagxy")
    (synopsis "Diagram macros by Michael Barr")
    (description
     "Diagxy is a general diagramming package, useful for diagrams in a number
of mathematical disciplines.")
    (license license:lppl1.3+)))

(define-public texlive-basque-book
  (package
    (name "texlive-basque-book")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/basque-book/"
                   "source/latex/basque-book/"
                   "tex/latex/basque-book/")
             (base32
              "16jgn4pxqbmq2dx5gfyy4p04ykaijkjyy9banp3l3a6ykm2xn8w7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/basque-book")
    (synopsis "Class for book-type documents written in Basque")
    (description
     "The class is derived from the LaTeX @code{book} class.  The extensions
solve grammatical and numeration issues that occur when book-type documents
are written in Basque.  The class is useful for writing books, PhD and Master
Theses, etc., in Basque.")
    (license license:lppl1.2+)))

(define-public texlive-basque-date
  (package
    (name "texlive-basque-date")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/basque-date/"
                   "source/latex/basque-date/"
                   "tex/latex/basque-date/")
             (base32
              "0n1nc2nrwl3ajk1n7xbnf49mvg8dlqlyndsyywgs46dnv55b7gs5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/basque-date")
    (synopsis "Print the date in Basque")
    (description
     "The package provides two LaTeX commands to print the current date in
Basque according to the correct forms ruled by The Basque Language Academy
(Euskaltzaindia).  The commands automatically solve the complex declination
issues of numbers in Basque.")
    (license license:lppl1.2+)))

(define-public texlive-bclogo
  (package
    (name "texlive-bclogo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bclogo/" "metapost/bclogo/"
                   "tex/latex/bclogo/")
             (base32
              "1hdg99xkmdca23s7i63099r9jvgw2larv8aawjllj9mw18195jr9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bclogo")
    (synopsis "Creating colourful boxes with logos")
    (description
     "The package facilitates the creation of colorful boxes with a title and logo.
It may use either TikZ or PSTricks as graphics engine.")
    (license license:lppl1.3+)))

(define-public texlive-begingreek
  (package
    (name "texlive-begingreek")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/begingreek/"
                   "source/latex/begingreek/"
                   "tex/latex/begingreek/")
             (base32
              "1amzzc96pqxjicrgl4fnl2j7b65vvpxl32ckl308nbwfhd56fz6l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/begingreek")
    (synopsis "Greek environment to be used with pdfLaTeX only")
    (description
     "This simple package defines a greek environment to be used with pdfLaTeX
only, that accepts an optional Greek font family name to type its contents
with.  A similar @code{\\greektxt} command does a similar action for shorter
texts.")
    (license license:lppl1.3c)))

(define-public texlive-begriff
  (package
    (name "texlive-begriff")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/begriff/" "tex/latex/begriff/")
             (base32
              "0vi7i35fqi32y26crk5aj93mivix61ppgmpz0djshizwrd9pn9xy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/begriff")
    (synopsis "Typeset Begriffschrift")
    (description
     "The package defines maths mode commands for typesetting Frege's
@emph{Begriffschrift}.")
    (license license:gpl3+)))

(define-public texlive-bengali
  (package
    (name "texlive-bengali")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/bengali/"
                   "fonts/source/public/bengali/"
                   "fonts/tfm/public/bengali/"
                   "source/latex/bengali/" "tex/latex/bengali/")
             (base32
              "077rs7rcx592g5m53hy73w6jd39qgb83z5sg2jbymjfwkk7y593h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/bengali-pandey")
    (synopsis "Support for the Bengali language")
    (description
     "The package is based on Velthuis transliteration scheme, with extensions
to deal with the Bengali letters that are not in Devanagari.  The package also
supports Assamese.")
    (license license:lppl)))

(define-public texlive-betababel
  (package
    (name "texlive-betababel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/betababel/"
                   "tex/latex/betababel/")
             (base32
              "1lck0wighndd3qrhcks6amc6gm5y50f6a61nfcz31j087r3a7liv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/betababel")
    (synopsis "Insert ancient greek text coded in Beta Code")
    (description
     "The @code{betababel} package extends the Babel @samp{polutonikogreek}
option to provide a simple way to insert ancient Greek texts with diacritical
characters into your document using the commonly used Beta Code
transliteration.")
    (license license:lppl)))

(define-public texlive-bib-fr
  (package
    (name "texlive-bib-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/bib-fr/" "doc/bibtex/bib-fr/")
             (base32
              "11af1p52vr16l5gf69ql2zz0328yqd75nbcvik7b0g05pbqc12nv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bib-fr")
    (synopsis "French translation of classical BibTeX styles")
    (description
     "These files are French translations of the classical BibTeX style
files.")
    (license license:lppl)))

(define-public texlive-bibleref-french
  (package
    (name "texlive-bibleref-french")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bibleref-french/"
                   "source/latex/bibleref-french/"
                   "tex/latex/bibleref-french/")
             (base32
              "12y9xdsz0swh3rndmzk7ch9fbszbhcp0ixb21jyy36xnb3x80wa5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bibleref-french")
    (synopsis "French translations for @code{bibleref}")
    (description
     "The package provides translations and alternative typesetting
conventions for use of @code{bibleref} in French.")
    (license license:lppl1.3+)))

(define-public texlive-bibleref-german
  (package
    (name "texlive-bibleref-german")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bibleref-german/"
                   "tex/latex/bibleref-german/")
             (base32
              "0nqky0x9j6w3xg2vaj29db7l0zjw88d7bl6vs8864hqz2i6h2pcw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bibleref-german")
    (synopsis "German adaptation of @code{bibleref}")
    (description
     "The package provides translations and various formats for the use of
@code{bibleref} in German documents.  The German naming of the Bible books
complies with the @emph{Loccumer Richtlinien} (Locum guidelines).  In
addition, the Vulgate (Latin Bible) is supported.")
    (license license:lppl1.3+)))

(define-public texlive-bidihl
  (package
    (name "texlive-bidihl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/bidihl/" "tex/xelatex/bidihl/")
             (base32
              "021q2qhfl2ww95nbp63p3j7lv9wjj5s9wvn2sj5zyj1pcw75l8ir")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bidihl")
    (synopsis "Experimental Bidi-aware text highlighting")
    (description
     "This package provides experimental Bidi-aware text highlighting.")
    (license license:lppl1.3+)))

(define-public texlive-binomexp
  (package
    (name "texlive-binomexp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/binomexp/"
                   "source/latex/binomexp/"
                   "tex/latex/binomexp/")
             (base32
              "1wmhsqqz2hy75x20srs1237yba4s00yrdhr52hkrh3nldzqwhqcc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/binomexp")
    (synopsis "Calculate Pascal's triangle")
    (description
     "The package calculates and prints rows of Pascal's triangle.  It may be
used to print successive rows of the triangle, or to print the rows inside an
@code{array} or @code{tabular} environment.")
    (license license:lppl)))

(define-public texlive-biocon
  (package
    (name "texlive-biocon")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/biocon/" "tex/latex/biocon/")
             (base32
              "0m3qqrl5z071w4zs8fs3wv0b4ix0s6cqh4ixzqj28d74aaf9r1y1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/biocon")
    (synopsis "Typesetting biological species names")
    (description
     "The biocon--biological conventions--package aids the typesetting of some
biological conventions.  At the moment, it makes a good job of typesetting
species names (and ranks below the species level).  A distinction is made
between the Plant, Fungi, Animalia and Bacteria kingdoms.  There are default
settings for the way species names are typeset, but they can be customized.
Different default styles are used in different situations.")
    (license license:gpl3+)))

(define-public texlive-bitelist
  (package
    (name "texlive-bitelist")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/bitelist/"
                   "source/generic/bitelist/"
                   "tex/generic/bitelist/")
             (base32
              "1jv9w2jgx8q2k9xx0n4azlngsh26zs37ihavq0xy4n62ajf64ps6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bitelist")
    (synopsis "Split list, in TeX's mouth")
    (description
     "The package provides commands for splitting a token list at the first
occurrence of another (specified) token list.  The package's mechanism differs
from those of packages providing similar features, in the following ways: the
method uses TeX's mechanism of reading delimited macro parameters; splitting
macros work by pure expansion, without assignments; the operation is carried
out in a single macro call.  A variant of the operation is provided, that
retains outer braces.")
    (license license:lppl1.3+)))

(define-public texlive-bitpattern
  (package
    (name "texlive-bitpattern")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bitpattern/"
                   "source/latex/bitpattern/"
                   "tex/latex/bitpattern/")
             (base32
              "00f423jran7qqg9fwy3p7w1lhi20cxzlvn4hzsrz5pwd87bmvxxb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bitpattern")
    (synopsis "Typeset bit pattern diagrams")
    (description
     "This package provides a package to typeset bit pattern diagrams such as those
used to describe hardware, data format or protocols.")
    (license license:lppl)))

(define-public texlive-bodeplot
  (package
    (name "texlive-bodeplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bodeplot/"
                   "source/latex/bodeplot/"
                   "tex/latex/bodeplot/")
             (base32
              "1wlzfdm7ngassxhlcq2yc94id6szijan334l5png7avmifkz7m5y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bodeplot")
    (synopsis "Draw Bode, Nyquist and Nichols plots with Gnuplot or
 @code{pgfplots}")
    (description
     "This is a LaTeX package to plot Bode, Nichols, and Nyquist diagrams.  It
provides added functionality over the similar @code{bodegraph} package:

@itemize
@item new @code{\\BodeZPK} and @code{\\BodeTF} commands to generate Bode plots
of any transfer function given either poles, zeros, gain, and delay, or
numerator and denominator coefficients and delay;
@item support for unstable poles and zeros;
@item support for complex poles and zeros;
@item support for general stable and unstable second order transfer functions;
@item support for both Gnuplot (default) and @code{pgfplots};
@item support for linear and asymptotic approximation of magnitude and phase
plots of any transfer function given poles, zeros, and gain.
@end itemize")
    (license license:lppl1.3c)))

(define-public texlive-bohr
  (package
    (name "texlive-bohr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bohr/" "tex/latex/bohr/")
             (base32
              "02slnkmxha906y7z04dffamy0lywq95l9yvklxjlm2kvjhqv2wnw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bohr")
    (synopsis "Simple atom representation according to the Bohr model")
    (description
     "The package provides means for the creation of simple Bohr models of
atoms up to the atomic number 112.  In addition, commands are provided to
convert atomic numbers to element symbols or element names and vice versa.")
    (license license:lppl1.3+)))

(define-public texlive-boldtensors
  (package
    (name "texlive-boldtensors")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/boldtensors/"
                   "tex/latex/boldtensors/")
             (base32
              "06c0wa4qai0qdbad44464nc5zap9bc03yjn89yagsr4dzxif0jrg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/boldtensors")
    (synopsis
     "Bold latin and greek characters through simple prefix characters")
    (description
     "This package provides bold latin and greek characters within
@code{\\mathversion@{normal@}}, by using @samp{~} and @samp{\"} as prefix
characters.")
    (license license:gpl3+)))

(define-public texlive-booktabs-de
  (package
    (name "texlive-booktabs-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/booktabs-de/")
             (base32
              "1ld7zdr88xjhnnl2x734rxr7h0fz84awapmv50p1kzn6fczrwyam")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/booktabs-de")
    (synopsis "German version of @code{booktabs}")
    (description
     "This is a German translation of the @code{booktabs} package
documentation.")
    (license license:gpl3+)))

(define-public texlive-booktabs-fr
  (package
    (name "texlive-booktabs-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/booktabs-fr/")
             (base32
              "1xkqh6r2q835xaa92b24fzf61jsm85280570hivvwnch96i4fnh3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/booktabs-fr")
    (synopsis "French translation of @code{booktabs} documentation")
    (description
     "This package provides a French translation of @code{booktabs}
documentation.")
    (license license:lppl)))

(define-public texlive-borceux
  (package
    (name "texlive-borceux")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/borceux/"
                   "tex/generic/borceux/")
             (base32
              "1fil90jsiqg7b0if3yq0jxv4rh7vanj2yj9pv8pnfkhvqii4p821")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/borceux")
    (synopsis "Diagram macros by Francois Borceux")
    (description
     "The macros support the construction of diagrams, such as those that
appear in category theory texts.  The user gives the list of vertices and
arrows to be included, just as when composing a matrix, and the program takes
care of computing the dimensions of the arrows and realizing the page setting.
All the user has to do about the arrows is to specify their
type (monomorphism, pair of adjoint arrows, etc.) and their direction (north,
south-east, etc.); 12 types and 32 directions are available.")
    ;; "You may freely use, modify, and/or distribute each of the
    ;; files in this package without limitation."
    (license (license:fsf-free "file://doc/generic/borceux/README"))))

(define-public texlive-bosisio
  (package
    (name "texlive-bosisio")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bosisio/" "source/latex/bosisio/"
                   "tex/latex/bosisio/")
             (base32
              "1z4s0dgvwffy4356zj0m6kkk9lqzq1180km5sg5syvk11m7mxffn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/bosisio")
    (synopsis "Collection of packages by Francesco Bosisio")
    (description
     "This package provides a collection of packages containing: @code{accenti},
@code{dblfont}, @code{envmath}, @code{evenpage}, @code{graphfig},
@code{mathcmd}, @code{quotes}, and @code{sobolev}.")
    (license license:lppl)))

(define-public texlive-bpchem
  (package
    (name "texlive-bpchem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bpchem/" "source/latex/bpchem/"
                   "tex/latex/bpchem/")
             (base32
              "0qm0w43iyh42l3srhqsgqq5yjxx3ghxamq6nh68qq6x4izlyv51z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bpchem")
    (synopsis "Typeset chemical names, formulae, etc")
    (description
     "The package provides support for typesetting simple chemical formulae,
those long IUPAC compound names, and some chemical idioms.  It also supports
the labelling of compounds and reference to labelled compounds.")
    (license license:lppl)))

(define-public texlive-bropd
  (package
    (name "texlive-bropd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bropd/" "source/latex/bropd/"
                   "tex/latex/bropd/")
             (base32
              "1cyyadfvrcym4vvxl9p9zb88692m0578nqljip12xxahb4srcyb9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs (list (texlive-updmap.cfg (list texlive-hypdoc))))
    (home-page "https://ctan.org/pkg/bropd")
    (synopsis "Simplified brackets and differentials in LaTeX")
    (description
     "The package simplifies the process of writing differential operators and
brackets in LaTeX.  The commands facilitate the easy manipulation of equations
involving brackets and allow partial differentials to be expressed in an
alternate form.")
    (license license:lppl1.3+)))

(define-public texlive-burmese
  (package
    (name "texlive-burmese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/burmese/"
                   "fonts/map/dvips/burmese/"
                   "fonts/tfm/public/burmese/"
                   "fonts/type1/public/burmese/"
                   "source/fonts/burmese/"
                   "tex/latex/burmese/")
             (base32
              "04d022k7bqc7092xhsda0h5ma18b24hkmn0b7mlblpd3zf4qhs79")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          ;; The "birm.pl" script is located in the "source" part, and
          ;; therefore will not appear in any output.  This phase forces its
          ;; installation in "bin/" directory.
          (add-after 'install 'install-script
            (lambda _
              (install-file "source/fonts/burmese/birm.pl"
                            (string-append #$output "/bin")))))))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/burmese")
    (synopsis "Basic support for writing Burmese")
    (description
     "This package provides basic support for writing Burmese.  The package
provides a preprocessor (written in Perl), an Adobe Type 1 font, and LaTeX
macros.")
    ;; The package itself is under LPPL terms, but the preprocessor relies on
    ;; Knuth's.
    (license (list license:lppl license:knuth))))

(define-public texlive-bussproofs-extra
  (package
    (name "texlive-bussproofs-extra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bussproofs-extra/"
                   "source/latex/bussproofs-extra/"
                   "tex/latex/bussproofs-extra/")
             (base32
              "08n6ww2fcijkisldrhbvvm52n3r4fy10bz1i4jyac7wnnpw8dd2p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bussproofs-extra")
    (synopsis "Extra commands for @file{bussproofs.sty}")
    (description
     "This package provides additional functionality for
@file{bussproofs.sty}; specifically, it allows for typesetting of
entire (sub)deductions.")
    (license license:lppl1.3c)))

(define-public texlive-bxbase
  (package
    (name "texlive-bxbase")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxbase/" "tex/latex/bxbase/")
             (base32
              "19zhvwj55lihlj11mk322735z595al847wsg3p0s3a9zm17b0skk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxbase")
    (synopsis "BX bundle base components")
    (description
     "The main purpose of this bundle is to serve as an underlying library for
other packages created by the same author.  However @code{bxbase} package
contains a few user-level commands and is of some use by itself.")
    (license license:expat)))

(define-public texlive-bxcjkjatype
  (package
    (name "texlive-bxcjkjatype")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxcjkjatype/"
                   "tex/latex/bxcjkjatype/")
             (base32
              "1cnh1xdqcapahixzfxrrmadplkfrljh1vcdq7i3p4xdaclrbhzds")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxcjkjatype")
    (synopsis "Typeset Japanese with pdfLaTeX and CJK")
    (description
     "The package provides a working configuration of the CJK package,
suitable for Japanese typesetting of moderate quality.  Moreover, it
facilitates use of the CJK package for pLaTeX users, by providing commands
that are similar to those used by the pLaTeX kernel and some other packages
used with it.")
    (license license:expat)))

(define-public texlive-bxghost
  (package
    (name "texlive-bxghost")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxghost/" "tex/latex/bxghost/")
             (base32
              "11hnnyd6h3r5fl9p23qj1zspwzgnamfah7xqj7l1prp6ygb322mn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxghost")
    (synopsis "Ghost insertion for proper @code{xkanjiskip}")
    (description
     "The package provides two commands to help authors for documents in
Japanese to insert proper @code{xkanjiskips}.  It supports LuaTeX, XeTeX,
pTeX, upTeX, and ApTeX (pTeX-ng).")
    (license license:expat)))

(define-public texlive-bxjaholiday
  (package
    (name "texlive-bxjaholiday")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxjaholiday/"
                   "tex/latex/bxjaholiday/")
             (base32
              "1n0h9g5lgaz00gn8wjai8w3pbg7bs02aaw7zi7h8l01i4lc8l1r1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxjaholiday")
    (synopsis "Support for Japanese holidays")
    (description
     "This LaTeX package provides a command to convert dates to names of
Japanese holidays.  Another command, converting dates to the day of the week
in Japanese, is available as a free gift.")
    (license license:expat)))

(define-public texlive-bxjalipsum
  (package
    (name "texlive-bxjalipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxjalipsum/"
                   "tex/latex/bxjalipsum/")
             (base32
              "1d71l9mrqc2lwzri5p97rfy0rdvj6jv2jpfm10grfpbwpln7big8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxjalipsum")
    (synopsis "Dummy text in Japanese")
    (description
     "This package enables users to print some Japanese text that can be used
as dummy text.  It is a Japanese counterpart of the @code{lipsum} package.
Since there is no well-known nonsense text like Lipsum in the Japanese
language, the package uses some real text in public domain.")
    (license license:expat)))

(define-public texlive-bxjaprnind
  (package
    (name "texlive-bxjaprnind")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxjaprnind/"
                   "tex/latex/bxjaprnind/")
             (base32
              "0j2k06y63c7dgpcflrfrjy82g2746fnmpf8dk445lbqkbn1jypr5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxjaprnind")
    (synopsis "Adjust the position of parentheses at paragraph head")
    (description
     "In Japanese typesetting, opening parentheses placed at the beginning of
paragraphs or lines are treated specially.  This package adjusts the position
of parentheses accordingly.")
    (license license:expat)))

(define-public texlive-bxjatoucs
  (package
    (name "texlive-bxjatoucs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxjatoucs/"
                   "fonts/tfm/public/bxjatoucs/"
                   "tex/latex/bxjatoucs/")
             (base32
              "1032lfp9qy4arzy06s5hkqlva7y182763wxfdql93yn68hcn85vd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxjatoucs")
    (synopsis "Convert Japanese character code to Unicode")
    (description
     "This package is meant for macro or package developers: it provides
function-like macros that convert a character code value in one of several
Japanese encodings to a Unicode value.  Supported source encodings are:
ISO-2022-JP (jis), EUC-JP (euc), Shift_JIS (sjis), and the Adobe-Japan1 glyph
set.")
    (license license:expat)))

(define-public texlive-bxjscls
  (package
    (name "texlive-bxjscls")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxjscls/" "source/latex/bxjscls/"
                   "tex/latex/bxjscls/")
             (base32
              "0bm9ab1j949v3ygnml8w0isx7yydq6jfq4ws3i0pf1rhs56m6rm0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxjscls")
    (synopsis "Japanese document class collection for all major engines")
    (description
     "This package provides an extended version of the Japanese document class
collection provided by @code{jsclasses}.  While the original version supports
only pLaTeX and upLaTeX, the extended version also supports pdfLaTeX, XeLaTeX
and LuaLaTeX, with the aid of suitable packages that provide capability of
Japanese typesetting.")
    (license license:bsd-2)))

(define-public texlive-bxorigcapt
  (package
    (name "texlive-bxorigcapt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxorigcapt/"
                   "tex/latex/bxorigcapt/")
             (base32
              "1gj61hjmyxsbfkrs1sh604b6dfl00kp39fcamlfzb8s197wsl9fv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxorigcapt")
    (synopsis "Retain the original caption names when using Babel")
    (description
     "This package forces the caption names declared by the document class in
use to be used as the caption names for a specific language introduced by the
Babel package.")
    (license license:expat)))

(define-public texlive-bxwareki
  (package
    (name "texlive-bxwareki")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxwareki/" "tex/latex/bxwareki/")
             (base32
              "0qy1nsxi8ihhxdz5grp3nymsm2lfj5gf6wmky30fxizxya92ml2b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxwareki")
    (synopsis "Convert dates from Gregorian to Japanese calender")
    (description
     "This LaTeX package provides commands to convert from the Gregorian
calendar to the Japanese rendering of the Japanese calendar.  You can choose
whether the numbers are written in Western numerals or kanji numerals.  Note
that the package only deals with dates in the year 1873 or later, where the
Japanese calendar is really a Gregorian calendar with a different notation of
years.")
    (license license:expat)))

(define-public texlive-bytefield
  (package
    (name "texlive-bytefield")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bytefield/"
                   "source/latex/bytefield/"
                   "tex/latex/bytefield/")
             (base32
              "0sijllb1nmg7alp8kma9gg2cl591p6vjs488yndpbjg49ih2bx71")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bytefield")
    (synopsis "Create illustrations for network protocol specifications")
    (description
     "The @code{bytefield} package helps the user create illustrations for
network protocol specifications and anything else that utilizes fields of
data.  These illustrations show how the bits and bytes are laid out in
a packet or in memory.")
    (license license:lppl1.3a)))

(define-public texlive-c-pascal
  (package
    (name "texlive-c-pascal")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/c-pascal/"
                   "tex/generic/c-pascal/")
             (base32
              "0kmxki1yclk7lzlidcvsdry7mzm58zzwq3rxgvmpawq2hs8hpcra")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/c-pascal")
    (synopsis "Typeset Python, C and Pascal programs")
    (description
     "This package provides a TeX macro package for easy typesetting programs
in Python, C and Pascal.  Program source files may also be input.")
    (license license:public-domain)))

(define-public texlive-c90
  (package
    (name "texlive-c90")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/enc/c90/" "fonts/enc/dvips/c90/"
                   "source/fonts/enc/c90/")
             (base32
              "0g4rwimlqqzbbs8ar15nsf8qcr8bbyjacmklbgv4pmsls5ka9n3n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/c90")
    (synopsis "C90 font encoding for Thai")
    (description "This package provides C90 font encoding for Thai.")
    (license license:gpl2+)))

(define-public texlive-calculation
  (package
    (name "texlive-calculation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/calculation/"
                   "source/latex/calculation/"
                   "tex/latex/calculation/")
             (base32
              "15sk3v1cwpjln4rp9k877awxaz9js5gbazlzjknmv5fv1cb4d09c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/calculation")
    (synopsis
     "Typesetting reasoned calculations, also called calculational proofs")
    (description
     "The @code{calculation} environment formats reasoned calculations, also
called calculational proofs.  The package allows steps and expressions to be
numbered (by LaTeX equation numbers, obeying the LaTeX @code{\\label} command
to refer to these numbers), and a step doesn't take vertical space if its hint
is empty.  An expression in a calculation can be given a comment; it is placed
at the side opposite to the equation numbers.  Calculations are allowed inside
hints although numbering and commenting is then disabled.")
    (license license:lppl1.3+)))

(define-public texlive-cartonaugh
  (package
    (name "texlive-cartonaugh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cartonaugh/"
                   "source/latex/cartonaugh/"
                   "tex/latex/cartonaugh/")
             (base32
              "05f6xslfv3d1n48j2ivl7vdgs12lzgzx8ccfv6l49ddgq0dssnir")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cartonaugh")
    (synopsis
     "LuaLaTeX package for drawing karnaugh maps with up to 6 variables")
    (description
     "This package, a fork of @code{karnaugh-map} package, draws karnaugh maps
with 2, 3, 4, 5, and 6 variables.  It also contains commands for filling the
karnaugh map with terms semi-automatically or manually.  Last but not least it
contains commands for drawing implicants on top of the map.")
    (license license:cc-by-sa3.0)))

(define-public texlive-cascade
  (package
    (name "texlive-cascade")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cascade/" "source/latex/cascade/"
                   "tex/latex/cascade/")
             (base32
              "13950pv70hr21jn7f0hg4hyai3b28bwcnrd23l44mhynv4hbs5yz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cascade")
    (synopsis
     "Constructions with braces to present mathematical demonstrations")
    (description
     "The LaTeX package cascade provides a command @code{\\Cascade} to do
constructions to present mathematical demonstrations with successive braces
for the deductions.")
    (license license:lppl1.3+)))

(define-public texlive-catcodes
  (package
    (name "texlive-catcodes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/catcodes/"
                   "source/generic/catcodes/"
                   "tex/generic/catcodes/")
             (base32
              "0di6rd5c0viiwvc6ncwndah38q318l3s1pf47ddmzjdq6rys9s33")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/catcodes")
    (synopsis "Generic handling of TeX category codes")
    (description
     "The bundle deals with category code switching; the packages of the
bundle should work with any TeX format (with the support of the
@code{plainpkg} package).  The bundle provides:
@itemize
@item @file{stacklet.sty}, which supports stacks that control the use of
different catcodes;
@item @file{actcodes.sty}, which deals with active characters;
@item @file{catchdq.sty}, which provides a simple quotation character control
mechanism.
@end itemize")
    (license license:lppl1.3+)))

(define-public texlive-causets
  (package
    (name "texlive-causets")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/causets/" "tex/latex/causets/")
             (base32
              "03n3k1xklf42k8ybvvg0hlakqavcsa2dap8hpj3ln007yr4m22g8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/causets")
    (synopsis "Draw causal set (Hasse) diagrams")
    (description
     "This LaTeX package uses TikZ to generate (Hasse) diagrams for causal sets
(causets) to be used inline with text or in mathematical expressions.  The
macros can also be used in the @code{tikzpicture} environment to annotate or
modify a diagram.")
    (license license:lppl1.3+)))

(define-public texlive-ccfonts
  (package
    (name "texlive-ccfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ccfonts/" "source/latex/ccfonts/"
                   "tex/latex/ccfonts/")
             (base32
              "1r319fv1n9fsnnycza4z1j23dp03fww98a03hmcapkyr9pp9lvv4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/ccfonts")
    (synopsis "Support for Concrete text and math fonts in LaTeX")
    (description
     "This package provides LaTeX font definition files for the Concrete fonts
and a LaTeX package for typesetting documents using Concrete as the default
font family.  The files support OT1, T1, TS1, and Concrete mathematics
including AMS fonts (Ulrik Vieth's @code{concmath}).")
    (license license:lppl)))

(define-public texlive-ccool
  (package
    (name "texlive-ccool")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ccool/" "source/latex/ccool/"
                   "tex/latex/ccool/")
             (base32
              "17xkwd8mrvl751rn6zvxaznac27rpvmi53rq8nwwlp6j1bdnaj94")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ccool")
    (synopsis "Key-value document command parser")
    (description
     "This package provides a key-value interface, @code{\\Ccool}, on top of
@code{xparse}'s document command parser.  Global options control input
processing and its expansion.  By default, they are set to meet likely
requirements, depending on context: the selected language, and which of text
and math mode is active.  These options can be overridden inline.  Polymorphic
commands can be generated by parameterizing the keys (for instance, one
parameter value for style, another for a property).  User input to
@code{\\Ccool} can optionally be serialized.  This can useful for typesetting
documents sharing the same notation.")
    (license license:lppl1.3c)))

(define-public texlive-chemarrow
  (package
    (name "texlive-chemarrow")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/chemarrow/"
                   "fonts/afm/public/chemarrow/"
                   "fonts/map/dvips/chemarrow/"
                   "fonts/source/public/chemarrow/"
                   "fonts/tfm/public/chemarrow/"
                   "fonts/type1/public/chemarrow/"
                   "source/fonts/chemarrow/"
                   "tex/latex/chemarrow/")
             (base32
              "1ky0v2psxamzilmijih88zxanmq2hnpv1yc18mcy9mpymcmvrhwr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/chemarrow")
    (synopsis "Arrows for use in chemistry")
    (description
     "This bundle consists of a font (available as Metafont source, MetaPost
source, and generated type 1 versions), and a package to use it.  The arrows
in the font are designed to look more like those in chemistry text-books than
do Knuth's originals.")
    (license license:public-domain)))

(define-public texlive-chemcompounds
  (package
    (name "texlive-chemcompounds")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemcompounds/"
                   "source/latex/chemcompounds/"
                   "tex/latex/chemcompounds/")
             (base32
              "0bk625vdd6i1dc2569ypcq27hin1yggvadf18463qb6xhyndplvf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemcompounds")
    (synopsis "Simple consecutive numbering of chemical compounds")
    (description
     "The chemcompounds package allows for a simple consecutive numbering of
chemical compounds.  Optionally, it is possible to supply a custom name for
each compound.  The package differs from the @code{chemcono} package by not
generating an odd-looking list of compounds inside the text.")
    (license license:lppl)))

(define-public texlive-chemcono
  (package
    (name "texlive-chemcono")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemcono/" "tex/latex/chemcono/")
             (base32
              "1lwsizrypzn6vnhf7szg47b1synafihihq14wfc0ffrksq1c730c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemcono")
    (synopsis "Support for compound numbers in chemistry documents")
    (description
     "This package provides a LaTeX package for using compound numbers in
chemistry documents.  It works like @code{\\cite} and the
@code{\\thebibliography}, using @code{\\fcite} and @code{\\theffbibliography}
instead.  It allows compound names in documents to be numbered and does not
affect the normal citation routines.")
    (license license:lppl)))

(define-public texlive-chemexec
  (package
    (name "texlive-chemexec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemexec/" "tex/latex/chemexec/")
             (base32
              "1al19xf107qizd7nr7297szqd2k8sf1i3ngpnw6kl6fkak5h7qdg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemexec")
    (synopsis "Creating (chemical) exercise sheets")
    (description
     "The package provides environments and commands that the author needed
when preparing exercise sheets and other teaching material.  In particular,
the package supports the creation of exercise sheets, with separating printing
of solutions.")
    (license license:lppl1.3+)))

(define-public texlive-chemformula
  (package
    (name "texlive-chemformula")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemformula/"
                   "tex/latex/chemformula/")
             (base32
              "14w98hnhljfm62cxg2hml3razrxw9hkzm54v7ybnbhcp5mm7wvdm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-units))
    (home-page "https://ctan.org/pkg/chemformula")
    (synopsis "Command for typesetting chemical formulas and reactions")
    (description
     "The package provides a command to typeset chemical formulas and
reactions in support of other chemistry packages (such as
@code{chemmacros}).")
    (license license:lppl1.3c)))

(define-public texlive-chemgreek
  (package
    (name "texlive-chemgreek")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemgreek/"
                   "tex/latex/chemgreek/")
             (base32
              "0rpcywz5w2im5ck0kp56dywiy1his01s817pngdf9xdn02qk517n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemgreek")
    (synopsis "Upright Greek letters in chemistry")
    (description
     "The package provides upright Greek letters in support of other chemistry
packages (such as @code{chemmacros}).")
    (license license:lppl1.3+)))

(define-public texlive-chemmacros
  (package
    (name "texlive-chemmacros")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemmacros/"
                   "tex/latex/chemmacros/")
             (base32
              "1jj7i00h83mhajwayn48x4qf0xz526jrjlj5zclqkgrb6kxmx978")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemmacros")
    (synopsis "Collection of macros to support typesetting chemistry documents")
    (description
     "The bundle offers a collection of macros and commands which are intended
to make typesetting chemistry documents faster and more convenient.  Coverage
includes some nomenclature commands, oxidation numbers, thermodynamic data,
newman projections, etc.")
    (license license:lppl1.3c)))

(define-public texlive-chemnum
  (package
    (name "texlive-chemnum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemnum/" "tex/latex/chemnum/")
             (base32
              "0ld2ja2by5y48v5k8x1mgmcpr75vkf8r8ni0fmvrpxh8xrv7mq4f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemnum")
    (synopsis "Method for numbering chemical compounds")
    (description
     "The package defines a @code{\\label}- and @code{\\ref}-like commands for
compound numbers.")
    (license license:lppl1.3c)))

(define-public texlive-chemobabel
  (package
    (name "texlive-chemobabel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemobabel/"
                   "source/latex/chemobabel/"
                   "tex/latex/chemobabel/")
             (base32
              "0ky7xcyln4j40b18anld77mxc2i4af75y9xdjisj2ixl3vkg5a1x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemobabel")
    (synopsis "Convert chemical structures from ChemDraw, MDL molfile or SMILES")
    (description
     "This package provides a way to convert and include chemical structure
graphics from various chemical formats, such as ChemDraw files, MDL molfile or
SMILES notations using Open Babel.  To use this LaTeX package, it is necessary
to enable execution of the following external commands via
@samp{latex -shell-escape}: @command{obabel} (Open Babel) @command{inkscape}
or @command{rsvg-convert} (for SVG -> PDF/EPS conversion), @command{pdfcrop}
or @command{ps2eps} (optional; for cropping large margins of PDF/EPS).")
    (license license:bsd-2)))

(define-public texlive-chemplants
  (package
    (name "texlive-chemplants")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemplants/"
                   "tex/latex/chemplants/")
             (base32
              "164g4wy0x7jqf5l7hzb05ir7yz130bw34b7pwr8bp4vcyp4wy3ai")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemplants")
    (synopsis "Symbology to draw chemical plants with TikZ")
    (description
     "This package offers tools to draw simple or barely complex schemes of
chemical processes.  The package defines several standard symbols and styles
to draw process units and streams.  The guiding light of the package is the
UNICHIM regulation.")
    (license license:lppl1.3c)))

(define-public texlive-chemschemex
  (package
    (name "texlive-chemschemex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemschemex/"
                   "source/latex/chemschemex/"
                   "tex/latex/chemschemex/")
             (base32
              "09mjxj1gwddbpkriivn8x98z9hls4pcmpdqf24a7gz19whgs1qyk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemschemex")
    (synopsis "Typeset and cross-reference chemical schemes based on TikZ code")
    (description
     "The package provides a comfortable means of typesetting chemical
schemes, and also offers automatic structure referencing.")
    (license license:lppl1.2+)))

(define-public texlive-chemsec
  (package
    (name "texlive-chemsec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemsec/" "source/latex/chemsec/"
                   "tex/latex/chemsec/")
             (base32
              "1q41mfhnvh4ni7dn0krrrcr9sr6ma855j1hckbg8fl56dl2h7zlp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemsec")
    (synopsis "Automated creation of numeric entity labels")
    (description
     "Packages provides creation of sequential numeric labels for entities in
a document.  The motivating example is chemical structures in a scientific
document.  The package can automatically output a full object name and label
on the first occurence in the document and just labels only on subsequent
references.")
    (license license:lppl1.3+)))

(define-public texlive-chemstyle
  (package
    (name "texlive-chemstyle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chemstyle/"
                   "source/latex/chemstyle/"
                   "tex/latex/chemstyle/")
             (base32
              "1s2k4h153yh0f50q9da390f3ihykvrhsd1zjgfsdb6404059in3p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemstyle")
    (synopsis "Writing chemistry with style")
    (description
     "The package @code{chemstyle} provides an extensible system for
formatting chemistry documents according to the conventions of a number of
leading journals.  It also provides some handy chemistry-related macros.")
    (license license:lppl1.3+)))

(define-public texlive-chhaya
  (package
    (name "texlive-chhaya")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chhaya/" "source/latex/chhaya/"
                   "tex/latex/chhaya/")
             (base32
              "1if47icrsy56sjza170cxcpcczwfh9k8jl7j22gwwam4msa4d1if")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chhaya")
    (synopsis "Linguistic glossing in Marathi language")
    (description
     "This package provides macros for linguistic glossing as per the rules
given by Mumbai University.")
    (license (list license:gpl3+
                   ;; Aalok (आलोक) copyleft license v1.0+.
                   (license:fsf-free "file://doc/latex/aalok/README.txt")
                   license:fdl1.3+))))

(define-public texlive-chronosys
  (package
    (name "texlive-chronosys")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/chronosys/"
                   "tex/generic/chronosys/")
             (base32
              "145ap67ykdkp2f0ahasp9sjccrv1wzxdfl05nq6hbi6z65pk56s5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chronosys")
    (synopsis "Drawing time-line diagrams")
    (description
     "This package provides macros to produce time line diagrams.
Interfaces for Plain TeX, ConTeXt and LaTeX are provided.")
    (license license:lppl1.3+)))

(define-public texlive-churchslavonic
  (package
    (name "texlive-churchslavonic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/churchslavonic/"
                   "tex/latex/churchslavonic/")
             (base32
              "1qyxyp0ckizrryvqyz8cz066g9vvz01ki6b50sm5hk44b6b4v3ri")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-etoolbox
           texlive-fonts-churchslavonic
           texlive-hyphen-complete
           texlive-oberdiek
           texlive-xcolor))
    (home-page "https://ctan.org/pkg/churchslavonic")
    (synopsis "Typeset documents in Church Slavonic language using Unicode")
    (description
     "The package provides fonts, hyphenation patterns, and supporting macros
to typeset Church Slavonic texts.")
    (license license:expat)))

(define-public texlive-cjhebrew
  (package
    (name "texlive-cjhebrew")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cjhebrew/"
                   "fonts/afm/public/cjhebrew/"
                   "fonts/enc/dvips/cjhebrew/"
                   "fonts/map/dvips/cjhebrew/"
                   "fonts/tfm/public/cjhebrew/"
                   "fonts/type1/public/cjhebrew/"
                   "fonts/vf/public/cjhebrew/"
                   "tex/latex/cjhebrew/")
             (base32
              "00rf55ck8y1ny1v242sbhcfchnq7q5mlsmmqppgqspd892ymlxh0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cjhebrew")
    (synopsis "Typeset Hebrew with LaTeX")
    (description
     "The @code{cjhebrew} package provides Adobe Type 1 fonts for Hebrew, and
LaTeX macros to support their use.  Hebrew text can be vocalised, and a few
accents are also available.  The package makes it easy to include Hebrew text
in other-language documents.")
    (license license:lppl)))

(define-public texlive-cjk
  (package
    (name "texlive-cjk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cjk/"
                   "source/latex/cjk/contrib/wadalab/"
                   "source/latex/cjk/texinput/KS/HLaTeX/"
                   "source/latex/cjk/utils/"
                   "tex/latex/cjk/contrib/wadalab/"
                   "tex/latex/cjk/texinput/"
                   "tex/latex/cjk/utils/pyhyphen/")
             (base32
              "044r1mmszq3hjmlck87vmqp62j2z02bm7lda8wb17phs0grkws5z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-arphic
           texlive-cns
           texlive-garuda-c90
           texlive-norasi-c90
           texlive-uhc
           texlive-wadalab))
    (home-page "https://ctan.org/pkg/cjk")
    (synopsis "CJK language support")
    (description
     "CJK is a macro package for LaTeX, providing simultaneous support for
various Asian scripts in many encodings (including Unicode): Chinese (both
traditional and simplified), Japanese, Korean and Thai.  A special add-on
feature is an interface to the Emacs editor (@file{cjk-enc.el}) which gives
simultaneous, easy-to-use support to a bunch of other scripts in addition to
the above -- Cyrillic, Greek, Latin-based scripts, Russian and Vietnamese are
supported.")
    (license license:gpl2)))

(define-public texlive-cjk-gs-integrate
  (package
    (name "texlive-cjk-gs-integrate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cjk-gs-integrate/"
                   "fonts/misc/cjk-gs-integrate/"
                   "scripts/cjk-gs-integrate/"
                   "source/fonts/cjk-gs-integrate/")
             (base32
              "0ml35bs1pr3kbdqnbclyy31ln8yigy609rsm9rc2y3j5ngmw2y8y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "cjk-gs-integrate.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/cjk-gs-integrate")
    (synopsis "Tools to integrate CJK fonts into Ghostscript")
    (description
     "This script searches a list of directories for CJK fonts, and makes them
available to an installed Ghostscript.  In the simplest case, with sufficient
privileges, a run without arguments should result in a complete setup of
Ghostscript.")
    (license license:gpl3)))

(define-public texlive-cjkpunct
  (package
    (name "texlive-cjkpunct")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cjkpunct/"
                   "source/latex/cjkpunct/"
                   "tex/latex/cjkpunct/")
             (base32
              "0l4jnawgcsq7lzsrky7259diswxm06mn9mvgxgw8j0za10kvv4vb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cjkpunct")
    (synopsis "Adjust locations and kerning of CJK punctuation marks")
    (description "The package serves as a companion package for CJK.  It
adjust locations and kerning of CJK punctuation marks.")
    (license license:lppl1.3+)))

(define-public texlive-cjkutils
  (package
    (name "texlive-cjkutils")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/bg5conv.1"
                   "doc/man/man1/bg5conv.man1.pdf"
                   "doc/man/man1/cef5conv.1"
                   "doc/man/man1/cef5conv.man1.pdf"
                   "doc/man/man1/cefconv.1"
                   "doc/man/man1/cefconv.man1.pdf"
                   "doc/man/man1/cefsconv.1"
                   "doc/man/man1/cefsconv.man1.pdf"
                   "doc/man/man1/extconv.1"
                   "doc/man/man1/extconv.man1.pdf"
                   "doc/man/man1/hbf2gf.1"
                   "doc/man/man1/hbf2gf.man1.pdf"
                   "doc/man/man1/sjisconv.1"
                   "doc/man/man1/sjisconv.man1.pdf"
                   "hbf2gf/")
             (base32
              "0by2g05xv5dndnd78jz9y73fyswqhfvcbzcw8rzhvpvd6inrcdq8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cjk")
    (synopsis "CJK language support")
    (description
     "CJK is a macro package for LaTeX, providing simultaneous support for
various Asian scripts in many encodings (including Unicode): Chinese (both
traditional and simplified), Japanese, Korean and Thai.  A special add-on
feature is an interface to the Emacs editor (cjk-enc.el) which gives
simultaneous, easy-to-use support to a bunch of other scripts in addition to
the above --- Cyrillic, Greek, Latin-based scripts, Russian and Vietnamese are
supported.")
    (license license:gpl2)))

(define-public texlive-clrscode
  (package
    (name "texlive-clrscode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/clrscode/" "tex/latex/clrscode/")
             (base32
              "1gl2ap3w7zanbrn1k2bcf3f75lfpakp5dd0w8m1jy46hyvha7jpd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/clrscode")
    (synopsis "Typesets pseudocode as in Introduction to Algorithms")
    (description
     "This package allows you to typeset pseudocode in the style of
@emph{Introduction to Algorithms}, Second edition, by Cormen, Leiserson,
Rivest, and Stein.  The package was written by the authors.  You use the
commands the same way the package's author did when writing the book, and your
output will look just like the pseudocode in the text.")
    (license license:lppl)))

(define-public texlive-clrscode3e
  (package
    (name "texlive-clrscode3e")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/clrscode3e/"
                   "tex/latex/clrscode3e/")
             (base32
              "1kcsrlvqs83fc9ianim3drqvz60xp2cfl6a554icnm39p1fjf80c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/clrscode3e")
    (synopsis "Typesets pseudocode as in @emph{Introduction to Algorithms}")
    (description
     "This package allows you to typeset pseudocode in the style of
@emph{Introduction to Algorithms}, Third edition, by Cormen, Leiserson,
Rivest, and Stein.  The package was written by the authors.  Use the commands
the same way the package's author did when writing the book, and your output
will look just like the pseudocode in the text.")
    (license license:lppl)))

(define-public texlive-codeanatomy
  (package
    (name "texlive-codeanatomy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/codeanatomy/"
                   "source/latex/codeanatomy/"
                   "tex/latex/codeanatomy/")
             (base32
              "1frkyj86kf9b3n08xlwfndiygllymp2lp7ra82zsnx4xzw1ff4as")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/codeanatomy")
    (synopsis "Typeset code with annotations")
    (description
     "The idea of this Package is to typeset illustrations of pieces of code
with annotations on each single part of code (Code Anatomy).  The origin of
this idea are code illustrations from the book @emph{Computer Science: An
Interdisciplinary Approach} from Robert Sedgewick and Kevin Wayne.")
    (license license:lppl1.3c)))

(define-public texlive-codicefiscaleitaliano
  (package
    (name "texlive-codicefiscaleitaliano")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/codicefiscaleitaliano/"
                   "source/latex/codicefiscaleitaliano/"
                   "tex/latex/codicefiscaleitaliano/")
             (base32
              "1ij3vcikhwx1d55z2gsx4yb9fin9dhm8yjwc6apiwg353ipxwibw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/codicefiscaleitaliano")
    (synopsis "Test the consistency of the Italian personal Fiscal Code")
    (description
     "The alphanumeric string that forms the Italian personal Fiscal Code is
prone to be misspelled thus rendering a legal document invalid.  The package
quickly verifies the consistency of the fiscal code string, and can therefore
be useful for lawyers and accountants that use fiscal codes very frequently.")
    (license license:lppl1.3+)))

(define-public texlive-colorsep
  (package
    (name "texlive-colorsep")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/colorsep/")
             (base32
              "0nf72pf2bjn8pcps45sn5dcjf1dkrww9wlpp1xbzl1h9i68p3h3h")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/colorsep")
    (synopsis "Color separation")
    (description
     "This package provides support for colour separation when using Dvips.")
    (license license:public-domain)))

(define-public texlive-commath
  (package
    (name "texlive-commath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/commath/" "tex/latex/commath/")
             (base32
              "0mvlqw78183mp8fdvcmrwxvf4cpqdb2sr6jif16rad0av602lnfr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/commath")
    (synopsis "Mathematics typesetting support")
    (description
     "This package provides a range of differential, partial differential and
delimiter commands, together with a @code{\\fullfunction} (function, with both
domain and range, and function operation) and various reference commands.")
    (license license:lppl)))

(define-public texlive-commutative-diagrams
  (package
    (name "texlive-commutative-diagrams")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/commutative-diagrams/"
                   "tex/context/third/commutative-diagrams/"
                   "tex/generic/commutative-diagrams/"
                   "tex/latex/commutative-diagrams/"
                   "tex/plain/commutative-diagrams/")
             (base32
              "0cj3yx2h5r146rhzd3sla1kx4463qdfyaqdzg8zdyg94ky4k6ixv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/commutative-diagrams")
    (synopsis "CoDi: Commutative Diagrams for TeX")
    (description
     "This package provides a TikZ library for making commutative diagrams
easy to design, parse and tweak.")
    (license license:expat)))

(define-public texlive-compare
  (package
    (name "texlive-compare")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/compare/")
             (base32
              "0isr7gmskv55cr4f1fa7s478v6fh65q9ijxkmbpxj0448g9817w4")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/compare")
    (synopsis "Compare two strings")
    (description
     "The file defines a macro @code{\\compare}, which takes two arguments;
the macro expands to @samp{-1}, @samp{0}, @samp{1}, according as the first
argument is less than, equal to, or greater than the second argument.  Sorting
is alphabetic, using ASCII collating order.")
    (license license:public-domain)))

(define-public texlive-complexity
  (package
    (name "texlive-complexity")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/complexity/"
                   "tex/latex/complexity/")
             (base32
              "0yqv0qp4i6jkjkrsvjzq5r2x282y5maq6w5cbvkspp7d0g4sg0ph")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/complexity")
    (synopsis "Computational complexity class names")
    (description
     "Complexity is a LaTeX package that defines commands to typeset
Computational Complexity Classes such as @samp{$\\P$} and @samp{$\\NP$} (as
well as hundreds of others).  It also offers several options including which
font classes are typeset in and how many are defined (all of them or just the
basic, most commonly used ones).")
    (license license:lppl1.3c)))

(define-public texlive-computational-complexity
  (package
    (name "texlive-computational-complexity")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/computational-complexity/"
                   "doc/latex/computational-complexity/"
                   "source/latex/computational-complexity/"
                   "tex/latex/computational-complexity/")
             (base32
              "12205p6i611vcywsvkq4qnkbgfyyrkxgrqhj93bfdy4n8y2802ir")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/computational-complexity")
    (synopsis "Class for the journal Computational Complexity")
    (description
     "The LaTeX2e class @code{cc} was written for the journal Computational
Complexity, and it can also be used for a lot of other articles.  You may like
it since it contains a lot of features such as more intelligent references,
a set of theorem definitions, an algorithm environment, and more.")
    (license license:lppl1.2+)))

(define-public texlive-concmath
  (package
    (name "texlive-concmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/concmath/"
                   "source/latex/concmath/"
                   "tex/latex/concmath/")
             (base32
              "0lc1bj2yqbyn13bq4fwiqf1hijbj5kwxadifzbg1riscwal3z5vw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/concmath")
    (synopsis "Concrete Math fonts")
    (description
     "This package provides a LaTeX package and font definition files to
access the Concrete mathematics fonts, which were derived from Computer Modern
math fonts using parameters from Concrete Roman text fonts.")
    (license license:lppl)))

(define-public texlive-concrete
  (package
    (name "texlive-concrete")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/concrete/"
                   "fonts/source/public/concrete/"
                   "fonts/tfm/public/concrete/")
             (base32
              "0xras2ybr33xm27vl0ym3lyd954gizgyd6h84ivxg0zjpqpjanb1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/concrete")
    (synopsis "Concrete Roman fonts")
    (description
     "This package provides Concrete Roman fonts, designed by Donald Knuth,
originally for use with Euler mathematics fonts.  Alternative mathematics
fonts, based on the concrete parameter set are available as the
@code{concmath} fonts bundle.  LaTeX support is offered by the @code{beton},
@code{concmath} and @code{ccfonts} packages.  T1- and TS1-encoded versions of
the fonts are available in the @code{ecc} bundle, and Adobe Type 1 versions of
the @code{ecc} fonts are part of the @code{cm-super} bundle.")
    (license license:knuth)))

(define-public texlive-conteq
  (package
    (name "texlive-conteq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/conteq/" "source/latex/conteq/"
                   "tex/latex/conteq/")
             (base32
              "14lj914i1h29pvg7knfn3ym9nsq6qxngbmkks4hircj0082m86pz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/conteq")
    (synopsis "Typeset multiline continued equalities")
    (description
     "The package provides an environment @code{conteq}, which will lay out
systems of continued equalities (or inequalities).  Several variant layouts of
the equalities are provided, and the user may define their own.")
    (license license:lppl1.3+)))

(define-public texlive-convbkmk
  (package
    (name "texlive-convbkmk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/convbkmk/" "scripts/convbkmk/")
             (base32
              "0w4fm4az1smrw002sqjkiiz94x01z6jkrb0mf9wb8qxdwrxriql9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "convbkmk.rb")))
    (inputs (list ruby))
    (home-page "https://ctan.org/pkg/convbkmk")
    (synopsis
     "Correct pLaTeX/upLaTeX bookmarks in PDF created with @code{hyperref}")
    (description
     "The package provides a small Ruby script that corrects bookmarks in PDF
files created by pLaTeX or upLaTeX, using @code{hyperref}.")
    (license license:expat)))

(define-public texlive-correctmathalign
  (package
    (name "texlive-correctmathalign")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/correctmathalign/"
                   "tex/latex/correctmathalign/")
             (base32
              "1zqla0gjv1b3x3z6g6fdb89c66ny7agshfmcsjjg42vlkz17ianm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/correctmathalign")
    (synopsis "Correct spacing of the alignment in expressions")
    (description
     "This package realigns the horizontal spacing of the alignments in some
mathematical environments.")
    (license license:bsd-2)))

(define-public texlive-crossrefenum
  (package
    (name "texlive-crossrefenum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/crossrefenum/"
                   "tex/generic/crossrefenum/")
             (base32
              "07h7d47fxjj70h4bxd5sqz8abjnvgvkrnsy13a26imbarzg14db4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/crossrefenum")
    (synopsis
     "Smart typesetting of enumerated cross-references for various TeX formats")
    (description
     "@code{crossrefenum} lets TeX manage the formatting of bunches of
cross-references for you.  It features:

@itemize
@item automatic collapsing of references;
@item support for references by various criteria, including page and note
number, line number in ConTeXt, and @code{edpage} and @code{edline} when used
in conjunction with @code{reledmac};
@item handling of references combining two criteria (e.g., by page and note
number);
@item extension mechanisms to add support to other types of references without
modifying the internal macros.  Note that sorting is not supported.
@end itemize

It is written in Plain TeX as much as possible in order to make it compatible
with a wide array of formats.  For the moment, it works out of the box with
ConTeXt and LaTeX.")
    (license (list license:gpl3+ license:fdl1.3+))))

(define-public texlive-cryptocode
  (package
    (name "texlive-cryptocode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cryptocode/"
                   "source/latex/cryptocode/"
                   "tex/latex/cryptocode/")
             (base32
              "0i22bdg2mn305vlmpy32yqbsp7kf5ld54vdvjzq49n8v00qxy286")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cryptocode")
    (synopsis
     "Pseudocode, protocols, game-based proofs and black-box reductions in cryptography")
    (description
     "The @code{cryptocode} package provides a set of macros to ease the
typesetting of pseudocode, algorithms and protocols.  In addition it comes
with a wide range of tools to typeset cryptographic papers.  This includes
simple predefined commands for concepts such as a security parameter or
advantage terms but also flexible and powerful environments to layout
game-based proofs or black-box reductions.")
    (license license:lppl1.3+)))

(define-public texlive-csassignments
  (package
    (name "texlive-csassignments")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/csassignments/"
                   "source/latex/csassignments/"
                   "tex/latex/csassignments/")
             (base32
              "1gdrsh0iyg8dz0pnb9ak099qrznp54x37qqwd7kllw8jjzdcaqg1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/csassignments")
    (synopsis "Extend @code{article} class for computer science assignments")
    (description
     "This class wraps the default @code{article} and extends it for
a homogeneous look of hand-in assignments at university (RWTH Aachen
University, Computer Science Department), specifically in the field of
computer science, but easily extensible to other fields.  It provides macros
for structuring exercises, aggregating points, and displaying a grading table,
as well as several macros for easier math mode usage.")
    (license license:expat)))

(define-public texlive-cvss
  (package
    (name "texlive-cvss")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cvss/" "source/latex/cvss/"
                   "tex/latex/cvss/")
             (base32
              "0hs931xcj7jai901nvfvi942x403sda7xslq14bfjls0v74lkhbd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cvss")
    (synopsis "Compute and display CVSS base scores")
    (description
     "The Common Vulnerability Scoring System (CVSS) is an open framework for
communicating the characteristics and severity of software vulnerabilities.
CVSS consists of three metric groups: Base, Temporal, and Environmental.  This
package allows the user to compute CVSS3.1 base scores and use them in
documents, i.e., it only deals with the Base score.  Temporal and
Environmental scores will be part of a future release.")
    (license license:lppl1.3c)))

(define-public texlive-cweb-old
  (package
    (name "texlive-cweb-old")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/plain/cweb-old/")
             (base32
              "0vx235zpflqpnrfa9kqq7wmc1rylg5bw1r26knfzvh3w1swbp4ai")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cweb-old")
    (synopsis "Obsolete files from CWEB")
    (description
     "This package contains parts of CWEB that are no longer useful.")
    (license license:knuth)))

(define-public texlive-dad
  (package
    (name "texlive-dad")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/dad/"
                   "fonts/afm/public/dad/"
                   "fonts/map/dvips/dad/"
                   "fonts/ofm/public/dad/"
                   "fonts/ovf/public/dad/"
                   "fonts/tfm/public/dad/"
                   "fonts/type1/public/dad/"
                   "tex/lualatex/dad/")
             (base32
              "0mkfhdai5m1fwj9x0rkpklvcrp3synfxl67dp6cb0bfz3w8nmis0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dad")
    (synopsis "Simple typesetting system for mixed Arabic/Latin documents")
    (description
     "This package allows simple typesetting in Arabic script, intended for
mixed Arabic/Latin script usage in situations where heavy-duty solutions are
discouraged.  The system operates with both Unicode and transliterated input,
allowing the user to choose the most appropriate approach for every
situation.")
    (license license:lppl)))

(define-public texlive-decision-table
  (package
    (name "texlive-decision-table")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/decision-table/"
                   "source/latex/decision-table/"
                   "tex/latex/decision-table/")
             (base32
              "14cgf142wmi2qlrxaa8dmyr7grb7d33ngfpg8sbrm82a78cvl1yc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/decision-table")
    (synopsis "Create Decision Model and Notation decision tables")
    (description
     "The decision-table package allows for an easy way to generate decision
tables in the Decision Model and Notation (DMN) format.  This package ensures
consistency in the tables (i.e., fontsize), and is thus a better alternative
to inserting tables via images.

The decision-table package adds the @code{\\dmntable} command, with which
tables can be created.  This command expands into a tabular, so it can be used
within a @code{table} or @code{figure} environment.  Furthermore, this allows
labels and captions to be added seamlessly.  It is also possible to place
multiple DMN tables in one table/figure environment.")
    (license license:lppl1.3c)))

(define-public texlive-delim
  (package
    (name "texlive-delim")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/delim/" "source/latex/delim/"
                   "tex/latex/delim/")
             (base32
              "12h0zqn46yrqf079a6k939g3pv843rs417va4g2r39rhb2fvh6r8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/delim")
    (synopsis "Simplify typesetting mathematical delimiters")
    (description
     "The package permits simpler control of delimiters without excessive use
of @code{\\big} commands and the like.")
    (license license:lppl1.2+)))

(define-public texlive-delimseasy
  (package
    (name "texlive-delimseasy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/delimseasy/"
                   "tex/latex/delimseasy/")
             (base32
              "0afgcnwqcbw34wgfryzk1rjw82qakl6nq98gl2w1aw5lkgi4fb9p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/delimseasy")
    (synopsis "Delimiter commands that are easy to use and resize")
    (description
     "This package provides commands to give an easy way to control the size
and blackness of delimiters: append 1-4 @samp{b}s to command for larger sizes;
prepend @samp{B} for for boldface.  These commands reduce the likelihood of
incomplete delimeter pairs and typically use fewer characters than the LaTeX
default.")
    (license license:lppl1.3+)))

(define-public texlive-delimset
  (package
    (name "texlive-delimset")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/delimset/"
                   "source/latex/delimset/"
                   "tex/latex/delimset/")
             (base32
              "0vkfk09g7vys4dfa01dxhznczdjklmj90lsw25glbcl1hxr1c1fn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/delimset")
    (synopsis
     "Typeset and declare sets of delimiters with convenient size control")
    (description
     "@code{delimset} is a LaTeX2e package to typeset and declare sets of
delimiters in math mode whose size can be adjusted conveniently.")
    (license license:lppl1.3+)))

(define-public texlive-derivative
  (package
    (name "texlive-derivative")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/derivative/"
                   "tex/latex/derivative/")
             (base32
              "1klskr46gr0r7wraygi8m0g49ils7lgqlcwg799zpnnip8jhr738")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/derivative")
    (synopsis "Nice and easy derivatives")
    (description
     "Typesetting derivatives and differentials in a consistent way are clumsy
and require care to ensure the preferred formatting.  Several packages have
been developed for this purpose, each with its own features and drawbacks,
with the most ambitious one being @code{diffcoeff}.  While this package is
comparable to diffcoeff in terms of features, it takes a different approach.
One difference is this package provides more options to tweak the format of
the derivatives and differentials.  However, the automatic calculation of the
total order isn't as developed as the one in @code{diffcoeff}.  This package
makes it easy to write derivatives and differentials consistently with its
predefined commands.  It also provides a set of commands that can define
custom derivatives and differential operators.  The options follow
a consistent naming scheme making them easy to use and understand.")
    (license license:lppl1.3+)))

(define-public texlive-diagbox
  (package
    (name "texlive-diagbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/diagbox/" "source/latex/diagbox/"
                   "tex/latex/diagbox/")
             (base32
              "0zr7ih8jr56j727gf3l1q87rlrqn3zfz8cm7hs2q5l1f3y1gmcgh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/diagbox")
    (synopsis "Table heads with diagonal lines")
    (description
     "The package's principal command, @code{\\diagbox}, takes two
arguments (texts for the slash-separated parts of the box), and an optional
argument with which the direction the slash will go, the box dimensions, etc.,
may be controlled.  The package also provides @code{\\slashbox} and
@code{\\backslashbox} commands for compatibility with the now removed slashbox
package, which it supersedes.")
    (license license:lppl1.3+)))

(define-public texlive-diffcoeff
  (package
    (name "texlive-diffcoeff")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/diffcoeff/"
                   "tex/latex/diffcoeff/")
             (base32
              "1n495bkhqixl77w84fyh1qnc18a9cpnwhpkxijwhdjrczcvxyckw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/diffcoeff")
    (synopsis "Write differential coefficients easily and consistently")
    (description
     "This package allows the easy and consistent writing of ordinary, partial
and other derivatives of arbitrary (algebraic or numeric) order.  For mixed
partial derivatives, the total order of differentiation is calculated by the
package.  Optional arguments allow specification of points of
evaluation (ordinary derivatives), or variables held constant (partial
derivatives), and the placement of the differentiand (numerator or appended).
The package is built on xtemplate and the configurability it enables,
extending to differentials (including simple line elements) and jacobians.")
    (license license:lppl1.3c)))

(define-public texlive-digiconfigs
  (package
    (name "texlive-digiconfigs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/digiconfigs/"
                   "tex/latex/digiconfigs/")
             (base32
              "13682as94lpy3qws03ymgz380fkkihwppzdwijig85j1yq098wqg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/digiconfigs")
    (synopsis "Writing ``configurations''")
    (description
     "In Stochastic Geometry and Digital Image Analysis some problems can be
solved in terms of so-called ``configurations''.  A configuration is basically
a square matrix of @code{\\circ} and @code{\\bullet} symbols.  This package
provides a convenient and compact mechanism for displaying these
configurations.")
    (license license:lppl)))

(define-public texlive-dijkstra
  (package
    (name "texlive-dijkstra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dijkstra/" "tex/latex/dijkstra/")
             (base32
              "1xjq51x4g1xngp8npicgnpmbkzk0rnj992pmhizjv0j92zmaikqm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dijkstra")
    (synopsis "Dijkstra algorithm for LaTeX")
    (description
     "This small package uses the Dijkstra algorithm for weighted
graphs,directed or not: the search table of the shortest path can be
displayed, the minimum distance between two vertices and the corresponding
path are stored in macros.")
    (license license:lppl1.3c)))

(define-public texlive-dinat
  (package
    (name "texlive-dinat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/dinat/" "doc/bibtex/dinat/")
             (base32
              "05ab7aq8h08a8pcl3si2lki569sf201bygf3ra95dpqhs1ijxaag")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dinat")
    (synopsis "Bibliography style for German texts")
    (description
     "This package provides bibliography style files intended for texts in
german.  They draw up bibliographies in accordance with the german DIN 1505,
parts 2 and 3.")
    (license license:public-domain)))

(define-public texlive-dirtree
  (package
    (name "texlive-dirtree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/dirtree/"
                   "source/generic/dirtree/"
                   "tex/generic/dirtree/")
             (base32
              "1righlip75ry0yc6kbpijq423k4m625byzgb55d32s7c0imvj41v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dirtree")
    (synopsis "Display trees in the style of Windows Explorer")
    (description
     "This package is designed to emulate the way Windows Explorer displays
directory and file trees, with the root at top left, and each level of subtree
displaying one step in to the right.  The macros work equally well with Plain
TeX and with LaTeX.")
    (license license:lppl)))

(define-public texlive-disser
  (package
    (name "texlive-disser")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/disser/" "makeindex/disser/"
                   "source/latex/disser/" "tex/latex/disser/")
             (base32
              "0sxvj4cka9xqzl2s3c465fm19lc1b8hyar1chjb51y42q4mx2bmg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/disser")
    (synopsis "Class and templates for typesetting dissertations in Russian")
    (description
     "Disser comprises a document class and set of templates for typesetting
dissertations in Russian.  One of its primary advantages is a simplicity of
format specification for titlepage, headers and elements of automatically
generated lists (table of contents, list of figures, etc).  Bibliography
styles, that conform to the requirements of the Russian standard GOST
R 7.0.11-2011, are provided.")
    (license license:lppl1.3+)))

(define-public texlive-dnp
  (package
    (name "texlive-dnp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/sfd/dnp/")
             (base32
              "0jlvb0nps1ij4sgbg3clgbk34p80la1fhh9zihn9fhl9nrqk637r")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dnp")
    (synopsis "Subfont numbers for DNP font encoding")
    (description "This package provides subfont numbers for DNP font encoding.")
    ;; This is part of the CJK package, use the same GPL license.
    (license license:gpl2)))

(define-public texlive-docbytex
  (package
    (name "texlive-docbytex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/docbytex/"
                   "tex/generic/docbytex/")
             (base32
              "09x4xpyq89jjjsp4yzrifcazz0p2f5w7785g8pvss8v0wwsb0lav")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/docbytex")
    (synopsis "Creating documentation from source code")
    (description
     "The package creates documentation from C source code, or other
programming languages.")
    ;; README states: "You can do anything with the files from DocBy.TeX
    ;; package without any limit".
    (license (license:fsf-free "file://doc/generic/docbytex/README"))))

(define-public texlive-dosepsbin
  (package
    (name "texlive-dosepsbin")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dosepsbin.1"
                   "doc/man/man1/dosepsbin.man1.pdf"
                   "doc/support/dosepsbin/"
                   "scripts/dosepsbin/"
                   "source/support/dosepsbin/")
             (base32
              "117crwcdpirvvm9srrzjn40marg00q16rzyqipm3xxbmwv52i93c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "dosepsbin.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/dosepsbin")
    (synopsis "Deal with DOS binary EPS files")
    (description
     "This package provides a Encapsulated PostScript (EPS) file may given in
a special binary format to support the inclusion of a thumbnail.  This file
format, commonly known as DOS EPS format, starts with a binary header that
contains the positions of the possible sections: PostScript (PS); Windows
Metafile Format (WMF); and Tag Image File Format (TIFF).  The PS section must
be present and either the WMF file or the TIFF file should be given.  The
package provides a Perl program that will extract any of the sections of such
a file, in particular providing a text'-form EPS file for use with (La)TeX.")
    (license license:artistic2.0)))

(define-public texlive-dowith
  (package
    (name "texlive-dowith")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/dowith/"
                   "source/generic/dowith/"
                   "tex/generic/dowith/")
             (base32
              "1qlrcjac1qszgrap5v4g0d27g9k5ajqgyy493hmc9yh5wa9wmkmp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dowith")
    (synopsis "Apply a command to a list of items")
    (description
     "The package provides macros for applying a command to all elements of
a list without separators, and also for extending and reducing macros storing
such lists.  Applications in mind belonged to LaTeX, but the package should
work with other formats as well.")
    (license license:lppl1.3+)))

(define-public texlive-drawmatrix
  (package
    (name "texlive-drawmatrix")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/drawmatrix/"
                   "source/latex/drawmatrix/"
                   "tex/latex/drawmatrix/")
             (base32
              "14y9xah06ya8krg7ckmhbmxs113g1vw0x2ryldapww7qi08i78yx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/drawmatrix")
    (synopsis "Draw visual representations of matrices in LaTeX")
    (description
     "The package provides macros to visually represent matrices.  Various
options allow to change the visualizations, e.g., drawing rectangular,
triangular, or banded matrices.")
    (license license:expat)))

(define-public texlive-drawstack
  (package
    (name "texlive-drawstack")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/drawstack/"
                   "tex/latex/drawstack/")
             (base32
              "1qv2j7crg4b1ggxvmjb6zf0cxmr4mmpk382l7w3dqhywf9lr722v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/drawstack")
    (synopsis "Draw execution stacks")
    (description
     "This simple LaTeX package provides support for drawing execution stack
(typically to illustrate assembly language notions).  The code is written on
top of TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-droit-fr
  (package
    (name "texlive-droit-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/droit-fr/" "tex/latex/droit-fr/")
             (base32
              "0lx4k3w7mzldhwykpfvhv05v7fhd1jibra80kz0zf9s0jga8sq4a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/droit-fr")
    (synopsis "Document class and bibliographic style for French law")
    (description
     "The bundle provides a toolkit intended for students writing a thesis in
French law.  It features a LaTeX document class, a bibliographic style for
BibLaTeX package, a practical example of french thesis document, and
documentation.  The class assumes use of Biber and BibLaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-dsptricks
  (package
    (name "texlive-dsptricks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dsptricks/"
                   "tex/latex/dsptricks/")
             (base32
              "03ykpbvmb95n6j5071c5hrja4x6x3cpdnmppj9gjjjh63ddv40m6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dsptricks")
    (synopsis "Macros for Digital Signal Processing (DSP) plots")
    (description
     "The package provides a set of @code{LaTeX} macros (based on PSTricks)
for plotting the kind of graphs and figures that are usually employed in
digital signal processing publications.  DSPTricks provides facilities for
standard discrete-time lollipop plots, continuous-time and frequency plots,
and pole-zero plots.  The companion package
DSPFunctions (@file{dspfunctions.sty}) provides macros for computing frequency
responses and DFTs, while the package DSPBlocks (@file{dspblocks.sty})
supports DSP block diagrams.")
    (license license:lppl)))

(define-public texlive-dyntree
  (package
    (name "texlive-dyntree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dyntree/" "source/latex/dyntree/"
                   "tex/latex/dyntree/")
             (base32
              "05cjw3mk1l1syl5xjg3bjq0j79qpif9w3sgyvjr0i92xwjnqnns4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dyntree")
    (synopsis "Construct Dynkin tree diagrams")
    (description
     "The package is intended for users needing to typeset a Dynkin Tree
Diagram---a group theoretical construct consisting of cartan coefficients in
boxes connected by a series of lines.  Such a diagram is a tool for working
out the states and their weights in terms of the fundamental weights and the
simple roots.")
    ;; Package mentions LGPL without any reference to the version.  Assuming
    ;; LGPL 2.1+.
    (license license:lgpl2.1+)))

(define-public texlive-e-french
  (package
    (name "texlive-e-french")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/e-french/"
                   "makeindex/e-french/"
                   "tex/generic/e-french/")
             (base32
              "14qxxfjlxygprs1ndhnn9mhz9hkb4j2dqikni5cvva457bivm4l9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/e-french")
    (synopsis "Comprehensive LaTeX support for French-language typesetting")
    (description
     "E-french is a distribution that keeps alive the work of Bernard
Gaulle (now deceased), under a free licence.  It replaces the old full
@code{frenchpro} (the professional distribution) and the light-weight
@code{frenchle} packages.")
    (license license:lppl1.3+)))

(define-public texlive-easing
  (package
    (name "texlive-easing")
    (version (number->string %texlive-revision))
    (source (texlive-origin name version
                            (list "doc/latex/easing/" "source/latex/easing/"
                                  "tex/latex/easing/")
                            (base32
                             "1j6y1i6cz7pcgrd6pisk6f11r30lrr4cnbhhdshl48wp97byjnw4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/easing")
    (synopsis "Easing functions for @code{pgfmath}")
    (description
     "This library implements a collection of easing functions and adds them
to the PGF mathematical engine.")
    (license license:lppl1.3+)))

(define-public texlive-econometrics
  (package
    (name "texlive-econometrics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/econometrics/"
                   "tex/latex/econometrics/")
             (base32
              "09sjgdsa93pfz7iha335z4xdh80939iqrwr3jxdmdxjyracz61vs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/econometrics")
    (synopsis
     "Simplified mathematic notation in economic and econometric writing")
    (description
     "Econometrics is a package that defines some commands that simplify
mathematic notation in economic and econometrics writing.  The commands are
related to the notation of vectors, matrices, sets, calligraphic and roman
letters statistical distributions constants and symbols matrix operators and
statistical operators.")
    (license license:lppl1.3+)))

(define-public texlive-edmac
  (package
    (name "texlive-edmac")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/edmac/" "source/latex/edmac/"
                   "tex/generic/edmac/")
             (base32
              "1pflqzrzfyw725ypc6lcryzzbizk13j69h4875r6q4fs763kv3w1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/edmac")
    (synopsis "Typeset critical editions")
    (description
     "This is the type example package for typesetting scholarly critical
editions.")
    (license license:gpl2)))

(define-public texlive-eltex
  (package
    (name "texlive-eltex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eltex/" "tex/latex/eltex/")
             (base32
              "1p6wy61n5q93mp07kv7bkp5nnsshshs6wrrhixicn0vankcgnm7w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eltex")
    (synopsis "Simple circuit diagrams in LaTeX picture mode")
    (description
     "The macros enable the user to draw simple circuit diagrams in the
picture environment, with no need of special resources.  The macros are
appropriate for drawing for school materials.  The circuit symbols accord to
the various parts of the standard IEC 617.")
    (license license:lppl)))

(define-public texlive-emf
  (package
    (name "texlive-emf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/emf/" "tex/latex/emf/")
             (base32
              "1w1wrvb2agq8vw2n8qg0mj3as09nygaxvjj6ji90qd865fj7lwzl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/emf")
    (synopsis "Support for the EMF symbol")
    (description
     "This package provides LaTeX support for the symbol for the EMF in
electric circuits and electrodynamics.  It provides support for multiple
symbols but does not provide any fonts.  The fonts themselves must be acquired
otherwise.")
    (license license:gpl3)))

(define-public texlive-endiagram
  (package
    (name "texlive-endiagram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/endiagram/"
                   "tex/latex/endiagram/")
             (base32
              "07vm7ka7651mp5kk7m4ipk6agh4afmnq5ns1mjxvssb2wxfli3f0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/endiagram")
    (synopsis "Easy creation of potential energy curve diagrams")
    (description
     "The package provides the facility of drawing potential energy curve
diagrams with just a few simple commands.")
    (license license:lppl1.3+)))

(define-public texlive-engtlc
  (package
    (name "texlive-engtlc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/engtlc/" "tex/latex/engtlc/")
             (base32
              "1xl0x6yanf2933p4ajlwzlrxjrn36kkdy6bm7cy10s1nys3y3pqk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/engtlc")
    (synopsis "Support for users in telecommunications engineering")
    (description
     "The package provides a wide range of abbreviations for terms used in
telecommunications engineering.")
    (license license:lppl1.3+)))

(define-public texlive-iexec
  (package
    (name "texlive-iexec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/iexec/" "source/latex/iexec/"
                   "tex/latex/iexec/")
             (base32
              "0sk1h5m62lbrlv0p8ihxl15n6dx0dih1bbxl5w8iwznjd3999w0c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-tools texlive-xkeyval))
    (home-page "https://ctan.org/pkg/iexec")
    (synopsis "Execute shell commands and input their output")
    (description
     "With the help of the @code{\\iexec} command, you can execute a shell
command and then input its output into your document.  This package also lets
you use any special symbols inside your command.")
    (license license:expat)))

(define-public texlive-eolang
  (package
    (name "texlive-eolang")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eolang/" "source/latex/eolang/"
                   "tex/latex/eolang/")
             (base32
              "1df7hw4dijisx2r9vzar7xpr97cdhbiyrbawzj8vka9gwwn14kqw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-amsfonts
           texlive-amsmath
           texlive-fancyvrb
           texlive-iexec
           texlive-pgf
           texlive-pgfopts
           texlive-stmaryrd))
    (home-page "https://ctan.org/pkg/eolang")
    (synopsis "Formulas and graphs for the EO programming language")
    (description
     "This LaTeX package helps you write φ-calculus formulas and
@url{https://github.com/objectionary/sodg, SODG} graphs for the
@url{https://www.eolang.org, EO} programming language.")
    (license license:expat)))

(define-public texlive-eplain
  (package
    (name "texlive-eplain")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/eplain/"
                   "doc/info/eplain.info"
                   "doc/man/man1/eplain.1"
                   "doc/man/man1/eplain.man1.pdf"
                   "source/eplain/"
                   "tex/eplain/")
             (base32
              "00nmqhfckrf8ygw6i93d5xnf85i8a88ryadb5ml73w4rllwjxr72")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "eplain")))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-complete
           texlive-knuth-lib
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-pdftex
           texlive-plain
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/eplain")
    (synopsis "Extended plain TeX macros")
    (description
     "This package provides an extended version of the plain TeX format,
adding support for bibliographies, tables of contents, enumerated lists,
verbatim input of files, numbered equations, tables, two-column output,
footnotes, hyperlinks in PDF output and commutative diagrams.  Eplain can also
load some of the more useful LaTeX packages, notably @code{graphics},
@code{graphicx} (an extended version of graphics), @code{color},
@code{autopict} (a package instance of the LaTeX picture code), @code{psfrag},
and @code{url}.")
    (license license:gpl2+)))

(define-public texlive-epslatex-fr
  (package
    (name "texlive-epslatex-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/epslatex-fr/")
             (base32
              "1xs9977g9g3i6sipkf7i9jdl8sdm69ci3161a4p7k66qbizi7zvb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fepslatex")
    (synopsis "French version of @emph{Graphics in LaTeX}")
    (description
     "This is the French translation of @code{epslatex}, and describes how to
use imported graphics in LaTeX(2e) documents.")
    (license license:gpl3+)))

(define-public texlive-eqexpl
  (package
    (name "texlive-eqexpl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eqexpl/" "tex/latex/eqexpl/")
             (base32
              "0crbq63m7ra20a1s1yka2v24spfvi86ls1v8asswdrf83zkdpibi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eqexpl")
    (synopsis "Align explanations for formulas")
    (description
     "This package tries to create perfectly formatted explanation of
components of a formula.")
    (license license:cc-by-sa4.0)))

(define-public texlive-eqnarray
  (package
    (name "texlive-eqnarray")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eqnarray/"
                   "source/latex/eqnarray/"
                   "tex/latex/eqnarray/")
             (base32
              "0w01rh4a1yglfm9fqkhry1d6bs47caj0dsna9j648z0pxvdf1v38")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eqnarray")
    (synopsis "More generalised equation arrays with numbering")
    (description
     "This package defines an @code{equationarray} environment, that allows
more than three columns, but otherwise behaves like LaTeX's @code{eqnarray}
environment.  This environment is similar, in some ways, to the @code{align}
environment of @code{amsmath}.")
    (license license:gpl3)))

(define-public texlive-eqnnumwarn
  (package
    (name "texlive-eqnnumwarn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eqnnumwarn/"
                   "tex/latex/eqnnumwarn/")
             (base32
              "06z6rb0q5qln5knamwxljzw5h373r2xh159ml9akw4kb2cdk3bri")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eqnnumwarn")
    (synopsis "Warn for a displaced equation number")
    (description
     "Sometimes an equation is too long that an equation number will be
typeset below the equation itself, but yet not long enough to yield an
@samp{overfull \\hbox} warning.  The @code{eqnnumwarn} package modifies the
standard @code{amsmath} numbered equation environments to throw a warning
whenever this occurs.")
    (license license:lppl1.3+)))

(define-public texlive-euclideangeometry
  (package
    (name "texlive-euclideangeometry")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/euclideangeometry/"
                   "source/latex/euclideangeometry/"
                   "tex/latex/euclideangeometry/")
             (base32
              "02qpa8xvbpk253k3hr3rb49zdyfyj6m1i0bcc3cr9f9mnjxxhb3c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/euclideangeometry")
    (synopsis "Draw geometrical constructions")
    (description
     "This package provides tools to draw most of the geometrical
constructions that a high school instructor or bachelor degree professor might
need to teach geometry.  The connection to Euclide depends on the fact that in
his times calculations were made with ruler, compass and also with
ellipsograph.  This package extends the functionalities of the @code{curve2e}
package.")
    (license license:lppl1.3c)))

(define-public texlive-evangelion-jfm
  (package
    (name "texlive-evangelion-jfm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/evangelion-jfm/"
                   "tex/luatex/evangelion-jfm/")
             (base32
              "1wr55p96v9x58l0bqcnrbs1q47pf5v0rj8pmclfv0jx9mzc3d5j7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/evangelion-jfm")
    (synopsis "Japanese font metric supporting many advanced features")
    (description
     "This package provides a Japanese font metric supporting vertical and
horizontal typesetting, linegap punctuations, extended fonts, and more
interesting and helpful features using traditional and simplified Chinese or
Japanese fonts under LuaTeX-ja.  It also makes full use of the priority
feature, meeting the standards, and allows easy customisation.")
    (license license:expat)))

(define-public texlive-expose-expl3-dunkerque-2019
  (package
    (name "texlive-expose-expl3-dunkerque-2019")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/expose-expl3-dunkerque-2019/")
             (base32
              "0xij1ycxnc3hfzkl0bfs03s0zzzv6xsj3myvykb6n836j1g66g2y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/expose-expl3-dunkerque-2019")
    (synopsis "Using @code{expl3} to implement some numerical algorithms")
    (description
     "This is an article, in French, based on a presentation made in Dunkerque
for the @emph{Stage LaTeX} on 12 June 2019.  The article gives three examples
of code in @code{expl3} with (lots of) comments: Knuth's algorithm to create
a list of primes, the sieve of Eratosthenes, Kaprekar sequences.  The package
contains the code itself, the documentation as a PDF file, and all the files
needed to produce it.")
    (license license:lppl1.3+)))

(define-public texlive-extarrows
  (package
    (name "texlive-extarrows")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/extarrows/"
                   "tex/latex/extarrows/")
             (base32
              "0fspc9vgz1vwi5lamv30czh6pp1vqsrk6f2ynqygq166rfxxm1gz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/extarrows")
    (synopsis "Extra arrows beyond those provided in @code{amsmath}")
    (description
     "This package provides arrows to supplement @code{\\xleftarrow} and
@code{\\xrightarrow} of the @code{amsath} package.")
    ;; Package mentions LGPL without any reference to the version.  Assuming
    ;; LGPL 2.1+.
    (license license:lgpl2.1+)))

(define-public texlive-extpfeil
  (package
    (name "texlive-extpfeil")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/extpfeil/"
                   "source/latex/extpfeil/"
                   "tex/latex/extpfeil/")
             (base32
              "11vri2kij4y3da2v1gsps66jf4r529w4nqbgbfajrxh2nhfb60iv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/extpfeil")
    (synopsis "Extensible arrows in mathematics")
    (description
     "The package provides some more extensible arrows (usable in the same way
as @code{\\xleftarrow} from @code{amsmath}), and a simple command to create
new ones.")
    (license license:lppl1.3+)))

(define-public texlive-facture
  (package
    (name "texlive-facture")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/facture/"
                   "source/xelatex/facture/"
                   "tex/xelatex/facture/")
             (base32
              "1f7w697g12wx1kc7j84yyvxarkwlvmxr10nxcg93dnqz7lpfwvng")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/facture")
    (synopsis "Generate an invoice")
    (description
     "This package provides a simple class that allows production of an invoice,
with or without VAT; different addresses for delivery and for billing are
permitted.")
    (license license:cc-by-sa2.0)))

(define-public texlive-faktor
  (package
    (name "texlive-faktor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/faktor/" "source/latex/faktor/"
                   "tex/latex/faktor/")
             (base32
              "1sridf0sn775n9ivrbfxz2fgrcm0wl7ajbhr4509ck0pq2n5hq17")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/faktor")
    (synopsis "Typeset quotient structures with LaTeX")
    (description
     "The package provides the means to typeset factor structures, as are used
in many areas of algebraic notation.  The structure is similar to the A/B that
is provided by the @code{nicefrac} package (part of the @code{units}
distribution), and by the @code{xfrac} package; the most obvious difference is
that the numerator and denominator's sizes do not change in the
@code{\\faktor} command.")
    (license license:lppl)))

(define-public texlive-fascicules
  (package
    (name "texlive-fascicules")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fascicules/"
                   "source/latex/fascicules/"
                   "tex/latex/fascicules/")
             (base32
              "0hsap900psylamhn3my7gsn7n06glqczcff0yw53zs9gjwyh4s13")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fascicules")
    (synopsis "Create mathematical manuals for schools")
    (description
     "This package enables LaTeX users to create math books for middle and
high schools.  It provides commands to create the front page of the manual and
the chapters.  Each chapter can consist of three sections: the lesson, the
exercises and the activities.")
    (license license:lppl)))

(define-public texlive-fduthesis
  (package
    (name "texlive-fduthesis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fduthesis/"
                   "source/latex/fduthesis/"
                   "tex/latex/fduthesis/")
             (base32
              "1imgp79fa048nyvyjzfky1fzzmak4h4j7xa4168ak07qgr5gdq87")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fduthesis")
    (synopsis "LaTeX thesis template for Fudan University")
    (description
     "This package is a LaTeX thesis template package for Fudan University.
It can make it easy to write theses both in Chinese and English.")
    (license license:lppl1.3c)))

(define-public texlive-filecontentsdef
  (package
    (name "texlive-filecontentsdef")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/filecontentsdef/"
                   "source/latex/filecontentsdef/"
                   "tex/latex/filecontentsdef/")
             (base32
              "0pmjvxjsfnyzx3bl10n8is7l27l11mrw22g3w41f72kric0vfd65")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/filecontentsdef")
    (synopsis "filecontents, macro, and verbatim")
    (description
     "The package provides two environments called @code{filecontentsdef} and
@code{filecontentshere}.  They are derived from the LaTeX @code{filecontents}
environment.  In addition to the file creation they either store
the (verbatim) contents in a macro (@code{filecontentsdef}) or typeset
them (verbatim) on the spot (@code{filecontentshere}).  The author developed
the package to display TeX code verbatim in documentation and the same time
produce the corresponding files during the LaTeX run in order to embed them in
the PDF as file attachment annotations (by using Scott Pakin's package
@code{attachfile}).")
    (license license:lppl1.3+)))

(define-public texlive-fixdif
  (package
    (name "texlive-fixdif")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fixdif/" "source/latex/fixdif/"
                   "tex/latex/fixdif/")
             (base32
              "0y4x7vq4vslmiqdzx3d14yyaszs0y9y9sapnkiya3f4065rj8mcf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fixdif")
    (synopsis "Macros for typesetting differential operators")
    (description
     "This package redefines the @code{\\d} command in LaTeX and provides an
interface to define new commands for differential operators.  It is compatible
with pdfTeX, XeTeX and LuaTeX, and can also be used with the
@code{unicode-math} package.")
    (license license:lppl1.3c)))

(define-public texlive-fixjfm
  (package
    (name "texlive-fixjfm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/fixjfm/" "tex/generic/fixjfm/")
             (base32
              "0x3wf7v03jqczvxaslqw422bvccvna31jl5sgld6llvfh7b0ziyx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fixjfm")
    (synopsis "Fix JFM (for *pTeX)")
    (description
     "This package fixes several bugs in the JFM format.  Both LaTeX and plain
TeX are supported.")
    (license license:knuth)))

(define-public texlive-fixltxhyph
  (package
    (name "texlive-fixltxhyph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fixltxhyph/"
                   "source/latex/fixltxhyph/"
                   "tex/latex/fixltxhyph/")
             (base32
              "1wjrq2gplal5hpij758c4mk6s6aidqp2h25mvf7jmbbzq2nfsyq1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fixltxhyph")
    (synopsis "Allow hyphenation of partially-emphasised substrings")
    (description
     "The package fixes the problem of TeX failing to hyphenate letter strings
that seem (to TeX} to be words, but which are followed by an apostrophe and
then an emphasis command.  The cause of the problem is not the apostrophe, but
the font change in the middle of the string.  The problem arises in Catalan,
French, Italian and Romansh.")
    (license license:lppl1.3+)))

(define-public texlive-fixmath
  (package
    (name "texlive-fixmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fixmath/" "source/latex/fixmath/"
                   "tex/latex/fixmath/")
             (base32
              "15vwikvxxd8wagbfxjb1am3savciyppkq0bdk3zdxp09zg0dx2ra")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fixmath")
    (synopsis "Make maths comply with ISO 31-0:1992 to ISO 31-13:1992")
    (description
     "LaTeX's default style of typesetting mathematics does not comply with
the International Standards ISO 31-0:1992 to ISO 31-13:1992 which require that
uppercase Greek letters always be typset upright, as opposed to italic (even
though they usually represent variables) and allow for typsetting of variables
in a boldface italic style (even though the required fonts are available).
This package ensures that uppercase Greek be typeset in italic style, that
upright @samp{$\\Delta$} and @samp{$\\Omega$} symbols are available through
the commands @code{\\upDelta} and @code{\\upOmega}; and provides a new math
alphabet @code{\\mathbold} for boldface italic letters, including Greek.")
    (license license:lppl1.3c)))

(define-public texlive-fnspe
  (package
    (name "texlive-fnspe")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fnspe/" "tex/latex/fnspe/")
             (base32
              "1wvr0jp8qyrrx907diphgjzvgq0alc922bmx905sndnwqzfl8fhd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fnspe")
    (synopsis "Macros for supporting mainly students of FNSPE CTU in Prague")
    (description
     "This package is primary intended for students of FNSPE CTU in Prague but
many other students or scientists can found this package as useful.  This
package implements different standards of tensor notation, interval notation
and complex notation.  Further many macros and shortcuts are added, e.g., for
spaces, operators, physics unit, etc.")
    (license license:lppl)))

(define-public texlive-formal-grammar
  (package
    (name "texlive-formal-grammar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/formal-grammar/"
                   "source/latex/formal-grammar/"
                   "tex/latex/formal-grammar/")
             (base32
              "00vr0gdz6jikdycsbfn7n8ddb8391h9fl314vjf8yxz25rn75qz4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/formal-grammar")
    (synopsis "Typeset formal grammars")
    (description
     "This package provides a new environment and associated commands to
typeset BNF grammars.  It allows to easily write formal grammars.  Its
original motivation was to typeset grammars for beamer presentations,
therefore, there are macros to emphasize or downplay some parts of the
grammar (which is the main novelty compared to other BNF packages).")
    (license license:lppl1.3+)))

(define-public texlive-formation-latex-ul
  (package
    (name "texlive-formation-latex-ul")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/formation-latex-ul/"
                   "source/latex/formation-latex-ul/")
             (base32
              "1cvicnjx5ayyj66f18pglz55bajxpqnkgygw3vmvca5ixg8aiwxm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/formation-latex-ul")
    (synopsis "Introductory LaTeX course in French")
    (description
     "This package contains the supporting documentation, slides, exercise files,
and templates for an introductory LaTeX course (in French) prepared for
Universite Laval, Quebec, Canada.")
    (license license:cc-by4.0)))

(define-public texlive-fouridx
  (package
    (name "texlive-fouridx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fouridx/" "source/latex/fouridx/"
                   "tex/latex/fouridx/")
             (base32
              "0mlinh47gcazi3icyvkixhdkwd1wkpffq8snabhh4bjsvh6m8sxz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fouridx")
    (synopsis "Left sub- and superscripts in maths mode")
    (description
     "The package enables left subscripts and superscripts in maths mode.  The
sub- and superscripts are raised for optimum fitting to the symbol indexed, in
such a way that left and right sub- and superscripts are set on the same
level, as appropriate.  The package provides an alternative to the use of the
@code{\\sideset} command in the @code{amsmath} package.")
    (license license:lppl)))

(define-public texlive-frenchmath
  (package
    (name "texlive-frenchmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/frenchmath/"
                   "source/latex/frenchmath/"
                   "tex/latex/frenchmath/")
             (base32
              "0f6x5glpvjxvl5l8nvrjcbc6mfqpyv77y4qyxaaqxcwyhbkp5fw7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/frenchmath")
    (synopsis "Typesetting mathematics according to French rules")
    (description
     "The package provides:

@itemize
@item capital letters in roman (upright shape) in mathematical mode according
to French rule (can be optionally disabled),
@item optionally lowercase Greek letters in upright shape,
@item correct spacing in math mode after commas, before a semicolon and around
square brackets,
@item some useful macros and aliases for symbols used in France such as
@code{\\infeg}, @code{\\supeg}, @code{\\paral}, @item several macros for
writing french operator names like @emph{pgcd}, @emph{ppcm}, @emph{Card},
@emph{rg}, @emph{Vect}.
@end itemize")
    (license license:lppl1.3+)))

(define-public texlive-frletter
  (package
    (name "texlive-frletter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/frletter/" "tex/latex/frletter/")
             (base32
              "0h8lsfmv0icb616kwhkqqbfh64l43vwc63p4bl8sw9xy2lfal5xm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/frletter")
    (synopsis "Typeset letters in the French style")
    (description
     "This package provides a small class for typesetting letters in France.
No assumption is made about the language in use.  The class represents a small
modification of the @code{beletter} class, which is itself a modification of
the standard LaTeX @code{letter} class.")
    (license license:public-domain)))

(define-public texlive-frontespizio
  (package
    (name "texlive-frontespizio")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/frontespizio/"
                   "source/latex/frontespizio/"
                   "tex/latex/frontespizio/")
             (base32
              "17xqq0n2b0acpqq2hd5c5qi5fsrhyjwm1c452i3rbdmf1xkqvkvy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/frontespizio")
    (synopsis "Create a frontispiece for Italian theses")
    (description
     "Typesetting a frontispiece independently of the layout of the main
document is difficult.  This package provides a solution by producing an
auxiliary TeX file to be typeset on its own and the result is automatically
included at the next run.  The markup necessary for the frontispiece is
written in the main document in a @code{frontespizio} environment.
Documentation is mainly in Italian, as the style is probably apt only to
theses in Italy.")
    (license license:lppl)))

(define-public texlive-frpseudocode
  (package
    (name "texlive-frpseudocode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/frpseudocode/"
                   "tex/latex/frpseudocode/")
             (base32
              "1jsrx1slbbqx9hg0a3f7xylxfly2cinw2g5vhhvvgxpp356v6ick")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/frpseudocode")
    (synopsis "French translation for the @code{algorithmicx} package")
    (description
     "This package is intended for use alongside @code{algorithmicx} package.
Its aim is to provide a French translation of terms and words used in
algorithms to make it integrate seamlessly in a French written document.")
    (license license:lppl1.3c)))

(define-public texlive-functan
  (package
    (name "texlive-functan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/functan/" "source/latex/functan/"
                   "tex/latex/functan/")
             (base32
              "077jfm145bnan63r1rlqlmy15zqj89fl4nwksdpyd67zcda3k1vf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/functan")
    (synopsis "Macros for functional analysis and PDE theory")
    (description
     "This package provides a convenient and coherent way to deal with name of
functional spaces (mainly Sobolev spaces) in functional analysis and PDE
theory.  It also provides a set of macros for dealing with norms, scalar
products and convergence with some object oriented flavor (it gives the
possibility to override the standard behavior of norms, ...).")
    (license license:lppl)))

(define-public texlive-gastex
  (package
    (name "texlive-gastex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gastex/" "dvips/gastex/"
                   "tex/latex/gastex/")
             (base32
              "1bjdq5mbqcfh7syzlky69dq71bcmwaa7pv5glcys2jf7afyzcmnj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gastex")
    (synopsis "Graphs and Automata Simplified in TeX")
    (description
     "GasTeX is a set of LaTeX macros which enable the user to draw graphs, automata,
nets, diagrams, etc., very easily, in the LaTeX @code{picture} environment.")
    (license license:lppl)))

(define-public texlive-gene-logic
  (package
    (name "texlive-gene-logic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gene-logic/"
                   "tex/latex/gene-logic/")
             (base32
              "13nibrf1f1w92ia7fj8yfa44w9c5wiyy1ndaby5p6bbjdjcxhyv9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gene-logic")
    (synopsis "Typeset logic formulae, etc")
    (description
     "The package provides a facility to typeset certain logic formulae.  It
provides an environment like @code{eqnarray}, a @code{newtheorem}-like
environment (NewTheorem), and several macros.")
    (license license:isc)))

(define-public texlive-ghab
  (package
    (name "texlive-ghab")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ghab/"
                   "fonts/source/public/ghab/"
                   "tex/latex/ghab/")
             (base32
              "0jknnlcigk6aa48xqvxd67015fxjlmmp36p52c95xrii4lv3m0zk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ghab")
    (synopsis "Typeset ghab boxes in LaTeX")
    (description
     "The package defines a command @code{\\darghab} that will typeset its
argument in a box with a decorated frame.  The width of the box may be set
using an optional argument.")
    (license license:lppl)))

(define-public texlive-ghsystem
  (package
    (name "texlive-ghsystem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ghsystem/" "tex/latex/ghsystem/")
             (base32
              "1a8plly9zcbym67yzk6rp5mlk12lngmhdx6c3riar2w86nlvq55l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ghsystem")
    (synopsis "Globally harmonised system of chemical (etc) naming")
    (description
     "The package provides the means to typeset all the hazard and
precautionary statements and pictograms in a straightforward way.  The
statements are taken from EU regulation 1272/2008.")
    (license license:lppl1.3+)))

(define-public texlive-glosmathtools
  (package
    (name "texlive-glosmathtools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/glosmathtools/"
                   "tex/latex/glosmathtools/")
             (base32
              "0rw194qxxf38fp1xczzjvsa6vb0jxz88cgc2s5fqx2k4fwg989kh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/glosmathtools")
    (synopsis
     "Mathematical nomenclature tools based on the @code{glossaries} package")
    (description
     "This package can be used to generate a mathematical nomenclature (also
called list of symbols or notation).  It is based on the @code{glossaries}
package.  Its main features are:

@itemize
@item symbol categories (e.g., latin, greek),
@item automatic but customizable symbol sorting,
@item easy subscript management,
@item easy accentuation management,
@item abbreviation support (with first use definition),
@item bilingual nomenclatures (for bilingual documents),
@item bilingual abbreviations.
@end itemize")
    (license license:lppl1.3c)))

(define-public texlive-gloss-occitan
  (package
    (name "texlive-gloss-occitan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gloss-occitan/"
                   "source/latex/gloss-occitan/")
             (base32
              "0h9w7gk7klwhackx30c7wa2xv23jy2r75zvgs22crhv40h8blj3f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gloss-occitan")
    (synopsis "Polyglossia support for Occitan")
    (description
     "This package provides Occitan language description file for
Polyglossia.")
    (license license:lppl1.3+)))

(define-public texlive-gost
  (package
    (name "texlive-gost")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/gost/" "bibtex/csf/gost/"
                   "doc/bibtex/gost/" "source/bibtex/gost/")
             (base32
              "0rsqk4r1r741ggvpgg7g51knlaqrrdq9g8yiix66vx3n5v1arp26")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gost")
    (synopsis "BibTeX styles to format according to GOST")
    (description
     "This package provides BibTeX styles to format bibliographies in English,
Russian or Ukrainian according to GOST 7.0.5-2008 or GOST 7.1-2003.  Both
8-bit and Unicode (UTF-8) versions of each @code{BibTeX} style, in each case
offering a choice of sorted and unsorted.  Further, a set of three
styles (which do not conform to current standards) are retained for backwards
compatibility.")
    (license license:lppl1.3c)))

(define-public texlive-gotoh
  (package
    (name "texlive-gotoh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gotoh/" "source/latex/gotoh/"
                   "tex/latex/gotoh/")
             (base32
              "0h08ygzlhv1mpd27yfv8slvgfwa250z7alpv99p6768jafysp3k9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gotoh")
    (synopsis "Implementation of the Gotoh sequence alignment algorithm")
    (description
     "This package calculates biological sequence alignment with the Gotoh algorithm.
The package also provides an interface to control various settings including
algorithm parameters.")
    (license license:expat)))

(define-public texlive-grundgesetze
  (package
    (name "texlive-grundgesetze")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/grundgesetze/"
                   "source/latex/grundgesetze/"
                   "tex/latex/grundgesetze/")
             (base32
              "0hpl336bn33qjmq2bhqn94fjdxlcxs0lxm4sdr124dnagdnksl4n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/grundgesetze")
    (synopsis "Typeset Frege's @emph{Grundgesetze der Arithmetik}")
    (description
     "The package defines maths mode commands for typesetting Gottlob Frege's
concept-script in the style of his @emph{Grundgesetze der Arithmetik} (Basic
Laws of Arithmetic).")
    (license license:gpl2)))

(define-public texlive-gu
  (package
    (name "texlive-gu")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gu/" "tex/latex/gu/")
             (base32
              "13gw8gk03s3ha7xwn6vfix7w50if3gvlqywn1l6z5zi3qbfaapvr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gu")
    (synopsis "Typeset crystallographic group-subgroup-schemes")
    (description
     "The package simplifies typesetting of simple crystallographic
group-subgroup-schemes in the Barnighausen formalism.  It defines a new
environment @code{stammbaum}, wherein all elements of the scheme are defined.
Afterwards all necessary dimensions are calculated and the scheme is drawn.
Currently two steps of symmetry reduction are supported.")
    (license license:lppl)))

(define-public texlive-guide-to-latex
  (package
    (name "texlive-guide-to-latex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/guide-to-latex/")
             (base32
              "1wc5pclv27af2zr6kjjahjzxxlab31d8970jvxr9lxiqllvkxyab")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/guide-to-latex")
    (synopsis "Examples and more from @emph{Guide to LaTeX}, by Kopka and Daly")
    (description
     "This package contains material presented in the book @emph{Guide to LaTeX},
4th edition, by Helmut Kopka and Patrick W. Daly as code, sample figures,
processed files, as well as solutions to the exercices.")
    (license license:lppl1.3c+)))

(define-public texlive-gustlib
  (package
    (name "texlive-gustlib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/gustlib/" "bibtex/bst/gustlib/"
                   "doc/plain/gustlib/" "tex/plain/gustlib/")
             (base32
              "1jfmsx5zw9yb8fkhw4fad82m48n7fs1inmx471mr7ys0i7y1l92v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gustlib")
    (synopsis "Plain macros for much core and extra functionality, from GUST")
    (description
     "This package includes Plain TeX macros adding extra functionalities.
This comprises bibliography support, token manipulation, cross-references,
verbatim, determining length of a paragraph's last line, multicolumn output,
Polish bibliography and index styles, prepress and color separation, graphics
manipulation, and tables.")
    (license (list license:knuth license:public-domain))))

(define-public texlive-gustprog
  (package
    (name "texlive-gustprog")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/gustprog/")
             (base32
              "07qx4xvyqb4p0cx0macjgyg0pcxgcmdxmzfsx9ah5s0dqvminwrc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gustprog")
    (synopsis "Utility programs for Polish users of TeX")
    (description
     "This package provides utility programs for Polish users of TeX.  These
programs are provided as sources, not installed in the @file{bin}
directories.")
    (license license:public-domain)))

(define-public texlive-happy4th
  (package
    (name "texlive-happy4th")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/happy4th/")
             (base32
              "1x950scxbvcgwycpakflpklc775pknjab620g099dnsfrpb76f4a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/happy4th")
    (synopsis "Firework display in obfuscated TeX")
    (description
     "The output PDF file gives an amusing display, as the reader pages
through it.")
    (license license:public-domain)))

(define-public texlive-hanzibox
  (package
    (name "texlive-hanzibox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/hanzibox/"
                   "source/xelatex/hanzibox/"
                   "tex/xelatex/hanzibox/")
             (base32
              "1bgbybzz5h79i2l3mbjxm11x9nsxm366c6d2mha9j5qabjghakya")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ctex))
    (home-page "https://ctan.org/pkg/hanzibox")
    (synopsis
     "Boxed Chinese characters with Pinyin above and translation below")
    (description
     "This is a LaTeX package written to simplify the input of Chinese with
Hanyu Pinyin and translation.  Hanyu Pinyin is placed above Chinese with the
@code{xpinyin} package, and the translation is placed below.  The package can
be used as a utility for learning to write and pronounce Chinese characters,
for Chinese character learning plans, presentations, exercise booklets and
other documentation work.")
    (license license:lppl1.3c)))

(define-public texlive-helmholtz-ellis-ji-notation
  (package
    (name "texlive-helmholtz-ellis-ji-notation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/helmholtz-ellis-ji-notation/"
                   "fonts/opentype/public/helmholtz-ellis-ji-notation/"
                   "source/fonts/helmholtz-ellis-ji-notation/"
                   "tex/latex/helmholtz-ellis-ji-notation/")
             (base32
              "0d2l682v0qsh5x6ab6f0swnbb70niahx145szzhm92ls1lsmkzck")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/helmholtz-ellis-ji-notation")
    (synopsis "In-line microtonal just intonation accidentals")
    (description
     "The Helmholtz-Ellis JI Pitch Notation (HEJI), devised in the early 2000s
by Marc Sabat and Wolfgang von Schweinitz, explicitly notates the raising and
lowering of the untempered diatonic Pythagorean notes by specific microtonal
ratios defined for each prime.  It provides visually distinctive logos
distinguishing families of justly tuned intervals that relate to the harmonic
series.  These take the form of strings of additional accidental symbols based
on historical precedents, extending the traditional sharps and flats.  Since
its 2020 update, HEJI version 2 (HEJI2) provides unique microtonal symbols
through the 47-limit.  This package is a simple LaTeX implementation of HEJI2
that allows for in-line typesetting of microtonal accidentals for use within
theoretical texts, program notes, symbol legends, etc.  Documents must be
compiled using XeLaTeX.")
    (license license:cc-by4.0)))

(define-public texlive-hep
  (package
    (name "texlive-hep")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hep/" "tex/latex/hep/")
             (base32
              "1p7phgv3d4xch9c9qwkpgrpc34nzijxfxiqkpnc9b9a3xfwh71sg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hep")
    (synopsis "Convenience wrapper for High Energy Physics packages")
    (description
     "This package loads the author's @code{hepunits} and @code{hepnicenames}
packages, and a selection of others that are useful in High Energy Physics
papers, etc.")
    (license license:lppl)))

(define-public texlive-hep-reference
  (package
    (name "texlive-hep-reference")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hep-reference/"
                   "source/latex/hep-reference/"
                   "tex/latex/hep-reference/")
             (base32
              "1ih6l7agq2lks27f8i2z6hqza7s01jwvjcz6kr3vj36ssyvpsqmz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hep-reference")
    (synopsis "Adjustments for publications in High Energy Physics")
    (description
     "This package makes some changes to the reference, citation and footnote
macros to improve the default behavior of LaTeX for High Energy Physics
publications.")
    (license license:lppl1.3c)))

(define-public texlive-hepnames
  (package
    (name "texlive-hepnames")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hepnames/" "tex/latex/hepnames/")
             (base32
              "1wvqf4r7p8bkvxwp7mvqnngxillbpii38i413q8acz0777bpassl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hepnames")
    (synopsis "Pre-defined high energy particle names")
    (description
     "Hepnames provides a pair of LaTeX packages, @code{heppennames} and @code{hepnicenames},
providing a large set of pre-defined high energy physics particle names built
with the @code{hepparticles} package.  The packages are based on
@file{pennames.sty} by Michel Goosens and Eric van Herwijnen.  Heppennames
re-implements the particle names in @file{pennames.sty}, with some additions
and alterations and greater flexibility and robustness due to the
@code{hepparticles} structures, which were written for this purpose.
Hepnicenames provides the main non-resonant particle names from
@code{heppennames} with more friendly names.")
    (license license:lppl)))

(define-public texlive-hepparticles
  (package
    (name "texlive-hepparticles")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hepparticles/"
                   "tex/latex/hepparticles/")
             (base32
              "0k8nzw5py23zvp4r4hgddjd2xypcpw85h4slad1yk43zxivb33n7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hepparticles")
    (synopsis "Macros for typesetting high energy physics particle names")
    (description
     "HEPparticles is a set of macros for typesetting high energy particle names,
to meet the following criteria:

@enumerate
@item The main particle name is a Roman or Greek symbol, to be typeset in
upright font in normal contexts.
@item Additionally a superscript or subscript may follow the main symbol.
@item Particle resonances may also have a resonance specifier which is typeset
in parentheses following the main symbol.  In general the parentheses may also
be followed by sub- and superscripts.
@item The particle names are expected to be used both in and out of
mathematical contexts.
@item If the surrounding text is bold or italic then the particle name should
adapt to that context as best as possible (this may not be possible for Greek
symbols).  As a consequence, well-known problems with boldness of particle
names in section titles, headers and tables of contents automatically
disappear if these macros are used.
@end enumerate")
    (license license:lppl)))

(define-public texlive-hepthesis
  (package
    (name "texlive-hepthesis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hepthesis/"
                   "tex/latex/hepthesis/")
             (base32
              "10yrdsrvnb259fi2qyjldwc6h55s5z8vadr5pf6sbaihyqnv9igg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hepthesis")
    (synopsis "Class for academic reports, especially PhD theses")
    (description
     "@code{hepthesis} is a LaTeX class for typesetting large academic
reports, in particular PhD theses.  In particular, @code{hepthesis} offers:

@itemize
@item attractive semantic environments for various rubric sections;
@item extensive options for draft production, screen viewing and binding-ready
output;
@item helpful extensions of existing environments, including equation and
tabular;
@item support for quotations at the start of the thesis and each chapter.
@end itemize

The class is based on @code{scrbook}, from the KOMA-Script bundle.")
    (license license:lppl)))

(define-public texlive-hepunits
  (package
    (name "texlive-hepunits")
    (version (number->string %texlive-revision))
    (source (texlive-origin name version
                            (list "doc/latex/hepunits/" "tex/latex/hepunits/")
                            (base32
                             "0k89jdw5hpav5wr2imrb5wcasi53qswnqqn6jb89kh5crbrywrlz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hepunits")
    (synopsis "Set of units useful in high energy physics applications")
    (description
     "@code{hepunits} is a LaTeX package built on the SIunits package which
adds a collection of useful @acronym{HEP, High Energy Physics} units to the
existing SIunits set.")
    (license license:lppl)))

(define-public texlive-hitex
  (package
    (name "texlive-hitex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/hitex/base/"
                   "doc/man/man1/hishrink.1"
                   "doc/man/man1/hishrink.man1.pdf"
                   "doc/man/man1/histretch.1"
                   "doc/man/man1/histretch.man1.pdf"
                   "doc/man/man1/hitex.1"
                   "doc/man/man1/hitex.man1.pdf"
                   "makeindex/hitex/"
                   "tex/hitex/base/")
             (base32
              "19q0sd0mhsamns9i7gr85n2n0jjc6p2n2xcc7s9b65hz8zp0bdbk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "hilatex" "hitex")))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-etex
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-base
           texlive-knuth-lib
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-plain
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/hitex")
    (synopsis "TeX extension writing HINT output for on-screen reading")
    (description
     "This package provides a TeX extension that generates HINT output.  The
HINT file format is an alternative to the DVI and PDF formats which was
designed specifically for on-screen reading of documents.  Especially on
mobile devices, reading DVI or PDF documents can be cumbersome.  Mobile
devices are available in a large variety of sizes but typically are not large
enough to display documents formated for a4/letter-size paper.  To compensate
for the limitations of a small screen, users are used to alternating between
landscape (few long lines) and portrait (more short lines) mode.  The HINT
format supports variable and varying screen sizes, leveraging the ability of
TeX to format a document for nearly-arbitrary values of @code{\\hsize} and
@code{\\vsize}.")
    (license license:x11)))

(define-public texlive-hrlatex
  (package
    (name "texlive-hrlatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hrlatex/" "source/latex/hrlatex/"
                   "tex/latex/hrlatex/")
             (base32
              "16npkf18gy8clwkzvm0qysfv90wb6979cppj5rykn1x0icsvw2ix")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hrlatex")
    (synopsis "LaTeX support for Croatian documents")
    (description
     "This package simplifies creation of new documents for the (average)
Croatian user.  As an example, a class file @code{hrdipl.cls} (designed for
the graduation thesis at the University of Zagreb) and sample thesis documents
are included.")
    (license license:lppl)))

(define-public texlive-huaz
  (package
    (name "texlive-huaz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/huaz/" "tex/latex/huaz/")
             (base32
              "103wnzw8401d1ckc31y6ga75bph0ls71hxs0hdkszw719ghm7vjr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/huaz")
    (synopsis "Automatic Hungarian definite articles")
    (description
     "In Hungarian there are two definite articles, @samp{a} and @samp{az},
which are determined by the pronunciation of the subsequent word.  The
@code{huaz} package helps the user to insert automatically the correct
definite article for cross-references and other commands containing text.")
    (license license:lppl1.3+)))

(define-public texlive-hulipsum
  (package
    (name "texlive-hulipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hulipsum/"
                   "source/latex/hulipsum/"
                   "tex/latex/hulipsum/")
             (base32
              "1w62vawh2l49bgm7ivprmz61b71qsf38xdsrq6x2dc2ywzvs4z2f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hulipsum")
    (synopsis "Hungarian dummy text (Lorum ipse)")
    (description
     "Lorem ipsum is an improper Latin filler dummy text, cf.@: the
@code{lipsum} package.  It is commonly used for demonstrating the textual
elements of a document template.  Lorum ipse is a Hungarian variation of Lorem
ipsum. (Lorum is a Hungarian card game, and ipse is a Hungarian slang word
meaning bloke.)  With this package you can typeset 150 paragraphs of Lorum
ipse.")
    (license license:lppl1.3+)))

(define-public texlive-hvarabic
  (package
    (name "texlive-hvarabic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hvarabic/" "tex/latex/hvarabic/")
             (base32
              "0kjx2x3fnpqw6hybw7ifdlqad4mmbacba290qwlhhggpjrxsvp39")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hvarabic")
    (synopsis "Macros for RTL typesetting")
    (description
     "This package provides some macros for right-to-left typesetting.  It
uses by default the Arabic fonts Scheherazade and ALM fixed, the only
monospaced Arabic font.  The package only works with LuaLaTeX or XeLaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-ibrackets
  (package
    (name "texlive-ibrackets")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ibrackets/"
                   "source/latex/ibrackets/"
                   "tex/latex/ibrackets/")
             (base32
              "0ipqh7z1v4l6fgbgkizn5v2g2l3b4n5zlmdaalj22ylgd2k25mv6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ibrackets")
    (synopsis "Intelligent brackets")
    (description
     "This small package provides a new definition of brackets @samp{[} and
@samp{]} as active characters to get correct blank spaces in mathematical mode
when using for open intervals.")
    (license license:lppl1.3+)))

(define-public texlive-impatient
  (package
    (name "texlive-impatient")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/impatient/")
             (base32
              "03cjl3lg7k7p4h8drw7vcbw6ymgmm2clv6sgfs3hdixs8dmab1b2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/impatient")
    (synopsis "@emph{TeX for the Impatient} book")
    (description
     "@emph{TeX for the Impatient} is a book on TeX, Plain TeX and Eplain.")
    (license license:fdl1.3+)))

(define-public texlive-impatient-cn
  (package
    (name "texlive-impatient-cn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/impatient-cn/")
             (base32
              "1pc20pb0las3slam1d9hmqigipmr6r98wwif12m33mm750vmq65i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/impatient")
    (synopsis "Chinese translation of @emph{TeX for the Impatient} book")
    (description
     "@emph{TeX for the Impatient} is a book (of around 350 pages) on TeX,
Plain TeX and Eplain.  This is its Chinese translation.")
    (license license:fdl1.3+)))

(define-public texlive-impatient-fr
  (package
    (name "texlive-impatient-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/impatient-fr/")
             (base32
              "1qwdllmi0ci304smf4yl6g8ah083jrch9clkyav7r5qsxnhwxbxh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/impatient")
    (synopsis "French translation of @emph{TeX for the Impatient} book")
    (description
     "@emph{TeX for the Impatient} is a book (of around 350 pages) on TeX,
Plain TeX and Eplain.  This is its French translation.")
    (license license:fdl1.3+)))

(define-public texlive-impnattypo
  (package
    (name "texlive-impnattypo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/impnattypo/"
                   "source/latex/impnattypo/"
                   "tex/latex/impnattypo/")
             (base32
              "05ddbpxvybr0a7sg1ximsifvgjg83qwx5pd9xcc22bliz3j5ixvm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/impnattypo")
    (synopsis "Support typography of l'Imprimerie Nationale Francaise")
    (description
     "The package provides useful macros implementing recommendations by the
French Imprimerie Nationale.")
    (license license:lppl1.3+)))

(define-public texlive-imsproc
  (package
    (name "texlive-imsproc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/imsproc/"
                   "tex/xelatex/imsproc/")
             (base32
              "1akzdc4nas4fkmlhm6xp97xw65vm5bif73jq2ki5if5kwssxc38z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/imsproc")
    (synopsis "Typeset IMS conference proceedings")
    (description
     "The class typesets papers for IMS (Iranian Mathematical Society)
conference proceedings.  The class uses the XePersian package.")
    (license license:lppl1.3+)))

(define-public texlive-includernw
  (package
    (name "texlive-includernw")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/includernw/"
                   "tex/latex/includernw/")
             (base32
              "1kc14nq0f3jybidifvr6gjfy4ggs5qkbs1syv1k7bw3xrdmpplb8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/includernw")
    (synopsis "Include .Rnw inside .tex")
    (description
     "This package is for including @file{.Rnw} (knitr/sweave) files inside
@file{.tex} files.  It requires that you have R and the R-package @code{knitr}
installed.")
    (license license:lppl1.3c)))

(define-public texlive-install-latex-guide-zh-cn
  (package
    (name "texlive-install-latex-guide-zh-cn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/install-latex-guide-zh-cn/")
             (base32
              "1mb6d92c7llz5cpkir4d1wf0l2yvmskl0kxgch9r5zjmb67qflin")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/install-latex-guide-zh-cn")
    (synopsis "Short introduction to LaTeX installation written in Chinese")
    (description
     "This package will introduce the operations related to installing TeX
Live and mainly introducing command line operations, in Chinese.")
    (license license:lppl1.3c)))

(define-public texlive-interval
  (package
    (name "texlive-interval")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/interval/" "tex/latex/interval/")
             (base32
              "16qp8q95s8y4pvd7idh6nzz04nb81sm7w36gc2nc5sjmvjw1sk4f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/interval")
    (synopsis "Format mathematical intervals, ensuring proper spacing")
    (description
     "When typing an open interval as $]a,b[$, a closing bracket is being used
in place of an opening fence and vice versa.  This leads to wrong spacing.
The @code{\\interval} macro provided by this package attempts to solve this.
The package also supports fence scaling and ensures that the enclosing fences
will end up having the proper closing and opening types.")
    (license license:lppl1.3+)))

(define-public texlive-intro-scientific
  (package
    (name "texlive-intro-scientific")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/intro-scientific/")
             (base32
              "0bzgi3zg0lm6zwjnac90ihaqwcvhindfdphjijv7mh11ii0qxlmf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/intro-scientific")
    (synopsis "Introducing scientific/mathematical documents using LaTeX")
    (description
     "@emph{Writing Scientific Documents Using LaTeX} is an article
introducing the use of LaTeX in typesetting scientific documents.  It covers
the basics of creating a new LaTeX document, special typesetting
considerations, mathematical typesetting and graphics.  It also touches on
bibliographic data and BibTeX.")
    (license license:lppl)))

(define-public texlive-ionumbers
  (package
    (name "texlive-ionumbers")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ionumbers/"
                   "source/latex/ionumbers/"
                   "tex/latex/ionumbers/")
             (base32
              "0rbm4z2qg1ifwslxdsgzdcni701s3q32i2iaqldm7g7jinn8bivn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ionumbers")
    (synopsis "Restyle numbers in maths mode")
    (description
     "@code{ionumbers} stands for input/output numbers.  The package restyles
numbers in maths mode.  If a number in the input file is written, e.g., as
@samp{$3,231.44$} as commonly used in English texts, the package is able to
restyle it to be output as @samp{$3\\,231{,}44$} as commonly used in German
texts (and vice versa).  This may be useful, for example, if you have a large
table and want to include it in texts with different output conventions
without the need to change the table.

The package can also automatically group digits left of the decimal separator
(thousands) and right of the decimal separator (thousandths) in triplets
without the need of specifing commas (English) or points (German) as
separators.  E.g., the input @samp{$1234.567890$} can be output as
@samp{$1\\,234.\\,567\\,890$}.

Finally, an @emph{e} starts the exponent of the number.  For example,
@samp{$21e6$} may be output as @samp{$26\\times10\\,^@{6@}$}.")
    (license license:gpl3+)))

(define-public texlive-ipaex
  (package
    (name "texlive-ipaex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/ipaex/"
                   "fonts/truetype/public/ipaex/")
             (base32
              "0zpvpdpry4ckgbs79hy0gv8cc98x9c0cizzdqzg2qkx8clp8y1bn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ipaex")
    (synopsis "IPA (Japanese) fonts")
    (description
     "The fonts provide fixed-width glyphs for Kana and Kanji characters,
proportional width glyphs for Western characters.")
    (license license:ipa)))

(define-public texlive-isomath
  (package
    (name "texlive-isomath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/isomath/" "tex/latex/isomath/")
             (base32
              "1jjz2hp9g6swjfbcd43j12dvsvgwgfid6v6lf3n1c87aq6jqx8ly")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/isomath")
    (synopsis "Mathematics style for science and technology")
    (description
     "The package provides tools for a mathematical style that conforms to the
International Standard ISO 80000-2 and is common in science and technology.
It changes the default shape of capital Greek letters to italic, sets up bold
italic and sans-serif bold italic math alphabets with Latin and Greek
characters, and defines macros for markup of vector, matrix and tensor
symbols.")
    (license license:lppl)))

(define-public texlive-itnumpar
  (package
    (name "texlive-itnumpar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/itnumpar/"
                   "source/latex/itnumpar/"
                   "tex/latex/itnumpar/")
             (base32
              "1jjl1mskg0vsxfjg2wpnqi0y462mv2qrfsg15zjri83zwrilaa6f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/itnumpar")
    (synopsis "Spell numbers in words (Italian)")
    (description
     "Sometimes we need to say ``Capitolo primo'' or ``Capitolo uno'' instead
of ``Capitolo 1'', that is, spelling the number in words instead of the usual
digit form.  This package provides support for spelling out numbers in Italian
words, both in cardinal and in ordinal form.")
    (license license:lppl)))

(define-public texlive-jfmutil
  (package
    (name "texlive-jfmutil")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/jfmutil/" "scripts/jfmutil/")
             (base32
              "1c23wak28a1kwgsk6bw1ifa794zywmqzm7a6w5g883nmbfmsq388")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "jfmutil.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/jfmutil")
    (synopsis "Utility to process pTeX-extended TFM and VF")
    (description
     "This program provides functionality to process data files (JFM and VF) that
form logical fonts used in (u)pTeX.  The functions currently available
include:
@itemize
@item The mutual conversion between Japanese virtual fonts (pairs of VF and
JFM) and files in the ZVP format, which is an original text format
representing data in virtual fonts.  This function can be seen as
a counterpart to the @code{vftovp} and @code{vptovf} programs.
@item The mutual conversion between VF files alone and files in the ZVP0
format, which is a subset of the ZVP format.
@end itemize")
    (license license:expat)))

(define-public texlive-jkmath
  (package
    (name "texlive-jkmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/jkmath/" "tex/latex/jkmath/")
             (base32
              "0gqm6wfarf20yi3cq2h4lbnqp39fif1wg6gpkvbqpy6zlndbdb0r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jkmath")
    (synopsis "Macros for mathematics that make the code more readable")
    (description
     "Inspired by the @code{physicspackage}, the package defines some simple
macros for mathematical notation which make the code more readable or allow
flexibility in typesetting material.")
    (license license:lppl)))

(define-public texlive-jupynotex
  (package
    (name "texlive-jupynotex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/jupynotex/"
                   "tex/latex/jupynotex/")
             (base32
              "1dfb20pv1ws89ckk80hnj57w64m4whmm8s66wh2lb9s3a2rd0brk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jupynotex")
    (synopsis "Include whole or partial Jupyter notebooks in LaTeX documents")
    (description
     "This package provides a Python script and a LaTeX @file{.sty} file which
can be used together to include Jupyter Notebooks (all of them, or some
specific cells) as part of a LaTeX document.  It will convert the Jupyter
Notebook format to proper LaTeX so it gets included seamlessly, supporting
text, LaTeX, images, etc.")
    (license license:asl2.0)))

(define-public texlive-karnaugh
  (package
    (name "texlive-karnaugh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/karnaugh/" "tex/latex/karnaugh/")
             (base32
              "0zpn2q5v9dv8196h9186b9wx2hbp0j9l1fg6k2pdqhwxgdcgssxh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/karnaugh")
    (synopsis "Typeset Karnaugh-Veitch-maps")
    (description
     "The package provides macros for typesetting Karnaugh-Maps and
Veitch-Charts in a simple and user-friendly way.  Karnaugh-Maps and
Veitch-Charts are used to display and simplify logic functions manually.
These macros can typeset Karnaugh-Maps and Veitch-Charts with up to ten
variables.")
    (license license:lppl1.0+)))

(define-public texlive-karnaugh-map
  (package
    (name "texlive-karnaugh-map")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/karnaugh-map/"
                   "source/latex/karnaugh-map/"
                   "tex/latex/karnaugh-map/")
             (base32
              "01gcffk9vys81b0ad1rxlqnq8i8yflfhby43fr46h7li6p08rx09")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/karnaugh-map")
    (synopsis "LaTeX package for drawing Karnaugh maps with up to 6 variables")
    (description
     "This package draws Karnaugh maps with 2, 3, 4, 5, and 6 variables.  It
also contains commands for filling the karnaugh map with terms
semi-automatically or manually.  Last but not least it contains commands for
drawing implicants on top of the map.")
    (license license:cc-by-sa3.0)))

(define-public texlive-karnaughmap
  (package
    (name "texlive-karnaughmap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/karnaughmap/"
                   "source/latex/karnaughmap/"
                   "tex/latex/karnaughmap/")
             (base32
              "0wwgdcpv5chr7frnlf2j56yiwk5m28bixbv83p2h4f3jl10v5hwi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/karnaughmap")
    (synopsis "Typeset Karnaugh maps")
    (description
     "This package provides an easy to use interface to typeset Karnaugh maps
using TikZ.  Though similar to the @code{karnaugh} macros, it provides
a key-value system to customize Karnaugh maps and a proper LaTeX package.")
    (license license:lppl1.2+)))

(define-public texlive-kaytannollista-latexia
  (package
    (name "texlive-kaytannollista-latexia")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kaytannollista-latexia/")
             (base32
              "12ysr2501m77zjljpi30cxw45drn2hw552yk9asksvrbvavjphm0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kaytannollista-latexia")
    (synopsis "Practical manual for LaTeX (Finnish)")
    (description
     "@emph{Kaytannollista Latexia} is a practical manual for LaTeX written in
the Finnish language.  The manual covers most of the topics that a typical
document author needs.  So it can be a useful guide for beginners as well as
a reference manual for advanced users.")
    (license license:cc-by-sa4.0)))

(define-public texlive-knuth-errata
  (package
    (name "texlive-knuth-errata")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/knuth-errata/")
             (base32
              "0rcyw7dqcwlnf9q421k017hrx5c0d9rra6rcr3n6wqmhxmdy5mn9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/knuth-errata")
    (synopsis "Knuth's published errata")
    (description
     "These files record details of problems reported in Knuth's Computers and
Typesetting series of books, for the Computer Modern fonts, and for TeX,
Metafont and related programs.")
    (license license:knuth)))

(define-public texlive-knuth-hint
  (package
    (name "texlive-knuth-hint")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/knuth-hint/")
             (base32
              "13ka3b636vwgwz29bl9mh40incldq6mk6cr6q3by01xj12za41kw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/knuth-hint")
    (synopsis "HINT collection of typeset C/WEB sources in TeX Live")
    (description
     "The @code{knuth-hint} package contains the large collection of HINT
documents for many of the CWEB amd WEB sources of programs in the TeX Live
distribution (and, for technical reasons, PDF documents for CTWILL and XeTeX).
Each program is presented in its original form as written by the respective
authors, and in the changed form as used in TeX Live.  Care has been taken to
keep the section numbering intact, so that you can study the codes and the
changes in parallel.

Also included are the errata for Donald Knuth's @emph{Computers &
Typesetting}.  HINT is the dynamic document format created by Martin Ruckert's
HiTeX engine.  The HINT files can be viewed with the @code{hintview}
application.  The @code{knuth-hint} package is a showcase of HiTeX's
capabilities.")
    (license (list license:public-domain license:knuth))))

(define-public texlive-knuth-pdf
  (package
    (name "texlive-knuth-pdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/knuth-pdf/")
             (base32
              "14by59b7d1fi4jh5d0xvzb56g9pgd5zi1sdvfgi50vrpn28gfqfw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/knuth-pdf")
    (synopsis "PDF collection of typeset C/WEB sources in TeX Live")
    (description
     "Here you find a large collection of PDF documents for many C/WEB
programs in TeX Live, both in their original form as written by their
respective authors, and in the changed form as they are actually used in the
TeX Live system.  Care has been taken to keep the section numbering intact, so
that you can study the sources and their changes in parallel.

Also included is the collection of errata for Donald Knuth's @emph{Computers &
Typesetting series}.  Although not all the texts here are written or
maintained by Donald Knuth, it is more convenient for everything to be
collected in one place for reading and searching.  They all stem from the
system that Knuth created.  The central entry point is the index file, with
links to the individual documents, either in HTML or in PDF format.")
    (license license:public-domain)))

(define-public texlive-kvmap
  (package
    (name "texlive-kvmap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kvmap/" "source/latex/kvmap/"
                   "tex/latex/kvmap/")
             (base32
              "04sjs8r2ijd0rdx5d13p6pwnwnwd0rgzx894j3cqfi29y860c7yr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-amsmath texlive-l3experimental
                             texlive-pgf))
    (home-page "https://ctan.org/pkg/kvmap")
    (synopsis "Create Karnaugh maps with LaTeX")
    (description
     "This LaTeX package allows the creation of (even large) Karnaugh maps.
It provides a tabular-like input syntax and support for drawing bundles
(implicants) around adjacent values.")
    (license license:lppl1.3c)))

(define-public texlive-l2picfaq
  (package
    (name "texlive-l2picfaq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l2picfaq/")
             (base32
              "0mk8d082gcqlxw2x7d2w85sm6i51928pijybzbsh9fy2rfcv99xz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/l2picfaq")
    (synopsis "LaTeX pictures how-to (German)")
    (description
     "The document (in German) is a collection of how-to notes about LaTeX and
pictures.  The aim of the document is to provide a solution, in the form of
some sample code, for every problem.")
    (license license:fdl1.3+)))

(define-public texlive-l2tabu
  (package
    (name "texlive-l2tabu")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l2tabu/")
             (base32
              "1jl0n43bqbys0c9v0xb4sjql0gvk4r14ldzp2rbwzjsk8a39q8v8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/l2tabu")
    (synopsis "Obsolete packages and commands")
    (description
     "This package provides a German translation of the @emph{l2tabu}
practical guide to LaTeX2e by Mark Trettin.  It focuses on obsolete packages
and commands.")
    (license license:gpl3+)))

(define-public texlive-l2tabu-english
  (package
    (name "texlive-l2tabu-english")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l2tabu-english/")
             (base32
              "0dqmdr3lffhiaq7pg5pn6ia46miwq4nh5vimhd0qbf936amiv1mm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/l2tabu-english")
    (synopsis "English translation of @emph{Obsolete packages and commands}")
    (description
     "This package provides an English translation of the @emph{l2tabu}
practical guide to LaTeX2e by Mark Trettin.  It focuses on obsolete packages
and commands.")
    (license license:fdl1.2+)))

(define-public texlive-l2tabu-french
  (package
    (name "texlive-l2tabu-french")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l2tabu-french/")
             (base32
              "0c6fbmgwv2adlxbhl1shvpa1w6xd36gmrwvkjgdp9xc3q999l4dj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/l2tabu-french")
    (synopsis "English translation of @emph{Obsolete packages and commands}")
    (description
     "This package provides a French translation of the @emph{l2tabu}
practical guide to LaTeX2e by Mark Trettin.  It focuses on obsolete packages
and commands.")
    (license license:fdl1.2+)))

(define-public texlive-l2tabu-italian
  (package
    (name "texlive-l2tabu-italian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l2tabu-italian/")
             (base32
              "0bgfmn5v80rdhs9wmjj6mki29p28ip1d29rmgbw4jh4z6gd4sf22")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/l2tabu-italian")
    (synopsis "Italian translation of @emph{Obsolete packages and commands}")
    (description
     "This package provides an Italian translation of the @emph{l2tabu}
practical guide to LaTeX2e by Mark Trettin.  It focuses on obsolete packages
and commands.")
    (license license:fdl1.2+)))

(define-public texlive-l2tabu-spanish
  (package
    (name "texlive-l2tabu-spanish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l2tabu-spanish/")
             (base32
              "1p83xflgv8x7nq9mylh468zn3hz5pv3zxprc63q51fwx0ylxfdbk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/l2tabu-spanish")
    (synopsis "Spanish translation of @emph{Obsolete packages and commands}")
    (description
     "This package provides a Spanish translation of the @emph{l2tabu}
practical guide to LaTeX2e by Mark Trettin.  It focuses on obsolete packages
and commands.")
    (license license:public-domain)))

(define-public texlive-lambda
  (package
    (name "texlive-lambda")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/lambda/base/" "tex/lambda/config/")
             (base32
              "1ajx5g5cd5s9jqr4b196689k7zmlxmhhksly88qps31s7lzaprvn")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lambda")
    (synopsis "LaTeX for Omega and Aleph")
    (description "This is LaTeX for Omega and Aleph.")
    (license license:lppl1.0+)))

(define-public texlive-latex-notes-zh-cn
  (package
    (name "texlive-latex-notes-zh-cn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/latex-notes-zh-cn/")
             (base32
              "0w9rmd7b5fnfvix653n9vbnn1k8yxlaaak79ipvm8p53dx75xfxd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-notes-zh-cn")
    (synopsis "Chinese Introduction to TeX and LaTeX")
    (description
     "The document is an introduction to TeX and LaTeX, in Chinese.  It covers
basic text typesetting, mathematics, graphics, tables, Chinese language &
fonts, and some miscellaneous features (hyperlinks, long documents,
bibliographies, indexes and page layout).")
    (license license:lppl1.3+)))

(define-public texlive-latex2e-help-texinfo-fr
  (package
    (name "texlive-latex2e-help-texinfo-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/latex2e-fr.info"
                   "doc/latex/latex2e-help-texinfo-fr/")
             (base32
              "13s0zjwk3m95kbx4qrz2xwp8kifzc2zmasp1ks9l2acf1nqfac9p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex2e-help-texinfo-fr")
    (synopsis "French translation of @code{latex2e-help-texinfo}")
    (description
     "This package provides a complete French translation of
@code{latex2e-help-texinfo}.")
    (license license:public-domain)))

(define-public texlive-latex2e-help-texinfo-spanish
  (package
    (name "texlive-latex2e-help-texinfo-spanish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/latex2e-es.info"
                   "doc/latex/latex2e-help-texinfo-spanish/")
             (base32
              "1v3wa99phdmsiajbq0ad4h939cpwjwzpq88h6s0796h5fr34hrvq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex2e-help-texinfo")
    (synopsis "Spanish translation of @code{latex2e-help-texinfo}")
    (description
     "This package provides a complete Spanish translation of
@code{latex2e-help-texinfo}.")
    (license license:public-domain)))

(define-public texlive-latexcheat-de
  (package
    (name "texlive-latexcheat-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexcheat-de/")
             (base32
              "1cpqcvqkkyb2bf87yjvc2migxawnacx5mva8dapma7hmwx0z7rhm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexcheat-de")
    (synopsis "LaTeX cheat sheet, in German")
    (description
     "This is a translation to German of Winston Chang's LaTeX cheat sheet (a
reference sheet for writing scientific papers).  It has been adapted to German
standards using the KOMA script document classes.")
    (license license:lppl)))

(define-public texlive-latexcheat-esmx
  (package
    (name "texlive-latexcheat-esmx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexcheat-esmx/")
             (base32
              "1d6nk9p9adlhgr28mnnizrxzzqlk20zw2clcddqlaa8pn73dqhcm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexcheat-esmx")
    (synopsis "LaTeX cheat sheet, in Spanish")
    (description
     "This is a translation to Spanish (Castellano) of Winston Chang's LaTeX
cheat sheet (a reference sheet for writing scientific papers).")
    (license license:lppl)))

(define-public texlive-latino-sine-flexione
  (package
    (name "texlive-latino-sine-flexione")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latino-sine-flexione/"
                   "tex/latex/latino-sine-flexione/")
             (base32
              "0py61xhgg73jlz6f9p7g9r06pn7m648d29068i4d97gqc20i2jvc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latino-sine-flexione")
    (synopsis "LaTeX support for documents written in Peano's Interlingua")
    (description
     "Latino sine Flexione (or Interlingua) is a language constructed by
Giuseppe Peano at the beginning of the last century.  This simplified Latin is
designed to be an instrument for international cooperation, especially in the
academic sphere.  This package provides the necessary translations to use the
language within a LaTeX document.  It also imports @code{fontenc} in order to
be able to use ligatures and quotation marks.  Finally, it offers a text in
Interlingua that can be used as a dummy text: @emph{Fundamento de
intelligentia}.")
    (license license:public-domain)))

(define-public texlive-letgut
  (package
    (name "texlive-letgut")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/letgut/"
                   "source/lualatex/letgut/"
                   "tex/lualatex/letgut/")
             (base32
              "1wk6bibz59jw9vx2syq0hfi2yz69kr3w87839bhnl3svz2x958nn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/letgut")
    (synopsis
     "Class for the newsletter @code{La Lettre GUTenberg} of the French TeX User
Group GUTenberg")
    (description
     "The French TeX User Group GUTenberg has been publishing @emph{The
GUTenberg Letter}, its irregular newsletter, since February 1993.  For this
purpose, a dedicated, in-house (La)TeX class was gradually created but,
depending on new needs and on the people who were publishing the Newsletter,
its development was somewhat erratic; in particular, it would not have been
possible to publish its code as it was.  In addition, its documentation was
non-existent.  The Board of Directors of the association, elected in November
2020, wished to provide a better structured, more perennial and documented
class, able to be published on the CTAN.  This is now done with the present
@code{letgut} class.")
    (license license:lppl1.3c)))

(define-public texlive-letterswitharrows
  (package
    (name "texlive-letterswitharrows")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/letterswitharrows/"
                   "source/latex/letterswitharrows/"
                   "tex/latex/letterswitharrows/")
             (base32
              "0qws4in1qgj52z2d38lfyx3l3dxp01agfbipy5xdi1p4jyhw6b7c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/letterswitharrows")
    (synopsis "Draw arrows over math letters")
    (description
     "This package provides LaTeX math-mode commands for setting left and
right arrows over mathematical symbols so that the arrows dynamically scale
with the symbols.  While it is possible to set arrows over longer strings of
symbols, the focus lies on single characters.")
    (license license:lppl1.3+)))

(define-public texlive-lie-hasse
  (package
    (name "texlive-lie-hasse")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lie-hasse/"
                   "tex/latex/lie-hasse/")
             (base32
              "1p4ln326spkzcp42p0bjk8cma4cj4ks8xs6ps5mq1b9q1r3vknaa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lie-hasse")
    (synopsis "Draw Hasse diagrams")
    (description
     "This package draws Hasse diagrams of the partially ordered sets of the
simple roots of any complex simple Lie algebra.  It uses the Dynkin diagrams
package @code{dynkin-diagrams}.")
    (license license:lppl1.3c)))

(define-public texlive-lithuanian
  (package
    (name "texlive-lithuanian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lithuanian/"
                   "fonts/enc/dvips/lithuanian/"
                   "fonts/map/dvips/lithuanian/"
                   "fonts/tfm/public/lithuanian/"
                   "tex/latex/lithuanian/")
             (base32
              "1iq06vlryl4fj2mzkmmphw9ihm0y7wmi5k8wxniaciw5mm5vrw7x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lithuanian")
    (synopsis "Lithuanian language support")
    (description
     "This language support package provides:

@itemize
@item extra 8-bit encoding L7x used by @code{fontenc}: @file{l7xenc.def},
@file{l7xenc.dfu}, @file{l7xenc.sty};
@item Lithuanian TeX support for URW family Type1 fonts: map, fd, tfm with L7x
encoding;
@item extra code page definitions used by @code{inputenc}: @file{cp775.def}
and @file{latin7.def}.
@end itemize")
    (license license:lppl1.3c)))

(define-public texlive-logicproof
  (package
    (name "texlive-logicproof")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/logicproof/"
                   "source/latex/logicproof/"
                   "tex/latex/logicproof/")
             (base32
              "02iif9rvp8njp7zc4ab4jgksf0hrbg6z5cp7066y245bjwi99fi3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/logicproof")
    (synopsis "Box proofs for propositional and predicate logic")
    (description
     "This package provides a common style of proof used in propositional and
predicate logic is Fitch proofs, in which each line of the proof has
a statement and a justification, and subproofs within a larger proof have
boxes around them.  The package provides environments for typesetting such
proofs and boxes.  It creates proofs in a style similar to that used in
@emph{Logic in Computer Science} by Huth and Ryan.")
    (license license:lppl1.3+)))

(define-public texlive-lollipop
  (package
    (name "texlive-lollipop")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/otherformats/lollipop/" "tex/lollipop/")
             (base32
              "0xdldlnhsr2n8544j9vd6gllin8bfkpcbhlpmxlhrvjl5bdg0rjp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "lollipop")))
    (propagated-inputs (list texlive-cm texlive-hyphen-base))
    (home-page "https://ctan.org/pkg/lollipop")
    (synopsis "TeX made easy")
    (description
     "Lollipop is a macro package that functions as a toolbox for writing TeX
macros.  Its main aim is to make macro writing so easy that implementing
a fully new layout in TeX would become a matter of less than an hour for an
average document.  The aim is that such a task could be accomplished by
someone with only a very basic training in TeX programming.")
    (license license:gpl3)))

(define-public texlive-longdivision
  (package
    (name "texlive-longdivision")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/longdivision/"
                   "tex/latex/longdivision/")
             (base32
              "110jy01n8n8gmanvfv4sngmrgh2hrgkd1h37g3rdbwgq7s5iffaw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/longdivision")
    (synopsis "Typesets long division")
    (description
     "This package executes the long division algorithm and typesets the solutions.
The dividend must be a positive decimal number and the divisor must be
a positive integer.  Repeating decimals is handled correctly, putting a bar
over the repeated part of the decimal.

The package defines two macros, @code{\\longdivision} and
@code{\\intlongdivision}.  Each takes two arguments, a dividend and
a divisor. @code{\\longdivision} keeps dividing until the remainder is zero,
or it encounters a repeated remainder. @code{\\intlongdivision} stops when the
dividend stops (though the dividend doesn't have to be an integer).")
    (license license:lppl)))

(define-public texlive-lpform
  (package
    (name "texlive-lpform")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/lpform/" "tex/generic/lpform/")
             (base32
              "13pg4wb3z8xhmf9wry4rvdzhg0ydhpbdp6vxjk7g91p6s3lvqa51")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lpform")
    (synopsis
     "Typesetting linear programming formulations and sets of equations")
    (description
     "The package is designed to aid the author writing linear programming
formulations, one restriction at a time.  With the package, one can easily
label equations, formulations can span multiple pages and several elements of
the layout (such as spacing, texts and equation tags) are also customizable.
Besides linear programming formulations, this package can also be used to
display any series of aligned equations with easy labeling/referencing and
other customization options.")
    (license license:lppl)))

(define-public texlive-lplfitch
  (package
    (name "texlive-lplfitch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lplfitch/"
                   "source/latex/lplfitch/"
                   "tex/latex/lplfitch/")
             (base32
              "1x396k71r8sb04pby3h6snjzmyzmai9s11icgxf1vi9dswh191cz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lplfitch")
    (synopsis "Fitch-style natural deduction proofs")
    (description
     "The package provides macros for typesetting natural deduction proofs in
Fitch style, with subproofs indented and offset by scope lines.  The proofs
from use of the package are in the format used in the textbook @emph{Language,
Proof, and Logic} by Dave Barker-Plummer, Jon Barwise, and John Etchemendy.")
    (license license:lppl1.3+)))

(define-public texlive-lshort-bulgarian
  (package
    (name "texlive-lshort-bulgarian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-bulgarian/")
             (base32
              "0qg23asq2i5mqhp9xblv5hm3qxmd5886d5x0gq1fkdbyy9gsawi3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-bulgarian")
    (synopsis
     "Bulgarian translation of the @emph{Short Introduction to LaTeX2e}")
    (description
     "This package includes the source files, PostScript and PDF files of the
Bulgarian translation of the @emph{Short Introduction to LaTeX2e}.")
    (license license:public-domain)))

(define-public texlive-lshort-chinese
  (package
    (name "texlive-lshort-chinese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-chinese/")
             (base32
              "0455mdpcv3yg4m5vrbdp47j7mcwi43mvsy2p9clp7794agaf2ir6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-zh-cn")
    (synopsis "Introduction to LaTeX, in Chinese")
    (description
     "This package provides a Chinese edition of the @emph{(Not so) short
introduction to LaTeX2e}, with additional information of typesetting Chinese
language.")
    (license license:fdl1.3+)))

(define-public texlive-lshort-czech
  (package
    (name "texlive-lshort-czech")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-czech/")
             (base32
              "0ar9qa0cg0mjv6ydgx1phaa1qpiy25s3jciznbylgi5xprvnnfa9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-czech")
    (synopsis "Czech translation to LaTeX")
    (description
     "This is the Czech translation of a @emph{(Not So) Short Introduction to
LaTeX2e}.}")
    (license license:gpl3+)))

(define-public texlive-lshort-dutch
  (package
    (name "texlive-lshort-dutch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-dutch/")
             (base32
              "160r060gmw6f6lgbnyvfxafjpqvyr4jwd56ddkjfm3ir2bfl973d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-dutch")
    (synopsis "Introduction to LaTeX in Dutch")
    (description
     "This is the Dutch (Nederlands) translation of the @emph{(No So) Short
Introduction to LaTeX2e}.")
    (license license:gpl3+)))

(define-public texlive-lshort-estonian
  (package
    (name "texlive-lshort-estonian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-estonian/")
             (base32
              "0dfwp7kkynpskb345i3yz7h5pvc8iljqg3q6l546vrwla0bmb95c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-estonian")
    (synopsis "Estonian introduction to LaTeX")
    (description
     "This is the Estonian translation of @emph{(No So) Short Introduction to
LaTeX2e}.")
    (license license:gpl2)))

(define-public texlive-lshort-english
  (package
    (name "texlive-lshort-english")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-english/")
             (base32
              "0pzqdbzynlwvpamd69cmfpa8jdcvq96qjr9k1fy3dxpzi2mapvhd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-english")
    (synopsis "(Not So) short introduction to LaTeX2e")
    (description
     "@emph{The Not So Short Introduction to LaTeX2e} derives from a German
introduction (@emph{lkurz}), which was translated and updated; it continues to
be updated.  This translation has, in its turn, been translated into several
other languages; see the @code{lshort} catalogue entry for the current list.")
    (license license:gpl2)))

(define-public texlive-lshort-finnish
  (package
    (name "texlive-lshort-finnish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-finnish/")
             (base32
              "06madlm869kmwxprmy2c78ma4s8zk8mclzmd4xdl0r4mlhk4vdsl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-finnish")
    (synopsis "Finnish introduction to LaTeX")
    (description
     "This is the Finnish translation of @emph{(No So) Short Introduction to
LaTeX2e}, with added coverage of Finnish typesetting rules.")
    (license license:public-domain)))

(define-public texlive-lshort-french
  (package
    (name "texlive-lshort-french")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-french/")
             (base32
              "1hdl0w7b1ablx7qfcvgniz7dcbgazb49b8wfw7c08hlb38gxfqh7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-french")
    (synopsis "Short introduction to LaTeX, French translation")
    (description
     "This package contains a French version of a @emph{(Not so) short
introduction to LaTeX2e}.")
    (license license:gpl3+)))

(define-public texlive-lshort-german
  (package
    (name "texlive-lshort-german")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-german/")
             (base32
              "073v7zvk8xri0f05mr0ad770p81akl9b9cnia1q4hcma9fk89k10")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-german")
    (synopsis
     "German version of @emph{A Short Introduction to LaTeX2e:
LaTeX2e-Kurzbeschreibung}")
    (description
     "This package provides the German version of @emph{A Short Introduction
to LaTeX2e: LaTeX2e-Kurzbeschreibung}.")
    (license license:opl1.0+)))

(define-public texlive-lshort-italian
  (package
    (name "texlive-lshort-italian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-italian/")
             (base32
              "085ydria5q7s648r7frl54sa1y4kyr569zvqjjkancfd83h873cg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-italian")
    (synopsis "Introduction to LaTeX in Italian")
    (description
     "This is the Italian translation of the @emph{(Not so) Short Introduction
to LaTeX2e.}")
    (license license:gpl3+)))

(define-public texlive-lshort-japanese
  (package
    (name "texlive-lshort-japanese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-japanese/")
             (base32
              "0mfxig980jyzhay1i83d69p294hgbr92v3kk2a4z8ca3fwzy8w74")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-japanese")
    (synopsis "Japanese version of the @emph{Short Introduction to LaTeX2e}")
    (description "This is the Japanese version of the @emph{(Not so) Short
Introduction to LaTeX2e}.")
    (license license:gpl3+)))

(define-public texlive-lshort-mongol
  (package
    (name "texlive-lshort-mongol")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-mongol/")
             (base32
              "153k4dzia30fpx847wli7i5p407a808gmj3p7jifq5bpx479qg1g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-mongol")
    (synopsis "Short introduction to LaTeX, in Mongolian")
    (description
     "This package provides a translation of Oetiker's @emph{(Not so) short
introduction to LaTeX2e}.")
    (license license:lppl)))

(define-public texlive-lshort-persian
  (package
    (name "texlive-lshort-persian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-persian/")
             (base32
              "0b1b45nh2d3d3zv735dymgyllj6m8i57icbihjkl1im0nghrzklk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-persian")
    (synopsis "Persian (Farsi) introduction to LaTeX")
    (description
     "This package provides a Persian (Farsi) translation of Oetiker's
@emph{(Not so) short introduction to LaTeX2e}.")
    (license license:public-domain)))

(define-public texlive-lshort-polish
  (package
    (name "texlive-lshort-polish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-polish/")
             (base32
              "121y638k4f4pbjpa4q0n9qj2w57624q2d1v4jz09qh399fl5yk81")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-polish")
    (synopsis "Introduction to LaTeX in Polish")
    (description
     "This is the Polish translation of the @emph{(Not so) Short Introduction
to LaTeX2e}.")
    (license license:gpl2+)))

(define-public texlive-lshort-portuguese
  (package
    (name "texlive-lshort-portuguese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-portuguese/")
             (base32
              "0wg51rjcayiizkz0vvjkirrx19q8fbnfrwilgh13prlbpams1hsh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-portuguese")
    (synopsis "Introduction to LaTeX in Portuguese")
    (description
     "This is the Portuguese translation of a @emph{(Not So) Short
Introduction to LaTeX2e}.")
    (license license:public-domain)))

(define-public texlive-lshort-russian
  (package
    (name "texlive-lshort-russian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-russian/")
             (base32
              "02abh69xl43p56fcciyan4j0z4mqq2j7ynwazq1nywhz37d6zn7y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-russian")
    (synopsis "Russian introduction to LaTeX")
    (description "This package provides the Russian version of the @emph{Short
Introduction to LaTeX2e}.")
    (license license:gpl3+)))

(define-public texlive-lshort-slovak
  (package
    (name "texlive-lshort-slovak")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-slovak/")
             (base32
              "0b5gn95i32dyn8r7v2cdcz759fllp3b0zwx17adjs282n06vfymq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-slovak")
    (synopsis "Slovak introduction to LaTeX")
    (description
     "This package provides a Slovak translation of Oetiker's @emph{(Not So)
Short Introduction to LaTeX2e}.")
    (license license:lppl)))

(define-public texlive-lshort-slovenian
  (package
    (name "texlive-lshort-slovenian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-slovenian/")
             (base32
              "0cwjg0z5vr4x93bz1khwl27rk8k7kpjm978iyzn6w7gx3wi87zr0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-slovenian")
    (synopsis "Slovenian introduction to LaTeX")
    (description
     "This package provides a Slovenian translation of the @emph{(Not So)
Short Introduction to LaTeX2e}.")
    (license license:gpl3+)))

(define-public texlive-lshort-spanish
  (package
    (name "texlive-lshort-spanish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-spanish/")
             (base32
              "0ls50syrg3dl5dl5a3fi33cr9j990l2xr6pribn1vqglsqrh191l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-spanish")
    (synopsis "Short introduction to LaTeX, in Spanish")
    (description
     "This package provides a Spanish translation of the @emph{(Not So) Short
Introduction to LaTeX2e}.")
    (license license:gpl3+)))

(define-public texlive-lshort-thai
  (package
    (name "texlive-lshort-thai")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-thai/")
             (base32
              "16r9gx902a342q2mj570y269yw97yaj6hrbqrk4h49ihm695z30i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-thai")
    (synopsis "Introduction to LaTeX in Thai")
    (description
     "This is the Thai translation of the @emph{Short Introduction to LaTeX2e}.")
    (license license:public-domain)))

(define-public texlive-lshort-turkish
  (package
    (name "texlive-lshort-turkish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-turkish/")
             (base32
              "00r6pv4z4933jw072djdasd2wp5j05wghln62ga4g6y6jblf6zks")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-turkish")
    (synopsis "Turkish introduction to LaTeX")
    (description
     "This package provides a Turkish translation of Oetiker's @emph{(Not so)
short introduction to LaTeX2e}.")
    (license license:public-domain)))

(define-public texlive-lshort-ukr
  (package
    (name "texlive-lshort-ukr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-ukr/")
             (base32
              "1nsah1h3z3sy96a9x0mfdwby7pvvjwq7zxfv2s8nvsbvnn1al17s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-ukr")
    (synopsis "Ukrainian version of the LaTeX introduction")
    (description
     "This package provides the Ukrainian version of the @emph{Short
Introduction to LaTeX2e}.")
    (license license:gpl2+)))

(define-public texlive-lshort-vietnamese
  (package
    (name "texlive-lshort-vietnamese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lshort-vietnamese/")
             (base32
              "094lfry6cqvpk02c3acss6581mgb7j30fnja1b3qwzxmyxjdblwa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lshort-vietnamese")
    (synopsis "Vietnamese version of the LaTeX introduction")
    (description
     "This is the Vietnamese version of the @emph{Short Introduction to
LaTeX2e}.")
    (license license:lppl)))

(define-public texlive-lstbayes
  (package
    (name "texlive-lstbayes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lstbayes/"
                   "source/latex/lstbayes/"
                   "tex/latex/lstbayes/")
             (base32
              "1gd3zyq1z1n0ksmazky9dbal0qaiss2lgh7dh3021ckj7c3mwkmd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lstbayes")
    (synopsis "Listings language driver for Bayesian modeling languages")
    (description
     "The package provides language drivers for the listings package for
several languages not included in that package: BUGS, JAGS, and Stan.")
    (license license:lppl1.3+)))

(define-public texlive-macros2e
  (package
    (name "texlive-macros2e")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/macros2e/" "tex/latex/macros2e/")
             (base32
              "0vdw389gvwmpqs7ykm3vlyqbpwm45mgqasmqyxm7q9jgay3dn2iz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/macros2e")
    (synopsis "List of internal LaTeX2e macros")
    (description
     "This document lists the internal macros defined by the LaTeX2e base files,
which can also be useful to package authors.  The macros are hyper-linked to
their description in @code{source2e}.  For this to work both PDFs must be
inside the same directory.  This document is not yet complete in content and
format and may miss some macros.")
    (license license:lppl1.3c)))

(define-public texlive-mafr
  (package
    (name "texlive-mafr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mafr/" "tex/latex/mafr/")
             (base32
              "0bzmf36xy2ppd2bkc5lkcw43jangwn0w4scgr9il06d14lbw68yn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mafr")
    (synopsis "Mathematics in accord with French usage")
    (description
     "The package provides settings and macros for typesetting mathematics
with LaTeX in compliance with French usage.  It comes with two document
classes, @code{fiche} and @code{cours}, useful to create short high school
documents such as tests or lessons.  The documentation is in French.")
    (license license:gpl3+)))

(define-public texlive-matapli
  (package
    (name "texlive-matapli")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/matapli/" "tex/latex/matapli/")
             (base32
              "0khkgc80hbydnlciqr02ay88gazr4nxdq099pjgf1xcjlnlmnwcp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/matapli")
    (synopsis "Class for the French journal @emph{MATAPLI}")
    (description
     "This is a class for the French journal @emph{MATAPLI} of the Société de
Mathématiques Appliquées et Industrielles (SMAI).")
    (license license:lppl1.3c)))

(define-public texlive-math-into-latex-4
  (package
    (name "texlive-math-into-latex-4")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/math-into-latex-4/")
             (base32
              "0k11j92h9hpxnyciczknhl83b05avc0rqdnwn82ssqi1k3qixibd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/math-into-latex-4")
    (synopsis "Samples from @emph{(More) Math into LaTeX}, 4th Edition")
    (description
     "This package contains samples for the book @emph{(More) Math into LaTeX},
4th edition.")
    (license license:public-domain)))

(define-public texlive-mathcommand
  (package
    (name "texlive-mathcommand")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathcommand/"
                   "source/latex/mathcommand/"
                   "tex/latex/mathcommand/")
             (base32
              "1vm7k1p5d74vkqmpxdza4127qj7622w0vfr2bh51wb612dpps2a5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathcommand")
    (synopsis "@code{\\newcommand}-like commands for defining math macros")
    (description
     "This package provides functionalities for defining macros that have
different behaviors depending on whether in math or text mode, that absorb
Primes, Indices and Exponents (PIE) as extra parameters usable in the code;
and it offers some iteration facilities for defining macros with similar code.
The primary objective of this package is to be used together with the
knowledge package for a proper handling of mathematical notations.")
    (license license:lppl1.3+)))

(define-public texlive-mathcomp
  (package
    (name "texlive-mathcomp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathcomp/"
                   "source/latex/mathcomp/"
                   "tex/latex/mathcomp/")
             (base32
              "0a7y6r9ikasr9v48671ij40z31j0mxiliy1k3yg3ldbiggrjh07i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathcomp")
    (synopsis "Text symbols in maths mode")
    (description
     "This package provides a package which provides access to some
interesting characters of the Text Companion fonts (TS1 encoding) in maths
mode.")
    (license license:lppl)))

(define-public texlive-mathfixs
  (package
    (name "texlive-mathfixs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathfixs/"
                   "source/latex/mathfixs/"
                   "tex/latex/mathfixs/")
             (base32
              "069gcdc6mhf045cpg5dbd81ng8v7bhqjxwpg9dvz4qdpf508jvq0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathfixs")
    (synopsis "Fix various layout issues in math mode")
    (description
     "This is a LaTeX2e package to fix some odd behaviour in math mode such as
spacing around fractions and roots, math symbols within bold text as well as
capital Greek letters.  It also adds some related macros.")
    (license license:lppl1.3+)))

(define-public texlive-mathlig
  (package
    (name "texlive-mathlig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/mathlig/")
             (base32
              "0pyaqwr2h9knxf1axi55vm6wr9xj15d5j5pagb2011k3b830f91b")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathlig")
    (synopsis "Define maths ligatures")
    (description
     "The package defines character sequences that behave like ligatures, in
maths mode.")
    ;; The license is basically CC-BY.
    (license (license:fsf-free "file://tex/generic/mathlig/mathlig.tex"))))

(define-public texlive-mathpartir
  (package
    (name "texlive-mathpartir")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathpartir/"
                   "source/latex/mathpartir/"
                   "tex/latex/mathpartir/")
             (base32
              "1baadhdxs4rp1qijkwiki2f4w1faarsq3dqy62q7rxs4640mxqa1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathpartir")
    (synopsis
     "Typesetting sequences of math formulas, e.g., type inference rules")
    (description
     "The package provides macros for typesetting math formulas in mixed
horizontal and vertical mode, automatically as best fit.  It provides an
environment @code{mathpar} that behaves much as a loose centered paragraph
where words are math formulas, and spaces between them are larger and
adjustable.  It also provides a macro @code{\\inferrule} for typesetting
fractions where both the numerator and denominator may be sequences of
formulas that will be also typeset in a similar way.  It can typically be used
for typeseting sets of type inference rules or typing derivations.")
    (license license:gpl2)))

(define-public texlive-mathpunctspace
  (package
    (name "texlive-mathpunctspace")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathpunctspace/"
                   "tex/latex/mathpunctspace/")
             (base32
              "0kbsdbnhiwgxa1yznsknni7gvv7x96x02ir2vxmlmhph1j3wqx28")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathpunctspace")
    (synopsis "Control the space after punctuation in math expressions")
    (description
     "This package provides a mechanism to control the space after commas and
semicolons in mathematical expressions.")
    (license license:bsd-2)))

(define-public texlive-mathsemantics
  (package
    (name "texlive-mathsemantics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathsemantics/"
                   "tex/latex/mathsemantics/")
             (base32
              "06p4i9nx8sh3dv2nzq3vk1m36nshxgalr8c6660ns9kbhraprkbp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathsemantics")
    (synopsis "Semantic math commands in LaTeX")
    (description
     "This LaTeX package provides both syntactic and semantic helpers to
typeset mathematics in LaTeX.  The syntactic layer eases typesetting of
formulae in general, while the semantic layer provides commands like
@code{\\inner@{x@}@{y@}} to unify typesetting of inner products.  These not
only unify typesetting of math formulae but also allow to easily adapt
notation if a user prefers to.  The semantic layer is split into topics.")
    (license license:expat)))

(define-public texlive-maths-symbols
  (package
    (name "texlive-maths-symbols")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/maths-symbols/")
             (base32
              "0z83qf1rz84cr0b1zvwlacf24pc5r8dn1cxiiyl0xrqncl3279ka")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/maths-symbols")
    (synopsis "Summary of mathematical symbols available in LaTeX")
    (description
     "This package provides a predecessor of the comprehensive symbols list,
covering mathematical symbols available in standard @code{LaTeX} (including
the AMS symbols, if available at compile time).")
    (license license:lppl1.2+)))

(define-public texlive-matlab-prettifier
  (package
    (name "texlive-matlab-prettifier")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/matlab-prettifier/"
                   "source/latex/matlab-prettifier/"
                   "tex/latex/matlab-prettifier/")
             (base32
              "1mr3h2pwz5ghhy3k9c35c6q9k946qzmg7clldmlzlrq3cm685lsh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/matlab-prettifier")
    (synopsis "Pretty-print Matlab source code")
    (description
     "The package extends the facilities of the listings package, to
pretty-print Matlab and Octave source code. (Note that support of Octave
syntax is not complete.)")
    (license license:lppl1.3+)))

(define-public texlive-matrix-skeleton
  (package
    (name "texlive-matrix-skeleton")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/matrix-skeleton/"
                   "tex/latex/matrix-skeleton/")
             (base32
              "07mqmc0kli0azp2vlzm8q3lp1b70lyggm2hqnq0v9c0jlfhvj9j7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/matrix-skeleton")
    (synopsis
     "PGF/TikZ library that simplifies working with multiple matrix nodes")
    (description
     "The package provides a PGF/TikZ library that simplifies working with
multiple matrix nodes.  To do so, it correctly aligns groups of nodes with the
content of the whole matrix.  Furthermore, @code{matrix-skeleton} provides
rows and columns for easy styling.")
    (license license:isc)))

(define-public texlive-mattens
  (package
    (name "texlive-mattens")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mattens/" "source/latex/mattens/"
                   "tex/latex/mattens/")
             (base32
              "18v2hypd9vkxk3anixvgf16rmsjzq3apm6s7qxrkk4vyrgrahsnj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mattens")
    (synopsis "Matrices and tensor typesetting")
    (description
     "The @code{mattens} package contains the definitions to typeset matrices,
vectors and tensors as used in the engineering community for the
representation of common vectors and tensors such as forces, velocities,
moments of inertia, etc.")
    (license license:lppl1.3c)))

(define-public texlive-mecaso
  (package
    (name "texlive-mecaso")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mecaso/" "tex/latex/mecaso/")
             (base32
              "11h10mxjdmknvi8r4dnkhv5q2bzgckwaq7p3dziyxkibq1ciq622")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mecaso")
    (synopsis "Formulas frequently used in rigid body mechanics")
    (description
     "This package provides a number of formulas frequently used in rigid body
mechanics.  Since most of these formulas are long and tedious to write, this
package wraps them up in short commands.")
    (license license:gpl3+)))

(define-public texlive-membranecomputing
  (package
    (name "texlive-membranecomputing")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/membranecomputing/"
                   "tex/latex/membranecomputing/")
             (base32
              "1r5k8ipf435vvffr7da8nl2j14myfp102i5qf0yy0jczziddbq6z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/membranecomputing")
    (synopsis "Membrane Computing notation")
    (description
     "This is a LaTeX package for the Membrane Computing community.  It
comprises the definition of @samp{P} systems, rules and some concepts related
to languages and computational complexity usually needed for Membrane
Computing research.")
    (license license:lppl1.3+)))

(define-public texlive-memdesign
  (package
    (name "texlive-memdesign")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/memdesign/")
             (base32
              "0aij1b7l1kb2x44qn33m39k0kbhdrclmr25nmvzfn6yw42lh9fz7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/memdesign")
    (synopsis "Notes on book design")
    (description
     "@emph{A Few Notes on Book Design} provides an introduction to the
business of book design.  It is an extended version of what used to be the
first part of the @code{memoir} users manual.")
    (license license:lppl1.3+)))

(define-public texlive-memoirchapterstyles
  (package
    (name "texlive-memoirchapterstyles")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/memoirchapterstyles/")
             (base32
              "0jxd7sbh5vc3j5d5jd3zmyg58kwhy550l5z8q14b4msm00fp6z0a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/memoirchapterstyles")
    (synopsis "Chapter styles in @code{memoir} class")
    (description
     "This package provides a showcase of chapter styles available to users of
@code{memoir}: the six provided in the class itself, plus many from
elsewhere (by the present author and others).  The package's resources apply
only to @code{memoir}, but the package draws from a number of sources relating
to standard classes, including the @code{fncychap} package, and Vincent
Zoonekynd's tutorial on headings.")
    (license license:lppl)))

(define-public texlive-memorygraphs
  (package
    (name "texlive-memorygraphs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/memorygraphs/"
                   "tex/latex/memorygraphs/")
             (base32
              "03wsql3aq6327k905fz902il1acxcz2ik4adxfkl4vm1f1g045xn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/memorygraphs")
    (synopsis "TikZ styles to typeset graphs of program memory")
    (description
     "This package defines some TikZ styles and adds anchors to existing
styles that ease the declaration of memory graphs.  It is intended for graphs
that represent the memory of a computer program during its execution.")
    (license license:lppl1.3+)))

(define-public texlive-mendex-doc
  (package
    (name "texlive-mendex-doc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/mendex-doc/"
                   "makeindex/mendex-doc/"
                   "source/latex/mendex-doc/")
             (base32
              "096b1v9zzl3qm189paaxz16z4a1xgcj7l2bhdgvl2wqshsz9lx4p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mendex-doc")
    (synopsis "Documentation for Mendex index processor")
    (description
     "This package provides documentation for Mendex (Japanese index
processor).")
    (license license:bsd-3)))

(define-public texlive-messagepassing
  (package
    (name "texlive-messagepassing")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/messagepassing/"
                   "source/latex/messagepassing/"
                   "tex/latex/messagepassing/")
             (base32
              "0m0ig8rhg7y1gv59cg4ask7n24i6k3jwhci2didh87vh598jg9x1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/messagepassing")
    (synopsis "Draw diagrams to represent communication protocols")
    (description
     "This package provides an environment to easily draw diagrams to
represent communication protocols using message passing among processes.
Processes are represented as horizontal or vertical lines, and communications
as arrows between lines.  The package also provides multiple macros to
decorate those diagrams, for instance to annotate the diagram, to add crashes
to the processes, checkpoints, ...")
    (license license:lppl1.3+)))

(define-public texlive-metafont-beginners
  (package
    (name "texlive-metafont-beginners")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/metafont-beginners/")
             (base32
              "12hhvlnvh8dj1396242m6yi0341cina7sxrv7pwzqxzzahwdvmgm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metafont-beginners")
    (synopsis "Introductory tutorial for Metafont")
    (description
     "This package provides an old introduction to the use of Metafont, that
has stood the test of time.  It focuses on using the program, rather than
designing fonts, but does offer advice about understanding errors in other
people's fonts.")
    (license license:public-domain)))

(define-public texlive-metapost-examples
  (package
    (name "texlive-metapost-examples")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/metapost-examples/")
             (base32
              "1rslyjnw27b5br17cbf6mjjkcgyr49yav4kw12spm3vdwyzb7gxr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metapost-examples")
    (synopsis "Example drawings using MetaPost")
    (description
     "This package provides a few (hundred) example pictures drawn with MetaPost,
ranging from very simple (lines and circles) to rather intricate (uncommon
geometric transformations, fractals, bitmap, etc).")
    (license license:gpl1+)))

(define-public texlive-mex
  (package
    (name "texlive-mex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/mex/base/" "source/mex/base/"
                   "tex/mex/base/" "tex/mex/config/")
             (base32
              "0kc766cvvbcqrj60ncz4a105nrn454y5c2330y7s7jzh45dx8qsi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "mex" "pdfmex" "utf8mex")))
    (propagated-inputs
     (list texlive-enctex
           texlive-hyphen-complete
           texlive-knuth-lib
           texlive-pdftex
           texlive-pl
           texlive-plain
           texlive-tex
           texlive-tex-ini-files
           texlive-utf8mex))
    (home-page "https://ctan.org/pkg/mex")
    (synopsis "Polish formats for TeX")
    (description
     "MeX is an adaptation of Plain TeX (MeX) and LaTeX209 (LaMeX) formats to
the Polish language and to Polish printing customs.  It contains a complete
set of Metafont sources of Polish fonts, hyphenation rules for the Polish
language and sources of formats.")
    (license license:knuth)))

(define-public texlive-mgltex
  (package
    (name "texlive-mgltex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mgltex/" "source/latex/mgltex/"
                   "tex/latex/mgltex/")
             (base32
              "0lv18k5z59ayxm9z02pnfibhdblvl802nhmpxd7wg0fbl1sk886x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mgltex")
    (synopsis
     "High-quality graphics from MGL scripts embedded in LaTeX documents")
    (description
     "This package allows you to create high-quality publication-ready
graphics directly from MGL scripts embedded into your LaTeX document, using
the MathGL library.

MathGL is a fast and efficient library by Alexey Balakin for the creation of
high-quality publication-ready scientific graphics.  Although it defines
interfaces for many programming languages, it also implements its own
scripting language, called MGL, which can be used independently.")
    (license (list license:gpl3 license:cc-by-sa3.0))))

(define-public texlive-mhchem
  (package
    (name "texlive-mhchem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mhchem/" "tex/latex/mhchem/")
             (base32
              "1hmsl16l1vzhxy0iv8grbnpv83zffsrk6kzhgcaymdmigsv1i81b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-amsmath
           texlive-chemgreek
           texlive-graphics
           texlive-l3kernel
           texlive-l3packages
           texlive-tools))
    (home-page "https://ctan.org/pkg/mhchem")
    (synopsis
     "Typeset chemical formulae/equations and H and P statements")
    (description
     "The bundle provides three packages: The @code{mhchem} package provides
commands for typesetting chemical molecular formulae and equations.  The
@code{hpstatement} package provides commands for the official hazard
statements and precautionary statements (H and P statements) that are used to
label chemicals.  The @code{rsphrase} package provides commands for the
official Risk and Safety (R and S) Phrases that are used to label chemicals.")
    (license license:lppl1.3c)))

(define-public texlive-mhequ
  (package
    (name "texlive-mhequ")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mhequ/" "tex/latex/mhequ/")
             (base32
              "08k45mklj8ag5z3rmn9c15f6pgixz6pxlip4wp07q4l6xdzkk8fq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mhequ")
    (synopsis "Multicolumn equations, tags, labels, sub-numbering")
    (description
     "The @code{mhequ} style file simplifies creating multi-column equation
environments and tagging equations therein.  It supports sub-numbering of
blocks of equations, such as @samp{(1.2a)} and @samp{(1.2b)}, references to
each equation individually @samp{(1.2a)} or to the whole block @samp{(1.2)}.
The labels can be shown in draft mode.  The default behaviour is to show an
equation number if and only if the equation actually has a label, which
reduces visual clutter.")
    (license license:public-domain)))

(define-public texlive-miller
  (package
    (name "texlive-miller")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/miller/" "source/latex/miller/"
                   "tex/latex/miller/")
             (base32
              "062pzzzi72hrhvxqg8ay9bacqq1rcjry3ms3j9amzmz6zma3jrgw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/miller")
    (synopsis "Typeset Miller indices")
    (description
     "This package typesets Miller indices that are used in material science
with an easy syntax.  Minus signs are printed as bar above the corresponding
number.")
    (license license:lppl)))

(define-public texlive-mismath
  (package
    (name "texlive-mismath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mismath/" "source/latex/mismath/"
                   "tex/latex/mismath/")
             (base32
              "1wsy9219aq7q79f34vr2ykgnrlq8z057wkvjq1ca0194v8z2ypnf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mismath")
    (synopsis "Miscellaneous mathematical macros")
    (description
     "The package provides some mathematical macros to typeset: mathematical
constants @samp{e}, @samp{i}, @samp{p} in upright shape (automatically) as
recommended by ISO 80000-2, vectors with beautiful arrows and adjusted norm,
some standard operator names, improved spacings in mathematical formulas,
systems of equations and small matrices, @code{displaymath} in double columns
for long calculations.")
    (license license:lppl1.3+)))

(define-public texlive-mltex
  (package
    (name "texlive-mltex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mltex/" "tex/latex/mltex/"
                   "tex/mltex/config/")
             (base32
              "1ip0q5kqj6bg4jkginzljknbrd74ss4iky2gvlmf8nnrq06n89my")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "mllatex" "mltex")))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-complete
           texlive-knuth-lib
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-latexconfig
           texlive-plain
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/mltex")
    (synopsis "The MLTeX system")
    (description
     "MLTeX is a modification of TeX that allows the hyphenation of words with
accented letters using ordinary Computer Modern (CM) fonts.  The system is
distributed as a TeX change file.")
    (license license:knuth)))

(define-public texlive-multiobjective
  (package
    (name "texlive-multiobjective")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/multiobjective/"
                   "source/latex/multiobjective/"
                   "tex/latex/multiobjective/")
             (base32
              "0f5l6pg8877a7777vzlh91yxv2rliijgdhkm71fim5n66q0ym9y4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/multiobjective")
    (synopsis "Symbols for multiobjective optimisation etc")
    (description
     "The package provides a series of operators commonly used in papers
related to multiobjective optimisation, multiobjective evolutionary
algorithms, multicriteria decision making and similar fields.")
    (license license:lppl)))

(define-public texlive-mwcls
  (package
    (name "texlive-mwcls")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mwcls/" "source/latex/mwcls/"
                   "tex/latex/mwcls/")
             (base32
              "1pj1m08gh5zsahvzan6wq9v0lnir9zb4qvgkadsl6jm9ia8990yn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mwcls")
    (synopsis "Polish-oriented document classes")
    (description
     "@code{mwcls} is a set of document classes for LaTeX designed with Polish
typographical tradition in mind.  The classes include: @code{mwart} (which is
a replacement for @code{article}), @code{mwrep} (replacing @code{report}), and
@code{mwbk} (replacing @code{book}).

Most features present in standard classes work with @code{mwcls} classes.
Some extensions/exceptions include: sectioning commands allow for second
optional argument (it is possible to state different texts for running head
and for TOC), new environments @code{itemize*} and @code{enumerate*} for lists
with long items, page styles have variants for normal, opening, closing, and
blank pages.")
    (license license:lppl1.2+)))

(define-public texlive-mxedruli
  (package
    (name "texlive-mxedruli")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/mxedruli/"
                   "fonts/afm/public/mxedruli/"
                   "fonts/map/dvips/mxedruli/"
                   "fonts/source/public/mxedruli/"
                   "fonts/tfm/public/mxedruli/"
                   "fonts/type1/public/mxedruli/"
                   "tex/latex/mxedruli/")
             (base32
              "070lfw12mfimcwhkgb1hh092p8npmhpmba28rzzwfl1kmsmk99q5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/mxedruli")
    (synopsis "Pair of fonts for different Georgian alphabets")
    (description
     "This package provides two Georgian fonts, in both Metafont and Type
1 formats, which cover the Mxedruli and the Xucuri alphabets.")
    (license license:lppl)))

(define-public texlive-na-box
  (package
    (name "texlive-na-box")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/na-box/" "tex/xelatex/na-box/")
             (base32
              "1j02k0d4m23yackb1vn8pajxwkimkkrx9h512xs3hkxdi6qdwb73")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/na-box")
    (synopsis "Arabic-aware version of @code{pas-cours} package")
    (description
     "This is a modified version of the @code{pas-cours} package made
compatible with XeLaTeX and Polyglossia to write Arabic documents with fancy
boxed @code{theorem}-alike environments.")
    (license license:lppl)))

(define-public texlive-naive-ebnf
  (package
    (name "texlive-naive-ebnf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/naive-ebnf/"
                   "source/latex/naive-ebnf/"
                   "tex/latex/naive-ebnf/")
             (base32
              "0fi04awwvizb2p4lp90wl7syingnc7fwrhzwd20x82a9v89iy6pf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-filecontentsdef
           texlive-l3kernel
           texlive-pgfopts))
    (home-page "https://ctan.org/pkg/naive-ebnf")
    (synopsis "EBNF in Plain Text")
    (description
     "With the help of this LaTeX package, a context-free grammar (CFG) may be
rendered in a plain-text mode using a simplified Extended Backus-Naur
Form (EBNF) notation.")
    (license license:expat)))

(define-public texlive-namedtensor
  (package
    (name "texlive-namedtensor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/namedtensor/"
                   "tex/latex/namedtensor/")
             (base32
              "1bsphfy1k9kplfmhn8qcb2y90l5ga1281r5xds4jn73m319n0iq5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/namedtensor")
    (synopsis "Macros for named tensor notation")
    (description "This style file provides macros for named tensor notation.")
    (license license:expat)))

(define-public texlive-nanicolle
  (package
    (name "texlive-nanicolle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/nanicolle/"
                   "tex/xelatex/nanicolle/")
             (base32
              "0lzcsmy4iw0ch3w1g3h5b23hkzspi5q2gs406l4cihfmf30yiadk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nanicolle")
    (synopsis "Typesetting herbarium specimen labels")
    (description
     "This package provides a LaTeX class @file{nanicolle.cls} for typesetting
collection labels and identification labels in Chinese style or in western
style for plant herbarium specimens.  So far, documents using this class can
only be compiled with XeLaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-natded
  (package
    (name "texlive-natded")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/natded/" "tex/latex/natded/")
             (base32
              "01zfxh4ryjjv5qyvbs1pgwpcnq19rdrg3drd2gfx3c4ppqvwbxp4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/natded")
    (synopsis "Typeset natural deduction proofs")
    (description
     "The package provides commands to typeset proofs in the style used by Jaskowski,
or that of Kalish and Montague.")
    (license license:lppl1.3+)))

(define-public texlive-nath
  (package
    (name "texlive-nath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nath/" "tex/latex/nath/")
             (base32
              "0dq9hb3gbqak6406x8av9zig4pc7kxasa3ak0fr50hx4fvfa6v8q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nath")
    (synopsis "Natural mathematics notation")
    (description
     "Nath is a LaTeX style to separate presentation and content in
mathematical typography.  The style delivers a particular context-dependent
presentation on the basis of a rather coarse context-independent notation.
Highlighted features: depending on the context, the command @code{\\frac}
produces either built-up or case or solidus fractions, with parentheses added
whenever required for preservation of the mathematical meaning; delimiters
adapt their size to the material enclosed, rendering @code{\\left} and
@code{\\right} almost obsolete.")
    (license license:gpl3+)))

(define-public texlive-nchairx
  (package
    (name "texlive-nchairx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nchairx/" "source/latex/nchairx/"
                   "tex/latex/nchairx/")
             (base32
              "0cgp22c26afdpb5pfk5ljp1fr0wvlkf04viw9zbc4gss8hi3gqi5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nchairx")
    (synopsis "Maths macros from chair X of Wurzburg University")
    (description
     "This package was developed by members of the chair for mathematical
physics at the University of Wurzburg as a collection of macros and predefined
environments for quickly creating nice mathematical documents.")
    (license license:lppl1.3+)))

(define-public texlive-nevelok
  (package
    (name "texlive-nevelok")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nevelok/" "source/latex/nevelok/"
                   "tex/latex/nevelok/")
             (base32
              "02g60npy2hp181vnzpna7h2544y7bnbi9y6srpm7kjmd6immm7qn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nevelok")
    (synopsis "LaTeX package for automatic definite articles for Hungarian")
    (description
     "This LaTeX package provides automatic definite articles for Hungarian.")
    (license license:lppl1.3+)))

(define-public texlive-nicematrix
  (package
    (name "texlive-nicematrix")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nicematrix/"
                   "source/latex/nicematrix/"
                   "tex/latex/nicematrix/")
             (base32
              "0pvl6dj152n38phk8vpknhk253r8vdkm64wg55zk6fa4d4a158fy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nicematrix")
    (synopsis "Improve the typesetting of mathematical matrices with PGF")
    (description
     "This package is based on the package @code{array}.  It creates PGF/TikZ
nodes under the cells of the array and uses these nodes to provide
functionalities to construct tabulars, arrays and matrices.  Among the
features, it provides: continuous dotted lines for the mathematical matrices;
exterior rows and columns (so-called border matrices); control of the width of
the columns; tools to color rows and columns with a good PDF result; blocks of
cells; etc.")
    (license license:lppl1.3+)))

(define-public texlive-nuc
  (package
    (name "texlive-nuc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nuc/" "tex/latex/nuc/")
             (base32
              "006c9k3nix0y8nys3sf6r1sjzswhc0kwxhm01q0sk2pzih981w37")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nuc")
    (synopsis "Notation for nuclear isotopes")
    (description
     "This package provides a simple package providing nuclear sub- and
superscripts as commonly used in radiochemistry, radiation science, and
nuclear physics and engineering applications.  Isotopes which have Z with more
digits than A require special spacing to appear properly; this spacing is
supported in the package.")
    (license license:lppl)))

(define-public texlive-njurepo
  (package
    (name "texlive-njurepo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/njurepo/" "source/latex/njurepo/"
                   "tex/latex/njurepo/")
             (base32
              "03dli7kk1h8kycbj83h2gy434zl6wvj4xz0lli91b1h8k59i8fv4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/njurepo")
    (synopsis "Reports for Nanjing University")
    (description
     "This LaTeX document class provides a thesis template for Nanjing
University in order to make it easy to write experiment reports and homework
for the bachelor's curriculum.")
    (license license:lppl1.3c)))

(define-public texlive-nucleardata
  (package
    (name "texlive-nucleardata")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nucleardata/"
                   "source/latex/nucleardata/"
                   "tex/latex/nucleardata/")
             (base32
              "0sdqgb38yyk3bhjgfxy3gxvfmpc0y9s60hhig5rry7kydm2w5jfc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nucleardata")
    (synopsis "Provides data about atomic nuclides for documents")
    (description
     "The package provides data and commands for including nuclear and atomic
mass and energy data in LaTeX documents.  It uses the PythonTeX package and
requires @command{pythontex} to be called with the TeX file as the argument.")
    (license license:lppl1.3+)))

(define-public texlive-numberpt
  (package
    (name "texlive-numberpt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/numberpt/"
                   "source/latex/numberpt/"
                   "tex/latex/numberpt/")
             (base32
              "14515d1l9d9pxs333f8m99mclaf8mklrs14h2w3bdk5m37m7pv8i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/numberpt")
    (synopsis "Counters spelled out in Portuguese")
    (description
     "This package defines commands to display counters spelled out in Portuguese.
Options are offered to select variations in the spelling of @samp{14}, or
Brazilian vs. European Portuguese forms in the spelling of @samp{16},
@samp{17}, and @samp{19}.")
    (license license:lppl1.3c)))

(define-public texlive-numerica
  (package
    (name "texlive-numerica")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/numerica/" "tex/latex/numerica/")
             (base32
              "1dx2nl8p910m8hm7jr9zh6kbpyyxgvz15ya7ppb2d7ilybfg3qqv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/numerica")
    (synopsis "Numerically evaluate mathematical expressions in LaTeX form")
    (description
     "This package defines a command to wrap around a mathematical expression
in its LaTeX form and, once values are assigned to variables, numerically
evaluate it.  The intent is to avoid the need to modify the LaTeX form of the
expression being evaluated.  For programs with a preview facility like LyX, or
compile-as-you-go systems, interactive back-of-envelope calculations and
numerical exploration are possible within the document being worked on.")
    (license license:lppl1.3c)))

(define-public texlive-numerica-plus
  (package
    (name "texlive-numerica-plus")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/numerica-plus/"
                   "tex/latex/numerica-plus/")
             (base32
              "070c2v4y6zwjbq6ydczbl1d86yzv5nvdw9grgcpl7kvf6w8i2d9d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/numerica-plus")
    (synopsis "Iteration and recurrence relations")
    (description
     "The package defines commands to iterate functions of a single variable,
find fixed points, zeros and extrema of such functions, and calculate the
terms of recurrence relations.")
    (license license:lppl1.3c)))

(define-public texlive-numerica-tables
  (package
    (name "texlive-numerica-tables")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/numerica-tables/"
                   "tex/latex/numerica-tables/")
             (base32
              "0g438l2sxij5s8zg6b60w8jvy2jpa2f0s14gjg4f8pq7lf6vk9gj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/numerica-tables")
    (synopsis "Create multi-column tables of mathematical functions")
    (description
     "The package defines a command to create possibly multi-column tables of
mathematical function values.")
    (license license:lppl1.3c)))

(define-public texlive-objectz
  (package
    (name "texlive-objectz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/objectz/" "source/latex/objectz/"
                   "tex/latex/objectz/")
             (base32
              "0a10ajlpmx6gfg4h9rvwf0q7zkb843pl5xfcsd9pzfg33245wbrz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/objectz")
    (synopsis "Macros for typesetting Object Z")
    (description
     "The package will typeset both Z and Object-Z specifications.")
    (license license:lppl)))

(define-public texlive-omega
  (package
    (name "texlive-omega")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/omega/base/"
                   "dvips/omega/"
                   "fonts/afm/public/omega/"
                   "fonts/map/dvips/omega/"
                   "fonts/ofm/public/omega/"
                   "fonts/ovf/public/omega/"
                   "fonts/ovp/public/omega/"
                   "fonts/tfm/public/omega/"
                   "fonts/type1/public/omega/"
                   "omega/ocp/char2uni/"
                   "omega/ocp/misc/"
                   "omega/ocp/omega/"
                   "omega/ocp/uni2char/"
                   "omega/otp/char2uni/"
                   "omega/otp/misc/"
                   "omega/otp/omega/"
                   "omega/otp/uni2char/"
                   "tex/generic/encodings/"
                   "tex/generic/omegahyph/"
                   "tex/plain/omega/")
             (base32
              "1gma5angnq5wdxianz0ml7y9jh04lsq9ksspykan06p0cp1bnmjc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/omega")
    (synopsis "Wide-character-set extension of TeX")
    (description
     "This package provides a development of TeX, which deals in multi-octet
Unicode characters, to enable native treatment of a wide range of languages
without changing character-set.  Work on Omega has ceased; its compatible
successor is Aleph, which is itself also in major maintenance mode only.
Ongoing projects developing Omega (and Aleph) ideas include Omega-2 and
LuaTeX.")
    (license license:gpl3+)))

(define-public texlive-omegaware
  (package
    (name "texlive-omegaware")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/odvicopy.1"
                   "doc/man/man1/odvicopy.man1.pdf"
                   "doc/man/man1/odvitype.1"
                   "doc/man/man1/odvitype.man1.pdf"
                   "doc/man/man1/ofm2opl.1"
                   "doc/man/man1/ofm2opl.man1.pdf"
                   "doc/man/man1/opl2ofm.1"
                   "doc/man/man1/opl2ofm.man1.pdf"
                   "doc/man/man1/otangle.1"
                   "doc/man/man1/otangle.man1.pdf"
                   "doc/man/man1/otp2ocp.1"
                   "doc/man/man1/otp2ocp.man1.pdf"
                   "doc/man/man1/outocp.1"
                   "doc/man/man1/outocp.man1.pdf"
                   "doc/man/man1/ovf2ovp.1"
                   "doc/man/man1/ovf2ovp.man1.pdf"
                   "doc/man/man1/ovp2ovf.1"
                   "doc/man/man1/ovp2ovf.man1.pdf")
             (base32
              "06kzz0342h6vvc32ydrzgpqsdqv5l0jbd5finr43fmzqi5jnswil")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/omega")
    (synopsis "Documentation for Omega executables")
    (description
     "This package provides the documentation for Omega executables.")
    (license license:gpl3+)))

(define-public texlive-oplotsymbl
  (package
    (name "texlive-oplotsymbl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/oplotsymbl/"
                   "tex/latex/oplotsymbl/")
             (base32
              "0kbkxy18yq7990rbbm8b8ky9dyvxknzhczkfa9ki93jap8hwac2r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/oplotsymbl")
    (synopsis "Some symbols which are not easily available")
    (description
     "This package is named oPlotSymbl and it includes symbols, which are not
easily available.  Especially, these symbols are used in scientific plots, but
the potential user is allowed to use them in other ways.")
    (license license:lppl1.3+)))

(define-public texlive-ordinalpt
  (package
    (name "texlive-ordinalpt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ordinalpt/"
                   "source/latex/ordinalpt/"
                   "tex/latex/ordinalpt/")
             (base32
              "02hsl021gd23qrfm3myazg606lmp149dmpss3vyx93dyqcg8axbr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ordinalpt")
    (synopsis "Counters as ordinal numbers in Portuguese")
    (description
     "The package provides a counter style (like @code{\\arabic},
@code{\\alph} and others) which produces output strings like
@samp{primeiro} (``first'' in Portuguese), @samp{segundo}, (``second''), and
so on up to 1999th.  Separate counter commands are provided for different
letter case variants, and for masculine and feminine gender inflections.")
    (license license:lppl)))

(define-public texlive-ot-tableau
  (package
    (name "texlive-ot-tableau")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ot-tableau/"
                   "tex/latex/ot-tableau/")
             (base32
              "1f4pxs7k6zv7wk7v3739wznpbrmbihw5hrg5y7l3r0hh71rj9ipj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ot-tableau")
    (synopsis "Optimality Theory tableaux in LaTeX")
    (description
     "The package makes it easy to create beautiful optimality-theoretic tableaux.
The LaTeX source is visually very similar to a formatted tableau, which makes
working with the source code painless (well, less painful).  A variety of
stylistic variants are available to suit personal taste.")
    (license license:lppl1.3+)))

(define-public texlive-otibet
  (package
    (name "texlive-otibet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/otibet/"
                   "fonts/ofm/public/otibet/"
                   "fonts/ovf/public/otibet/"
                   "fonts/ovp/public/otibet/"
                   "fonts/source/public/otibet/"
                   "fonts/tfm/public/otibet/"
                   "omega/ocp/otibet/"
                   "omega/otp/otibet/"
                   "source/latex/otibet/"
                   "tex/latex/otibet/")
             (base32
              "0cman22brlm8qklb60mzq8f6c9kmdspv3zfg4s5p0lj9sf03bb6c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/otibet")
    (synopsis "Support for Tibetan using Omega")
    (description "This package provides support for Tibetan using Omega.")
    ;; Per "unidoc.tex": "this package is freely distributable under the GPL
    ;; Version~?.? or any later one."
    (license license:gpl1+)))

(define-public texlive-oubraces
  (package
    (name "texlive-oubraces")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/oubraces/" "tex/latex/oubraces/")
             (base32
              "0kh2acj4420cxd5x5y3dnfkdfqp5m70d16kiwz5b0f095af42v1g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/oubraces")
    (synopsis "Braces over and under a formula")
    (description
     "This package provides a means to interleave @code{\\overbrace} and
@code{\\underbrace} in the same formula.")
    ;; Library states: "Redistribution and use, with or without modification,
    ;; are permitted provided that the above copyright notice and this
    ;; condition for use are retained".
    (license (license:fsf-free "file://tex/latex/oubraces/oubraces.sty"))))

(define-public texlive-overarrows
  (package
    (name "texlive-overarrows")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/overarrows/"
                   "source/latex/overarrows/"
                   "tex/latex/overarrows/")
             (base32
              "1zr1qq6g3zfabz4x37bc2ajlbrkdlskk99144kqwkvmrwr9nxpww")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/overarrows")
    (synopsis "Custom extensible arrows over math expressions")
    (description
     "This package provides a LaTeX package to create custom arrows over math
expressions, mainly for vectors (but arrows can as well be drawn below).
Arrows stretch with content, scale with math styles, and have a correct
kerning when a subscript follows.  Some predefined commands are also
provided.")
    (license license:lppl1.3c)))

(define-public texlive-padauk
  (package
    (name "texlive-padauk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/padauk/"
                   "fonts/truetype/public/padauk/")
             (base32
              "0yn5w8bkcf9ihqy4v2zq4yc74d2d3dc1c6dcissaa6pcdj4z9r9l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/padauk")
    (synopsis
     "High-quality TrueType font for languages using the Myanmar script")
    (description
     "Padauk is a Unicode-based font family with broad support for writing
systems that use the Myanmar script.")
    (license license:silofl1.1)))

(define-public texlive-pascaltriangle
  (package
    (name "texlive-pascaltriangle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pascaltriangle/"
                   "tex/latex/pascaltriangle/")
             (base32
              "1g5y02gcgwhdq168n7d33plfhfp83zq97vjrfyz8ldlc7vncdnlh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pascaltriangle")
    (synopsis "Draw beautiful Pascal (Yanghui) triangles")
    (description
     "This LaTeX3 package based on TikZ helps to generate beautiful
Pascal (Yanghui) triangles.  It provides a unique drawing macro
@code{\\pascal} which can generate isosceles or right-angle triangles
customized by means of different @code{\\pascal} macro options or the
@code{\\pascalset} macro.")
    (license license:lppl1.3c)))

(define-public texlive-patgen2-tutorial
  (package
    (name "texlive-patgen2-tutorial")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/patgen2-tutorial/")
             (base32
              "016bx1rp8kpvlywg0yafhbbhlzw4zxdcbdrd5525vffn6fyp9fi3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/patgen2-tutorial")
    (synopsis "Tutorial on the use of Patgen 2")
    (description
     "This document describes the use of Patgen 2 to create hyphenation
patterns for wide ranges of languages.")
    (license license:lppl1.3c)))

(define-public texlive-perfectcut
  (package
    (name "texlive-perfectcut")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/perfectcut/"
                   "tex/latex/perfectcut/")
             (base32
              "13lclcf5aynbivhlsgnssi36dgacmyjl3rmr0i8s3az5941bsyfh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/perfectcut")
    (synopsis
     "Nested delimiters that consistently grow regardless of the contents")
    (description
     "This package defines the command @code{\\perfectcut#1#2} which displays
a bracket @samp{<#1||#2>}.  Various other delimiters are similarly
defined (parentheses, square brackets ...).  The effect of these commands is
to let the delimiters grow according to the number of nested
@code{\\perfectcommands} (regardless of the size of the contents).

The package was originally intended for solving a notational issue for
direct-style continuation calculi in proof theory.  For general use, the
package also defines commands for defining other sorts of delimiters which
will behave in the same way.  The package also offers a robust
reimplementation of @code{\\big}, @code{\\bigg}, etc.")
    (license license:lppl1.3+)))

(define-public texlive-persian-bib
  (package
    (name "texlive-persian-bib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/persian-bib/"
                   "bibtex/csf/persian-bib/"
                   "doc/xelatex/persian-bib/")
             (base32
              "18x592g8y1i8kw724an65q84jj91cam5qvwp9mgnhqpwh3gjflpw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/persian-bib")
    (synopsis "Persian translations of classic BibTeX styles")
    (description
     "This package provides BibTeX styles modified for Persian documents
prepared with XePersian (which the present package depends on).  The Persian
@file{.bst} files can simultaneously handle both Latin and Persian references.
A file @file{p1256fa.csf} is provided for correct sorting of Persian
references and three fields LANGUAGE, TRANSLATOR and AUTHORFA are defined.")
    (license license:lppl1.3+)))

(define-public texlive-pfdicons
  (package
    (name "texlive-pfdicons")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pfdicons/" "tex/latex/pfdicons/")
             (base32
              "16xdy0ah7za1gr63w1pdfvbq8x4fkin7q0yfpml7y4wv7m1qxqgc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pfdicons")
    (synopsis "Draw process flow diagrams in chemical engineering")
    (description
     "This package provides TikZ shapes to represent commonly encountered unit
operations for depiction in process flow diagrams (PFDs) and, to a lesser
extent, process and instrumentation diagrams (PIDs).  The package was designed
with undergraduate chemical engineering students and faculty in mind, and the
number of units provided should cover--in Turton's estimate--about 90 percent
of all fluid processing operations.")
    (license license:lppl1.3c)))

(define-public texlive-physconst
  (package
    (name "texlive-physconst")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/physconst/"
                   "source/latex/physconst/"
                   "tex/latex/physconst/")
             (base32
              "1jrhsycm9fp4crhy4g9i4hn7wll85fczwmvxvlzgkzi249zcssm9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/physconst")
    (synopsis "Macros for commonly used physical constants")
    (description
     "This package consists of several macros that are shorthand for a variety
of physical constants, e.g. the speed of light.  The constants can be used in
two forms, the most accurate available values, or versions that are rounded to
3 significant digits for use in typical classroom settings, homework
assignments, etc.  Most constants are taken from CODATA 2018, with the
exception of the astronomical objects, whose values are taken from
International Astronomical Union specified values.  Constants that are derived
from true constants, e.g. the fine structure constant, have been calculated
using the accepted values of the fundamental constants.")
    (license license:lppl1.3c)))

(define-public texlive-physics2
  (package
    (name "texlive-physics2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/physics2/" "tex/latex/physics2/")
             (base32
              "03xq3cvyv4d01kmk4p14qkvyrfs583jlrjcbn9vy66gk6gcailih")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/physics2")
    (synopsis "Macros for typesetting math faster and more simply")
    (description
     "The @code{physics2} package defines commands for typesetting math
formulae faster andmore simply.  @code{physics2} is a modularized package,
each module provides its own function.  You can load modules separately after
loading @code{physics2}.

Modules of physics provide the following supports:
@itemize
@item automatic braces,
@item Dirac bracket notation,
@item easy way to typeset diagonal matrices and matrices with similar entries,
@item double cross and double dot (binary) operators for tensors.
@end itemize")
    (license license:lppl1.3c)))

(define-public texlive-physunits
  (package
    (name "texlive-physunits")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/physunits/"
                   "source/latex/physunits/"
                   "tex/latex/physunits/")
             (base32
              "139qcg10879q17l84kqh8x1rzp8bgdcyd4iaxwgl4qlnrkg5rbl5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/physunits")
    (synopsis "Macros for commonly used physical units")
    (description
     "This package provides a collection of macros to simplify using physical units
(e.g., @samp{m} for meters, @samp{J} for joules, etc.), especially in math
mode.  All major SI units are included, as well as some @acronym{CGS,
Centimetre–Gram–Second} units used in astronomy.")
    (license license:lppl1.3c)))

(define-public texlive-pinoutikz
  (package
    (name "texlive-pinoutikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pinoutikz/"
                   "tex/latex/pinoutikz/")
             (base32
              "1kqdvldrr7r0jsi2sd8rzqcgwfdy0p9ixqcrwg2k94dcs6ad9mhy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pinoutikz")
    (synopsis "Draw chip pinouts with TikZ")
    (description
     "The package provides a set of macros for typesetting electronic chip pinouts.
It is designed as a tool that is easy to use, with a lean syntax, native to
LaTeX, and directly supporting PDF output format.")
    (license license:lppl1.3c)))

(define-public texlive-pm-isomath
  (package
    (name "texlive-pm-isomath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pm-isomath/"
                   "source/latex/pm-isomath/"
                   "tex/latex/pm-isomath/")
             (base32
              "1a3qsv8x1pj2fd8hdbds6skvda9hpaph0a3hakf61xngc7q4ymxn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pm-isomath")
    (synopsis "Poor man ISO math for pdfLaTeX users")
    (description
     "This small package realizes a poor man approximation of the ISO
regulations for physical sciences and technology.  Contrary to other more
elegant solutions, it does not load any math alphabet, since pdfLaTeX can use
only a maximum of such alphabets.  The necessary user macros are defined for
typsetting common math symbols that require special ISO treatment.")
    (license license:lppl1.3c)))

(define-public texlive-polexpr
  (package
    (name "texlive-polexpr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/polexpr/"
                   "tex/generic/polexpr/")
             (base32
              "09lryzizy59aaq92m2rzryxf0q0b9wqhrm258q1kqgm0sd2z6pn3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/polexpr")
    (synopsis "Parser for polynomial expressions")
    (description
     "The package provides a parser @code{\\poldef} of algebraic polynomial
expressions.  Once defined, a polynomial is usable by its name either as
a numerical function in @code{\\xintexpr} or @code{\\xinteval}, or for
additional polynomial definitions, or as argument to the package macros.  The
localization of real roots to arbitrary precision as well as the determination
of all rational roots is implemented via such macros.")
    (license license:lppl1.3c)))

(define-public texlive-prftree
  (package
    (name "texlive-prftree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/prftree/" "tex/latex/prftree/")
             (base32
              "1h5cgk0jsdngmhzr90910fqyvnvabbpicwskan6yay7h8iqqmxvf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/prftree")
    (synopsis "Macros for building proof trees")
    (description
     "This package provides a package to typeset proof trees for natural
deduction calculi, sequent-like calculi, and similar.")
    (license license:gpl3+)))

(define-public texlive-principia
  (package
    (name "texlive-principia")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/principia/"
                   "tex/latex/principia/")
             (base32
              "1pq9plcp0zp5a4nhz80kbkhbg00axp10p20r1bwq4ck7giwci3jf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/principia")
    (synopsis "Notations for typesetting the @emph{Principia Mathematica}")
    (description
     "This package supports typesetting the Peanese notation in Volume I of
Whitehead and Russell's 1910 @emph{Principia Mathematica}.")
    (license license:lppl1.3c)))

(define-public texlive-proba
  (package
    (name "texlive-proba")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/proba/" "source/latex/proba/"
                   "tex/latex/proba/")
             (base32
              "0ym6szixg2dl17l07kdqmyah6pi6hn68ckr95xmimqhv8ib124kj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/proba")
    (synopsis "Shortcuts commands to symbols used in probability texts")
    (description
     "This package includes some of the most often used commands in
probability texts, e.g., probability, expectation, variance, etc.  It also
includes some short commands for set (blackboard) or
filtrations (calligraphic).")
    (license license:lppl)))

(define-public texlive-profcollege
  (package
    (name "texlive-profcollege")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/profcollege/"
                   "metapost/profcollege/"
                   "tex/latex/profcollege/")
             (base32
              "06bj5crnqslqlg2dkh43b30jvdvknblg8l4fri15gpdx1z5k1d6h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/profcollege")
    (synopsis "LaTeX package for French maths teachers in college")
    (description
     "This package provides some commands to help French mathematics teachers
for 11-16 years olds.")
    (license license:lppl1.3c)))

(define-public texlive-proflabo
  (package
    (name "texlive-proflabo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/proflabo/" "tex/latex/proflabo/")
             (base32
              "0208sjybqgvd7xrrnc49d31cpvd0bfjyjamfsyzi6yb0fhsxd7x7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/proflabo")
    (synopsis "Draw laboratory equipment")
    (description
     "This package was developed to help French chemistry teachers to create
drawings (using TikZ) for laboratory stuff.")
    (license license:lppl)))

(define-public texlive-proflycee
  (package
    (name "texlive-proflycee")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/proflycee/"
                   "tex/latex/proflycee/")
             (base32
              "0kvwdppbw4gmdfa90blgj1gxv03clfx21nahdgvzk9i2dyccfllv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/proflycee")
    (synopsis "LaTeX package for French maths teachers in high school")
    (description
     "This package provides some commands to help French mathematics teachers
for 15-18 years olds.")
    (license license:lppl1.3c)))

(define-public texlive-proof-at-the-end
  (package
    (name "texlive-proof-at-the-end")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/proof-at-the-end/"
                   "source/latex/proof-at-the-end/"
                   "tex/latex/proof-at-the-end/")
             (base32
              "1wzkzjja3h12z9ib0p171k6ygbyvm51m139vvlaqmv7201ydvps0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/proof-at-the-end")
    (synopsis "Move proofs to appendix")
    (description
     "This package aims to provide a way to easily move proofs to the appendix.
You can (among other things) move proofs to different places/sections, create
links from theorems to proofs, restate theorems, add comments in appendix...")
    (license license:lppl1.3+)))

(define-public texlive-prooftrees
  (package
    (name "texlive-prooftrees")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/prooftrees/"
                   "tex/latex/prooftrees/")
             (base32
              "1nrzir2w46w3ar4irip9f201ii4x3187zgjamx8cq8ywy878xvyj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/prooftrees")
    (synopsis "Forest-based proof trees (symbolic logic)")
    (description
     "The package supports drawing proof trees of the kind often used in
introductory logic classes, especially those aimed at students without strong
mathemtical backgrounds.  Hodges (1991) is one example of a text which uses
this system.  When teaching such a system it is especially useful to annotate
the tree with line numbers, justifications and explanations of branch
closures.  The package provides a single environment, @code{prooftree}, and
a variety of tools for annotating, customising and highlighting such trees.
A cross-referencing system is provided for trees which cite line numbers in
justifications for proof lines or branch closures.")
    (license license:lppl1.3+)))

(define-public texlive-pseudo
  (package
    (name "texlive-pseudo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pseudo/" "tex/latex/pseudo/")
             (base32
              "0dc97v66hilgnl9m7rbr737lb4vy08fwdjs4ldcvvmrk2da026xb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pseudo")
    (synopsis "Straightforward pseudocode")
    (description
     "The package permits writing pseudocode without much fuss and with quite
a bit of configurability.  Its main environment combines aspects of
enumeration, tabbing and tabular for nonintrusive line numbering, indentation
and highlighting, and there is functionality for typesetting common syntactic
elements such as keywords, identifiers, and comments.")
    (license license:expat)))

(define-public texlive-pseudocode
  (package
    (name "texlive-pseudocode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pseudocode/"
                   "tex/latex/pseudocode/")
             (base32
              "180m5yja3wkdnpfz0qx9m031qmhqyjjjgxynm3v4y8fz9jz7vidq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pseudocode")
    (synopsis "LaTeX environment for specifying algorithms in a natural way")
    (description
     "This package provides the environment @code{pseudocode} for describing
algorithms in a natural manner.")
    (license license:lppl)))

(define-public texlive-psizzl
  (package
    (name "texlive-psizzl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/otherformats/psizzl/base/"
                   "source/psizzl/base/" "tex/psizzl/base/"
                   "tex/psizzl/config/")
             (base32
              "07h8raq2k80ycvsaaaxaaczwwnhkxdbnvnr52mihr8dyih5s7jns")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/psizzl")
    (synopsis "TeX format for physics papers")
    (description
     "PSIZZL is a TeX format for physics papers written at SLAC and used at
several other places.  It dates from rather early in the development of TeX82;
as a result, some of the descriptions of limitations look rather quaint to
modern eyes.")
    (license license:lppl)))

(define-public texlive-pythonhighlight
  (package
    (name "texlive-pythonhighlight")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pythonhighlight/"
                   "tex/latex/pythonhighlight/")
             (base32
              "1grvq2sih8klkvzgyrc4fpalv7q670l9q00vs8293n698bhmn72g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pythonhighlight")
    (synopsis
     "Highlighting of Python code, based on the @code{listings} package")
    (description
     "This package allows highlighting of Python code, based on the
@code{listings} package.")
    (license license:bsd-3)))

(define-public texlive-qsharp
  (package
    (name "texlive-qsharp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/qsharp/" "source/latex/qsharp/"
                   "tex/latex/qsharp/")
             (base32
              "104asd1z3n7yqpq2midca2sjjxbbr0c9ngaqncj8zzb0i7ky19v4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/qsharp")
    (synopsis "Syntax highlighting for the Q# language")
    (description
     "The package provides syntax highlighting for the Q# language,
a domain-specific language for quantum programming.")
    (license license:lppl1.3c)))

(define-public texlive-rank-2-roots
  (package
    (name "texlive-rank-2-roots")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rank-2-roots/"
                   "tex/latex/rank-2-roots/")
             (base32
              "04mjbq1nyv9jq0xx6zdkr6qz94j46b1xw7wza0r8f8s33q3q6jbb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rank-2-roots")
    (synopsis "Draw (mathematical) rank 2 root systems")
    (description
     "This package concerns mathematical drawings arising in representation
theory.  The purpose of this package is to ease drawing of rank 2 root
systems, with Weyl chambers, weight lattices, and parabolic subgroups.")
    (license license:lppl1.3c)))

(define-public texlive-rbt-mathnotes
  (package
    (name "texlive-rbt-mathnotes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rbt-mathnotes/"
                   "tex/latex/rbt-mathnotes/")
             (base32
              "12zhnciww00z4rkxp2pr2l31nwgsp10h38pla5jqgicvvz77x67c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rbt-mathnotes")
    (synopsis
     "Rebecca Turner's personal macros and styles for typesetting mathematics notes")
    (description
     "This package includes styles for typesetting mathematics notes, classes
for typesetting homework assignments, and formula cheat sheets for exams.")
    (license license:lppl1.3c)))

(define-public texlive-rec-thy
  (package
    (name "texlive-rec-thy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rec-thy/" "tex/latex/rec-thy/")
             (base32
              "1hnh371kvp2m98gg01cnqqia8gp6m0rvblff53sq86ihcij8ifz9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rec-thy")
    (synopsis "Commands to typeset recursion theory papers")
    (description
     "This package is designed to help mathematicians publishing papers in the
area of recursion theory (aka Computability Theory) easily use standard
notation.  This includes easy commands to denote Turing reductions, Turing
functionals, c.e.@: sets, stagewise computations, forcing and syntactic
classes.")
    (license license:public-domain)))

(define-public texlive-resolsysteme
  (package
    (name "texlive-resolsysteme")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/resolsysteme/"
                   "tex/latex/resolsysteme/")
             (base32
              "0g51cmjd5gs0p198sb8v95l8jra6cv6smz2068b1pdpv1fqpmjfv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/resolsysteme")
    (synopsis "Work on linear systems using xint or pyluatex")
    (description
     "This package provides some commands (in French) to perform calculations
on small (2x2 or 3x3 or 4x4) linear systems, with @code{xint} or
@code{pyluatex}:

@itemize
@item @code{\\DetMatrice} or @code{\\DetMatricePY} to diplay the determinant
of a matrix;
@item @code{\\MatriceInverse} or @code{\\MatriceInversePY} to display the
inverse of a matrix;
@item @code{\\SolutionSysteme} or @code{\\SolutionSystemePY} to display the
solution of a linear system;
@item @dots{}
@end itemize")
    (license license:lppl1.3c)))

(define-public texlive-rest-api
  (package
    (name "texlive-rest-api")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rest-api/"
                   "source/latex/rest-api/"
                   "tex/latex/rest-api/")
             (base32
              "1yv81yisaqkxnq33803z7kx3rk6hsdnyza0dzgqmkf6x1jmsnlp9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rest-api")
    (synopsis "Describing a REST API")
    (description
     "This LaTeX package provides macros to describe REST APIs for
documentation purposes.  The endpoints can hold the following information:
method description path parameter request body and content type response body,
content type and status code.")
    (license license:lppl1.3c)))

(define-public texlive-revquantum
  (package
    (name "texlive-revquantum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/revquantum/"
                   "source/latex/revquantum/"
                   "tex/latex/revquantum/")
             (base32
              "00wac9xjzx9mw6vxd3wnjyb1f8c1661s2zwvd4d0r337ccs6jqbl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/revquantum")
    (synopsis
     "Hacks to make writing quantum papers for revtex4-1 less painful")
    (description
     "This package provides a number of useful hacks to solve common
annoyances with the @code{revtex4-1} package, and to define notation in common
use within quantum information.  In doing so, it imports and configures
a number of commonly-available and used packages, and where reasonable,
provides fallbacks.  It also warns when users try to load packages which are
known to be incompatible with @code{revtex4-1}.")
    (license license:lppl1.3+)))

(define-public texlive-ribbonproofs
  (package
    (name "texlive-ribbonproofs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ribbonproofs/"
                   "tex/latex/ribbonproofs/")
             (base32
              "1590hcnmzffm1z2rqz0g3h5a7xpidjzw5am603pqvlsdxvjfm6my")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ribbonproofs")
    (synopsis "Drawing ribbon proofs")
    (description
     "The package provides a way to draw ribbon proofs in LaTeX, a graphical
proof system for the propositional fragment of the logic of bunched
implications.")
    (license license:lppl1.3+)))

(define-public texlive-rmathbr
  (package
    (name "texlive-rmathbr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rmathbr/" "source/latex/rmathbr/"
                   "tex/latex/rmathbr/")
             (base32
              "1rgkl8fmq00w7yn445sfq3w2xf39d3waiphivvm6hx49nd6vacv0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rmathbr")
    (synopsis
     "Repeating of math operator at the broken line and the new line in inline equations")
    (description
     "Repeating of math operators at the broken line and the new line in
inline equations is used in Cyrillic mathematical typography (Russian for
example), but unfortunately LaTeX does not provide such an option.  This
package solves the problem by extending ideas described in M. I. Grinchuk
@emph{TeX and Russian Traditions of Typesetting}, and supports most of LaTeX
mathematical packages.")
    (license license:lppl1.3+)))

(define-public texlive-sankey
  (package
    (name "texlive-sankey")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sankey/" "source/latex/sankey/"
                   "tex/latex/sankey/")
             (base32
              "020in4r4pim07nya119767zjs90yqpkcyr6h6l5v7ig21n4q7d8s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sankey")
    (synopsis "Draw Sankey diagrams with TikZ")
    (description
     "This package provides macros and an environment for creating Sankey
diagrams, i.e., flow diagrams in which the width of the arrows is proportional
to the flow rate.")
    (license (list license:lppl1.3+ license:gpl3+))))

(define-public texlive-sasnrdisplay
  (package
    (name "texlive-sasnrdisplay")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sasnrdisplay/"
                   "tex/latex/sasnrdisplay/")
             (base32
              "0siifxzkvgryixypgw7dywr5g7qqqrnbq622qhhyfd4xlgix43in")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sasnrdisplay")
    (synopsis "Typeset SAS or R code or output")
    (description
     "The SASnRdisplay package serves as a front-end to listings, which
permits statisticians and others to import source code and the results of
their calculations or simulations into LaTeX projects.  The package is also
capable of overloading the Sweave User Manual and SASweave packages.")
    (license license:lppl1.3+)))

(define-public texlive-sciposter
  (package
    (name "texlive-sciposter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sciposter/"
                   "tex/latex/sciposter/")
             (base32
              "1d4bfzx08df0vx805rhmcsl9b79lqglqbzg0i8y4rk9z9qbaajrq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sciposter")
    (synopsis "Make posters of ISO A3 size and larger")
    (description
     "This collection of files contains LaTeX packages for posters of ISO A3
size and larger (ISO A0 is the default size).  American paper sizes and custom
paper are supported.  In particular, @file{sciposter.cls} defines a document
class which allows cutting and pasting most of an article to a poster without
any editing (save reducing the size).")
    (license license:lppl)))

(define-public texlive-sclang-prettifier
  (package
    (name "texlive-sclang-prettifier")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sclang-prettifier/"
                   "source/latex/sclang-prettifier/"
                   "tex/latex/sclang-prettifier/")
             (base32
              "0pjqhwnz7lihl4yqxr0xgfdxnsj2p7k10vj5y7smjyv0p93lqvaw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sclang-prettifier")
    (synopsis "Pretty-printing SuperCollider source code")
    (description
     "Built on top of the @code{listings} package, the package allows
effortless pretty-printing of SuperCollider source code in documents typeset
with LaTeX and friends.")
    (license license:lppl1.3+)))

(define-public texlive-scratchx
  (package
    (name "texlive-scratchx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/scratchx/" "tex/latex/scratchx/")
             (base32
              "1vy8599n8hxrvjc063p1dis0y7y221rlcwxxxryvibhz2kk7zwc2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/scratchx")
    (synopsis "Include Scratch programs in LaTeX documents")
    (description
     "This package can be used to include every kind of Scratch program in
LaTeX documents.  This may be particularly useful for Math Teachers and IT
specialists.")
    (license license:lppl1.3c)))

(define-public texlive-serbian-apostrophe
  (package
    (name "texlive-serbian-apostrophe")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/serbian-apostrophe/"
                   "tex/latex/serbian-apostrophe/")
             (base32
              "0hkgm4q74kn172nr5whlwjq88sfqm66cvnsv7nidcqssybnn5891")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/serbian-apostrophe")
    (synopsis "Commands for Serbian words with apostrophes")
    (description
     "The package provides a collection of commands (whose names are Serbian
words) whose expansion is the Serbian word with appropriate apostrophes.")
    (license license:lppl1.3+)))

(define-public texlive-serbian-date-lat
  (package
    (name "texlive-serbian-date-lat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/serbian-date-lat/"
                   "tex/latex/serbian-date-lat/")
             (base32
              "1m23r2i2dxw4xnxih94iyiwk4a5ggvn7wkqhp8ai5va5grp36kfk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/serbian-date-lat")
    (synopsis "Updated date typesetting for Serbian")
    (description
     "Babel defines dates for Serbian texts, in Latin script.  The style it
uses does not match current practices.  The present package defines
a @code{\\date} command that solves the problem.")
    (license license:gpl2)))

(define-public texlive-serbian-def-cyr
  (package
    (name "texlive-serbian-def-cyr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/serbian-def-cyr/"
                   "tex/latex/serbian-def-cyr/")
             (base32
              "116sgzxvny1hbkfc5s8bxirk9zshyv8qdd2fdr8iwqjfd7lhx03i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/serbian-def-cyr")
    (synopsis "Serbian Cyrillic localization")
    (description
     "This package provides abstract, chapter, title, date etc, for Serbian
language in Cyrillic scripts in T2A encoding and CP1251 code pages.")
    (license license:lppl1.3+)))

(define-public texlive-serbian-lig
  (package
    (name "texlive-serbian-lig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/serbian-lig/"
                   "tex/latex/serbian-lig/")
             (base32
              "1vq33mr8br7z7y5ayb5wmhy0ralgx6alb9kmhaahdx8a105dl81b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/serbian-lig")
    (synopsis "Control ligatures in Serbian")
    (description
     "The package suppresses @samp{fi} and @samp{fl} (and other ligatures) in
Serbian text written using Roman script.")
    (license license:lppl1.3+)))

(define-public texlive-sesamanuel
  (package
    (name "texlive-sesamanuel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sesamanuel/"
                   "source/latex/sesamanuel/"
                   "tex/latex/sesamanuel/")
             (base32
              "1jgr6syi26qbzdg37rq4d633klgb7s5bp1k3zvb3r538bawag8kc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sesamanuel")
    (synopsis "Class and package for sesamath books or paper")
    (description
     "The package contains a @code{sesamanuel} class which could be used to
compose a student's classroom book with LaTeX, and also
a @code{sesamanuelTIKZ} style to be used for TikZ pictures in the Sesamath
book.")
    (license license:lppl1.3+)))

(define-public texlive-sfg
  (package
    (name "texlive-sfg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sfg/" "tex/latex/sfg/")
             (base32
              "0bckiy5ahbbv69fdam1k74n5f7ikhmc3d08hh9770w4aqs6k017b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sfg")
    (synopsis "Draw signal flow graphs")
    (description
     "This package defines some commands to draw signal flow graphs as used by
electrical and electronics engineers and graph theorists.")
    (license license:lppl)))

(define-public texlive-shuffle
  (package
    (name "texlive-shuffle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/shuffle/"
                   "fonts/source/public/shuffle/"
                   "fonts/tfm/public/shuffle/"
                   "source/latex/shuffle/" "tex/latex/shuffle/")
             (base32
              "06ah481pi9bdbh1f9kpk66wa8yv9qbaif1b3l80415wcxijsxp24")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/shuffle")
    (synopsis "Symbol for the shuffle product")
    (description
     "The bundle provides a LaTeX package and a font (as Metafont source) for
the shuffle product which is used in some part of mathematics and physics.")
    (license license:public-domain)))

(define-public texlive-simplebnf
  (package
    (name "texlive-simplebnf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/simplebnf/"
                   "tex/latex/simplebnf/")
             (base32
              "0a8kysfm24yh738pigwprjjyg0dg2fpf5k549wqi6qx09wp4d3xw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simplebnf")
    (synopsis "Simple package to format Backus-Naur form (BNF)")
    (description
     "This package provides a simple way to format Backus-Naur form (BNF).
The included @code{bnfgrammar} environment parses BNF expressions (possibly
annotated), so users can write readable BNF expressions in their documents.")
    (license license:expat)))

(define-public texlive-simpler-wick
  (package
    (name "texlive-simpler-wick")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/simpler-wick/"
                   "tex/latex/simpler-wick/")
             (base32
              "0iicdx5n0ifjwifxk6i0242hkk388jz1mz01zpmznixjlhx780ni")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simpler-wick")
    (synopsis "Simpler Wick contractions")
    (description
     "In every quantum field theory course, there will be a chapter about
Wick's theorem and how it can be used to convert a very large product of many
creation and annihilation operators into something more tractable and normal
ordered.  The contractions are denoted with a square bracket over the
operators which are being contracted, which used to be rather annoying to
typeset in LaTeX as the only other package available was simplewick, which is
rather unwieldy.  This package provides a simpler syntax for Wick
contractions.")
    (license license:lppl1.3+)))

(define-public texlive-simples-matrices
  (package
    (name "texlive-simples-matrices")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/simples-matrices/"
                   "source/latex/simples-matrices/"
                   "tex/latex/simples-matrices/")
             (base32
              "0dvb989qf0ibgax0rjj49y827f9mzls0axdh28a6ar0r6dfvyjb3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simples-matrices")
    (synopsis "Define matrices by given list of values")
    (description
     "This package provides macros to define and write matrices whose
coefficients are given row by row in a list of values separated by commas.")
    (license license:lppl1.3c)))

(define-public texlive-simplewick
  (package
    (name "texlive-simplewick")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/simplewick/"
                   "source/latex/simplewick/"
                   "tex/latex/simplewick/")
             (base32
              "13c5hk9f8cw48j08qb0i4vh649n9maq7kjs1cf0zfmkdiqi3b6iw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simplewick")
    (synopsis "Simple Wick contractions")
    (description
     "The package provides a simple means of drawing Wick contractions above
and below expressions.")
    (license license:gpl3+)))

(define-public texlive-sistyle
  (package
    (name "texlive-sistyle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sistyle/" "source/latex/sistyle/"
                   "tex/latex/sistyle/")
             (base32
              "0y53ijyzridia40a5wrpgff74n6shbdh7xbn1n56ciqfgjn4rdq4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sistyle")
    (synopsis "Package to typeset SI units, numbers and angles")
    (description
     "This package typesets SI units, numbers and angles according to the ISO
requirements.  Care is taken with font setup and requirements, and language
customisation is available.  Note that this package is (in principle)
superseded by @code{siunitx}; @code{sistyle} has maintenance-only support,
now.")
    (license license:lppl)))

(define-public texlive-siunits
  (package
    (name "texlive-siunits")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/siunits/" "source/latex/siunits/"
                   "tex/latex/siunits/")
             (base32
              "1lw9qjb1bnk357z20yri3lhcvxdnknb7yymb6hh5y8jb61pskns4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/siunits")
    (synopsis "International System of Units")
    (description
     "This package typesets physical units following the rules of the
International System of Units (SI).  Note that the package is now superseded
by @code{siunitx}; @code{siunits} has maintenance-only support, now.")
    (license license:lppl1.3+)))

(define-public texlive-skmath
  (package
    (name "texlive-skmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/skmath/" "source/latex/skmath/"
                   "tex/latex/skmath/")
             (base32
              "0si369hs7550v26mm3wcp69vnyr5ci2iqa6k2b8nv8wbjpcsb9jc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/skmath")
    (synopsis "Extensions to the maths command repertoire")
    (description
     "The package provides a selection of new maths commands and improved
re-definitions of existing commands.")
    (license license:lppl1.3+)))

(define-public texlive-spalign
  (package
    (name "texlive-spalign")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/spalign/" "source/latex/spalign/"
                   "tex/latex/spalign/")
             (base32
              "1paxgykj07y8l5gbcz2823bn80s6y81zabqx67k0j0513ag75grf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/spalign")
    (synopsis
     "Typeset matrices and arrays with spaces and semicolons as delimiters")
    (description
     "The purpose of this package is to decrease the number of keystrokes
needed to typeset small amounts of aligned material (matrices, arrays, etc.).
It provides a facility for typing alignment environments and macros with
spaces as the alignment delimiter and semicolons (by default) as the
end-of-row indicator.  This package also contains utility macros for
typesetting augmented matrices, vectors, arrays, systems of equations, and
more, and is easily extendable to other situations that use alignments.
People who have to typeset a large number of matrices (like linear algebra
teachers) should find this package to be a real time saver.")
    (license license:lppl1.3+)))

(define-public texlive-spbmark
  (package
    (name "texlive-spbmark")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/spbmark/" "tex/latex/spbmark/")
             (base32
              "127z28ak94474jif94z0cgrm9ixjfa8lr9cx4i8ar8wksycadnms")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/spbmark")
    (synopsis "Customize superscripts and subscripts")
    (description
     "This package provides three commands @code{\\super}, @code{\\sub} and
@code{\\supersub} to improve the layout of superscripts and subscripts which
can be adjusted with respect to relative position and format, and can be used
in text and math mode.")
    (license license:cc-by4.0)))

(define-public texlive-stanli
  (package
    (name "texlive-stanli")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/stanli/" "tex/latex/stanli/")
             (base32
              "1kspb85303z642qj3c9b2q3g41p612vshn37j7npf3if2gcyyxbq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/stanli")
    (synopsis "TikZ Library for Structural Analysis")
    (description
     "STANLI is a STructural ANalysis LIbrary based on PGF/TikZ.  Creating new
assignments and tests, at university, is usually a very time-consuming task,
especially when this includes drawing graphics.  In the field of structural
engineering, those small structures are a key part for teaching.  This package
permits to create such 2D and 3D structures in a very fast and simple way.")
    (license (list license:gpl3+ license:lppl1.3+))))

(define-public texlive-startex
  (package
    (name "texlive-startex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/otherformats/startex/"
                   "makeindex/startex/"
                   "source/startex/startex/" "tex/startex/")
             (base32
              "06hyz1bwzvabavkl6j9588skjwx8hc5dmiv8z9n7gr1w9aa9zm7x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/startex")
    (synopsis "XML-inspired format for student use")
    (description
     "This package provides a TeX format designed to help students write short
reports and essays.  It provides the user with a suitable set of commands for
such a task.  It is also more robust than plain TeX and LaTeX.")
    (license license:public-domain)))

(define-public texlive-statex
  (package
    (name "texlive-statex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/statex/" "tex/latex/statex/")
             (base32
              "02zd9877kryv749lyxlswdkdfbgc4i1d2vvbkaplxq81njxipxry")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/statex")
    (synopsis "Statistics style")
    (description
     "This package provides a package defining many macros for items of
significance in statistical presentations.  An updated, but incompatible,
version of the package is available: @code{statex2}.")
    (license license:lppl)))

(define-public texlive-statex2
  (package
    (name "texlive-statex2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/statex2/" "tex/latex/statex2/")
             (base32
              "1g0ymd0l0cvqn61vjbncrg8cr8wkaw7bywnk85c82rsl0wsc89xk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/statex2")
    (synopsis "Statistics style")
    (description
     "The package defines many macros for items of significance in statistical
presentations.  It represents a syntax-incompatible upgrade of
@code{statex}.")
    (license license:lppl)))

(define-public texlive-statistics
  (package
    (name "texlive-statistics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/statistics/"
                   "source/latex/statistics/"
                   "tex/latex/statistics/")
             (base32
              "0cdajj4fclsqcjfc46n82vi8d276qxqklpvdn4gm36dgckrrxaxf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/statistics")
    (synopsis "Compute and typeset statistics tables and graphics")
    (description
     "The @code{statistics} package can compute and typeset statistics like frequency tables,
cumulative distribution functions (increasing or decreasing, in frequency or
absolute count domain), from the counts of individual values, or ranges, or
even the raw value list with repetitions.  It can also compute and draw a bar
diagram in case of individual values, or, when the data repartition is known
from ranges, an histogram or the continuous cumulative distribution function.
You can ask @code{statistics} to display no result, selective results or all
of them.  Similarly @code{statistics} can draw only some parts of the
graphs.")
    (license license:gpl3+)))

(define-public texlive-statistik
  (package
    (name "texlive-statistik")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/statistik/"
                   "source/latex/statistik/"
                   "tex/latex/statistik/")
             (base32
              "1j1g9hidkq02v3f4alafi53qny3diazpfxb1w936dcy4wi5l584x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/statistik")
    (synopsis "Store statistics of a document")
    (description
     "The package counts the numbers of pages per chapter, and stores the
results in a separate file; the format of the file is selectable.")
    (license license:gpl3+)))

(define-public texlive-statmath
  (package
    (name "texlive-statmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/statmath/"
                   "source/latex/statmath/"
                   "tex/latex/statmath/")
             (base32
              "0zqln39cambscblrqck9lw4krpqbhlasz58zvx84h8pmapwsk13g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/statmath")
    (synopsis "Simple use of statistical notation")
    (description
     "The package offers a number of notational conventions to be used in
applied and theoretical papers in statistics which are currently lacking in
the popular @code{amsmath} package.")
    (license license:lppl1.3+)))

(define-public texlive-steinmetz
  (package
    (name "texlive-steinmetz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/steinmetz/"
                   "source/latex/steinmetz/"
                   "tex/latex/steinmetz/")
             (base32
              "1x7bs22q1p07njvsg7npm5wg25jx547nv7v98wvcfmlcr4zrvbh1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/steinmetz")
    (synopsis "Print Steinmetz notation")
    (description
     "The @code{steinmetz} package provides a command for typesetting complex
numbers in the Steinmetz notation used in electrotechnics.")
    (license license:lppl)))

(define-public texlive-structmech
  (package
    (name "texlive-structmech")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/structmech/"
                   "tex/latex/structmech/")
             (base32
              "1xh9qwwk3fgdwaz5bb0w2yyv0li9vsdpfyx0r6hg694vf99ym6mb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/structmech")
    (synopsis "TikZ command set for structural mechanics drawings")
    (description
     "This package provides a collection of TikZ commands that allow users to
draw basic elements in material/structural mechanics.  It is thus possible to
draw member forces, nodal forces/displacements, various boundary conditions,
internal force distributions, etc.")
    (license license:gpl3+)))

(define-public texlive-struktex
  (package
    (name "texlive-struktex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/struktex/"
                   "source/latex/struktex/"
                   "tex/latex/struktex/")
             (base32
              "05bvzxrqwiw9jcq1dvvwf6ss1207qygg3iqdlfd0yjv0y7rdjvvf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/struktex")
    (synopsis "Draw Nassi-Shneiderman charts")
    (description
     "Nassi-Shneiderman charts are a well known tool to describe an algorithm
in a graphical way.  The package offers some macros for generating those
charts in a LaTeX document.  The package provides the most important elements
of a Nassi-Shneiderman charts, including processing blocks, loops, mapping
conventions for alternatives, etc.  The charts are drawn using the
@code{picture} environment (using @code{pict2e} for preference).")
    (license license:lppl1.2+)))

(define-public texlive-substances
  (package
    (name "texlive-substances")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/substances/"
                   "tex/latex/substances/")
             (base32
              "1lqg0bx34f7f9sva1lvvqdb7nfdaaf6lh23j0nwdy70z2g3kgkxp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/substances")
    (synopsis "Database of chemicals")
    (description
     "The package provides the means to create a database-like file that
contains data of various chemicals.  These data may be retrieved in the
document; an index of the chemicals mentioned in the document can be
created.")
    (license license:lppl1.3+)))

(define-public texlive-subsupscripts
  (package
    (name "texlive-subsupscripts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/subsupscripts/"
                   "tex/latex/subsupscripts/")
             (base32
              "1f9yn6ic1yn4nl2s8ngbrrl1xflb4g2j0iw77563j5n7prgy1wrf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/subsupscripts")
    (synopsis "Range of sub- and superscript commands")
    (description
     "The package provides a comprehensive and flexible set of commands for
combinations of left and right sub- and superscripts.")
    (license license:lppl)))

(define-public texlive-subtext
  (package
    (name "texlive-subtext")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/subtext/" "tex/latex/subtext/")
             (base32
              "0wpb4087acwsgnsc1zw6ivqaqgdsq90zm63bgmrk77ban54qsqv0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/subtext")
    (synopsis "Easy text-style subscripts in math mode")
    (description
     "This LaTeX package gives easy access to text-style subscripts in math
mode by providing an optional argument to @samp{_}.  This is implemented by
using the @code{\\text@{@}} command from the @code{amstext} package.")
    (license license:gpl3)))

(define-public texlive-susy
  (package
    (name "texlive-susy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/susy/" "tex/latex/susy/")
             (base32
              "17v3cmkrpkdxssa50vzdasp885waf9jpg8sfjyw1dcj9z7xfz91g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/susy")
    (synopsis "Macros for SuperSymmetry-related work")
    (description "The package macros for SuperSymmetry-related work, such as
abbreviations of longer expressions.")
    (license license:lppl)))

(define-public texlive-syllogism
  (package
    (name "texlive-syllogism")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/syllogism/"
                   "tex/latex/syllogism/")
             (base32
              "0ns8bv5qyzvcq59x7cjkncc9wlalcdhhnxs0r4s897qrrbz4cq43")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/syllogism")
    (synopsis "Typeset syllogisms in LaTeX")
    (description
     "The package provides a simple, configurable, way for neatly typesetting
syllogisms and syllogistic-like arguments, composed of two premises and
a conclusion.")
    (license license:lppl)))

(define-public texlive-sympytexpackage
  (package
    (name "texlive-sympytexpackage")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sympytexpackage/"
                   "scripts/sympytexpackage/"
                   "source/latex/sympytexpackage/"
                   "tex/latex/sympytexpackage/")
             (base32
              "0ph8pldk2f477dm79vf5vrismfy8w1p2m455qfjqm7p704jm1pr3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sympytex")
    (synopsis "Include symbolic computation (using @code{sympy}) in documents")
    (description
     "The bundle supports inclusion of symbolic-python (@code{sympy})
expressions, as well as graphical output from the @code{sympy} plotting
module (or from Matplotlib).")
    (license license:gpl2)))

(define-public texlive-synproof
  (package
    (name "texlive-synproof")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/synproof/" "tex/latex/synproof/")
             (base32
              "02r0ld3lcxvjhij4lffx9kljmbv6fvz10x59bjvinqfbmmfmm58m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/synproof")
    (synopsis "Easy drawing of syntactic proofs")
    (description
     "The package provides a set of macros based on PSTricks that will enable
you to draw syntactic proofs easily (inspired by the Gamut books).  Very few
commands are needed, however fine tuning of the various
parameters (dimensions) can still be achieved through key=value pairs.")
    (license license:lppl)))

(define-public texlive-t-angles
  (package
    (name "texlive-t-angles")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/t-angles/" "tex/latex/t-angles/")
             (base32
              "0jp16zd64c5xdsxfycdyvlwwss4k46y7nfd2dn6ybshx34kcv0qa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/t-angles")
    (synopsis
     "Draw tangles, trees, Hopf algebra operations and other pictures")
    (description
     "This package provides a LaTeX2e package for drawing tangles, trees, Hopf
algebra operations and other pictures.  It is based on emTeX or TPIC
@code{\\specials}.  Therefore, it can be used with the most popular drivers,
including emTeX drivers, dviwin, xdvi and dvips, and (using some code from
ConTeXt) it may also be used with pdfLaTeX.")
    (license license:gpl3+)))

(define-public texlive-t2
  (package
    (name "texlive-t2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/t2/" "fonts/enc/t2/"
                   "tex/generic/t2/cyrfinst/" "tex/latex/t2/")
             (base32
              "058j3bpv03d9nb0nxal1vjpliqqibv6hsjl1qlbgnndm95xd5n1a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/t2")
    (synopsis "Support for using T2 encoding")
    (description
     "The T2 bundle provides a variety of separate support functions for using
Cyrillic characters in LaTeX:
@itemize
@item the @code{mathtext} package, for using Cyrillic letters
transparently in formulae;
@item the @code{citehack} package, for using Cyrillic (or indeed any
non-ASCII) characters in citation keys;
@item support for Cyrillic in BibTeX;
@item support for Cyrillic in Makeindex;
@item and various items of font support.
@end itemize")
    (license license:lppl)))

(define-public texlive-tablor
  (package
    (name "texlive-tablor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tablor/" "tex/latex/tablor/")
             (base32
              "1qacb25whzxwn85cxq1fa5rklq5fm06g6i5x88qymm8yaq1yxa71")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tablor")
    (synopsis "Create tables of signs and of variations")
    (description
     "The package allows the user to use the computer algebra system XCAS to
generate tables of signs and of variations (the actual plotting of the tables
uses the MetaPost macro package tableauVariations).  Tables with forbidden
regions may be developed using the package.  A configuration file permits some
configuration of the language to be used in the diagrams.  The @code{tablor}
package requires that shell escape be enabled.")
    (license license:lppl)))

(define-public texlive-tabvar
  (package
    (name "texlive-tabvar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tabvar/"
                   "fonts/afm/public/tabvar/"
                   "fonts/map/dvips/tabvar/"
                   "fonts/tfm/public/tabvar/"
                   "fonts/type1/public/tabvar/"
                   "metapost/tabvar/"
                   "source/latex/tabvar/"
                   "tex/latex/tabvar/")
             (base32
              "1yjf0j3296a5csr6xrzziralfsy2iny21cyjf4dmlwp4l0h6kcpc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tabvar")
    (synopsis "Typesetting tables showing variations of functions")
    (description
     "This LaTeX package is meant to ease the typesetting of tables showing
variations of functions as they are used in France.")
    (license license:lppl1.3+)))

(define-public texlive-tdsfrmath
  (package
    (name "texlive-tdsfrmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tdsfrmath/"
                   "source/latex/tdsfrmath/"
                   "tex/latex/tdsfrmath/")
             (base32
              "1z1z3jy0mbn6dc75pnfsq9877y8yafvdhv5p8a54dbxxkzdcl3ll")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tdsfrmath")
    (synopsis "Macros for French teachers of mathematics")
    (description
     "This package provides a collection of macros for French maths teachers
in colleges and lycées (and perhaps elsewhere).  It is hoped that the package
will facilitate the everyday use of LaTeX by mathematics teachers.")
    (license license:lppl)))

(define-public texlive-tensind
  (package
    (name "texlive-tensind")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tensind/" "tex/latex/tensind/")
             (base32
              "1i0iczq20ihx5y19j9ifpbm6sad6jv9cs8zwblgkddyhwxa7n764")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tensind")
    (synopsis "Typeset tensors")
    (description
     "This package typesets tensors with dots filling gaps and fine tuning of
index placement.")
    (license license:expat)))

(define-public texlive-tensor
  (package
    (name "texlive-tensor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tensor/" "source/latex/tensor/"
                   "tex/latex/tensor/")
             (base32
              "0rc3mswkwlacfwcz2dbvl3glkwkkyji8aiqa837wr0h8rd7jfl2g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tensor")
    (synopsis "Typeset tensors")
    (description
     "This allows the user to set tensor-style super- and subscripts with
offsets between successive indices.  It supports the typesetting of tensors
with mixed upper and lower indices with spacing, also typeset preposed
indices.")
    (license license:lppl)))

(define-public texlive-tex-ewd
  (package
    (name "texlive-tex-ewd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tex-ewd/"
                   "tex/generic/tex-ewd/")
             (base32
              "1xlxbnn16mf7mzz57rjzqqv18mcy0immmlcsnksda03dh7hn8b69")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-ewd")
    (synopsis
     "Macros to typeset calculational proofs and programs in Dijkstra's style")
    (description
     "Edsger W. Dijkstra and others suggest a unique style to present
mathematical proofs and to construct programs.  This package provides macros
that support calculational proofs and Dijkstra's guarded command language.")
    (license license:bsd-1)))

(define-public texlive-tex-virtual-academy-pl
  (package
    (name "texlive-tex-virtual-academy-pl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tex-virtual-academy-pl/")
             (base32
              "1kb86nn5vp1b0sy21aw9wlla1dwlaijppzq7728bmfs5nk1dnbjv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-virtual-academy-pl")
    (synopsis "TeX usage web pages, in Polish")
    (description
     "TeX Virtual Academy is a bundle of Polish documentation in HTML format
about TeX and Co.  It contains information for beginners, LaTeX packages,
descriptions, etc.")
    (license license:fdl1.3+)))

(define-public texlive-texsis
  (package
    (name "texlive-texsis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/texsis/"
                   "doc/man/man1/texsis.1"
                   "doc/man/man1/texsis.man1.pdf"
                   "doc/otherformats/texsis/base/"
                   "tex/texsis/base/"
                   "tex/texsis/config/")
             (base32
              "1vdywyg03ab5w50370ml8hwiidim2sy7hhygmz917rnhsnm87lnv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "texsis")))
    (propagated-inputs
     (list texlive-cm
           texlive-hyphen-base
           texlive-knuth-lib
           texlive-plain
           texlive-tex))
    (home-page "https://ctan.org/pkg/texsis")
    (synopsis "Plain TeX macros for Physicists")
    (description
     "TeXsis is a TeX macro package which provides useful features for
typesetting research papers and related documents.  For example, it includes
support specifically for:

@itemize
@item automatic numbering of equations, figures, tables and references;
@item simplified control of type sizes, line spacing, footnotes, running
headlines and footlines, and tables of contents, figures and tables;
@item specialized document formats for research papers, preprints and
e-prints, conference proceedings, theses, books, referee reports, letters, and
memoranda;
@item simplified means of constructing an index for a book or thesis;
@item easy to use double column formatting;
@item specialized environments for lists, theorems and proofs, centered or
non-justified text, and listing computer code;
@item specialized macros for easily constructing ruled tables.
@end itemize

TeXsis was originally developed for physicists, but others may also find it
useful.  It is completely compatible with Plain TeX.")
    (license license:lppl)))

(define-public texlive-textgreek
  (package
    (name "texlive-textgreek")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/textgreek/"
                   "source/latex/textgreek/"
                   "tex/latex/textgreek/")
             (base32
              "0a0x07xyy1akqwya54k5bf3f8k4vcrv4hfmijmcp60ikw4v5gha1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-greek-fontenc))
    (home-page "https://ctan.org/pkg/textgreek")
    (synopsis "Upright greek letters in text")
    (description
     "This package provides macros to use upright greek letters as text
symbols.")
    (license license:lppl)))

(define-public texlive-textopo
  (package
    (name "texlive-textopo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/textopo/" "source/latex/textopo/"
                   "tex/latex/textopo/")
             (base32
              "0rw41qg3l4jzvwsrhwazwxn85kgad8r7bxp9bfbq843b4zrlwnaz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/textopo")
    (synopsis "Annotated membrane protein topology plots")
    (description
     "This package provides a LaTeX package for setting shaded and annotated
membrane protein topology plots and helical wheels.")
    (license license:gpl3+)))

(define-public texlive-thaienum
  (package
    (name "texlive-thaienum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/thaienum/" "tex/latex/thaienum/")
             (base32
              "1g7sf5gjnrmhgq4qmdh3gphc0ixyfx4rpm7kmbwmjra3b8j2i46w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/thaienum")
    (synopsis "Thai labels in @code{enumerate} environments")
    (description
     "This LaTeX package provides a command to use Thai numerals or characters
as labels in enumerate environments.  Once the package is loaded with
@samp{\\usepackage@{thaienum@}} you can use labels such as @code{\\thainum*}
or @code{\\thaimultialph*} in conjunction with the package @code{enumitem}.
Concrete examples are given in the documentation.")
    (license license:lppl1.3+)))

(define-public texlive-thaispec
  (package
    (name "texlive-thaispec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/thaispec/"
                   "source/latex/thaispec/"
                   "tex/latex/thaispec/")
             (base32
              "1d0mj98akv7bfq3msaplm2pffcwfayssn4i5an12zrw0wxicmp96")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/thaispec")
    (synopsis "Thai language typesetting in XeLaTeX")
    (description
     "This package allows you to input Thai characters directly to LaTeX
documents and choose any (system wide) Thai fonts for typesetting in XeLaTeX.
It also tries to appropriately justify paragraphs with no more external
tools.")
    (license license:lppl1.3+)))

(define-public texlive-thermodynamics
  (package
    (name "texlive-thermodynamics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/thermodynamics/"
                   "source/latex/thermodynamics/"
                   "tex/latex/thermodynamics/")
             (base32
              "0shhwyhwrrkclbacqajgr5gk331pypnmn6pladkfmw87l5p4c5dh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/thermodynamics")
    (synopsis "Macros for multicomponent thermodynamics documents")
    (description
     "This package makes typesetting quantities found in thermodynamics texts
relatively simple.  The commands are flexible and intended to be relatively
intuitive.  It handles several sets of notation for total, specific, and molar
quantities; allows changes between symbols (e.g., @samp{A} vs. @samp{F} for
Helmholtz free energy); and greatly simplifies the typesetting of symbols and
partial derivatives commonly encountered in mixture thermodynamics.  Changes
of one's notes from one textbook to another can be achieved relatively easily
by changing package options.")
    (license license:lppl1.3+)))

(define-public texlive-thmbox
  (package
    (name "texlive-thmbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/thmbox/" "source/latex/thmbox/"
                   "tex/latex/thmbox/")
             (base32
              "0ibs75aqla6z3lww0xpxd0biarla8hhx9zz245isy9ks8q231v1l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/thmbox")
    (synopsis "Decorate theorem statements")
    (description
     "The package defines an environment thmbox that presents theorems,
definitions and similar objects in boxes decorated with frames and various
aesthetic features.  The standard macro @code{\\newtheorem} may be redefined
to use the environment.")
    (license license:lppl)))

(define-public texlive-tiscreen
  (package
    (name "texlive-tiscreen")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tiscreen/" "tex/latex/tiscreen/")
             (base32
              "1nrwai8qg26412jm8v3vgy7m4qk2kq6asc33j5a76z2ixnnhjlps")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tiscreen")
    (synopsis "Mimic the screen of older Texas Instruments calculators")
    (description
     "This package mimics the screen of older Texas Instruments dot matrix
display calculators, specifically the TI-82 STATS.")
    (license license:lppl1.3c)))

(define-public texlive-translation-array-fr
  (package
    (name "texlive-translation-array-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-array-fr/")
             (base32
              "128k8isyn4s0v496sykn22fqn0gfwyyk19kcrmxnc6clgxxfbdy6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-array-fr")
    (synopsis "French translation of the documentation of @code{array}")
    (description
     "This package provides a French translation of the documentation of
@code{array}.")
    (license license:lppl)))

(define-public texlive-translation-dcolumn-fr
  (package
    (name "texlive-translation-dcolumn-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-dcolumn-fr/")
             (base32
              "0xakssrkxb2wc6xyy1yvx4mm398x3yq032b7vapqxl82h992fjll")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-dcolumn-fr")
    (synopsis "French translation of the documentation of @code{dcolumn}")
    (description
     "This package provides a French translation of the documentation of
@code{dcolumn}.")
    (license license:lppl)))

(define-public texlive-translation-natbib-fr
  (package
    (name "texlive-translation-natbib-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-natbib-fr/")
             (base32
              "0f0r1n8q3jkxsdcddabsgz9h9ndq4yffdpxdqxvqjmhfafhzwgkg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-natbib-fr")
    (synopsis "French translation of the documentation of @code{natbib}")
    (description
     "This package provides a French translation of the documentation of
@code{natbib}.")
    (license license:lppl)))

(define-public texlive-translation-tabbing-fr
  (package
    (name "texlive-translation-tabbing-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-tabbing-fr/")
             (base32
              "1cih442gp6zf8nwb2lbgjn7a64aglyrcw3aciqy5pkdw09pwn0an")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-tabbing-fr")
    (synopsis "French translation of the documentation of @code{tabbing}")
    (description
     "This package provides a translation to French of the documentation of
the @code{tabbing} package.")
    (license license:lppl1.0+)))

(define-public texlive-turnstile
  (package
    (name "texlive-turnstile")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/turnstile/"
                   "source/latex/turnstile/"
                   "tex/latex/turnstile/")
             (base32
              "05ffizykplpisjy75s8zbaphpj5vk8r09ii5jzv929y54mi2qs06")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/turnstile")
    (synopsis "Typeset the (logic) turnstile notation")
    (description
     "This package typesets the turnstile sign.  Among other uses, this sign
is used by logicians for denoting a consequence relation, related to a given
logic, between a collection of formulas and a derived formula.")
    (license license:lppl)))

(define-public texlive-ulqda
  (package
    (name "texlive-ulqda")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ulqda/" "scripts/ulqda/"
                   "source/latex/ulqda/" "tex/latex/ulqda/")
             (base32
              "07jzmk0p4l28dxxqqpma4px9riykg0zynnjycyripg2m76a9ah2g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "ulqda.pl")
           #:tex-format "latex"))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-dot2texi
                  texlive-hypdoc
                  texlive-moreverb
                  texlive-pgf
                  texlive-soul
                  texlive-subfigure
                  texlive-xkeyval))))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ulqda")
    (synopsis "Support of Qualitative Data Analysis")
    (description
     "The package is for use in Qualitative Data Analysis research.  It
supports the integration of Qualitative Data Analysis (QDA) research tasks,
specifically for Grounded Theory, into the LaTeX work flow.  It assists in the
analysis of textual data such as interview transcripts and field notes by
providing the LaTeX user with macros which are used to markup textual
information.")
    (license license:lppl)))

(define-public texlive-unicode-alphabets
  (package
    (name "texlive-unicode-alphabets")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/unicode-alphabets/"
                   "tex/latex/unicode-alphabets/")
             (base32
              "0xvzmx0xa8mmi39a8c89byi6c6y7vbl5k3plp63k5mif19ncyq3s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/unicode-alphabets")
    (synopsis "Macros for using characters from Unicode's Private Use Area")
    (description
     "While Unicode supports the vast majority of use cases, there are certain
specialized niches which require characters and glyphs not (yet) represented
in the standard.  Thus the Private Use Area (PUA) at code points E000-F8FF,
which enables third parties to define arbitrary character sets.  This package
allows configuring a number of macros for using various PUA character sets in
LaTeX (AGL, CYFI, MUFI, SIL, TITUS, UCSUR, UNZ), to enable transcription and
display of medieval and other documents.")
    (license license:cc-by-sa4.0)))

(define-public texlive-unitsdef
  (package
    (name "texlive-unitsdef")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/unitsdef/"
                   "source/latex/unitsdef/"
                   "tex/latex/unitsdef/")
             (base32
              "0r3d8af9543sfby3v39gq8vys0m0y3dvni7cly02q0cw6xxw784m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/unitsdef")
    (synopsis "Typesetting units in LaTeX")
    (description
     "This package predefines common units, defines an easy to use interface
to define new units and changes the output concerning to the surrounding font
settings.")
    (license license:lppl)))

(define-public texlive-velthuis
  (package
    (name "texlive-velthuis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/velthuis/"
                   "doc/man/man1/devnag.1"
                   "doc/man/man1/devnag.man1.pdf"
                   "fonts/afm/public/velthuis/"
                   "fonts/map/dvips/velthuis/"
                   "fonts/source/public/velthuis/"
                   "fonts/tfm/public/velthuis/"
                   "fonts/type1/public/velthuis/"
                   "tex/generic/velthuis/"
                   "tex/latex/velthuis/"
                   "tex/plain/velthuis/"
                   "tex/xelatex/velthuis/")
             (base32
              "0h9maci6b65x7zy13v5j4vlr07lnghiwckh7bn4ix7d1wmh74bij")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (propagated-inputs (list texlive-xetex-devanagari))
    (home-page "https://ctan.org/pkg/devanagari")
    (synopsis "Typeset Devanagari")
    (description
     "This package provides Frans Velthuis preprocessor for Devanagari text,
and fonts and macros to use when typesetting the processed text.  The macros
provide features that support Sanskrit, Hindi, Marathi, Nepali, and other
languages typically printed in the Devanagari script.  The package provides
fonts, in both Metafont and Type 1 formats.")
    (license license:gpl3+)))

(define-public texlive-venn
  (package
    (name "texlive-venn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/venn/" "metapost/venn/")
             (base32
              "08pp3b58lng4lfaphhpw5nrczlhj86kgi1ciq12f9241z4qgnq6q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/venn")
    (synopsis "Creating Venn diagrams with MetaPost")
    (description "This package provides MetaPost macros for Venn diagrams.")
    (license license:lppl)))

(define-public texlive-vlna
  (package
    (name "texlive-vlna")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/vlna.1"
                   "doc/man/man1/vlna.man1.pdf" "doc/vlna/")
             (base32
              "0nfb7mj6y9d4n89z59ppi96grfylwky97mxcv9rjflr5kpqlpga2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/vlna")
    (synopsis "Add @samp{~} after non-syllabic preposition, for Czech/Slovak")
    (description
     "This package provides a preprocessor for TeX source implementing the
Czech/Slovak typographical rule forbidding a non-syllabic preposition alone at
the end of a line.")
    (license license:knuth)))

(define-public texlive-vntex
  (package
    (name "texlive-vntex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/vntex/"
                   "fonts/afm/vntex/chartervn/"
                   "fonts/afm/vntex/grotesqvn/"
                   "fonts/afm/vntex/urwvn/"
                   "fonts/afm/vntex/vntopia/"
                   "fonts/enc/dvips/vntex/"
                   "fonts/enc/pdftex/vntex/"
                   "fonts/map/dvips/vntex/"
                   "fonts/source/vntex/vnr/"
                   "fonts/tfm/vntex/arevvn/"
                   "fonts/tfm/vntex/chartervn/"
                   "fonts/tfm/vntex/cmbrightvn/"
                   "fonts/tfm/vntex/concretevn/"
                   "fonts/tfm/vntex/grotesqvn/"
                   "fonts/tfm/vntex/txttvn/"
                   "fonts/tfm/vntex/urwvn/"
                   "fonts/tfm/vntex/vnr/"
                   "fonts/tfm/vntex/vntopia/"
                   "fonts/type1/vntex/arevvn/"
                   "fonts/type1/vntex/chartervn/"
                   "fonts/type1/vntex/cmbrightvn/"
                   "fonts/type1/vntex/concretevn/"
                   "fonts/type1/vntex/grotesqvn/"
                   "fonts/type1/vntex/txttvn/"
                   "fonts/type1/vntex/urwvn/"
                   "fonts/type1/vntex/vnr/"
                   "fonts/type1/vntex/vntopia/"
                   "fonts/vf/vntex/chartervn/"
                   "fonts/vf/vntex/urwvn/"
                   "fonts/vf/vntex/vntopia/"
                   "source/generic/vntex/"
                   "tex/latex/vntex/"
                   "tex/plain/vntex/")
             (base32
              "0vbpxzqvqpymw2chgrrva7alrvp6lj735hy8wqksal968sch6azx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ec texlive-metafont))
    (home-page "https://ctan.org/pkg/vntex")
    (synopsis "Support for Vietnamese")
    (description
     "The vntex bundle provides fonts, Plain TeX, texinfo and LaTeX macros for
typesetting documents in Vietnamese.  Users of the fonts (in both Metafont and
Adobe Type 1 format) of this bundle may alternatively use the @code{lm} fonts
bundle, for which map files are available to provide a Vietnamese version.")
    ;; Vietnamese glyphs has been added according to the conditions of the
    ;; Adobe/TUG license agreement.  The package itself is released under
    ;; LPPL1.3+ terms.
    (license (list license:lppl1.3+
                   (license:fsf-free "file://source/generic/vntex/LICENSE-utopia.txt")))))

(define-public texlive-witharrows
  (package
    (name "texlive-witharrows")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/witharrows/"
                   "source/generic/witharrows/"
                   "tex/generic/witharrows/")
             (base32
              "0m9imjxi174bh1mr2gl74s8bmhksaabvmfzvv2nq8nbmzvfsic19")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/witharrows")
    (synopsis "Aligned math environments with arrows for comments")
    (description
     "This package provides an environment @code{WithArrows} which is similar
to the environment @code{aligned} of @code{amsmath} (and @code{mathtools}),
but gives the possibility to draw arrows on the right side of the alignment.
These arrows are usually used to give explanations concerning the mathematical
calculus presented.")
    (license license:lppl1.3+)))

(define-public texlive-wnri
  (package
    (name "texlive-wnri")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/wnri/"
                   "fonts/source/public/wnri/"
                   "fonts/tfm/public/wnri/")
             (base32
              "1p2b847a5xa00xvv46b8p0f2fhi1k01w4l7bm2517hs7inwj3brs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/wnri")
    (synopsis "Ridgeway's fonts")
    (description
     "This package provides fonts (as Metafont source) for Old English, Indic
languages in Roman transliteration and Puget Salish (Lushootseed) and other
Native American languages.")
    (license license:gpl3+)))

(define-public texlive-wnri-latex
  (package
    (name "texlive-wnri-latex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/wnri-latex/"
                   "source/latex/wnri-latex/"
                   "tex/latex/wnri-latex/")
             (base32
              "08ld2nys36vb368977dpwav75ffra2p8999dx4dwrs4vg6k2r2l7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/wnri-latex")
    (synopsis "LaTeX support for @code{wnri} fonts")
    (description
     "This package provides LaTeX support for the @code{wnri} fonts.")
    (license license:gpl2)))

(define-public texlive-xecjk
  (package
    (name "texlive-xecjk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xecjk/"
                   "fonts/misc/xetex/fontmapping/xecjk/"
                   "source/xelatex/xecjk/" "tex/xelatex/xecjk/")
             (base32
              "0mpmfrj0n00gpnh67zh627vxhpp6vim8x755vdpb75h36k8zm6yq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'build 'copy-ctxdocstrip.tex
            ;; There's a circular dependency between this package (where
            ;; `ctex' should be a native input) and `ctex' (where this package
            ;; is a propagated input).  To work around this, install the
            ;; specific "ctxdocstrip.tex" file from `ctex' in the build
            ;; directory and set TEXINPUTS variable accordingly so the process
            ;; can find it.
            (lambda* (#:key inputs #:allow-other-keys)
              (install-file (search-input-file inputs
                                               "tex/generic/ctex/ctxdocstrip.tex")
                            "build/")
              (setenv "TEXINPUTS" (string-append (getcwd) "/build:")))))))
    (native-inputs
     (list (texlive-origin
            "ctxdocstrip.tex" (number->string %texlive-revision)
            (list "tex/generic/ctex/ctxdocstrip.tex")
            (base32
             "154v2d6wfzhfg654nlh2apy9zr78d09rkimymyjqpxymkpbk8lli"))))
    (home-page "https://ctan.org/pkg/xecjk")
    (synopsis "Support for CJK documents in XeLaTeX")
    (description
     "This package provides a LaTeX package for typesetting CJK documents in
the way users have become used to, in the CJK package.")
    (license license:lppl1.3c)))

(define-public texlive-xecyrmongolian
  (package
    (name "texlive-xecyrmongolian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xecyrmongolian/"
                   "source/latex/xecyrmongolian/"
                   "tex/latex/xecyrmongolian/")
             (base32
              "0097l8vx76sqpimljwxw194yg6drxzagjxflq3y99n0a0yisax05")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xecyrmongolian")
    (synopsis
     "Basic support for Cyrillic Mongolian documents using (Xe|Lua)LaTeX")
    (description
     "The @code{xecyrmongolian} package can be used to produce documents in
Cyrillic Mongolian using either XeLaTeX or LuaLaTeX.  The command
@code{\\setlanguage} can be used to load alternative hyphenation patterns so
to be able to create multilingual documents.")
    (license license:lppl1.3c)))

(define-public texlive-xymtex
  (package
    (name "texlive-xymtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xymtex/"
                   "source/latex/xymtex/"
                   "tex/latex/xymtex/")
             (base32
              "0xj8q4l2xv69sqdqkr4cqzldhnqxfymm0avhc220pl3q74cabh0b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xymtex")
    (synopsis "Typesetting chemical structures")
    (description
     "XyMTeX is a set of packages for drawing a wide variety of chemical
structural formulas in a way that reflects their structure.  The package
provides three output modes: LaTeX, PostScript and PDF.")
    (license license:lppl1.3+)))

(define-public texlive-yhmath
  (package
    (name "texlive-yhmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/yhmath/"
                   "fonts/map/dvips/yhmath/"
                   "fonts/source/public/yhmath/"
                   "fonts/tfm/public/yhmath/"
                   "fonts/type1/public/yhmath/"
                   "fonts/vf/public/yhmath/"
                   "source/fonts/yhmath/"
                   "tex/latex/yhmath/")
             (base32
              "0blzyr94d7ajb639j7bfnrpn52wicwfqwyba38hgh6s9hgx071cv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/yhmath")
    (synopsis "Extended maths fonts for LaTeX")
    (description
     "The @code{yhmath} bundle contains fonts (in Metafont and type 1 format)
and a LaTeX package for using them.")
    (license license:lppl1.3c)))

(define-public texlive-youngtab
  (package
    (name "texlive-youngtab")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/youngtab/"
                   "source/generic/youngtab/"
                   "tex/generic/youngtab/")
             (base32
              "054dqrcrj32nsngjhxa7nig9ylz0p6smdaqc02mdpy299fwm23f2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/youngtab")
    (synopsis "Typeset Young-Tableaux")
    (description
     "This package provides a package for typesetting Young-Tableaux,
mathematical symbols for the representations of groups, providing two macros,
@code{\\yng(1)} and @code{\\young(1)} to generate the whole Young-Tableau.")
    (license license:lppl1.0+)))

(define-public texlive-yquant
  (package
    (name "texlive-yquant")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/yquant/" "tex/latex/yquant/")
             (base32
              "1ibrll05slxh1xin6zb14nwic4a86gkpk60k8dzgf184l3kkv8lj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/yquant")
    (synopsis "Typesetting quantum circuits in a human-readable language")
    (description
     "This LaTeX package allows to quickly draw quantum circuits.  It bridges
the gap between the two groups of packages that already exist: those that use
a logic-oriented custom language, which is then translated into TeX by means
of an external program; and the pure TeX versions that mainly provide some
macros to allow for an easier input.  @code{yquant} introduces a logic
oriented language and thus brings the best of both worlds together.  It builds
on and interacts with TikZ, which brings an enourmous flexibility for
customization of individual circuit.")
    (license license:lppl1.3c)))

(define-public texlive-ytableau
  (package
    (name "texlive-ytableau")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ytableau/"
                   "source/latex/ytableau/"
                   "tex/latex/ytableau/")
             (base32
              "1px1gbpbm0vrv8xhdf1gfb6q6fh564y3zra0kg1ab3hcixbqsfxa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ytableau")
    (synopsis "Many-featured Young tableaux and Young diagrams")
    (description
     "The package provides several functions for drawing Young tableaux and
Young diagrams, extending the @code{young} and @code{youngtab} packages but
providing lots more features.  Skew and coloured tableaux are easy, and
pgfkeys-enabled options are provided both at package load and configurably.")
    (license license:lppl1.2+)))

(define-public texlive-zitie
  (package
    (name "texlive-zitie")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/zitie/" "tex/xelatex/zitie/")
             (base32
              "0la4fg42c20isdip5gnynzhkj0hn295lf48hbyjjfvadx7zx408s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zitie")
    (synopsis "Create CJK character calligraphy practicing sheets")
    (description
     "This is a LaTeX package for creating CJK character calligraphy
practicing sheets (copybooks).  Currently, only XeTeX is supported.")
    (license license:lppl1.3c)))

(define-public texlive-zx-calculus
  (package
    (name "texlive-zx-calculus")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/zx-calculus/"
                   "tex/latex/zx-calculus/")
             (base32
              "0vs0f1zs0ccmv001a4x2m5qqcwl2gr2jl0z87qvjq17d3b2kzz88")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zx-calculus")
    (synopsis "Library to typeset ZX Calculus diagrams")
    (description
     "This library allows you to typeset ZX-calculus directly in LaTeX.  It
comes with many pre-built wire shapes, a highly customizable node style (with
multiple flavours for putting labels inside or outside nodes), and a debugging
mode to avoid getting lost in big diagrams.")
    (license license:expat)))

(define-public texlive-zxjafont
  (package
    (name "texlive-zxjafont")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/zxjafont/" "tex/latex/zxjafont/")
             (base32
              "1n8sky4aprs7r12pvyj6q1lman57k94s7mkynnzfw1z4xnam459j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zxjafont")
    (synopsis "Set up Japanese font families for XeLaTeX")
    (description "This package sets up Japanese font families for XeLaTeX.")
    (license license:expat)))

(define-public texlive-biblatex-cheatsheet
  (package
    (name "texlive-biblatex-cheatsheet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/biblatex-cheatsheet/")
             (base32
              "0y2ry2q1kvpy8dqglqdfq3rc849hmbni0k78wr1xnjbpd102l3k9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/biblatex-cheatsheet")
    (synopsis "BibLaTeX and Biber cheat sheet")
    (description "This package provides a BibLaTeX and Biber cheat sheet.")
    (license license:lppl1.3+)))

(define-public texlive-bibtex8
  (package
    (name "texlive-bibtex8")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/csf/base/" "bibtex/csf/polish-csf/"
                   "doc/bibtex8/" "doc/man/man1/bibtex8.1"
                   "doc/man/man1/bibtex8.man1.pdf")
             (base32
              "1ywv5rdk08dnrqr09pnjzff37x2c9m5i1wjzfsjnvm068is58c7s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bibtex8")
    (synopsis "BibTeX variant supporting 8-bit encodings")
    (description
     "BibTeX8 is an enhanced, portable C version of BibTeX.  It is enhanced by
conversion to larger (32-bit) capacity, addition of run-time selectable
capacity and 8-bit support extensions.  National character set and sorting
order are controlled by an external configuration file.")
    (license license:gpl3+)))

(define-public texlive-bibtexu
  (package
    (name "texlive-bibtexu")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/bibtexu/" "doc/man/man1/bibtexu.1"
                   "doc/man/man1/bibtexu.man1.pdf")
             (base32
              "19bp8wn0ssz7gczxp0imbpgi1zwz9x3ya67f072rjzg2zmfpphqg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bibtexu")
    (synopsis "BibTeX variant supporting Unicode (UTF-8), via ICU")
    (description
     "BibTeXu is an enhanced, portable C version of BibTeX.  Unicode is
supported via the ICU library.")
    (license license:gpl3+)))

(define-public texlive-bundledoc
  (package
    (name "texlive-bundledoc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/arlatex.1"
                   "doc/man/man1/arlatex.man1.pdf"
                   "doc/man/man1/bundledoc.1"
                   "doc/man/man1/bundledoc.man1.pdf"
                   "doc/support/bundledoc/"
                   "scripts/bundledoc/"
                   "tex/latex/bundledoc/")
             (base32
              "1drgwqgkhr6ba4c21kyykl5y92x7dp6971if2hfcxsqk6kqy3ip1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "arlatex" "bundledoc")))
    (home-page "https://ctan.org/pkg/bundledoc")
    (synopsis "Bundle together all the files needed to build a LaTeX document")
    (description
     "The @code{bundledoc} package is a post-processor for the snapshot
package that bundles together all the classes, packages and files needed to
build a given LaTeX document.  It reads the @file{.dep} file that snapshot
produces, finds each of the files mentioned therein, and archives them into
a single @file{.tar.gz} (or @file{.zip}, or whatever) file, suitable for
moving across systems, transmitting to a colleague, etc.  A script,
@command{arlatex}, provides an alternative archiving mechanism, creating
a single LaTeX file that contains all of the ancillary files of a LaTeX
document, together with the document itself, using the @code{filecontents*}
environment.")
    (license license:lppl1.3c)))

(define-public texlive-checklistings
  (package
    (name "texlive-checklistings")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/checklistings/"
                   "scripts/checklistings/"
                   "source/latex/checklistings/"
                   "tex/latex/checklistings/")
             (base32
              "1ggq4i7nfx6ijqikgr48qgaaf7rd9h4a834gwsz8dv5f0zmgg1za")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "checklistings.sh")))
    (home-page "https://ctan.org/pkg/checklistings")
    (synopsis
     "Pass verbatim contents through a compiler and reincorporate the resulting output")
    (description
     "This package augments the @code{fancyvrb} and @code{listings} packages
to allow the source code they contain to be checked by an external tool (like
a compiler).  The external tool's messages can be automatically reincorporated
into the original document.  The package does not focus on a specific
programming language, but it is designed to work well with languages and
compilers in the ML family.")
    (license license:lppl1.2+)))

(define-public texlive-chklref
  (package
    (name "texlive-chklref")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/chklref.1"
                   "doc/man/man1/chklref.man1.pdf"
                   "doc/support/chklref/" "scripts/chklref/"
                   "tex/latex/chklref/")
             (base32
              "1namyi035gqhvldplj0yzfkgxq91zrifqxhsf32jgxhjgcbbal6g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "chklref.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/chklref")
    (synopsis "Check for problems with labels in LaTeX")
    (description
     "It is quite common that after modifying a TeX file, many unused labels
remain in it.  The purpose of chklref is to automatically find these useless
labels.  It also looks for non starred mathematical environments with no
labels and advises the user to use a starred version instead.")
    (license license:gpl3)))

(define-public texlive-chktex
  (package
    (name "texlive-chktex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "chktex/"
                   "doc/chktex/"
                   "doc/man/man1/chktex.1"
                   "doc/man/man1/chktex.man1.pdf"
                   "doc/man/man1/chkweb.1"
                   "doc/man/man1/chkweb.man1.pdf"
                   "doc/man/man1/deweb.1"
                   "doc/man/man1/deweb.man1.pdf"
                   "scripts/chktex/")
             (base32
              "0qyrllxvcymmr1a4sq9c88fw5zchcx0n6yac69s61fg6xypk18bq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "chkweb.sh" "deweb.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/chktex")
    (synopsis "Check for errors in LaTeX documents")
    (description
     "The program reports typographic and other errors in LaTeX documents.
Filters are also provided for checking the LaTeX parts of CWEB documents.")
    (license license:gpl2+)))

(define-public texlive-clojure-pamphlet
  (package
    (name "texlive-clojure-pamphlet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pamphletangler.1"
                   "doc/man/man1/pamphletangler.man1.pdf"
                   "doc/support/clojure-pamphlet/"
                   "scripts/clojure-pamphlet/"
                   "source/support/clojure-pamphlet/"
                   "tex/latex/clojure-pamphlet/")
             (base32
              "0dadr9wg7fa2vb6qkzqghrwmnns8jf4la1gb837a59jz2lh8955h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pamphletangler")))
    (home-page "https://ctan.org/pkg/clojure-pamphlet")
    (synopsis "Literate programming tool based on Clojure's Pamphlet system")
    (description
     "The Clojure pamphlet system is a system based on the Clojure literate
system.  In the Clojure's pamphlet system you have your main LaTeX file, which
can be compiled regularly.  This file contains documentation and source
code (just like in other forms of literate programming).  These code snippets
are wrapped in the @code{chunk} environment, hence they can be recognized by
the tangler in order to extract them.  Chunks can be included inside each
other by the @code{getchunk} command (which will be typesetted accordingly).
Finally, the LaTeX file will be run through the tangler to get the desired
chunk of code.")
    (license license:gpl3+)))

(define-public texlive-cluttex
  (package
    (name "texlive-cluttex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/cluttex/" "scripts/cluttex/")
             (base32
              "06i59jxanssx0hngnzkvmigg4gh0szm8n11095wlpdqrma1d162c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "cluttex.lua")))
    (home-page "https://ctan.org/pkg/cluttex")
    (synopsis "Automation tool for running LaTeX")
    (description
     "This is another tool for the automation of LaTeX document processing,
like @command{latexmk} or @command{arara}.  The main feature of this tool is
that it does not clutter your working directory with @file{.aux} or
@file{.log} or other auxiliary files.  It has of course the usual features of
automation tools.  It automatically re-runs (La)TeX for cross-references.
MakeIndex, BibTeX, Biber, or @command{makeglossaries} will be executed if
a corresponding option is set.  Furthermore, @command{cluttex} can watch input
files for changes (using an external program).")
    (license license:gpl3+)))

(define-public texlive-components
  (package
    (name "texlive-components")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/components/")
             (base32
              "04yg9hq0wcyi1ag9y9m2fnf5h3n4fdykiwljgpw0kyc73bfyhq1m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/components")
    (synopsis "Introduction to TeX components and files")
    (description
     "This package is an introduction to the components and files users of TeX
may encounter.")
    (license license:gpl3+)))

(define-public texlive-comprehensive
  (package
    (name "texlive-comprehensive")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/comprehensive/")
             (base32
              "1pa76hkxfmms5h6y6zyg4l5wrspprhnycfdigby8302srx676vhi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/comprehensive")
    (synopsis "Symbols accessible from LaTeX")
    (description
     "This package document the symbols accessible from LaTeX.  Over 18000
symbols are listed as a set of tables.  The tables of symbols are ordered in
a logical way (the document begins with a frequently requested symbols list),
the aim being to make the document a convenient way of looking up symbols.")
    (license license:lppl1.3+)))

(define-public texlive-ctan-o-mat
  (package
    (name "texlive-ctan-o-mat")
    (version (number->string %texlive-revision))
    (source (texlive-origin name version
                            (list "doc/man/man1/ctan-o-mat.1"
                                  "doc/man/man1/ctan-o-mat.man1.pdf"
                                  "doc/support/ctan-o-mat/"
                                  "scripts/ctan-o-mat/")
                            (base32
                             "1pm95xh3ji2sgdy243nbnzxsg2p4xpl3pymkm5yg2fn3nzgwgnaf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ctan-o-mat.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ctan-o-mat")
    (synopsis "Upload or validate a package for CTAN")
    (description
     "This program can be used to automate the upload of a package to CTAN.
The description of the package is contained in a configuration file.  The
provided information is validated in any case.  If the validation succeeds and
not only the validation is requested, then the provided archive file will be
placed in the incoming area of the CTAN for further processing by the CTAN
team.  In any case any finding during the validation is reported at the end of
the processing.  Note that the validation is the default and an official
submission has to be requested by an appropriate command line option.")
    (license license:bsd-3)))

(define-public texlive-ctan-chk
  (package
    (name "texlive-ctan-chk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/ctan_chk/")
             (base32
              "09ngqgs08q8bld334jrzhnd558lv7fajfppmfrkp4kv9hc5iyz9a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ctan_chk")
    (synopsis "CTAN guidelines verifier and corrector for uploading projects")
    (description
     "@code{ctan_chk} is a basic Gawk program that uses CTAN's published
guidelines for authors to help eliminate sloppiness in uploaded
files/projects.  It is completely open for users to program additional
guidelines as well as CTAN's future adjustments.")
    (license license:gpl3)))

(define-public texlive-ctanbib
  (package
    (name "texlive-ctanbib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/ctanbib.1"
                   "doc/man/man1/ctanbib.man1.pdf"
                   "doc/support/ctanbib/" "scripts/ctanbib/")
             (base32
              "0vlx37g8mp8rqb744bngykzh8yszscw2vlv7n78c8ymagx2c1xpf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ctanbib")))
    (home-page "https://ctan.org/pkg/ctanbib")
    (synopsis "Export CTAN entries to bib format")
    (description
     "This package provides a Lua script which can be used for retrieving
bibliographic information in BibLaTeX format for packages hosted on CTAN.  The
@command{ctanbib} script depends only on LuaXML.")
    (license license:lppl1.3+)))

(define-public texlive-ctanify
  (package
    (name "texlive-ctanify")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ctanify/"
                   "doc/man/man1/ctanify.1"
                   "doc/man/man1/ctanify.man1.pdf"
                   "scripts/ctanify/")
             (base32
              "1m6gldzm0sm4j7v2kkrpqikx004sqdq0f2gw13gc8ccqzl745cjw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ctanify")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ctanify")
    (synopsis "Prepare a package for upload to CTAN")
    (description
     "Given a list of filenames, @command{ctanify} creates a tarball (a
@file{.tar.gz} file) with the files laid out in CTAN's preferred structure.
By default this tarball additionally contains a ZIP file with copies of all
files laid out in the standard TeX Directory Structure (TDS), which may be
used by those intending to install the package, or by those who need to
incorporate it in a distribution.")
    (license license:lppl1.3c)))

(define-public texlive-ctanupload
  (package
    (name "texlive-ctanupload")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/ctanupload/"
                   "scripts/ctanupload/")
             (base32
              "0w4k9sslhnpn5l90wbr7cr7pv8fhiiabasbi6l6gw3w3nrfmarh4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ctanupload.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ctanupload")
    (synopsis "Support for users uploading to CTAN")
    (description
     "The package provides a Perl script that allows the uploads of
a contribution to CTAN from the command line.  The aim is to simplify the
release process for LaTeX package authors.  Note by the CTAN
team (2015-02-05): It seems that this script is currently not working.")
    (license license:gpl3)))

(define-public texlive-ctex
  (package
    (name "texlive-ctex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ctex/" "source/latex/ctex/"
                   "tex/generic/ctex/" "tex/latex/ctex/"
                   "tex/luatex/ctex/")
             (base32
              "17zyr0cyxvp91832q35ha3qabdzh4njh96yvp4gfkkfkkszqp3jh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     ;; FIXME: I couldn't find how to build this package from source.
     (list #:phases #~(modify-phases %standard-phases (delete 'build))))
    (propagated-inputs
     (list texlive-adobemapping
           texlive-atbegshi
           texlive-beamer
           texlive-cjk
           texlive-cjkpunct
           texlive-ec
           texlive-epstopdf-pkg
           texlive-etoolbox
           texlive-everyhook
           texlive-fandol
           texlive-fontspec
           texlive-iftex
           texlive-infwarerr
           texlive-kvoptions
           texlive-kvsetkeys
           texlive-latex-bin
           texlive-ltxcmds
           texlive-luatexja
           texlive-mptopdf
           texlive-ms
           texlive-pdftexcmds
           texlive-platex-tools
           texlive-svn-prov
           texlive-tipa
           texlive-tools
           texlive-ttfutils
           texlive-ulem
           texlive-uplatex
           texlive-xcjk2uni
           texlive-xecjk
           texlive-xetex
           texlive-xkeyval
           texlive-xpinyin
           texlive-xunicode
           texlive-zhmetrics
           texlive-zhmetrics-uptex
           texlive-zhnumber))
    (home-page "https://ctan.org/pkg/ctex")
    (synopsis "LaTeX classes and packages for Chinese typesetting")
    (description
     "CTeX is a collection of macro packages and document classes for LaTeX
Chinese typesetting.")
    (license license:lppl1.3c)))

(define-public texlive-ctex-faq
  (package
    (name "texlive-ctex-faq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ctex-faq/")
             (base32
              "15c0g0x8w7vm3hyn6lk60jf66akyfcq6x8jc2lnbjx8ydwgb26br")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ctex-faq")
    (synopsis "LaTeX FAQ by the Chinese TeX Society (ctex.org)")
    (description
     "This is the LaTeX FAQ by the Chinese TeX Society.  Most questions were
collected on the @url{bbs.ctex.org} forum, and were answered in detail by the
author.")
    (license license:fdl1.3+)))

(define-public texlive-ctib
  (package
    (name "texlive-ctib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ctib/"
                   "fonts/source/public/ctib/"
                   "fonts/tfm/public/ctib/"
                   "source/latex/ctib/" "tex/latex/ctib/")
             (base32
              "0qvh0icrijcsyi3kvzkp890qjx7j9axv9yzzfa1paivyfp33aijn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/ctib4tex")
    (synopsis "Tibetan for TeX and LaTeX2e")
    (description
     "This LaTeX package uses a modified version of Sirlin's Tibetan font.  An
advantage of this Tibetan implementation is that all consonant clusters are
formed by TeX and Metafont.  No external preprocessor is needed.")
    (license license:gpl3+)))

(define-public texlive-ctie
  (package
    (name "texlive-ctie")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/ctie.1"
                   "doc/man/man1/ctie.man1.pdf")
             (base32
              "1avhvyv70jds5xzwp7p1km6d8yha84ckqdw1r1vkgfb959wd3yi1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/ctie")
    (synopsis "C version of @code{tie} (merging Web change files)")
    (description
     "This is a version of @code{tie} converted for use with Cweb.")
    (license license:gpl3+)))

(define-public texlive-de-macro
  (package
    (name "texlive-de-macro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/de-macro/" "scripts/de-macro/")
             (base32
              "1lrrgdmzr6k2v6brz8w1s9v77c7pm7vmcvwga3d0pfndb39bh49j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "de-macro")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/de-macro")
    (synopsis "Expand private macros in a document")
    (description
     "De-macro is a Python script that helps authors who like to use private
LaTeX macros (for example, as abbreviations).  A technical editor or
a cooperating author may balk at such a manuscript; you can avoid manuscript
rejection misery by running de-macro on it.  De-macro will expand macros
defined in @code{\\(re)newcommand} or @code{\\(re)newenvironment} commands,
within the document, or in the document's private package file.")
    (license license:afl2.1)))

(define-public texlive-detex
  (package
    (name "texlive-detex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/detex.1"
                   "doc/man/man1/detex.man1.pdf")
             (base32
              "08d017wn7a67pmp9b5yhnfg1x2q6f48qaa5ma4bplz9a782icwjy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/detex")
    (synopsis "Strip TeX from a source file")
    (description
     "Detex is a program to remove TeX constructs from a text file.  It
recognizes the @code{\\input} command.  The program assumes it is dealing with
LaTeX input if it sees the string @code{\\begin@{document@}} in the text.  In
this case, it also recognizes the @code{\\include} and @code{\\includeonly}
commands.  The author now considers this program to be obsolete and Piotr
Kubowicz's OpenDetex as its successor.")
    (license license:bsd-3)))

(define-public texlive-digestif
  (package
    (name "texlive-digestif")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/digestif/" "scripts/digestif/")
             (base32
              "1s7nmbjxpa6klmh0cc6g4s6vd9wmlv4dxp51xb4b872hrj510zbi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "digestif.texlua")))
    (home-page "https://ctan.org/pkg/digestif")
    (synopsis "Editor plugin for LaTeX, ConTeXt etc.")
    (description
     "Digestif is a code analyzer, and a language server, for LaTeX, plain TeX,
ConTeXt and Texinfo.  It provides context-sensitive completion, documentation,
code navigation, and related functionality to any text editor that speaks the
LSP protocol.")
    (license (list license:gpl3+ license:lppl1.3+ license:fdl1.3+))))

(define-public texlive-dickimaw
  (package
    (name "texlive-dickimaw")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dickimaw/")
             (base32
              "1mxjqn4lblnpbmad3jk453lyx1qzcmrddis59j3jsgc5sp929w4k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dickimaw")
    (synopsis "Books and tutorials from the @emph{Dickimaw LaTeX Series}")
    (description
     "The package provides some of the books and tutorials that form part of
the @code{Dickimaw LaTeX Series}.  Only the A4 PDF of each book is detailed
here.  Other formats, such as HTML or screen optimized PDF, are available from
the package home page.

Books included are:
@itemize
@item @emph{LaTeX for Complete Novices},
@item @emph{Using LaTeX to Write a PhD thesis},
@item @emph{Creating a LaTeX minimal example}.
@end itemize")
    (license license:fdl1.3+)))

(define-public texlive-docsurvey
  (package
    (name "texlive-docsurvey")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/docsurvey/")
             (base32
              "0f2kzmmpm7qwci04krmnz5impfwwmy2wwanmgq05878w8xbcqjj6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/docsurvey")
    (synopsis "Survey of LaTeX documentation")
    (description
     "This package provides a survey of programming-related documentation for
LaTeX.  Included are references to printed and electronic books and manuals,
symbol lists, FAQs, the LaTeX source code, CTAN and distributions,
programming-related packages, users groups and online communities, and
information on creating packages and documentation.")
    (license license:lppl1.3+)))

(define-public texlive-dtl
  (package
    (name "texlive-dtl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dt2dv.1"
                   "doc/man/man1/dt2dv.man1.pdf"
                   "doc/man/man1/dv2dt.1"
                   "doc/man/man1/dv2dt.man1.pdf")
             (base32
              "0kvnsr8nxrys99rp74wlxnisfripx6jpjjkqy38d3d4gw13cvb5g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dtl")
    (synopsis "Tools to dis-assemble and re-assemble DVI files")
    (description
     "DTL (DVI Text Language) is a means of expressing the content of a DVI file,
which is readily readable by humans.  The DTL bundle contains an assembler
@command{dt2dv}, which produces DVI files from DTL files, and a disassembler
@command{dv2dt}, which produces DTL files from DVI files.")
    (license license:public-domain)))

(define-public texlive-dtxgen
  (package
    (name "texlive-dtxgen")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/dtxgen/" "scripts/dtxgen/")
             (base32
              "1j1j136p4ddjlmwmhwlpmsxqpx2ixhhssfsl8l49lds80ad4y98m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "dtxgen")))
    (home-page "https://ctan.org/pkg/dtxgen")
    (synopsis "Creates a template for a self-extracting @file{.dtx} file")
    (description
     "The Bash script dtxgen creates a template for a self-extracting
@file{.dtx} file.  It is useful for those who plan to create a new documented
LaTeX source (.dtx) file.")
    (license license:gpl3+)))

(define-public texlive-dtxtut
  (package
    (name "texlive-dtxtut")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dtxtut/")
             (base32
              "1szg0xvwm0jbzs8waillijzrff4kv04a73gsqh9c12ap427xfryr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dtxtut")
    (synopsis "Tutorial on writing @file{.dtx} and @file{.ins} files")
    (description
     "This tutorial is intended for advanced LaTeX2e users who want to learn
how to create @file{.ins} and @file{.dtx} files for distributing their
homebrewed classes and package files.")
    (license license:lppl1.3+)))

(define-public texlive-dvi2tty
  (package
    (name "texlive-dvi2tty")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/disdvi.1"
                   "doc/man/man1/disdvi.man1.pdf"
                   "doc/man/man1/dvi2tty.1"
                   "doc/man/man1/dvi2tty.man1.pdf")
             (base32
              "108y0qxh13x0iivgsvkk4370f471p03nyl4x9nn7lng1wrsafp6h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvi2tty")
    (synopsis "Produce ASCII from DVI")
    (description
     "This package provides a DVI driver to produce an ASCII representation of
the document.")
    (license license:gpl2)))

(define-public texlive-dviasm
  (package
    (name "texlive-dviasm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dviasm/" "doc/man/man1/dviasm.1"
                   "doc/man/man1/dviasm.man1.pdf"
                   "scripts/dviasm/")
             (base32
              "1hx4j0pmh4h3194xxcvjnh5nr069sysbqxvg4zzmci6gjr7mjg7f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "dviasm.py")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/dviasm")
    (synopsis "Utility for editing DVI files")
    (description
     "This package provides a Python script to support changing or creating
DVI files via disassembling into text, editing, and then reassembling into
binary format.  It supports advanced features such as adding a preprint number
or watermarks.")
    (license license:gpl3+)))

(define-public texlive-dvicopy
  (package
    (name "texlive-dvicopy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvicopy.1"
                   "doc/man/man1/dvicopy.man1.pdf")
             (base32
              "010bs4iyaja7mq5wy9mz6fzxlxf9472c2zdm93x9i474dzgnh2vl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvicopy")
    (synopsis "Copy DVI files, flattening VFs")
    (description
     "@command{dvicopy} is a utility program that allows one to take a DVI
file that references composite fonts (VF) and convert it into a DVI file that
does not contain such references.  It also serves as a basis for writing DVI
drivers (much like DVItype).")
    (license license:gpl3+)))

(define-public texlive-dvidvi
  (package
    (name "texlive-dvidvi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvidvi.1"
                   "doc/man/man1/dvidvi.man1.pdf")
             (base32
              "1w153rqm7nlmcf6162glxz282nbb6b6hjf5h0p7mbzr0j1357sxj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvidvi")
    (synopsis "Convert one DVI file into another")
    (description
     "This @command{dvidvi} converts one DVI file into another.  The output
DVI file's contents are specified by page selection commands; series of pages
and page number ranges may be specified, as well as inclusions and
exclusions.")
    ;; Its author stated the program is to be used under the GPL.  See
    ;; <https://metadata.ftp-master.debian.org/changelogs//main/d/dvidvi/dvidvi_1.0-8.2_copyright>.
    (license license:gpl3)))

(define-public texlive-dviinfox
  (package
    (name "texlive-dviinfox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dviinfox/" "scripts/dviinfox/")
             (base32
              "1rc662dllanawrlz2r0pnisl6zzc7c3bivsqy72iq87a92cq8kml")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "dviinfox.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/dviinfox")
    (synopsis "Perl script to print DVI meta information")
    (description
     "The package provides a Perl script which prints information about a DVI
file.  It also supports XeTeX XDV format.")
    (license license:expat)))

(define-public texlive-dviljk
  (package
    (name "texlive-dviljk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvihp.1"
                   "doc/man/man1/dvihp.man1.pdf"
                   "doc/man/man1/dvilj.1"
                   "doc/man/man1/dvilj.man1.pdf"
                   "doc/man/man1/dvilj2p.1"
                   "doc/man/man1/dvilj2p.man1.pdf"
                   "doc/man/man1/dvilj4.1"
                   "doc/man/man1/dvilj4.man1.pdf"
                   "doc/man/man1/dvilj4l.1"
                   "doc/man/man1/dvilj4l.man1.pdf"
                   "doc/man/man1/dvilj6.1"
                   "doc/man/man1/dvilj6.man1.pdf")
             (base32
              "03pi78c8ghy2gghzk1ffrvf5x7h8c1r0pv5pcspwxz365x2rsbjw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dviljk")
    (synopsis "DVI to Laserjet output")
    (description
     "This package provides a DVI driver for the LaserJet printers, using
@command{kpathsea} recursive file searching.")
    (license license:gpl3+)))

(define-public texlive-dviout-util
  (package
    (name "texlive-dviout-util")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/chkdvifont.1"
                   "doc/man/man1/chkdvifont.man1.pdf"
                   "doc/man/man1/dvispc.1"
                   "doc/man/man1/dvispc.man1.pdf")
             (base32
              "098pksgf2iamq96rmzg5fw7i9dlpvdksficsz1bf8k8z4djnbk8n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Utilities from the @code{dviout} package")
    (description
     "This package provides two utilities: @command{chkdvifont}, which check
fonts in DVI/TFM/JFM/FONT files, and @command{dvispc}, which corrects the
page-independence of DVI file using color specials or tpic specials, and
transforms between a DVI file and a text file.")
    (license license:expat)))

(define-public texlive-dvipng
  (package
    (name "texlive-dvipng")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/dvipng/"
                   "doc/info/dvipng.info"
                   "doc/man/man1/dvigif.1"
                   "doc/man/man1/dvigif.man1.pdf"
                   "doc/man/man1/dvipng.1"
                   "doc/man/man1/dvipng.man1.pdf")
             (base32
              "0r001q4p5569dagayds1c56y10ls6f6v7mmywiw81l995q16apxi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvipng")
    (synopsis "DVI to PNG/GIF converter")
    (description
     "This program makes PNG and/or GIF graphics from DVI files as obtained
from TeX and its relatives.  It offers very fast rendering of DVI as bitmap
files, which makes it suitable for generating large amounts of images
on-the-fly, as needed in @code{preview-latex}, WeBWorK and others.  It does
not read the postamble, so it can be started before TeX finishes.")
    (license license:lgpl3)))

(define-public texlive-dvipos
  (package
    (name "texlive-dvipos")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvipos.1"
                   "doc/man/man1/dvipos.man1.pdf")
             (base32
              "0dmaas4m9y4px53vlg0jr73xviki338fm2n176l8ldwqj0vvq1b8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support DVI @samp{pos:} specials used by ConTeXt DVI output")
    (description
     "@command{dvipos} parses a DVI file looking for @samp{pos:} specials.
It then outputs the information from those specials along with information
that only a DVI postprocessor could determine, such as the current @samp{x}
and @samp{y} location.")
    (license license:gpl2+)))

(define-public texlive-dvipsconfig
  (package
    (name "texlive-dvipsconfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/dvipsconfig/")
             (base32
              "02vgk91y80ch4pkj83vbiz1b2ccigf152hm83p607y4n4qn2xzsf")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvipsconfig")
    (synopsis "Collection of dvips PostScript headers")
    (description
     "This is a collection of dvips PostScript header and dvips config files.
They control certain features of the printer, including: A4, A3, usletter,
simplex, duplex / long edge, duplex / short edge, screen frequencies of
images, black/white invers, select transparency / paper for tektronix 550/560,
manual feeder, envelope feeder, and tray 1, 2 and 3, and printing a PostScript
grid underneath the page material--very useful for measuring and eliminating
paper feed errors!")
    (license license:gpl3+)))

(define-public texlive-dvisvgm
  (package
    (name "texlive-dvisvgm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvisvgm.1"
                   "doc/man/man1/dvisvgm.man1.pdf")
             (base32
              "1fz3sa7p9wk2g1v0bpy87vz7nxwrh5bsfl4m734n6lhsh1bkj6fb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvisvgm")
    (synopsis
     "Convert DVI, EPS, and PDF files to Scalable Vector Graphics format (SVG)")
    (description
     "Dvisvgm is a command line utility that converts TeX DVI as well as EPS
and PDF files to the XML-based Scalable Vector Graphics (SVG) format.  It
provides full font support including virtual fonts, font maps, and sub-fonts.
If necessary, @command{dvisvgm} vectorizes Metafont's bitmap output in order
to always create lossless scalable output.  The embedded SVG fonts can
optionally be replaced with graphics paths so that applications that do not
support SVG fonts are enabled to render the graphics properly.")
    (license license:gpl3+)))

(define-public texlive-ebong
  (package
    (name "texlive-ebong")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ebong/" "scripts/ebong/")
             (base32
              "0ivzr6d83ws7q00k71zdz1v25y88fhja1safc4jfvd45i58fccy7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ebong.py")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/ebong")
    (synopsis "Utility for writing Bengali in Rapid Roman Format")
    (description
     "This package provides a tool (preprocessor) for writing your
@code{pRaa-ne-r} ka-thaa in the Bengali langauage.  It allows one to write the
text in Rapid Roman Bangla and convert it to the BangTeX format by a Python
program.  All LaTeX markups are preserved in the target file.")
    (license license:public-domain)))

(define-public texlive-eijkhout
  (package
    (name "texlive-eijkhout")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/eijkhout/")
             (base32
              "00y3y01jpgzww1x6zjh748hpvizlrbgrv04p8aq3cm2pzs0g17qk")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eijkhout")
    (synopsis "Victor Eijkhout's packages")
    (description
     "The package provides three unrelated tools: @code{DB_process}, to parse
and process database output; @code{CD_labeler}, to typeset user text to fit on
a CD label; and @code{repeat}, a nestable, generic loop macro.")
    (license
     (list license:gpl2+                ;CD_labeler and DB_process.tex
           license:lppl))))             ;repeat.tex

(define-public texlive-encxvlna
  (package
    (name "texlive-encxvlna")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/encxvlna/"
                   "tex/latex/encxvlna/" "tex/plain/encxvlna/")
             (base32
              "01lgh560xhn56k5pps65lq9c5rn0kbrcfvqfikrqq83g3n7k2p8v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/encxvlna")
    (synopsis "Insert nonbreakable spaces, using encTeX")
    (description
     "The package provides tools for inserting nonbreakable spaces after
nonsyllabic prepositions and single letter conjunctions as required by Czech
and Slovak typographical rules.  It is implemented using encTeX and provides
files both for plain TeX and LaTeX.")
    (license license:lppl)))

(define-public texlive-epigram
  (package
    (name "texlive-epigram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/epigram/")
             (base32
              "1zps5067mgi7xq3fpjvjln8i0rz53j7qn660khraq8ribv4glnpf")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/epigram")
    (synopsis "Display short quotations")
    (description
     "The package determines (on the basis of the width of the text of the
epigram, laid out on a single line) whether to produce a line or a displayed
paragraph.")
    (license license:public-domain)))

(define-public texlive-epsf-dvipdfmx
  (package
    (name "texlive-epsf-dvipdfmx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/epsf-dvipdfmx/"
                   "tex/plain/epsf-dvipdfmx/")
             (base32
              "0xj4hag3nldxxjcpympvra5cdn19nk76af9dxq07ci585gcki3x5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/epsf-dvipdfmx")
    (synopsis "Plain TeX file for using epsf.tex with (x)dvipdfmx")
    (description
     "@file{epsf-dvipdfmx.tex} is a plain TeX file to be @code{\\input} after
@file{epsf.tex} when using plain TeX with @code{dvipdfmx}.  It is needed when
an @file{.eps} file has anything except the origin for the lower-left of its
bounding box.")
    (license license:public-domain)))

(define-public texlive-ethiop
  (package
    (name "texlive-ethiop")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ethiop/"
                   "fonts/ofm/public/ethiop/"
                   "fonts/ovf/public/ethiop/"
                   "fonts/ovp/public/ethiop/"
                   "fonts/source/public/ethiop/"
                   "fonts/tfm/public/ethiop/"
                   "omega/ocp/ethiop/"
                   "omega/otp/ethiop/"
                   "source/latex/ethiop/"
                   "tex/latex/ethiop/")
             (base32
              "1852g96rjyrsky7mpfwlxgip11qmk800xcmqccs8cv51f5342qlq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/ethiop")
    (synopsis "LaTeX macros and fonts for typesetting Amharic")
    (description
     "This package provides Ethiopian language support for the Babel package,
including a collection of fonts and TeX macros for typesetting the characters
of the languages of Ethiopia, with Metafont fonts based on EthTeX's.  The
macros use the Babel framework.")
    (license license:gpl3+)))

(define-public texlive-ethiop-t1
  (package
    (name "texlive-ethiop-t1")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ethiop-t1/"
                   "fonts/map/dvips/ethiop-t1/"
                   "fonts/type1/public/ethiop-t1/")
             (base32
              "19n6i61db88nhhkq9gg3gfr3sgpaf1ylr41l0xdhpfkn71y7par1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ethiop-t1")
    (synopsis "Type 1 versions of Amharic fonts")
    (description
     "These fonts provided in this package are drop-in Adobe type
1 replacements for the fonts of the @code{ethiop} package.")
    (license license:gpl3+)))

(define-public texlive-expex-acro
  (package
    (name "texlive-expex-acro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/expex-acro/"
                   "source/generic/expex-acro/"
                   "tex/generic/expex-acro/")
             (base32
              "04ckyr574bs10xd2a0fg6x30325a4dbbbjl1axzlhaq1kn07r7kh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/expex-acro")
    (synopsis "Wrapper for the expex package")
    (description
     "This is a small wrapper for the @code{expex} package, adding ways to
define, use, and summarize glossing abbreviations.  It also provides commands
to refer to examples, as well as some inline formatting commands commonly used
in linguistics.")
    (license license:lppl1.3+)))

(define-public texlive-expkv-bundle
  (package
    (name "texlive-expkv-bundle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/expkv-bundle/"
                   "source/latex/expkv-bundle/"
                   "tex/context/third/expkv-bundle/"
                   "tex/generic/expkv-bundle/"
                   "tex/latex/expkv-bundle/")
             (base32
              "09ijb71w69bnhi38i8z2bnv8d4r4sdg337v61yi66y94z8d9iid9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/expkv-bundle")
    (synopsis "Expandable @samp{key=val} implementation and friends")
    (description
     "This is a collection of different packages that provide @samp{key=value}
functionality in plainTeX, LaTeX, and ConTeXt.

At the core, the @code{expkv} package implements two expandable
@samp{key=value} parsers that are somewhat fast and robust against common bugs
in many key=value implementations (no accidental brace stripping, no fragility
for active commas or equals signs).

@code{expkv-cs} enables users to define expandable @samp{key=value} macros in
a comfortable and straightforward way.

@code{expkv-def} provides an interface to define common key types for
@code{expkv} similar to the key defining interfaces of widespread
@samp{key=value} implementations.

@code{expkv-opt} allows to parse package or class options in LaTeX via
@code{expkv}.

@code{expkv-pop} is a utility package to define prefix oriented parsers that
allow a somewhat natural formulation.")
    (license license:lppl1.3c)))

(define-public texlive-fc
  (package
    (name "texlive-fc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fc/" "fonts/source/jknappen/fc/"
                   "fonts/tfm/jknappen/fc/" "tex/latex/fc/")
             (base32
              "0v0r8jcr1lv31mx613h76h13psj73g49p2a6dnd0nfbfharww3gr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               ;; FIXME: Font metrics cannot be generated due to "bad pos"
               ;; errors with "fcitt" fonts.
               (delete 'generate-font-metrics))))
    (native-inputs (list texlive-metafont texlive-sauter))
    (home-page "https://ctan.org/pkg/fc")
    (synopsis "Fonts for African languages")
    (description
     "This package includes fonts for African languages.  The fonts are
provided as Metafont source, in the familiar arrangement of lots of preamble
files and a modest set of glyph specifications.")
    (license license:gpl2)))

(define-public texlive-fenixpar
  (package
    (name "texlive-fenixpar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/fenixpar/"
                   "tex/generic/fenixpar/")
             (base32
              "1363dr8fnhflw0mysv23mpp2vf02vfxs43nnv95yqkbsvp9fj502")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fenixpar")
    (synopsis "One-shot changes to token registers such as @code{\\everypar}")
    (description
     "The bundle provides two packages, @code{fenxitok} and
@code{fenixpar}.  The @code{fenixtok} package provides user macros to
add material to a token register; the material will be
(automatically) removed from the token register when the register is executed.
Material may be added either to the left or to the right, and care is taken
not to override any redefinition that may be included in the token register
itself.  The @code{fenixpar} package uses the macros of @code{fenixtok} to
provide a user interface to manipulation of the @code{\\everypar} token
register.  The packages require the e-TeX extensions; with them, they work
either with Plain TeX or with LaTeX.")
    (license license:lppl)))

(define-public texlive-feupphdteses
  (package
    (name "texlive-feupphdteses")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/feupphdteses/"
                   "tex/latex/feupphdteses/")
             (base32
              "1p6qwmcwayh45cmsgyx352ffzj2fcx2gaaya5qadn0ymx0pvb0lp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/feupphdteses")
    (synopsis "Typeset Engineering PhD theses at the University of Porto")
    (description
     "This package provides a complete template for thesis/works of Faculdade
de Engenharia da Universidade do Porto (FEUP) Faculty of Engineering
University of Porto.")
    (license license:lppl)))

(define-public texlive-figflow
  (package
    (name "texlive-figflow")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/figflow/" "tex/plain/figflow/")
             (base32
              "1vsrsw5rrqjym0flca9537m41vs7wlk8mhl9zmqjfaxgi8jvc9ml")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/figflow")
    (synopsis "Flow text around a figure")
    (description
     "This package provides a Plain TeX macro @code{\\figflow} that allows one
to insert a figure into an area inset into a paragraph.  Command arguments are
width and height of the figure, and the figure (and its caption) itself.  The
package does not work with LaTeX; packages such as @code{wrapfig},
@code{floatflt} and @code{picins} support the needs of LaTeX users in this
area.")
    ;; README states: "You may freely use, modify, and/or distribute this
    ;; file, without limitation."
    (license (license:fsf-free "file://doc/plain/figflow/README"))))

(define-public texlive-finbib
  (package
    (name "texlive-finbib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/finbib/")
             (base32
              "1dr1ivhfb83ky3q82dzzv5vvc8bl84iq7am0p1rc8fjlbj95i4wm")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/finplain")
    (synopsis "Finnish version of @file{plain.bst}")
    (description "This package provides a Finnish version of
@file{plain.bst}.")
    (license license:knuth)))

(define-public texlive-findhyph
  (package
    (name "texlive-findhyph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/findhyph.1"
                   "doc/man/man1/findhyph.man1.pdf"
                   "doc/support/findhyph/" "scripts/findhyph/")
             (base32
              "1bxj0li1a9qsvwmp0kmfsal4vsgsqal1lgmp4423z9nvwrwvvlrr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "findhyph")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/findhyph")
    (synopsis "Find hyphenated words in a document")
    (description
     "Findhyph is a Perl script that will analyse the log file from running
your document with @code{\\tracingparagraphs=1} set.  The output contains
enough context to enable you to find the hyphenated word that's being
referenced.")
    (license license:gpl2)))

(define-public texlive-first-latex-doc
  (package
    (name "texlive-first-latex-doc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/first-latex-doc/")
             (base32
              "13ngk5pia5vbrbb4jrrlq1lmyja08m7cy4ydcjasxha8kns001ss")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/first-latex-doc")
    (synopsis "Document for absolute LaTeX beginners")
    (description
     "The document leads a reader, who knows nothing about LaTeX, through the
production of a two page document.  The user who has completed that first
document, and wants to carry on, will find recommendations for tutorials.")
    (license license:public-domain)))

(define-public texlive-fixpdfmag
  (package
    (name "texlive-fixpdfmag")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/plain/fixpdfmag/")
             (base32
              "0s5ilsmnhvi57x9cqwp7nwpagfribmgkbl0z1ci55aw2a6bff9hn")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fixpdfmag")
    (synopsis "Fix magnification in pdfTeX")
    (description
     "This package provides a recent change to pdfTeX has caused magnification
to apply to page dimensions.")
    (license license:public-domain)))

(define-public texlive-fltpoint
  (package
    (name "texlive-fltpoint")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/fltpoint/"
                   "source/generic/fltpoint/"
                   "tex/generic/fltpoint/")
             (base32
              "0k85cyh39rxr3jrgyxcj1lrya5zss5da62pj7q8412naaklkhd7n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fltpoint")
    (synopsis "Simple floating point arithmetic")
    (description
     "The package provides simple floating point operations (addition,
subtraction, multiplication, division and rounding).")
    (license license:lppl1.2+)))

(define-public texlive-fntproof
  (package
    (name "texlive-fntproof")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/fntproof/"
                   "tex/generic/fntproof/")
             (base32
              "0pw0nw0dalnxqxpfgpw4pglngz3iff8sxxfdn89ygz46sv6427n5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fntproof")
    (synopsis "Programmable font test pattern generator")
    (description
     "The package implements all the font testing commands of Knuth's
@file{testfont.tex}, but arranges that information necessary for each command
is supplied as arguments to that command, rather than prompted for.  This
makes it possible to type all the tests in one command line, and easy to input
the package in a file and to use the commands there.  A few additional
commands supporting this last purpose are also made available.")
    (license license:public-domain)))

(define-public texlive-font-change
  (package
    (name "texlive-font-change")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/font-change/"
                   "tex/plain/font-change/")
             (base32
              "1b2i3gwrwfa2ab95m2ksmypiwc5dmfyirymhm18g1h0zpj86ccza")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/font-change")
    (synopsis "Macros to change text and mathematics fonts in plain TeX")
    (description
     "This package provides macros to change text and mathematics fonts in
TeX.  The macros are written for plain TeX and may be used with other packages
like AmSTeX, eplain, etc.  They also work with XeTeX. The macros allow users
to change the fonts (for both text and mathematics) in their TeX document with
only one statement.  The fonts may be used readily at various predefined
sizes.")
    (license license:cc-by-sa3.0)))

(define-public texlive-fontch
  (package
    (name "texlive-fontch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/fontch/" "tex/plain/fontch/")
             (base32
              "19v8l76181yhan6ybc47i5sq4mirc8lc7x1zxqxmk15wyvax9lm9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fontch")
    (synopsis "Changing fonts, sizes and encodings in Plain TeX")
    (description
     "The fontch macros allow the user to change font size and family anywhere
in a plain TeX document.  Sizes of 8, 10, 12, 14, 20 and 24 points are
available.  A sans serif family is defined in addition to the families already
defined in plain TeX. Optional support for Latin Modern T1 and TS1 fonts is
given.  There are macros for non-latin1 letters and for most TS1 symbols.
Math mode always uses CM fonts.  A command for producing doubled-spaced
documents is also provided.")
    (license license:lppl)))

(define-public texlive-fontinstallationguide
  (package
    (name "texlive-fontinstallationguide")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fontinstallationguide/")
             (base32
              "1i6im0nckcr9fzs0kc54dvcj3jvjz2j8jd55xgjm0r569qjj1hi5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fontinstallationguide")
    (synopsis "Font installation guide")
    (description
     "This guide discusses the most common scenarios you are likely to
encounter when installing Type 1 PostScript fonts.  While the individual tools
employed in the installation process are documented well, the actual
difficulty most users are facing when trying to install new fonts is
understanding how to put all the pieces together.  This is what this guide is
about.")
    (license license:fdl1.3+)))

(define-public texlive-fontools
  (package
    (name "texlive-fontools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/afm2afm.1"
                   "doc/man/man1/afm2afm.man1.pdf"
                   "doc/man/man1/autoinst.1"
                   "doc/man/man1/autoinst.man1.pdf"
                   "doc/man/man1/ot2kpx.1"
                   "doc/man/man1/ot2kpx.man1.pdf"
                   "doc/support/fontools/"
                   "fonts/enc/dvips/fontools/"
                   "scripts/fontools/")
             (base32
              "0jfqwhj2i9x9bzq723ch5z3sydfkaha4xr0xlp2haav713ll5027")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "afm2afm" "autoinst" "ot2kpx")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/fontools")
    (synopsis "Tools to simplify using fonts (especially TT/OTF ones)")
    (description
     "This package provides tools to simplify using OpenType fonts with LaTeX.
By far the most important program in this bundle is @command{autoinst},
a wrapper script around Eddie Kohler's LCDF TypeTools.  Autoinst aims to
automate the installation of OpenType fonts in LaTeX by calling the LCDF
TypeTools (with the correct options) for all fonts you wish to install, and
generating the necessary @file{.fd} and @file{.sty} files.

In addition, this bundle contains a few other, less important utilities:
@itemize
@item @command{afm2afm}: re-encodes @file{.afm} files,
@item @command{ot2kpx}: extract kerning pairs from OpenType fonts,
@item @command{splitttc}: split an OpenType Collection file (ttc or
otc) into individual fonts.
@end itemize")
    (license license:gpl2)))

(define-public texlive-fonts-tlwg
  (package
    (name "texlive-fonts-tlwg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fonts-tlwg/"
                   "fonts/afm/public/fonts-tlwg/"
                   "fonts/enc/dvips/fonts-tlwg/"
                   "fonts/map/dvips/fonts-tlwg/"
                   "fonts/opentype/public/fonts-tlwg/"
                   "fonts/tfm/public/fonts-tlwg/"
                   "fonts/type1/public/fonts-tlwg/"
                   "fonts/vf/public/fonts-tlwg/"
                   "source/fonts/fonts-tlwg/"
                   "tex/latex/fonts-tlwg/")
             (base32
              "19g1ksxsidf6cpcxm3knbbfpjw6jsfq2acy99cgmsy7jn33k253b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fonts-tlwg")
    (synopsis "Thai fonts for LaTeX from TLWG")
    (description
     "This package provides a collection of Thai fonts, supplied as FontForge
sources, and with LaTeX @file{.fd} files.")
    (license (list license:gpl2+
                   license:lppl1.3+
                   (license:x11-style "file://source/fonts/fonts-tlwg/COPYING")))))

(define-public texlive-fontware
  (package
    (name "texlive-fontware")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pltotf.1"
                   "doc/man/man1/pltotf.man1.pdf"
                   "doc/man/man1/tftopl.1"
                   "doc/man/man1/tftopl.man1.pdf"
                   "doc/man/man1/vftovp.1"
                   "doc/man/man1/vftovp.man1.pdf"
                   "doc/man/man1/vptovf.1"
                   "doc/man/man1/vptovf.man1.pdf")
             (base32
              "0ng27m6cz92aa52z99gnw5i8s8fbkxq4354mygwnchchgxndcba0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/vfware")
    (synopsis "Tools for virtual font metrics")
    (description
     "Virtual font metrics are usually created in a textual form, the Virtual
Property List, but programs that use them need to use binary files (the
Virtual Font and the TeX Font Metric).  The two programs provided in this
package translate between the two forms: @command{vptovf} takes a VPL file and
generates a VF file and a TFM file; @command{vftovp} takes a VF file and a TFM
file and generates a VPL file.")
    (license license:knuth)))

(define-public texlive-forest-quickstart
  (package
    (name "texlive-forest-quickstart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/forest-quickstart/")
             (base32
              "1bjy0bfkb90nv2dbdw8hdrm3dvm1v0r0m7a0l44ckw48vnc6amvk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/forest-quickstart")
    (synopsis "Quickstart Guide for Linguists package @code{forest}")
    (description
     "@code{forest} is a PGF/TikZ-based package for drawing linguistic (and
other kinds of) trees.  This manual provides a quickstart guide for linguists
with just the essential things that you need to get started.")
    (license license:fdl1.3+)))

(define-public texlive-fragmaster
  (package
    (name "texlive-fragmaster")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/fragmaster/"
                   "scripts/fragmaster/")
             (base32
              "1vwbkbg96dql73gayb06gs2fdxynljibjkmhliglc9ddggyx4v2m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "fragmaster.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/fragmaster")
    (synopsis "Using @command{psfrag} with pdfLaTeX")
    (description
     "Fragmaster enables you to use @command{psfrag} with pdfLaTeX.  It takes
EPS files and @command{psfrag} substitution definition files, and produces PDF
and EPS files with the substitutions included.")
    (license license:gpl3+)))

(define-public texlive-gentle
  (package
    (name "texlive-gentle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/gentle/")
             (base32
              "1l5fyfdbkpqlgpgi1hrnn2sz8hchlnp7z5s5584czafvs10jg6vx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gentle")
    (synopsis "Gentle introduction to TeX")
    (description
     "The @emph{Gentle Introduction} is the longest-established comprehensive
tutorial on the use of plain TeX.")
    (license
     (license:fsf-free "file://share/texmf-dist/doc/plain/gentle/gentle.tex"))))

(define-public texlive-getoptk
  (package
    (name "texlive-getoptk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/getoptk/" "tex/plain/getoptk/")
             (base32
              "19ndqi977wk6f9ikcvbllcbxmmfzdanjfznzx6pkq41caf4mj91y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/getoptk")
    (synopsis "Define macros with sophisticated options")
    (description
     "The package provides a means of defining macros whose options are taken
from a dictionary, which includes options which themselves have arguments.
The package was designed for use with Plain TeX.")
    (license license:cecill-b)))

(define-public texlive-gfnotation
  (package
    (name "texlive-gfnotation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/gfnotation/"
                   "tex/plain/gfnotation/")
             (base32
              "18yl6qhwd3fk6fyi6plj0bcb6iwzr4yx9aqmhs77rs5k4j2rgxsf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gfnotation")
    (synopsis "Typeset Gottlob Frege's notation in plain TeX")
    (description
     "The package implements macros for plain TeX to typeset the notation
invented by Gottlob Frege in 1879 for his books @emph{Begriffsschrift} and
@emph{Grundgesetze der Arithmetik} (two volumes).  The output styles of both
books are supported.")
    (license license:gpl3)))

(define-public texlive-gfsbaskerville
  (package
    (name "texlive-gfsbaskerville")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/gfsbaskerville/"
                   "fonts/afm/public/gfsbaskerville/"
                   "fonts/enc/dvips/gfsbaskerville/"
                   "fonts/map/dvips/gfsbaskerville/"
                   "fonts/opentype/public/gfsbaskerville/"
                   "fonts/tfm/public/gfsbaskerville/"
                   "fonts/type1/public/gfsbaskerville/"
                   "fonts/vf/public/gfsbaskerville/"
                   "tex/latex/gfsbaskerville/")
             (base32
              "0hf2nr0y1l9wzxvk0s2ajy3g80fcc02avr2fqrnss23c1a0jhr8q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gfsbaskerville")
    (synopsis "Greek font, from one such by Baskerville")
    (description
     "The font is a digital implementation of Baskerville's classic Greek font,
provided by the Greek Font Society.  The font covers Greek only, and LaTeX
support provides for the use of LGR encoding.")
    (license (list license:lppl1.0+ license:silofl1.1))))

(define-public texlive-gfsporson
  (package
    (name "texlive-gfsporson")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/gfsporson/"
                   "fonts/afm/public/gfsporson/"
                   "fonts/enc/dvips/gfsporson/"
                   "fonts/map/dvips/gfsporson/"
                   "fonts/opentype/public/gfsporson/"
                   "fonts/tfm/public/gfsporson/"
                   "fonts/type1/public/gfsporson/"
                   "fonts/vf/public/gfsporson/"
                   "tex/latex/gfsporson/")
             (base32
              "11m9f3vh41w8gbla62219vf2djc5kl9i4kpg6i1iiixwrhi56smc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gfsporson")
    (synopsis "Greek font, originally from Porson")
    (description
     "Porson is an elegant Greek font, originally cut at the turn of the 19th
Century in England.  The present version has been provided by the Greek Font
Society.  The font supports the Greek alphabet only.  LaTeX support is
provided, using the LGR encoding.")
    (license (list license:lppl1.0+ license:silofl1.1))))

(define-public texlive-gobble
  (package
    (name "texlive-gobble")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/gobble/"
                   "source/generic/gobble/"
                   "tex/generic/gobble/")
             (base32
              "02g40fx99xn80af6bqv7zn16l8dnqihqd42vn5hbphfx85b3p49q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (home-page "https://ctan.org/pkg/gobble")
    (synopsis "More gobble macros for PlainTeX and LaTeX")
    (description
     "The LaTeX package @code{gobble} includes several gobble macros not
included in the LaTeX kernel.  These macros remove a number of arguments after
them, a feature regulary used inside other macros.  This includes gobble
macros for optional arguments.

The LaTeX package @code{gobble-user} provides these macros at the user level,
i.e.  using names without @samp{@@@@} so that these can be used without
@code{\\makeatletter} and @code{\\makeatother}.  The same macros are provided
inside @file{.tex} files for use with plain-TeX or other TeX formats.
However, the gobble macros for optional macros require @code{\\@@@@ifnextchar}
to be defined.")
    (license license:lppl1.3+)))

(define-public texlive-graphics-pln
  (package
    (name "texlive-graphics-pln")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/graphics-pln/"
                   "tex/plain/graphics-pln/")
             (base32
              "1iv3g76dzkpr2qak79bj9sdm6w9lb0n2md32cc23szrhgv6q7il3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/graphics-pln")
    (synopsis "LaTeX-style graphics for Plain TeX users")
    (description
     "The Plain TeX graphics package is mostly a thin shell around the LaTeX
@code{graphicx} and @code{color} packages, with support of the LaTeX-isms in
those packages provided by @code{miniltx}.  The bundle also contains a file
@file{picture.tex}, which is a wrapper around the @file{autopict.sty}, and
provides the LaTeX picture mode to Plain TeX users.")
    (license license:lppl1.0+)))

(define-public texlive-greek-inputenc
  (package
    (name "texlive-greek-inputenc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/greek-inputenc/"
                   "tex/latex/greek-inputenc/")
             (base32
              "1vifrgxwx92c44vmic9x7y65fl6lcmlavqq63dakl922ijlssrb1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/greek-inputenc")
    (synopsis "Greek encoding support for @code{inputenc}")
    (description
     "The bundle provides UTF-8, Macintosh Greek encoding and ISO 8859-7
definition files for use with @code{inputenc}.")
    (license license:lppl1.3+)))

(define-public texlive-greekdates
  (package
    (name "texlive-greekdates")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/greekdates/"
                   "source/latex/greekdates/"
                   "tex/latex/greekdates/")
             (base32
              "1hwjskdllwxa14l12d0fn850sll3i9yihxlpjp2fk62v3iwkrq4r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/greekdates")
    (synopsis "Provides ancient Greek day and month names, dates, etc")
    (description
     "The package provides easy access to ancient Greek names of days and
months of various regions of Greece.  In case the historical information about
a region is not complete, we use the Athenian name of the month.  Moreover
commands and options are provided, in order to completely switch to the
ancient way, such as @code{\\today}.")
    (license license:lppl)))

(define-public texlive-greektex
  (package
    (name "texlive-greektex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/greektex/" "tex/latex/greektex/")
             (base32
              "0zs3kakr7k261j876r1xpynvnmjjdn5rky0acfbcjxp7mmsqpmzn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/greektex")
    (synopsis "Fonts for typesetting Greek/English documents")
    (description
     "The fonts are based on Silvio Levy's classical Greek fonts; macros and
Greek hyphenation patterns for the fonts encoding are also provided.")
    (license license:public-domain)))

(define-public texlive-greektonoi
  (package
    (name "texlive-greektonoi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/greektonoi/"
                   "fonts/map/dvips/greektonoi/"
                   "tex/latex/greektonoi/")
             (base32
              "14phabwakq87qgh3jxs95gk1w2q3aw29vhy441538y4fxvskqhrw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/greektonoi")
    (synopsis "Facilitates writing/editing of multiaccented Greek")
    (description
     "The @code{greektonoi} mapping extends the @code{betababel} package or
the Babel @samp{polutonikogreek} option to provide a simple way to insert
ancient Greek texts with diacritical characters into your document using
a similar method to the commonly used Beta Code transliteration, but with much
more freedom.  It is designed especially for the XeTeX engine and it could
also be used for fast and easy modification of monotonic Greek texts to
polytonic.  The output text is natively encoded in Unicode, so it can be
reused in any possible way.  The @code{greektonoi} package provides, in
addition to inserting Greek accents and breathings, many other symbols used in
Greek numbers and arithmetic or in the Greek archaic period.  It could be used
with @code{greektonoi} mapping or indepedently.")
    (license license:lgpl3)))

(define-public texlive-gtl
  (package
    (name "texlive-gtl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/gtl/" "source/generic/gtl/"
                   "tex/generic/gtl/")
             (base32
              "066g0zmndj7dda1by6jsxqccfkglmf2xq2sn0xk5f8x900h2wbbz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gtl")
    (synopsis "Manipulating generalized token lists")
    (description
     "The package provides tools for simple operations on lists of tokens
which are not necessarily balanced.  It is in particular used a lot in the
@code{unravel} package, to go through tokens one at a time rather than having
to work with entire braced groups at a time.")
    (license license:lppl1.3c)))

(define-public texlive-hindawi-latex-template
  (package
    (name "texlive-hindawi-latex-template")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hindawi-latex-template/")
             (base32
              "0q35drybrlcfcrhrd5691m66nd17b0m6hkcsqazpb1ck227zih61")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hindawi-latex-template")
    (synopsis "LaTeX template for authors of the Hindawi journals")
    (description
     "This package contains a LaTeX template for authors of the Hindawi journals.
Authors can use this template for formatting their research articles for
submissions.")
    (license license:lppl1.3+)))

(define-public texlive-hlist
  (package
    (name "texlive-hlist")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/hlist/" "tex/generic/hlist/")
             (base32
              "14rm9npzcanw4p4nkqd0rrm4655f9yhw58zf0qfa5azs305ba687")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hlist")
    (synopsis "Horizontal and columned lists")
    (description
     "This plain TeX and LaTeX package provides the @code{hlist} environment
in which @code{\\hitem} starts a horizontal and columned item.")
    (license license:lppl1.3c)))

(define-public texlive-hyplain
  (package
    (name "texlive-hyplain")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/hyplain/" "tex/plain/hyplain/")
             (base32
              "1xj23zhv0sapjvchlcp013d32kayjf48wq5ywdak5n0fkb09mzl2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hyplain")
    (synopsis "Basic support for multiple languages in Plain TeX")
    (description
     "The package offers a means to set up hyphenation suitable for several
languages and/or dialects, and to select them or switch between them while
typesetting.")
    (license license:public-domain)))

(define-public texlive-ibycus-babel
  (package
    (name "texlive-ibycus-babel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ibycus-babel/"
                   "source/latex/ibycus-babel/"
                   "tex/latex/ibycus-babel/")
             (base32
              "1lwf28h6lzlblg7s7bx2dhqprxvjj78a8rlljhk9kw5pf065c7aj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ibycus-babel")
    (synopsis "Use the Ibycus 4 Greek font with Babel")
    (description
     "The package allows you to use the Ibycus 4 font for ancient Greek with
Babel.  It uses a Perl script to generate hyphenation patterns for Ibycus from
those for the ordinary Babel encoding, @samp{cbgreek}.  It sets up
@code{ibycus} as a pseudo-language you can specify in the normal Babel
manner.")
    (license license:lppl)))

(define-public texlive-ibygrk
  (package
    (name "texlive-ibygrk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/ibygrk/"
                   "fonts/afm/public/ibygrk/"
                   "fonts/enc/dvips/ibygrk/"
                   "fonts/map/dvips/ibygrk/"
                   "fonts/source/public/ibygrk/"
                   "fonts/tfm/public/ibygrk/"
                   "fonts/type1/public/ibygrk/"
                   "tex/generic/ibygrk/")
             (base32
              "14a1hqqwz3pfpz5rz9k8finxnlan4a3l8a0brgs98p6mdp9xl3q1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-levy texlive-metafont))
    (home-page "https://ctan.org/pkg/ibygrk")
    (synopsis "Fonts and macros to typeset ancient Greek")
    (description
     "Ibycus is a Greek typeface, based on Silvio Levy's realisation of
a classic Didot cut of Greek type from around 1800.  The fonts are available
both as Metafont source and in Adobe Type 1 format.  This distribution of
@code{ibycus} is accompanied by a set of macro packages to use it with Plain
TeX or LaTeX, but for use with Babel, see the @code{ibycus-babel} package.")
    (license license:gpl3+)))

(define-public texlive-inputnormalization
  (package
    (name "texlive-inputnormalization")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/inputnormalization/"
                   "source/latex/inputnormalization/"
                   "tex/latex/inputnormalization/")
             (base32
              "0nfvcmr0lp7nig8mz3j1lwi0wbk8yf1ibdnz3lq22pysfjjl3200")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/inputnormalization")
    (synopsis "Wrapper for XeTeX's and LuaTeX's input normalization")
    (description
     "This package provides a cross engine interface to normalizing input
before it's read by TeX.")
    (license license:lppl1.3+)))

(define-public texlive-insbox
  (package
    (name "texlive-insbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/insbox/" "tex/generic/insbox/")
             (base32
              "0br6xpn9y11nw2pdjxck6mijbw2q6g2v31p64hwn65bwnx1fnc25")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/insbox")
    (synopsis "Insert pictures/boxes into paragraphs")
    (description
     "The package provides convenient bundling of the @code{\\parshape}
primitive.  This is a TeX package.")
    (license license:public-domain)))

(define-public texlive-js-misc
  (package
    (name "texlive-js-misc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/js-misc/" "tex/plain/js-misc/")
             (base32
              "03cixw6rbg787ma8v43py07vrmhijf9cfg965ndahbzyhi6vkc96")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/js-misc")
    (synopsis "Miscellaneous macros from Joachim Schrod")
    (description
     "This package provides a bunch of packages, including: @file{idverb.tex},
for short verbatim; @file{xfig.tex}, for including xfig/transfig output in
a TeX document; and @file{cassette.tex} for setting cassette labels.")
    (license license:public-domain)))

(define-public texlive-jsclasses
  (package
    (name "texlive-jsclasses")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/platex/jsclasses/"
                   "source/platex/jsclasses/"
                   "tex/platex/jsclasses/")
             (base32
              "024bgaim5rkamlwj4xa6w4yp8i37f8j6vn4jyrh8avwm9anc22pg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jsclasses")
    (synopsis "Classes tailored for use with Japanese")
    (description
     "This package provides classes @code{jsarticle} and @code{jsbook},
together with packages @code{okumacro} and @code{okuverb}.  These classes are
designed to work under ASCII Corporation's Japanese TeX system pTeX.")
    (license license:bsd-2)))

(define-public texlive-kerkis
  (package
    (name "texlive-kerkis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/kerkis/"
                   "fonts/afm/public/kerkis/"
                   "fonts/enc/dvips/kerkis/"
                   "fonts/map/dvips/kerkis/"
                   "fonts/opentype/public/kerkis/"
                   "fonts/tfm/public/kerkis/"
                   "fonts/type1/public/kerkis/"
                   "fonts/vf/public/kerkis/"
                   "tex/latex/kerkis/")
             (base32
              "1mkrnydgc05k2n6mrz6i3ichigf0bmy465s2vg514m7ma399khi9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kerkis")
    (synopsis "Kerkis (Greek) font family")
    (description
     "This package provides sans-serif Greek fonts to match the URW Bookman
set (which are distributed with Kerkis).  The Kerkis font set has some support
for mathematics as well as other glyphs missing from the base URW Bookman
fonts.  Macros are provided to use the fonts in OT1, T1 (only NG/ng glyphs
missing) and LGR encodings, as well as in mathematics; small caps and
old-style number glyphs are also available.")
    (license license:lppl1.3c)))

(define-public texlive-lambda-lists
  (package
    (name "texlive-lambda-lists")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/lambda-lists/"
                   "tex/plain/lambda-lists/")
             (base32
              "1dlm6yr0z7d2j4wn1i1khf47sf79y4h2aahymm3y11ljr5pg012r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lambda-lists")
    (synopsis "Lists in ``TeX's mouth''")
    (description
     "These list-processing macros avoid the reassignments employed in the
macros shown in Appendix D of the TeXbook: all the manipulations take place in
what Knuth is pleased to call ``TeX's mouth''.")
    (license license:lppl)))

(define-public texlive-langcode
  (package
    (name "texlive-langcode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/langcode/"
                   "source/generic/langcode/"
                   "tex/generic/langcode/")
             (base32
              "0ygshcc0iszaldzc8ygz4bgvz05c3kv81v3m7i4q46l57x2kfx6x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/langcode")
    (synopsis "Simple language-dependent settings based on language codes")
    (description
     "The package provides a command @code{\\uselangcode@{<code>@}} to adjust
language-dependent settings such as key words, typographical conventions and
language codes (ISO 639-1).  The package provides a means of selecting macros
according to the specified code, for preparing a document that is to be
separately typeset in different languages.")
    (license license:lppl1.3+)))

(define-public texlive-lecturer
  (package
    (name "texlive-lecturer")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/lecturer/"
                   "tex/generic/lecturer/")
             (base32
              "0ry4r1zcq71kk672dnnpzah0aw2axj7frajbv6xwy6hf2hzzs0ln")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lecturer")
    (synopsis "On-screen presentations for (almost) all formats")
    (description
     "The package creates slides for on-screen presentations based on PDF
features without manipulating TeX's typesetting process.  The presentation
flow relies on PDF's abilities to display content step by step.  Features
include:

@itemize
@item Free positioning of anything anywhere in painted areas on the slide, as
well as in the main text block;
@item Numerous attributes to control the layout and the presentation flow,
from TeX's primitive dimensions to the visibility of steps;
@item Feature inheritance from global to local settings, with intermediate
types; Basic drawing facilities to produce symbols, e.g., for list items or
buttons;
@item Colours, transparency, shades, and pictures;
@item Navigation with links, pop-up menus, and customizable bookmarks;
@item Easy switch between presentation and handout; and PDF transitions.
@end itemize

Besides the traditional documentation, the distribution includes visual
documentation and six demo presentations ranging from geometric abstraction to
classic style to silly video game.")
    (license license:lppl)))

(define-public texlive-letterspacing
  (package
    (name "texlive-letterspacing")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/letterspacing/")
             (base32
              "0ry7rri76dgbrkzr6na2kkh7bn0jpwkhh9b5qw0cl5xwyp81rddg")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/letterspacing")
    (synopsis "Letter spacing")
    (description
     "This package helps spacing out the letters of text; the command is
@code{\\letterspace<\\hbox modifier>@{<text>@}}: the text is placed in an
@code{\\hbox} of the specified size, and space is inserted between each glyph
to make the text fit the box.  Note that letterspacing is not ordinarily
considered acceptable in modern typesetting of English.")
    (license license:knuth)))

(define-public texlive-levy
  (package
    (name "texlive-levy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/levy/"
                   "fonts/source/public/levy/"
                   "fonts/tfm/public/levy/" "tex/generic/levy/")
             (base32
              "1nkfsq5k2rysgsplv6rhvx8fimd7999dylzd2khvw7flryig32nv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/levy-font")
    (synopsis "Fonts for typesetting classical Greek")
    (description
     "These fonts are derivatives of Kunth's CM fonts.  Macros for use with
Plain TeX are included in the package; for use with LaTeX, see @code{lgreek}
(with English documentation) or @code{levy} (with German documentation).")
    (license license:gpl2)))

(define-public texlive-lgreek
  (package
    (name "texlive-lgreek")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lgreek/" "tex/latex/lgreek/")
             (base32
              "1wa8d5mlk6jkx3m1rfddasw169sc6l6p8n4axh6i0np1imgsxx2b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lgreek")
    (synopsis "LaTeX macros for using Silvio Levy's Greek fonts")
    (description
     "This package provides a conversion of Silvio Levy's Plain TeX macros for
use with LaTeX.")
    (license license:gpl2)))

(define-public texlive-lgrmath
  (package
    (name "texlive-lgrmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lgrmath/" "source/latex/lgrmath/"
                   "tex/latex/lgrmath/")
             (base32
              "0lj4jdzwykqz1hkv2s6y2ghf1zlalx27gd6kfpbnignxmh63cpkb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lgrmath")
    (synopsis "Use LGR-encoded fonts in math mode")
    (description
     "The @code{lgrmath} package is a LaTeX package which sets the Greek
letters in math mode to use glyphs from the LGR-encoded font of one's choice.
The documentation includes a rather extensive list of the available font
family names on typical LaTeX installations.")
    (license license:lppl1.3c)))

(define-public texlive-localloc
  (package
    (name "texlive-localloc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/localloc/"
                   "source/generic/localloc/"
                   "tex/generic/localloc/")
             (base32
              "0vcfdxh800ksr4wrrvykdm27qvlhqkylbik4j93pr59g13h9g90f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/localloc")
    (synopsis "Macros for localizing TeX register allocations")
    (description
     "This package approaches the problem of the shortage of registers, by
providing a mechanism for local allocation.  The package works with Plain TeX
and LaTeX.")
    (license license:knuth)))

(define-public texlive-metatex
  (package
    (name "texlive-metatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/metatex/" "tex/plain/metatex/")
             (base32
              "0pdgx59ckp9qdfidl37y8mv3dyvza9lxmhgbqk69ckywm3kbb2n9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metatex")
    (synopsis "Incorporate Metafont pictures in TeX source")
    (description
     "METATeX is a set of plain TeX and Metafont macros that you can use to
define both the text and the figures in a single source file.  Because METATeX
sets up two way communication, from TeX to Metafont and back from Metafont to
TeX, drawing dimensions can be controlled by TeX and labels can be located by
Metafont.  Only standard features of TeX and Metafont are used, but two runs
of TeX and one of Metafont are needed.")
    (license license:gpl3+)))

(define-public texlive-midnight
  (package
    (name "texlive-midnight")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/midnight/"
                   "tex/generic/midnight/")
             (base32
              "024g170k8cfcddch2c0qvq1als0ncp9v2zqv77yzay5jqx4iv1d7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/midnight")
    (synopsis "Set of useful macro tools")
    (description
     "This package provides macro tools:
@itemize
@item @code{quire}: making booklets, etc.;
@item @code{gloss}: vertically align words in consecutive sentences;
@item @code{loop}: a looping construct;
@item @code{dolines}: meta'-macros to separate arguments by newlines;
@item @code{labels}: address labels and bulk mail letters;
@item @code{styledef}: selectively input part of a file;
@item @code{border}: borders around boxes.
@end itemize")
    ;; All files share the same license, which is Knuth's with additional
    ;; requirements about documentation and references to the original source
    ;; when modified.
    (license (license:fsf-free "file://tex/generic/midnight/border.tex"))))

(define-public texlive-mkgrkindex
  (package
    (name "texlive-mkgrkindex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/mkgrkindex/"
                   "makeindex/mkgrkindex/"
                   "scripts/mkgrkindex/")
             (base32
              "0bj35wdxn0xllpqzf8lrd00b5rmyy9fws84avz3ijk4k8rvfz8gk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "mkgrkindex")))
    (home-page "https://ctan.org/pkg/greek-makeindex")
    (synopsis "MakeIndex working with Greek")
    (description
     "MakeIndex is resolutely stuck with Latin-based alphabets, so will not
deal with Greek indexes, unaided.  This package provides a Perl script that
will transmute the index of a Greek document in such a way that MakeIndex will
sort the entries according to the rules of the Greek alphabet.")
    (license license:lppl)))

(define-public texlive-modulus
  (package
    (name "texlive-modulus")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/modulus/"
                   "source/generic/modulus/"
                   "tex/generic/modulus/")
             (base32
              "07sa8bnbgclfz4p3sb00cl1b3i51nvhhlmb4p6hcyaca1n1xsn8d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/modulus")
    (synopsis "Non-destructive modulus and integer quotient operator for TeX")
    (description
     "The package provides an easy way to take the remainder of a division
operation without destroying the values of the counters containing the
dividend and divisor.  It also provides a way to take the integer quotient of
a division operation without destroying the values of the counters containing
the dividend and divisor.")
    (license license:lppl1.3c)))

(define-public texlive-mongolian-babel
  (package
    (name "texlive-mongolian-babel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mongolian-babel/"
                   "source/latex/mongolian-babel/"
                   "tex/latex/mongolian-babel/")
             (base32
              "12kzips0jmjahrrfaripglg203dvvr408v5qxjvnrnxqzb8d1i2w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mongolian-babel")
    (synopsis "Language definition file for Mongolian in Babel")
    (description
     "This package provides support for Mongolian in a Cyrillic
alphabet.  (The work derives from the earlier Russian work for Babel.)")
    (license license:lppl)))

(define-public texlive-montex
  (package
    (name "texlive-montex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/montex/"
                   "fonts/map/dvips/montex/"
                   "fonts/source/public/montex/"
                   "fonts/tfm/public/montex/"
                   "fonts/type1/public/montex/"
                   "tex/latex/montex/")
             (base32
              "01rbzw0kbiy3wig2mrdclygx7a71dckq9rhqj8jpdnbjyhm9jw35")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (propagated-inputs (list texlive-cbfonts))
    (home-page "https://ctan.org/pkg/montex")
    (synopsis "Mongolian LaTeX")
    (description
     "MonTeX provides Mongolian and Manju support for the TeX and LaTeX community.
It provides all necessary characters for writing standard Mongolian in
Cyrillic and Classical (aka Traditional or Uighur) writing, and Manju as well
as transliterated Tibetan texts, for which purpose a number of additional
characters was created.

In MonTeX, both Mongolian and Manju are entered in romanized form.  The
retransliteration (from Latin input to Mongolian and Manju output) is
completely realized in TeX and Metafont so that no external preprocessor is
required.  Please note that most of the enhanced functions of MonTeX require
a working e-LaTeX environment.  This is especially true when compiling
documents with Mongolian or Manju as the main document language.  It is
recommended to choose pdfLaTeX as the resulting PDF files are truly portable.
Vertical text generated by MonTeX is not supported in DVI.")
    (license license:gpl3+)))

(define-public texlive-moreverb
  (package
    (name "texlive-moreverb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/moreverb/" "source/latex/moreverb/"
                   "tex/latex/moreverb/")
             (base32
              "0kba3df9cfiz168hsxhwg3a838p3vrgfp42fmwafsf3xq3q2z5hg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/moreverb")
    (synopsis "Extended verbatim")
    (description
     "This package provides a collection of verbatim facilities that provide
line-numbered verbatim, verbatim that obeys TAB characters, verbatim input and
verbatim output to file.  The package makes use of the @code{verbatim}
package.  The package is formed from a series of small pieces, and is somewhat
unstructured.  The user who looks for thought-through verbatim facilities is
advised to consider using the @code{fancyvrb} package in place of
@code{moreverb}.")
    (license license:lppl)))

(define-public texlive-morisawa
  (package
    (name "texlive-morisawa")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/morisawa/"
                   "fonts/map/dvipdfmx/morisawa/"
                   "fonts/tfm/public/morisawa/"
                   "fonts/vf/public/morisawa/"
                   "source/fonts/morisawa/"
                   "tex/latex/morisawa/")
             (base32
              "1wqyiq049y0mv6d1r3d0mrjzhh5pq2vi50sr0jhd58k4wdg8zqkb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/morisawa")
    (synopsis
     "Selection of 5 standard Japanese fonts for pLaTeX and dvips")
    (description
     "The package enables selection of 5 standard Japanese fonts for pLaTeX
and dvips.")
    (license license:bsd-2)))

(define-public texlive-mpman-ru
  (package
    (name "texlive-mpman-ru")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/mpman-ru/")
             (base32
              "1x3drpi21zcmkhkscvl4l7805wskqa4zskydb33i0asss5p62396")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mpman-ru")
    (synopsis "Russian translation of the MetaPost manual")
    (description
     "This package provides a translation of the MetaPost user manual, as
distributed with MetaPost itself.")
    ;; Explicitly use the same license as MetaPost.
    (license license:lppl)))

(define-public texlive-namedef
  (package
    (name "texlive-namedef")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/namedef/"
                   "source/generic/namedef/"
                   "tex/generic/namedef/")
             (base32
              "1rc97c8zn1gb1cfqf70q5iphnbkgay4xmw1a2h55kc9wj4ql2j5d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-l3kernel))
    (home-page "https://ctan.org/pkg/namedef")
    (synopsis "TeX definitions with named parameters")
    (description
     "This package provides a prefix @code{\\named} to be used in TeX
definitions so that parameters can be identified by their name rather than by
number, giving parameters a semantic rather than syntactic meaning, making it
easy to understand long definitions.")
    (license license:lppl1.3c)))

(define-public texlive-navigator
  (package
    (name "texlive-navigator")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/navigator/"
                   "tex/generic/navigator/")
             (base32
              "17rs718rvp9f6dakdl99abgq5rcflsw6kyxjknhjya019l2y23m3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/navigator")
    (synopsis "PDF features across formats and engines")
    (description
     "Navigator implements PDF features for all formats (with some limitations
in ConTeXt) with pdfTeX, LuaTeX and XeTeX.  Its features include: customizable
outlines (i.e.  bookmarks); anchors; links and actions (e.g., JavaScript or
user-defined PDF actions); file embedding (not in ConTeXt); document
information and PDF viewer's display (not in ConTeXt); and commands to create
and use raw PDF objects.")
    (license license:lppl)))

(define-public texlive-newsletr
  (package
    (name "texlive-newsletr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/newsletr/" "tex/plain/newsletr/")
             (base32
              "0c7ggyx1jnw05vn589awxxbpfqkwf7kq4qn9pm61ycb6p9n3nn0h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/newsletr")
    (synopsis "Macros for making newsletters with Plain TeX")
    (description
     "This package provides macros for making newsletters with Plain TeX.")
    ;; License is almost Knuth's, but requires marking modifications
    ;; explicitly instead of simply renaming the file.
    (license (license:fsf-free "file://doc/plain/newsletr/read.me"))))

(define-public texlive-numnameru
  (package
    (name "texlive-numnameru")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/numnameru/"
                   "tex/latex/numnameru/")
             (base32
              "1il8qn9wkdk554r4a8h5vmdmwcvgwygcx58zwnqxflz6hqsxdjmx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/numnameru")
    (synopsis "Converts a number to the Russian spelled out name")
    (description
     "This package converts a numerical number to the Russian spelled out name
of the number.")
    (license license:lppl1.3+)))

(define-public texlive-ofs
  (package
    (name "texlive-ofs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/ofs/" "tex/generic/ofs/")
             (base32
              "0dcsa9xlcdvwd4qd6n6yli8arcy3s6896svgk5nbmgplan2nz1cw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ofs")
    (synopsis "Macros for managing large font collections")
    (description
     "OFS (Olsak's Font System) is a set of Plain TeX and LaTeX macros for
managing large font collections.  Its main features include:

@itemize
@item mapping from long names of fonts to the metric file name.  The user can
specify only exact long names in documents;
@item support for many font encodings;
@item printing of catalogues of fonts and test samples of font families; the
interactive macro @code{\\showfonts} shows all font families you have
installed via OFS.
@end itemize")
    (license license:knuth)))

(define-public texlive-olsak-misc
  (package
    (name "texlive-olsak-misc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/olsak-misc/"
                   "tex/generic/olsak-misc/")
             (base32
              "0kl83yvj299w7v69a20i5yi91h46n0k080rg6z1jjwdxm0g893a0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/olsak-misc")
    (synopsis "Collection of plain TeX macros written by Petr Olsak")
    (description
     "This is a collection of various single-file plain TeX macros written
by Petr Olsak:

@itemize
@item @file{booklet.tex}: re-orders PDF pages and collects them for booklet
printing;
@item @file{cnv.tex}: conversion of texts;
@item @file{cnv-pu.tex}: example of usage of @file{cnv.tex} --- pdf outlines
in Unicode;
@item @file{cnv-word.tex}: example of usage of @file{cnv.tex} --- word to word
conversion;
@item @file{eparam.tex}: full expansion during parameter scanning;
@item @file{fun-coffee.tex}: generates splotches in the document;
@item @file{openclose.tex}: repairs balanced text between @code{\\Open} and
@code{\\Close} pair;
@item @file{qrcode.tex}: QR code generated at TeX level;
@item @file{scanbase.tex}: parser of text-style MySQL outputs;
@item @file{scancsv.tex}: parser of CSV format;
@item @file{seplist.tex}: macros with alternative separators of a parameter;
@item @file{xmlparser.tex}: parser of XML language.
@end itemize")
    (license license:public-domain)))

(define-public texlive-outerhbox
  (package
    (name "texlive-outerhbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/outerhbox/")
             (base32
              "1867xhxlbskiysifmwlr10lay8khragzi36fm552cwc4vjz2ybcz")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/outerhbox")
    (synopsis "Collect horizontal material for contributing to a paragraph")
    (description
     "The package provides the @code{\\outerhbox} command, which is similar to
@code{\\hbox}, except that material is set in outer horizontal mode.  This
prevents TeX from optimising away maths penalties and the like, that are
needed when the material is @code{\\unhbox}'ed.")
    (license license:gpl3+)))

(define-public texlive-path
  (package
    (name "texlive-path")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/path/" "tex/generic/path/")
             (base32
              "09m1f9si97hrfqsyj0mzbi9djgk0w4vq13yd3v0af9v3240h1ps2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/path")
    (synopsis "Typeset paths, making them breakable")
    (description
     "This package defines a macro @code{\\path|...|}, similar to the LaTeX
@code{\\verb|...|}, that sets the text in typewriter font and allows
hyphen-less breaks at punctuation characters.  The set of characters to be
regarded as punctuation may be changed from the package's default.")
    (license license:knuth)))

(define-public texlive-pdf-trans
  (package
    (name "texlive-pdf-trans")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pdf-trans/"
                   "tex/generic/pdf-trans/")
             (base32
              "1n7l0p1950lk3n5jm3si0qqhb8b7mm7jh33fm97l2r7d3qn9jac8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdf-trans")
    (synopsis "Macros for various transformations of TeX boxes")
    (description
     "@code{pdf-trans} is a set of macros offering various transformations of
TeX boxes (based on plain and pdfeTeX primitives).")
    (license license:public-domain)))

(define-public texlive-pdfmsym
  (package
    (name "texlive-pdfmsym")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pdfmsym/"
                   "tex/generic/pdfmsym/")
             (base32
              "128lhj72s2ddzbl7w3pl6cw84qqmx322rw1jb4m2db8whj8d2fbz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdfmsym")
    (synopsis "PDF Math Symbols --- various drawn mathematical symbols")
    (description
     "This package defines a handful of mathematical symbols many of which are
implemented via PDF's builtin drawing utility.  It is intended for use with
pdfTeX and LuaTeX and is supported by XeTeX to a lesser extent.  Among the
symbols it defines are some variants of commonly used ones, as well as more
obscure symbols which cannot be as easily found in other TeX or LaTeX
packages.")
    (license license:expat)))

(define-public texlive-pitex
  (package
    (name "texlive-pitex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/pitex/" "tex/plain/pitex/")
             (base32
              "1rqawfqmh9sh7rfpfrhbmysmn1rlzmbs26nla8fj0xr45vx60219")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pitex")
    (synopsis "Documentation macros")
    (description
     "The bundle provides macros that the author uses when writing
documentation (for example, that of the @code{texapi} and @code{yax}
packages).")
    (license license:lppl)))

(define-public texlive-pl
  (package
    (name "texlive-pl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/pl/"
                   "dvips/pl/"
                   "fonts/afm/public/pl/"
                   "fonts/enc/dvips/pl/"
                   "fonts/map/dvips/pl/"
                   "fonts/source/public/pl/"
                   "fonts/tfm/public/pl/"
                   "fonts/type1/public/pl/")
             (base32
              "18s3by7isk85ksvp40i6qg2ws3iyj5f35fh8h0561rw6jdc024rc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-amsfonts texlive-metafont texlive-cm))
    (home-page "https://ctan.org/pkg/pl-mf")
    (synopsis "Polish extension of Computer Modern fonts")
    (description
     "This package provides the Polish extension of the Computer Modern
fonts (compatible with CM itself) for use with Polish TeX formats.")
    (license license:public-domain)))

(define-public texlive-placeins-plain
  (package
    (name "texlive-placeins-plain")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/plain/placeins-plain/")
             (base32
              "1lhc72zdm2cjynx6lf6kafmf00nw17z3mnfhagh41h76cnm338g9")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/placeins-plain")
    (synopsis "Insertions that keep their place")
    (description
     "This TeX file provides various mechanisms (for plain TeX and close
relatives) to let insertions (footnotes, topins, pageins, etc.) float within
their appropriate section, but to prevent them from intruding into the
following section, even when sections do not normally begin a new page.")
    (license license:public-domain)))

(define-public texlive-plainpkg
  (package
    (name "texlive-plainpkg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/plainpkg/"
                   "source/generic/plainpkg/"
                   "tex/generic/plainpkg/")
             (base32
              "10p796lms7rzwqgjf60nqm8x79hiz1cwiq1j8acjg1a6lnvadbq0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/plainpkg")
    (synopsis "Minimal method for making generic packages")
    (description
     "The package provides a minimal method for making generic (i.e.,
TeX-format-independent) packaged, combining maybeload functionality, fallback
definitions for LaTeX @code{\\ProvidesPackage} and @code{\\RequirePackage}
functionality, and handling of arbitrary (multiple) private letters (analagous
LaTeX packages use of @samp{@@@@}) in nested package files.")
    (license license:lppl1.3+)))

(define-public texlive-platex
  (package
    (name "texlive-platex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/platex.1"
                   "doc/man/man1/platex.man1.pdf"
                   "doc/platex/base/"
                   "source/platex/base/"
                   "tex/platex/base/"
                   "tex/platex/config/")
             (base32
              "0a843xnp3iikjxw1klxb3j2bssm6ylhcw32s046xxm2bs527hxi8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:create-formats #~(list "platex" "platex-dev")
           #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'fix-build
                 ;; This phase is necessary because the build phase is
                 ;; reluctant to generate "kinsoku.tex" since there is another
                 ;; one among the inputs (texlive-ptex) already.
                 (lambda _
                   (substitute* "source/platex/base/plfmt.ins"
                     (("\\\\keepsilent\n" all)
                      (string-append all "\\askforoverwritefalse\n"))))))))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-base
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-ptex
           texlive-ptex-fonts
           texlive-tex-ini-files
           texlive-unicode-data
           texlive-uptex))
    (home-page "https://ctan.org/pkg/platex")
    (synopsis "pLaTeX2e and miscellaneous macros for pTeX")
    (description
     "The bundle provides pLaTeX2e and miscellaneous macros for pTeX and
e-pTeX.")
    (license license:bsd-3)))

(define-public texlive-platex-tools
  (package
    (name "texlive-platex-tools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/platex-tools/"
                   "tex/latex/platex-tools/")
             (base32
              "1wdxcmag1kk6zs7dv10jdcs9ih0bs08xr14iw5bqqyppia4pa1lv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/platex-tools")
    (synopsis "pLaTeX standard tools bundle")
    (description
     "This bundle is an extended version of the @code{latex-tools} bundle
developed by the LaTeX team, mainly intended to support pLaTeX2e and
upLaTeX2e.  Currently patches for the @code{latex-tools} bundle and Martin
Schroder's @code{ms} bundle are included.")
    (license license:bsd-3)))

(define-public texlive-platexcheat
  (package
    (name "texlive-platexcheat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/platexcheat/")
             (base32
              "04hvm19x4z7vq2md3p3r2wwa7iqkgkxnvvj1xx3s9145m6fjib5a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/platexcheat")
    (synopsis "LaTeX cheat sheet, in Japanese")
    (description
     "This is a translation to Japanese of Winston Chang's LaTeX cheat
sheet (a reference sheet for writing scientific papers).  It has been adapted
to Japanese standards using pLaTeX, and also attached additional information
of standard LaTeX (especially about Math mode).")
    (license license:expat)))

(define-public texlive-plautopatch
  (package
    (name "texlive-plautopatch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/plautopatch/"
                   "tex/latex/plautopatch/")
             (base32
              "1fhphmjhq0mbsarkfmfj0580b97lxxbcwanr4zpwjj5f6krqq742")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/plautopatch")
    (synopsis "Automated patches for pLaTeX/upLaTeX")
    (description
     "Japanese pLaTeX and upLaTeX formats and packages often conflict with
other LaTeX packages which are unaware of pLaTeX and upLaTeX.  In the worst
case, such packages throw a fatal error or end up with a wrong output.  The
goal of this package is that there should be no need to worry about such
incompatibilities, because specific patches are loaded automatically whenever
necessary.  This helps not only to simplify source files, but also to make the
appearance of working pLaTeX or upLaTeX sources similar to those of ordinary
LaTeX ones.")
    (license license:bsd-3)))

(define-public texlive-plipsum
  (package
    (name "texlive-plipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/plipsum/" "tex/plain/plipsum/")
             (base32
              "0q8qnv212q9mgc00w9akdvpky1gbmirqrkdmi9v1wbf7c0ws2qda")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/plipsum")
    (synopsis "@emph{Lorem ipsum} for Plain TeX developers")
    (description
     "The package provides a paragraph generator designed for use in Plain TeX
documents.  The paragraphs generated contain many f-groups (@samp{ff},
@samp{fl} etc.) so the text can act as a test of the ligatures of the font in
use.")
    (license license:lppl)))

(define-public texlive-plnfss
  (package
    (name "texlive-plnfss")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/plnfss/" "tex/plain/plnfss/")
             (base32
              "1cgnp8y9m0ziq1pfvjx83vi0r0k5xpckk0kiijy0g80wd3s4zbsd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/plnfss")
    (synopsis "Font selection for Plain TeX")
    (description
     "Plnfss is a set of macros to provide easy font access (somewhat similar
to NFSS but with some limitations) with Plain TeX.  Plnfss can automatically
make use of PSNFSS @code{fd} files, i.e., when an Adobe Type 1 is used the
relevant @code{fd} file will be loaded automatically.  For @code{cmr}-like
fonts (@code{ec}, @code{vnr}, @code{csr} or @code{plr} fonts), a special
format called @code{pfd} (plain @code{fd}) is required and must be loaded
manually.")
    (license license:lppl)))

(define-public texlive-plstmary
  (package
    (name "texlive-plstmary")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/plstmary/" "tex/plain/plstmary/")
             (base32
              "03adq5fkl620z0hpbdpqcsm1qjxlr43ip1bhi5xv2izxpw952x0z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/plstmary")
    (synopsis "St Mary's Road font support for plain TeX")
    (description
     "The package provides commands to produce all the symbols of the St
Mary's Road fonts, in a Plain TeX environment.")
    (license license:public-domain)))

(define-public texlive-poormanlog
  (package
    (name "texlive-poormanlog")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/poormanlog/"
                   "tex/generic/poormanlog/")
             (base32
              "1wbpjxjn3bvi4bmcq62ydafc8a72wq2vhzfx2gcn20sn3x4qc0hg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/poormanlog")
    (synopsis "Logarithms and powers with (almost) 9 digits")
    (description
     "This small package (usable with Plain e-TeX, LaTeX, or others) with no
dependencies provides two fast expandable macros computing logarithms in base
10 and fractional powers of 10.")
    (license license:lppl1.3c)))

(define-public texlive-present
  (package
    (name "texlive-present")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/present/" "tex/plain/present/")
             (base32
              "1dc7h14z7xw232mgqjayl1a4ab5pj9bz2d9wgmznh4bjylgw4lwp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/present")
    (synopsis "Presentations with Plain TeX")
    (description
     "The package offers a collection of simple macros for preparing
presentations in Plain TeX.  Slide colour and text colour may be set, links
between parts of the presentation, to other files, and to web addresses may be
inserted.  Images may be included easily, and code is available to provide
transition effects between slides or frames.  The structure of the macros is
not overly complex, so that users should find it easy to adapt the macros to
their specific needs.")
    (license license:lppl)))

(define-public texlive-ptex
  (package
    (name "texlive-ptex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/eptex.1"
                   "doc/man/man1/eptex.man1.pdf"
                   "doc/man/man1/makejvf.1"
                   "doc/man/man1/makejvf.man1.pdf"
                   "doc/man/man1/mendex.1"
                   "doc/man/man1/mendex.man1.pdf"
                   "doc/man/man1/pbibtex.1"
                   "doc/man/man1/pbibtex.man1.pdf"
                   "doc/man/man1/ppltotf.1"
                   "doc/man/man1/ppltotf.man1.pdf"
                   "doc/man/man1/ptex.1"
                   "doc/man/man1/ptex.man1.pdf"
                   "doc/man/man1/ptftopl.1"
                   "doc/man/man1/ptftopl.man1.pdf")
             (base32
              "1dk8rvadr1q00bjizj567lzjp5l47pr7miyk0ghkajbiiwbqi0kn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "eptex" "ptex")))
    (propagated-inputs
     (list texlive-cm
           texlive-etex
           texlive-hyphen-base
           texlive-knuth-lib
           texlive-plain
           texlive-ptex-base
           texlive-ptex-fonts))
    (home-page "https://ctan.org/pkg/ptex")
    (synopsis "TeX system for publishing in Japanese")
    (description
     "pTeX adds features related to vertical writing, and deals with other
problems in typesetting Japanese.  A manual (in both Japanese and English) is
distributed as package @code{pTeX-manual}.")
    (license license:bsd-3)))

(define-public texlive-ptex-base
  (package
    (name "texlive-ptex-base")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/ptex/ptex-base/" "tex/ptex/ptex-base/")
             (base32
              "0hfccpsfpj56v97056k77lyb09az7m24m8klf1n2v0a7kqdc1fv6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ptex-base")
    (synopsis "Plain TeX format for pTeX and e-pTeX")
    (description
     "The bundle contains the plain TeX format for pTeX and e-pTeX.")
    (license license:bsd-3)))

(define-public texlive-ptex-fontmaps
  (package
    (name "texlive-ptex-fontmaps")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/ptex-fontmaps/"
                   "fonts/cmap/ptex-fontmaps/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/adobe/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/apple/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/arphic/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/baekmuk/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/bizud/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/canon/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/cjkunifonts-ttf/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/cjkunifonts/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/dynacomware/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/fandol/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/founder/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/haranoaji/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/hiragino-pron/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/hiragino/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/ipa/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/ipaex/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/kozuka-pr6/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/kozuka-pr6n/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/kozuka/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/moga-mobo-ex/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/moga-mobo/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/morisawa-pr6n/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/morisawa/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/ms-osx/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/ms-win10/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/ms/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/noEmbed/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/noto-otc/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/noto/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/solaris/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/sourcehan-otc/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/sourcehan/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/ume/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/unfonts/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/yu-osx/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/yu-win/"
                   "fonts/map/dvipdfmx/ptex-fontmaps/yu-win10/"
                   "fonts/misc/ptex-fontmaps/"
                   "scripts/ptex-fontmaps/"
                   "source/ptex-fontmaps/jis04cmap_exp/"
                   "source/ptex-fontmaps/script/")
             (base32
              "07qm41d33z9vjvchsxfrqxim7zb15cg77x4aw5a06mgn3w7kz6ha")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "kanji-config-updmap-sys.sh"
                                  "kanji-config-updmap-user.sh"
                                  "kanji-config-updmap.pl"
                                  "kanji-fontmap-creator.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ptex-fontmaps")
    (synopsis
     "Font maps and tools for Japanese/Chinese/Korean fonts with (u)pTeX")
    (description
     "This package provides font maps and setup tools for Japanese, Korean,
Traditional Chinese, and Simplified Chinese.  It is the successor of the
@code{jfontmaps} package.  The files in this package contain font maps for
dvipdfmx to make various Japanese, Chinese, and Korean fonts available
for (u)ptex and related programs and formats.")
    (license (list license:public-domain license:gpl3))))

(define-public texlive-ptex-manual
  (package
    (name "texlive-ptex-manual")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/ptex/ptex-manual/")
             (base32
              "1pz8jyd86s2fjj0d63q9h04x0sxcyx1ffp48lf3n8awj0zrij861")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ptex-manual")
    (synopsis "Japanese pTeX manual")
    (description "This package contains the Japanese pTeX manual.")
    (license license:bsd-3)))

(define-public texlive-ptex-fonts
  (package
    (name "texlive-ptex-fonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/ptex-fonts/"
                   "fonts/source/ptex-fonts/jis/"
                   "fonts/source/ptex-fonts/nmin-ngoth/"
                   "fonts/source/ptex-fonts/standard/"
                   "fonts/tfm/ptex-fonts/dvips/"
                   "fonts/tfm/ptex-fonts/jis/"
                   "fonts/tfm/ptex-fonts/nmin-ngoth/"
                   "fonts/tfm/ptex-fonts/standard/"
                   "fonts/vf/ptex-fonts/jis/"
                   "fonts/vf/ptex-fonts/nmin-ngoth/"
                   "fonts/vf/ptex-fonts/standard/")
             (base32
              "0f33y28zmrc6gw01qj956vrwj3mh5gn6kph2i13yg1yi2hdl7wwa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ptex-fonts")
    (synopsis "Fonts for use with pTeX")
    (description
     "The bundle contains fonts for use with pTeX and the documents for the
@command{makejvf} program.")
    (license license:bsd-3)))

(define-public texlive-ptex2pdf
  (package
    (name "texlive-ptex2pdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ptex2pdf/" "scripts/ptex2pdf/")
             (base32
              "0vc4clig35s9cir2gmls7zvj8k1qal4np0akvlgsz2zch44b0imr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ptex2pdf.lua")))
    (home-page "https://ctan.org/pkg/ptex2pdf")
    (synopsis "Convert Japanese TeX documents to PDF")
    (description
     "The Lua script provides system-independent support of Japanese
typesetting engines in TeXworks.  As TeXworks typesetting setup does not allow
for multistep processing, this script runs one of the pTeX-based programs
followed by dvipdfmx.")
    (license license:gpl2)))

(define-public texlive-pxbase
  (package
    (name "texlive-pxbase")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/platex/pxbase/" "tex/platex/pxbase/")
             (base32
              "0dq9d4ixddffjnzb73d2qacgzm27665hvq2gsfjqzikzaa70dahw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxbase")
    (synopsis "Tools for use with (u)pLaTeX")
    (description
     "The main purpose of this package is to provide auxiliary functions which
are utilized by other packages created by the same author.  It also provides
a few user commands to assist in creating Japanese documents using
@code{(u)pLaTeX.}")
    (license license:expat)))

(define-public texlive-pxchfon
  (package
    (name "texlive-pxchfon")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/platex/pxchfon/" "fonts/sfd/pxchfon/"
                   "fonts/tfm/public/pxchfon/"
                   "fonts/vf/public/pxchfon/"
                   "tex/platex/pxchfon/")
             (base32
              "0pvhgcv6rxp2lnscsh9k3z907114p09ja3frcy5276is21d6sdrj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxchfon")
    (synopsis "Japanese font setup for pLaTeX and upLaTeX")
    (description
     "This package enables users to declare in their document which physical
fonts should be used for the standard Japanese (logical) fonts of pLaTeX and
upLaTeX.  Font setup is realized by changing the font mapping of dvipdfmx, and
thus users can use any (monospaced) physical fonts they like, once they
properly install this package, without creating helper files for each new
font.  This package also supports setup for the fonts used in the
@code{japanese-otf} package.")
    (license license:expat)))

(define-public texlive-pxcjkcat
  (package
    (name "texlive-pxcjkcat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pxcjkcat/" "tex/latex/pxcjkcat/")
             (base32
              "10lbwry55rdldfhj2v893rpp1jdzv00vxhg4hf4gsgsmv1nnp25f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxcjkcat")
    (synopsis "LaTeX interface for the CJK category codes of upTeX")
    (description
     "The package provides management of the CJK category code table of the
upTeX extended TeX engine.  Package options are available for tailored use in
the cases of documents that are principally written in Japanese, or
principally written in English or other Western languages.")
    (license license:expat)))

(define-public texlive-pxjahyper
  (package
    (name "texlive-pxjahyper")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/platex/pxjahyper/"
                   "tex/platex/pxjahyper/")
             (base32
              "0128yslhwbrdhshjhxk6ayfl42ds0x0sfyvp91aspwbkfjnr34p9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxjahyper")
    (synopsis "Hyperref support for pLaTeX")
    (description
     "This package adjusts the behavior of @code{hyperref} on (u)pLaTeX so
that authors can properly create PDF documents that contain document
information in Japanese.")
    (license license:expat)))

(define-public texlive-pxjodel
  (package
    (name "texlive-pxjodel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pxjodel/"
                   "fonts/tfm/public/pxjodel/"
                   "fonts/vf/public/pxjodel/"
                   "tex/latex/pxjodel/")
             (base32
              "1g5sd60zd34ark50qy2dgqrdcd5pwy5hxmi6g5jxqlj3j1n6r1ny")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxjodel")
    (synopsis "Help change metrics of fonts from japanese-otf")
    (description
     "This package changes the setup of the @code{japanese-otf} package so
that the TFMs for direct input are all replaced by new ones with prefixed
names.  This function will assist users who want to use the
@code{japanese-otf} package together with tailored TFMs of Japanese fonts.")
    (license license:expat)))

(define-public texlive-pwebmac
  (package
    (name "texlive-pwebmac")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/pwebmac/" "tex/plain/pwebmac/")
             (base32
              "18mc66iv5jszxwnrwvlx2c040521mray480my9pdcl7aw5w2z4a2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pwebmac")
    (synopsis "Consolidated WEB macros for DVI and PDF output")
    (description
     "The original WEB system by Donald Knuth has the macros webmac.tex that
produce DVI output only; for historic reasons, it will never be
modified (apart from catastrophic errors).  Han The Thanh has modified these
macros in his @file{pdfwebmac.tex} for PDF output (only) with pdfTeX.
Jonathan Kew's XeTeX has similar macros @file{xewebmac.tex} by Khaled Hosny
that modify @file{webmac.tex} for PDF output; these macros can only be used
with a specific TeX engine each.  The present @code{pwebmac} package
integrates these three WEB macro files similar to @file{cwebmac.tex} in Silvio
Levy's and Don Knuth's CWEB system, so @file{pwebmac.tex} can be used with
Plain TeX, pdfTeX, and XeTeX alike.

Its initial application is the production of PDF and HINT files for all major
WEB programs for TeX and friends.  For this purpose, the shell script
@command{makeall} was whipped together; it provides various command line
options and works around several quirks in the WEB sources.

WEB programmers who want to use @file{pwebmac.tex} instead of the default
@file{webmac.tex} in their programs have to change the first line in the TeX
file created by @code{weave}.  From there, all depends on the TeX engine you
use.")
    (license license:public-domain)))

(define-public texlive-random
  (package
    (name "texlive-random")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/random/" "tex/generic/random/")
             (base32
              "04z7s4pm620bfjwgl46g4bqxzm2ab70ai8pj1x4p0qg8n50xaylf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/random")
    (synopsis "Generate pseudo-random numbers in TeX")
    (description
     "This package generates pseudo-random integers.  Macros are to provide
random integers in a given range, or random dimensions, which can be used to
provide random real numbers.")
    (license license:public-domain)))

(define-public texlive-randomlist
  (package
    (name "texlive-randomlist")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/randomlist/"
                   "source/generic/randomlist/"
                   "tex/generic/randomlist/")
             (base32
              "04pbbxxnynyc3l94560vvnad3rx7l2ic6p078az15v5qic7rki84")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/randomlist")
    (synopsis
     "Deal with database, loop, and random in order to build personalized
exercises")
    (description
     "The main aim of this package is to work on lists, especially with random
operations.  The hidden aim is to build a personnal collection of exercises
with different data for each pupil.")
    (license license:lppl1.3+)))

(define-public texlive-resumemac
  (package
    (name "texlive-resumemac")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/resumemac/"
                   "tex/plain/resumemac/")
             (base32
              "0q6ngs2inzk2nk9f06s9w9q2qhx71dw7nflmrc9hzx9w0pinw830")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/resumemac")
    (synopsis "Plain TeX macros for resumes")
    (description "This package provides a set of macros for resumes.")
    (license license:public-domain)))

(define-public texlive-ruler
  (package
    (name "texlive-ruler")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/ruler/")
             (base32
              "1ikap9dkdw9lzpda0f2krizqbfkyjxvyddils7clim9nhg77aq71")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ruler")
    (synopsis "Typographic ruler for TeX")
    (description
     "The file processes to produce (real) rulers; the author suggests
printing them on transparent plastic and trimming for use as a real ruler.
The rule widths are 0.05mm, which can be challenging for (old) laser
printers.")
    (license license:gpl3+)))

(define-public texlive-schemata
  (package
    (name "texlive-schemata")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/schemata/"
                   "source/generic/schemata/"
                   "tex/generic/schemata/")
             (base32
              "1196653ankylbcsiv1cnrrazz2qplcs27llpv947h4m94vx4sl19")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/schemata")
    (synopsis "Print topical diagrams")
    (description
     "The package facilitates the creation of topical schemata, i.e.,
outlines that use braces (or facsimiles thereof) to illustrate the breakdown
of concepts and categories in Scholastic thought from late medieval and early
modern periods.")
    (license license:lppl1.3+)))

(define-public texlive-shade
  (package
    (name "texlive-shade")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/shade/"
                   "fonts/source/public/shade/"
                   "tex/generic/shade/")
             (base32
              "1b7m11d374cx5rcrvgd2jld1wzixvky3mqdg54hnsg9x14p2dxpg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/shade")
    (synopsis "Shade pieces of text")
    (description
     "The package provides a shaded backdrop to a box of text.  It uses
a Metafont font (provided) which generates to appropriate shading dependent on
the resolution used in the Metafont printer parameters.")
    (license license:lppl1.0+)))

(define-public texlive-simplekv
  (package
    (name "texlive-simplekv")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/simplekv/"
                   "tex/generic/simplekv/")
             (base32
              "0ghyb0m7hyqa10pwcza9z2wyb7010n3snpj1rdp79z8jfq5c288m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simplekv")
    (synopsis "Simple key/value system for TeX and LaTeX")
    (description
     "The package provides a simple key/value system for TeX and LaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-swrule
  (package
    (name "texlive-swrule")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/swrule/")
             (base32
              "075mshpyi9gxbi3n0hbh3ygidzw1daxy697lhc7cc99i39y8scpi")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/swrule")
    (synopsis "Lines thicker in the middle than at the ends")
    (description
     "This package defines commands that create rules split into
a (specified) number of pieces, whose size varies to produce the
effect of a rule that swells in its centre.")
    ;; Library mentions: "The style package is copyrighted but may be used and
    ;; extended in any way, as long as a pointer to the original author is
    ;; maintained.  The author is not liable for any problem that may or may
    ;; not result from using this package. Use at your own risk".
    (license (license:fsf-free "file://tex/generic/swrule/swrule.sty"))))

(define-public texlive-systeme
  (package
    (name "texlive-systeme")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/systeme/"
                   "tex/generic/systeme/")
             (base32
              "02n8bchq9crv21cqvji4kkrjsyp34wny5i047jyp1j2yz8i99m5y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/systeme")
    (synopsis "Format systems of equations")
    (description
     "The package allows you to enter systems of equations or inequalities in
an intuitive way, and produces typeset output where the terms and signs are
aligned vertically.  The package works with plain TeX or LaTeX, but e-TeX is
required.")
    (license license:lppl1.3c)))

(define-public texlive-tabto-generic
  (package
    (name "texlive-tabto-generic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/tabto-generic/")
             (base32
              "0i65jflbnhqpqf1w7pkagicic1s39gcl319z7g9zr1g80f9532dv")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tabto-generic")
    (synopsis "Tab to a measured position in the line")
    (description
     "@code{\\tabto@{<length>@}} moves the typesetting position to
@code{<length>} from the left margin of the paragraph.  If the typesetting
position is already further along, @code{\\tabto} starts a new line.")
    (license license:public-domain)))

(define-public texlive-talos
  (package
    (name "texlive-talos")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/talos/"
                   "fonts/opentype/public/talos/")
             (base32
              "1m656d4lkc9ikp7gb91yna4323lip3xcr6n3kqh1j4sqvp4rkm61")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/talos")
    (synopsis "Greek cult font from the eighties")
    (description
     "This package provides a cult Greek font from the eighties, used at the
University of Crete, Greece.  It belonged to the first TeX installation in
a Greek University and most probably the first TeX installation that supported
the Greek language.")
    (license license:gfl1.0)))

(define-public texlive-termmenu
  (package
    (name "texlive-termmenu")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/termmenu/"
                   "source/generic/termmenu/"
                   "tex/generic/termmenu/")
             (base32
              "0d1pdz5izr43ndji7g28932dnnf8d6nxvh8bay2yk7647yh47aj4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/termmenu")
    (synopsis "Support for terminal-based menus")
    (description
     "When writing programs, it's often required to present the user with
a list of options or actions.  The user is then expected to select one of
these options for the program to process.  @code{termmenu} provides this
mechanism for TeX.")
    (license license:lppl1.3+)))

(define-public texlive-teubner
  (package
    (name "texlive-teubner")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/teubner/" "source/latex/teubner/"
                   "tex/latex/teubner/")
             (base32
              "1wlp2hv1xsn7z1d42y01mwp4yq06w1j9p3fgk2vvi4ca20rgg7pk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/teubner")
    (synopsis "Philological typesetting of classical Greek")
    (description
     "This package provides an extension to Babel @samp{greek} option for
typesetting classical Greek with a philological approach.  The package works
with the author's greek fonts using the Lispiakos font shape derived from that
of the fonts used in printers shops in Lispia.")
    (license license:lppl1.3c)))

(define-public texlive-tex
  (package
    (name "texlive-tex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/initex.1"
                   "doc/man/man1/initex.man1.pdf"
                   "doc/man/man1/tex.1"
                   "doc/man/man1/tex.man1.pdf")
             (base32
              "1n4jybv4qghg74anpj7n7kj4l908f476q597vyvvq59fd9k5m7mm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:texlive-latex-bin? #f
           #:create-formats #~(list "tex")))
    (propagated-inputs
     (list texlive-cm
           texlive-hyphen-base
           texlive-knuth-lib
           texlive-kpathsea
           texlive-plain))
    (home-page "https://ctan.org/pkg/tex")
    (synopsis "Sophisticated typesetting engine")
    (description
     "TeX is a typesetting system that incorporates a macro processor.  A TeX
source document specifies or incorporates a number of macro definitions that
instruct the TeX engine how to typeset the document.  The TeX engine also uses
font metrics generated by Metafont, or by any of several other mechanisms that
incorporate fonts from other sources into an environment suitable for TeX.
TeX has been, and continues, a basis and an inspiration for several other
programs, including e-TeX and PDFTeX.  The distribution includes the source of
Knuth's TeX book; this source is there to read, as an example of writing TeX ;
it should not be processed without Knuth's direct permission.")
    (license license:knuth)))

(define-public texlive-tex-ps
  (package
    (name "texlive-tex-ps")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tex-ps/cmyk-hax/"
                   "doc/generic/tex-ps/poligraf/"
                   "dvips/tex-ps/" "tex/generic/tex-ps/")
             (base32
              "09f70q2bhmq7bn98f2g2pq62wnfhj24bzkbv652sjrw5rafp0311")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-ps")
    (synopsis "TeX to PostScript generic macros and add-ons")
    (description
     "This package provides TeX to PostScript generic macros and add-ons:
transformations of EPS files, prepress preparation, color separation, mirror,
etc.")
    (license license:public-domain)))

(define-public texlive-texdate
  (package
    (name "texlive-texdate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/texdate/"
                   "source/generic/texdate/"
                   "tex/generic/texdate/")
             (base32
              "0knssay50rm8pbksph20hhfbpwwby3a9pswvxyq63imn5qppz2dp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texdate")
    (synopsis "Date printing, formatting, and manipulation in TeX")
    (description
     "TeX and LaTeX provide few facilities for dates by default, though many
packages have filled this gap.  This package fills it, as well, with a pure
TeX-primitive implementation.  It can print dates, advance them by numbers of
days, weeks, or months, determine the weekday automatically, and print them
in (mostly) arbitrary format.  It can also print calendars (monthly and
yearly) automatically, and can be easily localized for non-English
languages.")
    (license license:lppl1.3c)))

(define-public texlive-texdimens
  (package
    (name "texlive-texdimens")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/texdimens/"
                   "tex/generic/texdimens/")
             (base32
              "0l6raryqpxydis9kq6sd4pvz7d2rzrrsnx7k9n3d3921pp208lv4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texdimens")
    (synopsis "Conversion of TeX dimensions to decimals")
    (description
     "This package provides utilities and documentation related to TeX
dimensional units, usable both with Plain TeX and with LaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-timetable
  (package
    (name "texlive-timetable")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/plain/timetable/")
             (base32
              "1lnl8gi2rrzcy688qb8b1ff9yivwxdqmbcfx2ph49aymkxfym97b")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/timetable")
    (synopsis "Generate timetables")
    (description
     "This package provides a highly-configurable package, with nice output
and simple input.  The macros use a radix sort mechanism so that the order of
input is not critical.")
    (license license:lppl)))

(define-public texlive-transparent-io
  (package
    (name "texlive-transparent-io")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/transparent-io/")
             (base32
              "04zfmk25qw2cnja1zqhafabsy26zalxiawf6pm5zqx4x1jl47i6j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/transparent-io")
    (synopsis
     "Show for approval the filenames used in @code{\\input}, @code{\\openin},
or @code{\\openout}")
    (description
     "This package provides macros to make the file I/O in plain TeX more
transparent.  That is, every @code{\\input}, @code{\\openin}, and
@code{\\openout} operation by TeX is presented to the user who must check
carefully if the file name of the source is acceptable.  The user must
sometimes enter additional text and has to specify the file name that the TeX
operation should use.  The macros require a complex installation procedure;
the package contains Sed and Bash scripts.  Every installation is different
from any other as password-protected macro names and private messages have to
be chosen by the installer.  Therefore, the files in the package cannot be
used directly.  For details see the manual.")
    (license license:gpl3)))

(define-public texlive-treetex
  (package
    (name "texlive-treetex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/treetex/" "tex/plain/treetex/")
             (base32
              "0cv7kwa865i473l8ffsyq5n7kw6pihclf87asbpsc1rx2h4v6mhs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/treetex-plain")
    (synopsis "Draw trees")
    (description
     "This package provides macros to draw trees, within TeX or LaTeX.")
    (license license:public-domain)))

(define-public texlive-trigonometry
  (package
    (name "texlive-trigonometry")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/trigonometry/"
                   "tex/generic/trigonometry/")
             (base32
              "165n813kj0znfrnqkqv0gja3nyr2lznnhbmsay6l8a5nj59h7cxl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/trigonometry")
    (synopsis "Demonstration code for cos and sin in TeX macros")
    (description
     "This package provides a document that both provides macros that are
usable elsewhere, and demonstrates the macros.  The code uses the classical
analytical expansion of sin and cos.")
    (license license:knuth)))

(define-public texlive-upca
  (package
    (name "texlive-upca")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/upca/" "tex/generic/upca/")
             (base32
              "0miqn29dln9c2nlvcivsq7ciyb70ffk16v7dmzfn976xnvfsjbiw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/upca")
    (synopsis "Print UPC-A barcodes")
    (description
     "The package defines a single macro @code{\\upca}, to print UPC-A
barcodes.")
    (license license:lppl)))

(define-public texlive-uplatex
  (package
    (name "texlive-uplatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/uplatex.1"
                   "doc/man/man1/uplatex.man1.pdf"
                   "doc/uplatex/base/"
                   "source/uplatex/base/"
                   "tex/uplatex/base/"
                   "tex/uplatex/config/")
             (base32
              "0bzkyira30b9xdsdfxjmwzgqffl9pvckz5avm6c3r0bq6asiml9l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:create-formats #~(list "uplatex" "uplatex-dev")
           #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'fix-build
                 ;; This phase is necessary because the build phase is
                 ;; reluctant to generate "ukinsoku.tex" since there is
                 ;; another one among the inputs (texlive-uptex) already.
                 (lambda _
                   (substitute* "source/uplatex/base/uplfmt.ins"
                     (("\\\\keepsilent\n" all)
                      (string-append all "\\askforoverwritefalse\n"))))))))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-base
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-platex
           texlive-tex-ini-files
           texlive-unicode-data
           texlive-uptex
           texlive-uptex-fonts))
    (home-page "https://ctan.org/pkg/uplatex")
    (synopsis "pLaTeX2e and miscellaneous macros for upTeX")
    (description
     "The bundle provides pLaTeX2e macros for upTeX by Takuji Tanaka.")
    (license license:bsd-3)))

(define-public texlive-uptex-base
  (package
    (name "texlive-uptex-base")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/uptex/uptex-base/"
                   "tex/uptex/uptex-base/")
             (base32
              "1xd55rv5ivlmmfmvvz611by6dbi0cw4lwpprcvd9yvgmqjafc1pj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/uptex-base")
    (synopsis "Plain TeX formats and documents for upTeX")
    (description
     "The bundle contains plain TeX format files and documents for upTeX and
and e-upTeX.")
    (license license:bsd-3)))

(define-public texlive-uptex
  (package
    (name "texlive-uptex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/euptex.1"
                   "doc/man/man1/euptex.man1.pdf"
                   "doc/man/man1/upbibtex.1"
                   "doc/man/man1/upbibtex.man1.pdf"
                   "doc/man/man1/uppltotf.1"
                   "doc/man/man1/uppltotf.man1.pdf"
                   "doc/man/man1/uptex.1"
                   "doc/man/man1/uptex.man1.pdf"
                   "doc/man/man1/uptftopl.1"
                   "doc/man/man1/uptftopl.man1.pdf")
             (base32
              "14hn2n6jbibbqbdr72j74z5bz003jnlabi3kja0f0waxhas680gd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "euptex" "uptex")))
    (propagated-inputs
     (list texlive-cm
           texlive-etex
           texlive-hyphen-base
           texlive-knuth-lib
           texlive-plain
           texlive-ptex-base
           texlive-uptex-base
           texlive-uptex-fonts))
    (home-page "https://ctan.org/pkg/uptex")
    (synopsis "Unicode version of pTeX")
    (description
     "upTeX is an extension of pTeX, using UTF-8 input and producing UTF-8 output.
It was originally designed to improve support for Japanese, but is also useful
for documents in Chinese and Korean.  It can process Chinese simplified,
Chinese traditional, Japanese, and Korean simultaneously, and can also process
original LaTeX with @code{\\inputenc@{utf8@}} and Babel
(Latin/Cyrillic/Greek etc.) by switching its @code{\\kcatcode} tables.")
    (license license:bsd-3)))

(define-public texlive-uptex-fonts
  (package
    (name "texlive-uptex-fonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/uptex-fonts/"
                   "fonts/cmap/uptex-fonts/"
                   "fonts/source/uptex-fonts/"
                   "fonts/tfm/uptex-fonts/jis/"
                   "fonts/tfm/uptex-fonts/min/"
                   "fonts/vf/uptex-fonts/jis/"
                   "fonts/vf/uptex-fonts/min/")
             (base32
              "13cvdmfr97ad77q0djffl28grm1brqcsb1ccwkfdnkznp7ihiz82")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/uptex-fonts")
    (synopsis "Fonts for use with upTeX")
    (description "The bundle contains fonts (TFM and VF) for use with upTeX.")
    (license license:bsd-3)))

(define-public texlive-upzhkinsoku
  (package
    (name "texlive-upzhkinsoku")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/upzhkinsoku/"
                   "tex/generic/upzhkinsoku/")
             (base32
              "0c95fy9raykpjgnkz5h0wyjxyg2h0ksx2kb14lx2rsv65xsi909y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/upzhkinsoku")
    (synopsis "Supplementary Chinese kinsoku for Unicode *pTeX")
    (description
     "This package provides supplementary Chinese kinsoku (line breaking rules
etc.)@: settings for Unicode (e-)upTeX (when using Unicode as its internal
encoding), and ApTeX.  Both LaTeX and plain TeX are supported.")
    (license license:knuth)))

(define-public texlive-variations
  (package
    (name "texlive-variations")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/variations/"
                   "tex/generic/variations/")
             (base32
              "1ad1yc1v32ds4wj36fql6fjiacziw4ynvw0rpj3x01k6jdvh44xh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/variations")
    (synopsis "Typeset tables of variations of functions")
    (description
     "The package provides macros for typesetting tables showing variations of
functions according to French usage.  These macros may be used by both LaTeX
and plain TeX users.")
    (license license:gpl3+)))

(define-public texlive-varisize
  (package
    (name "texlive-varisize")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/varisize/" "tex/plain/varisize/")
             (base32
              "0nd89zhwyg5z9wcy1lixg3hzcfw83lsilkjhhy9kir0fi9whdbv4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/varisize")
    (synopsis "Change font size in Plain TeX")
    (description
     "This package provides a series of files, each of which defines
a size-change macro.  Note that @file{10point.tex} is by convention called by
one of the other files, so that there's always a way back.")
    (license license:public-domain)))

(define-public texlive-xgreek
  (package
    (name "texlive-xgreek")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xgreek/" "source/latex/xgreek/"
                   "tex/latex/xgreek/")
             (base32
              "0hmy7s53bi9szvp13zcg6hk23s8mr2ssbnmq9cw5sb8ggz8icywa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xgreek")
    (synopsis "Greek language support for XeLaTeX and LuaLaTeX")
    (description
     "This package has been designed so to allow people to typeset Greek
language documents using XeLaTeX or LuaLaTeX.  Practically, it provides all
the capabilities of the @samp{greek} option of the Babel package.

The package can be invoked with any of the following options:
@samp{monotonic} (for typesetting modern monotonic Greek),
@samp{polytonic} (for typesetting modern polytonic Greek), and
@samp{ancient} (for typesetting ancient texts).  The default option is
@samp{monotonic}.")
    (license license:lppl1.3c)))

(define-public texlive-xii
  (package
    (name "texlive-xii")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/xii/")
             (base32
              "19jhzv5hqzj59wrfcr1dsj6z56qfckax694idgf8arri5lnbkdd8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xii")
    (synopsis "Christmas silliness (English)")
    (description
     "This is the plain TeX file @file{xii.tex}.  Call @samp{pdftex xii.tex}
to produce a (perhaps) surprising typeset document.")
    (license license:lppl)))

(define-public texlive-xii-lat
  (package
    (name "texlive-xii-lat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/xii-lat/")
             (base32
              "1nn54xv71kcmn9jbkcslz6a64cvjcay9x96rrxnakdj9qcqd27r5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xii-lat")
    (synopsis "Christmas silliness (Latin)")
    (description
     "This is the plain TeX file @file{xii-lat.tex}.  Call @samp{pdftex
xii-lat.tex} to produce a (perhaps) surprising typeset document.")
    (license license:lppl)))

(define-public texlive-xintsession
  (package
    (name "texlive-xintsession")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/xintsession/"
                   "tex/plain/xintsession/")
             (base32
              "0rd2jmq62ariq73qwch1hz1jmzdw6sn48ngh64pgm6qkqbpddxkv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xintsession")
    (synopsis
     "Interactive computing sessions (fractions, floating points, polynomials)")
    (description
     "This package provides support for interactive computing sessions with
e-TeX (or pdfTeX) executed on the command line.  Once @code{xintsession} is
loaded, e-TeX becomes an interactive computing software capable of executing
arbitrary precision calculations, or exact calculations with arbitrarily big
fractions.  It can also manipulate polynomials as algebraic entities.
Numerical variables and functions can be defined during the session, and each
evaluation result is stored in automatically labeled variables.  A file is
automatically created storing inputs and outputs.")
    (license license:lppl1.3c)))

(define-public texlive-xlop
  (package
    (name "texlive-xlop")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/xlop/" "tex/generic/xlop/")
             (base32
              "1yqks7jvb5ikg2xx038rsxbkhagms1zqjmipnv49rqliavcq03gj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xlop")
    (synopsis "Calculate and display arithmetic operations")
    (description
     "Xlop (eXtra Large OPeration) will typeset arithmetic problems either
in-line or as in school (using French school conventions).  Many other
features allow to deal with numbers (tests, display, some high level
operations, etc.)")
    (license license:lppl1.3+)))

(define-public texlive-xtuthesis
  (package
    (name "texlive-xtuthesis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xtuthesis/"
                   "tex/latex/xtuthesis/")
             (base32
              "1fdk9dkikqlkjwrg8qjm2phvsyyvddshf78bjy6liyz5hqakk6r8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xtuthesis")
    (synopsis "XTU thesis template")
    (description
     "The package provides a thesis template for the Xiangtan University.")
    (license license:lppl1.3+)))

(define-public texlive-yannisgr
  (package
    (name "texlive-yannisgr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/yannisgr/"
                   "fonts/source/public/yannisgr/"
                   "fonts/tfm/public/yannisgr/")
             (base32
              "0s5cfid1r6jn34kzvmxwxyxpvyb0rayn80x3n7k515p1plqmmrnq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-levy texlive-metafont))
    (home-page "https://ctan.org/pkg/yannisgr")
    (synopsis "Greek fonts by Yannis Haralambous")
    (description
     "This package provides a family of 7-bit fonts with a code table designed
for setting modern polytonic Greek.  The fonts are provided as Metafont
source; macros to produce a Greek variant of Plain TeX (including
a hyphenation table adapted to the fonts code table) are provided.")
    (license license:gpl2)))

(define-public texlive-zhlineskip
  (package
    (name "texlive-zhlineskip")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/zhlineskip/"
                   "tex/latex/zhlineskip/")
             (base32
              "070vi0pra74in55r0pq2k35s3x3xk6gjwvnsif7bnx4k7wn39mal")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zhlineskip")
    (synopsis "Line spacing for CJK documents")
    (description
     "This package supports typesetting CJK documents.  It allows users to
specify the two ratios between the leading and the font size of the body text
and the footnote text.  For CJK typesetting, these ratios usually range from
1.5 to 1.67.  This package is also capable of restoring the math leading to
that of the Latin text (usually 1.2 times the font size).")
    (license license:lppl1.3c)))

(define-public texlive-zhlipsum
  (package
    (name "texlive-zhlipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/zhlipsum/"
                   "source/latex/zhlipsum/"
                   "tex/latex/zhlipsum/")
             (base32
              "1lhc3a8l5sizyw0v1cfsrwwwymmyab1yvx99iqhdh7avrzmi2gda")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ctex))
    (home-page "https://ctan.org/pkg/zhlipsum")
    (synopsis "Chinese dummy text")
    (description
     "This package provides an interface to dummy text in Chinese language,
which will be useful for testing Chinese documents.  UTF-8, GBK and Big5
encodings are supported.")
    (license license:lppl1.3c)))

(define-public texlive-zztex
  (package
    (name "texlive-zztex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/zztex/" "tex/plain/zztex/")
             (base32
              "07vx3m2g4vl2v1nxxy5dih67jg406y2i94sgkrmplm54b0pp42g3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zztex")
    (synopsis "TeX macro package for producing books, journals, and manuals")
    (description
     "The ZzTeX macro package is a full-featured TeX macro package specially
designed for producing books, journals, and manuals.  ZzTeX runs under Plain
TeX.")
    (license license:expat)))

(define-public texlive-lcdftypetools
  (package
    (name "texlive-lcdftypetools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/cfftot1.1"
                   "doc/man/man1/cfftot1.man1.pdf"
                   "doc/man/man1/mmafm.1"
                   "doc/man/man1/mmafm.man1.pdf"
                   "doc/man/man1/mmpfb.1"
                   "doc/man/man1/mmpfb.man1.pdf"
                   "doc/man/man1/otfinfo.1"
                   "doc/man/man1/otfinfo.man1.pdf"
                   "doc/man/man1/otftotfm.1"
                   "doc/man/man1/otftotfm.man1.pdf"
                   "doc/man/man1/t1dotlessj.1"
                   "doc/man/man1/t1dotlessj.man1.pdf"
                   "doc/man/man1/t1lint.1"
                   "doc/man/man1/t1lint.man1.pdf"
                   "doc/man/man1/t1rawafm.1"
                   "doc/man/man1/t1rawafm.man1.pdf"
                   "doc/man/man1/t1reencode.1"
                   "doc/man/man1/t1reencode.man1.pdf"
                   "doc/man/man1/t1testpage.1"
                   "doc/man/man1/t1testpage.man1.pdf"
                   "doc/man/man1/ttftotype42.1"
                   "doc/man/man1/ttftotype42.man1.pdf")
             (base32
              "0yjbc6rsf8c62qa1lyi9kjyjy2p0xlps19llnvly3xyhla08j76f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-glyphlist))
    (home-page "https://ctan.org/pkg/lcdf-typetools")
    (synopsis "Bundle of outline font manipulation tools")
    (description
     "This bundle of tools comprises:
@itemize
@item @command{cfftot1}, which translates a Compact Font Format
(CFF) font, or a PostScript-flavored OpenType font, into PostScript
Type 1 format.  It correctly handles subroutines and hints;

@item @command{mmafm} and @command{mmpfb}, which create instances of
multiple-master fonts;

@item @command{otfinfo}, which reports information about OpenType
fonts, such as the features they support and the contents of their
size optical size features;

@item @command{otftotfm}, which creates TeX font metrics and encodings
that correspond to a PostScript-flavored OpenType font.  It will
interpret glyph positionings, substitutions, and ligatures as far as
it is able.  You can say which OpenType features should be activated;

@item @command{t1dotlessj}, which creates a Type 1 font whose only
character is a dotless j matching the input font's design;

@item @command{t1lint}, which checks a Type 1 font for correctness;

@item @command{t1reencode}, which replaces a font's internal encoding
with one you specify;

@item @command{t1testpage}, which creates a PostScript proof for
a Type 1 font.
@end itemize")
    (license license:gpl3+)))

(define-public texlive-latex
  (package
    (name "texlive-latex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/base/" "makeindex/latex/"
                   "source/latex/base/" "tex/latex/base/")
             (base32
              "0yqxf70rzhzyrr5jrcqmqay9zhjz8f3qhcxak01g5cywdgvzfmpq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:tex-engine "tex"
      #:tex-format #f
      #:build-targets #~(list "unpack.ins")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-lua-build
            ;; The literal tab in the dtx file is translated to the string
            ;; "^^I" in the generated Lua file, which causes a syntax error.
            (lambda _
              (substitute* "source/latex/base/ltluatex.dtx"
                (("\t") "  ")))))))
    (propagated-inputs
     (list texlive-latex-fonts
           texlive-latexconfig
           texlive-luatex
           texlive-pdftex))
    (home-page "https://ctan.org/pkg/latex")
    (synopsis "TeX macro package that defines LaTeX")
    (description
     "LaTeX is a widely-used macro package for TeX, providing many basic
document formating commands extended by a wide range of packages.")
    (license license:lppl1.3c)))

(define-public texlive-latexbug
  (package
    (name "texlive-latexbug")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexbug/"
                   "source/latex/latexbug/"
                   "tex/latex/latexbug/")
             (base32
              "0l9cyw41knbw3prsi4rbd2av4qfpkvzjs754847kv72dq1304m1i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexbug")
    (synopsis "Bug-classification for LaTeX related bugs")
    (description
     "The package is written in order to help identifying the rightful
addressee for a bug report.  The LaTeX team asks that it will be loaded in any
test file that is intended to be sent to the LaTeX bug database as part of
a bug report.")
    (license license:lppl1.3c)))

(define-public texlive-lcyw
  (package
    (name "texlive-lcyw")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lcyw/" "source/latex/lcyw/"
                   "tex/latex/lcyw/")
             (base32
              "1yijk9l2ls6sq45ifx6m9d7xxk0ysrnn1y3fjz8wxwgwxp88x9fh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lcyw")
    (synopsis "Make classic Cyrillic CM fonts accessible in LaTeX")
    (description
     "The package makes the classic CM Cyrillic fonts accessible for use with
LaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-lhcyr
  (package
    (name "texlive-lhcyr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "source/latex/lhcyr/" "tex/latex/lhcyr/")
             (base32
              "09cg2hs5g20axbfpv2k6df5pi3xm0aywcswhnknllykr6z0ip2zw")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lhcyr")
    (synopsis "Non-standard Cyrillic input scheme")
    (description
     "This package provides a collection of three LaTeX2e styles intended for
typesetting Russian and bilingual English-Russian documents, using the
@code{lh} fonts and without the benefit of Babel's language-switching
mechanisms.  The packages (@code{hcyralt} and @code{hcyrwin} for use under
emTeX, and @code{hcyrkoi} for use under teTeX} provide mappings between the
input encoding and the font encoding, which is described as OT1.  The way this
is done does not match the way @code{inputenc} would do the job, for output
via fontenc to one of the T2 series of font encodings.")
    (license license:knuth)))

(define-public texlive-luafindfont
  (package
    (name "texlive-luafindfont")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/luafindfont.1"
                   "doc/man/man1/luafindfont.man1.pdf"
                   "doc/support/luafindfont/"
                   "scripts/luafindfont/")
             (base32
              "1xyqlbwgsbb5al2ss9w40wsigsmlj97rf6ck3rih41s0js7yz4aj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "luafindfont.lua")))
    (home-page "https://ctan.org/pkg/luafindfont")
    (synopsis "Search fonts in the LuaTeX font database")
    (description "This Lua script searches for fonts in the font database.")
    (license license:lppl1.3c)))

(define-public texlive-bidi
  (package
    (name "texlive-bidi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/bidi/" "source/xelatex/bidi/"
                   "tex/xelatex/bidi/")
             (base32
              "0zrmdgzbd8shzv1m1xvfqz515mwy5igkjwnnc4jrm1csbjf7jnj8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bidi")
    (synopsis "Bidirectional typesetting in plain TeX and LaTeX using XeTeX")
    (description
     "The @code{bidi} package provides a convenient interface for typesetting
bidirectional texts with plain TeX and LaTeX.  The package includes
adaptations for use with many other commonly-used packages.")
    (license license:lppl1.3+)))

(define-public texlive-bidi-atbegshi
  (package
    (name "texlive-bidi-atbegshi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/bidi-atbegshi/"
                   "tex/xelatex/bidi-atbegshi/")
             (base32
              "08gawna9hf5p3rn0v5qzszk61zqknixafvh6d2x37x960x493gn7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bidi-atbegshi")
    (synopsis "Bidi-aware shipout macros")
    (description
     "The package adds some commands to the @code{atbegshi} package for proper
placement of background material in the left and right corners of the output
page, in both LTR and RTL modes.  The package only works with @code{xelatex}
format and should be loaded before the @code{bidi} package.")
    (license license:lppl1.3+)))

(define-public texlive-bidicontour
  (package
    (name "texlive-bidicontour")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/bidicontour/"
                   "tex/xelatex/bidicontour/")
             (base32
              "1kiqbn5map3d9bmlvr5cq1snssw44c772xzjp6yyjvg6wg1zy0bn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bidicontour")
    (synopsis "Bidi-aware coloured contour around text")
    (description
     "The package is a re-implementation of the @code{contour} package, making
it Bidi-aware, and adding support of the xdvipdfmx (when the outline option of
the package is used).")
    (license license:lppl1.3+)))

(define-public texlive-bidipagegrid
  (package
    (name "texlive-bidipagegrid")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/bidipagegrid/"
                   "tex/xelatex/bidipagegrid/")
             (base32
              "19jkg4apf1g3whigcchbcf8p14lpxkz9ih2vrw00akwfh8v3ssrk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bidipagegrid")
    (synopsis "Bidi-aware page grid in background")
    (description "The package provides Bidi-aware page grid in background.  It
is based on @code{pagegrid}.")
    (license license:lppl1.3+)))

(define-public texlive-bidipresentation
  (package
    (name "texlive-bidipresentation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/bidipresentation/"
                   "tex/xelatex/bidipresentation/")
             (base32
              "0b9md68zzj3nzi9b4hdavjz43nwair1xg3b240p0bp5ly5l6pvmr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bidipresentation")
    (synopsis "Experimental bidi presentation")
    (description
     "This package provides a great portion of the code is borrowed from the
texpower bundle, with modifications to get things working properly in both
right to left and left to right modes.")
    (license license:lppl1.3+)))

(define-public texlive-bidishadowtext
  (package
    (name "texlive-bidishadowtext")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/bidishadowtext/"
                   "tex/xelatex/bidishadowtext/")
             (base32
              "1nq71bgz7vag9k138mx8hsf42cjvgry2g4z9jiqmq4almm23a1gq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bidishadowtext")
    (synopsis "Bidi-aware shadow text")
    (description
     "This package allows you to typeset Bidi-aware shadow text.  It is
a re-implementation of the @code{shadowtext} package adding Bidi support.")
    (license license:lppl1.3+)))

(define-public texlive-alphalph
  (package
    (name "texlive-alphalph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/alphalph/"
                   "source/latex/alphalph/"
                   "tex/generic/alphalph/")
             (base32
              "0ap59hmg0brg2wlh3bl77jxfxrk7hphhdal8cr05mby9bw35gffy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/alphalph")
    (synopsis "Convert numbers to letters")
    (description
     "This package provides commands @code{\\alphalph} and @code{\\AlphAlph}.
They are like @code{\\number} but the expansion consists of lowercase and
uppercase letters respectively (1 to a, 26 to z, 27 to aa, 52 to zz, 53 to ba,
702 to zz, 703 to aaa, etc.).  Alphalph's commands can be used as
a replacement for LaTeX's @code{\\@@alph} and @code{\\@@Alph} macros.")
    (license license:lppl1.3c+)))

(define-public texlive-antt
  (package
    (name "texlive-antt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/antt/"
                   "doc/latex/antt/"
                   "fonts/afm/public/antt/"
                   "fonts/enc/dvips/antt/"
                   "fonts/map/dvips/antt/"
                   "fonts/opentype/public/antt/"
                   "fonts/tfm/public/antt/"
                   "fonts/type1/public/antt/"
                   "tex/latex/antt/"
                   "tex/plain/antt/")
             (base32
              "1fvmgb581ixc4fvw5l0g11hlvdpf0cld6db0cg3vysw5yabas3vm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/antt")
    (synopsis "Type 1 family of a Polish traditional type")
    (description
     "Antykwa Torunska is a serif font designed by the late Polish typographer
Zygfryd Gardzielewski, reconstructed and digitized as Type 1.")
    (license license:gfl1.0)))

(define-public texlive-asana-math
  (package
    (name "texlive-asana-math")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/asana-math/"
                   "fonts/opentype/public/asana-math/"
                   "fonts/truetype/public/asana-math/")
             (base32
              "1q934gackj9j7b7bvlq7yv1pr9rxrhhip1as7ywgx8d45ddig2rq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/asana-math")
    (synopsis "Font to typeset maths in Xe(La)TeX and Lua(La)TeX")
    (description
     "The Asana-Math font is an OpenType font that includes almost all
mathematical Unicode symbols and it can be used to typeset mathematical text
with any software that can understand the MATH OpenType table.")
    (license license:silofl1.1)))

(define-public texlive-avantgar
  (package
    (name "texlive-avantgar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/avantgar/"
                   "fonts/afm/adobe/avantgar/"
                   "fonts/afm/urw/avantgar/"
                   "fonts/map/dvips/avantgar/"
                   "fonts/tfm/adobe/avantgar/"
                   "fonts/tfm/urw35vf/avantgar/"
                   "fonts/type1/urw/avantgar/"
                   "fonts/vf/adobe/avantgar/"
                   "fonts/vf/urw35vf/avantgar/"
                   "tex/latex/avantgar/")
             (base32
              "1200x40k7wprm4n7srxvgrax2l52vn6d5ri2x0q7zbzzsfxfzkym")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Avant Garde font")
    (description
     "This package provides a drop-in replacement for the Avant Garde font
from Adobe's basic set.")
    (license license:gpl3+)))

(define texlive-docstrip
  (package
    (name "texlive-docstrip")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "/tex/latex/base/docstrip.tex")
             (base32
              "04cwvqs8cx8l60lrwn60krpjg1ada7i8g5mh6cb6bxaz08yvx9i4")))
    (build-system texlive-build-system)
    (arguments
     (list #:texlive-latex-bin? #f))
    (home-page "https://www.ctan.org/texlive")
    (synopsis "Utility to strip documentation from TeX files")
    (description "This package provides the docstrip utility to strip
documentation from TeX files.  It is part of the LaTeX base.")
    (license license:lppl1.3+)))

(define-public texlive-undergradmath
  (package
    (name "texlive-undergradmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/undergradmath/")
             (base32
              "1z8my3fwqc8rfc1843j7lcmfka2023z9k0js4ygh1m8kilc2nrr7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/undergradmath")
    (synopsis "LaTeX Math for undergraduates cheat sheet")
    (description
     "This is a cheat sheet for writing mathematics with LaTeX.  It is aimed
at US undergraduates.")
    (license license:cc-by-sa4.0)))

(define-public texlive-underscore
  (package
    (name "texlive-underscore")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/underscore/" "tex/latex/underscore/")
             (base32
              "0slxsxc9azmv3gsm55jkhkv8a06wafankp55hhsdd6k4prp8szrb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/underscore")
    (synopsis "Control the behaviour of @samp{_} in text")
    (description
     "This package causes @code{\\_} in text mode (i.e.,
@code{\\textunderscore}) to print an underscore so that hyphenation of words
either side of it is not affected; a package option controls whether an actual
hyphenation point appears after the underscore, or merely a break point.  The
package also arranges that, while in text, @samp{_} itself behaves as
@code{\\textunderscore} (the behaviour of @samp{_} in maths mode is not
affected).")
    (license license:lppl1.2+)))

(define-public texlive-unicode-data
  (package
    (name "texlive-unicode-data")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/unicode-data/"
                   "tex/generic/unicode-data/")
             (base32
              "13zff8fk0fwa1ab8wc5yfbay0022jkk1j9zq5azn6gzcxs9szm6q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/unicode-data")
    (synopsis "Unicode data and loaders for TeX")
    (description "This bundle provides generic access to Unicode Consortium
data for TeX use.  It contains a set of text files provided by the Unicode
Consortium which are currently all from Unicode 8.0.0, with the exception of
@code{MathClass.txt} which is not currently part of the Unicode Character
Database.  Accompanying these source data are generic TeX loader files
allowing this data to be used as part of TeX runs, in particular in building
format files.  Currently there are two loader files: one for general character
set up and one for initializing XeTeX character classes as has been carried
out to date by @code{unicode-letters.tex}.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-unicode-data texlive-unicode-data)

(define-public texlive-hologo
  (package
    (name "texlive-hologo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/hologo/"
                   "source/generic/hologo/"
                   "tex/generic/hologo/")
             (base32
              "0n62zwz93ab6vfb0hd2h0ncj9gwavg01i3djj7wyr7gyj20xb34x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hologo")
    (synopsis "Collection of logos with bookmark support")
    (description
     "The package defines a single command @code{\\hologo}, whose argument is
the usual case-confused ASCII version of the logo.  The command is
bookmark-enabled, so that every logo becomes available in bookmarks without
further work.")
    (license license:lppl1.3c)))

(define-public texlive-hook-pre-commit-pkg
  (package
    (name "texlive-hook-pre-commit-pkg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/hook-pre-commit-pkg/")
             (base32
              "0mikg4p9wxb28vgwh1acgdhwa2fqnc8rw3jg355d6s137m40awc6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hook-pre-commit-pkg")
    (synopsis "Pre-commit git hook for LaTeX package developpers")
    (description
     "This package provides a pre-commit git hook to check basic LaTeX
syntax for the use of package developers.  It is installed by copying
it into the @file{.git/.hooks} file.  It then checks the following
file types: @file{.sty}, @file{.dtx}, @file{.bbx}, @file{.cbx}, and
@file{.lbx}.  It performs the following checks:

@itemize

@item each line must be terminated by @samp{%}, without a space before it;

@item empty lines are allowed, but not lines with nothing but spaces in them;

@item @code{\\begin@{macro@}} and @code{\\end@{macro@}} must be paired;

@item @code{\\begin@{macrocode@}} and @code{\\end@{macrocode@}} must be
paired;

@item @code{\\begin@{macro@}} must have a second argument;

@item one space must be printed between @samp{%} and @code{\\begin@{macro@}}
or @code{\\end@{macro@}}. @samp{%} must be the first character in the line;

@item four spaces must be printed between @samp{%} and
@code{\\begin@{macrocode@}} or @code{\\end@{macrocode@}};

@item @code{\\cs} argument must not start with a backslash.

@end itemize")
    (license license:gpl3)))

(define-public texlive-hopatch
  (package
    (name "texlive-hopatch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hopatch/" "source/latex/hopatch/"
                   "tex/latex/hopatch/")
             (base32
              "03hafzf0kpjhn5x392bziwyx0vf6fwcsy0xrn0c0jzn5cq5nqhap")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hopatch")
    (synopsis "Load patches for packages")
    (description
     "Hopatch provides a command with which the user may register of patch code
for a particular package.  Hopatch will apply the patch immediately, if the
relevant package has already been loaded; otherwise it will store the patch
until the package appears.")
    (license license:lppl1.3+)))

(define-public texlive-hyphen-base
  (package
    (name "texlive-hyphen-base")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "/tex/generic/config/language.dat"
                   "/tex/generic/config/language.dat.lua"
                   "/tex/generic/config/language.def"
                   "/tex/generic/config/language.us"
                   "/tex/generic/config/language.us.def"
                   "/tex/generic/config/language.us.lua"
                   "/tex/generic/hyphen/dumyhyph.tex"
                   "/tex/generic/hyphen/hyphen.tex"
                   "/tex/generic/hyphen/hypht1.tex"
                   "/tex/generic/hyphen/zerohyph.tex")
             (base32
              "0p3p12pm9gyrhr1zzvzazfmybhavqd9hdi77ygm3ygq8km7raq3h")))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://tug.org/texlive/")
    (synopsis "Core hyphenation support files")
    (description "This package includes Knuth's original @file{hyphen.tex},
@file{zerohyph.tex} to disable hyphenation, @file{language.us} which starts
the autogenerated files @file{language.dat} and @file{language.def} (and
default versions of those), etc.")
    (license license:knuth)))

(define-public texlive-hyphenex
  (package
    (name "texlive-hyphenex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "source/generic/hyphenex/"
                   "tex/generic/hyphenex/")
             (base32
              "1v1p93i56xgp01zly30bkfgb9py8nav1r620dbgz1q7438zbhzpp")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hyphenex")
    (synopsis "US English hyphenation exceptions file")
    (description
     "Exceptions for American English hyphenation patterns are occasionally
published in the TeX User Group journal TUGboat.  This bundle provides
alternative Perl and Bourne shell scripts to convert the source of such an
article into an exceptions file, together with a recent copy of the article
and machine-readable files.")
    (license license:public-domain)))

(define-public texlive-index
  (package
    (name "texlive-index")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/index/" "doc/latex/index/"
                   "makeindex/index/" "source/latex/index/"
                   "tex/latex/index/")
             (base32
              "0f1infc8fcpw16crciampy4cqqhl4hzypyfacbwsk4cnl0fyivns")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/index")
    (synopsis "Extended index for LaTeX including multiple indexes")
    (description
     "This is a reimplementation of LaTeX's indexing macros to provide better
support for indexing.  For example, it supports multiple indexes in a single
document and provides a more robust @code{\\index} command.")
    (license license:lppl1.2+)))        ;from "index.dtx"

(define-public texlive-installfont
  (package
    (name "texlive-installfont")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/installfont/"
                   "scripts/installfont/")
             (base32
              "0wgksqg88hdzfvrywrv91al9skpj2vly09ly7qmzahqsyvdgmb9p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "installfont-tl")))
    (home-page "https://ctan.org/pkg/installfont")
    (synopsis "Bash script for installing a LaTeX font family")
    (description
     "With this script you can install a LaTeX font family (PostScript Type 1,
TrueType and OpenType formats are supported).  Font series from light to ultra
bold, and (faked) small caps and (faked) slanted shapes are supported, but not
expert fonts.  The script will rename the fonts automatically (optional) or
will otherwise expect the @file{.afm} files and the font files (in PostScript
Type1 format) named in the Karl Berry scheme (e.g., @file{5bbr8a.pfb}).  After
running the script, you should have a working font installation in your local
TeX tree.")
    (license license:lppl)))

(define-public texlive-dvipdfmx
  (package
    (name "texlive-dvipdfmx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/dvipdfm/"
                   "doc/dvipdfmx/"
                   "doc/man/man1/dvipdfm.1"
                   "doc/man/man1/dvipdfm.man1.pdf"
                   "doc/man/man1/dvipdfmx.1"
                   "doc/man/man1/dvipdfmx.man1.pdf"
                   "doc/man/man1/dvipdft.1"
                   "doc/man/man1/dvipdft.man1.pdf"
                   "doc/man/man1/ebb.1"
                   "doc/man/man1/ebb.man1.pdf"
                   "doc/man/man1/extractbb.1"
                   "doc/man/man1/extractbb.man1.pdf"
                   "doc/man/man1/xdvipdfmx.1"
                   "doc/man/man1/xdvipdfmx.man1.pdf"
                   "dvipdfmx/"
                   "fonts/cmap/dvipdfmx/"
                   "fonts/map/dvipdfmx/")
             (base32
              "0p6mlpymrhsalisfda0gbqg6b941fd164kcw0nc51pzc98aws1xz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'delete-map-file
            ;; This map file is supposed to be generated in a profile hook.
            (lambda _
              (delete-file "fonts/map/dvipdfmx/updmap/kanjix.map"))))))
    (propagated-inputs (list texlive-glyphlist))
    (home-page "https://ctan.org/pkg/dvipdfmx")
    (synopsis "Extended version of dvipdfm")
    (description
     "Dvipdfmx (formerly dvipdfm-cjk) is a development of dvipdfm created to
support multi-byte character encodings and large character sets for East Asian
languages.  Dvipdfmx, if called with the name dvipdfm, operates in a dvipdfm
compatibility mode, so that users of the both packages need only keep one
executable.  A secondary design goal is to support as many PDF features as
does pdfTeX.")
    (license license:gpl3+)))

(define-public texlive-dvips
  (package
    (name "texlive-dvips")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/dvips/"
                   "doc/info/dvips.info"
                   "doc/man/man1/afm2tfm.1"
                   "doc/man/man1/afm2tfm.man1.pdf"
                   "doc/man/man1/dvips.1"
                   "doc/man/man1/dvips.man1.pdf"
                   "dvips/base/"
                   "dvips/config/"
                   "fonts/enc/dvips/base/"
                   "tex/generic/dvips/")
             (base32
              "0x11wx9p16z4nxhlbfqlgi5svnr96j1hnvdl9fpv1sr3n1j8m79g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvips")
    (synopsis "DVI to PostScript drivers")
    (description
     "This package provides files needed for converting DVI files to
PostScript.")
    (license license:lppl)))

(define-public texlive-ketcindy
  (package
    (name "texlive-ketcindy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/ketcindy/" "scripts/ketcindy/"
                   "tex/latex/ketcindy/")
             (base32
              "0jy8fzfqwbmnza43j70c22wr0nvx9km8g4n5vcgnjvc6js2nyxas")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ketcindy.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ketcindy")
    (synopsis "Macros for graphic generation and Cinderella plugin")
    (description
     "KETpic is a macro package designed for computer algebra systems (CAS) to
generate LaTeX source codes for high-quality mathematical artwork.  KETcindy
is a plugin for Cinderella that allows to generate graphics using KETpic.  The
generated code can be included in any LaTeX document.")
    (license license:gpl3+)))

(define-public texlive-lacheck
  (package
    (name "texlive-lacheck")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/lacheck.1"
                   "doc/man/man1/lacheck.man1.pdf")
             (base32
              "1hhx65yd800bl3y2sq20lix60wd2b2j3k7n9s788mlsn8b0p7yq3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lacheck")
    (synopsis "LaTeX checker")
    (description
     "Lacheck is a tool for finding common mistakes in LaTeX documents.")
    (license license:gpl3+)))

(define-public texlive-latex-git-log
  (package
    (name "texlive-latex-git-log")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/latex-git-log.1"
                   "doc/man/man1/latex-git-log.man1.pdf"
                   "doc/support/latex-git-log/"
                   "scripts/latex-git-log/")
             (base32
              "01v6frspg1zrs976bwsdz6qczg0h5z6by90hmlyy4z6l5shscpix")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "latex-git-log")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/latex-git-log")
    (synopsis "Typeset @samp{git log} information")
    (description
     "The program is run within a Git repository, and outputs the entire
version history, as a LaTeX table.  That output will typically be redirected
to a file; the author recommends typesetting in landscape orientation.")
    (license license:gpl3+)))

(define-public texlive-latex-papersize
  (package
    (name "texlive-latex-papersize")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/latex-papersize/"
                   "scripts/latex-papersize/")
             (base32
              "19nich5n4prd3g4lqm9iwn9h27h54mnycd6p4g5p18jc0b56l3n8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "latex-papersize.py")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/latex-papersize")
    (synopsis "Calculate LaTeX settings for any font and paper size")
    (description
     "The package is a Python script, whose typical use is when preparing
printed material for users with low vision.  The most effective way of doing
this is to print on (notional) small paper, and then to magnify the result;
the script calculates the settings for various font and paper sizes.")
    (license license:asl2.0)))

(define-public texlive-latex-via-exemplos
  (package
    (name "texlive-latex-via-exemplos")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-via-exemplos/")
             (base32
              "1w0rqhgdkflxypfmxyz61aknmjil9yikc641v2dmc5l55gl2r3nw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-via-exemplos")
    (synopsis "LaTeX course written in Brazilian Portuguese language")
    (description
     "This is a LaTeX2e course written in Brazilian Portuguese language.")
    (license license:gpl2+)))

(define-public texlive-latex2man
  (package
    (name "texlive-latex2man")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/latex2man.info"
                   "doc/man/man1/latex2man.1"
                   "doc/man/man1/latex2man.man1.pdf"
                   "doc/support/latex2man/"
                   "scripts/latex2man/"
                   "tex/latex/latex2man/")
             (base32
              "0c5pfnhw80fh132k2dmj3qdjgvl9dm6xzv55f54g2wlswpzlinis")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "latex2man")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/latex2man")
    (synopsis "Translate LaTeX-based manual pages into Unix man format")
    (description
     "Latex2man is a tool to translate UNIX manual pages written with LaTeX
into the troff format understood by the UNIX man(1) command.  Alternatively
HTML, TexInfo, or LaTeX code can be produced too.  Output of parts of the text
may be supressed using the conditional text feature (for this, LaTeX
generation may be used).  There is a LaTeX package (@file{latex2man.sty}) for
writing the man page and a Perl script, @command{latex2man} that does the
actual translation.")
    (license license:lppl1.0+)))

(define-public texlive-latex2nemeth
  (package
    (name "texlive-latex2nemeth")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/latex2nemeth/"
                   "scripts/latex2nemeth/")
             (base32
              "04l3pnzwnh86ixlj7pjy6wgkzqm5i3ka332yfkl5f6cw48dw6xw5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "latex2nemeth")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'locate-java
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "scripts/latex2nemeth/latex2nemeth"
                (("java") (search-input-file inputs "/bin/java"))))))))
    (inputs (list icedtea))
    (home-page "https://ctan.org/pkg/latex2nemeth")
    (synopsis "Convert LaTeX source to Braille with math in Nemeth")
    (description
     "This package provides a program that converts LaTeX source to
Braille/Nemeth.  It supports the Greek language, which is only Braille level
1, but also English at level 1.  Simple pictures in PSTricks are also
supported in order to produce tactile graphics with specialized equipment.
Note that embossing will need LibreOffice and @code{odt2braille} as this
project does not deal with embossers drivers.")
    (license license:gpl3)))

(define-public texlive-latexdiff
  (package
    (name "texlive-latexdiff")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/latexdiff-vc.1"
                   "doc/man/man1/latexdiff-vc.man1.pdf"
                   "doc/man/man1/latexdiff.1"
                   "doc/man/man1/latexdiff.man1.pdf"
                   "doc/man/man1/latexrevise.1"
                   "doc/man/man1/latexrevise.man1.pdf"
                   "doc/support/latexdiff/"
                   "scripts/latexdiff/")
             (base32
              "03fnz7gilzwzgsqij10npfy8k2imhk5glfjijr52qgmg28r3xvi1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts
           #~(list "latexdiff-vc.pl" "latexdiff.pl" "latexrevise.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/latexdiff")
    (synopsis
     "Determine and mark up significant differences between LaTeX files")
    (description
     "Latexdiff is a Perl script for visual mark up and revision of
significant differences between two LaTeX files.  Various options are
available for visual markup using standard LaTeX packages such as color.
Changes not directly affecting visible text, for example in formatting
commands, are still marked in the LaTeX source.  A rudimentary revision
facilility is provided by another Perl script, @command{latexrevise}, which
accepts or rejects all changes.  Manual editing of the difference file can be
used to override this default behaviour and accept or reject selected changes
only.")
    (license license:gpl3)))

(define-public texlive-latexfileversion
  (package
    (name "texlive-latexfileversion")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/latexfileversion/"
                   "scripts/latexfileversion/")
             (base32
              "12kw9s415dnlaadx6yn2jddvflvbs754rkz30xhr3di2ldpvp2jj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "latexfileversion")))
    (home-page "https://ctan.org/pkg/latexfileversion")
    (synopsis "Prints the version and date of a LaTeX class or style file")
    (description
     "This simple shell script prints the version and date of a LaTeX class or
style file.")
    (license license:lppl)))

(define-public texlive-latexindent
  (package
    (name "texlive-latexindent")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/latexindent/"
                   "scripts/latexindent/")
             (base32
              "1k2d09z2my38nhxhzdq53jg4alzg5jzirdsb1qa7szm3dya46xgm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "latexindent.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/latexindent")
    (synopsis "Indent a LaTeX document, highlighting the programming structure")
    (description
     "The Perl script processes a LaTeX file, indenting parts so as to
highlight the structure for the reader.")
    (license license:gpl3)))

(define-public texlive-latexpand
  (package
    (name "texlive-latexpand")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/latexpand/"
                   "scripts/latexpand/")
             (base32
              "0v0yn4n6v0kgxwh00ryfkrx7a4sxhkm0pbgnylvi8jfg24gz89ls")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "latexpand")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/latexpand")
    (synopsis "Expand @code{\\input} and @code{\\include} in a LaTeX document")
    (description
     "Latexpand is a Perl script that simply replaces @code{\\input} and
@code{\\include} commands with the content of the input or included file.  The
script does not deal with @code{\\includeonly} commands.")
    (license license:bsd-3)))

(define-public texlive-light-latex-make
  (package
    (name "texlive-light-latex-make")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/llmk.1"
                   "doc/man/man1/llmk.man1.pdf"
                   "doc/support/light-latex-make/"
                   "scripts/light-latex-make/")
             (base32
              "0g5xc2cna1fdgksw0w56idkmfw5rfqifimg8picm4478vlq2srp4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "llmk.lua")))
    (home-page "https://ctan.org/pkg/light-latex-make")
    (synopsis "Build tool for LaTeX documents")
    (description
     "Light LaTeX Make (llmk) is yet another build tool specific for LaTeX
documents.  Its aim is to provide a simple way to specify a workflow of
processing LaTeX documents and encourage people to always explicitly show the
right workflow for each document.  You can describe the workflows either in an
external file @file{llmk.toml} or in a LaTeX document source in the form of
magic comments.  It provides a uniform way to describe the workflows available
for nearly all TeX environments, and behaves exactly the same in any
environment.  At this point, @command{llmk} intentionally does not provide any
method for user configuration.  Therefore one can guarantee that for a LaTeX
document with an llmk setup, the process of typesetting the document will be
reproduced in any TeX environment with the program.")
    (license license:expat)))

(define-public texlive-listings-ext
  (package
    (name "texlive-listings-ext")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/listings-ext/"
                   "scripts/listings-ext/"
                   "source/latex/listings-ext/"
                   "tex/latex/listings-ext/")
             (base32
              "044d93vdlw1amkpm8nv50390a5ba7x7d2w1y3mfg5bfvfb5cci6r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "listings-ext.sh")))
    (home-page "https://ctan.org/pkg/listings-ext")
    (synopsis "Automated input of source")
    (description
     "The package provides a means of marking a source, so that samples of it
may be included in a document (by means of the @code{listings} package) in
a stable fashion, regardless of any change to the source.  The markup in the
source text defines tags for blocks of source.  These tags are processed by
a shell script to make a steering file that is used by the package when LaTeX
is being run.")
    (license license:lppl1.2+)))

(define-public texlive-ltxfileinfo
  (package
    (name "texlive-ltxfileinfo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/ltxfileinfo/"
                   "scripts/ltxfileinfo/")
             (base32
              "1nbcplq48cw768pjyg832ymqmjr9rlrcpl6jmkq8mrvvydgy8nai")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ltxfileinfo")))
    (home-page "https://ctan.org/pkg/ltxfileinfo")
    (synopsis "Print version information for a LaTeX file")
    (description
     "@command{ltxfileinfo} displays version information for LaTeX files.
If no path information is given, the file is searched using
@command{kpsewhich}.")
    (license license:gpl3+)))

(define-public texlive-ltximg
  (package
    (name "texlive-ltximg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/ltximg.1"
                   "doc/man/man1/ltximg.man1.pdf"
                   "doc/support/ltximg/" "scripts/ltximg/")
             (base32
              "1pxyh0w7jkdapzfjgp6fmvfq1hs6mz6qbpykd33r4c5ghyks4cwb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ltximg.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ltximg")
    (synopsis "Extract LaTeX environments into separate image files")
    (description
     "@command{ltximg} is a Perl script that automates the process of
extracting and converting environments provided by TikZ, PStricks and other
packages from input file to image formats and standalone files using
Ghostscript and @code{poppler-utils}.  It generates a file with only extracted
environments and another with all extracted environments converted to
@code{\\includegraphics}.")
    (license license:gpl3+)))

(define-public texlive-luajittex
  (package
    (name "texlive-luajittex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/luajithbtex.1"
                   "doc/man/man1/luajithbtex.man1.pdf"
                   "doc/man/man1/luajittex.1"
                   "doc/man/man1/luajittex.man1.pdf")
             (base32
              "1qfbg0r6gsncgymh00yc83kcayd4m7bvryap8f63sm9s9bzfl6yv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "luajithbtex" "luajittex")))
    (propagated-inputs
     (list texlive-cm
           texlive-etex
           texlive-hyphen-complete
           texlive-knuth-lib
           texlive-luatex
           texlive-plain
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/luajittex")
    (synopsis "LuaTeX with JIT compiler, with and without HarfBuzz")
    (description
     "This package provides LuaTeX with just-in-time (JIT) compiler, with and
without HarfBuzz.")
    (license license:gpl2)))

(define-public texlive-match-parens
  (package
    (name "texlive-match-parens")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/match_parens/"
                   "scripts/match_parens/")
             (base32
              "0qqxbh3h1xkggs5p2gnis4z8h3s0mwknszyjzs2fslnq16yyqi27")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "match_parens")))
    (inputs (list ruby))
    (home-page "https://ctan.org/pkg/match_parens")
    (synopsis
     "Find mismatches of parentheses, braces, (angle) brackets, in texts")
    (description
     "Mismatches of parentheses, braces, (angle) brackets, especially in TeX
sources which may be rich in those, may be difficult to trace.  This little
Ruby script helps you by writing your text to standard output, after adding
a left margin to your text, which will normally be almost empty, but will
clearly show any mismatches.")
    (license license:gpl3+)))

(define-public texlive-mflua
  (package
    (name "texlive-mflua")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "metafont/mflua/" "scripts/mflua/")
             (base32
              "0ngbhdh8hgpjfqnrjlnp27x3qziks3yf2zp1qq7r4bjfa5jx9gr6")))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "mflua.lua")
      #:create-formats #~(list "mflua")))
    (propagated-inputs (list texlive-luatex texlive-metafont))
    (home-page "https://ctan.org/pkg/mflua")
    (synopsis "Configuration and base files for MFLua")
    (description
     "MFLua is an extension of Metafont which embeds a Lua interpreter.  It
doesn’t introduce any new primitives, so a Metafont file can be used with
MFLua without any modification to produce exactly the same result.")
    ;; The license is the same as Metafont's, with a couple of files
    ;; released under Public Domain terms.
    (license (list license:knuth license:public-domain))))

(define-public texlive-mkjobtexmf
  (package
    (name "texlive-mkjobtexmf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/mkjobtexmf/"
                   "doc/man/man1/mkjobtexmf.1"
                   "doc/man/man1/mkjobtexmf.man1.pdf"
                   "scripts/mkjobtexmf/"
                   "source/generic/mkjobtexmf/")
             (base32
              "04wzq2260my5894kc8qhl954h6hri77vvg5kx8mf03kdlf3rvww6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "mkjobtexmf.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/mkjobtexmf")
    (synopsis "Generate a texmf tree for a particular job")
    (description
     "The package provides a Perl script, which runs a program and tries to
find the names of file used.  Two methods are available, option
@samp{-recorder} of (Web2C) TeX and the program strace.  Then it generates
a directory with a texmf tree.  It checks the found files and tries sort them
in this texmf tree.  The script may be used for archiving purposes or to speed
up later TeX runs.")
    (license license:artistic2.0)))

(define-public texlive-make4ht
  (package
    (name "texlive-make4ht")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/make4ht/" "scripts/make4ht/")
             (base32
              "0ayqs8i1za14krrgqyncv8ahs70pg5pnfs2m0aqcavfnd79qx2cj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "make4ht")))
    (propagated-inputs (list texlive-tex4ht))
    (home-page "https://ctan.org/pkg/make4ht")
    (synopsis "Build system for TeX4ht")
    (description
     "@code{make4ht} is a simple build system for TeX4ht, a TeX to XML
converter.  It provides a command line tool that drives the conversion
process.  It also provides a library which can be used to create customized
conversion tools.")
    (license license:lppl1.3+)))

(define-public texlive-makecell
  (package
    (name "texlive-makecell")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/makecell/"
                   "source/latex/makecell/"
                   "tex/latex/makecell/")
             (base32
              "1n122230s49jizldn8ps1pfa5dsg8wmh5x8wla4y6rsgjcccqn4s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-format "latex"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'replace-obsolete-package
            ;; "slashbox" is no longer provided in TeX Live.  It is superseded
            ;; by `diagbox', which is backward compatible.
            (lambda _
              (substitute* "source/latex/makecell/makecell.dtx"
                (("\\\\usepackage\\{slashbox\\}")
                 "\\usepackage{diagbox}"))))
          (add-after 'replace-obsolete-package 'load-float
            ;; Loading `float' package prevents the "Unknown float option `H'"
            ;; error.
            (lambda _
              (substitute* "source/latex/makecell/makecell.dtx"
                (("usepackage\\{diagbox\\}.*" line)
                 (string-append line "\\usepackage{float}\n")))))
          (add-after 'load-float 'remove-hsize-reference
            ;; Replace "\hsize" primitive with a dummy value to prevent
            ;; a "missing number treated as zero" error.
            (lambda _
              (substitute* "source/latex/makecell/makecell.dtx"
                (("\\\\ttabbox\\[\\\\hsize\\]") "\\ttabbox[10cm]")))))))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-diagbox
                  texlive-float
                  texlive-hypdoc
                  texlive-multirow
                  texlive-pict2e))))
    (home-page "https://ctan.org/pkg/makecell")
    (synopsis "Tabular column heads and multilined cells")
    (description
     "This package supports common layouts for tabular column heads in whole
documents, based on one-column tabular environment.  In addition, it can
create multi-lined tabular cells.

The package also offers:
@itemize
@item a macro which changes the vertical space around all the cells in a @code{tabular}
environment,
@item macros for multirow cells, which use the facilities
of the @code{multirow} package,
@item macros to number rows in tables, or to skip cells;
@item diagonally divided cells;
@item horizontal lines in @code{tabular} environments with defined thickness.
@end itemize")
    (license license:lppl)))


(define-public texlive-optexcount
  (package
    (name "texlive-optexcount")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/optexcount/"
                   "scripts/optexcount/"
                   "source/support/optexcount/")
             (base32
              "0rjyhyirkx11v04c8b0kjjz8745kdnj190vzkyyzafwnzfcbd754")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "optexcount")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/optexcount")
    (synopsis "Python script for counting words in OpTeX documents")
    (description
     "OpTeXcount is a basic Python utility that analyzes OpTeX source code.
It is inspired by already existing TeXcount for LaTeX. The functionality is
really lightweight and basic.  It counts words and other elements of OpTeX
document and sorts them out into individual categories.  Users can print the
source code with highlighted words using several colors, so they see what is
considered as word, header etc.")
    (license license:expat)))

(define-public texlive-patgen
  (package
    (name "texlive-patgen")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/patgen.1"
                   "doc/man/man1/patgen.man1.pdf")
             (base32
              "03y05mv0n04hyj0lcq54grx7w5wv95h61j6xlx2jc9v0ib9akq4y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/patgen")
    (synopsis "Generate hyphenation patterns")
    (description
     "Patgen takes a list of hyphenated words and generates a set of patterns
that can be used by the TeX 82 hyphenation algorithm.")
    (license license:public-domain)))

(define-public texlive-pdfbook2
  (package
    (name "texlive-pdfbook2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pdfbook2.1"
                   "doc/man/man1/pdfbook2.man1.pdf"
                   "doc/support/pdfbook2/" "scripts/pdfbook2/")
             (base32
              "1cw0xw2dmcgmkms8d94pchbbg17lfvvbnzbagaqpy2fzxi2kb4w8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pdfbook2")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/pdfbook2")
    (synopsis "Create booklets from PDF files")
    (description
     "This Python program creates print-ready PDF files from some input PDF
files for booklet printing.  The resulting files need to be printed in
landscape/long edge double sided printing.  The default paper format depends
on the locale and is chosen by @code{pdfjam}.  It can be chosen using the
@code{--paper} option.  Before the PDF is composed, the input file is cropped
to the relevant area in order to discard unnecessary white spaces.  In this
process, all pages are cropped to the same dimensions.  Extra margins can be
defined at the edges of the booklet and in the middle where the binding
occurs.")
    (license license:gpl3)))

(define-public texlive-pdfcrop
  (package
    (name "texlive-pdfcrop")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/pdfcrop/" "scripts/pdfcrop/")
             (base32
              "0wb67hsfasxvl1b484hyxvghhm9nkxwgs6m8ygzshr0m874hsl01")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pdfcrop.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/pdfcrop")
    (synopsis "Crop PDF graphics")
    (description
     "This package provides a Perl script that can either trim pages of any
whitespace border, or trim them of a fixed border.")
    (license license:lppl1.3c)))

(define-public texlive-pdfjam
  (package
    (name "texlive-pdfjam")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pdfjam.1"
                   "doc/man/man1/pdfjam.man1.pdf"
                   "doc/support/pdfjam/" "scripts/pdfjam/")
             (base32
              "1wkxvbnri1lxyd4fbvsv0zzw6c8y3v33hzlv6y86jwil6r3p0338")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pdfjam")))
    (home-page "https://ctan.org/pkg/pdfjam")
    (synopsis "Shell scripts interfacing to @code{pdfpages}")
    (description
     "The package makes available the @command{pdfjam} shell script that
provides a simple interface to much of the functionality of the excellent
@code{pdfpages} package for LaTeX. The @command{pdfjam} script takes one or
more PDF files (and/or JPG/PNG graphics files) as input, and produces one or
more PDF files as output.  It is useful for joining files together, selecting
pages, reducing several source pages onto one output page, etc.")
    (license license:gpl2+)))

(define-public texlive-pdflatexpicscale
  (package
    (name "texlive-pdflatexpicscale")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/pdflatexpicscale/"
                   "scripts/pdflatexpicscale/")
             (base32
              "089n7r17c9kj1hhgm0hkfjhrqp2bhwjrj1czb3qllz7rm2x230h1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pdflatexpicscale.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/pdflatexpicscale")
    (synopsis
     "Support software for downscaling graphics to be included by pdfLaTeX")
    (description
     "The package provides a script to scale pictures down to a target
resolution before creating a PDF document with pdfLaTeX.")
    (license license:lppl)))

(define-public texlive-pdftex-quiet
  (package
    (name "texlive-pdftex-quiet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/pdftex-quiet/"
                   "scripts/pdftex-quiet/")
             (base32
              "0gpxwiiiq05m24ahx9mnhn7i6rldqkmx041p1bnnddswajs9wgm3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pdftex-quiet")))
    (home-page "https://ctan.org/pkg/pdftex-quiet")
    (synopsis "Bash wrapper for pdfTeX limiting its output to relevant errors")
    (description
     "This package provides a Bash script aiming at reducing pdfTeX's output
to relevant errors, which are displayed in a red bold font.")
    (license license:gpl3)))

(define-public texlive-pdftosrc
  (package
    (name "texlive-pdftosrc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pdftosrc.1"
                   "doc/man/man1/pdftosrc.man1.pdf")
             (base32
              "0mnz5id6fywhlay6r38nvii0a2ks5gdb15i7s7wkq1ay9k5k6fq3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdftosrc")
    (synopsis "Extract source file or stream from PDF file")
    (description
     "@command{pdftosrc} extracts an embedded source file, or extracts and
uncompresses a PDF stream given by object number.")
    (license license:gpl2+)))

(define-public texlive-pdfxup
  (package
    (name "texlive-pdfxup")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pdfxup.1"
                   "doc/man/man1/pdfxup.man1.pdf"
                   "doc/support/pdfxup/" "scripts/pdfxup/"
                   "tex/latex/pdfxup/")
             (base32
              "1zk4nw1acqz77cy17l8mzi06f0aag16ikp8ymjsl110iw8p8my98")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pdfxup")))
    (home-page "https://ctan.org/pkg/pdfxup")
    (synopsis "Create N-up PDF pages with minimal margins")
    (description
     "@command{pdfxup} is a shell script that creates a PDF document where
each page is obtained by combining several pages of a PDF file given as
output.")
    (license license:lppl1.3+)))

(define-public texlive-pfarrei
  (package
    (name "texlive-pfarrei")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pfarrei/" "scripts/pfarrei/"
                   "source/latex/pfarrei/" "tex/latex/pfarrei/")
             (base32
              "1clfaxfk7js8yl6cy6dwihmgi51n3rmk0zfmxacmpsbhawj1wrw4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "a5toa4.tlu" "pfarrei.tlu")))
    (home-page "https://ctan.org/pkg/pfarrei")
    (synopsis "LaTeX support of pastors' and priests' work")
    (description
     "In @emph{Die TeXnische Komodie} (issue 1/2013) Christian Justen
described his use of LaTeX in his work as priest (similar requirements may be
encountered in the work of pastors and other ministers of religion).  One
point was to arrange A5 pages onto A4 landscape paper, either side-by-side or
as a booklet.  Justen made two Bash scripts for this job; the package provides
one Texlua script for both requirements.")
    (license license:lppl1.3+)))

(define-public texlive-pkfix
  (package
    (name "texlive-pkfix")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/pkfix/" "scripts/pkfix/")
             (base32
              "173l1qaydv29va9cgip9p3i3vf27x6ndsqjm4nvdpliblai6fkwf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pkfix.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/pkfix")
    (synopsis "Replace PK fonts in PostScript with Type 1 fonts")
    (description
     "The Perl script @command{pkfix} looks for DVIPSBitmapFont comments in
PostScript files, generated by not too old dvips, and replaces them by type
1 versions of the fonts, if possible.")
    (license license:lppl1.3+)))

(define-public texlive-pkfix-helper
  (package
    (name "texlive-pkfix-helper")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pkfix-helper.1"
                   "doc/man/man1/pkfix-helper.man1.pdf"
                   "doc/support/pkfix-helper/"
                   "scripts/pkfix-helper/")
             (base32
              "0vq52g65an1v9g0kdhsy0xpsf1hj69gl4cr5aq1m816i8ahhzxxy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pkfix-helper")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/pkfix-helper")
    (synopsis "Make PostScript files accessible to pkfix")
    (description
     "Pkfix is a useful utility for replacing resolution-dependent bitmapped
fonts in a dvips-produced PostScript file with the corresponding
resolution-independent vector fonts.  Unfortunately, @command{pkfix} needs to
parse certain PostScript comments that appear only in files produced by dvips
versions later than 5.58 (circa 1996); it fails to work on PostScript files
produced by older versions of dvips.  Pkfix-helper is a program that attempts
to insert newer-dvips comments into an older-dvips PostScript file, thereby
making the file suitable for processing by @command{pkfix}.
@command{pkfix-helper} can sometimes process documents fully autonomously but
does require the user to verify and, if needed, correct its decisions.")
    (license license:lppl1.3c)))

(define-public texlive-purifyeps
  (package
    (name "texlive-purifyeps")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/purifyeps.1"
                   "doc/man/man1/purifyeps.man1.pdf"
                   "doc/support/purifyeps/"
                   "scripts/purifyeps/")
             (base32
              "0523kgilwd142a43fw1r406rn8ck67hp78aqhsws931glf7j9y8p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "purifyeps")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/purifyeps")
    (synopsis "Make EPS work with both LaTeX/dvips and pdfLaTeX")
    (description
     "While pdfLaTeX has a number of nice features, its primary shortcoming
relative to standard LaTeX+dvips is that it is unable to read ordinary
Encapsulated PostScript (EPS) files, the most common graphics format in the
LaTeX world.  Purifyeps converts EPS files into a purified form that can be
read by both LaTeX+dvips and pdfLaTeX.  The trick is that the standard LaTeX2e
graphics packages can parse Metapost-produced EPS directly.  Hence,
@command{purifyeps} need only convert an arbitrary EPS file into the same
stylized format that Metapost outputs.")
    (license license:lppl)))

(define-public texlive-seetexk
  (package
    (name "texlive-seetexk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvibook.1"
                   "doc/man/man1/dvibook.man1.pdf"
                   "doc/man/man1/dviconcat.1"
                   "doc/man/man1/dviconcat.man1.pdf"
                   "doc/man/man1/dviselect.1"
                   "doc/man/man1/dviselect.man1.pdf"
                   "doc/man/man1/dvitodvi.1"
                   "doc/man/man1/dvitodvi.man1.pdf")
             (base32
              "1bhv5xgv8jpam5apdybd0cggnvcizk2r6zs7lim1hmhzafpqqlcx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dvibook")
    (synopsis "Utilities for manipulating DVI files")
    (description
     "The package provides a collection of utilities for manipulating DVI
files:

@itemize

@item @command{dvibook}, which will rearrange the pages of a DVI file into
signatures as used when printing a book;

@item @command{dviconcat}, for concatenating pages of DVI file(s);

@item @command{dviselect}, which will select pages from one DVI file to create
a new DVI file;

@item @command{dvitodvi}, which will rearrange the pages of a DVI file to
create a new file;

@item @command{libtex}, a library for manipulating the files, from the old
SeeTeX project.

@end itemize")
    (license license:expat)))

(define-public texlive-spix
  (package
    (name "texlive-spix")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/spix.1"
                   "doc/man/man1/spix.man1.pdf"
                   "doc/support/spix/" "scripts/spix/")
             (base32
              "0k1vkkrn14svqarbqpfccw3qqiz1slngngrwgs4fj5y0ilrym0bf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "spix.py")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/spix")
    (synopsis "Yet another TeX compilation tool")
    (description
     "SpiX offers a way to store information about the compilation process for
a TeX file inside the TeX file itself.  Just write the commands as comments in
the TeX files, and SpiX will extract and run those commands.  Everything is
stored in the TeX file (so that you are not missing some piece of information
that is located somewhere else), in a human-readable format (no need to know
SpiX to understand it).")
    (license license:gpl3+)))

(define-public texlive-srcredact
  (package
    (name "texlive-srcredact")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/srcredact.1"
                   "doc/man/man1/srcredact.man1.pdf"
                   "doc/support/srcredact/"
                   "scripts/srcredact/")
             (base32
              "1a0mmr3ggxxv69zfwlrlagbczy83ngy2kxzw437n0iksz6bgrvpx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "srcredact.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/srcredact")
    (synopsis "Tool for redacting sources")
    (description
     "This package provides a tool to keep a master source, consisting of
different chunks intended for different audiences.  The tool allows to extract
the versions intended for different audiences and to incorporate the changes
made in any of these versions into the master document.")
    (license license:gpl2)))

(define-public texlive-sty2dtx
  (package
    (name "texlive-sty2dtx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/sty2dtx.1"
                   "doc/man/man1/sty2dtx.man1.pdf"
                   "doc/support/sty2dtx/" "scripts/sty2dtx/")
             (base32
              "06930x3c52f3x9rqcmsif7y6rw11g1myya3wp77p20vfi7whxhsv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "sty2dtx.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/sty2dtx")
    (synopsis "Create a @file{.dtx} file from a @file{.sty} file")
    (description
     "The package provides a Perl script that converts a @file{.sty}
file (LaTeX package) to @file{.dtx} format (documented LaTeX source), by
surrounding macro definitions with macro and macrocode environments.  The
macro name is automatically inserted as an argument to the macro environment.
Code lines outside macro definitions are wrapped only in macrocode
environments.  Empty lines are removed.  The script should not be thought to
be fool proof and 100% accurate but rather as a good start to the business of
making a @file{.dtx} file from an undocumented style file.  Full @file{.dtx}
files are generated.  A template based on the skeleton file from @code{dtxtut}
is used.  User level macros are added automatically to the Usage section of
the @file{.dtx} file.  A corresponding @file{.ins} file can be generated as
well.")
    (license license:gpl3)))

(define-public texlive-tex-ini-files
  (package
    (name "texlive-tex-ini-files")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tex-ini-files/" "tex/generic/tex-ini-files/")
             (base32
              "0a18k27fz1vjha5blwskxpnd715k08hmfm7d1yc2f7adaf0rwl3m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://www.ctan.org/pkg/tex-ini-files")
    (synopsis "Files for creating TeX formats")
    (description
     "This bundle provides a collection of model @file{.ini} files for
creating TeX formats.  These files are commonly used to introduced
distribution-dependent variations in formats.  They are also used to allow
existing format source files to be used with newer engines, for example to
adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
    (license license:public-domain)))

(define-deprecated-package texlive-generic-tex-ini-files texlive-tex-ini-files)

(define-public texlive-metafont
  (package
    (name "texlive-metafont")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/inimf.1"
                   "doc/man/man1/inimf.man1.pdf"
                   "doc/man/man1/mf-nowin.1"
                   "doc/man/man1/mf-nowin.man1.pdf"
                   "doc/man/man1/mf.1"
                   "doc/man/man1/mf.man1.pdf"
                   "metafont/base/"
                   "metafont/config/"
                   "metafont/misc/")
             (base32
              "18pp6vcg1cv38yi39q9rvkv6w11mnxxd79fvf1yy01743jn7ngjh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'build 'generate-mf.base
            ;; Even though the file "mf.base" does not appear in tlpdb, it
            ;; must be generated and provided in metafont package.
            (lambda _
              (let* ((cwd (getcwd))
                     (mf (string-append cwd "/metafont"))
                     (modes #$(this-package-native-input "texlive-modes")))
                (setenv "MFINPUTS"
                        (string-append
                         modes "/share/texmf-dist/fonts/source/public/modes:"
                         mf "/base:"
                         mf "/misc:"
                         mf "/roex:"
                         mf "/feynmf:"
                         mf "/mfpic:"
                         mf "/config")))
              ;; "build" directory was not created during `build' phases since
              ;; there is no ".ins" nor ".dtx" file to process.
              (mkdir-p "build")
              (with-directory-excursion "build"
                (invoke "inimf" "mf.mf")
                (install-file "mf.base"
                              (string-append #$output
                                             "/share/texmf-dist/web2c"))))))))
    (native-inputs
     (list texlive-bin texlive-modes))
    (home-page "https://ctan.org/pkg/metafont")
    (synopsis "Metafont base files")
    (description "This package provides the Metafont base files needed to
build fonts using the Metafont system.")
    (license license:knuth)))

(define-deprecated-package texlive-metafont-base texlive-metafont)

(define-public texlive-metatype1
  (package
    (name "texlive-metatype1")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "source/metapost/metatype1/")
             (base32
              "1nhbsn33w6zbzbvi3a32ng6ib5dbh0vll9g2c5ssiv1ysxqrg6yq")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metatype1")
    (synopsis "Generate Type 1 fonts from MetaPost")
    (description
     "The system employs scripts, common utility programs, and a set of
MetaPost macros to provide a means of expressing the details outline fonts
directly in the MetaPost language.  The system was employed to generate the
Latin Modern fonts, and the distribution includes an example development of
Knuth's logo fonts.")
    (license license:public-domain)))

(define-public texlive-mf2pt1
  (package
    (name "texlive-mf2pt1")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/mf2pt1.info" "doc/support/mf2pt1/"
                   "metapost/mf2pt1/" "scripts/mf2pt1/")
             (base32
              "17dq4csl10j89rrxgyqjp3fjqkd9q6djgz9yi33y72w5ymjgiaik")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "mf2pt1.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/mf2pt1")
    (synopsis "Convert stylized Metafont to PostScript Type 1")
    (description
     "@command{mf2pt1} is a Perl script that facilitates producing PostScript
Type 1 fonts from a Metafont source file.  It is not, as the name may imply,
an automatic converter of arbitrary Metafont fonts to Type 1 format.
@command{mf2pt1} imposes a number of restrictions on the Metafont input.  If
these restrictions are met, it will produce valid Type 1 output with more
accurate control points than can be reverse-engineered by TeXtrace,
@command{mftrace}, and other programs which convert bitmaps to outline
fonts.")
    (license license:lppl1.3c)))

(define-public texlive-mfirstuc
  (package
    (name "texlive-mfirstuc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mfirstuc/"
                   "scripts/mfirstuc/"
                   "source/latex/mfirstuc/"
                   "tex/latex/mfirstuc/")
             (base32
              "1fvdnfybfi7nych97i117s6wqf0w8drgzpf3qzfns9qxjxm0bv3l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mfirstuc")
    (synopsis "Uppercase the first letter of a word")
    (description
     "The package provides commands @code{\\makefirstuc} that uppercases the
first letter in its argument (with a check for a semantic markup command at
the start of the argument), and @code{\\xmakefirstuc} which expands the
argument before uppercasing.  It also provides
@code{\\capitalisewords@{phrase@}} which applies @code{\\makefirstuc} to each
word in the phrase, where the words are separated by regular
spaces.  (Exceptions can be made for words that shouldn't be converted.)")
    (license license:lppl1.3+)))

(define-public texlive-mfnfss
  (package
    (name "texlive-mfnfss")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mfnfss/" "source/latex/mfnfss/"
                   "tex/latex/mfnfss/")
             (base32
              "1775vg12sk38givqq2zjapx4nxlyl95rf596r2inf8mv5phsi704")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mfnfss")
    (synopsis "Packages to typeset old german and Pandora fonts in LaTeX")
    (description
     "This bundle contains two packages: @code{oldgerm}, a package to typeset
with old german fonts designed by Yannis Haralambous, and @code{pandora},
a package to typeset with Pandora fonts designed by Neena Billawala.  Note
that support for the Pandora fonts is also available via the
@code{pandora-latex} package.")
    (license license:lppl)))

(define-public texlive-modes
  (package
    (name "texlive-modes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/modes/"
                   "fonts/source/public/modes/")
             (base32
              "1vz3ygpixswnk7hr3qfn3nffw460cp5wjq09q5ac83ddw3nya1ca")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/modes")
    (synopsis "Collection of Metafont @code{mode_def}'s")
    (description
     "The modes file collects all known Metafont modes for printing or display
devices, of whatever printing technology.  Special provision is made for
write-white printers, and a landscape mode is available, for making suitable
fonts for printers with pixels whose aspect is non-square.  The file also
provides definitions that make @code{\\specials} identifying the mode in
Metafont's GF output, and put coding information and other Xerox-world
information in the TFM file.")
    (license license:public-domain)))

(define-public texlive-mptopdf
  (package
    (name "texlive-mptopdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/scripts/mkii/mptopdf.man"
                   "doc/man/man1/mptopdf.1"
                   "doc/man/man1/mptopdf.man1.pdf"
                   "scripts/context/perl/mptopdf.pl"
                   "tex/context/base/mkii/"
                   "tex/generic/context/mptopdf/")
             (base32
              "19kpqbkmz8al9wxn83fmg89fyv2pl2iqgnh256wi6pz4q3p77f0d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "mptopdf.pl")
      #:create-formats #~(list "mptopdf")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-perl-header
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((perl (search-input-file inputs "/bin/perl")))
                (substitute* "scripts/context/perl/mptopdf.pl"
                  (("exec perl") (string-append "exec " perl)))))))))
    (inputs (list perl))
    (propagated-inputs (list texlive-plain))
    (home-page "https://ctan.org/pkg/mptopdf")
    (synopsis "mpost to PDF, native MetaPost graphics inclusion")
    (description
     "The @code{mptopdf} script does standalone conversion from mpost to PDF,
using the @file{supp-*} and @file{syst-*} files.  They also allow native
MetaPost graphics inclusion in LaTeX (via pdftex.def) and ConTeXt.  They can
be used independently of the rest of ConTeXt.")
    ;; Use the same licensing as ConTeXt.
    (license (list license:lppl1.3c+
                   license:gpl2+
                   license:cc-by-sa4.0))))

(define-public texlive-fontinst
  (package
    (name "texlive-fontinst")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fontinst/"
                   "doc/man/man1/fontinst.1"
                   "doc/man/man1/fontinst.man1.pdf"
                   "scripts/texlive-extra/fontinst.sh"
                   "source/fontinst/base/"
                   "tex/fontinst/base/"
                   "tex/fontinst/latinetx/"
                   "tex/fontinst/latinmtx/"
                   "tex/fontinst/mathetx/"
                   "tex/fontinst/mathmtx/"
                   "tex/fontinst/misc/"
                   "tex/fontinst/smbletx/"
                   "tex/fontinst/smblmtx/"
                   "tex/latex/fontinst/")
             (base32
              "1qqggn44w07a0aslsf3jdygwv1gfs90qahkan0gnibxsz7i44kqm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "fontinst.sh")))
    (home-page "https://ctan.org/pkg/fontinst")
    (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
    (description
     "This package provides TeX macros for converting Adobe Font Metric files
to TeX metric and virtual font format.  Fontinst helps mainly with the number
crunching and shovelling parts of font installation.  This means in practice
that it creates a number of files which give the TeX metrics (and related
information) for a font family that TeX needs to do any typesetting in these
fonts.")
    (license license:lppl1.1+)))

(define-deprecated-package texlive-tex-fontinst-base texlive-fontinst)

(define-public texlive-fontname
  (package
    (name "texlive-fontname")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fontname/" "doc/info/fontname.info"
                   "fonts/map/fontname/")
             (base32
              "014kiwbqz77yn8w58cb6fzqj0vlfmgyq09mxdj15ipjfgxjyvcbj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fontname")
    (synopsis "Scheme for naming fonts in TeX")
    (description
     "This is Fontname, a naming scheme for (the base part of) external TeX
font filenames.  This makes at most eight-character names from (almost)
arbitrarily complex font names, thus helping portability of TeX documents.")
    (license license:gpl3+)))

(define-public texlive-forloop
  (package
    (name "texlive-forloop")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/forloop/" "source/latex/forloop/"
                   "tex/latex/forloop/")
             (base32
              "14sx6zgilmbs5afp1k5gccix6ijhj0m8jg91blxn66995i6md4f5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/forloop")
    (synopsis "Iteration in LaTeX")
    (description
     "The package provides a command @code{\\forloop} for doing iteration in
LaTeX macro programming.")
    ;; No version for the LGPL is specified.  Assuming the broader one.
    (license license:lgpl2.0+)))

(define-public texlive-cbfonts          ;71 MiB of greek fonts
  (package
    (name "texlive-cbfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cbfonts/"
                   "fonts/enc/dvips/cbfonts/"
                   "fonts/map/dvips/cbfonts/"
                   "fonts/source/public/cbfonts/"
                   "fonts/tfm/public/cbfonts/"
                   "fonts/type1/public/cbfonts/")
             (base32
              "0l0dpgvngah227snzk6j5hf3kxs5cz5jvlpkv8pbapw6jx084np6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               ;; FIXME: Font metrics cannot be generated due to "bad pos"
               ;; errors.
               (delete 'generate-font-metrics))))
    (native-inputs (list texlive-cm texlive-metafont))
    (propagated-inputs (list texlive-cbfonts-fd))
    (home-page "https://ctan.org/pkg/cbgreek-complete")
    (synopsis "Complete set of Greek fonts")
    (description
     "This bundle presents the whole of Beccari's original Greek font set,
which use the @i{Lispiakos} font shape derived from the shape of the fonts
used in printers' shops in Lispia.  The fonts are available both as Metafont
source and in Adobe Type 1 format, and at the same wide set of design sizes as
are such font sets as the EC fonts.")
    (license license:lppl1.3c+)))

(define-public texlive-cbfonts-fd
  (package
    (name "texlive-cbfonts-fd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cbfonts-fd/"
                   "source/fonts/cbfonts-fd/"
                   "tex/latex/cbfonts-fd/")
             (base32
              "1r2kmnccvrq181ac7gyff9y3wn7dydx50jy8f9n6qhnb824pdn78")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cbfonts-fd")
    (synopsis "LaTeX font description files for the CB Greek fonts")
    (description
     "The package provides font description files for all the many shapes
available from the @code{cbfonts} collection.  The files provide the means
whereby the @acronym{NFSS, New Font Selection Scheme} knows which fonts
a LaTeX user is requesting.

Tip: installing @code{texlive-cbfonts} will automatically propagate this one.")
    (license license:lppl1.3c+)))

(define-public texlive-ccicons
  (package
    (name "texlive-ccicons")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/ccicons/"
                   "doc/latex/ccicons/"
                   "fonts/enc/dvips/ccicons/"
                   "fonts/map/dvips/ccicons/"
                   "fonts/opentype/public/ccicons/"
                   "fonts/tfm/public/ccicons/"
                   "fonts/type1/public/ccicons/"
                   "source/fonts/ccicons/"
                   "source/latex/ccicons/"
                   "tex/latex/ccicons/")
             (base32
              "0lyxbjpkxny6hl7pmnpka0gmgx7qv66pibvwcfs9dvwhdcvwjr4x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ccicons")
    (synopsis "LaTeX support for Creative Commons icons")
    (description
     "The package provides the means to typeset Creative Commons icons, in
documents licensed under CC licences.  A font (in Adobe Type 1 format) and
LaTeX support macros are provided.")
    (license (list license:lppl1.3c license:silofl1.1))))

(define-public texlive-cite
  (package
    (name "texlive-cite")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cite/" "tex/latex/cite/")
             (base32
              "0b1amznayxj80dmqbzcysmj7q8aksbyz98k6djsqi0mhwp1cd0fd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cite")
    (synopsis "Improved citation handling in LaTeX")
    (description
     "The package supports compressed, sorted lists of numerical citations,
and also deals with various punctuation and other issues of representation,
including comprehensive management of break points.  The package is compatible
with both @code{hyperref} and @code{backref}.  The package is (unsurprisingly)
part of the cite bundle of the author's citation-related packages.")
    (license (license:fsf-free "/share/texmf-dist/doc/latex/cite/README"))))

(define-public texlive-cm
  (package
    (name "texlive-cm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cm/" "fonts/map/dvips/cm/"
                   "fonts/pk/ljfour/public/cm/dpi600/"
                   "fonts/source/public/cm/"
                   "fonts/tfm/public/cm/")
             (base32
              "10adgjc3lkj2z50jp1f9n83bdrx8bqxd76rl605d0d5pb435k97m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'generate-font-metrics 'generate-pk
            (lambda _
              (let* ((cwd (getcwd))
                     (pkdir
                      (string-append cwd "/fonts/pk/ljfour/public/cm/dpi600"))
                     (build-dir (string-append cwd "/build")))
                (with-directory-excursion "fonts/source/public/cm/"
                  (mkdir-p pkdir)
                  (for-each
                   (lambda (font)
                     (let ((font-name (basename font ".mf")))
                       (invoke "gftopk"
                               (string-append build-dir "/" font-name ".600gf")
                               (string-append pkdir "/" font-name ".pk"))))
                   (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$")))))))))
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/cm")
    (synopsis "Computer Modern fonts for TeX")
    (description
     "This package provides the Computer Modern fonts by Donald Knuth.  The
Computer Modern font family is a large collection of text, display, and
mathematical fonts in a range of styles, based on Monotype Modern 8A.")
    (license license:knuth)))

(define-deprecated-package texlive-fonts-cm texlive-cm)

(define-public texlive-cmbright
  (package
    (name "texlive-cmbright")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cmbright/"
                   "doc/latex/cmbright/"
                   "fonts/source/public/cmbright/"
                   "fonts/tfm/public/cmbright/"
                   "source/latex/cmbright/"
                   "tex/latex/cmbright/")
             (base32
              "0sj6g877p6ak045x7737g3lg4kab8hgc2s2g6i23dw9d35csqf8d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-amsfonts texlive-ec texlive-metafont))
    (home-page "https://ctan.org/pkg/cmbright")
    (synopsis "Computer Modern Bright fonts")
    (description
     "This package provides a family of sans serif fonts for TeX and LaTeX,
based on Donald Knuth's CM fonts.  It comprises OT1, T1 and TS1 encoded text
fonts of various shapes as well as all the fonts necessary for mathematical
typesetting, including AMS symbols.  This collection provides all the
necessary files for using the fonts with LaTeX.")
    (license license:lppl)))

(define-public texlive-cmcyr
  (package
    (name "texlive-cmcyr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cmcyr/"
                   "fonts/map/dvips/cmcyr/"
                   "fonts/source/public/cmcyr/"
                   "fonts/tfm/public/cmcyr/"
                   "fonts/type1/public/cmcyr/"
                   "fonts/vf/public/cmcyr/")
             (base32
              "0mmlb3ky6cakwg8nsgkdkpc52ni2jf2w7nz5bfiyxhvy6mx1c64b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/cmcyr")
    (synopsis "Computer Modern fonts with Cyrillic extensions")
    (description
     "These are the Computer Modern fonts extended with Russian letters, in
Metafont sources and ATM Compatible Type 1 format.  The fonts are provided in
KOI-7, but virtual fonts are available to recode them to three other Russian
8-bit encodings.")
    (license license:public-domain)))

(define-public texlive-cmextra
  (package
    (name "texlive-cmextra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/source/public/cmextra/"
                   "fonts/tfm/public/cmextra/")
             (base32
              "00my52lh3cn8bn211fpn7373b7khaylx4fgkrd2m72xgaymil308")))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/knuth-local")
    (synopsis "Knuth's local information")
    (description
     "This package provides a collection of experimental programs and
developments based on, or complementary to, the matter in his distribution
directories.")
    (license license:public-domain)))

(define-public texlive-cm-lgc
  (package
    (name "texlive-cm-lgc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cm-lgc/"
                   "fonts/afm/public/cm-lgc/"
                   "fonts/enc/dvips/cm-lgc/"
                   "fonts/map/dvips/cm-lgc/"
                   "fonts/ofm/public/cm-lgc/"
                   "fonts/ovf/public/cm-lgc/"
                   "fonts/tfm/public/cm-lgc/"
                   "fonts/type1/public/cm-lgc/"
                   "fonts/vf/public/cm-lgc/"
                   "tex/latex/cm-lgc/")
             (base32
              "1nj3gp0kpzlqkm22lj2ym9c95xw323xc5z91gsyv8xs716868gp2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cm-lgc")
    (synopsis "Type 1 CM-based fonts for Latin, Greek and Cyrillic")
    (description
     "The fonts are converted from METAFONT sources of the Computer Modern
font families, using @command{textrace}.  Supported encodings are: T1 (Latin),
T2A (Cyrillic), LGR (Greek) and TS1.  The package also includes Unicode
virtual fonts for use with Omega.  The font set is not a replacement for any
of the other Computer Modern-based font sets (for example, cm-super for Latin
and Cyrillic, or cbgreek for Greek), since it is available at a single size
only; it offers a compact set for general working.  The fonts themselves are
encoded to external standards, and virtual fonts are provided for use with
TeX.")
    (license license:gpl2+)))

(define-public texlive-cm-super
  (package
    (name "texlive-cm-super")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cm-super/"
                   "dvips/cm-super/"
                   "fonts/afm/public/cm-super/"
                   "fonts/enc/dvips/cm-super/"
                   "fonts/map/dvips/cm-super/"
                   "fonts/map/vtex/cm-super/"
                   "fonts/type1/public/cm-super/"
                   "tex/latex/cm-super/")
             (base32
              "1k3afl0x0bqbr5mnawbnp7rr2126dwn0vwnxzibm9ggvzqilnkm6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cm-super")
    (synopsis "Computer Modern Super family of fonts")
    (description
     "The CM-Super family provides Adobe Type 1 fonts that replace the
T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
languages except Greek), and bringing many ameliorations in typesetting
quality.  The fonts exhibit the same metrics as the METAFONT-encoded
originals.")
    ;; With font exception
    (license license:gpl2+)))

(define-deprecated-package texlive-fonts-cm-super texlive-cm-super)

(define-public texlive-cnbwp
  (package
    (name "texlive-cnbwp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/cnbwp/" "doc/latex/cnbwp/"
                   "makeindex/cnbwp/" "tex/latex/cnbwp/")
             (base32
              "13i5nvdnvq5f7rx0w63q8j1km7bfq1rs7kr49hsabz5v0z0v90xc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cnbwp")
    (synopsis "Typeset working papers of the Czech National Bank")
    (description
     "The package supports proper formatting of Working Papers of the Czech
National Bank (WP CNB).  The package was developed for CNB but it is also
intended for authors from outside CNB.")
    (license license:lppl)))

(define-public texlive-cns
  (package
    (name "texlive-cns")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cns/cns40-1/"
                   "doc/fonts/cns/cns40-2/"
                   "doc/fonts/cns/cns40-3/"
                   "doc/fonts/cns/cns40-4/"
                   "doc/fonts/cns/cns40-5/"
                   "doc/fonts/cns/cns40-6/"
                   "doc/fonts/cns/cns40-7/"
                   "doc/fonts/cns/cns40-b5/"
                   "fonts/misc/cns/"
                   "fonts/tfm/cns/c0so12/"
                   "fonts/tfm/cns/c1so12/"
                   "fonts/tfm/cns/c2so12/"
                   "fonts/tfm/cns/c3so12/"
                   "fonts/tfm/cns/c4so12/"
                   "fonts/tfm/cns/c5so12/"
                   "fonts/tfm/cns/c6so12/"
                   "fonts/tfm/cns/c7so12/")
             (base32
              "00v6sf0a0fm09z54d3zhvdwc2gi712knbxnx3mlj2ri5x2jisyqa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cjk-fonts")
    (synopsis "Chinese/Japanese/Korean bitmap fonts")
    (description
     "This bundle provides fonts to go with the @code{cjk} macro package for Chinese,
Japanese and Korean with LaTeX2e.  The package aims to supersede HLaTeX fonts
bundle.")
    (license license:public-domain)))

(define-public texlive-courier
  (package
    (name "texlive-courier")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/courier/"
                   "fonts/afm/adobe/courier/"
                   "fonts/afm/urw/courier/"
                   "fonts/map/dvips/courier/"
                   "fonts/tfm/adobe/courier/"
                   "fonts/tfm/urw35vf/courier/"
                   "fonts/type1/adobe/courier/"
                   "fonts/type1/urw/courier/"
                   "fonts/vf/adobe/courier/"
                   "fonts/vf/urw35vf/courier/"
                   "tex/latex/courier/")
             (base32
              "08g6lm12b0k6333pxcaqdf67v87fz5mrqp3jgal8qhrls5ym8q6r")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Courier font")
    (description
     "This package provides a drop-in replacement for the Courier font from
Adobe's basic set.")
    ;; No license version specified.
    (license license:gpl3+)))

(define-public texlive-csbulletin
  (package
    (name "texlive-csbulletin")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/csbulletin/"
                   "tex/latex/csbulletin/")
             (base32
              "15zjwwjdxs0avb5y4g29nyvhafrv2s8pgqihhi2kb72y8wzj9cdz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/csbulletin")
    (synopsis
     "LaTeX class for articles submitted to the CSTUG Bulletin (@emph{Zpravodaj})")
    (description
     "The package provides the class for articles for the CSTUG
Bulletin (@emph{Zpravodaj Ceskoslovenskeho sdruzeni uzivatelu TeXu}).  You can
see the structure of a document by looking at the source file of the manual.")
    (license license:lppl1.3c)))

(define-public texlive-cslatex
  (package
    (name "texlive-cslatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/cslatex.1"
                   "doc/man/man1/cslatex.man1.pdf"
                   "doc/man/man1/pdfcslatex.1"
                   "doc/man/man1/pdfcslatex.man1.pdf"
                   "source/cslatex/base/"
                   "source/cslatex/cspsfonts/"
                   "tex/cslatex/base/"
                   "tex/cslatex/cspsfonts/")
             (base32
              "1px1b4zicvdzs5br22c8ksna7imb9m7bv9c3q55a705cqfawd97h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:create-formats #~(list "cslatex" "pdfcslatex")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-build
            ;; This phase is necessary because the build phase is reluctant to
            ;; generate "hyphen.cfg" since there is another one among the
            ;; inputs already.
            (lambda _
              (substitute* "source/cslatex/base/cslatex.ins"
                (("\\keepsilent\n" all)
                 (string-append all "\\askforoverwritefalse\n"))))))))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-cm
           texlive-csplain
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-base
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/cslatex")
    (synopsis "LaTeX support for Czech/Slovak typesetting")
    (description
     "This package provides LaTeX support for Czech and Slovak typesetting.")
    (license license:gpl3+)))

(define-public texlive-cstex
  (package
    (name "texlive-cstex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/cstex/")
             (base32
              "1vsbq9a31ymvrj0bx48n93chyqmma3q7b49k7dmhb0hkic6h73aj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cstex")
    (synopsis "Support for Czech/Slovak languages")
    (description
     "CSTeX is a Czech and Slovak languages distribution of Plain and LaTeX.")
    (license license:gpl2)))

(define-public texlive-cweb
  (package
    (name "texlive-cweb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/ctangle.1"
                   "doc/man/man1/ctangle.man1.pdf"
                   "doc/man/man1/ctwill-refsort.1"
                   "doc/man/man1/ctwill-refsort.man1.pdf"
                   "doc/man/man1/ctwill-twinx.1"
                   "doc/man/man1/ctwill-twinx.man1.pdf"
                   "doc/man/man1/ctwill.1"
                   "doc/man/man1/ctwill.man1.pdf"
                   "doc/man/man1/cweave.1"
                   "doc/man/man1/cweave.man1.pdf"
                   "doc/man/man1/cweb.1"
                   "doc/man/man1/cweb.man1.pdf"
                   "doc/man/man1/twill.1"
                   "doc/man/man1/twill.man1.pdf"
                   "tex/plain/cweb/")
             (base32
              "1p6zj6zc6c3i5caj1217gkjjk0wyfks85x33i5p28znzc2fgvbdi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cwebbin")
    (synopsis "CWEB for ANSI-C/C++ compilers")
    (description
     "This package provides a highly portable and extended version of
Levy/Knuth CWEB 3.64c.  TeX macros, CWEB macros, and NLS catalogs are included
for German, French (partially), and Italian program documentation on any
machine.")
    (license license:knuth)))

(define-public texlive-cyrplain
  (package
    (name "texlive-cyrplain")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/plain/cyrplain/")
             (base32
              "1wdcibxs0g53warxs6vz39s3chldzh05p7v1ksskppghg5qzgh8z")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/t2")
    (synopsis "Support for using T2 encoding")
    (description
     "The T2 bundle provides a variety of separate support functions for using
Cyrillic characters in LaTeX:
@itemize
@item the @code{mathtext} package, for using Cyrillic letters transparently in
formulae;
@item the @code{citehack} package, for using Cyrillic (or indeed any
non-ASCII) characters in citation keys;
@item support for Cyrillic in BibTeX;
@item support for Cyrillic in Makeindex;
@item various items of font support.
@end itemize")
    (license license:lppl)))

(define-public texlive-tex-gyre
  (package
    (name "texlive-tex-gyre")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/tex-gyre/"
                   "fonts/afm/public/tex-gyre/"
                   "fonts/enc/dvips/tex-gyre/"
                   "fonts/map/dvips/tex-gyre/"
                   "fonts/opentype/public/tex-gyre/"
                   "fonts/tfm/public/tex-gyre/"
                   "fonts/type1/public/tex-gyre/"
                   "source/fonts/tex-gyre/"
                   "tex/latex/tex-gyre/")
             (base32
              "0bn8g6rav0v47zbf1gjwp64x0l5340wb5iiiw4kdg69qingkj5lq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-gyre")
    (synopsis "TeX fonts extending URW fonts")
    (description
     "The TeX-GYRE bundle consist of multiple font families:
@itemize @bullet
@item Adventor, based on the URW Gothic L family of fonts;
@item Bonum, based on the URW Bookman L family;
@item Chorus, based on URW Chancery L Medium Italic;
@item Cursor, based on URW Nimbus Mono L;
@item Heros, based on URW Nimbus Sans L;
@item Pagella, based on URW Palladio L;
@item Schola, based on the URW Century Schoolbook L family;
@item Termes, based on the URW Nimbus Roman No9 L family of fonts.
@end itemize

The constituent standard faces of each family have been greatly extended
(though Chorus omits Greek support and has no small-caps family).  Each
family is available in Adobe Type 1 and Open Type formats, and LaTeX
support (for use with a variety of encodings) is provided.")
    ;; The GUST font license (GFL) is legally identical to the LaTeX Project
    ;; Public License (LPPL), version 1.3c or later, but comes with an
    ;; additional but not legally binding clause.
    (license license:lppl1.3c+)))

(define-public texlive-tex-gyre-math
  (package
    (name "texlive-tex-gyre-math")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/tex-gyre-math/"
                   "fonts/opentype/public/tex-gyre-math/"
                   "source/fonts/tex-gyre-math/")
             (base32
              "1k5fx03bg702636hh7hv4kzzxhbbic26rp5g4lq2bgajd5dgc5xy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-gyre-math")
    (synopsis "Maths fonts to match tex-gyre text fonts")
    (description
     "TeX-Gyre-Math is a collection of maths fonts to match the text fonts of
the TeX-Gyre collection.  The collection is available in OpenType format,
only; fonts conform to the developing standards for OpenType maths fonts.
TeX-Gyre-Math-Bonum (to match TeX-Gyre-Bonum), TeX-Gyre-Math-Pagella (to match
TeX-Gyre-Pagella), TeX-Gyre-Math-Schola (to match TeX-Gyre-Schola) and
TeX-Gyre-Math-Termes (to match TeX-Gyre-Termes) fonts are provided.")
    (license license:gfl1.0)))

(define-public texlive-crop
  (package
    (name "texlive-crop")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/crop/" "source/latex/crop/"
                   "tex/latex/crop/")
             (base32
              "1m0dg69bhbvqrq9d2yl6ip36w1bf5cibp386jj2wbywisa2hn3qf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/crop")
    (synopsis "Support for cropmarks")
    (description
     "This package provides a package providing corner marks for camera
alignment as well as for trimming paper stacks, and additional page
information on every page if required.  Most macros are easily adaptable to
personal preferences.  An option is provided for selectively suppressing
graphics or text, which may be useful for printing just colour graphics on
a colour laser printer and the rest on a cheap mono laser printer.  A page
info line contains the time and a new cropmarks index and is printed at the
top of the page.  A configuration command is provided for the info line font.
Options for better collaboration with dvips, pdfTeX and vtex are provided.")
    (license license:lppl)))

(define-public texlive-ctablestack
  (package
    (name "texlive-ctablestack")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/ctablestack/"
                   "source/luatex/ctablestack/"
                   "tex/luatex/ctablestack/")
             (base32
              "13l779436aj3hlchwvhkpiikbyfa2j4swzfrwqkjh9l8bc2cwg7n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ctablestack")
    (synopsis "Catcode table stable support")
    (description
     "This package provides a method for defining category code table stacks
in LuaTeX.  It is required by the @code{luatexbase} package which uses
@code{ctablestack} to provide a back-compatibility form of this concept.")
    (license license:lppl1.3+)))

(define-public texlive-lm
  (package
    (name "texlive-lm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/lm/"
                   "fonts/afm/public/lm/"
                   "fonts/enc/dvips/lm/"
                   "fonts/map/dvipdfm/lm/"
                   "fonts/map/dvips/lm/"
                   "fonts/opentype/public/lm/"
                   "fonts/tfm/public/lm/"
                   "fonts/type1/public/lm/"
                   "tex/latex/lm/")
             (base32
              "1zgp0pc30n8jqr7kiv6j77i9i8dzzyh8zv72n24n74lb28k0sfmr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/lm")
    (synopsis "Latin Modern family of fonts")
    (description "The Latin Modern fonts are derived from the famous Computer
Modern fonts designed by Donald E. Knuth and described in Volume E of his
Computers & Typesetting series.")
    ;; The GUST font license (GFL) is legally identical to the LaTeX Project
    ;; Public License (LPPL), version 1.3c or later, but comes with an
    ;; additional but not legally binding clause.
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-fonts-lm texlive-lm)

(define-public texlive-lm-math
  (package
    (name "texlive-lm-math")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/lm-math/"
                   "fonts/opentype/public/lm-math/")
             (base32
              "0gqdk8x3r1iz4n8j6r3pcqbwalxvkihayvmjfq4iv6hwb0pvys8z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lm-math")
    (synopsis "OpenType maths fonts for Latin Modern")
    (description
     "Latin Modern Math is a maths companion for the Latin Modern family of
fonts, in OpenType format.  For use with LuaLaTeX or XeLaTeX, support is
available from the @code{unicode-math} package.")
    (license license:gfl1.0)))

(define-public texlive-lwarp
  (package
    (name "texlive-lwarp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lwarp/"
                   "scripts/lwarp/"
                   "source/latex/lwarp/"
                   "tex/latex/lwarp/")
             (base32
              "0r1hxihhd7yzhw4s3v9yn1wl36q6fs2cwbdc09z9c1mdz3pywzp6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "lwarpmk.lua")))
    (home-page "https://ctan.org/pkg/lwarp")
    (synopsis "Converts LaTeX to HTML")
    (description
     "This package converts LaTeX to HTML by using LaTeX to process the user's
document and generate HTML tags.  External utility programs are only used for
the final conversion of text and images.  Math may be represented by SVG files
or MathJax.  Hundreds of LaTeX packages are supported, and their load order is
automatically verified.  Documents may be produced by LaTeX, LuaLaTeX,
XeLaTeX, and by several CJK engines, classes, and packages.  A texlua script
automates compilation, index, glossary, and batch image processing, and also
supports latexmk.  Configuration is semi-automatic at the first manual
compile.  Support files are self-generated.  Print and HTML versions of each
document may coexist.  Assistance is provided for HTML import into EPUB
conversion software and word processors.")
    (license license:lppl1.3+)))

(define-public texlive-knuth-lib
  (package
    (name "texlive-knuth-lib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/source/public/knuth-lib/"
                   "fonts/tfm/public/knuth-lib/"
                   "tex/generic/knuth-lib/"
                   "tex/plain/knuth-lib/")
             (base32
              "0dl8z340n6m6xn7wari4hir0syxqi0kl2fhnf0bvnmkqhqwyzpca")))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/knuth-lib")
    (synopsis "Small library of METAFONT sources")
    (description
     "This is a collection of core TeX and METAFONT macro files from Donald
Knuth, including the plain format, plain base, and the MF logo fonts.")
    (license license:knuth)))

(define-deprecated-package texlive-fonts-knuth-lib texlive-knuth-lib)

(define-public texlive-knuth-local
  (package
    (name "texlive-knuth-local")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/source/public/knuth-local/"
                   "fonts/tfm/public/knuth-local/"
                   "mft/knuth-local/" "tex/plain/knuth-local/")
             (base32
              "02cf32f57fr6bngiv9xiw8bh4sq53p9br034ap74s80h3bgcmn1f")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/knuth-local")
    (native-inputs
     (list texlive-knuth-lib texlive-metafont))
    (synopsis "Knuth's local information")
    (description
     "This package provides a collection of experimental programs and
developments based on, or complementary to, the matter in his distribution
directories.")
    (license license:public-domain)))

(define-public texlive-lapdf
  (package
    (name "texlive-lapdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lapdf/" "tex/latex/lapdf/")
             (base32
              "0rnwgb3fy8f4app543lx72f4rhc5c4kladnazkay9lr8hkfa8s4d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lapdf")
    (synopsis "PDF drawing directly in TeX documents")
    (description
     "The package provides the means to use PDF drawing primitives to produce
high quality, colored graphics.  It uses Bezier curves (integral and rational)
from degree one to seven, allows TeX typesetting in the graphic, offers most
of the standard math functions, allows plotting normal, parametric and polar
functions.  The package has linear, logx, logy, logxy and polar grids with
many specs; it can rotate, clip and do many nice things easily it has two
looping commands for programming and many instructive example files.")
    (license license:gpl3+)))

(define-public texlive-latex-fonts
  (package
    (name "texlive-latex-fonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/latex-fonts/"
                   "fonts/source/public/latex-fonts/"
                   "fonts/tfm/public/latex-fonts/")
             (base32
              "1bzqzzhs15w7dqz90hfjnaffjqh24q14w2h1h8vnxzvrlsyv21vq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/latex-fonts")
    (synopsis "Collection of fonts used in LaTeX distributions")
    (description
     "This is a collection of fonts for use with standard LaTeX packages and
classes. It includes invisible fonts (for use with the slides class), line and
circle fonts (for use in the @code{picture} environment) and LaTeX symbol
fonts.")
    (license license:lppl1.2+)))

(define-deprecated-package texlive-fonts-latex texlive-latex-fonts)

(define-public texlive-latex-make
  (package
    (name "texlive-latex-make")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/latex-make/"
                   "scripts/latex-make/"
                   "source/support/latex-make/"
                   "tex/latex/latex-make/")
             (base32
              "0ll6v1mdi1m5fp3s0c4dkgh351lg9ckzdfwz3k488y6cbcvrpm5x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/latex-make")
    (synopsis "Easy compiling of complex (and simple) LaTeX documents")
    (description
     "This package provides several tools that aim to simplify the compilation
of LaTeX documents:

@itemize

@item @file{LaTeX.mk}: a Makefile snippet to help compiling LaTeX documents in
DVI, PDF, PS, ...  format.  Dependencies are automatically tracked: one should
be able to compile documents with a one-line Makefile containing @samp{include
LaTeX.mk}.  Complex documents (with multiple bibliographies, indexes,
glossaries, ...)  should be correctly managed.

@item @file{figlatex.sty}: a LaTeX package to easily insert Xfig figures.  It
can interact with LaTeX.mk so that the latter automatically invokes
@command{transfig} if needed.

@end itemize")
    (license license:gpl3+)))

(define-public texlive-latex-mr
  (package
    (name "texlive-latex-mr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-mr/")
             (base32
              "1zd948d9y63js7980g2bvxpf67hshh2xa3n2ihbzwhpw6l9cbh1w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-mr")
    (synopsis
     "Practical guide to LaTeX and Polyglossia for Marathi and other Indian
languages")
    (description
     "This document aims to introduce LaTeX and Polyglossia for Indian languages.
Though the document often discusses the language Marathi, the discussion
applies to other India languages also.  We assume that the user of this
document knows basic (La)TeX or has, at least, tried her hand on it.  This
document is not very suitable for first time users.")
    (license license:lppl1.3+)))

(define-public texlive-latexbangla
  (package
    (name "texlive-latexbangla")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexbangla/"
                   "tex/latex/latexbangla/")
             (base32
              "19h1axbfp1xclbhffdiczzqpr4lk2jw8kkz4qqh8f2rnhjxd94vw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexbangla")
    (synopsis "Enhanced LaTeX integration for Bangla")
    (description
     "This package simplifies the process of writing Bangla in LaTeX and
addresses most of the associated typesetting issues.  Its notable features
are:

@itemize
@item automated transition from Bangla to English and vice versa;
@item patch for the unproportionate whitespace issue in popular Bangla fonts;
@item full support for all the common commands and environments;
@item Bangla numbering for page, section, chapter, footnotes, extending
Polyglossia's support.
@item new @code{theorem}, @code{problems}, @code{example}, @code{solution} and
other environments, all of which are in Bangla.
@end itemize")
    (license license:lppl1.3+)))

(define-public texlive-liftarm
  (package
    (name "texlive-liftarm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/liftarm/" "tex/latex/liftarm/")
             (base32
              "1dqi322kqlqbh4hli6nwm88nsg4dkr2fnrwi4i70gxyzxdh1mjj4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/liftarm")
    (synopsis "Draw liftarms")
    (description
     "This package can be used to draw liftarms with TikZ.  It provides
several options for the appearance of the liftarms, a command which connects
two liftarms and an environment to describe a construction.")
    (license license:lppl1.3+)))

(define-public texlive-lpic
  (package
    (name "texlive-lpic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lpic/" "tex/latex/lpic/")
             (base32
              "15jzvpn3gnj5c0wachbsjazll9qlibyzxf4i2g8ad7l4yd967m3c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lpic")
    (synopsis "Put LaTeX material over included graphics")
    (description
     "The package defines a convenient interface to put any LaTeX material on
top of included graphics.  The LaTeX material may also be rotated and typeset
on top of a white box overshadowing the graphics.  The coordinates of the
LaTeX boxes are given relative to the original, unscaled graphics; when the
graphics is rescaled, the LaTeX annotations stay at their right places (unless
you do something extreme).  In a draft mode, the package enables you to draw
a coordinate grid over the picture for easy adjustment of positions of the
annotations.")
    (license license:lppl1.3+)))

(define-public texlive-lroundrect
  (package
    (name "texlive-lroundrect")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lroundrect/"
                   "source/latex/lroundrect/"
                   "tex/latex/lroundrect/")
             (base32
              "1yjfg9z0s8drij13fdhii1r9j9i57c112iv2q0airndycm6y8wsg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lroundrect")
    (synopsis "LaTeX macros for using the @code{roundrect} MetaPost routines")
    (description
     "This LaTeX package provides ways to use the extremely configurable
rounded rectangles of the @code{roundrect} MetaPost package with LaTeX.  It is
chiefly useful for examples, but also has macros for particular types of boxes
which are useful on their own.")
    (license license:lppl1.3+)))

(define-public texlive-luamesh
  (package
    (name "texlive-luamesh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luamesh/" "metapost/luamesh/"
                   "scripts/luamesh/" "tex/lualatex/luamesh/")
             (base32
              "02qq6d51pihkxz4zbcxppikkzpr99mw8kmp64gm986fpcn6k2wns")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luamesh")
    (synopsis "Computes and draws 2D Delaunay triangulation")
    (description
     "The package allows to compute and draw 2D Delaunay triangulation.
The algorithm is written with Lua, and depending upon the choice of the
engine, the drawing is done by MetaPost (with @code{luamplib}) or by TikZ.
The Delaunay triangulation algorithm is the Bowyer and Watson algorithm.
Several macros are provided to draw the global mesh, the set of points, or
a particular step of the algorithm.")
    (license license:lppl1.3+)))

(define-public texlive-luasseq
  (package
    (name "texlive-luasseq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luasseq/" "scripts/luasseq/"
                   "source/lualatex/luasseq/"
                   "tex/lualatex/luasseq/")
             (base32
              "1mkhzysyhpbblpwwy4d4983b5np23jnxl9ai986g0n1vpyv0kc47")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luasseq")
    (synopsis "Drawing spectral sequences in LuaLaTeX")
    (description
     "The package is an update of the author's @code{sseq} package, for use
with LuaLaTeX.  This version uses less memory, and operates faster than the
original; it also offers several enhancements.")
    (license license:lppl1.3+)))

(define-public texlive-maker
  (package
    (name "texlive-maker")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/maker/" "tex/latex/maker/")
             (base32
              "08shs5fah2yfdgsydk93jfb1sz42qckal2p031vs95vqd8rpq11g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/maker")
    (synopsis "Include Arduino or Processing code in LaTeX documents")
    (description
     "The first version of the package allows to include Arduino or Processing
code using three different forms: writing the code directly in the LaTeX
document, writing Arduino or Processing commands in line with the text,
calling to Arduino or Processing files.  All these options support the syntax
highlighting of the official IDE.")
    (license license:lppl1.3c)))

(define-public texlive-makeshape
  (package
    (name "texlive-makeshape")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/makeshape/"
                   "source/latex/makeshape/"
                   "tex/latex/makeshape/")
             (base32
              "1mc7qxqs87f87s4rzdd7fqy44sxc9a6imz62kqmigfap2kjwnflb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/makeshape")
    (synopsis "Declare new PGF shapes")
    (description
     "The package simplifies production of custom shapes with correct anchor
borders, in PGF/TikZ; the only requirement is a PGF path describing the anchor
border.  The package also provides macros that help with the management of
shape parameters, and the definition of anchor points.")
    (license license:lppl1.3+)))

(define-public texlive-mathspic
  (package
    (name "texlive-mathspic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathspic/"
                   "doc/man/man1/mathspic.1"
                   "doc/man/man1/mathspic.man1.pdf"
                   "scripts/mathspic/" "tex/latex/mathspic/")
             (base32
              "0rlcskfvpl4niv680v8fgfpfxkrhfavmm8431ffp3vjjbqrhv7xr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "mathspic.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/mathspic")
    (synopsis "Perl filter program for use with PiCTeX")
    (description
     "MathsPIC (Perl) is a development of the earlier MathsPIC (DOS) program,
now implemented as a Perl script, being much more portable than the earlier
program.  MathsPIC parses a plain text input file and generates a plain text
output-file containing commands for drawing a diagram.  It produces output
containing PiCTeX and (La)TeX commands, which may then be processed by plain
TeX or LaTeX in the usual way.  MathsPIC also outputs a comprehensive log
file.  MathsPIC facilitates creating figures using PiCTeX by providing an
environment for manipulating named points and also allows the use of variables
and maths (advance, multiply, and divide)---in short---it takes the pain out
of PiCTeX.")
    (license license:lppl)))

(define-public texlive-mercatormap
  (package
    (name "texlive-mercatormap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mercatormap/"
                   "tex/latex/mercatormap/")
             (base32
              "11kcwzly8m8wqyppymanpvgabyjl1w33xzsy43sb5p4xv8fdaa5j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mercatormap")
    (synopsis
     "Spherical Mercator coordinate systems and Web Mercator tile integration")
    (description
     "This package extends TikZ with tools to create map graphics.  The
provided coordinate system relies on the Web Mercator projection used on the
Web by OpenStreetMap and others.  The package supports the seamless
integration of graphics from public map tile servers by a Python script.
Also, common map elements like markers, geodetic networks, bar scales, routes,
orthodrome pieces, and more are part of the package.")
    (license license:lppl1.3+)))

(define-public texlive-mflogo
  (package
    (name "texlive-mflogo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mflogo/"
                   "fonts/source/public/mflogo/"
                   "fonts/tfm/public/mflogo/"
                   "source/latex/mflogo/"
                   "tex/latex/mflogo/")
             (base32
              "1r53qlrcqfwc0dfr7ji1nxnqrj6n0qrlg1rl7fjlw6ap3q9y434k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-knuth-lib texlive-metafont))
    (home-page "https://ctan.org/pkg/mflogo")
    (synopsis "LaTeX support for Metafont logo fonts")
    (description
     "This package provides LaTeX and font definition files to access the
Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont
logos in LaTeX documents.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-mflogo texlive-mflogo)

(define-public texlive-mflogo-font
  (package
    (name "texlive-mflogo-font")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/mflogo-font/"
                   "fonts/afm/hoekwater/mflogo-font/"
                   "fonts/map/dvips/mflogo-font/"
                   "fonts/type1/hoekwater/mflogo-font/")
             (base32
              "094mknjv8ki2pvj1zin0f1z4f1w12g0cfqjiqcsawjsry4yfrmbg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mflogo-font")
    (synopsis "METAFONT logo font")
    (description
     "These fonts were created in Metafont by Knuth, for his own publications.
At some stage, the letters P and S were added, so that the MetaPost logo could
also be expressed.  The fonts were originally issued (of course) as Metafont
source; they have since been autotraced and reissued in Adobe Type 1 format by
Taco Hoekwater.")
    (license license:knuth)))

(define-deprecated-package texlive-fonts-mflogo-font texlive-mflogo-font)

(define-public texlive-mfware
  (package
    (name "texlive-mfware")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/gftodvi.1"
                   "doc/man/man1/gftodvi.man1.pdf"
                   "doc/man/man1/gftopk.1"
                   "doc/man/man1/gftopk.man1.pdf"
                   "doc/man/man1/gftype.1"
                   "doc/man/man1/gftype.man1.pdf"
                   "doc/man/man1/mft.1"
                   "doc/man/man1/mft.man1.pdf"
                   "doc/man/man1/pktogf.1"
                   "doc/man/man1/pktogf.man1.pdf"
                   "doc/man/man1/pktype.1"
                   "doc/man/man1/pktype.man1.pdf"
                   "mft/base/")
             (base32
              "0l0xy2zl7yzb14wbzsg4sz5bdj22ggqlsw54d0yrm430wlr1s6sd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mfware")
    (synopsis "Supporting tools for use with Metafont")
    (description
     "This package provides a collection of programs (as web source) for
processing the output of Metafont.")
    (license license:public-domain)))

(define-public texlive-milsymb
  (package
    (name "texlive-milsymb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/milsymb/" "tex/latex/milsymb/")
             (base32
              "0bzrgnk934alp51j1qy4c73kkr4jv0bjq5fv50dm1bl22m9h3s17")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/milsymb")
    (synopsis "TikZ-based drawing of military symbols")
    (description
     "The package offers commands to draw military symbols as per
@url{https://www.awl.edu.pl/images/en/APP_6_C.pdf, NATO APP-6(C)}.  It has
a set of commands for drawing all symbols found in the document up to the
control measures, as well as support for custom non-standard symbols.  Control
measures are planned to be included in a future release.")
    (license license:cc-by-sa4.0)))

(define-public texlive-miniplot
  (package
    (name "texlive-miniplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/miniplot/" "tex/latex/miniplot/")
             (base32
              "0k98mfd4bf43br74wyjqjlwb93yzi2b5r53jsrsr58p6lg59c200")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/miniplot")
    (synopsis "Package for easy figure arrangement")
    (description
     "MiniPlot is a package to help the LaTeX user typeset EPS figures using
an easy-to-use interface.  Figures can be arranged as one-figure-only or as
a collection of figures in columns and rows which can itself contain
sub-figures in columns and rows.  Wrapped figures are also supported.  This
package provides commands to display a framebox instead of the figure as the
graphics package does already but additionally it writes useful information
such as the label and scaling factor into these boxes.")
    (license license:lppl)))

(define-public texlive-mkpic
  (package
    (name "texlive-mkpic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/mkpic/" "scripts/mkpic/")
             (base32
              "1a8jzsgw63siirifpsvwjmfbj68fv58hnn5vrv737i9vbjrv0vm7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "mkpic")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/mkpic")
    (synopsis "Perl interface to @code{mfpic}")
    (description
     "@code{mkpic} provides an easy interface for making small pictures with
@code{mfpic}.  To this end you create an input file consisting of commands,
one per line, with space separated parameters (or you modify the DATA section
of the @code{mkpic} script, which is used if you run it without an input
file).")
    (license license:gpl3+)))

(define-public texlive-modiagram
  (package
    (name "texlive-modiagram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/modiagram/"
                   "tex/latex/modiagram/")
             (base32
              "0817c3yj5q4srbl29kqw16cg3c6gwr9ahy33hyicqbqap034fnyd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/modiagram")
    (synopsis "Drawing molecular orbital diagrams")
    (description
     "The package provides an environment MOdiagram and some commands, to
create molecular orbital diagrams using TikZ.")
    (license license:lppl1.3c)))

(define-public texlive-neuralnetwork
  (package
    (name "texlive-neuralnetwork")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/neuralnetwork/examples/"
                   "tex/latex/neuralnetwork/")
             (base32
              "11k0hwg1mx52mrp7csp93m4rvv22vq91l4ij1ylgbw9flh189p8x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/neuralnetwork")
    (synopsis "Graph-drawing for neural networks")
    (description
     "The package provides facilities for graph-drawing, with facilities
designed for neural network diagrams.")
    (license license:gpl3+)))

(define-public texlive-nl-interval
  (package
    (name "texlive-nl-interval")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nl-interval/"
                   "tex/latex/nl-interval/")
             (base32
              "0n11a26d48jr6lngfc128fpvahdnbvnlxz9kxp7hirl0cm8ssiwa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nl-interval")
    (synopsis "Represent intervals on the number line")
    (description
     "This package provides macros to simplify the process of representing
intervals on the number line.")
    (license license:lppl1.3c)))

(define-public texlive-nndraw
  (package
    (name "texlive-nndraw")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nndraw/" "source/latex/nndraw/"
                   "tex/latex/nndraw/")
             (base32
              "08mhl61b2fzsnfz6ldrlz9m5s37w2c4wml8gpd2f4wc9rjag68l4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nndraw")
    (synopsis "Draw neural networks")
    (description
     "With this package you can create fully connected neural networks in
a simple and efficient way.")
    (license license:lppl1.3+)))

(define-public texlive-numericplots
  (package
    (name "texlive-numericplots")
    (version (number->string %texlive-revision))
    (source (texlive-origin name version
                            (list "doc/latex/numericplots/"
                                  "tex/latex/numericplots/")
                            (base32
                             "187h4q35s2asfgv9zxw992316v37p5nnvphjylnxfvygxci36lwg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/numericplots")
    (synopsis "Plot numeric data (including Matlab export) using PSTricks")
    (description
     "Plotting numeric data is a task which has often to be done for
scientific papers.  LaTeX itself provides no facilities for drawing more than
the simplest plots from supplied data.  The package will process user input,
and uses PSTricks to plot the results.  The package provides Matlab functions
to transform Matlab results to plottable data.")
    (license license:gpl3)))

(define-public texlive-outilsgeomtikz
  (package
    (name "texlive-outilsgeomtikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/outilsgeomtikz/"
                   "tex/latex/outilsgeomtikz/")
             (base32
              "0zk47dlz9jl2xk0q1sfnd6f57iww8qaq5wd0l1k23pci86x4nv6a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/outilsgeomtikz")
    (synopsis "Some geometric tools, with TikZ")
    (description
     "This package provides some commands, with French keys, to display
geometric tools using TikZ, for example a pen, a compass, a rule, a square, or
a protractor.")
    (license license:lppl1.3c)))

(define-public texlive-pb-diagram
  (package
    (name "texlive-pb-diagram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pb-diagram/"
                   "tex/latex/pb-diagram/")
             (base32
              "1g790ykz0xq01d8zmy6llr33imh42dy51700c9z49xga4dvnyqlv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pb-diagram")
    (synopsis "Commutative diagram package using LAMSTeX or Xy-pic fonts")
    (description
     "The package provides a @code{diagram} environment.  This allows the
LaTeX user to easily create complex commutative diagrams, by placing formula
nodes on a conceptual grid and attaching arrows to them.")
    (license license:gpl2+)))

(define-public texlive-pbibtex-base
  (package
    (name "texlive-pbibtex-base")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/ptex/pbibtex/" "pbibtex/bib/"
                   "pbibtex/bst/")
             (base32
              "06glwwv1rw4n5cpg6cs70yzgyix65nhfsakyq72sn82yss1gvf8z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pbibtex-base")
    (synopsis "Bibliography styles and miscellaneous files for pBibTeX")
    (description
     "These are miscellaneous files, including bibliography
styles (@file{.bst}), for pBibTeX, which is a Japanese extended version of
BibTeX contained in TeX Live.")
    (license license:bsd-3)))

(define-public texlive-pbibtex-manual
  (package
    (name "texlive-pbibtex-manual")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pbibtex-manual/")
             (base32
              "030rhhb4xcijvjc0x1ylyk6xz5mn90wrlp5ss4yr6qlpzmq21b50")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pbibtex-manual")
    (synopsis "Documentation files for (u)pBibTeX")
    (description
     "The bundle contains documentation files for Japanese pBibTeX and
upBibTeX.  For historical reasons, this also contains old documentation files
for JBibTeX.")
    (license license:bsd-3)))

(define-public texlive-penrose
  (package
    (name "texlive-penrose")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/penrose/" "source/latex/penrose/"
                   "tex/latex/penrose/")
             (base32
              "0vdbyvprb75if93lx138v2li2ijylbs8w8787dwk2pys5pp7s4ql")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/penrose")
    (synopsis "TikZ library for producing Penrose tilings")
    (description
     "This package provides a TikZ library for drawing Penrose tiles.  It
currently supports the kite/dart, rhombus, and pentagon tile sets.  There are
two main methods for their placement: one that automatically generates
a tiling, and one that allows for manual placement.  Furthermore, the tiles
themselves can be deformed and will still (hopefully!) fit together in the
correct fashion.")
    (license license:lppl1.3c)))

(define-public texlive-petri-nets
  (package
    (name "texlive-petri-nets")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/petri-nets/"
                   "scripts/petri-nets/"
                   "tex/generic/petri-nets/")
             (base32
              "0m6qmahbw1q5vs63mr30kf75di86drhi8z3a8p7yn9n524jn435c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pn2pdf")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/petri-nets")
    (synopsis "Set TeX/LaTeX packages for drawing Petri nets")
    (description
     "Petri-nets offers a set of TeX/LaTeX packages about Petri nets and
related models.  Three packages are available: the first allows the user to
draw Petri-nets in PostScript documents; the second defines macros related to
PBC, M-nets and B(PN) models; and a third that combines the other two.")
    (license license:gpl3+)))

(define-public texlive-pgf-blur
  (package
    (name "texlive-pgf-blur")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-blur/"
                   "source/latex/pgf-blur/"
                   "tex/latex/pgf-blur/")
             (base32
              "1lsndflhx56gawqkcyjyh8pll986m7msraq5qr1asppybf4m0hij")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgf-blur")
    (synopsis "PGF/TikZ package for blurred shadows")
    (description
     "The package adds blurred/faded/fuzzy shadows to PGF/TikZ pictures.
It is configured as a TikZ/PGF library module.")
    (license (list license:lppl license:public-domain))))

(define-public texlive-pgf-interference
  (package
    (name "texlive-pgf-interference")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-interference/"
                   "tex/latex/pgf-interference/")
             (base32
              "1aa741h358iwn0zd25y3wsr4mr1q2fia1mrfqrbz6p00fvv0rgv5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgf-interference")
    (synopsis "Drawing interference patterns with PGF/TikZ")
    (description
     "This LaTeX package makes it possible to simulate interference patterns
occuring on a screen if monochromatic light is diffracted at regular
structures of slits.")
    (license license:lppl1.3+)))

(define-public texlive-pgf-periodictable
  (package
    (name "texlive-pgf-periodictable")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-periodictable/"
                   "tex/latex/pgf-periodictable/flags/"
                   "tex/latex/pgf-periodictable/lattice/"
                   "tex/latex/pgf-periodictable/spectra/")
             (base32
              "0jxl52m4ik710n14crr6b2ymgnl58asw78mb0p5vdz21r6qgb11n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgf-periodictable")
    (synopsis "Create custom periodic tables of elements")
    (description
     "The purpose of this package is to provide the periodic table of elements
in a simple way.  It relies on PGF/TikZ to offer a full or partial periodic
table with a variety of options and displaying the desired data for all the
118 elements.")
    (license license:lppl1.3+)))

(define-public texlive-pgf-pie
  (package
    (name "texlive-pgf-pie")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-pie/" "tex/latex/pgf-pie/")
             (base32
              "1nvg61v9pzc0mqs8m818ixi8rmw2wv3h7s17shjc7mcdqkp7k1qq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-carlisle texlive-latex texlive-pgf))
    (home-page "https://ctan.org/pkg/pgf-pie")
    (synopsis "Draw pie charts, using PGF")
    (description
     "The package provides the means to draw pie (and variant) charts,
using PGF/TikZ.")
    (license (list license:gpl2 license:lppl1.3c))))

(define-public texlive-pgf-soroban
  (package
    (name "texlive-pgf-soroban")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-soroban/"
                   "tex/latex/pgf-soroban/")
             (base32
              "1vcycmd5a3z6p9glbgw4lsxs0zv0lidvs240i18kv8s39yx6f88r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgf-soroban")
    (synopsis "Create images of the soroban using TikZ/PGF")
    (description
     "The package makes it possible to create pictures of the
soroban (Japanese abacus) using PGF/TikZ.")
    (license license:lppl)))

(define-public texlive-pgf-spectra
  (package
    (name "texlive-pgf-spectra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-spectra/"
                   "tex/latex/pgf-spectra/")
             (base32
              "03jci0jc5ryzkp6930hn1l4awjrw9y1xwc3f327igccj78w24pnb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgf-spectra")
    (synopsis "Draw continuous or discrete spectra using PGF/TikZ")
    (description
     "The purpose of this package is to draw the spectra of elements in
a simple way.  It relies on PGF/TikZ for drawing the desired spectrum,
continuous or discrete.  There are data available for the spectra of 98
elements and their ions (from the NASA database and from NIST).  It also
allows the user to draw spectra using their own data.")
    (license license:lppl1.3+)))

(define-public texlive-pgf-umlcd
  (package
    (name "texlive-pgf-umlcd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-umlcd/"
                   "tex/latex/pgf-umlcd/")
             (base32
              "14zx2jms616qfzwqbgixz0pd3qzjzr2bxr6ahhy7mgj3i7rlbr8r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-latex texlive-pgf))
    (home-page "https://ctan.org/pkg/pgf-umlcd")
    (synopsis "Some LaTeX macros for UML class diagrams")
    (description
     "This package provides some LaTeX macros for UML class diagrams.")
    (license (list license:gpl2 license:lppl1.3c))))

(define-public texlive-pgf-umlsd
  (package
    (name "texlive-pgf-umlsd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgf-umlsd/"
                   "tex/latex/pgf-umlsd/")
             (base32
              "1bw23gm9x6ijhn3h0q7af0n9wxnc3ixfjc23v8x49s80gh96gmqg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-latex texlive-pgf))
    (home-page "https://ctan.org/pkg/pgf-umlsd")
    (synopsis "Draw UML sequence diagrams")
    (description
     "This package provides LaTeX macros to draw UML diagrams using PGF.")
    (license license:gpl3+)))

(define-public texlive-pgfkeyx
  (package
    (name "texlive-pgfkeyx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgfkeyx/" "tex/latex/pgfkeyx/")
             (base32
              "0g5wvhlyfplv0fd0nsxpw3al9wmk0hw0pjvyyplh1vzdk5rr3xzq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgfkeyx")
    (synopsis "Extended and more robust version of @code{pgfkeys}")
    (description
     "The package extends and improves the robustness of the @code{pgfkeys}
package.  In particular, it can deal with active comma, equality sign, and
slash in key parsing.  The difficulty with active characters has long been
a problem with the @code{pgfkeys} package.  The package also introduces
handlers beyond those that @code{pgfkeys} can offer.")
    (license license:lppl1.3+)))

(define-public texlive-pgfmolbio
  (package
    (name "texlive-pgfmolbio")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/pgfmolbio/"
                   "scripts/pgfmolbio/"
                   "source/lualatex/pgfmolbio/"
                   "tex/lualatex/pgfmolbio/")
             (base32
              "12kajg7jrhd612lk7m6gwadxb5y7v9znqjlg1n3n05zwrmfd54w1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgfmolbio")
    (synopsis "Draw graphs typically found in molecular biology texts")
    (description
     "The package draws graphs typically found in molecular biology texts.
Currently, the package contains modules for drawing DNA sequencing
chromatograms and protein domain diagrams.")
    (license license:lppl1.3+)))

(define-public texlive-pgfmorepages
  (package
    (name "texlive-pgfmorepages")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgfmorepages/"
                   "tex/latex/pgfmorepages/")
             (base32
              "0k0njkw34ql0vlpmay155rr4v0sszizhh1pixy20npbk26dkzljw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgfmorepages")
    (synopsis "Assemble multiple logical pages onto a physical page")
    (description
     "This package replaces and extends the @code{pgfpages} sub-package of the
PGF system.  It provides the capability to arrange multiple logical pages on
multiple physical pages, for example as for arranging pages to make
booklets.")
    (license license:lppl1.3c)))

(define-public texlive-pgfopts
  (package
    (name "texlive-pgfopts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgfopts/" "source/latex/pgfopts/"
                   "tex/latex/pgfopts/")
             (base32
              "0p4bfqgkwmzhismrs7a10sblbgx4b6w259vdp1dd3hxvhc2kbnyn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-pgf))
    (home-page "https://ctan.org/pkg/pgfopts")
    (synopsis "LaTeX package options with @code{pgfkeys}")
    (description
     "The @code{pgfkeys} package (part of the PGF distribution) is a way of
defining and using large numbers of keys for key-value syntaxes.  However,
@code{pgfkeys} itself does not offer means of handling LaTeX class and package
options.  This package adds such option handling to @code{pgfkeys}, in the
same way that @code{kvoptions} adds the same facility to the LaTeX standard
@code{keyval} package.")
    (license license:lppl1.3+)))

(define-public texlive-pgfornament
  (package
    (name "texlive-pgfornament")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgfornament/"
                   "tex/generic/pgfornament/am/"
                   "tex/generic/pgfornament/pgfhan/"
                   "tex/generic/pgfornament/vectorian/"
                   "tex/latex/pgfornament/")
             (base32
              "02fmyyp1hgasa8k6v0nkdvdmqfbiscyyk3hpqg63b5956ksgap21")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgfornament")
    (synopsis "Drawing of vectorian ornaments with PGF/TikZ")
    (description
     "This package allows the drawing of vectorian ornaments (196) with
PGF/TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-pgfornament-han
  (package
    (name "texlive-pgfornament-han")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgfornament-han/"
                   "tex/latex/pgfornament-han/")
             (base32
              "17h71dbzj7a381gv3zn1pr1g2376mwwg8l9mk3y97wiv9m9afhxn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pgfornament-han")
    (synopsis "Library for Chinese traditional motifs and patterns")
    (description
     "This package provides a @code{pgfornament} library for Chinese
traditional motifs and patterns.  The command @code{\\pgfornamenthan} takes
the same options as @code{\\pgfornament} from the @code{pgfornament} package,
but renders Chinese traditional motifs instead.")
    (license license:lppl1.3c)))

(define-public texlive-pgfplots
  (package
    (name "texlive-pgfplots")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/pgfplots/"
                   "doc/generic/pgfplots/"
                   "doc/latex/pgfplots/"
                   "doc/plain/pgfplots/"
                   "scripts/pgfplots/"
                   "source/context/third/pgfplots/"
                   "source/latex/pgfplots/"
                   "tex/context/third/pgfplots/"
                   "tex/generic/pgfplots/"
                   "tex/latex/pgfplots/"
                   "tex/plain/pgfplots/")
             (base32
              "1c0gah7ia61s435zlyq4ay9snkrs2xcs627wky7c0sp8mgxyybwr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-pgf))
    (home-page "https://ctan.org/pkg/pgfplots")
    (synopsis "Create normal/logarithmic plots in two and three dimensions")
    (description
     "PGFPlots draws high-quality function plots in normal or logarithmic
scaling with a user-friendly interface directly in TeX.  The user supplies
axis labels, legend entries and the plot coordinates for one or more plots and
PGFPlots applies axis scaling, computes any logarithms and axis ticks and
draws the plots, supporting line plots, scatter plots, piecewise constant
plots, bar plots, area plots, mesh-- and surface plots and some more.
PGFPlots is based on PGF/TikZ (PGF); it runs equally for LaTeX/TeX/ConTeXt.")
    (license license:gpl3+)))

(define-public texlive-picinpar
  (package
    (name "texlive-picinpar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/picinpar/" "tex/latex/picinpar/")
             (base32
              "1s6ymq4zg0wl6pfx34shansv3y1qlh6h3q58a97zpz5x21n1a5pq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/picinpar")
    (synopsis "Insert pictures into paragraphs")
    (description
     "This package provides a legacy package for creating windows in
paragraphs, for inserting graphics, etc.  Users should note that Pieter van
Oostrum (in a published review of packages of this sort) does not recommend
this package; Picins is recommended instead.")
    (license license:gpl3+)))

(define-public texlive-pictex
  (package
    (name "texlive-pictex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pictex/" "tex/generic/pictex/")
             (base32
              "1wwlh9d7b3gsk3f29d6vk0ic7nnvc533jfg2z019vsf6pin9qvgv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pictex")
    (synopsis "Picture drawing macros for TeX and LaTeX")
    (description
     "PicTeX is an early and very comprehensive drawing package that mostly
draws by placing myriads of small dots to make up pictures.  It has a tendency
to run out of space; packages @code{m-pictex} and @code{pictexwd} deal with
the problems in different ways.")
    (license license:lppl1.0+)))

(define-public texlive-pictex2
  (package
    (name "texlive-pictex2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/latex/pictex2/")
             (base32
              "1qqf08yharknq6csk01jdff62mg011bryqlq5mbmjwqwh7wxs0wy")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pictex2")
    (synopsis "Adds relative coordinates and improves the @code{\\plot} command")
    (description
     "This package adds two user commands to standard PiCTeX.  One command
uses relative coordinates, thus eliminating the need to calculate the
coordinate of every point manually as in standard PiCTeX.  The other command
modifies @code{\\plot} to use a rule instead of dots if the line segment is
horizontal or vertical.")
    (license license:lppl)))

(define-public texlive-pictexsum
  (package
    (name "texlive-pictexsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pictexsum/")
             (base32
              "00yd0945qiss5jizkxncg8a9bdsld7mkhaipi92bbn1ghqicsw5a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pictexsum")
    (synopsis "Summary of PicTeX commands")
    (description
     "The document summarises the commands of PicTeX.  While it is no
substitute for the PicTeX manual itself, the document is a useful aide-memoire
for those who have read the manual.")
    (license license:bsd-2)))

(define-public texlive-pinlabel
  (package
    (name "texlive-pinlabel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pinlabel/" "tex/latex/pinlabel/")
             (base32
              "0hfa6gdmc6f59840fia3pdll2bgjwyqk57plcqxb4vc0f7kdqqay")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pinlabel")
    (synopsis "TeX labelling package")
    (description
     "Pinlabel is a labelling package for attaching perfectly formatted TeX
labels to figures and diagrams in both EPS and PDF formats.  It is suitable
both for labelling a new diagram and for relabelling an existing diagram.  The
package uses coordinates derived from GhostView and labels are placed with
automatic and consistent spacing relative to the object labelled.")
    (license license:lppl)))

(define-public texlive-pixelart
  (package
    (name "texlive-pixelart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pixelart/" "tex/latex/pixelart/")
             (base32
              "14hridmq92md46vxaiv8ja5lij2zl449vbvq2x2dv4qqs7bi42ab")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pixelart")
    (synopsis "Draw pixel-art pictures")
    (description
     "This package provides a LuaLaTeX package to draw pixel-art pictures
using TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-pixelarttikz
  (package
    (name "texlive-pixelarttikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pixelarttikz/"
                   "tex/latex/pixelarttikz/")
             (base32
              "0ymjflng2rlb0bq375f28mbdpr2r7ihqphnpvrh2f0n4f3afv8hx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pixelarttikz")
    (synopsis "Work with PixelArts, with TikZ")
    (description
     "The package defines commands and an environment for displaying pixel
arts.")
    (license license:lppl1.3c)))

(define-public texlive-plain-doc
  (package
    (name "texlive-plain-doc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/plain-doc/")
             (base32
              "062d6hg4npy57307avvyd2sdxnmyrh5ia2rdb17p6cx555k8zxwq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/csname-doc")
    (synopsis "List of Plain TeX control sequence names")
    (description
     "The document constitutes a list of every control sequence
name (@dfn{csname}) described in the TeXbook, together with an indication of
whether the csname is a primitive TeX command, or is defined in
@file{plain.tex}.")
    (license license:public-domain)))

(define-public texlive-pmgraph
  (package
    (name "texlive-pmgraph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pmgraph/" "tex/latex/pmgraph/")
             (base32
              "1a4nd6c9i9y6g34ipjz2ia0m4vizlvx0wcn0yql53pk8k8zrlgnn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pmgraph")
    (synopsis "Poor man's graphics")
    (description
     "This package provides a set of extensions to LaTeX @code{picture}
environment, including a wider range of vectors, and a lot more box frame
styles.")
    (license license:gpl3+)))

(define-public texlive-postage
  (package
    (name "texlive-postage")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/postage/" "source/latex/postage/"
                   "tex/latex/postage/")
             (base32
              "1sa9fm5hh57p0srnrd98jljj6200hnl17pmhw2v5q7jjgqj1n5gq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/postage")
    (synopsis "Stamp letters with Deutsche Post's service Internetmarke")
    (description
     "The postage package is used for franking letters with Deutsche Post's
online postage service Internetmarke.  Note that in order to print valid
stamps you must point to a valid PDF of Deutsche Post's Ausdruck
4-spaltig (DIN A4).")
    (license license:lppl1.3c)))

(define-public texlive-prerex
  (package
    (name "texlive-prerex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/prerex/" "doc/man/man5/prerex.5"
                   "doc/man/man5/prerex.man5.pdf"
                   "tex/latex/prerex/")
             (base32
              "0cmkr8533p4lqnj9x7nlcqj0slin021y13mr4mx2hvd35ya0dd80")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tests? #true
      #:modules '((guix build texlive-build-system)
                  ((guix build gnu-build-system) #:prefix gnu:)
                  (guix build utils)
                  (srfi srfi-1))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'unpack-prerex-source
            (lambda _
              (mkdir-p "build")
              (with-directory-excursion "build"
                (invoke "tar" "xvf"
                        ;; Tarball includes a version number that we ignore.
                        (first (find-files ".." "^prerex-.*\\.tar.gz"))
                        "--strip-components=1"))))
          (add-after 'unpack-prerex-source 'build-prerex
            (lambda args
              (with-directory-excursion "build"
                (for-each (lambda (phase)
                            (apply (assoc-ref gnu:%standard-phases phase) args))
                          '(configure build check install))))))))
    (native-inputs (list readline))
    (home-page "https://ctan.org/pkg/prerex")
    (synopsis "Interactive editor and macro support for prerequisite charts")
    (description
     "This package consists of @file{prerex.sty}, a LaTeX package for
producing charts of course nodes linked by arrows representing pre- and
co-requisites, and @command{prerex}, an interactive program for creating and
editing chart descriptions.  The implementation of @file{prerex.sty} uses PGF,
so that it may be used equally happily with LaTeX or PDFLaTeX; @code{prerex}
itself is written in C.  The package includes source code for a previewer
application, a lightweight Qt-4 and Poppler-based prerex-enabled PDF viewer.")
    (license (list license:gpl2 license:lppl))))

(define-public texlive-productbox
  (package
    (name "texlive-productbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/productbox/"
                   "source/latex/productbox/"
                   "tex/latex/productbox/")
             (base32
              "12jj5am2h6lqmhc0dz9v8p2j9ci104s9xplki7ncn3fmhy5mm2fq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/productbox")
    (synopsis "Typeset a three-dimensional product box")
    (description
     "The package enables typesetting of a three-dimensional product box.
This product box can be rendered as it is standing on a surface and some light
is shed onto it.  Alternatively it can be typeset as a wireframe to be cut out
and glued together.  This will lead to a physical product box.")
    (license
     (list
      (license:fsf-free "https://tug.ctan.org/macros/latex/contrib/gene/productbox/productbox.ins")))))

(define-public texlive-ps2eps
  (package
    (name "texlive-ps2eps")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/bbox.1"
                   "doc/man/man1/bbox.man1.pdf"
                   "doc/man/man1/ps2eps.1"
                   "doc/man/man1/ps2eps.man1.pdf"
                   "scripts/ps2eps/")
             (base32
              "1anrvgs0hd3790dwpxqal0c2drjmvh93vnyqap40rvp8axwi0a6n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ps2eps.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/ps2eps")
    (synopsis "Produce Encapsulated PostScript from PostScript")
    (description
     "@command{ps2eps} produces Encapsulated PostScript Files (EPS/EPSF) from
a one-page PostScript document, or any PostScript document.  A correct
bounding box is calculated for the EPS files and some PostScript command
sequences that can produce errorneous results on printers are filtered.  The
input is cropped to include just the image contained in the PostScript file.
The EPS files can then be included into TeX documents.

Included in the distribution is the @command{bbox} program, an application to
produce bounding box values for Rawppm or Rawpbm format files.")
    (license license:gpl3+)))

(define-public texlive-ps2pk
  (package
    (name "texlive-ps2pk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/mag.1"
                   "doc/man/man1/mag.man1.pdf"
                   "doc/man/man1/pfb2pfa.1"
                   "doc/man/man1/pfb2pfa.man1.pdf"
                   "doc/man/man1/pk2bm.1"
                   "doc/man/man1/pk2bm.man1.pdf"
                   "doc/man/man1/ps2pk.1"
                   "doc/man/man1/ps2pk.man1.pdf")
             (base32
              "14xq9x5rf15ibzr41cm5rm4v3rpmj50rfsqp4zzvyhmpmyw4dsx3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ps2pk")
    (synopsis "Generate a PK font from an Adobe Type 1 font")
    (description
     "This package provides tools to generate a PK file from an Adobe Type
1 font.  PK fonts are (or used to be) valuable in enabling previewers to view
documents generated that use Type 1 fonts.")
    (license license:isc)))

(define-public texlive-psutils
  (package
    (name "texlive-psutils")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/epsffit.1"
                   "doc/man/man1/epsffit.man1.pdf"
                   "doc/man/man1/extractres.1"
                   "doc/man/man1/extractres.man1.pdf"
                   "doc/man/man1/includeres.1"
                   "doc/man/man1/includeres.man1.pdf"
                   "doc/man/man1/psbook.1"
                   "doc/man/man1/psbook.man1.pdf"
                   "doc/man/man1/psjoin.1"
                   "doc/man/man1/psjoin.man1.pdf"
                   "doc/man/man1/psnup.1"
                   "doc/man/man1/psnup.man1.pdf"
                   "doc/man/man1/psresize.1"
                   "doc/man/man1/psresize.man1.pdf"
                   "doc/man/man1/psselect.1"
                   "doc/man/man1/psselect.man1.pdf"
                   "doc/man/man1/pstops.1"
                   "doc/man/man1/pstops.man1.pdf"
                   "doc/man/man1/psutils.1"
                   "doc/man/man1/psutils.man1.pdf"
                   "dvips/getafm/"
                   "psutils/"
                   "scripts/psutils/")
             (base32
              "0ba514lz3pc03ll0kb9apdx62mi2yiyd7bnargkp2bbf62dq79cc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "extractres.pl" "includeres.pl" "psjoin.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/psutils")
    (synopsis "PostScript utilities")
    (description
     "This package provides a bundle of utilities for manipulating PostScript
documents, including page selection and rearrangement, resizing the page,
arrangement into signatures for booklet printing, and page merging for N-up
printing.  Utilities include @command{psbook}, @command{psselect},
@command{pstops}, @command{psnup}, @command{psresize}, @command{epsffit}.")
    (license
     (list license:lgpl2.1+
           (license:fsf-free
            "https://tug.org/svn/texlive/trunk/Build/source/texk/psutils/psutils-src/LICENSE?revision=57915&view=markup")))))

(define-public texlive-ptolemaicastronomy
  (package
    (name "texlive-ptolemaicastronomy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ptolemaicastronomy/"
                   "source/latex/ptolemaicastronomy/"
                   "tex/latex/ptolemaicastronomy/")
             (base32
              "05j082s8aj57lzbxlhddi7f6gscpl5j66zmmaj6kabpnv152r0l7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ptolemaicastronomy")
    (synopsis "Diagrams of sphere models for variably strict conditionals")
    (description
     "David K. Lewis (Counterfactuals, Blackwell 1973) introduced a sphere
semantics for counterfactual conditionals.  He jokingly referred to the
diagrams depicting such sphere models as Ptolemaic astronomy, hence the name
of this package.  The macros provided in this package aid in the construction
of sphere model diagrams in the style of Lewis.")
    (license license:lppl1.3c)))

(define-public texlive-puyotikz
  (package
    (name "texlive-puyotikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/puyotikz/" "scripts/puyotikz/"
                   "tex/latex/puyotikz/")
             (base32
              "15vw485phk523kby1q1wn0s0f7185cqj7sjsr8hc6iccdbzwknc0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/puyotikz")
    (synopsis "Quickly typeset board states of Puyo Puyo games")
    (description
     "This LaTeX package permits to quickly typeset board states of Puyo Puyo
games.  It supports large and small boards with arbitrary shape, hidden rows,
current and next puyos, labels and move planning markers.")
    (license license:expat)))

(define-public texlive-pxpgfmark
  (package
    (name "texlive-pxpgfmark")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pxpgfmark/"
                   "tex/latex/pxpgfmark/")
             (base32
              "0c026i1bda0fxfrjhpv4laaj75ra6j8l2v6bxsgplng7f11nx36l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxpgfmark")
    (synopsis "e-pTeX driver for PGF inter-picture connections")
    (description
     "The distributed drivers do not support the PGF feature of inter-picture
connections under e-pTeX and @code{dvipdfmx}.  The package uses existing
features of @code{dvipdfmx} to fix this problem.")
    (license license:expat)))

(define-public texlive-pxpic
  (package
    (name "texlive-pxpic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pxpic/" "source/latex/pxpic/"
                   "tex/latex/pxpic/")
             (base32
              "01k4c7fakc2wjbjasxqm9gnzhchn2bqnj3vvz5rrcxiq0wibmiyi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxpic")
    (synopsis "Draw pixel pictures")
    (description
     "With @code{pxpic} you draw pictures pixel by pixel.  It was inspired by
a lovely post by Paulo Cereda, among other things (most notably a beautiful
duck) showcasing the use of characters from the Mario video games by Nintendo
in LaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-pxtatescale
  (package
    (name "texlive-pxtatescale")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pxtatescale/"
                   "tex/latex/pxtatescale/")
             (base32
              "1f9xm6nc9h6r2n5rsz6iw4m1x8r13anisv08j5hkidcyvj6n2s6n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxtatescale")
    (synopsis
     "Patch to graphics driver for scaling in vertical direction of pTeX")
    (description
     "This package patches graphics driver @code{dvipdfmx} to support correct
scaling in vertical direction of Japanese pTeX and upTeX.")
    (license license:expat)))

(define-public texlive-qcircuit
  (package
    (name "texlive-qcircuit")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/qcircuit/" "tex/latex/qcircuit/")
             (base32
              "0gyygba4zv6ncbwailjh9fvwn95d4ckrn2vj2ja089drr0sd8zkq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/qcircuit")
    (synopsis "Macros to generate quantum ciruits")
    (description
     "The package supports those within the quantum information community who
typeset quantum circuits, using @code{xy-pic} package, offering macros
designed to help users generate circuits.")
    (license license:gpl2)))

(define-public texlive-quantikz
  (package
    (name "texlive-quantikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/quantikz/" "tex/latex/quantikz/")
             (base32
              "1pa9ry2sn70sjkxqj0f569148xfc5iq77rw0sjnd344m3xsz38db")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/quantikz")
    (synopsis "Draw quantum circuit diagrams")
    (description
     "The purpose of this package is to extend TikZ with the functionality for
drawing quantum circuit diagrams.")
    (license license:cc-by4.0)))

(define-public texlive-quran
  (package
    (name "texlive-quran")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/quran/" "tex/latex/quran/")
             (base32
              "0y5znkwaw5qy2541p10pqqvbblzn0v088c7v8p5lc2za6lh83fj2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/quran")
    (synopsis "Easy way to typeset any part of the @emph{Holy Quran}")
    (description
     "This package offers the user an easy way to typeset the @emph{Holy
Quran}.  It provides several macros for typesetting the whole or any part of
the Quran based on its popular division, including @emph{Surah}, @emph{Ayah},
@emph{Juz}, @emph{Hizb}, @emph{Quarter}, and @emph{Page}.  Besides the Arabic
original, translations to English, German, French, and Persian are provided,
as well as an English transliteration.")
    (license license:lppl1.3c)))

(define-public texlive-quran-bn
  (package
    (name "texlive-quran-bn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/quran-bn/" "tex/latex/quran-bn/")
             (base32
              "1zlm02drh9qfasxf0bwhvrmp521ixzys2aqq896339grkzay0g6q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/quran-bn")
    (synopsis "Bengali translations to the @code{quran} package")
    (description
     "The package is prepared for typesetting some Bengali translations of the
Holy Quran.  It adds two Bengali translations to the @code{quran} package.")
    (license license:lppl1.3+)))

(define-public texlive-quran-de
  (package
    (name "texlive-quran-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/quran-de/"
                   "tex/xelatex/quran-de/")
             (base32
              "06syk1ifxcy8wxfxgnrh6d3hpx4bdprxgkc9jicaaca6j6m3rm65")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/quran-de")
    (synopsis "German translations to the @code{quran} package")
    (description
     "The package is prepared for typesetting some German translations of the
Holy Quran.  It adds three more German translations to the @code{quran}
package.")
    (license license:lppl1.3c)))

(define-public texlive-quran-ur
  (package
    (name "texlive-quran-ur")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/quran-ur/" "tex/latex/quran-ur/")
             (base32
              "0lsp4ldbi1cl044ah5x2br1krglw6qn92rx8h7hkfdr85byzyk25")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/quran-ur")
    (synopsis "Urdu translations to the @code{quran} package")
    (description
     "The package is prepared for typesetting some Urdu translations of the
Holy Quran.  It adds eight Urdu translations to the @code{quran} package.")
    (license license:lppl1.3c)))

(define-public texlive-qyxf-book
  (package
    (name "texlive-qyxf-book")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/qyxf-book/"
                   "tex/latex/qyxf-book/")
             (base32
              "0sgjdfpmwjqh40sbanj772bwimbf3az7wah65hxaz5198xd67m1y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/qyxf-book")
    (synopsis "Book Template for Qian Yuan Xue Fu")
    (description
     "@code{qyxf-book} is a LaTeX document class (template) developed by Qian
Yuan Xue Fu (QYXF), a student club of Xi'an Jiaotong University (XJTU).  It
creates a minimalistic document style, and several color schemes are offered.
Currently the template is only designed for Chinese typesetting.")
    (license license:expat)))

(define-public texlive-r-und-s
  (package
    (name "texlive-r-und-s")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/r_und_s/" "tex/latex/r_und_s/")
             (base32
              "15w8sggvlh28567y1d4vpbq8and12hvhphfvd7vabbn8g1l6h1yi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/r-und-s")
    (synopsis "Chemical hazard codes")
    (description
     "The @code{r-und-s} package decodes the german R- und S-Satze, which are
numerically coded security advice for chemical substances into plain text.
This is, e.g., used to compose security sheets or lab protocols and especially
useful for students of chemistry.  There are four packages, giving texts in
German, English, French and Dutch.")
    (license license:bsd-2)))

(define-public texlive-randbild
  (package
    (name "texlive-randbild")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/randbild/"
                   "source/latex/randbild/"
                   "tex/latex/randbild/")
             (base32
              "1y9qf73163ai738pf6qvaqxy5s2cymyg19qyyfs8dfx2gygcyny9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/randbild")
    (synopsis "Marginal pictures")
    (description
     "This package provides environments @code{randbild} to draw small
marginal plots (using the packages PSTricks and @code{pst-plot}), and
@code{randbildbasis} (the same, only without the automatically drawn
coordinate system).")
    (license license:lppl)))

(define-public texlive-randomwalk
  (package
    (name "texlive-randomwalk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/randomwalk/"
                   "source/latex/randomwalk/"
                   "tex/latex/randomwalk/")
             (base32
              "1mmisgiy0c6qww6xyp9r825snh1dkmn81qjg39c7n1jxig3a8rj3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/randomwalk")
    (synopsis "Random walks using TikZ")
    (description
     "The @code{randomwalk} package provides a user command, @code{\\RandomWalk},
to draw random walks with a given number of steps.  Lengths and angles of the
steps can be customized in various ways.")
    (license license:lppl1.3c)))

(define-public texlive-realhats
  (package
    (name "texlive-realhats")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/realhats/"
                   "source/latex/realhats/"
                   "tex/latex/realhats/hats/")
             (base32
              "0y9s12kzzrrmzkx57yqy4mzx50bcsv972825nnlgcsgkxcd8wv51")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/realhats")
    (synopsis "Put real hats on symbols instead of @samp{^}")
    (description
     "This LaTeX package makes @code{\\hat} put real hats on symbols.")
    (license license:expat)))

(define-public texlive-reotex
  (package
    (name "texlive-reotex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/reotex/" "tex/latex/reotex/")
             (base32
              "1hcjk3nms2gg1h99mxnivb5n3382yq92c578mw0pxbwi0f67z3iw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/reotex")
    (synopsis "Draw Reo Channels and Circuits")
    (description
     "The package defines macros and other utilities to design Reo Circuits.")
    (license license:lppl)))

(define-public texlive-robotarm
  (package
    (name "texlive-robotarm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/robotarm/"
                   "source/latex/robotarm/"
                   "tex/latex/robotarm/")
             (base32
              "1lhvbwq979whvjwx9gyfhsxz20x6imhh57xm843zk6068lv0b3wj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-format "latex"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'add-missing-ins-file
            ;; TeX Live distribution is missing the appropriate ".ins" file to
            ;; generate the package.  Create it, but ignore all documentation
            ;; related files in there.
            (lambda _
              (with-output-to-file "source/latex/robotarm/robotarm.ins"
                (lambda ()
                  (display "\\input docstrip.tex
\\generate{\\file{robotarm.sty}{\\from{robotarm.dtx}{robotarm-package}}}
\\endbatchfile"))))))))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-hypdoc
                  texlive-tools))))
    (home-page "https://ctan.org/pkg/robotarm")
    (synopsis "TikZ powered LaTeX package to draw parameterized 2D robot arms")
    (description
     "This LaTeX package uses TikZ to draw parameterized 2D robot arms, for
example to be used in educational material.")
    (license license:lppl1.3+)))

(define-public texlive-rojud
  (package
    (name "texlive-rojud")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/rojud/" "fonts/map/dvips/rojud/"
                   "fonts/tfm/public/rojud/"
                   "fonts/type1/public/rojud/"
                   "tex/latex/rojud/")
             (base32
              "0vq5m755wa5j9y072gmyf7pl7cisxh029b5j8rm46kqllfpaz4zj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rojud")
    (synopsis "Font with the images of the counties of Romania")
    (description
     "This package provides a Type 1 font with images of the 42 counties of Romania,
constructed using a general method which is described in detail in the
documentation.  The package name is an abbreviation of @emph{judetele
Romaniei} (i.e., counties of Romania).")
    (license license:lppl)))

(define-public texlive-rviewport
  (package
    (name "texlive-rviewport")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rviewport/"
                   "source/latex/rviewport/"
                   "tex/latex/rviewport/")
             (base32
              "13mrihyid25h70800ix0mbqhs8dbi39nyif8f12mj54jpfdjhxcz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rviewport")
    (synopsis "Relative viewport for graphics inclusion")
    (description
     "Package @code{graphicx} provides a useful keyword viewport which allows
to show just a part of an image.  However, one needs to put there the actual
coordinates of the viewport window.  Sometimes it is useful to have relative
coordinates as fractions of natural size.  For example, one may want to print
a large image on a spread, putting a half on a verso page, and another half on
the next recto page.  For this one would need a viewport occupying exactly one
half of the file's bounding box, whatever the actual width of the image may
be.  This package adds a new keyword @code{rviewport} to the @code{graphicx}
package specifiying relative viewport for graphics inclusion: a window defined
by the given fractions of the natural width and height of the image.")
    (license license:lppl)))

(define-public texlive-sa-tikz
  (package
    (name "texlive-sa-tikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sa-tikz/" "tex/latex/sa-tikz/")
             (base32
              "0wdxdgc7jh0h7pql8wja9h4qjc7vr4gv03y4nk2mlxxycwsxiimn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sa-tikz")
    (synopsis "TikZ library to draw switching architectures")
    (description
     "The package provides a library that offers an easy way to draw switching
architectures and to customize their aspect.")
    (license license:lppl1.3+)))

(define-public texlive-sacsymb
  (package
    (name "texlive-sacsymb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sacsymb/" "tex/latex/sacsymb/")
             (base32
              "0pwkb8z4bvgqbffcclfif04iqkpdp6lciwmwvwci3mi9bc6yh4vr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sacsymb")
    (synopsis "Sacred symbols prepared with TikZ")
    (description
     "The @code{sacsymb} package contains symbols used in objective
reduction (Orch OR) theory of consciousness as applied to the three brains
model of psychological experience.  These symbols are prepared using TikZ.")
    (license license:lppl1.0+)))

(define-public texlive-schemabloc
  (package
    (name "texlive-schemabloc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/schemabloc/"
                   "tex/latex/schemabloc/")
             (base32
              "03kbriqlgxafxcy5l2215d3z874s4z1g5gg02w2ij0v8wjrgyn88")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/schemabloc")
    (synopsis "Draw block diagrams, using TikZ")
    (description
     "The package provides a set of macros for constructing block diagrams,
using TikZ.")
    (license license:lppl)))

(define-public texlive-schulmathematik
  (package
    (name "texlive-schulmathematik")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/schulmathematik/"
                   "tex/latex/schulmathematik/")
             (base32
              "1lgsn7my9v2jks553c25wcagaqvxzmzjsijwkilys697c936dv57")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/schulmathematik")
    (synopsis
     "Commands and document classes for German-speaking teachers of
mathematics and physics")
    (description
     "The @code{schulmathematik} bundle provides two LaTeX packages and six
document classes for German-speaking teachers of mathematics and physics.")
    (license license:lppl1.3+)))

(define-public texlive-scratch
  (package
    (name "texlive-scratch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/scratch/" "tex/latex/scratch/")
             (base32
              "1np9mhfmn07clkzsg1glfxw1mkxihvv7yd10bnhc8lxxan9rymj1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/scratch")
    (synopsis "Draw programs like Scratch")
    (description
     "This package permits to draw program charts in the style of the
@url{https://scratch.mit.edu, Scratch} project.  This package is obsolete.
From now on, Scratch is now version 3 with a new design.  Use the
@code{scratch3} package to draw blocks with the new design.")
    (license license:lppl1.3c)))

(define-public texlive-scratch3
  (package
    (name "texlive-scratch3")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/scratch3/" "tex/latex/scratch3/")
             (base32
              "0g8s0p7j058z7hdm4p7kgh7nsyk4wn22lp3j25d5b4hr0xyxmhby")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/scratch3")
    (synopsis "Draw programs like Scratch")
    (description
     "This package permits to draw program charts in the style of the
@url{https://scratch.mit.edu, Scratch} project.")
    (license license:lppl1.3c)))

(define-public texlive-scsnowman
  (package
    (name "texlive-scsnowman")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/scsnowman/"
                   "tex/latex/scsnowman/")
             (base32
              "1qr1cb19383hsxqh3a0640713m343v3jgxfk9whdxm0z11am5if0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/scsnowman")
    (synopsis "Snowman variants using TikZ")
    (description
     "This LaTeX package provides a command @code{\\scsnowman} which can
display many variants of snowman")
    (license license:bsd-2)))

(define-public texlive-setdeck
  (package
    (name "texlive-setdeck")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/setdeck/" "tex/latex/setdeck/")
             (base32
              "11kk04nf37hmv7qw2azjl5r0cqf08khj41b1gp4nikrqvz2p1g49")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/setdeck")
    (synopsis "Typeset cards for Set")
    (description "The package will typeset cards for use in a game of Set.")
    (license license:gpl3)))

(define-public texlive-sexam
  (package
    (name "texlive-sexam")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/sexam/" "tex/xelatex/sexam/")
             (base32
              "0bwzxm8xj7p930rgxh6j6rzb7r26i0w61ixy74wkqwmvb3951rf6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sexam")
    (synopsis "Typeset Arabic exam scripts")
    (description
     "The package provides a modified version of the @code{exam} package made
compatible with XeLaTeX and Polyglossia to typeset Arabic exams.")
    (license license:lppl1.3+)))

(define-public texlive-signchart
  (package
    (name "texlive-signchart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/signchart/"
                   "source/latex/signchart/"
                   "tex/latex/signchart/")
             (base32
              "0vg7xkrc0chp0r9j05ra499n4zkwg1gh9ywfnb54yhwcas301izs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/signchart")
    (synopsis "Create sign charts")
    (description
     "The package allows users to easily typeset sign charts directly into
their (La)TeX document.")
    (license license:lppl1.3+)))

(define-public texlive-simplenodes
  (package
    (name "texlive-simplenodes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/simplenodes/"
                   "tex/latex/simplenodes/")
             (base32
              "0d3bqia3a7rnd57v8yld4i5d9nwrshkxxv6w2vglhpp447yv0nq7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simplenodes")
    (synopsis "Simple nodes in four colors written in TikZ for LaTeX")
    (description
     "This is a LaTeX macro package for generating simple node-based flow
graphs or diagrams built upon the TikZ package.  The package provides two
basic commands, one to generate a node and one to create links between nodes.
The positioning of the nodes is not handled by the package itself but is
preferably done in a tabular environment.  In total, four simple node types
are defined, loosely based on the nomenclature and color patterns of the
popular Java script Bootstrap.")
    (license license:expat)))

(define-public texlive-simpleoptics
  (package
    (name "texlive-simpleoptics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/simpleoptics/"
                   "tex/latex/simpleoptics/")
             (base32
              "0hna56av80k1gc3fm2nbw2dy31sfdw7v14v8yppad4f2d12skpzd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simpleoptics")
    (synopsis "Drawing lenses and mirrors for optical diagrams")
    (description
     "This package provides some of macros for drawing simple lenses and
mirrors for use in optical diagrams.")
    (license license:lppl1.3c)))

(define-public texlive-simurgh
  (package
    (name "texlive-simurgh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/simurgh/"
                   "tex/lualatex/simurgh/")
             (base32
              "11256ssaq6hw6c93ldfgyp0gagv69hl54yg1c8wl5wkc0mrh42rb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simurgh")
    (synopsis "Typeset Parsi in LuaLaTeX")
    (description
     "The package provides an automatic and unified interface for Parsi
typesetting in LaTeX, using the LuaTeX engine.")
    (license license:gpl2)))

(define-public texlive-smartdiagram
  (package
    (name "texlive-smartdiagram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/smartdiagram/"
                   "source/latex/smartdiagram/"
                   "tex/latex/smartdiagram/")
             (base32
              "0qlgafprxqjhy14imb3isgqjsp1y78qrcqlr0n1rvgwppmi1fd0c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/smartdiagram")
    (synopsis "Generate diagrams from lists")
    (description
     "The package will create smart diagrams from lists of items, for simple
documents and for presentations.")
    (license license:lppl1.3+)))

(define-public texlive-spath3
  (package
    (name "texlive-spath3")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/spath3/" "source/latex/spath3/"
                   "tex/latex/spath3/")
             (base32
              "16hg6kbr0rzk1xsyrmhnkc0dr4vq8pamqdqncjx6n5jdpwr9kzkx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/spath3")
    (synopsis "Manipulate soft paths in PGF")
    (description
     "The @code{spath3} library provides methods for manipulating the soft
paths of TikZ/PGF.  Packaged with it are two TikZ libraries that make use of
the methods provided.  These are libraries for drawing calligraphic paths and
for drawing knot diagrams.")
    (license license:lppl1.3c)))

(define-public texlive-spectralsequences
  (package
    (name "texlive-spectralsequences")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/spectralsequences/"
                   "tex/latex/spectralsequences/")
             (base32
              "0fdgkvhhg8i0j7c4ibc9d2xjbhgbpqvqp1shpqaslg5mdahml58f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/spectralsequences")
    (synopsis "Print spectral sequence diagrams using PGF/TikZ")
    (description
     "The package is a specialized tool built on top of PGF/TikZ for drawing
spectral sequences.  It provides a powerful, concise syntax for specifying the
data of a spectral sequence, and then allows the user to print various pages
of spectral sequences, automatically choosing which subset of the classes,
differentials, and structure lines to display on each page.  It also handles
most of the details of the layout.  At the same time, it is extremely
flexible.  @code{spectralsequences} is closely integrated with TikZ to ensure
that users can take advantage of as much as possible of its expressive power.
It is possible to turn off most of the automated layout features and draw
replacements using TikZ commands.  The package also provides a carefully
designed error reporting system intended to ensure that it is as clear as
possible what is going wrong.")
    (license license:lppl)))

(define-public texlive-strands
  (package
    (name "texlive-strands")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/strands/" "source/latex/strands/"
                   "tex/latex/strands/")
             (base32
              "1jhvbzy8qjrjmb6j7kjwjn1iqgnszvhwlnpsag8sl1f8qgg1ns9z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/strands")
    (synopsis "Draw objects constructed from strands")
    (description
     "This package permits to draw objects constructed from strands, like set
partitions, permutations, braids, etc.")
    (license license:lppl1.3+)))

(define-public texlive-swebib
  (package
    (name "texlive-swebib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/swebib/" "doc/latex/swebib/")
             (base32
              "0bw7ls5gbi31gr9h4mqv2blva1skqymprp350n9wm086kgyv4s8h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/swebib")
    (synopsis "Swedish bibliography styles")
    (description
     "The bundle contains Swedish versions of the standard bibliography
styles, and of the style @code{plainnat}.  The styles should be functionally
equivalent to the corresponding original styles, apart from the Swedish
translations.  The styles do not implement Swedish collation.")
    (license license:lppl1.2+)))

(define-public texlive-swimgraf
  (package
    (name "texlive-swimgraf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/swimgraf/" "tex/latex/swimgraf/")
             (base32
              "09s6wb3nzrxj20qrjyyr3r1fl2nbsgj1a4va101nwqb81pcmp4aq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/swimgraf")
    (synopsis "Graphical/textual representations of swimming performances")
    (description
     "The package provides two macros that produce representations of
a swimmer's performances.  The user records data in a text file and specifies
as arguments of the macros the date range of interest.  The macros extract the
relevant information from the file and process it: @code{\\swimgraph} produces
a graph of the times in a single swimming event (specified as an argument),
plotting long course and short course times in separate lines.  Records and
qualifying times, stored in text files, may optionally be included on the
graph. @code{\\swimtext} produces a written record of the times in all events.
Files of current world and Canadian records are included.")
    (license license:lppl)))

(define-public texlive-syntaxdi
  (package
    (name "texlive-syntaxdi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/syntaxdi/" "tex/latex/syntaxdi/")
             (base32
              "0q6f45vr1dq5pildna9i6vxxqg76kylnlb2rfqs9f87r73dg0xak")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/syntaxdi")
    (synopsis "Create railroad syntax diagrams")
    (description
     "This package provides TikZ styles for creating special syntax diagrams
known as railroad diagrams.")
    (license license:lppl1.3+)))

(define-public texlive-t1utils
  (package
    (name "texlive-t1utils")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/t1ascii.1"
                   "doc/man/man1/t1ascii.man1.pdf"
                   "doc/man/man1/t1asm.1"
                   "doc/man/man1/t1asm.man1.pdf"
                   "doc/man/man1/t1binary.1"
                   "doc/man/man1/t1binary.man1.pdf"
                   "doc/man/man1/t1disasm.1"
                   "doc/man/man1/t1disasm.man1.pdf"
                   "doc/man/man1/t1mac.1"
                   "doc/man/man1/t1mac.man1.pdf"
                   "doc/man/man1/t1unmac.1"
                   "doc/man/man1/t1unmac.man1.pdf")
             (base32
              "0hdk57179nn57wnmvr3jasjavkvmrn6ryph6jvjhsfqprn7bhf1y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/t1utils")
    (synopsis "Simple Type 1 font manipulation programs")
    (description
     "This package provides a collection of simple programs for manipulating
Adobe Type 1 fonts, comprising:

@itemize
@item @command{t1ascii}: convert PFB (binary) to PFA (ASCII) fonts;
@item @command{t1binary}: convert PFA to PFB fonts;
@item @command{t1disasm}: convert PFA or PFB fonts to human-readable
and -editable format;
@item @command{t1asm}: reassemble such editable formats to a font;
@item @command{t1unmac}: extract font resources from a Macintosh font file;
@item @command{t1mac}: generate a Macintosh font from a Type 1 font.
@end itemize")
    (license license:public-domain)))

(define-public texlive-table-fct
  (package
    (name "texlive-table-fct")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/table-fct/"
                   "tex/latex/table-fct/")
             (base32
              "1l21dvfp4ypbfn5jvyrb2kwg8s8xfvcwlwxgcyix2ghawv9gsp7m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/table-fct")
    (synopsis
     "Draw a variations table of functions and a convexity table of its graph")
    (description
     "This package offers two environnements, to draw variations table of
a function and a convexity table of its graph.")
    (license license:lppl1.3+)))

(define-public texlive-templates-fenn
  (package
    (name "texlive-templates-fenn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/templates-fenn/")
             (base32
              "1s91swqsysva49cjrb9khgik5mvhxcb3wr2wz4l2683gdgxlbgkf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/templates-fenn")
    (synopsis "Templates for TeX usage")
    (description
     "This package provides a set of templates for using LaTeX packages that
the author uses, comprising:

@itemize
@item @file{scrlttr2.tex}: a letter, written with @code{scrlttr2.cls} from the
KOMA-Script bundl,
@item @file{dinbrief.tex}: a letter according to the German
(DIN) standards, written with @file{dinbrief.cls},
@item @file{kbrief.tex}: a brief memo (@emph{Kurzbrief}) to accompany
enclosures, as used in German offices, again based on @code{dinbrief},
@item @file{vermerk.tex}: a general form for taking down notes on events in
the office,
@item @file{diabetes.tex}: a diary for the basis-bolus insulin therapy of
diabetes mellitus, using @file{scrartcl.cls} from the KOMA-Script bundle.
@end itemize")
    (license license:lppl)))

(define-public texlive-templates-sommer
  (package
    (name "texlive-templates-sommer")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/templates-sommer/")
             (base32
              "0z75xhawsmcxv4f24cqcvfi0r22gavjpg4si6nwrgc8sg82x24m6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/templates-sommer")
    (synopsis "Templates for TeX usage")
    (description
     "This package provides a set of templates for using LaTeX packages that the
author uses, comprising:

@itemize
@item @file{hausarbeit.tex}: for students of the Lehrstuhl Volkskunde an der
Friedrich-Schiller-Universitat Jena,
@item @file{psycho-Dipl.tex}: for diploma theses in psychology.
@end itemize")
    (license license:lppl)))

(define-public texlive-termcal-de
  (package
    (name "texlive-termcal-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/termcal-de/"
                   "source/latex/termcal-de/"
                   "tex/latex/termcal-de/")
             (base32
              "0av913y88vfv0yb68xx1lrqpxd8hwx8x7zzb1qcb2d9r5ry1l8z7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/termcal-de")
    (synopsis "German localization for @code{termcal}")
    (description
     "This package provides a German localization to the @code{termcal}
package written by Bill Mitchell, which is intended to print a term calendar
for use in planning a class.")
    (license license:lppl1.3c)))

(define-public texlive-tex4ht
  (package
    (name "texlive-tex4ht")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tex4ht/"
                   "scripts/tex4ht/"
                   "source/generic/tex4ht/"
                   "tex/generic/tex4ht/"
                   "tex4ht/")
             (base32
              "1svmivc272xj9fzy5p055lp7g9vcqs75jp4x54682yrq0qizv03c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts
           #~(list "ht.sh"
                   "htcontext.sh"
                   "htlatex.sh"
                   "htmex.sh"
                   "httex.sh"
                   "httexi.sh"
                   "htxelatex.sh"
                   "htxetex.sh"
                   "mk4ht.pl"
                   "xhlatex.sh")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/tex4ht")
    (synopsis "Convert (La)TeX to HTML/XML")
    (description
     "This package provides a converter from TeX and LaTeX to SGML-based
formats such as (X)HTML, MathML, OpenDocument, and Docbook, providing
a configurable (La)TeX-based authoring system for hypertext.  TeX4ht does not
independently parse (La)TeX source (so it avoids the difficulties encountered
by many other converters, arising from the irregularity of (La)TeX syntax).
Instead, TeX4ht uses (La)TeX itself (with myriad macro modifications) to
produce a helper DVI file that it can then process.  This technique allows
TeX4ht to approach the robustness characteristic of restricted-syntax systems
such as @code{gellmu}.")
    (license license:lppl)))

(define-public texlive-tex4ebook
  (package
    (name "texlive-tex4ebook")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/tex4ebook/"
                   "scripts/tex4ebook/" "tex/latex/tex4ebook/")
             (base32
              "0907df4hb9y7nh5bz450qb1ljixk5li8hp6r9ajx8d0c47ac5a8v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "tex4ebook")))
    (propagated-inputs (list texlive-make4ht texlive-tex4ht))
    (home-page "https://ctan.org/pkg/tex4ebook")
    (synopsis "Converter from LaTeX to EBook formats")
    (description
     "This is a bundle of Lua scripts and LaTeX packages for conversion of
LaTeX files to EBook formats such as EPUB, MOBI and EPUB3.  TeX4ht is used as
the conversion engine.")
    (license license:lppl1.3+)))

(define-public texlive-texaccents
  (package
    (name "texlive-texaccents")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texaccents.1"
                   "doc/man/man1/texaccents.man1.pdf"
                   "doc/support/texaccents/"
                   "scripts/texaccents/"
                   "source/support/texaccents/")
             (base32
              "1kh4cpvrxgcvnmzxgb3my4jawyqd4348cy6h195346pvdb5xsphh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texaccents")
    (synopsis "Convert composite accented characters to Unicode")
    (description
     "This small utility, written in SNOBOL, converts the composition of
special characters to Unicode.")
    (license license:expat)))

(define-public texlive-texcount
  (package
    (name "texlive-texcount")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/texcount/" "scripts/texcount/")
             (base32
              "0ab1kp0zh2r65x1v42sc5bwxmlifa8splrakq589fgd0aap0l8n1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texcount.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/texcount")
    (synopsis "Count words in a LaTeX document")
    (description
     "TeXcount is a Perl script that counts words in the text of LaTeX files.
It has rules for handling most of the common macros, and can provide
colour-coded output showing which parts of the text have been counted.")
    (license license:lppl)))

(define-public texlive-texdef
  (package
    (name "texlive-texdef")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/texdef/" "scripts/texdef/"
                   "source/support/texdef/")
             (base32
              "0jkc6c4nvzp228d7dcmp0gv2q5qassjq1p40fz4pmbxiyias7zw3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "texdef.pl")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'link-scripts 'add-symlink
            (lambda _
              (with-directory-excursion (string-append #$output "/bin")
                (symlink "texdef" "latexdef")))))))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/texdef")
    (synopsis "Display the definitions of TeX commands")
    (description
     "This (Perl) script displays the definitions of (La)TeX command
sequences/macros.  Various options allow the selection of the used class as
well as package files and other factors that may influence the
definition (before/after the preamble, inside an environment, ...).  The
script creates a temporary TeX file which is then compiled using (La)TeX to
find the @code{\\meaning} of the command sequence.  The result is formatted
and presented to the user.  Length or number command sequences (dimensions,
@code{\\char}..., count registers, ...)  are recognized and the contained
value is also shown (using @code{\\the}).  Special definitions like protected
macros are also recognized and the underlying macros are shown as well.  The
script will show plain TeX definitions by default.  LaTeX and ConTeXt are
supported, including flavours (pdf(La)TeX, Lua(La)TeX, Xe(La)TeX, ...).  The
flavour can be selected using a command line option, or via the script name:
@command{latexdef} will use LaTeX as default, etc.")
    (license license:gpl3)))

(define-public texlive-texdiff
  (package
    (name "texlive-texdiff")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texdiff.1"
                   "doc/man/man1/texdiff.man1.pdf"
                   "doc/support/texdiff/" "scripts/texdiff/")
             (base32
              "1cp2k217ziwdgh5c7lg22p58ajv7j410ncag620lkdwajc5jqx1d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texdiff")))
    (home-page "https://ctan.org/pkg/texdiff")
    (synopsis "Compare documents and produce tagged merge")
    (description
     "Two files are compared and a new TeX file is output.  When the output
file is processed with (La)TeX it marks new changes with blue and old text
with red with a strike-through line.  Furthermore, passages with changes are
marked at the margin with grey bars by the LaTeX @code{changebar} package.")
    (license license:artistic2.0)))

(define-public texlive-texdirflatten
  (package
    (name "texlive-texdirflatten")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texdirflatten.1"
                   "doc/man/man1/texdirflatten.man1.pdf"
                   "doc/support/texdirflatten/"
                   "scripts/texdirflatten/")
             (base32
              "0f2h9qlqfml9p83znxh81i7cmwfbsr0zrladrf3486v4aja859kx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texdirflatten")))
    (home-page "https://ctan.org/pkg/texdirflatten")
    (synopsis "Collect files related to a LaTeX job in a single directory")
    (description
     "The Perl script parses a LaTeX file recursively, scanning all child
files, and collects details of any included and other data files.  These
component files, are then all put into a single directory (thus flattening the
document's directory tree).")
    (license license:artistic2.0)))

(define-public texlive-texdoc
  (package
    (name "texlive-texdoc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texdoc.1"
                   "doc/man/man1/texdoc.man1.pdf"
                   "doc/support/texdoc/" "scripts/texdoc/"
                   "texdoc/")
             (base32
              "19mvh7pm2332f6c8nzgcbscm9vcz0apwfgm0m55ycibssc2fb3ww")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texdoc.tlu")))
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/texdoc")
    (synopsis "Documentation access for TeX Live")
    (description
     "@command{texdoc} is a Lua script providing easy access to the
documentation in TeX Live: PDF, DVI, plain text files, and more.  Viewing and
other configuration can be extensively customized.")
    (license license:gpl3+)))

(define-public texlive-texdoctk
  (package
    (name "texlive-texdoctk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texdoctk.1"
                   "doc/man/man1/texdoctk.man1.pdf"
                   "scripts/texdoctk/" "texdoctk/")
             (base32
              "18xxivpgjdh8v6kg0b45zjv18sm9a4ljpwk6a4cghg5l5yggrjcx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texdoctk.pl")))
    (inputs (list perl))
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/texdoctk")
    (synopsis "Easy access to package documentation")
    (description
     "This package provides a Perl/Tk-based GUI for easy access to package
documentation for TeX on Unix platforms; the databases it uses are based on
the texmf/doc subtrees of teTeX, but database files for local configurations
with modified/extended directories can be derived from them.  Note that
@command{texdoctk} is not a viewer itself, but an interface for finding
documentation files and opening them with the appropriate viewer; so it relies
on appropriate programs to be installed on the system.  However, the choice of
these programs can be configured by the sysadmin or user.")
    (license license:gpl3+)))

(define-public texlive-texdraw
  (package
    (name "texlive-texdraw")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/texdraw.info"
                   "doc/support/texdraw/"
                   "tex/generic/texdraw/")
             (base32
              "1pqrmyc8jnwk06qbrf18cyny1z4ncq0snp4jc0r7qgnh6bmlbncs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texdraw")
    (synopsis "Graphical macros, using embedded PostScript")
    (description
     "TeXdraw is a set of macro definitions for TeX, which allow the user to
produce PostScript drawings from within TeX and LaTeX.  TeXdraw has been
designed to be extensible.  Drawing segments are relocatable, self-contained
units.  Using a combination of TeX's grouping mechanism and the
@code{gsave}/@code{grestore} mechanism in PostScript, drawing segments allow
for local changes to the scaling and line parameters.  Using TeX's macro
definition capability, new drawing commands can be constructed from drawing
segments.")
    (license license:cc-by4.0)))

(define-public texlive-texfot
  (package
    (name "texlive-texfot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texfot.1"
                   "doc/man/man1/texfot.man1.pdf"
                   "doc/support/texfot/" "scripts/texfot/")
             (base32
              "0cy1fz265ch13cn0jwfg7rlspqlxv8swnv6ljjvqqg8hbl390npd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texfot.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/texfot")
    (synopsis "Filter clutter from the output of a TeX run")
    (description
     "The package provides a small Perl script to filter the online output
from a TeX run, attempting to show only those messages which probably deserve
some change in the source.  The TeX invocation itself need not change.")
    (license license:public-domain)))

(define-public texlive-texliveonfly
  (package
    (name "texlive-texliveonfly")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/texliveonfly/"
                   "scripts/texliveonfly/")
             (base32
              "15nrgkh9wkaccbyd8jgcyw5xjjhqj3jyy3spbfd679fywq14l8c2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texliveonfly.py")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/texliveonfly")
    (synopsis "On-the-fly download of missing TeX live packages")
    (description
     "The package provides a script that performs on the fly downloads of
missing packages, while a document is being compiled.  To use the script,
replace your (LaTeX) compilation command with @samp{texliveonfly.py
file.tex}.")
    (license license:gpl3)))

(define-public texlive-texloganalyser
  (package
    (name "texlive-texloganalyser")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/texloganalyser/"
                   "scripts/texloganalyser/")
             (base32
              "0qlrpqwfyakhh163ckznw5z8jwm5frp3krpi7fxnf9pz03c7shhr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texloganalyser")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/texloganalyser")
    (synopsis "Analyse TeX logs")
    (description
     "This Perl script allows the user to extract (and display) elements of
the log file.")
    (license license:bsd-2)))

(define-public texlive-texlogfilter
  (package
    (name "texlive-texlogfilter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texlogfilter.1"
                   "doc/man/man1/texlogfilter.man1.pdf"
                   "doc/support/texlogfilter/"
                   "scripts/texlogfilter/")
             (base32
              "0w2cxkgzalx083hh4kyk10ampy1dx50iv44z9s2gks224p3rlyps")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texlogfilter")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/texlogfilter")
    (synopsis "Filter LaTeX engines output or log file")
    (description
     "@command{texlogfilter} is a Perl script designed to filter LaTeX engines
output or log file (LaTeX, pdfLaTeX, LuaLaTeX or XeLaTeX).  It reduces the
LaTeX output or log to keep only warnings and errors.  The result is
colorised.  Options allow to mask specific warnings, such as box or
references/citations warnings.  It's also possible to add custom filter
patterns.")
    (license license:lppl1.3+)))

(define-public texlive-texlogsieve
  (package
    (name "texlive-texlogsieve")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/texlogsieve.1"
                   "doc/man/man1/texlogsieve.man1.pdf"
                   "doc/support/texlogsieve/"
                   "scripts/texlogsieve/")
             (base32
              "0pssh34f2263qfpirmv1np9ncjw9d9zyjqbxpin12px2hmvjvip6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texlogsieve")))
    (home-page "https://ctan.org/pkg/texlogsieve")
    (synopsis "Filter and summarize LaTeX log files")
    (description
     "@command{texlogsieve} reads a LaTeX log file (or the standard input if
no file is specified), filters out less relevant messages, and displays
a summary report.")
    (license license:gpl3+)))

(define-public texlive-texnegar
  (package
    (name "texlive-texnegar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/texnegar/"
                   "source/latex/texnegar/"
                   "tex/latex/texnegar/")
             (base32
              "0rza5bmn7cm85aznnffpmfv6b8776jxkpfwhs0y04f83sdjapw63")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texnegar")
    (synopsis "Kashida justification in XeLaTeX and LuaLaTeX")
    (description
     "In some cursive scripts such as Persian or Arabic, kashida is used to
create justification.  In this type of justification characters are elongated
rather than expanding spaces between words.  This package extends the kashida
justification to be used with the LuaTeX engine.")
    (license license:lppl1.3c)))

(define-public texlive-texosquery
  (package
    (name "texlive-texosquery")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/texosquery/"
                   "scripts/texosquery/"
                   "source/support/texosquery/"
                   "tex/latex/texosquery/")
             (base32
              "17s947p011qar5aaz11ysby3nqqrnk0qv4m26hsl5y6divqb2dan")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts
           #~(list "texosquery-jre5.sh" "texosquery-jre8.sh" "texosquery.sh")))
    (home-page "https://ctan.org/pkg/texosquery")
    (synopsis "Java application to query OS information")
    (description
     "This package provides a Java application to query OS information
designed for use in TeX's shell escape mechanism.  The application can query
the following:

@itemize
@item locale and codeset,
@item current working directory,
@item user home directory
@item temporary directory,
@item OS name, arch and version,
@item current date and time in PDF format (for TeX formats that don't provide
@code{\\pdfcreationdate}),
@item date-time stamp of a file in PDF format (for TeX formats that don't
provide @code{\\pdffilemoddate}),
@item size of a file in bytes (for TeX formats that don't provide
@code{\\pdffilesize}),
@item contents of a directory (captured as a list),
@item directory contents filtered by regular expression (captured as a list),
@item URI or canonical path of a file.  All paths use a forward slash as
directory divider so results can be used, for example, in commands like
@code{\\includegraphics}.
@end itemize

There are files provided for easy access in TeX documents.
@file{texosquery.tex} provides generic TeX code, whereas @file{texosquery.sty}
is a LaTeX package, which provides commands to run @command{texosquery} using
TeX's shell escape mechanism and capture the result in a control sequence.")
    (license license:lppl1.3+)))

(define-public texlive-texplate
  (package
    (name "texlive-texplate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/texplate/" "scripts/texplate/"
                   "source/support/texplate/")
             (base32
              "027vfbqm95ysp7sqlcz3p5b2107mcjg540x73nsf2d1g83k4ps4r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "texplate.sh")))
    (home-page "https://ctan.org/pkg/texplate")
    (synopsis "Tool for creating document structures based on templates")
    (description
     "TeXplate is a tool for creating document structures based on templates.
The application name is a word play on TeX and template, so the purpose seems
quite obvious: we want to provide an easy and straightforward framework for
reducing the typical code boilerplate when writing TeX documents.  Also note
that one can easily extrapolate the use beyond articles and theses: the
application is powerful enough to generate any text-based structure, given
that a corresponding template exists.")
    (license license:bsd-3)))

(define-public texlive-texproposal
  (package
    (name "texlive-texproposal")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/texproposal/")
             (base32
              "1yxb3yagljsdp4s07fzd6498889i7cscch68fb77jbfc2z4srvsy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texproposal")
    (synopsis "Proposal prototype for LaTeX promotion in Chinese universities")
    (description
     "This package contains the original source code and necessary attachment
of the document @emph{Proposal for Offering TeX Courses and Relevant Resources
in Chongqing University}.  This proposal could be helpful if one is
considering to suggest their (Chinese) university or company to use TeX (or
LaTeX, or XeLaTeX} as a typesetting system.

The present proposal mainly explains the importance and necessity of
introducing TeX, a typesetting system often used in academic writing, to
students and teachers.  This proposal starts from a brief introduction of TeX,
then steps further into its fascinating application to academic writing and
dissertation formatting.  Finally, a set of possible implementation strategies
with regard to the proper introduction of TeX and relevant resources to our
university, is proposed.")
    ;; The content of the project itself is released under CC-BY 4.0 terms,
    ;; but the underlying code used to format and display that content is
    ;; licensed under the Expat license.
    (license (list license:cc-by4.0 license:expat))))

(define-public texlive-texware
  (package
    (name "texlive-texware")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvitype.1"
                   "doc/man/man1/dvitype.man1.pdf"
                   "doc/man/man1/pooltype.1"
                   "doc/man/man1/pooltype.man1.pdf")
             (base32
              "122r0aq02vwx6irsnapnfbvhgy5d09x90rc8zc7a0bi7b25bxnd1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texware")
    (synopsis "Utility programs for use with TeX")
    (description
     "This package provides basic utility programs, comprising:
@command{dvitype}, which converts a TeX output (DVI) file to a plain text
file; @command{pooltype}, which converts a TeX-suite program's pool (string)
file into human-readable form; @command{tftopl} and @command{pltotf}, which
convert TeX Font Metric (TFM) file to human readable Property List (PL) files
and vice versa.")
    (license license:public-domain)))

(define-public texlive-ticollege
  (package
    (name "texlive-ticollege")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ticollege/"
                   "tex/latex/ticollege/")
             (base32
              "1qbng6vq8w3ln2aw2kckbjih8hz3m2yr1b0bx8bx1a7bf5fhmd6i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ticollege")
    (synopsis
     "Graphical representation of keys on a standard scientific calculator")
    (description
     "This package provides commands to draw scientific calculator keys with
the help of TikZ.  It also provides commands to draw the content of screens
and of menu items.")
    (license license:lppl)))

(define-public texlive-tie
  (package
    (name "texlive-tie")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/tie.1"
                   "doc/man/man1/tie.man1.pdf")
             (base32
              "17z5ik7bbf0v5ylq2v1rda6z64iz386vp56z7yrr6h1dl488kr93")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/tie")
    (synopsis "Allow multiple web change files")
    (description
     "Tie was originally developed to allow web programmers to apply more than
one change file to their source.  The program may also be used to create a new
version of a @file{.web} file that incorporates existing changes.")
    ;; The license, provided as the "tie.w" source file, is morally equivalent
    ;; to CC BY-SA.
    (license (license:fsf-free "file://tie.w"))))

(define-public texlive-tikz-3dplot
  (package
    (name "texlive-tikz-3dplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-3dplot/"
                   "tex/latex/tikz-3dplot/")
             (base32
              "05hw2wxs4q477x16ffh6wcmypdf7mz7500dxnfywiqi0pgzmnh89")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-3dplot")
    (synopsis "Coordinate transformation styles for 3d plotting in TikZ")
    (description
     "The package provides straightforward ways to define three-dimensional
coordinate frames through which to plot in TikZ.  The user can specify the
orientation of the main coordinate frame, and use standard TikZ commands and
coordinates to render their @code{tikzfigure}.  A secondary coordinate frame
is provided to allow rotations and translations with respect to the main
coordinate frame.  In addition, the package can also handle plotting
user-specified functions in spherical polar coordinates, where both the radius
and fill color can be expressed as parametric functions of polar angles.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-among-us
  (package
    (name "texlive-tikz-among-us")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-among-us/"
                   "tex/latex/tikz-among-us/")
             (base32
              "0rrkzh1hain7mvnx4r5s7pccxvcj0izjbjwyrjg3nwin03mqqxy1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-among-us")
    (synopsis "Create some AmongUs characters in TikZ environments")
    (description
     "This package recreates some AmongUs characters in TikZ environments.
Some interesting uses alongside other packages are also supported.")
    (license license:lppl1.3c)))

(define-public texlive-tikz-bagua
  (package
    (name "texlive-tikz-bagua")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-bagua/"
                   "tex/latex/tikz-bagua/")
             (base32
              "1kn0ggpxz5ksnnxsfhbhavik7n8mpblm9x3qjxcsg2qhs286lwyh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-bagua")
    (synopsis "Draw Bagua symbols in Yijing")
    (description
     "This package provides commands for drawing symbols in Yijing (I Ching)
or Zhouyi using TikZ.  There is no need for extra special fonts for showing
these symbols.")
    (license license:lppl1.3c)))

(define-public texlive-tikz-bayesnet
  (package
    (name "texlive-tikz-bayesnet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-bayesnet/"
                   "tex/latex/tikz-bayesnet/")
             (base32
              "0fmm93h0kl6q45sglfz1ssrnj20sqds9kvamf1dqzmfw2g77qwqr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-bayesnet")
    (synopsis
     "Draw Bayesian networks, graphical models and directed factor graphs")
    (description
     "The package provides a library supporting the display of Bayesian networks,
graphical models and (directed) factor graphs in LaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-bbox
  (package
    (name "texlive-tikz-bbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-bbox/"
                   "tex/latex/tikz-bbox/")
             (base32
              "0h224gmdbx63dff0zikv9grf5p7780rdxng2ws9d68k7rk961lb7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-bbox")
    (synopsis "Precise determination of bounding boxes in TikZ")
    (description
     "The built-in determination of the bounding box in TikZ is not entirely
accurate.  This is because, for Bezier curves, it is the smallest box that
contains all control points, which is in general larger than the box that just
contains the curve.  This library determines the exact bounding box of the
curve.")
    (license license:lppl1.3c)))

(define-public texlive-tikz-cd
  (package
    (name "texlive-tikz-cd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-cd/" "tex/generic/tikz-cd/"
                   "tex/latex/tikz-cd/")
             (base32
              "188vd02cwy7r58cnam4aj4lq1jp295mmn3q1w3ki7p6n8v1gnl0c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-cd")
    (synopsis "Create commutative diagrams with TikZ")
    (description
     "The general-purpose drawing package TiKZ can be used to typeset
commutative diagrams and other kinds of mathematical pictures.  The purpose of
this package is to make the process of creation of such diagrams easier by
providing a convenient set of macros and reasonable default settings.  This
package also includes an arrow tip library that match closely the arrows
present in the Computer Modern typeface.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-dependency
  (package
    (name "texlive-tikz-dependency")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-dependency/"
                   "tex/latex/tikz-dependency/")
             (base32
              "12a31jqrxlaj8jj5f7p9vgwp8yqinl5ab0c3nfv4b1c9a08p8q3s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-dependency")
    (synopsis "Library for drawing dependency graphs")
    (description
     "The package provides a library that draws together existing TikZ
facilities to make a comfortable environment for drawing dependency graphs.
Basic facilities of the package include a lot of styling facilities, to let
you personalize the look and feel of the graphs.")
    (license (list license:lppl license:gpl2))))

(define-public texlive-tikz-dimline
  (package
    (name "texlive-tikz-dimline")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-dimline/"
                   "tex/latex/tikz-dimline/")
             (base32
              "15zxc3zxl8mk0rq3b30d2a89lxlnybih49j8w8c6xsfn5mqbn8br")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-dimline")
    (synopsis "Technical dimension lines using PGF/TikZ")
    (description
     "@code{tikz-dimline} helps drawing technical dimension lines in TikZ
@code{picture} environments.")
    (license license:wtfpl2)))

(define-public texlive-tikz-ext
  (package
    (name "texlive-tikz-ext")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-ext/"
                   "tex/generic/tikz-ext/"
                   "tex/latex/tikz-ext/" "tex/plain/tikz-ext/")
             (base32
              "1sb7h2jrz82g10j5qq4h4qiyj5jdriyx7618rfgx05cz8rdv6mxs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-ext")
    (synopsis "Collection of libraries for PGF/TikZ")
    (description
     "This is a collection of libraries for PGF/TikZ.  Currently these are
@code{transformations.mirror}, @code{paths.arcto}, @code{paths.ortho},
@code{paths.timer}, @code{patterns.images}, @code{topaths.arcthrough} and
@code{misc}.")
    (license (list license:fdl1.3+ license:lppl))))

(define-public texlive-tikz-feynhand
  (package
    (name "texlive-tikz-feynhand")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-feynhand/"
                   "tex/latex/tikz-feynhand/")
             (base32
              "11cz44yqxm7dhx53h27r3n5q911dhllzfl53a401w1wnybymj84s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-feynhand")
    (synopsis "Feynman diagrams with TikZ")
    (description
     "This package lets you draw Feynman diagrams using TikZ.  It is a low-end
modification of the TikZ-Feynman package, one of whose principal advantages is
the automatic generation of diagrams, for which it needs LuaTeX.
TikZ-FeynHand only provides the manual mode and hence runs in LaTeX without
any reference to LuaTeX.  In addition it provides some new styles for vertices
and propagators, alternative shorter keywords in addition to TikZ-Feynman's
longer ones, some shortcut commands for quickly customizing the diagrams look,
and the new feature of putting one propagator on top of another.")
    (license license:gpl3+)))

(define-public texlive-tikz-feynman
  (package
    (name "texlive-tikz-feynman")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-feynman/"
                   "tex/latex/tikz-feynman/")
             (base32
              "1yndmpghf3z5jddr3zcm5xw7v7zb6715d870ckjd5gifkvyv3nsy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-iftex texlive-pgfopts))
    (home-page "https://ctan.org/pkg/tikz-feynman")
    (synopsis "Feynman diagrams with TikZ")
    (description
     "This is a LaTeX package allowing Feynman diagrams to be easily generated
within LaTeX with minimal user instructions and without the need of external
programs.  It builds upon the TikZ package and leverages the graph placement
algorithms from TikZ in order to automate the placement of many vertices.
@code{tikz-feynman} allows fine-tuned placement of vertices so that even
complex diagrams can still be generated with ease.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-imagelabels
  (package
    (name "texlive-tikz-imagelabels")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-imagelabels/"
                   "source/latex/tikz-imagelabels/"
                   "tex/latex/tikz-imagelabels/")
             (base32
              "1hvyrkpabnqscnsqz56hby71vpbby03va0xa6gcjjxak65lscwkv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-imagelabels")
    (synopsis "Put labels on images using TikZ")
    (description
     "This package allows to add label texts to an existing image with the aid
of TikZ.  This may be used to label certain features in an image.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-inet
  (package
    (name "texlive-tikz-inet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-inet/"
                   "tex/latex/tikz-inet/")
             (base32
              "1f4n5mp9hb92li2xywfzfrs8hjyrkd15xp97nh5rdgan695hvdpq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-inet")
    (synopsis "Draw interaction nets with TikZ")
    (description
     "The package extends TikZ with macros to draw interaction nets.")
    (license license:lppl)))

(define-public texlive-tikz-kalender
  (package
    (name "texlive-tikz-kalender")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-kalender/"
                   "tex/latex/tikz-kalender/")
             (base32
              "1cwdssvbaibjf7nla0d88nyzip407kgqvndid2p2gxc0b2afp69f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-kalender")
    (synopsis "LaTeX based calendar using TikZ")
    (description
     "This package generates a calendar included events provided as
@file{.events} files.")
    (license license:cc-by-sa4.0)))

(define-public texlive-tikz-karnaugh
  (package
    (name "texlive-tikz-karnaugh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-karnaugh/"
                   "tex/latex/tikz-karnaugh/")
             (base32
              "091s9gavh8f4jya01nkjhzgh3f5b80ijiiaj7simnxawn60mh1z1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-karnaugh")
    (synopsis "Typeset Karnaugh maps using TikZ")
    (description
     "The @code{tikz-karnaugh} package is a LaTeX package used to draw
Karnaugh maps.  It uses TikZ to produce high quality graph from 1 to 12
variables, but this upper limit depends on the TeX memory usage and can be
different for you.  You can control colour, styles and distances.  It can be
considered as an upgrade and extension of Andreas W. Wieland's @code{karnaugh}
package towards TikZ supporting.")
    (license license:lppl1.0+)))

(define-public texlive-tikz-ladder
  (package
    (name "texlive-tikz-ladder")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-ladder/"
                   "tex/latex/tikz-ladder/")
             (base32
              "1fkq7z58h7g71ag4j77vy87hqgpp5q8qvw7kv1pmkff7ycrj8alw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-ladder")
    (synopsis "Draw ladder diagrams using TikZ")
    (description
     "The @code{tikz-ladder} package contains a collection of symbols for
typesetting ladder diagrams (PLC program) in agreement with the international
standard IEC-61131-3/2013.  It includes blocks (for representing functions and
function blocks) besides contacts and coils.  It extends the circuit library
of TikZ and allows you to draw a ladder diagram in the same way as you would
draw any other circuit.")
    (license license:lppl1.0+)))

(define-public texlive-tikz-lake-fig
  (package
    (name "texlive-tikz-lake-fig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-lake-fig/"
                   "tex/latex/tikz-lake-fig/")
             (base32
              "1vyr3will7jivwc30aj13bm9gjj4nyl02754p42phn0y7gdf82kr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-lake-fig")
    (synopsis "Schematic diagrams of lakes")
    (description
     "This package contains a collection of schematic diagrams of lakes for
use in LaTeX documents.  Diagrams include representations of material budgets,
fluxes, and connectivity arrangements.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-layers
  (package
    (name "texlive-tikz-layers")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-layers/"
                   "tex/latex/tikz-layers/")
             (base32
              "1j5wbsybd10zmmiz3lfkb9gzjhxjnbhp7lmdq1fzngywxsb81iz6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-layers")
    (synopsis
     "Add graphical layers on TikZ: @code{behind}, @code{above} and @code{glass}")
    (description
     "TikZ-layers is a tiny package that provides, alongside
@code{background}, typical graphical layers on TikZ: @code{behind},
@code{above} and @code{glass}.  The layers may be selected with one of the
styles @code{on behind layer}, @code{on above layer}, @code{on glass layer} as
an option to a @code{scope} environment.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-mirror-lens
  (package
    (name "texlive-tikz-mirror-lens")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-mirror-lens/"
                   "tex/latex/tikz-mirror-lens/")
             (base32
              "0sddmlki3bdd9js9vs1m1haqcdk3g1ji086jp1h4nfw6dy1s6y56")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-mirror-lens")
    (synopsis "Spherical mirrors and lenses in TikZ")
    (description
     "This package allows the automatic drawing of the image of objects in
spherical mirrors and lenses from the data of the focus, from the position and
height of the object.  It calculates the position and height of the image, and
also displays the notable rays.")
    (license license:lppl1.3c)))

(define-public texlive-tikz-nef
  (package
    (name "texlive-tikz-nef")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-nef/" "tex/latex/tikz-nef/")
             (base32
              "18b2452hfcndqhljq2hn437z6myc45hn62s4bnnjb0f3xnayq1qr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-nef")
    (synopsis "Create diagrams for neural networks")
    (description
     "The @code{nef} TikZ library provides predefined styles and shapes to
create diagrams for neural networks constructed with the methods of
the Neural Engineering Framework (NEF).  The following styles are
supported:
@itemize
@item @code{ea}: ensemble array,
@item @code{ens}: ensemble,
@item @code{ext}: external input or output,
@item @code{inhibt}: inhibitory connection,
@item @code{net}: network,
@item @code{pnode}: pass-through node,
@item @code{rect}: rectification ensemble,
@item @code{recurrent}: recurrent connection.
@end itemize")
    (license license:expat)))

(define-public texlive-tikz-network
  (package
    (name "texlive-tikz-network")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-network/"
                   "tex/latex/tikz-network/")
             (base32
              "1bs08sxxps4kjvgv53lc07ihkcaz2v1ygdc16vn46yy5dp16w2sz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-network")
    (synopsis "Draw networks with TikZ")
    (description
     "This package allows the creation of images of complex networks that are
seamlessly integrated into the underlying LaTeX files.")
    (license license:gpl3+)))

(define-public texlive-tikz-opm
  (package
    (name "texlive-tikz-opm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-opm/" "tex/latex/tikz-opm/")
             (base32
              "0kv26i1lfm9zsvqsajaz9fmz1gv7az3pknk29gg6zwjlg5nxqac3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-opm")
    (synopsis "Typeset OPM diagrams")
    (description
     "This package typesets OPM (Object-Process Methodology) diagrams using
LaTeX and PGF/TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-optics
  (package
    (name "texlive-tikz-optics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-optics/"
                   "tex/latex/tikz-optics/")
             (base32
              "0ii7h57klxq8fjag363wmaaxi9bnds898nl6s1abiqb13pgbmb9n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-optics")
    (synopsis "Library for drawing optical setups with TikZ")
    (description
     "This package provides a new TikZ library designed to easily draw optical
setups with TikZ.  It provides shapes for lens, mirror, etc.  The
geometrically (in)correct computation of light rays through the setup is left
to the user.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-page
  (package
    (name "texlive-tikz-page")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-page/"
                   "source/latex/tikz-page/"
                   "tex/latex/tikz-page/")
             (base32
              "1ck1jr37wd7mx8irm0niv43pmfy2ix5s08vybai8k0jgpvvwwi1j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-page")
    (synopsis "Small macro to help building nice and complex layout materials")
    (description
     "The package provides a small macro to help building nice and complex
layout materials.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-palattice
  (package
    (name "texlive-tikz-palattice")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-palattice/"
                   "tex/latex/tikz-palattice/")
             (base32
              "0vbzr6821q88x4yipa9czcqgpwnkzkkzynxxbxyzy1kh9657hqvg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-palattice")
    (synopsis "Draw particle accelerator lattices with TikZ")
    (description
     "This package allows for drawing a map of a particle accelerator just by
giving a list of elements --- similar to lattice files for simulation
software.  The package includes 12 common element types like dipoles,
quadrupoles, cavities, or screens, as well as automatic labels with element
names, a legend, a rule, and an environment to fade out parts of the
accelerator.  The coordinate of any element can be saved and used for custom
TikZ drawings or annotations.  Thereby, lattices can be connected to draw
injection/extraction or even a complete accelerator facility.")
    (license license:lppl1.3+)))

(define-public texlive-tikz-planets
  (package
    (name "texlive-tikz-planets")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-planets/"
                   "tex/latex/tikz-planets/")
             (base32
              "0sgdkcn0li4k48m0fvhdk6j1kjvh6kzgjbq2jjwnzrdxz97s7hig")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-planets")
    (synopsis "Illustrate celestial mechanics and the solar system")
    (description
     "This TikZ-package makes it easy to illustrate celestial mechanics and
the solar system.  You can use it to draw sketches of the eclipses, the phases
of the Moon, etc.")
    (license license:cc-by-sa4.0)))

(define-public texlive-tikz-qtree
  (package
    (name "texlive-tikz-qtree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-qtree/"
                   "tex/latex/tikz-qtree/")
             (base32
              "15w7mr0rhra80rvf4zci2gkd5cy13ijlh64ay0bay87iviwbkn83")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-qtree")
    (synopsis "Use existing Qtree syntax for trees in TikZ")
    (description
     "The package provides a macro for drawing trees with TikZ using the easy
syntax of Alexis Dimitriadis Qtree.  It improves on TikZ's standard
tree-drawing facility by laying out tree nodes without collisions; it improves
on Qtree by adding lots of features from TikZ (for example, edge labels,
arrows between nodes); and it improves on @code{pst-qtree} in being usable
with pdfTeX and XeTeX.")
    (license license:gpl3+)))

(define-public texlive-tikz-relay
  (package
    (name "texlive-tikz-relay")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-relay/"
                   "tex/latex/tikz-relay/")
             (base32
              "06q0iamg001lvqmi51j61xbwamgnhiah0aw9qv61n7fnxqpwj66c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-relay")
    (synopsis "TikZ library for typesetting electrical diagrams")
    (description
     "This package contains a collection of symbols for typesetting electrical
wiring diagrams for relay control systems.  The symbols are meant to be in
agreement with the international standard IEC-60617 which has been adopted
worldwide, with perhaps the exception of the USA.  It extends and modifies,
when needed, the TikZ-libray @code{circuits.ee.IEC}.  A few non-standard
symbols are also included mainly to be used in presentations, particularly
with the @code{beamer} package.")
    (license license:lppl1.0+)))

(define-public texlive-tikz-sfc
  (package
    (name "texlive-tikz-sfc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-sfc/" "tex/latex/tikz-sfc/")
             (base32
              "0blgyqvmnbwafx85mz4gkyhk0g0zqfmsd98gm3h794a4jfs3zl31")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-sfc")
    (synopsis
     "Symbols collection for typesetting Sequential Function Chart (SFC)
diagrams")
    (description
     "This package contains a collection of symbols for typesetting Sequential
Function Chart (SFC) diagrams in agreement with the international standard
IEC-61131-3/2013.  It includes steps (normal and initial), transitions,
actions and actions qualifiers (with and without time duration).  It extends
the circuit library of TikZ and allows you to draw an SFC diagram in same way
you would draw any other circuit.")
    (license license:lppl1.0+)))

(define-public texlive-tikz-swigs
  (package
    (name "texlive-tikz-swigs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-swigs/"
                   "tex/latex/tikz-swigs/")
             (base32
              "0brbq02vafaajzrwrkg20gy5k3zlzvv7ycgkw0aa20l8rxjcyv71")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-swigs")
    (synopsis "Horizontally and vertically split elliptical nodes")
    (description
     "This package provides horizontally and vertically split
elliptical (pairs of) nodes in TikZ.  The package name derives from the fact
that split ellipses of this type are used to represent Single-World
Intervention Graph (SWIG) models which are used in counterfactual causal
inference.")
    (license (list license:lppl1.3c license:gpl3+))))

(define-public texlive-tikz-timing
  (package
    (name "texlive-tikz-timing")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-timing/"
                   "source/latex/tikz-timing/"
                   "tex/latex/tikz-timing/")
             (base32
              "19zs6agcli2glm92z8y89nr4049v5sqvnlddbwlwym5rni33kh1m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (propagated-inputs (list texlive-svn-prov))
    (home-page "https://ctan.org/pkg/tikz-timing")
    (synopsis "Easy generation of timing diagrams as TikZ pictures")
    (description
     "This package provides macros and an environment to generate timing
diagrams (digital waveforms) without much effort.  The TikZ package is used to
produce the graphics.  A tabular-like environment is provided to produce
larger timing diagrams.")
    (license license:lppl)))

(define-public texlive-tikz-trackschematic
  (package
    (name "texlive-tikz-trackschematic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-trackschematic/"
                   "tex/latex/tikz-trackschematic/")
             (base32
              "11dak88q9n54i385sjk4nxini2fycdfmhs2h41fdf9k2012ykdnx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-trackschematic")
    (synopsis "TikZ library for creating track diagrams in railways")
    (description
     "This TikZ library is a toolbox of symbols geared primarily towards
creating track schematic for either research or educational purposes.  It
provides a TikZ frontend to some of the symbols which may be needed to
describe situations and layouts in railway operation.  The library is divided
into sublibraries: @code{topology}, @code{trafficcontrol}, @code{vehicles},
@code{constructions}, @code{electrics}, @code{symbology}, and
@code{measures}.")
    (license license:isc)))

(define-public texlive-tikz-truchet
  (package
    (name "texlive-tikz-truchet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikz-truchet/"
                   "source/latex/tikz-truchet/"
                   "tex/latex/tikz-truchet/")
             (base32
              "1v959iw7swkkam73q759m09s5fcv932gx9d1vqj6n3b2yzxxc85b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikz-truchet")
    (synopsis "Draw Truchet tiles")
    (description
     "This is a package for LaTeX that draws Truchet tiles, as used in Colin
Beveridge's article Too good to be Truchet in issue 08 of Chalkdust.")
    (license license:expat)))

(define-public texlive-tikzbricks
  (package
    (name "texlive-tikzbricks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzbricks/"
                   "tex/latex/tikzbricks/")
             (base32
              "1wf5hdwpprbbxmd0rrwvk54raiwpv4q6qgd2gpbba6d26bmgjd1w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzbricks")
    (synopsis "Drawing bricks with TikZ")
    (description
     "This package provides a small LaTeX package to draw bricks with TikZ.
The user can modify color, shape, and viewpoint.")
    (license license:lppl1.3c)))

(define-public texlive-tikzcodeblocks
  (package
    (name "texlive-tikzcodeblocks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzcodeblocks/"
                   "tex/latex/tikzcodeblocks/")
             (base32
              "04c8bjl3l97vsh7cydbh20wnq93my19avkhcf4kh0g5cvq02nizp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzcodeblocks")
    (synopsis "Helps to draw codeblocks like Scratch, NEPO and PXT in TikZ")
    (description
     "@code{tikzcodeblocks} is a LaTeX package for typesetting blockwise
graphic programming languages like Scratch, NEPO or PXT.")
    (license license:lppl1.3c)))

(define-public texlive-tikzducks
  (package
    (name "texlive-tikzducks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tikzducks/"
                   "tex/generic/tikzducks/")
             (base32
              "08gigdsi0gc0npv2jrd2i0yqs53s0ckwk1m0lrsiaxk66bb864y3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzducks")
    (synopsis "Package for using rubber ducks in TikZ")
    (description
     "The package is a LaTeX package for ducks to be used in TikZ pictures.")
    (license license:lppl1.3c)))

(define-public texlive-tikzfill
  (package
    (name "texlive-tikzfill")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzfill/" "tex/latex/tikzfill/")
             (base32
              "0n2hnnw4ffafwd9yy6pzcv0pc580y28dvz93g4hbi25dz32sawmk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzfill")
    (synopsis "TikZ libraries for filling with images and patterns")
    (description
     "This is a collection of TikZ libraries which add further options to fill
TikZ paths with images and patterns.  The libraries comprise fillings with
images from files and from TikZ pictures.  Also, patterns of hexagons and of
rhombi are provided.")
    (license license:lppl1.3+)))

(define-public texlive-tikzinclude
  (package
    (name "texlive-tikzinclude")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzinclude/"
                   "source/latex/tikzinclude/"
                   "tex/latex/tikzinclude/")
             (base32
              "0mcgzbfvj6pksr18813kpnknkdpzlyi0rncbn9g11ac0g0lyzgqq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzinclude")
    (synopsis "Import TikZ images from colletions")
    (description
     "The package addresses the problem of importing only one TikZ-image from
a file holding multiple images.")
    (license license:lppl1.3+)))

(define-public texlive-tikzlings
  (package
    (name "texlive-tikzlings")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzlings/"
                   "tex/latex/tikzlings/")
             (base32
              "0cqja06i3s8w3wbz6dhlhbri1zhqsyh8jhyahi5v8q9ywdm389yd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzlings")
    (synopsis "Collection of cute little animals and similar creatures")
    (description
     "This package provides a collection of LaTeX packages for drawing cute
little animals and similar creatures using TikZ.  Currently, the following
TikZlings are included: anteater, bat, bear, bee, bug, cat, chicken, coati,
elephant, hippo, koala, marmot, mole, mouse, owl, panda, penguin, pig, rhino,
sheep, sloth, snowman, squirrel, and wolf.  These little drawings can be
customized in many ways.")
    (license license:lppl1.3c)))

(define-public texlive-tikzmark
  (package
    (name "texlive-tikzmark")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzmark/"
                   "source/latex/tikzmark/"
                   "tex/latex/tikzmark/")
             (base32
              "0m3yij12kgbgficln9vdgc43bi0si7j0j86lv2k69f1bwf865w4z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzmark")
    (synopsis "Use TikZ's method of remembering a position on a page")
    (description
     "The @code{tikzmark} package defines a command to remember a position on
a page for later (or earlier) use, primarily (but not exclusively) with
TikZ.")
    (license license:lppl1.3c)))

(define-public texlive-tikzmarmots
  (package
    (name "texlive-tikzmarmots")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzmarmots/"
                   "tex/latex/tikzmarmots/")
             (base32
              "0j1z78r43czg09inw76ksgs97l7klivi93w7hvcvafd47h9zcvsg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzmarmots")
    (synopsis "Drawing little marmots in TikZ")
    (description
     "This is a LaTeX package for marmots to be used in TikZ pictures.
These little figures are constructed in such a way that they may even borrow
some garments and other attributes from the TikZducks.")
    (license license:lppl1.3c)))

(define-public texlive-tikzorbital
  (package
    (name "texlive-tikzorbital")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzorbital/"
                   "tex/latex/tikzorbital/")
             (base32
              "0rjbl8gcsf752hkrn2j7angvwh55vldsd168w581frmx3g25d9rb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzorbital")
    (synopsis "Atomic and molecular orbitals using TikZ")
    (description
     "This package draws atomic s, p and d orbitals, as well as molecular
orbital diagrams.")
    (license license:lppl)))

(define-public texlive-tikzpackets
  (package
    (name "texlive-tikzpackets")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzpackets/"
                   "tex/latex/tikzpackets/")
             (base32
              "0i5v0yblm3fw0wy0vhl2a0g1r8ib72d2knk60apqvqizl98fn8ff")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzpackets")
    (synopsis "Display network packets")
    (description
     "This package allows you to easily display network packets graphically.")
    (license license:expat)))

(define-public texlive-tikzpagenodes
  (package
    (name "texlive-tikzpagenodes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzpagenodes/"
                   "source/latex/tikzpagenodes/"
                   "tex/latex/tikzpagenodes/")
             (base32
              "13ddkwm4a1x2b47zqjk2m55y2dwl09rl3s0pm1vmxv7h2sawgqbr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (home-page "https://ctan.org/pkg/tikzpagenodes")
    (synopsis "Single TikZ node for the whole page")
    (description
     "The package provides special PGF/TikZ nodes for the text, marginpar,
footer and header area of the current page.  They are inspired by the current
page node defined by PGF/TikZ itself.")
    (license license:lppl)))

(define-public texlive-tikzpeople
  (package
    (name "texlive-tikzpeople")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzpeople/"
                   "tex/latex/tikzpeople/")
             (base32
              "1sgxabjy54zcw0dkb5hgi9d84ilq4ik30xwwd1n8jhhmi4vg2sm7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzpeople")
    (synopsis "Draw people-shaped nodes in TikZ")
    (description
     "This package provides people-shaped nodes in the style of Microsoft
Visio clip art, to be used with TikZ.  The available, highly customizable,
node shapes are: alice, bob, bride, builder, businessman, charlie, chef,
conductor, cowboy, criminal, dave, devil, duck, graduate, groom, guard,
jester, judge, maninblack, mexican, nun, nurse, physician, pilot, police,
priest, sailor, santa, surgeon.")
    (license license:lppl1.3+)))

(define-public texlive-tikzpfeile
  (package
    (name "texlive-tikzpfeile")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzpfeile/"
                   "source/latex/tikzpfeile/"
                   "tex/latex/tikzpfeile/")
             (base32
              "0h6kkrm462hk2hvbdqqjai3gxsslibghxbjyq3ih0vps7fakglc6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzpfeile")
    (synopsis "Draw arrows using PGF/TikZ")
    (description
     "In a document with a lot of diagrams created with PGF/TikZ, there is
a possibility of the reader being distracted by different sorts of arrowheads
in the diagrams and in the text (as, e.g., in @code{\\rightarrow}).  The
package defines macros to create all arrows using PGF/TikZ, so as to avoid the
problem.")
    (license license:lppl)))

(define-public texlive-tikzpingus
  (package
    (name "texlive-tikzpingus")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzpingus/"
                   "makeindex/tikzpingus/"
                   "tex/latex/tikzpingus/")
             (base32
              "0cqswzdmp2154wdb9ljbqqinf9vh6vhpjn7b4adfj7sr8xji7ihj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzpingus")
    (synopsis "Penguins with TikZ")
    (description
     "@code{tikzpingus} is a package similar to tikzducks but with penguins
and a vast set of gadgets and extras (capable of changing the wing-positions,
body-types, and more).")
    (license license:gpl3)))

(define-public texlive-tikzposter
  (package
    (name "texlive-tikzposter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzposter/"
                   "source/latex/tikzposter/"
                   "tex/latex/tikzposter/")
             (base32
              "0hl5p14a79575s5n5rx4yy8vxcb2qrdhx851rhms7dk2sqcfynn5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzposter")
    (synopsis "Create scientific posters using TikZ")
    (description
     "This package provides a document class provides a simple way of using
TikZ for generating posters.  Several formatting options are available, and
spacing and layout of the poster is to a large extent automated.")
    (license license:lppl1.2+)))

(define-public texlive-tikzscale
  (package
    (name "texlive-tikzscale")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzscale/"
                   "source/latex/tikzscale/"
                   "tex/latex/tikzscale/")
             (base32
              "1iq7f9jnw86rhp7b3sim3z56ygj005zygzfc0bdnpmx5s4ds1gpv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzscale")
    (synopsis "Resize pictures while respecting text size")
    (description
     "The package extends the @code{\\includegraphics} command to support
@code{tikzpicture} environments.  It allows scaling of TikZ images and
PGFPlots to a given width or height without changing the text size.")
    (license license:lppl1.3+)))

(define-public texlive-tikzsymbols
  (package
    (name "texlive-tikzsymbols")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzsymbols/"
                   "source/latex/tikzsymbols/"
                   "tex/latex/tikzsymbols/")
             (base32
              "0q19w9adpfxrsh7jmf4qpjarhgb4wng66kjkmalcxijd99kxbkhk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzsymbols")
    (synopsis "Some symbols created using TikZ")
    (description
     "The package provides various emoticons, cooking symbols and trees.")
    (license license:lppl1.3c)))

(define-public texlive-tikztosvg
  (package
    (name "texlive-tikztosvg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/tikztosvg.1"
                   "doc/man/man1/tikztosvg.man1.pdf"
                   "doc/support/tikztosvg/"
                   "scripts/tikztosvg/")
             (base32
              "1h1g3vsljx3bz929krr21i65n20drwhwxi88gwcvrxrgsvi9xj08")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "tikztosvg")))
    (home-page "https://ctan.org/pkg/tikztosvg")
    (synopsis "Utility for rendering TikZ diagrams to SVG")
    (description
     "This package provides a shell script that calls XeTeX and
@command{pdf2svg} to convert TikZ environments to SVG files.")
    (license license:gpl3)))

(define-public texlive-tikzviolinplots
  (package
    (name "texlive-tikzviolinplots")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tikzviolinplots/"
                   "tex/latex/tikzviolinplots/")
             (base32
              "1cm1pcv4x9qpsxghvxv1w212j8p37g5miqn73d5xwy0vaqhd0hhz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tikzviolinplots")
    (synopsis "Draws violin plots from data")
    (description
     "This package enables the user to draw violin plots, calculating the
kernel density estimation from the data and plotting the resulting curve
inside a @code{tikzpicture} environment.  It supports different kernels, and
allows the user to either set the bandwidth value for each plot or use
a default value.")
    (license license:lppl1.3+)))

(define-public texlive-tile-graphic
  (package
    (name "texlive-tile-graphic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tile-graphic/"
                   "source/latex/tile-graphic/"
                   "tex/latex/tile-graphic/")
             (base32
              "1vg2nrb6cjgkmbkv8igs76vzl1vzvisqlm1y612j4144v26n05nw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tile-graphic")
    (synopsis "Create tiles of a graphical file")
    (description
     "This package breaks a given graphical file into @samp{n} rows and
@samp{m} columns of subgraphics, which are called tiles.  The tiles can be
written separately to individual PDF files, or packaged into a single PDF
file.")
    (license license:lppl1.2+)))

(define-public texlive-timing-diagrams
  (package
    (name "texlive-timing-diagrams")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/timing-diagrams/"
                   "tex/latex/timing-diagrams/")
             (base32
              "06hzcbbinrlvdsp9jxs82xi9b94x76f239z5b1x3y41ip3n51b1p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/timing-diagrams")
    (synopsis "Draw timing diagrams")
    (description
     "The package provides commands to draw and annotate various kinds of
timing diagrams, using TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-tipfr
  (package
    (name "texlive-tipfr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tipfr/" "tex/latex/tipfr/")
             (base32
              "1frgk49mw7wi18065y4ikg75vg03d2vbdflfnyanixn46zpf2p8z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tipfr")
    (synopsis "Produces calculator's keys with the help of TikZ")
    (description
     "The package provides commands to draw calculator keys with the help of
TikZ.  It also provides commands to draw the content of screens and of menu
items.")
    (license license:lppl)))

(define-public texlive-tkz-base
  (package
    (name "texlive-tkz-base")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-base/" "tex/latex/tkz-base/")
             (base32
              "0mi76p1ykifhmgzwmlkiwwq47s427n1flakiyad60dzyw953cg86")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-base")
    (synopsis "Tools for drawing with a cartesian coordinate system")
    (description
     "The bundle is a set of packages, designed to give mathematics
teachers (and students) easy access to programming of drawings with TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-tkz-berge
  (package
    (name "texlive-tkz-berge")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-berge/" "tex/latex/tkz-berge/")
             (base32
              "16pgdkf0s97gkd662pddvxr5jbk68mcbikz4rclmv88d9zlgccxr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-berge")
    (synopsis "Macros for drawing graphs of graph theory")
    (description
     "The package provides a collection of useful macros for drawing classic
graphs of graph theory, or to make other graphs.  This package has been taken
temporarily out of circulation to give the author time to investigate some
problems.")
    (license license:lppl1.3c)))

(define-public texlive-tkz-doc
  (package
    (name "texlive-tkz-doc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-doc/")
             (base32
              "00awi2m8ak949r6bxzw1l69fx8gjcn4kmrr0q0yp8qghga40c6n3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-doc")
    (synopsis "Documentation macros for the TKZ series of packages")
    (description
     "This bundle offers a documentation class (@code{tkz-doc}) and
a package (@code{tkzexample}).  These files are used in the documentation of
the author's packages @code{tkz-base}, @code{tkz-euclide}, @code{tkz-fct},
@code{tkz-linknodes}, and @code{tkz-tab}.")
    (license license:lppl1.3+)))

(define-public texlive-tkz-euclide
  (package
    (name "texlive-tkz-euclide")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-euclide/"
                   "tex/latex/tkz-euclide/")
             (base32
              "0ykhhyvrjy2q731m8dm2k73kiddy1xnznhsayyid4yjjnwdqq1bw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-euclide")
    (synopsis "Tools for drawing Euclidean geometry")
    (description
     "The @code{tkz-euclide} package is a set of files designed to give math
teachers and students easy access to the programming of Euclidean geometry
with TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-tkz-fct
  (package
    (name "texlive-tkz-fct")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-fct/" "tex/latex/tkz-fct/")
             (base32
              "0czwqkdws24qdp22s6p3m87fpfqmwdqjzwxckzkn3ig6rcl63nqj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-fct")
    (synopsis "Tools for drawing graphs of functions")
    (description
     "The @code{tkz-fct} package is designed to give math teachers (and
students) easy access to programming graphs of functions with TikZ and
Gnuplot.")
    (license license:lppl1.3+)))

(define-public texlive-tkz-graph
  (package
    (name "texlive-tkz-graph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-graph/"
                   "tex/latex/tkz-graph/")
             (base32
              "1mdfdi97d8q7jqy7l3pqqs7ai4ph5r1aci3ahfsg5zmpmkwr981r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-graph")
    (synopsis "Draw graph-theory graphs")
    (description
     "The package is designed to create graph diagrams as simply as possible,
using TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-tkz-orm
  (package
    (name "texlive-tkz-orm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-orm/" "tex/latex/tkz-orm/")
             (base32
              "0qmwiglz59djq0xkpsfgqzdf6872z33z9faxn86krs5mxmrik6cc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-orm")
    (synopsis "Create Object-Role Model (ORM) diagrams")
    (description
     "The package provides styles for drawing Object-Role Model (ORM) diagrams
in TeX based on the PGF and TikZ picture environment.")
    (license (list license:gpl2 license:lppl1.3+))))

(define-public texlive-tkz-tab
  (package
    (name "texlive-tkz-tab")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkz-tab/" "tex/latex/tkz-tab/")
             (base32
              "0j50pf0lf9dbi0zfnqm62rlyazsgbmpcqwlajqsjccqqkirdv6pb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkz-tab")
    (synopsis "Tables of signs and variations using PGF/TikZ")
    (description
     "The package provides comprehensive facilities for preparing lists of
signs and variations, using PGF.  This package has been taken temporarily out
of circulation to give the author time to investigate some problems.")
    (license license:lppl1.3+)))

(define-public texlive-tkzexample
  (package
    (name "texlive-tkzexample")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tkzexample/"
                   "tex/latex/tkzexample/")
             (base32
              "1y445fjvy13cqa9y1sbac43wbmidvfn7vb7jws11fl4lj7vvgvhz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tkzexample")
    (synopsis "Package for the documentation of all @samp{tkz-} packages")
    (description
     "This package is needed to compile the documentation of all @samp{tkz-}
packages (like @code{tkz-euclide}).")
    (license license:lppl1.3+)))

(define-public texlive-tlcockpit
  (package
    (name "texlive-tlcockpit")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/tlcockpit.1"
                   "doc/man/man1/tlcockpit.man1.pdf"
                   "doc/support/tlcockpit/"
                   "scripts/tlcockpit/"
                   "source/support/tlcockpit/")
             (base32
              "1nv0wx21x022isw8rycvqdqwiz4ay6ws36bbcpqfqkjmvz5qr76w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "tlcockpit.sh")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'locate-java
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((java (search-input-file inputs "/bin/java")))
                (substitute* "scripts/tlcockpit/tlcockpit.sh"
                  (("java -") (string-append java " -")))))))))
    ;; FIXME: missing EventTarget.class.
    (inputs (list icedtea))
    (home-page "https://ctan.org/pkg/tlcockpit")
    (synopsis "GUI frontend to TeX Live Manager")
    (description
     "This package aims at being a GUI for @command{tlmgr}, the TeX Live
Manager, with a modern look and feel.")
    (license license:gpl3+)))

(define-public texlive-tonevalue
  (package
    (name "texlive-tonevalue")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tonevalue/"
                   "tex/latex/tonevalue/")
             (base32
              "16a724k0c8s3i2pdjfsq5v2z4v5nqdpnxvh63j4ngj822w9llg1z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tonevalue")
    (synopsis
     "Tool for linguists and phoneticians to visualize tone value patterns")
    (description
     "This package provides a TikZ-based solution to typeset visualisations of
tone values.  Currently, unt's model is implemented.  Support for more models
is planned.")
    (license license:asl2.0)))

(define-public texlive-tpic2pdftex
  (package
    (name "texlive-tpic2pdftex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/tpic2pdftex.1"
                   "doc/man/man1/tpic2pdftex.man1.pdf"
                   "doc/tpic2pdftex/")
             (base32
              "02nf2fg4xzh8lbbddvm44qyvcvfn5b7kzcyg729a58l29gd88pbs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tpic2pdftex")
    (synopsis "Use @code{tpic} commands in pdfTeX")
    (description
     "The Awk script converts Pic language, embedded inline (delimited by
@code{.PS} and @code{.PE} markers), to @code{\\pdfliteral} commands.")
    (license license:gpl3+)))

(define-public texlive-tqft
  (package
    (name "texlive-tqft")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tqft/" "source/latex/tqft/"
                   "tex/latex/tqft/")
             (base32
              "08lykpnw0hifhmh96pb7s3dd8sbzmz3gqyrwy5ann9fqxxjczf2d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tqft")
    (synopsis "Drawing TQFT diagrams with TikZ/PGF")
    (description
     "The package defines some node shapes useful for drawing TQFT diagrams
with TikZ/PGF.  That is, it defines highly customisable shapes that look like
cobordisms between circles, such as those used in TQFT and other mathematical
diagrams.")
    (license license:lppl1.3+)))

(define-public texlive-tram
  (package
    (name "texlive-tram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tram/"
                   "fonts/source/public/tram/"
                   "tex/latex/tram/")
             (base32
              "1b26615dd1qs12vl9d82xcxlc718s5jgirzygss9g7m908w2hqch")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tram")
    (synopsis "Typeset tram boxes in LaTeX")
    (description
     "Tram boxes are highlighted with patterns of dots; the package defines an
environment @code{tram} that typesets its content into a tram box.  The
pattern used may be selected in an optional argument to the environment.")
    (license license:lppl)))

(define-public texlive-tsemlines
  (package
    (name "texlive-tsemlines")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/latex/tsemlines/")
             (base32
              "1c7sjdrgqbjw6f2s3185k5rlkig643pkkahjisx16h0akbbdm4k3")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tsemlines")
    (synopsis "Support for the ancient @code{\\emline} macro")
    (description
     "Occasional Documents appear, that use graphics generated by TeXcad from
the EmTeX distribution.  These documents often use the @code{\\emline} macro,
which produced lines at an arbitrary orientation.  The present package
emulates the macro, using TikZ.")
    (license license:public-domain)))

(define-public texlive-ttfutils
  (package
    (name "texlive-ttfutils")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/ttf2afm.1"
                   "doc/man/man1/ttf2afm.man1.pdf"
                   "doc/man/man1/ttf2pk.1"
                   "doc/man/man1/ttf2pk.man1.pdf"
                   "doc/man/man1/ttf2tfm.1"
                   "doc/man/man1/ttf2tfm.man1.pdf"
                   "doc/man/man1/ttfdump.1"
                   "doc/man/man1/ttfdump.man1.pdf"
                   "doc/ttf2pk/"
                   "fonts/enc/ttf2pk/base/"
                   "fonts/sfd/ttf2pk/"
                   "ttf2pk/")
             (base32
              "1yfr3yic0bx73imxhmxhnhjc1mpwy9f55sh3p430p2f2yvxwm0cs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ttfutils")
    (synopsis "Convert TrueType to TFM and PK fonts")
    (description
     "This package provides utilities to convert TrueType to TFM and PK fonts:
@command{ttf2afm}, @command{ttf2pk}, @command{ttf2tfm}, and
@command{ttfdump}.")
    (license license:gpl2+)))

(define-public texlive-twemojis
  (package
    (name "texlive-twemojis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/twemojis/"
                   "source/latex/twemojis/"
                   "tex/latex/twemojis/")
             (base32
              "0wim1325dcx779305cany8rsifi67y8pbwifs4qbh090dzx5sy6r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/twemojis")
    (synopsis "Use Twitter's open source emojis through LaTeX commands")
    (description
     "This package provides a simple wrapper which allows to use Twitter's
open source emojis through LaTeX commands.  This relies on images, so no fancy
Unicode font stuff is needed and it should work on every installation.")
    (license (list license:lppl1.3+ license:cc-by4.0))))

(define-public texlive-typeoutfileinfo
  (package
    (name "texlive-typeoutfileinfo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/typeoutfileinfo/"
                   "scripts/typeoutfileinfo/")
             (base32
              "19kz79xbr0ri3pbbxv9j2nxdk6vs99nr1ai4xdbjkw2nnx717nxy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "typeoutfileinfo.sh")))
    (home-page "https://ctan.org/pkg/typeoutfileinfo")
    (synopsis "Display class/package/file information")
    (description
     "The package provides a minimalist shell script, for Unix systems,
that displays the information content in a @code{\\ProvidesFile},
@code{\\ProvidesPackage} or @code{\\ProvidesClass} command in a LaTeX source
file.")
    (license license:lppl1.3+)))

(define-public texlive-tzplot
  (package
    (name "texlive-tzplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tzplot/" "tex/latex/tzplot/")
             (base32
              "09k84vjvl3qkp8jffv3j5bksq3jaad2p71yj715z39qf36hwvm7s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tzplot")
    (synopsis "Plot graphs with TikZ abbreviations")
    (description
     "This is a LaTeX package that provides TikZ-based macros to make it easy
to draw graphs.  The macros provided in this package are just abbreviations
for TikZ codes, which can be complicated; but using the package will hopefully
make drawing easier, especially when drawing repeatedly.  The macros were
chosen and developed with an emphasis on drawing graphs in economics.")
    (license license:lppl1.3c)))

(define-public texlive-upmendex
  (package
    (name "texlive-upmendex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/upmendex.1"
                   "doc/man/man1/upmendex.man1.pdf"
                   "doc/support/upmendex/")
             (base32
              "0mj8nmqr3z7b802kvjmnkckq89l694an7s639yghf3b9b5v7xihx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/upmendex")
    (synopsis "Multilingual index processor")
    (description
     "The package is a multilingual index processor with the following
features:
@itemize

@item mostly compatible with @command{makeindex} and upper compatible with
@command{mendex};

@item supports UTF-8 and works with upLaTeX, XeLaTeX and LuaLaTeX;

@item supports Latin (including non-English), Greek, Cyrillic, Korean Hangul
and Chinese Han (Hanzi ideographs) scripts, as well as Japanese Kana.

@item supports Devanagari, Thai, Arabic and Hebrew scripts (experimental).

@item supports four kinds of sort orders (Pinyin, Radical-Stroke, Stroke and
Zhuyin) for Chinese Han scripts (Hanzi ideographs).

@item applies International Components for Unicode (ICU) for sorting process.

@end itemize")
    (license license:bsd-3)))

(define-public texlive-utf8mex
  (package
    (name "texlive-utf8mex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/mex/utf8mex/" "tex/mex/utf8mex/")
             (base32
              "13013asha1v6vk743hxk4naciiham0cpar6jw0ndlh7mbmyll2y8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/utf8mex")
    (synopsis "Tools to produce formats that read Polish language input")
    (description
     "The bundle provides files for building formats to read input in Polish
encodings.")
    (license license:public-domain)))

(define-public texlive-utfsym
  (package
    (name "texlive-utfsym")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/utfsym/" "tex/latex/utfsym/")
             (base32
              "0bbdhi9fy3bzm9qrjca8ghl04pv9iky380if17w1hxhp2jpd691b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/utfsym")
    (synopsis "Provides various Unicode symbols")
    (description
     "This package provides various symbols from the Unicode in order to be
able to use them originally in a school setting such as on worksheets.")
    (license license:cc0)))

(define-public texlive-venndiagram
  (package
    (name "texlive-venndiagram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/venndiagram/"
                   "source/latex/venndiagram/"
                   "tex/latex/venndiagram/")
             (base32
              "1n48jgb0kbbnyk5pjg99l8hb1b3f1h30z78cl9lza2pi11p8mbgj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/venndiagram")
    (synopsis "Creating Venn diagrams with TikZ")
    (description
     "The package assists generation of simple two- and three-set Venn
diagrams for lectures or assignment sheets.")
    (license license:lppl)))

(define-public texlive-visualfaq
  (package
    (name "texlive-visualfaq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/visualfaq/")
             (base32
              "0fjx5y95n8bhsnwsw34sazbgygznvw76z01rrxmn1bp8za7751n0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/visualfaq")
    (synopsis "Visual LaTeX FAQ")
    (description
     "Having trouble finding the answer to a LaTeX question?  The @emph{Visual
LaTeX FAQ} is a search interface that presents over a hundred typeset samples
of frequently requested document formatting.  Simply click on a hyperlinked
piece of text and the @emph{Visual LaTeX FAQ} will send your web browser to
the appropriate page in the TeX FAQ.")
    (license license:lppl)))

(define-public texlive-visualfaq-fr
  (package
    (name "texlive-visualfaq-fr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/visualfaq-fr/")
             (base32
              "0xk0qly49dqkrw1qjhnyp4r7y5jykghlp1y26hipghlaqqhdynga")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/visualfaq-fr")
    (synopsis "FAQ LaTeX visuelle francophone")
    (description
     "The Visual LaTeX FAQ is an innovative new search interface on LaTeX
Frequently Asked Questions.  This version is a French translation, offering
links to the French-speaking LaTeX FAQ.")
    (license license:lppl1.3c)))

(define-public texlive-visualpstricks
  (package
    (name "texlive-visualpstricks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/visualpstricks/")
             (base32
              "1wfri908smlw1ngqq1mjll2b80b29piicqmv67x0xs1v3kc2sz3s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/visualpstricks")
    (synopsis "Visual help for PSTricks based on images with minimum text")
    (description
     "Visual help for PSTricks based on images with minimum text, one image
per command or per parameter.")
    (license license:gpl3+)))

(define-public texlive-visualtikz
  (package
    (name "texlive-visualtikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/visualtikz/")
             (base32
              "1q0a1mhc330z8cnhghp2p46bxsmzz8cdba8hcvssglz0gsq5z5fc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/visualtikz")
    (synopsis "Visual help for TikZ based on images with minimum text")
    (description
     "This package provides a visual help for TikZ based on images with
minimum text: an image per command or parameter.  The document is in French,
but will be translated into English later.")
    (license license:lppl1.3+)))

(define-public texlive-web
  (package
    (name "texlive-web")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/tangle.1"
                   "doc/man/man1/tangle.man1.pdf"
                   "doc/man/man1/weave.1"
                   "doc/man/man1/weave.man1.pdf")
             (base32
              "0iiyzzrgwakw7ipdnwmjwcrqayzq4yn4786zlr9zirmmj34hpamz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/web")
    (synopsis "Original literate programming system")
    (description
     "The system processes web files in two ways: firstly to rearrange them to
produce compilable code (using the program @command{tangle}), and secondly to
produce a TeX source (using the program @command{weave}) that may be typeset
for comfortable reading.")
    (license license:knuth)))

(define-public texlive-wheelchart
  (package
    (name "texlive-wheelchart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/wheelchart/"
                   "tex/latex/wheelchart/")
             (base32
              "0p1fw6xxrf7s0k5pvll8iy66wxbvy2bw5372l3lxkbdzjjfxa46j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/wheelchart")
    (synopsis "Draw wheelcharts with TikZ")
    (description
     "This package is based on the package TikZ and can be used to draw
wheelcharts with TikZ.  It provides several options to customize the
wheelcharts.")
    (license license:lppl1.3c)))

(define-public texlive-worldflags
  (package
    (name "texlive-worldflags")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/worldflags/"
                   "tex/latex/worldflags/")
             (base32
              "08biibvfa6fbrq1zsan8yib0cds6azp1ldwqlg5gd9j5r5aaqj5i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/worldflags")
    (synopsis "Drawing flags with TikZ")
    (description
     "This is a package for drawing flags using TikZ.  Currently the national
flags of all independent nations are included, along with some other flags of
various organizations.  A flag can be drawn as a single TikZ-picture within
ordinary text, and as a picture element within a TikZ-picture.  The appearance
of a flag (size, frame etc.)  can be adapted using optional parameters.")
    (license license:lppl1.3+)))

(define-public texlive-xepersian
  (package
    (name "texlive-xepersian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xepersian/"
                   "fonts/misc/xetex/fontmapping/xepersian/"
                   "source/xelatex/xepersian/"
                   "tex/xelatex/xepersian/")
             (base32
              "1h6nicajnvrrr72yixcdzcwdck82qa3zv2k2k6q5xprsf9sz8yly")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xepersian")
    (synopsis "Persian for LaTeX, using XeTeX")
    (description
     "This package provides a convenient interface for typesetting Persian and
English texts in LaTeX, using the XeTeX engine.")
    (license license:lppl1.3c)))

(define-public texlive-xepersian-hm
  (package
    (name "texlive-xepersian-hm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xepersian-hm/"
                   "source/xelatex/xepersian-hm/"
                   "tex/xelatex/xepersian-hm/")
             (base32
              "0lq5bam9vx2phwphy2ig9hygsz4vvz4bx2c6f87my84kp8n3w25n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xepersian-hm")
    (synopsis "Fixes kashida feature in XePersian package")
    (description
     "The kashida feature in XePersian has problems with some fonts such as
the HM Series fonts and the XB Series fonts.  This package fixes these
problems.")
    (license license:lppl1.3c)))

(define-public texlive-xindex
  (package
    (name "texlive-xindex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/xindex/" "scripts/xindex/"
                   "tex/latex/xindex/" "tex/lualatex/xindex/")
             (base32
              "1zcfr6vxh49cwpqa594ibmjxs775z08l5pqz36w3013dzh6m3yh1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "xindex.lua")))
    (home-page "https://ctan.org/pkg/xindex")
    (synopsis "Unicode compatible index generation")
    (description
     "This package provides a Unicode compatible index programm for LaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-xistercian
  (package
    (name "texlive-xistercian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xistercian/"
                   "source/latex/xistercian/"
                   "tex/latex/xistercian/")
             (base32
              "021iwd8w19dbj1iqm1fdf9s06lysbrackz0g897nmsf0fks6qf4r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xistercian")
    (synopsis "Cistercian numerals in LaTeX")
    (description
     "@code{xistercian} allows you to use Cistercian numerals in LaTeX.
The glyphs are created using PGF and to a certain degree configurable.  You
can use Cistercian numerals as page numbers using
@code{\\pagenumbering@{cistercian@}}.  The two main macros are:
@code{\\cistercian@{<counter>@}}, which formats the LaTeX2e counter as
a Cistercian numeral, and @code{\\cisterciannum@{<integer>@}}, formats the
integer (given as a string) as a Cistercian numeral.")
    (license license:lppl1.3c)))

(define-public texlive-xpdfopen
  (package
    (name "texlive-xpdfopen")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pdfclose.1"
                   "doc/man/man1/pdfclose.man1.pdf"
                   "doc/man/man1/pdfopen.1"
                   "doc/man/man1/pdfopen.man1.pdf")
             (base32
              "130wvaypfrg9sav0pdcdy1g10fll8pqcsqsy70fxlzzr937glsh1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xpdfopen")
    (synopsis "Commands to control PDF readers, under X11")
    (description
     "The command-line programs @command{pdfopen} and @command{pdfclose} allow
you to control the X Window System version of Adobe's Acrobat Reader from the
command line or from within a (shell) script.  The programs work with
@command{xpdf} and @command{evince}.")
    (license license:public-domain)))

(define-public texlive-xpicture
  (package
    (name "texlive-xpicture")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xpicture/"
                   "source/latex/xpicture/"
                   "tex/latex/xpicture/")
             (base32
              "0pzqnrk7mw1k9madah2ym9qsy20d8i1x1abkvkxvx7rxw7w38s2p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xpicture")
    (synopsis "Extensions of LaTeX picture drawing")
    (description
     "The package extends the facilities of the @code{pict2e} and the
@code{curve2e} packages, providing extra reference frames, conic section
curves, graphs of elementary functions and other parametric curves.")
    (license license:lppl1.3+)))

(define-public texlive-amiri
  (package
    (name "texlive-amiri")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/amiri/"
                   "fonts/truetype/public/amiri/")
             (base32
              "1d6yrh34fka9371a3vq72df593prik6s7z1i6myd0nix0c9jihp6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amiri")
    (synopsis "Classical Arabic typeface, Naskh style")
    (description
     "Amiri is a classical Arabic typeface in Naskh style for typesetting books
and other running text.  It is a revival of the beautiful typeface pioneered
in the early 20th century by Bulaq Press in Cairo, also known as Amiria Press,
after which the font is named.  The project aims at the revival of the
aesthetics and traditions of Arabic typesetting, and adapting it to the era of
digital typesetting, in a publicly available form.")
    (license license:silofl1.1)))

(define-public texlive-amiweb2c-guide
  (package
    (name "texlive-amiweb2c-guide")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amiweb2c-guide/")
             (base32
              "0cxwsx49p3c162ysv0ydyxdncfg8ij9sx2x7c4pvzb0yidvad01c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amiweb2c-guide")
    (synopsis "How to install AmiWeb2c")
    (description
     "This is a guide for the installation of (La)TeX with the Amiga port of
Web2C named AmiWeb2C in the version 2.1 on an emulated Amiga 4000 computer
running Workbench 3.1.  Furthermore the installation of an ARexx server for
calling LaTeX from an editor is described and some tips for the installation
of new fonts are given.")
    (license license:lppl1.3c)))

(define-public texlive-amsfonts
  (package
    (name "texlive-amsfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/amsfonts/"
                   "fonts/afm/public/amsfonts/cm/"
                   "fonts/afm/public/amsfonts/cmextra/"
                   "fonts/afm/public/amsfonts/cyrillic/"
                   "fonts/afm/public/amsfonts/euler/"
                   "fonts/afm/public/amsfonts/latxfont/"
                   "fonts/afm/public/amsfonts/symbols/"
                   "fonts/map/dvips/amsfonts/"
                   "fonts/source/public/amsfonts/cmextra/"
                   "fonts/source/public/amsfonts/cyrillic/"
                   "fonts/source/public/amsfonts/dummy/"
                   "fonts/source/public/amsfonts/symbols/"
                   "fonts/tfm/public/amsfonts/cmextra/"
                   "fonts/tfm/public/amsfonts/cyrillic/"
                   "fonts/tfm/public/amsfonts/dummy/"
                   "fonts/tfm/public/amsfonts/euler/"
                   "fonts/tfm/public/amsfonts/symbols/"
                   "fonts/type1/public/amsfonts/cm/"
                   "fonts/type1/public/amsfonts/cmextra/"
                   "fonts/type1/public/amsfonts/cyrillic/"
                   "fonts/type1/public/amsfonts/euler/"
                   "fonts/type1/public/amsfonts/latxfont/"
                   "fonts/type1/public/amsfonts/symbols/"
                   "source/latex/amsfonts/"
                   "tex/latex/amsfonts/"
                   "tex/plain/amsfonts/")
             (base32
              "0phhzcxapa5607pk37agr981rg90zw2p4rqv7sk7i19byr867a1b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/amsfonts")
    (synopsis "TeX fonts from the American Mathematical Society")
    (description
     "This package provides an extended set of fonts for use in mathematics,
including: extra mathematical symbols; blackboard bold letters (uppercase
only); fraktur letters; subscript sizes of bold math italic and bold Greek
letters; subscript sizes of large symbols such as sum and product; added sizes
of the Computer Modern small caps font; cyrillic fonts (from the University of
Washington); Euler mathematical fonts.  All fonts are provided as Adobe Type
1 files, and all except the Euler fonts are provided as METAFONT source.  The
distribution also includes the canonical Type 1 versions of the Computer
Modern family of fonts.  The Euler fonts are supported by separate packages;
details can be found in the documentation.")
    (license license:silofl1.1)))

(define-deprecated-package texlive-fonts-amsfonts texlive-amsfonts)
(define-deprecated-package texlive-latex-amsfonts texlive-amsfonts)

(define-public texlive-mkpattern
  (package
    (name "texlive-mkpattern")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/mkpattern/" "tex/plain/mkpattern/")
             (base32
              "0sxnkbcc802jl3fj56x9hvg978bpv15lhrwj0aykb4syq29l47ga")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mkpattern")
    (synopsis "Utility for making hyphenation patterns")
    (description
     "Mkpattern is a general purpose program for the generation of hyphenation
patterns, with definition of letter sets and template-like constructions.  It
also provides an easy way to handle different input and output encodings, and
features generation of clean UTF-8 patterns.")
    (license license:lppl)))

(define-public texlive-ec
  (package
    (name "texlive-ec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/ec/"
                   "fonts/source/jknappen/ec/"
                   "fonts/tfm/jknappen/ec/")
             (base32
              "1cyi0vv9dnp45s0ilsrbkyznj9ji62s5bhkqgh49461mv2f8qj6p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/ec")
    (synopsis "Computer modern fonts in T1 and TS1 encodings")
    (description
     "The EC fonts are European Computer Modern Fonts, supporting the complete
LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
These fonts are intended to be stable with no changes being made to the tfm
files.  The set also contains a Text Companion Symbol font, called @code{tc},
featuring many useful characters needed in text typesetting, for example
oldstyle digits, currency symbols (including the newly created Euro symbol),
the permille sign, copyright, trade mark and servicemark as well as a copyleft
sign, and many others.  The fonts are available in (traced) Adobe Type
1 format, as part of the @code{cm-super} bundle.  The other Computer
Modern-style T1-encoded Type 1 set, Latin Modern, is not actually a direct
development of the EC set, and differs from the EC in a number of
particulars.")
    (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
texlive-2019.3/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))

(define-deprecated-package texlive-fonts-ec texlive-ec)

;; This provides etex.src which is needed to build various formats, including
;; luatex.fmt and pdflatex.fmt
(define-public texlive-etex
  (package
    (name "texlive-etex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/etex/base/"
                   "doc/man/man1/etex.1"
                   "doc/man/man1/etex.man1.pdf"
                   "fonts/source/public/etex/"
                   "fonts/tfm/public/etex/"
                   "tex/plain/etex/")
             (base32
              "1q48645qgjcl2jmpd0x0ip5wwdan54y9vx06zyvpp51wia30sacy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://www.ctan.org/pkg/etex")
    (synopsis "Extended version of TeX")
    (description
     "This package provides an extended version of TeX (which is capable of
running as if it were TeX unmodified).  E-TeX has been specified by the LaTeX
team as the engine for the development of LaTeX2e; as a result, LaTeX
programmers may assume e-TeX functionality.  The pdftex engine directly
incorporates the e-TeX extensions.")
    (license license:knuth)))

(define-public texlive-etex-pkg
  (package
    (name "texlive-etex-pkg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/etex-pkg/" "tex/latex/etex-pkg/")
             (base32
              "10bvvn3s3lmzjscnb2qxkj1ba9qxx0q1w2spcsjpwf20dvym19py")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/etex-pkg")
    (synopsis "E-TeX support package")
    (description
     "The package provides support for LaTeX documents to use many of the
extensions offered by e-TeX; in particular, it modifies LaTeX's register
allocation macros to make use of the extended register range.  The
@code{etextools} package provides macros that make more sophisticated use of
e-TeX's facilities.")
    (license license:lppl1.3+)))

(define-public texlive-eulervm
  (package
    (name "texlive-eulervm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eulervm/"
                   "fonts/tfm/public/eulervm/"
                   "fonts/vf/public/eulervm/"
                   "source/latex/eulervm/" "tex/latex/eulervm/")
             (base32
              "118yidwnqw4acap2wdykcdx2cxp8q2ganz67ls6rkg6fid325mkq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eulervm")
    (synopsis "Euler virtual math fonts")
    (description
     "The Euler fonts are suitable for typsetting mathematics in conjunction
with a variety of text fonts that do not provide mathematical character sets
of their own.  Euler-VM is a set of virtual mathematics fonts based on Euler
and CM. This approach has several advantages over immediately using the real
Euler fonts. Most noticeably, less TeX resources are consumed, the quality of
various math symbols is improved and a usable @code{\\hslash} symbol can be
provided.  The virtual fonts are accompanied by a LaTeX package which makes
them easy to use, particularly in conjunction with Type1 PostScript text
fonts.  They are compatible with @code{amsmath}.  A package option allows the
fonts to be loaded at 95% of their nominal size, thus blending better with
certain text fonts, e.g., Minion.")
    (license license:lppl)))

(define-public texlive-plain
  (package
    (name "texlive-plain")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "makeindex/plain/" "tex/plain/base/"
                   "tex/plain/config/")
             (base32
              "0zwvrfw8z28c9dy8nby5qfwbyrd2a0cdfwyd5jndscjczhw0yi62")))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-engine "tex"
      #:tex-format #f
      #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/plain")
    (synopsis "Plain TeX format and supporting files")
    (description
     "This package contains files used to build the Plain TeX format, as
described in the TeXbook, together with various supporting files (some also
discussed in the book).")
    (license license:knuth)))

(define-deprecated-package texlive-tex-plain texlive-plain)

(define-public texlive-pxfonts
  (package
    (name "texlive-pxfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/pxfonts/"
                   "fonts/afm/public/pxfonts/"
                   "fonts/map/dvips/pxfonts/"
                   "fonts/tfm/public/pxfonts/"
                   "fonts/type1/public/pxfonts/"
                   "fonts/vf/public/pxfonts/"
                   "tex/latex/pxfonts/")
             (base32
              "0z2ls46x2l79saq4l1d2cqwazhpg79b9hqsf90wzx70676mxcwac")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pxfonts")
    (synopsis "Palatino-like fonts in support of mathematics")
    (description
     "Pxfonts supplies virtual text roman fonts using Adobe Palatino (or
URWPalladioL) with some modified and additional text symbols in the OT1, T1,
and TS1 encodings; maths alphabets using Palatino/Palladio; maths fonts
providing all the symbols of the Computer Modern and AMS fonts, including all
the Greek capital letters from CMR; and additional maths fonts of various
other symbols.  The set is complemented by a sans-serif set of text fonts,
based on Helvetica/NimbusSanL, and a monospace set derived from the parallel
TX font set.  All the fonts are in Type 1 format (AFM and PFB files), and are
supported by TeX metrics (VF and TFM files) and macros for use with LaTeX.")
    (license license:gpl3+)))

(define-public texlive-halloweenmath
  (package
    (name "texlive-halloweenmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/halloweenmath/"
                   "source/latex/halloweenmath/"
                   "tex/latex/halloweenmath/")
             (base32
              "1xq72k1p820b5q3haxf936g69p6gv34hr30870l96jnxa3ad7y05")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'non-interactive-build
            ;; When it realizes it cannot employ the usedir directive, the
            ;; build process stops and waits for an input before inserting
            ;; generated files in the working directory.  Do not ask for an
            ;; input.
            (lambda _
              (substitute* "source/latex/halloweenmath/halloweenmath.ins"
                (("\\Ask.*") "")
                (("\\(your .*? will be ignored\\).*") "")))))))
    (native-inputs (list texlive-cm))
    (home-page "https://ctan.org/pkg/halloweenmath")
    (synopsis "Scary and creepy math symbols with AMS-LaTeX integration")
    (description
     "The package defines a handful of commands for typesetting mathematical
symbols of various kinds, ranging from large operators to extensible
arrow-like relations and growing arrow-like math accents that all draw from
the classic Halloween-related iconography (pumpkins, witches, ghosts, cats,
and so on) while being, at the same time, seamlessly integrated within the
rest of the mathematics produced by (AmS-)LaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-haranoaji
  (package
    (name "texlive-haranoaji")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/haranoaji/"
                   "fonts/opentype/public/haranoaji/")
             (base32
              "06lkgiylh0vjxqm8i4dvygna0zb112dw5xxlh8r5hr5kf2805m99")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/haranoaji")
    (synopsis "Harano Aji fonts")
    (description
     "Harano Aji fonts (Harano Aji Mincho and Harano Aji Gothic) are fonts
obtained by replacing Adobe-Identity-0 (AI0) CIDs of Source Han fonts (Source
Han Serif and Source Han Sans) with Adobe-Japan1 (AJ1) CIDs.  There are 14
fonts, 7 weights each for Mincho and Gothic.")
    (license license:silofl1.1)))

(define-public texlive-haranoaji-extra
  (package
    (name "texlive-haranoaji-extra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/haranoaji-extra/"
                   "fonts/opentype/public/haranoaji-extra/")
             (base32
              "1zy3bv836rmpqimky7b2xgsmdh6xkkbnjiljraci2vnfgwl1q3pb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/haranoaji-extra")
    (synopsis "Extra weights for Harano Aji fonts")
    (description
     "Harano Aji fonts (Harano Aji Mincho and Harano Aji Gothic) are fonts
obtained by replacing Adobe-Identity-0 (AI0) CIDs of Source Han fonts (Source
Han Serif and Source Han Sans) with Adobe-Japan1 (AJ1) CIDs.  This package
provides extra weights for these fonts.")
    (license license:silofl1.1)))

(define-public texlive-hardwrap
  (package
    (name "texlive-hardwrap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hardwrap/" "source/latex/hardwrap/"
                   "tex/latex/hardwrap/")
             (base32
              "0ql3xml1ccll44q945n7w72p6d51y5wcrkawi7cg621gy5d6wzx5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hardwrap")
    (synopsis "Hard wrap text to a certain character length")
    (description
     "The package facilitates wrapping text to a specific character width,
breaking lines by words rather than, as done by TeX, by characters.  The
primary use for these facilities is to aid the generation of messages sent to
the log file or console output to display messages to the user.  Package
authors may also find this useful when writing out arbitrary text to an
external file.")
    (license license:lppl1.3+)))

(define-public texlive-hatching
  (package
    (name "texlive-hatching")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/hatching/"
                   "metapost/hatching/")
             (base32
              "1rkxx57rpzk8i0msbyrzcgmbvmjjrg295qg508w3v3dsy0f0krjj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hatching")
    (synopsis "MetaPost macros for hatching interior of closed paths")
    (description
     "The file @file{hatching}.mp contains a set of MetaPost macros for
hatching interior of closed paths.")
    (license license:public-domain)))

(define-public texlive-helvetic
  (package
    (name "texlive-helvetic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/helvetic/"
                   "fonts/afm/adobe/helvetic/"
                   "fonts/afm/urw/helvetic/"
                   "fonts/map/dvips/helvetic/"
                   "fonts/tfm/adobe/helvetic/"
                   "fonts/tfm/monotype/helvetic/"
                   "fonts/tfm/urw35vf/helvetic/"
                   "fonts/type1/urw/helvetic/"
                   "fonts/vf/adobe/helvetic/"
                   "fonts/vf/monotype/helvetic/"
                   "fonts/vf/urw35vf/helvetic/"
                   "tex/latex/helvetic/")
             (base32
              "0c3f1ly7y6404z0akbfbbfql13sz717v0n0g69qjpr69hi4n0nsl")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Helvetica font")
    (description
     "This package provides a drop-in replacement for the Helvetica font from
Adobe's basic set.")
    ;; No license version specified.
    (license license:gpl3+)))

(define-public texlive-ieejtran
  (package
    (name "texlive-ieejtran")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/ieejtran/"
                   "doc/bibtex/ieejtran/")
             (base32
              "01bcw45v6mbyb1gzykzk5ccwz70s6591994xrj84z9ljgzp06lyg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ieejtran")
    (synopsis
     "Unofficial bibliography style file for the Institute of Electrical
Engineers of Japan")
    (description
     "This package provides an unofficial BibTeX style for authors of the
Institute of Electrical Engineers of Japan (IEEJ) transactions journals and
conferences.")
    (license license:expat)))

(define-public texlive-inputenx
  (package
    (name "texlive-inputenx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/inputenx/" "source/latex/inputenx/"
                   "tex/latex/inputenx/")
             (base32
              "0snjndrcynm4w8m9iq8gmadzhrbwvsdy4y1ak24ia0hpsicdi4aj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/inputenx")
    (synopsis "Enhanced input encoding handling")
    (description
     "This package deals with input encodings.  It provides a wider range of
input encodings using standard mappings, than does @code{inputenc}.  It also
covers nearly all slots.  In this way, it serves as more up to date
replacement for the @code{inputenc} package.")
    (license license:lppl1.3+)))

(define-public texlive-kpathsea
  (package
    (name "texlive-kpathsea")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/dir"
                   "doc/info/kpathsea.info"
                   "doc/info/tds.info"
                   "doc/info/web2c.info"
                   "doc/kpathsea/"
                   "doc/man/man1/kpseaccess.1"
                   "doc/man/man1/kpseaccess.man1.pdf"
                   "doc/man/man1/kpsereadlink.1"
                   "doc/man/man1/kpsereadlink.man1.pdf"
                   "doc/man/man1/kpsestat.1"
                   "doc/man/man1/kpsestat.man1.pdf"
                   "doc/man/man1/kpsewhich.1"
                   "doc/man/man1/kpsewhich.man1.pdf"
                   "doc/web2c/web2c.html"
                   "doc/web2c/web2c.pdf"
                   "web2c/amiga-pl.tcx"
                   "web2c/cp1250cs.tcx"
                   "web2c/cp1250pl.tcx"
                   "web2c/cp1250t1.tcx"
                   "web2c/cp227.tcx"
                   "web2c/cp852-cs.tcx"
                   "web2c/cp852-pl.tcx"
                   "web2c/cp8bit.tcx"
                   "web2c/empty.tcx"
                   "web2c/fmtutil.cnf"
                   "web2c/il1-t1.tcx"
                   "web2c/il2-cs.tcx"
                   "web2c/il2-pl.tcx"
                   "web2c/il2-t1.tcx"
                   "web2c/kam-cs.tcx"
                   "web2c/kam-t1.tcx"
                   "web2c/macce-pl.tcx"
                   "web2c/macce-t1.tcx"
                   "web2c/maz-pl.tcx"
                   "web2c/mktex.cnf"
                   "web2c/mktex.opt"
                   "web2c/mktexdir"
                   "web2c/mktexdir.opt"
                   "web2c/mktexnam"
                   "web2c/mktexnam.opt"
                   "web2c/mktexupd"
                   "web2c/natural.tcx"
                   "web2c/tcvn-t5.tcx"
                   "web2c/texmf.cnf"
                   "web2c/viscii-t5.tcx")
             (base32
              "104kn06vmk7ljpz3sjnsr7r69p0i6nwad2v8gimdl2f38a53s5n3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-references
            (lambda _
              (let ((dirs (map dirname (list (which "sed")
                                             (which "awk")))))
                (substitute* '("web2c/mktexdir"
                               "web2c/mktexnam"
                               "web2c/mktexupd")
                  (("^version=" m)
                   (format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
                           dirs m)))))))))
    (inputs (list sed gawk))
    (home-page "https://ctan.org/pkg/kpathsea")
    (synopsis "Files related to the path searching library for TeX")
    (description
     "Kpathsea is a library and utility programs which provide path searching
facilities for TeX file types, including the self-locating feature required
for movable installations, layered on top of a general search mechanism.  This
package provides supporting files.")
    (license license:lgpl3+)))

(define-public texlive-kpfonts
  (package
    (name "texlive-kpfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/kpfonts/"
                   "fonts/afm/public/kpfonts/"
                   "fonts/enc/dvips/kpfonts/"
                   "fonts/map/dvips/kpfonts/"
                   "fonts/tfm/public/kpfonts/"
                   "fonts/type1/public/kpfonts/"
                   "fonts/vf/public/kpfonts/"
                   "tex/latex/kpfonts/")
             (base32
              "0m5waxqrkm1i59i9vbn9ai9zjn7cl0f36iccwn2d73lhrqhbn16q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kpfonts")
    (synopsis "Complete set of fonts for text and mathematics")
    (description
     "The family contains text fonts in roman, sans-serif and monospaced
shapes, with true small caps and old-style numbers; the package offers full
support of the textcomp package.  The mathematics fonts include all the AMS
fonts, in both normal and bold weights.  Each of the font types is available
in two main versions: default and light.  Each version is available in four
variants: default; oldstyle numbers; oldstyle numbers with old ligatures such
as ct and st, and long-tailed capital Q; and veryoldstyle with long s.  Other
variants include small caps as default or large small caps, and for
mathematics both upright and slanted shapes for Greek letters, as well as
default and narrow versions of multiple integrals.")
    (license license:gpl3+)))

(define-public texlive-latexconfig
  (package
    (name "texlive-latexconfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/latex/latexconfig/")
             (base32
              "1x5fyr2185nx3qlyariykdz44hcy5azimrk9db2p707dg08bjhsd")))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/latexconfig")
    (synopsis "Configuration files for LaTeX-related formats")
    (description "The package provides configuration files for LaTeX-related
formats.")
    (license license:lppl)))

(define-public texlive-latex-bin
  (package
    (name "texlive-latex-bin")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvilualatex.1"
                   "doc/man/man1/dvilualatex.man1.pdf"
                   "doc/man/man1/latex.1"
                   "doc/man/man1/latex.man1.pdf"
                   "doc/man/man1/lualatex.1"
                   "doc/man/man1/lualatex.man1.pdf"
                   "doc/man/man1/pdflatex.1"
                   "doc/man/man1/pdflatex.man1.pdf")
             (base32
              "1mhdc8a37b9j64kc8c8171s8p7ixklbf1ijr4vfh7af2k416qf8d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:create-formats #~(list "dvilualatex" "latex" "lualatex" "pdflatex")))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-everyshi
           texlive-firstaid
           texlive-graphics
           texlive-hyphen-complete
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-latexconfig
           texlive-lm
           texlive-luahbtex
           texlive-luaotfload
           texlive-luatex
           texlive-pdftex
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/latex-bin")
    (synopsis "LaTeX formats and man pages")
    (description
     "This package provides LaTeX format files and man pages along with
several packages that are considered as part of the LaTeX kernel.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-base texlive-latex-bin)

(define-public texlive-atenddvi
  (package
    (name "texlive-atenddvi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/atenddvi/"
                   "source/latex/atenddvi/"
                   "tex/latex/atenddvi/")
             (base32
              "1fwa5233mdgvixhl2rzn9s06zz52j6ml7hfzd4194bn389n9syhk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/atenddvi")
    (synopsis "Provide the @code{\\AtEndDvi} command for older LaTeX format")
    (description
     "This package is unneeded and does nothing when used with a LaTeX format
2020-10-01 or newer as in this case the format provides the @code{\\AtEndDvi}
command.  For older formats it implements @code{\\AtEndDvi}, a counterpart to
@code{\\AtBeginDvi}.  The execution of its argument is delayed to the end of
the document at the end of the last page.  Thus @code{\\special} and
@code{\\write} remain effective, because they are put into the last page.
This is the main difference to @code{\\AtEndDocument}.")
    (license license:lppl1.3c+)))

(define-public texlive-attachfile
  (package
    (name "texlive-attachfile")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/attachfile/"
                   "doc/latex/attachfile/"
                   "source/latex/attachfile/"
                   "tex/latex/attachfile/")
             (base32
              "0340c4rvxhhk95wlhf54n9akiwhj6pj0bslys6bkq29x9903zx5h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/attachfile")
    (synopsis "Attach arbitrary files to a PDF document")
    (description
     "Starting with PDF 1.3, PDF files can contain file attachments, i.e.,
arbitrary files that a reader can extract, just like attachments to an e-mail
message.  The @code{attachfile} package brings this functionality to pdfLaTeX
and provides some additional features such as the ability to use arbitrary
LaTeX code for the file icon.  Settings can be made either globally or on
a per-attachment basis.  @code{attachfile} makes it easy to attach files and
customize their appearance in the enclosing document.")
    (license license:lppl1.3+)))

(define-public texlive-attachfile2
  (package
    (name "texlive-attachfile2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/attachfile2/"
                   "doc/man/man1/pdfatfi.1"
                   "doc/man/man1/pdfatfi.man1.pdf"
                   "scripts/attachfile2/"
                   "source/latex/attachfile2/"
                   "tex/latex/attachfile2/")
             (base32
              "14glnfyp58ka78l5kc09mc96km7jd77qvsby0p8dpjhvwf6qfzg8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pdfatfi.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/attachfile2")
    (synopsis "Attach files into PDF")
    (description
     "This package can be used to attach files to a PDF document.  It is
a further development of Scott Pakin's package @code{attachfile} for pdfTeX.
Apart from bug fixes, this package adds support for dvips, some new options,
and gets and writes meta information data about the attached files.")
    (license license:lppl1.3c)))

(define-public texlive-atveryend
  (package
    (name "texlive-atveryend")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/atveryend/"
                   "source/latex/atveryend/"
                   "tex/latex/atveryend/")
             (base32
              "1rp805h0m99rxs107a798l951lyahlnp7irfklfadn2a2ljzhafn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip texlive-pdftex))
    (home-page "https://ctan.org/pkg/atveryend")
    (synopsis "Hooks at the very end of a document")
    (description
     "This LaTeX packages provides two hooks for @code{\\end{document}} that
are executed after the hook of @code{\\AtEndDocument}:
@code{\\AfterLastShipout} can be used for code that is to be executed right
after the last @code{\\clearpage} before the @file{.aux} file is closed.
@code{\\AtVeryEndDocument} is used for code after closing and final reading of
the @file{.aux} file.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-atveryend texlive-atveryend)

(define-public texlive-automata
  (package
    (name "texlive-automata")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/automata/"
                   "metapost/automata/")
             (base32
              "0y02wp1w2jkhrxanz7r699kr08bmbfn0h0xaxj3zh4xj9745d7d7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/automata")
    (synopsis "Finite state machines, graphs and trees in MetaPost")
    (description
     "The package offers a collection of macros for MetaPost to make easier to
draw finite-state machines, automata, labelled graphs, etc.  The user defines
nodes, which may be isolated or arranged into matrices or trees; edges connect
pairs of nodes through arbitrary paths.  Parameters, that specify the shapes
of nodes and the styles of edges, may be adjusted.")
    (license license:lppl)))

(define-public texlive-auxhook
  (package
    (name "texlive-auxhook")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/auxhook/" "source/latex/auxhook/"
                   "tex/latex/auxhook/")
             (base32
              "1qfs7bz8ryp4prr2fw4hwypnfc6yr4rc4wd8qy4rpmab0hab0vdy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/auxhook")
    (synopsis "Hooks for auxiliary files")
    (description
     "This package provides hooks for adding code at the beginning of
@file{.aux} files.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-auxhook texlive-auxhook)

(define-public texlive-epspdf
  (package
    (name "texlive-epspdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/epspdf.info" "doc/support/epspdf/"
                   "scripts/epspdf/")
             (base32
              "0sxn3dff0nxiw68h1kr86rmnc72xkc62fk94j590a4di1lh2firl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "epspdf.tlu" "epspdftk.tcl")))
    (inputs (list tcl tk))
    (home-page "https://ctan.org/pkg/epspdf")
    (synopsis "Converter for PostScript, EPS and PDF")
    (description
     "Epspdftk.tcl is a GUI PS/EPS/PDF converter.  Epspdf.tlu, its
command-line backend, can be used by itself.  Options include grayscaling,
cropping margins and single-page selection.  Some conversion options are made
possible by converting in multiple steps.")
    (license license:gpl2)))

(define-public texlive-epstopdf
  (package
    (name "texlive-epstopdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/epstopdf.1"
                   "doc/man/man1/epstopdf.man1.pdf"
                   "doc/man/man1/repstopdf.1"
                   "doc/man/man1/repstopdf.man1.pdf"
                   "doc/support/epstopdf/"
                   "scripts/epstopdf/")
             (base32
              "0r2dr8f8myc663hdzzrkaiddfqsmmf41xan9y6kd1n049hhw414l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "epstopdf.pl")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-gs-location
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((gs (search-input-file inputs "/bin/gs")))
                (substitute* "scripts/epstopdf/epstopdf.pl"
                  (("\"gs\"") (string-append "\"" gs "\""))))))
          (add-after 'link-scripts 'add-repstopdf
            (lambda _
              (with-directory-excursion (string-append #$output "/bin")
                (symlink "epstopdf" "repstopdf")))))))
    (home-page "https://ctan.org/pkg/epstopdf")
    (synopsis "Convert EPS to PDF using Ghostscript")
    (inputs (list ghostscript perl))
    (description
     "Epstopdf is a Perl script that converts an EPS file to an encapsulated
PDF file (a single page file whose media box is the same as the original EPS's
bounding box). The resulting file suitable for inclusion by pdfTeX as an
image.  LaTeX users may make use of the @code{epstopdf} package, which will
run the @code{epstopdf} script on the fly, thus giving the illusion that
pdfLaTeX is accepting EPS graphic files.")
    (license license:bsd-3)))

(define-public texlive-epstopdf-pkg
  (package
    (name "texlive-epstopdf-pkg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/epstopdf-pkg/"
                   "source/latex/epstopdf-pkg/"
                   "tex/latex/epstopdf-pkg/")
             (base32
              "1ajyc5pkn1niifz5asyf09vbdqvmy05xwl0vxcdl7ik0ll0jcaxp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/epstopdf-pkg")
    (synopsis "Call @command{epstopdf} on the fly")
    (description
     "The package adds support for EPS files in the @code{graphicx} package
when running under pdfTeX.  If an EPS graphic is detected, the package spawns
a process to convert the EPS to PDF, using the script @command{epstopdf}.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-epstopdf-pkg texlive-epstopdf-pkg)

(define-public texlive-filecontents
  (package
    (name "texlive-filecontents")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/filecontents/"
                   "source/latex/filecontents/"
                   "tex/latex/filecontents/")
             (base32
              "0ifhqfdzx91hrmndhg5441rpmv9k4lxrql02kd5yx75xpplxryzw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/filecontents")
    (synopsis "Create an external file from within a LaTeX document")
    (description
     "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
enable a LaTeX source file to generate external files as it runs through
LaTeX.  However, there are two limitations of these environments: they refuse
to overwrite existing files, and they can only be used in the preamble of
a document.  The filecontents package removes these limitations, letting you
overwrite existing files and letting you use @code{filecontents}
@code{filecontents*} anywhere.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-filecontents texlive-filecontents)

(define-public texlive-filehook
  (package
    (name "texlive-filehook")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/filehook/" "source/latex/filehook/"
                   "tex/latex/filehook/")
             (base32
              "1zg9svjhrnh52fa04n3pnb0hrijp0lrr939dacf90cjjzwk36sfn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (home-page "https://ctan.org/pkg/filehook")
    (synopsis "Hooks for input files")
    (description
     "The package provides several file hooks (@code{AtBegin}, @code{AtEnd},
...) for files read by @code{\\input}, @code{\\include} and
@code{\\InputIfFileExists}.  General hooks for all such files (e.g., all
@code{\\included} ones) and file specific hooks only used for named files are
provided; two hooks are provided for the end of @code{\\included} files ---
one before, and one after the final @code{\\clearpage}.")
    (license license:lppl1.3+)))

(define-public texlive-epsf
  (package
    (name "texlive-epsf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/epsf/" "tex/generic/epsf/")
             (base32
              "03jcf0kqh47is965d2590miwj7d5kif3c4mgsnvkyl664jzjkh92")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/epsf")
    (synopsis "Simple macros for EPS inclusion")
    (description
     "This package provides the original (and now obsolescent) graphics
inclusion macros for use with dvips, still widely used by Plain TeX users (in
particular).  For LaTeX users, the package is nowadays (rather strongly)
deprecated in favour of the more sophisticated standard LaTeX latex-graphics
bundle of packages.  (The latex-graphics bundle is also available to Plain TeX
users, via its Plain TeX version.)")
    (license license:public-domain)))

(define-deprecated-package texlive-generic-epsf texlive-epsf)

(define-public texlive-fancyvrb
  (package
    (name "texlive-fancyvrb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fancyvrb/" "tex/latex/fancyvrb/")
             (base32
              "18nif609wp9y9bc3jn3cz07ihphp95mqa4bfpgqlxsy3m57295s7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fancyvrb")
    (synopsis "Sophisticated verbatim text")
    (description
     "This package provides tools for the flexible handling of verbatim text
including: verbatim commands in footnotes; a variety of verbatim environments
with many parameters; ability to define new customized verbatim environments;
save and restore verbatim text and environments; write and read files in
verbatim mode; build \"example\" environments (showing both result and
verbatim source).")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-fancyvrb texlive-fancyvrb)

(define-public texlive-fandol
  (package
    (name "texlive-fandol")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fandol/"
                   "fonts/opentype/public/fandol/")
             (base32
              "1lk91ypsvj2wkqsw8lklkqfsqimjyn0vzbwgqgs5h6kf61m6qsk5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fandol")
    (synopsis "Four basic fonts for Chinese typesetting")
    (description
     "This package provides Fandol fonts designed for Chinese typesetting.
The current version contains four styles: Song, Hei, Kai, Fang.  All fonts are
in OpenType format.")
    (license license:gpl3+)))

(define-public texlive-gentium-tug
  (package
    (name "texlive-gentium-tug")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/gentium-tug/GentiumPlus-6.101/"
                   "doc/fonts/gentium-tug/gentium-tug/"
                   "fonts/afm/public/gentium-tug/"
                   "fonts/enc/dvips/gentium-tug/"
                   "fonts/map/dvips/gentium-tug/"
                   "fonts/map/pdftex/gentium-tug/"
                   "fonts/tfm/public/gentium-tug/"
                   "fonts/truetype/public/gentium-tug/"
                   "fonts/type1/public/gentium-tug/"
                   "source/fonts/gentium-tug/"
                   "tex/latex/gentium-tug/")
             (base32
              "1ns62cn7cqq3hzmljd6yvs2mip2l30pa3js6c1dm90fj01gsjq86")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gentium-tug")
    (synopsis "Gentium fonts (in two formats) and support files")
    (description
     "Gentium is a typeface family designed to enable the diverse ethnic
groups around the world who use the Latin, Cyrillic and Greek scripts to
produce readable, high-quality publications.  It supports a wide range of
Latin- and Cyrillic-based alphabets.")
    (license (list license:expat license:silofl1.1))))

(define-public texlive-gincltex
  (package
    (name "texlive-gincltex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gincltex/" "source/latex/gincltex/"
                   "tex/latex/gincltex/")
             (base32
              "1x6bsf445dp8wc5hfgyywlal8vky5w23d69zlpybkp2d9am9a71p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gincltex")
    (synopsis "Include TeX files as graphics")
    (description
     "The package builds on the standard LaTeX packages @code{graphics} and
allows external LaTeX source files to be included, in the same way as graphic
files, by @code{\\includegraphics}.  In effect, then package adds support for
the @file{.tex} extension.")
    (license license:lppl1.3+)))

(define-public texlive-git-latexdiff
  (package
    (name "texlive-git-latexdiff")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/git-latexdiff.1"
                   "doc/man/man1/git-latexdiff.man1.pdf"
                   "doc/support/git-latexdiff/"
                   "scripts/git-latexdiff/")
             (base32
              "1hblgnjad5qm27ijpynz0x1rxgi07y5apgnv5r2wk3ngxj016pvn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "git-latexdiff")))
    (home-page "https://ctan.org/pkg/git-latexdiff")
    (synopsis "Call @command{latexdiff} on two Git revisions of a file")
    (description
     "@command{git-latexdiff} is a tool to graphically visualize differences
between different versions of a LaTeX file.")
    (license license:bsd-2)))

(define-public texlive-glyphlist
  (package
    (name "texlive-glyphlist")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/map/glyphlist/")
             (base32
              "12nmmyh77vr2622lzi11nm1z1k2bxs7jz018yl4rwjlpg0sxg1ja")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/glyphlist")
    (synopsis "Adobe Glyph List and TeX extensions")
    (description
     "This package provides a map between traditional Adobe glyph names and
Unicode points; it is maintained by Adobe.  The additional
@file{texglyphlist.txt} is maintained as part of @code{lcdf-typetools}.")
    (license license:asl2.0)))

(define-public texlive-graphics-def
  (package
    (name "texlive-graphics-def")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/graphics-def/"
                   "tex/latex/graphics-def/")
             (base32
              "1kp28k3shsiv0a051lp4fcqadac41c942hxwn506yps7h9y4jg23")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/graphics-def")
    (synopsis "Colour and graphics option files")
    (description
     "This bundle is a combined distribution consisting of @file{dvips.def},
@file{pdftex.def}, @file{luatex.def}, @file{xetex.def}, @file{dvipdfmx.def},
and @file{dvisvgm.def} driver option files for the LaTeX graphics and color
packages.")
    (license license:lppl1.3c+)))

(define-public texlive-graphics-cfg
  (package
    (name "texlive-graphics-cfg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/graphics-cfg/"
                   "tex/latex/graphics-cfg/")
             (base32
              "00n63adb2laf43lzix39xl68aq0k5k80mmrw602w99w5n7f96gsf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/graphics-cfg")
    (synopsis "Sample configuration files for LaTeX color and graphics")
    (description
     "This bundle includes @file{color.cfg} and @file{graphics.cfg} files that
set default \"driver\" options for the color and graphics packages.")
    (license license:public-domain)))

(define-public texlive-graphics
  (package
    (name "texlive-graphics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/graphics/"
                   "source/latex/graphics/"
                   "tex/latex/graphics/")
             (base32
              "024hncahwc07yd2l94znv7v72sbykxdri5lpg3w4ip0nf10ywyma")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip texlive-pdftex))
    (propagated-inputs (list texlive-graphics-def texlive-graphics-cfg))
    (home-page "https://ctan.org/macros/latex/required/graphics")
    (synopsis "The LaTeX standard graphics bundle")
    (description
     "This is a collection of LaTeX packages for: producing colour including
graphics (e.g., PostScript) files rotation and scaling of text in LaTeX
documents.  It comprises the packages @code{color}, @code{graphics},
@code{graphicx}, @code{trig}, @code{epsfig}, @code{keyval}, and
@code{lscape}.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-graphics texlive-graphics)

(define-public texlive-greek-fontenc
  (package
    (name "texlive-greek-fontenc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/greek-fontenc/"
                   "tex/latex/greek-fontenc/")
             (base32
              "1vary0vdrg77r55lf6gbfsqiyxqkbvrx1ijk71q3yl2v6adml4iv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/greek-fontenc")
    (synopsis "LICR macros and encoding definition files for Greek")
    (description
     "The package provides Greek LICR macro definitions and encoding
definition files for Greek text font encodings for use with @code{fontenc}.")
    (license license:lppl1.3+)))

(define-public texlive-gsftopk
  (package
    (name "texlive-gsftopk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/gsftopk.1"
                   "doc/man/man1/gsftopk.man1.pdf"
                   "dvips/gsftopk/")
             (base32
              "1qlac704qbm7kq762z0b887wfncprpcm8zj2lb4nag0wzdrrjdq5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gsftopk")
    (synopsis "Convert Ghostscript fonts to PK files")
    (description
     "Designed for use with @command{xdvi} and @command{dvips}, this utility
converts Adobe Type 1 fonts to PK bitmap format.  It should not ordinarily be
much used nowadays, since both its target applications are now capable of
dealing with Type 1 fonts, direct.")
    (license license:gpl3+)))

(define-public texlive-hycolor
  (package
    (name "texlive-hycolor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hycolor/" "source/latex/hycolor/"
                   "tex/latex/hycolor/")
             (base32
              "0hmkx37wwmznxjqqnca87shy7qrgqrh2cn5r941ddgivnym31xbh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hycolor")
    (synopsis "Colour for packages @code{hyperref} and @code{bookmark}")
    (description
     "This package provides the code for the color option that is used by
packages @code{hyperref} and @code{bookmark}.  It is not intended as a package
for the user.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-hycolor texlive-hycolor)

(define-public texlive-xcjk2uni
  (package
    (name "texlive-xcjk2uni")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xcjk2uni/"
                   "source/latex/xcjk2uni/"
                   "tex/latex/xcjk2uni/")
             (base32
              "1vjp47ngrirrvbnk4vnm5lbysj3qlbwxbfc1szc22gaikm52ggaq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'build 'copy-ctxdocstrip.tex
            ;; There's a circular dependency between this package (where
            ;; `ctex' should be a native input) and `ctex' (where this package
            ;; is a propagated input).  To work around this, install the
            ;; specific "ctxdocstrip.tex" file from `ctex' in the build
            ;; directory and set TEXINPUTS variable accordingly so the process
            ;; can find it.
            (lambda* (#:key inputs #:allow-other-keys)
              (install-file (search-input-file inputs
                                               "tex/generic/ctex/ctxdocstrip.tex")
                            "build/")
              (setenv "TEXINPUTS" (string-append (getcwd) "/build:")))))))
    (native-inputs
     (list (texlive-origin
            "ctxdocstrip.tex" (number->string %texlive-revision)
            (list "tex/generic/ctex/ctxdocstrip.tex")
            (base32
             "154v2d6wfzhfg654nlh2apy9zr78d09rkimymyjqpxymkpbk8lli"))))
    (home-page "https://ctan.org/pkg/xcjk2uni")
    (synopsis "Convert CJK characters to Unicode, in pdfTeX")
    (description
     "The package provides commands to convert CJK characters to Unicode in
non-UTF-8 encoding; it provides hooks to support hyperref in producing correct
bookmarks.  The bundle also provides @code{/ToUnicode} mapping file(s) for
a CJK subfont; these can be used with the cmap package, allowing searches of,
and cut-and-paste operations on a PDF file generated by pdfTeX.")
    (license license:lppl1.3c)))

(define-public texlive-xcolor
  (package
    (name "texlive-xcolor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xcolor/" "dvips/xcolor/"
                   "source/latex/xcolor/" "tex/latex/xcolor/")
             (base32
              "1sh0v60azjbl2fcmg4p77dqw052j59d9pg20saxvj4md32a345py")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xcolor")
    (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
    (description
     "The package starts from the basic facilities of the colorcolor package,
and provides easy driver-independent access to several kinds of color tints,
shades, tones, and mixes of arbitrary colors.  It allows a user to select
a document-wide target color model and offers complete tools for conversion
between eight color models.  Additionally, there is a command for alternating
row colors plus repeated non-aligned material (like horizontal lines) in
tables.")
    (license license:lppl1.2+)))

(define-deprecated-package texlive-latex-xcolor texlive-xcolor)

(define-public texlive-xltxtra
  (package
    (name "texlive-xltxtra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xltxtra/"
                   "source/xelatex/xltxtra/"
                   "tex/xelatex/xltxtra/")
             (base32
              "0dh3nnr4xhb85zp3q4jdzqvfghg8m9zvpsvvrmmp0q3ayf0c1dbj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-metalogo))
    (home-page "https://ctan.org/pkg/xltxtra")
    (synopsis "Extras for LaTeX users of XeTeX")
    (description
     "This package was previously used to provide a number of features that
were useful for typesetting documents with XeLaTeX.  Many of those features
have now been incorporated into the @code{fontspec} package and other
packages, but the package persists for backwards compatibility.  Nowadays,
loading @code{xltxtra} will: load the @code{fontspec}, @code{metalogo}, and
@code{realscripts} packages; redefine @code{\\showhyphens} so it works
correctly; and define two extra commands: @code{\\vfrac} and
@code{\\namedglyph}.")
    (license license:lppl1.3c)))

(define-public texlive-xmltexconfig
  (package
    (name "texlive-xmltexconfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/xmltex/xmltexconfig/")
             (base32
              "0drgvmn27snq43kjkpg5k4igkcdi56p1q3fwkrv3ivsiqfp6cdz3")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xmltexconfig")
    (synopsis "Configuration files for @code{xmltex} and @code{pdfxmltex}")
    (description "This package provides configuration files for @code{xmltex}
and @code{pdfxmltex}.")
    (license license:public-domain)))

(define-public texlive-xmltex
  (package
    (name "texlive-xmltex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/otherformats/xmltex/base/"
                   "tex/xmltex/base/")
             (base32
              "1rqwsapba8zs2ijjs7lpzksm20jqb8zbmanpw7wmdp2rq26ahylh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:create-formats #~(list "pdfxmltex" "xmltex")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'install 'install-wrappers
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((pdftex (search-input-file inputs "/bin/pdftex"))
                    (web2c (string-append #$output "/share/texmf-dist/web2c")))
                (mkdir-p (string-append #$output "/bin"))
                (symlink pdftex (string-append #$output "/bin/xmltex"))
                (symlink pdftex (string-append #$output "/bin/pdfxmltex"))))))))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-complete
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-latexconfig
           texlive-pdftex
           texlive-tex
           texlive-tex-ini-files
           texlive-unicode-data
           texlive-xmltexconfig))
    (home-page "https://ctan.org/pkg/xmltex")
    (synopsis "Support for parsing XML documents")
    (description
     "The package provides an implementation of a parser for documents
matching the XML 1.0 and XML Namespace Recommendations.  Element and attribute
names, as well as character data, may use any characters allowed in XML, using
UTF-8 or a suitable 8-bit encoding.")
    (license license:lppl1.0+)))        ;per xmltex/base/readme.txt

(define-public texlive-xpinyin
  (package
    (name "texlive-xpinyin")
    ;; XXX: Whenever updating this package, please check if "Unihan.zip"
    ;; native input needs to be updated, too.
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xpinyin/" "source/latex/xpinyin/"
                   "tex/latex/xpinyin/")
             (base32
              "1fxsnvmkm66rfq08j03sch24maw0wgb8dhl73r2rf6gwxzf4imc5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-format "luatex"
      #:modules '((ice-9 match)
                  (srfi srfi-1)
                  (guix build texlive-build-system)
                  (guix build utils))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'copy-unihan.zip
            ;; Copy the "Unihan.zip" file where the Lua script expects to find
            ;; it.
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((unihan.zip
                     (any (match-lambda
                            ((_ . dir)
                             (and (string-suffix? "Unihan.zip" dir) dir)))
                          inputs)))
                (with-directory-excursion "source/latex/xpinyin"
                  (install-file unihan.zip ".")
                  (rename-file (basename unihan.zip) "Unihan.zip")))))
          (add-before 'build 'copy-ctxdocstrip.tex
            ;; Set TEXINPUTS so that the process can find extracted
            ;; "ctxdocstrip.tex".
            (lambda* (#:key inputs #:allow-other-keys)
              (install-file (search-input-file inputs
                                               "tex/generic/ctex/ctxdocstrip.tex")
                            "build/")
              (setenv "TEXINPUTS" (string-append (getcwd) "/build:"))))
          (add-after 'build 'fix-reproducibility
            ;; Remove a time-stamp so the generated database is reproducible.
            (lambda _
              (substitute* "tex/latex/xpinyin/xpinyin-database.def"
                (("%% +by \"texlua xpinyin.lua\" .*") "")))))))
    (native-inputs
     (list
      ;; XXX: The Unihan database may need to be updated whenever this package
      ;; is.  Appropriate Unicode version can be found in the
      ;; "tex/latex/xpinyin/xpinyin-database.def" file.
      (origin
        (method url-fetch)
        (uri "https://www.unicode.org/Public/14.0.0/ucd/Unihan.zip")
        (sha256
         (base32
          "0bc5277lpc5j0gg7fjfsah7krhqjzdxya5ww6walvkc25fdm3r1a")))
      ;; There's a circular dependency between this package (where `ctex'
      ;; should be a native input) and `ctex' (where this package is
      ;; a propagated input).  To work around this, grab the required
      ;; "ctxdocstrip.tex" file from `ctex'.
      (texlive-origin
       "ctxdocstrip.tex" (number->string %texlive-revision)
       (list "tex/generic/ctex/ctxdocstrip.tex")
       (base32
        "154v2d6wfzhfg654nlh2apy9zr78d09rkimymyjqpxymkpbk8lli"))))
    (home-page "https://ctan.org/pkg/xpinyin")
    (synopsis "Automatically add pinyin to Chinese characters")
    (description
     "The package is written to simplify the input of Hanyu Pinyin.  Macros are
provided that automatically add pinyin to Chinese characters.")
    (license license:lppl1.3c)))

(define-public texlive-hyperref
  (package
    (name "texlive-hyperref")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hyperref/"
                   "source/latex/hyperref/"
                   "tex/latex/hyperref/")
             (base32
              "034bdg1vy2yql4sq9i3i1ss1axh7apdyk5rz3s2ss8fydvvds726")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-atbegshi
           texlive-auxhook
           texlive-bitset
           texlive-etexcmds
           texlive-gettitlestring
           texlive-hycolor
           texlive-intcalc
           texlive-kvdefinekeys
           texlive-kvsetkeys
           texlive-letltxmacro
           texlive-ltxcmds
           texlive-pdfescape
           texlive-refcount
           texlive-rerunfilecheck
           texlive-stringenc
           texlive-url
           texlive-zapfding))
    (home-page "https://www.ctan.org/pkg/hyperref")
    (synopsis "Extensive support for hypertext in LaTeX")
    (description
     "The @code{hyperref} package is used to handle cross-referencing commands
in LaTeX to produce hypertext links in the document.  The package provides
backends for the @code{\\special} set defined for HyperTeX DVI processors; for
embedded @code{pdfmark} commands for processing by Acrobat
Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
pdf and HTML backends.  The package is distributed with the @code{backref} and
@code{nameref} packages, which make use of the facilities of
@code{hyperref}.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-hyperref texlive-hyperref)

(define-public texlive-hypdoc
  (package
    (name "texlive-hypdoc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hypdoc/" "source/latex/hypdoc/"
                   "tex/latex/hypdoc/")
             (base32
              "14qg7q9r4cx132m2mr132ml0r49psfy99g6my4wir4yaw7y0x6pp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hypdoc")
    (synopsis "Hyper extensions for @file{doc.sty}")
    (description
     "This package adds hypertext features to the package @code{doc} that is
used in the documentation system of LaTeX2e.  Bookmarks are added and
references are linked as far as possible.")
    (license license:lppl1.3c)))

(define-public texlive-hyperxmp
  (package
    (name "texlive-hyperxmp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hyperxmp/"
                   "doc/man/man1/hyperxmp-add-bytecount.1"
                   "doc/man/man1/hyperxmp-add-bytecount.man1.pdf"
                   "scripts/hyperxmp/"
                   "source/latex/hyperxmp/"
                   "tex/latex/hyperxmp/")
             (base32
              "0x2hif61a7bz1ymrc2qz0f9papfj2qx2w0smpihrcjxq73g9dm1b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "hyperxmp-add-bytecount.pl")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-build
            (lambda _
              (delete-file "source/latex/hyperxmp/hyperxmp-stds.tex"))))))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/hyperxmp")
    (synopsis "Embed XMP metadata within a LaTeX document")
    (description
     "XMP (eXtensible Metadata Platform) is a mechanism proposed by Adobe for
embedding document metadata, within the document itself.  The metadata is
designed to be easy to extract, even by programs that are oblivious to the
document's file format.  The @code{hyperxmp} package makes it trivial for
LaTeX document authors to store XMP metadata in their documents as well.  It
is compatible with pdfLaTeX, XeLaTeX, LaTeX+dvipdfm, and LaTeX+dvips+ps2pdf.")
    (license license:lppl1.3c)))

(define-public texlive-latex-brochure
  (package
    (name "texlive-latex-brochure")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-brochure/")
             (base32
              "0xba20sy8q10ac9hxwnz9axh853hrj06vp7mfn12ajax31miznmy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-brochure")
    (synopsis "Publicity flyer for LaTeX")
    (description
     "The document is designed as a publicity flyer for LaTeX, but also serves
as an interesting showcase of what LaTeX can do.  The flyer is designed for
printing, double-sided, on A3 paper, which would then be folded once.")
    (license license:lppl)))

(define-public texlive-latex-course
  (package
    (name "texlive-latex-course")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-course/")
             (base32
              "0z6q95l2vvxrspc04ki9wnrzhz76nynb5ai6969pgw6ihl68384f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-course")
    (synopsis "LaTeX course as a projected presentation")
    (description
     "This package provides a brief Beamer-based slide presentation on LaTeX,
based on Rupprecht's LaTeX 2.09 course, which the author has translated to
English and taken to LaTeX2e and Beamer.  Additional material was taken from
the @emph{Short Introduction to LaTeX}.")
    (license license:gpl3+)))

(define-public texlive-latex-doc-ptr
  (package
    (name "texlive-latex-doc-ptr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-doc-ptr/")
             (base32
              "0mamlfnxzi4lwh5cpss8zcfr64jdnf6vnj9fp48accrqdj2rpfs2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-doc-ptr")
    (synopsis "Direction-finder for LaTeX resources available online")
    (description
     "This package provides a brief set of recommendations for users who need
online documentation of LaTeX.  The document supports the need for
documentation of LaTeX itself, in distributions.")
    (license license:public-domain)))

(define-public texlive-latex-for-undergraduates
  (package
    (name "texlive-latex-for-undergraduates")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-for-undergraduates/")
             (base32
              "0krj27gmra2mpriircasv32snk80z9ap85h76n0bgy4wjqyblyp0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-for-undergraduates")
    (synopsis "Tutorial aimed at introducing undergraduate students to LaTeX")
    (description
     "This package provides a tutorial aimed at introducing undergraduate
students to LaTeX, including an introduction to LaTeX Workshop in Visual
Studio Code and an example package of user-defined LaTeX commands.")
    (license license:public-domain)))

(define-public texlive-latex-graphics-companion
  (package
    (name "texlive-latex-graphics-companion")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-graphics-companion/")
             (base32
              "01zs32gck1sl9zlbhghyjmjwxyvw0jha5vl2hd10knyrb3z4dhxc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lgc-examples")
    (synopsis "Examples from @emph{The LaTeX Graphics Companion}")
    (description
     "This package contains the source of the examples printed in @emph{The
LaTeX Graphics Companion} book, together with necessary supporting files.")
    (license license:lppl)))

(define-public texlive-latex-refsheet
  (package
    (name "texlive-latex-refsheet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-refsheet/")
             (base32
              "169h1syday30qiw032k14fhxikdwszggvqz8b9ga4i9wwxf1vh4m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-refsheet")
    (synopsis "LaTeX reference sheet for a thesis with KOMA-Script")
    (description
     "This LaTeX reference sheet is for writing a thesis using the KOMA-Script
document classes (@code{scrartcl}, @code{scrreprt}, @code{scrbook}) and all
the packages needed for a thesis in natural sciences.")
    (license license:lppl1.3c)))

(define-public texlive-latex-veryshortguide
  (package
    (name "texlive-latex-veryshortguide")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-veryshortguide/")
             (base32
              "17i8zmr7mjfrx911psdy9cbn05c5inn4ixqmnjkpr9sbgsninyc4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex-veryshortguide")
    (synopsis "The Very Short Guide to LaTeX")
    (description
     "This is a 4-page reminder of what LaTeX does.  It is designed for
printing on A4 paper, double-sided, and folding once to A5.  Such an imposed
version of the document is provided in the distribution, as PDF.  An analogous
version is provided in legal format.")
    (license license:lppl1.3+)))

(define-public texlive-latex-web-companion
  (package
    (name "texlive-latex-web-companion")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex-web-companion/")
             (base32
              "0v018lwf88z3qmzyqpyvfql7dbwk5a9r0wj3jfjc9cp2ksl8zf8f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lwc-examples")
    (synopsis "Examples from @emph{The LaTeX Web Companion}")
    (description
     "This package contains the source of the examples printed in @emph{The
LaTeX Web Companion} book, together with necessary supporting files.")
    (license license:lppl)))

(define-public texlive-latex2e-help-texinfo
  (package
    (name "texlive-latex2e-help-texinfo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/info/latex2e.info"
                   "doc/latex/latex2e-help-texinfo/")
             (base32
              "0rk69n89hl67qfbi5mmb4msaibychsk9a83dx593170ayiir6s6g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex2e-help-texinfo")
    (synopsis "Unofficial reference manual covering LaTeX2e")
    (description
     "This is an unofficial reference manual for LaTeX.  It is provided as
Texinfo source.  This is a collaborative development, and details of getting
involved are to be found on the package home page.")
    (license license:fdl1.1+)))

(define-public texlive-latex4wp
  (package
    (name "texlive-latex4wp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex4wp/")
             (base32
              "0xyk6w8jmmcsccbd9q4ikblfq6nacjjyrmf58ddjxkb6v0lzndph")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex4wp")
    (synopsis "LaTeX guide specifically designed for word processor users")
    (description
     "@emph{LaTeX for Word Processor Users} is a guide that helps converting
knowledge and techniques of word processing into the LaTeX typesetting
environment.  It aims at helping such users use LaTeX instead.")
    (license license:fdl1.3+)))

(define-public texlive-latex4wp-it
  (package
    (name "texlive-latex4wp-it")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latex4wp-it/")
             (base32
              "14r86fwhb9zafmyv05pqfi9962dpxj7wq94acm43gv8m2rsjp52k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latex4wp-it")
    (synopsis "LaTeX guide for word processor users, in Italian")
    (description
     "The package provides a version of the @emph{LaTeX for Word Processor
Users} document in Italian.")
    (license license:fdl1.3+)))

(define-public texlive-latexcheat
  (package
    (name "texlive-latexcheat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexcheat/")
             (base32
              "1383rsi21ma0291asi779bjr33m7fii019di8gv8kxwgci692fz0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexcheat")
    (synopsis "LaTeX cheat sheet")
    (description
     "This package provides a LaTeX reference sheet for writing scientific
papers.  Unlike many other such sheets, this sheet does not focus on
typesetting mathematics, though it does list some symbols.")
    (license license:lppl)))

(define-public texlive-latexcheat-ptbr
  (package
    (name "texlive-latexcheat-ptbr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexcheat-ptbr/")
             (base32
              "0m636j9gdfpm4j1b679z5qw5ygbm6jp8xl9dzy6v5zzy695fcgaf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexcheat-ptbr")
    (synopsis "LaTeX cheat sheet, in Brazilian Portuguese")
    (description
     "This is a translation to Brazilian Portuguese of Winston Chang's LaTeX
cheat sheet.")
    (license license:lppl)))

(define-public texlive-latexcourse-rug
  (package
    (name "texlive-latexcourse-rug")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexcourse-rug/")
             (base32
              "027siznmshk60flxgra7dgzvwbmgwvckwb6r257b91x3rm77anv5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexcourse-rug")
    (synopsis "LaTeX course book")
    (description
     "The package provides the book and practice files for a LaTeX course that
the author has give several times at the Rijksuniversiteit
Groningen (Netherlands).")
    (license license:fdl1.1+)))

(define-public texlive-latexfileinfo-pkgs
  (package
    (name "texlive-latexfileinfo-pkgs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/latexfileinfo-pkgs/"
                   "source/latex/latexfileinfo-pkgs/"
                   "tex/latex/latexfileinfo-pkgs/")
             (base32
              "08afjj6im3bdxv3j0z6kg8yw0pyjl5164fqn0sx084zbdfwdfrqn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexfileinfo-pkgs")
    (synopsis "Comparison of packages showing LaTeX file information")
    (description
     "The package provides an HTML file that lists and compares CTAN packages
that display LaTeX source file information from @code{\\ProvidesClass},
@code{\\ProvidesFile}, and @code{\\ProvidesPackage} commands in the LaTeX
file.  Five packages of the author's, and several other packages are
discussed; revision control systems are mentioned briefly.")
    (license license:lppl1.3+)))

(define-public texlive-oberdiek
  (package
    (name "texlive-oberdiek")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/oberdiek/" "doc/latex/oberdiek/"
                   "source/latex/oberdiek/"
                   "tex/generic/oberdiek/" "tex/latex/oberdiek/")
             (base32
              "1fm6bcrxr4bw49h5hzrlas6ihaavshp6yjjvdjn869bl6hm6pmlz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-auxhook
           texlive-grfext
           texlive-grffile
           texlive-iftex
           texlive-infwarerr
           texlive-kvoptions
           texlive-pdftexcmds))
    (home-page "https://www.ctan.org/pkg/oberdiek")
    (synopsis "Bundle of packages submitted by Heiko Oberdiek")
    (description
     "The bundle comprises various LaTeX packages, providing among others:
better accessibility support for PDF files; extensible chemists reaction
arrows; record information about document class(es) used; and many more.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-oberdiek texlive-oberdiek)

(define-public texlive-regexpatch
  (package
    (name "texlive-regexpatch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/regexpatch/"
                   "source/latex/regexpatch/"
                   "tex/latex/regexpatch/")
             (base32
              "1jv8hvkvq0yvc8mh68ybj8fvhf6kcdzwjin1czs45i26s0dpsngj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/regexpatch")
    (synopsis "High level patching of commands")
    (description
     "The package generalises the macro patching commands provided by
P. Lehmann's @code{etoolbox}.  The difference between this package and its
sibling @code{xpatch} is that this package sports a very powerful
@code{\\regexpatchcmd} based on the @code{l3regex} module of the LaTeX3
experimental packages.")
    (license license:lppl1.3c)))

(define-public texlive-rerunfilecheck
  (package
    (name "texlive-rerunfilecheck")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rerunfilecheck/"
                   "source/latex/rerunfilecheck/"
                   "tex/latex/rerunfilecheck/")
             (base32
              "0m3rvjgw0hg3n7db8hpyq55lq7py4scm35bqbawpc5mn5pmh2zg1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-atveryend texlive-uniquecounter))
    (home-page "https://www.ctan.org/pkg/rerunfilecheck")
    (synopsis "Checksum based rerun checks on auxiliary files")
    (description
     "This package provides additional rerun warnings if some auxiliary files
have changed.  It is based on MD5 checksum, provided by pdfTeX.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-rerunfilecheck texlive-rerunfilecheck)

(define-public texlive-onedown
  (package
    (name "texlive-onedown")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/onedown/"
                   "source/latex/onedown/"
                   "tex/latex/onedown/")
             (base32
              "00yh6nyzzy6d2sj1ha7dgfbsicy2ip1irn3il5jhc29sn3crfahx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/onedown")
    (synopsis "Typeset bridge diagrams")
    (description
     "This is a comprehensive package to draw all sorts of bridge diagrams,
including hands, bidding tables, trick tables, and expert quizzes.

It works for all font sizes.  Different fonts for hands, bidding diagrams and
compass are possible.  It also provides annotations to card and bidding
diagrams, automated check on consistency of suit and hands, and multilingual
output of bridge terms.")
    (license license:lppl1.3+)))

(define-public texlive-tools
  (package
    (name "texlive-tools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tools/"
                   "source/latex/tools/"
                   "tex/latex/tools/")
             (base32
              "04zafcgdgiricq0l6lplfxa2qdspx5wbzpql5h7hw90lsdiw8awk")))
    (outputs '("out" "doc"))
    (arguments
     (list #:build-targets #~(list "tools.ins")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tools")
    (synopsis "The LaTeX standard tools bundle")
    (description "This package provides a collection of simple tools that
are part of the LaTeX required tools distribution, comprising the packages:
@code{afterpage}, @code{array}, @code{bm}, @code{calc}, @code{dcolumn},
@code{delarray}, @code{enumerate}, @code{fileerr}, @code{fontsmpl},
@code{ftnright}, @code{hhline}, @code{indentfirst}, @code{layout},
@code{longtable}, @code{multicol}, @code{rawfonts}, @code{showkeys},
@code{somedefs}, @code{tabularx}, @code{theorem}, @code{trace},
@code{varioref}, @code{verbatim}, @code{xr}, and @code{xspace}.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-tools texlive-tools)

(define-public texlive-url
  (package
    (name "texlive-url")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/url/" "tex/latex/url/")
             (base32
              "184m40wgnx939ky2hbxnj0v9aak023ldrhgffp0lgyk9wdqpxlqg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/url")
    (synopsis "Verbatim with URL-sensitive line breaks")
    (description "The command @code{\\url} is a form of verbatim command that
allows linebreaks at certain characters or combinations of characters, accepts
reconfiguration, and can usually be used in the argument to another command.
The command is intended for email addresses, hypertext links,
directories/paths, etc., which normally have no spaces, so by default the
package ignores spaces in its argument.  However, a package option allows
spaces, which is useful for operating systems where spaces are a common part
of file names.")
    ;; The license header states that it is under LPPL version 2 or later, but
    ;; the latest version is 1.3c.
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-url texlive-url)

(define-public texlive-l3experimental
  (package
    (name "texlive-l3experimental")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l3experimental/"
                   "source/latex/l3experimental/l3benchmark/"
                   "source/latex/l3experimental/l3bitset/"
                   "source/latex/l3experimental/l3draw/"
                   "source/latex/l3experimental/l3graphics/"
                   "source/latex/l3experimental/l3opacity/"
                   "source/latex/l3experimental/l3str/"
                   "source/latex/l3experimental/l3sys-shell/"
                   "source/latex/l3experimental/xcoffins/"
                   "source/latex/l3experimental/xgalley/"
                   "tex/latex/l3experimental/l3benchmark/"
                   "tex/latex/l3experimental/l3bitset/"
                   "tex/latex/l3experimental/l3draw/"
                   "tex/latex/l3experimental/l3graphics/"
                   "tex/latex/l3experimental/l3opacity/"
                   "tex/latex/l3experimental/l3str/"
                   "tex/latex/l3experimental/l3sys-shell/"
                   "tex/latex/l3experimental/xcoffins/"
                   "tex/latex/l3experimental/xgalley/")
             (base32
              "1s4v0f29hk5racmvj4imyn6d2az7i94s4fq3hag11hr08ipvi51v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-l3kernel))
    (home-page "https://ctan.org/pkg/l3experimental")
    (synopsis "Experimental LaTeX3 concepts")
    (description
     "The l3experimental packages are a collection of experimental
implementations for aspects of the LaTeX3 kernel, dealing with higher-level
ideas such as the Designer Interface.  Some of them work as stand alone
packages, providing new functionality, and can be used on top of LaTeX2e with
no changes to the existing kernel.  The present release includes:
@itemize @code
@item l3benchmark
for measuring the time taken by TeX to run certain code;
@item l3draw
a code-level interface for constructing drawings;
@item l3graphics
an interface for the inclusion of graphics files;
@item l3opacity
support for opacity in PDF output;
@item l3str
support for string manipulation;
@item l3bitset
support for bit vectors;
@item l3sys-shell
which provides abstractions for common shell functions like file
deletion and copying;
@item xcoffins
which allows the alignment of boxes using a series of handle positions,
supplementing the simple TeX reference point;
@item xgalley
which controls boxes receiving text for typesetting.
@end itemize")
    (license license:lppl1.3c)))

(define-public texlive-l3kernel
  (package
    (name "texlive-l3kernel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l3kernel/"
                   "source/latex/l3kernel/"
                   "tex/latex/l3kernel/")
             (base32
              "1jbll1x3pdjpm1v70h7kpxgkjsw2mi2zbdilc7qvh251amn0hdbv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-engine "tex"
      #:tex-format #f
      #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip))
    (propagated-inputs (list texlive-l3backend))
    (home-page "https://ctan.org/pkg/l3kernel")
    (synopsis "LaTeX3 programming conventions")
    (description
     "The l3kernel bundle provides an implementation of the LaTeX3 programmers
interface, as a set of packages that run under LaTeX2e.  The interface
provides the foundation on which the LaTeX3 kernel and other future code are
built: it is an API for TeX programmers.  The packages are set up so that the
LaTeX3 conventions can be used with regular LaTeX2e packages.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-l3kernel texlive-l3kernel)

(define-public texlive-l3backend
  (package
    (name "texlive-l3backend")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l3backend/"
                   "dvips/l3backend/"
                   "source/latex/l3backend/"
                   "tex/latex/l3backend/")
             (base32
              "1pd2drks05k9w3fzgzg7vkj46plpw5z9r0zl43r1kzya9c4ldb38")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:tex-engine "tex"
           #:tex-format #f
           #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip))
    (home-page "https://ctan.org/pkg/l3backend")
    (synopsis "LaTeX3 backend drivers")
    (description
     "This package forms parts of expl3, and contains the code used to
interface with backends (drivers) across the expl3 codebase.  The functions
here are defined differently depending on the engine in use.  As such, these
are distributed separately from l3kernel to allow this code to be updated on
an independent schedule.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-dvips-l3backend texlive-l3backend)
(define-deprecated-package texlive-latex-l3backend texlive-l3backend)

(define-public texlive-l3packages
  (package
    (name "texlive-l3packages")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l3packages/"
                   "source/latex/l3packages/l3keys2e/"
                   "source/latex/l3packages/xfp/"
                   "source/latex/l3packages/xfrac/"
                   "source/latex/l3packages/xparse/"
                   "source/latex/l3packages/xtemplate/"
                   "tex/latex/l3packages/l3keys2e/"
                   "tex/latex/l3packages/xfp/"
                   "tex/latex/l3packages/xfrac/"
                   "tex/latex/l3packages/xparse/"
                   "tex/latex/l3packages/xtemplate/")
             (base32
              "0l7mfm8ziil59drqmb723n0wjbwdsx54iah051haxlbj7psqmbax")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:build-targets
           '(list "l3keys2e.ins"
                  "xparse.ins"
                  "xfrac.ins"
                  "xfp.ins"
                  "xtemplate.ins")
           #:tex-engine "tex"
           #:tex-format #f
           #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip))
    (propagated-inputs (list texlive-l3kernel))
    (home-page "https://ctan.org/pkg/l3packages")
    (synopsis "High-level LaTeX3 concepts")
    (description
     "This collection contains implementations for aspects of the LaTeX3
kernel, dealing with higher-level ideas such as the Designer Interface.  The
packages here are considered broadly stable (The LaTeX3 Project does not
expect the interfaces to alter radically).  These packages are built on
LaTeX2e conventions at the interface level, and so may not migrate in the
current form to a stand-alone LaTeX3 format.

Packages provided are @code{xparse}, which provides a high-level interface for
declaring document commands @code{xfp}, an expandable IEEE 754 FPU for LaTeX,
@code{l3keys2e}, which makes the facilities of the kernel module l3keys
available for use by LaTeX 2e packages, @code{xtemplate}, which provides
a means of defining generic functions using a key-value syntax, and
@code{xfrac}, which provides flexible split-level fractions.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-l3packages texlive-l3packages)

(define-public texlive-fonts-churchslavonic
  (package
    (name "texlive-fonts-churchslavonic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fonts-churchslavonic/"
                   "fonts/opentype/public/fonts-churchslavonic/")
             (base32
              "0yv3n8m6wcd6jk68fwlaiszv96lbax5rcv1j0wgam4dgpqqmacm4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fonts-churchslavonic")
    (synopsis "Fonts for typesetting in Church Slavonic language")
    (description
     "The package provides Unicode-encoded OpenType fonts for Church Slavonic
which are intended for Unicode TeX engines only.")
    (license license:silofl1.1)))

(define-public texlive-fontspec
  (package
    (name "texlive-fontspec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fontspec/"
                   "source/latex/fontspec/"
                   "tex/latex/fontspec/")
             (base32
              "0rh3x1h8glpmw0nmqv8lili3vf0zw2lcgffzk680c86k8jpjy4cm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-euenc
           texlive-iftex
           texlive-l3kernel
           texlive-l3packages
           texlive-lm
           texlive-xunicode))
    (home-page "https://ctan.org/pkg/fontspec")
    (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
    (description
     "Fontspec is a package for XeLaTeX and LuaLaTeX.  It provides an
automatic and unified interface to feature-rich AAT and OpenType fonts through
the NFSS in LaTeX running on XeTeX or LuaTeX engines.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-fontspec texlive-fontspec)

(define-public texlive-grffile
  (package
    (name "texlive-grffile")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/grffile/"
                   "source/latex/grffile/"
                   "tex/latex/grffile/")
             (base32
              "01mlvdhqwfwj1l91jfvkdfbn1hj95rlb6xhwikzx1r8qrz5whw7n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/grffile")
    (synopsis "Extended file name support for graphics (legacy package)")
    (description
     "The original @code{grffile} package extended the file name processing
of the @code{graphics} package to support a larger range of file names.  The
base LaTeX code now supports multiple dots and spaces, and this package by
default is a stub that just loads @code{graphicx}.")
    (license license:lppl1.3c+)))

(define-public texlive-sanskrit
  (package
    (name "texlive-sanskrit")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sanskrit/"
                   "fonts/source/public/sanskrit/"
                   "fonts/tfm/public/sanskrit/"
                   "source/latex/sanskrit/"
                   "tex/latex/sanskrit/")
             (base32
              "0qc0mylgdcc4rnid29was51s6mzil0smrs7kgnnrv8kvlb6mzydl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/sanskrit")
    (synopsis "Sanskrit support")
    (description
     "This package provides a font and pre-processor suitable for the
production of documents written in Sanskrit.  Type 1 versions of the fonts are
available.")
    (license license:lppl)))

(define-public texlive-sanskrit-t1
  (package
    (name "texlive-sanskrit-t1")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/sanskrit-t1/"
                   "fonts/map/dvips/sanskrit-t1/"
                   "fonts/type1/public/sanskrit-t1/")
             (base32
              "0mv9ph7999y9shnq25k0w4sgcbvlf2gav5d1fpycjxan3h6rc7vi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sanskrit-t1")
    (synopsis "Type 1 version of @code{skt} fonts for Sanskrit")
    (description
     "The sanskrit-t1 font package provides Type 1 version of Charles Wikner's
@code{skt} font series for the Sanskrit language.")
    (license license:lppl)))

(define-public texlive-sansmath
  (package
    (name "texlive-sansmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sansmath/" "tex/latex/sansmath/")
             (base32
              "1lqxfvmxan0c9s270jp8jw1a5s6ya1i4jlfp2xz2k4w0g0fryjpj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sansmath")
    (synopsis "Maths in a Sans font")
    (description
     "The package defines a new math version Sans, and a command
@code{\\sansmath} that behaves somewhat like @code{\\boldmath}.")
    (license license:public-domain)))

(define-public texlive-sansmathfonts
  (package
    (name "texlive-sansmathfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/sansmathfonts/"
                   "fonts/map/dvips/sansmathfonts/"
                   "fonts/source/public/sansmathfonts/"
                   "fonts/tfm/public/sansmathfonts/"
                   "fonts/type1/public/sansmathfonts/"
                   "fonts/vf/public/sansmathfonts/"
                   "tex/latex/sansmathfonts/")
             (base32
              "19349dxvqiinhsihn83yfhl6pgcvkd48l37w5jh59myx7sc6p8j6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs
     (list texlive-amsfonts texlive-cm texlive-ec texlive-metafont))
    (home-page "https://ctan.org/pkg/sansmathfonts")
    (synopsis "Correct placement of accents in sans-serif maths")
    (description
     "This package provides sans serif small caps and math fonts for use with
Computer Modern.")
    (license license:lppl1.3c)))

(define-public texlive-stringenc
  (package
    (name "texlive-stringenc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/stringenc/"
                   "source/latex/stringenc/"
                   "tex/generic/stringenc/")
             (base32
              "1pz9fgn3zc1brbpkw2kkphsv8q6vpvbn51n0smmfl1n2m97fni9j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/stringenc")
    (synopsis "Converting a string between different encodings")
    (description
     "This package provides @code{\\StringEncodingConvert} for converting a
string between different encodings.  Both LaTeX and plain-TeX are supported.")
    (license license:lppl1.3c+)))

(define-public texlive-svg-inkscape
  (package
    (name "texlive-svg-inkscape")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/svg-inkscape/")
             (base32
              "1gw3jp7wph0ys6372z2rgjwlpmmawdax7xpgrp4hzg5hxz748pn5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/svg-inkscape")
    (synopsis "How to include an SVG image in LaTeX using Inkscape")
    (description
     "The document demonstrates the use of SVG images in LaTeX documents.
Using the @samp{PDF+LaTeX output} option of Inkscape, it is possible to
include SVG in documents, in which LaTeX typesets the text.  This results in
uniform text style throughout the document, including text in images;
moreover, LaTeX commands may be used in the image's text, providing such
things as mathematics and references.

The document also describes how to automate the conversion from SVG to
@samp{PDF+LaTeX} using Inkscape.")
    (license license:lppl1.3+)))

(define-public texlive-svn-prov
  (package
    (name "texlive-svn-prov")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/svn-prov/" "source/latex/svn-prov/"
                   "tex/latex/svn-prov/")
             (base32
              "1w416cf1yb1m2j9y38002zq6rbhbmkafi7w100y9m9lrzya0ws06")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/svn-prov")
    (synopsis "Subversion variants of @code{\\Provides}... macros")
    (description
     "The package introduces Subversion variants of the standard LaTeX macros
@code{\\ProvidesPackage}, @code{\\ProvidesClass} and @code{\\ProvidesFile}
where the file name and date is extracted from Subversion Id keywords.  The
file name may also be given explicitly as an optional argument.")
    (license license:lppl)))

(define-public texlive-l3build
  (package
    (name "texlive-l3build")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/l3build/"
                   "doc/man/man1/l3build.1"
                   "doc/man/man1/l3build.man1.pdf"
                   "scripts/l3build/"
                   "source/latex/l3build/"
                   "tex/latex/l3build/")
             (base32
              "19iq80vj1glf35zcrspj1bnk6bf6yr3r3b2c5rgqhz58m2znsla0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "l3build.lua")))
    (propagated-inputs (list texlive-luatex))
    (home-page "https://ctan.org/pkg/l3build")
    (synopsis "Testing and building system for LaTeX")
    (description
     "The @code{l3build} module is designed to support the development of
high-quality LaTeX code by providing: a unit testing system, automated
typesetting of code sources, and a reliable packaging system for CTAN
releases.  The bundle consists of a Lua script to run the tasks and
a @file{.tex} file which provides the testing environment.")
    (license license:lppl1.3c+)))

(define-public texlive-luabidi
  (package
    (name "texlive-luabidi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luabidi/"
                   "tex/lualatex/luabidi/")
             (base32
              "1dwdiwsdfhgwpx8r2271i5kqphcpkh69y3rx1wxfr9hl17lzw2cp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luabidi")
    (synopsis "Bidi functions for LuaTeX")
    (description
     "The package attempts to emulate the XeTeX @code{bidi} package, in the
context of LuaTeX.")
    (license (list license:lppl1.3c license:expat))))

(define-public texlive-luacode
  (package
    (name "texlive-luacode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luacode/"
                   "source/lualatex/luacode/"
                   "tex/lualatex/luacode/")
             (base32
              "1dyld5yb57p3j7wz591plbgjy7dk7ngn8cxw1lfmvx8iprgk1f8d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luacode")
    (synopsis "Helper for executing Lua code from within TeX")
    (description
     "Executing Lua code from within TeX with directlua can sometimes be
tricky: there is no easy way to use the percent character, counting
backslashes may be hard, and Lua comments don't work the way you expect.  The
package provides the @code{\\luaexec} command and the @code{luacode}
environments to help with these problems.")
    (license license:lppl1.3+)))

(define-public texlive-lualatex-doc-de
  (package
    (name "texlive-lualatex-doc-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lualatex-doc-de/")
             (base32
              "0vnmgs475bzbqi14m9sm45cwjfsbvbk45wkb8m73j1bnk7wg7hh4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lualatex-doc-de")
    (synopsis "Guide to LuaLaTeX (German translation)")
    (description
     "The document is a German translation of the map/guide to the world of
LuaLaTeX.  Coverage supports both new users and package developers.  Apart
from the introductory material, the document gathers information from several
sources, and offers links to others.")
    (license license:fdl1.3+)))

(define-public texlive-lualatex-math
  (package
    (name "texlive-lualatex-math")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/lualatex-math/"
                   "source/lualatex/lualatex-math/"
                   "tex/lualatex/lualatex-math/")
             (base32
              "0rzzlq6a0c7sj1x83wqn5iwaiz3w9prcpz4lqbjlkgr7my4m052z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-etoolbox texlive-filehook))
    (home-page "https://ctan.org/pkg/lualatex-math")
    (synopsis "Fixes for mathematics-related LuaLaTeX issues")
    (description
     "The package patches a few commands of the LaTeX2e kernel and the
@code{amsmath} and @code{mathtools} packages to be more compatible with the
LuaTeX engine.  It is only meaningful for LuaLaTeX documents containing
mathematical formulas, and does not exhibit any new functionality.  The fixes
are mostly moved from the @code{unicode-math} package to this package since
they are not directly related to Unicode mathematics typesetting.")
    (license license:lppl1.3c)))

(define-public texlive-lualibs
  (package
    (name "texlive-lualibs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/lualibs/" "source/luatex/lualibs/"
                   "tex/luatex/lualibs/")
             (base32
              "0x53z6072z8qpp5fh2g9blz95zg20906k82jk6hz1hibv70is0pk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip texlive-pdftex))
    (home-page "https://ctan.org/pkg/lualibs")
    (synopsis "Additional Lua functions for LuaTeX macro programmers")
    (description
     "Lualibs is a collection of Lua modules useful for general programming.
The bundle is based on lua modules shipped with ConTeXt, and made available in
this bundle for use independent of ConTeXt.")
    (license license:gpl2)))

(define-deprecated-package texlive-luatex-lualibs texlive-lualibs)

(define-public texlive-lua-alt-getopt
  (package
    (name "texlive-lua-alt-getopt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/lua-alt-getopt/"
                   "scripts/lua-alt-getopt/")
             (base32
              "0cizxzn33n3pn98xkqnxb8s6vdwkar3xrwhraqrs05pjfdn9d4wz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/lua-alt-getopt")
    (synopsis "Process application arguments as @code{getopt_long}")
    (description
     "This package provides a Lua module for processing application arguments
in the same way as BSD/GNU @code{getopt_long(3)} functions do.")
    (license license:expat)))

(define-public texlive-luatex
  (package
    (name "texlive-luatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/base/"
                   "doc/man/man1/dviluatex.1"
                   "doc/man/man1/dviluatex.man1.pdf"
                   "doc/man/man1/luatex.1"
                   "doc/man/man1/luatex.man1.pdf"
                   "doc/man/man1/texlua.1"
                   "doc/man/man1/texlua.man1.pdf"
                   "doc/man/man1/texluac.1"
                   "doc/man/man1/texluac.man1.pdf"
                   "tex/generic/config/luatex-unicode-letters.tex"
                   "tex/generic/config/luatexiniconfig.tex"
                   "web2c/texmfcnf.lua")
             (base32
              "14ad9qr5dn0796f8gqbry5axdm2mciibcgzva8kas1vrqs5a9f19")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:texlive-latex-bin? #f
           #:create-formats #~(list "dviluatex" "luatex")))
    (propagated-inputs
     (list texlive-cm
           texlive-etex
           texlive-hyphen-complete
           texlive-knuth-lib
           texlive-plain
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/luatex")
    (synopsis "Extended version of pdfTeX using Lua")
    (description
     "LuaTeX is an extended version of pdfTeX using Lua as an embedded
scripting language.  The LuaTeX project's main objective is to provide an open
and configurable variant of TeX while at the same time offering downward
compatibility.  LuaTeX uses Unicode (as UTF-8) as its default input encoding,
and is able to use modern (OpenType) fonts (for both text and mathematics).
It should be noted that LuaTeX is still under development; its specification
has been declared stable, but absolute stability may not in practice be
assumed.")
    (license license:gpl2)))

(define-public texlive-luatexbase
  (package
    (name "texlive-luatexbase")
    (version (number->string %texlive-revision))
    (source (texlive-origin

             name version
             (list "doc/luatex/luatexbase/"
                   "source/luatex/luatexbase/"
                   "tex/luatex/luatexbase/")
             (base32
              "1nz2k9czqdmn08v75qa2bwanvcvyp9jmqcgwaxcy4fy4mpbrn8ra")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-ctablestack))
    (home-page "https://ctan.org/pkg/luatexbase")
    (synopsis "Basic resource management for LuaTeX code")
    (description
     "The LaTeX kernel builds in support for LuaTeX functionality, also
available as @file{ltluatex.tex} for users of plain TeX and those with older
LaTeX kernel implementations.  This support is based on ideas taken from the
original @code{luatexbase} package, but there are interface differences.  This
stub package provides a compatibility layer to allow existing packages to
upgrade smoothly to the new support structure.")
    (license license:lppl1.3+)))

(define-public texlive-luatex85
  (package
    (name "texlive-luatex85")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/luatex85/"
                   "source/generic/luatex85/"
                   "tex/generic/luatex85/")
             (base32
              "02j42g9c5smgbrk898fpvrgqlxqcqi8xch23awvnbvg6y54cs573")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luatex85")
    (synopsis "pdfTeX aliases for LuaTeX")
    (description
     "The package provides emulation of pdfTeX primitives for LuaTeX v0.85+.")
    (license license:lppl1.3+)))

(define-public texlive-luatexja
  (package
    (name "texlive-luatexja")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luatexja/"
                   "source/luatex/luatexja/"
                   "tex/luatex/luatexja/")
             (base32
              "1j4dvzxgjyx5aa7akg5wg2w694vds6ra70zk9crrlm83aryqkda7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-luatexbase))
    (home-page "https://ctan.org/pkg/luatexja")
    (synopsis "Typeset Japanese with Lua(La)TeX")
    (description
     "The package offers support for typesetting Japanese documents with LuaTeX.
Either of the Plain and LaTeX2e formats may be used with the package.")
    (license license:bsd-3)))

(define-public texlive-luahbtex
  (package
    (name "texlive-luahbtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/luahbtex.1"
                   "doc/man/man1/luahbtex.man1.pdf")
             (base32
              "1hfawh7vig7jsmd1y0qlbn80x6770q56sqd9rx638js4p5a4di3l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:create-formats #~(list "luahbtex")))
    (propagated-inputs
     (list texlive-cm
           texlive-etex
           texlive-hyphen-complete
           texlive-knuth-lib
           texlive-luatex
           texlive-plain
           texlive-tex-ini-files
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/luahbtex")
    (synopsis "LuaTeX with HarfBuzz library for glyph shaping")
    (description
     "LuaHBTeX is a LuaTeX variant that can use the HarfBuzz engine for glyph
shaping, instead of LuaTeX's built-in shaper.")
    (license (package-license texlive-luatex))))

(define-public texlive-lua-uni-algos
  (package
    (name "texlive-lua-uni-algos")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/lua-uni-algos/"
                   "tex/luatex/lua-uni-algos/")
             (base32
              "1dx70msqkj101mgj88b7fmb28bghlrrrcy5v66m74gqb5i41dnc2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (home-page "https://ctan.org/pkg/lua-uni-algos")
    (synopsis "Unicode algorithms for LuaTeX")
    (description
     "Lua code working with Unicode data has to deal with quite some
challenges.  For example there are many canonically equivalent sequences which
should be treated in the same way, and even identifying a single character
becomes quite different once you have to deal with all kinds of combining
characters, emoji sequences and syllables in different scripts.  Therefore
@code{lua-uni-algos} wants to build a collection of small libraries
implementing algorithms to deal with lots of the details in Unicode, such that
authors of LuaTeX packages can focus on their actual functionality instead of
having to fight against the peculiarities of Unicode.  Given that this package
provides Lua modules, it is only useful in Lua(HB)TeX.  Additionally, it
expects an up-to-date version of the unicode-data package to be present.  This
package is intended for package authors only; no user-level functionality
provided.")
    (license license:lppl1.3+)))

(define-public texlive-luaotfload
  (package
    (name "texlive-luaotfload")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luaotfload/"
                   "doc/man/man1/luaotfload-tool.1"
                   "doc/man/man1/luaotfload-tool.man1.pdf"
                   "doc/man/man5/luaotfload.conf.5"
                   "doc/man/man5/luaotfload.conf.man5.pdf"
                   "scripts/luaotfload/"
                   "source/luatex/luaotfload/"
                   "tex/luatex/luaotfload/")
             (base32
              "0x0vigy6g5sf9n5113p8w885qy9w72skay09p3x6p510lpzaafj5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:texlive-latex-bin? #f
           #:link-scripts #~(list "luaotfload-tool.lua")))
    (propagated-inputs
     (list texlive-lm
           texlive-lua-alt-getopt
           texlive-lua-uni-algos
           texlive-lualibs))
    (home-page "https://ctan.org/pkg/luaotfload")
    (synopsis "OpenType font loader for LuaTeX")
    (description
     "Luaotfload is an adaptation of the ConTeXt font loading system for the
Plain and LaTeX formats.  It allows OpenType fonts to be loaded with font
features accessible using an extended font request syntax while providing
compatibilitywith XeTeX.  By indexing metadata in a database it facilitates
loading fonts by their proper names instead of file names.")
    (license license:gpl2)))

(define-deprecated-package texlive-luatex-luaotfload texlive-luaotfload)

(define-public texlive-amsmath
  (package
    (name "texlive-amsmath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amsmath/" "source/latex/amsmath/"
                   "tex/latex/amsmath/")
             (base32
              "1x97wjj664hvj73k2ffg7xmllaqm25ikjm8rcfjs2q920f5ixw2h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/amsmath")
    (synopsis "AMS mathematical facilities for LaTeX")
    (description
     "This is the principal package in the AMS-LaTeX distribution.  It adapts
for use in LaTeX most of the mathematical features found in AMS-TeX; it is
highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
When amsmath is loaded, AMS-LaTeX packages @code{amsbsy} (for bold symbols),
@code{amsopn} (for operator names) and @code{amstext} (for text embedded in
mathematics) are also loaded.  This package is part of the LaTeX required
distribution; however, several contributed packages add still further to its
appeal; examples are @code{empheq}, which provides functions for decorating
and highlighting mathematics, and @code{ntheorem}, for specifying theorem (and
similar) definitions.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-amsmath texlive-amsmath)

(define-public texlive-amsmath-it
  (package
    (name "texlive-amsmath-it")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/amsmath-it/")
             (base32
              "0xcwsk8q9q3nsz8wbklgpbw0vzjw7iw0chffzcbp2zsk6rypqf7w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amsmath-it")
    (synopsis "Italian translations of some old @code{amsmath} documents")
    (description
     "This package provides an Italian translation for some old @code{amsmath}
documents.  The documents are: @file{diffs-m.txt} of December 1999, and
@file{amsmath.faq} of March 2000.")
    (license license:lppl)))

(define-public texlive-manfnt
  (package
    (name "texlive-manfnt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/manfnt/" "source/latex/manfnt/"
                   "tex/latex/manfnt/")
             (base32
              "0iwka406hkxb85yqg4kwr81483s3h250way1pmbfb67vl3x4p60x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/manfnt")
    (synopsis "LaTeX support for the TeX book symbols")
    (description
     "This package provides a LaTeX package for easy access to the symbols of
the Knuth's manual font, such as the Dangerous Bend and Manual-errata Arrow.")
    (license license:lppl)))

(define-public texlive-manfnt-font
  (package
    (name "texlive-manfnt-font")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/afm/hoekwater/manfnt-font/"
                   "fonts/map/dvips/manfnt-font/"
                   "fonts/type1/hoekwater/manfnt-font/")
             (base32
              "1cdd2a3xj00bwsby9z5iz5f2iy2iwsjl35gcack9q83hacbf3ssb")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/manual")
    (synopsis "Knuth's manual fonts")
    (description
     "This package provides Metafont (by Donald Knuth) and Adobe Type 1 (by
Taco Hoekwater) versions of the font containing the odd symbols Knuth uses in
his books.  LaTeX support is available using the @code{manfnt} package.")
    (license license:knuth)))

(define-public texlive-mathdots
  (package
    (name "texlive-mathdots")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/mathdots/"
                   "source/generic/mathdots/"
                   "tex/generic/mathdots/")
             (base32
              "1jaffj343p1chdxs2g7s6lpckvihk0jfw22nw0vmijyjxfiy9yg0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathdots")
    (synopsis "Commands to produce dots in math that respect font size")
    (description
     "Mathdots redefines @code{\\ddots} and @code{\\vdots}, and defines
@code{\\iddots}.  The dots produced by @code{\\iddots} slant in the opposite
direction to @code{\\ddots}.  All the commands are designed to change size
appropriately in scripts, as well as in response to LaTeX size changing
commands.  The commands may also be used in plain TeX.")
    (license license:lppl)))

(define-public texlive-amscls
  (package
    (name "texlive-amscls")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/amscls/" "doc/latex/amscls/"
                   "source/latex/amscls/" "tex/latex/amscls/")
             (base32
              "1chy1rqwici66p9brphb3gsprmcyhia9cvm5fn9wb5a9cchxqa08")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/amscls")
    (synopsis "AMS document classes for LaTeX")
    (description
     "This bundle contains three AMS classes: @code{amsart} (for writing
articles for the AMS), @code{amsbook} (for books) and @code{amsproc} (for
proceedings), together with some supporting material.  The material is made
available as part of the AMS-LaTeX distribution.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-amscls texlive-amscls)

(define-public texlive-babel
  (package
    (name "texlive-babel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/babel/"
                   "makeindex/babel/"
                   "source/latex/babel/"
                   "tex/generic/babel/")
             (base32
              "18q99xgga4448vk7wf5r5ry79sx5ymqx0zd7v7l1c4wyyiv4riw9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:phases
      #~(modify-phases %standard-phases
          ;; This package tries to produce babel.aux twice but refuses to
          ;; overwrite the first one.
          (add-before 'build 'fix-ins
            (lambda _
              (substitute* "source/latex/babel/babel.ins"
                (("askonceonly") "askforoverwritefalse"))))
          (add-before 'build 'generate-locales
            (lambda _
              (let ((locale-directory (string-append (getcwd) "/build/locale")))
                (mkdir-p locale-directory)
                (with-directory-excursion "source/latex/babel/"
                  (invoke "unzip" "locale.zip" "-d" locale-directory))))))))
    (native-inputs (list texlive-docstrip texlive-pdftex unzip))
    (home-page "https://www.ctan.org/pkg/babel")
    (synopsis "Multilingual support for Plain TeX or LaTeX")
    (description
     "The package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages.  A document may
select a single language to be supported, or it may select several, in which
case the document may switch from one language to another in a variety of
ways.  Babel uses contributed configuration files that provide the detail of
what has to be done for each language.  Users of XeTeX are advised to use the
polyglossia package rather than Babel.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-babel texlive-babel)

(define-public texlive-babelbib
  (package
    (name "texlive-babelbib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/babelbib/"
                   "doc/bibtex/babelbib/" "tex/latex/babelbib/")
             (base32
              "0q65qy0jmy98zfaha26b09hzr7v02jn8i6942y51hfaphbgh8kpx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babelbib")
    (synopsis "Multilingual bibliographies")
    (description
     "This package enables the user to generate multilingual bibliographies in
cooperation with @code{babel}.  Two approaches are possible: each citation may
be written in another language, or the whole bibliography can be typeset in
a language chosen by the user.  In addition, the package supports commands to
change the typography of the bibliographies.")
    (license license:lppl1.0+)))

(define-public texlive-barcodes
  (package
    (name "texlive-barcodes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/barcodes/"
                   "fonts/source/public/barcodes/"
                   "fonts/tfm/public/barcodes/"
                   "source/latex/barcodes/"
                   "tex/latex/barcodes/")
             (base32
              "1bxvmmmb4x0zpdkqa399rwdhz6yamfzx2kn2i7a8vz172q0b2msc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/barcodes")
    (synopsis "Fonts for making barcodes")
    (description
     "The package deals with EAN barcodes; Metafont sources for fonts are
provided, and a set of examples; for some codes, a small Perl script is
needed.")
    (license license:lppl)))

(define-public texlive-bbcard
  (package
    (name "texlive-bbcard")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/bbcard/" "metapost/bbcard/")
             (base32
              "1f1d3l85d0308izqpydmqmb4vpw47lqx1pwjiq14npjs8zfzkp18")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bbcard")
    (synopsis "Bullshit bingo, calendar and baseball-score cards")
    (description
     "This set contains three jiffy packages for creating cards of various
sorts with MetaPost.")
    (license license:public-domain)))

(define-public texlive-bbm
  (package
    (name "texlive-bbm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/bbm/" "fonts/source/public/bbm/"
                   "fonts/tfm/public/bbm/")
             (base32
              "0fyzr8zfcv3i1ymzvpifbkmfxqvrva029vh4v0siia63sl36lvq3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               ;; FIXME: Font metrics cannot be generated due to "bad pos"
               ;; errors with "bbmitt" fonts.
               (delete 'generate-font-metrics))))
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/bbm")
    (synopsis "Blackboard-style CM fonts")
    (description
     "This package provides blackboard variants of Computer Modern fonts.  The
fonts are distributed as Metafont source (only); LaTeX support is available
with the @code{bbm-macros} package.  A sample of these fonts appears in the
blackboard bold sampler.")
    ;; The package states "You may freely use, modify and/or distribute this
    ;; file." everywhere, notably in the file below.
    (license (license:fsf-free "file://doc/fonts/bbm/README"))))

(define-public texlive-bbm-macros
  (package
    (name "texlive-bbm-macros")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bbm-macros/"
                   "source/latex/bbm-macros/"
                   "tex/latex/bbm-macros/")
             (base32
              "11klh7hwi06yr2wx5bpk230hn7rpfspk6sd55j6rmw8kz2wa3lr7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bbm-macros")
    (synopsis "LaTeX support for blackboard-style CM fonts")
    (description
     "This package provides LaTeX support for Blackboard variants of Computer
Modern fonts.  It declares a font family @code{bbm} so you can in principle
write running text in blackboard bold, and lots of math alphabets for using
the fonts within maths.")
    (license license:lppl)))

(define-public texlive-bbold
  (package
    (name "texlive-bbold")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bbold/"
                   "fonts/source/public/bbold/"
                   "fonts/tfm/public/bbold/"
                   "source/latex/bbold/" "tex/latex/bbold/")
             (base32
              "0x3fhz582xcv33s9yiwka82j8bz3nxribgmni3j8j03r6dih8d8r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:build-targets #~(list "bbold.dtx")
           #:tex-format "latex"))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-hypdoc texlive-metafont))))
    (home-page "https://ctan.org/pkg/bbold")
    (synopsis "Sans serif blackboard bold")
    (description
     "This package provides a geometric sans serif blackboard bold font, for
use in mathematics; Metafont sources are provided, as well as macros for use
with LaTeX.")
    (license license:bsd-3)))

(define-public texlive-blockdraw-mp
  (package
    (name "texlive-blockdraw-mp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/blockdraw_mp/"
                   "metapost/blockdraw_mp/")
             (base32
              "1z0cgjslx4kx8fspf3i5h4idxlzhgpm14i16vq88c96z8cdjb2xy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/blockdraw_mp")
    (synopsis "Block diagrams and bond graphs, with MetaPost")
    (description
     "This package provides a set of simple MetaPost macros to draw block
diagrams and bond graphs. While the task is not itself difficult to program,
it is felt that many users will be happy to have a library for the job.")
    (license license:lppl)))

(define-public texlive-blopentype
  (package
    (name "texlive-blopentype")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/blopentype/"
                   "tex/luatex/blopentype/")
             (base32
              "1zz19a0glxad0bq8kpa2qlrmgysdlda1hpxacf3m42m9n3byrb75")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-gates texlive-texapi texlive-yax))
    (home-page "https://ctan.org/pkg/blopentype")
    (synopsis "Basic LuaTeX OpenType handler")
    (description
     "This is a basic LuaTeX OpenType handler, based on Paul Isambert's PiTeX
code.")
    (license (list license:lppl1.3c license:expat))))

(define-public texlive-bookcover
  (package
    (name "texlive-bookcover")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bookcover/"
                   "source/latex/bookcover/"
                   "tex/latex/bookcover/")
             (base32
              "0m5km26diwv7xij4r64c3gk2hl8xc22lrbcccqlrk1fhdlz3i8zb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bookcover")
    (synopsis "Class for book covers and dust jackets")
    (description "This class helps typesetting book covers and dust jackets.")
    (license license:lppl1.2+)))

(define-public texlive-bpolynomial
  (package
    (name "texlive-bpolynomial")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/bpolynomial/"
                   "metapost/bpolynomial/")
             (base32
              "1p4c3xc55zij85yy1jhmj7jrkxss935qx5zdxbm79mjlxx1aq1q0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bpolynomial")
    (synopsis "Drawing polynomial functions of up to order 3")
    (description
     "This MetaPost package helps plotting polynomial and root functions up to
order three.  The package provides macros to calculate Bezier curves exactly
matching a given constant, linear, quadratic or cubic polynomial, or square or
cubic root function.  In addition, tangents on all functions and derivatives
of polynomials can be calculated.")
    (license license:lppl)))

(define-public texlive-businesscard-qrcode
  (package
    (name "texlive-businesscard-qrcode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/businesscard-qrcode/"
                   "tex/xelatex/businesscard-qrcode/")
             (base32
              "0r942lv7mymi9wmmshjgf3vnz2n38m91dzqzrg0dg6bckb09dhmf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/businesscard-qrcode")
    (synopsis "Business cards with QR-Code")
    (description
     "This package generates a configurable business card or visiting card
with full vcard as QR-Code, ready to send to online printers.  You can specify
the exact size of the paper and the content within the paper, including
generation of crop marks.")
    (license license:lgpl3)))

(define-public texlive-cmarrows
  (package
    (name "texlive-cmarrows")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/cmarrows/"
                   "metapost/cmarrows/")
             (base32
              "1awyf474n4f6fivb7ih9mpmz6641f815in8qrg2biagys3czsq96")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cmarrows")
    (synopsis "MetaPost arrows and braces in the Computer Modern style")
    (description
     "This MetaPost package contains macros to draw arrows and braces in the
Computer Modern style.")
    (license license:lppl)))

(define-public texlive-cmexb
  (package
    (name "texlive-cmexb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cmexb/" "fonts/map/dvips/cmexb/"
                   "fonts/tfm/public/cmexb/"
                   "fonts/type1/public/cmexb/")
             (base32
              "1fwnxzlkcf58n1f91vz8xbcp8nmhqmhjqhswgkzvyrd6lnp5gzdk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cmexb")
    (synopsis "@code{cmexb10} metrics and Type 1")
    (description
     "This package provides Computer Modern Math Extension bold, metrics and
@file{.pfb} file.")
    (license license:public-domain)))   ;see "README-cmexb"

(define-public texlive-cqubeamer
  (package
    (name "texlive-cqubeamer")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/cqubeamer/"
                   "tex/xelatex/cqubeamer/")
             (base32
              "13ma7i3z64w59m2hkrh68j3vqa2k93hhb2lmarqb4pkhr72vk4s7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cqubeamer")
    (synopsis "LaTeX Beamer Template for Chongqing University")
    (description
     "This package provides a LaTeX beamer template designed for researchers
of Chongqing University.  It can be used for academic reports, conferences, or
thesis defense, and can be helpful for delivering a speech.  It should be used
with the XeTeX engine.")
    (license (list license:expat license:cc-by4.0))))

(define-public texlive-cs
  (package
    (name "texlive-cs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/enc/dvips/cs/"
                   "fonts/map/dvips/cs/"
                   "fonts/source/public/cs/"
                   "fonts/tfm/cs/cs-a35/"
                   "fonts/tfm/cs/cs-charter/"
                   "fonts/tfm/public/cs/"
                   "fonts/type1/public/cs/"
                   "fonts/vf/cs/cs-a35/"
                   "fonts/vf/cs/cs-charter/")
             (base32
              "0nzzcg1yvbslhqm5lsfcpqh6sbzkmnmmgyakg9l8855qpa8g9bf3")))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      ;; FIXME: The phase fails for multiple font files with error: "cannot
      ;; find cmb12".
      #~(modify-phases %standard-phases
          (delete 'generate-font-metrics))))
    (native-inputs (list texlive-cm texlive-metafont))
    (propagated-inputs (list texlive-cmexb))
    (home-page "https://ctan.org/pkg/csfonts")
    (synopsis "Czech/Slovak-tuned Computer Modern fonts")
    (description "This package provides Czech/Slovak-tuned Computer Modern
fonts in the Metafont format; Type 1 format versions (csfonts-t1) are also
available.")
    (license license:gpl2+)))           ;see fonts/source/public/cs/cscode.mf

;;; Note: if this package is modified, its name must be changed to comply with
;;; its license.
(define-public texlive-csplain
  (package
    (name "texlive-csplain")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/csplain/base/"
                   "tex/csplain/fonts/"
                   "tex/csplain/opmac/")
             (base32
              "14z479gkiwgw17pdghrxh5q0rlxnij7ccj49kgf3macwgmh5lm0r")))
    (arguments
     (list #:create-formats #~(list "csplain" "luacsplain" "pdfcsplain")))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-cm
           texlive-cs
           texlive-enctex
           texlive-hyphen-complete
           texlive-luatex
           texlive-luatex85
           texlive-plain
           texlive-tex
           texlive-tex-ini-files))
    (home-page "https://petr.olsak.net/csplain-e.html")
    (synopsis "Plain TeX multilanguage support")
    (description
     "CSplain is a small extension of basic Plain TeX macros from which the
formats @code{csplain} and @code{pdfcsplain} can be generated.  It supports:
hyphenation of words for 50+ languages, simple and powerful font loading
system (various sizes of fonts), TeX, pdfTeX, XeTeX and LuaTeX engines, math
fonts simply loaded with full amstex-like features, three internal
encodings (IL2 for Czech/Slovak languages, T1 for many languages with latin
alphabet and Unicode in new TeX engines), natural UTF-8 input in pdfTeX using
encTeX without any active characters, Czech and Slovak special typesetting
features.  An important part of the package is OPmac, which implements most of
LaTeX's features (sectioning, font selection, color, hyper reference and URLs,
bibliography, index, table of contents, tables, etc.) by Plain TeX macros.
The OPmac macros can generate a bibliography without any external program.")
    ;; This custom permissive license includes as a redistribution condition
    ;; that says the package must be renamed from 'csplain' if it is modified.
    (license (license:non-copyleft "file:///tex/csplain/base/csplain.ini"))))

(define-public texlive-ctable
  (package
    (name "texlive-ctable")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ctable/" "source/latex/ctable/"
                   "tex/latex/ctable/")
             (base32
              "1x624vz1gv8bsdafwhx89zaic7f2mz9vlvwjpv8fwzjhjwx4lxmv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ctable")
    (synopsis "Flexible typesetting of table and figure floats")
    (description
     "This package provides commands to typeset centered, left- or
right-aligned table and (multiple-)figure floats, with footnotes.")
    (license license:lppl)))

(define-public texlive-babel-albanian
  (package
    (name "texlive-babel-albanian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-albanian/"
                   "source/generic/babel-albanian/"
                   "tex/generic/babel-albanian/")
             (base32
              "1sgyxj2f2w5fb22ys0idcfy10m1wbz3mk3rkpvv7cwa0v3a0arhl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-albanian")
    (synopsis "Support for Albanian within Babel")
    (description
     "The package provides support for typesetting Albanian (as part of the
Babel system).")
    (license license:lppl1.3+)))

(define-public texlive-babel-azerbaijani
  (package
    (name "texlive-babel-azerbaijani")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-azerbaijani/"
                   "source/generic/babel-azerbaijani/"
                   "tex/generic/babel-azerbaijani/")
             (base32
              "0vpgx76316gfhxp9maiqnd3z1hjavzlnjibxi4yhalbby0dnswi1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-azerbaijani")
    (synopsis "Support for Azerbaijani within Babel")
    (description
     "This is the Babel style for Azerbaijani.  This language poses special
challenges because no traditional font encoding contains the full character
set, and therefore a mixture must be used (e.g., T2A and T1).  This package is
compatible with Unicode engines LuaTeX and XeTeX, which are very likely the
most convenient way to write Azerbaijani documents.")
    (license license:lppl1.3+)))

(define-public texlive-babel-basque
  (package
    (name "texlive-babel-basque")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-basque/"
                   "source/generic/babel-basque/"
                   "tex/generic/babel-basque/")
             (base32
              "16bcy5wlkwh8cwvcff1sc3m4rq4a7fzzawpl158kscp7fmw7i7k4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-basque")
    (synopsis "Babel contributed support for Basque")
    (description "The package establishes Basque conventions in a document.")
    (license license:lppl1.3+)))

(define-public texlive-babel-belarusian
  (package
    (name "texlive-babel-belarusian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-belarusian/"
                   "source/generic/babel-belarusian/"
                   "tex/generic/babel-belarusian/")
             (base32
              "1055gyy9hab9whnr5c2p4i4yczkn5pwm0n54ylnnsl8wg8q58w1z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-belarusian")
    (synopsis "Babel support for Belarusian")
    (description
     "The package provides support for use of Babel in documents written in
Belarusian.")
    (license license:lppl1.3c)))

(define-public texlive-babel-bosnian
  (package
    (name "texlive-babel-bosnian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-bosnian/"
                   "source/generic/babel-bosnian/"
                   "tex/generic/babel-bosnian/")
             (base32
              "097j3cwq29x17hc6wbdj2m4h7m2yv47i1m2irqxkrjvywq0b5bqd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-bosnian")
    (synopsis "Babel contrib support for Bosnian")
    (description
     "The package provides a language definition file that enables support of
Bosnian with Babel.")
    (license license:lppl1.3+)))

(define-public texlive-babel-breton
  (package
    (name "texlive-babel-breton")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-breton/"
                   "source/generic/babel-breton/"
                   "tex/generic/babel-breton/")
             (base32
              "0hvb2qjin8jx4lmw3w2y04jnnnc6w0033kjhgflfyp309dmvhzhl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-breton")
    (synopsis "Babel contributed support for Breton")
    (description
     "Breton (being, principally, a spoken language) does not have typographic
rules of its own; this package provides an appropriate selection of French and
British typographic rules.")
    (license license:lppl1.3+)))

(define-public texlive-babel-bulgarian
  (package
    (name "texlive-babel-bulgarian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-bulgarian/"
                   "source/generic/babel-bulgarian/"
                   "tex/generic/babel-bulgarian/")
             (base32
              "065j31rl7r4x8krkwxhq0lwdkmbq90jr8666if4br36kw0g3kzv3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-bulgarian")
    (synopsis "Babel contributed support for Bulgarian")
    (description
     "The package provides support for documents in Bulgarian (or simply
containing some Bulgarian text).")
    (license license:lppl1.3+)))

(define-public texlive-babel-catalan
  (package
    (name "texlive-babel-catalan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-catalan/"
                   "source/generic/babel-catalan/"
                   "tex/generic/babel-catalan/")
             (base32
              "162ih5948z2kbxqxf7bp94ffg7f2b5l8ffa9w304868hj9ik6jfk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-catalan")
    (synopsis "Babel contributed support for Catalan")
    (description
     "The package establishes Catalan conventions in a document (or a subset
of the conventions, if Catalan is not the main language of the document).")
    (license license:lppl1.3+)))

(define-public texlive-babel-croatian
  (package
    (name "texlive-babel-croatian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-croatian/"
                   "source/generic/babel-croatian/"
                   "tex/generic/babel-croatian/")
             (base32
              "1r3cccrc2i57sza8qc24hxm2p6igvhbkr8a6lnsrcrhbji2smi07")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-croatian")
    (synopsis "Babel contributed support for Croatian")
    (description
     "The package establishes Croatian conventions in a document (or a subset
of the conventions, if Croatian is not the main language of the document).")
    (license license:lppl1.3+)))

(define-public texlive-babel-english
  (package
    (name "texlive-babel-english")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-english/"
                   "source/generic/babel-english/"
                   "tex/generic/babel-english/")
             (base32
              "0fh8xxxh79za80yvgypf8clzj0lk237lfyqfkl233id9rlias08d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-english")
    (synopsis "Babel support for English")
    (description
     "The package provides the language definition file for support of
English in @code{babel}.  Care is taken to select british hyphenation patterns
for British English and Australian text, and default (american) patterns for
Canadian and USA text.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-babel-english texlive-babel-english)

(define-public texlive-babel-esperanto
  (package
    (name "texlive-babel-esperanto")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-esperanto/"
                   "source/generic/babel-esperanto/"
                   "tex/generic/babel-esperanto/")
             (base32
              "1av9x9d5rff6hsssssbn1jnyrqnj1c2n5fa4kgxlla95xn7zs65m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-esperanto")
    (synopsis "Babel support for Esperanto")
    (description
     "The package provides the language definition file for support of
Esperanto in Babel.  Some shortcuts are defined, as well as translations to
Esperanto of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-estonian
  (package
    (name "texlive-babel-estonian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-estonian/"
                   "source/generic/babel-estonian/"
                   "tex/generic/babel-estonian/")
             (base32
              "0pi4rmbwjg8mrxi9y6jhczfv6nbrb25n025sx56yn36f579rwwiy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-estonian")
    (synopsis "Babel support for Estonian")
    (description
     "The package provides the language definition file for support of
Estonian in Babel.  Some shortcuts are defined, as well as translations to
Estonian of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-french
  (package
    (name "texlive-babel-french")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-french/"
                   "source/generic/babel-french/"
                   "tex/generic/babel-french/")
             (base32
              "1p0gprdfvfincbkvqbc4bpyx6jf483k798hz5psg04rhmx5hi4wl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-french")
    (synopsis "Babel contributed support for French")
    (description
     "The package establishes French conventions in a document (or a subset of
the conventions, if French is not the main language of the document).")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-babel-french texlive-babel-french)

(define-public texlive-babel-friulan
  (package
    (name "texlive-babel-friulan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-friulan/"
                   "source/generic/babel-friulan/"
                   "tex/generic/babel-friulan/")
             (base32
              "082xhr083hcbp0lqvkfj48hnqj4fa7x30vn6sk6v2f1g57zq9v69")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-friulan")
    (synopsis "Babel and Polyglossia support for Friulan(Furlan)")
    (description
     "The package provides a language description file that enables support of
Friulan either with Babel or with Polyglossia.")
    (license license:lppl1.3+)))

(define-public texlive-babel-galician
  (package
    (name "texlive-babel-galician")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-galician/"
                   "source/generic/babel-galician/"
                   "tex/generic/babel-galician/")
             (base32
              "13giby8mzyxjccyvhb9dsnyqc2h17k70fch84z5mi8si3jnm9sq4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-galician")
    (synopsis "Babel and Polyglossia support for Galician")
    (description
     "The package provides a language description file that enables support of
Galician either with Babel or with Polyglossia.")
    (license license:lppl1.3+)))

(define-public texlive-babel-georgian
  (package
    (name "texlive-babel-georgian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-georgian/"
                   "tex/generic/babel-georgian/")
             (base32
              "1qjpaxzgm0qh88j6x1zvnjb1n994prxqnzchrp05pgsbyjcf410p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-georgian")
    (synopsis "Babel support for Georgian")
    (description
     "The package provides support for use of Babel in documents written in
Georgian.  The package is adapted for use both under traditional TeX engines,
and under XeTeX and LuaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-babel-german
  (package
    (name "texlive-babel-german")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-german/"
                   "source/generic/babel-german/"
                   "tex/generic/babel-german/")
             (base32
              "0iwnn35xnpczi2gxrzrgyilh30qbnj6w05p3q0gvcmnisawfva9q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-german")
    (synopsis "Babel support for documents written in German")
    (description
     "This bundle is an extension to the babel package for multilingual typesetting.
It provides all the necessary macros, definitions and settings to typeset
German documents.  The bundle includes support for the traditional and
reformed German orthography as well as for the Austrian and Swiss varieties of
German.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-babel-german texlive-babel-german)

(define-public texlive-babel-greek
  (package
    (name "texlive-babel-greek")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-greek/"
                   "source/generic/babel-greek/"
                   "tex/generic/babel-greek/")
             (base32
              "116nifgjwx588f63fwkyny36i8p7i9prsz785m81hwnhylii2fhj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-greek")
    (synopsis "Babel support for documents written in Greek")
    (description
     "The file provides modes for monotonic (single-diacritic) and polytonic
(multiple-diacritic) modes of writing.  Provision is made for Greek function
names in mathematics, and for classical-era symbols.")
    (license license:lppl1.3+)))

(define-public texlive-babel-hebrew
  (package
    (name "texlive-babel-hebrew")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-hebrew/"
                   "source/generic/babel-hebrew/"
                   "tex/generic/babel-hebrew/")
             (base32
              "1h4ksd9nvicdgi88fxv8jfh9r5gabg0w75jpqgnngszfnfw486k2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-hebrew")
    (synopsis "Babel support for Hebrew")
    (description
     "The package provides the language definition file for support of Hebrew
in babel.  Macros to control the use of text direction control of TeX--XeT and
e-TeX are provided (and may be used elsewhere).  Some shortcuts are defined,
as well as translations to Hebrew of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-hungarian
  (package
    (name "texlive-babel-hungarian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-hungarian/"
                   "tex/generic/babel-hungarian/")
             (base32
              "1x54clczgvkq9slq5331hvp1rzlv4jm4g9gnpflz8y72jbqmcm24")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-hungarian")
    (synopsis "Babel support for Hungarian (Magyar)")
    (description
     "The package provides a language definition file that enables support of
Magyar (Hungarian) with Babel.")
    (license license:lppl)))

(define-public texlive-babel-icelandic
  (package
    (name "texlive-babel-icelandic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-icelandic/"
                   "source/generic/babel-icelandic/"
                   "tex/generic/babel-icelandic/")
             (base32
              "1cz6q6mn34h19k1rd2c5pfw3s6allqcbsvm0pyriinnylpx9i44d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-icelandic")
    (synopsis "Babel support for Icelandic")
    (description
     "The package provides the language definition file for support of
Icelandic in Babel.  Some shortcuts are defined, as well as translations to
Icelandic of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-indonesian
  (package
    (name "texlive-babel-indonesian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-indonesian/"
                   "source/generic/babel-indonesian/"
                   "tex/generic/babel-indonesian/")
             (base32
              "1ilkl7s5dh8cs6z211p4imyzg3d2axfa5vkmrxn4d3lbx1g3chs1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-indonesian")
    (synopsis "Support for Indonesian within Babel")
    (description "This is the Babel style for Indonesian.")
    (license license:lppl1.3+)))

(define-public texlive-babel-interlingua
  (package
    (name "texlive-babel-interlingua")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-interlingua/"
                   "source/generic/babel-interlingua/"
                   "tex/generic/babel-interlingua/")
             (base32
              "0mxyfa6rsaxwazliblg9p4cbr0vip12c00mkvnz4dak2adnhzvbg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-interlingua")
    (synopsis "Babel support for Interlingua")
    (description
     "The package provides the language definition file for support of
Interlingua in Babel.  This includes translations to Interlingua of standard
LaTeX names (no shortcuts are provided).  Interlingua itself is an auxiliary
language, built from the common vocabulary of Spanish/Portuguese, English,
Italian and French, with some normalisation of spelling.")
    (license license:lppl1.3+)))

(define-public texlive-babel-irish
  (package
    (name "texlive-babel-irish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-irish/"
                   "source/generic/babel-irish/"
                   "tex/generic/babel-irish/")
             (base32
              "0j78inzjbv653gla11g3rzmn0b5fvzbkmppmhbgq9qi8102p7k55")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-irish")
    (synopsis "Babel support for Irish")
    (description
     "The package provides the language definition file for support of Irish
Gaelic in Babel.  The principal content is translations to Irish of standard
LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-italian
  (package
    (name "texlive-babel-italian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-italian/"
                   "source/generic/babel-italian/"
                   "tex/generic/babel-italian/")
             (base32
              "04bj2igc4m59nsax2563dzkzk3f4rvfc8aph35x663a8rf70bvjy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-italian")
    (synopsis "Babel support for Italian text")
    (description "The package provides language definitions for use in
Babel.")
    (license license:lppl1.3c)))

(define-public texlive-babel-japanese
  (package
    (name "texlive-babel-japanese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-japanese/"
                   "source/generic/babel-japanese/"
                   "tex/generic/babel-japanese/")
             (base32
              "0jn2pl080c0dd6ryj6y5b87h6ijg3lcd2hw7g5kyw7p9r7a6b8i0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-japanese")
    (synopsis "Babel support for Japanese")
    (description
     "This package provides a japanese option for the Babel package.  It
defines all the language definition macros in Japanese.  Currently this
package works with pLaTeX, upLaTeX, XeLaTeX and LuaLaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-babel-kurmanji
  (package
    (name "texlive-babel-kurmanji")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-kurmanji/"
                   "source/generic/babel-kurmanji/"
                   "tex/generic/babel-kurmanji/")
             (base32
              "021dzdjhiymsvqxc1cq409vkm7390lrr691snydr9xr35x0k3wr1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-kurmanji")
    (synopsis "Babel support for Kurmanji")
    (description
     "The package provides the language definition file for support of
Kurmanji in Babel.  Kurmanji belongs to the family of Kurdish languages.  Some
shortcuts are defined, as well as translations to Kurmanji of standard LaTeX
names.  Note that the package is dealing with Northern Kurdish, written using
a Latin-based alphabet.  The @code{arabxetex} package offers support for
Kurdish written in Arabic script.")
    (license license:lppl1.3+)))

(define-public texlive-babel-latin
  (package
    (name "texlive-babel-latin")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-latin/"
                   "source/generic/babel-latin/"
                   "tex/generic/babel-latin/")
             (base32
              "1ykiny7rcz5czsadxfxl53403ixkyxi67dqlphqaxkvvm2k61kpb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-latin")
    (synopsis "Babel support for Latin")
    (description
     "The Babel-latin package provides the Babel languages @code{latin},
 @code{classiclatin}, @code{medievallatin}, and @code{ecclesiasticlatin}.  It
also defines several useful shorthands as well as some modifiers for
typographical fine-tuning.")
    (license license:lppl1.3+)))

(define-public texlive-babel-latvian
  (package
    (name "texlive-babel-latvian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-latvian/"
                   "source/generic/babel-latvian/"
                   "tex/generic/babel-latvian/")
             (base32
              "1a605a9ksibxf8kbrqa2bmk24j9wmgzpz5f12jwcym02jm66sw82")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-latvian")
    (synopsis "Babel support for Latvian")
    (description
     "The package provides the language definition file for support of Latvian
in Babel.")
    (license license:lppl1.3+)))

(define-public texlive-babel-lithuanian
  (package
    (name "texlive-babel-lithuanian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-lithuanian/"
                   "source/generic/babel-lithuanian/"
                   "tex/generic/babel-lithuanian/")
             (base32
              "08ifkjb61m9nx3wn8hvca9vfrzlmxpwvrh21hq1rh6dwmqli11j6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-lithuanian")
    (synopsis "Babel support for documents written in Lithuanian")
    (description
     "Babel support material for documents written in Lithuanian moved from
the @code{lithuanian} package into a new package @code{babel-lithuanian} to
match Babel support for other languages.")
    (license license:lppl1.3+)))

(define-public texlive-babel-macedonian
  (package
    (name "texlive-babel-macedonian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-macedonian/"
                   "source/generic/babel-macedonian/"
                   "tex/generic/babel-macedonian/")
             (base32
              "0fps3nlbr4j2vy8pww4xkp2xsxiclzal4ifcpc1a0dsc4blll5nr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-macedonian")
    (synopsis "Babel module to support Macedonian Cyrillic")
    (description
     "The package provides support for Macedonian documents written in
Cyrillic, in Babel.")
    (license license:lppl1.3+)))

(define-public texlive-babel-malay
  (package
    (name "texlive-babel-malay")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-malay/"
                   "source/generic/babel-malay/"
                   "tex/generic/babel-malay/")
             (base32
              "1gbjrsf4drmrplhwl0avpzv5yfyb30znhza4pxk704i1khabnwzk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-malay")
    (synopsis "Support for Malay within Babel")
    (description "This is the Babel style for Malay.")
    (license license:lppl1.3+)))

(define-public texlive-babel-occitan
  (package
    (name "texlive-babel-occitan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-occitan/"
                   "source/generic/babel-occitan/"
                   "tex/generic/babel-occitan/")
             (base32
              "0apg6i95lhhlwwci3mm8gqrs5x5qchxkc9w615cj083bvsri8vnk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-occitan")
    (synopsis "Babel support for Occitan")
    (description "This package provides Occitan language description file for
Babel, with usage instructions.")
    (license license:lppl1.3+)))

(define-public texlive-babel-piedmontese
  (package
    (name "texlive-babel-piedmontese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-piedmontese/"
                   "source/generic/babel-piedmontese/"
                   "tex/generic/babel-piedmontese/")
             (base32
              "04hig8rd6nxwwz1zjskpmap00gixmb63qh08p5fxqc6mb4bdh78b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-piedmontese")
    (synopsis "Babel support for Piedmontese")
    (description
     "The package provides the language definition file for support of
Piedmontese in Babel.  Some shortcuts are defined, as well as translations to
Piedmontese of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-portuges
  (package
    (name "texlive-babel-portuges")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-portuges/"
                   "source/generic/babel-portuges/"
                   "tex/generic/babel-portuges/")
             (base32
              "0619ygyjz5vz3a6khx7yvsa059x59r54fgyxb0p8k196lss07lq2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-portuges")
    (synopsis "Babel support for Portuges")
    (description
     "The package provides the language definition file for support of
Portuguese and Brazilian Portuguese in Babel.  Some shortcuts are defined, as
well as translations to Portuguese of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-romanian
  (package
    (name "texlive-babel-romanian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-romanian/"
                   "source/generic/babel-romanian/"
                   "tex/generic/babel-romanian/")
             (base32
              "0yyzcw7pm0b7fmxwn3j677g066dlmkmpa1flrivkqzbcn4mykwir")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-romanian")
    (synopsis "Babel support for Romanian")
    (description
     "The package provides the language definition file for support of
Romanian in Babel.  Translations to Romanian of standard LaTeX names are
provided.")
    (license license:lppl1.3+)))

(define-public texlive-babel-romansh
  (package
    (name "texlive-babel-romansh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-romansh/"
                   "source/generic/babel-romansh/"
                   "tex/generic/babel-romansh/")
             (base32
              "08lc76yglblidg24s5ap9j0xmzbxgsfwcf9f6g1m4bwbqwkh089x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs (list (texlive-updmap.cfg (list texlive-hypdoc))))
    (home-page "https://ctan.org/pkg/babel-romansh")
    (synopsis "Babel and Polyglossia support for the Romansh language")
    (description
     "The package provides a language description file that enables support of
Romansh either with Babel or with Polyglossia.")
    (license license:lppl1.3+)))

(define-public texlive-babel-russian
  (package
    (name "texlive-babel-russian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-russian/"
                   "source/generic/babel-russian/"
                   "tex/generic/babel-russian/")
             (base32
              "0sy3b7qx5l6smpixa9896zqqrh6ymrz31pd4026f815jy78k3cfb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-russian")
    (synopsis "Russian language module for Babel")
    (description
     "The package provides support for use of Babel in documents written in
Russian (in both traditional and modern forms).  The support is adapted for
use both under traditional TeX engines, and under XeTeX and LuaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-babel-samin
  (package
    (name "texlive-babel-samin")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-samin/"
                   "source/generic/babel-samin/"
                   "tex/generic/babel-samin/")
             (base32
              "17ackyknv665jzcd9ywf54lnmdnl1qgnhdlwybwsjj6m86y71mjl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-samin")
    (synopsis "Babel support for Samin")
    (description
     "The package provides the language definition file for support of North
Sami in Babel.  Several Sami dialects/languages are spoken in Finland, Norway,
Sweden and on the Kola Peninsula of Russia.  Not all use the same alphabet,
and no attempt is made to support any other than North Sami here.  Some
shortcuts are defined, as well as translations to Norsk of standard LaTeX
names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-scottish
  (package
    (name "texlive-babel-scottish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-scottish/"
                   "source/generic/babel-scottish/"
                   "tex/generic/babel-scottish/")
             (base32
              "0wnrahbjkqrgxr4ra2lpnj5yiygbd8pyivcndzax1r7x2ci0f805")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-scottish")
    (synopsis "Babel support for Scottish Gaelic")
    (description
     "The package provides the language definition file for support of Gaidhlig
(Scottish Gaelic) in Babel.  Some shortcuts are defined, as well as
translations of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-serbian
  (package
    (name "texlive-babel-serbian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-serbian/"
                   "source/generic/babel-serbian/"
                   "tex/generic/babel-serbian/")
             (base32
              "089w8phd1pyzh8dmn4v2bspnmx4hqi63mby1yn7xk596qxi3nqrz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-serbian")
    (synopsis "Babel and Polyglossia support for Serbian")
    (description
     "The package provides support for Serbian documents written in Latin, in
Babel.")
    (license license:lppl1.3+)))

(define-public texlive-babel-serbianc
  (package
    (name "texlive-babel-serbianc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-serbianc/"
                   "source/generic/babel-serbianc/"
                   "tex/generic/babel-serbianc/")
             (base32
              "1ji77vlb10vxdka5bsnqkrlf34c4qhpl162xizrzxf11z6099wng")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-serbianc")
    (synopsis "Babel module to support Serbian Cyrillic")
    (description
     "The package provides support for Serbian documents written in Cyrillic,
in Babel.")
    (license license:lppl1.3+)))

(define-public texlive-babel-slovak
  (package
    (name "texlive-babel-slovak")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-slovak/"
                   "source/generic/babel-slovak/"
                   "tex/generic/babel-slovak/")
             (base32
              "16w95j3ckvjvmwccx2qvf7lq3b3zvnlf7ygm35i8xq22f3lm2a9k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-slovak")
    (synopsis "Babel support for typesetting Slovak")
    (description
     "The package provides the language definition file for support of Slovak
in Babel, including Slovak variants of LaTeX built-in-names.  Shortcuts are
also defined.")
    (license license:lppl1.3+)))

(define-public texlive-babel-slovenian
  (package
    (name "texlive-babel-slovenian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-slovenian/"
                   "source/generic/babel-slovenian/"
                   "tex/generic/babel-slovenian/")
             (base32
              "08bf1732vsa148km0vkfj6k1cg3j3yrhkzsvnhv283bbr1wqprz6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-slovenian")
    (synopsis "Babel support for typesetting Slovenian")
    (description
     "The package provides the language definition file for support of
Slovenian in Babel.  Several shortcuts are defined, as well as translations to
Slovenian of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-sorbian
  (package
    (name "texlive-babel-sorbian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-sorbian/"
                   "source/generic/babel-sorbian/"
                   "tex/generic/babel-sorbian/")
             (base32
              "1b6qqk0qik294z8sirvf58cf5v8mhsz4hj91gw7zg8b4j362lp8y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-sorbian")
    (synopsis "Babel support for Upper and Lower Sorbian")
    (description
     "The package provides language definitions file for support of both Upper
and Lower Sorbian, in Babel.  Some shortcuts are defined, as well as
translations to the relevant language of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-spanish
  (package
    (name "texlive-babel-spanish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-spanish/"
                   "source/generic/babel-spanish/"
                   "tex/generic/babel-spanish/")
             (base32
              "0nzc4hs91a901cjy2vhpamdw3gyxp7k2lmag9ni8zmy180zncm5g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-spanish")
    (synopsis "Babel support for Spanish")
    (description
     "This bundle provides the means to typeset Spanish text, with the support
provided by the LaTeX standard package Babel.  Note that separate support is
provided for those who wish to typeset Spanish as written in Mexico.")
    (license license:lppl1.3+)))

(define-public texlive-babel-swedish
  (package
    (name "texlive-babel-swedish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-swedish/"
                   "source/generic/babel-swedish/"
                   "tex/generic/babel-swedish/")
             (base32
              "0qi2rzhlxikabrk9n0096inbczgp5hwghvy5zn0mph8zmsxlfbdf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-swedish")
    (synopsis "Babel support for typesetting Swedish")
    (description
     "The package provides the language definition file for Swedish.")
    (license license:lppl1.3+)))

(define-public texlive-babel-thai
  (package
    (name "texlive-babel-thai")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-thai/"
                   "source/generic/babel-thai/"
                   "tex/generic/babel-thai/")
             (base32
              "1wgprys500a1fn56bnsmq8fhmb9y8cfwsqn5hginfb36d3gym4p6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-thai")
    (synopsis "Support for Thai within babel")
    (description
     "The package provides support for typesetting Thai text within the Babel
system.")
    (license license:lppl1.3+)))

(define-public texlive-babel-turkish
  (package
    (name "texlive-babel-turkish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-turkish/"
                   "source/generic/babel-turkish/"
                   "tex/generic/babel-turkish/")
             (base32
              "0q88q0kfa4jjd4m51mvj798scxr5c5l7bjp9sfv8s5pq3ym19bq0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-turkish")
    (synopsis "Babel support for Turkish documents")
    (description
     "The package provides support, within Babel, of the Turkish language.")
    (license license:lppl1.3+)))

(define-public texlive-babel-ukrainian
  (package
    (name "texlive-babel-ukrainian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-ukrainian/"
                   "source/generic/babel-ukrainian/"
                   "tex/generic/babel-ukrainian/")
             (base32
              "1nz8yzpc5khyv6wgm5ndwfdxx591wqlg311crzxk08ardg8zwvgs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-ukrainian")
    (synopsis "Babel support for Ukrainian")
    (description
     "The package provides support for use of babel in documents written in
Ukrainian.  The support is adapted for use under legacy TeX engines as well as
XeTeX and LuaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-babel-vietnamese
  (package
    (name "texlive-babel-vietnamese")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-vietnamese/"
                   "source/generic/babel-vietnamese/"
                   "tex/generic/babel-vietnamese/")
             (base32
              "12nnrdk0k2xfab33249s3gzs1815p7j197bv4zisndxvrmiv6hdf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-vietnamese")
    (synopsis "Babel support for typesetting Vietnamese")
    (description
     "The package provides the language definition file for support of
Vietnamese in Babel.")
    (license license:lppl1.3+)))

(define-public texlive-babel-welsh
  (package
    (name "texlive-babel-welsh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-welsh/"
                   "source/generic/babel-welsh/"
                   "tex/generic/babel-welsh/")
             (base32
              "0qba526ralldh4y6w0pzdw2vb2ng31mw416qzn0zzjp8sppc3hyw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-welsh")
    (synopsis "Babel support for Welsh")
    (description
     "The package provides the language definition file for Welsh.")
    (license license:lppl1.3+)))

(define-public texlive-cyklop
  (package
    (name "texlive-cyklop")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cyklop/"
                   "fonts/afm/public/cyklop/"
                   "fonts/enc/dvips/cyklop/"
                   "fonts/map/dvips/cyklop/"
                   "fonts/opentype/public/cyklop/"
                   "fonts/tfm/public/cyklop/"
                   "fonts/type1/public/cyklop/"
                   "tex/latex/cyklop/")
             (base32
              "0jfri15l1jycqzjac8s5bz6izypdwfjagfz6jhw95ixj1s9brnpl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cyklop")
    (synopsis "The Cyclop typeface")
    (description
     "The Cyclop typeface was designed in the 1920s at the workshop of Warsaw
type foundry @emph{Odlewnia Czcionek J. Idzkowski i S-ka}.  This sans serif
typeface has a highly modulated stroke so it has high typographic contrast.
The vertical stems are much heavier then horizontal ones.  Most characters
have thin rectangles as additional counters giving the unique shape of the
characters.  The lead types of Cyclop typeface were produced in slanted
variant at sizes 8-48 pt.  It was heavily used for heads in newspapers and
accidents prints.  Typesetters used Cyclop in the inter-war period, during the
occupation in the underground press.  The typeface was used until the
beginnings of the offset print and computer typesetting era.  Nowadays it is
hard to find the metal types of this typeface.

The fonts are distributed in the Type1 and OpenType formats along with the
files necessary for use these fonts in TeX and LaTeX including encoding
definition files: T1 (ec), T5 (Vietnamese), OT4, QX, texnansi and nonstandard
ones (IL2 for Czech fonts).")
    (license license:gfl1.0)))

(define-public texlive-cyrillic-bin
  (package
    (name "texlive-cyrillic-bin")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/rubibtex.1"
                   "doc/man/man1/rubibtex.man1.pdf"
                   "doc/man/man1/rumakeindex.1"
                   "doc/man/man1/rumakeindex.man1.pdf"
                   "scripts/texlive-extra/rubibtex.sh"
                   "scripts/texlive-extra/rumakeindex.sh")
             (base32
              "09l5f7l91ph6sqfp2ia3yn23pa3s4cyfgyn020ncqvapg00s0mmg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "rubibtex.sh" "rumakeindex.sh")
      #:phases
      #~(modify-phases %standard-phases
          (replace 'patch-shell-scripts
            (lambda _
              (with-directory-excursion "scripts/texlive-extra/"
                (with-fluids ((%default-port-encoding "ISO-8859-1"))
                  (substitute* (list "rubibtex.sh" "rumakeindex.sh")
                    (("\\b(basename|cat|mkdir|rm|sed)\\b" _ command)
                     (which command))))))))))
    (home-page "https://ctan.org/pkg/cyrillic-bin")
    (synopsis "Cyrillic BibTeX and MakeIndex")
    (description
     "This package provides scripts for Cyrillic versions of BibTeX and
MakeIndex.")
    (license license:public-domain)))

(define-public texlive-cyrillic
  (package
    (name "texlive-cyrillic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cyrillic/"
                   "source/latex/cyrillic/"
                   "tex/latex/cyrillic/")
             (base32
              "08v670f7s74klnac7pzqsad9m4jsxfkckzkswxb94xxd61kanzdx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:tex-engine "tex"
           #:tex-format #f))
    (native-inputs (list texlive-docstrip))
    (propagated-inputs (list texlive-cyrillic-bin))
    (home-page "https://ctan.org/pkg/cyrillic")
    (synopsis "Support for Cyrillic fonts in LaTeX")
    (description
     "This bundle of macros files provides macro support (including font
encoding macros) for the use of Cyrillic characters in fonts encoded under the
T2* and X2 encodings.  These encodings cover (between them) pretty much every
language that is written in a Cyrillic alphabet.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-cyrillic texlive-cyrillic)

(define-public texlive-passivetex
  (package
    (name "texlive-passivetex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/xmltex/passivetex/")
             (base32
              "1h49v6sqbm27isfwwcql9dzxn4vmcn2algkqh7f1pzj860xw3ygn")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/passivetex")
    (synopsis "Support package for XML/SGML typesetting")
    (description
     "This is a set of packages providing XML parsing, UTF-8 parsing,
Unicode entities, and common formatting object definitions for JadeTeX.")
    ;; License given in "tex/xmltex/passivetex/mlnames.sty".
    (license license:lppl1.0+)))

(define-public texlive-pict2e
  (package
    (name "texlive-pict2e")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pict2e/"
                   "source/latex/pict2e/"
                   "tex/latex/pict2e/")
             (base32
              "0pazv1khsgjhxc673qrhjrbzlkgmcj53qccb9hw7ygdajxrjc2ba")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pict2e")
    (synopsis "New implementation of @code{picture} commands")
    (description
     "This package extends the existing LaTeX @code{picture} environment,
using the familiar technique (the @code{graphics} and @code{color} packages)
of driver files (at present, drivers for dvips, pdfTeX, LuaTeX, XeTeX, VTeX,
dvipdfm, and dvipdfmx are available).  The package documentation has a fair
number of examples of use, showing where things are improved by comparison
with the LaTeX @code{picture} environment.")
    (license license:lppl1.3+)))

(define-public texlive-psnfss
  (package
    (name "texlive-psnfss")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/psnfss/"
                   "fonts/map/dvips/psnfss/"
                   "source/latex/psnfss/"
                   "tex/latex/psnfss/")
             (base32
              "17zxqz32ky99z22yaqayg9ih8lyaswi97d34jykc0s12w4k4i97c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs
     (list texlive-cm))
    (propagated-inputs
     (list texlive-graphics texlive-symbol texlive-zapfding))
    (home-page "https://www.ctan.org/pkg/psnfss")
    (synopsis "Font support for common PostScript fonts")
    (description
     "The PSNFSS collection includes a set of files that provide a complete
working setup of the LaTeX font selection scheme (NFSS2) for use with common
PostScript fonts.  The base set of text fonts covered by PSNFSS includes the
AvantGarde, Bookman, Courier, Helvetica, New Century Schoolbook, Palatino,
Symbol, Times Roman and Zapf Dingbats fonts.  In addition, the fonts Bitstream
Charter and Adobe Utopia are covered.  Separate packages are provided to load
each font for use as the main text font.  The package @code{helvet} allows
Helvetica to be loaded with its size scaled to something more appropriate for
use as a Sans-Serif font to match Times, while @code{pifont} provides the
means to select single glyphs from symbol fonts.  The bundle as a whole is
part of the LaTeX required set of packages.")
    (license license:lppl1.2+)))

(define-deprecated-package texlive-latex-psnfss texlive-psnfss)

(define-public texlive-ifplatform
  (package
    (name "texlive-ifplatform")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ifplatform/"
                   "source/latex/ifplatform/"
                   "tex/latex/ifplatform/")
             (base32
              "1llas0xwq3y9nk7gblg40l99cgmkl9r7rbfazrhpnbaz5cshl8pl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ifplatform")
    (synopsis "Conditionals to test which platform is being used")
    (description
     "This package uses the (La)TeX extension @samp{-shell-escape} to
establish whether the document is being processed on a Windows or on
a Unix-like system, or on Cygwin.

Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
and @code{\\ifcygwin}.  The package also preserves the output of
@command{uname} on a Unix-like system, which may be used to distinguish
between various classes of Unix systems.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-ifplatform texlive-ifplatform)

(define-public texlive-ifptex
  (package
    (name "texlive-ifptex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/ifptex/" "tex/generic/ifptex/")
             (base32
              "0l5mclz9cwj756ah0nqbiai0b5m9368dz4ykb0ih5irm6cmswdfm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ifptex")
    (synopsis "Check if the engine is pTeX or one of its derivatives")
    (description
     "The @code{ifptex} package is a counterpart of @code{ifxetex},
@code{ifluatex}, etc.@: for the pTeX engine.  The @code{ifuptex} package is an
alias to @code{ifptex} provided for backward compatibility.")
    (license license:expat)))

(define-public texlive-iftex
  (package
    (name "texlive-iftex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/iftex/" "tex/generic/iftex/")
             (base32
              "05p8iw8c8vjs59zb8pgilwpvlzrlb8zxyf34fhyr67y6bwm8phnf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "http://www.ctan.org/pkg/iftex")
    (synopsis "Determine the currently used TeX engine")
    (description
     "This package, which works both for Plain TeX and for LaTeX, defines the
@code{\\ifPDFTeX}, @code{\\ifXeTeX}, and @code{\\ifLuaTeX} conditionals for
testing which engine is being used for typesetting.  The package also provides
the @code{\\RequirePDFTeX}, @code{\\RequireXeTeX}, and @code{\\RequireLuaTeX}
commands which throw an error if pdfTeX, XeTeX or LuaTeX (respectively) is not
the engine in use.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-iftex texlive-iftex)
(define-deprecated-package texlive-generic-ifxetex texlive-iftex)

(define-public texlive-ifxptex
  (package
    (name "texlive-ifxptex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/ifxptex/"
                   "tex/generic/ifxptex/")
             (base32
              "0r77j010a9fcn47kjy6vwv72i8fynb8jsilas6hs9c9lgk5bal1g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ifxptex")
    (synopsis "Detect pTeX and its derivatives")
    (description
     "The package provides commands for detecting pTeX and its derivatives
(e-pTeX, upTeX, e-upTeX, and ApTeX).  Both LaTeX and plain TeX are
supported.")
    (license license:knuth)))

(define-public texlive-tipa
  (package
    (name "texlive-tipa")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/tipa/"
                   "fonts/map/dvips/tipa/"
                   "fonts/source/public/tipa/"
                   "fonts/tfm/public/tipa/"
                   "fonts/type1/public/tipa/"
                   "tex/latex/tipa/")
             (base32
              "11gi7yhq2lnfgvqa29i0sidi5mwkzpja5ggdcpvqwv4xljf4vpvh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs
     (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/tipa")
    (synopsis "Fonts and macros for IPA phonetics characters")
    (description
     "These fonts are considered the ultimate answer to IPA typesetting.  The
encoding of these 8-bit fonts has been registered as LaTeX standard encoding
T3, and the set of addendum symbols as encoding TS3.  Times-like Adobe Type
1 versions are provided for both the T3 and the TS3 fonts.")
    (license license:lppl)))

(define-public texlive-tipa-de
  (package
    (name "texlive-tipa-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tipa-de/")
             (base32
              "16gwc0dpdls6s2vdl3hmd6307d88gfzsa3kbw3vhl0z5iawvwj4h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tipa-de")
    (synopsis "German translation of @code{tipa} documentation")
    (description
     "This is a German translation of Fukui Rei's @code{tipaman} from the
@code{tipa} bundle.")
    (license license:lppl)))

(define-public texlive-amsrefs
  (package
    (name "texlive-amsrefs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/amsrefs/" "bibtex/bst/amsrefs/"
                   "doc/latex/amsrefs/" "source/latex/amsrefs/"
                   "tex/latex/amsrefs/")
             (base32
              "12la66vz5ic6jc1cy96b2zh2fxsbaii9kbs4wrz1ii8v508wdkhv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/amsrefs")
    (synopsis "LaTeX-based replacement for BibTeX")
    (description
     "Amsrefs is a LaTeX package for bibliographies that provides an
archival data format similar to the format of BibTeX database files, but
adapted to make direct processing by LaTeX easier.  The package can be used
either in conjunction with BibTeX or as a replacement for BibTeX.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-amsrefs texlive-amsrefs)

(define-public texlive-bigfoot
  (package
    (name "texlive-bigfoot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bigfoot/"
                   "source/latex/bigfoot/"
                   "tex/latex/bigfoot/")
             (base32
              "140b4bbjcgajd1flznmi3ga6lx5pna2nxybr2dqm9515lny8gwf0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bigfoot")
    (synopsis "Footnotes for critical editions")
    (description
     "The package aims to provide a one-stop solution to requirements for
footnotes.  It offers multiple footnote apparatus superior to that of
@code{manyfoot}.  Footnotes can be formatted in separate paragraphs, or be run
into a single paragraph.  Note that the majority of the @code{bigfoot}
package's interface is identical to that of @code{manyfoot}; users should seek
information from that package's documentation.

The @code{bigfoot} bundle also provides the @code{perpage} and @code{suffix}
packages.")
    (license license:gpl2+)))

(define-deprecated-package texlive-latex-bigfoot texlive-bigfoot)

(define-public texlive-blindtext
  (package
    (name "texlive-blindtext")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/blindtext/"
                   "source/latex/blindtext/"
                   "tex/latex/blindtext/")
             (base32
              "1gakawih3mzm5jh01kb44sjpsa4r8c3zwzig5bac37g4ha2vqska")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/blindtext")
    (synopsis "Producing blind text for testing")
    (description
     "The package provides the commands @code{\\blindtext} and
@code{\\Blindtext} for creating \"blind\" text useful in testing new classes
and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
an entire random document with sections, lists, mathematics, etc.  The package
supports three languages, @code{english}, @code{(n)german} and @code{latin};
the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
ipsum\" text, see the @code{lipsum} package).")
    (license license:lppl)))

(define-deprecated-package texlive-latex-blindtext texlive-blindtext)

(define-public texlive-dinbrief
  (package
    (name "texlive-dinbrief")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dinbrief/"
                   "source/latex/dinbrief/"
                   "tex/latex/dinbrief/")
             (base32
              "0l6mmn3y07xglmh3h5f7pnpmyacqb2g6nqgq3q1p6k97kf708c5s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-build
            (lambda _
              (with-fluids ((%default-port-encoding "ISO-8859-1"))
                (with-directory-excursion "source/latex/dinbrief"
                  (delete-file "dinbrief.drv")
                  (substitute* "dinbrief.dtx"
                    (("zur Verf.+ung. In der Pr\"aambel")
                     "zur Verf\"ung. In der Pr\"aambel")))))))))
    (home-page "https://ctan.org/pkg/dinbrief")
    (synopsis "German letter DIN style")
    (description
     "This package implements a document layout for writing letters according
to the rules of DIN (Deutsches Institut für Normung, German standardisation
institute).  A style file for LaTeX 2.09 (with limited support of the
features) is part of the package.  Since the letter layout is based on a
German standard, the user guide is written in German, but most macros have
English names from which the user can recognize what they are used for.  In
addition there are example files showing how letters may be created with the
package.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-dinbrief texlive-dinbrief)

(define-public texlive-draftwatermark
  (package
    (name "texlive-draftwatermark")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/draftwatermark/"
                   "source/latex/draftwatermark/"
                   "tex/latex/draftwatermark/")
             (base32
              "04l3gqiq0bhzbz8zxr7428fap2x1skkaq5ppbambc4lk8c7iw6da")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/draftwatermark")
    (synopsis "Put a grey textual watermark on document pages")
    (description
     "This package provides a means to add a textual, light grey watermark
on every page or on the first page of a document.  Typical usage may consist
in writing words such as DRAFT or CONFIDENTIAL across document pages.  The
package performs a similar function to that of @code{draftcopy}, but its
implementation is output device independent, and made very simple by relying
on @code{everypage}.")
    (license license:lppl1.3+)))

(define-public texlive-drv
  (package
    (name "texlive-drv")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/drv/" "metapost/drv/")
             (base32
              "0vjc9x9xa50zzzc3m2csj9x0gqwcamhyqz1xkdbkqwkcy8rfpnlh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/drv")
    (synopsis "Derivation trees with MetaPost")
    (description
     "This package provides a set of MetaPost macros for typesetting
derivation trees (such as used in sequent calculus, type inference,
programming language semantics...).")
    (license license:lppl)))

(define-public texlive-dviincl
  (package
    (name "texlive-dviincl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/dviincl/" "metapost/dviincl/")
             (base32
              "05f6ll7cq4ad4i4nkzrjnlqg1456is06fbmjiinadahf7yrqk3lw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dviincl")
    (synopsis "Include a DVI page into MetaPost output")
    (description
     "DVItoMP is one of the auxiliary programs available to any MetaPost
package; it converts a DVI file into a MetaPost file.  Using it, one can
envisage including a DVI page into an EPS files generated by MetaPost.  Such
files allow pages to include other pages.")
    (license license:public-domain)))

(define-public texlive-emp
  (package
    (name "texlive-emp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/emp/" "source/latex/emp/"
                   "tex/latex/emp/")
             (base32
              "183qwxxjws4l0jrn92dj4qd8avnv9gq2rk1zqak0h48wxlp0fpyq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/emp")
    (synopsis "Encapsulate MetaPost figures in a document")
    (description
     "Emp is a package for encapsulating MetaPost figures in LaTeX: the
package provides environments where you can place MetaPost commands, and means
of using that code as fragments for building up figures to include in your
document.  So, with Emp, the procedure is to run your document with LaTeX, run
MetaPost, and then complete running your document in the normal way.  Emp is
therefore useful for keeping illustrations in synchrony with the text.  It
also frees you from inventing descriptive names for PostScript files that fit
into the confines of file system conventions.")
    (license license:gpl3+)))

(define-public texlive-enctex
  (package
    (name "texlive-enctex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/enctex/"
                   "tex/generic/enctex/")
             (base32
              "1j8ji1ka8vhskm5kn0iwmkhjfp88ly6rva30pr1c9llsmsac5sf2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/enctex")
    (synopsis "TeX extension that translates input on its way into TeX")
    (description
     "EncTeX is (another) TeX extension, written at the change-file level.  It
provides means of translating input on the way into TeX.  It allows, for
example, translation of multibyte sequences, such as utf-8 encoding.")
    (license license:gpl3+)))

(define-public texlive-environ
  (package
    (name "texlive-environ")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/environ/"
                   "source/latex/environ/"
                   "tex/latex/environ/")
             (base32
              "08a3vhyzc647b9zp3yifdklj0vch9cv2vajh7ig3y01jcdqhjy41")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-trimspaces))
    (home-page "https://ctan.org/pkg/environ")
    (synopsis "New interface for environments in LaTeX")
    (description
     "This package provides the @code{\\collect@@body} command (as in
@code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
for collecting the body text of an environment.  These commands are used to
define a new author interface to creating new environments.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-environ texlive-environ)

(define-public texlive-epsincl
  (package
    (name "texlive-epsincl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/epsincl/" "metapost/epsincl/")
             (base32
              "1pjnfqayh42gavlbd9wqn86qyqhw1bxrbmwgsv39ycj4s63xjxqr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/epsincl")
    (synopsis "Include EPS in MetaPost figures")
    (description
     "The package facilitates including EPS files in MetaPost figures.")
    (license license:public-domain)))

(define-public texlive-eqparbox
  (package
    (name "texlive-eqparbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eqparbox/"
                   "source/latex/eqparbox/"
                   "tex/latex/eqparbox/")
             (base32
              "16c5dyd4bz45a2c1ppbq05h9ixg15srk5az5pld5gpv4j0zwzrqw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eqparbox")
    (synopsis "Create equal-widthed parboxes")
    (description
     "LaTeX users sometimes need to ensure that two or more blocks of text
occupy the same amount of horizontal space on the page.  To that end, the
@code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
just like @code{\\parbox}, except that instead of specifying a width, one
specifies a tag.  All @code{eqparbox}es with the same tag---regardless of
where they are in the document---will stretch to fit the widest
@code{eqparbox} with that tag.  This simple, equal-width mechanism can be used
for a variety of alignment purposes, as is evidenced by the examples in
@code{eqparbox}'s documentation.  Various derivatives of @code{\\eqparbox} are
also provided.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-eqparbox texlive-eqparbox)

(define-public texlive-etoc
  (package
    (name "texlive-etoc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/etoc/" "source/latex/etoc/"
                   "tex/latex/etoc/")
             (base32
              "02xa9091vgz5gdzbsc202mzd4lalvvkh3b7slnzppx827sqbq917")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/etoc")
    (synopsis "Customisable table of contents")
    (description
     "This package gives the user complete control of how the entries of the
table of contents should be constituted from the name, number, and page number
of each sectioning unit.  The layout is controlled by the definition of line
styles for each sectioning level used in the document.

The package provides its own custom line styles (which may be used as
examples), and continues to support the standard formatting inherited from the
LaTeX document classes, but the package can also allow the user to delegate
the details to packages dealing with list making environments (such as
@code{enumitem}).  The package's default global style typesets tables of
contents in a multi-column format, with either a standard heading, or a ruled
title (optionally with a frame around the table).

The @code{\\tableofcontents} command may be used arbitrarily many times in the
same document, while @code{\\localtableofcontents} provides a local table of
contents.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-etoc texlive-etoc)

(define-public texlive-expdlist
  (package
    (name "texlive-expdlist")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/expdlist/"
                   "source/latex/expdlist/"
                   "tex/latex/expdlist/")
             (base32
              "1kylmj615hmbmjbynn5bfzhfz0wk1drxmg0kjqljnglffkb6irv6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/expdlist")
    (synopsis "Expanded description environments")
    (description
     "The package provides additional features for the LaTeX @code{description} environment,
including adjustable left margin.  The package also allows the user to break
a list (for example, to interpose a comment) without affecting the structure
of the list (this works for itemize and eumerate lists and numbered lists
remain in sequence).")
    (license license:lppl)))

(define-deprecated-package texlive-latex-expdlist texlive-expdlist)

(define-public texlive-expressg
  (package
    (name "texlive-expressg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/expressg/"
                   "metapost/expressg/"
                   "source/metapost/expressg/")
             (base32
              "08f6lxxxmhfld6g2iy2kn68llalz3wayxqka7nd48s1ahm33kmdd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/expressg")
    (synopsis "Diagrams consisting of boxes, lines, and annotations")
    (description
     "This package provides a MetaPost package providing facilities to assist
in drawing diagrams that consist of boxes, lines, and annotations.  Particular
support is provided for creating EXPRESS-G diagrams, for example IDEF1X, OMT,
Shlaer-Mellor, and NIAM diagrams.  The package may also be used to create UML
and most other Box-Line-Annotation charts, but not Gantt charts directly.")
    (license license:lppl)))

(define-public texlive-exteps
  (package
    (name "texlive-exteps")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/exteps/" "metapost/exteps/")
             (base32
              "1mmlmcjn8fk16y14p3q6xfmkcc75vcykblgcyzapzxd1nzy51ak7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/exteps")
    (synopsis "Include EPS figures in MetaPost")
    (description
     "Exteps is a module for including external EPS figures into MetaPost
figures.  It is written entirely in MetaPost, and does not therefore require
any post processing of the MetaPost output.")
    (license license:gpl3+)))

(define-public texlive-featpost
  (package
    (name "texlive-featpost")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/featpost/"
                   "metapost/featpost/")
             (base32
              "0a97syvr3vwpayhasb98ssvgwr99p13plrjnqb9ad24jd6srmmdg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/featpost")
    (synopsis "MetaPost macros for 3D")
    (description
     "These macros allow the production of three-dimensional schemes
containing angles, circles, cylinders, cones and spheres, among other
things.")
    (license license:gpl3+)))

(define-public texlive-feynmf
  (package
    (name "texlive-feynmf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/feynmf/" "metafont/feynmf/"
                   "metapost/feynmf/" "source/latex/feynmf/"
                   "tex/latex/feynmf/")
             (base32
              "1a6zhs4x6rkjl7vapc3y59hmrvmi570ji2bszpsk88w3fi8klckb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/feynmf")
    (synopsis "Macros and fonts for creating Feynman (and other) diagrams")
    (description
     "The @code{feynmf} package provides an interface to Metafont to use
simple structure specifications to produce relatively complex diagrams. While
the package was designed for Feynman diagrams, it could in principle be used
for diagrams in graph and similar theories, where the structure is
semi-algorithmically determined.")
    (license license:gpl3+)))

(define-public texlive-feynmp-auto
  (package
    (name "texlive-feynmp-auto")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/feynmp-auto/"
                   "source/latex/feynmp-auto/"
                   "tex/latex/feynmp-auto/")
             (base32
              "19ghfblv641ghak049v42wbqmh7pfadz0mrbkfbx2jr4bvf57rv2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/feynmp-auto")
    (synopsis "Automatic processing of @code{feynmp} graphics")
    (description
     "The package takes care of running Metapost on the output files produced
by the @code{feynmp} package, so that the compiled pictures will be available
in the next run of LaTeX. The package honours options that apply to
@code{feynmp}.")
    (license license:lppl1.3+)))

(define-public texlive-filemod
  (package
    (name "texlive-filemod")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/filemod/" "tex/generic/filemod/"
                   "tex/latex/filemod/")
             (base32
              "1snsj7kblkj1ig3x3845lsypz7ab04lf0dcpdh946xakgjnz4fb5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/filemod")
    (synopsis "Provide file modification times, and compare them")
    (description
     "This package provides macros to read and compare the modification dates
of files.  The files may be @code{.tex} files, images or other files (as long
as they can be found by LaTeX).  It uses the @code{\\pdffilemoddate} primitive
of pdfLaTeX to find the file modification date as PDF date string, parses the
string and returns the value to the user.  The package will also work for DVI
output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
mode.  The functionality is provided by purely expandable macros or by faster
but non-expandable ones.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-filemod texlive-filemod)

(define-public texlive-fix2col
  (package
    (name "texlive-fix2col")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fix2col/" "source/latex/fix2col/"
                   "tex/latex/fix2col/")
             (base32
              "04mzs1qn9ish5sdp1v9adqvl92ljbs9rjxxfsqskalm4g9ckn8dy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fix2col")
    (synopsis "Fix miscellaneous two column mode features")
    (description
     "This package is obsolete; do not use in new documents.  It will do
nothing in LaTeX formats after 2015/01/01 as the fixes that it implements were
incorporated into the @code{fixltx2e} package, which is itself obsolete as
since the 2015/01/01 release these fixes are in the LaTeX format itself.

Fix mark handling so that @code{\\firstmark} is taken from the first column if
that column has any marks at all; keep two column floats like @code{figure*}
in sequence with single column floats like figure.")
    (license license:lppl)))

(define-public texlive-fixlatvian
  (package
    (name "texlive-fixlatvian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/fixlatvian/"
                   "makeindex/fixlatvian/"
                   "source/xelatex/fixlatvian/"
                   "tex/xelatex/fixlatvian/")
             (base32
              "09bivnc287z57k9rhwfl16w66dkvb55shnwpqv972n6dsjdcrh7j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fixlatvian")
    (synopsis "Improve Latvian language support in XeLaTeX")
    (description
     "The package offers improvement of the Latvian language support in
@code{polyglossia}, in particular in the area of the standard classes.")
    (license license:lppl1.3+)))

(define-public texlive-fiziko
  (package
    (name "texlive-fiziko")
    (version (number->string %texlive-revision))
    (source (texlive-origin name version
                            (list "doc/metapost/fiziko/" "metapost/fiziko/")
                            (base32
                             "160iqgm4f7imnj89gj4822xv5wnnxf336k261v52h6sd0lhnhany")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fiziko")
    (synopsis "MetaPost library for physics textbook illustrations")
    (description
     "This MetaPost library was initially written to automate some elements of
black and white illustrations for a physics textbook.  It provides functions
to draw things like lines of variable width, shaded spheres, and tubes of
different kinds, which can be used to produce images of a variety of objects.
The library also contains functions to draw some objects constructed from
these primitives.")
    (license (list license:gpl3+ license:cc-by-sa4.0))))

(define-public texlive-font-change-xetex
  (package
    (name "texlive-font-change-xetex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/font-change-xetex/"
                   "tex/xetex/font-change-xetex/")
             (base32
              "1qhkxsk3wl6a8isik4ln1jq7ifhk7hbidq2i1lfy18c1py87xw5k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/font-change-xetex")
    (synopsis "Macros to change text and mathematics fonts in plain XeTeX")
    (description
     "This package consists of macros that can be used to typeset plain XeTeX
documents using any OpenType or TrueType font installed on the computer
system.  The macros allow the user to change the text mode fonts and some math
mode fonts.  For any declared font family, various font style, weight, and
size variants like bold, italics, small caps, etc., are available through
standard and custom TeX control statements.  Using the optional argument of
the macros, the available XeTeX font features and OpenType tags can be
accessed.  Other features of the package include activating and deactivating
hanging punctuation, and support for special Unicode characters.")
    (license license:cc-by-sa4.0)))

(define-public texlive-fontbook
  (package
    (name "texlive-fontbook")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/fontbook/"
                   "source/xelatex/fontbook/"
                   "tex/xelatex/fontbook/")
             (base32
              "1n5yn6rgndk0yr91bhglby9nr5mifgfi895klvsixmxc0k5bqp97")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fontbook")
    (synopsis "Generate a font book")
    (description
     "The package provides a means of producing a book of font samples (for
evaluation, etc.).")
    (license license:lppl1.3+)))

(define-public texlive-fontwrap
  (package
    (name "texlive-fontwrap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/fontwrap/"
                   "tex/xelatex/fontwrap/")
             (base32
              "0nzphhwgm9387mn2rfhmsandyvcwv99lxm5978jg6pycs43dggs7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fontwrap")
    (synopsis "Bind fonts to specific Unicode blocks")
    (description
     "The package (which runs under XeLaTeX) lets you bind fonts to specific
Unicode blocks, for automatic font tagging of multilingual text.")
    (license license:gpl3+)))

(define-public texlive-garrigues
  (package
    (name "texlive-garrigues")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/garrigues/"
                   "metapost/garrigues/")
             (base32
              "0vg1j0r4mkp057v7kjr8yza1danc3zj7k590x5531yi0gzp7hgq2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/garrigues")
    (synopsis "MetaPost macros for the reproduction of Garrigues' Easter nomogram")
    (description
     "This library provides MetaPost macros for the reproduction of Garrigues
Easter nomogram.")
    (license license:lppl)))

(define-public texlive-garuda-c90
  (package
    (name "texlive-garuda-c90")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/garuda-c90/"
                   "fonts/map/dvips/garuda-c90/"
                   "fonts/tfm/public/garuda-c90/"
                   "source/fonts/garuda-c90/")
             (base32
              "1f6rlfxq3ccv9wdf7pzfgs1081yflxd3fzhkzi23mpyl777l7q9y")))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-fonts-tlwg))
    (home-page "https://ctan.org/pkg/garuda-c90")
    (synopsis "TeX support (from CJK) for the Garuda font")
    (description
     "This package provides TeX support (from CJK) for the Garuda font.")
    (license license:gpl2+)))

(define-public texlive-hanging
  (package
    (name "texlive-hanging")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hanging/" "source/latex/hanging/"
                   "tex/latex/hanging/")
             (base32
              "18ichpmmghz0nmv6m646r64y5jvyp52qz9hj7hadrf34xj1ijmlk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/hanging")
    (synopsis "Typeset hanging paragraphs")
    (description
     "The @code{hanging} package facilitates the typesetting of hanging
paragraphs.  The package also enables typesetting with hanging punctuation,
by making punctuation characters active.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-hanging texlive-hanging)

(define-public texlive-fira
  (package
    (name "texlive-fira")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fira/"
                   "fonts/enc/dvips/fira/"
                   "fonts/map/dvips/fira/"
                   "fonts/opentype/public/fira/"
                   "fonts/tfm/public/fira/"
                   "fonts/type1/public/fira/"
                   "fonts/vf/public/fira/"
                   "tex/latex/fira/")
             (base32
              "19sb6c1h1crhs1597i3nlvr2ahl20hxj7a1a5xkpfr5vj4n3x5kv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fira")
    (synopsis "Fira fonts with LaTeX support")
    (description
     "This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX support for
the Fira Sans family of fonts designed by Erik Spiekermann and Ralph du
Carrois of Carrois Type Design.  Fira Sans is available in eleven weights with
corresponding italics: light, regular, medium, bold, ...")
    (license (list license:lppl
                   license:silofl1.1))))

(define-public texlive-firstaid
  (package
    (name "texlive-firstaid")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/firstaid/" "source/latex/firstaid/"
                   "tex/latex/firstaid/")
             (base32
              "1gpbl3l77mrrf88iqcnfvcgxwraqm2rsvisnngak9fbwbinc489v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip texlive-pdftex))
    (home-page "https://ctan.org/pkg/firstaid")
    (synopsis
     "First aid for external LaTeX files and packages that need updating")
    (description
     "This package contains some first aid for LaTeX packages or classes that
require updates because of internal changes to the LaTeX kernel that are not
yet reflected in the package's or class's code.  The file
@file{latex2e-first-aid-for-external-files.ltx} provided by this package is
meant to be loaded during format generation and not by the user.")
    (license license:lppl1.3c)))

(define-public texlive-gmp
  (package
    (name "texlive-gmp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gmp/" "source/latex/gmp/"
                   "tex/latex/gmp/")
             (base32
              "1zvl80wjg4xsika0p0v6jskrwdpy3n7qbfvbg76qbzzpc03n6x6a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gmp")
    (synopsis "Enable integration between MetaPost pictures and LaTeX")
    (description
     "The package allows integration between MetaPost pictures and LaTeX.
The main feature is that passing parameters to the MetaPost pictures is
possible and the picture code can be put inside arguments to commands,
including @code{\\newcommand}.")
    (license license:lppl1.3+)))

(define-public texlive-hershey-mp
  (package
    (name "texlive-hershey-mp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/hershey-mp/"
                   "metapost/hershey-mp/")
             (base32
              "1pbybiqh5qgj9zh0yifxm2hn25h73kz1glrv1cz9sw38h6iydlzw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hershey-mp")
    (synopsis "MetaPost support for the Hershey font file format")
    (description
     "This package provides MetaPost support for reading jhf vector font
files, used by (mostly? only?) the so-called Hershey Fonts of the late 1960s.
The package does not include the actual font files, which you can probably
find in the software repository of your operating system.")
    (license license:eupl1.2)))

(define-public texlive-interchar
  (package
    (name "texlive-interchar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/interchar/"
                   "tex/xelatex/interchar/")
             (base32
              "06pvpaph1gi3rjvwzpvzc2rlx0wb8fqmidbfh8dw2qazzbirdlnz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/interchar")
    (synopsis "Managing character class schemes in XeTeX")
    (description
     "The package manages character class schemes of XeTeX.  Using this
package, you may switch among different character class schemes.  Migration
commands are provided for make packages using this mechanism compatible with
each others.")
    (license license:lppl1.3+)))

(define-public texlive-latexmk
  (package
    (name "texlive-latexmk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/latexmk.1"
                   "doc/man/man1/latexmk.man1.pdf"
                   "doc/support/latexmk/" "scripts/latexmk/")
             (base32
              "1hgzx4xcny2ffm63afhfh3msy1i9llmcdqq2xf3fqlc95rkzn59z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "latexmk.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/latexmk")
    (synopsis "Fully automated LaTeX document generation")
    (description
     "Latexmk completely automates the process of generating a LaTeX document.
Given the source files for a document, @command{latexmk} issues the
appropriate sequence of commands to generate a @file{.dvi}, @file{.ps},
@file{.pdf} or hardcopy version of the document.  An important feature is the
preview continuous mode, where the script watches all of the source files and
reruns LaTeX, etc., whenever a source file has changed.  Thus a previewer can
offer a display of the document's latest state.")
    (license license:gpl2)))

(define-public texlive-latexmp
  (package
    (name "texlive-latexmp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/latexmp/" "metapost/latexmp/")
             (base32
              "1zxwxss5sl16laaqalr8043wmyk2bhlja3al5xlxkizvlnflqy0f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/latexmp")
    (synopsis "Interface for LaTeX-based typesetting in MetaPost")
    (description
     "The MetaPost package @code{latexMP} implements a user-friendly interface
to access LaTeX-based typesetting capabilities in MetaPost.  The text to be
typeset is given as string.  This allows even dynamic text elements, for
example counters, to be used in labels.  Compared to other implementations it
is much more flexible, since it can be used as direct replacement for
@code{btex.etex}, and much faster, compared for example to the solution
provided by @code{tex.mp}.")
    (license license:public-domain)))

(define-public texlive-marathi
  (package
    (name "texlive-marathi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/marathi/" "source/latex/marathi/"
                   "tex/latex/marathi/")
             (base32
              "0xlyvdb6dadg4x2xixcxr1ixqsz69ssifpbh5p46lzsz080pwd58")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/marathi")
    (synopsis "Typeset Marathi language using XeLaTeX or LuaLaTeX")
    (description
     "This package is used to typeset Marathi language with LuaLaTeX and XeLaTeX.
It will provide localizations needed for the Marathi language.  Currently the
package localizes package @code{blindtext} and package @code{expex}.")
    (license (list license:gpl3+ license:fdl1.3+))))

(define-public texlive-markdown
  (package
    (name "texlive-markdown")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/markdown/examples/"
                   "doc/generic/markdown/"
                   "doc/latex/markdown/examples/"
                   "scripts/markdown/"
                   "source/generic/markdown/"
                   "tex/context/third/markdown/"
                   "tex/generic/markdown/"
                   "tex/latex/markdown/"
                   "tex/luatex/markdown/")
             (base32
              "0nmw1c4ynn0vzdkgpz2dnqimbxbyl6pc0khl2gbi8bd4g9dkai55")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/markdown")
    (synopsis "Converting and rendering Markdown documents inside TeX")
    (description
     "The package provides facilities for the conversion of Markdown markup to
plain TeX.  These are provided both in form of a Lua module and in form of
plain TeX, LaTeX, and ConTeXt macro packages that enable the direct inclusion
of Markdown documents inside TeX documents.")
    (license license:lppl1.3c)))

(define-public texlive-mcf2graph
  (package
    (name "texlive-mcf2graph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/mcf2graph/")
             (base32
              "1pji3d2mllfi74kalvs11h7yy3hkm5g5nlmcpq2vn7cxjbaqk9sq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mcf2graph")
    (synopsis "Draw chemical structure diagrams with MetaPost")
    (description
     "The Molecular Coding Format (MCF) is a linear notation for describing
chemical structure diagrams.  This package converts MCF to graphic files using
MetaPost.")
    (license license:expat)))

(define-public texlive-metago
  (package
    (name "texlive-metago")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/metago/" "metapost/metago/")
             (base32
              "13m61ml8wfs5888nifilgzi503m3gz1f2fa44408jdhlr6zk6fa0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metago")
    (synopsis "MetaPost output of Go positions")
    (description
     "The package allows you to draw Go game positions with MetaPost.  Two
methods of usage are provided, either using the package programmatically, or
using the package via a script (which may produce several images).")
    (license license:lppl)))

(define-public texlive-metaobj
  (package
    (name "texlive-metaobj")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/metaobj/" "metapost/metaobj/")
             (base32
              "1ir6p14h79x5iqbxmj2893x8j1d490bnhs83jwnrbcjxn0yxky6w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metaobj")
    (synopsis "MetaPost package providing high-level objects")
    (description
     "METAOBJ is a large MetaPost package providing high-level objects.  It
implements many of PSTricks features for node connections, but also trees,
matrices, and many other things.  It more or less contains @code{boxes.mp} and
@code{rboxes.mp}.  It is easily extensible with new objects.")
    (license license:lppl)))

(define-public texlive-metaplot
  (package
    (name "texlive-metaplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/metaplot/" "metapost/metaplot/")
             (base32
              "19y8lj28gvky7f7g2i562ixwvmnxnflnfc8l8r0x7zg384hg8835")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metaplot")
    (synopsis "Plot-manipulation macros for use in MetaPost")
    (description
     "MetaPlot is a set of MetaPost macros for manipulating pre-generated
plots (and similar objects), and formatting them for inclusion in a MetaPost
figure.  The intent is that the plots can be generated by some outside
program, in an abstract manner that does not require making decisions about
on-page sizing and layout, and then they can be imported into MetaPlot and
arranged using the full capabilities of MetaPost.  Metaplot also includes
a very flexible set of macros for generating plot axes, which may be useful in
other contexts as well.")
    (license license:lppl)))

(define-public texlive-metapost-colorbrewer
  (package
    (name "texlive-metapost-colorbrewer")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/metapost-colorbrewer/"
                   "metapost/metapost-colorbrewer/")
             (base32
              "00bpdz2k849k1sfrlflxhdbylncb5y2bixgmylyh0i8rbb467q7l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metapost-colorbrewer")
    (synopsis
     "Implementation of the @code{colorbrewer2.org} colours for MetaPost")
    (description
     "This package provides two MetaPost include files that define all the
@code{colorbrewer2.org} colours: @code{colorbrewer-cmyk.mp} and
@code{colorbrewer-rgb.mp}. The first defines all the colours as CMYK, the
second as RGB.")
    (license license:gpl3+)))

(define-public texlive-metauml
  (package
    (name "texlive-metauml")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/metauml/" "metapost/metauml/")
             (base32
              "01hs234mjqnr39zm7jl6dpbm5w0k4p73pr0aj35ii0dhakln2jsy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metauml")
    (synopsis "MetaPost library for typesetting UML diagrams")
    (description
     "MetaUML is a MetaPost library for typesetting UML diagrams, which
provides a usable, human-friendly textual notation for UML, offering now
support for class, package, activity, state, and use case diagrams.")
    (license license:gpl3+)))

(define-public texlive-mfpic
  (package
    (name "texlive-mfpic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/mfpic/" "metafont/mfpic/"
                   "metapost/mfpic/" "source/generic/mfpic/"
                   "tex/generic/mfpic/")
             (base32
              "1s3z31mglmij7qc1f0681vv2a6md9wz9zbi6zlh7zvmhy5hzkjkv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mfpic")
    (synopsis "Draw Metafont/post pictures from (La)TeX commands")
    (description
     "Mfpic is a scheme for producing pictures from (La)TeX commands.
Commands @code{\\mfpic} and @code{\\endmfpic} (in LaTeX, the @code{mfpic}
environment) enclose a group in which drawing commands may be placed.  The
commands generate a Meta-language file, which may be processed by MetaPost (or
even Metafont).  The resulting image file will be read back in to the document
to place the picture at the point where the original (La)TeX commands
appeared.")
    (license license:lppl1.3+)))

(define-public texlive-mfpic4ode
  (package
    (name "texlive-mfpic4ode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mfpic4ode/"
                   "source/latex/mfpic4ode/"
                   "tex/latex/mfpic4ode/")
             (base32
              "0ssmpvp1apxvinidq42pfpvjimpvd250har85n6rl7dj5fws9j8m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mfpic4ode")
    (synopsis "Macros to draw direction fields and solutions of ODEs")
    (description
     "The package is a small set of macros for drawing direction fields, phase
portraits and trajectories of differential equations and two dimensional
autonomous systems.  The Euler, Runge-Kutta and fourth order Runge-Kutta
algorithms are available to solve the ODEs.  The picture is translated into
@code{mfpic} macros and MetaPost is used to create the final drawing.")
    (license license:lppl)))

(define-public texlive-minim-hatching
  (package
    (name "texlive-minim-hatching")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/minim-hatching/"
                   "metapost/minim-hatching/")
             (base32
              "0qcd5zvhj9hrdhb7il1hbfdh5sgccl6mvwwmpw9fymbwdri9224f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/minim-hatching")
    (synopsis "Create tiling patterns with @code{minim-mp} MetaPost processor")
    (description
     "This is a small proof-of-concept library of tiling patterns for use with
the @code{minim-mp} MetaPost processor.")
    (license license:eupl1.2)))

(define-public texlive-mp3d
  (package
    (name "texlive-mp3d")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/mp3d/" "metapost/mp3d/")
             (base32
              "1qfg4ifm5z72sr8vimibmpmqh0cxzipiy4jr8rbq5qsj2mfqzphd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mp3d")
    (synopsis "3D animations")
    (description
     "This library creates animations of 3-dimensional objects (such as
polyhedra) in MetaPost.")
    (license license:lppl)))

(define-public texlive-mparrows
  (package
    (name "texlive-mparrows")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/mparrows/"
                   "metapost/mparrows/")
             (base32
              "0pc9w5g6qasfpv4dxf0aahahbxk6kjwirdmx8l4i27syjb1lgzw9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mparrows")
    (synopsis "MetaPost module with different types of arrow heads")
    (description
     "This package provides a package to provide different types of arrow
heads to be used with MetaPost commands")
    (license license:public-domain)))

(define-public texlive-mpattern
  (package
    (name "texlive-mpattern")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/mpattern/"
                   "metapost/mpattern/")
             (base32
              "00g250vl6gnvwx6zgmfqcw3nwkh546i1vjz4zjp3dc5n5yj5y6ls")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mpattern")
    (synopsis "Patterns in MetaPost")
    (description
     "This package provides a package for defining and using patterns in MetaPost,
using the Pattern Color Space available in PostScript Level 2.")
    (license license:public-domain)))

(define-public texlive-mpcolornames
  (package
    (name "texlive-mpcolornames")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/mpcolornames/"
                   "metapost/mpcolornames/"
                   "source/metapost/mpcolornames/")
             (base32
              "1s5yb57yamg1fd7w5hmkmfyxyqj3mivhkvrkqzm31dzh4y22qg3k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mpcolornames")
    (synopsis "Extend list of predefined colour names for MetaPost")
    (description
     "The MetaPost format @code{plain.mp} provides only five built-in colour names
(variables), all of which are defined in the RGB model: red, green and blue
for the primary colours and black and white.  The package makes more than 500
colour names from different colour sets in different colour models available
to MetaPost.")
    (license license:lppl)))

(define-public texlive-mpgraphics
  (package
    (name "texlive-mpgraphics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mpgraphics/"
                   "source/latex/mpgraphics/"
                   "tex/latex/mpgraphics/")
             (base32
              "0z51scc8vimwihdyxv3g1cb7bjbj8w2a2ck1ygjyf8xzz4hcic2s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mpgraphics")
    (synopsis "Process and display MetaPost figures inline")
    (description
     "The package allows LaTeX users to typeset MetaPost code inline and
display figures in their documents with only and only one run of LaTeX,
pdfLaTeX or XeLaTeX (no separate runs of @command{mpost}).  Mpgraphics
achieves this by using the shell escape (@samp{\\write 18}) feature of current
TeX distributions, so that the whole process is automatic and the end user is
saved the tiresome processing.")
    (license license:lppl1.3+)))

(define-public texlive-mptrees
  (package
    (name "texlive-mptrees")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/mptrees/" "metapost/mptrees/")
             (base32
              "17jaj27pjnm3k8qcn1ijkwzgm0nacm0mb3fb7rx3a3cf1pi2qwd2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mptrees")
    (synopsis "Probability trees with MetaPost")
    (description
     "This package provides MetaPost tools for drawing simple probability
trees.  One command and several parameters to control the output are
provided.")
    (license license:lppl1.3+)))

(define-public texlive-na-position
  (package
    (name "texlive-na-position")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/na-position/"
                   "tex/xelatex/na-position/")
             (base32
              "0rp1css44sl6j762kfwzq53k6690djgag6yc85dd9134i837gvqr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/na-position")
    (synopsis
     "Tables of relative positions of curves, asymptotes, tangents in Arabic documents")
    (description
     "This package facilitates, in most cases, the creation of tables of
relative positions of a curve and its asymptote, or a curve and a tangent in
one of its points.  This package has to be used with @code{polyglossia} and
XeLaTeX to produce documents in Arabic.")
    (license license:lppl)))

(define-public texlive-natbib
  (package
    (name "texlive-natbib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/natbib/" "doc/latex/natbib/"
                   "source/latex/natbib/" "tex/latex/natbib/")
             (base32
              "17hyba6v24wrbjvakgjxkndjb418mmi2wmnhrm7zmfwb0bvy6f2j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/natbib")
    (synopsis "Flexible bibliography support")
    (description
     "The bundle provides a package that implements both author-year and
numbered references, as well as much detailed of support for other
bibliography use.  Also Provided are versions of the standard BibTeX styles
that are compatible with natbib--plainnat, unsrtnat, abbrnat.  The
bibliography styles produced by custom-bib are designed from the start to be
compatible with @code{natbib}.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-natbib texlive-natbib)

(define-public texlive-newfloat
  (package
    (name "texlive-newfloat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/newfloat/" "source/latex/newfloat/"
                   "tex/latex/newfloat/")
             (base32
              "1hrackdfrzad8cgbl3f3yaagk4p4zjbvq710rm8b1z02fr9z2zkq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/newfloat")
    (synopsis "Define new floating environments")
    (description
     "This package offers the command @code{\\DeclareFloatingEnvironment},
which the user may use to define new floating environments which behave like
the LaTeX standard foating environments @code{figure} and @code{table}.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-newfloat texlive-newfloat)

(define-public texlive-newpax
  (package
    (name "texlive-newpax")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/newpax/" "source/latex/newpax/"
                   "tex/latex/newpax/")
             (base32
              "1b8z1k9gn0g1q6qyixgwds61b2844kiqb0sfvhn9x38fnqgzy83j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/newpax")
    (synopsis "Experimental package to extract and reinsert PDF annotations")
    (description
     "The package is based on the @code{pax} package from Heiko Oberdiek.  It
offers a Lua-based alternative to the java based @file{pax.jar} to extract the
annotations from a PDF.  The resulting file can then be used together with
@file{pax.sty}.  It also offers an extended style which works with all three
major engines.")
    (license license:lppl1.3c)))

(define-public texlive-newunicodechar
  (package
    (name "texlive-newunicodechar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/newunicodechar/"
                   "source/latex/newunicodechar/"
                   "tex/latex/newunicodechar/")
             (base32
              "1b3n5mdfw9csp0ri1vw4jh1ibnpsllb5n6pwfkg1jad10ml9wavz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/newunicodechar")
    (synopsis "Definitions of the meaning of Unicode characters")
    (description
     "This package provides a friendly interface for defining the meaning of
Unicode characters.  The document should be processed by (pdf)LaTeX with the
Unicode option of @code{inputenc} or @code{inputenx}, or by XeLaTeX/LuaLaTeX.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-newunicodechar texlive-newunicodechar)

(define-public texlive-newverbs
  (package
    (name "texlive-newverbs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/newverbs/" "source/latex/newverbs/"
                   "tex/latex/newverbs/")
             (base32
              "02mhqgsfd13i1llhm0rgq3f9qs067jih2s15q1zvsfd5bhzls1pq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'build 'copy-ydocstrip.tex
            ;; There's a circular dependency between `newverbs' (where `ydoc'
            ;; should be a native input) and `ydoc' (where `newverbs' is
            ;; a propagated input).  To work around this, install the specific
            ;; "ydocstrip.tex" file from `ydoc' in the build directory and set
            ;; TEXINPUTS variable accordingly so the process can find it.
            (lambda* (#:key inputs #:allow-other-keys)
              (install-file (search-input-file inputs
                                               "tex/generic/ydoc/ydocstrip.tex")
                            "build/")
              (setenv "TEXINPUTS" (string-append (getcwd) "/build:")))))))
    (native-inputs
     (list
      (texlive-origin
       "ydocstrip.tex" (number->string %texlive-revision)
       (list "tex/generic/ydoc/ydocstrip.tex")
       (base32
        "1nixgvmw8c6jznhxys3yfzr3qw1lci8kyx54rs0shm6i63xjgr9i"))))
    (home-page "https://ctan.org/pkg/newverbs")
    (synopsis "Define new versions of @code{\\verb}")
    (description
     "The package allows the definition of @code{\\verb} variants which add
TeX code before and after the verbatim text (e.g., quotes or surrounding
@code{\\fbox@{@}}).  When used together with the @code{shortvrb} package it
allows the definition of short verbatim characters which use this package's
variant instead of the normal @code{\\verb}.  In addition, it is possible to
collect an argument verbatim to either typeset or write it into a file.  The
@code{\\Verbdef} command defines verbatim text to a macro which can later be
used to write the verbatim text to a file.")
    (license license:lppl1.3+)))

(define-public texlive-nodetree
  (package
    (name "texlive-nodetree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/nodetree/"
                   "source/luatex/nodetree/"
                   "tex/luatex/nodetree/")
             (base32
              "00lj7wykgc2r5pgijm9lxjrghq8bsx6whanzvsxcwf639mzv3528")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nodetree")
    (synopsis "Visualize node lists in a tree view")
    (description
     "@code{nodetree} is a development package that visualizes the structure
of node lists.  It uses a similar visual representation for node lists as the
UNIX @command{tree} command for a folder structure.")
    (license license:lppl1.3+)))

(define-public texlive-nomencl
  (package
    (name "texlive-nomencl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/nomencl/" "makeindex/nomencl/"
                   "source/latex/nomencl/" "tex/latex/nomencl/")
             (base32
              "176lqab9ypsym7x7mk9d0pbqf3fl9iwi539zjqv3l6nbmxj9ga88")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nomencl")
    (synopsis "Produce lists of symbols as in nomenclature")
    (description
     "This package produces lists of symbols using the capabilities of the
MakeIndex program.")
    (license license:lppl)))

(define-public texlive-norasi-c90
  (package
    (name "texlive-norasi-c90")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/norasi-c90/"
                   "fonts/map/dvips/norasi-c90/"
                   "fonts/tfm/public/norasi-c90/"
                   "source/fonts/norasi-c90/")
             (base32
              "19ynw46dbk71sbzx6rna359gdddjmwl57gw3kfz3f9ywvhq01m1k")))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-fonts-tlwg))
    (home-page "https://ctan.org/pkg/norasi-c90")
    (synopsis  "TeX support (from CJK) for the Norasi font")
    (description
     "This package provides TeX support (from CJK) for the Norasi font.")
    (license license:gpl2+)))

(define-public texlive-noto
  (package
    (name "texlive-noto")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/noto/"
                   "fonts/enc/dvips/noto/"
                   "fonts/map/dvips/noto/"
                   "fonts/tfm/google/noto/"
                   "fonts/truetype/google/noto/"
                   "fonts/type1/google/noto/"
                   "fonts/vf/google/noto/"
                   "tex/latex/noto/")
             (base32
              "14nf6xd85cb5s9f1sk8zzshgfhjda0r712dp592j8cb4s5v2hf7p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/noto")
    (synopsis "Support for Noto fonts")
    (description
     "This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX support for
the NotoSerif, NotoSans and NotoSansMono families of fonts, designed by Steve
Matteson for Google.")
    (license (list license:lppl license:silofl1.1))))

(define-public texlive-novel
  (package
    (name "texlive-novel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/novel/"
                   "fonts/opentype/novel/"
                   "tex/lualatex/novel/")
             (base32
              "0qg6rs54w1n1vr5dmi6vjks8xn8x04zngk8zz4cv0035jxn4irpc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/novel")
    (synopsis "Class for printing fiction, such as novels")
    (description
     "This LuaLaTeX document class is specifically written to meet the needs
of original fiction writers, who are typesetting their own novels for
non-color print-on-demand technology.  The package is well suited for
detective novels, science fiction, and short stories.  It is however not
recommended for creating color picture books or dissertations.")
    (license (list license:lppl1.3c license:silofl1.1))))

(define-public texlive-octavo
  (package
    (name "texlive-octavo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/octavo/" "source/latex/octavo/"
                   "tex/latex/octavo/")
             (base32
              "10ycj2xg2v7cq4my51dcc749hrrkg2gd41xyrwv1dg1lp9vh7j4z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/octavo")
    (synopsis "Typeset books following classical design and layout")
    (description
     "The @code{octavo} class is a modification of the standard LaTeX
@code{book} class.  Its purpose is to typeset books following classical design
and layout principles, with the express intention of encouraging the making of
beautiful books by anyone with access to a good printer and with an
inclination towards venerable crafts, e.g., bookbinding.  The @code{octavo}
class differs from the book class by implementing many of the proposals and
insights of respected experts, especially Jan Tschichold and Hugh Williamson.
The documentation discusses methods to organise and print out any text into
signatures, which can then be gathered, folded and sewn into a book.")
    (license license:lppl)))

(define-public texlive-odsfile
  (package
    (name "texlive-odsfile")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/odsfile/"
                   "tex/lualatex/odsfile/")
             (base32
              "03zfzwjhrrsw8z9v8jsd730iiqbc44s38jra36b0il4xqgbknyqg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/odsfile")
    (synopsis "Read OpenDocument Spreadsheet documents as LaTeX tables")
    (description
     "The distribution includes a package and a Lua library that can together
read OpenDocument spreadsheet documents as LaTeX tables.  Cells in the tables
may be processed by LaTeX macros, so that, for example, the package may be
used for drawing some plots.  The package uses Lua's @code{zip} library.")
    (license license:lppl1.3c)))

(define-public texlive-pdftexcmds
  (package
    (name "texlive-pdftexcmds")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pdftexcmds/"
                   "source/generic/pdftexcmds/"
                   "tex/generic/pdftexcmds/")
             (base32
              "0gad1vi0r5xw7gyj1cb2cp58j4dqrw4awcfxmfrna9xbz91g4sn9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/pdftexcmds")
    (synopsis "LuaTeX support for pdfTeX utility functions")
    (description
     "This package makes a number of utility functions from pdfTeX
available for LuaTeX by reimplementing them using Lua.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-pdftexcmds texlive-pdftexcmds)

(define-public texlive-philokalia
  (package
    (name "texlive-philokalia")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/philokalia/"
                   "fonts/opentype/public/philokalia/"
                   "source/xelatex/philokalia/"
                   "tex/xelatex/philokalia/")
             (base32
              "1pcszddyyc4caqd1ahcl10rf1mn0m1lrdgn1gldv94cpa89653kg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/philokalia")
    (synopsis "Font to typeset the Philokalia Books")
    (description
     "The @code{philokalia} package has been designed to ease the use of the
Philokalia-Regular OpenType font with XeLaTeX.  The font started as a project
to digitize the typeface used to typeset the Philokalia books.")
    (license license:lppl1.3c)))

(define-public texlive-piechartmp
  (package
    (name "texlive-piechartmp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/piechartmp/"
                   "metapost/piechartmp/")
             (base32
              "0xf83k85bwbdy4d1m23zyk5zjg9qw960q4rkgf2i1449w30gf3hp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/piechartmp")
    (synopsis "Draw pie-charts using MetaPost")
    (description
     "The @code{piechartmp} package is an easy way to draw pie-charts with
MetaPost.  The package implements an interface that enables users with little
MetaPost experience to draw charts.  A highlight of the package is the
possibility of suppressing some segments of the chart, thus creating the
possibility of several charts from the same data.")
    (license license:lppl)))

(define-public texlive-placeins
  (package
    (name "texlive-placeins")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/placeins/" "tex/latex/placeins/")
             (base32
              "0785ppjhf4x3by61mskwz289nzvbbw6iw7n0fq2dckgywjw3p2mz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/placeins")
    (synopsis "Control float placement")
    (description
     "This package defines a @code{\\FloatBarrier} command, beyond which
floats may not pass; useful, for example, to ensure all floats for a section
appear before the next @code{\\section} command.")
    (license license:public-domain)))

(define-public texlive-psfrag
  (package
    (name "texlive-psfrag")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/psfrag/"
                   "dvips/psfrag/"
                   "source/latex/psfrag/"
                   "tex/latex/psfrag/")
             (base32
              "06vp5x6rnl4gqwxzzynbl169q23k8pmaxjhb0lbzdcm3ihvzp47z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/psfrag")
    (synopsis "Replace strings in encapsulated PostScript figures")
    (description
     "This package allows LaTeX constructions (equations, picture
environments, etc.) to be precisely superimposed over Encapsulated PostScript
figures, using your own favorite drawing tool to create an EPS figure and
placing simple text tags where each replacement is to be placed, with PSfrag
automatically removing these tags from the figure and replacing them with
a user specified LaTeX construction, properly aligned, scaled, and/or
rotated.")
    (license (license:fsf-free "file://psfrag.dtx"))))

(define-deprecated-package texlive-latex-psfrag texlive-psfrag)

(define-public texlive-psfrag-italian
  (package
    (name "texlive-psfrag-italian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/psfrag-italian/")
             (base32
              "0ssx8rw7fwln02zzscywivnhizgrb6w05awscvv9gf9n1qj6avsf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/psfrag-italian")
    (synopsis "PSfrag documentation in Italian")
    (description
     "This is a translation of the documentation that comes with the
@code{psfrag} package.")
    (license license:gpl3+)))

(define-public texlive-pstool
  (package
    (name "texlive-pstool")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pstool/" "tex/latex/pstool/")
             (base32
              "12clzcw2cl7g2chr2phgmmiwxw4859cln1gbx1wgp8bl9iw590nc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pstool")
    (synopsis "Support for @code{psfrag} within pdfLaTeX")
    (description
     "This is a package for processing PostScript graphics with @code{psfrag}
labels within pdfLaTeX documents.  Every graphic is compiled individually,
drastically speeding up compilation time when only a single figure needs
re-processing.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-pstool texlive-pstool)

(define-public texlive-ptext
  (package
    (name "texlive-ptext")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/ptext/" "tex/xelatex/ptext/")
             (base32
              "0ipb1mlg266rziznskdxi3iwi0s6374lp8ky0hhbi5llryg505p9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ptext")
    (synopsis "Lipsum for Persian")
    (description
     "The package provides lipsum-like facilities for the Persian language.
The source of the filling text is the Persian epic @emph{the Shanameh} (100
paragraphs are used).")
    (license license:lppl1.2+)))

(define-public texlive-realscripts
  (package
    (name "texlive-realscripts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/realscripts/"
                   "source/latex/realscripts/"
                   "tex/latex/realscripts/")
             (base32
              "1yk1v1ybd1zv1x6rc8qd2mbbwc5h91i44scnih6v2n5nrh61jfxb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/realscripts")
    (synopsis "Access OpenType subscript and superscript glyphs")
    (description
     "This package replaces @code{\\textsuperscript} and
@code{\\textsubscript} commands by equivalent commands that use OpenType font
features to access appropriate glyphs if possible.  It also patches LaTeX's
default footnote command to use this new @code{\\textsuperscript} for footnote
symbols.")
    (license license:lppl1.3+)))

(define-public texlive-refcount
  (package
    (name "texlive-refcount")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/refcount/" "source/latex/refcount/"
                   "tex/latex/refcount/")
             (base32
              "128cvwdl4wcdshvs59yn5iljdxxdrc5jircbxav77y7kc3l33z7z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/refcount")
    (synopsis "Counter operations with label references")
    (description
     "This package provides the @code{\\setcounterref} and
@code{\\addtocounterref} commands which use the section (or other) number
from the reference as the value to put into the counter.  It also provides
@code{\\setcounterpageref} and @code{\\addtocounterpageref} that do the
corresponding thing with the page reference of the label.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-refcount texlive-refcount)

(define-public texlive-repere
  (package
    (name "texlive-repere")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/repere/" "metapost/repere/")
             (base32
              "06p184mgv0cac36pp1srrd80axvkxf155l3jf01dnvd2x1d7dwlk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/repere")
    (synopsis "MetaPost macros for secondary school mathematics teachers")
    (description
     "This package provides MetaPost macros for drawing secondary school
mathematics figures in a coordinate system: axis, grids points, vectors
functions (curves, tangents, integrals, sequences) statistic diagrams plane
geometry (polygons, circles), arrays and game boards.")
    (license license:lppl1.3c)))

(define-public texlive-revtex
  (package
    (name "texlive-revtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/revtex/" "doc/latex/revtex/"
                   "source/latex/revtex/" "tex/latex/revtex/")
             (base32
              "0w4vmrghnhs8bgpbdp2rzsh4b7hgvldyzkd870wa27k9wk2lk6a1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/revtex")
    (synopsis "Styles for various Physics Journals")
    (description
     "This package includes styles for American Physical Society, American
Institute of Physics, and Optical Society of America.  The distribution
consists of the RevTeX class itself, and several support packages.")
    (license license:lppl1.3c)))

(define-public texlive-roex
  (package
    (name "texlive-roex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "metafont/roex/" "source/metafont/roex/")
             (base32
              "12w5wrrlk8rd4gx57646r01rb49ckmgnzhmx9385ll0sag8c9s2v")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mf-ps")
    (synopsis "Metafont-PostScript conversions")
    (description
     "This package provides a Metafont support package including: @code{epstomf},
a tiny AWK script for converting EPS files into Metafont; @code{mftoeps} for
generating (encapsulated) PostScript files readable, e.g., by CorelDRAW, Adobe
Illustrator and Fontographer; a collection of routines (in folder progs) for
converting Metafont-coded graphics into encapsulated PostScript; and
@code{roex.mf}, which provides Metafont macros for removing overlaps and
expanding strokes.  In @code{mftoeps}, Metafont writes PostScript code to
a log-file, from which it may be extracted by either TeX or AWK.")
    (license license:public-domain)))

(define-public texlive-roundrect
  (package
    (name "texlive-roundrect")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/roundrect/"
                   "metapost/roundrect/"
                   "source/metapost/roundrect/")
             (base32
              "0bx6xfr49rrcrnbyw917fab2qi0x29h66ip4nyhw6477815ic0wq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/roundrect")
    (synopsis "MetaPost macros for configurable rounded rectangles")
    (description
     "The @code{roundrect} macros for MetaPost provide ways to produce rounded
rectangles, which may or may not contain a title bar or text (the title bar
may itself contain text).")
    (license license:lppl1.3+)))

(define-public texlive-sauerj
  (package
    (name "texlive-sauerj")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sauerj/" "source/latex/sauerj/"
                   "tex/latex/sauerj/")
             (base32
              "03dmw150qcravzndikijhq2a89sjdplxgi93fx0zxln2l4flvz5k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sauerj")
    (synopsis "Bundle of utilities by Jonathan Sauer")
    (description
     "The bundle consists of:
@itemize
@item a tool for collecting text for later re-use,
@item a tool for typesetting the meta-information within a text,
@item a tool for use in constructing macros with multiple optional parameters,
@item a package for multiple column parallel texts,
@item a tool for processing key-value structured lists,
@item macros for typesetting a number as a German-language string.
@end itemize")
    (license license:lppl)))

(define-public texlive-sauter
  (package
    (name "texlive-sauter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/source/public/sauter/")
             (base32
              "037skfr46198y0vczwcy6dzq9ry8w5imj1ih9nfy9mrb0hmj8caq")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sauter")
    (synopsis "Wide range of design sizes for CM fonts")
    (description
     "This package includes extensions, originally to the CM fonts, providing
a parameterization scheme to build Metafont fonts at true design sizes, for
a large range of sizes.  The scheme has now been extended to a range of other
fonts, including the AMS fonts, @code{bbm}, @code{bbold}, @code{rsfs} and
@code{wasy} fonts.")
    (license license:gpl3+)))

(define-public texlive-selinput
  (package
    (name "texlive-selinput")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/selinput/" "source/latex/selinput/"
                   "tex/latex/selinput/")
             (base32
              "0x8l98r6xzyi4lc909bv7ii2nbpff8j7j3q4z86l7rrjk1jkx9qi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/selinput")
    (synopsis "Semi-automatic detection of input encoding")
    (description
     "This package selects the input encoding by specifying pairs of input
characters and their glyph names.")
    (license license:lppl1.3+)))

(define-public texlive-semaphor
  (package
    (name "texlive-semaphor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/semaphor/"
                   "fonts/afm/public/semaphor/"
                   "fonts/enc/dvips/semaphor/"
                   "fonts/map/dvips/semaphor/"
                   "fonts/opentype/public/semaphor/"
                   "fonts/source/public/semaphor/"
                   "fonts/tfm/public/semaphor/"
                   "fonts/type1/public/semaphor/"
                   "tex/context/third/semaphor/"
                   "tex/latex/semaphor/"
                   "tex/plain/semaphor/")
             (base32
              "1yigah8x75fd13x0f6ncpp21ly75nyfz6h5y5sfc590n7wcm0gvr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/semaphor")
    (synopsis "Semaphore alphabet font")
    (description
     "These fonts represent semaphore in a highly schematic, but very clear,
fashion.  The fonts are provided as Metafont source, and in both OpenType and
Adobe Type 1 formats.")
    (license license:gpl3+)))

(define-public texlive-seminar
  (package
    (name "texlive-seminar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/seminar/" "tex/latex/seminar/")
             (base32
              "1xm78f9qsy3zr1vllb8mgp1azhn7a2jaqkj2lkrsgc3m7ag9w9hh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/seminar")
    (synopsis "Make overhead slides")
    (description
     "This package provides a class that produces overhead
slides (transparencies), with many facilities.  Seminar is not nowadays
reckoned a good basis for a presentation — users are advised to use more
recent classes such as @code{powerdot} or @code{beamer}, both of which are
tuned to 21st-century presentation styles.")
    (license license:lppl1.2+)))

(define-deprecated-package texlive-latex-seminar texlive-seminar)

(define-public texlive-sepnum
  (package
    (name "texlive-sepnum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sepnum/" "tex/latex/sepnum/")
             (base32
              "1vzjhb470imd1f5wlj32jysn825vyygq9xkscqdjaa9jby70a26x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sepnum")
    (synopsis "Print numbers in a friendly format")
    (description
     "This package provides a command to print a number with (potentially
different) separators every three digits in the parts either side of the
decimal point (the point itself is also configurable).  The macro is fully
expandable and not fragile (unless one of the separators is).  There is also
a command @code{\\sepnumform}, that may be used when defining
@samp{\\the<counter> macros}.")
    (license license:lppl)))

(define-public texlive-seqsplit
  (package
    (name "texlive-seqsplit")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/seqsplit/"
                   "source/latex/seqsplit/"
                   "tex/latex/seqsplit/")
             (base32
              "0x6xcism9s9mhpr278xi4c1gimz3mlqnrpr40vkx5abglr0gzm0j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/seqsplit")
    (synopsis "Split long sequences of characters in a neutral way")
    (description
     "@code{seqsplit} provides a command @code{\\seqsplit}, which makes its
argument splittable anywhere, and then leaves the TeX paragraph-maker to do the
splitting.  The package is suitable for situations when one needs to type long
sequences of letters or of numbers in which there is no obvious break points to
be found, such as in base-sequences in genes or calculations of transcendental
numbers.  While the package may obviously be used to typeset DNA sequences, the
user may consider the @code{dnaseq} as a rather more powerful alternative.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-seqsplit texlive-seqsplit)

(define-public texlive-shapes
  (package
    (name "texlive-shapes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/shapes/" "metapost/shapes/"
                   "source/metapost/shapes/")
             (base32
              "0q93ycxjzmvp73z92rc7vlzvmijbj2w1ldq709r9jflk044lsrh2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/shapes")
    (synopsis "Draw polygons, reentrant stars, and fractions in circles")
    (description
     "The shapes set of macros allows drawing regular polygons; their
corresponding reentrant stars in all their variations; and fractionally filled
circles (useful for visually demonstrating the nature of fractions) in
MetaPost.")
    (license license:lppl1.3+)))

(define-public texlive-short-math-guide
  (package
    (name "texlive-short-math-guide")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/short-math-guide/")
             (base32
              "1wjcjgw0xk4zx57f364cpl57qpxj3lq4lahlkbk6iiin1h9v2prf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/short-math-guide")
    (synopsis "Guide to typeset mathematical notation with LaTeX")
    (description
     "@emph{The Short Math Guide} is intended to be a concise introduction to
the use of the facilities provided by @code{amsmath} and various other LaTeX
packages for typesetting mathematical notation.  Originally created by Michael
Downes of the American Mathematical Society based only on @code{amsmath}, it
has been brought up to date with references to related packages and other
useful information.")
    (license license:lppl1.3c)))

(define-public texlive-showexpl
  (package
    (name "texlive-showexpl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/showexpl/" "source/latex/showexpl/"
                   "tex/latex/showexpl/")
             (base32
              "0vff1yk7a3f4csxibfk6r37s3h6n4wdpnk3qj4dsx7kh5zrcysha")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/showexpl")
    (synopsis "Typesetting LaTeX source code")
    (description
     "This package provides a way to typeset LaTeX source code and the related
result in the same document.")
    (license license:lppl1.2+)))

(define-public texlive-simple-resume-cv
  (package
    (name "texlive-simple-resume-cv")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/simple-resume-cv/"
                   "tex/xelatex/simple-resume-cv/")
             (base32
              "07lqmjfjr58q7jgl59syv67hsy54rsig9f002wkwr1297z02k862")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simple-resume-cv")
    (synopsis "Template for a simple resume or curriculum vitae (CV)")
    (description
     "This package provides a template for a simple resume or curriculum
vitae (CV), in XeLaTeX.  This simple template can be further customized or
extended, with numerous examples.")
    (license license:public-domain)))

(define-public texlive-simple-thesis-dissertation
  (package
    (name "texlive-simple-thesis-dissertation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list
              "doc/xelatex/simple-thesis-dissertation/Figures/"
              "tex/xelatex/simple-thesis-dissertation/")
             (base32
              "023bl8ic6bn86297wbxip5lm34wkbq1kcrizkmmsdz7cfxpn6637")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simple-thesis-dissertation")
    (synopsis "Template for a simple thesis, dissertation, or technical report")
    (description
     "This package provides a template for a simple thesis or dissertation or
technical report, in XeLaTeX.  This simple template that can be further
customized or extended, with numerous examples.")
    (license license:public-domain)))

(define-public texlive-simplified-latex
  (package
    (name "texlive-simplified-latex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/simplified-latex/")
             (base32
              "1cgf1p7p2ikda1nb0c2vhhx7ai6rd973pz6a00pr9yanxsvghp6d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/simplified-latex")
    (synopsis "Simplified introduction to LaTeX")
    (description
     "This package provides an accessible introduction to LaTeX for the
beginner.")
    (license license:lppl)))

(define-public texlive-slideshow
  (package
    (name "texlive-slideshow")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/slideshow/"
                   "metapost/slideshow/")
             (base32
              "07r58whn61nyxj0cldzf9bbwhh0kc72d6708ldf03q7sbf5zi37s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/slideshow")
    (synopsis "Generate slideshow with MetaPost")
    (description
     "The package provides a means of creating presentations in MetaPost,
without intervention from other utilities (except a distiller).")
    (license (license:fsf-free "file://metapost/slideshow/slideshow.mp"))))

(define-public texlive-splines
  (package
    (name "texlive-splines")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/splines/" "metapost/splines/"
                   "source/metapost/splines/")
             (base32
              "15pvr4vl5whcrij6gq3al5jaqrshvm2qybvxq7qx0gdxzfsli38z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/splines")
    (synopsis "MetaPost macros for drawing cubic spline interpolants")
    (description
     "This is a small package of macros for creating cubic spline interpolants
in MetaPost or Metafont.  Given a list of points the macros can produce
a closed or a relaxed spline joining them.")
    (license license:lppl1.3+)))

(define-public texlive-stackengine
  (package
    (name "texlive-stackengine")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/stackengine/"
                   "tex/latex/stackengine/")
             (base32
              "0c12ygqxdb6vn1y03jzcjpmdp53r076hq3hgjzwy2ch1dw81cnpd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-listofitems))
    (home-page "https://ctan.org/pkg/stackengine")
    (synopsis "Customised stacking of objects")
    (description
     "The package provides a versatile way to stack objects vertically in a
variety of customizable ways.  A number of useful macros are provided, all
of which make use of the @code{stackengine} core.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-stackengine texlive-stackengine)

(define-public texlive-suanpan
  (package
    (name "texlive-suanpan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/suanpan/" "metapost/suanpan/")
             (base32
              "1ddhk8d98bc4l2xbx5w6kaynl4n125nnv4hadfp5s19vwcc6slqv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/suanpan")
    (synopsis "MetaPost macros for drawing Chinese and Japanese abaci")
    (description
     "The package provides macros for drawing Chinese and Japanese abaci.")
    (license license:lppl)))

(define-public texlive-synctex
  (package
    (name "texlive-synctex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/synctex.1"
                   "doc/man/man1/synctex.man1.pdf"
                   "doc/man/man5/synctex.5"
                   "doc/man/man5/synctex.man5.pdf")
             (base32
              "1a2nlmbib8723jjhf6xxh5rpmnd5jv3cd69br4ihchbq5ipzircp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/synctex")
    (synopsis "Engine-level feature synchronizing output and source")
    (description
     "SyncTeX allows navigating between the TeX source and (usually PDF)
output, in both directions, given a SyncTeX-aware front end.  It is compiled
into most engines and can be enabled with the @samp{--synctex=1} option.")
    (license license:expat)))

(define-public texlive-tetragonos
  (package
    (name "texlive-tetragonos")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/tetragonos/"
                   "tex/xelatex/tetragonos/")
             (base32
              "191727d2craai25847i2xfzlm04852afvrwdjsk3jjss46a43ixn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tetragonos")
    (synopsis "Four-Corner codes of Chinese characters")
    (description
     "This is a XeLaTeX package for mapping Chinese characters to their codes
in the Four-Corner method.")
    (license license:lppl1.3c)))

(define-public texlive-threeddice
  (package
    (name "texlive-threeddice")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/threeddice/"
                   "metapost/threeddice/")
             (base32
              "1sj4f3bbxjzwbncxlvlbmsnfi7jkf5625gwhbqfh399vlh0nb56j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/threeddice")
    (synopsis "Create images of dice with one, two, or three faces showing")
    (description
     "The package provides MetaPost code to create all possible symmetrical
views (up to rotation) of a right-handed die.")
    (license license:lppl)))

(define-public texlive-textpath
  (package
    (name "texlive-textpath")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/textpath/"
                   "metapost/textpath/" "tex/latex/textpath/")
             (base32
              "07g7n0hjsvsk0cibprpqid43vvljjzagap07zbp2kirkiv7yq3k0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/textpath")
    (synopsis "Setting text along a path with MetaPost")
    (description
     "This MetaPost package provides macros to typeset text along a free path
with the help of LaTeX, thereby preserving kerning and allowing for 8-bit
input (accented characters).")
    (license license:lppl)))

(define-public texlive-tocloft
  (package
    (name "texlive-tocloft")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tocloft/"
                   "source/latex/tocloft/"
                   "tex/latex/tocloft/")
             (base32
              "1s09g02pq2zi5ywm3yhyp4lpzq77n9aahr6wnm1c0wb9zawq2mpk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/tocloft")
    (synopsis "Control table of contents")
    (description
     "This package provides control over the typography of the @dfn{Table of
Contents}, @dfn{List of Figures} and @dfn{List of Tables}, and the ability to
create new @samp{List of ...}.  The ToC @code{\\parskip} may be changed.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-tocloft texlive-tocloft)

(define-public texlive-trimspaces
  (package
    (name "texlive-trimspaces")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/trimspaces/"
                   "source/latex/trimspaces/"
                   "tex/latex/trimspaces/")
             (base32
              "0if7pqaib533fbrj9r62mmr4h012hrpszdxs759rwhmyycikg6dk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-format "latex"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-bug
            (lambda _
              ;; The "ins" file refers to the wrong source file.
              (substitute* "source/latex/trimspaces/trimspaces.ins"
                (("pstool\\.tex") "trimspaces.tex")))))))
    (native-inputs (list texlive-filecontents))
    (home-page "https://ctan.org/pkg/trimspaces")
    (synopsis "Trim spaces around an argument or within a macro")
    (description
     "This package provides a very short package that allows you to expandably
remove spaces around a token list (commands are provided to remove spaces
before, spaces after, or both); or to remove surrounding spaces within a macro
definition, or to define space-stripped macros.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-trimspaces texlive-trimspaces)

(define-public texlive-tufte-latex
  (package
    (name "texlive-tufte-latex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/tufte-latex/"
                   "doc/latex/tufte-latex/"
                   "tex/latex/tufte-latex/")
             (base32
              "16jqf8assirdj769rajrdb70w8rc0kyj0q07bs6v13kfil5h0bdp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-changepage
           texlive-ifmtarg
           texlive-paralist
           texlive-placeins
           texlive-sauerj
           texlive-xifthen))
    (home-page "https://ctan.org/pkg/tufte-latex")
    (synopsis "Document classes inspired by the work of Edward Tufte")
    (description
     "This package provides two classes inspired, respectively, by handouts
and books created by Edward Tufte.")
    (license license:asl2.0)))

(define-public texlive-turkmen
  (package
    (name "texlive-turkmen")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/turkmen/" "source/latex/turkmen/"
                   "tex/latex/turkmen/")
             (base32
              "0jgz9vkqpp853pxvhknafrwpl41h04j7fr1gfjrzqzcrdq7d855i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/turkmen")
    (synopsis "Babel support for Turkmen")
    (description
     "The package provides support for Turkmen in Babel, but integration with
Babel is not available.")
    (license license:lppl)))

(define-public texlive-ucharclasses
  (package
    (name "texlive-ucharclasses")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/ucharclasses/"
                   "tex/xelatex/ucharclasses/")
             (base32
              "0pgzs730zqmcck693i7fq771p7szq6nqdxb9w8dy6l2b4zdql14m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ucharclasses")
    (synopsis "Font actions in XeTeX according to what is being processed")
    (description
     "The package takes care of switching fonts when you switch from one
Unicode block to another in the text of a document.  This way, you can write
a document with no explicit font selection, but a series of rules of the form
``when entering block ..., switch font to use ...''.")
    (license license:public-domain)))

(define-public texlive-unicode-bidi
  (package
    (name "texlive-unicode-bidi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/unicode-bidi/"
                   "tex/xelatex/unicode-bidi/")
             (base32
              "0anwaaf21qcdgni9z85hqap1wb4y9pv13p96x13w29hbqizmf69l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/unicode-bidi")
    (synopsis "Experimental Unicode Bidi package for XeTeX")
    (description
     "The experimental Unicode-Bidi package allows to mix non-RTL script with
RTL script without any markup.")
    (license license:lppl1.3+)))

(define-public texlive-unimath-plain-xetex
  (package
    (name "texlive-unimath-plain-xetex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/unimath-plain-xetex/"
                   "fonts/misc/xetex/fontmapping/unimath-plain-xetex/"
                   "tex/xetex/unimath-plain-xetex/")
             (base32
              "0vqnqfklg1mj7mipgrfng0qq1i9psiqri0yh30ixrz8j6mkaqb35")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/unimath-plain-xetex")
    (synopsis "OpenType math support in (plain) XeTeX")
    (description
     "This package provides OpenType math font support in plain TeX format.
It only works with the XeTeX engine.")
    (license license:lppl1.3c)))

(define-public texlive-unisugar
  (package
    (name "texlive-unisugar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/unisugar/"
                   "tex/xelatex/unisugar/")
             (base32
              "1bn88ghfn14am1grph1pjw9k0xy1rz8swzhsbxsxyzz6cqk9s161")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/unisugar")
    (synopsis "Define syntactic sugar for Unicode LaTeX")
    (description
     "The package allows the user to define shorthand aliases for single
Unicode characters, and also provides support for such aliases in RTL-text.
The package requires an TeX-alike system that uses Unicode input in a native
way: current examples are XeTeX and LuaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-xebaposter
  (package
    (name "texlive-xebaposter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xebaposter/"
                   "tex/latex/xebaposter/")
             (base32
              "18fnwfhfk3jzkp4yd0dfi49jnf8njccbhhd6k15pvghs4brd9hba")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xebaposter")
    (synopsis "Create scientific Persian/Latin posters using TikZ")
    (description
     "This package is designed for making scientific Persian/Latin posters.
It is a fork of @code{baposter} by Brian Amberg and Reinhold Kainhofer.")
    (license license:lppl1.3+)))

(define-public texlive-xechangebar
  (package
    (name "texlive-xechangebar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xechangebar/"
                   "tex/xelatex/xechangebar/")
             (base32
              "0a7b9bffh5b435gw4qxydmfrpizly79cjgjhhlgywwg6gibvxn4s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xechangebar")
    (synopsis "Extension of package @code{changebar} for use with XeLaTeX")
    (description
     "The package extends package @code{changebar} so it can be used with
XeLaTeX.  It introduces the new option @code{xetex} for use with XeLaTeX.
Everything else remains the same and users should consult the original
documentation for usage information.")
    (license license:lppl1.3+)))

(define-public texlive-xecolor
  (package
    (name "texlive-xecolor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xecolor/"
                   "tex/xelatex/xecolor/")
             (base32
              "0adzg2j1lmclr5zcs8da3m1b9q5xs50rxga6k2pzzxy2x0nh1xpi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xecolor")
    (synopsis "Support for color in XeLaTeX")
    (description
     "This is a simple package which defines about 140 different colours using
XeTeX's colour feature.  The colours can be used in bidirectional texts
without any problem.")
    (license license:lppl1.3+)))

(define-public texlive-xecyr
  (package
    (name "texlive-xecyr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xecyr/" "tex/xelatex/xecyr/")
             (base32
              "07qvxfnwha6iqzcv84ws074jdi8jn60h42l93jn037n3zj2qxkg8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xecyr")
    (synopsis "Using Cyrillic languages in XeTeX")
    (description
     "This package provides helper tools for using Cyrillic languages with
XeLaTeX and @code{babel}.")
    (license license:lppl1.3+)))

(define-public texlive-xeindex
  (package
    (name "texlive-xeindex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xeindex/"
                   "tex/xelatex/xeindex/")
             (base32
              "1sps9lrzm9y2rrin5pkgzyk56c77xnydvp21ljmvsimqgafr5aqb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xeindex")
    (synopsis "Automatic index generation for XeLaTeX")
    (description
     "The package is based on XeSearch, and will automatically index words or
phrases in an XeLaTeX document.  Words are declared in a list, and every
occurrence then creates an index entry whose content can be fully specified
beforehand.")
    (license license:lppl)))

(define-public texlive-xesearch
  (package
    (name "texlive-xesearch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/xesearch/" "tex/xetex/xesearch/")
             (base32
              "13fdllqswyyvvyjqn0a4ld18dixxnn7zlpagsdaq8cl1svpaxpk5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xesearch")
    (synopsis "String finder for XeTeX")
    (description
     "The package finds strings (e.g., parts of words or phrases) and
manipulates them, thus turning each word or phrase into a possible command.
It is written in plain XeTeX and should thus work with any format.  The main
application for the moment is XeIndex, an automatic index for XeLaTeX, but
examples are given of simple use to check spelling, count words, and highlight
syntax of programming languages.")
    (license license:lppl)))

(define-public texlive-xespotcolor
  (package
    (name "texlive-xespotcolor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xespotcolor/"
                   "source/xelatex/xespotcolor/"
                   "tex/xelatex/xespotcolor/")
             (base32
              "0pqv4y2idcazwdy94ryyrk5s2g66sb7liy9hypqaq69symn8myf7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xespotcolor")
    (synopsis "Spot colours support for XeLaTeX")
    (description
     "The package provides macros for using spot colours in LaTeX documents.
The package is a reimplementation of the @code{spotcolor} package for use with
XeLaTeX.  As such, it has the same user interface and the same capabilities.")
    (license license:lppl1.3c)))

(define-public texlive-xetex-devanagari
  (package
    (name "texlive-xetex-devanagari")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/xetex-devanagari/"
                   "fonts/misc/xetex/fontmapping/xetex-devanagari/")
             (base32
              "17br9aq1af36wadq2cmndbb0z2jdhr1mn7jdb3cq642wwngcfi13")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetex-devanagari")
    (synopsis "XeTeX input map for Unicode Devanagari")
    (description
     "The package provides a map for use with Jonathan Kew's TECkit, to
translate Devanagari (encoded according to the Harvard/Kyoto convention) to
Unicode (range 0900-097F).")
    (license license:lppl)))

(define-public texlive-xetex-itrans
  (package
    (name "texlive-xetex-itrans")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xetex-itrans/"
                   "fonts/misc/xetex/fontmapping/xetex-itrans/")
             (base32
              "1chx2s0p6y5p767cr23jh9x61axjrdnyc5lcvf7kyrg74cszsmql")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetex-itrans")
    (synopsis "Itrans input maps for use with XeLaTeX")
    (description
     "The package provides maps for use with XeLaTeX with coding done using
@code{itrans}.  Fontspec maps are provided for Devanagari (Sanskrit), for
Sanskrit in Kannada and for Kannada itself.")
    (license license:lppl1.3+)))

(define-public texlive-xetex-pstricks
  (package
    (name "texlive-xetex-pstricks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/xetex-pstricks/"
                   "tex/xelatex/xetex-pstricks/"
                   "tex/xetex/xetex-pstricks/")
             (base32
              "195zjdxddlwl69gnp2x3jg3l8gn36mxsdbz03qs0r940frx533ls")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetex-pstricks")
    (synopsis "Running PSTricks under XeTeX")
    (description
     "The package provides an indirection scheme for XeTeX to use the PSTricks
@file{xdvipdfmx.cfg} configuration file, so that XeTeX documents will load it
in preference to the standard pstricks.con configuration file.  With this
configuration, many PSTricks features can be used in XeLaTeX or plain XeTeX
documents.")
    (license license:public-domain)))

(define-public texlive-xetex-tibetan
  (package
    (name "texlive-xetex-tibetan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/xetex-tibetan/"
                   "fonts/misc/xetex/fontmapping/xetex-tibetan/")
             (base32
              "02z3jzf16hi9zj50lpf9map5f6ydvxw66f0k4n5ry88s7frbxwmw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetex-tibetan")
    (synopsis "XeTeX input maps for Unicode Tibetan")
    (description
     "The package provides a map for use with Jonathan Kew's TECkit, to
translate Tibetan to Unicode (range 0F00-0FFF).")
    (license license:lppl)))

(define-public texlive-xetexfontinfo
  (package
    (name "texlive-xetexfontinfo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/xetexfontinfo/"
                   "tex/xetex/xetexfontinfo/")
             (base32
              "0x1llikcvwlf74anmvaks73gvd99xha9dg49zh75dwki0nwisn2j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetexfontinfo")
    (synopsis "Report font features in XeTeX")
    (description
     "This package provides a pair of documents to reveal the font features
supported by fonts usable in XeTeX.")
    (license license:asl2.0)))

(define-public texlive-xetexko
  (package
    (name "texlive-xetexko")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/xetexko/" "tex/xetex/xetexko/")
             (base32
              "1jp5caxnyjf5fnndszaqpzsgcm2rhk5iapnpf1ca6mvxbnpf1x5l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetexko")
    (synopsis "Typeset Korean with Xe(La)TeX")
    (description
     "The package supports typesetting Korean documents (including old Hangul
texts), using XeTeX.  It enhances the existing support, in XeTeX, providing
features that provide quality typesetting.")
    (license license:lppl1.3c)))

(define-public texlive-xetexref
  (package
    (name "texlive-xetexref")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xetex/xetexref/")
             (base32
              "0d6xwyd09rrmd0pjvrdha05l1qldppd2k7wcpyfb475pd9q05r5r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetexref")
    (synopsis "Reference documentation of XeTeX")
    (description
     "The package comprises reference documentation for XeTeX detailing its
extended features.")
    (license license:lppl1.3c)))

(define-public texlive-xevlna
  (package
    (name "texlive-xevlna")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xevlna/" "tex/xelatex/xevlna/")
             (base32
              "0gwh1rd5s01rnb11nxk6nxwyqj32bi739p10hwqz3sw1hfy8mnfi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xevlna")
    (synopsis "Insert non-breakable spaces using XeTeX")
    (description
     "The package will directly insert nonbreakable spaces (in Czech, vlna or
vlnka), after nonsyllabic prepositions and single letter conjuctions, while
the document is being typeset.")
    (license license:lppl1.3+)))

(define-public texlive-currfile
  (package
    (name "texlive-currfile")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/currfile/" "source/latex/currfile/"
                   "tex/latex/currfile/")
             (base32
              "0g28y2bwqnc3xfcp0ak7rxx0c40b88vl85pj7x5dccmvx0yrxy9n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (home-page "https://ctan.org/pkg/currfile")
    (synopsis "Provide file name and path of input files")
    (description
     "The package provides macros holding file name information (directory,
base name, extension, full name and full path) for files read by LaTeX
@code{\\input} and @code{\\include} macros; it uses the file hooks provided by
the author's @code{filehook}.  In particular, it restores the parent file name
after the trailing @code{\\clearpage} of an @code{\\included} file; as
a result, the macros may be usefully employed in the page header and footer of
the last printed page of such a file.  The depth of inclusion is made
available, together with the parent (including file) and parents (all
including files to the root of the tree).  The package supersedes FiNK.")
    (license license:lppl1.3+)))

(define-public texlive-cursolatex
  (package
    (name "texlive-cursolatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cursolatex/")
             (base32
              "048s5fg8c19s3zbl2dkmh8ffkicb8fd9n46m0iqrc39i0wrh7p12")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cursolatex")
    (synopsis "LaTeX tutorial, in Portuguese")
    (description
     "This package provides a LaTeX tutorial, in Portuguese.  The tutorial is
presented as a set of slides.")
    (license license:gpl3+)))

(define-public texlive-calrsfs
  (package
    (name "texlive-calrsfs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/calrsfs/" "tex/latex/calrsfs/")
             (base32
              "0aqa0k0zzzicx5nynd29i9pdb7a4j6fvf1xwrbm4qg64pl55i6xa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/calrsfs")
    (synopsis "Copperplate calligraphic letters in LaTeX")
    (description "This package provides a maths interface to the @code{rsfs}
fonts.")
    (license license:public-domain)))

(define-public texlive-capt-of
  (package
    (name "texlive-capt-of")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/capt-of/" "source/latex/capt-of/"
                   "tex/latex/capt-of/")
             (base32
              "0bf0cdd9ca3kkqxqqkq6jalh5ybs60l80l5gfkl2whk2v4bnzfvz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/capt-of")
    (synopsis "Captions on more than floats")
    (description
     "This package defines a command @code{\\captionof} for putting a caption
to something that's not a float.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-capt-of texlive-capt-of)

(define-public texlive-carlisle
  (package
    (name "texlive-carlisle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/carlisle/" "source/latex/carlisle/"
                   "tex/latex/carlisle/")
             (base32
              "0kgbs8k6ma3kng2srwpzkla1c51ylzgb7yn8bib2zy46rmysrk86")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/carlisle")
    (synopsis "David Carlisle's small packages")
    (description
     "Many of David Carlisle's more substantial packages stand on their own,
or as part of the LaTeX latex-tools set; this set contains: making dotless
@emph{j} characters for fonts that don't have them; a method for combining the
capabilities of @code{longtable} and @code{tabularx}; an environment for
including plain TeX in LaTeX documents; a jiffy to create slashed characters
for physicists.")
    (license license:lppl)))

(define-public texlive-catchfile
  (package
    (name "texlive-catchfile")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/catchfile/" "source/latex/catchfile/"
                   "tex/generic/catchfile/")
             (base32
              "1dpxy64hs0bjp8d2dmikflc995vazf7fi6z92w51fnj2fidgl8gx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/macros/latex/contrib/catchfile")
    (synopsis "Catch an external file into a macro")
    (description
     "Catchfile catches the contents of a file and puts it in a macro.")
    (license license:lppl1.3+)))

(define-public texlive-ddphonism
  (package
    (name "texlive-ddphonism")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ddphonism/" "tex/latex/ddphonism/")
             (base32
              "1p02ai76nnh6042pnmqv4n30z6yxsvyyk2nb9jk7xlyyc87zzbdd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ddphonism")
    (synopsis "Dodecaphonic diagrams for LaTeX")
    (description
     "This is a music-related package which is focused on notation from the
twelve-tone system, also called dodecaphonism.  It provides LaTeX algorithms
that produce typical dodecaphonic notation based off a musical series, or row
sequence, of variable length.")
    (license license:lppl1.3c)))

(define-public texlive-doi
  (package
    (name "texlive-doi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/doi/" "tex/latex/doi/")
             (base32
              "18z9922lqb3hliqn95h883fndqs4lgyi5yqbnq2932ya0imc3j7h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/doi")
    (synopsis "Create correct hyperlinks for DOI numbers")
    (description
     "You can hyperlink DOI numbers to doi.org.  However, some publishers have
elected to use nasty characters in their DOI numbering scheme (@code{<},
@code{>}, @code{_} and @code{;} have all been spotted).  This will either
upset LaTeX, or your PDF reader.  This package contains a single user-level
command @code{\\doi{}}, which takes a DOI number, and creates a correct
hyperlink to the target of the DOI.")
    ;; Any version of the LPPL.
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-doi texlive-doi)

(define-public texlive-etoolbox
  (package
    (name "texlive-etoolbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/etoolbox/" "tex/latex/etoolbox/")
             (base32
              "070iaj540rglf0c80l0hjkwg6aa7qyskhh4iwyhf7n8vrg5cjjab")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/etoolbox")
    (synopsis "e-TeX tools for LaTeX")
    (description
     "The package is a toolbox of programming facilities geared primarily
towards LaTeX class and package authors.  It provides LaTeX frontends to some
of the new primitives provided by e-TeX as well as some generic tools which
are not strictly related to e-TeX but match the profile of this package.  The
package provides functions that seem to offer alternative ways of implementing
some LaTeX kernel commands; nevertheless, the package will not modify any part
of the LaTeX kernel.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-etoolbox texlive-etoolbox)

(define-public texlive-fncychap
  (package
    (name "texlive-fncychap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fncychap/"
                   "tex/latex/fncychap/")
             (base32
              "1javlws18ncrf7rz7qfbx1db9jwk45lm6sa0s67hlr6hqnyjxf94")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fncychap")
    (synopsis "Seven predefined chapter heading styles")
    (description
     "This package provides seven predefined chapter heading styles.  Each
style can be modified using a set of simple commands.  Optionally one can
modify the formatting routines in order to create additional chapter
headings.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-fncychap texlive-fncychap)

(define-public texlive-framed
  (package
    (name "texlive-framed")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/framed/"
                   "tex/latex/framed/")
             (base32
              "09hlzjlhz3q3l62h6gj997pfx1hc4726frhcdc6y5g66c3gh621g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/framed")
    (synopsis "Framed or shaded regions that can break across pages")
    (description
     "The package creates three environments: @code{framed}, which puts an
ordinary frame box around the region, @code{shaded}, which shades the region,
and @code{leftbar}, which places a line at the left side.  The environments
allow a break at their start (the @code{\\FrameCommand} enables creation of
a title that is “attached” to the environment); breaks are also allowed in the
course of the framed/shaded matter.  There is also a command
@code{\\MakeFramed} to make your own framed-style environments.")
    ;; The header states: "These macros may be freely transmitted, reproduced,
    ;; or modified for any purpose provided that this notice is left intact."
    (license (license:fsf-free "file://framed.sty"))))

(define-deprecated-package texlive-latex-framed texlive-framed)

(define-public texlive-g-brief
  (package
    (name "texlive-g-brief")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/g-brief/"
                   "source/latex/g-brief/"
                   "tex/latex/g-brief/")
             (base32
              "0sicgf3wjw5jymh5xjxby2hsilakhw2lqgywx0f2zax1z854xc2m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/g-brief")
    (synopsis "Letter document class")
    (description
     "This package is designed for formatting formless letters in German; it
can also be used for English (by those who can read the documentation).  There
are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an old
and a new version of @code{g-brief}.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-g-brief texlive-g-brief)

(define-public texlive-galois
  (package
    (name "texlive-galois")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/galois/"
                   "source/latex/galois/"
                   "tex/latex/galois/")
             (base32
              "1324nw1r1aj6khz6fvrhd1p1sinadrd83j0s2q2fhnsgwp6sw94f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/galois")
    (synopsis "Typeset Galois connections")
    (description
     "The package deals with connections in two-dimensional style, optionally
in colour.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-galois texlive-galois)

(define-public texlive-gcite
  (package
    (name "texlive-gcite")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gcite/"
                   "source/latex/gcite/"
                   "tex/latex/gcite/")
             (base32
              "0yb7sid13bx25yar3aw6pbf4jmmfi0gdmcd7ynf5hjh9qdfb3zyh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/gcite")
    (synopsis "Citations in a reader-friendly style")
    (description
     "The package allows citations in the German style, which is considered by
many to be particularly reader-friendly.  The citation provides a small amount
of bibliographic information in a footnote on the page where each citation is
made.  It combines a desire to eliminate unnecessary page-turning with the
look-up efficiency afforded by numeric citations.  The package makes use of
BibLaTeX, and is considered experimental.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-gcite texlive-gcite)

(define-public texlive-gckanbun
  (package
    (name "texlive-gckanbun")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gckanbun/" "tex/latex/gckanbun/")
             (base32
              "1hjp7nw2b34pkfxh6n2722zc83hjpn492q77gb063jzi79pgbprx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gckanbun")
    (synopsis "Kanbun typesetting for (u)pLaTeX and LuaLaTeX")
    (description
     "This package provides a Kanbun (Han Wen, ``Chinese writing'')
typesetting for @code{(u)pLaTeX} and LuaLaTeX.")
    (license license:expat)))

(define-public texlive-gentombow
  (package
    (name "texlive-gentombow")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gentombow/"
                   "tex/latex/gentombow/")
             (base32
              "1pc1cxsxlnj9d2qnvm31r3cw15mf7fwr5dadd10473mww8bp8irf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gentombow")
    (synopsis "Generate Japanese-style crop marks")
    (description
     "This bundle provides a LaTeX package for generating Japanese-style crop
marks (called tombow in Japanese) for practical use in self-publishing.

The bundle contains the following packages:
@itemize
@item @file{gentombow.sty}: Generate crop marks (called tombow in
Japanese) for practical use in self-publishing.  It provides the core
tombow feature if not available.
@item @file{pxgentombow.sty}: Superseded by @file{gentombow.sty}; kept
for compatibility only.
@item @file{bounddvi.sty}: Set papersize special to DVI file.  Can be
used on LaTeX, pLaTeX, upLaTeX (with DVI output mode) with dvips or
dvipdfmx drivers.
@end itemize")
    (license license:bsd-3)))

(define-public texlive-geometry
  (package
    (name "texlive-geometry")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/geometry/"
                   "source/latex/geometry/"
                   "tex/latex/geometry/")
             (base32
              "09jwdrg4s1c0gqmx7s57byw5kc09cna3li85y9ix0vxa6f6iqzi1")))
    (build-system texlive-build-system)
    (outputs '("out" "doc"))
    (propagated-inputs (list texlive-graphics texlive-iftex))
    (home-page "https://www.ctan.org/pkg/geometry")
    (synopsis "Flexible and complete interface to document dimensions")
    (description
     "This package provides an easy and flexible user interface to customize
page layout, implementing auto-centering and auto-balancing mechanisms so that
the users have only to give the least description for the page layout.  The
package knows about all the standard paper sizes, so that the user need not
know what the nominal real dimensions of the paper are, just its standard
name (such as a4, letter, etc.).  An important feature is the package's
ability to communicate the paper size it's set up to the output.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-geometry texlive-geometry)

(define-public texlive-mdwtools
  (package
    (name "texlive-mdwtools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mdwtools/"
                   "source/latex/mdwtools/"
                   "tex/latex/mdwtools/")
             (base32
              "08wyw0k6r3fv7vdgwbcpq9ckifldy17fzhpar51s1qn0yib93zdg")))
    (build-system texlive-build-system)
    (outputs '("out" "doc"))
    (home-page "https://www.ctan.org/pkg/mdwtools")
    (synopsis "Miscellaneous tools by Mark Wooding")
    (description
     "This collection of tools includes: @code{atsupport} for short commands
starting with @code{@@}, macros to sanitize the OT1 encoding of the
@code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
@code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
which adds some minor changes to LaTeX maths; a rewrite of LaTeX's
@code{tabular} and @code{array} environments; verbatim handling; and syntax
diagrams.")
    (license license:gpl3+)))

(define-deprecated-package texlive-latex-mdwtools texlive-mdwtools)

(define-public texlive-makecmds
  (package
    (name "texlive-makecmds")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/makecmds/" "source/latex/makecmds/"
                   "tex/latex/makecmds/")
             (base32
              "05y5n265in7mrbpgjxqg339l8r8dmp6lvl4k528pr3rkb8z94qaf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list (texlive-updmap.cfg)))
    (home-page "https://www.ctan.org/pkg/makecmds")
    (synopsis "TeX macro to define or redefine a command")
    (description "The package provides a @code{\\makecommand} command, which
is like @code{\\newcommand} or @code{\\renewcommand} except it
always (re)defines a command.  There is also @code{\\makeenvironment} and
@code{\\provideenvironment} for environments.")
    (license license:lppl1.3c+)))

(define-public texlive-makeindex
  (package
    (name "texlive-makeindex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/makeindex.1"
                   "doc/man/man1/makeindex.man1.pdf"
                   "doc/man/man1/mkindex.1"
                   "doc/man/man1/mkindex.man1.pdf"
                   "doc/support/makeindex/"
                   "makeindex/base/"
                   "tex/plain/makeindex/")
             (base32
              "0m01m0x1kf10yvzxgrkvpic0amsr0g6q2r2wsg5f4ngybq4y9gyi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/makeindexk")
    (synopsis "Makeindex development sources")
    (description
     "The package contains the development sources of MakeIndex.")
    (license
     (license:fsf-free "https://mirrors.ctan.org/indexing/makeindex/COPYING"))))

(define-public texlive-marginfix
  (package
    (name "texlive-marginfix")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/marginfix/"
                   "source/latex/marginfix/"
                   "tex/latex/marginfix/")
             (base32
              "0y6lmxm5ws2g0rqisvgdc8kg3whnvabrkl662sb4jvvaz02y3qdi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/marginfix")
    (synopsis "Patch @code{\\marginpar} to avoid overfull margins")
    (description
     "Authors using LaTeX to typeset books with significant margin material
often run into the problem of long notes running off the bottom of the page.
This package implements a solution to make @code{marginpars} just work by
keeping a list of floating inserts and arranging them intelligently in the
output routine.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-marginfix texlive-marginfix)

(define-public texlive-metalogo
  (package
    (name "texlive-metalogo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/metalogo/" "source/latex/metalogo/"
                   "tex/latex/metalogo/")
             (base32
              "1xzy982kc7k5n7gy019rk4hbvxli2mlf4s7h7s11diasmh5fa2gf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/metalogo")
    (synopsis "Extended TeX logo macros")
    (description
     "This package exposes spacing parameters for various TeX logos to the end
user, to optimise the logos for different fonts.  It is written especially for
XeLaTeX users.")
    (license license:lppl1.3c+)))

(define-public texlive-paralist
  (package
    (name "texlive-paralist")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/paralist/" "source/latex/paralist/"
                   "tex/latex/paralist/")
             (base32
              "003gs7rjm97vqh903wdjys3ls96kx45w3s4qghjk1fdjx6qxd32l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/paralist")
    (synopsis "@code{enumerate} and @code{itemize} within paragraphs")
    (description
     "The @code{paralist} package provides @code{enumerate} and @code{itemize}
environments that can be used within paragraphs to format the items either as
running text or as separate paragraphs with a preceding number or symbol.  It
also provides compacted versions of @code{enumerate} and @code{itemize}.")
    (license license:lppl1.0+)))

(define-public texlive-polski
  (package
    (name "texlive-polski")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/polski/" "source/latex/polski/"
                   "tex/latex/polski/")
             (base32
              "0rcqyq8a96dl61fi9yr201rpm93w70sq93872ngfgvnk5m19xy13")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:build-targets #~(list "polski.ins")))
    (propagated-inputs (list texlive-hyphen-complete texlive-pl))
    (home-page "https://ctan.org/pkg/polski")
    (synopsis "Typeset Polish documents with LaTeX and Polish fonts")
    (description
     "This package provides tools to typeset monolingual Polish documents in
LaTeX2e without Babel or Polyglossia.  The package loads Polish hyphenation
patterns, ensures that a font encoding suitable for Polish is used; in
particular it enables Polish adaptation of Computer Modern fonts (the
so-called PL fonts), provides translations of @code{\\today} and names like
@samp{Bibliography} or @samp{Chapter}, redefines math symbols according to
Polish typographical tradition, provides macros for dashes according to Polish
orthography, provides a historical input method for Polish characters, works
with traditional TeX as well as with Unicode aware variants.")
    (license license:lppl1.2+)))

(define-public texlive-polyglossia
  (package
    (name "texlive-polyglossia")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/polyglossia/"
                   "fonts/misc/xetex/fontmapping/polyglossia/"
                   "source/latex/polyglossia/"
                   "tex/latex/polyglossia/")
             (base32
              "15rqqf0yb09qcs6ibsrkg5jbpzicxkpbj211p6qkfl2fcrc1gndv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-format "xelatex"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'substitute-fonts
            (lambda _
              ;; Use dummy fonts for documentation.  We will install
              ;; pre-generated one anyway. Moreover, adding appropriate fonts
              ;; would bring in some large dependencies, such as webkitgtk for
              ;; Amiri.
              (substitute* "source/latex/polyglossia/polyglossia.dtx"
                (("\\{Serto Jerusalem}") "{FreeSans}")
                (("\\{Amiri-Regular}") "{FreeSans}")
                (("\\{Noto Serif CJK SC}") "{FreeSans}")
                (("\\{GFSPolyglot.otf}") "{FreeSans}"))))
          (add-after 'unpack 'extend-texmf
            (lambda _
              ;; Extend the current TEXMF environment variable to make
              ;; Polyglossia own libraries visible.
              (setenv "GUIX_TEXMF"
                      (string-append (getcwd) ":"
                                     (getenv "GUIX_TEXMF"))))))))
    (native-inputs
     (list font-dejavu
           font-gnu-freefont
           font-linuxlibertine
           font-sil-ezra
           fontconfig                   ;for XDG_DATA_DIRS (to locate fonts)
           texlive-amiri
           texlive-babel
           texlive-bidi
           texlive-booktabs
           texlive-caption
           texlive-context
           texlive-fancyvrb
           texlive-graphics
           texlive-hyperref
           texlive-infwarerr
           texlive-kvoptions
           texlive-latex-fonts
           texlive-libertine
           texlive-metalogo
           texlive-microtype
           texlive-noto
           texlive-paralist
           texlive-pdftexcmds
           texlive-tex
           texlive-tools
           texlive-xcolor
           texlive-xetex
           texlive-zref))
    (propagated-inputs
     (list texlive-etoolbox
           texlive-filehook
           texlive-fontspec
           texlive-iftex
           texlive-makecmds
           texlive-xkeyval))
    (home-page "https://www.ctan.org/pkg/polyglossia")
    (synopsis "Alternative to Babel for XeLaTeX and LuaLaTeX")
    (description "This package provides a complete Babel replacement for users
of LuaLaTeX and XeLaTeX.  It includes support for over 70 different languages,
some of which in different regional or national varieties, or using a
different writing system.  It enables:
@itemize
@item
Loading the appropriate hyphenation patterns.
@item
Setting the script and language tags of the current font (if possible and
available), using the package @code{fontspec}.
@item
Switching to a font assigned by the user to a particular script or language.
@item
Adjusting some typographical conventions in function of the current language
(such as @code{afterindent}, @code{frenchindent}, spaces before or after
punctuation marks, etc.)
@item
Redefining the document strings (like @samp{chapter}, @samp{figure},
@samp{bibliography}).  Adapting the formatting of dates (for non-gregorian
calendars via external packages bundled with @code{polyglossia}: currently the
Hebrew, Islamic and Farsi calendars are supported).
@item
For languages that have their own numeration system, modifying the formatting
of numbers appropriately.
@item
Ensuring the proper directionality if the document contains languages
written from right to left.
@end itemize")
    (license license:expat)))

(define-deprecated-package texlive-latex-polyglossia texlive-polyglossia)

(define-public texlive-przechlewski-book
  (package
    (name "texlive-przechlewski-book")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/przechlewski-book/"
                   "doc/latex/przechlewski-book/"
                   "tex/latex/przechlewski-book/")
             (base32
              "06bsdpm26s3qqxhik185pkrxp0mx2n5jxndm14cd917drh162yr8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/przechlewski-book")
    (synopsis "Examples from Przechlewski's LaTeX book")
    (description
     "The bundle provides machine-readable copies of the examples from the
book @emph{Praca magisterska i dyplomowa z programem LaTeX}.")
    (license license:lppl)))

(define-public texlive-qpxqtx
  (package
    (name "texlive-qpxqtx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/qpxqtx/"
                   "fonts/tfm/public/qpxqtx/"
                   "fonts/vf/public/qpxqtx/"
                   "tex/generic/qpxqtx/")
             (base32
              "0ksikdpzsv0rdnl5p536aw3625rlmzpgmhsycb8sbm9jlbrpxvi6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/qpxqtx")
    (synopsis
     "Polish macros and fonts supporting Pagella/pxfonts and Termes/txfonts")
    (description
     "This package provides Polish macros and fonts supporting Pagella/pxfonts
and Termes/txfonts")
    (license license:public-domain)))

(define-public texlive-supertabular
  (package
    (name "texlive-supertabular")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/supertabular/"
                   "source/latex/supertabular/"
                   "tex/latex/supertabular/")
             (base32
              "1z4kyx20w2zvn6c5a7p702pxj254f2pwlk7x815gzlcc6563js6a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/supertabular")
    (synopsis "Multi-page tables package")
    (description
     "This package was a predecessor of @code{longtable}; the newer
package (designed on quite different principles) is easier to use and more
flexible, in many cases, but @code{supertabular} retains its usefulness in
a few situations where longtable has problems.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-supertabular texlive-supertabular)

(define-public texlive-tap
  (package
    (name "texlive-tap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tap/" "tex/generic/tap/")
             (base32
              "18xfn4p90i0hw5h7am982jgqnsj7qyaijw20zjy3shwihgkaq7fs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tap")
    (synopsis "TeX macros for typesetting complex tables")
    (description
     "The package offers a simple notation for pretty complex tables (to
Michael J.@: Ferguson's credit).  With PostScript, the package allows
shaded/coloured tables, diagonal rules, etc.  The package is supposed to work
with both Plain and LaTeX.  An AWK converter from ASCII semigraphic tables to
TAP notation is included.")
    (license license:public-domain)))

(define-public texlive-texinfo
  (package
    (name "texlive-texinfo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/texinfo/")
             (base32
              "1wdrqwksbhxxx275mzhcr3mc67f76nbflplqs4y1xx67iw724dmx")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texinfo")
    (synopsis "Texinfo documentation system")
    (description
     "Texinfo is the preferred format for documentation in the GNU project;
the format may be used to produce online or printed output from a single
source.  The Texinfo macros may be used to produce printable output using TeX;
other programs in the distribution offer online interactive use (with
hypertext linkages in some cases).")
    (license license:gpl3+)))

(define-deprecated-package texlive-tex-texinfo texlive-texinfo)

(define-public texlive-textcase
  (package
    (name "texlive-textcase")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/textcase/" "source/latex/textcase/"
                   "tex/latex/textcase/")
             (base32
              "15jb7r1p7vjm1i02lf5c9g5i7fcgkc7a6b59jhyzzk2l7ch41d7f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/textcase")
    (synopsis "Case conversion ignoring mathematics, etc")
    (description
     "The @code{textcase} package offers commands @code{\\MakeTextUppercase}
and @code{\\MakeTextLowercase} are similar to the standard
@code{\\MakeUppercase} and @code{\\MakeLowercase}, but they do not change the
case of any sections of mathematics, or the arguments of @code{\\cite},
@code{\\label} and @code{\\ref} commands within the argument.  A further
command @code{\\NoCaseChange} does nothing but suppress case change within its
argument, so to force uppercase of a section including an environment, one
might say:

@example
\\MakeTextUppercase{...\\NoCaseChange{\\begin{foo}} ...\\NoCaseChange{\\end{foo}}...}
@end example")
    (license license:lppl)))

(define-public texlive-upquote
  (package
    (name "texlive-upquote")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/upquote/"
                   "source/latex/upquote/"
                   "tex/latex/upquote/")
             (base32
              "1manbljqx2859wq9by6bpcx4rnxvc596a05d21cw464484f8a8z2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/upquote")
    (synopsis "Show realistic quotes in verbatim")
    (description
     "Typewriter-style fonts are best for program listings, but Computer
Modern Typewriter prints @samp{`} and @samp{'} as bent opening and closing
single quotes.  Other fonts, and most programming languages, print @samp{`} as
a grave accent and @samp{'} upright; @samp{'} is used both to open and to
close quoted strings.  The package switches the typewriter font to Computer
Modern Typewriter in OT1 encoding, and modifies the behaviour of
@code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
in the expected way.  It does this regardless of other fonts or encodings in
use, so long as the package is loaded after the other fonts were.  The package
does not affect @code{\\tt}, @code{\\texttt}, etc.")
    (license license:lppl1.2+)))

(define-deprecated-package texlive-latex-upquote texlive-upquote)

(define-public texlive-anysize
  (package
    (name "texlive-anysize")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/anysize/"
                   "tex/latex/anysize/")
             (base32
              "155s0v82zpkmv97kwqhhfw52230hka9zl3wzjw1d5ayxd4n11bxq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/anysize")
    (synopsis "Simple package to set up document margins")
    (description
     "This is a simple package to set up document margins.  This package is
considered obsolete; alternatives are the @code{typearea} package from the
@code{koma-script} bundle, or the @code{geometry} package.")
    (license license:public-domain)))

(define-deprecated-package texlive-latex-anysize texlive-anysize)

(define-public texlive-appendix
  (package
    (name "texlive-appendix")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/appendix/"
                   "source/latex/appendix/"
                   "tex/latex/appendix/")
             (base32
              "1vqkqpzs7bc6pbjnafakrwayjyfx9mvadrqxccdf549m8172qvzk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/appendix")
    (synopsis "Extra control of appendices")
    (description
     "The @code{appendix} package provides various ways of formatting the
titles of appendices.  Also (sub)appendices environments are provided that can
be used, for example, for per chapter/section appendices.  An
@code{appendices} environment is provided which can be used instead of the
@code{\\appendix} command.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-appendix texlive-appendix)

(define-public texlive-bookman
  (package
    (name "texlive-bookman")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/bookman/"
                   "fonts/afm/adobe/bookman/"
                   "fonts/afm/urw/bookman/"
                   "fonts/map/dvips/bookman/"
                   "fonts/tfm/adobe/bookman/"
                   "fonts/tfm/urw35vf/bookman/"
                   "fonts/type1/urw/bookman/"
                   "fonts/vf/adobe/bookman/"
                   "fonts/vf/urw35vf/bookman/"
                   "tex/latex/bookman/")
             (base32
              "12wkjwpzxn1a1k3bb41gpnky1jjsh7gzj4xahsjd087fpmrsj9p9")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Bookman font")
    (description
     "This package provides a drop-in replacement for the Bookman font from
Adobe's basic set")
    (license license:gpl3+)))

(define-public texlive-bookmark
  (package
    (name "texlive-bookmark")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bookmark/"
                   "source/latex/bookmark/"
                   "tex/latex/bookmark/")
             (base32
              "111sjwabcbr8ry8fh94ywpzska032y8r4iz4waxa4kf5l3k0p4bs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:build-targets #~(list "bookmark.dtx")))
    (home-page "https://www.ctan.org/pkg/bookmark")
    (synopsis "Bookmark (outline) organization for @code{hyperref}")
    (description
     "This package implements a new bookmark (outline) organization for the
@code{hyperref} package.  Bookmark properties such as style and color.  Other
action types are available (URI, GoToR, Named).")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-bookmark texlive-bookmark)

(define-public texlive-changebar
  (package
    (name "texlive-changebar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/changebar/"
                   "source/latex/changebar/"
                   "tex/latex/changebar/")
             (base32
              "0k6r3f6xqbl5gr3i2kwh82lkbwk76gwyfvj7nsvzi1awjk84hqd2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/changebar")
    (synopsis "Generate changebars in LaTeX documents")
    (description
     "Identify areas of text to be marked with changebars with the
@code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured.  The
package uses drivers to place the bars; the available drivers can work with
@code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
drivers, and VTeX and pdfTeX.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-changebar texlive-changebar)

(define-public texlive-checkcites
  (package
    (name "texlive-checkcites")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/checkcites/"
                   "scripts/checkcites/")
             (base32
              "0zfghyyq86xrbnb9bzl7z1p96s0n255b39v2srqslb2z37ppvjyz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/checkcites")
    (synopsis "Check citation commands in a document")
    (description
     "The package provides a Lua script written for the sole purpose of
detecting undefined and unused references from LaTeX auxiliary or bibliography
files.")
    (license license:lppl1.3+)))

(define-public texlive-chickenize
  (package
    (name "texlive-chickenize")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/chickenize/"
                   "source/luatex/chickenize/"
                   "tex/luatex/chickenize/")
             (base32
              "055lkxc2igr0qh1lcdbnh2w0z92v3wkjgp1hpbbrj8r5kvpm7nvy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chickenize")
    (synopsis "Use Lua callbacks for some textual effects")
    (description
     "The package allows manipulations of any LuaTeX document.  Most of the
package's functions are merely for fun or educational use, but some
functions (for example, @code{colorstretch} for visualising the badness and
font expansion of each line, and @code{letterspaceadjust} doing what its name
says) could be useful in a normal LuaTeX document.")
    (license license:lppl1.3+)))

(define-public texlive-chinese-jfm
  (package
    (name "texlive-chinese-jfm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/chinese-jfm/"
                   "tex/luatex/chinese-jfm/")
             (base32
              "0ixlwivijp6vvzn2j3drr13hk0ylslcd9ws8df24abda93wjm35r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chinese-jfm")
    (synopsis "Luatexja-jfm files for Chinese typesetting")
    (description
     "ChineseJFM is a series of @code{luatexja-jfm} files for better Chinese
typesetting, providing @code{quanjiao}, @code{banjiao}, and @code{kaiming}
three styles and other fancy features.  It can be used for both horizontal and
vertical writing mode in Simplified/Traditional Chinese or Japanese fonts.")
    (license license:expat)))

(define-public texlive-cloze
  (package
    (name "texlive-cloze")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/cloze/" "scripts/cloze/"
                   "source/luatex/cloze/" "tex/luatex/cloze/")
             (base32
              "0i0bsflqgw14bik1r8qlx2287fx6lv8jmha57bx54d7icaswssf9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cloze")
    (synopsis "Lualatex package for creating cloze texts")
    (description
     "This is a LuaTeX or LuaLaTeX package for generating cloze texts.  The
main feature of the package is that the formatting doesn't change when using
the hide and show options.")
    (license license:lppl1.3+)))

(define-public texlive-cmap
  (package
    (name "texlive-cmap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cmap/"
                   "tex/latex/cmap/")
             (base32
              "1hag26l3g9mpmmy1kn7lrnfzzr8k0hpm259qp087smggykvsjc4v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cmap")
    (synopsis "Make PDF files searchable and copyable")
    (description
     "This package embeds CMap tables into PDF files to make search and
copy-and-paste functions work properly.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-cmap texlive-cmap)

(define-public texlive-colorprofiles
  (package
    (name "texlive-colorprofiles")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/colorprofiles/"
                   "tex/generic/colorprofiles/")
             (base32
              "1nxbds0jhn5wvf50iy1a4mpfgk56587kqvs4wxf08ysvqx6xiaxv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/colorprofiles")
    (synopsis "Collection of free ICC profiles")
    (description
     "This package collects ICC profiles that can be used by color profile
aware applications or tools like the @code{pdfx} package, as well as TeX and
LaTeX packages to access them.")
    (license license:lppl1.2+)))        ;per "colorprofiles.sty"

(define-public texlive-colortbl
  (package
    (name "texlive-colortbl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/colortbl/" "source/latex/colortbl/"
                   "tex/latex/colortbl/")
             (base32
              "17hslagzpbi5jq08sjinrc3cv65m8g667mb2zlq89fq5ix9808vx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/colortbl")
    (synopsis "Add colour to LaTeX tables")
    (description
     "The package allows rows and columns to be coloured, and even
individual cells.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-colortbl texlive-colortbl)

(define-public texlive-combofont
  (package
    (name "texlive-combofont")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/combofont/"
                   "tex/lualatex/combofont/")
             (base32
              "05p044znavjjd7cpgjx46i8n6b56rpybhixqs9yaam86nb70ha7n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/combofont")
    (synopsis "Add NFSS-declarations of combo fonts to LuaLaTeX documents")
    (description
     "This highly experimental package can be used to add NFSS-declarations of
combo fonts to LuaLaTeX documents.")
    (license license:lppl1.3c)))

(define-public texlive-cstypo
  (package
    (name "texlive-cstypo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/cstypo/"
                   "tex/lualatex/cstypo/" "tex/luatex/cstypo/")
             (base32
              "07cgcda6jcmkvhp90n4a8g4x98jmzwf4199gp6nh19718v6n15j8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cstypo")
    (synopsis "Czech typography rules enforced through LuaTeX hooks")
    (description
     "This package provides macros that enforce basic Czech typography rules
through Lua hooks available in LuaTeX.")
    (license license:expat)))

(define-public texlive-fancybox
  (package
    (name "texlive-fancybox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fancybox/"
                   "tex/latex/fancybox/")
             (base32
              "0pb1j0a1va8yhrzig7dwrd8jgq39mbcpygl810jhrv8pl473mfmn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fancybox")
    (synopsis "Variants of @code{\\fbox} and other games with boxes")
    (description
     "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
@code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
using box macros and flexible verbatim macros.  You can box mathematics,
floats, center, flushleft, and flushright, lists, and pages.")
    (license license:lppl1.2+)))

(define-deprecated-package texlive-latex-fancybox texlive-fancybox)

(define-public texlive-fancyhdr
  (package
    (name "texlive-fancyhdr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fancyhdr/" "source/latex/fancyhdr/"
                   "tex/latex/fancyhdr/")
             (base32
              "0asx5l8kx1zsvja5arnbspr37hwmmjp01837kfrsy7dsm8wfclgr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fancyhdr")
    (synopsis "Extensive control of page headers and footers in LaTeX2e")
    (description
     "The package provides extensive facilities, both for constructing headers
and footers, and for controlling their use (for example, at times when LaTeX
would automatically change the heading style in use).")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-fancyhdr texlive-fancyhdr)

(define-public texlive-fancyhdr-it
  (package
    (name "texlive-fancyhdr-it")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fancyhdr-it/")
             (base32
              "117826hd9zl15i8qf6d1pz2qz57l68a9nxqldxyk21acc29ifalr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fancyhdr-it")
    (synopsis "Italian translation of @code{fancyhdr} documentation")
    (description
     "This package provides an Italian translation of documentation provided
with the @code{fancyhdr} package.")
    (license license:lppl)))

(define-public texlive-fancyref
  (package
    (name "texlive-fancyref")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fancyref/"
                   "source/latex/fancyref/"
                   "tex/latex/fancyref/")
             (base32
              "0njgl53f5farwbd8xkw8im8id0scf6agbfqcdjkbqlk540vdzwbp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fancyref")
    (synopsis "LaTeX package for fancy cross-referencing")
    (description
     "This package provides fancy cross-referencing support, based on the
package's reference commands (@code{\\fref} and @code{\\Fref}) that recognise
what sort of object is being referenced.")
    (license license:gpl3+)))

(define-public texlive-float
  (package
    (name "texlive-float")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/float/"
                   "source/latex/float/"
                   "tex/latex/float/")
             (base32
              "1rfyvk1n83zsmrrp0x643052nrjb00cj935d2cpm37x4pz649f5d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/float")
    (synopsis "Improved interface for floating objects")
    (description
     "The @code{float} package improves the interface for defining floating
objects such as figures and tables.  It introduces the boxed float, the ruled
float and the plaintop float.  You can define your own floats and improve the
behaviour of the old ones.  The package also provides the @samp{H} float
modifier option of the obsolete @code{here} package.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-float texlive-float)

(define-public texlive-footmisc
  (package
    (name "texlive-footmisc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/footmisc/" "source/latex/footmisc/"
                   "tex/latex/footmisc/")
             (base32
              "1vs69z6hqvx9rxqqr0aqs56wvl0y0102szq954hb9gyqzwj2q225")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/footmisc")
    (synopsis "Range of footnote options")
    (description
     "This is a collection of ways to change the typesetting of footnotes.
The package provides means of changing the layout of the footnotes themselves,
a way to number footnotes per page, to make footnotes disappear in a
\"moving\" argument, and to deal with multiple references to footnotes from
the same place.  The package also has a range of techniques for labelling
footnotes with symbols rather than numbers.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-footmisc texlive-footmisc)

(define-public texlive-footnotehyper
  (package
    (name "texlive-footnotehyper")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/footnotehyper/"
                   "source/latex/footnotehyper/"
                   "tex/latex/footnotehyper/")
             (base32
              "0f8d13zr07bl295rvpagj99s9fn4dgrcjzv1xpjmla3h6xhrv914")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/footnotehyper")
    (synopsis "hyperref aware @file{footnote.sty}")
    (description
     "The @code{footnote} package by Mark Wooding dates back to 1997 and has
not been made @code{hyperref} compatible.  The aim of the present package is
to do that.")
    (license license:lppl1.3c)))

(define-public texlive-letltxmacro
  (package
    (name "texlive-letltxmacro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/letltxmacro/"
                   "source/latex/letltxmacro/"
                   "tex/latex/letltxmacro/")
             (base32
              "16bmwsng9p80jf78sdmib24apwnw3raw306cs1ms50z5s9dsfdby")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/letltxmacro")
    (synopsis "Let assignment for LaTeX macros")
    (description
     "TeX's @code{\\let} assignment does not work for LaTeX macros with
optional arguments or for macros that are defined as robust macros by
@code{\\DeclareRobustCommand}.  This package defines @code{\\LetLtxMacro} that
also takes care of the involved internal macros.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-letltxmacro texlive-letltxmacro)

(define-public texlive-frankenstein
  (package
    (name "texlive-frankenstein")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/frankenstein/"
                   "bibtex/bst/frankenstein/"
                   "doc/latex/frankenstein/"
                   "source/latex/frankenstein/"
                   "tex/latex/frankenstein/")
             (base32
              "1x494vl4acl0bhfshs96ap8j47xk4m4njfincfhg2b0mi7l5mj1i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:modules '((guix build texlive-build-system)
                  (guix build utils)
                  (ice-9 match))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-TEXINPUTS
            ;; The ".ins" files strip comments from ".sty", turning them into
            ;; faster ".stq" (and ".bsq") files.  Unfortunately, the ".ins"
            ;; and the ".sty" files are not located in the same
            ;; directory. This phase extends TEXINPUTS so everyone can see
            ;; each other, including the docstrip utility.
            (lambda* (#:key inputs #:allow-other-keys)
              (setenv "TEXINPUTS"
                      (let ((cwd (getcwd)))
                        (string-append
                         cwd "/tex/latex/frankenstein//:"
                         cwd "/source/latex/frankenstein//:"
                         (string-join
                          (map (match-lambda ((_ . dir) dir)) inputs)
                          "//:"))))))
          (add-before 'install 'install-faster-files
            (lambda _
              ;; Replace ".sty" and ".bst" files with their faster
              ;; counterpart.
              (copy-file "build/achicago.bsq"
                         "bibtex/bst/frankenstein/achicago.bst")
              ;; "build/tex/.../xxx.stq" -> "tex/.../xxx.sty"
              (for-each (lambda (file)
                          (copy-file file
                                     (string-append "tex/latex/frankenstein/"
                                                    (basename file ".stq")
                                                    ".sty")))
                        (find-files "build/tex" "\\.stq$")))))))
    (home-page "https://ctan.org/pkg/frankenstein")
    (synopsis "Collection of LaTeX packages")
    (description
     "Frankenstein is a bundle of LaTeX packages serving various purposes
and a BibTeX bibliography style.  The individual packages are: @code{abbrevs},
@code{achicago}, @code{achicago} bibstyle, @code{attrib}, @code{blkcntrl},
@code{compsci}, @code{dialogue}, @code{lips}, @code{moredefs},
@code{newclude}, @code{slemph} and @code{titles}.")
    ;; README mentions an unspecified version of GNU GPL and points to
    ;; COPYING, which is missing. However, the individual files mention LPPL
    ;; 1.2 or later.
    (license license:lppl1.2+)))

(define-deprecated-package texlive-latex-frankenstein texlive-frankenstein)

(define-public texlive-kantlipsum
  (package
    (name "texlive-kantlipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kantlipsum/"
                   "source/latex/kantlipsum/"
                   "tex/latex/kantlipsum/")
             (base32
              "1bz08i8b7ihzd2qi4v9r9kjl2kr5a3l516lqb36spxyyrlmmwv4p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kantlipsum")
    (synopsis "Generate sentences in Kant's style")
    (description
     "The package spits out sentences in Kantian style; the text is provided
by the Kant generator for Python by Mark Pilgrim, described in the book ``Dive
into Python''.  The package is modelled on @code{lipsum}, and may be used for
similar purposes.")
    (license license:lppl1.3c)))

(define-public texlive-kurdishlipsum
  (package
    (name "texlive-kurdishlipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/kurdishlipsum/"
                   "tex/xelatex/kurdishlipsum/")
             (base32
              "0lpdjqbif0pqsb6pmg8jc8igdf06dzwn3yfxh19mnjfzslcxkcmk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kurdishlipsum")
    (synopsis "Lipsum package for the Kurdish language")
    (description
     "This package provides lipsum-like facilities for the Kurdish language.
The package gives you easy access to the Kurdish poetry and balladry texts of
the Diwany Vafaiy, Ahmedy Xani, Naly, Mahwy,....  The package needs to be run
under XeLaTeX.")
    (license license:lppl)))

(define-public texlive-kurier
  (package
    (name "texlive-kurier")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/kurier/"
                   "fonts/afm/nowacki/kurier/"
                   "fonts/enc/dvips/kurier/"
                   "fonts/map/dvips/kurier/"
                   "fonts/opentype/nowacki/kurier/"
                   "fonts/tfm/nowacki/kurier/"
                   "fonts/type1/nowacki/kurier/"
                   "tex/latex/kurier/"
                   "tex/plain/kurier/")
             (base32
              "0j89iv0yyy33dyyka0w0v5jykl41sdn7plxrrxa91qmxzqvi2y67")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kurier")
    (synopsis "Two-element sans-serif typeface")
    (description
     "Kurier is a two-element sans-serif typeface.  It was designed for
a diploma in typeface design at the Warsaw Academy of Fine Arts under the
supervision of Roman Tomaszewski.  This distribution contains a significantly
extended set of characters covering the following modern alphabets:
latin (including Vietnamese), Cyrillic and Greek as well as a number of
additional symbols (including mathematical symbols).  The fonts are prepared
in Type 1 and OpenType formats.  For use with TeX the following encoding files
have been prepared: T1 (ec), T2 (abc), and OT2--Cyrillic, T5 (Vietnamese),
OT4, QX, texansi and--nonstandard (IL2 for the Czech fonts), as well as
supporting macros and files defining fonts for LaTeX.")
    (license license:gfl1.0)))

(define-public texlive-lipsum
  (package
    (name "texlive-lipsum")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lipsum/" "source/latex/lipsum/"
                   "tex/latex/lipsum/")
             (base32
              "07kcma66p3s68baygzvgcmb7jvwaan7jj6s3hxmx42npcfsp57s3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lipsum")
    (synopsis "Easy access to the Lorem Ipsum dummy text")
    (description
     "This package gives you easy access to the Lorem Ipsum dummy text; an
option is available to separate the paragraphs of the dummy text into
TeX-paragraphs.  All the paragraphs are taken with permission from
@url{http://lipsum.com/}.")
    (license license:lppl1.3+)))

(define-public texlive-listings
  (package
    (name "texlive-listings")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/listings/" "source/latex/listings/"
                   "tex/latex/listings/")
             (base32
              "12db0jnambf3j2c2drnbjz369iwssbbcd7yqjcv0wrzq284lzc0m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    ;; Do not build intermediate "lstdrvrs.ins".
    (arguments (list #:build-targets '(list "listings.ins")))
    (home-page "https://ctan.org/pkg/listings")
    (synopsis "Typeset source code listings using LaTeX")
    (description
     "The package enables the user to typeset programs (programming code)
within LaTeX; the source code is read directly by TeX---no front-end processor
is needed.  Keywords, comments and strings can be typeset using different
styles.  Support for @code{hyperref} is provided.")
    (license license:lppl1.3+)))

(define-public texlive-listingsutf8
  (package
    (name "texlive-listingsutf8")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/listingsutf8/"
                   "source/latex/listingsutf8/"
                   "tex/latex/listingsutf8/")
             (base32
              "152gzkzm7sl3bvggmmfcj1pw74vc40s2kpkbp01fd9i0d0v60wma")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/listingsutf8")
    (synopsis "Allow UTF-8 in listings input")
    (description
     "Package @code{listings} does not support files with multi-byte encodings
such as UTF-8.  In the case of @code{\\lstinputlisting}, a simple workaround
is possible if a one-byte encoding exists that the file can be converted to.
The package requires the e-TeX extensions under pdfTeX (in either PDF or DVI
output mode).")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-listings texlive-listings)

(define-public texlive-jknapltx
  (package
    (name "texlive-jknapltx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/jknapltx/"
                   "tex/latex/jknapltx/")
             (base32
              "0as43yqq123cacxhvp4sbdp4ka3cyp2spmxwayqny0fh5rsk6qaq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jknapltx")
    (synopsis "Miscellaneous packages by Joerg Knappen")
    (description
     "This package provides miscellaneous macros by Joerg Knappen,
including: represent counters in greek; Maxwell's non-commutative division;
@code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
@code{inputenc} definition files that allow verbatim input in the respective
ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
transliterate semitic languages; patches to make (La)TeX formulae embeddable
in SGML; use maths minus in text as appropriate; simple Young tableaux.")
    (license license:gpl3+)))

(define-deprecated-package texlive-latex-jknapltx texlive-jknapltx)
(define-deprecated-package texlive-jknappen texlive-jknapltx)

(define-public texlive-jmn
  (package
    (name "texlive-jmn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/afm/jmn/hans/" "fonts/enc/dvips/jmn/"
                   "fonts/map/dvips/jmn/" "fonts/tfm/jmn/hans/"
                   "fonts/type1/jmn/hans/")
             (base32
              "0iq5ky3llx50smw80lpylv11jmqc51m5yrhlslz3sakmgdqgg1yi")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jmn")
    (synopsis "Special fonts for ConTeXt")
    (description "This ConTeXt module provides special fonts.")
    (license license:bsd-2)))           ;as the whole ConTeXt project

(define-public texlive-kvoptions
  (package
    (name "texlive-kvoptions")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kvoptions/"
                   "source/latex/kvoptions/"
                   "tex/latex/kvoptions/")
             (base32
              "14f19c53s5m067vp25h7yk1f209h1xm352zkhzv6qk5xc0ckkbxm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/kvoptions")
    (synopsis "Key/value format for package options")
    (description
     "This package provides facilities for using key-value format in
package options.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-kvoptions texlive-kvoptions)

(define-public texlive-ekdosis
  (package
    (name "texlive-ekdosis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/ekdosis/"
                   "source/lualatex/ekdosis/"
                   "tex/lualatex/ekdosis/")
             (base32
              "0bzydy6gcmikqsdiaji30a2ycifzaafbg0ccv5lq5an7rv2hajmj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ekdosis")
    (synopsis "Typesetting TEI-xml compliant Critical Editions")
    (description
     "@code{ekdosis} is a LuaLaTeX package designed for multilingual critical
editions.  It can be used to typeset texts and different layers of critical
notes in any direction accepted by LuaTeX. Texts can be arranged in running
paragraphs or on facing pages, in any number of columns which in turn can be
synchronized or not.  In addition to printed texts, @code{ekdosis} can convert
@file{.tex} source files so as to produce TEI XML-compliant critical editions.
Database-driven encoding under LaTeX then allows extraction of texts entered
segment by segment according to various criteria: main edited text, variant
readings, translations or annotated borrowings between texts.")
    (license (list license:gpl3+ license:fdl1.3+))))

(define-public texlive-emoji
  (package
    (name "texlive-emoji")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/emoji/" "tex/latex/emoji/")
             (base32
              "17i2kjb1rlgj2ipg6bkni1n8l1yhhnm1m96ynj1nv8gkmgkfklal")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/emoji")
    (synopsis "Emoji support in (Lua)LaTeX")
    (description
     "This package allows users to typeset emojis in LaTeX documents.  It
requires the LuaHBTeX engine.")
    (license license:lppl1.3c)))

(define-public texlive-emojicite
  (package
    (name "texlive-emojicite")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/emojicite/"
                   "tex/lualatex/emojicite/")
             (base32
              "0wfr4alglwhsp728fp91qxdmc9413c6k9j7hgg0qk3j4w464srbj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/emojicite")
    (synopsis "Add emojis to citations")
    (description "This package adds emojis to citations.")
    (license license:lppl1.3c)))

(define-public texlive-enigma
  (package
    (name "texlive-enigma")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/enigma/enigma/"
                   "scripts/context/lua/third/enigma/mtx-t-enigma.lua/"
                   "tex/context/third/enigma/t-enigma.mkv/"
                   "tex/generic/enigma/"
                   "tex/latex/enigma/"
                   "tex/plain/enigma/")
             (base32
              "1rnp2c903bfgq0gqshaccd1zxcb0zpbk2sh7w3lwynpp0zx8d435")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/enigma")
    (synopsis "Encrypt documents with a three rotor Enigma")
    (description
     "The package provides historical encryption (Enigma cipher) for
LuaTeX-based formats.")
    (license license:bsd-2)))

(define-public texlive-ae
  (package
    (name "texlive-ae")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/ae/" "fonts/tfm/public/ae/"
                   "fonts/vf/public/ae/" "source/fonts/ae/"
                   "tex/latex/ae/")
             (base32
              "1xkzg381y0avdq381r2m990wp27czkdff0qkvsp2n5q62yc0bdsw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ae")
    (synopsis "Virtual fonts for T1 encoded CMR-fonts")
    (description
     "This package provides a set of virtual fonts which emulates T1 coded
fonts using the standard CM fonts.  The package name, AE fonts, supposedly
stands for \"Almost European\".  The main use of the package was to produce
PDF files using Adobe Type 1 versions of the CM fonts instead of bitmapped EC
fonts.  Note that direct substitutes for the bitmapped EC fonts are available,
via the CM-super, Latin Modern and (in a restricted way) CM-LGC font sets.")
    (license license:lppl1.3+)))

(define-public texlive-aeguill
  (package
    (name "texlive-aeguill")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/aeguill/" "tex/latex/aeguill/")
             (base32
              "0dbl2dky8gbax9blj0nvk23y2pwkmyikxnbbn27zivpamwc0j8nc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/aeguill")
    (synopsis "Add several kinds of guillemets to the @code{ae} fonts")
    (description
     "The package enables the user to add guillemets from several
source (Polish cmr, Cyrillic cmr, lasy and ec) to the @code{ae} fonts.  This
was useful when the @code{ae} fonts were used to produce PDF files, since the
additional guillemets exist in fonts available in Adobe Type 1 format.")
    (license license:lppl)))

(define-public texlive-incgraph
  (package
    (name "texlive-incgraph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/incgraph/" "tex/latex/incgraph/")
             (base32
              "18ygl211wpnx433xy4v3jyl7wn9vn0dw23m709xs01kq7pwmsz3i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/incgraph")
    (synopsis "Sophisticated graphics inclusion in a PDF document")
    (description
     "The package provides tools for including graphics at the full size of
the output medium, or for creating pages whose size is that of the graphic
they contain.  A principal use case is documents that require inclusion
of (potentially many) scans or photographs.  Bookmarking is especially
supported.  The tool box has basic macros and a convenience user interface
that wraps @code{\\includegraphics}.")
    (license license:lppl1.3+)))

(define-public texlive-inconsolata
  (package
    (name "texlive-inconsolata")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/inconsolata/"
                   "fonts/enc/dvips/inconsolata/"
                   "fonts/map/dvips/inconsolata/"
                   "fonts/opentype/public/inconsolata/"
                   "fonts/tfm/public/inconsolata/"
                   "fonts/type1/public/inconsolata/"
                   "tex/latex/inconsolata/")
             (base32
              "19lvma52vk7x8d7j4s9ymjwm3w2k08860fh6dkzn76scgpdm4wlb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/inconsolata")
    (synopsis "Monospaced font with support files for use with TeX")
    (description
     "Inconsolata is a monospaced font designed by Raph Levien.  This package
contains the font (in both Adobe Type 1 and OpenType formats) in regular and
bold weights, with additional glyphs and options to control slashed zero,
upright quotes and a shapelier lower-case L, plus metric files for use with
TeX, and LaTeX font definition and other relevant files.")
    (license (list license:lppl1.3+
                   license:silofl1.1
                   license:asl2.0))))

(define-public texlive-innerscript
  (package
    (name "texlive-innerscript")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/innerscript/"
                   "source/lualatex/innerscript/"
                   "tex/lualatex/innerscript/")
             (base32
              "1nq2il8av1169is3kbq761375vk4znb2cc3f8vk9ab3fh5vqkcjv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-format "lualatex"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'skip-documentation-build
            ;; Only extract the ".sty" file.  Documentation build fails with
            ;; "Command \code already defined" error.
            (lambda _
              (substitute* "source/lualatex/innerscript/innerscript.dtx"
                (("\\DocInput\\{innerscript.dtx\\}") "")))))))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-booktabs
                  texlive-etoolbox
                  texlive-hypdoc
                  texlive-infwarerr
                  texlive-kvoptions
                  texlive-microtype
                  texlive-pdftexcmds))))
    (home-page "https://ctan.org/pkg/innerscript")
    (synopsis "Modifies automatic mathematics spacing")
    (description
     "This package modifies two aspects of TeX's automatic interatom
mathematics spacing.  It uses LuaTeX's @code{\\Umath} primitives to make
superscripts and subscripts more closely resemble @code{\\textstyle} and
@code{\\displaystyle} math and to treat @code{\\mathinner} subformulas as
@code{\\mathord}, effectively eliminating this class.")
    (license license:lppl1.3c)))

(define-public texlive-interpreter
  (package
    (name "texlive-interpreter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/interpreter/"
                   "tex/luatex/interpreter/")
             (base32
              "03h6bjhvbl3bfkiyssplivqmn2986asv8b1jvr1ahsh7p04bkk4j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/interpreter")
    (synopsis "Translate input files on the fly")
    (description
     "The package preprocesses input files to a Lua(La)TeX run, on the fly.
The user defines Lua regular expressions to search for patterns and modify
input lines (or entire paragraphs) accordingly, before TeX reads the material.
In this way, documents may be prepared in a non-TeX language (e.g., some
lightweight markup language) and turned into proper TeX for processing.")
    (license license:lppl)))

(define-public texlive-times
  (package
    (name "texlive-times")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/times/"
                   "fonts/afm/adobe/times/"
                   "fonts/afm/urw/times/"
                   "fonts/map/dvips/times/"
                   "fonts/tfm/adobe/times/"
                   "fonts/tfm/urw35vf/times/"
                   "fonts/type1/urw/times/"
                   "fonts/vf/adobe/times/"
                   "fonts/vf/urw35vf/times/"
                   "tex/latex/times/")
             (base32
              "13g41a7vbkvsf7ki9dgl7qm100w382mnlqkcngwgl3axp6s5s8l0")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Times font")
    (description
     "This package provides a drop-in replacement for the Times font from
Adobe's basic set.")
    ;; No license version specified.
    (license license:gpl3+)))

(define-deprecated-package texlive-fonts-adobe-times texlive-times)

(define-public texlive-palatino
  (package
    (name "texlive-palatino")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/palatino/"
                   "fonts/afm/adobe/palatino/"
                   "fonts/afm/urw/palatino/"
                   "fonts/map/dvips/palatino/"
                   "fonts/tfm/adobe/palatino/"
                   "fonts/tfm/urw35vf/palatino/"
                   "fonts/type1/urw/palatino/"
                   "fonts/vf/adobe/palatino/"
                   "fonts/vf/urw35vf/palatino/"
                   "tex/latex/palatino/")
             (base32
              "12jc0av7v99857jigmva47qaxyllhpzsnqis10n0qya2kz44xf22")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Palatino font")
    (description
     "This package provides a drop-in replacement for the Palatino font from
Adobe's basic set.")
    ;; No license version specified.
    (license license:gpl3+)))

(define-deprecated-package texlive-fonts-adobe-palatino texlive-palatino)

(define-public texlive-poltawski
  (package
    (name "texlive-poltawski")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/poltawski/"
                   "fonts/afm/gust/poltawski/"
                   "fonts/enc/dvips/poltawski/"
                   "fonts/map/dvips/poltawski/"
                   "fonts/opentype/gust/poltawski/"
                   "fonts/tfm/gust/poltawski/"
                   "fonts/type1/gust/poltawski/"
                   "tex/latex/poltawski/")
             (base32
              "1cf8vxah8j6nnaq2lhmiy1q3dnq6swprfmizzxd6y67sc60rznzm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/poltawski")
    (synopsis "Antykwa Poltawskiego Family of Fonts")
    (description
     "The package contains the Antykwa Poltawskiego family of fonts in the
PostScript Type 1 and OpenType formats Following the route set out by the
Latin Modern and TeX Gyre projects, the Antykwa Poltawskiego digitisation
project aims at providing a rich collection of diacritical characters in the
attempt to cover as many Latin-based scripts as possible.  To our knowledge,
the repertoire of characters covers all European languages as well as some
other Latin-based alphabets such as Vietnamese and Navajo; at the request of
users, recent extensions (following the enhancement of the Latin Modern
collection) provide glyphs sufficient for typesetting of romanized
transliterations of Arabic and Sanskrit scripts.  The Antykwa Poltawskiego
family consists of 4 weights (light, normal, medium, bold), each having
upright and italic forms and one of 5 design sizes: 6, 8, 10, 12 and 17pt.")
    (license license:gfl1.0)))

(define-public texlive-zapfchan
  (package
    (name "texlive-zapfchan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/zapfchan/"
                   "fonts/afm/adobe/zapfchan/"
                   "fonts/afm/urw/zapfchan/"
                   "fonts/map/dvips/zapfchan/"
                   "fonts/tfm/adobe/zapfchan/"
                   "fonts/tfm/urw35vf/zapfchan/"
                   "fonts/type1/urw/zapfchan/"
                   "fonts/vf/adobe/zapfchan/"
                   "fonts/vf/urw35vf/zapfchan/"
                   "tex/latex/zapfchan/")
             (base32
              "1753lvv2bq29g43s4chc884n742695agvgal0b99gsrvlkyfp8gn")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Zapf Chancery font")
    (description
     "This package provides a drop-in replacement for the Zapf Chancery
font from Adobe's basic set.")
    (license license:gpl3+)))

(define-public texlive-zapfding
  (package
    (name "texlive-zapfding")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/zapfding/"
                   "fonts/afm/adobe/zapfding/"
                   "fonts/afm/urw/zapfding/"
                   "fonts/map/dvips/zapfding/"
                   "fonts/tfm/adobe/zapfding/"
                   "fonts/tfm/urw35vf/zapfding/"
                   "fonts/type1/urw/zapfding/"
                   "tex/latex/zapfding/")
             (base32
              "17mls8wilz9api9ivsbcczpiqp1f39qy8wa6ajssi8zhnc5lq7zn")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Zapfding font")
    (description
     "This package provides a drop-in replacement for the Zapfding font from
Adobe's basic set.")
    ;; No license version specified.
    (license license:gpl3+)))

(define-public texlive-zbmath-review-template
  (package
    (name "texlive-zbmath-review-template")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/zbmath-review-template/"
                   "tex/xelatex/zbmath-review-template/")
             (base32
              "1m5q03vjscla4wmy9fr3kl23pk8zmqw760i89zg62pj4np8vyplj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zbmath-review-template")
    (synopsis "Template for a zbMATH Open review")
    (description
     "This package contains a template for zbMATH Open reviews.  It will show
what your review will look like on zbMATH Open and you can test whether your
LaTeX-Code will compile on our system.")
    (license (list license:gpl3 license:cc-by-sa4.0))))

(define-public texlive-zhmetrics
  (package
    (name "texlive-zhmetrics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/zhmetrics/"
                   "fonts/tfm/zhmetrics/cyberb/"
                   "fonts/tfm/zhmetrics/gbk/"
                   "fonts/tfm/zhmetrics/gbkfs/"
                   "fonts/tfm/zhmetrics/gbkhei/"
                   "fonts/tfm/zhmetrics/gbkkai/"
                   "fonts/tfm/zhmetrics/gbkli/"
                   "fonts/tfm/zhmetrics/gbksong/"
                   "fonts/tfm/zhmetrics/gbkyou/"
                   "fonts/tfm/zhmetrics/unifs/"
                   "fonts/tfm/zhmetrics/unihei/"
                   "fonts/tfm/zhmetrics/unikai/"
                   "fonts/tfm/zhmetrics/unili/"
                   "fonts/tfm/zhmetrics/unisong/"
                   "fonts/tfm/zhmetrics/uniyou/"
                   "source/fonts/zhmetrics/"
                   "tex/generic/zhmetrics/"
                   "tex/latex/zhmetrics/")
             (base32
              "0953rxs3k3vil9aq9v8hacwbnchz73ql8xp0dp0ynpw6v8iabxyg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zhmetrics")
    (synopsis "TFM subfont files for using Chinese fonts in 8-bit TeX")
    (description
     "These are metrics to use existing Chinese TrueType fonts in workflows
that use LaTeX and @command{dvipdfmx}, or pdfLaTeX.  The fonts themselves are
not included in the package.  Six font families are supported: Kai, Song,
Lishu, Fangsong, Youyuan and Hei.  Two encodings (GBK and UTF-8) are
supported.")
    (license license:lppl)))

(define-public texlive-zhmetrics-uptex
  (package
    (name "texlive-zhmetrics-uptex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/zhmetrics-uptex/"
                   "fonts/tfm/public/zhmetrics-uptex/"
                   "fonts/vf/public/zhmetrics-uptex/")
             (base32
              "1598l2k32g8nvxqzbgc6mzsib4v0pmsn9h221r4m1d95vm3n0pvd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zhmetrics-uptex")
    (synopsis "Chinese font metrics for upTeX")
    (description
     "The package contains some Chinese font metrics (JFM, VF, etc) for upTeX
engine, together with a simple DVIPDFMx font mapping of Fandol fonts for
DVIPDFMx.")
    (license license:lppl1.3+)))

(define-public texlive-zhnumber
  (package
    (name "texlive-zhnumber")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/zhnumber/"
                   "source/latex/zhnumber/"
                   "tex/latex/zhnumber/")
             (base32
              "170lwb97ji9zgmmayzxmpawjkzk50g7rwqmwr11w72zfqkc2v9g2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    ;; FIXME: I couldn't find how to build this package from source.
    (arguments
     (list #:phases #~(modify-phases %standard-phases (delete 'build))))
    (home-page "https://ctan.org/pkg/zhnumber")
    (synopsis "Typeset Chinese representations of numbers")
    (description
     "The package provides commands to typeset Chinese representations of
numbers.  The main difference between this package and CJKnumb is that the
commands provided are expandable in the proper way.")
    (license license:lppl1.3c)))

(define-public texlive-zhspacing
  (package
    (name "texlive-zhspacing")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/zhspacing/"
                   "tex/context/third/zhspacing/"
                   "tex/generic/zhspacing/"
                   "tex/xelatex/zhspacing/")
             (base32
              "02hwa7yjwb6wxkkib83mjdbara5zcsixbp5xlawri8n9ah54vxjm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/zhspacing")
    (synopsis "Spacing for mixed CJK-English documents in XeTeX")
    (description
     "The package manages spacing in a CJK document; between consecutive Chinese
letters, spaces are ignored, but a consistent space is inserted between Chinese
text and English (or mathematics).  The package may be used by any document
format under XeTeX.")
    (license license:lppl1.3+)))

(define-public texlive-zref
  (package
    (name "texlive-zref")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/zref/" "source/latex/zref/"
                   "tex/latex/zref/")
             (base32
              "188m3xb2q471mmm54akpdbj65n9sz70n0krapnrbwa8glxjrvlxk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://github.com/ho-tex/zref")
    (synopsis "Reference scheme for LaTeX")
    (description "This package offers a means to remove the limitation, of
only two properties, that is inherent in the way LaTeX's reference system
works.  The package implements an extensible referencing system, where
properties may be defined and used in the course of a document.  It provides
an interface for macro programmers to access the new reference scheme and some
modules that use it.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-fonts-adobe-zapfding texlive-zapfding)

(define-public texlive-rsfs
  (package
    (name "texlive-rsfs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/rsfs/"
                   "fonts/afm/public/rsfs/"
                   "fonts/map/dvips/rsfs/"
                   "fonts/source/public/rsfs/"
                   "fonts/tfm/public/rsfs/"
                   "fonts/type1/public/rsfs/"
                   "tex/plain/rsfs/")
             (base32
              "1sa32wnsj84wbwqji1fb4k9ik99dy5ji7zz4v0xbd7306agyhns5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/rsfs")
    (synopsis "Ralph Smith's Formal Script font")
    (description
     "The fonts provide uppercase formal script letters for use as symbols in
scientific and mathematical typesetting (in contrast to the informal script
fonts such as that used for the calligraphic symbols in the TeX maths symbol
font).  The fonts are provided as Metafont source, and as derived Adobe Type
1 format.  LaTeX support, for using these fonts in mathematics, is available
via one of the packages @code{calrsfs} and @code{mathrsfs}.")
    (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))

(define-deprecated-package texlive-fonts-rsfs texlive-rsfs)

(define-public texlive-es-tex-faq
  (package
    (name "texlive-es-tex-faq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/es-tex-faq/")
             (base32
              "0wp5jx1qs4yp3y4qpwqhpw7rnilw3vb2z5xb4lzwph6zw27jf6sd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/faq-es")
    (synopsis "CervanTeX (Spanish TeX Group) FAQ")
    (description
     "This package provides the SGML source, converted LaTeX version, and
readable copies of the FAQ from the Spanish TeX users group.")
    (license license:lppl)))

(define-public texlive-eskd
  (package
    (name "texlive-eskd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eskd/" "source/latex/eskd/"
                   "tex/latex/eskd/")
             (base32
              "1q83pvycckrmyaiwwg3mcl77jy5wrcy8jy7kz004x7asq2p0a2ls")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eskd")
    (synopsis "Modern Russian typesetting")
    (description
     "The class offers modern Russian text formatting, in accordance with
accepted design standards.  Fonts not (apparently) available on CTAN are
required for use of the class.")
    (license license:lppl)))

(define-public texlive-eskdx
  (package
    (name "texlive-eskdx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eskdx/" "tex/latex/eskdx/")
             (base32
              "07c9gbvgr4455s5sfsdjxbbdllx2lhmb5d1c2sdk7rpkvjh64lv8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eskdx")
    (synopsis "Modern Russian typesetting")
    (description
     "Eskdx is a collection of LaTeX classes and packages to typeset textual
and graphical documents in accordance with Russian (and probably post USSR)
standards for designers.")
    (license license:lppl1.3+)))

(define-public texlive-eso-pic
  (package
    (name "texlive-eso-pic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eso-pic/" "source/latex/eso-pic/"
                   "tex/latex/eso-pic/")
             (base32
              "05bqm4x209wji0q6xk1jrjp0nzqafp44dlq30hlpcagrggjb3d9s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eso-pic")
    (synopsis "Add picture commands (or backgrounds) to every page")
    (description
     "The package adds one or more user commands to LaTeX's @code{shipout}
routine, which may be used to place the output at fixed positions.  The
@code{grid} option may be used to find the correct places.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-eso-pic texlive-eso-pic)

(define-public texlive-eepic
  (package
    (name "texlive-eepic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eepic/"
                   "tex/latex/eepic/")
             (base32
              "16v8j3f8bgww9adddpfzpwd5q9kvak7xnp5kkvkrvhw8vshdspaa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/eepic")
    (synopsis "Extensions to @code{epic} and the LaTeX drawing tools")
    (description
     "This package provides extensions to @code{epic} and the LaTeX picture
drawing environment.  It includes the drawing of lines at any slope, the
drawing of circles in any radii, and the drawing of dotted and dashed lines
much faster with much less TeX memory, and providing several new commands for
drawing ellipses, arcs, splines, and filled circles and ellipses.")
    (license license:public-domain)))

(define-deprecated-package texlive-latex-eepic texlive-eepic)

(define-public texlive-enotez
  (package
    (name "texlive-enotez")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/enotez/" "tex/latex/enotez/")
             (base32
              "0498zr9niylpj9q5ndnj52lb06cj0b424yyq587vqhckxq4l24ik")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/enotez")
    (synopsis "Support for end-notes")
    (description
     "This package allows nested endnotes, supports @code{hyperref} and
provides means for easy customization of the list of notes.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-enotez texlive-enotez)

(define-public texlive-endnotes
  (package
    (name "texlive-endnotes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/endnotes/" "tex/latex/endnotes/")
             (base32
              "1s7j5sg8fbhifng0gfqnghbvalbbh0p7j9v06r660w089364ypwz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/endnotes")
    (synopsis "Place footnotes at the end")
    (description
     "The @code{endnotes} package can be used to accumulate notes (using the
@code{\\endnote} command, which can be used as a replacement for
@code{\\footnote}), and place them at the end of the section, chapter or
document.")
    (license license:lppl1.2+)))

(define-public texlive-endnotesj
  (package
    (name "texlive-endnotesj")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/endnotesj/"
                   "tex/latex/endnotesj/")
             (base32
              "1yv8jzvps79svd4013f6cpm41mh3mx2m64jx7bv01ryqdgjzq2g9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/endnotesj")
    (synopsis "Japanese-style endnotes")
    (description
     "This package provides customized styles for endnotes to be used with
Japanese documents.  It can be used on pLaTeX, upLaTeX, and LuaLaTeX
(LuaTeX-ja).")
    (license license:bsd-3)))

(define-public texlive-enumitem
  (package
    (name "texlive-enumitem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/enumitem/" "tex/latex/enumitem/")
             (base32
              "0qwbyjb4a82qjxrfmz06v3w5vly75id4ix4sw7lz2az68kz080dv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/enumitem")
    (synopsis "Control layout of itemize, enumerate, description")
    (description
     "This package provides user control over the layout of the three basic
list environments: enumerate, itemize and description.  It supersedes both
@code{enumerate} and @code{mdwlist} (providing well-structured replacements
for all their functionality), and in addition provides functions to compute
the layout of labels, and to clone the standard environments, to create new
environments with counters of their own.")
    (license license:expat)))

(define-deprecated-package texlive-latex-enumitem texlive-enumitem)

(define-public texlive-multido
  (package
    (name "texlive-multido")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/multido/"
                   "source/generic/multido/"
                   "tex/generic/multido/" "tex/latex/multido/")
             (base32
              "1vwf2naw5bgs93s2gcmf226f60ws9z6cmw6gi1562fs8vg4mnjsh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/multido")
    (synopsis "Loop facility for Generic TeX")
    (description
     "The package provides the @code{\\multido} command, which was originally
designed for use with PSTricks.  Fixed-point arithmetic is used when working
on the loop variable, so that the package is equally applicable in graphics
applications like PSTricks as it is with the more common integer loops.")
    (license license:lppl)))

(define-public texlive-multirow
  (package
    (name "texlive-multirow")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/multirow/"
                   "source/latex/multirow/"
                   "tex/latex/multirow/")
             (base32
              "18xnxqbkkzblngws1ydmkiwfrf9gvrriqrjpb6g6kmaxciwypqd6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/multirow")
    (synopsis "Create tabular cells spanning multiple rows")
    (description
     "The package has a lot of flexibility, including an option for specifying
an entry at the natural width of its text.  The package is distributed with
the @code{bigdelim} and @code{bigstrut} packages, which can be used to
advantage with @code{\\multirow} cells.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-multirow texlive-multirow)

(define-public texlive-overpic
  (package
    (name "texlive-overpic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/overpic/"
                   "source/latex/overpic/"
                   "tex/latex/overpic/")
             (base32
              "0z6jkn54b4yfk2ia8cxcb5is3qyg64r0na05ixd8xbirrks9ir7w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/overpic")
    (synopsis "Combine LaTeX commands over included graphics")
    (description
     "The @code{overpic} environment is a cross between the LaTeX
@code{picture} environment and the @code{\\includegraphics} command of
@code{graphicx}.  The resulting picture environment has the same dimensions as
the included graphic.  LaTeX commands can be placed on the graphic at defined
positions; a grid for orientation is available.")
    (license license:lppl1.0+)))

(define-deprecated-package texlive-latex-overpic texlive-overpic)

(define-public texlive-parskip
  (package
    (name "texlive-parskip")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/parskip/"
                   "source/latex/parskip/"
                   "tex/latex/parskip/")
             (base32
              "18yygddxv3kblvf4jhzqa8h1js0n8g1bw723r6ss2hlz4lj64kf0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/parskip")
    (synopsis "Layout with zero @code{\\parindent}, non-zero @code{\\parskip}")
    (description
     "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
that is untidy; this package (though it is no substitute for a properly
designed class) helps alleviate this untidiness.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-parskip texlive-parskip)

(define-public texlive-pbox
  (package
    (name "texlive-pbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pbox/"
                   "source/latex/pbox/"
                   "tex/latex/pbox/")
             (base32
              "104x4y22msgxhnlz2x331zq7rw28v129s5ym1jqhsk685izb3hcl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pbox")
    (synopsis "@code{\\parbox} with a variable width")
    (description
     "@code{pbox} defines a @code{\\pbox} command which adjusts the box width
to that of the enclosed text, up to the maximum width given.  The package also
defines some associated length commands.")
    (license license:gpl3+)))

(define-deprecated-package texlive-latex-pbox texlive-pbox)

(define-public texlive-pdfpages
  (package
    (name "texlive-pdfpages")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdfpages/" "source/latex/pdfpages/"
                   "tex/latex/pdfpages/")
             (base32
              "0ihihrrim9fwmgkmrqxmss4wjcv8mv1gr2cpigihlzl6q6iqggjx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-eso-pic texlive-graphics texlive-oberdiek texlive-tools))
    (home-page "https://ctan.org/pkg/pdfpages")
    (synopsis "Include PDF documents in LaTeX")
    (description
     "This package simplifies the inclusion of external multi-page PDF
documents in LaTeX documents.  Pages may be freely selected and it is possible
to put several logical pages onto each sheet of paper.  Furthermore a lot of
hypertext features like hyperlinks and article threads are provided.  The
package supports pdfTeX (pdfLaTeX) and VTeX.  With VTeX it is even possible to
use this package to insert PostScript files, in addition to PDF files.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-pdfpages texlive-pdfpages)

(define-public texlive-stix2-otf
  (package
    (name "texlive-stix2-otf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/stix2-otf/"
                   "fonts/opentype/public/stix2-otf/")
             (base32
              "05xqlg61rkfky34x7mc92203z440kanr7bwpmw1djq2y36ql3p1l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/stix2-otf")
    (synopsis "OpenType Unicode text and maths fonts")
    (description
     "The Scientific and Technical Information eXchange (STIX) fonts are
intended to satisfy the demanding needs of authors, publishers, printers, and
others working in the scientific, medical, and technical fields.  They combine
a comprehensive Unicode-based collection of mathematical symbols and alphabets
with a set of text faces suitable for professional publishing.")
    (license license:silofl1.1)))

(define-public texlive-sidecap
  (package
    (name "texlive-sidecap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sidecap/" "source/latex/sidecap/"
                   "tex/latex/sidecap/")
             (base32
              "1h4ysw90dpvnj0x1j9krx40078kyzzs4ynpjz7y50v9hwrrrynjk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-ragged2e))
    (home-page "https://ctan.org/pkg/sidecap")
    (synopsis "Typeset captions sideways")
    (description
     "The @code{sidecap} package defines environments called @code{SCfigure}
and @code{SCtable} (analogous to @code{figure} and @code{table}) to typeset
captions sideways.  Options include @code{outercaption}, @code{innercaption},
@code{leftcaption} and @code{rightcaption}.")
    (license license:lppl1.0+)))

(define-deprecated-package texlive-latex-sidecap texlive-sidecap)

(define-public texlive-stmaryrd
  (package
    (name "texlive-stmaryrd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/stmaryrd/"
                   "fonts/afm/public/stmaryrd/"
                   "fonts/map/dvips/stmaryrd/"
                   "fonts/source/public/stmaryrd/"
                   "fonts/tfm/public/stmaryrd/"
                   "fonts/type1/public/stmaryrd/"
                   "source/fonts/stmaryrd/"
                   "tex/latex/stmaryrd/")
             (base32
              "0ljrxbf2p301p4cmadf2w0qb5idvgmx4j6y3kq7qg2v8x4maqqj4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-ins
            (lambda _
              (substitute* "source/fonts/stmaryrd/stmaryrd.ins"
                (("^%% LaTeX2e.*") "\\input docstrip\n")
                (("fontdef\\}\\}" line)
                 (string-append line "\n\\endbatchfile"))))))))
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/stmaryrd")
    (synopsis "St Mary Road symbols for theoretical computer science")
    (description
     "The fonts were originally distributed as Metafont sources only, but
Adobe Type 1 versions are also now available.  Macro support is provided for
use under LaTeX; the package supports the @code{only} option (provided by the
@code{somedefs} package) to restrict what is loaded, for those who don't need
the whole font.")
    (license license:lppl)))

(define-deprecated-package texlive-fonts-stmaryrd texlive-stmaryrd)

(define-public texlive-subfig
  (package
    (name "texlive-subfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/subfig/" "source/latex/subfig/"
                   "tex/latex/subfig/")
             (base32
              "0bq1328pb1ak91j7q8n1kh2fncr742lvff7apgf8kkxzxjfg2z9r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/subfig")
    (synopsis "Figures broken into subfigures")
    (description
     "The package provides support for the manipulation and reference of small
or sub figures and tables within a single figure or table environment.  It is
convenient to use this package when your subfigures are to be separately
captioned, referenced, or are to be included in the List-of-Figures.  A new
@code{\\subfigure} command is introduced which can be used inside a figure
environment for each subfigure.  An optional first argument is used as the
caption for that subfigure.")
    (license license:lppl)))

(define-public texlive-subfigure
  (package
    (name "texlive-subfigure")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/subfigure/"
                   "source/latex/subfigure/"
                   "tex/latex/subfigure/")
             (base32
              "1327ygajf6gza5msvhfjjnk6r3sw7vb7rxg23v4gx4dmyxqfqrbi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/subfigure")
    (synopsis "Deprecated: Figures divided into subfigures")
    (description
       "This (deprecated) package provides support for the manipulation and
reference of small, or sub, figures and tables within a single figure or table
environment.  It is convenient to use this package when your subfigures are to
be separately captioned, referenced, or are to be included in the
List-of-Figures.  A new @code{\\subfigure} command is introduced which can be
used inside a figure environment for each subfigure.  An optional first
argument is used as the caption for that subfigure.  The package is now
considered obsolete: it was superseded by @code{subfig}, but users may find
the more recent @code{subcaption} package more satisfactory.")
      (license license:lppl)))

(define-deprecated-package texlive-latex-subfigure texlive-subfigure)

(define-public texlive-tabulary
  (package
    (name "texlive-tabulary")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tabulary/" "source/latex/tabulary/"
                   "tex/latex/tabulary/")
             (base32
              "00afi9r5264rhfy5kg73fk763i7wm6bvzkmrlg7n17fwl6hx0sa1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tabulary")
    (synopsis "Tabular with variable width columns balanced")
    (description
     "The package defines a @code{tabular*}-like environment, @code{tabulary},
taking a \"total width\" argument as well as the column specifications.  The
environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
variable width columns (@code{\\raggedright}, @code{\\centering},
@code{\\raggedleft}, and normally justified).  In contrast to
@code{tabularx}'s @code{X} columns, the width of each column is weighted
according to the natural width of the widest cell in the column.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-tabulary texlive-tabulary)

(define-public texlive-tamethebeast
  (package
    (name "texlive-tamethebeast")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/bibtex/tamethebeast/")
             (base32
              "13shw7hcimckn7pp8pj0cr1zsi1wq6r400x1v6akpmwwjxkw09g5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tamethebeast")
    (synopsis "Manual about bibliographies and especially BibTeX")
    (description
     "This package is an as complete as possible manual about bibliographies
in LaTeX, and thus mainly about BibTeX.")
    (license license:lppl1.3+)))

(define-public texlive-tds
  (package
    (name "texlive-tds")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tds/" "doc/info/tds.info")
             (base32
              "04lhavbayyisxxqfm1vpfq38xx1xwkn136hdnjaa3szky2xyn3yh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tds")
    (synopsis "TeX Directory Structure standard")
    (description
     "This package defines a structure for placement of TeX-related files on
an hierarchical file system, in a way that is well-defined, and is readily
implementable.")
    (license license:fdl1.1+)))

(define-public texlive-tex-font-errors-cheatsheet
  (package
    (name "texlive-tex-font-errors-cheatsheet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tex-font-errors-cheatsheet/")
             (base32
              "0pfd5qphmizhxb2p4gg6809xcx1rlfkwqa6vs4f74457chcwljwn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-font-errors-cheatsheet")
    (synopsis "Cheat sheet outlining the most common TeX font errors")
    (description
     "This is a compact three-pages document highlighting the TeX flow of
integrating fonts, and explains how some of the most common font-related error
messages occur.  Also, hints are given on how to address those.")
    (license license:lppl)))

(define-public texlive-tex-nutshell
  (package
    (name "texlive-tex-nutshell")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/tex-nutshell/")
             (base32
              "1pc9hx4fzk0k6lwab6galf7gxm55x4z250dymsmbz4fan76xk51x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-nutshell")
    (synopsis "Short document about TeX principles")
    (description
     "This document is meant for users who are looking for information about
the basics of TeX.  Its main goal is its brevity.  The pure TeX features are
described, no features provided by macro extensions.  Only the last section
gives a summary of plain TeX macros.")
    (license license:public-domain)))

(define-public texlive-tex-overview
  (package
    (name "texlive-tex-overview")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tex-overview/")
             (base32
              "1agfya9rwvyjvip0alvibimz75jivpf19hp4jvlv7z0n9m26m9jd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-overview")
    (synopsis "Overview of the development of TeX")
    (description
     "The document gives a short overview of TeX and its children, as well as
the macro packages LaTeX and ConTeXt.")
    (license license:lppl1.3+)))

(define-public texlive-tex-refs
  (package
    (name "texlive-tex-refs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tex-refs/")
             (base32
              "1w7hcd3qsdhmb2siakjg2hm3h6kxa90ncsaif9spr4xkxs03ib6l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-references")
    (synopsis "References for TeX and Friends")
    (description
     "This is an ongoing project with the aim of providing a help file for
LaTeX (and its friends like ConTeXt, MetaPost, Metafont, etc.) using
DocBook/XML source format.")
    (license license:fdl1.2+)))

(define-public texlive-tex-vpat
  (package
    (name "texlive-tex-vpat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tex-vpat/")
             (base32
              "16nfvhzzg46vk6pqli6spxq9y9r0manqd5b7b4k6r9lssdqxf8ld")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tex-vpat")
    (synopsis "TeX accessibility conformance report")
    (description
     "This package provides the TeX accessibility conformance report based on
ITI VPAT(R) guidelines.")
    (license license:cc-by3.0)))

(define-public texlive-texbytopic
  (package
    (name "texlive-texbytopic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/texbytopic/")
             (base32
              "0pnh1hsd6k434c8i1xdjq3ywrwylmryrsl86d6h7i1cnmzz4pwlx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texbytopic")
    (synopsis "@emph{TeX by Topic} book")
    (description
     "@emph{TeX by Topic} is a book originally published by Addison-Wesley.
It describes itself as ``a TeXnician's reference'', and covers the way
TeX (the engine) works in as much detail as most ordinary TeX programmers will
ever need to know.")
    (license license:fdl1.3+)))

(define-public texlive-texonly
  (package
    (name "texlive-texonly")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/plain/texonly/")
             (base32
              "0h40f8hj03ha0ilpj2fx5kzzvdv0yplmr4528s2rmmy62l9kgdkd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texonly")
    (synopsis "Sample document in Plain TeX")
    (description
     "This package provides a file written with TeX, not using any packages,
to be compiled with TeX or pdfTeX only, not with LaTeX and al.")
    (license license:lppl1.3c)))

(define-public texlive-threeparttable
  (package
    (name "texlive-threeparttable")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/threeparttable/"
                   "tex/latex/threeparttable/")
             (base32
              "05i50k1y736m52903nz4kf2xl23w6y7rrzyacs4kgd1w6kmjm6f7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/threeparttable")
    (synopsis "Tables with captions and notes all the same width")
    (description
     "This package facilitates tables with titles (captions) and notes.  The
title and notes are given a width equal to the body of the table (a
@code{tabular} environment).  By itself, a @code{threeparttable} does not
float, but you can put it in a @code{table} or a @code{table*} or some other
environment.")
    (license (license:fsf-free "file://threeparttable.sty"))))

(define-public texlive-thumbpdf
  (package
    (name "texlive-thumbpdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/thumbpdf/"
                   "doc/man/man1/thumbpdf.1"
                   "doc/man/man1/thumbpdf.man1.pdf"
                   "scripts/thumbpdf/" "tex/generic/thumbpdf/")
             (base32
              "0ya18440rpkav0z1zddzii9jh2swybicj87413l5iin2acrssw42")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "thumbpdf.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/thumbpdf")
    (synopsis "Thumbnails for pdfTeX and dvips/ps2pdf")
    (description
     "This package provides a Perl script that provides support for thumbnails
in pdfTeX and dvips/ps2pdf.  The script uses Ghostscript to generate the
thumbnails which get represented in a TeX readable file that is read by the
package @code{thumbpdf.sty} to automatically include the thumbnails.  This
arrangement works with both plain TeX and LaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-titlepages
  (package
    (name "texlive-titlepages")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/titlepages/")
             (base32
              "17ib7rpb2dhb2m724x66fdzddv8cqd808wxy5kkvx0vb3rl27hyh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/titlepages")
    (synopsis "Sample titlepages, and how to code them")
    (description
     "The document provides examples of over two dozen title page designs
based on a range of published books and theses, together with the LaTeX code
used to create them.")
    (license license:lppl)))

(define-public texlive-tlc2
  (package
    (name "texlive-tlc2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tlc2/")
             (base32
              "1ysb233rjb8gpl9s35qql1dny5rj6fn8ssy2dqdqsn5xj9pdasyy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tlc2-examples")
    (synopsis "Examples from @emph{The LaTeX Companion}, second edition")
    (description
     "This package provides the source of the examples printed in @emph{The
LaTeX Companion} book, together with necessary supporting files.")
    (license license:lppl)))

(define-public texlive-tlc3-examples
  (package
    (name "texlive-tlc3-examples")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tlc3-examples/")
             (base32
              "01ny6r3ycji0af0cdywn2fmxd0fyz3y7afdnn983a5gy1j9rza7v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tlc3-examples")
    (synopsis "All examples from @emph{The LaTeX Companion}, third edition")
    (description
     "This package provides the PDFsand sources for all examples from
@emph{The LaTeX Companion}, third edition (Parts I+II), together with
necessary supporting files.")
    (license license:lppl1.3c)))

(define-public texlive-tlmgr-intro-zh-cn
  (package
    (name "texlive-tlmgr-intro-zh-cn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/tlmgr-intro-zh-cn/")
             (base32
              "127fad3aq66rnn4jkccyw7qc8pdcwapyjb6lj9kn49nqcy3jm6nk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tlmgr-intro-zh-cn")
    (synopsis "Short tutorial on using @command{tlmgr} in Chinese")
    (description
     "This is a Chinese translation of the @command{tlmgr} documentation.  It
introduces some of the common usage of the TeX Live Manager.  The original can
be found in the @code{tlmgrbasics} package.")
    (license license:gpl3+)))

(define-public texlive-tlmgrbasics
  (package
    (name "texlive-tlmgrbasics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/tlmgrbasics/")
             (base32
              "0zychfw7zvx7pj8zp89zg0rjablm8p6ja2nibbdbgvan0gfc1m97")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tlmgrbasics")
    (synopsis "Simplified documentation for @command{tlmgr}")
    (description
     "This package provides simplified documentation for @command{tlmgr}, the
TeX Live manager.  It describes the most commonly-used actions and options in
a convenient format.")
    (license license:gpl2+)))

(define-public texlive-txfonts
  (package
    (name "texlive-txfonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/txfonts/"
                   "fonts/afm/public/txfonts/"
                   "fonts/enc/dvips/txfonts/"
                   "fonts/map/dvips/txfonts/"
                   "fonts/tfm/public/txfonts/"
                   "fonts/type1/public/txfonts/"
                   "fonts/vf/public/txfonts/"
                   "tex/latex/txfonts/")
             (base32
              "017zjas5y1zlyq0iy4x6mv1qbz23xcy3y5xs0crj6zdnfvnccqgp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/txfonts")
    (synopsis "Times-like fonts in support of mathematics")
    (description
     "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
providing all the symbols of the Computer Modern and AMS fonts, including all
the Greek capital letters from CMR; and additional maths fonts of various
other symbols.

The set is complemented by a sans-serif set of text fonts, based on
Helvetica/NimbusSanL, and a monospace set.

All the fonts are in Type 1 format (AFM and PFB files), and are supported by
TeX metrics (VF and TFM files) and macros for use with LaTeX.")
    ;; Any version of the GPL with font exception.
    (license license:gpl3+)))

(define-deprecated-package texlive-fonts-txfonts texlive-txfonts)

(define-public texlive-typehtml
  (package
    (name "texlive-typehtml")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/typehtml/"
                   "source/latex/typehtml/"
                   "tex/latex/typehtml/")
             (base32
              "1nmdh2mhkzdqs5y4k95g9il6vz4rgndzhkikiilknkwg1a04rrzi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/typehtml")
    (synopsis "Typeset HTML directly from LaTeX")
    (description
     "This package typesets HTML directly from LaTeX.  It can handle almost
all of HTML2, and most of the math fragment of the draft HTML3.")
    (license license:lppl)))

(define-public texlive-iwona
  (package
    (name "texlive-iwona")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/iwona/"
                   "fonts/afm/nowacki/iwona/"
                   "fonts/enc/dvips/iwona/"
                   "fonts/map/dvips/iwona/"
                   "fonts/opentype/nowacki/iwona/"
                   "fonts/tfm/nowacki/iwona/"
                   "fonts/type1/nowacki/iwona/"
                   "tex/latex/iwona/"
                   "tex/plain/iwona/")
             (base32
              "1gk80zj711rcnk06cvszic7lpm06nj47kbypg13rpijdzfsvmi8m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/iwona")
    (synopsis "Sans-serif typeface for TeX")
    (description "Iwona is a two-element sans-serif typeface.  It was created
as an alternative version of the Kurier typeface, which was designed in 1975
for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
supervision of Roman Tomaszewski.  Kurier was designed for linotype
typesetting of newspapers and similar periodicals.  The Iwona fonts are an
alternative version of the Kurier fonts.  The difference lies in the absence
of ink traps which typify the Kurier font.")
    (license license:gfl1.0)))

(define-deprecated-package texlive-fonts-iwona texlive-iwona)

(define-public texlive-jadetex
  (package
    (name "texlive-jadetex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/jadetex.1"
                   "doc/man/man1/jadetex.man1.pdf"
                   "doc/man/man1/pdfjadetex.1"
                   "doc/man/man1/pdfjadetex.man1.pdf"
                   "doc/otherformats/jadetex/base/"
                   "source/jadetex/base/"
                   "tex/jadetex/base/")
             (base32
              "0acan496ixymwjvygcd5rx5pmz4p5vffzkmazdryw1kpilhiixcx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:create-formats #~(list "jadetex" "pdfjadetex")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'install 'install-wrappers
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((pdftex (search-input-file inputs "/bin/pdftex"))
                    (web2c (string-append #$output "/share/texmf-dist/web2c")))
                (mkdir-p (string-append #$output "/bin"))
                (symlink pdftex
                         (string-append #$output "/bin/jadetex"))
                (symlink pdftex
                         (string-append #$output "/bin/pdfjadetex"))))))))
    (propagated-inputs
     (list texlive-amsfonts
           texlive-atbegshi
           texlive-atveryend
           texlive-auxhook
           texlive-babel
           texlive-bigintcalc
           texlive-bitset
           texlive-cm
           texlive-colortbl
           texlive-cyrillic
           texlive-ec
           texlive-etexcmds
           texlive-everyshi
           texlive-fancyhdr
           texlive-firstaid
           texlive-graphics
           texlive-graphics-cfg
           texlive-graphics-def
           texlive-hycolor
           texlive-hyperref
           texlive-hyphen-complete
           texlive-iftex
           texlive-infwarerr
           texlive-intcalc
           texlive-kvdefinekeys
           texlive-kvoptions
           texlive-kvsetkeys
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-latexconfig
           texlive-letltxmacro
           texlive-ltxcmds
           texlive-marvosym
           texlive-passivetex
           texlive-pdfescape
           texlive-pdftex
           texlive-pdftexcmds
           texlive-psnfss
           texlive-rerunfilecheck
           texlive-stmaryrd
           texlive-symbol
           texlive-tex
           texlive-tex-ini-files
           texlive-tipa
           texlive-tools
           texlive-ulem
           texlive-unicode-data
           texlive-uniquecounter
           texlive-url
           texlive-wasysym
           texlive-zapfding))
    (home-page "https://www.ctan.org/pkg/jadetex/")
    (synopsis "TeX macros to produce TeX output using OpenJade")
    (description "JadeTeX is a companion package to the OpenJade DSSSL
processor.  OpenJade applies a DSSSL stylesheet to an SGML or XML document.
The output of this process can be in a number of forms, including a set of
high level LaTeX macros.  It is the task of the JadeTeX package to transform
these macros into DVI/PostScript (using the @command{jadetex} command) or
Portable Document Format (PDF) form (using the @command{pdfjadetex}
command).")
    ;; The license text is found at the header of the jadetex.dtx file.
    (license license:expat)))

(define-public texlive-japanese-mathformulas
  (package
    (name "texlive-japanese-mathformulas")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/japanese-mathformulas/"
                   "tex/lualatex/japanese-mathformulas/")
             (base32
              "0a5kqgkl89m5yc9zgkhlz44dvvi52jfaja3lwcf7g7q039k2h6fg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/japanese-mathformulas")
    (synopsis "Compiling basic math formulas in Japanese using LuaLaTeX")
    (description
     "This is a style file for compiling basic maths formulas in Japanese
using LuaLaTeX.  @code{\\NewDocumentCommand} allows you to specify whether the
formula should be used within a sentence or on a new line.")
    (license license:lppl1.3c)))

(define-public texlive-japanese-otf
  (package
    (name "texlive-japanese-otf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/japanese-otf/"
                   "fonts/ofm/public/japanese-otf/"
                   "fonts/tfm/public/japanese-otf/"
                   "fonts/vf/public/japanese-otf/"
                   "source/fonts/japanese-otf/"
                   "tex/platex/japanese-otf/")
             (base32
              "125z1fi13dnksngsc442n6fcmicv7hhrxrq8anzxax4ic3dqfvha")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/japanese-otf")
    (synopsis "Advanced font selection for platex and its friends")
    (description
     "The package contains pLaTeX support files and virtual fonts for
supporting a wide variety of fonts in LaTeX using the pTeX engine.")
    (license license:bsd-3)))

(define-public texlive-jieeetran
  (package
    (name "texlive-jieeetran")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/jieeetran/"
                   "doc/bibtex/jieeetran/")
             (base32
              "122g618j9wli9amx9c82whjp81i5cpjz1mj4pnmyfa8x5mfdh6dp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jieeetran")
    (synopsis
     "UnofficiaL BibTeX style for citing Japanese articles in IEEE format")
    (description
     "This package provides an unofficial BibTeX style for authors trying to
cite Japanese articles in the Institute of Electrical and Electronics
Engineers (IEEE) format.")
    (license license:expat)))

(define-public texlive-jlreq
  (package
    (name "texlive-jlreq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/jlreq/"
                   "fonts/tfm/public/jlreq/"
                   "fonts/vf/public/jlreq/"
                   "source/latex/jlreq/"
                   "tex/latex/jlreq/"
                   "tex/luatex/jlreq/")
             (base32
              "11jyj5mcyd9yxhb7mnm7naaaj26cgdk5iqkwna20109pcc2qy0wz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jlreq")
    (synopsis
     "Japanese document class based on requirements for Japanese text layout")
    (description
     "This package provides a Japanese document class based on requirements
for Japanese text layout.  The class file and the JFM (Japanese font metric)
files for LuaTeX-ja, pLaTeX, or upLaTeX are provided.")
    (license license:bsd-2)))

(define-public texlive-jlreq-deluxe
  (package
    (name "texlive-jlreq-deluxe")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/platex/jlreq-deluxe/"
                   "fonts/tfm/public/jlreq-deluxe/"
                   "fonts/vf/public/jlreq-deluxe/"
                   "tex/platex/jlreq-deluxe/")
             (base32
              "0l80iqgsnhvqisrkhgflwpxs5fqyz2ddv6vp3b17vnxvymyzzvg4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jlreq-deluxe")
    (synopsis "Multi-weight Japanese font support for the @code{jlreq} class")
    (description
     "This package provides multi-weight Japanese font support for the
@code{jlreq} class.")
    (license license:expat)))

(define-public texlive-jpneduenumerate
  (package
    (name "texlive-jpneduenumerate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/jpneduenumerate/"
                   "tex/latex/jpneduenumerate/")
             (base32
              "0ndg4ig5bg9ns2pxcf070c7jyh7d7r3r7c7xg5d99k3qlg4vkd9n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jpneduenumerate")
    (synopsis "Enumerative expressions in Japanese education")
    (description
     "Mathematical equation representation in Japanese education differs
somewhat from the standard LaTeX writing style.  This package introduces
enumerative expressions in Japanese education.")
    (license license:expat)))

(define-public texlive-jpnedumathsymbols
  (package
    (name "texlive-jpnedumathsymbols")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/jpnedumathsymbols/"
                   "tex/latex/jpnedumathsymbols/")
             (base32
              "0ap370bp831xxrq45zllyrbhhxs0yv3qb1l5pkpvgsildfk5rk7m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/jpnedumathsymbols")
    (synopsis "Mathematical equation representation in Japanese education")
    (description
     "Mathematical equation representation in Japanese education differs
somewhat from the standard LaTeX writing style.  This package introduces
mathematical equation representation in Japanese education.")
    (license license:expat)))

(define-public texlive-kanbun
  (package
    (name "texlive-kanbun")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kanbun/" "tex/latex/kanbun/")
             (base32
              "1a922jly8f791r4jbz4097h8js5z29435zphm5i52pvkl6p245wy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kanbun")
    (synopsis "Typeset kanbun-kundoku with support for kanbun annotation")
    (description
     "This package allows users to manually input macros for elements in
a kanbun-kundoku (Han Wen Xun Du) paragraph.  More importantly, it accepts
plain text input in the kanbun annotation form when used with LuaLaTeX, which
allows typesetting kanbun-kundoku paragraphs efficiently.")
    (license license:lppl1.3+)))

(define-public texlive-libertine
  (package
    (name "texlive-libertine")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/libertine/"
                   "fonts/enc/dvips/libertine/"
                   "fonts/map/dvips/libertine/"
                   "fonts/opentype/public/libertine/"
                   "fonts/tfm/public/libertine/"
                   "fonts/type1/public/libertine/"
                   "fonts/vf/public/libertine/"
                   "tex/latex/libertine/")
             (base32
              "04bb0v1fp9adcgx6s4zc0fs5z4f85ihbhbkk9zf5pf0ni3gy70fd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-fontaxes
           texlive-iftex
           texlive-mweights
           texlive-xkeyval))
    (home-page "https://ctan.org/pkg/libertine")
    (synopsis "Use of Linux Libertine and Biolinum fonts with LaTeX")
    (description
     "The package provides the Libertine and Biolinum fonts in both Type 1 and
OTF styles, together with support macros for their use.  Monospaced and
display fonts, and the keyboard set are also included, in OTF style, only.
The @code{mweights} package is used to manage the selection of font weights.")
    (license (list license:gpl2+        ; with font exception
                   license:silofl1.1
                   license:lppl))))

(define-public texlive-librarian
  (package
    (name "texlive-librarian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/librarian/"
                   "tex/generic/librarian/")
             (base32
              "1a40ac9vg2niafg6dd2iv0c5nrxqxz8vhh2awdw756xsd0znb5n0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/librarian")
    (synopsis "Tools to create bibliographies in TeX")
    (description
     "The package extracts information in @file{.bib} files, makes it
available in the current document, and sorts lists of entries according to
that information and the user's specifications.  Citation and bibliography
styles can then be written directly in TeX, without any use of BibTeX.  The
package works with all formats that use plain TeX's basic syntactic sugar; the
distribution includes a third-party file for ConTeXt and a style file for
LaTeX.")
    (license license:lppl)))

(define-public texlive-dejavu
  (package
    (name "texlive-dejavu")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/dejavu/"
                   "fonts/afm/public/dejavu/"
                   "fonts/enc/dvips/dejavu/"
                   "fonts/map/dvips/dejavu/"
                   "fonts/tfm/public/dejavu/"
                   "fonts/truetype/public/dejavu/"
                   "fonts/type1/public/dejavu/"
                   "fonts/vf/public/dejavu/"
                   "tex/latex/dejavu/")
             (base32
              "0y4qf5jl0xncah9nkcaalmy69wwq02n3j895zp71n2p0nfi24aka")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dejavu")
    (synopsis "LaTeX support for the DejaVu fonts")
    (description
     "The package contains LaTeX support for the DejaVu fonts, which are
derived from the Vera fonts but contain more characters and styles.  The fonts
are included in the original TrueType format, and in converted Type 1 format.
The (currently) supported encodings are: OT1, T1, IL2, TS1, T2*, X2, QX, and
LGR.  The package doesn't (currently) support mathematics.")
    (license license:lppl)))

(define-public texlive-titlesec
  (package
    (name "texlive-titlesec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/titlesec/" "tex/latex/titlesec/")
             (base32
              "0331f6f6sv6sfn4dx7qhx2fgnj9lf3hgbqkh603paqpknfmfjyfm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/titlesec")
    (synopsis "Select alternative section titles")
    (description
     "This package provides an interface to sectioning commands for selection
from various title styles, e.g. for marginal titles and to change the font of
all headings with a single command, also providing simple one-step page
styles.  It also includes a package to change the page styles when there are
floats in a page.  You may assign headers/footers to individual floats, too.")
    (license license:expat)))

(define-deprecated-package texlive-latex-titlesec texlive-titlesec)

(define-public texlive-type1cm
  (package
    (name "texlive-type1cm")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/type1cm/" "source/latex/type1cm/"
                   "tex/latex/type1cm/")
             (base32
              "1922af5xvhrh4l8rqwz3bjd1gqvzfkxrfim28rpnvbx4n7jl6sdh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/type1cm")
    (synopsis "Arbitrary size font selection in LaTeX")
    (description
     "LaTeX, by default, restricts the sizes at which you can use its default
computer modern fonts, to a fixed set of discrete sizes (effectively, a set
specified by Knuth).  The @code{type1cm} package removes this restriction;
this is particularly useful when using scalable versions of the @code{cm}
fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
PCTeX, etc.).  Note that the LaTeX distribution now contains a package
@code{fix-cm}, which performs the task of @code{type1cm}, as well as doing the
same job for T1- and TS1-encoded @code{ec} fonts.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-type1cm texlive-type1cm)

(define-public texlive-lh
  (package
    (name "texlive-lh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/lh/"
                   "fonts/source/lh/base/"
                   "fonts/source/lh/lh-XSlav/"
                   "fonts/source/lh/lh-conc/"
                   "fonts/source/lh/lh-lcy/"
                   "fonts/source/lh/lh-ot2/"
                   "fonts/source/lh/lh-t2a/"
                   "fonts/source/lh/lh-t2b/"
                   "fonts/source/lh/lh-t2c/"
                   "fonts/source/lh/lh-t2d/"
                   "fonts/source/lh/lh-x2/"
                   "fonts/source/lh/nont2/"
                   "fonts/source/lh/specific/"
                   "source/fonts/lh/"
                   "source/latex/lh/"
                   "tex/latex/lh/"
                   "tex/plain/lh/")
             (base32
              "0cqwns4zy1847fn3dp8z3wbfpy4dl05cr065nk9k65fmp7wksnjk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-cm texlive-ec texlive-metafont))
    (propagated-inputs (list texlive-ec))
    (home-page "https://ctan.org/pkg/lh")
    (synopsis "Cyrillic fonts that support LaTeX standard encodings")
    (description
     "The LH fonts address the problem of the wide variety of alphabets that
are written with Cyrillic-style characters.  The fonts are the original basis
of the set of T2* and X2 encodings that are now used when LaTeX users need to
write in Cyrillic languages.  Macro support in standard LaTeX encodings is
offered through the latex-cyrillic and t2 bundles, and the package itself
offers support for other (more traditional) encodings.  The fonts, in the
standard T2* and X2 encodings are available in Adobe Type 1 format, in the
CM-Super family of fonts.  The package also offers its own LaTeX support for
OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-lh texlive-lh)

(define-public texlive-marvosym
  (package
    (name "texlive-marvosym")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/marvosym/"
                   "fonts/afm/public/marvosym/"
                   "fonts/map/dvips/marvosym/"
                   "fonts/tfm/public/marvosym/"
                   "fonts/truetype/public/marvosym/"
                   "fonts/type1/public/marvosym/"
                   "source/fonts/marvosym/"
                   "tex/latex/marvosym/")
             (base32
              "16s5ibpw6c9d3vzc82hfn90dg643xlracivikdbr9s43f2ayak41")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/marvosym")
    (synopsis "Martin Vogel's Symbols (marvosym) font")
    (description
     "Martin Vogel's Symbol font (marvosym) contains the Euro currency symbol
as defined by the European commission, along with symbols for structural
engineering; symbols for steel cross-sections; astronomy signs (sun, moon,
planets); the 12 signs of the zodiac; scissor symbols; CE sign and others.
The package contains both the original TrueType font and the derived Type
1 font, together with support files for TeX (LaTeX).")
    (license (list license:lppl          ;for TeX support files
                   license:silofl1.1)))) ;for fonts

(define-public texlive-metapost
  (package
    (name "texlive-metapost")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/dvitomp.1"
                   "doc/man/man1/dvitomp.man1.pdf"
                   "doc/man/man1/mpost.1"
                   "doc/man/man1/mpost.man1.pdf"
                   "doc/metapost/base/"
                   "fonts/afm/metapost/"
                   "fonts/enc/dvips/metapost/"
                   "fonts/map/dvips/metapost/"
                   "fonts/tfm/metapost/"
                   "fonts/type1/metapost/"
                   "metapost/base/"
                   "metapost/config/"
                   "metapost/misc/"
                   "metapost/support/charlib/"
                   "tex/generic/metapost/")
             (base32
              "0i6mjq59n7vll81m7r2k83x0q6xx7cg6qcia46298zqc0b0l3qb0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/metapost")
    (synopsis "Create scalable illustrations")
    (description
     "MetaPost uses a language based on that of Metafont to produce precise
technical illustrations.  Its output is scalable PostScript or SVG, rather
than the bitmaps Metafont creates.")
    (license license:lppl)))

(define-public texlive-acmart
  (package
    (name "texlive-acmart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/acmart/" "doc/latex/acmart/"
                   "source/latex/acmart/" "tex/latex/acmart/")
             (base32
              "0g27q3r7w83347az77d64xbcxzr9rl64a2qq8l0xs6drfpsq0llb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/acmart")
    (synopsis "Class for typesetting publications of ACM")
    (description
     "This package provides a class for typesetting publications of the
Association for Computing Machinery (ACM).")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-acmart texlive-acmart)

(define-public texlive-varwidth
  (package
    (name "texlive-varwidth")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/varwidth/" "tex/latex/varwidth/")
             (base32
              "0jcrv4klcjpl17ml0zyqfvkrq6qwn2imxv8syqs5m6qk0fk7hg6l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/varwidth")
    (synopsis "Variable-width @code{minipage}")
    (description
     "The @code{varwidth} environment is superficially similar to @code{minipage},
but the specified width is just a maximum value -- the box may get a narrower
natural width.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-varwidth texlive-varwidth)

(define-public texlive-wasy
  (package
    (name "texlive-wasy")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/wasy/" "fonts/source/public/wasy/"
                   "fonts/tfm/public/wasy/" "tex/plain/wasy/")
             (base32
              "1swzxgld3lndi5q0q6zkwbw06ndh13fvp04as7zpwyhh646s0hbx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/wasy")
    (synopsis "Waldi symbol fonts")
    (description "This package provides the @code{wasy} (Waldi symbol) fonts,
in the Metafont and Adobe Type 1 formats.  Support under LaTeX is provided by
the @code{wasysym} package.")
    (license license:public-domain)))

(define-public texlive-wasy-type1
  (package
    (name "texlive-wasy-type1")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/wasy-type1/"
                   "fonts/afm/public/wasy-type1/"
                   "fonts/map/dvips/wasy-type1/"
                   "fonts/type1/public/wasy-type1/")
             (base32
              "01xwryijs787ab4ayfsj44ylf72s0zkm49zm0yk4ghs4vck2qvq3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-wasy))
    (home-page "https://ctan.org/pkg/wasy-type1")
    (synopsis "Type 1 versions of @code{wasy} fonts")
    (description
     "This package provides converted (Adobe Type 1) outlines of the
@code{wasy} fonts.")
    (license license:public-domain)))

(define-public texlive-wasysym
  (package
    (name "texlive-wasysym")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/wasysym/" "source/latex/wasysym/"
                   "tex/latex/wasysym/")
             (base32
              "1n0rrrh510hy04a4fkxqh7skwfhp3xiiji78cw3mc65g06h1jyjc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/wasysym")
    (synopsis "LaTeX support for the @code{wasy} fonts")
    (description
     "The @code{wasy} (Waldi Symbol) font by Roland Waldi provides many glyphs
like male and female symbols and astronomical symbols, as well as the complete
@code{lasy} font set and other odds and ends.  The @code{wasysym} package
implements an easy to use interface for these symbols.")
    (license license:lppl1.3c)))

(define-deprecated-package texlive-latex-wasysym texlive-wasysym)

(define-public texlive-willowtreebook
  (package
    (name "texlive-willowtreebook")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/willowtreebook/"
                   "tex/latex/willowtreebook/")
             (base32
              "1rv6pmyl02fpysviz4mvz9az9bgk96p6s7mbi9ykxxp74xzh8jik")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/willowtreebook")
    (synopsis "Easy basic book class, built on @code{memoir}")
    (description
     "The @code{willowtreebook} class is a simple book class, which the author
uses for his lecture notes to be found on his web page Benjamin McKay.  It
actually just selects options for the more sophisticated @code{memoir}
class.")
    (license license:lppl1.3c)))

(define-public texlive-wrapfig
  (package
    (name "texlive-wrapfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/wrapfig/" "tex/latex/wrapfig/")
             (base32
              "0wk1vp0dqsp597xzsqbwj8xk80v7d77qmpjir84n54f920rf9ka9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/wrapfig")
    (synopsis "Produces figures which text can flow around")
    (description
     "This package allows figures or tables to have text wrapped around them.
It does not work in combination with list environments, but can be used in a
@code{parbox} or @code{minipage}, and in two-column format.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-wrapfig texlive-wrapfig)

(define-public texlive-ucharcat
  (package
    (name "texlive-ucharcat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ucharcat/"
                   "source/latex/ucharcat/"
                   "tex/latex/ucharcat/")
             (base32
              "0r6mphnn26053vb4bgw1zjhw7y7xjavii9hnn7607cbscnx5f9di")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ucharcat")
    (synopsis
     "Implementation of the XeTeX @code{\\Ucharcat} command for LuaTeX")
    (description
     "The package implements the @code{\\Ucharcat} command for LuaLaTeX.
@code{\\Ucharcat} is a new primitive in XeTeX, an extension of the existing
@code{\\Uchar} command, that allows the specification of the catcode as well
as character code of the character token being constructed.")
    (license license:lppl)))

(define-public texlive-ucs
  (package
    (name "texlive-ucs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ucs/" "fonts/enc/dvips/ucs/"
                   "source/latex/ucs/" "tex/latex/ucs/")
             (base32
              "1viisfamsf0x984ak53dwznhw0yhb394xv66rbfaml6igizvkj83")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ucs")
    (synopsis "Extended UTF-8 input encoding support for LaTeX")
    (description
     "The bundle provides the @code{ucs} package, and @file{utf8x.def},
together with a large number of support files.  The @file{utf8x.def}
definition file for use with @code{inputenc} covers a wider range of Unicode
characters than does @file{utf8.def} in the LaTeX distribution.  The package
provides facilities for efficient use of its large sets of Unicode characters.
Glyph production may be controlled by various options, which permits use of
non-ASCII characters when coding mathematical formulae.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-ucs texlive-ucs)

(define-public texlive-preview
  (package
    (name "texlive-preview")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/preview/" "source/latex/preview/"
                   "tex/latex/preview/")
             (base32
              "05ixx2il8xajakh1nkpf7qjczc1kvniiimv585b3gkg6fwx92wzb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/preview")
    (synopsis "Extract bits of a LaTeX source for output")
    (description
     "The main purpose of the preview package is the extraction of selected
elements from a LaTeX source, like formulas or graphics, into separate
pages of a DVI file.  A flexible and convenient interface allows it to
specify what commands and constructs should be extracted.  This works
with DVI files postprocessed by either Dvips and Ghostscript or
dvipng, but it also works when you are using PDFTeX for generating PDF
files.")
    (license license:gpl3+)))

(define-deprecated-package texlive-latex-preview texlive-preview)

(define-public texlive-acronym
  (package
    (name "texlive-acronym")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/acronym/" "source/latex/acronym/"
                   "tex/latex/acronym/")
             (base32
              "0p2sws3qy7wv0v6bsy6c5j36n9s1ps7b1z7dmg1370schrjpqnfh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/acronym")
    (synopsis "Expand acronyms at least once")
    (description
     "This package ensures that all acronyms used in the text are spelled out
in full at least once.  It also provides an environment to build a list of
acronyms used.  The package is compatible with PDF bookmarks.  The package
requires the @code{suffix} package, which in turn requires that it runs under
e-TeX.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-acronym texlive-acronym)

(define-public texlive-pdftex
  (package
    (name "texlive-pdftex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pdfetex.1"
                   "doc/man/man1/pdfetex.man1.pdf"
                   "doc/man/man1/pdftex.1"
                   "doc/man/man1/pdftex.man1.pdf"
                   "doc/pdftex/"
                   "fonts/map/dvips/dummy-space/"
                   "fonts/tfm/public/pdftex/"
                   "fonts/type1/public/pdftex/"
                   "scripts/simpdftex/"
                   "tex/generic/config/pdftex-dvi.tex"
                   "tex/generic/pdftex/")
             (base32
              "1fp8w8pkxqcv6n8y0zy2rdclm2hcyx4zv93h0fmqai1yvgcx6yh6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:texlive-latex-bin? #f
           #:link-scripts #~(list "simpdftex")
           #:create-formats #~(list "etex" "pdfetex" "pdftex")
           #:phases
           #~(modify-phases %standard-phases
               (replace 'patch-shell-scripts
                 (lambda _
                   (substitute* "scripts/simpdftex/simpdftex"
                     (("/bin/(cp|date|echo|mv|rm)" _ command)
                      (which command))
                     (("basename|dirname|mkdir|sed" command)
                      (which command))
                     (("(^[ \t]*)(cat|rm)" _ indent command)
                      (string-append indent (which command)))
                     (("(distillerpath=\").*" _ prefix)
                      (string-append prefix
                                     #$(this-package-input "ghostscript")
                                     "/bin\"\n"))))))))
    (inputs (list ghostscript))
    (propagated-inputs
     (list texlive-cm
           texlive-etex
           texlive-hyphen-complete
           texlive-knuth-lib
           texlive-kpathsea
           texlive-plain
           texlive-tex-ini-files))
    (home-page "https://ctan.org/pkg/pdftex")
    (synopsis "TeX extension for direct creation of PDF")
    (description
     "This package is an extension of TeX which can directly generate PDF
documents as well as DVI output.")
    (license license:gpl3+)))

(define-deprecated-package texlive-generic-pdftex texlive-pdftex)

(define texlive-bin-full
  (package/inherit texlive-bin
    (name "texlive-bin-full")
    (arguments
     (substitute-keyword-arguments (package-arguments texlive-bin)
       ((#:configure-flags _)
        #~(let ((kpathsea #$(this-package-input "texlive-libkpathsea")))
            (list "--with-banner-add=/GNU Guix"
                  "--enable-shared"
                  "--disable-native-texlive-build"
                  "--disable-static"
                  "--disable-kpathsea"
                  "--with-system-cairo"
                  "--with-system-freetype2"
                  "--with-system-gd"
                  "--with-system-gmp"
                  "--with-system-graphite2"
                  "--with-system-harfbuzz"
                  "--with-system-icu"
                  "--with-system-libgs"
                  "--with-system-libpaper"
                  "--with-system-libpng"
                  "--with-system-mpfr"
                  "--with-system-pixman"
                  "--with-system-potrace"
                  "--with-system-teckit"
                  "--with-system-zlib"
                  "--with-system-zziplib"
                  ;; Help locating external kpathsea.  For some reason
                  ;; PKG-CONFIG is unable to find it.
                  "--with-system-kpathsea"
                  (format #f "--with-kpathsea-includes=~a/include" kpathsea)
                  (format #f "--with-kpathsea-lib=~a/lib" kpathsea)
                  ;; LuaJIT is not ported to some architectures yet.
                  #$@(if (or (target-ppc64le?)
                             (target-riscv64?))
                         '("--disable-luajittex"
                           "--disable-luajithbtex"
                           "--disable-mfluajit")
                         '()))))
       ((#:phases phases)
        #~(modify-phases #$phases
            (add-after 'install 'symlink-kpathsea-binaries
              (lambda _
                (let ((bin (string-append
                            #$(this-package-input "texlive-libkpathsea")
                            "/bin"))
                      (files
                       '("kpseaccess" "kpsereadlink" "kpsestat" "kpsewhich")))
                  (with-directory-excursion (string-append #$output "/bin")
                    (for-each (lambda (b) (symlink (string-append bin "/" b) b))
                              files)))))
            (add-after 'install 'merge-core-scripts
              (lambda* (#:key inputs native-inputs #:allow-other-keys)
                (let ((texlive-scripts
                       (dirname
                        (dirname
                         (search-input-file (or native-inputs inputs)
                                            "tlpkg/texlive.tlpdb"))))
                      (tlpkg (string-append #$output "/share/tlpkg")))
                  ;; "tlpkg" directory is neither provided by texlive-bin nor
                  ;; by texlive-texmf.
                  (mkdir-p tlpkg)
                  (copy-recursively (string-append texlive-scripts "/tlpkg")
                                    tlpkg)
                  ;; texlive-bin source doesn't provide this Perl script.
                  ;; Yet, it is referenced in "fmtutil.pl" so we need to move
                  ;; it here too.
                  (install-file
                   (string-append texlive-scripts
                                  "/texmf-dist/scripts/texlive/mktexlsr.pl")
                   (string-append #$output
                                  "/share/texmf-dist/scripts/texlive")))))
            (add-after 'merge-core-scripts 'patch-core-scripts
              (lambda _
                (with-directory-excursion
                    (string-append #$output "/share/texmf-dist/scripts/texlive")
                  ;; Make sure that fmtutil can find its Perl modules.
                  (substitute* "fmtutil.pl"
                    (("\\$TEXMFROOT/")
                     (string-append #$output "/share/")))
                  ;; Likewise for updmap.pl.
                  (substitute* "updmap.pl"
                    (("\\$TEXMFROOT/tlpkg")
                     (string-append #$output "/share/tlpkg")))
                  ;; Likewise for the tlmgr.
                  (substitute* "tlmgr.pl"
                    ((".*\\$::installerdir = \\$Master.*" all)
                     (format #f "  $Master = ~s;~%~a"
                             (string-append #$output "/share")
                             all))))))
            (add-after 'patch-core-scripts 'patch-shell-scripts
              (lambda _
                (with-directory-excursion
                    (string-append #$output "/share/texmf-dist/scripts")
                  ;; First patch shell scripts with ".sh" extension.
                  (let* ((scripts (find-files "." "\\.sh$"))
                         (commands '("awk" "basename" "cat" "grep" "mkdir" "rm"
                                     "sed" "sort" "uname"))
                         (command-regexp
                          (format #f "\\b(~a)\\b" (string-join commands "|")))
                         (iso-8859-1-encoded-scripts
                          '("./texlive-extra/rubibtex.sh"
                            "./texlive-extra/rumakeindex.sh")))
                    (define (substitute-commands scripts)
                      (substitute* scripts
                        ((command-regexp dummy command)
                         (which command))))
                    (substitute-commands
                     (lset-difference string= scripts iso-8859-1-encoded-scripts))
                    (with-fluids ((%default-port-encoding "ISO-8859-1"))
                      (substitute-commands iso-8859-1-encoded-scripts)))
                  ;; Then patch scripts without such extension.
                  (let ((dirs (map (compose dirname which)
                                   (list "awk" "cat" "grep" "sed"))))
                    (substitute* (find-files "texlive" "^mktex(mf|pk|tfm)$")
                      (("^version=" m)
                       (format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
                               dirs m)))))))))))
    (native-inputs
     (modify-inputs (package-native-inputs texlive-bin)
       (append (package-source texlive-scripts))))
    (inputs
     (modify-inputs (package-inputs texlive-bin)
       (append texlive-libkpathsea)))
    (propagated-inputs '())))

(define texlive-texmf
  (package
    (name "texlive-texmf")
    (version (package-version texlive-bin))
    (source (origin
              (method url-fetch)
              (uri (string-append "ftp://tug.org/historic/systems/texlive/"
                                  (string-take version 4)
                                  "/texlive-" version "-texmf.tar.xz"))
              (sha256
               (base32
                "0lqjm11pr9vasvivaci3k9xcmdyd08ldnh31zf8avjjs09xcfkac"))))
    (build-system copy-build-system)
    (arguments
     (list
      #:modules '((guix build copy-build-system)
                  (guix build utils)
                  (srfi srfi-1)
                  (srfi srfi-26))
      ;; This package takes 4 GiB, which we can't afford to distribute from
      ;; our servers.
      #:substitutable? #f
      #:install-plan #~'(("texmf-dist/" "share/texmf-dist"))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'install 'texmf-config
            (lambda* (#:key inputs native-inputs  #:allow-other-keys)
              (let* ((share (string-append #$output "/share"))
                     (texmf-dist (string-append share "/texmf-dist"))
                     (web2c (string-append texmf-dist "/web2c"))
                     (fmtutil.cnf (string-append web2c "/fmtutil.cnf"))
                     (texlive-bin
                      #$(this-package-native-input "texlive-bin-full")))
                ;; LuaJIT is not ported to powerpc64* yet.
                (if #$(target-ppc64le?)
                    (substitute* fmtutil.cnf
                      (("^(luajittex|luajithbtex|mfluajit)" m)
                       (string-append "#! " m))))
                ;; Register paths in texmfcnf.lua, needed for context.
                (substitute* (string-append web2c "/texmfcnf.lua")
                  (("selfautodir:") #$output)
                  (("selfautoparent:") (string-append share "/")))
                ;; Set path to TeXLive Perl modules
                (setenv "PERL5LIB"
                        (string-append (getenv "PERL5LIB") ":"
                                       (string-append texlive-bin
                                                      "/share/tlpkg")))
                ;; Configure the texmf-dist tree.
                (setenv "GUIX_TEXMF" texmf-dist)
                (setenv "PATH"
                        (string-append (getenv "PATH") ":" texlive-bin "/bin:"))
                (let ((updmap.cfg (string-append web2c "/updmap.cfg")))
                  (invoke (string-append texlive-bin "/bin/updmap-sys")
                          "--nohash" "--syncwithtrees"
                          (string-append "--cnffile=" updmap.cfg)))
                (invoke (string-append texlive-bin "/bin/fmtutil-sys")
                        "--cnffile" fmtutil.cnf
                        "--all"
                        "--fmtdir" web2c)))))))
    (native-inputs (list texlive-bin-full))
    (inputs (list lua perl python-wrapper ruby tcsh))
    (properties `((max-silent-time . 9600))) ; don't time out while grafting
    (synopsis "TeX Live, a package of the TeX typesetting system")
    (description
     "TeX Live provides a comprehensive TeX document production system.
It includes all the major TeX-related programs, macro packages, and fonts
that are free software, including support for many languages around the
world.

This package contains the complete tree of texmf-dist data.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
    (home-page "https://www.tug.org/texlive/")))

(define-public texlive
  (package
    (name "texlive")
    (version (package-version texlive-bin))
    (source #f)
    (build-system trivial-build-system)
    (arguments
     (list
      #:modules '((guix build utils))
      #:builder
      ;; Build the union of texlive-bin-full and texlive-texmf, but take the
      ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
      #~(begin
          (use-modules (guix build utils))
          (let ((bin #$(this-package-input "texlive-bin-full"))
                (texmf #$(this-package-input "texlive-texmf")))
            (mkdir #$output)
            (with-directory-excursion #$output
              ;; "include/" and "lib/" directories.
              (for-each
               (lambda (name)
                 (symlink (string-append bin "/" name) name))
               '("include" "lib"))
              ;; "bin/" directory.
              (mkdir "bin")
              (with-directory-excursion "bin"
                (for-each
                 (lambda (name) (symlink name (basename name)))
                 (find-files (string-append bin "/bin/") "")))
              ;; "share/info", "share/man", share/texmf-dist/" and
              ;; "share/tlpkg/" directories.
              (mkdir "share")
              (with-directory-excursion "share"
                (for-each
                 (lambda (name)
                   (symlink (string-append bin "/share/" name) name))
                 '("info" "man" "tlpkg"))
                (symlink (string-append texmf "/share/texmf-dist")
                         "texmf-dist"))
              ;; Now everything is in place, generate ls-R file.
              (setenv "PATH"
                      (string-append
                       (getenv "PATH") ":"
                       #$(this-package-input "texlive-bin-full") "/bin"))
              (invoke (string-append bin "/bin/mktexlsr")))))))
    (inputs (list texlive-bin-full texlive-texmf))
    (propagated-inputs (list texlive-libkpathsea))
    (native-search-paths
     (list (search-path-specification
            (variable "TEXMFLOCAL")
            (files '("share/texmf-local")))))
    (synopsis "TeX Live, a package of the TeX typesetting system")
    (description
     "TeX Live provides a comprehensive TeX document production system.
It includes all the major TeX-related programs, macro packages, and fonts that
are free software, including support for many languages around the world.

This package contains the complete TeX Live distribution.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
    (home-page "https://www.tug.org/texlive/")))

(define-public texlive-biber
  (package
    (name "texlive-biber")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/bibtex/biber/" "source/bibtex/biber/")
             (base32
              "0i1hqr9zb7b9d1zjlyg4awa6mkyq6wnrb6z4689j1rg07vnbd7mw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tests? #true
      #:imported-modules `(,@%texlive-build-system-modules
                           (guix build perl-build-system))
      #:modules '((guix build texlive-build-system)
                  ((guix build perl-build-system) #:prefix perl:)
                  (guix build utils))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'unpack-biber-source
            (lambda _
              (mkdir-p "build")
              (with-directory-excursion "build"
                (invoke "tar" "xvf"
                        "../source/bibtex/biber/biblatex-biber.tar.gz"
                        "--strip-components=1"))))
          (add-after 'unpack-biber-source 'build-biber
            (lambda args
              (with-directory-excursion "build"
                (for-each (lambda (phase)
                            (apply (assoc-ref perl:%standard-phases phase) args))
                          '(configure build check install)))))
          (add-after 'install 'wrap-programs
            (lambda _
              (let ((perl5lib (getenv "PERL5LIB")))
                (wrap-program (string-append #$output "/bin/biber")
                  `("PERL5LIB" ":" prefix
                    (,(string-append perl5lib ":"
                                     #$output "/lib/perl5/site_perl"))))))))))
    (native-inputs
     (list perl-config-autoconf
           perl-extutils-libbuilder
           perl-file-which
           perl-module-build
           perl-test-differences))
    (inputs
     (list perl
           perl-autovivification
           perl-class-accessor
           perl-data-dump
           perl-data-compare
           perl-data-uniqid
           perl-datetime-format-builder
           perl-datetime-calendar-julian
           perl-file-slurper
           perl-io-string
           perl-ipc-cmd
           perl-ipc-run3
           perl-list-allutils
           perl-list-moreutils
           perl-mozilla-ca
           perl-regexp-common
           perl-log-log4perl
           perl-parse-recdescent
           perl-unicode-collate
           perl-unicode-normalize
           perl-unicode-linebreak
           perl-encode-eucjpascii
           perl-encode-jis2k
           perl-encode-hanextra
           perl-xml-libxml
           perl-xml-libxml-simple
           perl-xml-libxslt
           perl-xml-writer
           perl-sort-key
           perl-text-csv
           perl-text-csv-xs
           perl-text-roman
           perl-uri
           perl-text-bibtex
           perl-libwww
           perl-lwp-protocol-https
           perl-business-isbn
           perl-business-issn
           perl-business-ismn
           perl-lingua-translit))
    (home-page "https://ctan.org/pkg/biber")
    (synopsis "BibTeX replacement for users of BibLaTeX")
    (description
     "Biber is a BibTeX replacement for users of BibLaTeX.  It supports full
UTF-8, can (re)-encode input and output, supports highly configurable sorting,
dynamic bibliography sets and many other features.")
    (license license:artistic2.0)))

(define-deprecated-package biber texlive-biber)

(define-public rubber
  (package
    (name "rubber")
    (version "1.5.1")
    (source (origin
              (method url-fetch)
              (uri (list (string-append "https://launchpad.net/rubber/trunk/"
                                        version "/+download/rubber-"
                                        version ".tar.gz")
                         (string-append "http://ebeffara.free.fr/pub/rubber-"
                                        version ".tar.gz")))
              (sha256
               (base32
                "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p"))))
    (build-system python-build-system)
    (arguments
     '(#:tests? #f ; no `check' target
       #:phases
       (modify-phases %standard-phases
         (delete 'build)
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             ;; texlive is required to build the PDF documentation; do not
             ;; build it.
             (invoke "python" "setup.py" "build" "--pdf=False" "install"
                     (string-append "--prefix=" (assoc-ref outputs "out"))))))))
    (native-inputs (list texinfo))
    (home-page "https://launchpad.net/rubber")
    (synopsis "Wrapper for LaTeX and friends")
    (description
     "Rubber is a program whose purpose is to handle all tasks related to the
compilation of LaTeX documents.  This includes compiling the document itself,
of course, enough times so that all references are defined, and running BibTeX
to manage bibliographic references.  Automatic execution of dvips to produce
PostScript documents is also included, as well as usage of pdfLaTeX to produce
PDF documents.")
    (license license:gpl2+)))

(define-public texmaker
  (package
    (name "texmaker")
    (version "5.0.4")
    (source (origin
              (method url-fetch)
              (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
                                  version ".tar.bz2"))
              (sha256
               (base32
                "1qnh5g8zkjpjmw2l8spcynpfgs3wpcfcla5ms2kkgvkbdlzspqqx"))))
    (build-system gnu-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         ;; Qt has its own configuration utility.
         (replace 'configure
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (invoke "qmake"
                       (string-append "PREFIX=" out)
                       (string-append "DESKTOPDIR=" out "/share/applications")
                       (string-append "ICONDIR=" out "/share/pixmaps")
                       (string-append "METAINFODIR=" out "/share/metainfo")
                       "texmaker.pro")))))))
    (inputs
     (list poppler-qt5 qtbase-5 qtscript zlib))
    (native-inputs
     (list pkg-config))
    (home-page "https://www.xm1math.net/texmaker/")
    (synopsis "LaTeX editor")
    (description "Texmaker is a program that integrates many tools needed to
develop documents with LaTeX, in a single application.")
    (license license:gpl2+)))

(define-public texstudio
  (package
    (name "texstudio")
    (version "4.5.2")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/texstudio-org/texstudio")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0bzdcsc0273809hx04zqd2famq05q9rpvqcbqhkjqnqp9vxbisig"))))
    (build-system qt-build-system)
    (arguments
     `(#:tests? #f))                    ;tests work only with debug build
    (native-inputs
     (list pkg-config
           poppler-qt5
           qtdeclarative-5
           qtsvg-5
           qttools-5))
    (home-page "https://www.texstudio.org/")
    (synopsis "Feature-packed LaTeX editor")
    (description
     "TeXstudio is an integrated writing environment for creating LaTeX
documents.  It makes writing LaTeX comfortable by providing features such as
syntax-highlighting, an integrated viewer and reference checking.")
    (license license:gpl3)))

(define-public dvisvgm
  (package
    (name "dvisvgm")
    (version "3.0.3")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/mgieseki/dvisvgm")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "11r401yqbw61n1mwsfk5qmwx2c92djwpl0q756qkds5kh25l9ci8"))))
    (native-inputs (list pkg-config
                         autoconf
                         autoconf-archive
                         automake
                         python-wrapper
                         libtool))
    (inputs (list texlive-libkpathsea
                  freetype
                  fontforge
                  clipper
                  ghostscript
                  xxhash
                  google-brotli
                  woff2
                  zlib))
    (build-system gnu-build-system)
    (synopsis "Command-line utility for generating SVG from DVI, EPS and PDF
files")
    (description
     "Dvisvgm converts TeX DVI, EPS and PDF files into an
SVG (Scalable Vector Graphics) image.  It provides full font support including
virtual fonts, font maps and sub-fonts.  The embedded SVG fonts can optionally
be replaced with graphics paths for applications that do not support SVG
fonts.  Dvisvgm supports also colors, emTeX, tpic, papersize, PDF mapfile
and PostScript specials.  A working TeX installation is needed.")
    (home-page "https://dvisvgm.de/")
    (license license:gpl3+)))

(define-public teximpatient
  ;; The homepage seems to be distributing this version which is currently the
  ;; most recent commit
  (let ((commit "e3666abff186832fd9c467ceda3958058f30bac2")
        (revision "0"))
    (package
      (name "teximpatient")
      (version (git-version "2.4" revision commit))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url
                       "https://git.savannah.gnu.org/git/teximpatient.git/")
                      (commit commit)))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "0r30383nmly7w29il6v3vmilnnyrzak0x0qmabjvnpaga9ansjmi"))))
      (build-system gnu-build-system)
      (arguments
       `(#:tests? #f ;there are none
         #:allowed-references ("out")
         #:phases (modify-phases %standard-phases
                    (add-after 'unpack 'fix-build
                      (lambda* (#:key inputs #:allow-other-keys)
                        (chdir "teximpatient")

                        ;; Remove generated files
                        (for-each delete-file
                                  '("book.pdf"
                                    "book.aux"
                                    "book.ccs"
                                    "book.log"
                                    "book.idx"
                                    "config.log"
                                    "config.status"
                                    "configure"
                                    "Makefile"))
                        (delete-file-recursively "autom4te.cache")

                        ;; make build reproducible
                        (substitute* "eplain.tex"
                          (("timestamp.*%")
                           (string-append "timestamp{"
                                          ,version "}"))))))))
      (native-inputs
       (list autoconf
             automake
             (texlive-updmap.cfg
              (list texlive-mflogo-font
                    texlive-palatino
                    texlive-zapfding))))
      (home-page "https://www.gnu.org/software/teximpatient/")
      (synopsis "Book on TeX, plain TeX and Eplain")
      (description
       "@i{TeX for the Impatient} is a ~350 page book on TeX,
plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
and Karl Berry.")
      (license license:fdl1.3+))))

(define-public lyx
  (package
    (name "lyx")
    (version "2.3.7")
    (source (origin
              (method url-fetch)
              ;; XXX: Upstream version is 2.3.7, but they released a suffixed
              ;; tarball.  This can probably be removed after next release.
              (uri (let ((suffix "-1"))
                     (string-append "https://ftp.lyx.org/pub/lyx/stable/"
                                    (version-major+minor version) ".x/"
                                    "lyx-" version suffix ".tar.xz")))
              (sha256
               (base32
                "1vfq30big55038bcymh83xh9dqp9wn0gnw0f6644xcw6zdj8igir"))
              (modules '((guix build utils)))
              (snippet
               '(begin
                  (delete-file-recursively "3rdparty")))))
    (build-system qt-build-system)
    (arguments
     (list #:configure-flags
           #~(list "-DLYX_USE_QT=QT5"
                   "-DLYX_EXTERNAL_BOOST=1"
                   "-DLYX_INSTALL=1"
                   "-DLYX_RELEASE=1"
                   "-DLYX_PROGRAM_SUFFIX=OFF"
                   (string-append "-DLYX_INSTALL_PREFIX=" #$output))
           #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'patch-python
                 (lambda* (#:key inputs #:allow-other-keys)
                   (substitute* '("lib/configure.py"
                                  "src/support/ForkedCalls.cpp"
                                  "src/support/Systemcall.cpp"
                                  "src/support/os.cpp"
                                  "src/support/filetools.cpp")
                     (("\"python ")
                      (string-append "\""
                                     (search-input-file inputs "/bin/python3")
                                     " ")))))
               (add-after 'unpack 'add-missing-test-file
                 (lambda _
                   ;; Create missing file that would cause tests to fail.
                   (with-output-to-file "src/tests/check_layout.cmake"
                     (const #t)))))))
    (inputs
     ;; XXX: Aspell library is properly detected during build, but hunspell
     ;; isn't.  So we use the former here.
     (list aspell
           boost
           libx11
           mythes
           python
           qtbase-5
           qtsvg-5
           zlib))
    (native-inputs
     (list python pkg-config))
    (home-page "https://www.lyx.org/")
    (synopsis "Document preparation system with GUI")
    (description "LyX is a document preparation system.  It excels at letting
you create complex technical and scientific articles with mathematics,
cross-references, bibliographies, indexes, etc.  It is very good for working
with documents of any length in which the usual processing abilities are
required: automatic sectioning and pagination, spell checking and so forth.")
    (license license:gpl2+)))

(define-public texlive-media9
  (package
    (name "texlive-media9")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/media9/" "source/latex/media9/"
                   "tex/latex/media9/")
             (base32
              "1hzwan5y199a6za32h7bn653f2pzd91z9idrq8xdz6fjhns3fcdr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/media9")
    (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
    (description
     "The package provides an interface to embed interactive Flash (SWF) and
3D objects (Adobe U3D & PRC), as well as video and sound files or streams in
the popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
compatibility.  Playback of multimedia files uses the built-in Flash Player of
Adobe Reader and does, therefore, not depend on external plug-ins.  Flash
Player supports the efficient H.264 codec for video compression.

The package is based on the RichMedia Annotation, an Adobe addition to the PDF
specification.  It replaces the now obsolete @code{movie15} package.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-media9 texlive-media9)

(define-public texlive-ocgx2
  (package
    (name "texlive-ocgx2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ocgx2/" "tex/latex/ocgx2/")
             (base32
              "0jpvwy6sp7almdbhxizz22h3jxgfnsl4nirs93p7y1lqdgc4srl4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ocgx2")
    (synopsis "Drop-in replacement for 'ocgx' and 'ocg-p'")
    (description
     "This package serves as a drop-in replacement for the packages
@code{ocgx} by Paul Gaborit and @code{ocg-p} by Werner Moshammer for the
creation of PDF Layers.  It re-implements the functionality of the @code{ocg},
@code{ocgx}, and @code{ocg-p} packages and adds support for all known engines
and back-ends.  It also ensures compatibility with the @code{media9} and
@code{animate} packages.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-ocgx2 texlive-ocgx2)

(define-public texlive-optex
  (package
    (name "texlive-optex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/optex.1"
                   "doc/man/man1/optex.man1.pdf"
                   "doc/optex/base/"
                   "tex/optex/base/"
                   "tex/optex/demo/"
                   "tex/optex/pkg/")
             (base32
              "0bcrj9wrimcd2pxrcfk7x3vkhxzij4422l19a8j4h299lkq3pbx0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:create-formats #~(list "optex")))
    (propagated-inputs
     (list texlive-amsfonts
           texlive-cm
           texlive-ec
           texlive-hyphen-base
           texlive-librarian
           texlive-lm
           texlive-luaotfload
           texlive-luatex
           texlive-rsfs
           texlive-unicode-data))
    (home-page "https://ctan.org/pkg/optex")
    (synopsis "LuaTeX format based on Plain TeX and OPmac")
    (description
     "OpTeX is a LuaTeX format based on Plain TeX macros with power from
OPmac (fonts selection system, colors, external graphics, references,
hyperlinks, ...) with Unicode fonts.")
    (license license:public-domain)))

(define-public texlive-ms
  (package
    (name "texlive-ms")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ms/" "source/latex/ms/"
                   "tex/latex/ms/")
             (base32
              "1cgrpx5mybiirjjdmni8kvqdg37dwfkixq3h9ami0mgxqqqfl2x3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/ms")
    (synopsis "Various LaTeX packages by Martin Schroder")
    (description
     "This package is the remains of a bundle of LaTeX packages by Martin
Schroder; the collection comprises: @code{count1to}, make use of TeX counters;
and @code{multitoc}, typeset the table of contents in multiple columns.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-ms texlive-ms)

(define-public texlive-ncctools
  (package
    (name "texlive-ncctools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ncctools/" "source/latex/ncctools/"
                   "tex/latex/ncctools/")
             (base32
              "1g3fpvrg6kx2ns97ih6iwdk0rcbxlv043x8rdppxdincl2lvbdx5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ncctools")
    (synopsis "A collection of general packages for LaTeX")
    (description
     "The NCCtools bundle contains many packages for general use under LaTeX;
many are also used by NCC LaTeX.  The bundle includes tools for:
@itemize
@item executing commands after a package is loaded;
@item watermarks;
@item counter manipulation;
@item improvements to the @code{description} environment;
@item hyphenation of compound words;
@item new levels of footnotes;
@item space-filling patterns;
@item poor man's Black Board Bold symbols;
@item alignment of the content of a box; use comma as decimal separator;
@item boxes with their own crop marks;
@item page cropmarks;
@item improvements to fancy headers;
@item float styles, mini floats, side floats;
@item manually marked footnotes;
@item extension of amsmath;
@item control of paragraph skip;
@item an envelope to the @code{graphicx} package;
@item dashed and multiple rules;
@item alternative techniques for declarations of sections, captions, and
toc-entries;
@item generalised text-stretching;
@item generation of new theorem-like environments;
@item control of the text area;
@item centered page layouts;
@item un-numbered top-level section.
@end itemize")
    (license license:lppl)))

(define-public texlive-ncntrsbk
  (package
    (name "texlive-ncntrsbk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/ncntrsbk/"
                   "fonts/afm/adobe/ncntrsbk/"
                   "fonts/afm/urw/ncntrsbk/"
                   "fonts/map/dvips/ncntrsbk/"
                   "fonts/tfm/adobe/ncntrsbk/"
                   "fonts/tfm/urw35vf/ncntrsbk/"
                   "fonts/type1/urw/ncntrsbk/"
                   "fonts/vf/adobe/ncntrsbk/"
                   "fonts/vf/urw35vf/ncntrsbk/"
                   "tex/latex/ncntrsbk/")
             (base32
              "0i6a48zbn9lg4pwbw8ya2wjjgppwac816fnbpmahm67kknx4d7ij")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's New Century Schoolbook font")
    (description
     "This package provides a drop-in replacement for the New Century
Schoolbook font from Adobe's basic set.")
    (license license:gpl3+)))

(define-public texlive-numprint
  (package
    (name "texlive-numprint")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/numprint/" "source/latex/numprint/"
                   "tex/latex/numprint/")
             (base32
              "1rqbqj4ffcfxxxxbs100pdslaiimwzgg19mf2qzcmm5snxwrf7zj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/numprint")
    (synopsis "Print numbers with separators and exponent if necessary")
    (description
     "The package numprint prints numbers with a separator every three digits
and converts numbers given as @samp{12345.6e789} to @samp{12\\,345,6\\cdot
10^@{789@}}.  Numbers are printed in the current mode (text or math) in order
to use the correct font.

Many things, including the decimal sign, the thousand separator, as well as
the product sign can be changed by the user.  If an optional argument is given
it is printed upright as unit.  Numbers can be rounded to a given number of
digits.  The package supports an automatic, language-dependent change of the
number format.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-numprint texlive-numprint)

(define-public texlive-needspace
  (package
    (name "texlive-needspace")
    (version (number->string %texlive-revision))
    (source (texlive-origin name version
                            (list "doc/latex/needspace/"
                                  "source/latex/needspace/"
                                  "tex/latex/needspace/")
                            (base32
                             "12hbvv1w6b1k29qjvp72bkpnzsxpvrimzshllwinrxh9rx1mn550")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs (list texlive-filecontents))
    (home-page "https://ctan.org/pkg/needspace")
    (synopsis "Insert pagebreak if not enough space")
    (description
     "This package provides commands to disable pagebreaking within a given
vertical space.  If there is not enough space between the command and the
bottom of the page, a new page will be started.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-needspace texlive-needspace)

(define-public texlive-changepage
  (package
    (name "texlive-changepage")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/changepage/"
                   "source/latex/changepage/"
                   "tex/latex/changepage/")
             (base32
              "0g9zlbqrgxh3p2vys2s84i8v590qi4fbpppp5lkaqc1di8kw60lm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs (list texlive-filecontents))
    (home-page "https://ctan.org/pkg/changepage")
    (synopsis "Margin adjustment and detection of odd/even pages")
    (description
     "The package provides commands to change the page layout in the middle of
a document, and to robustly check for typesetting on odd or even pages.  The
package is an extraction of code from the @code{memoir} class, whose user
interface it shares.  This package will eventually replace the @code{chngpage}
package, which is distributed with the package.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-changepage texlive-changepage)

(define-public texlive-eukdate
  (package
    (name "texlive-eukdate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/eukdate/" "source/latex/eukdate/"
                   "tex/latex/eukdate/")
             (base32
              "1bz32l4500y4sx7ighpcvzfh0z45lzyyxm1dq1knmhdsv46gqaxi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/eukdate")
    (synopsis "UK format dates, with weekday")
    (description
     "The package is used to change the format of @code{\\today}’s date,
including the weekday, e.g., @samp{Saturday, 26 June 2008}, the UK format,
which is preferred in many parts of the world, as distinct from that which is
used in @code{\\maketitle} of the article class, @samp{June 26, 2008}, the US
format.")
    (license license:lppl)))

(define-deprecated-package texlive-latex-eukdate texlive-eukdate)

(define-public texlive-euler
  (package
    (name "texlive-euler")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/euler/" "source/latex/euler/"
                   "tex/latex/euler/")
             (base32
              "0xd4lniaj243jvmlgfan7rp1zx308cfvpdd02nvvqpdnrwc69irk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/euler")
    (synopsis "Use AMS Euler fonts for math")
    (description
     "This package provides a setup for using the AMS Euler family of fonts
for mathematics in LaTeX documents. ``The underlying philosophy of Zapf's
Euler design was to capture the flavour of mathematics as it might be written
by a mathematician with excellent handwriting.'' The @code{euler} package is
based on Knuth's macros for the book Concrete Mathematics'.  The text fonts
for the Concrete book are supported by the @code{beton} package.")
    (license license:lppl)))

(define-public texlive-extsizes
  (package
    (name "texlive-extsizes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/extsizes/" "tex/latex/extsizes/")
             (base32
              "1akxh0x8y1rhmpq8qzqi2bpbm1ffy8x0212jkyib7gm1i1d9ijgl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/extsizes")
    (synopsis "Extend the standard classes' size options")
    (description
     "This package provides classes @code{extarticle}, @code{extreport},
@code{extletter}, @code{extbook} and @code{extproc} which provide for
documents with a base font size from 8-20pt.  There is also a LaTeX package,
@file{extsizes.sty}, which can be used with nonstandard document classes.  But
it cannot be guaranteed to work with any given class.")
    (license license:lppl)))

(define-public texlive-ulem
  (package
    (name "texlive-ulem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/ulem/" "tex/generic/ulem/")
             (base32
              "0wcfnw5h6lsg2ilvkkf7mns8jgcn0n5sh45iznfsb49pfb4mming")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ulem")
    (synopsis "Package for underlining")
    (description
     "The package provides an @code{\\ul} (underline) command which will break
over line ends; this technique may be used to replace @code{\\em} (both in
that form and as the @code{\\emph} command), so as to make output look as if
it comes from a typewriter.  The package also offers double and wavy
underlining, and striking out, and crossing out.")
    (license license:lppl1.3c+)))

(define-public texlive-pdfarticle
  (package
    (name "texlive-pdfarticle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/pdfarticle/"
                   "tex/lualatex/pdfarticle/")
             (base32
              "16cy8n3hws1gm3bsv3h4mwnpvaajiy5sj6hpchy0r9hq28liara4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdfarticle")
    (synopsis "Class for PDF publications")
    (description
     "pdfArticle is simple document class dedicated for creating PDF documents
with LuaLaTeX.")
    (license license:expat)))

(define-public texlive-pdfextra
  (package
    (name "texlive-pdfextra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/optex/pdfextra/" "tex/luatex/pdfextra/"
                   "tex/optex/pdfextra/")
             (base32
              "0vv7vidcvi6c9bg9rdp00d324d3xfyazpwlc7l4vggz1w6n8l96y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdfextra")
    (synopsis "Extra PDF features for (Op)TeX")
    (description
     "This package provides extra PDF features for OpTeX (or in limited form
for plain LuaTeX and LuaLaTeX).  As a minimalistic format, OpTeX does not
support advanced features of the PDF file format in its base.  This third
party package aims to provide them.  As such, it supports insertion of
multimedia (audio, video, 3D), hyperlinks and other actions, triggering
events, transitions, and attachments.")
    (license license:bsd-0)))

(define-public texlive-penlight
  (package
    (name "texlive-penlight")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/penlight/"
                   "tex/luatex/penlight/")
             (base32
              "1jdq8x0rbknlvrlh2wc7q5gd463xhi845ajkkiirz65n23m7wyg6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/penlight")
    (synopsis "Penlight Lua libraries made available to LuaLaTeX users")
    (description
     "This LuaLaTeX package provides a wrapper to use the penlight Lua
libraries with LuaLaTeX, with some extra functionality added.")
    (license license:expat)))

(define-public texlive-pgf
  (package
    (name "texlive-pgf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pgf/"
                   "tex/context/third/pgf/basiclayer/"
                   "tex/context/third/pgf/frontendlayer/"
                   "tex/context/third/pgf/math/"
                   "tex/context/third/pgf/systemlayer/"
                   "tex/context/third/pgf/utilities/"
                   "tex/generic/pgf/"
                   "tex/latex/pgf/basiclayer/"
                   "tex/latex/pgf/compatibility/"
                   "tex/latex/pgf/doc/"
                   "tex/latex/pgf/frontendlayer/"
                   "tex/latex/pgf/math/"
                   "tex/latex/pgf/systemlayer/"
                   "tex/latex/pgf/utilities/"
                   "tex/plain/pgf/basiclayer/"
                   "tex/plain/pgf/frontendlayer/"
                   "tex/plain/pgf/math/"
                   "tex/plain/pgf/systemlayer/"
                   "tex/plain/pgf/utilities/")
             (base32
              "16kdxcyk60i1c8y3i3d0v2076kapg2vs2pd4pbb434w3vjf8jfm5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-atveryend
           texlive-fp
           texlive-graphics
           texlive-ms
           texlive-pdftexcmds
           texlive-xcolor))
    (home-page "https://ctan.org/pkg/pgf")
    (synopsis "Create PostScript and PDF graphics in TeX")
    (description
     "PGF is a macro package for creating graphics.  It is platform- and
format-independent and works together with the most important TeX backend
drivers, including pdfTeX and dvips.  It comes with a user-friendly syntax
layer called TikZ.  Its usage is similar to @code{pstricks} and the standard
@code{picture} environment.  PGF works with plain (pdf-)TeX, (pdf-)LaTeX, and
ConTeXt.  Unlike @code{pstricks}, it can produce either PostScript or PDF
output.")
    ;; The code of the package is dual-license: GPL-2 or LPPL-1.3c+.  The
    ;; documentation is also dual-license: LPPL-1.3c+ or GFDL-1.2.
    (license (list license:gpl2 license:lppl1.3c+ license:fdl1.2+))))

(define-deprecated-package texlive-latex-pgf texlive-pgf)

(define-public texlive-piton
  (package
    (name "texlive-piton")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/piton/"
                   "source/lualatex/piton/"
                   "tex/lualatex/piton/")
             (base32
              "123ir1hnla5klkvb13qw1mkfnpbwk61lxli0851qf33g72c8qc4r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/piton")
    (synopsis "Typeset Python listings with LPEG")
    (description
     "This package uses the Lua library LPEG to typeset and highlight Python
listings.")
    (license license:lppl1.3+)))

(define-public texlive-placeat
  (package
    (name "texlive-placeat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/placeat/" "scripts/placeat/"
                   "source/lualatex/placeat/"
                   "tex/lualatex/placeat/")
             (base32
              "0lwr71sxrs1idy2nqqn2xsi3pmgv0hyfkhhiyir53cix203n18aq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/placeat")
    (synopsis "Absolute content positioning")
    (description
     "The package provides commands so that the user of LuaLaTeX may position
arbitrary content at any position specified by absolute coordinates on the
page.  The package draws a grid on each page of the document, to aid
positioning (the grid may be disabled, for final copy using the command
\\placeatsetup).")
    (license license:lppl1.3+)))

(define-public texlive-plantuml
  (package
    (name "texlive-plantuml")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/plantuml/"
                   "tex/lualatex/plantuml/")
             (base32
              "00ram4dm1n7v9xd50xhvp1jxih4y431sq05snqaxj292ib0yh5b8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/plantuml")
    (synopsis
     "Support for rendering UML diagrams using syntax and tool of PlantUML")
    (description
     "The package provides support for rendering UML diagrams using the syntax
and tools of PlantUML.  The PlantUML syntax is very short and thus enables
quickly specifying UML diagrams.  Using @command{dot}, PlantUML layouts the
diagrams.")
    (license license:lppl1.3c)))

(define-public texlive-pyluatex
  (package
    (name "texlive-pyluatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/pyluatex/"
                   "tex/lualatex/pyluatex/")
             (base32
              "0dwqi0m3qf6s41wpavngq1c4wn8yjfas798r4a53wr20y3ajhqnn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pyluatex")
    (synopsis "Execute Python code on the fly in your LaTeX documents")
    (description
     "PyLuaTeX allows you to execute Python code and to include the resulting
output in your LaTeX documents in a single compilation run.  LaTeX documents
must be compiled with LuaLaTeX for this to work.  PyLuaTeX runs a Python
InteractiveInterpreter (actually several if you use different sessions) in the
background for on-the-fly code execution.  Python code from your LaTeX file is
sent to the background interpreter through a TCP socket.  This approach allows
your Python code to be executed and the output to be integrated in your LaTeX
file in a single compilation run.")
    (license (list license:expat license:lppl1.3c))))

(define-public texlive-pythontex
  (package
    (name "texlive-pythontex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pythontex/" "scripts/pythontex/"
                   "source/latex/pythontex/"
                   "tex/latex/pythontex/")
             (base32
              "161kyk3sg7fnp9wxjmb1c9xbw0az0dxw2izipdyz0378ciqhqjfw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "depythontex.py" "pythontex.py")))
    (inputs (list python))
    (home-page "https://ctan.org/pkg/pythontex")
    (synopsis "Run Python from within a document, typesetting the results")
    (description
     "The package allows you to enter Python code within a LaTeX document,
execute the code, and access its output in the original document.  There is
also support for Bash, JavaScript, Julia, Octave, Perl, R, Raku (Perl 6),
Ruby, Rust, and SageMath.  Code is only executed when it has been modified, or
when it meets user-specified criteria.  Code may be divided into user-defined
sessions, which automatically run in parallel.  Errors and warnings are
synchronized with the LaTeX document, so that they refer to the document's
line numbers.  External dependencies can be tracked, so that code is
re-executed when the data it depends on is modified.  PythonTeX also provides
syntax highlighting for code in LaTeX documents via the Pygments syntax
highlighter.

The package also provides a @command{depythontex} utility.  This creates
a copy of the document in which all Python code has been replaced by its
output.  This is useful for journal submissions, sharing documents, and
conversion to other formats.")
    (license license:lppl1.3+)))

(define-public texlive-koma-script
  (package
    (name "texlive-koma-script")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/koma-script/"
                   "source/latex/koma-script/doc/"
                   "tex/latex/koma-script/")
             (base32
              "192jlijzrqipdi2bxg1562259zxivpzm8clbnpr0fk1rr1nc2lz1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-footmisc))
    (home-page "https://ctan.org/pkg/koma-script")
    (synopsis "Bundle of versatile classes and packages")
    (description
     "The KOMA-Script bundle provides replacements for the article, report,
and book classes with emphasis on typography and versatility.  There is also
a letter class.  The bundle also offers: a package for calculating type areas
in the way laid down by the typographer Jan Tschichold, packages for easily
changing and defining page styles, a package @code{scrdate} for getting not
only the current date but also the name of the day, and a package
@code{scrtime} for getting the current time.  All these packages may be used
not only with KOMA-Script classes but also with the standard classes.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-koma-script texlive-koma-script)

(define-public texlive-koma-script-examples
  (package
    (name "texlive-koma-script-examples")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/koma-script-examples/")
             (base32
              "1s95a3vgjxrn34cpcinkyr1yw2rj8s2973np71yxrwzi9dqdjpn1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/koma-script-examples")
    (synopsis "Examples from the KOMA-Script book")
    (description
     "This package contains some examples from the 6th edition of the book
@emph{KOMA-Script<, Eine Sammlung von Klassen und Paketen fur LaTeX2e} by
Markus Kohm, published by Lehmanns Media.  There are no further descriptions
of these examples.")
    (license license:lppl1.3c)))

(define-public texlive-atbegshi
  (package
    (name "texlive-atbegshi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/atbegshi/" "source/latex/atbegshi/"
                   "tex/generic/atbegshi/")
             (base32
              "0vd90wdjwj5w4g4xka4nms3rgixjw63iwf0hj0v1akcfflwvgn69")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:texlive-latex-bin? #f))
    (native-inputs (list texlive-docstrip texlive-pdftex))
    (home-page "https://ctan.org/pkg/atbegshi")
    (synopsis "Execute commands at @code{\\shipout} time")
    (description
     "This package is a modern reimplementation of package @code{everyshi},
providing various commands to be executed before a @code{\\shipout} command.
It makes use of e-TeX’s facilities if they are available.  The package may
be used either with LaTeX or with plain TeX.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-atbegshi texlive-atbegshi)

(define-public texlive-bigintcalc
  (package
    (name "texlive-bigintcalc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bigintcalc/"
                   "source/latex/bigintcalc/"
                   "tex/generic/bigintcalc/")
             (base32
              "1cyv4mcvx83ab782l6h2f86a63ipm845r7hv1m6f1z2336vy7rc5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bigintcalc")
    (synopsis "Integer calculations on very large numbers")
    (description
     "This package provides expandable arithmetic operations with big integers
that can exceed TeX's number limits.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-bigintcalc texlive-bigintcalc)

(define-public texlive-bitset
  (package
    (name "texlive-bitset")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bitset/" "source/latex/bitset/"
                   "tex/generic/bitset/")
             (base32
              "1q7vk5gr5a4vaa3l20j178cg2q7a99rxdiyxhzpx9a6lfqfkjddz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-bigintcalc))
    (home-page "https://ctan.org/pkg/bitset")
    (synopsis "Handle bit-vector datatype")
    (description
     "This package defines and implements the data type bit set, a vector of
bits.  The size of the vector may grow dynamically.  Individual bits can be
manipulated.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-bitset texlive-bitset)

(define-public texlive-etexcmds
  (package
    (name "texlive-etexcmds")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/etexcmds/" "source/latex/etexcmds/"
                   "tex/generic/etexcmds/")
             (base32
              "13cf1fs5x9d8749b2jgxmgnkrx0r4hwpl389r15kq3ldz9jfl627")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/etexcmds")
    (synopsis "Avoid name clashes with e-TeX commands")
    (description
     "New primitive commands are introduced in e-TeX; sometimes the names
collide with existing macros.  This package solves the name clashes by adding
a prefix to e-TeX’s commands.  For example, ε-TeX’s @code{\\unexpanded} is
provided as @code{\\etex@@unexpanded}.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-etexcmds texlive-etexcmds)

(define-public texlive-etextools
  (package
    (name "texlive-etextools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/etextools/"
                   "source/latex/etextools/"
                   "tex/latex/etextools/")
             (base32
              "0bfcc8g8q5v1nyqmrg8n17hv4k8yvhsplansvriccpmvyx0w9y9d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/etextools")
    (synopsis "e-TeX tools for LaTeX users and package writers")
    (description
     "The package provides many (purely expandable) tools for LaTeX: extensive
list management; purely expandable loops; conversion; addition/deletion;
expansion and group control; tests on tokens, characters and control
sequences; tests on strings; purely expandable macros with options or
modifiers; some purely expandable numerics.")
    (license license:lppl)))

(define-public texlive-gettitlestring
  (package
    (name "texlive-gettitlestring")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gettitlestring/"
                   "source/latex/gettitlestring/"
                   "tex/generic/gettitlestring/")
             (base32
              "1vbvmwrpsvy37gbwdmsqbbsicjiww3i0bh1yqnb75jiya9an0sjb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gettitlestring")
    (synopsis "Clean up title references")
    (description
     "This package provides commands for cleaning up the title string
(such as removing @code{\\label} commands) for packages that typeset such
strings.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-gettitlestring texlive-gettitlestring)

(define-public texlive-infwarerr
  (package
    (name "texlive-infwarerr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/infwarerr/"
                   "source/latex/infwarerr/"
                   "tex/generic/infwarerr/")
             (base32
              "0lpcrpf3d6xfdp68ri22126x57mvmq5dpj9np68ph8p8lhvhqdjd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/infwarerr")
    (synopsis "Complete set of information/warning/error message macros")
    (description
     "This package provides a complete set of macros for information, warning
and error messages.  Under LaTeX, the commands are wrappers for the
corresponding LaTeX commands; under Plain TeX they are available as complete
implementations.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-infwarerr texlive-infwarerr)

(define-public texlive-intcalc
  (package
    (name "texlive-intcalc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/intcalc/" "source/latex/intcalc/"
                   "tex/generic/intcalc/")
             (base32
              "15alwp9cr8wasfajs3p201p7nqml37vly9mpg1j5l6xv95javk7x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/intcalc")
    (synopsis "Expandable arithmetic operations with integers")
    (description
     "This package provides expandable arithmetic operations with integers,
using the e-TeX extension @code{\\numexpr} if it is available.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-intcalc texlive-intcalc)

(define-public texlive-kvdefinekeys
  (package
    (name "texlive-kvdefinekeys")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kvdefinekeys/"
                   "source/latex/kvdefinekeys/"
                   "tex/generic/kvdefinekeys/")
             (base32
              "1026h223ph3nzhs6jqbasa0bzsrdg3zgllfcwwcavfzb5i6p9jdf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kvdefinekeys")
    (synopsis "Define keys for use in the @code{kvsetkeys} package")
    (description
     "This package provides the @code{\\kv@@define@@key} (analogous to
keyval’s @code{\\define@@key}, to define keys for use by @code{kvsetkeys}.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-kvdefinekeys texlive-kvdefinekeys)

(define-public texlive-kvsetkeys
  (package
    (name "texlive-kvsetkeys")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kvsetkeys/"
                   "source/latex/kvsetkeys/"
                   "tex/latex/kvsetkeys/")
             (base32
              "0c4f4sgb3xpxmvphrvzbyqa2vl7sp2j52hb99spmpbqwgj9j61qx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kvsetkeys")
    (synopsis "Key value parser with default handler support")
    (description
     "This package provides @code{\\kvsetkeys}, a variant of @code{\\setkeys}
from the @code{keyval} package.  Users can specify a handler that deals with
unknown options.  Active commas and equal signs may be used, and only one
level of curly braces are removed from the values.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-kvsetkeys texlive-kvsetkeys)

(define-public texlive-listofitems
  (package
    (name "texlive-listofitems")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/listofitems/"
                   "tex/generic/listofitems/")
             (base32
              "0yy0hw3631shf9rrdiyywr7hs7dvrhvz2a2vkzbwalnyrqdwbyh5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/listofitems")
    (synopsis "Grab items in lists using user-specified separation character")
    (description
     "This package is designed to read a list, for which the parsing character
has been selected by the user, and to access any of these items with a simple
interface.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-listofitems texlive-listofitems)

(define-public texlive-ltxcmds
  (package
    (name "texlive-ltxcmds")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/ltxcmds/"
                   "source/generic/ltxcmds/"
                   "tex/generic/ltxcmds/")
             (base32
              "1izcw9jl64iij541183hc156sjwamvxm7q9fkpfnz8sppyg31fkb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ltxcmds")
    (synopsis "Some LaTeX kernel commands for general use")
    (description
     "This package exports some utility macros from the LaTeX kernel into
a separate namespace and also makes them available for other formats such as
plain TeX.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-ltxcmds texlive-ltxcmds)

(define-public texlive-ltxmisc
  (package
    (name "texlive-ltxmisc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/latex/ltxmisc/")
             (base32
              "14llkpla8gpx7q6a53sd8a0a42wgk93fg4mbl6pc0v7v1kjblr5m")))
    (build-system texlive-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'delete-non-free-file
                 ;; This file has a non-commercial license.
                 (lambda _ (delete-file "tex/latex/ltxmisc/vrbexin.sty"))))))
    (home-page "https://ctan.org/pkg/ltxmisc")
    (synopsis "Miscellaneous LaTeX packages")
    (description
     "This package provides miscellaneous LaTeX packages and classes.")
    (license (list license:public-domain ;beletter.cls
                   license:gpl2+         ;bibcheck.sty
                   license:lppl          ;iagproc.cls
                   (license:fsf-free "file:/linsys.sty")
                   license:lppl1.0+)))) ;topcapt.sty

(define-public texlive-pdfescape
  (package
    (name "texlive-pdfescape")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdfescape/"
                   "source/latex/pdfescape/"
                   "tex/generic/pdfescape/")
             (base32
              "16a0rdmpa4wxh6gyf46qwfgyh399rwdind2wc89phqd50ky9b5m4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdfescape")
    (synopsis "Implements pdfTeX's escape features using TeX or e-TeX")
    (description
     "This package implements pdfTeX's escape features (@code{\\pdfescapehex},
@code{\\pdfunescapehex}, @code{\\pdfescapename}, @code{\\pdfescapestring})
using TeX or e-TeX.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-generic-pdfescape texlive-pdfescape)

(define-public texlive-uniquecounter
  (package
    (name "texlive-uniquecounter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/uniquecounter/"
                   "source/latex/uniquecounter/"
                   "tex/generic/uniquecounter/")
             (base32
              "1ll3iwk8x44l3qx1dhna399ngg66vbllivv8i3lwzriwkx22xbf3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/uniquecounter")
    (synopsis "Provides unlimited unique counter")
    (description
     "This package provides a kind of counter that provides unique number values.
Several counters can be created with different names.  The numeric values are
not limited.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-uniquecounter texlive-uniquecounter)

(define-public texlive-readarray
  (package
    (name "texlive-readarray")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/readarray/" "tex/latex/readarray/")
             (base32
              "0iy3m20761mp83g59qpx9l20bg3fvm28l64vq735rcha7yqbhf22")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/readarray")
    (synopsis "Read, store and recall array-formatted data")
    (description
     "This package allows the user to input formatted data into elements of
a 2-D or 3-D array and to recall that data at will by individual cell number.
The data can be but need not be numerical in nature.  It can be, for example,
formatted text.")
    (license license:lppl1.3)))

(define-deprecated-package texlive-latex-readarray texlive-readarray)

(define-public texlive-verbatimbox
  (package
    (name "texlive-verbatimbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/verbatimbox/"
                   "tex/latex/verbatimbox/")
             (base32
              "00n3x075ya3s2qwmcz2vvn8x70pbbgj2cbwz0ifw89jrc4ljisgi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://www.ctan.org/pkg/verbatimbox")
    (synopsis "Deposit verbatim text in a box")
    (description
     "The package provides a @code{verbbox} environment to place its contents
into a globally available box, or into a box specified by the user.  The
global box may then be used in a variety of situations (for example, providing
a replica of the @code{boxedverbatim} environment itself).  A valuable use is
in places where the standard @code{verbatim} environment (which is based on a
@code{trivlist}) may not appear.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-verbatimbox texlive-verbatimbox)

(define-public texlive-verifica
  (package
    (name "texlive-verifica")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/verifica/"
                   "source/latex/verifica/"
                   "tex/latex/verifica/")
             (base32
              "1q7kdx7rywc98sdgycj33v8w3a3rk30qil5nqh9h0kgmc7a91mpc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/verifica")
    (synopsis "Typeset (Italian high school) exercises")
    (description
     "This class provides various environments and commands to produce the
typical exercises contained in a test.  It is mainly intended for Italian high
school teachers, as the style is probably more in line with Italian high
school tests.")
    (license license:lppl1.3+)))

(define-public texlive-exam-zh
  (package
    (name "texlive-exam-zh")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/exam-zh/" "tex/latex/exam-zh/")
             (base32
              "1p0zy0y2c75mq84n3bqbd39hw1phiyfl22q0fzid58v5ngcf0ip1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/exam-zh")
    (synopsis "LaTeX template for Chinese exams")
    (description
     "This package provides a class @file{exam-zh.cls} suitable for Chinese
exams of all types.  It also includes several module packages like
@file{exam-zh-question.sty} and @file{exam-zh-choices.sty}, which can be used
individually.")
    (license license:lppl1.3c)))

(define-public texlive-examplep
  (package
    (name "texlive-examplep")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/examplep/" "tex/latex/examplep/")
             (base32
              "0afbl77i57hxngc3l0czdzmmkhcgh2l4h2dpbg9ax9p9dv8c006n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/examplep")
    (synopsis "Verbatim phrases and listings in LaTeX")
    (description
     "The @code{examplep} package provides sophisticated features for
typesetting verbatim source code listings, including the display of the source
code and its compiled LaTeX or Metapost output side-by-side, with automatic
width detection and enabled page breaks (in the source), without the need for
specifying the source twice.  Special care is taken that section, page and
footnote numbers do not interfere with the main document.  For typesetting
short verbatim phrases, a replacement for the @code{\\verb} command is also
provided in the package, which can be used inside tables and moving arguments
such as footnotes and section titles.")
    ;; No version of the GPL is specified.
    (license license:gpl3+)))

(define-deprecated-package texlive-latex-examplep texlive-examplep)

(define-public texlive-xunicode
  (package
    (name "texlive-xunicode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/xunicode/"
                   "tex/xelatex/xunicode/")
             (base32
              "1d96i8kd2lhbykc3rxy2jjvws404f2vy1cvdcp5bdr6l9m72q1fa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-tipa))
    (home-page "https://ctan.org/pkg/xunicode")
    (synopsis "Generate Unicode characters from accented glyphs")
    (description
     "The package supports XeTeX's (and other putative future similar
engines') need for Unicode characters, in a similar way to what the fontenc
does for 8-bit (and the like) fonts: convert accent-glyph sequence to a single
Unicode character for output.  The package also covers glyphs specified by
packages (such as @code{tipa}) which define many commands for single text
glyphs.")
    (license license:lppl1.3+)))

(define-public texlive-xypic
  (package
    (name "texlive-xypic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/xypic/"
                   "dvips/xypic/"
                   "fonts/afm/public/xypic/"
                   "fonts/enc/dvips/xypic/"
                   "fonts/map/dvips/xypic/"
                   "fonts/source/public/xypic/"
                   "fonts/tfm/public/xypic/"
                   "fonts/type1/public/xypic/"
                   "tex/generic/xypic/")
             (base32
              "09b51bbm189xh7039h5n8nmab5nn2bybhh26qjn08763m80zdhjg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/xypic")
    (synopsis "Flexible diagramming macros")
    (description
     "This package provides a package for typesetting a variety of graphs and
diagrams with TeX.  Xy-pic works with most formats (including LaTeX,
AMS-LaTeX, AMS-TeX, and plain TeX).  The distribution includes Michael Barr's
@code{diag} package, which was previously distributed stand-alone.")
    (license license:gpl3+)))

(define-deprecated-package texlive-fonts-xypic texlive-xypic)

(define-deprecated-package texlive-generic-xypic texlive-xypic)

(define-public texlive-xypic-tut-pt
  (package
    (name "texlive-xypic-tut-pt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/xypic-tut-pt/")
             (base32
              "0d9ivdz5jnhnh3pg8qb2jn7qfxad06hxff65scyhdd6wbsfaizi9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xypic-tut-pt")
    (synopsis "Tutorial for XY-pic, in Portuguese")
    (description "This is a tutorial for XY-pic, in Portuguese.")
    (license license:gpl3+)))

(define-public texlive-bibtex
  (package
    (name "texlive-bibtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/base/"
                   "bibtex/bst/base/"
                   "doc/bibtex/base/"
                   "doc/man/man1/bibtex.1"
                   "doc/man/man1/bibtex.man1.pdf"
                   "tex/generic/bibtex/")
             (base32
              "0iyaxab3wyhy3nw0id892aklpqf17z1cl85v4m3rjy5nmb8darn9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-kpathsea))
    (home-page "https://ctan.org/pkg/bibtex")
    (synopsis "Process bibliographies for LaTeX")
    (description
     "BibTeX allows the user to store his citation data in generic form, while
printing citations in a document in the form specified by a BibTeX style, to
be specified in the document itself (one often needs a LaTeX citation-style
package, such as @command{natbib} as well).")
    (license license:knuth)))

(define-public texlive-charissil
  (package
    (name "texlive-charissil")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/charissil/"
                   "fonts/enc/dvips/charissil/"
                   "fonts/map/dvips/charissil/"
                   "fonts/tfm/SIL/charissil/"
                   "fonts/truetype/SIL/charissil/"
                   "fonts/type1/SIL/charissil/"
                   "fonts/vf/SIL/charissil/"
                   "tex/latex/charissil/")
             (base32
              "0hdwxbck39xjkyq981fm3zxxkjw753mnr05jb7h7824k9x9wpfsl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/charissil")
    (synopsis "CharisSIL fonts with support for all LaTeX engines")
    (description
     "This package provides the CharisSIL family of fonts adapted by SIL
International from Bitstream Charter in TrueType format, with support for
LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX.")
    (license (list license:silofl1.1 license:lppl))))

(define-public texlive-charter
  (package
    (name "texlive-charter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/charter/"
                   "fonts/afm/bitstrea/charter/"
                   "fonts/tfm/bitstrea/charter/"
                   "fonts/type1/bitstrea/charter/"
                   "fonts/vf/bitstrea/charter/")
             (base32
              "09l5ymgz48s3hyn776l01g3isk3dnhrj1vdavdw4qq4kfxxpqdn9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     ;; This provides charter.map.
     (list texlive-psnfss))
    (home-page "https://www.ctan.org/pkg/charter")
    (synopsis "Charter fonts for TeX")
    (description "This package provides a copy of the Charter Type-1 fonts
which Bitstream contributed to the X consortium, renamed for use with TeX.
Support for use with LaTeX is available in @code{freenfss}, part of
@command{psnfss}.")
    (license (license:non-copyleft
              "http://mirrors.ctan.org/fonts/charter/readme.charter"))))

(define-deprecated-package texlive-fonts-charter texlive-charter)

(define-public texlive-chngcntr
  (package
    (name "texlive-chngcntr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/chngcntr/" "tex/latex/chngcntr/")
             (base32
              "0ag1hb1vkl0xdzslp6f0j59dijwr9k9kq7vaada148241q0hflbj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chngcntr")
    (synopsis "Change the resetting of counters")
    (description
     "This package defines commands @code{\\counterwithin} (which sets up
a counter to be reset when another is incremented) and
@code{\\counterwithout} (which unsets such a relationship).")
    (license license:lppl)))

(define-public texlive-context
  (package
    (name "texlive-context")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/context/mkii/"
                   "context/data/scite/context/"
                   "context/data/texworks/"
                   "context/data/vscode/"
                   "doc/context/documents/general/leaflets/"
                   "doc/context/documents/general/magazines/"
                   "doc/context/documents/general/manuals/"
                   "doc/context/documents/general/qrcs/"
                   "doc/context/examples/calculator/"
                   "doc/context/examples/clock/"
                   "doc/context/presentations/"
                   "doc/context/scripts/mkii/"
                   "doc/context/scripts/mkiv/"
                   "doc/context/sources/general/leaflets/"
                   "doc/context/sources/general/magazines/"
                   "doc/context/sources/general/manuals/"
                   "doc/man/man1/context.1"
                   "doc/man/man1/context.man1.pdf"
                   "doc/man/man1/luatools.1"
                   "doc/man/man1/luatools.man1.pdf"
                   "doc/man/man1/mtx-babel.1"
                   "doc/man/man1/mtx-babel.man1.pdf"
                   "doc/man/man1/mtx-base.1"
                   "doc/man/man1/mtx-base.man1.pdf"
                   "doc/man/man1/mtx-bibtex.1"
                   "doc/man/man1/mtx-bibtex.man1.pdf"
                   "doc/man/man1/mtx-cache.1"
                   "doc/man/man1/mtx-cache.man1.pdf"
                   "doc/man/man1/mtx-chars.1"
                   "doc/man/man1/mtx-chars.man1.pdf"
                   "doc/man/man1/mtx-check.1"
                   "doc/man/man1/mtx-check.man1.pdf"
                   "doc/man/man1/mtx-colors.1"
                   "doc/man/man1/mtx-colors.man1.pdf"
                   "doc/man/man1/mtx-context.1"
                   "doc/man/man1/mtx-context.man1.pdf"
                   "doc/man/man1/mtx-dvi.1"
                   "doc/man/man1/mtx-dvi.man1.pdf"
                   "doc/man/man1/mtx-epub.1"
                   "doc/man/man1/mtx-epub.man1.pdf"
                   "doc/man/man1/mtx-evohome.1"
                   "doc/man/man1/mtx-evohome.man1.pdf"
                   "doc/man/man1/mtx-fcd.1"
                   "doc/man/man1/mtx-fcd.man1.pdf"
                   "doc/man/man1/mtx-flac.1"
                   "doc/man/man1/mtx-flac.man1.pdf"
                   "doc/man/man1/mtx-fonts.1"
                   "doc/man/man1/mtx-fonts.man1.pdf"
                   "doc/man/man1/mtx-grep.1"
                   "doc/man/man1/mtx-grep.man1.pdf"
                   "doc/man/man1/mtx-interface.1"
                   "doc/man/man1/mtx-interface.man1.pdf"
                   "doc/man/man1/mtx-metapost.1"
                   "doc/man/man1/mtx-metapost.man1.pdf"
                   "doc/man/man1/mtx-modules.1"
                   "doc/man/man1/mtx-modules.man1.pdf"
                   "doc/man/man1/mtx-package.1"
                   "doc/man/man1/mtx-package.man1.pdf"
                   "doc/man/man1/mtx-patterns.1"
                   "doc/man/man1/mtx-patterns.man1.pdf"
                   "doc/man/man1/mtx-pdf.1"
                   "doc/man/man1/mtx-pdf.man1.pdf"
                   "doc/man/man1/mtx-plain.1"
                   "doc/man/man1/mtx-plain.man1.pdf"
                   "doc/man/man1/mtx-profile.1"
                   "doc/man/man1/mtx-profile.man1.pdf"
                   "doc/man/man1/mtx-rsync.1"
                   "doc/man/man1/mtx-rsync.man1.pdf"
                   "doc/man/man1/mtx-scite.1"
                   "doc/man/man1/mtx-scite.man1.pdf"
                   "doc/man/man1/mtx-server.1"
                   "doc/man/man1/mtx-server.man1.pdf"
                   "doc/man/man1/mtx-spell.1"
                   "doc/man/man1/mtx-spell.man1.pdf"
                   "doc/man/man1/mtx-texworks.1"
                   "doc/man/man1/mtx-texworks.man1.pdf"
                   "doc/man/man1/mtx-timing.1"
                   "doc/man/man1/mtx-timing.man1.pdf"
                   "doc/man/man1/mtx-tools.1"
                   "doc/man/man1/mtx-tools.man1.pdf"
                   "doc/man/man1/mtx-unicode.1"
                   "doc/man/man1/mtx-unicode.man1.pdf"
                   "doc/man/man1/mtx-unzip.1"
                   "doc/man/man1/mtx-unzip.man1.pdf"
                   "doc/man/man1/mtx-update.1"
                   "doc/man/man1/mtx-update.man1.pdf"
                   "doc/man/man1/mtx-vscode.1"
                   "doc/man/man1/mtx-vscode.man1.pdf"
                   "doc/man/man1/mtx-watch.1"
                   "doc/man/man1/mtx-watch.man1.pdf"
                   "doc/man/man1/mtx-youless.1"
                   "doc/man/man1/mtx-youless.man1.pdf"
                   "doc/man/man1/mtxrun.1"
                   "doc/man/man1/mtxrun.man1.pdf"
                   "fonts/afm/hoekwater/context/"
                   "fonts/cid/fontforge/"
                   "fonts/map/dvips/context/"
                   "fonts/map/luatex/context/"
                   "fonts/map/pdftex/context/"
                   "fonts/misc/xetex/fontmapping/context/"
                   "fonts/tfm/hoekwater/context/"
                   "fonts/type1/hoekwater/context/"
                   "metapost/context/base/common/"
                   "metapost/context/base/mpiv/"
                   "metapost/context/base/mpxl/"
                   "metapost/context/fonts/mpiv/"
                   "scripts/context/lua/context.lua"
                   "scripts/context/lua/mtx-babel.lua"
                   "scripts/context/lua/mtx-base.lua"
                   "scripts/context/lua/mtx-bibtex.lua"
                   "scripts/context/lua/mtx-cache.lua"
                   "scripts/context/lua/mtx-chars.lua"
                   "scripts/context/lua/mtx-check.lua"
                   "scripts/context/lua/mtx-colors.lua"
                   "scripts/context/lua/mtx-context.lua"
                   "scripts/context/lua/mtx-context.xml"
                   "scripts/context/lua/mtx-convert.lua"
                   "scripts/context/lua/mtx-ctan.lua"
                   "scripts/context/lua/mtx-dvi.lua"
                   "scripts/context/lua/mtx-epub.lua"
                   "scripts/context/lua/mtx-evohome.lua"
                   "scripts/context/lua/mtx-fcd.lua"
                   "scripts/context/lua/mtx-flac.lua"
                   "scripts/context/lua/mtx-fonts.lua"
                   "scripts/context/lua/mtx-grep.lua"
                   "scripts/context/lua/mtx-install.lua"
                   "scripts/context/lua/mtx-interface.lua"
                   "scripts/context/lua/mtx-kpse.lua"
                   "scripts/context/lua/mtx-metapost.lua"
                   "scripts/context/lua/mtx-mk-help.lua"
                   "scripts/context/lua/mtx-modules.lua"
                   "scripts/context/lua/mtx-package.lua"
                   "scripts/context/lua/mtx-patterns.lua"
                   "scripts/context/lua/mtx-pdf.lua"
                   "scripts/context/lua/mtx-plain.lua"
                   "scripts/context/lua/mtx-profile.lua"
                   "scripts/context/lua/mtx-rsync.lua"
                   "scripts/context/lua/mtx-scite.lua"
                   "scripts/context/lua/mtx-server-ctx-fonttest.lua"
                   "scripts/context/lua/mtx-server-ctx-help.lua"
                   "scripts/context/lua/mtx-server-ctx-startup.lua"
                   "scripts/context/lua/mtx-server.lua"
                   "scripts/context/lua/mtx-spell.lua"
                   "scripts/context/lua/mtx-synctex.lua"
                   "scripts/context/lua/mtx-texworks.lua"
                   "scripts/context/lua/mtx-tools.lua"
                   "scripts/context/lua/mtx-unicode.lua"
                   "scripts/context/lua/mtx-unzip.lua"
                   "scripts/context/lua/mtx-update.lua"
                   "scripts/context/lua/mtx-vscode.lua"
                   "scripts/context/lua/mtx-watch.lua"
                   "scripts/context/lua/mtx-youless.lua"
                   "scripts/context/lua/mtxlibs.lua"
                   "scripts/context/lua/mtxrun.lua"
                   "scripts/context/perl/makempy.pl"
                   "scripts/context/perl/path_tre.pm"
                   "scripts/context/perl/pdftrimwhite.pl"
                   "scripts/context/perl/texfind.pl"
                   "scripts/context/perl/texfont.pl"
                   "tex/context/"
                   "tex/generic/context/luatex/"
                   "tex/latex/context/ppchtex/")
             (base32
              "0v452m4qi0963crr2fv211fi3a4c74l6b9p8brkcfg29fif7a846")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:link-scripts #~(list "context.lua" "mtxrun.lua")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'link-scripts 'add-symlinks
            (lambda _
              (with-directory-excursion (string-append #$output "/bin")
                (symlink "../share/texmf-dist/scripts/context/lua/context.lua"
                         "context.lua")
                (symlink "../share/texmf-dist/scripts/context/lua/mtxrun.lua"
                         "mtxrun.lua")
                (symlink "mtxrun" "luametatex")))))))
    (propagated-inputs
     (list texlive-amsfonts
           texlive-lm
           texlive-lm-math
           texlive-luatex
           texlive-manfnt-font
           texlive-mflogo-font
           texlive-stmaryrd))
    (home-page "https://ctan.org/pkg/context")
    (synopsis "Full featured, parameter driven macro package for TeX")
    (description "ConTeXt is a full featured, parameter driven macro package,
which fully supports advanced interactive documents.  See the ConTeXt garden
for a wealth of support information.")
    ;; The GPL applies to all code; alternatively, the LaTeX license may be
    ;; used.  The CC-BY-SA license applies to all documentation.
    (license (list license:lppl1.3c+
                   license:gpl2+
                   license:cc-by-sa4.0))))

(define-deprecated-package texlive-context-base texlive-context)

(define-public texlive-context-account
  (package
    (name "texlive-context-account")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/account/"
                   "tex/context/interface/third/"
                   "tex/context/third/account/")
             (base32
              "0pcl7yiajm4q87f05kd6wyxhvdzvsy4hyvy24aihzlmhwrww0c9c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-account")
    (synopsis "Simple accounting package")
    (description
     "The package deals with accounts of its own specification.")
    (license license:public-domain)))

(define-public texlive-context-algorithmic
  (package
    (name "texlive-context-algorithmic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/algorithmic/"
                   "tex/context/third/algorithmic/")
             (base32
              "0l2k8a3g3yrirbiwp741h1fisbprhbl2kwzbmd71fij1a80sqfaw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-algorithmic")
    (synopsis "Algorithm handling in ConTeXt")
    (description
     "This module provides support for typesetting algorithms.")
    (license license:gpl3+)))

(define-public texlive-context-animation
  (package
    (name "texlive-context-animation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/animation/"
                   "tex/context/interface/third/"
                   "tex/context/third/animation/")
             (base32
              "156zpxjb4c7qaibn7wjw13ysqyqg3m7pb8x3r3fzs6m83gp6r46c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-animation")
    (synopsis "Generate fieldstack based animation with ConTeXt")
    (description
     "The package is a port, to Context (mkvi), of the corresponding LaTeX
package.")
    (license license:gpl3)))

(define-public texlive-context-annotation
  (package
    (name "texlive-context-annotation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/annotation/"
                   "tex/context/interface/third/"
                   "tex/context/third/annotation/")
             (base32
              "1b908rj51dbpicdiwwycb36wscxl1asmsmccrzcfbdji189kf6ck")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-annotation")
    (synopsis "Annotate text blocks")
    (description
     "The @code{annotation} module lets you create your own commands and
environments to mark text blocks.")
    (license license:gpl3+)))

(define-public texlive-context-bnf
  (package
    (name "texlive-context-bnf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/bnf/"
                   "tex/context/third/bnf/")
             (base32
              "0m7144pgwk1707g7na96dx4apl6il73zzcvq7qd6lmhij3m96nv8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-bnf")
    (synopsis "BNF module for ConTeXt")
    (description
     "The module provides a simple way to write good-looking BNF-style
grammars in ConTeXt.  Grammars are written using the BNF syntax right in your
ConTeXt documents, so there is a clear separation between content and layout.
This allows the user to decide exactly how the grammar is to be displayed,
while also allowing the gist of the grammar to be understood from simply
looking at the source ConTeXt document.")
    (license license:gpl3+)))

(define-public texlive-context-chromato
  (package
    (name "texlive-context-chromato")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/chromato/"
                   "tex/context/third/chromato/")
             (base32
              "0p32iqgd6cbjx5y9ahs59f1q05js2s66nr84bjhzd37vzzl9acxs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-chromato")
    (synopsis "ConTeXt macros for chromatograms")
    (description "The module provides macros for drawing chromatograms.")
    (license license:gpl3+)))

(define-public texlive-context-cmscbf
  (package
    (name "texlive-context-cmscbf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/cmscbf/"
                   "tex/context/third/cmscbf/")
             (base32
              "0p0xgqr2pqxmhq7mzrzfyn8c37vr1xm273jz99lxzqpc7pxs37cp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-cmscbf")
    (synopsis "Use Computer Modern bold Caps and Small-caps in ConTeXt")
    (description
     "The module makes provision for bold caps and small caps CM fonts,
in ConTeXt.  Such a font may be found in the Computer Modern extra bold font
set.")
    (license license:gpl3+)))

(define-public texlive-context-cmttbf
  (package
    (name "texlive-context-cmttbf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/cmttbf/"
                   "tex/context/third/cmttbf/")
             (base32
              "0c88d2h6sn2l8s1lvy18h8vd6hc7im5gd85ilway4gq2nhvl4ahw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-cmttbf")
    (synopsis "Use Computer Modern Typewriter bold font in ConTeXt")
    (description
     "The module makes provision for bold typewriter CM fonts, in ConTeXt.
Such a font may be found in the Computer Modern extra bold font set.")
    (license license:gpl3+)))

(define-public texlive-context-construction-plan
  (package
    (name "texlive-context-construction-plan")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/construction-plan/"
                   "tex/context/third/construction-plan/")
             (base32
              "0nch7bwmal1lbsv4h5jwpavif5cx7096jr7m1g2pfjn4qy9slpgs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-construction-plan")
    (synopsis "Construction plans in ConTeXt")
    (description
     "This module generates a page with a figure at a well-defined scale.")
    (license license:gpl3+)))

(define-public texlive-context-cyrillicnumbers
  (package
    (name "texlive-context-cyrillicnumbers")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/cyrillicnumbers/"
                   "tex/context/interface/third/"
                   "tex/context/third/cyrillicnumbers/")
             (base32
              "0vg3czh7vhwr9pg8iqmry4fd6kkmimpvsf0sdnvf73p7jkn5478y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-cyrillicnumbers")
    (synopsis "Write numbers as cyrillic glyphs")
    (description
     "The package extends ConTeXt's system of number conversion, by adding
numeration using cyrillic letters.")
    (license license:bsd-2)))

(define-public texlive-context-degrade
  (package
    (name "texlive-context-degrade")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/degrade/"
                   "tex/context/third/degrade/")
             (base32
              "10bny5ipa8sn6wk1k6238f5q7mazlyz9hgfi2d7hspghnfg3sm3g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-degrade")
    (synopsis "Degrading JPEG images in ConTeXt")
    (description
     "This module provides tools to degrade JPEG images in ConTeXt.")
    (license license:gpl3+)))

(define-public texlive-context-fancybreak
  (package
    (name "texlive-context-fancybreak")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/fancybreak/"
                   "tex/context/interface/third/"
                   "tex/context/third/fancybreak/")
             (base32
              "0v29i2c77ycvl412mwmlyijss4s31c0sbxz7m7ln9vqy0xh3hv5i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-fancybreak")
    (synopsis "Overfull pages with ConTeXt")
    (description
     "The ConTeXt module allows insertion of thought breaks in texts.
With parameters one can adjust the spacing around the content and set
a default symbol.")
    (license license:gpl3+)))

(define-public texlive-context-filter
  (package
    (name "texlive-context-filter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/filter/"
                   "tex/context/third/filter/")
             (base32
              "03nv2zd3aiv9lkq0bwq6awibn1acjprkc6b6jr5jslcyy4sw3k7w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-filter")
    (synopsis
     "Run external programs on the contents of a start-stop environment")
    (description
     "The @code{filter} module provides a simple interface to run external
programs on the contents of a start-stop environment.  Options are available
to run the external program only if the content of the environment has
changed, to specify how the program output should be read back, and to choose
the name of the temporary files that are created.  The module is compatible
with both MkII and MkIV.")
    (license license:bsd-2)))

(define-public texlive-context-french
  (package
    (name "texlive-context-french")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/french/"
                   "tex/context/third/french/")
             (base32
              "06x7dfsc1vrb49zl9xlhlyfavijgpc53hc0yhj5yc6vph8zbq0df")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-french")
    (synopsis "Support for writing French in ConTeXt")
    (description
     "This ConTeXt module deals with spacing around French punctuation.")
    (license license:gpl3+)))

(define-public texlive-context-fullpage
  (package
    (name "texlive-context-fullpage")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/fullpage/"
                   "tex/context/interface/third/"
                   "tex/context/third/fullpage/")
             (base32
              "1phxzaayy8dpxhfg7xj66ms3xgrdfdc3hv18wy92havcky5gq9wc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-fullpage")
    (synopsis "Overfull pages with ConTeXt")
    (description
     "This ConTeXt module copies the functionality of @code{fullpage}, and
adds a styling parameter, given in the @code{\\usemodule} command.")
    (license license:gpl3+)))

(define-public texlive-context-gantt
  (package
    (name "texlive-context-gantt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/gantt/"
                   "tex/context/third/gantt/")
             (base32
              "0r6gwxqg4pvrgz5z1bsdknahdqhjfjdkdnl148awsg49apqrrbwi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context texlive-hatching))
    (home-page "https://ctan.org/pkg/context-gantt")
    (synopsis "GANTT module for ConTeXt")
    (description
     "Gantt is a module for drawing Gantt charts via MetaPost or PGF/TikZ.")
    (license license:public-domain)))

(define-public texlive-context-gnuplot
  (package
    (name "texlive-context-gnuplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/gnuplot/"
                   "metapost/context/third/gnuplot/"
                   "tex/context/third/gnuplot/")
             (base32
              "0bmzww4sq8n37aipy6cvplcblxwlbmpl0by2sqysc3pdyxnixg41")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-gnuplot")
    (synopsis "Inclusion of Gnuplot graphs in ConTeXt")
    (description
     "This ConTeXt module enables simple creation and inclusion of graphs with
Gnuplot.  It writes a script into temporary file, runs Gnuplot and includes
the resulting graphic directly into the document.")
    (license license:gpl3+)))

(define-public texlive-context-handlecsv
  (package
    (name "texlive-context-handlecsv")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/handlecsv/"
                   "tex/context/third/handlecsv/")
             (base32
              "0g5lxyj7v64mvfdhw96sqwjgxcka1nh6glbv040rrkx1p3j2r55x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-handlecsv")
    (synopsis "Data merging for automatic document creation")
    (description
     "The package handles CSV data merging for automatic document creation.")
    (license license:gpl3)))

(define-public texlive-context-layout
  (package
    (name "texlive-context-layout")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/layout/"
                   "tex/context/third/layout/")
             (base32
              "1zl26r94yizzpxzilkwv90xbr61ddxm7fabwpgbkrci0idc9ksv0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-layout")
    (synopsis "Show ConTeXt layouts")
    (description
     "This ConTeXt module draws a representation of the layout of the current
page and displays the sizes of the widths and heights of the margins, header,
footer and text body.")
    (license license:gpl3+)))

(define-public texlive-context-letter
  (package
    (name "texlive-context-letter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/letter/"
                   "tex/context/interface/third/"
                   "tex/context/third/letter/base/"
                   "tex/context/third/letter/style/")
             (base32
              "1bygisva06mj7kqcwdyk9mp247dv8v0qxgh2g1a451q8sqnk52yl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-letter")
    (synopsis "ConTeXt package for writing letters")
    (description
     "This package provides a means of writing vanilla letters and memos is
provided, with support covering ConTeXt Mkii and Mkiv.  The design of
letters may be amended by a wide range of style specifications.")
    (license license:gpl3+)))

(define-public texlive-context-lettrine
  (package
    (name "texlive-context-lettrine")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/lettrine/"
                   "tex/context/interface/third/"
                   "tex/context/third/lettrine/")
             (base32
              "0mhzvnn6ffysfq9qxdj1a6prplppzsh4pb7x2di2r87pnkxwa7f2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-lettrine")
    (synopsis "ConTeXt implementation of lettrines")
    (description
     "This is a re-implementation of the LaTeX package @code{lettrine}.")
    (license license:public-domain)))

(define-public texlive-context-mathsets
  (package
    (name "texlive-context-mathsets")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/mathsets/"
                   "tex/context/interface/third/"
                   "tex/context/third/mathsets/")
             (base32
              "15azsj3fv57yz9q1rrdp0cmjpz9p83aq5mwxkanppiy9sw1dny3b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-mathsets")
    (synopsis "Set notation in ConTeXt")
    (description
     "Typeset good-looking set notation as well as similar things such as
Dirac braket notation, conditional probabilities, etc.  The package is at
least inspired by @code{braket}.")
    (license license:bsd-2)))           ;from "t-mathsets.tex"

(define-public texlive-context-rst
  (package
    (name "texlive-context-rst")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/rst/"
                   "scripts/context/lua/third/rst/"
                   "tex/context/interface/third/"
                   "tex/context/third/rst/")
             (base32
              "0dfviz3pww0k9ffhiqw0dywj9fs3wkmqavb98z2cq1ldw09fbh01")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-rst")
    (synopsis "Process reStructuredText with ConTeXt")
    (description
     "The package provides a converter and module for typesetting
reStructuredText with ConTeXt.")
    (license license:bsd-2)))           ;from "manual.pdf"

(define-public texlive-context-ruby
  (package
    (name "texlive-context-ruby")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/ruby/"
                   "tex/context/third/ruby/")
             (base32
              "0dgyvsxxfll5zayp0bfb7ixzh7df4bm3yz7z2w974yjlrd17acm0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-ruby")
    (synopsis "Ruby annotations in ConTeXt")
    (description
     "Ruby markup (aka furigana in Japan) are inline annotations above or
below a word to indicate the reading of ideographic characters.  The module
implements the W3C specification for simple Ruby in ConTeXt.  The position and
layout of the base text and the Ruby text can be controlled by parameters.")
    (license license:public-domain)))

(define-public texlive-context-simplefonts
  (package
    (name "texlive-context-simplefonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/simplefonts/"
                   "tex/context/third/simplefonts/")
             (base32
              "1yxxgxnxhg006pq8incc6s6rj7jvvl1mkrdagpvc63lc709ih56s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-simplefonts")
    (synopsis "Simplified font usage for ConTeXt")
    (description
     "The package defines a set of commands for loading and using fonts in
ConTeXt.")
    (license license:gpl3+)))

(define-public texlive-context-simpleslides
  (package
    (name "texlive-context-simpleslides")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/simpleslides/"
                   "scripts/context/lua/third/simpleslides/"
                   "tex/context/interface/third/"
                   "tex/context/third/simpleslides/")
             (base32
              "0vbh26ym42ayxwis6wbkmf07sy167g9kzg5ls889j2f2zn5rf4pr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-simpleslides")
    (synopsis "Module for preparing presentations")
    (description
     "This ConTeXt module provides an easy-to-use interface for creating
presentations for use with a digital projector.  The presentations are
not interactive (no buttons, hyperlinks or navigational tools such as
tables of contents).  Graphics may be mixed with the text of slides.
The module provides several predefined styles, designed for academic
presentation.  Most styles are configurable, and it is easy to design
new styles.")
    (license license:gpl3+)))

(define-public texlive-context-title
  (package
    (name "texlive-context-title")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/title/"
                   "tex/context/interface/third/"
                   "tex/context/third/title/")
             (base32
              "1ah7b5lgqq668s17d5glnl2bwyzh7idsdib4ijxarx7ahph06jx2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-title")
    (synopsis "Place document titles")
    (description
     "The title module provides the @code{\\placetitle} command to put
a title block into your document.  With the command
@code{\\setuptitle} values can be set for @code{\\placetitle} and
change the formatting of the content.")
    (license license:gpl3+)))

(define-public texlive-context-transliterator
  (package
    (name "texlive-context-transliterator")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/transliterator/"
                   "scripts/context/lua/third/transliterator/"
                   "tex/context/interface/third/"
                   "tex/context/third/transliterator/")
             (base32
              "0hrj6sjldi7chqdnf300bs1q9s92v9sl2mfx3h0644mzjgjxw7s1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-transliterator")
    (synopsis "Transliterate text from other alphabets")
    (description
     "The package will read text in one alphabet, and provide a transliterated
version in another; this is useful for readers who cannot read the original
alphabet.  The package can make allowance for hyphenation.")
    (license license:bsd-2)))           ;from "t-transliterator.mkiv"

(define-public texlive-context-typearea
  (package
    (name "texlive-context-typearea")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/typearea/"
                   "tex/context/third/typearea/")
             (base32
              "0np4yn0kjq1m7rrhcfxrai18qk19051188sfn9lrvphj604s7sna")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-typearea")
    (synopsis "Something like Koma-Script typearea")
    (description
     "The module provides a command that calculates the page layout as the
LaTeX package @code{typearea} does.")
    (license license:gpl3+)))

(define-public texlive-context-typescripts
  (package
    (name "texlive-context-typescripts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/typescripts/"
                   "tex/context/third/typescripts/")
             (base32
              "0kz3flqyzg2p7lvr7yy1h1nmk368glzxxhwirizn5g4xv5sdf27b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-typescripts")
    (synopsis "Small modules to load various fonts for use in ConTeXt")
    (description
     "The package provides files offering interfaces to 33 publicly available
fonts (or collections of fonts from the same foundry); each is available in
a @file{.mkii} and a @file{.mkiv} version.")
    (license license:gpl2)))

(define-public texlive-context-vim
  (package
    (name "texlive-context-vim")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/vim/"
                   "tex/context/third/vim/")
             (base32
              "03cwdqkrx6bgcikmyxrwkyac3jmz7i50cavgb6r8b26zrsm522ca")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context texlive-context-filter))
    (home-page "https://ctan.org/pkg/context-vim")
    (synopsis "Generate ConTeXt syntax highlighting code from Vim")
    (description
     "ConTeXt has excellent pretty printing capabilities for many languages.
The code for pretty printing is written in TeX, and due to catcode juggling,
such verbatim typesetting is perhaps the trickiest part of TeX.  This makes it
difficult for a normal user to define syntax highlighting rules for a new
language.  This module takes the onus of defining syntax highlighting rules
away from the user and uses Vim editor to generate the syntax highlighting.
There is a helper @file{2context.vim} script to do the syntax parsing in
Vim.")
    (license license:bsd-2)))

(define-public texlive-context-visualcounter
  (package
    (name "texlive-context-visualcounter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/visualcounter/"
                   "source/context/third/visualcounter/"
                   "tex/context/third/visualcounter/")
             (base32
              "0rq2zqrvbidwngc4jyv4ay84y5l854z1shk08cjlvnlbsgrg7lmk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-context))
    (home-page "https://ctan.org/pkg/context-visualcounter")
    (synopsis "Visual display of ConTeXt counters")
    (description
     "This package provides a typical document usually contains many counters:
page numbers, section numbers, itemizations, enumerations, theorems, and so
on.  This module provides a visual display for such counters.")
    (license license:bsd-2)))

(define-public texlive-beamer
  (package
    (name "texlive-beamer")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/beamer/" "tex/latex/beamer/")
             (base32
              "0v5ix5dybf6j2mj9sp5598vdbm4bm1m50nmhj6qsk8faj78g562w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-amscls
           texlive-amsfonts
           texlive-amsmath
           texlive-atbegshi
           texlive-etoolbox
           texlive-geometry
           texlive-hyperref
           texlive-iftex
           texlive-pgf
           texlive-translator
           texlive-xcolor))
    (home-page "https://www.ctan.org/pkg/beamer")
    (synopsis "LaTeX class for producing presentations and slides")
    (description
     "The @code{beamer} LaTeX class can be used for producing slides.
The class works in both PostScript and direct PDF output modes, using the
@code{pgf} graphics system for visual effects.  Content is created in the
@code{frame} environment, and each frame can be made up of a number of slides
using a simple notation for specifying material to appear on each slide within
a frame.  Short versions of title, authors, institute can also be specified as
optional parameters.  Whole frame graphics are supported by plain frames.  The
class supports @code{figure} and @code{table} environments, transparency
effects, varying slide transitions and animations.")
    ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is
    ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+.
    (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+))))

(define-deprecated-package texlive-latex-beamer texlive-beamer)

(define-public texlive-beamer-tut-pt
  (package
    (name "texlive-beamer-tut-pt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/beamer-tut-pt/")
             (base32
              "0ayh3kbh11l4nyyzp2kcwzn0phqhzawppy044iyl1wwwc2v3zx5b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/beamer-tut-pt")
    (synopsis "Introduction to the @code{beamer} class, in Portuguese")
    (description
     "This package provides an introduction to the @code{beamer} class, in
Portuguese.")
    (license license:gpl3+)))

(define-public texlive-xmpincl
  (package
    (name "texlive-xmpincl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xmpincl/" "source/latex/xmpincl/"
                   "tex/latex/xmpincl/")
             (base32
              "1wc48qark5hd593jh3mx1yryxsdcq5hbaxyrhwcaxzgqivdli34p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xmpincl")
    (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX")
    (description
     "The XMP (eXtensible Metadata platform) is a framework to add metadata to
digital material to enhance the workflow in publication.  The essence is that
the metadata is stored in an XML file, and this XML stream is then embedded in
the file to which it applies.")
    (license license:gpl3+)))

(define-deprecated-package texlive-latex-xmpincl texlive-xmpincl)

(define-public texlive-pdfx
  (package
    (name "texlive-pdfx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdfx/" "source/latex/pdfx/"
                   "tex/latex/pdfx/")
             (base32
              "1z4j4d92k2fjmf8jfap4zn7ij97d9rz2jcs9aslcac07ag4x5bdp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-encoding
            (lambda _
              (substitute* "source/latex/pdfx/pdfx.dtx"
                (("    .+umaczy") "umaczy")))))))
    (home-page "https://ctan.org/pkg/pdfx")
    (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX")
    (description
     "The package helps LaTeX users to create PDF/X, PFD/A and other
standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.")
    (license license:lppl1.2+)))

(define-deprecated-package texlive-latex-pdfx texlive-pdfx)

(define-public texlive-yamlvars
  (package
    (name "texlive-yamlvars")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/yamlvars/"
                   "tex/lualatex/yamlvars/")
             (base32
              "0r9xqjbag1kvyiz369nbz1w15ij5b3bw9msxrnz4864wn2b50cf0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/yamlvars")
    (synopsis "YAML parser and tool for easy LaTeX definition creation")
    (description
     "This LuaLaTeX package provides a YAML parser and some functions to
declare and define LaTeX definitions using YAML files.")
    (license license:expat)))

(define-public texlive-yax
  (package
    (name "texlive-yax")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/yax/" "tex/generic/yax/")
             (base32
              "01hv550qkmxw63m41v4qykfiracvzvjwxk49y6fc6abg89hfvsj6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/yax")
    (synopsis "Yet Another Key System")
    (description
     "YaX is advertised as a key system, but it rather organizes attributes in
parameters, which parameters can be executed, so that YaX is halfway between
key management and macro definition (and actually hopes to provide a user's
interface).  Values assigned to attributes can be retrieved and tested in
various ways, with full expandability ensured as much as possible.  Finally,
YaX's syntax is a quite peculiar (as few braces as possible), but may be
customized.")
    (license license:lppl)))

(define-public texlive-ydoc
  (package
    (name "texlive-ydoc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ydoc/" "source/latex/ydoc/"
                   "tex/generic/ydoc/" "tex/latex/ydoc/")
             (base32
              "00v7vlv7z2xy4sy2zd4arlndjqvgjsqar3i22vdnld4flb03jqb8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-etoolbox
           texlive-float
           texlive-hyperref
           texlive-listings
           texlive-needspace
           texlive-newverbs
           texlive-showexpl
           texlive-tools
           texlive-url
           texlive-xcolor))
    (home-page "https://ctan.org/pkg/ydoc")
    (synopsis "Macros for documentation of LaTeX classes and packages")
    (description "The package provides macros and environments to document
LaTeX packages and classes.  It is an (as yet unfinished) alternative to the
@code{ltxdoc} class and the @code{doc} or @code{xdoc} packages.  The aim is to
provide a different layout and more modern styles (using the @code{xcolor},
@code{hyperref} packages, etc.)  This is an alpha release, and should probably
not (yet) be used with other packages, since the implementation might
change.")
    (license license:lppl1.3+)))

(define-public texlive-yet-another-guide-latex2e
  (package
    (name "texlive-yet-another-guide-latex2e")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/yet-another-guide-latex2e/")
             (base32
              "1bxpk66cfmqc6g0d29vvfd4d6y83nhdxsb9gsfwqbh38yr6rlq1b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/yet-another-guide-latex2e")
    (synopsis "Short guide to using LaTeX2e to typeset high quality documents")
    (description
     "This document is a short guide to using LaTeX2e to typeset high quality
documents.  It focuses on users of Windows and guides the reader through
installation, some of LaTeX's conventions, and creating the front matter, body
and end matter.  The appendices contain a list of useful facilities not
otherwise covered in this document and a list of helpful resources.")
    (license license:fdl1.3+)))

(define-public texlive-pstricks
  (package
    (name "texlive-pstricks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pstricks/" "dvips/pstricks/"
                   "tex/generic/pstricks/" "tex/latex/pstricks/")
             (base32
              "0hyd8rx0a11mwd13fa10s3h3jq3xymff57p7ks6cnryy2860aizq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "http://www.ctan.org/pkg/pstricks-base")
    (synopsis "PostScript macros for TeX")
    (description
     "PSTricks offers an extensive collection of macros for generating
PostScript that is usable with most TeX macro formats, including Plain TeX,
LaTeX, AMS-TeX, and AMS-LaTeX.  Included are macros for colour, graphics, pie
charts, rotation, trees and overlays.  It has many special features, including
a wide variety of graphics (picture drawing) macros, with a flexible interface
and with colour support.  There are macros for colouring or shading the cells
of tables.")
    (license license:lppl1.3+)))

(define-public texlive-pst-2dplot
  (package
    (name "texlive-pst-2dplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-2dplot/"
                   "tex/latex/pst-2dplot/")
             (base32
              "1lq39hdlqf4af16lx7qrs6x2hj10rsashgd3yl8659346a2mq75a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-2dplot")
    (synopsis "PSTricks package for drawing 2D curves")
    (description
     "Pst-2dplot is a PSTricks package that offers an intuitive tool for
plotting 2-d curves.  It defines an environment with commands similar to
MATLAB for plotting.")
    (license license:lppl)))

(define-public texlive-pst-3d
  (package
    (name "texlive-pst-3d")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-3d/" "dvips/pst-3d/"
                   "source/generic/pst-3d/"
                   "tex/generic/pst-3d/" "tex/latex/pst-3d/")
             (base32
              "12gpsg14glcjavlwsb7g0dkxcax89z2adkx7p29cpzvssnimdj50")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-3d")
    (synopsis "PSTricks package for tilting and other pseudo-3D tricks")
    (description
     "The package provides basic macros that use PSTricks for shadows, tilting
and three dimensional representations of text or graphical objects.")
    (license license:lppl)))

(define-public texlive-pst-3dplot
  (package
    (name "texlive-pst-3dplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-3dplot/"
                   "dvips/pst-3dplot/"
                   "tex/generic/pst-3dplot/"
                   "tex/latex/pst-3dplot/")
             (base32
              "0k49c4kc126zacv2p2crdv00l50cg6kfpdnsa9m223naigifzf22")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-3dplot")
    (synopsis "Draw 3D objects in parallel projection, using PSTricks")
    (description
     "This package provides a package using PSTricks to draw a large variety
of graphs and plots, including 3D maths functions.  Data can be read from
external data files, making this package a generic tool for graphing within
TeX or LaTeX, without the need for external tools.")
    (license license:lppl)))

(define-public texlive-pst-abspos
  (package
    (name "texlive-pst-abspos")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-abspos/"
                   "source/generic/pst-abspos/"
                   "tex/generic/pst-abspos/"
                   "tex/latex/pst-abspos/")
             (base32
              "12k786hfhp8vrq4a6a6caf6fi1p16hd79r3lf19d5vcyykppdcm8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-abspos")
    (synopsis "Put objects at an absolute position")
    (description
     "This PSTricks package provides a command @code{\\pstPutAbs(x,y)} to put
an object at an arbitrary absolute (or even a relative) position on the
page.")
    (license license:lppl)))

(define-public texlive-pst-am
  (package
    (name "texlive-pst-am")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-am/"
                   "source/generic/pst-am/" "tex/latex/pst-am/")
             (base32
              "1dyhjycy6ccamxcp65761gbszxpvxdsiirqbpljkywsbynwfcn6q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-am")
    (synopsis "Simulation of modulation and demodulation")
    (description
     "The package allows the simulation of the modulated and demodulated
amplitude of radio waves.  The user may plot curves of modulated signals, wave
carrier, signal modulation, signal recovery and signal demodulation.")
    (license license:lppl)))

(define-public texlive-pst-antiprism
  (package
    (name "texlive-pst-antiprism")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-antiprism/"
                   "dvips/pst-antiprism/"
                   "tex/generic/pst-antiprism/"
                   "tex/latex/pst-antiprism/")
             (base32
              "158691m8i8zd0w7d7vsbmkjm4y1ixfvj4j7bxszcw67cz2q2cmyi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-antiprism")
    (synopsis "PSTricks related package which draws an antiprism")
    (description
     "@code{pst-antiprism} is a PSTricks related package which draws an antiprism,
which is a semiregular polyhedron constructed with 2-gons and triangles.")
    (license license:lppl)))

(define-public texlive-pst-arrow
  (package
    (name "texlive-pst-arrow")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-arrow/"
                   "tex/generic/pst-arrow/"
                   "tex/latex/pst-arrow/")
             (base32
              "1z216b5189f390mdzxxcc240i0iav13nicqjqwcn31f4j4wclpzj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-arrow")
    (synopsis "Special arrows for PSTricks")
    (description
     "This package has all the code from the package @code{pstricks-add},
which was related to arrows, like multiple arrows and so on.")
    (license license:lppl)))

(define-public texlive-pst-asr
  (package
    (name "texlive-pst-asr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-asr/"
                   "tex/generic/pst-asr/" "tex/latex/pst-asr/")
             (base32
              "0hxp905d2r4j2z8hfbl9v45xid20lm41k8xy52fdj5grpshhg2z1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-asr")
    (synopsis "Typeset autosegmental representations for linguists")
    (description
     "The package allows the user to typeset autosegmental representations.")
    (license license:lppl)))

(define-public texlive-pst-bar
  (package
    (name "texlive-pst-bar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-bar/" "dvips/pst-bar/"
                   "tex/generic/pst-bar/" "tex/latex/pst-bar/")
             (base32
              "19x8a3r09m28g6mpa98rz94274yahajznkkqarzwh1n8v54bb7hd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-bar")
    (synopsis "Produces bar charts using PSTricks")
    (description
     "The package uses PSTricks to draw bar charts from data stored in
a comma-delimited file.  Several types of bar charts may be drawn, and the
drawing parameters are highly customizable.")
    (license license:lppl)))

(define-public texlive-pst-barcode
  (package
    (name "texlive-pst-barcode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-barcode/"
                   "dvips/pst-barcode/"
                   "tex/generic/pst-barcode/"
                   "tex/latex/pst-barcode/")
             (base32
              "10990hhhj961rizfffplx8v3rhnv7knm8nz2zd1aqp686fr3fkgv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-barcode")
    (synopsis "Print barcodes using PostScript")
    (description
     "The @code{pst-barcode} package allows printing of barcodes, in a huge
variety of formats, including quick-response (QR) codes.  As a PSTricks
package, the package requires pstricks.  The package uses @code{PostScript}
for calculating the bars.  For PDF output use a multi-pass mechansism such as
@code{pst-pdf}.")
    (license license:lppl)))

(define-public texlive-pst-bezier
  (package
    (name "texlive-pst-bezier")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-bezier/"
                   "dvips/pst-bezier/"
                   "tex/generic/pst-bezier/"
                   "tex/latex/pst-bezier/")
             (base32
              "181232snaqfjdc5mzazsdgjvmjn27pcfx45mydkk0cpp61kdr9yk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-bezier")
    (synopsis "Draw Bezier curves")
    (description
     "The package provides a macro @code{\\psbcurve} for drawing a Bezier curve.
Provision is made for full control of over all the control points of the
curve.")
    (license license:lppl)))

(define-public texlive-pst-blur
  (package
    (name "texlive-pst-blur")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-blur/" "dvips/pst-blur/"
                   "source/generic/pst-blur/"
                   "tex/generic/pst-blur/"
                   "tex/latex/pst-blur/")
             (base32
              "1zz5ixznkl3i59zlv9lxz7f1cfqwbar3qjy5x4323gmzjw2k9f8m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-blur")
    (synopsis "PSTricks package for blurred shadows")
    (description
     "Pst-blur is a package built for use with PSTricks.  It provides macros
that apply blurring to the normal shadow function of PSTricks.")
    (license license:lppl)))

(define-public texlive-pst-bspline
  (package
    (name "texlive-pst-bspline")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-bspline/"
                   "dvips/pst-bspline/"
                   "tex/generic/pst-bspline/"
                   "tex/latex/pst-bspline/")
             (base32
              "0djf1izf9779lgmbw5zhcz7k5hf8ay96nlgdgpsm1zj4ncwkpibg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-bspline")
    (synopsis "Draw cubic Bspline curves and interpolations")
    (description
     "The package draws uniform, cubic B-spline curves, open and closed, based
on a sequence of B-spline control points.  There is also code which permits
drawing the open or closed cubic Bspline curve interpolating a sequence of
points.  Graphical output is created using PStricks.")
    (license license:lppl1.3+)))

(define-public texlive-pst-calculate
  (package
    (name "texlive-pst-calculate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-calculate/"
                   "tex/latex/pst-calculate/")
             (base32
              "19yi0n8p4gj2p16nsk8f3i02a9adlqssyv57r67dc0qh6a0ipa9k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-calculate")
    (synopsis "Support for floating point operations at LaTeX level")
    (description
     "This package provides an interface to the LaTeX3 floating point unit,
mainly used for PSTricks related packages to allow math expressions at LaTeX
level.")
    (license license:lppl1.3+)))

(define-public texlive-pst-calendar
  (package
    (name "texlive-pst-calendar")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-calendar/"
                   "tex/latex/pst-calendar/")
             (base32
              "07vc1jxrr0n0iwjx6qjww53xji1pv42dvlc2ghi1r14nypgm8j5n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-calendar")
    (synopsis "Plot calendars in fancy ways")
    (description
     "The package draws tabular calendars, or calendars on dodecahedra with
a month to each face.  The package works for years 2000--2099, and has options
for calendars in French German and English, but the documentation is not
available in English.")
    (license license:lppl)))

(define-public texlive-pst-cie
  (package
    (name "texlive-pst-cie")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-cie/" "dvips/pst-cie/"
                   "tex/generic/pst-cie/" "tex/latex/pst-cie/")
             (base32
              "0g5yry8m935idznwn486gn75vjyhbdzs2w99l0szh95026kd4f0a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-cie")
    (synopsis "CIE color space")
    (description
     "pst-cie is a PSTricks related package to show the different CIE color
spaces: Adobe, CIE, ColorMatch, NTSC, Pal-Secam, ProPhoto, SMPTE, and sRGB.")
    (license license:lppl)))

(define-public texlive-pst-circ
  (package
    (name "texlive-pst-circ")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-circ/" "dvips/pst-circ/"
                   "tex/generic/pst-circ/"
                   "tex/latex/pst-circ/")
             (base32
              "0255xcjhm0jcgw352cmdn8d8062g2mihfzhii20zh4j0zznmk7hj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-circ")
    (synopsis "PSTricks package for drawing electric circuits")
    (description
     "The package can easily draw current 2-terminal devices and some 3- and
4-terminal devices used in electronic or electric theory.  The package's
macros are designed with a view to logical representation of circuits, as far
as possible, so as to relieve the user of purely graphical considerations when
expressing a circuit.")
    (license license:lppl)))

(define-public texlive-pst-coil
  (package
    (name "texlive-pst-coil")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-coil/" "dvips/pst-coil/"
                   "tex/generic/pst-coil/"
                   "tex/latex/pst-coil/")
             (base32
              "0d3wqrv19zc9qwp3gbr32siad408z4g23k5861p0hqy2hw8f908q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-coil")
    (synopsis "PSTricks package for coils, etc")
    (description
     "Pst-coil is a PSTricks based package for coils and zigzags and for coil
and zigzag node connections.")
    (license license:lppl)))

(define-public texlive-pst-contourplot
  (package
    (name "texlive-pst-contourplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-contourplot/"
                   "tex/generic/pst-contourplot/"
                   "tex/latex/pst-contourplot/")
             (base32
              "00nqg59x1x3nh30cclqjdyyyjzinyl9czjfywznh68dzari1fvqk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-contourplot")
    (synopsis
     "Draw implicit functions using the marching squares algorithm")
    (description
     "This package allows to draw implicit functions @samp{f(x,y) = 0} with
options for coloring the inside of the surfaces, for marking the points and
arrowing the curve at points chosen by the user.  The package uses the
marching squares algorithm.")
    (license license:lppl)))

(define-public texlive-pst-cox
  (package
    (name "texlive-pst-cox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-cox/" "dvips/pst-cox/"
                   "tex/generic/pst-cox/" "tex/latex/pst-cox/")
             (base32
              "1bw2qmsc735q3ji4h7l166s37wcpd6s4fvi98ggagndm29mcbia3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-cox")
    (synopsis "Drawing regular complex polytopes with PSTricks")
    (description
     "Pst-cox is a PSTricks package for drawing 2-dimensional projections of
complex regular polytopes (after the work of Coxeter).  The package consists
of a macro library for drawing the projections.  The complex polytopes appear
in the study of the root systems and play a crucial role in many domains
related to mathematics and physics.  These polytopes have been completely
described by Coxeter in his book @emph{Regular Complex Polytopes}.  There
exist only a finite numbers of exceptional regular complex polytopes (for
example the icosahedron) and some infinite series (for example, one can
construct a multi-dimensional analogue of the hypercube in any finite
dimension).

The library contains two packages.  The first, @code{pst-coxcoor}, is devoted
to the exceptional complex regular polytopes whose coordinates have been
pre-computed.  The second, @code{pst-coxeterp}, is devoted to the infinite
series.")
    (license license:lgpl3+)))

(define-public texlive-pst-dart
  (package
    (name "texlive-pst-dart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-dart/"
                   "tex/generic/pst-dart/"
                   "tex/latex/pst-dart/")
             (base32
              "1834hxlg4hfqmrl6k5i2c1jimzd0lcdi6x82b8lfj8dhnddlbgzr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-dart")
    (synopsis "Plotting dart boards")
    (description
     "@code{pst-dart} is a PSTricks related package and draws dart boards.
Optional arguments are the unit and the fontsize.")
    (license license:lppl)))

(define-public texlive-pst-dbicons
  (package
    (name "texlive-pst-dbicons")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-dbicons/"
                   "source/generic/pst-dbicons/"
                   "tex/latex/pst-dbicons/")
             (base32
              "0pzfahir5vvxw28095myqppfpyik7agzncm9vm42gvldw45byr4q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-dbicons")
    (synopsis "Support for drawing ER diagrams")
    (description
     "The package provides some useful macros in the database area.  The
package focusses on typesetting ER-Diagrams in a declarative style, i.e., by
positioning some nodes and defining the position of all other nodes relative
to them by using the standard database terminology.")
    (license license:lppl)))

(define-public texlive-pst-diffraction
  (package
    (name "texlive-pst-diffraction")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-diffraction/"
                   "source/generic/pst-diffraction/"
                   "tex/generic/pst-diffraction/"
                   "tex/latex/pst-diffraction/")
             (base32
              "1wi67md3046nj0arqi1wmbgdhdrsnfqgmmb0ayk2iswfhvx32myr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-diffraction")
    (synopsis "Print diffraction patterns from various apertures")
    (description
     "The package enables the user to draw (using PSTricks) the diffraction
patterns for different geometric forms of apertures for monochromatic light.
The aperture stops can have rectangular, circular or triangular openings.  The
view of the diffraction may be planar, or three-dimensional.  Options
available are the dimensions of the aperture under consideration and of the
particular optical setting, e.g., the radius in case of an circular opening.
Moreover one can choose the wavelength of the light (the associated color will
be calculated by the package).")
    (license license:lppl)))

(define-public texlive-pst-electricfield
  (package
    (name "texlive-pst-electricfield")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-electricfield/"
                   "dvips/pst-electricfield/"
                   "source/generic/pst-electricfield/"
                   "tex/generic/pst-electricfield/"
                   "tex/latex/pst-electricfield/")
             (base32
              "1awc5nqp7giqmczx1xd1y78j5vgsw7y8m767mbhgs5j12j3yl4yd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-electricfield")
    (synopsis "Draw electric field and equipotential lines with PSTricks")
    (description
     "The package provides macros to plot electric field and equipotential
lines using PStricks.  There may be any number of charges which can be placed
in a cartesian coordinate system.")
    (license license:lppl)))

(define-public texlive-pst-eps
  (package
    (name "texlive-pst-eps")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-eps/"
                   "source/generic/pst-eps/"
                   "tex/generic/pst-eps/" "tex/latex/pst-eps/")
             (base32
              "1lf106rw3w6gicn6021jpj4bgbpgjyixp64l9aqqxn6ip6vm4yh3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-eps")
    (synopsis "Create EPS files from PSTricks figures")
    (description
     "Pst-eps is a PSTricks-based package for exporting PSTricks images on the
fly to encapsulated PostScript (EPS) image files, which can then be read into
a document in the usual way.")
    (license license:lppl)))

(define-public texlive-pst-eucl
  (package
    (name "texlive-pst-eucl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-eucl/" "dvips/pst-eucl/"
                   "tex/generic/pst-eucl/"
                   "tex/latex/pst-eucl/")
             (base32
              "070f7chfvj65mhhdnghblhlq0ywvy76bw17dcb8519ixra6p4f4d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-eucl")
    (synopsis "Euclidian geometry with PSTricks")
    (description
     "The package allows the drawing of Euclidean geometric figures using TeX
PSTricks macros for specifying mathematical constraints.  It is thus possible
to build point using common transformations or intersections.  The use of
coordinates is limited to points which controlled the figure.")
    (license license:lppl)))

(define-public texlive-pst-eucl-translation-bg
  (package
    (name "texlive-pst-eucl-translation-bg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-eucl-translation-bg/")
             (base32
              "06c9ajnfl01sl81z5r8a5lzmaygq9rdmgym2v40y7xp7z033gwwv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-eucl-translation-bg")
    (synopsis "Bulgarian translation of the @code{pst-eucl} documentation")
    (description
     "The package provides the @code{pst-eucl} package documentation in
Bulgarian language.")
    (license license:lppl)))

(define-public texlive-pst-exa
  (package
    (name "texlive-pst-exa")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-exa/" "tex/latex/pst-exa/")
             (base32
              "1jbkk5nircdv0mas1vbydqhca1r5vcmrxyyi5xwzi1qhfbw3xa8g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-exa")
    (synopsis "Typeset PSTricks examples, with code")
    (description
     "The (PSTricks-related) package provides an environment @code{PSTexample}
to put code and output side by side or one above the other.")
    (license license:lppl)))

(define-public texlive-pst-feyn
  (package
    (name "texlive-pst-feyn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-feyn/" "dvips/pst-feyn/"
                   "tex/generic/pst-feyn/"
                   "tex/latex/pst-feyn/")
             (base32
              "08m8pwl5kk2rs835pnksap8ld6ir0chlbswchgpvks229i6gkrj0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-feyn")
    (synopsis "Draw graphical elements for Feynman diagrams")
    (description
     "@code{pst-feyn} is a set of drawing graphical elements which are used
for Feynman diagrams.")
    (license license:lppl)))

(define-public texlive-pst-fill
  (package
    (name "texlive-pst-fill")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-fill/"
                   "tex/generic/pst-fill/"
                   "tex/latex/pst-fill/")
             (base32
              "0anzq671nsprckhy92ybp2y93g5f2z1s0qja9wx2mrjpb4xq8ng0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-fill")
    (synopsis "Fill or tile areas with PSTricks")
    (description
     "Pst-fill is a PSTricks-based package for filling and tiling areas or
characters.")
    (license license:lppl)))

(define-public texlive-pst-fit
  (package
    (name "texlive-pst-fit")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-fit/"
                   "tex/generic/pst-fit/" "tex/latex/pst-fit/")
             (base32
              "0w2vnd6zb9vdrqbk256ynr7lg7p9ps53rrdq9l999bw8f8vip1as")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-fit")
    (synopsis "Macros for curve fitting")
    (description
     "The package uses PSTricks to fit curves to: linear functions; power
functions; exp function; logarithm functions; Recip; Kings Law data; Gaussian;
and fourth order polynomials.")
    (license license:lppl)))

(define-public texlive-pst-flags
  (package
    (name "texlive-pst-flags")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-flags/"
                   "tex/latex/pst-flags/")
             (base32
              "13078q4mg1r8hg5zvywfasfz26phcr9dvsw4s05spc116b8fz9gn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-flags")
    (synopsis "Draw flags of countries using PSTricks")
    (description
     "This package provides a number of macros for rendering flags of
countries and their associated artefacts using PSTricks.  Formatting of the
resulting drawings is entirely controlled by TeX macros.  A good working
knowledge of LaTeX should be sufficient to design flags of sovereign countries
and adapt them to create new designs.  Features such as color or shape
customisation and dynamic modifications are possible by cleverly adjusting the
options supplied to the TeX macros.")
    (license license:lppl1.3c)))

(define-public texlive-pst-fr3d
  (package
    (name "texlive-pst-fr3d")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-fr3d/"
                   "source/generic/pst-fr3d/"
                   "tex/generic/pst-fr3d/"
                   "tex/latex/pst-fr3d/")
             (base32
              "0y8xsq6wklpygzf0lfdy683vkdrglw5jl00qyfwk6rl08wb4l17y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-fr3d")
    (synopsis "Draw 3-dimensional framed boxes using PSTricks")
    (description
     "This package provides a package using PSTricks to draw three dimensional
framed boxes using a macro @code{\\PstFrameBoxThreeD}.  The macro is
especially useful for drawing 3D-seeming buttons.")
    (license license:lppl)))

(define-public texlive-pst-fractal
  (package
    (name "texlive-pst-fractal")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-fractal/"
                   "dvips/pst-fractal/"
                   "tex/generic/pst-fractal/"
                   "tex/latex/pst-fractal/")
             (base32
              "0jc9zwjp23l6njr7y63jh0xv4a6qy2610bb88fdiwdsqnh70gs72")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-fractal")
    (synopsis "Draw fractal sets using PSTricks")
    (description
     "The package uses PSTricks to draw the Julia and Mandelbrot sets, the
Sierpinski triangle, Koch flake, and Apollonius Circle as well as fractal
trees (which need not be balanced) with a variety of different
parameters (including varying numbers of iterations).")
    (license license:lppl)))

(define-public texlive-pst-fun
  (package
    (name "texlive-pst-fun")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-fun/" "dvips/pst-fun/"
                   "source/generic/pst-fun/"
                   "tex/generic/pst-fun/" "tex/latex/pst-fun/")
             (base32
              "070nv0yv0rcfvx36xmya953pk89whrr26irvy0ccb41k66fvw5j1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-fun")
    (synopsis "Draw funny objects with PSTricks")
    (description
     "This is a PSTricks related package for drawing funny objects, like ant, bird,
fish, kangaroo, etc.  Such objects may be useful for testing other PSTricks
macros and/or packages. (Or they can be used for fun...)")
    (license license:lppl)))

(define-public texlive-pst-func
  (package
    (name "texlive-pst-func")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-func/" "dvips/pst-func/"
                   "tex/generic/pst-func/"
                   "tex/latex/pst-func/")
             (base32
              "01ibjcyb71l5wqm0x2vq3i4by7q0hp6jmghyw9gkrapmdlwqig5q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-func")
    (synopsis "PSTricks package for plotting mathematical functions")
    (description
     "The package is built for use with PSTricks.  It provides macros for
plotting and manipulating various mathematical functions:

@itemize
@item polynomials and their derivatives,
@item Fourier sums,
@item the Bessel function defined by its order;
@item the Gauss function defined by sigma and mu,
@item Bezier curves from order 1 (two control points) to order 9 (10 control
points),
@item the superellipse function (the Lame curve),
@item Chebyshev polynomials of the first and second kind,
@item the Thomae (or popcorn) function,
@item the Weierstrass function,
@item various integration-derived functions: normal, binomial, poisson, gamma,
chi-squared, student's t, F, beta, Cauchy and Weibull distribution functions
and the Lorenz curve,
@item the zeroes of a function, or the intermediate point of two functions,
@item the Vasicek function for describing the evolution of interest rates,
@item implicit functions.
@end itemize

The plots may be generated as volumes of rotation about the X-axis, as well.")
    (license license:lppl)))

(define-public texlive-pst-gantt
  (package
    (name "texlive-pst-gantt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-gantt/"
                   "tex/generic/pst-gantt/"
                   "tex/latex/pst-gantt/")
             (base32
              "1ziahdc0r8pkxxn6p6ijrx1diihkbbrmwbbc1pzi1sddqg05l5sc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-gantt")
    (synopsis "Draw GANTT charts with PSTricks")
    (description
     "The package uses PSTricks to draw GANTT charts, which are a kind of bar
chart that displays a project schedule.")
    (license license:lppl)))

(define-public texlive-pst-geo
  (package
    (name "texlive-pst-geo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-geo/" "dvips/pst-geo/"
                   "tex/generic/pst-geo/" "tex/latex/pst-geo/")
             (base32
              "1zqmjjg9zmmzjqmhx2jwcc761f1rrxcchsnrd5s686f9p6z4w7c6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-geo")
    (synopsis "Geographical projections")
    (description
     "The package offers a set of PSTricks related packages for various
cartographic projections of the terrestrial sphere.  The package
@code{pst-map2d} provides conventional projections such as Mercator, Lambert,
cylindrical, etc.  The package @code{pst-map3d} treats representation in three
dimensions of the terrestrial sphere.  Packages @code{pst-map2dII} and
@code{pst-map3dII} allow use of the CIA World DataBank II. Various parameters
of the packages allow for choice of the level of the detail and the layouts
possible (cities, borders, rivers etc).  Substantial data files are provided,
in an (internally) compressed format.  Decompression happens on-the-fly as
a document using the data is displayed, printed or converted to PDF format.
A Perl script is provided for the user to do the decompression, if the need
should arise.")
    (license license:lppl)))

(define-public texlive-pst-geometrictools
  (package
    (name "texlive-pst-geometrictools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-geometrictools/"
                   "tex/generic/pst-geometrictools/"
                   "tex/latex/pst-geometrictools/")
             (base32
              "14mhyjq8w3llkyjij274n5sdwbp3ak2xi6q6ggqdakgn032a7yhn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-geometrictools")
    (synopsis "PSTricks package to draw geometric tools")
    (description
     "This PSTricks package facilitates the drawing of protractors, rulers,
compasses and pencils.")
    (license license:lppl1.3c)))

(define-public texlive-pst-gr3d
  (package
    (name "texlive-pst-gr3d")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-gr3d/"
                   "source/latex/pst-gr3d/"
                   "tex/generic/pst-gr3d/"
                   "tex/latex/pst-gr3d/")
             (base32
              "0pppd4l4yrdgy0vss8l2kndd0cg9nxip7d7vcyrfr0cz9kw0z45n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-gr3d")
    (synopsis "Three dimensional grids with PSTricks")
    (description
     "This PSTricks package provides a command @code{\\PstGridThreeD} that
will draw a three dimensional grid, offering a number of options for its
appearance.")
    (license license:lppl)))

(define-public texlive-pst-grad
  (package
    (name "texlive-pst-grad")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-grad/" "dvips/pst-grad/"
                   "tex/generic/pst-grad/"
                   "tex/latex/pst-grad/")
             (base32
              "10b8b7mb6c1kkwvwrq31zwmn184qprd69ckypp0gs5s1nz9klc4l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-grad")
    (synopsis "Filling with colour gradients, using PSTricks")
    (description
     "The package fills with colour gradients, using PSTricks.  The RGB, CMYK
and HSB models are supported.  Other colour gradient mechanisms are to be
found in package @code{pst-slpe}.")
    (license license:lppl)))

(define-public texlive-pst-graphicx
  (package
    (name "texlive-pst-graphicx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-graphicx/"
                   "tex/generic/pst-graphicx/")
             (base32
              "0x1053a92hi1msbmw7s0222k0vfg28172qrinz3hdv94igaxi38q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-graphicx")
    (synopsis "PSTricks-compatible @code{graphicx} for use with Plain TeX")
    (description
     "The package provides a version of @code{graphicx} that avoids loading
the graphics bundle's (original) @code{keyval} package, which clashes with
PSTricks use of @code{xkeyval}.")
    (license license:lppl)))

(define-public texlive-pst-hsb
  (package
    (name "texlive-pst-hsb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-hsb/"
                   "tex/generic/pst-hsb/" "tex/latex/pst-hsb/")
             (base32
              "0cv81bbkg2yhszjs2y7b5vs241y272by5mcb7adg347jzyrs8s74")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-hsb")
    (synopsis "Curves with continuous colours")
    (description
     "This is a PSTricks-related package.  It can plot lines and/or curves
with continuous colours.  Only colours defined in the HSB model are
supported.")
    (license license:lppl)))

(define-public texlive-pst-infixplot
  (package
    (name "texlive-pst-infixplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-infixplot/"
                   "tex/generic/pst-infixplot/"
                   "tex/latex/pst-infixplot/")
             (base32
              "07yqjzznayk3pjbsaxjz5b63hiabmkdywv2h6kshpjqmh2q1zi6w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-infixplot")
    (synopsis "Use PSTricks plotting capacities with infix expressions")
    (description
     "Plotting functions with pst-plot is very powerful but sometimes
difficult to learn since the syntax of @code{\\psplot} and
@code{\\parametricplot} requires some PostScript knowledge.  The infix-RPN and
@code{pst-infixplot} styles simplify the usage of @code{pst-plot} for the
beginner, providing macro commands that convert natural mathematical
expressions to PostScript syntax.")
    (license license:lppl)))

(define-public texlive-pst-intersect
  (package
    (name "texlive-pst-intersect")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-intersect/"
                   "dvips/pst-intersect/"
                   "source/latex/pst-intersect/"
                   "tex/generic/pst-intersect/"
                   "tex/latex/pst-intersect/")
             (base32
              "157yqj923kikm8abiv3giyf9rrr6cw0jwqj37ri5ya5iyxlfvmmv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-intersect")
    (synopsis "Compute intersections of arbitrary curves")
    (description
     "The package computes the intersections between arbitrary PostScript
paths or Bezier curves, using the Bezier clipping algorithm.")
    (license license:lppl)))

(define-public texlive-pst-jtree
  (package
    (name "texlive-pst-jtree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-jtree/"
                   "tex/generic/pst-jtree/"
                   "tex/latex/pst-jtree/")
             (base32
              "07vzx418syv1v04z1552k9iwjz4b4kmw7g2m1i4nqdfg2lvina8s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-jtree")
    (synopsis "Typeset complex trees for linguists")
    (description
     "jTree uses PSTricks to enable linguists to typeset complex trees.")
    (license license:lppl1.3+)))

(define-public texlive-pst-knot
  (package
    (name "texlive-pst-knot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-knot/" "dvips/pst-knot/"
                   "tex/generic/pst-knot/"
                   "tex/latex/pst-knot/")
             (base32
              "1b69m4qwd37vd3x734r4hp4wzsirsp6k5m87yqmxlhlkrf0wmrwc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-knot")
    (synopsis "PSTricks package for displaying knots")
    (description
     "The package can produce a fair range of knot shapes, with all the
standard graphics controls one expects.")
    (license license:lppl)))

(define-public texlive-pst-labo
  (package
    (name "texlive-pst-labo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-labo/"
                   "tex/generic/pst-labo/"
                   "tex/latex/pst-labo/")
             (base32
              "10c2qv2fpijb49yn7p00b116icimhiva5kq0bfgj2975y90fncjb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-labo")
    (synopsis "Draw objects for Chemistry laboratories")
    (description
     "Pst-labo is a PSTricks related package for drawing basic and complex
chemical objects.  The documentation of the package is illuminated with plenty
of illustrations together with their source code, making it an easy read.")
    (license license:lppl)))

(define-public texlive-pst-layout
  (package
    (name "texlive-pst-layout")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-layout/"
                   "tex/latex/pst-layout/")
             (base32
              "1f07j551kiajqyrfjlsj7xk40zv18ik2b3fih5iyzkf4zk4f650r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-layout")
    (synopsis "Page layout macros based on PSTricks packages")
    (description
     "The package provides a means of creating elaborate (``pseudo-tabular'')
layouts of material, typically to be overlaid on an included graphic.")
    (license license:lppl)))

(define-public texlive-pst-lens
  (package
    (name "texlive-pst-lens")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-lens/"
                   "source/generic/pst-lens/"
                   "tex/generic/pst-lens/"
                   "tex/latex/pst-lens/")
             (base32
              "0h2930i4izgfjk96445yiwsk6x8cg5cl4zlqrg5rsv7nr2k8njy3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-lens")
    (synopsis "Lenses with PSTricks")
    (description
     "This PSTricks package provides a really rather simple command
@code{\\PstLens} that will draw a lens.  Command parameters provide
a remarkable range of effects.")
    (license license:lppl)))

(define-public texlive-pst-light3d
  (package
    (name "texlive-pst-light3d")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-light3d/"
                   "dvips/pst-light3d/"
                   "source/generic/pst-light3d/"
                   "tex/generic/pst-light3d/"
                   "tex/latex/pst-light3d/")
             (base32
              "0kwdbf64m2kmplk4r7ifxckajh3d5sgjini70fmababnrp1g8nzf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-light3d")
    (synopsis "Three dimensional lighting effects (PSTricks)")
    (description
     "This package provides a PSTricks package for three dimensional lighting
effects on characters and PSTricks graphics, like lines, curves, plots, ...")
    (license license:lppl)))

(define-public texlive-pst-lsystem
  (package
    (name "texlive-pst-lsystem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-lsystem/"
                   "dvips/pst-lsystem/"
                   "tex/generic/pst-lsystem/"
                   "tex/latex/pst-lsystem/")
             (base32
              "1k3krdcfqa5cyzaq0jp8dzil6arfvs5ah2mp87460pl2wvfza0lr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-lsystem")
    (synopsis "Create images based on a L-system")
    (description
     "@code{pst-lsystem} is a PSTricks based package for creating images based
on a L-system.  A L-system (Lindenmayer system) is a set of rules which can be
used to model the morphology of a variety of organisms or fractals like the
Kochflake or Hilbert curve.")
    (license license:lppl)))

(define-public texlive-pst-magneticfield
  (package
    (name "texlive-pst-magneticfield")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-magneticfield/"
                   "dvips/pst-magneticfield/"
                   "tex/generic/pst-magneticfield/"
                   "tex/latex/pst-magneticfield/")
             (base32
              "0gxz7yfj16b23lwn5pq68r8yb6klm7xhmq5m0addmrq1dvb3id5n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-magneticfield")
    (synopsis "Plotting a magnetic field with PSTricks")
    (description
     "@code{pst-magneticfield} is a PSTricks related package to draw the
magnetic field lines of Helmholtz coils in a two or three dimensional view.
There are several parameters to create a different output.")
    (license license:lppl)))

(define-public texlive-pst-marble
  (package
    (name "texlive-pst-marble")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-marble/"
                   "dvips/pst-marble/"
                   "tex/generic/pst-marble/"
                   "tex/latex/pst-marble/")
             (base32
              "1j5jags1m4wwwfkd25n57q49ggdwc7b9qjp8da4q255yf0i54w91")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-marble")
    (synopsis "PSTricks package to draw marble-like patterns")
    (description "This is a PSTricks package to draw marble-like patterns.")
    (license license:lppl1.3c)))

(define-public texlive-pst-math
  (package
    (name "texlive-pst-math")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-math/" "dvips/pst-math/"
                   "tex/generic/pst-math/"
                   "tex/latex/pst-math/")
             (base32
              "1h9fg3wz7k28kgmlanli8jzz8kqif11lf0y50w5wxrnaasdmh1ib")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-math")
    (synopsis "Enhancement of PostScript math operators to use with PSTricks")
    (description
     "PostScript lacks a lot of basic operators such as tan, acos, asin, cosh,
sinh, tanh, acosh, asinh, atanh, exp (with e base).  Also (oddly) cos and sin
use arguments in degrees.  Pst-math provides all those operators in a header
file @file{pst-math.pro} with wrappers @file{pst-math.sty} and
@file{pst-math.tex}.  In addition, sinc, gauss, gammaln and bessel are
implemented (only partially for the latter).  The package is designed
essentially to work with @code{pst-plot} but can be used in whatever PS code.
The package also provides a routine SIMPSON for numerical integration and
a solver of linear equation systems.")
    (license license:lppl)))

(define-public texlive-pst-mirror
  (package
    (name "texlive-pst-mirror")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-mirror/"
                   "dvips/pst-mirror/"
                   "tex/generic/pst-mirror/"
                   "tex/latex/pst-mirror/")
             (base32
              "0b2q1islf9mwphzcs6g04vq69hlmyisx4rb5fb77yiw3na5xlnq0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-mirror")
    (synopsis "Images on a spherical mirror")
    (description
     "The package provides commands and supporting PostScript material for
drawing images as if reflected by a spherical mirror.")
    (license license:lppl)))

(define-public texlive-pst-moire
  (package
    (name "texlive-pst-moire")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-moire/" "dvips/pst-moire/"
                   "tex/generic/pst-moire/"
                   "tex/latex/pst-moire/")
             (base32
              "0i2p5b2cfhnbmszcs5ydlk4nfxhwgl84kq148kpg6cx07gg8rr6l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-moire")
    (synopsis "PSTricks package to draw moiré patterns")
    (description "This is a PSTricks package to draw moiré patterns.")
    (license license:lppl1.3c)))

(define-public texlive-pst-node
  (package
    (name "texlive-pst-node")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-node/" "dvips/pst-node/"
                   "tex/generic/pst-node/"
                   "tex/latex/pst-node/")
             (base32
              "0w9j1l5hlid98sp6hm7ny0z3nh6jcccvxglprq0wr08w89zb7dmz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-node")
    (synopsis "Nodes and node connections in PSTricks")
    (description
     "The package enables the user to connect information, and to place labels,
without knowing (in advance) the actual positions of the items to be
connected, or where the connecting line should go.  The macros are useful for
making graphs and trees, mathematical diagrams, linguistic syntax diagrams,
and so on.")
    (license license:lppl)))

(define-public texlive-pst-ob3d
  (package
    (name "texlive-pst-ob3d")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-ob3d/"
                   "source/generic/pst-ob3d/"
                   "tex/generic/pst-ob3d/"
                   "tex/latex/pst-ob3d/")
             (base32
              "1j6y3v4x5gkshzxnmklwl2hqbz7nr904v1qa1dr9l4m814p2jhcc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-ob3d")
    (synopsis "Three dimensional objects using PSTricks")
    (description
     "The package uses PSTricks to provide basic three-dimensional objects.
As yet, only cubes (which can be deformed to rectangular parallelipipeds) and
dies (which are only a special kind of cubes) are defined.")
    (license license:lppl)))

(define-public texlive-pst-ode
  (package
    (name "texlive-pst-ode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-ode/" "dvips/pst-ode/"
                   "tex/generic/pst-ode/" "tex/latex/pst-ode/")
             (base32
              "0mx6wsdl4m0nr6848qpyfi6rn7x1nsqljnflsp0yk010r0vsmid5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-ode")
    (synopsis
     "Solve initial value problems for sets of Ordinary Differential
Equations")
    (description
     "The package defines @code{\\pstODEsolve} for solving initial value
problems for sets of Ordinary Differential Equations (ODE) using the
Runge-Kutta-Fehlberg (RKF45) method with automatic step size adjustment.  The
result is stored as a PostScript object and may be plotted later using macros
from other PSTricks packages, such as @code{\\listplot} (from @code{pst-plot})
and @code{\\listplotThreeD} (from @code{pst-3dplot}), or may be further
processed by user-defined PostScript procedures.  Optionally, the computed
state vectors can be written as a table to a text file.")
    (license license:lppl)))

(define-public texlive-pst-optexp
  (package
    (name "texlive-pst-optexp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-optexp/" "dvips/pst-optexp/"
                   "makeindex/pst-optexp/"
                   "source/latex/pst-optexp/"
                   "tex/latex/pst-optexp/")
             (base32
              "0m835c700a6bxd8r8m84injzz862j1xdxbbh8waxh97yrfwmhp45")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-optexp")
    (synopsis "Drawing optical experimental setups")
    (description
     "The package is a collection of optical components that facilitate easy
sketching of optical experimental setups.  The package uses PSTricks for its
output.  A wide range of free-ray and fibre components is provided, the
alignment, positioning and labelling of which can be achieved in very simple
and flexible ways.  The components may be connected with fibers or beams, and
realistic raytraced beam paths are also possible.")
    (license license:lppl1.3+)))

(define-public texlive-pst-optic
  (package
    (name "texlive-pst-optic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-optic/"
                   "tex/generic/pst-optic/"
                   "tex/latex/pst-optic/")
             (base32
              "1qgxqygcfv3v6wkf6igkyp5aimp9f9nvfyizcwlxlxr32mjvvbly")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-optic")
    (synopsis "Drawing optics diagrams")
    (description
     "This package provides a package for drawing both reflective and
refractive optics diagrams.")
    (license license:lppl)))

(define-public texlive-pst-osci
  (package
    (name "texlive-pst-osci")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-osci/"
                   "tex/generic/pst-osci/"
                   "tex/latex/pst-osci/")
             (base32
              "0h7wnpm26z8v904yj0wvadrjsh3j5fsn73ihilxhb4zd88zqib99")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-osci")
    (synopsis "Oscgons with PSTricks")
    (description
     "This PSTricks package enables you to produce oscilloscope screen shots.
Three channels can be used to represent the most common signals (damped or
not): namely sinusoidal, rectangular, triangular, dog's tooth (left and right
oriented).  The third channel allows you to add, to subtract or to multiply
the two other signals.  Lissajous diagrams (XY-mode) can also be obtained.")
    (license license:lppl)))

(define-public texlive-pst-ovl
  (package
    (name "texlive-pst-ovl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-ovl/" "dvips/pst-ovl/"
                   "tex/generic/pst-ovl/" "tex/latex/pst-ovl/")
             (base32
              "0v9f4k475cm922y7i2x6w6p1w3nnbaw69rniznwap9bhliv0ynfg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-ovl")
    (synopsis "Create and manage graphical overlays")
    (description
     "The package is useful when building an image from assorted material, as
in the slides of a projected presentation.")
    (license license:lppl)))

(define-public texlive-pst-pad
  (package
    (name "texlive-pst-pad")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-pad/"
                   "source/generic/pst-pad/"
                   "tex/generic/pst-pad/" "tex/latex/pst-pad/")
             (base32
              "1vvgjf2g9dynjg1y6dm1d47v40sga4a34ngyy3h5lfmy58860jri")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-pad")
    (synopsis "Draw simple attachment systems with PSTricks")
    (description
     "The package collects a set of graphical elements based on PStricks that
can be used to facilitate display of attachment systems such as two
differently shaped surfaces with or without a fluid wedged in between.  These
macros ease the display of wet adhesion models and common friction systems
such as boundary lubrication, elastohydrodynamic lubrication and hydrodynamic
lubrication.")
    (license license:lppl)))

(define-public texlive-pst-pdf
  (package
    (name "texlive-pst-pdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-pdf/" "scripts/pst-pdf/"
                   "source/latex/pst-pdf/" "tex/latex/pst-pdf/")
             (base32
              "1as5q9p6z9y3ps3hm8v8par18xmxmhrcxmknpl6rhjq0wbyjlj26")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "ps4pdf")))
    (home-page "https://ctan.org/pkg/pst-pdf")
    (synopsis "Make PDF versions of graphics by processing between runs")
    (description
     "The package @code{pst-pdf} simplifies the use of graphics from PSTricks
and other PostScript code in PDF documents.  As in building a bibliography
with BibTeX, additional external programmes are invoked.  In this case they
are used to create a PDF file that will contain all the graphics material.  In
the final document these contents will be inserted instead of the original
PostScript code.")
    (license license:lppl1.2+)))

(define-public texlive-pst-pdgr
  (package
    (name "texlive-pst-pdgr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-pdgr/"
                   "source/generic/pst-pdgr/"
                   "tex/generic/pst-pdgr/"
                   "tex/latex/pst-pdgr/")
             (base32
              "08v28601j7ygp7d8xliwhfbrl2gh93ikf6kbl4p86wfxsbxlhg0c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-pdgr")
    (synopsis "Draw medical pedigrees using PSTricks")
    (description
     "The package provides a set of macros based on PSTricks to draw medical
pedigrees according to the recommendations for standardized human pedigree
nomenclature.  The drawing commands place the symbols on a @code{pspicture}
canvas.  An interface for making trees is also provided.  The package may be
used both with LaTeX and PlainTeX.  A separate Perl program for generating TeX
files from spreadsheets is available.")
    (license license:lppl)))

(define-public texlive-pst-perspective
  (package
    (name "texlive-pst-perspective")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-perspective/"
                   "tex/generic/pst-perspective/"
                   "tex/latex/pst-perspective/")
             (base32
              "0dm7qqar0kjnc68xwhp7vn4m8bcsmzcs6qzh61ainbls7gni5aq8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-perspective")
    (synopsis "Draw perspective views using PSTricks")
    (description
     "The package provides the means to draw an orthogonal parallel projection
with an arbitrarily chosen angle and a variable shortening factor.")
    (license license:lppl1.3+)))

(define-public texlive-pst-platon
  (package
    (name "texlive-pst-platon")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-platon/"
                   "source/generic/pst-platon/"
                   "tex/latex/pst-platon/")
             (base32
              "0a4w47varc1i22h5iwd49c0clwb2k8hdlva5l6nfmc889wgwp0d7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-platon")
    (synopsis "Platonic solids in PSTricks")
    (description
     "The package adds to PSTricks the ability to draw 3-dimensional views of
the five Platonic solids.")
    (license license:lppl)))

(define-public texlive-pst-plot
  (package
    (name "texlive-pst-plot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-plot/"
                   "tex/generic/pst-plot/"
                   "tex/latex/pst-plot/")
             (base32
              "12jrn04nxfhw07y86pjkr6bbvdvwcnhfxr6aj9ni13383dxcwl7j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-plot")
    (synopsis "Plot data using PSTricks")
    (description
     "The package provides plotting of data (typically from external files),
using PSTricks.  Plots may be configured using a wide variety of parameters.")
    (license license:lppl)))

(define-public texlive-pst-poker
  (package
    (name "texlive-pst-poker")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-poker/"
                   "tex/latex/pst-poker/")
             (base32
              "0c1v75rxw717hvjgzb4i0ahk7acmqpgl9czaihvw36r9yaicsm5n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-poker")
    (synopsis "Drawing poker cards")
    (description
     "This PSTricks related package can create poker cards in various
manners.")
    (license license:lgpl3)))

(define-public texlive-pst-poly
  (package
    (name "texlive-pst-poly")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-poly/"
                   "tex/generic/pst-poly/"
                   "tex/latex/pst-poly/")
             (base32
              "1fasd2y6vv28id1w858kq4rc3qd46rkds9z7vi8k102aqvv9as8n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-poly")
    (synopsis "Polygons with PSTricks")
    (description
     "This PSTricks package provides a really rather simple command
@code{\\PstPolygon} that will draw various regular and non-regular
polygons (according to command parameters); various shortcuts to commonly-used
polygons are provided, as well as a command @code{\\pspolygonbox} that frames
text with a polygon.")
    (license license:lppl)))

(define-public texlive-pst-pulley
  (package
    (name "texlive-pst-pulley")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-pulley/"
                   "tex/generic/pst-pulley/"
                   "tex/latex/pst-pulley/")
             (base32
              "1n1kv743vxjw8b6nqrlivb3m3pg3z9kw56bzxij438p5him3sdaa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-pulley")
    (synopsis "Plot pulleys, using PSTricks")
    (description
     "The package enables the user to draw pulley systems with up to 6 pulleys.
The pulley diagrams are labelled with the physical properties of the system.")
    (license license:lppl1.3+)))

(define-public texlive-pst-qtree
  (package
    (name "texlive-pst-qtree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-qtree/"
                   "tex/generic/pst-qtree/"
                   "tex/latex/pst-qtree/")
             (base32
              "1hdmv4lar1hdg9bh049kmsjqd14rdv2066qrcaacwmd39nh816z5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-qtree")
    (synopsis "Simple syntax for trees")
    (description "The package provides a Qtree-like front end for PSTricks.")
    (license license:gpl3+)))

(define-public texlive-pst-rputover
  (package
    (name "texlive-pst-rputover")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-rputover/"
                   "tex/generic/pst-rputover/"
                   "tex/latex/pst-rputover/")
             (base32
              "1d25sdhvira5vlibgv3r51dk64jplqbpf4fdimh2l1flq5h0d9dw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-rputover")
    (synopsis "Place text over objects without obscuring background colors")
    (description
     "This is a PSTricks package which allows to place text over objects
without obscuring background colors.")
    (license license:lppl1.3c)))

(define-public texlive-pst-rubans
  (package
    (name "texlive-pst-rubans")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-rubans/"
                   "source/generic/pst-rubans/"
                   "tex/generic/pst-rubans/"
                   "tex/latex/pst-rubans/")
             (base32
              "1izpw60jm4w8xgd5aiqc7qxhjd0js1g9k9anwbpni9sn1qma66zs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-rubans")
    (synopsis "Draw three-dimensional ribbons")
    (description
     "The package uses PStricks and @code{pst-solides3d} to draw three
dimensional ribbons on a cylinder, torus, sphere, cone or paraboloid.  The
width of the ribbon, the number of turns, the colour of the outer and the
inner surface of the ribbon may be set.  In the case of circular and conical
helices, one may also choose the number of ribbons.")
    (license license:lppl)))

(define-public texlive-pst-shell
  (package
    (name "texlive-pst-shell")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-shell/" "dvips/pst-shell/"
                   "source/generic/pst-shell/"
                   "tex/generic/pst-shell/"
                   "tex/latex/pst-shell/")
             (base32
              "18w5csarnjv3ws554vjw2zlmpc5mcd03fc8fircv0pbxxl53l11r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-shell")
    (synopsis "Plotting sea shells")
    (description
     "@code{pst-shell} is a PSTricks related package to draw seashells in 3D
view: Argonauta, Epiteonium, Lyria, Turritella, Tonna, Achatina, Oxystele,
Conus, Ammonite, Codakia, Escalaria, Helcion, Natalina, Planorbis, and
Nautilus, all with different parameters.")
    (license license:lppl)))

(define-public texlive-pst-sigsys
  (package
    (name "texlive-pst-sigsys")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-sigsys/"
                   "tex/generic/pst-sigsys/"
                   "tex/latex/pst-sigsys/")
             (base32
              "18g1s1afh3lnkb3993k1ypkzbb4a88jw5paclwgyn59yqjq8x737")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-sigsys")
    (synopsis "Support of signal processing-related disciplines")
    (description
     "The package offers a collection of useful macros for disciplines related
to signal processing.  It defines macros for plotting a sequence of numbers,
drawing the pole-zero diagram of a system, shading the region of convergence,
creating an adder or a multiplier node, placing a framed node at a given
coordinate, creating an up-sampler or a down-sampler node, drawing the block
diagram of a system, drawing adaptive systems, sequentially connecting a list
of nodes, and connecting a list of nodes using any node-connecting macro.")
    (license license:lppl)))

(define-public texlive-pst-slpe
  (package
    (name "texlive-pst-slpe")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-slpe/" "dvips/pst-slpe/"
                   "source/generic/pst-slpe/"
                   "tex/generic/pst-slpe/"
                   "tex/latex/pst-slpe/")
             (base32
              "12m6iss3hqsngq2dk7n3d1zz6z2rq4j2w1di9l26hpzly2mdp26n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-slpe")
    (synopsis "Sophisticated colour gradients")
    (description
     "This PStricks package covers all the colour gradient functionality of
@code{pst-grad} (part of the base PSTricks distribution), and provides the
following facilities:

@itemize
@item it permits the user to specify an arbitrary number of colours, along
with the points at which they are to be reached;
@item it converts between RGB and HSV behind the scenes;
@item it provides concentric and radial gradients;
@item it provides a command @code{\\psBall} that generates bullets with
a three-dimensional appearance.
@end itemize")
    (license license:lppl)))

(define-public texlive-pst-solarsystem
  (package
    (name "texlive-pst-solarsystem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-solarsystem/"
                   "dvips/pst-solarsystem/"
                   "tex/generic/pst-solarsystem/"
                   "tex/latex/pst-solarsystem/")
             (base32
              "147mbrir52fl1ra3qqwlmmgk7789nrpr9hh015kc07mx10zfmc5x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-solarsystem")
    (synopsis "Plot the solar system for a specific date")
    (description
     "The package uses PSTricks to produce diagrams of the visible planets,
projected on the plane of the ecliptic.  It is not possible to represent all
the planets in their real proportions, so only Mercury, Venus, Earth and Mars
have their orbits in correct proportions and their relative sizes are
observed.  Saturn and Jupiter are in the right direction, but not in the
correct size.")
    (license license:lppl)))

(define-public texlive-pst-solides3d
  (package
    (name "texlive-pst-solides3d")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-solides3d/"
                   "dvips/pst-solides3d/"
                   "tex/generic/pst-solides3d/"
                   "tex/latex/pst-solides3d/")
             (base32
              "1w6qpaw5k6x5c90k15q3r397f3ai7fd443yzwif2fhkqb2wjv3k8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-solides3d")
    (synopsis "Draw perspective views of 3D solids")
    (description
     "The package is designed to draw solids in 3d perspective.  Its features
include:
@itemize
@item create primitive solids;
@item create solids by including a list of its vertices and faces;
@item faces of solids and surfaces can be colored by choosing from a very
large palette of colors;
@item draw parametric surfaces in algebraic and reverse polish notation;
@item create explicit and parameterized algebraic functions drawn in 2 or
3 dimensions;
@item project text onto a plane or onto the faces of a solid;
@item support for including external database files.
@end itemize")
    (license license:lppl1.3+)))

(define-public texlive-pst-soroban
  (package
    (name "texlive-pst-soroban")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-soroban/"
                   "source/generic/pst-soroban/"
                   "tex/latex/pst-soroban/")
             (base32
              "1cpmqgaj1h2dh3acypm9xkjinmlw9wd40n1s2vdab5ascvprbr6n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-soroban")
    (synopsis "Draw a soroban using PSTricks")
    (description
     "The package uses PSTricks to draw a Japanese abacus, or soroban.  The
soroban is still used in Japan today.")
    (license license:lppl)))

(define-public texlive-pst-spectra
  (package
    (name "texlive-pst-spectra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-spectra/"
                   "dvips/pst-spectra/"
                   "tex/generic/pst-spectra/"
                   "tex/latex/pst-spectra/")
             (base32
              "0l88wag5i1jy6pd1lx3s9cijiymzdgwvl52hkarc84d8qpn53wcw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-spectra")
    (synopsis "Draw continuum, emission and absorption spectra with PSTricks")
    (description
     "The package is a PSTricks extension, based on a NASA lines database.  It
allows you to draw continuum, emission and absorption spectra.  A Total of 16
880 visible lines from 99 elements can be displayed.")
    (license license:lppl)))

(define-public texlive-pst-spinner
  (package
    (name "texlive-pst-spinner")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-spinner/"
                   "dvips/pst-spinner/"
                   "tex/generic/pst-spinner/"
                   "tex/latex/pst-spinner/")
             (base32
              "0fm70v1kgjs32pvyvcnh2j47clqgdr4hll4j7fr935584d604g49")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-spinner")
    (synopsis "Drawing a fidget spinner")
    (description
     "This package aims to propose a model of the fidget spinner gadget.  It
exists under different forms with 2, 3 poles and even more.  We chose the most
popular model: the triple fidget spinner.")
    (license license:lppl)))

(define-public texlive-pst-stru
  (package
    (name "texlive-pst-stru")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-stru/"
                   "tex/generic/pst-stru/"
                   "tex/latex/pst-stru/")
             (base32
              "1zxf0bj43picgd86bwgc38d8valpx0fn0pr3pgfv2kn42r2pampj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-stru")
    (synopsis "Civil engineering diagrams, using PSTricks")
    (description
     "This PSTricks-based package provides facilities to draw structural
schemes in civil engineering analysis, for beams, portals, arches and piles.")
    (license license:lppl)))

(define-public texlive-pst-support
  (package
    (name "texlive-pst-support")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-support/")
             (base32
              "1470n03zanpw35dnfzyjqm7d5lgddrimypz28x0zsk9nqpamnqnv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-support")
    (synopsis "Assorted support files for use with PSTricks")
    (description
     "This package provides an appropriate set of job options, together with
process scripts for use with TeXnicCenter.")
    (license license:lppl)))

(define-public texlive-pst-text
  (package
    (name "texlive-pst-text")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-text/"
                   "dvips/pst-text/"
                   "tex/generic/pst-text/"
                   "tex/latex/pst-text/")
             (base32
              "146fpzd1xlqi94q5r48z8ni8qww713yh6nwkbr9pw27mjrqdadb9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "http://www.ctan.org/pkg/pst-text")
    (synopsis "Text and character manipulation in PSTricks")
    (description "Pst-text is a PSTricks based package for plotting text along
a different path and manipulating characters.  It includes the functionality
of the old package @code{pst-char}.")
    (license license:lppl)))

(define-public texlive-pst-thick
  (package
    (name "texlive-pst-thick")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-thick/"
                   "source/generic/pst-thick/"
                   "tex/generic/pst-thick/"
                   "tex/latex/pst-thick/")
             (base32
              "1clg9ahhg3zg91phlp2ni1j5m6pb68bdk74glh398r8y2gj2b5fb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-thick")
    (synopsis "Drawing very thick lines and curves")
    (description
     "The package supports drawing of very thick lines and curves in PSTricks,
with various fillings for the body of the lines.")
    (license license:lppl)))

(define-public texlive-pst-tools
  (package
    (name "texlive-pst-tools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-tools/" "dvips/pst-tools/"
                   "tex/generic/pst-tools/"
                   "tex/latex/pst-tools/")
             (base32
              "1ws149np6121mc7msw32wkc6pn528ldsd5g95w4n4vcm6r54pmgq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-tools")
    (synopsis "PSTricks support functions")
    (description
     "The package provides helper functions for other PSTricks related
packages.")
    (license license:lppl)))

(define-public texlive-pst-tree
  (package
    (name "texlive-pst-tree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-tree/"
                   "tex/generic/pst-tree/"
                   "tex/latex/pst-tree/")
             (base32
              "1vznc4qyjpnni3smdxlpqi7h3qxd13kv5pigvlly0zq676n6gw8n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-tree")
    (synopsis "Trees, using PSTricks")
    (description
     "@code{pst-tree} defines a macro \\pstree that offers a structured way of
joining nodes created using @code{pst-node} in order to draw trees.")
    (license license:lppl)))

(define-public texlive-pst-turtle
  (package
    (name "texlive-pst-turtle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-turtle/"
                   "dvips/pst-turtle/"
                   "tex/generic/pst-turtle/"
                   "tex/latex/pst-turtle/")
             (base32
              "0mgpjs9jkgfx0hbd9l5jw60rf0vpdkv933ksjlwcjlh98y9gay4c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-turtle")
    (synopsis "Commands for Turtle operations")
    (description
     "This is a PSTricks related package for creating Turtle graphics.")
    (license license:lppl)))

(define-public texlive-pst-tvz
  (package
    (name "texlive-pst-tvz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-tvz/"
                   "source/generic/pst-tvz/"
                   "tex/generic/pst-tvz/" "tex/latex/pst-tvz/")
             (base32
              "1xpzvfgngv5r5cdnvip87wr1i0pmrc6ibwi5gzmibfzl64w7vkqr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-tvz")
    (synopsis "Draw trees with more than one root node, using PSTricks")
    (description
     "The package uses PSTricks to draw trees with more than one root node.
It is similar to @code{pst-tree}, though it uses a different placement
algorithm.")
    (license license:lppl1.3+)))

(define-public texlive-pst-uml
  (package
    (name "texlive-pst-uml")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-uml/"
                   "source/generic/pst-uml/"
                   "tex/latex/pst-uml/")
             (base32
              "0sgsyg9gk4wxgz7r44h6a7f5f7gl5b522f864n0kv35cgmwnzyr7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-multido))
    (home-page "https://ctan.org/pkg/pst-uml")
    (synopsis "UML diagrams with PSTricks")
    (description
     "This a PSTricks package that provides support for drawing moderately
complex UML (Universal Modelling Language) diagrams.  (The PDF documentation
is written in French.)")
    (license license:lppl)))

(define-public texlive-pst-vectorian
  (package
    (name "texlive-pst-vectorian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-vectorian/"
                   "dvips/pst-vectorian/"
                   "tex/latex/pst-vectorian/")
             (base32
              "0knvzl4gqz79jzvb4w7a9ka1iiz5f3pjivnwvwmd1kmibykqwb67")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-vectorian")
    (synopsis "Printing ornaments")
    (description
     "The package uses PSTricks to draw ornaments (a substantial repertoire of
ornaments is provided).")
    (license license:lppl)))

(define-public texlive-pst-vehicle
  (package
    (name "texlive-pst-vehicle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-vehicle/"
                   "tex/generic/pst-vehicle/"
                   "tex/latex/pst-vehicle/")
             (base32
              "1b0s5fy4w4k2q486sdwlrh649n99k9s5hy5m2v01lh7qnjl1z4c3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-vehicle")
    (synopsis "Rolling vehicles on graphs of mathematical functions")
    (description
     "This package permits to represent vehicles rolling without slipping on
mathematical curves.  Different types of vehicles are proposed, the shape of
the curve is to be defined by its equation in algebraic notation.")
    (license license:lppl1.3c)))

(define-public texlive-pst-venn
  (package
    (name "texlive-pst-venn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pst-venn/"
                   "tex/latex/pst-venn/")
             (base32
              "0gz7sxwycqd71yy8jln7h3v064mrzhh1852fc7b785v55x8kna2n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-venn")
    (synopsis "PSTricks package for drawing Venn sets")
    (description
     "This is a PSTricks related package for drawing Venn diagrams with three
circles.")
    (license license:lppl)))

(define-public texlive-pst-vowel
  (package
    (name "texlive-pst-vowel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pst-vowel/"
                   "tex/latex/pst-vowel/")
             (base32
              "0p0qnfbmd1lh21nk6xq246xr6y50q0y55rdcq3i9vkg4j7kkkfy6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pst-vowel")
    (synopsis "Enable arrows showing diphthongs on vowel charts")
    (description
     "The package extends the @code{vowel} package (distributed as part of the
@code{tipa} bundle) by allowing the user to draw arrows between vowels to show
relationships such as diphthong membership.")
    (license license:lppl)))

(define-public texlive-pst2pdf
  (package
    (name "texlive-pst2pdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/pst2pdf/" "scripts/pst2pdf/")
             (base32
              "0yihyrnwwpad5hf8yrjqljpwsnj6kcbb6y6cfnxwxbi1c5pf1jk9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pst2pdf.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/pst2pdf")
    (synopsis "Script to compile PSTricks documents via pdfTeX")
    (description
     "The script extracts the preamble of the document and runs all
@code{\\begin@{postscript@}...\\end@{postscript@}},
@code{\\begin@{pspicture@}...\\end@{pspicture@}} and
@code{\\pspicture...\\endpspicture} separately through LaTeX with the same
preamble as the original document; thus it creates EPS, PNG and PDF files of
these snippets.  In a final pdfLaTeX run the script replaces the environments
with @code{\\includegraphics} to include the processed snippets.")
    (license license:gpl2)))

(define-public texlive-pstricks-add
  (package
    (name "texlive-pstricks-add")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/pstricks-add/"
                   "dvips/pstricks-add/"
                   "tex/generic/pstricks-add/"
                   "tex/latex/pstricks-add/")
             (base32
              "18khs28v3dg5z7215k0yv7hxna9x5nh09hlrw2fc4nhmzymy2kjg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pstricks-add")
    (synopsis "Collection of add-ons and bugfixes for PSTricks")
    (description
     "This package collects together examples that have been posted to the
PSTricks mailing list, together with many additional features for the basic
@code{pstricks}, @code{pst-plot} and @code{pst-node}, including: bugfixes; new
options for the pspicture environment; arrows; braces as node
connection/linestyle; extended axes for plots (e.g., logarithm axes); polar
plots; plotting tangent lines of curves or functions; solving and printing
differential equations; box plots; matrix plots; and pie charts.")
    (license license:lppl)))

(define-public texlive-pstricks-calcnotes
  (package
    (name "texlive-pstricks-calcnotes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pstricks_calcnotes/")
             (base32
              "00vgcdf73p4143dfjcvs4b5v4phvisv76ink3iiijl6s6f9zbmy3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pstricks-calcnotes")
    (synopsis "Use of PSTricks in calculus lecture notes")
    (description
     "The bundle shows the construction of PSTricks macros to draw Riemann
sums of an integral and to draw the vector field of an ordinary differential
equation.  The results are illustrated in a fragment of lecture notes.")
    (license license:lppl)))

(define-public texlive-marginnote
  (package
    (name "texlive-marginnote")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/marginnote/"
                   "source/latex/marginnote/"
                   "tex/latex/marginnote/")
             (base32
              "1drmscvd14akcv7n6wl3d3cnj18cwkd7z7rm2gg7z43b89s7kdqr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/marginnote")
    (synopsis "Notes in the margin")
    (description "This package provides the command @code{\\marginnote} that
may be used instead of @code{\\marginpar} at almost every place where
@code{\\marginpar} cannot be used, e.g., inside floats, footnotes, or in
frames made with the @code{framed} package.")
    (license license:lppl1.3c+)))

(define-public texlive-tabu
  (package
    (name "texlive-tabu")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tabu/" "source/latex/tabu/"
                   "tex/latex/tabu/")
             (base32
              "0mixyrqavipq4ni38z42x3579cdjbz54cp2qqb4q4yhfbl0a4pka")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-varwidth))
    (home-page "https://ctan.org/macros/latex/contrib/tabu")
    (synopsis "Flexible LaTeX tabulars")
    (description
     "The package provides an environment, @code{tabu}, which will make any
sort of tabular, and an environment @code{longtabu} which provides the
facilities of @code{tabu} in a modified @code{longtable} environment.")
    (license license:lppl1.3+)))

(define-public texlive-uml
  (package
    (name "texlive-uml")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/uml/" "source/latex/uml/"
                   "tex/latex/uml/")
             (base32
              "039kg3xk03cm4xfsaj33kx1j5hjqy9330zxamqyzs1jnp8xgcfdz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/uml")
    (synopsis "UML diagrams in LaTeX")
    (description
     "This package provides a PSTricks related package for writing
UML (Unified Modelling Language) diagrams in LaTeX.  Currently, it implements
a subset of class diagrams, and some extra constructs as well.  The package
cannot be used together with @code{pst-uml}.")
    (license license:lppl)))

(define-public texlive-vaucanson-g
  (package
    (name "texlive-vaucanson-g")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/vaucanson-g/"
                   "tex/generic/vaucanson-g/")
             (base32
              "18ig6kszjr2jfr3hvq18clq8ccxbv2zw280pw20mphfjh6rjwbrj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/vaucanson-g")
    (synopsis "PSTricks macros for drawing automata")
    (description
     "VauCanSon-G is a package that enables the user to draw automata within
texts written using LaTeX.  The package macros make use of commands of
PSTricks.")
    (license license:lppl)))

(define-public texlive-vocaltract
  (package
    (name "texlive-vocaltract")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/vocaltract/"
                   "tex/latex/vocaltract/")
             (base32
              "072b712bhfxq429jh4r9d786nwpdyl8rlbm6ds4nf9asxg2lg9wr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/vocaltract")
    (synopsis "Visualise the vocal tract using LaTeX and PSTricks")
    (description
     "The package enables the user to visualise the vocal tract.  The vocal
tract (in the package) is manipulated by a vector of articulation parameters
according to the S. Maeda model.  Animation may be achieved by providing
a sequence of vectors over time (e.g., from Matlab).  A sequence of vectors
for certain German phonemes is embedded in the package, which allows for
animation when no other vector is available.  The package's graphics are
produced using PSTricks.")
    (license license:lppl)))

(define-public texlive-xkeyval
  (package
    (name "texlive-xkeyval")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xkeyval/" "source/latex/xkeyval/"
                   "tex/generic/xkeyval/" "tex/latex/xkeyval/")
             (base32
              "0nclsazny3hnzsi2vcixh2g1gsj5lvwxls1v569rms8ykgd9v7z8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:build-targets #~(list "xkeyval.dtx")
      #:tex-format "latex"              ;won't build with luatex
      #:phases
      #~(modify-phases %standard-phases
          ;; This package cannot be built out of tree as it expects to find
          ;; built files in the working directory.
          (add-before 'build 'fix-build
            (lambda _
              (setenv "TEXINPUTS" (string-append (getcwd) "/build:"))
              (substitute* "source/latex/xkeyval/xkeyval.dtx"
                (("usepackage\\{xcolor\\}")
                 "usepackage[dvips]{xcolor}")))))))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-footmisc
                  texlive-fourier
                  texlive-hypdoc
                  texlive-infwarerr
                  texlive-kvoptions
                  texlive-listings
                  texlive-lm
                  texlive-pgf
                  texlive-pst-text
                  texlive-pstricks
                  texlive-xcolor))))
    (home-page "https://ctan.org/pkg/xkeyval")
    (synopsis "Extension of the @code{keyval} package")
    (description
     "This package is an extension of the keyval package and offers additional
macros for setting keys and declaring and setting class or package options.
The package allows the programmer to specify a prefix to the name of the
macros it defines for keys, and to define families of key definitions; these
all help use in documents where several packages define their own sets of
keys.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-xkeyval texlive-xkeyval)

(define-public texlive-scikgtex
  (package
    (name "texlive-scikgtex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/scikgtex/"
                   "tex/lualatex/scikgtex/")
             (base32
              "0p7y7qd5kmlhr4v72x8krxihzjm80fkb65wh28rr2r54rw8ag3hc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/scikgtex")
    (synopsis
     "Mark research contributions in scientific documents and embed them in PDF metadata")
    (description
     "Scientific Knowledge Graph TeX (SciKgTeX) is a LuaLaTeX package which
makes it possible to annotate specific research contributions in scientific
documents.  SciKGTeX will enrich the document by adding the marked
contributions to PDF metadata in a structured XMP format which can be picked
up by search engines and knowledge graphs.")
    (license license:expat)))

(define-public texlive-selnolig
  (package
    (name "texlive-selnolig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/selnolig/"
                   "tex/lualatex/selnolig/")
             (base32
              "0xx3agmd7ply84jjx1kcg4jpix7qg1y3wrd2kr7dv74jw5cffrfq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/selnolig")
    (synopsis "Selectively disable typographic ligatures")
    (description
     "The package suppresses typographic ligatures selectively, i.e., based on
predefined search patterns.  The search patterns focus on ligatures deemed
inappropriate because they span morpheme boundaries.")
    (license license:lppl1.3+)))

(define-public texlive-showhyphenation
  (package
    (name "texlive-showhyphenation")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/showhyphenation/"
                   "tex/lualatex/showhyphenation/")
             (base32
              "0v8rjr828pzcn85zqbrw3fnrfyvn7cscqyg5mm08wyay990lkhny")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/showhyphenation")
    (synopsis "Marking of hyphenation points")
    (description
     "The package shows the hyphenation points in the document by either
inserting small triangles below the baseline or by typesetting explicit
hyphens.  The markers are correctly placed even within ligatures and their
size adjusts to the font size.  By option the markers can be placed behind or
in front of the glyphs.  The package requires LuaLaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-showkerning
  (package
    (name "texlive-showkerning")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/showkerning/"
                   "tex/lualatex/showkerning/")
             (base32
              "0kd20scd9mv7zmsfz9wy321j07fwkll94cbfpqllzn0jk80qgxgm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/showkerning")
    (synopsis "Showing kerns in a document")
    (description
     "The package displays all kerning values in the form of colored bars
directly at the respective position in the document.  Positive values are
displayed in green, negative values in red.  The width of the bars corresponds
exactly to the respective kerning value.  By option the bars can be placed
behind or in front of the glyphs.  The package requires LuaLaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-spacekern
  (package
    (name "texlive-spacekern")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/spacekern/"
                   "tex/lualatex/spacekern/")
             (base32
              "0rmdg9daqp0fallznsqsr0475z7cw0djhxq6dwkyk5yg8ii9c6s9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/spacekern")
    (synopsis "Kerning between words and against space")
    (description
     "This package provides two shorthands for typesetting breaking and
non-breaking small spaces, where both hyphenation and kerning against space
are correctly applied.  Additionally, interword kerning can be applied.")
    (license license:lppl1.3c)))

(define-public texlive-spelling
  (package
    (name "texlive-spelling")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/spelling/" "scripts/spelling/"
                   "tex/luatex/spelling/")
             (base32
              "1pg4jz1rxpjc9648b53zbnwrn59id9iv8b1jfwl6nqj58q285w7q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/spelling")
    (synopsis "Support for spell-checking of LuaTeX documents")
    (description
     "The package aids spell-checking of TeX documents compiled with the
LuaTeX engine.  It can give visual feedback in PDF output similar to WYSIWYG
word processors.  The package relies on an external spell-checker application
to check spelling of a text file and to output a list of bad spellings.  The
package should work with most spell-checkers, even dumb, TeX-unaware ones.")
    (license license:lppl1.3+)))

(define-public texlive-standalone
  (package
    (name "texlive-standalone")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/standalone/"
                   "source/latex/standalone/"
                   "tex/latex/standalone/")
             (base32
              "055mz0r837ipb6f0v7lp2imwpy1zh0i45wkd5f1dbpjpb9gf7qny")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (propagated-inputs
     (list texlive-adjustbox
           texlive-currfile
           texlive-filemod
           texlive-gincltex
           texlive-xkeyval))
    (home-page "https://ctan.org/pkg/standalone")
    (synopsis "Compile TeX pictures stand-alone or as part of a document")
    (description
     "This package provides a class and package is provided which allows TeX
pictures or other TeX code to be compiled standalone or as part of a main
document.  Special support for pictures with @code{beamer} overlays is also
provided.  The package is used in the main document and skips extra preambles
in sub-files.  The class may be used to simplify the preamble in sub-files.
By default the @code{preview} package is used to display the typeset code
without margins.")
    (license license:lppl1.3+)))

(define-public texlive-stricttex
  (package
    (name "texlive-stricttex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/stricttex/"
                   "tex/lualatex/stricttex/")
             (base32
              "1ddlcwj1bnj6zrkljkz3jywgri34f4g9gshbwd0lzz4nz03v82rv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/stricttex")
    (synopsis "Strictly balanced brackets and numbers in command names")
    (description
     "This is a small, LuaLaTeX-only package providing you with three,
sometimes useful features.  It allows you to make brackets @samp{[...]}
strict, meaning that each @samp{[} must be balanced by a @samp{]}.  It also
allows you to use numbers and primes in command names.")
    (license license:lppl1.3c)))

(define-public texlive-siunitx
  (package
    (name "texlive-siunitx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/siunitx/" "source/latex/siunitx/"
                   "tex/latex/siunitx/")
             (base32
              "14rgn7lm5iy15jxcdwrkkp6rmi569x1x7qir82k89xl49k1rr2d1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-l3kernel texlive-l3packages))
    (home-page "https://www.ctan.org/pkg/siunitx")
    (synopsis "Comprehensive SI units package")
    (description
     "Typesetting values with units requires care to ensure that the combined
mathematical meaning of the value plus unit combination is clear.  In
particular, the SI units system lays down a consistent set of units with rules
on how they are to be used.  However, different countries and publishers have
differing conventions on the exact appearance of numbers (and units).  A
number of LaTeX packages have been developed to provide consistent application
of the various rules.  The @code{siunitx} package takes the best from the
existing packages, and adds new features and a consistent interface.  A number
of new ideas have been incorporated, to fill gaps in the existing provision.
The package also provides backward-compatibility with @code{SIunits},
@code{sistyle}, @code{unitsdef} and @code{units}.  The aim is to have one
package to handle all of the possible unit-related needs of LaTeX users.")
    (license license:lppl1.3c)))

(define-public texlive-booktabs
  (package
    (name "texlive-booktabs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/booktabs/" "source/latex/booktabs/"
                   "tex/latex/booktabs/")
             (base32
              "0pv2kv4hgayqfcij2sz1jmk6kbxqccyaksz8xlw5kvqrbag9vxm3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/booktabs")
    (synopsis "Publication quality tables in LaTeX")
    (description
     "This package enhances the quality of tables in LaTeX, providing extra
commands as well as behind-the-scenes optimisation.  Guidelines are given as
to what constitutes a good table in this context.  The package offers
@code{longtable} compatibility.")
    (license license:lppl1.3+)))

(define-public texlive-csquotes
  (package
    (name "texlive-csquotes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/csquotes/" "tex/latex/csquotes/")
             (base32
              "0657rvaciq5h4qp2hg9d2w2i663p5cnxygi6dj9w61463m4nkpy6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-etoolbox))
    (home-page "https://www.ctan.org/pkg/csquotes")
    (synopsis "Context sensitive quotation facilities")
    (description
     "This package provides advanced facilities for inline and display
quotations.  It is designed for a wide range of tasks ranging from the most
simple applications to the more complex demands of formal quotations.  The
facilities include commands, environments, and user-definable smart quotes
which dynamically adjust to their context.  Quotation marks are switched
automatically if quotations are nested and they can be adjusted to the current
language if the babel package is available.  There are additional facilities
designed to cope with the more specific demands of academic writing,
especially in the humanities and the social sciences.  All quote styles as
well as the optional active quotes are freely configurable.")
    (license license:lppl1.3c+)))

(define-public texlive-csquotes-de
  (package
    (name "texlive-csquotes-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/csquotes-de/")
             (base32
              "087c08c44811vd8p00l1xrkg5w6fsl8as64jq83m6gf1hfan9w4c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/csquotes-de")
    (synopsis "German translation of @code{csquotes} documentation")
    (description
     "This is a German translation of the documentation of @code{csquotes}.")
    (license license:lppl)))

(define-public texlive-dhua
  (package
    (name "texlive-dhua")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dhua/" "source/latex/dhua/"
                   "tex/latex/dhua/")
             (base32
              "0npf0bz5cdl6a98gc4l66v0hxwgg94af31bdrz8xai6r4vwjbzhl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dhua")
    (synopsis "German abbreviations using thin space")
    (description
     "The package provides commands for those abbreviations of German phrases
for which the use of thin space is recommended.")
    (license license:lppl1.3+)))

(define-public texlive-dtk-bibliography
  (package
    (name "texlive-dtk-bibliography")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/dtk-bibliography/"
                   "doc/bibtex/dtk-bibliography/"
                   "tex/latex/dtk-bibliography/")
             (base32
              "1mrlm2yrzrafq2xhk6mc70wc55ngrxylhxrl3qmgz0yxag5yspn8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dtk-bibliography")
    (synopsis "Bibliography of @emph{Die TeXnische Komodie}")
    (description
     "This package contains the bibliography for @emph{Die TeXnische Komodie},
the journal of the German-speaking TeX User Group.")
    (license license:lppl1.3c)))

(define-public texlive-etdipa
  (package
    (name "texlive-etdipa")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/etdipa/")
             (base32
              "1jp35apalaa1lh44dbn1zayavv1n3wkm0v69hgy8vdz73yp5yvhz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/etdipa")
    (synopsis "Simple, lightweight template for scientific documents")
    (description
     "This package provides a complete working directory for the scientific
documentation of arbitrary projects.  It was originally developed to provide
a template for Austrian @emph{Diplomarbeiten} or @emph{Vorwissenschaftliche
Arbeiten}, which are scientfic projects of students at a secondary school.")
    (license license:lppl1.3+)))

(define-public texlive-etoolbox-de
  (package
    (name "texlive-etoolbox-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/etoolbox-de/")
             (base32
              "1vchha7ymvj51jfnvl76rxv466lzfpxr6xcvwafxhi78w4bk9yry")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/etoolbox-de")
    (synopsis "German translation of documentation of @code{etoolbox}")
    (description "This package provides the German translation of
@code{etoolbox} documentation.")
    (license license:lppl)))

(define-public texlive-fifinddo-info
  (package
    (name "texlive-fifinddo-info")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fifinddo-info/"
                   "source/latex/fifinddo-info/")
             (base32
              "0m95qyd5kbaa2x8rpjwr6f9c76ajg6l49igzw9yb0hcrwwg7cni6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fifinddo-info")
    (synopsis "German HTML beamer presentation on nicetext and morehype")
    (description
     "The bundle: exhibits the process of making an HTML beamer presentation
with the @code{blogdot} package from the @code{morehype} bundle, and HTML
generation based on the @code{fifinddo} package.")
    (license license:lppl1.3+)))

(define-public texlive-german
  (package
    (name "texlive-german")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/german/"
                   "source/generic/german/"
                   "tex/generic/german/")
             (base32
              "0n17j7rc69kxgs3b2cyxjb8hsh6bc9aydxf90x98rdc2ardl9idg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/german")
    (synopsis "Support for German typography")
    (description
     "This package provides supports the old German orthography (alte deutsche
Rechtschreibung).")
    (license license:lppl)))

(define-public texlive-germbib
  (package
    (name "texlive-germbib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/germbib/" "doc/bibtex/germbib/"
                   "tex/latex/germbib/")
             (base32
              "1mc95h4ndzbg2q30vsq2rx9v0a8f0q0vhmjiz709lllkmj6n402p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/germbib")
    (synopsis "German variants of standard BibTeX styles")
    (description
     "This package provides a development of the (old) @file{german.sty}, this
bundle provides German packages, BibTeX styles and documentary examples, for
writing documents with bibliographies.  The author has since developed the
@code{babelbib} bundle, which (he asserts) supersedes @code{germbib}.")
    ;; The license is a variation of Knuth's.
    (license (license:fsf-free "file://doc/bibtex/germbib/apalike.tex"))))

(define-public texlive-germkorr
  (package
    (name "texlive-germkorr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/germkorr/" "tex/latex/germkorr/")
             (base32
              "0qgh3j97dljwh7625m577jcsvqhfkas3jn4q09m05jsjfxb7n2bx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/germkorr")
    (synopsis "Change kerning for German quotation marks")
    (description
     "The package brings some letters nearer to German single and double
quotes even when that letter wears a standard accent")
    (license license:gpl3+)))

(define-public texlive-hausarbeit-jura
  (package
    (name "texlive-hausarbeit-jura")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hausarbeit-jura/"
                   "source/latex/hausarbeit-jura/"
                   "tex/latex/hausarbeit-jura/")
             (base32
              "14raizfrrfnwdgwaq9irxdkg2mg280csjcirsxjq4rpdwqg2nkwh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hausarbeit-jura")
    (synopsis
     "Class for writing @emph{juristische Hausarbeiten} at German Universities")
    (description
     "The class was developed for use by students writing legal
essays (@emph{juristische Hausarbeit}) at German Universities.  It is based on
@code{jurabook} and @code{jurabib} and makes it easy for LaTeX beginners to
get a correct and nicely formatted paper.")
    (license license:lppl1.3+)))

(define-public texlive-logreq
  (package
    (name "texlive-logreq")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/logreq/" "tex/latex/logreq/")
             (base32
              "13difccs3cxlkqlnhw286yb0c7mifrxfd402a2x5wwxv0m1kgfqd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-etoolbox))
    (home-page "https://ctan.org/pkg/logreq")
    (synopsis "Support for automation of the LaTeX workflow")
    (description
     "The package helps to automate a typical LaTeX workflow that involves
running LaTeX several times, running tools such as BibTeX or makeindex, and so
on.  It will log requests like ``please rerun LaTeX'' or ``please run BibTeX
on file X'' to an external XML file which lists all open tasks in
a machine-readable format.  Compiler scripts and integrated LaTeX editing
environments may parse this file to determine the next steps in the
workflow. In sum, the package will do two things: enable package authors to
use LaTeX commands to issue requests, collect all requests from all packages
and write them to an external XML file at the end of the document.")
    (license license:lppl1.3+)))

(define-public texlive-biblatex
  (package
    (name "texlive-biblatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bib/biblatex/biblatex/"
                   "bibtex/bst/biblatex/" "doc/latex/biblatex/"
                   "tex/latex/biblatex/")
             (base32
              "08wvsdwcixj50kklv4zwjs9rpjmhwzxxd242hvyi6lzkd7r0fnq4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-etoolbox
           texlive-kvoptions
           texlive-logreq
           texlive-pdftexcmds
           texlive-url))
    (home-page "https://ctan.org/pkg/biblatex")
    (synopsis "Sophisticated Bibliographies in LaTeX")
    (description
     "BibLaTeX is a complete reimplementation of the bibliographic facilities
provided by LaTeX.  Formatting of the bibliography is entirely controlled by
LaTeX macros, and a working knowledge of LaTeX should be sufficient to design
new bibliography and citation styles.  BibLaTeX uses its own data backend
program called @code{biber} to read and process the bibliographic data.  With
@code{biber}, the range of features provided by BibLaTeX includes full Unicode
support, customisable bibliography labels, multiple bibliographies in the same
document, and subdivided bibliographies, such as bibliographies per chapter or
section.")
    (license license:lppl1.3+)))

(define-public texlive-biblatex-apa
  (package
    (name "texlive-biblatex-apa")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/biblatex-apa/"
                   "tex/latex/biblatex-apa/")
             (base32
              "1igzmgzfchn54zkb78fwsdk2lqs2pp0ydzzcmk1cydhmsfrjya4l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/biblatex-apa")
    (synopsis "BibLaTeX citation and reference style for APA")
    (description
     "This is a fairly complete BibLaTeX style (citations and references) for
APA (American Psychological Association) publications.  It implements and
automates most of the guidelines in the APA 7th edition style guide for
citations and references.")
    (license license:lppl1.3c)))

(define-public texlive-truthtable
  (package
    (name "texlive-truthtable")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/truthtable/"
                   "tex/lualatex/truthtable/")
             (base32
              "193326nni5xnjkz9hhc1pjzkv0qrbz73irz6vixd8igpbavi2dzv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/truthtable")
    (synopsis
     "Automatically generate truth tables for given variables and statements")
    (description
     "This LuaLaTeX package permits to automatically generate truth tables
given a table header.  It supports a number of logical operations which can be
combined as needed.")
    (license license:lppl1.3c)))

(define-public texlive-todonotes
  (package
    (name "texlive-todonotes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/todonotes/"
                   "source/latex/todonotes/"
                   "tex/latex/todonotes/")
             (base32
              "0gw9ny0s048kq78m2njrv2m6y4z0rck58i9nc892vl93h7gi4p1v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-pgf texlive-tools texlive-xcolor texlive-xkeyval))
    (home-page "https://ctan.org/pkg/todonotes")
    (synopsis "Marking things to do in a LaTeX document")
    (description
     "The @code{todonotes} package lets the user mark things to do later, in
a simple and visually appealing way.  The package takes several options to
enable customization and finetuning of the visual appearance.")
    (license license:lppl1.3+)))

(define-public texlive-tsvtemplate
  (package
    (name "texlive-tsvtemplate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/tsvtemplate/"
                   "tex/luatex/tsvtemplate/")
             (base32
              "05q1vfsy9w0pmc489dl995iqr9srdv107mj89nlc269m3wjnwn7a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tsvtemplate")
    (synopsis "Apply a template to a TSV file")
    (description
     "This is a simple TSV (tab-separated values) reader for LuaLaTeX and
plain LuaTeX.  It also supports (non-quoted) comma-separated values, or indeed
values separated by any character.")
    (license license:eupl1.2)))

(define-public texlive-typewriter
  (package
    (name "texlive-typewriter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/typewriter/"
                   "tex/lualatex/typewriter/")
             (base32
              "00c53vbm8fchjggi3h1w49y07ma4cmmliqx2bhkvis6qsqgddw5f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/typewriter")
    (synopsis "Typeset with a randomly variable monospace font")
    (description
     "The typewriter package uses the OpenType Computer Modern Unicode
Typewriter font, together with a LuaTeX virtual font setup that introduces
random variability in grey level and angle of each character.")
    (license license:lppl)))

(define-public texlive-uninormalize
  (package
    (name "texlive-uninormalize")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/uninormalize/"
                   "tex/lualatex/uninormalize/")
             (base32
              "1c4pki1yw5599s9nyj1ir7j26mgbhf1iw7m44685d8la9vbzv8dm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/uninormalize")
    (synopsis "Unicode normalization support")
    (description
     "This package provides Unicode normalization (useful for composed
characters) for LuaLaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-units
  (package
    (name "texlive-units")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/units/" "source/latex/units/"
                   "tex/latex/units/")
             (base32
              "1mrdsg55f40cvarrx84gbhrnsk8mlv915nll17lnfzfapgmvjsbl")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/units")
    (synopsis "Typeset physical units and fractions")
    (description "@code{units} is a package for typesetting physical units in
a standard-looking way.  The package is based upon @code{nicefrac}, a package
for typing fractions.  @code{nicefrac} is included in the @code{units}
bundle.")
    (license license:gpl3+)))

(define-public texlive-microtype
  (package
    (name "texlive-microtype")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/microtype/"
                   "source/latex/microtype/"
                   "tex/latex/microtype/")
             (base32
              "039v1dw3n4lnd8ipazlkb7p5abqcrigjayx797ggh3ak8dcqwlli")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/microtype")
    (synopsis "Subliminal refinements towards typographical perfection")
    (description
     "The package provides a LaTeX interface to the micro-typographic
extensions that were introduced by pdfTeX and have since also propagated to
XeTeX and LuaTeX: most prominently, character protrusion and font expansion,
furthermore the adjustment of interword spacing and additional kerning, as
well as hyphenatable letterspacing (tracking) and the possibility to disable
all or selected ligatures.  These features may be applied to customisable sets
of fonts, and all micro-typographic aspects of the fonts can be configured in
a straight-forward and flexible way.  An alternative package
@code{letterspace}, which also works with plain TeX, is included in the
bundle.")
    (license license:lppl1.3c)))

(define-public texlive-microtype-de
  (package
    (name "texlive-microtype-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/microtype-de/")
             (base32
              "069d2f0jcg9m4fv8dli2dr9ags9gz6mkwy6fzz37ns4jzrqfsvwi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/microtype-de")
    (synopsis "Translation into German of the documentation of @code{microtype}")
    (description
     "This package provides the translation into German of the documentation
of @code{microtype}.")
    (license license:lppl1.3+)))

(define-public texlive-minitoc
  (package
    (name "texlive-minitoc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/minitoc/"
                   "tex/latex/minitoc/")
             (base32
              "0yd1na5b9m7z1j87a5fjwjqddfpiblfbpzcv0vlvql6lwh38mii7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/minitoc")
    (synopsis "Produce a table of contents for each chapter, part or section")
    (description
     "The @code{minitoc} package allows you to add
mini-tables-of-contents (minitocs) at the beginning of every chapter, part or
section.  There is also provision for mini-lists of figures and of tables.  At
the part level, they are parttocs, partlofs and partlots.  If the type of
document does not use chapters, the basic provision is section level secttocs,
sectlofs and sectlots.  The package has provision for language-specific
configuration of its own fixed names, using @file{.mld} files.")
    (license license:lppl1.3+)))

(define-public texlive-minted
  (package
    (name "texlive-minted")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/minted/" "source/latex/minted/"
                   "tex/latex/minted/")
             (base32
              "1z2vagia7sbfa134qj3dfdkppy0v4yjykaj594c6z9qy1z5jn5mc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list python-pygments
           texlive-catchfile
           texlive-etoolbox
           texlive-fancyvrb
           texlive-float
           texlive-framed
           texlive-fvextra
           texlive-graphics
           texlive-ifplatform
           texlive-kvoptions
           texlive-lineno
           texlive-pdftexcmds
           texlive-tools
           texlive-upquote
           texlive-xcolor
           texlive-xstring))
    (home-page "https://ctan.org/pkg/minted")
    (synopsis "Highlighted source code for LaTeX")
    (description
     "The package that facilitates expressive syntax highlighting in LaTeX
using the powerful Pygments library.  The package also provides options to
customize the highlighted source code output using @code{fancyvrb}.")
    (license license:lppl1.3+)))

(define-public texlive-caption
  (package
    (name "texlive-caption")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/caption/" "source/latex/caption/"
                   "tex/latex/caption/")
             (base32
              "1hgd52dxm35k63jb2vxrkghlaq41h89bwbqyihaim2h06kmnpb0r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/caption")
    (synopsis "Customising captions in floating environments")
    (description
     "The @code{caption} package provides many ways to customise the captions
in floating environments like figure and table, and cooperates with many other
packages.  Facilities include rotating captions, sideways captions, continued
captions (for tables or figures that come in several parts).  A list of
compatibility notes, for other packages, is provided in the documentation.
The package also provides the caption outside float facility, in the same way
that simpler packages like capt-of do.")
    (license license:lppl1.3+)))

(define-public texlive-symbol
  (package
    (name "texlive-symbol")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "dvips/symbol/"
                   "fonts/afm/adobe/symbol/"
                   "fonts/afm/urw/symbol/"
                   "fonts/map/dvips/symbol/"
                   "fonts/tfm/adobe/symbol/"
                   "fonts/tfm/monotype/symbol/"
                   "fonts/tfm/urw35vf/symbol/"
                   "fonts/type1/urw/symbol/"
                   "tex/latex/symbol/")
             (base32
              "1pdkpr86bhia5hcmf7q3nhvklnsga4mqqrrirgl8a7al7x6q3ivs")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/urw-base35")
    (synopsis "Replacement for Adobe's Symbol font")
    (description
     "This package provides a drop-in replacement for the Symbol font from
Adobe's basic set.")
    (license license:gpl3+)))

(define-public texlive-mathpazo
  (package
    (name "texlive-mathpazo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathpazo/"
                   "fonts/afm/public/mathpazo/"
                   "fonts/tfm/public/mathpazo/"
                   "fonts/type1/public/mathpazo/"
                   "fonts/vf/public/mathpazo/"
                   "source/latex/mathpazo/")
             (base32
              "0g10rjgg1kb78lgyxmwjrkgpy24yq3v0m47h6zhbc68rrmmawvwp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-fpl texlive-palatino))
    (home-page "https://ctan.org/pkg/mathpazo")
    (synopsis "Fonts to typeset mathematics to match Palatino")
    (description "The Pazo Math fonts are a family of PostScript fonts
suitable for typesetting mathematics in combination with the Palatino family
of text fonts.  The Pazo Math family is made up of five fonts provided in
Adobe Type 1 format.  These contain glyphs that are usually not available in
Palatino and for which Computer Modern looks odd when combined with Palatino.
These glyphs include the uppercase Greek alphabet in upright and slanted
shapes, the lowercase Greek alphabet in slanted shape, several mathematical
glyphs and the uppercase letters commonly used to represent various number
sets.  LaTeX macro support is provided in package @code{psnfss}.")
    (license license:gpl3+)))

(define-public texlive-mathspec
  (package
    (name "texlive-mathspec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/mathspec/"
                   "tex/xelatex/mathspec/")
             (base32
              "0bfdzlim2kkvfzs8p7brwlc46qy41hvxb72xr53ijg2kplsqmkh8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathspec")
    (synopsis "Specify arbitrary fonts for mathematics in XeTeX")
    (description
     "The mathspec package provides an interface to typeset mathematics in
XeLaTeX with arbitrary text fonts using @code{fontspec} as a backend.")
    (license license:lppl)))

(define-public texlive-mathtools
  (package
    (name "texlive-mathtools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mathtools/"
                   "source/latex/mathtools/"
                   "tex/latex/mathtools/")
             (base32
              "11rs5wd1m5f3y309gdlq47vj3xzs8m87qlbd7b6glhq8lx8wfbd6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathtools")
    (synopsis "Mathematical tools to use with @code{amsmath}")
    (description
     "Mathtools provides a series of packages designed to enhance the
appearance of documents containing a lot of mathematics.  It is based on
@code{amsmath} and fixes various deficiencies of it and standard LaTeX.  It
provides:
@itemize
@item Extensible symbols, such as brackets, arrows, harpoons, etc.;
@item Various symbols such as \\coloneqq (:=);
@item Easy creation of new tag forms;
@item Showing equation numbers only for referenced equations;
@item Extensible arrows, harpoons and hookarrows;
@item Starred versions of the @code{matrix} environments for specifying the
column alignment;
@item More building blocks: multlined, cases-like environments, new gathered
environments;
@item Maths versions of @code{\\makebox}, @code{\\llap}, @code{\\rlap} etc.;
@item Cramped math styles; and more...
@end itemize")
    (license license:lppl1.3c)))

(define-public texlive-memoir
  (package
    (name "texlive-memoir")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/memoir/" "makeindex/memoir/"
                   "source/latex/memoir/" "tex/latex/memoir/")
             (base32
              "10jf0kiwvgrki8az04b57v0ffm6b3jj1rz3q6fgxhnrbsd68iphr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/memoir")
    (synopsis "Typeset fiction, non-fiction and mathematical books")
    (description
     "The @code{memoir} class is for typesetting poetry, fiction,
non-fiction, and mathematical works.  Permissible document base font sizes
range from 9 to 60pt.  There is a range of page-styles and well over a dozen
chapter-styles to choose from, as well as methods for specifying your own
layouts and designs.  The class also provides the functionality of over thirty
of the more popular packages, thus simplifying document sources.")
    (license license:lppl1.3+)))

(define-public texlive-milog
  (package
    (name "texlive-milog")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/milog/" "tex/latex/milog/")
             (base32
              "1114i8hgs84nnvmkiy8azbh6rgk0gjzp387idvvkx651vcyc82kf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/milog")
    (synopsis
     "LaTeX class for documentation duties according to the German minimum wage law
MiLoG")
    (description
     "The @file{milog.cls} class provides means to fulfill the documentation
duties by the German minimum wage law MiLoG.  The recording of working hours
is carried out in a simple CSV file from which the class will automatically
create a time sheet.  Alternatively, data can also be collected by a CSV
export of a suitable app.")
    (license license:lppl)))

(define-public texlive-fp
  (package
    (name "texlive-fp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fp/" "tex/latex/fp/"
                   "tex/plain/fp/")
             (base32
              "1q555fx71cf88sn3npzb0j2i10ak920k0qc9ccdygz99vqg10dad")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fp")
    (synopsis "Fixed point arithmetic")
    (description
     "This package provides an extensive collection of arithmetic operations
for fixed point real numbers of high precision.")
    (license license:lppl)))

(define-public texlive-fpl
  (package
    (name "texlive-fpl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fpl/" "fonts/afm/public/fpl/"
                   "fonts/type1/public/fpl/" "source/fonts/fpl/")
             (base32
              "02gkl516z9kn8xqs269pdkqn37sxm8ib0pcs43s4rs2rhyyl5z68")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fpl")
    (synopsis "SC and OsF fonts for URW Palladio L")
    (description "The FPL Fonts provide a set of SC/OsF fonts for URW
Palladio L which are compatible with the Palatino SC/OsF fonts from
Adobe.  LaTeX use is enabled by the mathpazo package, which is part of
the @code{psnfss} distribution.")
    ;; Either LPPL version 1.0 or later, or GPL version 2
    (license (list license:lppl1.0+ license:gpl2))))

(define-public texlive-arabxetex
  (package
    (name "texlive-arabxetex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/xelatex/arabxetex/"
                   "fonts/misc/xetex/fontmapping/arabxetex/"
                   "source/xelatex/arabxetex/"
                   "tex/xelatex/arabxetex/")
             (base32
              "097lh7ksw9rg93f1c7a4fqglgfpydf1qp3sbgy9xfgszcdpknmrk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:tex-format "xelatex"
      #:phases
           #~(modify-phases %standard-phases
               ;; Use dummy fonts to avoid pulling in needless dependencies.
               ;; We're only interested in building the package, not the
               ;; documentation.
               (add-after 'unpack 'change-fonts
                 (lambda _
                   (substitute* "source/xelatex/arabxetex/arabxetex.dtx"
                     (("(newfontfamily.*?\\{)[^}]+}" _ prefix)
                      (string-append prefix "FreeSans}"))
                     (("(set(main|mono|sans)font(\\[.*?])?\\{)[^}]+}" _ prefix)
                      (string-append prefix "FreeSans}"))))))))
    (native-inputs
     (list fontconfig
           font-gnu-freefont
           texlive-amsmath
           texlive-amsfonts
           texlive-bidi
           texlive-fancyvrb
           texlive-fontspec
           texlive-hologo
           texlive-hypdoc
           texlive-hyperref
           texlive-infwarerr
           texlive-kvdefinekeys
           texlive-kvoptions
           texlive-kvsetkeys
           texlive-ltxcmds
           texlive-paralist
           texlive-pdftexcmds
           texlive-supertabular
           texlive-tools
           texlive-xetex
           texlive-xkeyval
           texlive-zref))
    (home-page "https://ctan.org/pkg/arabxetex")
    (synopsis "ArabTeX-like interface for XeLaTeX")
    (description
     "ArabXeTeX provides a convenient ArabTeX-like user-interface for
typesetting languages using the Arabic script in XeLaTeX, with flexible access
to font features.  Input in ArabTeX notation can be set in three different
vocalization modes or in roman transliteration.  Direct UTF-8 input is also
supported.")
    (license license:lppl1.3c)))

(define-public texlive-arev
  (package
    (name "texlive-arev")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/arev/"
                   "fonts/afm/public/arev/"
                   "fonts/enc/dvips/arev/"
                   "fonts/map/dvips/arev/"
                   "fonts/tfm/public/arev/"
                   "fonts/type1/public/arev/"
                   "fonts/vf/public/arev/"
                   "source/fonts/arev/"
                   "tex/latex/arev/")
             (base32
              "1a0zw9vc6z0shxvb4kdhfqdhwpzph5hm9v7klpchlisabvk421y1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/arev")
    (synopsis "Fonts and LaTeX support files for Arev Sans")
    (description
     "The @code{arev} package provides type 1 fonts, virtual fonts and LaTeX
packages for using Arev Sans in both text and mathematics.  Arev Sans is
a derivative of Bitstream Vera Sans, adding support for Greek and Cyrillic
characters and a few variant letters appropriate for mathematics.  The font is
primarily used in LaTeX for presentations, particularly when using a computer
projector.  Arev Sans has large x-height, open letters, wide spacing and thick
stems.  The style is very similar to the SliTeX font @code{lcmss} but heavier.
Arev is one of a very small number of sans-font mathematics support
packages.")
    (license (list license:silofl1.1    ;for Arev Sans
                   license:lppl1.3a     ;for TeX support files
                   license:gpl2))))     ;for ams-mdbch.sty

(define-public texlive-awesomebox
  (package
    (name "texlive-awesomebox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/awesomebox/"
                   "tex/latex/awesomebox/")
             (base32
              "0jmxhas12fs30x2csv1rbsjr71a60fv2r3i5q7xd5n9zmmrnh32f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/awesomebox")
    (synopsis "Draw admonition blocks in your documents")
    (description
     "Awesome Box is all about drawing admonition blocks around text to inform
or alert readers about something particular.  The specific aim of this package
is to use FontAwesome icons to ease the illustration of these blocks.")
    (license license:wtfpl2)))

(define-public texlive-mathdesign
  (package
    (name "texlive-mathdesign")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/mathdesign/"
                   "dvips/mathdesign/"
                   "fonts/enc/dvips/mathdesign/"
                   "fonts/map/dvips/mathdesign/"
                   "fonts/tfm/public/mathdesign/mdbch/"
                   "fonts/tfm/public/mathdesign/mdgreek/"
                   "fonts/tfm/public/mathdesign/mdici/"
                   "fonts/tfm/public/mathdesign/mdpgd/"
                   "fonts/tfm/public/mathdesign/mdpus/"
                   "fonts/tfm/public/mathdesign/mdput/"
                   "fonts/tfm/public/mathdesign/mdugm/"
                   "fonts/type1/public/mathdesign/mdbch/"
                   "fonts/type1/public/mathdesign/mdici/"
                   "fonts/type1/public/mathdesign/mdpgd/"
                   "fonts/type1/public/mathdesign/mdpus/"
                   "fonts/type1/public/mathdesign/mdput/"
                   "fonts/type1/public/mathdesign/mdugm/"
                   "fonts/vf/public/mathdesign/mdbch/"
                   "fonts/vf/public/mathdesign/mdgreek/"
                   "fonts/vf/public/mathdesign/mdici/"
                   "fonts/vf/public/mathdesign/mdpgd/"
                   "fonts/vf/public/mathdesign/mdpus/"
                   "fonts/vf/public/mathdesign/mdput/"
                   "fonts/vf/public/mathdesign/mdugm/"
                   "tex/latex/mathdesign/")
             (base32
              "0jcby2sd0l3ank2drxc0qcf5d1cwa8idzh4g91h4nxk8zrzxj8nr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mathdesign")
    (synopsis "Mathematical fonts to fit with particular text fonts")
    (description
     "The Math Design project offers mathematical fonts that match with
existing text fonts.  To date, three free font families are available: Adobe
Utopia, URW Garamond and Bitstream Charter.  Mathdesign covers the whole LaTeX
glyph set including AMS symbols.  Both roman and bold versions of these
symbols can be used.  Moreover, there is a choice between three greek
fonts (two of them created by the Greek Font Society).")
    (license license:gpl3+)))

(define-public texlive-bera
  (package
    (name "texlive-bera")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/bera/"
                   "fonts/afm/public/bera/"
                   "fonts/map/dvips/bera/"
                   "fonts/tfm/public/bera/"
                   "fonts/type1/public/bera/"
                   "fonts/vf/public/bera/"
                   "tex/latex/bera/")
             (base32
              "1pkmhhr6ah44xhipjr7nianv03hr4w4bn45xcvp264yw6ymqzqwr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bera")
    (synopsis "Bera fonts")
    (description "The @code{bera} package contains the Bera Type 1 fonts and
files to use the fonts with LaTeX.  Bera is a set of three font families: Bera
Serif (a slab-serif Roman), Bera Sans (a Frutiger descendant) and Bera
Mono (monospaced/typewriter).  The Bera family is a repackaging, for use with
TeX, of the Bitstream Vera family.")
    (license license:silofl1.1)))

(define-public texlive-fourier
  (package
    (name "texlive-fourier")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/fourier/"
                   "fonts/afm/public/fourier/"
                   "fonts/map/dvips/fourier/"
                   "fonts/opentype/public/fourier/"
                   "fonts/tfm/public/fourier/"
                   "fonts/type1/public/fourier/"
                   "fonts/vf/public/fourier/"
                   "tex/latex/fourier/")
             (base32
              "10nw0s3820mf4nv4b655cfvm8asjb1q71yd21cnm8zjxj0xpcrpx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fourier")
    (synopsis "Using Utopia fonts for LaTeX documents")
    (description
     "Fourier-GUTenberg is a LaTeX typesetting system which uses Adobe Utopia
as its standard base font.  Fourier-GUTenberg provides all complementary
typefaces needed to allow Utopia based TeX typesetting, including an extensive
mathematics set and several other symbols.  The system is absolutely
stand-alone: apart from Utopia and Fourier, no other typefaces are required.
Utopia is a registered trademark of Adobe Systems Incorporated")
    (license license:lppl)))

(define-public texlive-utopia
  (package
    (name "texlive-utopia")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/utopia/" "fonts/afm/adobe/utopia/"
                   "fonts/tfm/adobe/utopia/"
                   "fonts/type1/adobe/utopia/"
                   "fonts/vf/adobe/utopia/")
             (base32
              "113wgkfz4z0ls2grxxfj17l42a1yv9r5ipcd0156xnfsrqvqzxfc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/utopia")
    (synopsis "Adobe Utopia fonts")
    (description
     "The Adobe Standard Encoding set of the Utopia font family, as
contributed by the X Consortium.  The set comprises upright and italic shapes
in medium and bold weights.  Macro support and matching maths fonts are
provided by the @code{fourier} and the @code{mathdesign} font packages.")
    (license (license:fsf-free
              "http://mirrors.ctan.org/fonts/utopia/README"))))

(define-public texlive-fontaxes
  (package
    (name "texlive-fontaxes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fontaxes/" "source/latex/fontaxes/"
                   "tex/latex/fontaxes/")
             (base32
              "1d9ji2qvjf1ky8l6rfqbag2hw61r0hyjxkzsp18s4pckyq4dqwdm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fontaxes")
    (synopsis "Additional font axes for LaTeX")
    (description "The @code{fontaxes} package adds several new font axes on
top of LaTeX's New Font Selection Scheme (NFSS).  In particular, it splits the
shape axis into a primary and a secondary shape axis and it adds three new
axes to deal with the different figure versions offered by many professional
fonts.")
    (license license:lppl1.3+)))

(define-public texlive-preprint
  (package
    (name "texlive-preprint")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/preprint/" "source/latex/preprint/"
                   "tex/latex/preprint/")
             (base32
              "198xwg6mll3yndc1kf79l6zgnq3nsk7fsh3rlj28nipd26ysw6lq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/preprint")
    (synopsis "Bundle of modules for preprints")
    (description "The bundle comprises: @code{authblk}, which permits
footnote style author/affiliation input in the @command{\\author} command,
@code{balance}, to balance the end of @command{\\twocolumn} pages,
@code{figcaps}, to send figure captions, etc., to end document,
@code{fullpage}, to set narrow page margins and set a fixed page style, and
@code{sublabel}, which permits counters to be subnumbered.")
    (license license:lppl1.3+)))

(define-public texlive-mweights
  (package
    (name "texlive-mweights")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mweights/" "tex/latex/mweights/")
             (base32
              "12493g3yz06mhiybnphqbp49fjzy36clzw63b74mkfhsg1pq7h1b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mweights")
    (synopsis "Support for multiple-weight font packages")
    (description
     "Many font families available for use with LaTeX are available at
multiple weights.  Many Type 1-oriented support packages for such fonts
re-define the standard @code{\\mddefault} or @code{\\bfdefault} macros.  This
can create difficulties if the weight desired for one font family isn't
available for another font family, or if it differs from the weight desired
for another font family.  The package provides a solution to these
difficulties.")
    (license license:lppl)))

(define-public texlive-cabin
  (package
    (name "texlive-cabin")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cabin/"
                   "fonts/enc/dvips/cabin/"
                   "fonts/map/dvips/cabin/"
                   "fonts/opentype/impallari/cabin/"
                   "fonts/tfm/impallari/cabin/"
                   "fonts/type1/impallari/cabin/"
                   "fonts/vf/impallari/cabin/"
                   "tex/latex/cabin/")
             (base32
              "1l4s50l8rjmfrknffgy1c84dg8m9rg96817rs3b3cqk97c3l25zy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/cabin")
    (synopsis "Humanist Sans Serif font with LaTeX support")
    (description
     "Cabin is a humanist sans with four weights and true italics and small
capitals.  According to the designer, Pablo Impallari, Cabin was inspired by
Edward Johnston's and Eric Gill's typefaces, with a touch of modernism.  Cabin
incorporates modern proportions, optical adjustments, and some elements of the
geometric sans.  @file{cabin.sty} supports use of the font under LaTeX,
pdfLaTeX, XeLaTeX and LuaLaTeX; it uses the @code{mweights}, to manage the
user's view of all those font weights.  An option is provided to enable Cabin
as the default text font.")
    (license (list license:silofl1.1    ;for Cabin
                   license:lppl))))     ;for support files

(define-public texlive-newtx
  (package
    (name "texlive-newtx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/newtx/"
                   "fonts/afm/public/newtx/"
                   "fonts/enc/dvips/newtx/"
                   "fonts/map/dvips/newtx/"
                   "fonts/opentype/public/newtx/"
                   "fonts/tfm/public/newtx/"
                   "fonts/type1/public/newtx/"
                   "fonts/vf/public/newtx/"
                   "tex/latex/newtx/")
             (base32
              "0lbkip5nwrc0sf1alhc8b4dh6ymvn48l5sv71qjzrc1qg2jnw29b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-kastrup))
    (home-page "https://www.ctan.org/pkg/newtx")
    (synopsis "Repackaging of the TX fonts with improved metrics")
    (description
     "The @code{newtx} bundle splits @file{txfonts.sty} (from the TX fonts
distribution) into two independent packages, @code{newtxtext.sty} and
@code{newtxmath.sty}, each with fixes and enhancements.  @code{newtxmath}'s
metrics have been re-evaluated to provide a less tight appearance and to
provide a @code{libertine} option that substitutes Libertine italic and Greek
letters for the existing math italic and Greek glyphs, making a mathematics
package that matches Libertine text quite well.")
    (license license:lppl1.3)))

(define-public texlive-xcharter
  (package
    (name "texlive-xcharter")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/xcharter/"
                   "fonts/afm/public/xcharter/"
                   "fonts/enc/dvips/xcharter/"
                   "fonts/map/dvips/xcharter/"
                   "fonts/opentype/public/xcharter/"
                   "fonts/tfm/public/xcharter/"
                   "fonts/type1/public/xcharter/"
                   "fonts/vf/public/xcharter/"
                   "tex/latex/xcharter/")
             (base32
              "178mmdr9ji346cnmwas22vhbm38izb1sy5164a5h250kgm287v2c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xcharter")
    (synopsis "Extension of Bitstream Charter fonts")
    (description "@code{xcharter} repackages Bitstream Charter with an
extended set of features.  The extension provides small caps, oldstyle
figures and superior figures in all four styles, accompanied by LaTeX
font support files.  The fonts themselves are provided in both Adobe
Type 1 and OTF formats, with supporting files as necessary.")
    (license (list (license:fsf-free
                    "http://mirrors.ctan.org/fonts/xcharter/README")
                   license:lppl1.3))))

(define-public texlive-ly1
  (package
    (name "texlive-ly1")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ly1/"
                   "fonts/enc/dvips/ly1/"
                   "fonts/map/dvips/ly1/"
                   "fonts/tfm/adobe/ly1/"
                   "fonts/vf/adobe/ly1/"
                   "tex/latex/ly1/"
                   "tex/plain/ly1/")
             (base32
              "0mwk8bfpvpzbwjw3jd6plw0w7kykpb499fv50a9bqxh0jqcyh0j5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ly1")
    (synopsis "Support for LY1 LaTeX encoding")
    (description
     "The legacy @code{texnansi} (TeX and ANSI) encoding is known in the LaTeX
scheme of things as @emph{LY1} encoding.  The @code{ly1} bundle includes
metrics and LaTeX macros to use the three basic Adobe Type 1 fonts (Times,
Helvetica and Courier) in LaTeX using LY1 encoding.")
    (license license:lppl1.0+)))

(define-public texlive-section
  (package
    (name "texlive-section")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/section/" "tex/latex/section/")
             (base32
              "0gjajhlwwgyqnmw9bzr0l7dsq12mdhgv8sdkm86m4zn107qab0p9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/section")
    (synopsis "Modifying section commands in LaTeX")
    (description
     "The package implements a pretty extensive scheme to make more manageable
the business of configuring LaTeX output.")
    (license license:lppl)))

(define-public texlive-sectsty
  (package
    (name "texlive-sectsty")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sectsty/" "source/latex/sectsty/"
                   "tex/latex/sectsty/")
             (base32
              "1h7zi622s84vqjl6bi4g6iv639jz9m2imz4g7y1qpc0zdw1mlqv4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://www.ctan.org/pkg/sectsty")
    (synopsis "Control sectional headers")
    (description
     "This is a LaTeX2ε package to help change the style of any or all of
LaTeX's sectional headers in the article, book, or report classes.  Examples
include the addition of rules above or below a section title.")
    (license license:lppl1.2+)))

(define-public texlive-morefloats
  (package
    (name "texlive-morefloats")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/morefloats/"
                   "source/latex/morefloats/"
                   "tex/latex/morefloats/")
             (base32
              "0y8rd3ys71ys9cab172wwhrmbs9b52wqrj6d3p0iy3075z93h51c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/morefloats")
    (synopsis "Increase the number of simultaneous LaTeX floats")
    (description "LaTeX can, by default, only cope with 18 outstanding floats;
any more, and you get the error “too many unprocessed floats”.  This package
releases the limit; TeX itself imposes limits (which are independent of the
help offered by e-TeX).

However, if your floats can’t be placed anywhere, extending the number of
floats merely delays the arrival of the inevitable error message.")
    (license license:lppl1.3c+)))

(define-public texlive-ifmtarg
  (package
    (name "texlive-ifmtarg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ifmtarg/" "source/latex/ifmtarg/"
                   "tex/latex/ifmtarg/")
             (base32
              "19bfi12j5ra19k6vjd1q5fjsm68vipa7ida7pg9pf15l5pxwbgqz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs (list texlive-filecontents))
    (home-page "https://ctan.org/pkg/ifmtarg")
    (synopsis "If-then-else command for processing potentially empty arguments")
    (description
     "This package provides a command for the LaTeX programmer for testing
whether an argument is empty.")
    (license license:lppl1.3c+)))

(define-public texlive-pagenote
  (package
    (name "texlive-pagenote")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pagenote/" "source/latex/pagenote/"
                   "tex/latex/pagenote/")
             (base32
              "1dffh7ac13w3gs94lvfxgw1i4k6cfkrpcyikj1sfrqaivrxpmqpi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pagenote")
    (synopsis "Notes at end of document")
    (description
     "The @code{pagenote} package provides tagged notes on a separate
page (also known as end notes).")
    (license license:lppl1.3c+)))

(define-public texlive-pagesel
  (package
    (name "texlive-pagesel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pagesel/" "source/latex/pagesel/"
                   "tex/latex/pagesel/")
             (base32
              "1x4nb53d5gm0vrhiinaqf6ai63bgjpbw0b5kk3c2f6j6gfvp0n53")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pagesel")
    (synopsis "Select pages of a document for output")
    (description
     "This package selects single pages, ranges of pages, odd pages or even
pages for output.  The package is part of the @code{oberdiek} bundle.")
    (license license:lppl1.3c)))

(define-public texlive-titling
  (package
    (name "texlive-titling")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/titling/" "source/latex/titling/"
                   "tex/latex/titling/")
             (base32
              "1wp5r6wwrz1nx3wrmc0hxjfapqppcb126l4wmmzh14sfb1py7mz4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/titling")
    (synopsis "Control typesetting of the @code{\\maketitle} command")
    (description
     "The @code{titling} package provides control over the typesetting of the
@code{\\maketitle} command and @code{\\thanks} commands, and makes the
@code{\\title}, @code{\\author} and @code{\\date} information permanently
available.  Multiple titles are allowed in a single document.  New titling
elements can be added and a @code{titlepage} title can be centered on
a physical page.")
    (license license:lppl)))

(define-public texlive-ifoddpage
  (package
    (name "texlive-ifoddpage")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ifoddpage/"
                   "source/latex/ifoddpage/"
                   "tex/latex/ifoddpage/")
             (base32
              "0mxi28lf97l4zg5kcv524b29n5r167yczrhgy132hql866vkdvyr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (home-page "https://ctan.org/pkg/ifoddpage")
    (synopsis "Determine if the current page is odd or even")
    (description
     "This package provides an @code{\\ifoddpage} conditional to determine if
the current page is odd or even.  The macro @code{\\checkoddpage} must be used
directly before to check the page number using a label.  Two compiler runs are
therefore required to achieve correct results.  In addition, the conditional
@code{\\ifoddpageoronside} is provided which is also true in @code{oneside}
mode where all pages use the odd page layout.")
    (license license:lppl1.3)))

(define-public texlive-storebox
  (package
    (name "texlive-storebox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/storebox/" "source/latex/storebox/"
                   "tex/latex/storebox/")
             (base32
              "1vbjq9aq2kbncq1dn4rk7jspfb6kcxk66h49z0xz1qix5yg94gmx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (home-page "https://ctan.org/pkg/storebox")
    (synopsis "Storing information for reuse")
    (description
     "The package provides store boxes whose user interface matches that of
normal LaTeX save boxes, except that the content of a store box appears at
most once in the output PDF file, however often it is used.  The present
version of the package supports pdfLaTeX and LuaLaTeX; when DVI is output,
store boxes behave the same as save boxes.")
    (license license:lppl1.3+)))

(define-public texlive-collectbox
  (package
    (name "texlive-collectbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/collectbox/"
                   "source/latex/collectbox/"
                   "tex/latex/collectbox/")
             (base32
              "0mn0hdzjhbmziqqh2k7knfz816lxbjil0zld0n30qi3ila5v3gk6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (home-page "https://ctan.org/pkg/collectbox")
    (synopsis "Collect and process macro arguments as boxes")
    (description
     "The package provides macros to collect and process a macro
argument (i.e., something which looks like a macro argument) as a horizontal
box rather than as a real macro argument.  The \"arguments\" are stored as if
they had been saved by @code{\\savebox} or by the @code{lrbox} environment.
Grouping tokens @code{\\bgroup} and @code{\\egroup} may be used, which allows
the user to have the beginning and end of a group in different macro
invocations, or to place them in the begin and end code of an environment.
Arguments may contain verbatim material or other special use of characters.
The macros were designed for use within other macros.")
    (license license:lppl1.3)))

(define-public texlive-collection-basic
  (package
    (name "texlive-collection-basic")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
   (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-amsfonts
           texlive-bibtex
           texlive-bin                  ;set GUIX_TEXMF and engines
           texlive-cm
           texlive-colorprofiles
           texlive-dvipdfmx
           texlive-dvips
           texlive-ec
           texlive-enctex
           texlive-etex
           texlive-etex-pkg
           texlive-glyphlist
           texlive-graphics-def
           texlive-hyphen-complete
           texlive-hyphenex
           texlive-ifplatform
           texlive-iftex
           texlive-knuth-lib
           texlive-knuth-local
           texlive-kpathsea
           texlive-lua-alt-getopt
           texlive-luahbtex
           texlive-luatex
           texlive-makeindex
           texlive-metafont
           texlive-mflogo
           texlive-mfware
           texlive-modes
           texlive-pdftex
           texlive-plain
           texlive-tex
           texlive-tex-ini-files
           texlive-unicode-data
           texlive-xdvi))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Essential programs and files")
    (description
     "These files are regarded as basic for any TeX system, covering plain TeX
macros, Computer Modern fonts, and configuration for common drivers; no
LaTeX.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-binextra
  (package
    (name "texlive-collection-binextra")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list asymptote
           texlive-a2ping
           texlive-adhocfilelist
           texlive-arara
           texlive-bibtex8
           texlive-bibtexu
           texlive-bundledoc
           texlive-checklistings
           texlive-chklref
           texlive-chktex
           texlive-clojure-pamphlet
           texlive-cluttex
           texlive-collection-basic
           texlive-ctan-o-mat
           texlive-ctan-chk
           texlive-ctanbib
           texlive-ctanify
           texlive-ctanupload
           texlive-ctie
           texlive-cweb
           texlive-de-macro
           texlive-detex
           texlive-digestif
           texlive-dtl
           texlive-dtxgen
           texlive-dvi2tty
           texlive-dviasm
           texlive-dvicopy
           texlive-dvidvi
           texlive-dviinfox
           texlive-dviljk
           texlive-dviout-util
           texlive-dvipng
           texlive-dvipos
           texlive-dvisvgm
           texlive-findhyph
           texlive-fragmaster
           texlive-git-latexdiff
           texlive-gsftopk
           texlive-hook-pre-commit-pkg
           texlive-installfont
           texlive-ketcindy
           texlive-lacheck
           texlive-latex-git-log
           texlive-latex-papersize
           texlive-latex2man
           texlive-latex2nemeth
           texlive-latexdiff
           texlive-latexfileversion
           texlive-latexindent
           texlive-latexmk
           texlive-latexpand
           texlive-light-latex-make
           texlive-listings-ext
           texlive-ltxfileinfo
           texlive-ltximg
           texlive-luajittex
           texlive-make4ht
           texlive-match-parens
           texlive-mflua
           texlive-mkjobtexmf
           texlive-optexcount
           texlive-patgen
           texlive-pdfbook2
           texlive-pdfcrop
           texlive-pdfjam
           texlive-pdflatexpicscale
           texlive-pdftex-quiet
           texlive-pdftosrc
           texlive-pdfxup
           texlive-pfarrei
           texlive-pkfix
           texlive-pkfix-helper
           texlive-purifyeps
           texlive-pythontex
           texlive-seetexk
           texlive-spix
           texlive-srcredact
           texlive-sty2dtx
           texlive-synctex
           texlive-tex4ebook
           texlive-texaccents
           texlive-texcount
           texlive-texdef
           texlive-texdiff
           texlive-texdirflatten
           texlive-texdoc
           texlive-texdoctk
           texlive-texfot
           texlive-texliveonfly
           texlive-texloganalyser
           texlive-texlogfilter
           texlive-texlogsieve
           texlive-texosquery
           texlive-texplate
           texlive-texware
           texlive-tie
           texlive-tlcockpit
           texlive-tpic2pdftex
           texlive-typeoutfileinfo
           texlive-upmendex
           texlive-web
           texlive-xindex
           texlive-xindy
           texlive-xpdfopen))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "TeX auxiliary programs")
    (description
     "This package provides a myriad of additional TeX-related support
programs.  It includes programs and macros for DVI file manipulation, literate
programming, patgen, and plenty more.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-context
  (package
    (name "texlive-collection-context")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-collection-basic
           texlive-context
           texlive-context-account
           texlive-context-algorithmic
           texlive-context-animation
           texlive-context-annotation
           texlive-context-bnf
           texlive-context-chromato
           texlive-context-cmscbf
           texlive-context-cmttbf
           texlive-context-construction-plan
           texlive-context-cyrillicnumbers
           texlive-context-degrade
           texlive-context-fancybreak
           texlive-context-filter
           texlive-context-french
           texlive-context-fullpage
           texlive-context-gantt
           texlive-context-gnuplot
           texlive-context-handlecsv
           texlive-context-layout
           texlive-context-letter
           texlive-context-lettrine
           texlive-context-mathsets
           texlive-context-rst
           texlive-context-ruby
           texlive-context-simplefonts
           texlive-context-simpleslides
           texlive-context-title
           texlive-context-transliterator
           texlive-context-typearea
           texlive-context-typescripts
           texlive-context-vim
           texlive-context-visualcounter
           texlive-jmn))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "ConTeXt and packages")
    (description
     "This package provides Hans Hagen's powerful ConTeXt system, along with
third-party ConTeXt packages.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-fontsrecommended
  (package
    (name "texlive-collection-fontsrecommended")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-avantgar
           texlive-bookman
           texlive-charter
           texlive-cm-super
           texlive-cmextra
           texlive-collection-basic
           texlive-courier
           texlive-euro
           texlive-euro-ce
           texlive-eurosym
           texlive-fpl
           texlive-helvetic
           texlive-lm
           texlive-lm-math
           texlive-manfnt-font
           texlive-marvosym
           texlive-mathpazo
           texlive-mflogo-font
           texlive-ncntrsbk
           texlive-palatino
           texlive-pxfonts
           texlive-rsfs
           texlive-symbol
           texlive-tex-gyre
           texlive-tex-gyre-math
           texlive-times
           texlive-tipa
           texlive-txfonts
           texlive-utopia
           texlive-wasy
           texlive-wasy-type1
           texlive-wasysym
           texlive-zapfchan
           texlive-zapfding))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Recommended fonts")
    (description
     "This collection provides recommended fonts, including the base 35
PostScript fonts, Latin Modern, TeX Gyre, and T1 and other encoding support
for Computer Modern, in outline form.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-fontutils
  (package
    (name "texlive-collection-fontutils")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-accfonts
           texlive-afm2pl
           texlive-albatross
           texlive-collection-basic
           texlive-dosepsbin
           texlive-dvipsconfig
           texlive-epstopdf
           texlive-fontinst
           texlive-fontools
           texlive-fontware
           texlive-lcdftypetools
           texlive-luafindfont
           texlive-metatype1
           texlive-mf2pt1
           texlive-ps2eps
           texlive-ps2pk
           texlive-psutils
           texlive-t1utils
           texlive-ttfutils))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Graphics and font utilities")
    (description
     "This collection of packages provides programs for conversion between
font formats, testing fonts, virtual fonts, @file{.gf} and @file{.pk}
manipulation, mft, fontinst, etc.  Manipulating OpenType, TrueType, Type 1,and
for manipulation of PostScript and other image formats.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-formatsextra
  (package
    (name "texlive-collection-formatsextra")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-aleph
           texlive-antomega
           texlive-collection-basic
           texlive-collection-latex
           texlive-edmac
           texlive-eplain
           texlive-hitex
           texlive-jadetex
           texlive-lambda
           texlive-lollipop
           texlive-mltex
           texlive-mxedruli
           texlive-omega
           texlive-omegaware
           texlive-otibet
           texlive-passivetex
           texlive-psizzl
           texlive-startex
           texlive-texsis
           texlive-xmltex
           texlive-xmltexconfig))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Additional TeX formats")
    (description
     "This is a collection of TeX formats, i.e., large-scale macro packages
designed to be dumped into @file{.fmt} files --- excluding the most common
ones, such as LaTeX and ConTeXt, which have their own package(s).  It also
includes the Aleph engine and related Omega formats and packages, and the
HiTeX engine and related.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langarabic
  (package
    (name "texlive-collection-langarabic")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-alkalami
           texlive-alpha-persian
           texlive-amiri
           texlive-arabi
           texlive-arabi-add
           texlive-arabic-book
           texlive-arabluatex
           texlive-arabtex
           texlive-bidi
           texlive-bidihl
           texlive-collection-basic
           texlive-dad
           texlive-ghab
           texlive-hvarabic
           texlive-hyphen-complete
           texlive-imsproc
           texlive-kurdishlipsum
           texlive-lshort-persian
           texlive-luabidi
           texlive-na-box
           texlive-persian-bib
           texlive-quran
           texlive-sexam
           texlive-simurgh
           texlive-texnegar
           texlive-tram
           texlive-xepersian
           texlive-xepersian-hm
           texlive-xindy-persian))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Arabic and Persian")
    (description "This collection provides support for Arabic and Persian.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langchinese
  (package
    (name "texlive-collection-langchinese")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-arphic
           texlive-arphic-ttf
           texlive-asymptote-by-example-zh-cn
           texlive-asymptote-faq-zh-cn
           texlive-asymptote-manual-zh-cn
           texlive-cns
           texlive-collection-langcjk
           texlive-ctex
           texlive-ctex-faq
           texlive-exam-zh
           texlive-fandol
           texlive-fduthesis
           texlive-hanzibox
           texlive-hyphen-complete
           texlive-impatient-cn
           texlive-install-latex-guide-zh-cn
           texlive-latex-notes-zh-cn
           texlive-lshort-chinese
           texlive-nanicolle
           texlive-njurepo
           texlive-pgfornament-han
           texlive-qyxf-book
           texlive-texproposal
           texlive-tlmgr-intro-zh-cn
           texlive-upzhkinsoku
           texlive-xpinyin
           texlive-xtuthesis
           texlive-zhlineskip
           texlive-zhlipsum
           texlive-zhmetrics
           texlive-zhmetrics-uptex
           texlive-zhnumber
           texlive-zhspacing))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Chinese")
    (description
     "This collection provides support for Chinese; additional packages are
located in @code{collection-langcjk}.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langcjk
  (package
    (name "texlive-collection-langcjk")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-adobemapping
           texlive-c90
           texlive-cjk
           texlive-cjk-gs-integrate
           texlive-cjkpunct
           texlive-cjkutils
           texlive-collection-basic
           texlive-dnp
           texlive-evangelion-jfm
           texlive-fixjfm
           texlive-garuda-c90
           texlive-jfmutil
           texlive-norasi-c90
           texlive-pxtatescale
           texlive-xcjk2uni
           texlive-xecjk
           texlive-zitie
           texlive-zxjafont))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Chinese/Japanese/Korean support (base)")
    (description
     "This is a collection of packages supporting a combination of Chinese,
Japanese, Korean, including macros, fonts, documentation.  Also Thai in the
c90 encoding, since there is some overlap in those fonts; standard Thai
support is in @code{collection-langother}.  Additional packages for CJK are in
their individual language collections.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langcyrillic
  (package
    (name "texlive-collection-langcyrillic")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-babel-belarusian
           texlive-babel-bulgarian
           texlive-babel-russian
           texlive-babel-serbian
           texlive-babel-serbianc
           texlive-babel-ukrainian
           texlive-churchslavonic
           texlive-cmcyr
           texlive-collection-basic
           texlive-collection-latex
           texlive-cyrillic
           texlive-cyrillic-bin
           texlive-cyrplain
           texlive-disser
           texlive-eskd
           texlive-eskdx
           texlive-gost
           texlive-hyphen-complete
           texlive-lcyw
           texlive-lh
           texlive-lhcyr
           texlive-lshort-bulgarian
           texlive-lshort-mongol
           texlive-lshort-russian
           texlive-lshort-ukr
           texlive-mongolian-babel
           texlive-montex
           texlive-mpman-ru
           texlive-numnameru
           texlive-pst-eucl-translation-bg
           texlive-russ
           texlive-serbian-apostrophe
           texlive-serbian-date-lat
           texlive-serbian-def-cyr
           texlive-serbian-lig
           texlive-t2
           texlive-xecyrmongolian))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Cyrillic scripts")
    (description
     "This collection provides packages supporting Cyrillic scripts (Bulgarian,
Russian, Serbian, Ukrainian), even if Latin alphabets may also be used.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langczechslovak
  (package
    (name "texlive-collection-langczechslovak")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-babel-czech
           texlive-babel-slovak
           texlive-cnbwp
           texlive-collection-basic
           texlive-collection-latex
           texlive-cs
           texlive-csbulletin
           texlive-cslatex
           texlive-csplain
           texlive-cstex
           texlive-hyphen-complete
           texlive-lshort-czech
           texlive-lshort-slovak
           texlive-vlna))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Czech and Slovak")
    (description
     "This collection of packages provides support for Czech and Slovak.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langenglish
  (package
    (name "texlive-collection-langenglish")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-amiweb2c-guide
           texlive-amscls-doc
           texlive-amslatex-primer
           texlive-around-the-bend
           texlive-ascii-chart
           texlive-biblatex-cheatsheet
           texlive-collection-basic
           texlive-components
           texlive-comprehensive
           texlive-dickimaw
           texlive-docsurvey
           texlive-dtxtut
           texlive-first-latex-doc
           texlive-fontinstallationguide
           texlive-forest-quickstart
           texlive-gentle
           texlive-guide-to-latex
           texlive-happy4th
           texlive-hyphen-complete
           texlive-impatient
           texlive-intro-scientific
           texlive-knuth-errata
           texlive-knuth-hint
           texlive-knuth-pdf
           texlive-l2tabu-english
           texlive-latex-brochure
           texlive-latex-course
           texlive-latex-doc-ptr
           texlive-latex-for-undergraduates
           texlive-latex-graphics-companion
           texlive-latex-refsheet
           texlive-latex-veryshortguide
           texlive-latex-web-companion
           texlive-latex2e-help-texinfo
           texlive-latex4wp
           texlive-latexcheat
           texlive-latexcourse-rug
           texlive-latexfileinfo-pkgs
           texlive-lshort-english
           texlive-macros2e
           texlive-math-into-latex-4
           texlive-maths-symbols
           texlive-memdesign
           texlive-memoirchapterstyles
           texlive-metafont-beginners
           texlive-metapost-examples
           texlive-patgen2-tutorial
           texlive-pictexsum
           texlive-plain-doc
           texlive-short-math-guide
           texlive-simplified-latex
           texlive-svg-inkscape
           texlive-tamethebeast
           texlive-tds
           texlive-tex-font-errors-cheatsheet
           texlive-tex-nutshell
           texlive-tex-overview
           texlive-tex-refs
           texlive-tex-vpat
           texlive-texbytopic
           texlive-texonly
           texlive-titlepages
           texlive-tlc2
           texlive-tlc3-examples
           texlive-tlmgrbasics
           texlive-undergradmath
           texlive-visualfaq
           ;; texlive-webguide XXX: No license?
           texlive-xetexref
           texlive-yet-another-guide-latex2e))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for, and documentation in, English")
    (description
     "These packages provide support for, and documentation in, English.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langeuropean
  (package
    (name "texlive-collection-langeuropean")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-armtex
           texlive-babel-albanian
           texlive-babel-bosnian
           texlive-babel-breton
           texlive-babel-croatian
           texlive-babel-danish
           texlive-babel-dutch
           texlive-babel-estonian
           texlive-babel-finnish
           texlive-babel-friulan
           texlive-babel-hungarian
           texlive-babel-icelandic
           texlive-babel-irish
           texlive-babel-kurmanji
           texlive-babel-latin
           texlive-babel-latvian
           texlive-babel-lithuanian
           texlive-babel-macedonian
           texlive-babel-norsk
           texlive-babel-occitan
           texlive-babel-piedmontese
           texlive-babel-romanian
           texlive-babel-romansh
           texlive-babel-samin
           texlive-babel-scottish
           texlive-babel-slovenian
           texlive-babel-swedish
           texlive-babel-turkish
           texlive-babel-welsh
           texlive-collection-basic
           texlive-finbib
           texlive-gloss-occitan
           texlive-hrlatex
           texlive-huaz
           texlive-hulipsum
           texlive-hyphen-complete
           texlive-kaytannollista-latexia
           texlive-lithuanian
           texlive-lshort-dutch
           texlive-lshort-estonian
           texlive-lshort-finnish
           texlive-lshort-slovenian
           texlive-lshort-turkish
           texlive-nevelok
           texlive-rojud
           texlive-swebib
           texlive-turkmen))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for a some European languages")
    (description
     "This collection provides support for a number of European languages;
others (Greek, German, French, ...)  have their own collections, depending
simply on the size of the support.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langfrench
  (package
    (name "texlive-collection-langfrench")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-aeguill
           texlive-annee-scolaire
           texlive-apprendre-a-programmer-en-tex
           texlive-apprends-latex
           texlive-babel-basque
           texlive-babel-french
           texlive-basque-book
           texlive-basque-date
           texlive-bib-fr
           texlive-bibleref-french
           texlive-booktabs-fr
           texlive-collection-basic
           texlive-droit-fr
           texlive-e-french
           texlive-epslatex-fr
           texlive-expose-expl3-dunkerque-2019
           texlive-facture
           texlive-formation-latex-ul
           texlive-frenchmath
           texlive-frletter
           texlive-frpseudocode
           texlive-hyphen-complete
           texlive-impatient-fr
           texlive-impnattypo
           texlive-l2tabu-french
           texlive-latex2e-help-texinfo-fr
           texlive-letgut
           texlive-lshort-french
           texlive-mafr
           texlive-matapli
           texlive-profcollege
           texlive-proflabo
           texlive-proflycee
           texlive-tabvar
           texlive-tdsfrmath
           texlive-translation-array-fr
           texlive-translation-dcolumn-fr
           texlive-translation-natbib-fr
           texlive-translation-tabbing-fr
           texlive-variations
           texlive-visualfaq-fr
           texlive-visualtikz))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for French and Basque")
    (description
     "This collection provides support packages for French and Basque.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langgerman
  (package
    (name "texlive-collection-langgerman")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-apalike-german
           texlive-babel-german
           texlive-bibleref-german
           texlive-booktabs-de
           texlive-collection-basic
           texlive-csquotes-de
           texlive-dhua
           texlive-dtk-bibliography
           texlive-etdipa
           texlive-etoolbox-de
           texlive-fifinddo-info
           texlive-german
           texlive-germbib
           texlive-germkorr
           texlive-hausarbeit-jura
           texlive-hyphen-complete
           texlive-koma-script-examples
           texlive-l2picfaq
           texlive-l2tabu
           texlive-latexcheat-de
           texlive-lshort-german
           texlive-lualatex-doc-de
           texlive-microtype-de
           texlive-milog
           texlive-quran-de
           texlive-r-und-s
           texlive-schulmathematik
           texlive-templates-fenn
           texlive-templates-sommer
           texlive-termcal-de
           texlive-tipa-de
           texlive-translation-arsclassica-de
           texlive-translation-biblatex-de
           texlive-translation-chemsym-de
           texlive-translation-ecv-de
           texlive-translation-enumitem-de
           texlive-translation-europecv-de
           texlive-translation-filecontents-de
           texlive-translation-moreverb-de
           texlive-udesoftec
           texlive-uhrzeit
           texlive-umlaute
           texlive-voss-mathcol))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for German")
    (description "This collection provides support packages for German.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langgreek
  (package
    (name "texlive-collection-langgreek")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-babel-greek
           texlive-begingreek
           texlive-betababel
           texlive-cbfonts
           texlive-cbfonts-fd
           texlive-collection-basic
           texlive-gfsbaskerville
           texlive-gfsporson
           texlive-greek-fontenc
           texlive-greek-inputenc
           texlive-greekdates
           texlive-greektex
           texlive-greektonoi
           texlive-hyphen-complete
           texlive-ibycus-babel
           texlive-ibygrk
           texlive-kerkis
           texlive-levy
           texlive-lgreek
           texlive-lgrmath
           texlive-mkgrkindex
           texlive-talos
           texlive-teubner
           texlive-xgreek
           texlive-yannisgr))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Greek")
    (description "This collection provides support for Greek.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langitalian
  (package
    (name "texlive-collection-langitalian")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-amsldoc-it
           texlive-amsmath-it
           texlive-amsthdoc-it
           texlive-antanilipsum
           texlive-babel-italian
           texlive-codicefiscaleitaliano
           texlive-collection-basic
           texlive-fancyhdr-it
           texlive-fixltxhyph
           texlive-frontespizio
           texlive-hyphen-complete
           texlive-itnumpar
           texlive-l2tabu-italian
           texlive-latex4wp-it
           texlive-layaureo
           texlive-lshort-italian
           texlive-psfrag-italian
           texlive-verifica))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Italian")
    (description "This collection provides support packages for Italian.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langother
  (package
    (name "texlive-collection-langother")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-aalok
           texlive-akshar
           texlive-amsldoc-vn
           texlive-aramaic-serto
           texlive-babel-azerbaijani
           texlive-babel-esperanto
           texlive-babel-georgian
           texlive-babel-hebrew
           texlive-babel-indonesian
           texlive-babel-interlingua
           texlive-babel-malay
           texlive-babel-sorbian
           texlive-babel-thai
           texlive-babel-vietnamese
           texlive-bangla
           texlive-bangtex
           texlive-bengali
           texlive-burmese
           texlive-chhaya
           texlive-cjhebrew
           texlive-collection-basic
           texlive-ctib
           texlive-ebong
           texlive-ethiop
           texlive-ethiop-t1
           texlive-fc
           texlive-fonts-tlwg
           texlive-hindawi-latex-template
           texlive-hyphen-complete
           texlive-latex-mr
           texlive-latexbangla
           texlive-latino-sine-flexione
           texlive-lshort-thai
           texlive-lshort-vietnamese
           texlive-marathi
           texlive-ntheorem-vn
           texlive-padauk
           texlive-quran-bn
           texlive-quran-ur
           texlive-sanskrit
           texlive-sanskrit-t1
           texlive-thaienum
           texlive-thaispec
           texlive-unicode-alphabets
           texlive-velthuis
           texlive-vntex
           texlive-wnri
           texlive-wnri-latex
           texlive-xetex-devanagari))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support other languages")
    (description
     "This collection provides support for languages not otherwise listed,
including Indic, Thai, Vietnamese, Hebrew, Indonesian, African languages, and
plenty more.  The split is made simply on the basis of the size of the
support, to keep both collection sizes and the number of collections
reasonable.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langpolish
  (package
    (name "texlive-collection-langpolish")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-babel-polish
           texlive-bredzenie
           texlive-cc-pl
           texlive-collection-basic
           texlive-collection-latex
           texlive-gustlib
           texlive-gustprog
           texlive-hyphen-complete
           texlive-lshort-polish
           texlive-mex
           texlive-mwcls
           texlive-pl
           texlive-polski
           texlive-przechlewski-book
           texlive-qpxqtx
           texlive-tap
           texlive-tex-virtual-academy-pl
           texlive-utf8mex))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Polish")
    (description "This collection provides support packages for Polish.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langportuguese
  (package
    (name "texlive-collection-langportuguese")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-babel-portuges
           texlive-beamer-tut-pt
           texlive-collection-basic
           texlive-cursolatex
           texlive-feupphdteses
           texlive-hyphen-complete
           texlive-latex-via-exemplos
           texlive-latexcheat-ptbr
           texlive-lshort-portuguese
           texlive-numberpt
           texlive-ordinalpt
           texlive-xypic-tut-pt))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Portuguese")
    (description "This collection provides support packages for Portuguese.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-langspanish
  (package
    (name "texlive-collection-langspanish")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-babel-catalan
           texlive-babel-galician
           texlive-babel-spanish
           texlive-collection-basic
           texlive-es-tex-faq
           texlive-hyphen-complete
           texlive-l2tabu-spanish
           texlive-latex2e-help-texinfo-spanish
           texlive-latexcheat-esmx
           texlive-lshort-spanish))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Support for Spanish")
    (description "This collection provides support packages for Spanish.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-latex
  (package
    (name "texlive-collection-latex")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-ae
           texlive-amscls
           texlive-amsmath
           texlive-atbegshi
           texlive-atveryend
           texlive-auxhook
           texlive-babel
           texlive-babel-english
           texlive-babelbib
           texlive-bigintcalc
           texlive-bitset
           texlive-bookmark
           texlive-carlisle
           texlive-collection-basic
           texlive-colortbl
           texlive-epstopdf-pkg
           texlive-etexcmds
           texlive-fancyhdr
           texlive-firstaid
           texlive-fix2col
           texlive-geometry
           texlive-gettitlestring
           texlive-graphics
           texlive-graphics-cfg
           texlive-grfext
           texlive-hopatch
           texlive-hycolor
           texlive-hyperref
           texlive-intcalc
           texlive-kvdefinekeys
           texlive-kvoptions
           texlive-kvsetkeys
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-bin
           texlive-latex-fonts
           texlive-latexconfig
           texlive-letltxmacro
           texlive-ltxcmds
           texlive-ltxmisc
           texlive-mfnfss
           texlive-mptopdf
           texlive-natbib
           texlive-oberdiek
           texlive-pagesel
           texlive-pdfescape
           texlive-pslatex
           texlive-psnfss
           texlive-pspicture
           texlive-refcount
           texlive-rerunfilecheck
           texlive-stringenc
           texlive-tools
           texlive-uniquecounter
           texlive-url))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "LaTeX fundamental packages")
    (description
     "These packages are either mandated by the core LaTeX team, or very widely
used and strongly recommended in practice.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-latexrecommended
  (package
    (name "texlive-collection-latexrecommended")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-anysize
           texlive-attachfile2
           texlive-beamer
           texlive-booktabs
           texlive-breqn
           texlive-caption
           texlive-cite
           texlive-cmap
           texlive-collection-latex
           texlive-crop
           texlive-ctable
           texlive-eso-pic
           texlive-etoolbox
           texlive-euenc
           texlive-euler
           texlive-everysel
           texlive-everyshi
           texlive-extsizes
           texlive-fancybox
           texlive-fancyref
           texlive-fancyvrb
           texlive-filehook
           texlive-float
           texlive-fontspec
           texlive-footnotehyper
           texlive-fp
           texlive-grffile
           texlive-hologo
           texlive-index
           texlive-infwarerr
           texlive-jknapltx
           texlive-koma-script
           texlive-l3experimental
           texlive-latexbug
           texlive-lineno
           texlive-listings
           texlive-lwarp
           texlive-mathspec
           texlive-mathtools
           texlive-mdwtools
           texlive-memoir
           texlive-metalogo
           texlive-microtype
           texlive-ms
           texlive-newfloat
           texlive-ntgclass
           texlive-parskip
           texlive-pdfcolfoot
           texlive-pdflscape
           texlive-pdfmanagement-testphase
           texlive-pdfpages
           texlive-pdftexcmds
           texlive-polyglossia
           texlive-psfrag
           texlive-ragged2e
           texlive-rcs
           texlive-sansmath
           texlive-section
           texlive-seminar
           texlive-sepnum
           texlive-setspace
           texlive-subfig
           texlive-textcase
           texlive-thumbpdf
           texlive-translator
           texlive-typehtml
           texlive-ucharcat
           texlive-underscore
           texlive-unicode-math
           texlive-xcolor
           texlive-xkeyval
           texlive-xltxtra
           texlive-xunicode))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "LaTeX recommended packages")
    (description
     "This package provides a collection of recommended add-on packages for
LaTeX which have widespread use.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-luatex
  (package
    (name "texlive-collection-luatex")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-addliga
           texlive-auto-pst-pdf-lua
           texlive-barracuda
           texlive-bezierplot
           texlive-blopentype
           texlive-checkcites
           texlive-chickenize
           texlive-chinese-jfm
           texlive-cloze
           texlive-collection-basic
           texlive-combofont
           texlive-cstypo
           texlive-ctablestack
           texlive-ekdosis
           texlive-emoji
           texlive-emojicite
           texlive-enigma
           texlive-innerscript
           texlive-interpreter
           texlive-kanaparser
           texlive-ligtype
           texlive-linebreaker
           texlive-lparse
           texlive-lt3luabridge
           texlive-lua-typo
           texlive-lua-uca
           texlive-lua-ul
           texlive-lua-uni-algos
           texlive-lua-visual-debug
           texlive-lua-widow-control
           texlive-luaaddplot
           texlive-luacas
           texlive-luacensor
           texlive-luacode
           texlive-luacolor
           texlive-luacomplex
           texlive-luagcd
           texlive-luahyphenrules
           texlive-luaimageembed
           texlive-luaindex
           texlive-luainputenc
           texlive-luaintro
           texlive-luakeys
           texlive-lualatex-doc
           texlive-lualatex-math
           texlive-lualatex-truncate
           texlive-lualibs
           texlive-lualinalg
           texlive-luamathalign
           texlive-luamaths
           texlive-luamodulartables
           texlive-luamplib
           texlive-luaoptions
           texlive-luaotfload
           texlive-luapackageloader
           texlive-luaprogtable
           texlive-luaquotes
           texlive-luarandom
           texlive-luaset
           texlive-luatex85
           texlive-luatexbase
           texlive-luatexko
           texlive-luatextra
           texlive-luatruthtable
           texlive-luavlna
           texlive-luaxml
           texlive-lutabulartools
           texlive-minim
           texlive-minim-math
           texlive-minim-mp
           texlive-minim-pdf
           texlive-minim-xmp
           texlive-newpax
           texlive-nodetree
           texlive-odsfile
           texlive-optex
           texlive-pdfarticle
           texlive-pdfextra
           texlive-penlight
           texlive-piton
           texlive-placeat
           texlive-plantuml
           texlive-pyluatex
           texlive-scikgtex
           texlive-selnolig
           texlive-showhyphenation
           texlive-showkerning
           texlive-spacekern
           texlive-spelling
           texlive-stricttex
           texlive-truthtable
           texlive-tsvtemplate
           texlive-typewriter
           texlive-uninormalize
           texlive-yamlvars))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "LuaTeX packages")
    (description
     "This is a collection of packages for LuaTeX, a TeX engine using Lua as
an embedded scripting and extension language, with native support for Unicode,
OpenType/TrueType fonts, and both PDF and DVI output.  The LuaTeX engine
itself, and plain formats, are in @code{collection-basic}.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-mathscience
  (package
    (name "texlive-collection-mathscience")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-12many
           texlive-accents
           texlive-alg
           texlive-algobox
           texlive-algorithm2e
           texlive-algorithmicx
           texlive-algorithms
           texlive-algpseudocodex
           texlive-algxpar
           texlive-aligned-overset
           texlive-amscdx
           texlive-amstex
           texlive-annotate-equations
           texlive-apxproof
           texlive-autobreak
           texlive-axodraw2
           texlive-backnaur
           texlive-begriff
           texlive-binomexp
           texlive-biocon
           texlive-bitpattern
           texlive-bodeplot
           texlive-bohr
           texlive-boldtensors
           texlive-bosisio
           texlive-bpchem
           texlive-bropd
           texlive-bussproofs
           texlive-bussproofs-extra
           texlive-bytefield
           texlive-calculation
           texlive-cartonaugh
           texlive-cascade
           texlive-causets
           texlive-ccfonts
           texlive-ccool
           texlive-chemarrow
           texlive-chemcompounds
           texlive-chemcono
           texlive-chemexec
           texlive-chemformula
           texlive-chemgreek
           texlive-chemmacros
           texlive-chemnum
           texlive-chemobabel
           texlive-chemplants
           texlive-chemschemex
           texlive-chemsec
           texlive-chemstyle
           texlive-clrscode
           texlive-clrscode3e
           texlive-codeanatomy
           texlive-collection-fontsrecommended
           texlive-collection-latex
           texlive-commath
           texlive-commutative-diagrams
           texlive-complexity
           texlive-computational-complexity
           texlive-concmath
           texlive-concrete
           texlive-conteq
           texlive-correctmathalign
           texlive-cryptocode
           texlive-csassignments
           texlive-cvss
           texlive-decision-table
           texlive-delim
           texlive-delimseasy
           texlive-delimset
           texlive-derivative
           texlive-diffcoeff
           texlive-digiconfigs
           texlive-dijkstra
           texlive-drawmatrix
           texlive-drawstack
           texlive-dyntree
           texlive-easing
           texlive-ebproof
           texlive-econometrics
           texlive-eltex
           texlive-emf
           texlive-endiagram
           texlive-engtlc
           texlive-eolang
           texlive-eqexpl
           texlive-eqnarray
           texlive-eqnnumwarn
           texlive-euclideangeometry
           texlive-extarrows
           texlive-extpfeil
           texlive-faktor
           texlive-fascicules
           texlive-fixdif
           texlive-fixmath
           texlive-fnspe
           texlive-formal-grammar
           texlive-fouridx
           texlive-functan
           texlive-galois
           texlive-gastex
           texlive-gene-logic
           texlive-ghsystem
           texlive-glosmathtools
           texlive-gotoh
           texlive-grundgesetze
           texlive-gu
           texlive-helmholtz-ellis-ji-notation
           texlive-hep
           texlive-hep-reference
           texlive-hepnames
           texlive-hepparticles
           texlive-hepthesis
           texlive-hepunits
           texlive-ibrackets
           texlive-includernw
           texlive-interval
           texlive-ionumbers
           texlive-isomath
           texlive-jkmath
           texlive-jupynotex
           texlive-karnaugh
           texlive-karnaugh-map
           texlive-karnaughmap
           texlive-kvmap
           texlive-letterswitharrows
           texlive-lie-hasse
           texlive-logicproof
           texlive-longdivision
           texlive-lpform
           texlive-lplfitch
           texlive-lstbayes
           texlive-mathcommand
           texlive-mathcomp
           texlive-mathfixs
           texlive-mathlig
           texlive-mathpartir
           texlive-mathpunctspace
           texlive-mathsemantics
           texlive-matlab-prettifier
           texlive-matrix-skeleton
           texlive-mattens
           texlive-mecaso
           texlive-membranecomputing
           texlive-memorygraphs
           texlive-messagepassing
           texlive-mgltex
           texlive-mhchem
           texlive-mhequ
           texlive-miller
           texlive-mismath
           texlive-multiobjective
           texlive-naive-ebnf
           texlive-namedtensor
           texlive-natded
           texlive-nath
           texlive-nchairx
           texlive-nicematrix
           texlive-nuc
           texlive-nucleardata
           texlive-numerica
           texlive-numerica-plus
           texlive-numerica-tables
           texlive-objectz
           texlive-oplotsymbl
           texlive-ot-tableau
           texlive-oubraces
           texlive-overarrows
           texlive-pascaltriangle
           texlive-perfectcut
           texlive-pfdicons
           texlive-physconst
           texlive-physics
           texlive-physics2
           texlive-physunits
           texlive-pinoutikz
           texlive-pm-isomath
           texlive-polexpr
           texlive-prftree
           texlive-principia
           texlive-proba
           texlive-proof-at-the-end
           texlive-prooftrees
           texlive-pseudo
           texlive-pseudocode
           texlive-pythonhighlight
           texlive-qsharp
           texlive-rank-2-roots
           texlive-rbt-mathnotes
           texlive-rec-thy
           texlive-resolsysteme
           texlive-rest-api
           texlive-revquantum
           texlive-ribbonproofs
           texlive-rmathbr
           texlive-sankey
           texlive-sasnrdisplay
           texlive-sciposter
           texlive-sclang-prettifier
           texlive-scratchx
           texlive-sesamanuel
           texlive-sfg
           texlive-shuffle
           texlive-simplebnf
           texlive-simpler-wick
           texlive-simples-matrices
           texlive-simplewick
           texlive-sistyle
           texlive-siunits
           texlive-siunitx
           texlive-skmath
           texlive-spalign
           texlive-spbmark
           texlive-stanli
           texlive-statex
           texlive-statex2
           texlive-statistics
           texlive-statistik
           texlive-statmath
           texlive-steinmetz
           texlive-stmaryrd
           texlive-structmech
           texlive-struktex
           texlive-substances
           texlive-subsupscripts
           texlive-subtext
           texlive-susy
           texlive-syllogism
           texlive-sympytexpackage
           texlive-synproof
           texlive-t-angles
           texlive-tablor
           texlive-tensind
           texlive-tensor
           texlive-tex-ewd
           texlive-textgreek
           texlive-textopo
           texlive-thermodynamics
           texlive-thmbox
           texlive-tiscreen
           texlive-turnstile
           texlive-ulqda
           texlive-unitsdef
           texlive-venn
           texlive-witharrows
           texlive-xymtex
           texlive-yhmath
           texlive-youngtab
           texlive-yquant
           texlive-ytableau
           texlive-zx-calculus))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Mathematics, natural sciences, computer science packages")
    (description
     "This collection provides mathematics, natural sciences, and computer
science packages.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-metapost
  (package
    (name "texlive-collection-metapost")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-automata
           texlive-bbcard
           texlive-blockdraw-mp
           texlive-bpolynomial
           texlive-cmarrows
           texlive-collection-basic
           texlive-drv
           texlive-dviincl
           texlive-emp
           texlive-epsincl
           texlive-expressg
           texlive-exteps
           texlive-featpost
           texlive-feynmf
           texlive-feynmp-auto
           texlive-fiziko
           texlive-garrigues
           texlive-gmp
           texlive-hatching
           texlive-hershey-mp
           texlive-latexmp
           texlive-mcf2graph
           texlive-metago
           texlive-metaobj
           texlive-metaplot
           texlive-metapost
           texlive-metapost-colorbrewer
           texlive-metauml
           texlive-mfpic
           texlive-mfpic4ode
           texlive-minim-hatching
           texlive-mp3d
           texlive-mparrows
           texlive-mpattern
           texlive-mpcolornames
           texlive-mpgraphics
           texlive-mptrees
           texlive-piechartmp
           texlive-repere
           texlive-roex
           texlive-roundrect
           texlive-shapes
           texlive-slideshow
           texlive-splines
           texlive-suanpan
           texlive-textpath
           texlive-threeddice))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "MetaPost and Metafont packages")
    (description
     "This collection includes all MetaPost and Metafont packages, along
with packages in @code{collection-basic}.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-pictures
  (package
    (name "texlive-collection-pictures")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-adigraph
           texlive-aobs-tikz
           texlive-askmaps
           texlive-asyfig
           texlive-asypictureb
           texlive-autoarea
           texlive-bardiag
           texlive-beamerswitch
           texlive-binarytree
           texlive-blochsphere
           texlive-bloques
           texlive-blox
           texlive-bodegraph
           texlive-bondgraph
           texlive-bondgraphs
           texlive-braids
           texlive-bxeepic
           texlive-byo-twemojis
           texlive-byrne
           texlive-cachepic
           texlive-callouts
           texlive-celtic
           texlive-chemfig
           texlive-circuit-macros
           texlive-circuitikz
           texlive-coffeestains
           texlive-collection-basic
           texlive-combinedgraphics
           texlive-curve
           texlive-curve2e
           texlive-curves
           texlive-dcpic
           texlive-diagmac2
           texlive-ditaa
           texlive-doc-pictex
           texlive-dot2texi
           texlive-dottex
           texlive-dpcircling
           texlive-dratex
           texlive-drs
           texlive-duotenzor
           texlive-dynkin-diagrams
           texlive-ecgdraw
           texlive-eepic
           texlive-ellipse
           texlive-endofproofwd
           texlive-epspdf
           texlive-epspdfconversion
           texlive-esk
           texlive-euflag
           texlive-fast-diagram
           texlive-fig4latex
           texlive-figchild
           texlive-figput
           texlive-fitbox
           texlive-flowchart
           texlive-forest
           texlive-genealogytree
           texlive-getmap
           texlive-gincltex
           texlive-gnuplottex
           texlive-gradientframe
           texlive-grafcet
           texlive-graph35
           texlive-graphicxpsd
           texlive-graphviz
           texlive-gtrlib-largetrees
           texlive-harveyballs
           texlive-here
           texlive-hf-tikz
           texlive-hobby
           texlive-hvfloat
           texlive-istgame
           texlive-kblocks
           texlive-kinematikz
           texlive-knitting
           texlive-knittingpattern
           texlive-ladder
           texlive-lapdf
           texlive-latex-make
           texlive-liftarm
           texlive-lpic
           texlive-lroundrect
           texlive-luamesh
           texlive-luasseq
           texlive-maker
           texlive-makeshape
           texlive-mathspic
           texlive-mercatormap
           texlive-milsymb
           texlive-miniplot
           texlive-mkpic
           texlive-modiagram
           texlive-neuralnetwork
           texlive-nl-interval
           texlive-nndraw
           texlive-numericplots
           texlive-outilsgeomtikz
           texlive-pb-diagram
           texlive-penrose
           texlive-petri-nets
           texlive-pgf
           texlive-pgf-blur
           texlive-pgf-interference
           texlive-pgf-periodictable
           texlive-pgf-pie
           texlive-pgf-soroban
           texlive-pgf-spectra
           texlive-pgf-umlcd
           texlive-pgf-umlsd
           texlive-pgfgantt
           texlive-pgfkeyx
           texlive-pgfmolbio
           texlive-pgfmorepages
           texlive-pgfopts
           texlive-pgfornament
           texlive-pgfplots
           texlive-picinpar
           texlive-pict2e
           texlive-pictex
           texlive-pictex2
           texlive-pinlabel
           texlive-pixelart
           texlive-pixelarttikz
           texlive-pmgraph
           texlive-postage
           texlive-prerex
           texlive-productbox
           texlive-ptolemaicastronomy
           texlive-puyotikz
           texlive-pxpgfmark
           texlive-pxpic
           texlive-qcircuit
           texlive-qrcode
           texlive-quantikz
           texlive-randbild
           texlive-randomwalk
           texlive-realhats
           texlive-reotex
           texlive-robotarm
           texlive-rviewport
           texlive-sa-tikz
           texlive-sacsymb
           texlive-schemabloc
           texlive-scratch
           texlive-scratch3
           texlive-scsnowman
           texlive-setdeck
           texlive-signchart
           texlive-simplenodes
           texlive-simpleoptics
           texlive-smartdiagram
           texlive-spath3
           texlive-spectralsequences
           texlive-strands
           texlive-swimgraf
           texlive-syntaxdi
           texlive-table-fct
           texlive-texdraw
           texlive-ticollege
           texlive-tikz-3dplot
           texlive-tikz-among-us
           texlive-tikz-bagua
           texlive-tikz-bayesnet
           texlive-tikz-bbox
           texlive-tikz-cd
           texlive-tikz-dependency
           texlive-tikz-dimline
           texlive-tikz-ext
           texlive-tikz-feynhand
           texlive-tikz-feynman
           texlive-tikz-imagelabels
           texlive-tikz-inet
           texlive-tikz-kalender
           texlive-tikz-karnaugh
           texlive-tikz-ladder
           texlive-tikz-lake-fig
           texlive-tikz-layers
           texlive-tikz-mirror-lens
           texlive-tikz-nef
           texlive-tikz-network
           texlive-tikz-opm
           texlive-tikz-optics
           texlive-tikz-page
           texlive-tikz-palattice
           texlive-tikz-planets
           texlive-tikz-qtree
           texlive-tikz-relay
           texlive-tikz-sfc
           texlive-tikz-swigs
           texlive-tikz-timing
           texlive-tikz-trackschematic
           texlive-tikz-truchet
           texlive-tikzbricks
           texlive-tikzcodeblocks
           texlive-tikzducks
           texlive-tikzfill
           texlive-tikzinclude
           texlive-tikzlings
           texlive-tikzmark
           texlive-tikzmarmots
           texlive-tikzorbital
           texlive-tikzpackets
           texlive-tikzpagenodes
           texlive-tikzpeople
           texlive-tikzpfeile
           texlive-tikzpingus
           texlive-tikzposter
           texlive-tikzscale
           texlive-tikzsymbols
           texlive-tikztosvg
           texlive-tikzviolinplots
           texlive-tile-graphic
           texlive-timing-diagrams
           texlive-tipfr
           texlive-tkz-base
           texlive-tkz-berge
           texlive-tkz-doc
           texlive-tkz-euclide
           texlive-tkz-fct
           texlive-tkz-graph
           texlive-tkz-orm
           texlive-tkz-tab
           texlive-tkzexample
           texlive-tonevalue
           texlive-tqft
           texlive-tsemlines
           texlive-tufte-latex
           texlive-twemojis
           texlive-tzplot
           texlive-utfsym
           texlive-venndiagram
           texlive-visualpstricks
           texlive-wheelchart
           texlive-worldflags
           texlive-xistercian
           texlive-xpicture
           texlive-xypic))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Graphics, pictures, diagrams")
    (description
     "This collection provides packages related to graphics, pictures, and
diagrams.  It includes TikZ, @code{pict}, etc.  However, MetaPost and
PStricks are separate.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-plaingeneric
  (package
    (name "texlive-collection-plaingeneric")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-abbr
           texlive-abstyles
           texlive-apnum
           texlive-autoaligne
           texlive-barr
           texlive-bitelist
           texlive-borceux
           texlive-c-pascal
           texlive-catcodes
           texlive-chronosys
           texlive-collection-basic
           texlive-colorsep
           texlive-compare
           texlive-crossrefenum
           texlive-cweb-old
           texlive-dinat
           texlive-dirtree
           texlive-docbytex
           texlive-dowith
           texlive-eijkhout
           texlive-encxvlna
           texlive-epigram
           texlive-epsf
           texlive-epsf-dvipdfmx
           texlive-expex-acro
           texlive-expkv-bundle
           texlive-fenixpar
           texlive-figflow
           texlive-fixpdfmag
           texlive-fltpoint
           texlive-fntproof
           texlive-font-change
           texlive-fontch
           texlive-fontname
           texlive-gates
           texlive-getoptk
           texlive-gfnotation
           texlive-gobble
           texlive-graphics-pln
           texlive-gtl
           texlive-hlist
           texlive-hyplain
           texlive-inputnormalization
           texlive-insbox
           texlive-js-misc
           texlive-kastrup
           texlive-lambda-lists
           texlive-langcode
           texlive-lecturer
           texlive-letterspacing
           texlive-librarian
           texlive-listofitems
           texlive-localloc
           texlive-mathdots
           texlive-metatex
           texlive-midnight
           texlive-mkpattern
           texlive-modulus
           texlive-multido
           texlive-namedef
           texlive-navigator
           texlive-newsletr
           texlive-nth
           texlive-ofs
           texlive-olsak-misc
           texlive-outerhbox
           texlive-path
           texlive-pdf-trans
           texlive-pdfmsym
           texlive-pitex
           texlive-placeins-plain
           texlive-plainpkg
           texlive-plipsum
           texlive-plnfss
           texlive-plstmary
           texlive-poormanlog
           texlive-present
           texlive-pwebmac
           texlive-random
           texlive-randomlist
           texlive-resumemac
           texlive-ruler
           texlive-schemata
           texlive-shade
           texlive-simplekv
           texlive-soul
           texlive-swrule
           texlive-systeme
           texlive-tabto-generic
           texlive-termmenu
           texlive-tex-ps
           texlive-tex4ht
           texlive-texapi
           texlive-texdate
           texlive-texdimens
           texlive-texinfo
           texlive-timetable
           texlive-tracklang
           texlive-transparent-io
           texlive-treetex
           texlive-trigonometry
           texlive-ulem
           texlive-upca
           texlive-varisize
           texlive-xii
           texlive-xii-lat
           texlive-xintsession
           texlive-xlop
           texlive-yax
           texlive-zztex))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "Plain (La)TeX packages")
    (description
     "This consist of add-on packages and macros that work with plain TeX,
often LaTeX, and occasionally other formats.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-pstricks
  (package
    (name "texlive-collection-pstricks")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-auto-pst-pdf
           texlive-bclogo
           texlive-collection-basic
           texlive-collection-plaingeneric
           texlive-dsptricks
           texlive-luapstricks
           texlive-makeplot
           texlive-pdftricks
           texlive-pdftricks2
           texlive-pedigree-perl
           texlive-psbao
           texlive-pst-2dplot
           texlive-pst-3d
           texlive-pst-3dplot
           texlive-pst-abspos
           texlive-pst-am
           texlive-pst-antiprism
           texlive-pst-arrow
           texlive-pst-asr
           texlive-pst-bar
           texlive-pst-barcode
           texlive-pst-bezier
           texlive-pst-blur
           texlive-pst-bspline
           texlive-pst-calculate
           texlive-pst-calendar
           texlive-pst-cie
           texlive-pst-circ
           texlive-pst-coil
           texlive-pst-contourplot
           texlive-pst-cox
           texlive-pst-dart
           texlive-pst-dbicons
           texlive-pst-diffraction
           texlive-pst-electricfield
           texlive-pst-eps
           texlive-pst-eucl
           texlive-pst-exa
           texlive-pst-feyn
           texlive-pst-fill
           texlive-pst-fit
           texlive-pst-flags
           texlive-pst-fr3d
           texlive-pst-fractal
           texlive-pst-fun
           texlive-pst-func
           texlive-pst-gantt
           texlive-pst-geo
           texlive-pst-geometrictools
           texlive-pst-gr3d
           texlive-pst-grad
           texlive-pst-graphicx
           texlive-pst-hsb
           texlive-pst-infixplot
           texlive-pst-intersect
           texlive-pst-jtree
           texlive-pst-knot
           texlive-pst-labo
           texlive-pst-layout
           texlive-pst-lens
           texlive-pst-light3d
           texlive-pst-lsystem
           texlive-pst-magneticfield
           texlive-pst-marble
           texlive-pst-math
           texlive-pst-mirror
           texlive-pst-moire
           texlive-pst-node
           texlive-pst-ob3d
           texlive-pst-ode
           texlive-pst-optexp
           texlive-pst-optic
           texlive-pst-osci
           texlive-pst-ovl
           texlive-pst-pad
           texlive-pst-pdf
           texlive-pst-pdgr
           texlive-pst-perspective
           texlive-pst-platon
           texlive-pst-plot
           texlive-pst-poker
           texlive-pst-poly
           texlive-pst-pulley
           texlive-pst-qtree
           texlive-pst-rputover
           texlive-pst-rubans
           texlive-pst-shell
           texlive-pst-sigsys
           texlive-pst-slpe
           texlive-pst-solarsystem
           texlive-pst-solides3d
           texlive-pst-soroban
           texlive-pst-spectra
           texlive-pst-spinner
           texlive-pst-stru
           texlive-pst-support
           texlive-pst-text
           texlive-pst-thick
           texlive-pst-tools
           texlive-pst-tree
           texlive-pst-turtle
           texlive-pst-tvz
           texlive-pst-uml
           texlive-pst-vectorian
           texlive-pst-vehicle
           texlive-pst-venn
           texlive-pst-vowel
           texlive-pst2pdf
           texlive-pstricks
           texlive-pstricks-add
           texlive-pstricks-calcnotes
           texlive-uml
           texlive-vaucanson-g
           texlive-vocaltract))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "PSTricks core and add-ons")
    (description
     "This collection provides PSTricks core and all add-on packages.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-collection-xetex
  (package
    (name "texlive-collection-xetex")
    (version (number->string %texlive-revision))
    (source #f)
    (build-system trivial-build-system)
    (arguments (list #:builder #~(mkdir #$output)))
    (propagated-inputs
     (list texlive-arabxetex
           texlive-awesomebox
           texlive-bidi-atbegshi
           texlive-bidicontour
           texlive-bidipagegrid
           texlive-bidipresentation
           texlive-bidishadowtext
           texlive-businesscard-qrcode
           texlive-collection-basic
           texlive-cqubeamer
           texlive-fixlatvian
           texlive-font-change-xetex
           texlive-fontbook
           texlive-fontwrap
           texlive-interchar
           texlive-na-position
           texlive-philokalia
           texlive-ptext
           texlive-realscripts
           texlive-simple-resume-cv
           texlive-simple-thesis-dissertation
           texlive-tetragonos
           texlive-ucharclasses
           texlive-unicode-bidi
           texlive-unimath-plain-xetex
           texlive-unisugar
           texlive-xebaposter
           texlive-xechangebar
           texlive-xecolor
           texlive-xecyr
           texlive-xeindex
           texlive-xesearch
           texlive-xespotcolor
           texlive-xetex
           texlive-xetex-itrans
           texlive-xetex-pstricks
           texlive-xetex-tibetan
           texlive-xetexconfig
           texlive-xetexfontinfo
           texlive-xetexko
           texlive-xevlna
           texlive-zbmath-review-template))
    (home-page "https://www.tug.org/texlive/")
    (synopsis "XeTeX and packages")
    (description
     "This collection includes packages for XeTeX, the Unicode and
OpenType-enabled TeX by Jonathan Kew.")
    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))

(define-public texlive-grfext
  (package
    (name "texlive-grfext")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/grfext/" "source/latex/grfext/"
                   "tex/latex/grfext/")
             (base32
              "1x35r10mkjg8dzx7aj99y4dwyf69jgs41qwapdx523lbglywmgxp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/grfext")
    (synopsis "Manipulate the @code{graphics} package's list of extensions")
    (description
     "This package provides macros for adding to, and reordering the list of
graphics file extensions recognised by package @code{graphics}.")
    (license license:lppl1.3c+)))

(define-public texlive-addliga
  (package
    (name "texlive-addliga")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/addliga/"
                   "tex/lualatex/addliga/")
             (base32
              "1gbdbwskba1rf3bmvwms3i3crj3dcqqg69wdzfdyy1a6ml05qpc7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/addliga")
    (synopsis "Access basic ligatures in legacy TrueType fonts")
    (description
     "This small and simple package allows LuaLaTeX users to access basic
ligatures (ff, fi, ffi, fl, ffl) in legacy TrueType fonts (those
lacking a liga table) accessed via @code{fontspec}.")
    (license license:public-domain)))

(define-public texlive-adigraph
  (package
    (name "texlive-adigraph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/adigraph/" "tex/latex/adigraph/")
             (base32
              "0qzljcd1g0a9mwj0nrqc2xbka9si27a5d9hg3y7kk73n50zsxv5x")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/adigraph")
    (synopsis "Augmenting directed graphs")
    (description
     "This LaTeX package provides the means to easily draw augmenting oriented
graphs, as well as cuts on them, to demonstrate steps of algorithms for
solving max-flow min-cut problems.")
    (license license:expat)))

(define-public texlive-adjustbox
  (package
    (name "texlive-adjustbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/adjustbox/"
                   "source/latex/adjustbox/"
                   "tex/latex/adjustbox/")
             (base32
              "02iqc3i3n3d16xx8hgfy5s28h26fhnqf1f4kcxap6rssr165jj3h")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-ydoc))
    (propagated-inputs
     (list texlive-collectbox texlive-graphics texlive-xkeyval))
    (home-page "https://ctan.org/pkg/adjustbox")
    (synopsis "Graphics package-alike macros for general boxes")
    (description "The package provides several macros to adjust boxed
content.  One purpose is to supplement the standard @code{graphics} package,
which defines the macros @code{\\resizebox}, @code{\\scalebox} and
@code{\\rotatebox} , with the macros @code{\\trimbox} and @code{\\clipbox}.
The main feature is the general @code{\\adjustbox} macro which extends the
@code{key=value} interface of @code{\\includegraphics} from the
@code{graphics} package and applies it to general text content.  Additional
provided box macros are @code{\\lapbox}, @code{\\marginbox},
@code{\\minsizebox}, @code{\\maxsizebox} and @code{\\phantombox}.")
    (license license:lppl1.3+)))

(define-public texlive-aobs-tikz
  (package
    (name "texlive-aobs-tikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/aobs-tikz/"
                   "source/latex/aobs-tikz/"
                   "tex/latex/aobs-tikz/")
             (base32
              "04p3ghywqb3nr91vh6l39f8z9gbb3r6ca6yvq3nrcsqarxypfqny")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/aobs-tikz")
    (synopsis "TikZ styles for creating overlaid pictures in beamer")
    (description
     "The package defines auxiliary TikZ styles useful for overlaying pictures
elements in Beamer.")
    (license license:lppl1.3+)))

(define-public texlive-askmaps
  (package
    (name "texlive-askmaps")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/askmaps/" "tex/latex/askmaps/")
             (base32
              "0l61gq2i1di9zn6s2nf5sn0pdp3z78rij17sgjywy0xka43znhlk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/askmaps")
    (synopsis "Typeset American style Karnaugh maps")
    (description
     "The package provides 1, 2, 3, 4 and 5 variable Karnaugh maps, in the
style used in numerous American textbooks on digital design.  The package
draws K-maps where the most significant input variables are placed on top of
the columns and the least significant variables are placed left of the rows.")
    (license license:lppl)))

(define-public texlive-asyfig
  (package
    (name "texlive-asyfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/asyfig/" "source/latex/asyfig/"
                   "tex/latex/asyfig/")
             (base32
              "0116a920z8hq3v50gmgh3f8diq7307wx0zsh2pmznw7gkvn6rn4k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs (list texlive-filecontents))
    (home-page "https://ctan.org/pkg/asyfig")
    (synopsis "Commands for using Asymptote figures")
    (description
     "The package provides a means of reading Asymptote figures from separate
files, rather than within the document, as is standard in the @code{asymptote}
package, which is provided as part of the Asymptote bundle.  The Asymptote way
can prove cumbersome in a large document; the present package allows the user
to process one picture at a time, in simple test documents, and then to
migrate (with no fuss) to their use in the target document.")
    (license license:lppl)))

(define-public texlive-asypictureb
  (package
    (name "texlive-asypictureb")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/asypictureb/"
                   "source/latex/asypictureb/"
                   "tex/latex/asypictureb/")
             (base32
              "1djlphr3iz0l0x2pf8abd251q78rml6435f6ng7fa553anwgwya9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/asypictureb")
    (synopsis "User-friendly integration of Asymptote into LaTeX")
    (description
     "The package is an unofficial alternative to the package provided with
the Asymptote distribution, for including pictures within a LaTeX source file.
While it does not duplicate all the features of the official package, this
package is more user-friendly in several ways.  Most notably, Asymptote errors
are repackaged as LaTeX errors, making debugging less of a pain.  It also has
a more robust mechanism for identifying unchanged pictures that need not be
recompiled.")
    (license license:lppl1.3+)))

(define-public texlive-auto-pst-pdf-lua
  (package
    (name "texlive-auto-pst-pdf-lua")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/auto-pst-pdf-lua/"
                   "tex/latex/auto-pst-pdf-lua/")
             (base32
              "1wkhdg47qjpc0yv47z1jmrmpnq8zic6bqfmay3ry6lvv47f775z1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-iftex))
    (home-page "https://ctan.org/pkg/auto-pst-pdf-lua")
    (synopsis "Using LuaLaTeX together with PostScript code")
    (description
     "This package is a slightly modified version of @code{auto-pst-pdf} by
Will Robertson, which itself is a wrapper for @code{pst-pdf} by Rolf
Niepraschk.  The package allows the use of LuaLaTeX together with PostScript
related code, e.g., PSTricks.")
    (license license:lppl1.3c)))

(define-public texlive-autoarea
  (package
    (name "texlive-autoarea")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/autoarea/" "tex/latex/autoarea/")
             (base32
              "09a9wiihb397ljasnkxrqygsi34bd9a5spq8h3njf6awra2x2m6c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pictex-autoarea")
    (synopsis "Automatic computation of bounding boxes with PiCTeX")
    (description
     "This package makes PiCTeX recognize lines and arcs in determining the
bounding box of a picture.  The bounding box is essential for proper placement
of a picture between running text and margins and for keeping the running text
away.")
    (license license:lppl)))

(define-public texlive-bardiag
  (package
    (name "texlive-bardiag")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bardiag/" "tex/latex/bardiag/")
             (base32
              "1iy0cr24ki93jlnmzr1fgqa7jqg0zhxds422cz322zwr19936zz9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bardiag")
    (synopsis "LaTeX package for drawing bar diagrams")
    (description
     "The main purpose of the package is to make the drawing of bar diagrams
possible and easy in LaTeX.  The BarDiag package is inspired by and based on
PSTricks.")
    (license license:lppl)))

(define-public texlive-barracuda
  (package
    (name "texlive-barracuda")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/barracuda/" "scripts/barracuda/"
                   "tex/luatex/barracuda/")
             (base32
              "1v318nbbbp2klp0rykzb3skqqw4hhj1hbliigmp3qh34iiq3wqh0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/barracuda")
    (synopsis "Draw barcodes with Lua")
    (description
     "The Barracuda library is a modular Lua package for drawing barcode
symbols.  It provides modules for writing barcodes from a LuaTeX document.  It
is also possible to use Barracuda with a standalone Lua interpreter to draw
barcodes in different graphic formats like SVG.")
    (license license:gpl2)))

(define-public texlive-beamerswitch
  (package
    (name "texlive-beamerswitch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/beamerswitch/"
                   "source/latex/beamerswitch/"
                   "tex/latex/beamerswitch/")
             (base32
              "1kz257kv9fdy9fvphd8sx1k0swsynrl6kxqidnh8lp70k8f24ggj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/beamerswitch")
    (synopsis "Convenient mode selection in Beamer documents")
    (description
     "This class is a wrapper around the beamer class to make it easier to use
the same document to generate the different forms of the presentation: the
slides themselves, an abbreviated slide set for transparencies or online
reference, an n-up handout version (various layouts are provided), and
a transcript or set of notes using the article class.  The class provides
a variety of handout layouts, and allows the mode to be chosen from the
command line (without changing the document itself).")
    (license license:lppl1.3c)))

(define-public texlive-bezierplot
  (package
    (name "texlive-bezierplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/bezierplot/"
                   "tex/lualatex/bezierplot/")
             (base32
              "125gdb9d160g729v3fbsrsrw5abk34jwa4x43yil0mzjls2aq550")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bezierplot")
    (synopsis "Approximate smooth function graphs with cubic Bezier splines")
    (description
     "This package consists of a Lua program as well as a (Lua)LaTeX
@file{.sty} file.  Given a smooth function, @code{bezierplot} returns a smooth
Bezier path written in TikZ notation, which also matches MetaPost, that
approximates the graph of the function.  For polynomial functions of degree
lesser or equal to 3 and their inverses the approximation is exact (up to
numeric precision).  @code{bezierplot} also finds special points such as
extreme points and inflection points and reduces the number of used points.")
    (license license:lppl1.3c)))

(define-public texlive-binarytree
  (package
    (name "texlive-binarytree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/binarytree/"
                   "source/latex/binarytree/"
                   "tex/latex/binarytree/")
             (base32
              "1lip6npfggc6p14hhpwn1g52xmyyb5rp34znb437frks4n1bk66s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/binarytree")
    (synopsis "Drawing binary trees using TikZ")
    (description
     "This package provides an easy but flexible way to draw binary trees
using TikZ.  A path specification and the setting of various options determine
the style for each edge of the tree.  There is support for the external
library of TikZ which does not affect externalization of the rest of the TikZ
figures in the document.  There is an option to use automatic file naming:
useful if the trees are often moved around.")
    (license license:lppl1.3+)))

(define-public texlive-blochsphere
  (package
    (name "texlive-blochsphere")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/blochsphere/"
                   "source/latex/blochsphere/"
                   "tex/latex/blochsphere/")
             (base32
              "03gl19r0cc1ajychh6f31bdjqpmmlk0cxg1akxg3h47yrf2np245")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/blochsphere")
    (synopsis "Draw pseudo-3D diagrams of Bloch spheres")
    (description
     "This package is used to draw pseudo-3D Blochsphere diagrams.  It
supports various annotations, such as great and small circles, axes, rotation
markings and state vectors.  It can be used in a standalone fashion, or nested
within a @code{tikzpicture} environment by setting the environment option
@code{nested} to @code{true}.")
    (license license:lppl1.3+)))

(define-public texlive-bloques
  (package
    (name "texlive-bloques")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bloques/" "tex/latex/bloques/")
             (base32
              "10mxqjfljcphg4nifg8xy3s6k49vxvxhs5s805640npc8jgmbf64")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bloques")
    (synopsis "Generate control diagrams")
    (description
     "The package uses TikZ to provide commands for generating control
diagrams (specially in power electronics).")
    (license license:lppl1.3+)))

(define-public texlive-blox
  (package
    (name "texlive-blox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/blox/" "source/latex/blox/"
                   "tex/latex/blox/")
             (base32
              "0xkv6rvkbchkwgfam5kiymng0xnc4vja5xb3b5d89rngdr041xwk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-fancyvrb
                  texlive-hypdoc
                  texlive-hyperref
                  texlive-infwarerr
                  texlive-kvoptions
                  texlive-pgf
                  texlive-tools))))
    (home-page "https://ctan.org/pkg/blox")
    (synopsis "Draw block diagrams, using TikZ")
    (description
     "This package, along with TikZ, will typeset block diagrams for use with
programming and control theory.  It is an English translation of the
@code{schemabloc} package.")
    (license license:lppl1.3+)))

(define-public texlive-bodegraph
  (package
    (name "texlive-bodegraph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bodegraph/"
                   "tex/latex/bodegraph/")
             (base32
              "0r89cnn42yyxpvbxfasalwfdmcq0aksdm3cmqy9wfv4qnc48wmcd")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bodegraph")
    (synopsis "Draw Bode, Nyquist and Black plots with gnuplot and TikZ")
    (description
     "The package provides facilities to draw Bode, Nyquist and Black plots
using Gnuplot and Tikz.  Elementary Transfer Functions and basic correctors
are preprogrammed for use.")
    (license license:lppl)))

(define-public texlive-bondgraph
  (package
    (name "texlive-bondgraph")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bondgraph/"
                   "tex/latex/bondgraph/")
             (base32
              "165fgkcybazd2jqgcfqc8hh8askl1hdv86d8bz5b1s4aff95hv24")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bondgraph")
    (synopsis "Create bond graph figures in LaTeX documents")
    (description "The package draws bond graphs using PGF and TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-bondgraphs
  (package
    (name "texlive-bondgraphs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bondgraphs/"
                   "source/latex/bondgraphs/"
                   "tex/latex/bondgraphs/")
             (base32
              "1gisr9f2n3mwf2qaqdj9sjmxscrpa9zrb9jm7v5l96ba8kqqw6hx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bondgraphs")
    (synopsis "Draws bond graphs in LaTeX, using PGF/TikZ")
    (description
     "The package is used to draw bond graphs in LaTeX.  Compared to the
@code{bondgraph} package this package relies more on TikZ styles and less on
macros, to generate the drawings.  As such it can be more flexible than his,
but requires more TikZ knowledge of the user.")
    (license license:lppl1.3+)))

(define-public texlive-braids
  (package
    (name "texlive-braids")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/braids/" "source/latex/braids/"
                   "tex/latex/braids/")
             (base32
              "1ld7kzr96bh7gdjllxn888j92p7j1l4b1krlp8dmhy6fq3a2qn22")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/braids")
    (synopsis "Draw Braid diagrams with PGF/TikZ")
    (description
     "The package enables drawing of Braid diagrams with PGF/TikZ using
a simple syntax.  The Braid itself is specified by giving a word in the Braid
group, and there are many options for styling the strands and for drawing
floors.")
    (license license:lppl1.3c)))

(define-public texlive-bxeepic
  (package
    (name "texlive-bxeepic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bxeepic/" "tex/latex/bxeepic/")
             (base32
              "1zxmysbnv4s47qx0yajr9h62x8azjh660811yd4qcv0ih9mcdyy7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bxeepic")
    (synopsis "Eepic facilities using @code{pict2e}")
    (description
     "The package provides an Eepic driver to use @code{pict2e} facilities.")
    (license license:expat)))

(define-public texlive-byo-twemojis
  (package
    (name "texlive-byo-twemojis")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/byo-twemojis/"
                   "source/latex/byo-twemojis/"
                   "tex/latex/byo-twemojis/")
             (base32
              "0wnl6jcwrkxvzfsq04kabxanraa8zi08fjg4a1b7cqpawiphf8jp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/byo-twemojis")
    (synopsis "Build Your Own Twemojis with TikZ")
    (description
     "This package provides the means to create your own emojis (the simple,
round, and mostly yellow ones) from elements of existing emojis.  The provided
command creates a TikZ picture from the stated elements with multiple
possibilities to modify the result in color and position.")
    (license (list license:cc-by4.0 license:lppl1.3+))))

(define-public texlive-byrne
  (package
    (name "texlive-byrne")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/metapost/byrne/" "metapost/byrne/"
                   "tex/latex/byrne/")
             (base32
              "1h4543pimjsv30phinbhs8070ymqaf43vd2wx1yhjmwsqj4fcjmc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/byrne")
    (synopsis
     "Typeset geometric proofs in the style of Euclid's @emph{Elements}")
    (description
     "This package is a LaTeX adaptation of a set of tools developed for
ConTeXt reproduction of Oliver Byrne's 1847 edition of the first six books of
Euclid's @emph{Elements}; see
@url{https://github.com/jemmybutton/byrne-euclid}.  It consists of a MetaPost
library, responsible for all the drawing and a set of LaTeX macros to
conveniently use them.")
    (license license:gpl3+)))

(define-public texlive-cachepic
  (package
    (name "texlive-cachepic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/cachepic/" "scripts/cachepic/"
                   "tex/latex/cachepic/")
             (base32
              "0kc713pig67igi0h294k692lmm12mx611z3v73awsf5xv14ms3yx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "cachepic.tlu")))
    (home-page "https://ctan.org/pkg/cachepic")
    (synopsis "Convert document fragments into graphics")
    (description
     "The bundle simplifies and automates conversion of document fragments
into external EPS or PDF files.  The bundle consists of two parts: a LaTeX
package that implements a document level interface, and a command line tool
that generates the external graphics.")
    (license license:lppl1.3+)))

(define-public texlive-callouts
  (package
    (name "texlive-callouts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/callouts/" "tex/latex/callouts/")
             (base32
              "1yb2vc1wiffap0dbq0jw40ax9kmk6np269ayij67vcmg0iqnmb11")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/callouts")
    (synopsis "Put simple annotations and notes inside a picture")
    (description
     "The package defines the @code{annotation} environment in which callouts,
notes, arrows, and the like can be placed to describe certain parts of
a picture.")
    (license license:lppl)))

(define-public texlive-celtic
  (package
    (name "texlive-celtic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/celtic/" "source/latex/celtic/"
                   "tex/latex/celtic/")
             (base32
              "0zqz87y0wx5v50qnzvz6gqsz1z81ikcj4ma8mwgclrfyazpll9d0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/celtic")
    (synopsis "TikZ library for drawing celtic knots")
    (description
     "The package provides a TikZ library for drawing celtic knots.")
    (license license:lppl1.3+)))

(define-public texlive-chemfig
  (package
    (name "texlive-chemfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/chemfig/"
                   "tex/generic/chemfig/")
             (base32
              "01mai7drwm3y4i3yj4fkwqjyzwlr4dvq467lwdzsbj3dl5fxwgpg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/chemfig")
    (synopsis "Draw molecules with easy syntax")
    (description
     "The package provides the command @code{\\chemfig}, which draws molecules
using the TikZ package.  While the diagrams produced are essentially
2-dimensional, the package supports many of the conventional notations for
illustrating the 3-dimensional layout of a molecule.")
    (license license:lppl1.3c)))

(define-public texlive-circuit-macros
  (package
    (name "texlive-circuit-macros")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/circuit-macros/"
                   "tex/latex/circuit-macros/")
             (base32
              "0f1k951bm18m0y2b6hjmz5x8gsl7sdqa2ky4sdnv4fkwwmh1icw5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/circuit-macros")
    (synopsis "M4 macros for electric circuit diagrams")
    (description
     "This package provides a set of m4 macros for drawing high-quality
electric circuits containing fundamental elements, amplifiers, transistors,
and basic logic gates to include in TeX, LaTeX, or similar documents.  Some
tools and examples for other types of diagrams are also included.  The macros
can be evaluated to drawing commands in the @code{pic} language, which
contains elements of a simple programming language, and is well-suited to line
drawings requiring parametric or conditional components, fine tuning,
significant geometric calculations or repetition, or that are naturally block
structured or tree structured.  Alternative output macros can create TeX
output to be read by PSTricks, TikZ commands for use by the PGF bundle, or
SVG.")
    (license license:lppl1.3c)))

(define-public texlive-circuitikz
  (package
    (name "texlive-circuitikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/context/third/circuitikz/"
                   "doc/generic/circuitikz/"
                   "doc/latex/circuitikz/"
                   "tex/context/third/circuitikz/"
                   "tex/generic/circuitikz/"
                   "tex/latex/circuitikz/")
             (base32
              "1vgsrr94wqab264vkqwdm29k1a18x03rb30jff0p7zgm3gn54z17")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/circuitikz")
    (synopsis "Draw electrical networks with TikZ")
    (description
     "The package provides a set of macros for naturally typesetting
electrical and electronic networks.  It is designed as a tool that is native
to LaTeX, and directly supporting PDF output format.  It has therefore been
based on the PGF/TikZ package.")
    (license (list license:lppl license:gpl3+))))

(define-public texlive-coffeestains
  (package
    (name "texlive-coffeestains")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/coffeestains/"
                   "tex/latex/coffeestains/")
             (base32
              "0nc2nmxg378gg16q6gxj68w94fl3nd5lcgk2fq9hp17mg6q27gsc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/coffeestains")
    (synopsis "Add coffee stains to documents")
    (description
     "This package provides an essential feature that LaTeX has been missing
for too long: It adds coffee stains to your documents.  A lot of time can be
saved by printing stains directly on the page rather than adding them
manually.")
    (license license:public-domain)))

(define-public texlive-combinedgraphics
  (package
    (name "texlive-combinedgraphics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/combinedgraphics/"
                   "source/latex/combinedgraphics/"
                   "tex/latex/combinedgraphics/")
             (base32
              "1jb0bc5s8kn5aplgmry94laj92c2h16xv77km6fz0pcd4wvpng6i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/combinedgraphics")
    (synopsis "Include graphic (EPS or PDF)/LaTeX combinations")
    (description
     "This package provides the @code{\\includecombinedgraphics} macro for the
inclusion of combined EPS/LaTeX and PDF/LaTeX graphics.  Instead of including
the graphics with a simple @code{\\input}, the
@code{\\includecombinedgraphics} macro has some comforts: changing the font
and color of the text of the LaTeX part; rescaling the graphics without
affecting the font of the LaTeX part; automatic inclusion of the vector
graphics part, as far as LaTeX part does not do it; and rescaling and rotating
of complete graphics.")
    (license license:gpl3+)))

(define-public texlive-curve
  (package
    (name "texlive-curve")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/curve/" "source/latex/curve/"
                   "tex/latex/curve/")
             (base32
              "0780i6zr24v30ixn6zcalqr2pdp5jkxk8ksfw090aaq03wpxmggg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/curve")
    (synopsis "Class for making curriculum vitae")
    (description
     "CurVe is a class for writing a CV, with configuration for the language
in which you write.  The class provides a set of commands to create rubrics,
entries in these rubrics etc.  CurVe then format the CV (possibly splitting it
onto multiple pages, repeating the titles etc), which is usually the most
painful part of CV writing.  Another nice feature of CurVe is its ability to
manage different CV flavours simultaneously.  It is often the case that you
want to maintain slightly divergent versions of your CV at the same time, in
order to emphasize on different aspects of your background.  CurVe also comes
with support for use with AUC-TeX.")
    (license license:lppl)))

(define-public texlive-curve2e
  (package
    (name "texlive-curve2e")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/curve2e/" "source/latex/curve2e/"
                   "tex/latex/curve2e/")
             (base32
              "0fa2xp3yh1bv8ivxf48ywiwi9wjgq0bnvnyc2rcy73wczwilsyk4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/curve2e")
    (synopsis "Extensions for package @code{pict2e}")
    (description
     "The package extends the drawing capacities of the @code{pict2e} package
that serves as a LaTeX2e replacement for @code{picture} mode.  In particular,
@code{curve2e} introduces new macros for lines and vectors, new specifications
for line terminations and joins, arcs with any angular aperture, arcs with
arrows at one or both ends, generic curves specified with their nodes and the
tangent direction at these nodes.")
    (license license:lppl1.3c)))

(define-public texlive-curves
  (package
    (name "texlive-curves")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/curves/" "source/latex/curves/"
                   "tex/latex/curves/")
             (base32
              "1diwxq6maizcnmwr6shnl044cvhnd7c2f55avgsyap6ds5wv86wn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/curves")
    (synopsis "Curves for LaTeX picture environment")
    (description
     "This package draws curves in the standard LaTeX picture environment
using parabolas between data points with continuous slope at joins; for
circles and arcs, it uses up to 16 parabolas.  The package can also draw
symbols or dash patterns along curves.  It provides facilities equivalent to
technical pens with compasses and French curves.")
    (license license:lppl1.3+)))

(define-public texlive-dcpic
  (package
    (name "texlive-dcpic")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/dcpic/" "tex/generic/dcpic/")
             (base32
              "1s4292g12r2vrnsdj4qsa9jgj9ndgdg7h27n2ig3mf305h5h5hfr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dcpic")
    (synopsis "Commutative diagrams in a LaTeX and TeX documents")
    (description
     "DCpic is a package for typesetting commutative diagrams within a LaTeX
and TeX documents.  Its distinguishing features are: a powerful graphical
engine, the PiCTeX package; an easy specification syntax in which
a commutative diagram is described in terms of its objects and its
arrows (morphism), positioned in a Cartesian coordinate system.")
    (license license:lppl1.3+)))

(define-public texlive-diagmac2
  (package
    (name "texlive-diagmac2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/diagmac2/" "tex/latex/diagmac2/")
             (base32
              "002p9qmrbbkqc72iippnjhxmb7yybx06xr6bs76hg04pzvh5a49f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/diagmac2")
    (synopsis "Diagram macros, using @code{pict2e}")
    (description
     "This is a development of the long-established @code{diagmac} package,
using @code{pict2e} so that the restrictions on line direction are removed.")
    (license license:lppl)))

(define-public texlive-ditaa
  (package
    (name "texlive-ditaa")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ditaa/" "tex/latex/ditaa/")
             (base32
              "1dk915p169hnpy9888kpslawhkmlipbkdrsnk1pajypcl7jyrniw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ditaa")
    (synopsis "Use ditaa diagrams within LaTeX documents")
    (description
     "With this package, @acronym{DITAA, DIagrams Through Ascii Art} diagrams
can be embedded directly into LaTeX files.")
    (license license:lppl)))

(define-public texlive-doc-pictex
  (package
    (name "texlive-doc-pictex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/doc-pictex/")
             (base32
              "0fdvqhkgi5j33rx0r4fifj69f4smn5w0n99vx90a3fw15qzxsg5y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/doc-pictex")
    (synopsis "Summary list of PicTeX documentation")
    (description
     "This package provides a summary of available resources providing
documentation of PicTeX.")
    (license
     (list
      (license:fsf-free "share/texmf-dist/doc/generic/doc-pictex/Doc-PiCTeX.txt")))))

(define-public texlive-dot2texi
  (package
    (name "texlive-dot2texi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dot2texi/" "tex/latex/dot2texi/")
             (base32
              "1m8774ds3hsky4nk0krj4a582fyznrxdfbfma5z8hp083nrlm469")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dot2texi")
    (synopsis "Create graphs within LaTeX using the @code{dot2tex} tool")
    (description
     "The @code{dot2texi} package allows you to embed graphs in the DOT graph
description language in your LaTeX documents.  The @code{dot2tex} tool is used
to invoke Graphviz for graph layout, and to transform the output from Graphviz
to LaTeX code.  The generated code relies on the TikZ and PGF package or the
PSTricks package.")
    (license license:gpl3+)))

(define-public texlive-dottex
  (package
    (name "texlive-dottex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dottex/" "source/latex/dottex/"
                   "tex/latex/dottex/")
             (base32
              "0lk3ylbbgq2glni6qp6spmn8mr2qv4q1b06raadsb7hh75p1r218")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dottex")
    (synopsis "Use DOT code in LaTeX")
    (description
     "The @code{dottex} package allows you to encapsulate DOT and Neato files
in your document (DOT and Neato are both part of @code{graphviz}; DOT creates
directed graphs, Neato undirected graphs).")
    (license license:gpl3+)))

(define-public texlive-doulossil
  (package
    (name "texlive-doulossil")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/doulossil/"
                   "fonts/truetype/public/doulossil/")
             (base32
              "0frhwpm7xzhhz83wpmlrwgz3c3bpvhm8pa0b6vkdgm8qj799irrb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/doulossil")
    (synopsis "Font for typesetting the International Phonetic Alphabet (IPA)")
    (description
     "This package provides the IPA font Doulos SIL in TrueType format.")
    (license license:silofl1.1)))

(define-public texlive-dpcircling
  (package
    (name "texlive-dpcircling")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dpcircling/"
                   "tex/latex/dpcircling/")
             (base32
              "0wpskh9rixgjvn4h5kand9ggiqa2mqca5fc0l565pxq8a9sq2bm0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dpcircling")
    (synopsis "Decorated text boxes using TikZ")
    (description
     "This simple package provides four types of text decorations using TikZ.
You can frame your text with circles, rectangles, jagged rectangles, and
fan-shapes.  The baseline will be adjusted properly according to the
surroundings.  You can use these decorations both in text mode and in math
mode.  You can specify line color, line width, width, and height using option
keys.")
    (license license:expat)))

(define-public texlive-dratex
  (package
    (name "texlive-dratex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/dratex/" "tex/generic/dratex/")
             (base32
              "02qpchj2ws1d9d80284k7akzafbgdm358qxd41ms21rszyzdj11c")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dratex")
    (synopsis "General drawing macros")
    (description
     "This package provides a low level (@file{DraTex.sty}) and
a high-level (@file{AlDraTex.sty}) drawing package written entirely in TeX.")
    (license license:lppl)))

(define-public texlive-drs
  (package
    (name "texlive-drs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/drs/" "tex/latex/drs/")
             (base32
              "0vvwbn1qxxh42v1jjvk3nra79zv0lz0fyrj5c6q8yjppn2rj10h0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/drs")
    (synopsis "Typeset Discourse Representation Structures (DRS)")
    (description
     "The package draws Discourse Representation Structures (DRSs).  It can
draw embedded DRSs, if-then conditions and quantificational duplex
conditions (with a properly scaled connecting diamond).  Formatting parameters
allow the user to control the appearance and placement of DRSs, and of DRS
variables and conditions.  The package is based on DRS macros in the
@code{covington} package.")
    (license license:lppl1.3+)))

(define-public texlive-duotenzor
  (package
    (name "texlive-duotenzor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/duotenzor/"
                   "tex/latex/duotenzor/")
             (base32
              "1l99ah5p2cp1qikk3jrbn1xrs6fz23c9h7wqc228jnrkmni7kn98")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/duotenzor")
    (synopsis "Drawing package for circuit and duotensor diagrams")
    (description
     "This is a drawing package for circuit and duotensor diagrams within
LaTeX documents.  It consists of about eighty commands, calling on TikZ for
support.")
    (license license:lppl1.3+)))

(define-public texlive-dynkin-diagrams
  (package
    (name "texlive-dynkin-diagrams")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/dynkin-diagrams/"
                   "tex/latex/dynkin-diagrams/")
             (base32
              "0s2bf8l51ngpf9bg8vx8s4xa0dmdxj02h0hcyf23kh58xpxvmylh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/dynkin-diagrams")
    (synopsis "Draw Dynkin, Coxeter, and Satake diagrams using TikZ")
    (description
     "This is a drawing package for Dynkin, Coxeter, and Satake diagrams in
LaTeX documents, using the TikZ package.")
    (license license:lppl1.3c)))

(define-public texlive-ecgdraw
  (package
    (name "texlive-ecgdraw")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ecgdraw/" "source/latex/ecgdraw/"
                   "tex/latex/ecgdraw/")
             (base32
              "16kbmf9fckms0vhi41h2p6k8znv6plzwn4f2j374zmpqphq1m3il")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-hypdoc
                  texlive-layaureo
                  texlive-listings
                  texlive-pgf
                  texlive-tools))))
    (home-page "https://ctan.org/pkg/ecgdraw")
    (synopsis "Draws electrocardiograms (ECG)")
    (description
     "This package provides the @code{\\ECG} command, which draws
electrocardiograms (ECG).  It can generate different types of wave.")
    (license license:lppl1.3+)))

(define-public texlive-ellipse
  (package
    (name "texlive-ellipse")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ellipse/" "source/latex/ellipse/"
                   "tex/latex/ellipse/")
             (base32
              "0biya15r55hr41vnqsviqqsqlb7p47i2n814dahfs0r65vlfnz23")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ellipse")
    (synopsis
     "Draw ellipses and elliptical arcs using @code{picture} environment")
    (description
     "This package provides commands to draw ellipses and elliptical arcs
using the standard LaTeX2e @code{picture} environment.")
    (license license:lppl1.3+)))

(define-public texlive-elocalloc
  (package
    (name "texlive-elocalloc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/elocalloc/"
                   "source/latex/elocalloc/"
                   "tex/latex/elocalloc/")
             (base32
              "121hpnka88y6laayjbhgiphbqn8qv42024bjda21qcc076s4b632")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/elocalloc")
    (synopsis "Local allocation macros for LaTeX 2015")
    (description
     "This package provides local allocation macros, with names taken from
@file{etex.sty} but with implementation based on the LaTeX 2015 allocation
macros.")
    (license license:lppl)))

(define-public texlive-endofproofwd
  (package
    (name "texlive-endofproofwd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/endofproofwd/"
                   "tex/latex/endofproofwd/common/")
             (base32
              "0lgygqfzklf3l0pijas4g1489p3k5hwb0nwijz7fmva6c7sn124i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/endofproofwd")
    (synopsis "End of proof sign")
    (description
     "This package provides an additional end of proof sign.  The command's
name is @code{\\wasserdicht}.")
    (license license:lppl1.3+)))

(define-public texlive-epspdfconversion
  (package
    (name "texlive-epspdfconversion")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/epspdfconversion/"
                   "tex/latex/epspdfconversion/")
             (base32
              "1czh9ppkgk9lxw4imagnwm4b88vylr4vwhzb1k63ik749h047kg2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/epspdfconversion")
    (synopsis "On-the-fly conversion of EPS to PDF")
    (description
     "The package calls the @code{epstopdf} package to convert EPS graphics to
PDF, on the fly.  It serves as a vehicle for passing conversion options (such
as grayscale, prepress or pdfversion) to the @code{epspdf} converter.")
    (license license:lppl)))

(define-public texlive-esk
  (package
    (name "texlive-esk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/esk/" "source/latex/esk/"
                   "tex/latex/esk/")
             (base32
              "0hx58ajinbfc6axd4xbj395vyhr7mj247fvlzfjx71hcg9jnwkp4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/esk")
    (synopsis "Package to encapsulate Sketch files in LaTeX sources")
    (description
     "The ESK package allows to encapsulate Sketch files in LaTeX sources.
This is very useful for keeping illustrations synchronized with the text.  It
also frees the user from inventing descriptive names for new files that fit
into the confines of file system conventions.  Sketch is a 3D scene
description language by Eugene K. Ressler and can generate TikZ and PSTricks
code.  ESK behaves in a similar fashion to EMP (which encapsulates MetaPost
files), and was in fact developed from it.")
    (license license:gpl3+)))

(define-public texlive-euflag
  (package
    (name "texlive-euflag")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/euflag/" "source/latex/euflag/"
                   "tex/latex/euflag/")
             (base32
              "0dhbz79grhdls4cl7idk0hvr6vddniwgn1h21f5bvxqcv1xj0d8v")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/euflag")
    (synopsis "Command to reproduce the flag of the European Union")
    (description
     "This LaTeX package implements a command to reproduce the official flag
of the European Union (EU).  The flag is reproduced at 1em high based on the
current font size, so it can be scaled arbitrarily by changing the font
size.")
    (license license:lppl1.3c)))

(define-public texlive-fast-diagram
  (package
    (name "texlive-fast-diagram")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fast-diagram/"
                   "tex/latex/fast-diagram/")
             (base32
              "03ygmgh6gnlkn7dwnwyifv946ja6yswm3gdgv7ad39h5s0ay99hy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fast-diagram")
    (synopsis "Easy generation of FAST diagrams")
    (description
     "The package provides simple means of producing FAST diagrams, using
TikZ/PGF tools.  FAST diagrams are useful for functional analysis techniques
in design methods.")
    (license license:lppl1.3+)))

(define-public texlive-fig4latex
  (package
    (name "texlive-fig4latex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/fig4latex/"
                   "scripts/fig4latex/")
             (base32
              "0z4dnd369q1ynpb3xd4pwyhmysn78zx8izq7va1s5kpwdr2hdj99")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "fig4latex")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/fig4latex")
    (synopsis "Management of figures for large LaTeX documents")
    (description
     "Fig4LaTeX simplifies management of the figures in a large LaTeX document.
Fig4LaTeX is appropriate for projects that include figures with graphics
created by XFig --- in particular, graphics which use the combined
PS/LaTeX (or PDF/LaTeX) export method.")
    (license license:gpl3)))

(define-public texlive-figchild
  (package
    (name "texlive-figchild")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/figchild/" "tex/latex/figchild/")
             (base32
              "1q02q8cpkjwjqlykjq64vm65shqm6bn281j2jsv7qnay19lqmd3n")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/figchild")
    (synopsis "Pictures for creating children's activities")
    (description
     "This package was created with the aim of facilitating the work of
Elementary School teachers who need to create colorful and attractive
activities for their students.  It is a product of the Computational
Mathematics discipline offered at the Federal University of Vicosa --- Campus
UFV --- Florestal by professor Fernando de Souza Bastos.  It makes use of the
TikZ and @code{xcolor} packages.")
    (license license:lppl1.3c)))

(define-public texlive-figput
  (package
    (name "texlive-figput")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/figput/" "tex/latex/figput/")
             (base32
              "0ckwbrsl5075902pmmjp1r3n31pdpbqvydh69vq6mkfwk3ipp4gj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/figput")
    (synopsis "Create interactive figures in LaTeX")
    (description
     "FigPut allows figures to be specified using JavaScript.  The resulting
document can be viewed as a static PDF, as usual, or the document can be
viewed in a web-browser, in which case the figures are interactive.  A variety
of interactive widgets are included.")
    (license license:cc-by-sa4.0)))

(define-public texlive-fitbox
  (package
    (name "texlive-fitbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fitbox/" "source/latex/fitbox/"
                   "tex/latex/fitbox/")
             (base32
              "0li1nvwv8ifw1dkfsqgnhapkagndibs75lp03byxnwrmc99r7a2y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fitbox")
    (synopsis "Fit graphics on a page")
    (description
     "The package allows a box (usually an @code{\\includegraphics} box) to
fit on the page.  It scales the box to the maximal allowed size within the
user-set limits.  If there is not enough space on the page, the box is moved
to the next one.")
    (license license:lppl1.3+)))

(define-public texlive-flowchart
  (package
    (name "texlive-flowchart")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/flowchart/"
                   "source/latex/flowchart/"
                   "tex/latex/flowchart/")
             (base32
              "1r0n7wr7ljhlvyhmm7f85h1c5imj9iqy7afv4mjy1ychcaws233w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/flowchart")
    (synopsis "Shapes for drawing flowcharts, using TikZ")
    (description
     "The package provides a set of traditional flowchart element shapes; the
documentation shows how to build a flowchart from these elements, using
PGF/TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-forest
  (package
    (name "texlive-forest")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/forest/" "makeindex/forest/"
                   "source/latex/forest/" "tex/latex/forest/")
             (base32
              "00zyxfi59kglnby7l24l1bz08afv7r9qc1wifcxrb6s5xygj42zs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-elocalloc
           texlive-environ
           texlive-etoolbox
           texlive-inlinedef
           texlive-l3packages
           texlive-pgf
           texlive-pgfopts))
    (home-page "https://ctan.org/pkg/forest")
    (synopsis "Drawing (linguistic) trees")
    (description
     "The package provides a PGF/TikZ-based mechanism for drawing
linguistic (and other kinds of) trees.  Its main features are: a packing
algorithm which can produce very compact trees; a user-friendly interface
consisting of the familiar bracket encoding of trees plus the key-value
interface to option-setting; many tree-formatting options, with control over
option values of individual nodes and mechanisms for their manipulation; the
possibility to decorate the tree using the full power of PGF/TikZ; and an
externalization mechanism sensitive to code-changes.")
    (license license:lppl1.3+)))

(define-public texlive-gates
  (package
    (name "texlive-gates")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/gates/" "tex/generic/gates/")
             (base32
              "0brcms8qbnsyiqnnqxyzqp12z1xpvfzb5hgh6kqm28904lr84i4g")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gates")
    (synopsis "Support for writing modular and customisable code")
    (description
     "The package provides the means of writing code in a modular fashion: big
macros or functions are divided into small chunks (called gates) with names,
which can be externally controlled (e.g., they can be disabled, subjected to
conditionals, loops...) and/or augmented with new chunks.  Thus complex code
may easily be customised without having to rewrite it, or even understand its
implementation: the behavior of existing gates can be modified, and new ones
can be added, without endangering the whole design.  This allows code to be
hacked in ways the original authors might have never envisioned.  The
@code{gates} package is implemented independently for both TeX and Lua.  The
TeX implementation, running in any current environment, requires the
@code{texapi} package, whereas the Lua version can be run with any Lua
interpreter, not just LuaTeX.")
    (license license:lppl)))

(define-public texlive-genealogytree
  (package
    (name "texlive-genealogytree")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/genealogytree/"
                   "tex/latex/genealogytree/")
             (base32
              "10h12qgjrh37ax1grpkyas5blf3s4g6bfp6g5d9x7y1ddfpxjmix")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/genealogytree")
    (synopsis "Pedigree and genealogical tree diagrams")
    (description
     "Pedigree and genealogical tree diagrams are proven tools to visualize
genetic and relational connections between individuals.  The package provides
a set of tools to typeset genealogical trees, i.e., to typeset a set of
special graphs for the description of family-like structures.  The package
uses an autolayout algorithm which can be customized, e.g., to prioritize
certain paths.")
    (license license:lppl1.3+)))


(define-public texlive-getmap
  (package
    (name "texlive-getmap")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/getmap/" "scripts/getmap/"
                   "tex/latex/getmap/")
             (base32
              "12pip7a1pibjlbllkrbz0fss0i5zdd8x1pbvzzbwn6rb3ragqwl9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "getmapdl.lua")))
    (home-page "https://ctan.org/pkg/getmap")
    (synopsis "Download OpenStreetMap maps for use in documents")
    (description
     "The package provides a simple interface to OpenStreetMap, and to Google
Maps, map images.  In the simplest case, it is sufficient to specify the
address you need.  The package loads the map image using an external Lua
script (LaTeX must be running with @samp{\\write 18} enabled).  The Lua script
may be used from the command line; a Bash version is provided.")
    (license license:lppl)))

(define-public texlive-gnuplottex
  (package
    (name "texlive-gnuplottex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gnuplottex/"
                   "source/latex/gnuplottex/"
                   "tex/latex/gnuplottex/")
             (base32
              "1c99xc24bqp0j1xy31ayna4xmdsyshs9fjarb8cmn4m3ffwvlrmw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gnuplottex")
    (synopsis "Embed Gnuplot commands in LaTeX documents")
    (description
     "This package allows you to include Gnuplot graphs in your LaTeX
documents.  The Gnuplot code is extracted from the document and written to
@file{.gnuplot} files.  Then, if shell escape is used, the graph files are
automatically processed to graphics or LaTeX code files which will then be
included in the document.  If shell escape isn't used, the user will have to
manually convert the files by running Gnuplot on the extracted @file{.gnuplot}
files.")
    (license license:gpl2)))

(define-public texlive-gradientframe
  (package
    (name "texlive-gradientframe")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gradientframe/"
                   "source/latex/gradientframe/"
                   "tex/latex/gradientframe/")
             (base32
              "0qy3ri6fdgzdslaaa7gakswvpc299xyarm8ng4cs8w64q14675r1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-charter
                  texlive-emp
                  texlive-hypdoc
                  texlive-listings
                  texlive-tools))))
    (home-page "https://ctan.org/pkg/gradientframe")
    (synopsis "Simple gradient frames around objects")
    (description
     "The package provides a means of drawing graded frames around objects.
The gradients of the frames are drawn using the @code{color} package.")
    (license license:lppl1.3+)))

(define-public texlive-grafcet
  (package
    (name "texlive-grafcet")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/grafcet/" "tex/latex/grafcet/")
             (base32
              "1swrap90i4l3a6azvy40b991zkqvyfw2z3mk6cq727yplmr1hkwk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/grafcet")
    (synopsis "Draw Grafcet/SFC with TikZ")
    (description
     "The package provides a library (GRAFCET) that can draw Grafcet
Sequential Function Chart (SFC) diagrams, in accordance with EN 60848, using
PGF/TikZ.")
    (license license:lppl1.0+)))

(define-public texlive-graph35
  (package
    (name "texlive-graph35")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/graph35/" "source/latex/graph35/"
                   "tex/latex/graph35/")
             (base32
              "0012mfpl8cxqm0grmgazixqbgicfgzr4z891zgjw60xy6df8qhwb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/graph35")
    (synopsis "Draw keys and screen items of several Casio calculators")
    (description
     "This package defines commands to draw the Casio Graph 35 / Fx-9750GII
calculator (and other models).  It can draw the whole calculator, or parts of
it.")
    (license license:lppl1.3+)))

(define-public texlive-graphicxpsd
  (package
    (name "texlive-graphicxpsd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/graphicxpsd/"
                   "tex/latex/graphicxpsd/")
             (base32
              "04fll1h90rl75bqbkhjp2yp8bragfkv5rj2kwrbbi6p7zq9nfrpn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/graphicxpsd")
    (synopsis
     "Adobe Photoshop Data format (PSD) support for @code{graphicx} package")
    (description
     "This package provides Adobe Photoshop Data format (PSD) support for the
@code{graphicx} package with the @command{convert} command from ImageMagick.")
    (license license:expat)))

(define-public texlive-graphviz
  (package
    (name "texlive-graphviz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/graphviz/"
                   "source/latex/graphviz/"
                   "tex/latex/graphviz/")
             (base32
              "0abg1cmzr449gd5pbg3ppgf35xixjyszy3jxnrg37kqly7c26l6s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/graphviz")
    (synopsis "Write Graphviz inline in LaTeX documents")
    (description
     "The package allows inline use of Graphviz code, in a LaTeX document.")
    (license license:lppl1.3+)))

(define-public texlive-gtrlib-largetrees
  (package
    (name "texlive-gtrlib-largetrees")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/gtrlib-largetrees/"
                   "source/latex/gtrlib-largetrees/"
                   "tex/latex/gtrlib-largetrees/")
             (base32
              "0yfc18v919brdj6psah8q9hsjpqs8zalnz3ridrhgir98x0l8wq9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/gtrlib-largetrees")
    (synopsis "Library for genealogytree aiming at large trees")
    (description
     "The main goal of this package is to offer additional database fields and
formats for the @code{genealogytree} package, particularly for typesetting
large trees.")
    (license license:lppl1.2+)))

(define-public texlive-harveyballs
  (package
    (name "texlive-harveyballs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/harveyballs/"
                   "tex/latex/harveyballs/")
             (base32
              "15zng922zyc0jiq8yrdgl3gwj1gvdqk71zc1bcc8gl08j4y0cxgi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/harveyballs")
    (synopsis "Create Harvey Balls using TikZ")
    (description
     "The package provides five commands to create Harvey Balls in
a document.")
    (license license:gpl3+)))

(define-public texlive-here
  (package
    (name "texlive-here")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/here/" "tex/latex/here/")
             (base32
              "0pmjh9xvwmv6cf775lzfagf9wziwrgx6fri4jjhl4mzkxmxhsnpp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/here")
    (synopsis "Emulation of obsolete package for @code{here} floats")
    (description
     "This package provides the @samp{H} option for floats in LaTeX to signify
that the environment is not really a float, and should therefore be placed
@emph{here} and not float at all.  The package emulates an older package of
the same name, which has long been suppressed by its author.  The job is done
by nothing more than loading the @code{float} package, which has long provided
the option in an acceptable framework.")
    (license license:public-domain)))

(define-public texlive-hf-tikz
  (package
    (name "texlive-hf-tikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hf-tikz/" "source/latex/hf-tikz/"
                   "tex/latex/hf-tikz/")
             (base32
              "02zkax3k50rb080yn5bwy12680y0mdzddv9an3wgsycl9ycxrmi8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hf-tikz")
    (synopsis "Highlight formulas and formula parts")
    (description
     "The package provides a way to highlight formulas and formula parts in
both documents and presentations, us TikZ.")
    (license license:lppl1.3+)))

(define-public texlive-hobby
  (package
    (name "texlive-hobby")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hobby/" "source/latex/hobby/"
                   "tex/latex/hobby/")
             (base32
              "1y0np4xpra136y2rqlwsifas33avfrv1psr8nxa92m7vmpd7l7fg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hobby")
    (synopsis "Implementation of Hobby's algorithm for PGF/TikZ")
    (description
     "This package defines a path generation function for PGF/TikZ which
implements Hobby's algorithm for a path built out of Bezier curves which
passes through a given set of points.")
    (license license:lppl1.3+)))

(define-public texlive-hvfloat
  (package
    (name "texlive-hvfloat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hvfloat/" "tex/latex/hvfloat/")
             (base32
              "0qfmgxn77vzb9jv3njfpzbqrs2c31z6kl89nwmr3la4kphb7y91w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hvfloat")
    (synopsis "Controlling captions, fullpage and doublepage floats")
    (description
     "This package defines a macro to place objects (tables and figures) and
their captions in different positions with different rotating angles within
a float.  All objects and captions can be framed.")
    (license license:lppl)))

(define-public texlive-inlinedef
  (package
    (name "texlive-inlinedef")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/inlinedef/"
                   "source/latex/inlinedef/"
                   "tex/latex/inlinedef/")
             (base32
              "0ys2pb8dmgg41nwh9r9qhmxlfw5wxrfwryvdx1ppab4ndi138baw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/inlinedef")
    (synopsis "Inline expansions within definitions")
    (description
     "The package provides a macro @code{\\Inline} that precedes
a @code{\\def} or @code{\\gdef}.  Within the definition text of an inlined
definition, keywords such as @code{\\Expand} may be used to selectively inline
certain expansions at definition-time.  This eases the process of redefining
macros in terms of the original definition, as well as definitions in which
the token that must be expanded is deep within, where @code{\\expandafter}
would be difficult and @code{\\edef} is not suitable.  Another application is
as an easier version of @code{\\aftergroup}, by defining a macro in terms of
expanded local variables, then ending the group with
@code{\\expandafter\\endgroup\\macro}.")
    (license license:lppl)))

(define-public texlive-istgame
  (package
    (name "texlive-istgame")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/istgame/" "tex/latex/istgame/")
             (base32
              "00hpr45s31bhvhhzmgm49knjb8jb3v53gd0w87rlx9ghll38lg0m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/istgame")
    (synopsis "Draw game trees with TikZ")
    (description
     "This LaTeX package provides macros based on TikZ to draw a game tree.
The main idea underlying its core macros is the completion of a whole tree by
using a sequence of simple parent-child tree structures, with no longer nested
relations involved (like the use of grandchildren or great-grandchildren).
Using this package you can draw a game tree as easily as drawing a game tree
with pen and paper.")
    (license license:lppl1.3c)))

(define-public texlive-kblocks
  (package
    (name "texlive-kblocks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kblocks/" "tex/latex/kblocks/")
             (base32
              "0x85k295bxn4b3i083qmfvjvz2nqrh1r4r6njn491lgsfymyc0pq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kblocks")
    (synopsis "Easily typeset control block diagrams and signal flow graphs")
    (description
     "Kblocks defines a number of commands to make drawing control block
diagrams using TikZ/PGF more structured and easier.  It reduces the learning
curve for TikZ/PGF and serves as a frontend, by focusing on the block or flow
diagrams only.")
    (license license:expat)))

(define-public texlive-kinematikz
  (package
    (name "texlive-kinematikz")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/kinematikz/"
                   "tex/latex/kinematikz/")
             (base32
              "0cg1s59xq8dkfzhnf9mh2lgyrwnlwgpqf1wjwqqnscvds85s52l2")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kinematikz")
    (synopsis "Design kinematic chains and mechanisms")
    (description
     "This package provides functionalities to draw kinematic diagrams for
mechanisms using dedicate symbols (some from the ISO standard and others).
The intention is not to represent CAD mechanical drawings of mechanisms and
robots, but only to represent 2D and 3D kinematic chains.  The package
provides links, joints and other symbols, mostly in the form of TikZ pic
objects.  These pictures can be placed in the canvas either by a central point
for joints, and start and end points for some links.")
    (license (list license:lppl1.3+ license:gpl3+))))

(define-public texlive-knitting
  (package
    (name "texlive-knitting")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/knitting/"
                   "fonts/afm/public/knitting/"
                   "fonts/map/dvips/knitting/"
                   "fonts/source/public/knitting/"
                   "fonts/tfm/public/knitting/"
                   "fonts/type1/public/knitting/"
                   "tex/latex/knitting/"
                   "tex/plain/knitting/")
             (base32
              "106p9wx4zdkz609kxsyk4zjdb0zvhnwihlnrqd1wh2p5ij7mv7vx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/knitting")
    (synopsis "Produce knitting charts, in Plain TeX or LaTeX")
    (description
     "The package provides symbol fonts and commands to write charted
instructions for cable and lace knitting patterns, using either plain TeX or
LaTeX.  The fonts are available both as Metafont source and in Adobe Type
1 format.")
    (license license:lppl1.3+)))

(define-public texlive-knittingpattern
  (package
    (name "texlive-knittingpattern")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/knittingpattern/"
                   "tex/latex/knittingpattern/")
             (base32
              "0q52213yj08bhhgwr622ss3gwhx3l1yvgv0a2g3arhp3a8iq2g9a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/knittingpattern")
    (synopsis "Create knitting patterns")
    (description
     "The class provides a simple, effective method for knitters to produce
high-quality, attractive patterns using LaTeX.  It does this by providing
commands to handle as much of the layout of the document as possible, leaving
the author free to concentrate on the pattern.")
    (license license:lppl1.3+)))

(define-public texlive-ladder
  (package
    (name "texlive-ladder")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ladder/" "tex/latex/ladder/")
             (base32
              "0wm0c75g6k8pb9kqdbw7rmbhs9sjdq8pn01nsaxfv2zqxnbc1znz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ladder")
    (synopsis "Draw simple ladder diagrams using TikZ")
    (description
     "This package permits the creation of simple ladder diagrams within LaTeX
documents.")
    (license license:expat)))

(define-public texlive-qrcode
  (package
    (name "texlive-qrcode")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/qrcode/" "source/latex/qrcode/"
                   "tex/latex/qrcode/")
             (base32
              "197v18lsvb90i07gxvc6mrmn1z63q8v0wvcnbk8dnn3hhabpn16y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/qrcode")
    (synopsis "QR codes without external tools")
    (description
     "The package generates QR (Quick Response) codes in LaTeX, without the
need for PSTricks or any other graphical package.")
    (license license:lppl1.3c+)))

(define-public texlive-tcolorbox
  (package
    (name "texlive-tcolorbox")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tcolorbox/" "tex/latex/tcolorbox/")
             (base32
              "1vygwa4y9mc7qgwf5awi0aa5c5kakbdcsl5kry0ldr1lkaxs1j8w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tcolorbox")
    (synopsis "Coloured boxes, for LaTeX examples and theorems, etc")
    (description
     "This package provides an environment for coloured and framed text boxes
with a heading line.  Optionally, such a box may be split in an upper and
a lower part; thus the package may be used for the setting of LaTeX examples
where one part of the box displays the source code and the other part shows
the output.  Another common use case is the setting of theorems.  The package
supports saving and reuse of source code and text parts.")
    (license license:lppl1.3c+)))

(define-public texlive-ebproof
  (package
    (name "texlive-ebproof")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ebproof/" "source/latex/ebproof/"
                   "tex/latex/ebproof/")
             (base32
              "1a3203jgxsgihfgb6wwm0gfpaxbf1lg5axcakan9rj316xrrj4lc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ebproof")
    (synopsis "Formal proofs in the style of sequent calculus")
    (description
     "This package provides commands to typeset proof trees in the style of
sequent calculus and related systems.  The commands allow for writing
inferences with any number of premises and alignment of successive formulas on
an arbitrary point.  Various options allow complete control over spacing,
styles of inference rules, placement of labels, etc.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-ebproof texlive-ebproof)

(define-public texlive-bussproofs
  (package
    (name "texlive-bussproofs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bussproofs/"
                   "tex/latex/bussproofs/")
             (base32
              "1gb8y9g89fqw1kix4d2vb7mj440vlb8hnpsa3jqpk9yicndwcyk6")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bussproofs")
    (synopsis "Proof trees in the style of the sequent calculus")
    (description
     "This package provides commands to typeset proof trees in the style of
sequent calculus and related systems.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-bussproofs texlive-bussproofs)

(define-public texlive-euenc
  (package
    (name "texlive-euenc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/euenc/" "source/latex/euenc/"
                   "tex/latex/euenc/")
             (base32
              "0vhqxhj1v68rhi08xivps8icxmlcq9mv8slqmsmf2qhvzj6x6qx3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     ;; Sole ".dtx" file bundled only generates documentation.
     (list #:build-targets #~(list)))
    (home-page "https://ctan.org/pkg/euenc")
    (synopsis "Unicode font encoding definitions for XeTeX")
    (description
     "The package provides font encoding definitions for unicode fonts loaded
by LaTeX in XeTeX or LuaTeX.  The package provides two encodings: EU1,
designed for use with XeTeX, which the fontspec uses for unicode fonts which
require no macro-level processing for accents, and EU2, which provides the
same facilities for use with LuaTeX.  Neither encoding places any restriction
on the glyphs provided by a font; use of EU2 causes the package
@code{euxunicode} to be loaded (the package is part of this distribution).
The package includes font definition files for use with the Latin Modern
OpenType fonts.")
    (license license:lppl1.3+)))

(define-public texlive-euro
  (package
    (name "texlive-euro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/euro/" "source/latex/euro/"
                   "tex/latex/euro/")
             (base32
              "1bmswsw4clzrrgxmk473ghsdbnw6zwa2rgbjs32i1i5c37026yfi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/euro")
    (synopsis "Provide Euro values for national currency amounts")
    (description
     "This package converts arbitrary national currency amounts using the Euro
as base unit, and typesets monetary amounts in almost any desired way.
Conversion rates for the initial Euro-zone countries are already built-in.
Further rates can be added easily.")
    (license license:lppl)))

(define-public texlive-euro-ce
  (package
    (name "texlive-euro-ce")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/euro-ce/"
                   "fonts/source/public/euro-ce/"
                   "fonts/tfm/public/euro-ce/")
             (base32
              "0vyh6ln2wdn42g5r1rg0gqf6q39ny7ldv2b6ikw8b029bdg5079p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-metafont))
    (home-page "https://ctan.org/pkg/euro-ce")
    (synopsis "Euro and CE sign font")
    (description
     "This package provides Metafont source for the Euro and CE symbols in
several variants, designed to fit with the Computer Modern-set text.")
    (license license:bsd-3)))           ;from "euro-ce.doc"

(define-public texlive-eurosym
  (package
    (name "texlive-eurosym")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/eurosym/"
                   "fonts/map/dvips/eurosym/"
                   "fonts/source/public/eurosym/"
                   "fonts/tfm/public/eurosym/"
                   "fonts/type1/public/eurosym/"
                   "tex/latex/eurosym/")
             (base32
              "0ml24rxbl1yir4s3fjjxm0z7axklc3p33syg41b76zc7hck9mk8s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-cm texlive-metafont))
    (home-page "https://ctan.org/pkg/eurosym")
    (synopsis "Metafont and macros for Euro sign")
    (description
     "The European currency symbol for the Euro implemented in Metafont, using
the official European Commission dimensions, and providing several
shapes (normal, slanted, bold, outline).  The package also includes a LaTeX
package which defines the macro, pre-compiled @file{tfm} files, and
documentation.")
    (license (license:non-copyleft "file:///doc/fonts/eurosym/COPYING"))))

(define-public texlive-kanaparser
  (package
    (name "texlive-kanaparser")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/kanaparser/"
                   "tex/luatex/kanaparser/")
             (base32
              "0bcvxkdb2y60w7c0swi3f8yncli0yswalrdzxjv7h0xp21c202hp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/kanaparser")
    (synopsis "Kana parser for LuaTeX")
    (description
     "The package provides a kana parser for LuaTeX.  It is a set of four
macros that handle transliteration of text: from hiragana and katakana to
Latin from Latin and katakana to hiragana from Latin and hiragana to katakana
It can be used to write kana directly using only the ASCII character set or
for education purposes.  The package has support for obsolete and rarely used
syllables, some only accessible via the provided toggle macro.")
    ;; License is BSD.  Assuming original BSD-4.
    (license license:bsd-4)))

(define-public texlive-kastrup
  (package
    (name "texlive-kastrup")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/kastrup/"
                   "source/generic/kastrup/"
                   "tex/generic/kastrup/")
             (base32
              "0sbf4xw1jsh9pbjhqw3f0bg067f0rhf936wfnqpzj9kp2167n41j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/binhex")
    (synopsis "Convert numbers into binary, octal and hexadecimal")
    (description
     "The @code{kastrup} package provides the @emph{binhex.tex} file.  This
file provides expandable macros for both fixed-width and minimum-width numbers
to bases 2, 4, 8 and 16.  All constructs TeX accepts as arguments to its
@code{\\number} primitive are valid as arguments for the macros.  The package
may be used under LaTeX and plain TeX.")
    (license (license:fsf-free "file:/binhex.dtx"))))

(define-public texlive-translation-arsclassica-de
  (package
    (name "texlive-translation-arsclassica-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-arsclassica-de/")
             (base32
              "1ix5lafy3ay2bc9zkkbqw2rrw6ng3izb8d9p6rki6h2j7n0qj47s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-arsclassica-de")
    (synopsis "German version of @code{arsclassica}")
    (description
     "This is a German translation of the @code{arsclassica} documentation.")
    (license license:lppl)))

(define-public texlive-translation-biblatex-de
  (package
    (name "texlive-translation-biblatex-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-biblatex-de/")
             (base32
              "1ygbz7prjg6pdiqm7lknnk8a9ar05xvpdam38piivif3d3yk5bg1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-biblatex-de")
    (synopsis "German translation of the User Guide for BibLaTeX")
    (description
     "This package provides a German translation of the User Guide for
BibLaTeX.")
    (license license:lppl)))

(define-public texlive-translation-chemsym-de
  (package
    (name "texlive-translation-chemsym-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-chemsym-de/")
             (base32
              "01liazqafs3lh9ppipw6i6sljcjzr31nq70r83qgknqmb9j0yfl0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-chemsym-de")
    (synopsis "German version of @code{chemsym}")
    (description
     "This is a German translation of the @code{chemsym} documentation.")
    (license license:lppl)))

(define-public texlive-translation-ecv-de
  (package
    (name "texlive-translation-ecv-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-ecv-de/")
             (base32
              "06b4vhsgdphi6kdh5x4a2kl74b64z3y5qzxcpkn0hj40038z1av7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-ecv-de")
    (synopsis "@code{ecv} documentation, in German")
    (description "This is a German translation of the @code{ecv} documentation.")
    (license license:lppl)))

(define-public texlive-translation-enumitem-de
  (package
    (name "texlive-translation-enumitem-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-enumitem-de/")
             (base32
              "121raikamd33gabvbgwygrc8hyi3qhvx4hhv4h8wq2chrglj37dq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-enumitem-de")
    (synopsis "@code{enumitem} documentation, in German")
    (description
     "This is a German translation of the manual for @code{enumitem}.")
    (license license:lppl)))

(define-public texlive-translation-europecv-de
  (package
    (name "texlive-translation-europecv-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-europecv-de/")
             (base32
              "0n3x8g6k3qq3f4drkhzygz4khxyw6isgxmz963xqp91s0y667gws")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-europecv-de")
    (synopsis "German version of @code{europecv}")
    (description
     "This is a German translation of the @code{europecv} documentation.")
    (license license:lppl)))

(define-public texlive-translation-filecontents-de
  (package
    (name "texlive-translation-filecontents-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-filecontents-de/")
             (base32
              "0d2ds8kc98yd1can0gzcngm7gsn2gwhriaxnnds5kz3z3al71gkc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-filecontents-de")
    (synopsis "German version of @code{filecontents}")
    (description
     "This is a German translation of the @code{filecontents} documentation.")
    (license license:lppl)))

(define-public texlive-translation-moreverb-de
  (package
    (name "texlive-translation-moreverb-de")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translation-moreverb-de/")
             (base32
              "1jbpmvcm9q73kh09mhrbsb2wlycwwm4n8il342hz4jd15gwhmy8f")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translation-moreverb-de")
    (synopsis "German version of @code{moreverb}")
    (description
     "This is a German translation of the @code{moreverb} documentation.")
    (license license:lppl)))

(define-public texlive-translations
  (package
    (name "texlive-translations")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translations/"
                   "tex/latex/translations/")
             (base32
              "16jcpb6afjqcqb8hn47dip2w7l9hg7q1vspg791sp1r1dsn81yf4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translations")
    (synopsis "Internationalisation of LaTeX2e packages")
    (description
     ;; Polish not mentioned on CTAN, but there is a
     ;; translations-basic-dictionary-polish.trsl file.
     "This package (once part of the @code{exsheets} package), provides a
framework for providing multilingual features to a LaTeX package.  The package
has its own basic dictionaries for English, Brazilian, Catalan, Dutch, French,
German, Polish and Spanish.  It aims to use translation material for English,
Dutch, French, German, Italian, Spanish, Catalan, Turkish, Croatian, Hungarian,
Danish and Portuguese from babel or polyglossia if either is in use in the
document.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-translations texlive-translations)

(define-public texlive-translator
  (package
    (name "texlive-translator")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/translator/"
                   "tex/latex/translator/")
             (base32
              "0vmg4w5spl98y9r4h6p89xa43xxfqmv5qlc3sf7kjkyp58px8axs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/translator")
    (synopsis "Easy translation of strings in LaTeX")
    (description
     "This LaTeX package provides a flexible mechanism for translating
individual words into different languages.  Such a translation mechanism is
useful when the author of some package would like to localize the package such
that texts are correctly translated into the language preferred by the user.
This package is not intended to be used to automatically translate more than
a few words.")
    (license (list license:lppl license:gpl1+))))

(define-public texlive-texapi
  (package
    (name "texlive-texapi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/texapi/" "tex/generic/texapi/")
             (base32
              "0ivg2a2pgl6bmb2242cjjcz7n9cs514dp1r8c89mva2zlm9l323j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/texapi")
    (synopsis "Macros to write format-independent packages")
    (description
     "Texapi provides utility macros to write format-independent (and -aware)
packages.  It is similar in spirit to the etoolbox, except that it isn't tied
to LaTeX.  The tools include engine and format detection, expansion control,
command definition and manipulation, various testing macros, string
operations, and highly customizable while and for loops.")
    (license license:lppl)))

(define-public texlive-textpos
  (package
    (name "texlive-textpos")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/textpos/" "source/latex/textpos/"
                   "tex/latex/textpos/")
             (base32
              "0spxbk9w69kcmgib33nq2x7ls8566fg214rcmkb126yyn7jqg567")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/textpos")
    (synopsis "Place boxes at arbitrary positions on the LaTeX page")
    (description
     "This package provides a package to facilitate placement of boxes at
absolute positions on the LaTeX page.  There are several reasons why this
might be useful, an important one being to help the creation of large-format
conference posters.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-textpos texlive-textpos)

(define-public texlive-udesoftec
  (package
    (name "texlive-udesoftec")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/udesoftec/"
                   "doc/latex/udesoftec/"
                   "source/latex/udesoftec/"
                   "tex/latex/udesoftec/")
             (base32
              "02ja6n570hc1521anr12lkgc5xrcfg97lxca2pylwgi5bfkbsr0b")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/udesoftec")
    (synopsis "Thesis class for the University of Duisburg-Essen")
    (description
     "The class is designed for typesetting theses in the Research Group for
Business Informatics and Software Engineering.  (The class may also serve as
a template for such theses.)  The class is designed for use with pdfLaTeX;
input in UTF-8 encoding is assumed.")
    (license license:lppl1.3+)))

(define-public texlive-uhc
  (package
    (name "texlive-uhc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/uhc/umj/"
                   "dvips/uhc/"
                   "fonts/afm/uhc/umj/"
                   "fonts/map/dvips/uhc/"
                   "fonts/tfm/uhc/umj/"
                   "fonts/tfm/uhc/uwmj/"
                   "fonts/tfm/uhc/wmj/"
                   "fonts/type1/uhc/umj/"
                   "fonts/vf/uhc/uwmj/"
                   "fonts/vf/uhc/wmj/")
             (base32
              "1hpqdzmz4xrcgk443lysif8yk52rbra8rh6cjjfr4kibyfpy77p3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/uhc")
    (synopsis "Fonts for the Korean language")
    (description
     "This package provides support for Korean documents written in Korean
standard KSC codes for LaTeX2e.")
    (license license:lppl)))

(define-public texlive-uhrzeit
  (package
    (name "texlive-uhrzeit")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/uhrzeit/" "tex/latex/uhrzeit/")
             (base32
              "18qms6ych9q8bras2ajkl4z3dmnrp07gpzizywz206c3i1any3rc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/uhrzeit")
    (synopsis "Time printing, in German")
    (description
     "The primary goal of this package is to facilitate formats and ranges of
times as formerly used in Germany.  A variety of printing formats are
available.")
    (license license:lppl1.3+)))

(define-public texlive-umlaute
  (package
    (name "texlive-umlaute")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/umlaute/" "source/latex/umlaute/"
                   "tex/latex/umlaute/")
             (base32
              "1fz2v0p8a46car0iga8m0si7ampff8hqpsmc9v2miqqzmdlqcqcj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/umlaute")
    (synopsis "German input encodings in LaTeX")
    (description
     "This is an early package for using alternate input encodings.  The
author considers the package mostly obsolete, since most of its functions are
taken by the @code{inputenc} package; however, @code{inputenc} doesn't support
the @code{roman8} and @code{atari} encodings, so umlaute remains the sole
source of that support.")
    (license license:lppl)))

(define-public texlive-unicode-math
  (package
    (name "texlive-unicode-math")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/unicode-math/"
                   "source/latex/unicode-math/"
                   "tex/latex/unicode-math/")
             (base32
              "0w5gp11ccc486lckzag63arg97g1r0zkf29bdnnk13pz4r5m2lgx")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "xelatex"))
    (native-inputs (list texlive-xetex))
    (propagated-inputs (list texlive-fontspec texlive-lm-math))
    (home-page "https://ctan.org/pkg/unicode-math")
    (synopsis "Unicode mathematics support for XeTeX and LuaTeX")
    (description
     "This package will provide a complete implementation of unicode maths for
XeLaTeX and LuaLaTeX.  Unicode maths is currently supported by the following
fonts:
@itemize
@item Latin Modern Math,
@item TeX Gyre Bonum Math,
@item TeX Gyre Pagella Math,
@item TeX Gyre Schola Math,
@item TeX Gyre Termes Math,
@item DejaVu Math TeX Gyre,
@item Asana-Math fonts,
@item STIX,
@item XITS Math,
@item Libertinus Math,
@item Fira Math.
@end itemize")
    (license license:lppl1.3c+)))

(define-public texlive-voss-mathcol
  (package
    (name "texlive-voss-mathcol")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/voss-mathcol/")
             (base32
              "1c7kzk2m2i8f6vqywnzfvcmv11ckanhcjxf72p4rgivw8f0lbwjm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/voss-mathcol")
    (synopsis "Typesetting mathematics in colour, in (La)TeX")
    (description
     "This is a short paper from the TeXnische Komodie, in German.  Since the
body of the paper is dominated by clear LaTeX coding examples, most LaTeX
programmers will understand how to achieve the results shown in the diagrams,
even if they don't understand German.")
    (license license:lppl)))

(define-public texlive-xifthen
  (package
    (name "texlive-xifthen")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xifthen/" "tex/latex/xifthen/")
             (base32
              "0b33mlmnxsj5mi06v2w2zgamk51mgv1lxdr1cax8nkpn9g7n9axw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xifthen")
    (synopsis "Extended conditional commands")
    (description
     "This package extends the @code{ifthen} package by implementing new
commands to go within the first argument of @code{\\\\ifthenelse}: to test
whether a string is void or not, if a command is defined or equivalent to
another.  The package also enables use of complex expressions as introduced by
the package @code{calc}, together with the ability of defining new commands to
handle complex tests.")
    (license license:lppl)))

(define-public texlive-xindy
  (package
    ;; Texmf tree in TeX Live is incomplete, as it doesn't include
    ;; "xindy.mem", so it is not possible to use `texlive-origin'.  This file
    ;; isn't build by default by `texlive-bin' either.  Build it specially
    ;; from `texlive-bin' source instead.
    (inherit texlive-libkpathsea)
    (name "texlive-xindy")
    (version (number->string %texlive-revision))
    (outputs '("out" "doc"))
    (build-system gnu-build-system)
    (arguments
     (substitute-keyword-arguments (package-arguments texlive-libkpathsea)
       ((#:out-of-source? _ #t) #t)
       ((#:configure-flags flags)
        #~(cons "--enable-xindy" (delete "--enable-kpathsea" #$flags)))
       ((#:phases _)
        #~(modify-phases %standard-phases
            (replace 'install
              (lambda _
                (with-directory-excursion "utils/xindy/"
                  (invoke "make")
                  (mkdir-p (string-append #$output "/bin"))
                  (invoke "make" "install")
                  (let ((out (string-append #$output "/share"))
                        (doc (string-append #$output:doc "/share/texmf-dist")))
                    (mkdir-p doc)
                    (with-directory-excursion doc
                      (rename-file (string-append out "/texmf-dist/doc") "doc")
                      (rename-file (string-append out "/man") "doc/man"))))))
            (add-after 'install 'patch-clisp-location
              (lambda* (#:key inputs #:allow-other-keys)
                ;; The scripts are encoded in ISO-8859-1 (or iso-latin-1).
                (with-fluids ((%default-port-encoding "ISO-8859-1"))
                  (substitute* (find-files #$output "xindy\\.pl$")
                    (("our \\$clisp = .*")
                     (format #f "our $clisp = ~s;~%"
                             (search-input-file inputs "/bin/clisp")))))))))))
    (native-inputs
     (list clisp
           (texlive-updmap.cfg
            (list texlive-cbfonts-fd
                  texlive-cyrillic
                  texlive-greek-fontenc
                  texlive-lh))))
    (inputs (list clisp perl))
    (native-search-paths '())
    (home-page "https://ctan.org/pkg/xindy")
    (synopsis "General-purpose index processor")
    (description
     "Xindy was developed after an impasse had been encountered in the attempt
to complete internationalisation of @command{makeindex}.  Xindy can be used to
process indexes for documents marked up using (La)TeX, Nroff family and
SGML-based languages.  Xindy is highly configurable, both in markup terms and
in terms of the collating order of the text being processed.")
    (license license:gpl2+)))

(define-public texlive-xindy-persian
  (package
    (name "texlive-xindy-persian")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/xindy-persian/")
             (base32
              "04w3h65215slnakk5w19m94xmj9cjx01izbk9xijifv5l6dqh447")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xindy-persian")
    (synopsis "Support for the Persian language in Xindy")
    (description
     "The package offers Persian language support for indexing using Xindy.")
    (license license:lppl1.3+)))

(define-public texlive-xits
  (package
    (name "texlive-xits")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/xits/"
                   "fonts/opentype/public/xits/")
             (base32
              "1359zgi8r4mwjv273zmc5jghyy4i54amkrmkq80z67x4kx092724")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xits")
    (synopsis "Scientific Times-like font")
    (description
     "XITS is a Times-like font for scientific typesetting with proper
mathematical support for modern, Unicode and OpenType capable TeX engines,
namely LuaTeX and XeTeX. For use with LuaLaTeX or XeLaTeX, support is
available from the @code{fontspec} and @code{unicode-math} packages.")
    (license license:silofl1.1)))

(define-public texlive-ntgclass
  (package
    (name "texlive-ntgclass")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ntgclass/"
                   "source/latex/ntgclass/"
                   "tex/latex/ntgclass/")
             (base32
              "04rvr1gldp87nqplmnqkwi3l9jclsjaawj5rym72gy6sw9snpmck")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ntgclass")
    (synopsis "European versions of standard classes")
    (description
     "The bundle offers versions of the standard LaTeX @code{article} and
@code{report} classes, rewritten to reflect a more European design, and the
@code{a4} package, which is better tuned to the shape of a4 paper than is the
@code{a4paper} class option of the standard classes.  The classes include
several for @code{article} and @code{report} requirements, and a @code{letter}
class.  The elements of the bundle were designed by members of the Dutch TeX
Users Group NTG.")
    (license license:lppl1.3+)))

(define-public texlive-nth
  (package
    (name "texlive-nth")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/generic/nth/")
             (base32
              "0716sd99xjdkplm7jdmg4lx8lpfnnx6mxjp1l1sp2bfqcg73p4hm")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/nth")
    (synopsis "Generate English ordinal numbers")
    (description
     "The command @code{\\nth{<number>}} generates English ordinal numbers of
the form 1st, 2nd, 3rd, 4th, etc.  LaTeX package options may specify that the
ordinal mark be superscripted, and that negative numbers may be treated; Plain
TeX users have no access to package options, so need to redefine macros for
these changes.")
    (license license:public-domain)))

(define-public texlive-ntheorem
  (package
    (name "texlive-ntheorem")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ntheorem/" "source/latex/ntheorem/"
                   "tex/latex/ntheorem/")
             (base32
              "16xain8s0azcnhwj5xwh3m365sb9bhdvxanh19kvmnc52dggjc1y")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ntheorem")
    (synopsis "Enhanced theorem environment")
    (description
     "The package offers enhancements for theorem-like environments: easier
control of layout; proper placement of endmarks even when the environment ends
with @code{\\end@{enumerate@}} or @code{\\end@{displaymath@}} (including
support for @code{amsmath} displayed-equation environments); and support for
making a list of theorems, analagous to @code{\\listoffigures}.")
    (license license:lppl)))

(define-public texlive-ntheorem-vn
  (package
    (name "texlive-ntheorem-vn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ntheorem-vn/")
             (base32
              "13lkgb4qjiblbfm4jcxgkxsf08zk90lqz02bxrmim1n8gvyihwcc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ntheorem-vn")
    (synopsis "Vietnamese translation of documentation of @code{ntheorem}")
    (description
     "This is a translation of the documentation provided with
@code{ntheorem}.")
    (license license:lppl)))

(define-public texlive-fmtcount
  (package
    (name "texlive-fmtcount")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fmtcount/" "scripts/fmtcount/"
                   "source/latex/fmtcount/" "tex/latex/fmtcount/")
             (base32
              "1biw0g6s2arq6kq52c1yfkl0vzafja2az65c3d0syq0vgjzj9763")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fmtcount")
    (synopsis "Display the value of a LaTeX counter in a variety of formats")
    (description
     "The package provides commands that display the value of a LaTeX counter
in a variety of formats (ordinal, text, hexadecimal, decimal, octal, binary
etc).  The package offers some multilingual support; configurations for use in
English (both British and American usage), French (including Belgian and Swiss
variants), German, Italian, Portuguese and Spanish documents are provided.")
    (license license:lppl1.3+)))

(define-public texlive-inriafonts
  (package
    (name "texlive-inriafonts")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/inriafonts/"
                   "fonts/enc/dvips/inriafonts/"
                   "fonts/map/dvips/inriafonts/"
                   "fonts/opentype/public/inriafonts/"
                   "fonts/tfm/public/inriafonts/"
                   "fonts/truetype/public/inriafonts/"
                   "fonts/type1/public/inriafonts/"
                   "fonts/vf/public/inriafonts/"
                   "tex/latex/inriafonts/")
             (base32
              "0ngbpr4pl7r82jmdhiksp32qvbvggf2nawwqq0pkb7cffp95ya49")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/inriafonts")
    (synopsis "Inria fonts with LaTeX support")
    (description
     "Inria is a free font designed by Black[Foundry] for Inria, a French
research institute.  It comes as Serif and Sans Serif, each with three weights
and matching italics.  Using these fonts with XeLaTeX and LuaLaTeX is easy
using the @code{fontspec} package.  The present package provides a way of
using them with LaTeX and pdfLaTeX: it provides two style files,
@file{InriaSerif.sty} and @file{InriaSans.sty}, together with the PostScript
version of the fonts and their associated files.")
    (license (list license:lppl license:silofl1.1))))

(define-public texlive-floatflt
  (package
    (name "texlive-floatflt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/floatflt/" "source/latex/floatflt/"
                   "tex/latex/floatflt/")
             (base32
              "1piy8ajbbcadsjwp0mhlgxm2ggggnb5sn75arfs5fxiaqrwd572j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/floatflt")
    (synopsis "Wrap text around floats")
    (description
     "The package can float text around figures and tables which do not span
the full width of a page; it improves upon floatfig, and allows tables/figures
to be set left/right or alternating on even/odd pages.")
    (license license:lppl1.3+)))

(define-public texlive-fvextra
  (package
    (name "texlive-fvextra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/fvextra/" "source/latex/fvextra/"
                   "tex/latex/fvextra/")
             (base32
              "18r3722sf859yn5j1q084ix9gp8sp4znvdlwi2vnrrn36djyvkzj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/fvextra")
    (synopsis "Extensions and patches for @code{fancyvrb}")
    (description
     "This package provides several extensions to fancyvrb, including
automatic line breaking and improved math mode.")
    (license license:lppl1.3+)))

(define-public bibtool
  (package
    (name "bibtool")
    (version "2.68")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/ge-ne/bibtool")
         (commit (string-append
                  "BibTool_"
                  (string-map (lambda (c) (if (char=? c #\.) #\_ c))
                              version)))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0grnmqj8w5018nd7r6drnq2yvfhf22gj9i3rj8ilhzm7zmz3zn0g"))))
    (build-system gnu-build-system)
    (arguments
     `(#:test-target "test"))
    (native-inputs
     (list perl))
    (home-page "http://www.gerd-neugebauer.de/software/TeX/BibTool/en")
    (synopsis "Tool for manipulating BibTeX databases")
    (description
     "BibTool manipulates BibTeX files.  The possibilities of BibTool include
sorting and merging of BibTeX databases, generation of uniform reference keys,
and selecting references used in a publication.")
    (license license:gpl2+)))

(define-public texlive-apa6
  (package
    (name "texlive-apa6")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/apa6/" "source/latex/apa6/"
                   "tex/latex/apa6/")
             (base32
              "08jn8piyaad4zln33c0gikyhdkcsk2s3ms9l992riq2hbpbm9lcf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-build
            ;; Build process wants to generate files in the wrong directory.
            (lambda _
              (substitute* "source/latex/apa6/apa6.ins"
                (("file\\{\\./.*?/") "file{")))))))
    (home-page "https://ctan.org/pkg/apa6")
    (synopsis "Format documents in APA style (6th edition)")
    (description
     "The class formats documents in APA style (6th Edition).  It provides
a full set of facilities in three different output modes (journal-like
appearance, double-spaced manuscript, LaTeX-like document).  The class can
mask author identity for copies for use in masked peer review.")
    (license license:lppl1.3c+)))

(define-public texlive-apacite
  (package
    (name "texlive-apacite")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/apacite/" "doc/bibtex/apacite/"
                   "source/bibtex/apacite/" "tex/latex/apacite/")
             (base32
              "0nc86zngk71xpbinrfm8p0413xphc0v86ddhcw94gi2sl00hsmzq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/apacite")
    (synopsis "Citation style following the rules of the APA")
    (description
     "Apacite provides a BibTeX style and a LaTeX package which are designed
to match the requirements of the American Psychological Association's style
for citations.  The package follows the 6th edition of the APA manual, and is
designed to work with the @code{apa6} class.")
    (license license:lppl)))

(define-public texlive-apalike-german
  (package
    (name "texlive-apalike-german")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/apalike-german/"
                   "doc/bibtex/apalike-german/")
             (base32
              "15mr1s9622bj5vmmlw7cp0afcbrz2h4kq9cp303ijklcslfsx748")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/apalike-german")
    (synopsis "Copy of @file{apalike.bst} with German localization")
    (description
     "This package provides a copy of @file{apalike.bst}, which is part of the
base BibTeX distribution, with German localization.")
    (license license:lppl1.3c)))

(define-public texlive-endfloat
  (package
    (name "texlive-endfloat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/endfloat/" "source/latex/endfloat/"
                   "tex/latex/endfloat/")
             (base32
              "1zslmc5g28z6adfyd8bdlbw03jawxmgafq0mgwy811hrbcppb2kg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/endfloat")
    (synopsis "Move floats to the end, leaving markers where they belong")
    (description
     "The @code{endfloat} package places all floats on pages by themselves at
the end of the document, optionally leaving markers in the text near to where
the figure (or table) would normally have occurred.")
    (license license:gpl3+)))

(define-public texlive-wadalab
  (package
    (name "texlive-wadalab")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/wadalab/"
                   "fonts/afm/wadalab/dgj/"
                   "fonts/afm/wadalab/dmj/"
                   "fonts/afm/wadalab/mc2j/"
                   "fonts/afm/wadalab/mcj/"
                   "fonts/afm/wadalab/mr2j/"
                   "fonts/afm/wadalab/mrj/"
                   "fonts/map/dvips/wadalab/"
                   "fonts/tfm/wadalab/dgj/"
                   "fonts/tfm/wadalab/dmj/"
                   "fonts/tfm/wadalab/mc2j/"
                   "fonts/tfm/wadalab/mcj/"
                   "fonts/tfm/wadalab/mr2j/"
                   "fonts/tfm/wadalab/mrj/"
                   "fonts/tfm/wadalab/udgj/"
                   "fonts/tfm/wadalab/udmj/"
                   "fonts/tfm/wadalab/umcj/"
                   "fonts/tfm/wadalab/umrj/"
                   "fonts/type1/wadalab/dgj/"
                   "fonts/type1/wadalab/dmj/"
                   "fonts/type1/wadalab/mc2j/"
                   "fonts/type1/wadalab/mcj/"
                   "fonts/type1/wadalab/mr2j/"
                   "fonts/type1/wadalab/mrj/"
                   "fonts/vf/wadalab/udgj/"
                   "fonts/vf/wadalab/udmj/"
                   "fonts/vf/wadalab/umcj/"
                   "fonts/vf/wadalab/umrj/")
             (base32
              "1i72xbn28wh2rl4j1yzl1rvb5nd8bxmci9q9qjzynwq845zgjvnk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/wadalab")
    (synopsis "Wadalab (Japanese) font packages")
    (description
     "These are font bundles for the Japanese Wadalab fonts which work with
the CJK package.  All subfonts now have glyph names compliant to the Adobe
Glyph List, making ToUnicode CMaps in PDF documents (created automatically by
@code{dvipdfmx}) work correctly.  All font bundles now contain virtual Unicode
subfonts.")
    (license (license:fsf-free "https://fedoraproject.org/wiki/Licensing:Wadalab"))))

(define-public texlive-was
  (package
    (name "texlive-was")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/was/" "source/latex/was/"
                   "tex/latex/was/")
             (base32
              "1c2kmfrm898c69bizw0650w82bjabp3jf57hmqfcb9y625pq0s05")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/was")
    (synopsis "Collection of small packages by Walter Schmidt")
    (description
     "This package provides a bundle of packages that arise in the author's
area of interest: compliance of maths typesetting with ISO standards; symbols
that work in both maths and text modes commas for both decimal separator and
maths; and upright Greek letters in maths.")
    (license license:lppl1.2+)))

(define-public texlive-xpatch
  (package
    (name "texlive-xpatch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xpatch/" "source/latex/xpatch/"
                   "tex/latex/xpatch/")
             (base32
              "0r08hadnwx9vyppzmbn1bj69b12i5fw1mhk49piw2rqbk01722zk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xpatch")
    (synopsis "Extending @code{etoolbox} patching commands")
    (description
     "The package generalises the macro patching commands provided by Philipp
Lehmann's @code{etoolbox}.")
    (license license:lppl1.3c+)))

(define-public texlive-threeparttablex
  (package
    (name "texlive-threeparttablex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/threeparttablex/"
                   "tex/latex/threeparttablex/")
             (base32
              "19pvw2ifswxcf8dxw0mzjmqhl592477w5hcfh97f4wpya0dv2m9p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/threeparttablex")
    (synopsis "Notes in @code{longtables}")
    (description
     "The package provides the functionality of the @code{threeparttable}
package to tables created using the @code{longtable} package.")
    (license license:lppl1.3+)))

(define-public texlive-ligtype
  (package
    (name "texlive-ligtype")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/ligtype/"
                   "tex/lualatex/ligtype/")
             (base32
              "18m4j01zhp3kj2ixd53b9z0k5f6idbpr6jv45gw149j5niax1dxg")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ligtype")
    (synopsis "Comprehensive ligature suppression functionalities")
    (description
     "This package suppresses inappropriate ligatures following specified
rules.  Both font and user kerning are applied correctly, and f-glyphs are
automatically replaced with their short-arm variant (if available).  Also
there is an emphasis on speed.  By default the package applies German language
ligature suppression rules.  With the help of options and macros it can be
used for other languages as well.  The package requires LuaLaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-linebreaker
  (package
    (name "texlive-linebreaker")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/linebreaker/"
                   "tex/lualatex/linebreaker/")
             (base32
              "1rppq2dlj7g5djq5f0hhgk9sgk0ip1ha4vqhx6ajfpzdchg7b1cw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/linebreaker")
    (synopsis "Prevent overflow boxes with LuaLaTeX")
    (description
     "This package tries to prevent overflow lines in paragraphs or boxes.  It
changes LuaTeX's @code{\\linebreak} callback and re-typesets the paragraph
with increased values of @code{\\tolerance} and @code{\\emergencystretch}
until the overflow no longer happens.  If that doesn't help, it chooses the
solution with the lowest badness.")
    (license license:lppl1.3+)))

(define-public texlive-lineno
  (package
    (name "texlive-lineno")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lineno/" "tex/latex/lineno/")
             (base32
              "1naqdd62gld0hx6ss0d7sllnbqslzxjcgzj7cnycs303lb03h738")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lineno")
    (synopsis "Line numbers on paragraphs")
    (description
     "The @code{lineno} package adds line numbers to selected paragraphs with
reference possible through the LaTeX @code{\\ref} and @code{\\pageref} cross
reference mechanism.  Line numbering may be extended to footnote lines, using
the @code{fnlineno} package.")
    (license license:lppl1.3a+)))

(define-public texlive-lparse
  (package
    (name "texlive-lparse")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/lparse/" "tex/luatex/lparse/")
             (base32
              "1m75w69qm67j82ja0lp38yckdsbn465aipzdbi2kg4y2xz34hli1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lparse")
    (synopsis "Lua module for parsing key-value options")
    (description
     "@code{lparse} is derived from @code{xparse}, but only works with LuaTeX.
Just as with xparse, it is possible to use a special syntax consisting of
single letters to express the arguments of a macro.  However, @code{lparse} is
able to read arguments regardless of the macro systemd used -- whether LaTeX,
or ConTeXt, or even plain TeX.  Of course, LuaTeX must always be used as the
engine.")
    (license license:lppl1.3c)))

(define-public texlive-lt3luabridge
  (package
    (name "texlive-lt3luabridge")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/lt3luabridge/"
                   "source/generic/lt3luabridge/"
                   "tex/generic/lt3luabridge/")
             (base32
              "00nfi3c545kmm6d9hxwl0m3pawg8322g36gm8sfa3y2p8kah6p8d")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lt3luabridge")
    (synopsis "Execute Lua code in any TeX engine that exposes the shell")
    (description
     "This is an expl3(-generic) package for plain TeX, LaTeX, and ConTeXt
that allows you to execute Lua code in LuaTeX or any other TeX engine that
exposes the shell.")
    (license license:lppl1.3c)))

(define-public texlive-lua-typo
  (package
    (name "texlive-lua-typo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/lua-typo/"
                   "source/lualatex/lua-typo/"
                   "tex/lualatex/lua-typo/")
             (base32
              "0lhjgs7jxdwk2cn9zb99mk2c56awi249zk839waqxnzfr18ky63k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lua-typo")
    (synopsis "Highlighting typographical flaws with LuaLaTeX")
    (description
     "This package tracks common typographic flaws in LuaLaTeX documents,
especially widows, orphans, hyphenated words split over two pages, consecutive
lines ending with hyphens, paragraphs ending on too short lines, etc.
Customisable colours are used to highlight these flaws, and the list of pages
on which typographical flaws were found is printed.")
    (license license:lppl1.3c)))

(define-public texlive-lua-uca
  (package
    (name "texlive-lua-uca")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/support/lua-uca/" "scripts/lua-uca/"
                   "source/support/lua-uca/")
             (base32
              "03wpdaz0z3zqfjs43ar65lx521qyf0c2q62b5p53kdx17xfr09jz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lua-uca")
    (synopsis "Unicode Collation Algorithm library for Lua")
    (description
     "The Lua-UCA library provides basic support for Unicode Collation
Algorithm in Lua.  It can be used to sort arrays of strings according to rules
of particular languages.  It can be used in other Lua projects that need to
sort text in a language dependent way, like indexing processors, bibliographic
generators, etc.")
    (license license:expat)))

(define-public texlive-lua-ul
  (package
    (name "texlive-lua-ul")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/lua-ul/"
                   "source/lualatex/lua-ul/"
                   "tex/lualatex/lua-ul/")
             (base32
              "0xpa41hkjzqcws7yjj6s8ys93qyhnv6zfv7479qbv58h5mgfxzhh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lua-ul")
    (synopsis "Underlining for LuaLaTeX")
    (description
     "This package provides underlining, strikethough, and highlighting using
features in LuaLaTeX which avoid the restrictions imposed by other methods.
In particular, kerning is not affected, the underlined text can use arbitrary
commands, hyphenation works etc.")
    (license license:lppl1.3c)))

(define-public texlive-lua-visual-debug
  (package
    (name "texlive-lua-visual-debug")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/lua-visual-debug/"
                   "tex/luatex/lua-visual-debug/")
             (base32
              "1g4n4xfqbgcja2x3b7yi59nn76jq695yndv90610pakask2k560l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lua-visual-debug")
    (synopsis "Visual debugging with LuaLaTeX")
    (description
     "The package uses Lua code to provide visible indications of boxes,
glues, kerns and penalties in the PDF output.  The package is known to work in
LaTeX and Plain TeX documents.")
    (license license:expat)))

(define-public texlive-lua-widow-control
  (package
    (name "texlive-lua-widow-control")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/lua-widow-control/"
                   "source/luatex/lua-widow-control/"
                   "tex/context/third/lua-widow-control/"
                   "tex/lualatex/lua-widow-control/"
                   "tex/luatex/lua-widow-control/"
                   "tex/optex/lua-widow-control/")
             (base32
              "1c2n0hmf4kgvdfqday9pk673nxmpddg2wr91wkgalvrn7jw82js4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lua-widow-control")
    (synopsis "Automatically remove widows and orphans from any document")
    (description
     "Unmodified TeX has very few ways of preventing widows and orphans.  In
documents with figures, section headings, and equations, TeX can stretch the
vertical glue between items in order to prevent widows and orphans, but many
documents have no figures or headings.  TeX can also shorten the page by
1 line, but this will give each page a different length which can make
a document look uneven.  The typical solution is to strategically insert
@samp{\\looseness=1}, but this requires manual editing every time that the
document is edited.  Lua-widow-control is essentially an automation of the
@code{\\looseness} method: it uses Lua callbacks to find stretchy paragraphs,
then it lengthens them to remove widows and orphans.  Lua-widow-control is
compatible with all LuaTeX and LuaMetaTeX-based formats.")
    ;; Use either license.
    (license (list license:mpl2.0 license:cc-by-sa4.0))))

(define-public texlive-luaaddplot
  (package
    (name "texlive-luaaddplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luaaddplot/"
                   "source/luatex/luaaddplot/"
                   "tex/luatex/luaaddplot/")
             (base32
              "0r7n2s8isw3rm0g2l0zljh86ysh1zyfbmypci3kgciad5smjzx15")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaaddplot")
    (synopsis "Extension to @code{pgfplots}' @code{\\addplot} macro")
    (description
     "This package is an extension to @code{pgfplots}.  It extends the
@code{\\addplot} macro by a facility which allows modification of data files
while they are read.  With @code{luaaddplot} it is no longer necessary to
pre-process data files generated by measuring devices with external scripts.")
    (license license:lppl1.3+)))

(define-public texlive-luacas
  (package
    (name "texlive-luacas")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luacas/" "tex/lualatex/luacas/")
             (base32
              "0zwfvrlxl5r2180w622h3dbsdskiyr2hxri3qf9v9b7nn7m33r26")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luacas")
    (synopsis "Computer algebra system for users of LuaLaTeX")
    (description
     "This package provides a portable computer algebra system capable of
symbolic computation, written entirely in Lua, designed for use in LuaLaTeX.
Its features are: arbitrary-precision integer and rational arithmetic,
factoring of univariate polynomials over the rationals and finite fields,
number theoretic algorithms, symbolic differentiation and integration, and
more.  The target audience for this package are mathematics students,
instructors, and professionals who would like some ability to perform basic
symbolic computations within LaTeX without the need for laborious and
technical setup.")
    (license license:lppl1.3c)))

(define-public texlive-luacensor
  (package
    (name "texlive-luacensor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luacensor/"
                   "tex/lualatex/luacensor/")
             (base32
              "0nw83zzpb9y4vnm4rjz786nz9fxv1vzlz3dv8fjwxqpxngqws4g8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luacensor")
    (synopsis "Securely redact sensitive information using Lua")
    (description
     "This package provides simple tools for creating redacted contents.  Its
tools are useful for lawyers, workers in sensitive industries, and others who
need to easily produce both unrestricted versions of documents (for limited,
secure release) and restricted versions of documents (for general release).
Redaction is done both by hiding all characters and by slightly varying the
length of strings to prevent jigsaw identification.  It also is friendly to
screen readers by adding alt-text indicating redacted content.")
    (license license:lppl1.3+)))

(define-public texlive-luacolor
  (package
    (name "texlive-luacolor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/luacolor/"
                   "source/latex/luacolor/"
                   "tex/latex/luacolor/")
             (base32
              "0c91m5iq095f04wiy3dfnhyh458d9scww51np88x8islz1l3psbp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luacolor")
    (synopsis "Color support based on LuaTeX's node attributes")
    (description
     "This package implements color support based on LuaTeX's node
attributes.")
    (license license:lppl1.3+)))

(define-public texlive-luacomplex
  (package
    (name "texlive-luacomplex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luacomplex/"
                   "tex/lualatex/luacomplex/")
             (base32
              "0fb75jzvl0gqqyfl6vrfwdpsxjfq7dyhmfbfibg9w6rqxzcd013p")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luacomplex")
    (synopsis "Operations on complex numbers inside LaTeX documents using Lua")
    (description
     "The @code{luacomplex} package is developed to define complex numbers and
perform basic arithmetic on complex numbers in LaTeX.  It also loads the
@code{luamathspackage}.  It provides an easy way to define complex numbers and
perform operations on complex numbers.  There is no particular environment for
performing operations on complex numbers.  The package commands can be used in
any environment (including the mathematics environment).")
    (license license:lppl1.3c)))

(define-public texlive-luagcd
  (package
    (name "texlive-luagcd")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luagcd/"
                   "tex/lualatex/luagcd/")
             (base32
              "17d1am1c4gmbc0z1fllk6kf6b8fmihw4bv8bl0vvwvnk2acj4zj9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luagcd")
    (synopsis "Computation of gcd of integers inside LaTeX using Lua")
    (description
     "Using Lua, the @code{luagcd} package is developed to find the greatest
common divisor (gcd) of integers in LaTeX.  The package provides commands to
obtain step-by-step computation of gcd of two integers by using the Euclidean
algorithm.  In addition, the package has the command to express gcd of two
integers as a linear combination.  The Bezout's Identity can be verified for
any two integers using commands in the package.")
    (license license:lppl1.3c)))

(define-public texlive-luahyphenrules
  (package
    (name "texlive-luahyphenrules")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luahyphenrules/"
                   "tex/lualatex/luahyphenrules/")
             (base32
              "1a23bp4a7nix4lhi4dl6kwxp1bs6dvldxxrx143i1ps95l3clasj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luahyphenrules")
    (synopsis "Loading patterns in LuaLaTeX with @file{language.dat}")
    (description
     "Preloading hyphenation patterns (or hyphen rules) into any format based
upon LuaTeX is not required in LuaTeX and recent releases of Babel don't do it
anyway.  This package is addressed to those who just want to select the
languages and load their patterns by means of @file{language.dat} without
loading @code{babel}.")
    (license license:lppl1.3+)))

(define-public texlive-luaimageembed
  (package
    (name "texlive-luaimageembed")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luaimageembed/"
                   "tex/lualatex/luaimageembed/")
             (base32
              "0nn4vw7hjyjr8an04dd8xmaskf9qn3zjv29dj37pias3pjq7nqi5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaimageembed")
    (synopsis "Embed images as base64-encoded strings")
    (description
     "This package allows to embed images directly as base64-encoded strings
into a LuaLaTeX document.  This can be useful, e.g., to package a document
with images into a single TeX file, or with automatically generated
graphics.")
    (license license:expat)))

(define-public texlive-luaindex
  (package
    (name "texlive-luaindex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luaindex/" "scripts/luaindex/"
                   "source/lualatex/luaindex/"
                   "tex/lualatex/luaindex/")
             (base32
              "0a2xfzrc663jmd2s5vi5p38pwd16mbm5602pxc3kszza8whqlfdn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:tex-format "lualatex"
           #:phases
           #~(modify-phases %standard-phases
               ;; FIXME: Building documentation requires shell-escape to be
               ;; allowed.  I couldn't find a way to generate the package
               ;; only.
               (delete 'build))))
    (home-page "https://ctan.org/pkg/luaindex")
    (synopsis "Create index using LuaLaTeX")
    (description
     "Luaindex provides (yet another) index processor, written in Lua.")
    (license license:lppl1.3+)))

(define-public texlive-luainputenc
  (package
    (name "texlive-luainputenc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luainputenc/"
                   "source/lualatex/luainputenc/"
                   "tex/lualatex/luainputenc/")
             (base32
              "17xglqil5mbv47kjzklp22vvsn29vajf6q0v45af4pd6yk9kcc6w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luainputenc")
    (synopsis "Replacing @code{inputenc} for use in LuaTeX")
    (description
     "LuaTeX operates by default in UTF-8 input; thus LaTeX documents that
need 8-bit character-sets need special treatment.  The package, therefore,
replaces the LaTeX standard @code{inputenc} for use under LuaTeX.  With
a current LuaTeX,the package has the same behaviour with LuaTeX as
@code{inputenc} has under pdfTeX.")
    (license license:public-domain)))

(define-public texlive-luaintro
  (package
    (name "texlive-luaintro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luaintro/")
             (base32
              "0xab7yymknvhsh4c30xnhrlvk798mbnl9fbf7njqx8mbmnv869bi")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaintro")
    (synopsis "Examples from the book ``Einfuhrung in LuaTeX und LuaLaTeX''")
    (description
     "The bundle provides source of all the examples published in the German
book ``Einfuhrung in LuaTeX und LuaLaTeX'', published by Lehmans Media and
DANTE, Berlin.")
    (license license:lppl1.3+)))

(define-public texlive-luakeys
  (package
    (name "texlive-luakeys")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luakeys/" "tex/luatex/luakeys/")
             (base32
              "0nsd9d2rfwbjadnfykhi0c4wj39cscpx496acjcixg1irlxii7z8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luakeys")
    (synopsis "Lua module for parsing key-value options")
    (description
     "This package provides a Lua module that can parse key-value options like
the TeX packages @code{keyval}, @code{kvsetkeys}, @code{kvoptions},
@code{xkeyval}, @code{pgfkeys}, etc.")
    (license license:lppl1.3c)))

(define-public texlive-lualatex-doc
  (package
    (name "texlive-lualatex-doc")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/lualatex-doc/"
                   "source/lualatex/lualatex-doc/")
             (base32
              "1nbanlp3qfk0hylih64qnkh5cd1mjd3j99jk36rnbjhd3f840d9q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lualatex-doc")
    (synopsis "Guide to use of LaTeX with LuaTeX")
    (description
     "The document is a guide to the world of LuaLaTeX.  Coverage supports
both new users and package developers.  Apart from the introductory material,
the document gathers information from several sources, and offers links to
others.")
    (license license:fdl1.3+)))

(define-public texlive-lualatex-truncate
  (package
    (name "texlive-lualatex-truncate")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/lualatex-truncate/"
                   "source/lualatex/lualatex-truncate/"
                   "tex/lualatex/lualatex-truncate/")
             (base32
              "1ash4zy97qr9vl3j0gpf16srhi8ymfz3h9khlp59kyq9c921rcla")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lualatex-truncate")
    (synopsis "Wrapper for using the @code{truncate} package with LuaLaTeX")
    (description
     "This package provides a wrapper for the @code{truncate} package, thus
fixing issues related to LuaTeX's hyphenation algorithm.")
    (license license:lppl1.3c)))

(define-public texlive-lualinalg
  (package
    (name "texlive-lualinalg")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/lualinalg/"
                   "tex/lualatex/lualinalg/")
             (base32
              "0f29ymc5adcg8mh8lhgir6cj6f0kni0i53r6g35yqnd1jw9qr24q")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lualinalg")
    (synopsis "Linear algebra package for LaTeX")
    (description
     "The @code{lualinalg} package is developed to perform operations on
vectors and matrices defined over the field of real or complex numbers inside
LaTeX documents.  It provides flexible ways for defining and displaying
vectors and matrices.  No particular environment of LaTeX is required to use
commands in the package.  The package is written in Lua, and @file{.tex} file
is to be compiled with the LuaLaTeX engine.  It may also save users efforts to
copy vectors and matrices from other software (which may not be in
LaTeX-compatible format) and to use them in a TeX file.  The vectors and
matrices of reasonable size can be handled with ease.  The package can be
modified or extended by writing custom Lua programs.")
    (license license:lppl1.3c)))

(define-public texlive-luamathalign
  (package
    (name "texlive-luamathalign")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luamathalign/"
                   "source/lualatex/luamathalign/"
                   "tex/lualatex/luamathalign/")
             (base32
              "0lj5lc6s30l9k83xrwfjva0v7c9ajv22ybsaz07hadgj17fxqbdn")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luamathalign")
    (synopsis "More flexible alignment in @code{amsmath} environments")
    (description
     "This package allows aligning mathematical expressions on points where
directly using @samp{&} is not possible, especially in nested macros or
environments.")
    (license license:lppl1.3c)))

(define-public texlive-luamaths
  (package
    (name "texlive-luamaths")
    (version (number->string %texlive-revision))
    (source (texlive-origin name version
                            (list "doc/lualatex/luamaths/"
                                  "tex/lualatex/luamaths/")
                            (base32
                             "1dswh6jjkl7jbs3f5pvwh30874x4xycvw7n9cbfd5m9wfcv97rw9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luamaths")
    (synopsis
     "Provide standard mathematical operations inside LaTeX documents using Lua")
    (description
     "The @code{luamaths} package is developed to perform standard
mathematical operations inside LaTeX documents using Lua.  It provides an easy
way to perform standard mathematical operations.  There is no particular
environment in the package for performing mathematical operations.  The
package commands can be used in any environment (including the mathematics
environment).")
    (license license:lppl1.3c)))

(define-public texlive-luamodulartables
  (package
    (name "texlive-luamodulartables")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luamodulartables/"
                   "tex/lualatex/luamodulartables/")
             (base32
              "18yc3fincdvfk1zj5m2gah35mzlvg6rbby8m71clnjk9knmzjcxy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luamodulartables")
    (synopsis "Generate modular addition and multiplication tables")
    (description
     "This package is developed to generate modular addition and
multiplication tables for positive integers.  It provides an easy way to
generate modular addition and modular multiplication tables for positive
integers in LaTeX documents.  The commands in the package have optional
arguments for the formatting of tables.  These commands can be used in an
environment similar to a tabular or array environment.  The commands can also
be used with the @code{booktabs} package, which provides nice formatting of
tables in LaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-luamplib
  (package
    (name "texlive-luamplib")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luamplib/"
                   "source/luatex/luamplib/"
                   "tex/luatex/luamplib/")
             (base32
              "1f2r93daddjwmj7fcy5rds2yz0c8qmww7yw93vgwffmm49d9ims5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luamplib")
    (synopsis "Use LuaTeX's built-in MetaPost interpreter")
    (description
     "The package enables the user to specify MetaPost diagrams (which may
include colour specifications from the color or xcolor packages) into
a document, using LuaTeX's built-in MetaPost library.  The facility is only
available in PDF mode.")
    (license license:gpl2)))

(define-public texlive-luaoptions
  (package
    (name "texlive-luaoptions")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luaoptions/"
                   "tex/lualatex/luaoptions/")
             (base32
              "143cjll4dkjb3bp9755c5wsq447mvw8k043mqyi01qskz5wq45yf")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaoptions")
    (synopsis "Option handling for LuaLaTeX packages")
    (description
     "This LuaLaTeX package provides extensive support for handling options,
on package level and locally.  It allows the declaration of sets of options,
along with defaults, allowed values and limited type checking.  These options
can be enforced as package options, changed at any point during a document, or
overwritten locally by optional macro arguments.  It is also possible to
instantiate an Options object as an independent Lua object, without linking it
to a package.  Luaoptions can be used to enforce and prepopulate options, or
it can be used to simply handle the parsing of optional @samp{key=value}
arguments into proper Lua tables.")
    (license license:expat)))

(define-public texlive-luapackageloader
  (package
    (name "texlive-luapackageloader")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luapackageloader/"
                   "tex/luatex/luapackageloader/")
             (base32
              "0cf2p4zhfvf7f10pbpp332chj46ajknqgb7a8i16v63ivvmgb8m3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-iftex))
    (home-page "https://ctan.org/pkg/luapackageloader")
    (synopsis "Allow LuaTeX to load external Lua packages")
    (description
     "This package allows LuaTeX to load packages from the default
@code{package.path} and @code{package.cpath} locations.  This could be useful
to load external Lua modules, including modules installed via LuaRocks.")
    (license license:lppl1.3c)))

(define-public texlive-luaprogtable
  (package
    (name "texlive-luaprogtable")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luaprogtable/"
                   "tex/lualatex/luaprogtable/")
             (base32
              "0vx4vsqa777hv4bdw8m7x8hrjg5p9h8d68z0l2ji60h67bziy161")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaprogtable")
    (synopsis "Programmable table interface for LuaLaTeX")
    (description
     "This package allows you to modify a cell based on the contents of other
cells using LaTeX macros.")
    (license license:expat)))

(define-public texlive-luapstricks
  (package
    (name "texlive-luapstricks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luapstricks/"
                   "fonts/opentype/public/luapstricks/"
                   "tex/lualatex/luapstricks/")
             (base32
              "160y66x93rcm0zpjscxyqbfkhbl0yypv0gyixm6vjwcm50vi2w5k")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luapstricks")
    (synopsis "PSTricks backend for LuaLaTeX")
    (description
     "This package enables the use of PSTricks directly in LuaLaTeX documents,
without invoking external programmes, by implementing a PostScript interpreter
in Lua.  Therefore it does not require shell escape to be enabled or special
environments, and instead allows PSTricks to be used exactly like in Dvips
based documents.")
    (license license:lppl1.3+)))

(define-public texlive-luaquotes
  (package
    (name "texlive-luaquotes")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luaquotes/"
                   "tex/lualatex/luaquotes/")
             (base32
              "0lla3bd5prh5ld1p88f8c3mfck6c6jn241fq1fzz0a9vdhfsbpv0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaquotes")
    (synopsis "Smart setting of quotation marks")
    (description
     "This package automatically generates quotation marks and punctuation
depending on the selected language.")
    (license (list license:lppl1.3c license:cc-by-sa3.0))))

(define-public texlive-luarandom
  (package
    (name "texlive-luarandom")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luarandom/"
                   "tex/lualatex/luarandom/")
             (base32
              "1hzq29prnwgvp400d26fdjhh812gwwgmlwb22xhj29s9f0k2g1qy")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luarandom")
    (synopsis "Create lists of random numbers")
    (description
     "This package can create lists of random numbers for any given interval.
It is possible to get lists with or without multiple numbers.  The random
generator will be initialized by the system time.")
    (license license:lppl1.3+)))

(define-public texlive-luaset
  (package
    (name "texlive-luaset")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luaset/"
                   "tex/lualatex/luaset/")
             (base32
              "1xbr7m1fb71xnlc3p4lb2gz10i6bz6f4bbzyfcclggriq7bkv1iq")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaset")
    (synopsis "Set Operations inside LaTeX documents using Lua")
    (description
     "The @code{luaset} package is developed to define finite sets and perform
operations on them inside LaTeX documents.  There is no particular environment
in the package for performing set operations.  The package commands can be
used in any environment (including the mathematics environment).  It is
written in Lua, and the @file{.tex} file is to be compiled with the LuaLaTeX
engine.")
    (license license:lppl1.3c)))

(define-public texlive-luatexko
  (package
    (name "texlive-luatexko")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luatexko/"
                   "tex/luatex/luatexko/")
             (base32
              "0pbpi8g2bdakrl3lpb4vmsbvccjzcb4d6y2ivnv0pncn0k5zfmfv")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luatexko")
    (synopsis "Typeset Korean with Lua(La)TeX")
    (description
     "This is a Lua(La)TeX macro package that supports typesetting Korean
documents including Old Hangul texts.  As LuaTeX has opened up access to
almost all the hidden routines of TeX engine, users can obtain more beautiful
outcome using this package rather than other Hangul macros operating on other
engines.")
    (license license:lppl1.3c)))

(define-public texlive-luatextra
  (package
    (name "texlive-luatextra")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luatextra/"
                   "source/lualatex/luatextra/"
                   "tex/lualatex/luatextra/")
             (base32
              "1i82x51rcdll5r6x63j5qqahb277a1xdrzpck30xlggwwlns0jdc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luatextra")
    (synopsis "Additional macros for Plain TeX and LaTeX in LuaTeX")
    (description
     "The package provides a coherent extended programming environment for use
with LuaTeX.  It loads packages @code{fontspec}, @code{luatexbase} and
@code{lualibs}, and provides additional user-level features and goodies.")
    (license license:public-domain)))

(define-public texlive-luatruthtable
  (package
    (name "texlive-luatruthtable")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/lualatex/luatruthtable/"
                   "tex/lualatex/luatruthtable/")
             (base32
              "18k0zk9zxfprcjxzkmfb2j1lk4ldk5hxi0ch1sy0n29f06qcl740")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luatruthtable")
    (synopsis "Generate truth tables of boolean values in LuaLaTeX")
    (description
     "This package provides an easy way for generating truth tables of boolean
values in LuaLaTeX. The time required for operations is no issue while
compiling with LuaLaTeX. The package supports nesting of commands for multiple
operations.  It can be modified or extended by writing custom lua programs.
There is no need to install lua on users system as TeX distributions (TeX Live
or MikTeX) come bundled with LuaLaTeX.")
    (license license:lppl1.3c)))

(define-public texlive-luavlna
  (package
    (name "texlive-luavlna")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luavlna/" "tex/luatex/luavlna/")
             (base32
              "1daa8gdkava15vvvfgr63mrq85l2ni0ydh9l17i9hyhw40mgz4bb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luavlna")
    (synopsis
     "Prevent line breaks after single letter words, units, or academic titles")
    (description
     "In some languages, like Czech or Polish, there should be no single
letter words at the end of a line, according to typographical norms.  This
package handles such situations using LuaTeX's callback mechanism.  In doing
this, the package can detect languages used in the text and insert spaces only
in parts of the document where languages requiring this feature are used.
Another feature of this package is the inclusion of non-breakable space after
initials (like in personal names), after or before academic degrees, and
between numbers and units.  The package supports both plain LuaTeX and
LuaLaTeX.")
    (license license:lppl1.3+)))

(define-public texlive-luaxml
  (package
    (name "texlive-luaxml")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/luaxml/" "tex/luatex/luaxml/")
             (base32
              "0j0d9n87rigawqq3xlxk0zi5ry31zqg3p19jmfablvnb9lan3nrc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/luaxml")
    (synopsis "Lua library for reading and serialising XML files")
    (description
     "LuaXML is a pure Lua library for reading and serializing XML files.  The
current release is aimed mainly at support for the @code{odsfile} package.")
    ;; It uses explicitly the same license as Lua.
    (license license:x11)))

(define-public texlive-lutabulartools
  (package
    (name "texlive-lutabulartools")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/lutabulartools/"
                   "tex/luatex/lutabulartools/")
             (base32
              "1p7b1gv86xa09g1big3s88w0c8jiyj2bk2r8wq4n3pqqqr7zm79z")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lutabulartools")
    (synopsis "Some useful LuaLaTeX-based tabular tools")
    (description
     "This package provides some useful commands for tabular matter.  It uses
LuaLaTeX and offers the ability to combine the facilities of multirow and
makecell with an easy to use syntax.  It also adds some enhanced rules for the
@code{booktabs} package.")
    (license license:expat)))

(define-public texlive-makeplot
  (package
    (name "texlive-makeplot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/makeplot/"
                   "source/latex/makeplot/"
                   "tex/latex/makeplot/")
             (base32
              "1w34508lvb6rjhp41k78ph2p609mk03n8sp4mfgmhdpay0qxyjz5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/makeplot")
    (synopsis "Easy plots from Matlab in LaTeX")
    (description
     "Makeplot is a LaTeX package that uses the PSTricks @code{pst-plot}
functions to plot data that it takes from Matlab output files.")
    (license license:lppl)))

(define-public texlive-minim
  (package
    (name "texlive-minim")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/minim/" "tex/luatex/minim/")
             (base32
              "056jp5rx9rhwshhzif58kx832jv1f1xw7zj1gh17g7zbyqzbc003")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/minim")
    (synopsis "Modern plain format for the LuaTeX engine")
    (description
     "This is a modern plain format for the LuaTeX engine, adding improved
low-level support for many LuaTeX extensions and newer PDF features.  While it
can be used as drop-in replacement for plain TeX, it probably is most useful
as a basis for your own formats.  Most features included in the format are
provided by separate packages that can be used on their own; this package
contains only their shared lowest-level programming interface, along with
their combined format.")
    (license license:eupl1.2)))

(define-public texlive-minim-math
  (package
    (name "texlive-minim-math")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/minim-math/"
                   "tex/luatex/minim-math/")
             (base32
              "0793np84dx47c6wsmqrh3vj2y9w6p0l55nc4xl9b21xvgzzb0b5j")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/minim-math")
    (synopsis "Extensive maths for LuaTeX")
    (description
     "This package provides a simple and highly configurable way to use
Unicode and OpenType mathematics with simple LuaTeX, taking advantage of most
of the engine's new capabilities in mathematical typesetting.  Also included
are the proper settings and definitions for almost all Unicode mathematical
characters.")
    (license license:eupl1.2)))

(define-public texlive-minim-mp
  (package
    (name "texlive-minim-mp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/minim-mp/" "metapost/minim-mp/"
                   "tex/luatex/minim-mp/")
             (base32
              "084k1ywvaq1mbz00kmbxd5kzp1da7a397dy3y25pbf7chrlxwsrk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/minim-mp")
    (synopsis "Low-level mplib integration for LuaTeX")
    (description
     "This package offers low-level mplib integration for plain LuaTeX and is
designed with the purpose of being easy to extend.  The use of multiple
simultaneous MetaPost instances is supported, as well as running TeX or lua
code from within MetaPost.  With the included @code{minim-mp} format file, you
can even use LuaTeX as a stand-alone MetaPost compiler.")
    (license license:eupl1.2)))

(define-public texlive-minim-pdf
  (package
    (name "texlive-minim-pdf")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/minim-pdf/"
                   "tex/luatex/minim-pdf/")
             (base32
              "10ls1i1141lh2f69r63wmvk2dg7j6g9gl0d0qk1m73byrg4zvbcp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/minim-pdf")
    (synopsis "Low-level PDF integration for LuaTeX")
    (description
     "This package adds low-level support to plain LuaTeX for marking up the
structure of a PDF document.  The implementation is rather basic, but should
allow you to make your PDFs fully PDF/A-compliant.")
    (license license:eupl1.2)))

(define-public texlive-minim-xmp
  (package
    (name "texlive-minim-xmp")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/luatex/minim-xmp/"
                   "tex/luatex/minim-xmp/")
             (base32
              "1g50pal1vxcyl0xvdkbrk26z70kn8s38sqy5c848jdbl0fx29vla")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/minim-xmp")
    (synopsis "Embed XMP metadata in PDF with LuaTeX")
    (description
     "This package enables the inclusion of XMP (eXtensible Metadata Platform)
data in the pdf output generated by (plain) LuaTeX.  The use of XMP is
required by PDF standards such as PDF/A.")
    (license license:eupl1.2)))

(define-public texlive-babel-czech
  (package
    (name "texlive-babel-czech")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-czech/"
                   "source/generic/babel-czech/"
                   "tex/generic/babel-czech/")
             (base32
              "036817g9dv7m0m1576igwv4mjk8b41klkih44zzwjigdgdjpwbn9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-czech")
    (synopsis "Babel support for Czech")
    (description
     "This package provides the language definition file for support of Czech
in @code{babel}.  Some shortcuts are defined, as well as translations to Czech
of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-babel-dutch
  (package
    (name "texlive-babel-dutch")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-dutch/"
                   "source/generic/babel-dutch/"
                   "tex/generic/babel-dutch/")
             (base32
              "1iqlhs2zh60n50r69yicxlklxx8msrb8k552j0ffmqf5kh64fpqh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-dutch")
    (synopsis "Babel contributed support for Dutch")
    (description
     "This package provides the language definition file for support of Dutch
in @code{babel}.  It provides all the necessary macros, definitions and
settings to typeset Dutch documents.")
    (license license:lppl1.3c+)))

(define-public texlive-babel-finnish
  (package
    (name "texlive-babel-finnish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-finnish/"
                   "source/generic/babel-finnish/"
                   "tex/generic/babel-finnish/")
             (base32
              "1zwrbcqjwhy31mks31vlc4kxci67d5cfm53jaikaabkd8q6grq6i")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-finnish")
    (synopsis "Babel support for Finnish")
    (description
     "This package provides the language definition file for support of
Finnish in @code{babel}.  It provides all the necessary macros, definitions and
settings to typeset Finnish documents.")
    (license license:lppl1.3c+)))

(define-public texlive-babel-norsk
  (package
    (name "texlive-babel-norsk")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-norsk/"
                   "source/generic/babel-norsk/"
                   "tex/generic/babel-norsk/")
             (base32
              "1zsssgcdllhjk7r58k4rv8bh59nmj091syqj45chvp1i667ndryp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-norsk")
    (synopsis "Babel support for Norwegian")
    (description
     "The package provides the language definition file for support of
Norwegian in Babel.  Some shortcuts are defined, as well as translations to
Norsk of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-generic-babel-norsk texlive-babel-norsk)

(define-public texlive-babel-danish
  (package
    (name "texlive-babel-danish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-danish/"
                   "source/generic/babel-danish/"
                   "tex/generic/babel-danish/")
             (base32
              "11fhmj850gahjm3l3rg5pg4l8j9x6mma59vgfpmnd4fkxj5acb0r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-danish")
    (synopsis "Babel contributed support for Danish")
    (description
       "This package provides the language definition file for support of
Danish in @code{babel}.  It provides all the necessary macros, definitions and
settings to typeset Danish documents.")
      (license license:lppl1.3c+)))

(define-public texlive-babel-polish
  (package
    (name "texlive-babel-polish")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/babel-polish/"
                   "source/generic/babel-polish/"
                   "tex/generic/babel-polish/")
             (base32
              "0j86l23y1rq1raq2n5azza07l7xjkpgw9nhm77pzy8xmifp3nzhb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/babel-polish")
    (synopsis "Babel support for Polish")
    (description
     "This package provides the language definition file for support of Polish
in @code{babel}.  Some shortcuts are defined, as well as translations to
Polish of standard LaTeX names.")
    (license license:lppl1.3+)))

(define-public texlive-mdframed
  (package
    (name "texlive-mdframed")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/mdframed/" "source/latex/mdframed/"
                   "tex/latex/mdframed/")
             (base32
              "1i5rm946wg43rjckxlfhx79zfx5cgd3bxk71206hd1dqkrgpdpa8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/mdframed")
    (synopsis "Framed environments that can split at page boundaries")
    (description
     "The @code{mdframed} package develops the facilities of @code{framed} in
providing breakable framed and coloured boxes.  The user may instruct the
package to perform its operations using default LaTeX commands, PStricks or
TikZ.")
    (license license:lppl)))

(define-public texlive-setspace
  (package
    (name "texlive-setspace")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/setspace/" "tex/latex/setspace/")
             (base32
              "0bvspbka1jhpysyhh3sd1vkkm6xjj2ahj0mzv2inzqbrrbydr9gr")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/setspace")
    (synopsis "Set space between lines")
    (description
     "The @code{setspace} package provides support for setting the spacing
between lines in a document.  Package options include @code{singlespacing},
@code{onehalfspacing}, and @code{doublespacing}.  Alternatively the spacing
can be changed as required with the @code{\\singlespacing},
@code{\\onehalfspacing}, and @code{\\doublespacing} commands.  Other size
spacings also available.")
    (license license:lppl1.3+)))

(define-public texlive-pgfgantt
  (package
    (name "texlive-pgfgantt")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pgfgantt/" "source/latex/pgfgantt/"
                   "tex/latex/pgfgantt/")
             (base32
              "0bm034iizk4sd7p5x7vkj7v57dc0bf2lswpsb32s4qlg4s7h6jqz")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs (list texlive-pgf))
    (home-page "https://ctan.org/pkg/pgfgantt")
    (synopsis "Draw Gantt charts with TikZ")
    (description
     "The @code{pgfgantt} package provides an environment for drawing Gantt charts
that contain various elements (titles, bars, milestones, groups and links).
Several keys customize the appearance of the chart elements.")
    (license license:lppl1.3+)))

(define-public texlive-pdfcol
  (package
    (name "texlive-pdfcol")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdfcol/" "source/latex/pdfcol/"
                   "tex/latex/pdfcol/")
             (base32
              "0mr09kyan59xlnxl4a97w2avp1p09w5yyv6v3p498xpjbq3dbwih")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdfcol")
    (synopsis "Macros for maintaining colour stacks under pdfTeX")
    (description
     "This package is intended for package writers.  It defines macros for
setting and maintaining new colour stacks.")
    (license license:lppl1.3c)))

(define-public texlive-pdfcolfoot
  (package
    (name "texlive-pdfcolfoot")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdfcolfoot/"
                   "source/latex/pdfcolfoot/"
                   "tex/latex/pdfcolfoot/")
             (base32
              "0k3fwfyj56zb18fr4yay4bp66nbx3a0nb87i8mh8yxkm7qmnx95l")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdfcolfoot")
    (synopsis "Separate color stack for footnotes with pdfTeX")
    (description
     "Since version 1.40 pdfTeX supports several colour stacks.  This package
uses a separate colour stack for footnotes that can break across pages.")
    (license license:lppl1.3+)))

(define-public texlive-pdflscape
  (package
    (name "texlive-pdflscape")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdflscape/"
                   "source/latex/pdflscape/"
                   "tex/latex/pdflscape/")
             (base32
              "0l1m97ai3w8lfdfndmcbwyd8sdwpw4wp7zn6c4iqkf8bqwrmqyk8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdflscape")
    (synopsis "Make landscape pages display as landscape")
    (description
     "The @code{pdflscape} package adds PDF support to the @code{landscape}
environment of package @code{lscape}, by setting the PDF @code{/Rotate} page
attribute.  Pages with this attribute will be displayed in landscape
orientation by conforming PDF viewers.")
    (license license:lppl1.3+)))

(define-public texlive-pdfmanagement-testphase
  (package
    (name "texlive-pdfmanagement-testphase")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdfmanagement-testphase/"
                   "source/latex/pdfmanagement-testphase/"
                   "tex/latex/pdfmanagement-testphase/")
             (base32
              "0lxnr7xzis376fmkcyk7ghyj1x7m9yvlg98fvvy6vc4b26hf2kyk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdfmanagement-testphase")
    (synopsis "LaTeX PDF management testphase bundle")
    (description
     "This is a temporary package, which is used during a test phase to load
the new PDF management code of LaTeX.  The new PDF management code offers
backend-independent interfaces to central PDF dictionaries, tools to create
annotations, form Xobjects, to embed files, and to handle PDF standards.  The
code is provided, during a testphase, as an independent package to allow users
and package authors to safely test the code.  At a later stage it will be
integrated into the LaTeX kernel (or in parts into permanent support
packages), and the current testphase bundle will be removed.")
    (license license:lppl1.3c)))

(define-public texlive-pdftricks
  (package
    (name "texlive-pdftricks")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdftricks/"
                   "tex/latex/pdftricks/")
             (base32
              "07vr97rgn0n73zb2b3sb3wkwxl0p6nbnjk0cgxd05drf1k8shxnp")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdftricks")
    (synopsis "Support for PSTricks in pdfTeX")
    (description
     "The PSTricks macros cannot be used (directly) with pdfTeX, since
PSTricks uses PostScript arithmetic, which isn't part of PDF.  This package
circumvents this limitation so that the extensive facilities offered by the
powerful PSTricks package can be made use of in a pdfTeX document.  This is
done using the shell escape function available in current TeX implementations.
The package may also be used in support of other PostScript-output-only
packages, such as PSfrag.")
    (license license:gpl3+)))

(define-public texlive-pdftricks2
  (package
    (name "texlive-pdftricks2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pdftricks2/"
                   "tex/latex/pdftricks2/")
             (base32
              "0znq52nzknv0x16cqbpfi90gz89frzk74ww3sg7ibjacmbpfl3j0")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pdftricks2")
    (synopsis "Use PSTricks in pdfTeX")
    (description
     "The package provides the means of processing documents that contain
PSTricks graphics specifications.  The package is inspired by
@code{pdftricks}.")
    (license license:gpl2)))

(define-public texlive-pedigree-perl
  (package
    (name "texlive-pedigree-perl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/pedigree.1"
                   "doc/man/man1/pedigree.man1.pdf"
                   "doc/support/pedigree-perl/"
                   "scripts/pedigree-perl/"
                   "source/latex/pedigree-perl/")
             (base32
              "0s2186j4hx5v12g5r8admif2ysi6nnm8d0xxpwq26brfcjrbbh7r")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:link-scripts #~(list "pedigree.pl")))
    (inputs (list perl))
    (home-page "https://ctan.org/pkg/pedigree-perl")
    (synopsis "Generate TeX pedigree files from CSV files")
    (description
     "This program generates TeX commands to typeset pedigrees --- either TeX
fragments or full LaTeX files, to be processed by the @code{pst-pdgr} package.
The program has support for multilanguage pedigrees (at the present moment the
English and Russian languages are supported).")
    (license license:gpl2)))

(define-public texlive-psbao
  (package
    (name "texlive-psbao")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/psbao/" "tex/latex/psbao/")
             (base32
              "11gfnjvhrgic18s45pj6hn8slj9kmrmsrh4kqn83sfdxy2mr2y32")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/psbao")
    (synopsis "Draw Bao diagrams")
    (description
     "The package draws Bao diagrams in LaTeX.  The package is a development
of @code{psgo}, and uses PSTricks to draw the diagrams.")
    (license license:lppl)))

(define-public texlive-pslatex
  (package
    (name "texlive-pslatex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "fonts/map/dvips/pslatex/"
                   "fonts/tfm/public/pslatex/"
                   "fonts/vf/public/pslatex/"
                   "source/latex/pslatex/fontinst/"
                   "source/latex/pslatex/shell/"
                   "tex/latex/pslatex/")
             (base32
              "1jazd3wl614c7nxl89aj7bhdahhq3h6rrs3p5cyzwqmw3b8h2zrl")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pslatex")
    (synopsis "Use PostScript fonts by default")
    (description
     "This package provides a small package that makes LaTeX default to
standard PostScript fonts.  It is basically a merger of the @code{times} and
the (obsolete) @code{mathptm} packages from the @code{psnfss} suite.  You must
have installed standard LaTeX and the @code{psnfss} PostScript fonts to use
this package.  The main novel feature is that the @code{pslatex} package tries
to compensate for the visual differences between the Adobe fonts by scaling
Helvetica by 90%, and condensing Courier (i.e.  scaling horizontally) by 85%.
The package is supplied with a (unix) shell file for a @command{pslatex}
command that allows standard LaTeX documents to be processed, without needing
to edit the file.  Note that current @code{psnfss} uses a different technique
for scaling Helvetica, and treats Courier as a lost cause (there are better
free fixed-width available now, than there were when @code{pslatex} was
designed).  As a result, @code{pslatex} is widely considered obsolete.")
    (license license:lppl)))

(define-public texlive-pspicture
  (package
    (name "texlive-pspicture")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/pspicture/" "dvips/pspicture/"
                   "source/latex/pspicture/"
                   "tex/latex/pspicture/")
             (base32
              "06wlnwyn45873zghnbw16lzmfj98r9il218z84p1ixw6jwkwlkh8")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/pspicture")
    (synopsis "PostScript picture support")
    (description
     "This package provides a replacement for LaTeX's picture macros, that
uses PostScript @code{\\special} commands.  The package is now largely
superseded by @code{pict2e}.")
    (license license:lppl)))

(define-public texlive-datetime2
  (package
    (name "texlive-datetime2")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/datetime2/"
                   "source/latex/datetime2/"
                   "tex/latex/datetime2/")
             (base32
              "0yjkpfic1ni4j2g61rrjj5hjyd43shc9c0sg1aivbbsmqh30dn33")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-etoolbox texlive-tracklang texlive-xkeyval))
    (home-page "https://ctan.org/pkg/datetime2")
    (synopsis "Formats for dates, times and time zones")
    (description
     "The @code{datetime2} package provides commands for formatting dates,
times and time zones and redefines @code{\\today} to use the same formatting
style.  In addition to @code{\\today}, you can also use
@code{\\DTMcurrenttime} (current time) or @code{\\DTMnow} (current date and
time).  Dates and times can be saved for later use.  The accompanying
@code{datetime2-calc} package can be used to convert date-times to UTC+00:00.
Language and regional support is provided by independently maintained and
installed modules.  The @code{datetime2-calc} package uses the
@code{pgfcalendar} package (part of the PGF/TikZ bundle).  This package
replaces @code{datetime.sty}, which is now obsolete.")
    (license license:lppl1.3+)))

(define-public texlive-tracklang
  (package
    (name "texlive-tracklang")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/tracklang/"
                   "source/latex/tracklang/"
                   "tex/generic/tracklang/"
                   "tex/latex/tracklang/")
             (base32
              "0y8kdr5v033dp79fqfdc1jpp1x3lv0yjz5fjd6yk2xxw30lps1s9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tracklang")
    (synopsis "Language and dialect tracker")
    (description
     "The @code{tracklang} package is provided for package developers who want
a simple interface to find out which languages the user has requested through
packages such as @code{babel} or @code{polyglossia}.  This package does not
provide any translations!  Its purpose is simply to track which languages have
been requested by the user.  Generic TeX code is in @file{tracklang.tex} for
non-LaTeX users.")
    (license license:lppl1.3+)))

(define-public texlive-ltablex
  (package
    (name "texlive-ltablex")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ltablex/" "tex/latex/ltablex/")
             (base32
              "14lmgj820j6zwj1xnd6ad38kzb9w132kp7sp55cv5bk9vhx3621w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/ltablex")
    (synopsis "Table package extensions")
    (description
     "The @code{ltablex} package modifies the @code{tabularx} environment to
combine the features of the @code{tabularx} package (auto-sized columns in
a fixed-width table) with those of the @code{longtable} package (multi-page
tables).")
    (license license:lppl)))

(define-public texlive-ragged2e
  (package
    (name "texlive-ragged2e")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/ragged2e/" "source/latex/ragged2e/"
                   "tex/latex/ragged2e/")
             (base32
              "06wr2x7mgd40wdq3dnjg3rp5p41fqk6lsj28652i6g71rhnga3sc")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/ragged2e")
    (synopsis "Alternative versions of ragged-type commands")
    (description
     "The @code{ragged2e} package defines new commands @code{\\Centering},
@code{\\RaggedLeft}, and @code{\\RaggedRight} and new environments
@code{Center}, @code{FlushLeft}, and @code{FlushRight}, which set ragged text
and are easily configurable to allow hyphenation (the corresponding commands
in LaTeX, all of whose names are lower-case, prevent hyphenation
altogether).")
    (license license:lppl1.3c)))

(define-public texlive-rcs
  (package
    (name "texlive-rcs")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/rcs/" "source/latex/rcs/"
                   "tex/latex/rcs/")
             (base32
              "0lhb5njyk5y60lgbbggy804qqc0szcybbhndmwblpxhhyxiqvmi5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/rcs")
    (synopsis "Use RCS (revision control system) tags in LaTeX documents")
    (description
     "The @code{rcs} package utilizes the inclusion of RCS supplied data in
LaTeX documents.  In particular, you can easily access values of every RCS
field in your document put the checkin date on the titlepage or put RCS fields
in a footline.  You can also typeset revision logs.  You can also configure
the @code{rcs} package easily to do special things for any keyword.")
    (license license:gpl3+)))

(define-public texlive-refstyle
  (package
    (name "texlive-refstyle")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/refstyle/" "source/latex/refstyle/"
                   "tex/latex/refstyle/")
             (base32
              "0ckfm04kfi67babpn3m99nqj4b9r1fs0ivq5m7yz90mz4lqykhbs")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/refstyle")
    (synopsis "Advanced formatting of cross references")
    (description
     "The package provides a consistent way of producing references throughout
a project.  Enough flexibility is provided to make local changes to a single
reference.  The user can configure their own setup.  The package offers
a direct interface to varioref (for use, for example, in large projects such
as a series of books, or a multivolume thesis written as a series of
documents), and name references from the nameref package may be incorporated
with ease.  For large projects such as a series of books or a multi volume
thesis, written as freestanding documents, a facility is provided to interface
to the @code{xr} package for external document references.")
    (license license:lppl)))

(define-public texlive-relsize
  (package
    (name "texlive-relsize")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/relsize/" "tex/latex/relsize/")
             (base32
              "07g9wqxsh3a9rmfbppaqhyic82a1i1habizaf4hpdi3246w6nnby")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/relsize")
    (synopsis "Set the font size relative to the current font size")
    (description
     "The basic command of the package is @code{\\relsize}, whose argument is
a number of @code{\\magsteps} to change size; from this are defined commands
@code{\\larger}, @code{\\smaller}, @code{\\textlarger}, etc.")
    (license license:public-domain)))

(define-public texlive-russ
  (package
    (name "texlive-russ")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/russ/" "tex/latex/russ/")
             (base32
              "0ixvdjvgrqn5z8glvbr1i9k4yw00n260d11n034x6j67srxph3rb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/russ")
    (synopsis "LaTeX in Russian, without Babel")
    (description
     "The package aims to facilitate Russian typesetting (based on input using
MicroSoft Code Page 1251).  Russian hyphenation is selected, and various
mathematical commands are set up in Russian style.  Furthermore all Cyrillic
letters catcodes are set to @samp{letter}, so that commands with Cyrillic
letters in their names may be defined.")
    (license license:lppl)))

(define-public texlive-everyhook
  (package
    (name "texlive-everyhook")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/everyhook/"
                   "source/latex/everyhook/"
                   "tex/latex/everyhook/")
             (base32
              "0rcw2d5ncq8avk33nxika34q3da1v4kcmr6jqdxdg49bq4h8ljs7")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (native-inputs
     (list (texlive-updmap.cfg
            (list texlive-bera
                  texlive-enumitem
                  texlive-etoolbox
                  texlive-hypdoc
                  texlive-inconsolata
                  texlive-lipsum
                  texlive-listings
                  texlive-mathpazo
                  texlive-microtype
                  texlive-palatino
                  texlive-svn-prov
                  texlive-upquote
                  texlive-xkeyval))))
    (home-page "https://ctan.org/pkg/everyhook")
    (synopsis "Hooks for standard TeX token lists")
    (description
     "The package takes control of the six TeX token registers @code{\\everypar},
@code{\\everymath}, @code{\\everydisplay}, @code{\\everyhbox},
@code{\\everyvbox} and @code{\\everycr}.  Real hooks for each of the registers
may be installed using a stack like interface.  For backwards compatibility,
each of the @code{\\everyX} token lists can be set without interfering with
the hooks.")
    (license license:lppl1.3+)))

(define-public texlive-everypage
  (package
    (name "texlive-everypage")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/everypage/"
                   "source/latex/everypage/"
                   "tex/latex/everypage/")
             (base32
              "1kw7n7az823sc8gjrd4gjkkak1780yn76zswlnwapxmvl62pv9xk")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/everypage")
    (synopsis "Provide hooks to be run on every page of a document")
    (description
     "The package provides hooks to perform actions on every page, or on the
current page.  Specifically, actions are performed after the page is composed,
but before it is shipped, so they can be used to prepare the output page in
tasks like putting watermarks in the background, or in setting the next page
layout, etc.")
    (license license:lppl1.3c)))

(define-public texlive-everysel
  (package
    (name "texlive-everysel")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/everysel/" "source/latex/everysel/"
                   "tex/latex/everysel/")
             (base32
              "0skzm2qsk5vpjxgslclp4pvbbcrrnm1w3df8xfvfq252dyd7w8s5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/everysel")
    (synopsis "Provides hooks into @code{\\selectfont}")
    (description
     "The @code{everysel} package provided hooks whose arguments are executed
just after LaTeX has loaded a new font by means of @code{\\selectfont}.  It
has become obsolete with LaTeX versions 2021/01/05 or newer, since LaTeX now
provides its own hooks to fulfill this task.  For newer versions of LaTeX
@code{everysel} only provides macros using LaTeX's hook management due to
compatibility reasons.")
    (license license:lppl1.3c)))

(define-public texlive-everyshi
  (package
    (name "texlive-everyshi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/everyshi/" "source/latex/everyshi/"
                   "tex/latex/everyshi/")
             (base32
              "11y6xazv1nk0m2hzsainjr8ijn5cff04xfccm6a65hzg7ipggraj")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    ;; Building `texlive-everyshi' requires "latex" format, provided by
    ;; `texlive-latex-bin'.  However, `texlive-everyshi' is also a propagated
    ;; inputs from `texlive-latex-bin'.  To work around this cycle, build
    ;; a temporary "latex.fmt" format file, and use it to build the package.
    ;; At the end of the process, remove that temporary format file.
    (arguments
     (list
      #:texlive-latex-bin? #f
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'build 'create-latex-format
            (lambda* (#:key inputs #:allow-other-keys)
              (apply (assoc-ref %standard-phases 'create-formats)
                     (list #:inputs inputs #:create-formats '("latex")))))
          (replace 'build
            (lambda* (#:key inputs build-targets tex-engine #:allow-other-keys)
              (apply (assoc-ref %standard-phases 'build)
                     (list #:inputs inputs
                           #:build-targets build-targets
                           #:tex-engine tex-engine
                           #:tex-format (string-append (getcwd)
                                                       "/web2c/pdftex/latex")))))
          (add-after 'build 'remove-latex-format
            (lambda _
              (delete-file-recursively "web2c"))))))
    (native-inputs
     (list texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latexconfig
           texlive-tex-ini-files))
    (home-page "https://ctan.org/pkg/everyshi")
    (synopsis "Take action at every @code{\\shipout}")
    (description
     "The @code{everyshi} package provides hooks into @code{\\sshipout} called
@code{\\EveryShipout} and @code{\\AtNextShipout} analogous to
@code{\\AtBeginDocument}.  With the introduction of the LaTeX hook management
this package became obsolete in 2020 and is only provided for backwards
compatibility.  For current versions of LaTeX it is only mapping the hooks to
the original @code{everyshi} macros.  In case you use an older LaTeX format,
@code{everyshi} will automatically fall back to its old implementation by
loading @code{everyshi-2001-05-15}.")
    (license license:lppl1.3c)))

(define-public texlive-abstract
  (package
    (name "texlive-abstract")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/abstract/" "source/latex/abstract/"
                   "tex/latex/abstract/")
             (base32
              "1axm78qgrpml09pkh252g1hsjx9c2w7mbdrm9rdl4yqh5ppwq4y9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/abstract")
    (synopsis "Control the typesetting of the @code{abstract} environment")
    (description
     "The @code{abstract} package gives you control over the typesetting of
the @code{abstract} environment, and in particular provides for a one column
abstract in a two column paper.")
    (license license:lppl)))

(define-public texlive-bredzenie
  (package
    (name "texlive-bredzenie")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/bredzenie/"
                   "tex/latex/bredzenie/")
             (base32
              "07ixmdcg2kxnaf2wacq6imp6i159jmyy3xn16135j8ddl2kbxp4s")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/bredzenie")
    (synopsis
     "Polish version of ``lorem ipsum'' in the form of a LaTeX package")
    (description
     "This is a polish version of the classic pseudo-Latin ``lorem ipsum dolor
sit amet''.  It provides access to several paragraphs of pseudo-Polish
generated with Hidden Markov Models and Recurrent Neural Networks trained on
a corpus of Polish.")
    (license license:lppl1.3c)))

(define-public texlive-breqn
  (package
    (name "texlive-breqn")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/breqn/" "source/latex/breqn/"
                   "tex/latex/breqn/")
             (base32
              "03iyxwcr94f2y7ar7qin5nzjcvmamhblv5lxb97dg6r79mk4wr75")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/breqn")
    (synopsis "Automatic line breaking of displayed equations")
    (description
     "This package provides solutions to a number of common difficulties in
writing displayed equations and getting high-quality output.  The single most
ambitious goal of the package is to support automatic linebreaking of
displayed equations.  The bundle also contains the @code{flexisym} and
@code{mathstyle} packages, which are both designated as support for
@code{breqn}.")
    (license license:lppl1.3+)))

(define-public texlive-breakurl
  (package
    (name "texlive-breakurl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/breakurl/" "source/latex/breakurl/"
                   "tex/latex/breakurl/")
             (base32
              "1lihfrihf1i300sddz09rsn6gj30g299warn88gli9hbrfy6nvw5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/breakurl")
    (synopsis "Line-breakable links in @code{hyperref} for dvips/ps2pdf")
    (description
     "This package provides a command much like @code{hyperref}'s @code{\\url}
that typesets a URL using a typewriter-like font.  However, if the dvips
driver is being used, the original @code{\\url} doesn't allow line breaks in
the middle of the created link: the link comes in one atomic piece.  This
package allows such line breaks in the generated links.")
    (license license:lppl)))

(define-public texlive-cc-pl
  (package
    (name "texlive-cc-pl")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/fonts/cc-pl/" "fonts/map/dvips/cc-pl/"
                   "fonts/source/public/cc-pl/"
                   "fonts/tfm/public/cc-pl/"
                   "fonts/type1/public/cc-pl/")
             (base32
              "0wxpa4s2rx54z259zmg5km91ycydra4d9kn3y6mhkvjjif1yl8av")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (native-inputs (list texlive-concrete texlive-metafont texlive-pl))
    (home-page "https://ctan.org/pkg/cc-pl")
    (synopsis "Polish extension of Computer Concrete fonts")
    (description
     "These Metafont sources rely on the availability of the Metafont Polish
fonts and of the Metafont sources of the original Concrete fonts.  Adobe Type
1 versions of the fonts are included.")
    (license license:public-domain)))

(define-public texlive-comment
  (package
    (name "texlive-comment")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/comment/" "tex/latex/comment/")
             (base32
              "1c1mqziwxyf1bqzpw6ji65n7ypygm3lyknblxmf0c70w0ivw76pa")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/comment")
    (synopsis "Selectively include/exclude portions of text")
    (description "This package provides environments for selectively including
or excluding pieces of text, allowing the user to define new, separately
controlled comment versions.")
    (license license:gpl2+)))

(define-public texlive-datatool
  (package
    (name "texlive-datatool")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "bibtex/bst/datatool/" "doc/latex/datatool/"
                   "source/latex/datatool/" "tex/latex/datatool/")
             (base32
              "13v6g3i9pch63159ibpn1r8dwl6ip4hm4cv4z0jx6nn3x8kds5ks")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (propagated-inputs
     (list texlive-fp texlive-substr texlive-xfor texlive-xkeyval))
    (home-page "https://ctan.org/pkg/datatool")
    (synopsis "Tools to load and manipulate data")
    (description
     "This package provides tools to create databases using LaTeX commands
or by importing external files.  Databases may be sorted, filtered, and
visualized using several kinds of configurable plots.  Particular support is
provided for mail merging, indexing, creating glossaries, manipulating
bibliographies, and displaying personal pronouns.")
    (license license:lppl1.3+)))

(define-public texlive-physics
  (package
    (name "texlive-physics")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/physics/" "tex/latex/physics/")
             (base32
              "1wy58wwcv1pv18xs1n71abnm73dqnxqijxvhfxk0rcmvbc6wvwrb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/physics")
    (synopsis "Macros supporting the Mathematics of Physics")
    (description
     "The package defines simple and flexible macros for typesetting equations
in the languages of vector calculus and linear algebra, using Dirac
notation.")
    (license license:lppl)))

(define-public texlive-sourcesanspro
  (package
    (name "texlive-sourcesanspro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sourcesanspro/"
                   "fonts/enc/dvips/sourcesanspro/"
                   "fonts/map/dvips/sourcesanspro/"
                   "fonts/opentype/adobe/sourcesanspro/"
                   ;; ^ It would be tempting to use our
                   ;; font-adobe-source-sans-pro for these, but the version in
                   ;; texlive could differ from our version: probably the
                   ;; difference would be small, but debugging would not be
                   ;; fun.  If the files are really identical, Guix will
                   ;; hard-link them anyway.
                   "fonts/tfm/adobe/sourcesanspro/"
                   "fonts/type1/adobe/sourcesanspro/"
                   "fonts/vf/adobe/sourcesanspro/"
                   "tex/latex/sourcesanspro/")
             (base32
              "18z7ln8dyh0sp6v0vdvc6qqxnpg3h3ix0f5magjcjbpay54kl0i3")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sourcesanspro")
    (synopsis "Use Source Sans Pro with TeX(-alike) systems")
    (description
     "This package provides the Source Sans Pro font family from Adobe in both
Adobe Type 1 and OpenType formats, plus macros supporting the use of the fonts
in LaTeX (Type 1) and XeLaTeX/LuaLaTeX (OTF).")
    (license (list license:lppl1.3+ license:silofl1.1))))

(define-public texlive-sourceserifpro
  (package
    (name "texlive-sourceserifpro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sourceserifpro/"
                   "fonts/enc/dvips/sourceserifpro/"
                   "fonts/map/dvips/sourceserifpro/"
                   "fonts/opentype/adobe/sourceserifpro/"
                   ;; ^ See comment in `texlive-sourcesanspro'.
                   "fonts/tfm/adobe/sourceserifpro/"
                   "fonts/type1/adobe/sourceserifpro/"
                   "fonts/vf/adobe/sourceserifpro/"
                   "tex/latex/sourceserifpro/")
             (base32
              "18xxncg8ybv86r46zq5mvgkrfnvlhx93n55fy8nkk8vdmminrh8w")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sourceserifpro")
    (synopsis "Use Source Serif Pro with TeX(-alike) systems")
    (description
     "This package provides the Source Serif Pro font family from Adobe in
both Adobe Type 1 and OpenType formats, plus macros supporting the use of the
fonts in LaTeX (Type 1) and XeLaTeX/LuaLaTeX (OTF).")
    (license (list license:lppl1.3+ license:silofl1.1))))

(define-public texlive-sourcecodepro
  (package
    (name "texlive-sourcecodepro")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/sourcecodepro/"
                   "fonts/enc/dvips/sourcecodepro/"
                   "fonts/map/dvips/sourcecodepro/"
                   "fonts/opentype/adobe/sourcecodepro/"
                   ;; ^ See comment in `texlive-sourcesanspro'.
                   "fonts/tfm/adobe/sourcecodepro/"
                   "fonts/type1/adobe/sourcecodepro/"
                   "fonts/vf/adobe/sourcecodepro/"
                   "tex/latex/sourcecodepro/")
             (base32
              "009v9y7d3vsljgq9nw5yx4kzyqavxbwrlvwhfjj83s6rmb9xcrmh")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/sourcecodepro")
    (synopsis "Use Source Code Pro with TeX(-alike) systems")
    (description "This package provides the Source Code Pro font family from
Adobe in both Adobe Type 1 and OpenType formats, plus macros supporting the
use of the fonts in LaTeX (Type 1) and XeLaTeX/LuaLaTeX (OTF).")
    (license (list license:lppl1.3+ license:silofl1.1))))

(define-public texlive-hyphenat
  (package
    (name "texlive-hyphenat")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/hyphenat/" "source/latex/hyphenat/"
                   "tex/latex/hyphenat/")
             (base32
              "0gm7s7bidp9b4sfgylvwydban8jylfcskmqrf0sxlwxsqxqq5fy5")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/hyphenat")
    (synopsis "Disable/enable hypenation")
    (description
     "This package can disable all hyphenation or enable hyphenation of
non-alphabetics or monospaced fonts.  The package can also enable hyphenation
within words that contain non-alphabetic characters (e.g., that include
underscores), and hyphenation of text typeset in monospaced (e.g.,
@code{cmtt}) fonts.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-hyphenat texlive-hyphenat)

(define-public texlive-lastpage
  (package
    (name "texlive-lastpage")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/lastpage/" "source/latex/lastpage/"
                   "tex/latex/lastpage/")
             (base32
              "0rb8kmslmxxr41g9nxmk60m0w0f3428kci42xys21lq4jrdsdz0m")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/lastpage")
    (synopsis "Reference last page for Page N of M type footers")
    (description
     "This package enables referencing the number of pages in a LaTeX document
through the introduction of a new label which can be referenced like
@code{\\pageref{LastPage}} to give a reference to the last page of a document.
It is particularly useful in the page footer that says: @samp{Page N of M}.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-lastpage texlive-lastpage)

(define-public texlive-layaureo
  (package
    (name "texlive-layaureo")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/layaureo/" "source/latex/layaureo/"
                   "tex/latex/layaureo/")
             (base32
              "021dcqv8flqv665falbiq7ga56zpihzrdi6kc59nbk0l4jmxf1w9")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/layaureo")
    (synopsis "Improve the A4 page layout")
    (description
     "This package produces a wide page layout for documents that use A4 paper
size.  Moreover, LayAureo provides both a simple hook for leaving an empty
space, which is required if pages are bundled by a press binding, and an
option called @code{big} that forces typearea to become maximum.")
    (license license:lppl)))

(define-public texlive-tabto-ltx
  (package
    (name "texlive-tabto-ltx")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/tabto-ltx/" "tex/latex/tabto-ltx/")
             (base32
              "0q0v1pc4hvj71nayfpkj6gfwcbi18s5c526r1k7j4p9m5fcqmbgm")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/tabto-ltx")
    (synopsis "Tab to a measured position in the line")
    (description
     "This package provides @code{\\tabto{<length>}}, which moves the
typesetting position to @code{<length>} from the left margin of the paragraph.
If the typesetting position is already further along, @code{\\tabto} starts
a new line; the command @code{\\tabto*} will move position backwards if
necessary, so that previous text may be overwritten.  In addition, the command
@code{\\TabPositions} may be used to define a set of tabbing positions, after
which the command @code{\\tab} advances typesetting position to the next
defined tab stop.")
    (license license:lppl1.3+)))

(define-deprecated-package texlive-latex-tabto-ltx texlive-tabto-ltx)

(define-public texlive-soul
  (package
    (name "texlive-soul")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/soul/" "source/generic/soul/"
                   "tex/generic/soul/")
             (base32
              "1q6qd5fcqs9n49jxa77ildvdcdcqpw914m2xn9wggkp4d2kvxzh1")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/soul")
    (synopsis "Hyphenation for letterspacing, underlining, and more")
    (description
     "The @code{soul} package enables hyphenatable spacing out (letterspacing),
underlining, striking out, etc., using the TeX hyphenation algorithm to find
the proper hyphens automatically.  The package also provides a mechanism that
can be used to implement similar tasks, that have to treat text syllable by
syllable.  This version is a merge of the original @code{soul} package and the
@code{soulutf8} package and supports also UTF-8.")
    (license license:lppl)))

(define-deprecated-package texlive-generic-soul texlive-soul)
(define-deprecated-package texlive-soulutf8 texlive-soul)

(define-public texlive-xstring
  (package
    (name "texlive-xstring")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/generic/xstring/" "tex/generic/xstring/")
             (base32
              "1sm84z6nlxipv10ydaww5yl4l2c31hznx3vzzqzaw1gi2yi2d6bb")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xstring")
    (synopsis "String manipulation for (La)TeX")
    (description
     "The @code{xstring} package provides macros for manipulating strings, i.e.,
testing a string's contents, extracting substrings, substitution of substrings
and providing numbers such as string length, position of, or number of
recurrences of, a substring.  The package works equally in Plain TeX and
LaTeX (though e-TeX is always required).  The strings to be processed may
contain (expandable) macros.")
    (license license:lppl1.3c)))

(define-deprecated texlive-generic-xstring texlive-xstring)

(define-public texlive-substr
  (package
    (name "texlive-substr")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/substr/" "tex/latex/substr/")
             (base32
              "0kfd4kq5yrg65f2mpric1cs1xr416wgj9bdixpibgjsdg5fb73sw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/substr")
    (synopsis "Deal with substrings in strings")
    (description
     "The package provides commands to deal with substrings of strings.
Macros are provided to determine if one string is a substring of another,
return the parts of a string before or after a substring, and count the number
of occurrences of a substring.")
    (license license:lppl1.0+)))

(define-public texlive-totcount
  (package
    (name "texlive-totcount")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/totcount/" "source/latex/totcount/"
                   "tex/latex/totcount/")
             (base32
              "1rj9ncip5h2cbdljjqwxqsg14pb4mimzhz290q872n32w7rxkp28")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/totcount")
    (synopsis "Find the last value of a counter")
    (description
     "This package records the value that was last set, for any counter of
interest.  Since most such counters are simply incremented when they are
changed, the recorded value will usually be the maximum value.")
    (license license:lppl1.3c+)))

(define-deprecated-package texlive-latex-totcount texlive-totcount)

(define-public texlive-totpages
  (package
    (name "texlive-totpages")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/totpages/" "source/latex/totpages/"
                   "tex/latex/totpages/")
             (base32
              "1mmya2fqdskyavw3hvdiygfyp9cll7bl4lpi7pl2jf9s7ds49j5a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments (list #:tex-format "latex"))
    (home-page "https://ctan.org/pkg/totpages")
    (synopsis "Count pages in a document, and report last page number")
    (description
     "The package counts the actual pages in the document (as opposed to
reporting the number of the last page, as does @code{lastpage}).  The counter
itself may be shipped out to the DVI file.")
    (license license:lppl)))

(define-public texlive-xdvi
  (package
    (name "texlive-xdvi")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/man/man1/xdvi.1"
                   "doc/man/man1/xdvi.man1.pdf" "dvips/xdvi/"
                   "xdvi/")
             (base32
              "1iidl3876vyi9k2dyfwd73q5kb53kwckivfyvvxh953n4axbqmi4")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xdvi")
    (synopsis "DVI previewer for the X Window System")
    (description
     "Xdvi is the canonical DVI previewer for use on Unix and other X-windows
based systems.  The distribution has been integrated with that of Xdvik, so
that it will build with web2c out of the box.")
    ;; Xdvi is under MIT terms, whereas Xdvik extensions use BS2-2.
    (license (list license:expat license:bsd-2))))

(define-public texlive-xetexconfig
  (package
    (name "texlive-xetexconfig")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "tex/xelatex/xetexconfig/")
             (base32
              "1253njshiwdayzq0xir9cmbi8syhjb3sc4pyrw9p6kzyqvckkcxm")))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xetexconfig")
    (synopsis "@file{crop.cfg} for XeLaTeX")
    (description "The @file{crop.cfg} file attempts to persuade
@file{crop.sty} to work with XeTeX.")
    (license license:public-domain)))

(define-public texlive-xetex
  (package
    (name "texlive-xetex")
    (version (number->string %texlive-revision))
    (source  (texlive-origin
              name version
              (list "doc/man/man1/xelatex-unsafe.1"
                    "doc/man/man1/xelatex-unsafe.man1.pdf"
                    "doc/man/man1/xelatex.1"
                    "doc/man/man1/xelatex.man1.pdf"
                    "doc/man/man1/xetex-unsafe.1"
                    "doc/man/man1/xetex-unsafe.man1.pdf"
                    "doc/man/man1/xetex.1"
                    "doc/man/man1/xetex.man1.pdf"
                    "doc/xetex/base/"
                    "fonts/misc/xetex/fontmapping/base/"
                    "scripts/texlive-extra/xelatex-unsafe.sh"
                    "scripts/texlive-extra/xetex-unsafe.sh")
              (base32
               "1fc1b3pmzg6g80jnl7ixqbk79wd6frf477nvgxs1sf56vf9r3vjw")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (arguments
     (list #:link-scripts #~(list "xelatex-unsafe.sh" "xetex-unsafe.sh")
           #:create-formats #~(list "xelatex" "xetex")))
    (propagated-inputs
     (list texlive-atbegshi
           texlive-atveryend
           texlive-babel
           texlive-cm
           texlive-dvipdfmx
           texlive-etex
           texlive-everyshi
           texlive-firstaid
           texlive-hyphen-base
           texlive-l3backend
           texlive-l3kernel
           texlive-l3packages
           texlive-latex
           texlive-latex-fonts
           texlive-lm
           texlive-plain
           texlive-tex-ini-files
           texlive-unicode-data
           texlive-xetexconfig))
    (home-page "https://ctan.org/pkg/xetex")
    (synopsis "Extended variant of TeX for use with Unicode sources")
    (description
     "XeTeX is a TeX typesetting engine using Unicode and supporting modern font
technologies such as OpenType, TrueType or Apple Advanced Typography (AAT),
including OpenType mathematics fonts.  XeTeX supports many extensions that
reflect its origins in linguistic research; it also supports micro-typography
(as available in pdfTeX).  XeTeX was developed by the SIL (the first version
was specifically developed for those studying linguistics, and using Macintosh
computers).  XeTeX's immediate output is an extended variant of DVI format,
which is ordinarily processed by a tightly bound processor (called
@code{xdvipdfmx}), that produces PDF.")
    (license license:x11)))

(define-public texlive-xfor
  (package
    (name "texlive-xfor")
    (version (number->string %texlive-revision))
    (source (texlive-origin
             name version
             (list "doc/latex/xfor/"
                   "source/latex/xfor/"
                   "tex/latex/xfor/")
             (base32
              "1j241j8sixqkaj2xmcvmrfwm1sdw6xdssnzml1bjs54rqzyh768a")))
    (outputs '("out" "doc"))
    (build-system texlive-build-system)
    (home-page "https://ctan.org/pkg/xfor")
    (synopsis "Reimplementation of the LaTeX @code{for-loop} macro")
    (description
     "The package redefines the LaTeX internal @code{\\@@for} macro so that
the loop may be prematurely terminated.  The action is akin to the C/Java
break statement, except that the loop does not terminate until the end of the
current iteration.")
    (license license:lppl)))

;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
;;; functionality or similar names.
;;;