1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
6 ;;; Copyright © 2016, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
8 ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
9 ;;; Copyright © 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
10 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
11 ;;; Copyright © 2017, 2020 Marius Bakke <mbakke@fastmail.com>
12 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
13 ;;; Copyright © 2018 Danny Milosavljevic <dannym+a@scratchpost.org>
14 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages tex)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix download)
35 #:use-module (guix build-system cmake)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system perl)
38 #:use-module (guix build-system trivial)
39 #:use-module (guix build-system texlive)
40 #:use-module (guix utils)
41 #:use-module (guix git-download)
42 #:use-module (guix svn-download)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages boost)
48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages fontutils)
50 #:use-module (gnu packages gd)
51 #:use-module (gnu packages ghostscript)
52 #:use-module (gnu packages graphviz)
53 #:use-module (gnu packages gtk)
54 #:use-module (gnu packages icu4c)
55 #:use-module (gnu packages image)
56 #:use-module (gnu packages libreoffice)
57 #:use-module (gnu packages lua)
58 #:use-module (gnu packages multiprecision)
59 #:use-module (gnu packages pdf)
60 #:use-module (gnu packages perl)
61 #:use-module (gnu packages perl-check)
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages python)
64 #:use-module (gnu packages python-xyz)
65 #:use-module (gnu packages qt)
66 #:use-module (gnu packages ruby)
67 #:use-module (gnu packages shells)
68 #:use-module (gnu packages base)
69 #:use-module (gnu packages gawk)
70 #:use-module (gnu packages web)
71 #:use-module (gnu packages xml)
72 #:use-module (gnu packages xorg)
73 #:use-module (gnu packages xdisorg)
74 #:use-module (gnu packages texinfo)
75 #:use-module (ice-9 ftw)
76 #:use-module (ice-9 match)
77 #:use-module ((srfi srfi-1) #:hide (zip)))
79 (define* (simple-texlive-package name locations hash
81 "Return a template for a simple TeX Live package with the given NAME,
82 downloading from a list of LOCATIONS in the TeX Live repository, and expecting
83 the provided output HASH. If TRIVIAL? is provided, all files will simply be
84 copied to their outputs; otherwise the TEXLIVE-BUILD-SYSTEM is used."
85 (define with-documentation?
87 (any (lambda (location)
88 (string-prefix? "/doc" location))
92 (version (number->string %texlive-revision))
93 (source (texlive-origin name version
95 (outputs (if with-documentation?
98 (build-system (if trivial?
100 texlive-build-system))
103 `(lambda* (#:key outputs inputs #:allow-other-keys)
104 (let (,@(if with-documentation?
105 `((doc (string-append (assoc-ref outputs "doc")
106 "/share/texmf-dist/")))
108 (out (string-append (assoc-ref outputs "out")
109 "/share/texmf-dist/")))
110 ,@(if with-documentation?
113 (string-append (assoc-ref inputs "source") "/doc")
114 (string-append doc "/doc")))
117 (copy-recursively (assoc-ref inputs "source") out)
118 ,@(if with-documentation?
119 '((delete-file-recursively (string-append out "/doc")))
125 (modify-phases %standard-phases
127 (replace 'build (const #t))
128 (replace 'install ,copy-files)))
130 (modify-phases %standard-phases
131 (add-after 'install 'copy-files ,copy-files))))))
137 (define hyph-utf8-scripts
140 (uri (texlive-ref "generic" "hyph-utf8"))
141 (file-name (string-append "hyph-utf8-scripts-"
142 (number->string %texlive-revision)
146 "0lk7shx768sxvgr85y8bnmmnj8x4bbkgpxrz3z8jp8avi33prw83"))))
148 (define (texlive-hyphen-package name code locations hash)
149 "Return a TeX Live hyphenation package with the given NAME, using source
150 files from LOCATIONS with expected checksum HASH. CODE is not currently in use."
151 (let ((parent (simple-texlive-package
152 name locations hash #:trivial? #t)))
156 (substitute-keyword-arguments (package-arguments parent)
158 `(modify-phases ,phases
160 (lambda* (#:key inputs outputs #:allow-other-keys)
161 (let* ((out (assoc-ref outputs "out"))
162 (root (string-append out "/share/texmf-dist"))
164 (string-append root "/tex/generic/hyph-utf8/patterns/txt/"))
166 (string-append root "/tex/generic/hyph-utf8/loadhyph"))
168 (string-append root "/tex/generic/hyph-utf8/patterns/ptex"))
170 (string-append root "/tex/generic/hyph-utf8/patterns/quote")))
173 (assoc-ref inputs "hyph-utf8-scripts") "scripts")
175 ;; Prepare target directories
181 ;; Generate plain patterns
182 (with-directory-excursion "scripts"
183 (substitute* "lib/tex/hyphen/path.rb"
184 (("^([[:blank:]]+)TeXROOT = .*" _ indent)
185 (string-append indent "TeXROOT = \""
186 (getcwd) "/..\"\n")))
188 (substitute* "generate-plain-patterns.rb"
189 ;; Ruby 2 does not need this.
190 (("require 'unicode'") "")
191 ;; Write directly to the output directory
192 (("File\\.join\\(PATH::TXT")
193 (string-append "File.join(\"" patterns "\""))
194 (("File\\.join\\(PATH::QUOTE")
195 (string-append "File.join(\"" quote "\"")))
196 (invoke "ruby" "generate-plain-patterns.rb")
198 ;; Build pattern loaders
199 (substitute* "generate-pattern-loaders.rb"
200 (("File\\.join\\(PATH::LOADER")
201 (string-append "File.join(\"" loaders "\"")))
203 (invoke "ruby" "generate-pattern-loaders.rb")
205 ;; Build ptex patterns
206 (substitute* "generate-ptex-patterns.rb"
207 (("File\\.join\\(PATH::PTEX")
208 (string-append "File.join(\"" ptex "\"")))
209 (invoke "ruby" "generate-ptex-patterns.rb")))))))))
212 ("ruby-hydra" ,ruby-hydra)
213 ("hyph-utf8-scripts" ,hyph-utf8-scripts)))
214 (home-page "https://ctan.org/pkg/hyph-utf8"))))
216 (define texlive-extra-src
219 (uri "ftp://tug.org/historic/systems/texlive/2019/texlive-20190410-extra.tar.xz")
221 "13ncf2an4nlqv18lki6y2p6pcsgs1i54zqkhfwprax5j53bk70j8"))))
223 (define texlive-texmf-src
226 (uri "ftp://tug.org/historic/systems/texlive/2019/texlive-20190410-texmf.tar.xz")
228 "00n4qh9fj8v9zzy3y488hpfq1g3dnnh72y4yjsaikfcqpi59gv62"))))
230 (define-public texlive-bin
237 (uri (string-append "ftp://tug.org/historic/systems/texlive/2019/"
238 "texlive-" version "-source.tar.xz"))
241 "1dfps39q6bdr1zsbp9p74mvalmy3bycihv19sb9c6kg30kprz8nj"))
244 (lambda (name revision hash)
247 (uri (string-append "https://git.archlinux.org/svntogit/packages.git"
248 "/plain/trunk/" name "?h=packages/texlive-bin"
250 (file-name (string-append "texlive-bin-" name))
251 (sha256 (base32 hash)))))
252 (arch-revision "49d7fe25e5ea63f136ebc20270c1d8fc9b00041c"))
254 (arch-patch "pdftex-poppler0.76.patch" arch-revision
255 "03vc88dz37mjjyaspzv0fik2fp5gp8qv82114869akd1dhszbaax")
256 (search-patch "texlive-bin-poppler-0.83.patch")
257 (arch-patch "texlive-poppler-0.84.patch" arch-revision
258 "1ia6cr99krk4ipx4hdi2qdb98bh2h26mckjlpxdzrjnfhlnghksa")
259 (search-patch "texlive-bin-poppler-0.86.patch"))))
260 (modules '((guix build utils)
264 (with-directory-excursion "libs"
265 (let ((preserved-directories '("." ".." "lua53" "luajit")))
266 ;; Delete bundled software, except Lua which cannot easily be
267 ;; used as an external dependency.
268 (for-each delete-file-recursively
271 (and (not (member file preserved-directories))
272 (eq? 'directory (stat:type (stat file)))))))))
273 ;; TODO: Unbundle stuff in texk/dvisvgm/dvisvgm-src/libs too.
275 (build-system gnu-build-system)
277 `(("texlive-extra-src" ,texlive-extra-src)
282 (url (string-append "svn://www.tug.org/texlive/tags/"
283 %texlive-tag "/Master/texmf-dist/"
285 (revision %texlive-revision)))
286 (file-name (string-append "texlive-scripts-"
287 (number->string %texlive-revision)
291 "1cj04svl8bpfwjr4gqfcc04rmklz3aggrxvgj7q5bxrh7c7g18xh"))))
293 ("fontconfig" ,fontconfig)
294 ("fontforge" ,fontforge)
295 ("freetype" ,freetype)
298 ("ghostscript" ,ghostscript)
299 ("graphite2" ,graphite2)
300 ("harfbuzz" ,harfbuzz)
302 ("libpaper" ,libpaper)
311 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
316 ("zziplib" ,zziplib)))
318 `(("pkg-config" ,pkg-config)))
320 `(#:out-of-source? #t
323 "--disable-native-texlive-build"
324 "--with-system-cairo"
325 "--with-system-freetype2"
328 "--with-system-graphite2"
329 "--with-system-harfbuzz"
331 "--with-system-libgs"
332 "--with-system-libpaper"
333 "--with-system-libpng"
335 "--with-system-pixman"
336 "--with-system-poppler"
337 "--with-system-potrace"
338 "--with-system-teckit"
341 "--with-system-zziplib")
343 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
344 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
345 #:tests? ,(let ((s (or (%current-target-system)
347 (not (or (string-prefix? "aarch64" s)
348 (string-prefix? "mips64" s))))
350 (modify-phases %standard-phases
351 (add-after 'unpack 'configure-ghostscript-executable
352 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
353 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
354 ;; checking for the existence of the /usr/bin directory. Since
355 ;; Guix System does not have /usr/bin, it is also detected as Windows.
356 (lambda* (#:key inputs #:allow-other-keys)
357 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
359 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
361 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
363 (add-after 'unpack 'use-code-for-new-poppler
365 (copy-file "texk/web2c/pdftexdir/pdftoepdf-poppler0.76.0.cc"
366 "texk/web2c/pdftexdir/pdftoepdf.cc")
367 (copy-file "texk/web2c/pdftexdir/pdftosrc-poppler0.76.0.cc"
368 "texk/web2c/pdftexdir/pdftosrc.cc")
370 (add-after 'unpack 'patch-dvisvgm-build-files
372 ;; XXX: Ghostscript is detected, but HAVE_LIBGS is never set, so
373 ;; the appropriate linker flags are not added.
374 (substitute* "texk/dvisvgm/configure"
375 (("^have_libgs=yes" all)
376 (string-append all "\nHAVE_LIBGS=1")))
378 (add-after 'unpack 'disable-failing-test
380 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
381 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
382 (substitute* "texk/web2c/omegafonts/check.test"
383 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
384 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))
386 (add-after 'install 'postint
387 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
388 (let* ((out (assoc-ref outputs "out"))
389 (share (string-append out "/share"))
390 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
391 (unpack (assoc-ref %standard-phases 'unpack))
392 (patch-source-shebangs
393 (assoc-ref %standard-phases 'patch-source-shebangs)))
394 (substitute* (string-append share "/texmf-dist/web2c/texmf.cnf")
395 ;; Don't truncate lines.
396 (("^error_line = .*$") "error_line = 254\n")
397 (("^half_error_line = .*$") "half_error_line = 238\n")
398 (("^max_print_line = .*$") "max_print_line = 1000\n"))
399 ;; Create symbolic links for the latex variants and their
401 (with-directory-excursion (string-append out "/bin/")
403 '("pdftex" "pdftex" "xetex" "luatex")
404 '("latex" "pdflatex" "xelatex" "lualatex")))
405 (with-directory-excursion (string-append share "/man/man1/")
406 (symlink "luatex.1" "lualatex.1"))
407 ;; Unpack texlive-extra and install tlpkg.
408 (mkdir "texlive-extra")
409 (with-directory-excursion "texlive-extra"
410 (apply unpack (list #:source texlive-extra))
411 (apply patch-source-shebangs (list #:source texlive-extra))
412 (invoke "mv" "tlpkg" share))
413 (let ((scripts (string-append share "/texmf-dist/scripts/texlive/")))
415 (copy-recursively (assoc-ref inputs "texlive-scripts") scripts)
416 ;; Make sure that fmtutil can find its Perl modules.
417 (substitute* (string-append scripts "fmtutil.pl")
418 (("\\$TEXMFROOT/") (string-append share "/"))))
420 ;; texlua shebangs are not patched by the patch-source-shebangs
421 ;; phase because the texlua executable does not exist at that
423 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
424 (with-directory-excursion out
425 (patch-source-shebangs))))))))
427 (list (search-path-specification
429 (files '("share/texmf-dist"))
431 (search-path-specification
432 (variable "TEXMFCNF")
433 (files '("share/texmf-dist/web2c"))
435 (synopsis "TeX Live, a package of the TeX typesetting system")
437 "TeX Live provides a comprehensive TeX document production system.
438 It includes all the major TeX-related programs, macro packages, and fonts
439 that are free software, including support for many languages around the
442 This package contains the binaries.")
443 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
444 (home-page "https://www.tug.org/texlive/")))
447 (define texlive-docstrip
449 (inherit (simple-texlive-package
451 (list "/tex/latex/base/docstrip.tex")
453 "1f9sx1lp7v34zwm186msf03q2h28rrg0lh65z59zc0cvqffs6dvb")
455 (home-page "https://www.ctan.org/texlive")
456 (synopsis "Utility to strip documentation from TeX files.")
457 (description "This package provides the docstrip utility to strip
458 documentation from TeX files. It is part of the LaTeX base.")
459 (license license:lppl1.3+)))
461 (define-public texlive-unicode-data
463 (inherit (simple-texlive-package
464 "texlive-unicode-data"
465 (list "/tex/generic/unicode-data/"
466 "/doc/generic/unicode-data/")
468 "0zy4v9y667cka5fi4dnc6x500907812y7pcaf63s5qxi8l7khxxy")
470 (home-page "https://www.ctan.org/pkg/unicode-data")
471 (synopsis "Unicode data and loaders for TeX")
472 (description "This bundle provides generic access to Unicode Consortium
473 data for TeX use. It contains a set of text files provided by the Unicode
474 Consortium which are currently all from Unicode 8.0.0, with the exception of
475 @code{MathClass.txt} which is not currently part of the Unicode Character
476 Database. Accompanying these source data are generic TeX loader files
477 allowing this data to be used as part of TeX runs, in particular in building
478 format files. Currently there are two loader files: one for general character
479 set up and one for initializing XeTeX character classes as has been carried
480 out to date by @code{unicode-letters.tex}. ")
481 (license license:lppl1.3c+)))
483 (define-public texlive-generic-unicode-data
484 (deprecated-package "texlive-generic-unicode-data" texlive-unicode-data))
486 (define-public texlive-hyphen-base
488 (inherit (simple-texlive-package
489 "texlive-hyphen-base"
490 (list "/tex/generic/config/language.dat"
491 "/tex/generic/config/language.dat.lua"
492 "/tex/generic/config/language.def"
493 "/tex/generic/config/language.us"
494 "/tex/generic/config/language.us.def"
495 "/tex/generic/config/language.us.lua"
496 "/tex/generic/hyphen/dumyhyph.tex"
497 "/tex/generic/hyphen/hyphen.tex"
498 "/tex/generic/hyphen/hypht1.tex"
499 "/tex/generic/hyphen/zerohyph.tex")
501 "0f19nml4hdx9lh7accqdk1b9ismwfm2523l5zsc4kb4arysgcakz")
503 (home-page "https://tug.org/texlive/")
504 (synopsis "Core hyphenation support files")
505 (description "This package includes Knuth's original @file{hyphen.tex},
506 @file{zerohyph.tex} to disable hyphenation, @file{language.us} which starts
507 the autogenerated files @file{language.dat} and @file{language.def} (and
508 default versions of those), etc.")
509 (license license:knuth)))
511 (define-public texlive-dvips
513 (inherit (simple-texlive-package
515 (list "/doc/man/man1/afm2tfm.1"
516 "/doc/man/man1/dvips.1"
519 "/fonts/enc/dvips/base/"
520 "/tex/generic/dvips/")
522 "1qr7h0ahycmz5wmpv54glfss9jqdmmyymj6kim626d1c8v9bmg86")
524 (home-page "https://www.ctan.org/pkg/dvips")
525 (synopsis "DVI to PostScript drivers")
526 (description "This package provides files needed for converting DVI files
528 (license license:lppl)))
530 (define-public texlive-tex-ini-files
532 (inherit (simple-texlive-package
533 "texlive-tex-ini-files"
534 (list "/tex/generic/tex-ini-files/")
536 "0q1g62jg0qiqslm93ycvm30bw8ydmssjdshzsnzl7n2vpd62qfi2")
538 (home-page "https://www.ctan.org/pkg/tex-ini-files")
539 (synopsis "Files for creating TeX formats")
540 (description "This bundle provides a collection of model \".ini\" files
541 for creating TeX formats. These files are commonly used to introduced
542 distribution-dependent variations in formats. They are also used to
543 allow existing format source files to be used with newer engines, for example
544 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
545 (license license:public-domain)))
547 (define-public texlive-generic-tex-ini-files
548 (deprecated-package "texlive-generic-tex-ini-files" texlive-tex-ini-files))
550 (define-public texlive-metafont-base
552 (name "texlive-metafont-base")
553 (version (number->string %texlive-revision))
557 (url (string-append "svn://www.tug.org/texlive/tags/"
558 %texlive-tag "/Master/texmf-dist/"
560 (revision %texlive-revision)))
561 (file-name (string-append name "-" version "-checkout"))
564 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
565 (build-system gnu-build-system)
567 `(#:tests? #f ; no test target
569 (modify-phases %standard-phases
572 (lambda* (#:key inputs #:allow-other-keys)
573 (let ((cwd (getcwd)))
575 (string-append cwd "/base:"
582 (with-directory-excursion "build"
583 (invoke "inimf" "mf.mf"))))
585 (lambda* (#:key outputs #:allow-other-keys)
586 (let* ((out (assoc-ref outputs "out"))
587 (base (string-append out "/share/texmf-dist/web2c"))
588 (mf (string-append out "/share/texmf-dist/metafont/base")))
591 (install-file "build/mf.base" base)
592 (copy-recursively "base" mf)
595 `(("texlive-bin" ,texlive-bin)))
596 (home-page "https://www.ctan.org/pkg/metafont")
597 (synopsis "Metafont base files")
598 (description "This package provides the Metafont base files needed to
599 build fonts using the Metafont system.")
600 (license license:knuth)))
602 (define-public texlive-fontinst
603 (let ((template (simple-texlive-package
605 (list "/doc/fonts/fontinst/"
606 "/doc/man/man1/fontinst.1"
607 "/doc/man/man1/fontinst.man1.pdf"
609 ;; This is used to build parts of
610 ;; /tex/fontinst/{base,misc}/ and
611 ;; /tex/latex/fontinst/fontdoc.sty.
612 "/source/fontinst/base/"
614 ;; These are not generated.
615 "/tex/fontinst/base/bbox.sty"
616 "/tex/fontinst/base/multislot.sty"
617 "/tex/fontinst/misc/glyphbox.mtx"
618 "/tex/fontinst/misc/glyphoff.mtx"
619 "/tex/fontinst/misc/glyphon.mtx"
620 "/tex/fontinst/misc/kernoff.mtx"
621 "/tex/fontinst/misc/kernon.mtx"
623 "/tex/fontinst/latinetx/"
624 "/tex/fontinst/latinmtx/"
625 "/tex/fontinst/mathmtx/"
626 "/tex/fontinst/smblmtx/"
628 "/scripts/texlive/fontinst.sh")
630 "0lprwib7n2ygfxvrw675vhif7ghyip2x6k70kqs9syp8lqxiizf8")
635 (substitute-keyword-arguments (package-arguments template)
637 '((guix build gnu-build-system)
641 `(modify-phases ,phases
643 (lambda* (#:key inputs #:allow-other-keys)
645 (string-append (getcwd) "//:"
646 (getcwd) "/source/fontinst/base//:"
647 (assoc-ref inputs "texlive-docstrip") "//"))
649 (invoke "tex" "-ini" "-interaction=scrollmode"
650 "-output-directory=build"
652 ;; Since we're using docstrip without LaTeX we can't set \UseTDS
653 ;; or \BaseDirectory, so the generated files are just dumped in
654 ;; the "build" directory.
655 (add-after 'install 'install-generated-files
656 (lambda* (#:key outputs #:allow-other-keys)
657 (let* ((out (assoc-ref outputs "out"))
658 (root (string-append out "/share/texmf-dist")))
659 (for-each (match-lambda
661 (for-each (lambda (file)
663 (string-append "build/" file)
664 (string-append root dir)))
666 '(("/tex/fontinst/base"
672 ("/tex/fontinst/misc"
676 ("/tex/latex/fontinst"
680 `(("texlive-bin" ,texlive-bin)
681 ("texlive-docstrip" ,texlive-docstrip)))
682 (home-page "https://www.ctan.org/pkg/fontinst")
683 (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
684 (description "This package provides TeX macros for converting Adobe Font
685 Metric files to TeX metric and virtual font format. Fontinst helps mainly
686 with the number crunching and shovelling parts of font installation. This
687 means in practice that it creates a number of files which give the TeX
688 metrics (and related information) for a font family that TeX needs to do any
689 typesetting in these fonts.")
690 (license license:lppl1.1+))))
692 (define-public texlive-tex-fontinst-base
693 (deprecated-package "texlive-tex-fontinst-base" texlive-fontinst))
695 (define-public texlive-fontname
697 (inherit (simple-texlive-package
699 (list "/doc/fonts/fontname/fontname.texi"
700 "/fonts/map/fontname/")
702 "0h5im5rnhycrrkd6z10f17m2caa8lv594wf482b68qjmnxfrqnxj")
704 (home-page "https://www.ctan.org/pkg/fontname")
705 (synopsis "Scheme for naming fonts in TeX")
706 (description "This is Fontname, a naming scheme for (the base part of)
707 external TeX font filenames. This makes at most eight-character names
708 from (almost) arbitrarily complex font names, thus helping portability of TeX
710 (license license:public-domain)))
712 (define-public texlive-cm
713 (let ((template (simple-texlive-package
715 (list "/fonts/source/public/cm/"
716 "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map"
719 "09mvl94qrwlb9b4pkigi151l256v3djhwl4m5lgvk6yhn5y75zrp")
724 (substitute-keyword-arguments (package-arguments template)
725 ((#:modules modules '())
726 '((guix build gnu-build-system)
730 `(modify-phases ,phases
732 (lambda* (#:key inputs #:allow-other-keys)
733 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
734 ;; Tell mf where to find mf.base
735 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
736 ;; Tell mf where to look for source files
738 (string-append (getcwd) "/fonts/source/public/cm/:"
739 mf "/share/texmf-dist/metafont/base")))
740 (for-each make-file-writable
741 (cons "fonts/source/public/cm/"
742 (find-files "fonts/source/public/cm/" ".*")))
743 (let ((build (string-append (getcwd) "/build"))
744 (pkdir (string-append (getcwd) "/pk/ljfour/public/cm/dpi600")))
747 (with-directory-excursion "fonts/source/public/cm/"
748 (for-each (lambda (font)
749 (format #t "building font ~a\n" font)
750 (invoke "mf" "-progname=mf"
751 (string-append "-output-directory=" build)
757 (basename font ".mf")))
759 (string-append build "/"
760 (basename font ".mf") ".600gf")
761 (string-append pkdir "/"
762 (basename font ".mf") ".pk")))
763 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
765 (add-after 'install 'install-generated-fonts
766 (lambda* (#:key inputs outputs #:allow-other-keys)
767 (let* ((out (assoc-ref outputs "out"))
768 (fonts (string-append out "/share/texmf-dist/fonts/"))
769 (pk (string-append fonts "pk"))
770 (tfm (string-append fonts "tfm/public/cm")))
771 (for-each (cut install-file <> tfm)
772 (find-files "build" "\\.*"))
773 (copy-recursively "pk" pk)
776 `(("texlive-bin" ,texlive-bin)
777 ("texlive-metafont-base" ,texlive-metafont-base)))
778 (home-page "https://www.ctan.org/pkg/cm")
779 (synopsis "Computer Modern fonts for TeX")
780 (description "This package provides the Computer Modern fonts by Donald
781 Knuth. The Computer Modern font family is a large collection of text,
782 display, and mathematical fonts in a range of styles, based on Monotype Modern
784 (license license:knuth))))
786 (define-public texlive-fonts-cm
787 (deprecated-package "texlive-fonts-cm" texlive-cm))
789 (define-public texlive-cm-super
790 (let ((template (simple-texlive-package
792 (list "/doc/fonts/cm-super/"
794 "/fonts/afm/public/cm-super/"
795 "/fonts/enc/dvips/cm-super/"
796 "/fonts/map/dvips/cm-super/"
797 "/fonts/map/vtex/cm-super/"
798 "/fonts/type1/public/cm-super/"
799 "/tex/latex/cm-super/")
801 "1k3afl0x0bqbr5mnawbnp7rr2126dwn0vwnxzibm9ggvzqilnkm6")
806 (substitute-keyword-arguments (package-arguments template)
808 `(modify-phases ,phases
809 (delete 'reset-gzip-timestamps)))))
810 (home-page "https://www.ctan.org/pkg/cm-super")
811 (synopsis "Computer Modern Super family of fonts")
812 (description "The CM-Super family provides Adobe Type 1 fonts that replace
813 the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
814 T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
815 languages except Greek), and bringing many ameliorations in typesetting
816 quality. The fonts exhibit the same metrics as the METAFONT-encoded
818 ;; With font exception
819 (license license:gpl2+))))
821 (define-public texlive-fonts-cm-super
822 (deprecated-package "texlive-fonts-cm-super" texlive-cm-super))
824 (define-public texlive-lm
826 (inherit (simple-texlive-package
828 (list "/doc/fonts/lm/"
829 "/fonts/afm/public/lm/"
830 "/fonts/enc/dvips/lm/"
831 "/fonts/map/dvipdfm/lm/"
832 "/fonts/map/dvips/lm/"
833 "/fonts/opentype/public/lm/"
834 "/fonts/tfm/public/lm/"
835 "/fonts/type1/public/lm/"
838 "0i1hwr8rp0jqyvs4qyplrirscd4w7lsgwsncyv3yzy80bsa56jq5")
840 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/")
841 (synopsis "Latin Modern family of fonts")
842 (description "The Latin Modern fonts are derived from the famous Computer
843 Modern fonts designed by Donald E. Knuth and described in Volume E of his
844 Computers & Typesetting series.")
845 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
846 ;; Public License (LPPL), version 1.3c or later, but comes with an
847 ;; additional but not legally binding clause.
848 (license license:lppl1.3c+)))
850 (define-public texlive-fonts-lm
851 (deprecated-package "texlive-fonts-lm" texlive-lm))
853 (define-public texlive-fonts-knuth-lib
855 (name "texlive-fonts-knuth-lib")
856 (version (number->string %texlive-revision))
860 (url (string-append "svn://www.tug.org/texlive/tags/"
861 %texlive-tag "/Master/texmf-dist/"
862 "/fonts/source/public/knuth-lib"))
863 (revision %texlive-revision)))
864 (file-name (string-append name "-" version "-checkout"))
867 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
868 (build-system gnu-build-system)
870 `(#:modules ((guix build gnu-build-system)
873 #:tests? #f ; no tests
875 (modify-phases %standard-phases
878 (lambda* (#:key inputs #:allow-other-keys)
879 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
880 ;; Tell mf where to find mf.base
882 (string-append mf "/share/texmf-dist/web2c"))
883 ;; Tell mf where to look for source files
885 (string-append (getcwd) ":"
886 mf "/share/texmf-dist/metafont/base")))
888 (for-each (lambda (font)
889 (format #t "building font ~a\n" font)
890 (invoke "mf" "-progname=mf"
891 "-output-directory=build"
897 (find-files "." "(manfnt|logo.+)\\.mf$"))
900 (lambda* (#:key outputs #:allow-other-keys)
901 (let* ((out (assoc-ref outputs "out"))
903 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
905 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
906 (for-each (cut install-file <> tfm)
907 (find-files "build" "\\.*"))
908 (for-each (cut install-file <> mf)
909 (find-files "." "\\.mf"))
912 `(("texlive-bin" ,texlive-bin)
913 ("texlive-metafont-base" ,texlive-metafont-base)))
914 (home-page "https://www.ctan.org/pkg/knuth-lib")
915 (synopsis "Small library of METAFONT sources")
916 (description "This is a collection of core TeX and METAFONT macro files
917 from Donald Knuth, including the plain format, plain base, and the MF logo
919 (license license:knuth)))
921 (define-public texlive-fonts-latex
923 (name "texlive-fonts-latex")
924 (version (number->string %texlive-revision))
928 (url (string-append "svn://www.tug.org/texlive/tags/"
929 %texlive-tag "/Master/texmf-dist/"
930 "/fonts/source/public/latex-fonts"))
931 (revision %texlive-revision)))
932 (file-name (string-append name "-" version "-checkout"))
935 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
936 (build-system gnu-build-system)
938 `(#:modules ((guix build gnu-build-system)
942 #:tests? #f ; no tests
944 (modify-phases %standard-phases
947 (lambda* (#:key inputs #:allow-other-keys)
948 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
949 ;; Tell mf where to find mf.base
950 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
951 ;; Tell mf where to look for source files
953 (string-append (getcwd) ":"
954 mf "/share/texmf-dist/metafont/base:"
955 (assoc-ref inputs "texlive-cm")
956 "/share/texmf-dist/fonts/source/public/cm")))
958 (for-each (lambda (font)
959 (format #t "building font ~a\n" font)
960 (invoke "mf" "-progname=mf"
961 "-output-directory=build"
967 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
968 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
969 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
970 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
974 (lambda* (#:key outputs #:allow-other-keys)
975 (let* ((out (assoc-ref outputs "out"))
977 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
979 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
980 (for-each (cut install-file <> tfm)
981 (find-files "build" "\\.*"))
982 (for-each (cut install-file <> mf)
983 (find-files "." "\\.mf"))
986 `(("texlive-bin" ,texlive-bin)
987 ("texlive-metafont-base" ,texlive-metafont-base)
988 ("texlive-cm" ,texlive-cm)))
989 (home-page "https://www.ctan.org/pkg/latex-fonts")
990 (synopsis "Collection of fonts used in LaTeX distributions")
991 (description "This is a collection of fonts for use with standard LaTeX
992 packages and classes. It includes invisible fonts (for use with the slides
993 class), line and circle fonts (for use in the picture environment) and LaTeX
995 (license license:lppl1.2+)))
997 (define-public texlive-latex-mflogo
999 (name "texlive-latex-mflogo")
1000 (version (number->string %texlive-revision))
1004 (uri (texlive-ref "latex" "mflogo"))
1005 (file-name (string-append name "-" version "-checkout"))
1008 "15i2ib6nvhf31g1b92c6njf7n0g29znlq7hbfp9ii7qabhcwwvrj"))))
1009 (build-system texlive-build-system)
1010 (arguments '(#:tex-directory "latex/mflogo"))
1011 (home-page "http://www.ctan.org/pkg/mflogo")
1012 (synopsis "LaTeX support for Metafont logo fonts")
1014 "This package provides LaTeX and font definition files to access the
1015 Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont
1016 logos in LaTeX documents.")
1017 (license license:lppl)))
1019 (define-public texlive-mflogo-font
1021 (inherit (simple-texlive-package
1022 "texlive-mflogo-font"
1023 (list "/doc/fonts/mflogo-font/README"
1024 "/fonts/afm/hoekwater/mflogo-font/"
1025 "/fonts/map/dvips/mflogo-font/"
1026 "/fonts/type1/hoekwater/mflogo-font/")
1028 "094mknjv8ki2pvj1zin0f1z4f1w12g0cfqjiqcsawjsry4yfrmbg")
1030 (home-page "https://www.ctan.org/pkg/mflogo-font")
1031 (synopsis "Metafont logo font")
1033 "These fonts were created in METAFONT by Knuth, for his own publications.
1034 At some stage, the letters P and S were added, so that the METAPOST logo could
1035 also be expressed. The fonts were originally issued (of course) as METAFONT
1036 source; they have since been autotraced and reissued in Adobe Type 1 format by
1038 (license license:knuth)))
1040 (define-public texlive-fonts-mflogo-font
1041 (deprecated-package "texlive-fonts-mflogo-font" texlive-mflogo-font))
1043 (define-public texlive-amsfonts
1044 (let ((template (simple-texlive-package
1046 (list "/source/latex/amsfonts/"
1047 "/fonts/source/public/amsfonts/"
1048 "/fonts/type1/public/amsfonts/"
1049 "/fonts/afm/public/amsfonts/"
1050 "/fonts/map/dvips/amsfonts/"
1051 "/tex/plain/amsfonts/"
1052 "/doc/fonts/amsfonts/")
1054 "15q70nkjf8wqzbd5ivcdx3i2sdgqxjb38q0qn9a2qw9i0qcnx6zw"))))
1058 (substitute-keyword-arguments (package-arguments template)
1059 ((#:build-targets _ #t)
1060 '(list "amsfonts.ins"))
1061 ((#:tex-directory _ #t)
1063 ((#:modules modules '())
1064 `((guix build texlive-build-system)
1070 `(modify-phases ,phases
1071 (add-before 'build 'build-fonts
1072 (lambda* (#:key inputs #:allow-other-keys)
1073 (let ((mf (assoc-ref inputs "texlive-union"))
1074 (src (string-append (getcwd) "/fonts/source/public/amsfonts/")))
1075 ;; Make METAFONT reproducible
1076 (setenv "SOURCE_DATE_EPOCH" "1")
1077 ;; Tell mf where to find mf.base
1078 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1079 ;; Tell mf where to look for source files
1081 (string-append src ":"
1086 mf "/share/texmf-dist/metafont/base:"
1087 (assoc-ref inputs "texlive-cm")
1088 "/share/texmf-dist/fonts/source/public/cm")))
1089 (let ((build (string-append (getcwd) "/build-fonts")))
1091 (with-directory-excursion "fonts/source/public/amsfonts"
1092 (for-each (lambda (font)
1093 (format #t "building font ~a\n" (basename font ".mf"))
1094 (with-directory-excursion (dirname font)
1095 (invoke "mf" "-progname=mf"
1096 (string-append "-output-directory=" build)
1103 (basename font ".mf")))))
1104 (find-files "." "[0-9]+\\.mf$"))))
1106 ;; There are no metafont sources for the Euler fonts, so we
1107 ;; convert the afm files instead.
1108 (let ((build (string-append (getcwd) "/build-fonts/euler")))
1110 (with-directory-excursion "fonts/afm/public/amsfonts/"
1111 (for-each (lambda (font)
1112 (format #t "converting afm font ~a\n" (basename font ".afm"))
1113 (invoke "afm2tfm" font
1114 (string-append build "/"
1115 (basename font ".tfm"))))
1116 (find-files "." "\\.afm$")))
1118 ;; Frustratingly, not all fonts can be created this way. To
1119 ;; generate eufm8.tfm, for example, we first scale down
1120 ;; eufm10.afm to eufm8.pl, and then generate the tfm file from
1123 (string-append build "//:"
1124 (getcwd) "/fonts/afm/public/amsfonts//:"
1125 (getcwd) "/source/latex/amsfonts//:"
1126 (assoc-ref inputs "texlive-union") "//"))
1127 (with-directory-excursion build
1128 (for-each (match-lambda
1129 (((target-base target-size)
1130 (source-base source-size))
1131 (let ((factor (number->string
1132 (truncate/ (* 1000 target-size)
1135 "-interaction=scrollmode"
1136 (string-append "\\input fontinst.sty "
1137 "\\transformfont{" target-base "}"
1138 "{\\scalefont{" factor "}"
1139 "{\\fromafm{" source-base "}}} "
1142 (string-append target-base ".pl")
1143 (string-append target-base ".tfm"))
1144 (delete-file (string-append target-base ".pl"))))
1146 '((("eufm8" 8) ("eufm10" 10))
1148 (("eufb6" 6) ("eufb7" 7))
1149 (("eufb8" 8) ("eufb10" 10))
1150 (("eufb9" 9) ("eufb10" 10))
1152 (("eufm6" 6) ("eufb7" 7))
1153 (("eufm9" 9) ("eufb10" 10))
1155 (("eurb6" 6) ("eurb7" 7))
1156 (("eurb8" 8) ("eurb10" 10))
1157 (("eurb9" 9) ("eurb10" 10))
1159 (("eurm6" 6) ("eurm7" 7))
1160 (("eurm8" 8) ("eurm10" 10))
1161 (("eurm9" 9) ("eurm10" 10))))))
1163 (add-after 'install 'install-generated-fonts
1164 (lambda* (#:key inputs outputs #:allow-other-keys)
1165 (copy-recursively "build-fonts"
1167 (assoc-ref outputs "out")
1168 "/share/texmf-dist/fonts/tfm/public/amsfonts"))
1171 `(("texlive-union" ,(texlive-union (list texlive-tex-fontinst-base
1173 texlive-metafont-base)))))
1174 (home-page "https://www.ctan.org/pkg/amsfonts")
1175 (synopsis "TeX fonts from the American Mathematical Society")
1177 "This package provides an extended set of fonts for use in mathematics,
1178 including: extra mathematical symbols; blackboard bold letters (uppercase
1179 only); fraktur letters; subscript sizes of bold math italic and bold Greek
1180 letters; subscript sizes of large symbols such as sum and product; added sizes
1181 of the Computer Modern small caps font; cyrillic fonts (from the University of
1182 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1183 files, and all except the Euler fonts are provided as Metafont source. The
1184 distribution also includes the canonical Type 1 versions of the Computer
1185 Modern family of fonts. The Euler fonts are supported by separate packages;
1186 details can be found in the documentation.")
1187 (license license:silofl1.1))))
1189 (define-public texlive-fonts-amsfonts
1190 (deprecated-package "texlive-fonts-amsfonts" texlive-amsfonts))
1192 (define-public texlive-latex-amsfonts
1193 (deprecated-package "texlive-latex-amsfonts" texlive-amsfonts))
1195 (define-public texlive-mkpattern
1197 (inherit (simple-texlive-package
1199 (list "/doc/plain/mkpattern/README"
1200 "/doc/plain/mkpattern/mkpatdoc.tex"
1201 "/doc/plain/mkpattern/mkpatter.pdf"
1202 "/doc/plain/mkpattern/mkpattern-exmpl.tex"
1203 "/tex/plain/mkpattern/mkpatter.tex")
1205 "0sxnkbcc802jl3fj56x9hvg978bpv15lhrwj0aykb4syq29l47ga")
1207 (home-page "https://ctan.org/pkg/mkpattern")
1208 (synopsis "Utility for making hyphenation patterns")
1209 (description "Mkpattern is a general purpose program for the generation of
1210 hyphenation patterns, with definition of letter sets and template-like
1211 constructions. It also provides an easy way to handle different input and
1212 output encodings, and features generation of clean UTF-8 patterns.")
1213 (license license:lppl)))
1215 ;; This provides etex.src which is needed to build various formats, including
1216 ;; luatex.fmt and pdflatex.fmt
1217 (define-public texlive-etex
1218 (let ((template (simple-texlive-package
1220 (list "/doc/etex/base/"
1221 "/doc/man/man1/etex.1"
1222 "/doc/man/man1/etex.man1.pdf"
1224 "/fonts/source/public/etex/")
1226 "1qv6vxm5a8pw38gas3i69ivmsn79zj2yq5n5vdmh0rzic5hw2hmc")
1231 (substitute-keyword-arguments (package-arguments template)
1233 `(modify-phases ,phases
1236 (lambda* (#:key inputs #:allow-other-keys)
1237 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
1238 ;; Tell mf where to find mf.base
1239 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1240 ;; Tell mf where to look for source files
1242 (string-append (getcwd)
1243 "/fonts/source/public/etex/:"
1244 mf "/share/texmf-dist/metafont/base:"
1245 (assoc-ref inputs "texlive-cm")
1246 "/share/texmf-dist/fonts/source/public/cm")))
1247 (invoke "mf" "-progname=mf"
1254 (add-after 'install 'install-font
1255 (lambda* (#:key outputs #:allow-other-keys)
1258 (string-append (assoc-ref outputs "out")
1259 "/share/texmf-dist/fonts/tfm/public/etex/"))
1262 `(("texlive-bin" ,texlive-bin)
1263 ("texlive-metafont-base" ,texlive-metafont-base)
1264 ("texlive-cm" ,texlive-cm)))
1265 (home-page "https://www.ctan.org/pkg/etex")
1266 (synopsis "Extended version of TeX")
1268 "This package provides an extended version of TeX (which is capable of
1269 running as if it were TeX unmodified). E-TeX has been specified by the LaTeX
1270 team as the engine for the development of LaTeX2e; as a result, LaTeX
1271 programmers may assume e-TeX functionality. The pdftex engine directly
1272 incorporates the e-TeX extensions.")
1273 (license license:knuth))))
1275 (define-public texlive-tex-plain
1277 (inherit (simple-texlive-package
1279 (list "/tex/plain/")
1281 "1m4qpaszwfv7j8a85rlwl7rs4iv5nlj67c1vvn6ysly72h9gjydb")
1283 (home-page "https://www.ctan.org/pkg/plain")
1284 (synopsis "Plain TeX format and supporting files")
1286 "This package contains files used to build the Plain TeX format, as
1287 described in the TeXbook, together with various supporting files (some also
1288 discussed in the book).")
1289 (license license:knuth)))
1291 (define-public texlive-hyphen-afrikaans
1293 (inherit (texlive-hyphen-package
1294 "texlive-hyphen-afrikaans" "af"
1295 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex")
1297 "1k9k27a27bbrb0gz36191w32l2v6d3zbdh8zhrp4l3ild2pj3n4l")))
1298 (synopsis "Hyphenation patterns for Afrikaans")
1299 (description "The package provides hyphenation patterns for the Afrikaans
1301 (license license:lppl1.3+)))
1303 (define-public texlive-hyphen-ancientgreek
1305 (inherit (texlive-hyphen-package
1306 "texlive-hyphen-ancientgreek" "grc"
1307 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-grc.tex"
1308 "/tex/generic/hyphen/grahyph5.tex"
1309 "/tex/generic/hyphen/ibyhyph.tex")
1311 "01326lb6z0s8krcfgs8i1pnjfrm4gr33rc53gy80f63qbv4ssxrw")))
1312 (synopsis "Hyphenation patterns for ancient Greek")
1313 (description "The package provides hyphenation patterns for ancient
1315 (license license:lppl1.3+)))
1317 (define-public texlive-hyphen-armenian
1318 (let ((template (texlive-hyphen-package
1319 "texlive-hyphen-armenian" "hy"
1320 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hy.tex")
1322 "0hzny0npynsb07syxrpbfa5pkpj8r0j51pj64yxyfl1c0bak1fwp"))))
1325 (synopsis "Hyphenation patterns for Armenian")
1326 (description "The package provides hyphenation patterns for the Armenian
1328 ;; Any version of the LGPL.
1329 (license license:lgpl3+))))
1331 (define-public texlive-hyphen-basque
1332 (let ((template (texlive-hyphen-package
1333 "texlive-hyphen-basque" "eu"
1334 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex")
1336 "15w969g1jqzn68l2b2lzf7iv7g3kil02aba3if6cag3qcnq92ra9"))))
1339 (synopsis "Hyphenation patterns for Basque")
1340 (description "The package provides hyphenation patterns for the Basque
1342 ;; Similar to Unicode license.
1343 (license (license:fsf-free
1344 "/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex")))))
1346 (define-public texlive-hyphen-belarusian
1348 (inherit (texlive-hyphen-package
1349 "texlive-hyphen-belarusian" "be"
1350 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-be.tex")
1352 "0ppm12wndaxv9da62dwkbnk7w9nijikn6jkc97m76xis338g2h02")))
1353 (synopsis "Hyphenation patterns for Belarusian")
1354 (description "The package provides hyphenation patterns for the Belarusian
1356 (license license:expat)))
1358 (define-public texlive-hyphen-bulgarian
1360 (inherit (texlive-hyphen-package
1361 "texlive-hyphen-bulgarian" "bg"
1362 (list "/doc/generic/hyph-utf8/bg/azbukaExtended.pdf"
1363 "/doc/generic/hyph-utf8/bg/azbukaExtended.tex"
1364 "/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex")
1366 "0ngrgw2rmipxss76rgfk62x9nnsgwmaxxna2jqxxhybai3q39mx5")))
1367 (synopsis "Hyphenation patterns for Bulgarian")
1368 (description "The package provides hyphenation patterns for the Bulgarian
1369 language in T2A and UTF-8 encodings.")
1370 (license (license:non-copyleft
1371 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex"
1372 "Ancestral BSD variant"))))
1374 (define-public texlive-hyphen-catalan
1376 (inherit (texlive-hyphen-package
1377 "texlive-hyphen-catalan" "ca"
1378 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex")
1380 "10zzlfz5v8d9csg85ibpp2vfvmpqa56vbl85qy5gws099vygpayg")))
1381 (synopsis "Hyphenation patterns for Catalan")
1382 (description "The package provides hyphenation patterns for Catalan in
1383 T1/EC and UTF-8 encodings.")
1384 (license license:lppl1.0+)))
1386 (define-public texlive-hyphen-chinese
1388 (inherit (texlive-hyphen-package
1389 "texlive-hyphen-chinese" "zh-latn-pinyin"
1390 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-zh-latn-pinyin.tex")
1392 "1j68mry2zy91m1kbzwhin5q2jajf6xh48npdds8wvp1sqmzih2a3")))
1393 (synopsis "Hyphenation patterns for unaccented Chinese pinyin")
1394 (description "The package provides hyphenation patterns for unaccented
1395 Chinese pinyin T1/EC and UTF-8 encodings.")
1396 (license license:gpl2+)))
1398 (define-public texlive-hyphen-churchslavonic
1400 (inherit (texlive-hyphen-package
1401 "texlive-hyphen-churchslavonic" "cu"
1402 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cu.tex")
1404 "0fhbwaapq2213msbhgr0d1lw06ihmrqirxj092mn73d8ynl13qlh")))
1405 (synopsis "Hyphenation patterns for Church Slavonic")
1406 (description "The package provides hyphenation patterns for Church
1407 Slavonic in UTF-8 encoding.")
1408 (license license:expat)))
1410 (define-public texlive-hyphen-coptic
1412 (inherit (texlive-hyphen-package
1413 "texlive-hyphen-coptic" "cop"
1414 (list "/tex/generic/hyph-utf8/patterns/tex-8bit/copthyph.tex"
1415 "/tex/generic/hyph-utf8/patterns/tex/hyph-cop.tex")
1417 "1jlxxvyfa2aljizaa3qlcxyhqsrb4dawv3q3fbyp2lxz6ag9fy6m")))
1418 (synopsis "Hyphenation patterns for Coptic")
1419 (description "The package provides hyphenation patterns for Coptic in
1420 UTF-8 encoding as well as in ASCII-based encoding for 8-bit engines.")
1421 ;; No explicit license declaration, so we use the project license.
1422 (license license:lppl)))
1424 (define-public texlive-hyphen-croatian
1426 (inherit (texlive-hyphen-package
1427 "texlive-hyphen-croatian" "hr"
1428 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hr.tex")
1430 "12n9r2winai15jc622sqdwclgcs1s68r6vcf7ic8vvq0x9qhwc5v")))
1431 (synopsis "Hyphenation patterns for Croatian")
1432 (description "The package provides hyphenation patterns for Croatian in
1433 T1/EC and UTF-8 encodings.")
1434 (license license:lppl1.0+)))
1436 (define-public texlive-hyphen-czech
1438 (inherit (texlive-hyphen-package
1439 "texlive-hyphen-czech" "cs"
1440 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cs.tex")
1442 "1q37s6p8yfyi3rp1azbz421lg4lr4aiki8m631i4x9rmps89m8iq")))
1443 (synopsis "Hyphenation patterns for Czech")
1444 (description "The package provides hyphenation patterns for Czech in T1/EC
1445 and UTF-8 encodings.")
1446 (license license:gpl2+)))
1448 (define-public texlive-hyphen-danish
1450 (inherit (texlive-hyphen-package
1451 "texlive-hyphen-danish" "da"
1452 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-da.tex")
1454 "1vj8nip64rzcrcg3skm4vqad1ggqwgan74znrdns610wjcm1z9qd")))
1455 (synopsis "Hyphenation patterns for Danish")
1456 (description "The package provides hyphenation patterns for Danish in
1457 T1/EC and UTF-8 encodings.")
1458 ;; Either LPPL 1.3 or later, or Expat
1459 (license (list license:lppl1.3+ license:expat))))
1461 (define-public texlive-hyphen-dutch
1463 (inherit (texlive-hyphen-package
1464 "texlive-hyphen-dutch" "nl"
1465 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex")
1467 "1bg9g790ksq5cn8qihai6pacmkp9vpf35h4771z361nvwa40l8yk")))
1468 (synopsis "Hyphenation patterns for Dutch")
1469 (description "The package provides hyphenation patterns for Dutch in T1/EC
1470 and UTF-8 encodings.")
1471 (license license:lppl1.0+)))
1473 (define-public texlive-hyphen-english
1475 (inherit (texlive-hyphen-package
1476 "texlive-hyphen-english" '("en-gb" "en-us")
1477 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-en-gb.tex"
1478 "/tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex")
1480 "08b3jihjaamcl1pvffi0s47nwavkm66l9mrrmby3l32dfpkprrc5")))
1481 (synopsis "Hyphenation patterns for American and British English")
1482 (description "The package provides additional hyphenation patterns for
1483 American and British English in ASCII encoding.")
1484 (license (license:non-copyleft
1485 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex"
1486 "FSF all permissive license"))))
1488 (define-public texlive-hyphen-esperanto
1490 (inherit (texlive-hyphen-package
1491 "texlive-hyphen-esperanto" "eo"
1492 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eo.tex")
1494 "1503kzn9bk4mm4ba35cka2hm8rz0v3j5l30v5rrsd4rqgpibcgic")))
1495 (synopsis "Hyphenation patterns for Esperanto")
1496 (description "The package provides hyphenation patterns for Esperanto ISO
1497 Latin 3 and UTF-8 encodings.")
1498 (license license:lppl1.0+)))
1500 (define-public texlive-hyphen-estonian
1502 (inherit (texlive-hyphen-package
1503 "texlive-hyphen-estonian" "et"
1504 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-et.tex")
1506 "1rdas2450ib02rwy65i69l86nyc9h15bl07xbbwhmhxfnj8zj4v8")))
1507 (synopsis "Hyphenation patterns for Estonian")
1508 (description "The package provides hyphenation patterns for Estonian in
1509 T1/EC and UTF-8 encodings.")
1510 ;; Dual licensed under either license.
1511 (license (list license:lppl1.3+ license:expat))))
1513 (define-public texlive-hyphen-ethiopic
1514 (let ((template (texlive-hyphen-package
1515 "texlive-hyphen-ethiopic" "mul-ethi"
1516 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mul-ethi.tex")
1518 "1b93fc6j4aybh0pgq23hsn1njm6asf7sfz803fbj3ai0whsxd10l"))))
1521 (synopsis "Hyphenation patterns for Ethiopic scripts")
1522 (description "The package provides hyphenation patterns for languages
1523 written using the Ethiopic script for Unicode engines. They are not supposed
1524 to be linguistically relevant in all cases and should, for proper typography,
1525 be replaced by files tailored to individual languages.")
1526 (license license:expat))))
1528 (define-public texlive-hyphen-finnish
1530 (inherit (texlive-hyphen-package
1531 "texlive-hyphen-finnish" "fi"
1532 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi.tex")
1534 "1f72b4ydb4zddvw2i004948khmwzigxkdkwfym5v1kkq0183sfpj")))
1535 (synopsis "Hyphenation patterns for Finnish")
1536 (description "The package provides hyphenation patterns for Finnish in
1537 T1/EC and UTF-8 encodings.")
1538 (license license:public-domain)))
1540 (define-public texlive-hyphen-french
1542 (inherit (texlive-hyphen-package
1543 "texlive-hyphen-french" "fr"
1544 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fr.tex")
1546 "0jc3kqys6cxjw8x8pzjln7z78l8s7f5rlyrkv7dzr1kiwnwilk9d")))
1547 (synopsis "Hyphenation patterns for French")
1548 (description "The package provides hyphenation patterns for French in
1549 T1/EC and UTF-8 encodings.")
1550 (license license:expat)))
1552 (define-public texlive-hyphen-friulan
1554 (inherit (texlive-hyphen-package
1555 "texlive-hyphen-friulan" "fur"
1556 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fur.tex")
1558 "1dlnh8slpf50mryxv7zzbx08xp54zkdfs1j7y37ipwbrajvd740f")))
1559 (synopsis "Hyphenation patterns for Friulan")
1560 (description "The package provides hyphenation patterns for Friulan in
1562 (license license:lppl1.3+)))
1564 (define-public texlive-hyphen-galician
1565 (let ((template (texlive-hyphen-package
1566 "texlive-hyphen-galician" "gl"
1567 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-gl.tex")
1569 "13zx2r3nrxdr025g2lxrph0ga6wf7cs8dxixn4fhbl6xr1cx028g"))))
1572 (synopsis "Hyphenation patterns for Galician")
1573 (description "The package provides hyphenation patterns for Galician in
1574 T1/EC and UTF-8 encodings.")
1575 (license license:lppl1.3))))
1577 (define-public texlive-hyphen-georgian
1579 (inherit (texlive-hyphen-package
1580 "texlive-hyphen-georgian" "ka"
1581 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ka.tex")
1583 "0l0hk7ka04fr8x11nnw95x151cxyycy0fph772m3a3p8qk4x9wp7")))
1584 (synopsis "Hyphenation patterns for Georgian")
1585 (description "The package provides hyphenation patterns for Georgian in
1586 T8M, T8K, and UTF-8 encodings.")
1587 (license license:lppl1.3+)))
1589 (define-public texlive-hyphen-german
1591 (inherit (texlive-hyphen-package
1592 "texlive-hyphen-german" '("de-1901" "de-1996" "de-ch-1901")
1593 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1901.tex"
1594 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1996.tex"
1595 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-ch-1901.tex"
1596 "/tex/generic/dehyph/dehyphn.tex"
1597 "/tex/generic/dehyph/dehypht.tex"
1598 "/tex/generic/dehyph/dehyphtex.tex"
1599 "/tex/generic/dehyph/README")
1601 "0wp5by5kkf4ac6li5mbppqzw11500wa7f22p5vpz3m1kwd15zavw")))
1602 (synopsis "Hyphenation patterns for German")
1603 (description "This package provides hyphenation patterns for German in
1604 T1/EC and UTF-8 encodings, for traditional and reformed spelling, including
1606 ;; The patterns are released under the Expat license; the dehyph* files
1607 ;; are released under the LPPL version 1 or later.
1608 (license (list license:expat license:lppl1.0+))))
1610 (define-public texlive-hyphen-greek
1612 (inherit (texlive-hyphen-package
1613 "texlive-hyphen-greek" '("el-monoton" "el-polyton")
1614 (list "/doc/generic/elhyphen/"
1615 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-monoton.tex"
1616 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-polyton.tex"
1617 "/tex/generic/hyphen/grmhyph5.tex"
1618 "/tex/generic/hyphen/grphyph5.tex")
1620 "1qyr6m1nh6d4wj68616cfxv4wjpiy1w2rlldxlx2ajzba381w3hf")))
1621 (synopsis "Hyphenation patterns for Greek")
1622 (description "This package provides hyphenation patterns for Modern Greek
1623 in monotonic and polytonic spelling in LGR and UTF-8 encodings.")
1624 (license license:lppl)))
1626 (define-public texlive-hyphen-hungarian
1628 (inherit (texlive-hyphen-package
1629 "texlive-hyphen-hungarian" "hu"
1630 (list "/doc/generic/huhyphen/"
1631 "/doc/generic/hyph-utf8/hu/"
1632 "/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex")
1634 "1j1b8kksg9r8nmjyjvvz8fr3hgcrjj6jlybf9p06nwrrwm2r8j8f")))
1635 (synopsis "Hyphenation patterns for Hungarian")
1636 (description "This package provides hyphenation patterns for Hungarian in
1637 T1/EC and UTF-8 encodings.")
1638 ;; Any of these licenses
1639 (license (list license:gpl2 license:lgpl2.1+ license:mpl1.1))))
1641 (define-public texlive-hyphen-icelandic
1643 (inherit (texlive-hyphen-package
1644 "texlive-hyphen-icelandic" "is"
1645 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-is.tex")
1647 "1m9xj41csj3ldym09d82zjbd3345sg2z10d8pxpvhgibf97mb66h")))
1648 (synopsis "Hyphenation patterns for Icelandic")
1649 (description "This package provides hyphenation patterns for Icelandic in
1650 T1/EC and UTF-8 encodings.")
1651 (license license:lppl1.2+)))
1653 (define-public texlive-hyphen-indic
1655 (inherit (texlive-hyphen-package
1656 "texlive-hyphen-indic"
1657 '("as" "bn" "gu" "hi" "kn" "ml" "mr" "or" "pa" "ta" "te")
1658 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-as.tex"
1659 "/tex/generic/hyph-utf8/patterns/tex/hyph-bn.tex"
1660 "/tex/generic/hyph-utf8/patterns/tex/hyph-gu.tex"
1661 "/tex/generic/hyph-utf8/patterns/tex/hyph-hi.tex"
1662 "/tex/generic/hyph-utf8/patterns/tex/hyph-kn.tex"
1663 "/tex/generic/hyph-utf8/patterns/tex/hyph-ml.tex"
1664 "/tex/generic/hyph-utf8/patterns/tex/hyph-mr.tex"
1665 "/tex/generic/hyph-utf8/patterns/tex/hyph-or.tex"
1666 "/tex/generic/hyph-utf8/patterns/tex/hyph-pa.tex"
1667 "/tex/generic/hyph-utf8/patterns/tex/hyph-ta.tex"
1668 "/tex/generic/hyph-utf8/patterns/tex/hyph-te.tex")
1670 "02d2kcd3lpk95fykjwhzw9s2a1s2w1skz8h2mmszrz979d1xzhpm")))
1671 (synopsis "Indic hyphenation patterns")
1672 (description "This package provides hyphenation patterns for Assamese,
1673 Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Panjabi, Tamil
1674 and Telugu for Unicode engines.")
1675 (license license:expat)))
1677 (define-public texlive-hyphen-indonesian
1679 (inherit (texlive-hyphen-package
1680 "texlive-hyphen-indonesian" "id"
1681 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-id.tex")
1683 "1r62w02rf0i4z0jgij54d16qjbj0zyfwm9dwdkqka76jrivij83q")))
1684 (synopsis "Indonesian hyphenation patterns")
1685 (description "This package provides hyphenation patterns for
1686 Indonesian (Bahasa Indonesia) in ASCII encoding. They are probably also
1687 usable for Malay (Bahasa Melayu).")
1688 (license license:gpl2)))
1690 (define-public texlive-hyphen-interlingua
1692 (inherit (texlive-hyphen-package
1693 "texlive-hyphen-interlingua" "ia"
1694 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ia.tex")
1696 "0a9na20vjnzhgjbicaxay0jk4rm5zg1rjyiswr377mjhd9mx5cg3")))
1697 (synopsis "Interlingua hyphenation patterns")
1698 (description "This package provides hyphenation patterns for Interlingua
1699 in ASCII encoding.")
1700 (license license:lppl1.3+)))
1702 (define-public texlive-hyphen-irish
1704 (inherit (texlive-hyphen-package
1705 "texlive-hyphen-irish" "ga"
1706 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ga.tex")
1708 "1h1l9jzkpsb91nyhz6s6c9jfrbz8jx5ip8vyq3dkz0rl6g960i6b")))
1709 (synopsis "Irish hyphenation patterns")
1710 (description "This package provides hyphenation patterns for
1711 Irish (Gaeilge) in T1/EC and UTF-8 encodings.")
1712 ;; Either of these licenses
1713 (license (list license:gpl2+ license:expat))))
1715 (define-public texlive-hyphen-italian
1717 (inherit (texlive-hyphen-package
1718 "texlive-hyphen-italian" "it"
1719 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-it.tex")
1721 "03c7jiqslfxvl3gbdx79hggbvrfi2l4z2bnwxc0na8f8lkp1m787")))
1722 (synopsis "Italian hyphenation patterns")
1723 (description "This package provides hyphenation patterns for Italian in
1724 ASCII encoding. Compliant with the Recommendation UNI 6461 on hyphenation
1725 issued by the Italian Standards Institution (Ente Nazionale di Unificazione
1727 (license license:lppl1.3+)))
1729 (define-public texlive-hyphen-kurmanji
1731 (inherit (texlive-hyphen-package
1732 "texlive-hyphen-kurmanji" "kmr"
1733 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-kmr.tex")
1735 "01ylbsi5wymrdrxr9b28nmjmcj72mdhqr657lwsb6m9aj33c9ql6")))
1736 (synopsis "Kurmanji hyphenation patterns")
1737 (description "This package provides hyphenation patterns for
1738 Kurmanji (Northern Kurdish) as spoken in Turkey and by the Kurdish diaspora in
1739 Europe, in T1/EC and UTF-8 encodings.")
1740 (license license:lppl1.3)))
1742 (define-public texlive-hyphen-latin
1744 (inherit (texlive-hyphen-package
1745 "texlive-hyphen-latin" '("la-x-classic" "la-x-liturgic" "la")
1746 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex"
1747 "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-liturgic.tex"
1748 "/tex/generic/hyph-utf8/patterns/tex/hyph-la.tex")
1750 "0rxg8a4s5cpj8vlkz5a74a036axda5jqgvr3f9aj2cc2x9f2f3w9")))
1751 (synopsis "Liturgical Latin hyphenation patterns")
1752 (description "This package provides hyphenation patterns for Latin in
1753 T1/EC and UTF-8 encodings, mainly in modern spelling (u when u is needed and v
1754 when v is needed), medieval spelling with the ligatures @code{\\ae} and
1755 @code{\\oe} and the (uncial) lowercase 'v' written as a 'u' is also supported.
1756 Apparently there is no conflict between the patterns of modern Latin and those
1757 of medieval Latin. It also includes hyphenation patterns for the Classical
1758 Latin in T1/EC and UTF-8 encodings. Classical Latin hyphenation patterns are
1759 different from those of 'plain' Latin, the latter being more adapted to modern
1760 Latin. It also provides hyphenation patterns for the Liturgical Latin in
1761 T1/EC and UTF-8 encodings.")
1762 ;; Either of these licenses
1763 (license (list license:lppl1.0+ license:expat))))
1765 (define-public texlive-hyphen-latvian
1767 (inherit (texlive-hyphen-package
1768 "texlive-hyphen-latvian" "lv"
1769 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lv.tex")
1771 "00jf8xma4ldz0zpqwma97k9q3j0mqx7qdj6b7baph3n5xgc24aaw")))
1772 (synopsis "Latvian hyphenation patterns")
1773 (description "This package provides hyphenation patterns for Latvian in
1774 L7X and UTF-8 encodings.")
1775 ;; Either of these licenses.
1776 (license (list license:gpl2 license:lgpl2.1))))
1778 (define-public texlive-hyphen-lithuanian
1780 (inherit (texlive-hyphen-package
1781 "texlive-hyphen-lithuanian" "lt"
1782 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lt.tex")
1784 "1kfq7j2ajg6nj952s1ygd520sj9z9kl0bqvd291a36ni2b1frzgd")))
1785 (synopsis "Lithuanian hyphenation patterns")
1786 (description "This package provides hyphenation patterns for Lithuanian in
1787 L7X and UTF-8 encodings.")
1788 ;; "Do ... whatever ... as long as you respect the copyright"; as part of
1789 ;; the hyph-utf8 package we choose the LPPL license.
1790 (license license:lppl)))
1792 (define-public texlive-hyphen-mongolian
1794 (inherit (texlive-hyphen-package
1795 "texlive-hyphen-mongolian" '("mn-cyrl-x-lmc" "mn-cyrl")
1796 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl-x-lmc.tex"
1797 "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl.tex")
1799 "1y1b91ihrdl9bad3rxlsfjpd9wmyd5zzgci3qv9w8qqk33jxhwya")))
1800 (synopsis "Mongolian hyphenation patterns in Cyrillic script")
1801 (description "This package provides hyphenation patterns for Mongolian in
1802 T2A, LMC and UTF-8 encodings.")
1803 ;; Either of these licenses
1804 (license (list license:lppl1.3+ license:expat))))
1806 (define-public texlive-hyphen-norwegian
1808 (inherit (texlive-hyphen-package
1809 "texlive-hyphen-norwegian" '("nb" "nn" "no")
1810 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nb.tex"
1811 "/tex/generic/hyph-utf8/patterns/tex/hyph-nn.tex"
1812 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex")
1814 "08gbwj64p4fckm199k52yp5lx65h9f4wwdkvl4pv4aa7k370jq9y")))
1815 (synopsis "Norwegian Bokmal and Nynorsk hyphenation patterns")
1816 (description "This package provides hyphenation patterns for Norwegian
1817 Bokmal and Nynorsk in T1/EC and UTF-8 encodings.")
1818 (license (license:non-copyleft
1819 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex"
1820 "FSF All permissive license"))))
1822 (define-public texlive-hyphen-occitan
1824 (inherit (texlive-hyphen-package
1825 "texlive-hyphen-occitan" "oc"
1826 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-oc.tex")
1828 "0vhjbq2nr58vhqwwky3cwx4dqiwjmmfwp81rb65mfpf0m8yypdfg")))
1829 (synopsis "Occitan hyphenation patterns")
1830 (description "This package provides hyphenation patterns for Occitan in
1831 T1/EC and UTF-8 encodings. They are supposed to be valid for all the Occitan
1832 variants spoken and written in the wide area called 'Occitanie' by the French.
1833 It ranges from the Val d'Aran within Catalunya, to the South Western Italian
1834 Alps encompassing the southern half of the French pentagon.")
1835 (license license:lppl1.0+)))
1837 (define-public texlive-hyphen-pali
1839 (inherit (texlive-hyphen-package
1840 "texlive-hyphen-pali" "pi"
1841 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pi.tex")
1843 "1fak853s4ijdqgrnhwymaq1lh8jab3qfyxapdmf6qpg6bqd20kxq")))
1844 (synopsis "Panjabi hyphenation patterns")
1845 (description "This package provides hyphenation patterns for Panjabi in
1847 ;; Can be used with either license.
1848 (license (list license:expat license:lgpl3+ license:gpl3+))))
1850 (define-public texlive-hyphen-piedmontese
1852 (inherit (texlive-hyphen-package
1853 "texlive-hyphen-piedmontese" "pms"
1854 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pms.tex")
1856 "0xva3l2gwzkqw1sz64k5g5iprhdyr27w1mv8rxp8x62i5y3aqr1k")))
1857 (synopsis "Piedmontese hyphenation patterns")
1858 (description "This package provides hyphenation patterns for Piedmontese
1859 in ASCII encoding. Compliant with 'Gramatica dla lengua piemonteisa' by
1861 (license license:lppl1.3+)))
1863 (define-public texlive-hyphen-polish
1865 (inherit (texlive-hyphen-package
1866 "texlive-hyphen-polish" "pl"
1867 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex")
1869 "1c22g99isxapv4xjrmsw24hhp1xb83wbgcxyd8j24mxdnizywxzm")))
1870 (synopsis "Polish hyphenation patterns")
1871 (description "This package provides hyphenation patterns for Polish in QX
1872 and UTF-8 encodings.")
1873 ;; No differing license declared, so we choose the project license.
1874 (license license:lppl)))
1876 (define-public texlive-hyphen-portuguese
1878 (inherit (texlive-hyphen-package
1879 "texlive-hyphen-portuguese" "pt"
1880 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pt.tex")
1882 "00rkjy4p7893zs940bq3s4hp7al0skgxqggj5qfax0bx8karf30b")))
1883 (synopsis "Portuguese hyphenation patterns")
1884 (description "This package provides hyphenation patterns for Portuguese in
1885 T1/EC and UTF-8 encodings.")
1886 (license license:bsd-3)))
1888 (define-public texlive-hyphen-romanian
1890 (inherit (texlive-hyphen-package
1891 "texlive-hyphen-romanian" "ro"
1892 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ro.tex")
1894 "1ykb5v7ip6p3n34wq8qypfyrap4gg946by5rsl6ab0k5gv6ypsbf")))
1895 (synopsis "Romanian hyphenation patterns")
1896 (description "This package provides hyphenation patterns for Romanian in
1897 T1/EC and UTF-8 encodings.")
1898 ;; No differing license declared, so we choose the project license.
1899 (license license:lppl)))
1901 (define-public texlive-hyphen-romansh
1903 (inherit (texlive-hyphen-package
1904 "texlive-hyphen-romansh" "rm"
1905 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex")
1907 "0a1q9p6sp5n6a9w6xhwk03vmkrrmnh2md7g1k4qhnf0dc4h7dy9r")))
1908 (synopsis "Romansh hyphenation patterns")
1909 (description "This package provides hyphenation patterns for Romansh in
1910 ASCII encodings. They are supposed to comply with the rules indicated by the
1911 Lia Rumantscha (Romansh language society).")
1912 (license license:lppl1.3+)))
1914 (define-public texlive-hyphen-russian
1916 (inherit (texlive-hyphen-package
1917 "texlive-hyphen-russian" "ru"
1918 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex")
1920 "00sy7qh5f8ryxw36fwbyd1yi2hxhv7hmk99yp7dwh73n4mxv6lpl")))
1921 (synopsis "Russian hyphenation patterns")
1922 (description "This package provides hyphenation patterns for Russian in
1923 T2A and UTF-8 encodings.")
1924 (license license:lppl1.2+)))
1926 (define-public texlive-hyphen-sanskrit
1928 (inherit (texlive-hyphen-package
1929 "texlive-hyphen-sanskrit" "sa"
1930 (list "/doc/generic/hyph-utf8/sa/hyphenmin.txt"
1931 "/tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex")
1933 "0gi2qk0wf388h9n25gzhv0cdz67ph83wal8h3iz2sqnpdjsw8kpc")))
1934 (synopsis "Sanskrit hyphenation patterns")
1935 (description "This package provides hyphenation patterns for Sanskrit and
1936 Prakrit in longdesc transliteration, and in Devanagari, Bengali, Kannada,
1937 Malayalam longdesc and Telugu scripts for Unicode engines.")
1938 ;; "You may freely use, copy, modify and/or distribute this file."
1939 (license (license:non-copyleft
1940 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex"))))
1942 (define-public texlive-hyphen-serbian
1944 (inherit (texlive-hyphen-package
1945 "texlive-hyphen-serbian" '("sh-cyrl" "sh-latn" "sr-cyrl")
1946 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-cyrl.tex"
1947 "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-latn.tex"
1948 "/tex/generic/hyph-utf8/patterns/tex/hyph-sr-cyrl.tex")
1950 "0pwc9z0m5y6acq1vqm0da9akg156jbhxzvsfp2f8bsz5b99y5z45")))
1951 (synopsis "Serbian hyphenation patterns")
1952 (description "This package provides hyphenation patterns for Serbian in
1953 T1/EC, T2A and UTF-8 encodings.")
1954 ;; Any version of the GPL.
1955 (license license:gpl3+)))
1957 (define-public texlive-hyphen-slovak
1959 (inherit (texlive-hyphen-package
1960 "texlive-hyphen-slovak" "sk"
1961 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex")
1963 "0ppp53bbclp5c8wvx748krvrp5y5053khgkjnnv966a90fvp3vgd")))
1964 (synopsis "Slovak hyphenation patterns")
1965 (description "This package provides hyphenation patterns for Slovak in
1966 T1/EC and UTF-8 encodings.")
1967 (license license:gpl2+)))
1969 (define-public texlive-hyphen-slovenian
1971 (inherit (texlive-hyphen-package
1972 "texlive-hyphen-slovenian" "sl"
1973 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sl.tex")
1975 "02n8l9yf4hqyhbpsc1n6b2mggy09z6lq4dcb8ndiwawb6h0mp7s4")))
1976 (synopsis "Slovenian hyphenation patterns")
1977 (description "This package provides hyphenation patterns for Slovenian in
1978 T1/EC and UTF-8 encodings.")
1980 (license (list license:lppl1.0+ license:expat))))
1982 (define-public texlive-hyphen-spanish
1984 ;; The source files "eshyph-make.lua" and "eshyph.src" are provided to
1985 ;; generate obsolete hyphenation patterns, which aren't included in a
1986 ;; default TeX Live distribution, so we don't include them either.
1987 (inherit (texlive-hyphen-package
1988 "texlive-hyphen-spanish" "es"
1989 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-es.tex")
1991 "1h3yg9vcq0lf7hxv0ahkqmyg269dxjs8m2mz8sgz5l1fxmvahvaj")))
1992 (synopsis "Hyphenation patterns for Spanish")
1993 (description "The package provides hyphenation patterns for Spanish in
1994 T1/EC and UTF-8 encodings.")
1995 (license license:expat)))
1997 (define-public texlive-hyphen-swedish
1999 (inherit (texlive-hyphen-package
2000 "texlive-hyphen-swedish" "sv"
2001 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sv.tex")
2003 "1n7incy7n24pix1q2i8c3h7i78zpql5ayhskavlmy6mhd7ayncaw")))
2004 (synopsis "Swedish hyphenation patterns")
2005 (description "This package provides hyphenation patterns for Swedish in
2006 T1/EC and UTF-8 encodings.")
2007 (license license:lppl1.2+)))
2009 (define-public texlive-hyphen-thai
2011 (inherit (texlive-hyphen-package
2012 "texlive-hyphen-thai" "th"
2013 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-th.tex")
2015 "00gxcs4jfqifd5cnrjipn77m73fmpw2qms4lp216jj3kz4a7h9kf")))
2016 (synopsis "Thai hyphenation patterns")
2017 (description "This package provides hyphenation patterns for Thai in LTH
2018 and UTF-8 encodings.")
2019 (license license:lppl1.3+)))
2021 (define-public texlive-hyphen-turkish
2022 (let ((template (texlive-hyphen-package
2023 "texlive-hyphen-turkish" "tr"
2024 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-tr.tex")
2026 "04sihjgpm31i5bi67rrfp15w3imn7hxwwk70v0vhx053ghxy72vh"))))
2029 (synopsis "Hyphenation patterns for Turkish")
2030 (description "The package provides hyphenation patterns for Turkish in
2031 T1/EC and UTF-8 encodings. The patterns for Turkish were first produced for
2032 the Ottoman Texts Project in 1987 and were suitable for both Modern Turkish
2033 and Ottoman Turkish in Latin script, however the required character set didn't
2034 fit into EC encoding, so support for Ottoman Turkish had to be dropped to keep
2035 compatibility with 8-bit engines.")
2036 (license license:lppl1.0+))))
2038 (define-public texlive-hyphen-turkmen
2039 (let ((template (texlive-hyphen-package
2040 "texlive-hyphen-turkmen" "tk"
2041 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-tk.tex")
2043 "0g5ip2lw9g47s61mv3cypswc6qm7zy9c4iqq4h19ysvds81adzkr"))))
2046 (synopsis "Hyphenation patterns for Turkmen")
2047 (description "The package provides hyphenation patterns for Turkmen in
2048 T1/EC and UTF-8 encodings.")
2049 (license license:expat))))
2051 (define-public texlive-hyphen-ukrainian
2053 (inherit (texlive-hyphen-package
2054 "texlive-hyphen-ukrainian" "uk"
2055 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-uk.tex")
2057 "0fbfhx1fmbshxr4ihsjaqgx251h69h7i288p8gh3w6ysgxr53p60")))
2058 (synopsis "Ukrainian hyphenation patterns")
2059 (description "This package provides hyphenation patterns for Ukrainian in
2060 T2A and UTF-8 encodings.")
2061 ;; No version specified
2062 (license license:lppl)))
2064 (define-public texlive-hyphen-uppersorbian
2066 (inherit (texlive-hyphen-package
2067 "texlive-hyphen-uppersorbian" "hsb"
2068 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hsb.tex")
2070 "0x0051wph3sqmzzw6prvjy6bp7gn02rbmys1bmbc210jk3pkylfj")))
2071 (synopsis "Upper Sorbian hyphenation patterns")
2072 (description "This package provides hyphenation patterns for Upper Sorbian
2073 in T1/EC and UTF-8 encodings.")
2074 (license license:lppl1.3a+)))
2076 (define-public texlive-hyphen-welsh
2078 (inherit (texlive-hyphen-package
2079 "texlive-hyphen-welsh" "cy"
2080 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cy.tex")
2082 "1bpxp3jiifdw7waw2idz5j9xgi3526nkxm8mbmsspr4mlf2xyr76")))
2083 (synopsis "Welsh hyphenation patterns")
2084 (description "This package provides hyphenation patterns for Welsh in
2085 T1/EC and UTF-8 encodings.")
2087 (license (list license:lppl1.0+ license:expat))))
2089 (define-public texlive-hyph-utf8
2091 (inherit (simple-texlive-package
2093 (list "/source/generic/hyph-utf8/"
2094 "/source/luatex/hyph-utf8/"
2095 "/doc/luatex/hyph-utf8/"
2096 "/tex/luatex/hyph-utf8/etex.src"
2097 ;; Used to extract luatex-hyphen.lua
2098 "/tex/latex/base/docstrip.tex"
2100 ;; Documentation; we can't use the whole directory because
2101 ;; it includes files from other packages.
2102 "/doc/generic/hyph-utf8/CHANGES"
2103 "/doc/generic/hyph-utf8/HISTORY"
2104 "/doc/generic/hyph-utf8/hyph-utf8.pdf"
2105 "/doc/generic/hyph-utf8/hyph-utf8.tex"
2106 "/doc/generic/hyph-utf8/hyphenation-distribution.pdf"
2107 "/doc/generic/hyph-utf8/hyphenation-distribution.tex"
2108 "/doc/generic/hyph-utf8/img/miktex-languages.png"
2109 "/doc/generic/hyph-utf8/img/texlive-collection.png")
2111 "1bar5mc808ch20anhqrdxcwiych359qsvr7mggxpg2l2kq5xdyq0")))
2112 (outputs '("out" "doc"))
2113 (build-system gnu-build-system)
2115 `(#:tests? #f ; there are none
2116 #:modules ((guix build gnu-build-system)
2120 (list "-C" "source/luatex/hyph-utf8/"
2121 (string-append "DO_TEX = tex --interaction=nonstopmode '&tex' $<")
2122 (string-append "RUNDIR =" (assoc-ref %outputs "out") "/share/texmf-dist/tex/luatex/hyph-utf8/")
2123 (string-append "DOCDIR =" (assoc-ref %outputs "doc") "/share/texmf-dist/doc/luatex/hyph-utf8/")
2124 ;; hyphen.cfg is neither included nor generated, so let's only build the lua file.
2125 (string-append "UNPACKED = $(NAME).lua"))
2127 (modify-phases %standard-phases
2128 ;; TeX isn't usable at this point, so we first need to generate the
2131 (lambda* (#:key inputs outputs #:allow-other-keys)
2132 ;; Target directories must exist.
2133 (mkdir-p (string-append (assoc-ref %outputs "out")
2134 "/share/texmf-dist/tex/luatex/hyph-utf8/"))
2135 (mkdir-p (string-append (assoc-ref %outputs "doc")
2136 "/share/texmf-dist/doc/luatex/hyph-utf8/"))
2138 ;; We cannot build the documentation because that requires a
2139 ;; fully functional pdflatex, which depends on this package.
2140 (substitute* "source/luatex/hyph-utf8/Makefile"
2141 (("all: .*") "all: $(RUNFILES)\n"))
2143 ;; Find required fonts for building tex.fmt
2145 (string-append (assoc-ref inputs "texlive-cm")
2146 "/share/texmf-dist/fonts/tfm/public/cm:"
2147 (assoc-ref inputs "texlive-fonts-knuth-lib")
2148 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
2149 ;; ...and find all tex files in this environment.
2154 (map (match-lambda ((_ . dir) dir)) inputs)
2157 ;; Generate tex.fmt.
2158 (let ((where "source/luatex/hyph-utf8"))
2160 (with-directory-excursion where
2161 (invoke "tex" "-ini"
2162 (string-append (assoc-ref inputs "texlive-tex-plain")
2163 "/share/texmf-dist/tex/plain/config/tex.ini"))))))
2164 (add-before 'build 'build-loaders-and-converters
2165 (lambda* (#:key outputs #:allow-other-keys)
2166 (let* ((root (string-append (assoc-ref outputs "out")
2167 "/share/texmf-dist"))
2170 "/tex/generic/hyph-utf8/conversions")))
2174 (with-directory-excursion "source/generic/hyph-utf8"
2175 (substitute* "generate-converters.rb"
2176 (("\\$path_root=File.*")
2177 (string-append "$path_root=\"" root "\"\n"))
2178 ;; Avoid error with newer Ruby.
2179 (("#1\\{%") "#1{%%"))
2180 (invoke "ruby" "generate-converters.rb"))
2183 (lambda* (#:key source outputs #:allow-other-keys)
2184 (let ((doc (assoc-ref outputs "doc"))
2185 (out (assoc-ref outputs "out")))
2188 (string-append source "/doc")
2189 (string-append doc "/doc"))
2191 (string-append source "/tex/luatex/hyph-utf8/etex.src")
2192 (string-append out "/share/texmf-dist/tex/luatex/hyph-utf8/")))
2196 ("texlive-bin" ,texlive-bin)
2197 ;; The following packages are needed for build "tex.fmt", which we need
2198 ;; for a working "tex".
2199 ("texlive-tex-plain" ,texlive-tex-plain)
2200 ("texlive-cm" ,texlive-cm)
2201 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)
2202 ("texlive-hyphen-base" ,texlive-hyphen-base)))
2203 (home-page "https://ctan.org/pkg/hyph-utf8")
2204 (synopsis "Hyphenation patterns expressed in UTF-8")
2205 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
2206 hyphenation patterns in UTF-8 format, whereas older systems require
2207 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
2208 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
2209 etc). The present package offers a collection of conversions of existing
2210 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
2211 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
2212 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
2213 converters, will completely supplant the older patterns.")
2214 ;; Individual files each have their own license. Most of these files are
2215 ;; independent hyphenation patterns.
2216 (license (list license:lppl1.0+
2231 license:public-domain
2234 (define-public texlive-generic-hyph-utf8
2235 (deprecated-package "texlive-generic-hyph-utf8" texlive-hyph-utf8))
2237 (define-public texlive-dehyph-exptl
2239 (inherit (simple-texlive-package
2240 "texlive-dehyph-exptl"
2241 (list "/tex/generic/dehyph-exptl/"
2242 "/doc/generic/dehyph-exptl/")
2244 "1fnqc63gz8gvdyfz45bx8dxn1r1rwrypahs3bqd2vlc8ff76xp86")
2247 `(("texlive-hyphen-base" ,texlive-hyphen-base)
2248 ("texlive-hyph-utf8" ,texlive-hyph-utf8)))
2249 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
2250 (synopsis "Hyphenation patterns for German")
2251 (description "The package provides experimental hyphenation patterns for
2252 the German language, covering both traditional and reformed orthography. The
2253 patterns can be used with packages Babel and hyphsubst from the Oberdiek
2255 ;; Hyphenation patterns are under the Expat license; documentation is
2257 (license (list license:expat license:lppl))))
2259 (define-public texlive-generic-dehyph-exptl
2260 (deprecated-package "texlive-generic-dehyph-exptl" texlive-dehyph-exptl))
2262 (define-public texlive-ukrhyph
2264 (inherit (simple-texlive-package
2266 (list "/doc/generic/ukrhyph/"
2267 "/tex/generic/ukrhyph/")
2269 "01ma274sixcrbpb7fpqkxwfvrnzfj2srv9b4a42rfnph1pdql74z")
2271 (home-page "https://www.ctan.org/pkg/ukrhyph")
2272 (synopsis "Hyphenation patterns for Ukrainian")
2273 (description "The package provides a range of hyphenation patterns for
2274 Ukrainian, depending on the encoding of the output font including the standard
2276 (license license:lppl)))
2278 (define-public texlive-ruhyphen
2279 (let ((template (simple-texlive-package
2281 (list "/source/generic/ruhyphen/"
2282 "/tex/generic/ruhyphen/")
2284 "18n1bqhh8jv765vz3a3fjwffy7m71vhwx9yq8zl0p5j7p72q9qcn")
2289 (substitute-keyword-arguments (package-arguments template)
2291 `(modify-phases ,phases
2294 (let ((cwd (getcwd)))
2295 ;; Remove generated files.
2296 (for-each delete-file
2297 (find-files "tex/generic/ruhyphen/"
2299 (substitute* "source/generic/ruhyphen/Makefile"
2300 (("./mkcyryo") (string-append cwd "/source/generic/ruhyphen/mkcyryo")))
2301 (with-directory-excursion "tex/generic/ruhyphen"
2303 (string-append cwd "/source/generic/ruhyphen/Makefile"))))))))))
2305 `(("coreutils" ,coreutils)
2310 (home-page "https://www.ctan.org/pkg/ruhyphen")
2311 (synopsis "Hyphenation patterns for Russian")
2312 (description "The package provides a collection of Russian hyphenation
2313 patterns supporting a number of Cyrillic font encodings, including T2,
2314 UCY (Omega Unicode Cyrillic), LCY, LWN (OT2), and koi8-r.")
2315 (license license:lppl))))
2317 (define-public texlive-kpathsea
2319 (inherit (simple-texlive-package
2321 (list "/web2c/amiga-pl.tcx"
2322 "/web2c/cp1250cs.tcx"
2323 "/web2c/cp1250pl.tcx"
2324 "/web2c/cp1250t1.tcx"
2326 "/web2c/cp852-cs.tcx"
2327 "/web2c/cp852-pl.tcx"
2330 "/web2c/fmtutil.cnf"
2337 "/web2c/macce-pl.tcx"
2338 "/web2c/macce-t1.tcx"
2343 "/web2c/mktexdir.opt"
2345 "/web2c/mktexnam.opt"
2347 "/web2c/natural.tcx"
2348 "/web2c/tcvn-t5.tcx"
2349 "/web2c/viscii-t5.tcx")
2351 "191i8n3g46p53bb9dkx2ggwpzy7skgg0pbklsrpx8x4ayd86wcaf")
2353 (home-page "https://www.tug.org/texlive/")
2354 (synopsis "Files related to the path searching library for TeX")
2355 (description "Kpathsea is a library and utility programs which provide
2356 path searching facilities for TeX file types, including the self-locating
2357 feature required for movable installations, layered on top of a general search
2358 mechanism. This package provides supporting files.")
2359 (license license:lgpl3+)))
2361 (define-public texlive-latexconfig
2363 (inherit (simple-texlive-package
2364 "texlive-latexconfig"
2365 (list "/tex/latex/latexconfig/")
2367 "1wa7yhdpnz1nyidwgli68fyr33jn951bnniqrih5lj98k09rqc3h")
2369 (home-page "https://www.tug.org/")
2370 (synopsis "Configuration files for LaTeX-related formats")
2371 (description "The package provides configuration files for LaTeX-related
2373 (license license:lppl)))
2375 (define-public texlive-latex-base
2376 (let ((template (simple-texlive-package
2377 "texlive-latex-base"
2378 (list "/doc/latex/base/"
2379 "/source/latex/base/"
2380 ;; Almost all files in /tex/latex/base are generated, but
2382 "/tex/latex/base/idx.tex"
2383 "/tex/latex/base/lablst.tex"
2384 "/tex/latex/base/ltnews.cls"
2385 "/tex/latex/base/ltxcheck.tex"
2386 "/tex/latex/base/ltxguide.cls"
2387 "/tex/latex/base/minimal.cls"
2388 "/tex/latex/base/sample2e.tex"
2389 "/tex/latex/base/small2e.tex"
2390 "/tex/latex/base/testpage.tex"
2391 "/tex/latex/base/texsys.cfg")
2393 "0m0gjb4hbsf2iqkkx3px4f28r2scjvsjv4zb2whkbnb44apyw1f0")
2398 (substitute-keyword-arguments (package-arguments template)
2399 ((#:modules modules '())
2400 '((guix build gnu-build-system)
2405 `(modify-phases ,phases
2406 ;; The literal tab in the dtx file is translated to the string
2407 ;; "^^I" in the generated Lua file, which causes a syntax error.
2408 (add-after 'unpack 'fix-lua-sources
2410 (substitute* "source/latex/base/ltluatex.dtx"
2414 (lambda* (#:key inputs #:allow-other-keys)
2415 ;; Find required fonts
2421 (assoc-ref inputs pkg-name)
2422 "/share/texmf-dist/fonts/tfm/public"
2424 '(("texlive-etex" . "/etex")
2425 ("texlive-cm" . "/cm")
2426 ("texlive-fonts-latex" . "/latex-fonts")
2427 ("texlive-fonts-knuth-lib" . "/knuth-lib")))
2429 (let ((cwd (getcwd)))
2433 cwd "/source/latex/base//:"
2436 (map (match-lambda ((_ . dir) dir)) inputs)
2439 ;; This is the actual build step.
2441 (invoke "tex" "-ini" "-interaction=scrollmode"
2442 "-output-directory=build" "unpack.ins")
2444 ;; XXX: We can't build all formats at this point, nor are they
2445 ;; part of the LaTeX base, so we disable them. Actually, we
2446 ;; should be running this all in a profile hook, so that only
2447 ;; selected formats and hyphenation patterns are included, but it
2448 ;; takes long and TeX Live isn't designed to be modular like
2449 ;; that. Everything operates on a shared directory, which we
2450 ;; would only have at profile generation time.
2451 (let ((disabled-formats
2452 '("aleph aleph" "lamed aleph" "uptex uptex" "euptex euptex"
2453 "eptex eptex" "ptex ptex" "pdfxmltex pdftex" "platex eptex"
2454 "csplain pdftex" "mf mf-nowin" "mex pdftex" "pdfmex pdftex"
2456 "cont-en xetex" "cont-en pdftex" "pdfcsplain xetex"
2457 "pdfcsplain pdftex" "pdfcsplain luatex" "cslatex pdftex"
2458 "mptopdf pdftex" "uplatex euptex" "jadetex pdftex"
2459 "amstex pdftex" "pdfcslatex pdftex" "lollipop tex"
2460 "xmltex pdftex" "pdfjadetex pdftex" "eplain pdftex"
2461 "texsis pdftex" "mltex pdftex" "utf8mex pdftex")))
2463 (install-file (string-append
2464 (assoc-ref inputs "texlive-kpathsea")
2465 "/share/texmf-dist/web2c/fmtutil.cnf")
2467 (make-file-writable "web2c/fmtutil.cnf")
2468 (substitute* "web2c/fmtutil.cnf"
2469 (((string-append "^(" (string-join disabled-formats "|") ")") m)
2470 (string-append "#! " m))))
2471 (invoke "fmtutil-sys" "--all"
2473 (string-append "--cnffile=web2c/fmtutil.cnf"))
2474 ;; We don't actually want to install it.
2475 (delete-file "web2c/fmtutil.cnf")
2477 (add-after 'install 'install-more
2478 (lambda* (#:key inputs outputs #:allow-other-keys)
2479 (let* ((out (assoc-ref outputs "out"))
2480 (root (string-append out "/share/texmf-dist"))
2481 (target (string-append root "/tex/latex/base"))
2482 (web2c (string-append root "/web2c"))
2483 (makeindex (string-append root "/makeindex/latex")))
2484 (for-each delete-file (find-files "." "\\.(log|aux)$"))
2486 ;; The usedir directive in docstrip.ins is ignored, so these
2487 ;; two files end up in the wrong place. Move them.
2489 (for-each (lambda (file)
2490 (install-file file makeindex)
2494 (for-each (cut install-file <> target)
2495 (find-files "build" ".*"))
2496 (for-each (cut install-file <> web2c)
2497 (find-files "web2c" ".*"))
2500 `(("texlive-bin" ,texlive-bin)
2501 ("texlive-tex-ini-files" ,texlive-tex-ini-files)
2502 ("texlive-tex-plain" ,texlive-tex-plain)
2503 ("texlive-kpathsea" ,texlive-kpathsea)
2504 ("texlive-cm" ,texlive-cm)
2505 ("texlive-fonts-latex" ,texlive-fonts-latex)
2506 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)
2507 ("texlive-luatexconfig"
2509 "texlive-luatexconfig" (number->string %texlive-revision)
2510 (list "/tex/generic/config/luatex-unicode-letters.tex"
2511 "/tex/generic/config/luatexiniconfig.tex"
2512 "/web2c/texmfcnf.lua")
2514 "1gi87wy12r8w8fhx9ajcid382dmqzf6b9070b5nndvbbjrvhwf23")))))
2516 `(("texlive-dehyph-exptl" ,texlive-dehyph-exptl)
2517 ("texlive-etex" ,texlive-etex)
2518 ("texlive-hyph-utf8" ,texlive-hyph-utf8)
2519 ("texlive-hyphen-base" ,texlive-hyphen-base)
2520 ("texlive-hyphen-afrikaans" ,texlive-hyphen-afrikaans)
2521 ("texlive-hyphen-ancientgreek" ,texlive-hyphen-ancientgreek)
2522 ("texlive-hyphen-armenian" ,texlive-hyphen-armenian)
2523 ("texlive-hyphen-basque" ,texlive-hyphen-basque)
2524 ("texlive-hyphen-belarusian" ,texlive-hyphen-belarusian)
2525 ("texlive-hyphen-bulgarian" ,texlive-hyphen-bulgarian)
2526 ("texlive-hyphen-catalan" ,texlive-hyphen-catalan)
2527 ("texlive-hyphen-chinese" ,texlive-hyphen-chinese)
2528 ("texlive-hyphen-churchslavonic" ,texlive-hyphen-churchslavonic)
2529 ("texlive-hyphen-coptic" ,texlive-hyphen-coptic)
2530 ("texlive-hyphen-croatian" ,texlive-hyphen-croatian)
2531 ("texlive-hyphen-czech" ,texlive-hyphen-czech)
2532 ("texlive-hyphen-danish" ,texlive-hyphen-danish)
2533 ("texlive-hyphen-dutch" ,texlive-hyphen-dutch)
2534 ("texlive-hyphen-english" ,texlive-hyphen-english)
2535 ("texlive-hyphen-esperanto" ,texlive-hyphen-esperanto)
2536 ("texlive-hyphen-estonian" ,texlive-hyphen-estonian)
2537 ("texlive-hyphen-ethiopic" ,texlive-hyphen-ethiopic)
2538 ("texlive-hyphen-finnish" ,texlive-hyphen-finnish)
2539 ("texlive-hyphen-french" ,texlive-hyphen-french)
2540 ("texlive-hyphen-friulan" ,texlive-hyphen-friulan)
2541 ("texlive-hyphen-galician" ,texlive-hyphen-galician)
2542 ("texlive-hyphen-georgian" ,texlive-hyphen-georgian)
2543 ("texlive-hyphen-german" ,texlive-hyphen-german)
2544 ("texlive-hyphen-greek" ,texlive-hyphen-greek)
2545 ("texlive-hyphen-hungarian" ,texlive-hyphen-hungarian)
2546 ("texlive-hyphen-icelandic" ,texlive-hyphen-icelandic)
2547 ("texlive-hyphen-indic" ,texlive-hyphen-indic)
2548 ("texlive-hyphen-indonesian" ,texlive-hyphen-indonesian)
2549 ("texlive-hyphen-interlingua" ,texlive-hyphen-interlingua)
2550 ("texlive-hyphen-irish" ,texlive-hyphen-irish)
2551 ("texlive-hyphen-italian" ,texlive-hyphen-italian)
2552 ("texlive-hyphen-kurmanji" ,texlive-hyphen-kurmanji)
2553 ("texlive-hyphen-latin" ,texlive-hyphen-latin)
2554 ("texlive-hyphen-latvian" ,texlive-hyphen-latvian)
2555 ("texlive-hyphen-lithuanian" ,texlive-hyphen-lithuanian)
2556 ("texlive-hyphen-mongolian" ,texlive-hyphen-mongolian)
2557 ("texlive-hyphen-norwegian" ,texlive-hyphen-norwegian)
2558 ("texlive-hyphen-occitan" ,texlive-hyphen-occitan)
2559 ("texlive-hyphen-pali" ,texlive-hyphen-pali)
2560 ("texlive-hyphen-piedmontese" ,texlive-hyphen-piedmontese)
2561 ("texlive-hyphen-polish" ,texlive-hyphen-polish)
2562 ("texlive-hyphen-portuguese" ,texlive-hyphen-portuguese)
2563 ("texlive-hyphen-romanian" ,texlive-hyphen-romanian)
2564 ("texlive-hyphen-romansh" ,texlive-hyphen-romansh)
2565 ("texlive-hyphen-russian" ,texlive-hyphen-russian)
2566 ("texlive-hyphen-sanskrit" ,texlive-hyphen-sanskrit)
2567 ("texlive-hyphen-serbian" ,texlive-hyphen-serbian)
2568 ("texlive-hyphen-slovak" ,texlive-hyphen-slovak)
2569 ("texlive-hyphen-slovenian" ,texlive-hyphen-slovenian)
2570 ("texlive-hyphen-spanish" ,texlive-hyphen-spanish)
2571 ("texlive-hyphen-swedish" ,texlive-hyphen-swedish)
2572 ("texlive-hyphen-thai" ,texlive-hyphen-thai)
2573 ("texlive-hyphen-turkish" ,texlive-hyphen-turkish)
2574 ("texlive-hyphen-turkmen" ,texlive-hyphen-turkmen)
2575 ("texlive-hyphen-ukrainian" ,texlive-hyphen-ukrainian)
2576 ("texlive-hyphen-uppersorbian" ,texlive-hyphen-uppersorbian)
2577 ("texlive-hyphen-welsh" ,texlive-hyphen-welsh)
2578 ("texlive-unicode-data" ,texlive-unicode-data)
2579 ("texlive-ukrhyph" ,texlive-ukrhyph)
2580 ("texlive-ruhyphen" ,texlive-ruhyphen)
2581 ("texlive-latexconfig" ,texlive-latexconfig)))
2582 (home-page "https://www.ctan.org/pkg/latex-base")
2583 (synopsis "Base sources of LaTeX")
2585 "This bundle comprises the source of LaTeX itself, together with several
2586 packages which are considered \"part of the kernel\". This bundle, together
2587 with the required packages, constitutes what every LaTeX distribution should
2589 (license license:lppl1.3c+))))
2591 (define-public texlive-latex-filecontents
2593 (name "texlive-latex-filecontents")
2594 (version (number->string %texlive-revision))
2597 (uri (texlive-ref "latex" "filecontents"))
2598 (file-name (string-append name "-" version "-checkout"))
2601 "1h78zw0vhldx478zs4v86ajg7vpkysd1kg3npc480qqls3q6ba40"))))
2602 (build-system texlive-build-system)
2603 (arguments '(#:tex-directory "latex/filecontents"))
2604 (home-page "https://www.ctan.org/pkg/filecontents")
2605 (synopsis "Extended filecontents and filecontents* environments")
2607 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
2608 enable a LaTeX source file to generate external files as it runs through
2609 LaTeX. However, there are two limitations of these environments: they refuse
2610 to overwrite existing files, and they can only be used in the preamble of a
2611 document. The filecontents package removes these limitations, letting you
2612 overwrite existing files and letting you use @code{filecontents} /
2613 @code{filecontents*} anywhere.")
2614 (license license:lppl1.3c+)))
2616 (define-public texlive-generic-ifxetex
2618 (name "texlive-generic-ifxetex")
2619 (version (number->string %texlive-revision))
2622 (uri (texlive-ref "generic" "ifxetex"))
2623 (file-name (string-append name "-" version "-checkout"))
2626 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
2627 (build-system texlive-build-system)
2629 '(#:tex-directory "generic/ifxetex"
2630 #:tex-format "xelatex"))
2632 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2633 (home-page "https://www.ctan.org/pkg/ifxetex")
2634 (synopsis "Am I running under XeTeX?")
2636 "This is a simple package which provides an @code{\\ifxetex} conditional,
2637 so that other code can determine that it is running under XeTeX. The package
2638 requires the e-TeX extensions to the TeX primitive set.")
2639 (license license:lppl1.3c+)))
2641 (define-public texlive-epsf
2643 (inherit (simple-texlive-package
2645 (list "/doc/generic/epsf/"
2646 "/tex/generic/epsf/")
2648 "03jcf0kqh47is965d2590miwj7d5kif3c4mgsnvkyl664jzjkh92")
2650 (home-page "https://www.ctan.org/pkg/epsf")
2651 (synopsis "Simple macros for EPS inclusion")
2653 "This package provides the original (and now obsolescent) graphics
2654 inclusion macros for use with dvips, still widely used by Plain TeX users (in
2655 particular). For LaTeX users, the package is nowadays (rather strongly)
2656 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
2657 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
2658 users, via its Plain TeX version.)")
2659 (license license:public-domain)))
2661 (define-public texlive-generic-epsf
2662 (deprecated-package "texlive-generic-epsf" texlive-epsf))
2664 (define-public texlive-latex-fancyvrb
2666 (inherit (simple-texlive-package
2667 "texlive-latex-fancyvrb"
2668 (list "/doc/latex/fancyvrb/README"
2669 "/tex/latex/fancyvrb/")
2671 "1dwkcradz9nwpjwmv1sjzn77lvw25ypr0rrgmf1kd8pd2mw7dxcn")
2673 (home-page "https://www.ctan.org/pkg/fancyvrb")
2674 (synopsis "Sophisticated verbatim text")
2676 "This package provides tools for the flexible handling of verbatim text
2677 including: verbatim commands in footnotes; a variety of verbatim environments
2678 with many parameters; ability to define new customized verbatim environments;
2679 save and restore verbatim text and environments; write and read files in
2680 verbatim mode; build \"example\" environments (showing both result and
2682 (license license:lppl1.0+)))
2684 (define-public texlive-graphics-def
2686 (inherit (simple-texlive-package
2687 "texlive-graphics-def"
2688 (list "/doc/latex/graphics-def/README.md"
2689 "/tex/latex/graphics-def/")
2691 "0zrbn9cwfnnrrl3b2zsd74ldksp9jwpvjh7z93ild1m75crpb39a")
2693 (home-page "https://www.ctan.org/pkg/latex-graphics")
2694 (synopsis "Color and graphics option files")
2696 "This bundle is a combined distribution consisting of @file{dvips.def},
2697 @file{pdftex.def}, @file{luatex.def}, @file{xetex.def}, @file{dvipdfmx.def},
2698 and @file{dvisvgm.def} driver option files for the LaTeX graphics and color
2700 (license license:lppl1.3c+)))
2702 (define-public texlive-graphics-cfg
2704 (inherit (simple-texlive-package
2705 "texlive-graphics-cfg"
2706 (list "/doc/latex/graphics-cfg/README.md"
2707 "/tex/latex/graphics-cfg/")
2709 "00n63adb2laf43lzix39xl68aq0k5k80mmrw602w99w5n7f96gsf")
2711 (home-page "https://www.ctan.org/pkg/latex-graphics")
2712 (synopsis "Sample configuration files for LaTeX color and graphics")
2714 "This bundle includes @file{color.cfg} and @file{graphics.cfg} files that
2715 set default \"driver\" options for the color and graphics packages.")
2716 (license license:public-domain)))
2718 (define-public texlive-latex-graphics
2720 (name "texlive-latex-graphics")
2721 (version (number->string %texlive-revision))
2724 (uri (texlive-ref "latex" "graphics"))
2725 (file-name (string-append name "-" version "-checkout"))
2728 "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz"))))
2729 (build-system texlive-build-system)
2730 (arguments '(#:tex-directory "latex/graphics"))
2732 `(("texlive-graphics-cfg" ,texlive-graphics-cfg)
2733 ("texlive-graphics-def" ,texlive-graphics-def)))
2734 (home-page "https://www.ctan.org/pkg/latex-graphics")
2735 (synopsis "LaTeX standard graphics bundle")
2737 "This is a collection of LaTeX packages for producing color, including
2738 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
2739 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
2740 keyval, and lscape.")
2741 (license license:lppl1.3c+)))
2743 (define-public texlive-xcolor
2744 (let ((template (simple-texlive-package
2746 (list "/doc/latex/xcolor/"
2747 "/source/latex/xcolor/")
2749 "12q6spmpxg30alhvarjmxzigmz7lazapbrb0mc4vhbn6n1sdz7pp"))))
2753 (substitute-keyword-arguments (package-arguments template)
2754 ((#:tex-directory _ #t)
2757 `(modify-phases ,phases
2758 (add-after 'unpack 'chdir
2759 (lambda _ (chdir "source/latex/xcolor") #t))
2760 (add-after 'install 'move-files
2761 (lambda* (#:key outputs #:allow-other-keys)
2762 (let ((share (string-append (assoc-ref outputs "out")
2763 "/share/texmf-dist")))
2764 (mkdir-p (string-append share "/dvips/xcolor"))
2765 (rename-file (string-append share "/tex/latex/xcolor/xcolor.pro")
2766 (string-append share "/dvips/xcolor/xcolor.pro"))
2768 (home-page "https://www.ctan.org/pkg/xcolor")
2769 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
2771 "The package starts from the basic facilities of the colorcolor package,
2772 and provides easy driver-independent access to several kinds of color tints,
2773 shades, tones, and mixes of arbitrary colors. It allows a user to select a
2774 document-wide target color model and offers complete tools for conversion
2775 between eight color models. Additionally, there is a command for alternating
2776 row colors plus repeated non-aligned material (like horizontal lines) in
2778 (license license:lppl1.2+))))
2780 (define-public texlive-latex-xcolor
2781 (deprecated-package "texlive-latex-xcolor" texlive-xcolor))
2783 (define-public texlive-latex-hyperref
2785 (name "texlive-latex-hyperref")
2787 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
2788 ;; so we fetch the release from GitHub.
2791 (uri (string-append "https://github.com/ho-tex/hyperref/"
2792 "archive/release-" version ".tar.gz"))
2793 (file-name (string-append name "-" version ".tar.gz"))
2796 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
2797 (build-system texlive-build-system)
2798 (arguments '(#:tex-directory "latex/hyperref"))
2800 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek) ; for ltxcmds.sty
2801 ("texlive-latex-url" ,texlive-latex-url)))
2802 (home-page "https://www.ctan.org/pkg/hyperref")
2803 (synopsis "Extensive support for hypertext in LaTeX")
2805 "The @code{hyperref} package is used to handle cross-referencing commands
2806 in LaTeX to produce hypertext links in the document. The package provides
2807 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
2808 embedded @code{pdfmark} commands for processing by Acrobat
2809 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
2810 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
2811 pdf and HTML backends. The package is distributed with the @code{backref} and
2812 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
2813 (license license:lppl1.3+)))
2815 (define-public texlive-latex-oberdiek
2817 (name "texlive-latex-oberdiek")
2818 (version (number->string %texlive-revision))
2821 (uri (texlive-ref "latex" "oberdiek"))
2822 (file-name (string-append name "-" version "-checkout"))
2825 "0pi2d6gsddcs9wprdbar46s91kdc5fxl1m79g7xrbccsx8s9xbml"))))
2826 (build-system texlive-build-system)
2828 '(#:tex-directory "latex/oberdiek"
2829 #:build-targets '("oberdiek.ins")
2831 (modify-phases %standard-phases
2832 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
2833 (add-after 'unpack 'do-not-process-ifpdf.ins
2835 (substitute* "oberdiek.ins"
2836 (("ifpdf.ins") "ifpdf.dtx"))
2839 `(("texlive-generic-ifxetex" ,texlive-generic-ifxetex)))
2840 (home-page "https://www.ctan.org/pkg/oberdiek")
2841 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
2843 "The bundle comprises various LaTeX packages, providing among others:
2844 better accessibility support for PDF files; extensible chemists reaction
2845 arrows; record information about document class(es) used; and many more.")
2846 (license license:lppl1.3+)))
2848 (define-public texlive-latex-tools
2850 (name "texlive-latex-tools")
2851 (version (number->string %texlive-revision))
2854 (uri (texlive-ref "latex" "tools"))
2855 (file-name (string-append name "-" version "-checkout"))
2858 "1wqvn4z0s92h5iqzrvxw7hinzp95avjk9v8lnqbqr4kz6nv4xb9l"))))
2859 (build-system texlive-build-system)
2861 '(#:tex-directory "latex/tools"
2862 #:build-targets '("tools.ins")))
2863 (home-page "https://www.ctan.org/pkg/latex-tools")
2864 (synopsis "LaTeX standard tools bundle")
2866 "This package is a collection of (variously) simple tools provided as
2867 part of the LaTeX required tools distribution, comprising the following
2868 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
2869 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
2870 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
2872 (license license:lppl1.3+)))
2874 (define-public texlive-url
2876 (inherit (simple-texlive-package
2878 (list "/doc/latex/url/"
2881 "184m40wgnx939ky2hbxnj0v9aak023ldrhgffp0lgyk9wdqpxlqg")
2883 (home-page "https://www.ctan.org/pkg/url")
2884 (synopsis "Verbatim with URL-sensitive line breaks")
2885 (description "The command @code{\\url} is a form of verbatim command that
2886 allows linebreaks at certain characters or combinations of characters, accepts
2887 reconfiguration, and can usually be used in the argument to another command.
2888 The command is intended for email addresses, hypertext links,
2889 directories/paths, etc., which normally have no spaces, so by default the
2890 package ignores spaces in its argument. However, a package option allows
2891 spaces, which is useful for operating systems where spaces are a common part
2893 ;; The license header states that it is under LPPL version 2 or later, but
2894 ;; the latest version is 1.3c.
2895 (license license:lppl1.3c+)))
2897 (define-public texlive-latex-url
2898 (deprecated-package "texlive-latex-url" texlive-url))
2900 (define-public texlive-tetex
2902 (inherit (simple-texlive-package
2904 (list "/dvips/tetex/"
2905 "/fonts/enc/dvips/tetex/"
2906 "/fonts/map/dvips/tetex/")
2908 "1si3as8mwi8837965djlw6jhwwzsp3r1hkflvdxv2avx9vb45hjb")
2910 (home-page "https://www.ctan.org/pkg/tetex")
2911 (synopsis "Font maps originally from teTeX")
2912 (description "This package provides font maps that were originally part of
2913 the now obsolete teTeX distributions but are still used at the core of the TeX
2914 Live distribution.")
2915 (license license:public-domain)))
2917 (define-public texlive-latex-l3kernel
2919 (name "texlive-latex-l3kernel")
2920 (version (number->string %texlive-revision))
2923 (uri (texlive-ref "latex" "l3kernel"))
2924 (file-name (string-append name "-" version "-checkout"))
2927 "0s77z2cbv841l45qrpf0s8qhzfa4wi689lg7zkw88qg18nzvy0ly"))))
2928 (build-system texlive-build-system)
2930 '(#:tex-directory "latex/l3kernel"))
2931 (home-page "https://www.ctan.org/pkg/l3kernel")
2932 (synopsis "LaTeX3 programmers’ interface")
2934 "The l3kernel bundle provides an implementation of the LaTeX3
2935 programmers’ interface, as a set of packages that run under LaTeX 2e. The
2936 interface provides the foundation on which the LaTeX3 kernel and other future
2937 code are built: it is an API for TeX programmers. The packages are set up so
2938 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
2939 (license license:lppl1.3c+)))
2941 (define-public texlive-latex-l3packages
2943 (name "texlive-latex-l3packages")
2944 (version (number->string %texlive-revision))
2947 (uri (texlive-ref "latex" "l3packages"))
2948 (file-name (string-append name "-" version "-checkout"))
2951 "1cv4fk9pabh7mkxhfsdmh4k8xpmzg1psgcsvd11c869m7n3a629h"))))
2952 (build-system texlive-build-system)
2954 '(#:tex-directory "latex/l3packages"
2955 ;; build-targets must be specified manually since they are in
2957 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
2959 (modify-phases %standard-phases
2960 ;; All package sources are in sub-directories, so we need to add them
2962 (add-after 'unpack 'set-TEXINPUTS
2964 (let ((cwd (getcwd)))
2966 (string-append cwd "/l3keys2e:"
2971 ;; The terminating ":" is required to include the
2972 ;; l3kernel input as well.
2977 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
2978 (home-page "https://www.ctan.org/pkg/l3packages")
2979 (synopsis "High-level LaTeX3 concepts")
2981 "This bundle holds prototype implementations of concepts for a LaTeX
2982 designer interface, to be used with the experimental LaTeX kernel as
2983 programming tools and kernel support. Packages provided in this release are:
2986 @item l3keys2e, which makes the facilities of the kernel module l3keys
2987 available for use by LaTeX 2e packages;
2988 @item xfrac, which provides flexible splitlevel fractions;
2989 @item xparse, which provides a high-level interface for declaring document
2991 @item xtemplate, which provides a means of defining generic functions using a
2994 (license license:lppl1.3c+)))
2996 (define-public texlive-latex-fontspec
2998 (name "texlive-latex-fontspec")
2999 (version (number->string %texlive-revision))
3002 (uri (texlive-ref "latex" "fontspec"))
3003 (file-name (string-append name "-" version "-checkout"))
3006 "1223cw029n6zff7pqpwbsq1x8v3w63smczkmnybqxkw5h2za8gbz"))))
3007 (build-system texlive-build-system)
3009 '(#:tex-directory "latex/fontspec"
3011 (modify-phases %standard-phases
3012 (add-after 'install 'install-default-fontspec.cfg
3013 (lambda* (#:key outputs #:allow-other-keys)
3014 (with-output-to-file
3015 (string-append (assoc-ref outputs "out")
3016 "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg")
3019 %%% FONTSPEC.CFG %%%
3021 % This configuration file sets up TeX Ligatures by default for all fonts loaded
3022 % with `\\setmainfont` and `\\setsansfont`.
3024 % In addition, `\\setmonofont` has default features to enforce \"monospace\"
3025 % settings with regard to space stretchability and shrinkability.
3027 \\defaultfontfeatures
3028 [\\rmfamily,\\sffamily]
3031 \\defaultfontfeatures
3035 PunctuationSpace=WordSpace}
3039 `(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
3040 (home-page "https://www.ctan.org/pkg/fontspec")
3041 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
3043 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
3044 automatic and unified interface to feature-rich AAT and OpenType fonts through
3045 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
3046 the l3kernel and xparse bundles from the LaTeX 3 development team.")
3047 (license license:lppl1.3+)))
3049 ;; The SVN directory contains little more than a dtx file that generates three
3050 ;; of the many lua files that should be installed as part of this package.
3051 ;; This is why we take the release from GitHub instead.
3052 (define-public texlive-luatex-lualibs
3054 (name "texlive-luatex-lualibs")
3058 (uri (string-append "https://github.com/lualatex/lualibs/"
3059 "releases/download/v"
3060 version "/lualibs.zip"))
3061 (file-name (string-append name "-" version ".zip"))
3064 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
3065 (build-system gnu-build-system)
3068 (list (string-append "DESTDIR="
3069 (assoc-ref %outputs "out")
3070 "/share/texmf-dist"))
3072 (modify-phases %standard-phases
3073 (delete 'configure))))
3075 `(("texlive-bin" ,texlive-bin)
3078 (home-page "https://github.com/lualatex/lualibs")
3079 (synopsis "Lua modules for general programming (in the (La)TeX world)")
3081 "Lualibs is a collection of Lua modules useful for general programming.
3082 The bundle is based on Lua modules shipped with ConTeXt, and made available in
3083 this bundle for use independent of ConTeXt.")
3084 ;; GPL version 2 only
3085 (license license:gpl2)))
3087 (define-public texlive-luatex-luaotfload
3089 (name "texlive-luatex-luaotfload")
3090 (version "2.8-fix-2")
3091 ;; The release tarball does not contain all source files.
3095 (url "https://github.com/lualatex/luaotfload.git")
3096 (commit (string-append "v" version))))
3097 (file-name (git-file-name name version))
3100 "0l5l7iq3dxcxl65qaghcpjg27yd9iw1sxa8pnd7xlvlm09dhfdnf"))))
3101 (build-system gnu-build-system)
3104 (list (string-append "DESTDIR="
3105 (assoc-ref %outputs "out")
3106 "/share/texmf-dist")
3108 #:parallel-build? #f ; not supported
3110 (modify-phases %standard-phases
3112 (lambda* (#:key inputs #:allow-other-keys)
3113 (substitute* "doc/Makefile"
3114 (("rst2man") "rst2man.py")
3115 ;; Don't build the PDF. This requires more of LaTeX.
3116 (("\\$\\(DOCPDF\\)") ""))
3118 (substitute* "Makefile"
3119 ;; We don't build the PDF, so don't attempt to install it.
3120 (("cp \\$\\(RESOURCES\\) \\$\\(DOCPDF\\)")
3122 (("= \\$\\(DOCPDF\\)") "= ")
3123 ;; Fix name of fontloader file
3124 (("^LOADER.*= \\$\\(BUILDDIR\\)/fontloader-\\$\\(shell date \\+%F\\).lua")
3125 "LOADER = $(BUILDDIR)/fontloader.lua"))
3129 ;; Don't download this file.
3130 (copy-file (assoc-ref inputs "glyphlist")
3131 "build/glyphlist.txt")
3135 `((committer . "Philipp Gesang <phg@phi-gamma.net>")
3136 (description . ,version)
3137 (loader . "fontloader.lua")
3138 (revision . "ad480924393fffa2896156e1a32c22f5c61120dd")
3139 (timestamp . "2019-01-01 00:00:00 +0000"))))
3140 (substitute* "scripts/mkstatus"
3141 (("local notes.*=.*")
3142 (string-append "local notes = {"
3144 (map (lambda (entry)
3145 (format "[\"~a\"]=\"~a\","
3146 (symbol->string (car entry))
3154 ("graphviz" ,graphviz)
3155 ("lualatex" ,(texlive-union (list texlive-luatex-lualibs
3156 texlive-context-base)))
3157 ("python-docutils" ,python-docutils)
3161 (uri (string-append "https://raw.githubusercontent.com/adobe-type-tools/"
3162 "agl-aglfn/b2a04cb906f9257cc06a2fe0ad4b3d663bc02136/"
3165 (base32 "1s6svfw23rqzdvflv8frgd4xrwvrmsj8szwzqgcd39dp9rpjafjp"))))))
3167 `(("texlive-luatex-lualibs" ,texlive-luatex-lualibs)))
3168 (home-page "https://github.com/lualatex/luaotfload")
3169 (synopsis "OpenType font loader for LuaTeX")
3171 "Luaotfload is an adaptation of the ConTeXt font loading system for the
3172 Plain and LaTeX formats. It allows OpenType fonts to be loaded with font
3173 features accessible using an extended font request syntax while providing
3174 compatibilitywith XeTeX. By indexing metadata in a database it facilitates
3175 loading fonts by their proper names instead of file names.")
3176 ;; GPL version 2 only
3177 (license license:gpl2)))
3179 (define-public texlive-latex-amsmath
3181 (name "texlive-latex-amsmath")
3182 (version (number->string %texlive-revision))
3185 (uri (texlive-ref "latex" "amsmath"))
3186 (file-name (string-append name "-" version "-checkout"))
3189 "0qgk2332dacsxn1z95qzp35gbs7wrzl1ipjdhnmk1r897msm4sf5"))))
3190 (build-system texlive-build-system)
3191 (arguments '(#:tex-directory "latex/amsmath"))
3192 (home-page "https://www.ctan.org/pkg/amsmath")
3193 (synopsis "AMS mathematical facilities for LaTeX")
3195 "This is the principal package in the AMS-LaTeX distribution. It adapts
3196 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
3197 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
3198 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
3199 symbols), @code{amsopnamsopn} (for operator names) and
3200 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
3201 This package is part of the LaTeX required distribution; however, several
3202 contributed packages add still further to its appeal; examples are
3203 @code{empheqempheq}, which provides functions for decorating and highlighting
3204 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
3206 (license license:lppl1.3c+)))
3208 (define-public texlive-latex-amscls
3210 (name "texlive-latex-amscls")
3211 (version (number->string %texlive-revision))
3214 (uri (texlive-ref "latex" "amscls"))
3215 (file-name (string-append name "-" version "-checkout"))
3218 "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca"))))
3219 (build-system texlive-build-system)
3221 `(#:tex-directory "latex/amscls"))
3222 (home-page "https://www.ctan.org/pkg/amscls")
3223 (synopsis "AMS document classes for LaTeX")
3225 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
3226 articles for the AMS), @code{amsbookamsbook} (for books) and
3227 @code{amsprocamsproc} (for proceedings), together with some supporting
3228 material. The material is made available as part of the AMS-LaTeX
3230 (license license:lppl1.3c+)))
3232 (define-public texlive-latex-babel
3234 (name "texlive-latex-babel")
3235 (version (number->string %texlive-revision))
3238 (uri (texlive-ref "latex" "babel"))
3239 (file-name (string-append name "-" version "-checkout"))
3242 "1rwqq841i1rxywymzwkw0cw2yhgvxwjx5mgygfasvypwrwll6f6s"))))
3243 (build-system texlive-build-system)
3245 '(#:tex-directory "generic/babel"
3247 (modify-phases %standard-phases
3248 ;; This package tries to produce babel.aux twice but refuses to
3249 ;; overwrite the first one.
3250 (add-before 'build 'fix-ins
3252 (substitute* "babel.ins"
3253 (("askonceonly") "askforoverwritefalse"))
3255 (home-page "https://www.ctan.org/pkg/babel")
3256 (synopsis "Multilingual support for Plain TeX or LaTeX")
3258 "The package manages culturally-determined typographical (and other)
3259 rules, and hyphenation patterns for a wide range of languages. A document may
3260 select a single language to be supported, or it may select several, in which
3261 case the document may switch from one language to another in a variety of
3262 ways. Babel uses contributed configuration files that provide the detail of
3263 what has to be done for each language. Users of XeTeX are advised to use the
3264 polyglossia package rather than Babel.")
3265 (license license:lppl1.3+)))
3267 (define-public texlive-generic-babel-english
3269 (name "texlive-generic-babel-english")
3270 (version (number->string %texlive-revision))
3273 (uri (texlive-ref "generic" "babel-english"))
3274 (file-name (string-append name "-" version "-checkout"))
3277 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
3278 (build-system texlive-build-system)
3279 (arguments '(#:tex-directory "generic/babel-english"))
3280 (home-page "https://www.ctan.org/pkg/babel-english")
3281 (synopsis "Babel support for English")
3283 "This package provides the language definition file for support of
3284 English in @code{babel}. Care is taken to select British hyphenation patterns
3285 for British English and Australian text, and default (\"american\") patterns
3286 for Canadian and USA text.")
3287 (license license:lppl1.3+)))
3289 (define-public texlive-generic-babel-german
3291 (name "texlive-generic-babel-german")
3292 (version (number->string %texlive-revision))
3295 (uri (texlive-ref "generic" "babel-german"))
3296 (file-name (string-append name "-" version "-checkout"))
3299 "129f9w41cb6yyrr6kpv3zz9ml6334hyq1wcz7j9jn47p0hlxqfk8"))))
3300 (build-system texlive-build-system)
3301 (arguments '(#:tex-directory "generic/babel-german"))
3302 (home-page "https://www.ctan.org/pkg/babel-german")
3303 (synopsis "Babel support for German")
3305 "This package provides the language definition file for support of German
3306 in @code{babel}. It provides all the necessary macros, definitions and
3307 settings to typeset German documents. The bundle includes support for the
3308 traditional and reformed German orthography as well as for the Austrian and
3309 Swiss varieties of German.")
3310 (license license:lppl1.3+)))
3312 (define-public texlive-latex-cyrillic
3314 (name "texlive-latex-cyrillic")
3315 (version (number->string %texlive-revision))
3318 (uri (texlive-ref "latex" "cyrillic"))
3319 (file-name (string-append name "-" version "-checkout"))
3322 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
3323 (build-system texlive-build-system)
3325 '(#:tex-directory "latex/cyrillic"))
3326 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
3327 (synopsis "Support for Cyrillic fonts in LaTeX")
3329 "This bundle of macros files provides macro support (including font
3330 encoding macros) for the use of Cyrillic characters in fonts encoded under the
3331 T2* and X2 encodings. These encodings cover (between them) pretty much every
3332 language that is written in a Cyrillic alphabet.")
3333 (license license:lppl1.3c+)))
3335 (define-public texlive-latex-psnfss
3337 (name "texlive-latex-psnfss")
3338 (version (number->string %texlive-revision))
3341 (uri (texlive-ref "latex" "psnfss"))
3342 (file-name (string-append name "-" version "-checkout"))
3345 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
3346 (build-system texlive-build-system)
3347 (arguments '(#:tex-directory "latex/psnfss"))
3348 (home-page "https://www.ctan.org/pkg/psnfss")
3349 (synopsis "Font support for common PostScript fonts")
3351 "The PSNFSS collection includes a set of files that provide a complete
3352 working setup of the LaTeX font selection scheme (NFSS2) for use with common
3353 PostScript fonts. It covers the so-called \"Base\" fonts (which are built
3354 into any Level 2 PostScript printing device and the Ghostscript interpreter)
3355 and a number of free fonts. It provides font definition files, macros and
3356 font metrics. The bundle as a whole is part of the LaTeX required set of
3358 (license license:lppl1.2+)))
3360 ;; For user profiles
3361 (define-public texlive-base
3362 (let ((default-packages
3368 texlive-metafont-base
3370 ;; LaTeX packages from the "required" set.
3371 texlive-latex-amsmath
3372 texlive-latex-amscls
3374 texlive-generic-babel-english
3375 texlive-latex-cyrillic
3376 texlive-latex-graphics
3377 texlive-latex-psnfss
3381 (name "texlive-base")
3382 (version (number->string %texlive-revision))
3384 (build-system trivial-build-system)
3387 (begin (mkdir (assoc-ref %outputs "out")))))
3389 (map (lambda (package)
3390 (list (package-name package) package))
3392 (home-page (package-home-page texlive-bin))
3393 (synopsis "TeX Live base packages")
3394 (description "This is a very limited subset of the TeX Live distribution.
3395 It includes little more than the required set of LaTeX packages.")
3396 (license (fold (lambda (package result)
3397 (match (package-license package)
3399 (append lst result))
3400 ((? license:license? license)
3401 (cons license result))))
3403 default-packages)))))
3405 ;; For use in package definitions only
3406 (define-public texlive-union
3407 (lambda* (#:optional (packages '()))
3408 "Return 'texlive-union' package which is a union of PACKAGES and the
3409 standard LaTeX packages."
3410 (let ((default-packages (match (package-propagated-inputs texlive-base)
3411 (((labels packages) ...) packages))))
3412 (package (inherit texlive-base)
3413 (name "texlive-union")
3414 (build-system trivial-build-system)
3416 '(#:modules ((guix build union)
3418 (guix build texlive-build-system)
3419 (guix build gnu-build-system)
3420 (guix build gremlin)
3424 (use-modules (ice-9 match)
3429 (guix build texlive-build-system))
3430 (let* ((out (assoc-ref %outputs "out"))
3431 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
3432 ;; Build a modifiable union of all inputs (but exclude bash and
3433 ;; the updmap.cfg file)
3434 (match (filter (match-lambda
3436 (not (member name '("bash"
3441 (((names . directories) ...)
3442 (union-build (assoc-ref %outputs "out")
3444 #:create-all-directories? #t
3445 #:log-port (%make-void-port "w"))))
3447 ;; The configuration file "texmf.cnf" is provided by the
3448 ;; "texlive-bin" package. We take it and override only the
3449 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
3450 ;; by default, though, so we still need to set TEXMFCNF.
3451 (substitute* texmf.cnf
3452 (("^TEXMFROOT = .*")
3453 (string-append "TEXMFROOT = " out "/share\n"))
3455 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
3456 (setenv "PATH" (string-append
3457 (assoc-ref %build-inputs "bash") "/bin:"
3458 (assoc-ref %build-inputs "coreutils") "/bin:"
3459 (assoc-ref %build-inputs "sed") "/bin:"
3460 (string-append out "/bin")))
3462 (cut wrap-program <>
3463 `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf)))
3464 `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist"))))
3465 (find-files (string-append out "/bin") ".*"))
3467 ;; Remove invalid maps from config file.
3468 (let ((web2c (string-append out "/share/texmf-config/web2c/"))
3469 (maproot (string-append out "/share/texmf-dist/fonts/map/")))
3472 (assoc-ref %build-inputs "updmap.cfg")
3473 (string-append web2c "updmap.cfg"))
3474 (make-file-writable (string-append web2c "updmap.cfg"))
3476 (let* ((port (open-pipe* OPEN_WRITE "updmap-sys"
3479 (string-append "--cnffile=" web2c "updmap.cfg"))))
3480 (display "Y\n" port)
3481 (when (not (zero? (status:exit-val (close-pipe port))))
3482 (error "failed to filter updmap.cfg")))
3484 (invoke "updmap-sys"
3485 (string-append "--cnffile=" web2c "updmap.cfg")
3486 (string-append "--dvipdfmxoutputdir="
3487 maproot "dvipdfmx/updmap/")
3488 (string-append "--dvipsoutputdir="
3489 maproot "dvips/updmap/")
3490 (string-append "--pdftexoutputdir="
3491 maproot "pdftex/updmap/"))
3492 ;; Having this file breaks all file lookups later.
3493 (delete-file (string-append out "/share/texmf-dist/ls-R")))
3497 ,@(map (lambda (package)
3498 (list (package-name package) package))
3499 (append default-packages packages))))
3501 `(("coreutils" ,coreutils)
3506 (uri (string-append "https://tug.org/svn/texlive/tags/"
3507 %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg"
3508 "?revision=" (number->string %texlive-revision)))
3509 (file-name (string-append "updmap.cfg-"
3510 (number->string %texlive-revision)))
3513 "0faqknqxs80qp9ywk0by5k85s0yalg97c4lja4q56lsyblrr4j7i"))))))
3514 (home-page (package-home-page texlive-bin))
3515 (synopsis "Union of TeX Live packages")
3516 (description "This package provides a subset of the TeX Live
3518 (license (fold (lambda (package result)
3519 (match (package-license package)
3521 (append lst result))
3522 ((? license:license? license)
3523 (cons license result))))
3525 (append default-packages packages)))))))
3527 ;; For use in package definitions only
3528 (define-public texlive-tiny
3530 (inherit (texlive-union))
3531 (name "texlive-tiny")
3532 (description "This is a very limited subset of the TeX Live distribution.
3533 It includes little more than the required set of LaTeX packages.")))
3535 (define-public texlive-latex-amsrefs
3537 (name "texlive-latex-amsrefs")
3538 (version (number->string %texlive-revision))
3541 (uri (texlive-ref "latex" "amsrefs"))
3542 (file-name (string-append name "-" version "-checkout"))
3545 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
3546 (build-system texlive-build-system)
3547 (arguments '(#:tex-directory "latex/amsrefs"))
3548 (home-page "https://www.ctan.org/pkg/amsrefs")
3549 (synopsis "LaTeX-based replacement for BibTeX")
3551 "Amsrefs is a LaTeX package for bibliographies that provides an archival
3552 data format similar to the format of BibTeX database files, but adapted to
3553 make direct processing by LaTeX easier. The package can be used either in
3554 conjunction with BibTeX or as a replacement for BibTeX.")
3555 (license license:lppl1.3+)))
3557 (define-public texlive-latex-bigfoot
3559 (name "texlive-latex-bigfoot")
3560 (version (number->string %texlive-revision))
3563 (uri (texlive-ref "latex" "bigfoot"))
3564 (file-name (string-append name "-" version "-checkout"))
3567 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
3568 (build-system texlive-build-system)
3570 '(#:tex-directory "latex/bigfoot"
3572 (modify-phases %standard-phases
3573 (add-after 'unpack 'remove-generated-file
3575 (for-each delete-file (find-files "." "\\.drv$"))
3577 (home-page "https://www.ctan.org/pkg/bigfoot")
3578 (synopsis "Footnotes for critical editions")
3580 "This package aims to provide a one-stop solution to requirements for
3581 footnotes. It offers: Multiple footnote apparatus superior to that of
3582 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
3583 into a single paragraph (this choice may be selected per footnote series);
3584 Things you might have expected (such as @code{\\verb}-like material in
3585 footnotes, and color selections over page breaks) now work. Note that the
3586 majority of the bigfoot package's interface is identical to that of
3587 @code{manyfoot}; users should seek information from that package's
3588 documentation. The bigfoot bundle also provides the @code{perpage} and
3589 @code{suffix} packages.")
3590 (license license:gpl2+)))
3592 (define-public texlive-latex-blindtext
3594 (name "texlive-latex-blindtext")
3595 (version (number->string %texlive-revision))
3598 (uri (texlive-ref "latex" "blindtext"))
3599 (file-name (string-append name "-" version "-checkout"))
3602 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
3603 (build-system texlive-build-system)
3604 (arguments '(#:tex-directory "latex/blindtext"))
3605 (home-page "https://www.ctan.org/pkg/blindtext")
3606 (synopsis "Producing 'blind' text for testing")
3608 "The package provides the commands @code{\\blindtext} and
3609 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
3610 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
3611 an entire random document with sections, lists, mathematics, etc. The package
3612 supports three languages, @code{english}, @code{(n)german} and @code{latin};
3613 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
3614 ipsum\" text, see the @code{lipsum} package).")
3615 (license license:lppl)))
3617 (define-public texlive-latex-dinbrief
3619 (name "texlive-latex-dinbrief")
3620 (version (number->string %texlive-revision))
3623 (uri (texlive-ref "latex" "dinbrief"))
3624 (file-name (string-append name "-" version "-checkout"))
3627 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
3628 (build-system texlive-build-system)
3630 '(#:tex-directory "latex/dinbrief"
3632 (modify-phases %standard-phases
3633 (add-after 'unpack 'remove-generated-file
3635 (delete-file "dinbrief.drv")
3637 (add-after 'unpack 'fix-encoding-error
3639 (with-fluids ((%default-port-encoding "ISO-8859-1"))
3640 (substitute* "dinbrief.dtx"
3641 (("zur Verf.+ung. In der Pr\"aambel")
3642 "zur Verf\"ung. In der Pr\"aambel")))
3644 (home-page "https://www.ctan.org/pkg/dinbrief")
3645 (synopsis "German letter DIN style")
3647 "This package implements a document layout for writing letters according
3648 to the rules of DIN (Deutsches Institut für Normung, German standardisation
3649 institute). A style file for LaTeX 2.09 (with limited support of the
3650 features) is part of the package. Since the letter layout is based on a
3651 German standard, the user guide is written in German, but most macros have
3652 English names from which the user can recognize what they are used for. In
3653 addition there are example files showing how letters may be created with the
3655 (license license:lppl)))
3657 (define-public texlive-latex-draftwatermark
3659 (name "texlive-latex-draftwatermark")
3660 (version (number->string %texlive-revision))
3663 (uri (texlive-ref "latex" "draftwatermark"))
3664 (file-name (string-append name "-" version "-checkout"))
3667 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
3668 (build-system texlive-build-system)
3669 (arguments '(#:tex-directory "latex/draftwatermark"))
3670 (home-page "https://www.ctan.org/pkg/draftwatermark")
3671 (synopsis "Put a grey textual watermark on document pages")
3673 "This package provides a means to add a textual, light grey watermark on
3674 every page or on the first page of a document. Typical usage may consist in
3675 writing words such as DRAFT or CONFIDENTIAL across document pages. The
3676 package performs a similar function to that of @code{draftcopy}, but its
3677 implementation is output device independent, and made very simple by relying
3679 (license license:lppl1.3+)))
3681 (define-public texlive-latex-environ
3683 (name "texlive-latex-environ")
3684 (version (number->string %texlive-revision))
3687 (uri (texlive-ref "latex" "environ"))
3688 (file-name (string-append name "-" version "-checkout"))
3691 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
3692 (build-system texlive-build-system)
3693 (arguments '(#:tex-directory "latex/environ"))
3694 (home-page "https://www.ctan.org/pkg/environ")
3695 (synopsis "New interface for environments in LaTeX")
3697 "This package provides the @code{\\collect@@body} command (as in
3698 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
3699 for collecting the body text of an environment. These commands are used to
3700 define a new author interface to creating new environments.")
3701 (license license:lppl)))
3703 (define-public texlive-latex-eqparbox
3705 (name "texlive-latex-eqparbox")
3706 (version (number->string %texlive-revision))
3709 (uri (texlive-ref "latex" "eqparbox"))
3710 (file-name (string-append name "-" version "-checkout"))
3713 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
3714 (build-system texlive-build-system)
3715 (arguments '(#:tex-directory "latex/eqparbox"))
3716 (home-page "https://www.ctan.org/pkg/eqparbox")
3717 (synopsis "Create equal-widthed parboxes")
3719 "LaTeX users sometimes need to ensure that two or more blocks of text
3720 occupy the same amount of horizontal space on the page. To that end, the
3721 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
3722 just like @code{\\parbox}, except that instead of specifying a width, one
3723 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
3724 where they are in the document---will stretch to fit the widest
3725 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
3726 for a variety of alignment purposes, as is evidenced by the examples in
3727 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
3729 (license license:lppl1.3+)))
3731 (define-public texlive-latex-expdlist
3733 (name "texlive-latex-expdlist")
3734 (version (number->string %texlive-revision))
3737 (uri (texlive-ref "latex" "expdlist"))
3738 (file-name (string-append name "-" version "-checkout"))
3741 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
3742 (build-system texlive-build-system)
3744 '(#:tex-directory "latex/expdlist"
3746 (modify-phases %standard-phases
3747 (add-after 'unpack 'remove-generated-file
3749 (for-each delete-file
3750 (find-files "." "\\.drv$"))
3752 (home-page "https://www.ctan.org/pkg/expdlist")
3753 (synopsis "Expanded description environments")
3755 "The package provides additional features for the LaTeX
3756 @code{description} environment, including adjustable left margin. The package
3757 also allows the user to \"break\" a list (for example, to interpose a comment)
3758 without affecting the structure of the list (this works for @code{itemize} and
3759 @code{enumerate} lists, and numbered lists remain in sequence).")
3760 (license license:lppl)))
3762 (define-public texlive-filemod
3764 (inherit (simple-texlive-package
3766 (list "/doc/latex/filemod/"
3767 "/tex/latex/filemod/"
3768 "/tex/generic/filemod/")
3770 "1snsj7kblkj1ig3x3845lsypz7ab04lf0dcpdh946xakgjnz4fb5")
3772 (home-page "https://www.ctan.org/pkg/filemod")
3773 (synopsis "Provide file modification times, and compare them")
3775 "This package provides macros to read and compare the modification dates
3776 of files. The files may be @code{.tex} files, images or other files (as long
3777 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
3778 of pdfLaTeX to find the file modification date as PDF date string, parses the
3779 string and returns the value to the user. The package will also work for DVI
3780 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
3781 mode. The functionality is provided by purely expandable macros or by faster
3782 but non-expandable ones.")
3783 (license license:lppl1.3+)))
3785 (define-public texlive-latex-filemod
3786 (deprecated-package "texlive-latex-filemod" texlive-filemod))
3788 (define-public texlive-latex-ifplatform
3790 (name "texlive-latex-ifplatform")
3791 (version (number->string %texlive-revision))
3794 (uri (texlive-ref "latex" "ifplatform"))
3795 (file-name (string-append name "-" version "-checkout"))
3798 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
3799 (build-system texlive-build-system)
3800 (arguments '(#:tex-directory "latex/ifplatform"))
3801 (home-page "https://www.ctan.org/pkg/ifplatform")
3802 (synopsis "Conditionals to test which platform is being used")
3804 "This package uses the (La)TeX extension @code{-shell-escape} to
3805 establish whether the document is being processed on a Windows or on a
3806 Unix-like system, or on Cygwin (Unix environment over a Windows system).
3807 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
3808 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
3809 on a Unix-like system, which may be used to distinguish between various
3810 classes of systems.")
3811 (license license:lppl)))
3813 (define-public texlive-latex-natbib
3815 (name "texlive-latex-natbib")
3816 (version (number->string %texlive-revision))
3819 (uri (texlive-ref "latex" "natbib"))
3820 (file-name (string-append name "-" version "-checkout"))
3823 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
3824 (build-system texlive-build-system)
3825 (arguments '(#:tex-directory "latex/natbib"))
3826 (home-page "https://www.ctan.org/pkg/natbib")
3827 (synopsis "Flexible bibliography support")
3829 "This bundle provides a package that implements both author-year and
3830 numbered references, as well as much detailed of support for other
3831 bibliography use. Also provided are versions of the standard BibTeX styles
3832 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
3833 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
3834 designed from the start to be compatible with @code{natbib}.")
3835 (license license:lppl)))
3837 (define-public texlive-latex-psfrag
3839 (name "texlive-latex-psfrag")
3840 (version (number->string %texlive-revision))
3843 (uri (texlive-ref "latex" "psfrag"))
3844 (file-name (string-append name "-" version "-checkout"))
3847 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
3848 (build-system texlive-build-system)
3849 (arguments '(#:tex-directory "latex/psfrag"))
3850 (home-page "https://www.ctan.org/pkg/psfrag")
3851 (synopsis "Replace strings in encapsulated PostScript figures")
3853 "This package allows LaTeX constructions (equations, picture
3854 environments, etc.) to be precisely superimposed over Encapsulated PostScript
3855 figures, using your own favorite drawing tool to create an EPS figure and
3856 placing simple text \"tags\" where each replacement is to be placed, with
3857 PSfrag automatically removing these tags from the figure and replacing them
3858 with a user specified LaTeX construction, properly aligned, scaled, and/or
3860 (license (license:fsf-free "file://psfrag.dtx"))))
3862 (define-public texlive-pstool
3864 (inherit (simple-texlive-package
3866 (list "/doc/latex/pstool/"
3867 "/tex/latex/pstool/")
3869 "12clzcw2cl7g2chr2phgmmiwxw4859cln1gbx1wgp8bl9iw590nc")
3872 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix
3873 ("texlive-latex-filemod" ,texlive-latex-filemod)
3874 ("texlive-latex-graphics" ,texlive-latex-graphics)
3875 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
3876 ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3
3877 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
3878 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
3879 ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc
3880 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)
3881 ("texlive-latex-xkeyval" ,texlive-latex-xkeyval)))
3882 (home-page "https://www.ctan.org/pkg/pstool")
3883 (synopsis "Process PostScript graphics within pdfLaTeX documents")
3885 "This is a package for processing PostScript graphics with @code{psfrag}
3886 labels within pdfLaTeX documents. Every graphic is compiled individually,
3887 drastically speeding up compilation time when only a single figure needs
3889 (license license:lppl)))
3891 (define-public texlive-latex-pstool
3892 (deprecated-package "texlive-latex-pstool" texlive-pstool))
3894 (define-public texlive-seminar
3896 (inherit (simple-texlive-package
3898 (list "/doc/latex/seminar/"
3899 "/tex/latex/seminar/")
3901 "1clgw5xy867khzfn8d210rc5hsw5s7r0pznhk84niybvw4zc7r3f")
3903 (home-page "https://www.ctan.org/pkg/seminar")
3904 (synopsis "Make overhead slides")
3905 ;; TODO: This package may need fancybox and xcomment at runtime.
3907 "This package provides a class that produces overhead
3908 slides (transparencies), with many facilities. Seminar is not nowadays
3909 reckoned a good basis for a presentation — users are advised to use more
3910 recent classes such as powerdot or beamer, both of which are tuned to
3911 21st-century presentation styles.")
3912 (license license:lppl1.2+)))
3914 (define-public texlive-latex-seminar
3915 (deprecated-package "texlive-latex-seminar" texlive-seminar))
3917 (define-public texlive-latex-trimspaces
3919 (name "texlive-latex-trimspaces")
3920 (version (number->string %texlive-revision))
3923 (uri (texlive-ref "latex" "trimspaces"))
3924 (file-name (string-append name "-" version "-checkout"))
3927 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
3928 (build-system texlive-build-system)
3930 '(#:tex-directory "latex/trimspaces"
3931 #:tex-format "latex"
3933 (modify-phases %standard-phases
3934 (add-after 'unpack 'fix-bug
3936 ;; The "ins" file refers to the wrong source file.
3937 (substitute* "trimspaces.ins"
3938 (("pstool.tex") "trimspaces.tex"))
3941 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
3942 (home-page "https://www.ctan.org/pkg/trimspaces")
3943 (synopsis "Trim spaces around an argument or within a macro")
3945 "This very short package allows you to expandably remove spaces around a
3946 token list (commands are provided to remove spaces before, spaces after, or
3947 both); or to remove surrounding spaces within a macro definition, or to define
3948 space-stripped macros.")
3949 (license license:lppl)))
3951 (define-public texlive-latex-capt-of
3953 (name "texlive-latex-capt-of")
3954 (version (number->string %texlive-revision))
3958 (url (string-append "svn://www.tug.org/texlive/tags/"
3959 %texlive-tag "/Master/texmf-dist/"
3960 "/tex/latex/capt-of"))
3961 (revision %texlive-revision)))
3962 (file-name (string-append name "-" version "-checkout"))
3965 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
3966 (build-system trivial-build-system)
3968 `(#:modules ((guix build utils))
3971 (use-modules (guix build utils))
3972 (let ((target (string-append (assoc-ref %outputs "out")
3973 "/share/texmf-dist/tex/latex/capt-of")))
3975 (copy-recursively (assoc-ref %build-inputs "source") target)
3977 (home-page "https://www.ctan.org/pkg/capt-of")
3978 (synopsis "Captions on more than floats")
3980 "This package defines a command @code{\\captionof} for putting a caption
3981 to something that's not a float.")
3982 (license license:lppl)))
3984 (define-public texlive-doi
3986 (inherit (simple-texlive-package
3988 (list "/doc/latex/doi/README.md"
3991 "18z9922lqb3hliqn95h883fndqs4lgyi5yqbnq2932ya0imc3j7h")
3993 (home-page "https://www.ctan.org/pkg/doi")
3994 (synopsis "Create correct hyperlinks for DOI numbers")
3996 "You can hyperlink DOI numbers to doi.org. However, some publishers have
3997 elected to use nasty characters in their DOI numbering scheme (@code{<},
3998 @code{>}, @code{_} and @code{;} have all been spotted). This will either
3999 upset LaTeX, or your PDF reader. This package contains a single user-level
4000 command @code{\\doi{}}, which takes a DOI number, and creates a correct
4001 hyperlink to the target of the DOI.")
4002 ;; Any version of the LPPL.
4003 (license license:lppl1.3+)))
4005 (define-public texlive-latex-doi
4006 (deprecated-package "texlive-latex-doi" texlive-doi))
4008 (define-public texlive-etoolbox
4010 (inherit (simple-texlive-package
4012 (list "/doc/latex/etoolbox/"
4013 "/tex/latex/etoolbox/")
4015 "1cc1vw1ach55g4ff4x30by8k1mg01w199ccxvn72f5khlnnxial0")
4017 (home-page "https://www.ctan.org/pkg/etoolbox")
4018 (synopsis "e-TeX tools for LaTeX")
4020 "This package is a toolbox of programming facilities geared primarily
4021 towards LaTeX class and package authors. It provides LaTeX frontends to some
4022 of the new primitives provided by e-TeX as well as some generic tools which
4023 are not strictly related to e-TeX but match the profile of this package. The
4024 package provides functions that seem to offer alternative ways of implementing
4025 some LaTeX kernel commands; nevertheless, the package will not modify any part
4026 of the LaTeX kernel.")
4027 (license license:lppl1.3+)))
4029 (define-public texlive-latex-etoolbox
4030 (deprecated-package "texlive-latex-etoolbox" texlive-etoolbox))
4032 (define-public texlive-latex-fncychap
4034 (name "texlive-latex-fncychap")
4035 (version (number->string %texlive-revision))
4039 (url (string-append "svn://www.tug.org/texlive/tags/"
4040 %texlive-tag "/Master/texmf-dist/"
4041 "/tex/latex/fncychap"))
4042 (revision %texlive-revision)))
4043 (file-name (string-append name "-" version "-checkout"))
4046 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
4047 (build-system trivial-build-system)
4049 `(#:modules ((guix build utils))
4052 (use-modules (guix build utils))
4053 (let ((target (string-append (assoc-ref %outputs "out")
4054 "/share/texmf-dist/tex/latex/fncychap")))
4056 (copy-recursively (assoc-ref %build-inputs "source") target)
4058 (home-page "https://www.ctan.org/pkg/fncychap")
4059 (synopsis "Seven predefined chapter heading styles")
4061 "This package provides seven predefined chapter heading styles. Each
4062 style can be modified using a set of simple commands. Optionally one can
4063 modify the formatting routines in order to create additional chapter
4065 (license license:lppl1.3+)))
4067 (define-public texlive-latex-framed
4069 (name "texlive-latex-framed")
4070 (version (number->string %texlive-revision))
4074 (url (string-append "svn://www.tug.org/texlive/tags/"
4075 %texlive-tag "/Master/texmf-dist/"
4076 "/tex/latex/framed"))
4077 (revision %texlive-revision)))
4078 (file-name (string-append name "-" version "-checkout"))
4081 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
4082 (build-system trivial-build-system)
4084 `(#:modules ((guix build utils))
4087 (use-modules (guix build utils))
4088 (let ((target (string-append (assoc-ref %outputs "out")
4089 "/share/texmf-dist/tex/latex/framed")))
4091 (copy-recursively (assoc-ref %build-inputs "source") target)
4093 (home-page "https://www.ctan.org/pkg/framed")
4094 (synopsis "Framed or shaded regions that can break across pages")
4096 "The package creates three environments: @code{framed}, which puts an
4097 ordinary frame box around the region, @code{shaded}, which shades the region,
4098 and @code{leftbar}, which places a line at the left side. The environments
4099 allow a break at their start (the @code{\\FrameCommand} enables creation of a
4100 title that is “attached” to the environment); breaks are also allowed in the
4101 course of the framed/shaded matter. There is also a command
4102 @code{\\MakeFramed} to make your own framed-style environments.")
4103 ;; The header states: "These macros may be freely transmitted, reproduced,
4104 ;; or modified for any purpose provided that this notice is left intact."
4105 (license (license:fsf-free "file://framed.sty"))))
4107 (define-public texlive-latex-g-brief
4109 (name "texlive-latex-g-brief")
4110 (version (number->string %texlive-revision))
4113 (uri (texlive-ref "latex" "g-brief"))
4114 (file-name (string-append name "-" version "-checkout"))
4117 "1br4kv9y17cvngp83ykpvy7gy3jqfan5plk7sggcgbdfhndi5dsr"))))
4118 (build-system texlive-build-system)
4120 '(#:tex-directory "latex/g-brief"
4122 (modify-phases %standard-phases
4123 (add-after 'unpack 'remove-generated-file
4125 (delete-file "g-brief.drv")
4127 (home-page "https://www.ctan.org/pkg/g-brief")
4128 (synopsis "Letter document class")
4130 "This package is designed for formatting formless letters in German; it
4131 can also be used for English (by those who can read the documentation). There
4132 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
4133 \"old\" and a \"new\" version of g-brief.")
4134 (license license:lppl)))
4136 (define-public texlive-latex-galois
4138 (name "texlive-latex-galois")
4139 (version (number->string %texlive-revision))
4142 (uri (texlive-ref "latex" "galois"))
4143 (file-name (string-append name "-" version "-checkout"))
4146 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
4147 (build-system texlive-build-system)
4148 (arguments '(#:tex-directory "latex/galois"))
4149 (home-page "https://www.ctan.org/pkg/galois")
4150 (synopsis "Typeset Galois connections")
4152 "The package deals with connections in two-dimensional style, optionally
4154 (license license:lppl)))
4156 (define-public texlive-latex-gcite
4158 (name "texlive-latex-gcite")
4159 (version (number->string %texlive-revision))
4162 (uri (texlive-ref "latex" "gcite"))
4163 (file-name (string-append name "-" version "-checkout"))
4166 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
4167 (build-system texlive-build-system)
4168 (arguments '(#:tex-directory "latex/gcite"))
4169 (home-page "https://www.ctan.org/pkg/gcite")
4170 (synopsis "Citations in a reader-friendly style")
4172 "The package allows citations in the German style, which is considered by
4173 many to be particularly reader-friendly. The citation provides a small amount
4174 of bibliographic information in a footnote on the page where each citation is
4175 made. It combines a desire to eliminate unnecessary page-turning with the
4176 look-up efficiency afforded by numeric citations. The package makes use of
4177 BibLaTeX, and is considered experimental.")
4178 (license license:lppl1.3+)))
4180 (define-public texlive-latex-geometry
4182 (name "texlive-latex-geometry")
4183 (version (number->string %texlive-revision))
4186 (uri (texlive-ref "latex" "geometry"))
4187 (file-name (string-append name "-" version "-checkout"))
4190 "0a8f38c2ds1flxcr0apdpyaaz3k6fyalz6dkbrmcv9srjc40mh3n"))))
4191 (build-system texlive-build-system)
4192 (arguments '(#:tex-directory "latex/geometry"))
4194 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek))) ;for ifpdf
4195 (home-page "https://www.ctan.org/pkg/geometry")
4196 (synopsis "Flexible and complete interface to document dimensions")
4198 "This package provides an easy and flexible user interface to customize
4199 page layout, implementing auto-centering and auto-balancing mechanisms so that
4200 the users have only to give the least description for the page layout. The
4201 package knows about all the standard paper sizes, so that the user need not
4202 know what the nominal \"real\" dimensions of the paper are, just its standard
4203 name (such as a4, letter, etc.). An important feature is the package's
4204 ability to communicate the paper size it's set up to the output.")
4205 (license license:lppl)))
4207 (define-public texlive-latex-mdwtools
4209 (name "texlive-latex-mdwtools")
4210 (version (number->string %texlive-revision))
4213 (uri (texlive-ref "latex" "mdwtools"))
4214 (file-name (string-append name "-" version "-checkout"))
4217 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
4218 (build-system texlive-build-system)
4219 (arguments '(#:tex-directory "latex/mdwtools"))
4220 (home-page "https://www.ctan.org/pkg/mdwtools")
4221 (synopsis "Miscellaneous tools by Mark Wooding")
4223 "This collection of tools includes: @code{atsupport} for short commands
4224 starting with @code{@@}, macros to sanitize the OT1 encoding of the
4225 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
4226 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
4227 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
4228 array environments; verbatim handling; and syntax diagrams.")
4229 (license license:gpl3+)))
4231 (define-public texlive-latex-polyglossia
4233 (name "texlive-latex-polyglossia")
4234 (version (number->string %texlive-revision))
4237 (uri (texlive-ref "latex" "polyglossia"))
4238 (file-name (string-append name "-" version "-checkout"))
4241 "0na7v4hsyx5s67cpjj2dbnq8j67k8lln6b19hmj631gfs27slss1"))))
4242 (build-system texlive-build-system)
4243 (arguments '(#:tex-directory "latex/polyglossia"))
4244 (home-page "https://www.ctan.org/pkg/polyglossia")
4245 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
4247 "This package provides a complete Babel replacement for users of LuaLaTeX
4248 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
4249 (license license:lppl1.3+)))
4251 (define-public texlive-latex-supertabular
4253 (name "texlive-latex-supertabular")
4254 (version (number->string %texlive-revision))
4257 (uri (texlive-ref "latex" "supertabular"))
4258 (file-name (string-append name "-" version "-checkout"))
4261 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
4262 (build-system texlive-build-system)
4263 (arguments '(#:tex-directory "latex/supertabular"))
4264 (home-page "https://www.ctan.org/pkg/supertabular")
4265 (synopsis "Multi-page tables package")
4267 "This package was a predecessor of @code{longtable}; the newer
4268 package (designed on quite different principles) is easier to use and more
4269 flexible, in many cases, but supertabular retains its usefulness in a few
4270 situations where longtable has problems.")
4271 (license license:lppl1.3+)))
4273 (define-public texlive-tex-texinfo
4275 (name "texlive-tex-texinfo")
4276 (version (number->string %texlive-revision))
4280 (url (string-append "svn://www.tug.org/texlive/tags/"
4281 %texlive-tag "/Master/texmf-dist/"
4283 (revision %texlive-revision)))
4284 (file-name (string-append name "-" version "-checkout"))
4287 "16jy02m089m7n6v9vbfi4xjgngc1fnvsmmppk8axfwzbhdky3c9c"))))
4288 (build-system trivial-build-system)
4290 `(#:modules ((guix build utils))
4293 (use-modules (guix build utils))
4294 (let ((target (string-append (assoc-ref %outputs "out")
4295 "/share/texmf-dist/tex/texinfo")))
4297 (copy-recursively (assoc-ref %build-inputs "source") target)
4299 (home-page "https://www.ctan.org/pkg/texinfo")
4300 (synopsis "TeX macros to handle Texinfo files")
4302 "Texinfo is the preferred format for documentation in the GNU project;
4303 the format may be used to produce online or printed output from a single
4304 source. The Texinfo macros may be used to produce printable output using TeX;
4305 other programs in the distribution offer online interactive use (with
4306 hypertext linkages in some cases).")
4307 (license license:gpl3+)))
4309 (define-public texlive-latex-upquote
4311 (name "texlive-latex-upquote")
4312 (version (number->string %texlive-revision))
4315 (uri (texlive-ref "latex" "upquote"))
4316 (file-name (string-append name "-" version "-checkout"))
4319 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
4320 (build-system texlive-build-system)
4321 (arguments '(#:tex-directory "latex/upquote"))
4322 (home-page "https://www.ctan.org/pkg/upquote")
4323 (synopsis "Show \"realistic\" quotes in verbatim")
4325 "Typewriter-style fonts are best for program listings, but Computer
4326 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
4327 single quotes. Other fonts, and most programming languages, print @code{`} as
4328 a grave accent and @code{'} upright; @code{'} is used both to open and to
4329 close quoted strings. The package switches the typewriter font to Computer
4330 Modern Typewriter in OT1 encoding, and modifies the behaviour of
4331 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
4332 in the expected way. It does this regardless of other fonts or encodings in
4333 use, so long as the package is loaded after the other fonts were. The package
4334 does not affect @code{\\tt}, @code{\\texttt}, etc.")
4335 (license license:lppl1.2+)))
4337 (define-public texlive-latex-anysize
4339 (name "texlive-latex-anysize")
4340 (version (number->string %texlive-revision))
4344 (url (string-append "svn://www.tug.org/texlive/tags/"
4345 %texlive-tag "/Master/texmf-dist/"
4346 "/tex/latex/anysize"))
4347 (revision %texlive-revision)))
4348 (file-name (string-append name "-" version "-checkout"))
4351 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
4352 (build-system trivial-build-system)
4354 `(#:modules ((guix build utils))
4357 (use-modules (guix build utils))
4358 (let ((target (string-append (assoc-ref %outputs "out")
4359 "/share/texmf-dist/tex/latex/anysize")))
4361 (copy-recursively (assoc-ref %build-inputs "source") target)
4363 (home-page "https://www.ctan.org/pkg/anysize")
4364 (synopsis "Simple package to set up document margins")
4366 "This is a simple package to set up document margins. This package is
4367 considered obsolete; alternatives are the @code{typearea} package from the
4368 @code{koma-script} bundle, or the @code{geometry} package.")
4369 (license license:public-domain)))
4371 (define-public texlive-latex-appendix
4373 (name "texlive-latex-appendix")
4374 (version (number->string %texlive-revision))
4377 (uri (texlive-ref "latex" "appendix"))
4378 (file-name (string-append name "-" version "-checkout"))
4381 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
4382 (build-system texlive-build-system)
4383 (arguments '(#:tex-directory "latex/appendix"))
4384 (home-page "https://www.ctan.org/pkg/appendix")
4385 (synopsis "Extra control of appendices")
4387 "The appendix package provides various ways of formatting the titles of
4388 appendices. Also (sub)appendices environments are provided that can be used,
4389 for example, for per chapter/section appendices. An @code{appendices}
4390 environment is provided which can be used instead of the @code{\\appendix}
4392 (license license:lppl)))
4394 (define-public texlive-latex-changebar
4396 (name "texlive-latex-changebar")
4397 (version (number->string %texlive-revision))
4400 (uri (texlive-ref "latex" "changebar"))
4401 (file-name (string-append name "-" version "-checkout"))
4404 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
4405 (build-system texlive-build-system)
4406 (arguments '(#:tex-directory "latex/changebar"))
4407 (home-page "https://www.ctan.org/pkg/changebar")
4408 (synopsis "Generate changebars in LaTeX documents")
4410 "Identify areas of text to be marked with changebars with the
4411 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
4412 package uses @code{drivers} to place the bars; the available drivers can work
4413 with @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
4414 drivers, and VTeX and pdfTeX.")
4415 (license license:lppl)))
4417 (define-public texlive-latex-cmap
4419 (name "texlive-latex-cmap")
4420 (version (number->string %texlive-revision))
4424 (url (string-append "svn://www.tug.org/texlive/tags/"
4425 %texlive-tag "/Master/texmf-dist/"
4427 (revision %texlive-revision)))
4428 (file-name (string-append name "-" version "-checkout"))
4431 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
4432 (build-system trivial-build-system)
4434 `(#:modules ((guix build utils))
4437 (use-modules (guix build utils))
4438 (let ((target (string-append (assoc-ref %outputs "out")
4439 "/share/texmf-dist/tex/latex/cmap")))
4441 (copy-recursively (assoc-ref %build-inputs "source") target)
4443 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
4444 Master/texmf-dist/tex/latex/cmap/")
4445 (synopsis "CMap support for PDF files")
4447 "This package embeds CMap tables into PDF files to make search and
4448 copy-and-paste functions work properly.")
4449 (license license:lppl)))
4451 (define-public texlive-latex-colortbl
4453 (name "texlive-latex-colortbl")
4454 (version (number->string %texlive-revision))
4457 (uri (texlive-ref "latex" "colortbl"))
4458 (file-name (string-append name "-" version "-checkout"))
4461 "16vd99p01a0y30xr5yf1z2j5da9x8gy21vb30wk08jh31zffbaqj"))))
4462 (build-system texlive-build-system)
4463 (arguments '(#:tex-directory "latex/colortbl"))
4464 (home-page "https://www.ctan.org/pkg/colortbl")
4465 (synopsis "Add colour to LaTeX tables")
4467 "This package allows rows, columns, and even individual cells in LaTeX
4468 tables to be coloured.")
4469 (license license:lppl)))
4471 (define-public texlive-latex-fancybox
4473 (name "texlive-latex-fancybox")
4474 (version (number->string %texlive-revision))
4478 (url (string-append "svn://www.tug.org/texlive/tags/"
4479 %texlive-tag "/Master/texmf-dist/"
4480 "/tex/latex/fancybox"))
4481 (revision %texlive-revision)))
4482 (file-name (string-append name "-" version "-checkout"))
4485 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
4486 (build-system trivial-build-system)
4488 `(#:modules ((guix build utils))
4491 (use-modules (guix build utils))
4492 (let ((target (string-append (assoc-ref %outputs "out")
4493 "/share/texmf-dist/tex/latex/fancybox")))
4495 (copy-recursively (assoc-ref %build-inputs "source") target)
4497 (home-page "https://www.ctan.org/pkg/fancybox")
4498 (synopsis "Variants of \\fbox and other games with boxes")
4500 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
4501 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
4502 using box macros and flexible verbatim macros. You can box mathematics,
4503 floats, center, flushleft, and flushright, lists, and pages.")
4504 (license license:lppl1.2+)))
4506 (define-public texlive-latex-fancyhdr
4508 (name "texlive-latex-fancyhdr")
4509 (version (number->string %texlive-revision))
4513 (url (string-append "svn://www.tug.org/texlive/tags/"
4514 %texlive-tag "/Master/texmf-dist/"
4515 "/tex/latex/fancyhdr"))
4516 (revision %texlive-revision)))
4517 (file-name (string-append name "-" version "-checkout"))
4520 "0hrwspqkqfahxyzzsnjyrxlgxj06zw1f3636gx76pvl4xhvdj1cj"))))
4521 (build-system trivial-build-system)
4523 `(#:modules ((guix build utils))
4526 (use-modules (guix build utils))
4527 (let ((target (string-append (assoc-ref %outputs "out")
4528 "/share/texmf-dist/tex/latex/fancyhdr")))
4530 (copy-recursively (assoc-ref %build-inputs "source") target)
4532 (home-page "https://www.ctan.org/pkg/fancyhdr")
4533 (synopsis "Extensive control of page headers and footers in LaTeX2e")
4535 "The package provides extensive facilities, both for constructing headers
4536 and footers, and for controlling their use (for example, at times when LaTeX
4537 would automatically change the heading style in use).")
4538 (license license:lppl)))
4540 (define-public texlive-latex-float
4542 (name "texlive-latex-float")
4543 (version (number->string %texlive-revision))
4546 (uri (texlive-ref "latex" "float"))
4547 (file-name (string-append name "-" version "-checkout"))
4550 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
4551 (build-system texlive-build-system)
4552 (arguments '(#:tex-directory "latex/float"))
4553 (home-page "https://www.ctan.org/pkg/float")
4554 (synopsis "Improved interface for floating objects")
4556 "This package improves the interface for defining floating objects such
4557 as figures and tables. It introduces the boxed float, the ruled float and the
4558 plaintop float. You can define your own floats and improve the behaviour of
4559 the old ones. The package also provides the @code{H} float modifier option of
4560 the obsolete @code{here} package. You can select this as automatic default
4561 with @code{\\floatplacement{figure}{H}}.")
4562 (license license:lppl)))
4564 (define-public texlive-latex-footmisc
4566 (name "texlive-latex-footmisc")
4567 (version (number->string %texlive-revision))
4570 (uri (texlive-ref "latex" "footmisc"))
4571 (file-name (string-append name "-" version "-checkout"))
4574 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
4575 (build-system texlive-build-system)
4576 (arguments '(#:tex-directory "latex/footmisc"))
4577 (home-page "https://www.ctan.org/pkg/footmisc")
4578 (synopsis "Range of footnote options")
4580 "This is a collection of ways to change the typesetting of footnotes.
4581 The package provides means of changing the layout of the footnotes themselves,
4582 a way to number footnotes per page, to make footnotes disappear in a
4583 \"moving\" argument, and to deal with multiple references to footnotes from
4584 the same place. The package also has a range of techniques for labelling
4585 footnotes with symbols rather than numbers.")
4586 (license license:lppl1.3+)))
4588 (define-public texlive-latex-listings
4590 (name "texlive-latex-listings")
4591 (version (number->string %texlive-revision))
4594 (uri (texlive-ref "latex" "listings"))
4595 (file-name (string-append name "-" version "-checkout"))
4598 "1fbrhqj22vzakn30j71fc41l8nliqbv1dmxm0zlwi2qjjbq6fwav"))))
4599 (build-system texlive-build-system)
4601 '(#:tex-directory "latex/listings"
4602 #:build-targets '("listings.ins")))
4603 (home-page "https://www.ctan.org/pkg/listings")
4604 (synopsis "Typeset source code listings using LaTeX")
4606 "The package enables the user to typeset programs (programming code)
4607 within LaTeX; the source code is read directly by TeX---no front-end processor
4608 is needed. Keywords, comments and strings can be typeset using different
4609 styles. Support for @code{hyperref} is provided.")
4610 (license license:lppl1.3+)))
4612 (define-public texlive-latex-jknapltx
4614 (name "texlive-latex-jknapltx")
4615 (version (number->string %texlive-revision))
4619 (url (string-append "svn://www.tug.org/texlive/tags/"
4620 %texlive-tag "/Master/texmf-dist/"
4621 "/tex/latex/jknapltx"))
4622 (revision %texlive-revision)))
4623 (file-name (string-append name "-" version "-checkout"))
4626 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
4627 (build-system trivial-build-system)
4629 `(#:modules ((guix build utils))
4632 (use-modules (guix build utils))
4633 (let ((target (string-append (assoc-ref %outputs "out")
4634 "/share/texmf-dist/tex/latex/jknapltx")))
4636 (copy-recursively (assoc-ref %build-inputs "source") target)
4638 (home-page "https://www.ctan.org/pkg/jknappen")
4639 (synopsis "Miscellaneous packages by Joerg Knappen")
4641 "This package provides miscellaneous macros by Joerg Knappen, including:
4642 represent counters in greek; Maxwell's non-commutative division;
4643 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
4644 @code{inputenc} definition files that allow verbatim input in the respective
4645 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
4646 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
4647 transliterate semitic languages; patches to make (La)TeX formulae embeddable
4648 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
4649 (license license:gpl2)))
4651 (define-public texlive-fonts-ec
4653 (name "texlive-fonts-ec")
4654 (version (number->string %texlive-revision))
4658 (url (string-append "svn://www.tug.org/texlive/tags/"
4659 %texlive-tag "/Master/texmf-dist/"
4660 "/fonts/source/jknappen/ec/"))
4661 (revision %texlive-revision)))
4662 (file-name (string-append name "-" version "-checkout"))
4665 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
4666 (build-system gnu-build-system)
4668 `(#:modules ((guix build gnu-build-system)
4672 #:tests? #f ; no tests
4674 (modify-phases %standard-phases
4677 (lambda* (#:key inputs #:allow-other-keys)
4678 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
4679 ;; Tell mf where to find mf.base
4680 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
4681 ;; Tell mf where to look for source files
4683 (string-append (getcwd) ":"
4684 mf "/share/texmf-dist/metafont/base:"
4685 (assoc-ref inputs "texlive-cm")
4686 "/share/texmf-dist/fonts/source/public/cm")))
4688 (for-each (lambda (font)
4689 (format #t "building font ~a\n" font)
4690 (invoke "mf" "-progname=mf"
4691 "-output-directory=build"
4696 "input " (basename font ".mf"))))
4697 (find-files "." "[0-9]+\\.mf$"))
4700 (lambda* (#:key outputs #:allow-other-keys)
4701 (let* ((out (assoc-ref outputs "out"))
4703 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
4705 out "/share/texmf-dist/fonts/source/jknappen/ec")))
4706 (for-each (cut install-file <> tfm)
4707 (find-files "build" "\\.*"))
4708 (for-each (cut install-file <> mf)
4709 (find-files "." "\\.mf"))
4712 `(("texlive-bin" ,texlive-bin)
4713 ("texlive-metafont-base" ,texlive-metafont-base)
4714 ("texlive-cm" ,texlive-cm)))
4715 (home-page "https://www.ctan.org/pkg/ec")
4716 (synopsis "Computer modern fonts in T1 and TS1 encodings")
4718 "The EC fonts are European Computer Modern Fonts, supporting the complete
4719 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
4720 These fonts are intended to be stable with no changes being made to the tfm
4721 files. The set also contains a Text Companion Symbol font, called @code{tc},
4722 featuring many useful characters needed in text typesetting, for example
4723 oldstyle digits, currency symbols (including the newly created Euro symbol),
4724 the permille sign, copyright, trade mark and servicemark as well as a copyleft
4725 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
4726 EC fonts supersede the preliminary version released as the DC fonts. The
4727 fonts are available in (traced) Adobe Type 1 format, as part of the
4728 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
4729 set, Latin Modern, is not actually a direct development of the EC set, and
4730 differs from the EC in a number of particulars.")
4731 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
4732 texlive-2019.3/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
4734 ;; FIXME: the fonts should be built from source, but running "tex aefonts.tex"
4735 ;; fails with obscure TeX-typical error messages.
4736 (define-public texlive-ae
4738 (inherit (simple-texlive-package
4740 (list "/doc/fonts/ae/"
4742 "/fonts/tfm/public/ae/"
4743 "/fonts/vf/public/ae/"
4746 "1xkzg381y0avdq381r2m990wp27czkdff0qkvsp2n5q62yc0bdsw")
4748 (home-page "https://www.ctan.org/pkg/ae")
4749 (synopsis "Virtual fonts for T1 encoded CMR-fonts")
4751 "This package provides a set of virtual fonts which emulates T1 coded
4752 fonts using the standard CM fonts. The package name, AE fonts, supposedly
4753 stands for \"Almost European\". The main use of the package was to produce
4754 PDF files using Adobe Type 1 versions of the CM fonts instead of bitmapped EC
4755 fonts. Note that direct substitutes for the bitmapped EC fonts are available,
4756 via the CM-super, Latin Modern and (in a restricted way) CM-LGC font sets.")
4757 (license license:lppl1.3+)))
4759 (define-public texlive-times
4761 (inherit (simple-texlive-package
4763 (list "/dvips/times/"
4764 "/fonts/afm/adobe/times/"
4765 "/fonts/afm/urw/times/"
4766 "/fonts/tfm/adobe/times/"
4767 "/fonts/tfm/urw35vf/times/"
4768 "/fonts/type1/urw/times/"
4769 "/fonts/vf/adobe/times/"
4770 "/fonts/vf/urw35vf/times/"
4771 "/fonts/map/dvips/times/"
4772 "/tex/latex/times/")
4774 "13g41a7vbkvsf7ki9dgl7qm100w382mnlqkcngwgl3axp6s5s8l0")
4776 (home-page "https://ctan.org/pkg/urw-base35")
4777 (synopsis "URW Base 35 font pack for LaTeX")
4779 "This package provides a drop-in replacements for the Times font from
4780 Adobe's basic set.")
4781 ;; No license version specified.
4782 (license license:gpl3+)))
4784 (define-public texlive-fonts-adobe-times
4785 (deprecated-package "texlive-fonts-adobe-times" texlive-times))
4787 (define-public texlive-palatino
4789 (inherit (simple-texlive-package
4791 (list "/dvips/palatino/"
4792 "/fonts/afm/adobe/palatino/"
4793 "/fonts/afm/urw/palatino/"
4794 "/fonts/tfm/adobe/palatino/"
4795 "/fonts/tfm/urw35vf/palatino/"
4796 "/fonts/type1/urw/palatino/"
4797 "/fonts/vf/adobe/palatino/"
4798 "/fonts/vf/urw35vf/palatino/"
4800 "/fonts/map/dvips/palatino/"
4801 "/tex/latex/palatino/")
4803 "12jc0av7v99857jigmva47qaxyllhpzsnqis10n0qya2kz44xf22")
4805 (home-page "https://ctan.org/pkg/urw-base35")
4806 (synopsis "URW Base 35 font pack for LaTeX")
4808 "This package provides a drop-in replacements for the Palatino font from
4809 Adobe's basic set.")
4810 ;; No license version specified.
4811 (license license:gpl3+)))
4813 (define-public texlive-fonts-adobe-palatino
4814 (deprecated-package "texlive-fonts-adobe-palatino" texlive-palatino))
4816 (define-public texlive-zapfding
4818 (inherit (simple-texlive-package
4820 (list "/dvips/zapfding/"
4821 "/fonts/afm/adobe/zapfding/"
4822 "/fonts/afm/urw/zapfding/"
4823 "/fonts/tfm/adobe/zapfding/"
4824 "/fonts/tfm/urw35vf/zapfding/"
4825 "/fonts/type1/urw/zapfding/"
4826 "/fonts/map/dvips/zapfding/"
4827 "/tex/latex/zapfding/")
4829 "17mls8wilz9api9ivsbcczpiqp1f39qy8wa6ajssi8zhnc5lq7zn")
4831 (home-page "https://ctan.org/pkg/urw-base35")
4832 (synopsis "URW Base 35 font pack for LaTeX")
4834 "This package provides a drop-in replacements for the Zapfding font from
4835 Adobe's basic set.")
4836 ;; No license version specified.
4837 (license license:gpl3+)))
4839 (define-public texlive-fonts-adobe-zapfding
4840 (deprecated-package "texlive-fonts-adobe-zapfding" texlive-zapfding))
4842 (define-public texlive-fonts-rsfs
4844 (name "texlive-fonts-rsfs")
4845 (version (number->string %texlive-revision))
4849 (url (string-append "svn://www.tug.org/texlive/tags/"
4850 %texlive-tag "/Master/texmf-dist/"
4851 "/fonts/source/public/rsfs/"))
4852 (revision %texlive-revision)))
4853 (file-name (string-append name "-" version "-checkout"))
4856 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
4857 (build-system gnu-build-system)
4859 `(#:modules ((guix build gnu-build-system)
4863 #:tests? #f ; no tests
4865 (modify-phases %standard-phases
4868 (lambda* (#:key inputs #:allow-other-keys)
4869 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
4870 ;; Tell mf where to find mf.base
4871 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
4872 ;; Tell mf where to look for source files
4874 (string-append (getcwd) ":"
4875 mf "/share/texmf-dist/metafont/base:"
4876 (assoc-ref inputs "texlive-cm")
4877 "/share/texmf-dist/fonts/source/public/cm")))
4879 (for-each (lambda (font)
4880 (format #t "building font ~a\n" font)
4881 (invoke "mf" "-progname=mf"
4882 "-output-directory=build"
4887 "input " (basename font ".mf"))))
4888 (find-files "." "[0-9]+\\.mf$"))
4891 (lambda* (#:key outputs #:allow-other-keys)
4892 (let* ((out (assoc-ref outputs "out"))
4894 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
4896 out "/share/texmf-dist/fonts/source/public/rsfs")))
4897 (for-each (cut install-file <> tfm)
4898 (find-files "build" "\\.*"))
4899 (for-each (cut install-file <> mf)
4900 (find-files "." "\\.mf"))
4903 `(("texlive-bin" ,texlive-bin)
4904 ("texlive-metafont-base" ,texlive-metafont-base)
4905 ("texlive-cm" ,texlive-cm)))
4906 (home-page "https://www.ctan.org/pkg/rsfs")
4907 (synopsis "Ralph Smith's Formal Script font")
4909 "The fonts provide uppercase formal script letters for use as symbols in
4910 scientific and mathematical typesetting (in contrast to the informal script
4911 fonts such as that used for the calligraphic symbols in the TeX maths symbol
4912 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
4913 format. LaTeX support, for using these fonts in mathematics, is available via
4914 one of the packages @code{calrsfs} and @code{mathrsfs}.")
4915 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
4917 (define-public texlive-latex-eso-pic
4919 (name "texlive-latex-eso-pic")
4920 (version (number->string %texlive-revision))
4923 (uri (texlive-ref "latex" "eso-pic"))
4924 (file-name (string-append name "-" version "-checkout"))
4927 "0y2y08kr3w6asm9lblj9yywqmhaal36fq71zzcbfsc7cvwf641q7"))))
4928 (build-system texlive-build-system)
4929 (arguments '(#:tex-directory "latex/eso-pic"))
4930 (home-page "https://www.ctan.org/pkg/eso-pic")
4931 (synopsis "Add picture commands (or backgrounds) to every page")
4933 "The package adds one or more user commands to LaTeX's @code{shipout}
4934 routine, which may be used to place the output at fixed positions. The
4935 @code{grid} option may be used to find the correct places.")
4936 (license license:lppl1.3+)))
4938 (define-public texlive-latex-eepic
4940 (name "texlive-latex-eepic")
4941 (version (number->string %texlive-revision))
4945 (url (string-append "svn://www.tug.org/texlive/tags/"
4946 %texlive-tag "/Master/texmf-dist/"
4947 "/tex/latex/eepic"))
4948 (revision %texlive-revision)))
4949 (file-name (string-append name "-" version "-checkout"))
4952 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
4953 (build-system trivial-build-system)
4955 `(#:modules ((guix build utils))
4958 (use-modules (guix build utils))
4959 (let ((target (string-append (assoc-ref %outputs "out")
4960 "/share/texmf-dist/tex/latex/eepic")))
4962 (copy-recursively (assoc-ref %build-inputs "source") target)
4964 (home-page "https://www.ctan.org/pkg/eepic")
4965 (synopsis "Extensions to epic and the LaTeX drawing tools")
4967 "Extensions to @code{epic} and the LaTeX picture drawing environment,
4968 include the drawing of lines at any slope, the drawing of circles in any
4969 radii, and the drawing of dotted and dashed lines much faster with much less
4970 TeX memory, and providing several new commands for drawing ellipses, arcs,
4971 splines, and filled circles and ellipses. The package uses @code{tpic}
4972 @code{\\special} commands.")
4973 (license license:public-domain)))
4975 (define-public texlive-latex-enumitem
4977 (name "texlive-latex-enumitem")
4978 (version (number->string %texlive-revision))
4982 (url (string-append "svn://www.tug.org/texlive/tags/"
4983 %texlive-tag "/Master/texmf-dist/"
4984 "/tex/latex/enumitem"))
4985 (revision %texlive-revision)))
4986 (file-name (string-append name "-" version "-checkout"))
4989 "1vm9xp67hzif0pqab4r3ialf0cyhi0fa4p8kxgp1ymcf85pqip14"))))
4990 (build-system trivial-build-system)
4992 `(#:modules ((guix build utils))
4995 (use-modules (guix build utils))
4996 (let ((target (string-append (assoc-ref %outputs "out")
4997 "/share/texmf-dist/tex/latex/enumitem")))
4999 (copy-recursively (assoc-ref %build-inputs "source") target)
5001 (home-page "https://www.ctan.org/pkg/enumitem")
5002 (synopsis "Customize basic list environments")
5004 "This package is intended to ease customizing the three basic list
5005 environments: @code{enumerate}, @code{itemize} and @code{description}. It
5006 extends their syntax to allow an optional argument where a set of parameters
5007 in the form @code{key=value} are available, for example:
5008 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
5009 (license license:lppl1.3+)))
5011 (define-public texlive-latex-multirow
5013 (name "texlive-latex-multirow")
5014 (version (number->string %texlive-revision))
5017 (uri (texlive-ref "latex" "multirow"))
5018 (file-name (string-append name "-" version "-checkout"))
5021 "07vbcp6avdwldr870cwf65av2s9lfyzcpp8gpld53yw6lcxgaipj"))))
5022 (build-system texlive-build-system)
5023 (arguments '(#:tex-directory "latex/multirow"))
5024 (home-page "https://www.ctan.org/pkg/multirow")
5025 (synopsis "Create tabular cells spanning multiple rows")
5027 "The package provides tools for creating tabular cells spanning multiple
5028 rows. It has a lot of flexibility, including an option for specifying an
5029 entry at the \"natural\" width of its text.")
5030 (license license:lppl1.3+)))
5032 (define-public texlive-latex-overpic
5034 (name "texlive-latex-overpic")
5035 (version (number->string %texlive-revision))
5039 (url (string-append "svn://www.tug.org/texlive/tags/"
5040 %texlive-tag "/Master/texmf-dist/"
5041 "/tex/latex/overpic"))
5042 (revision %texlive-revision)))
5043 (file-name (string-append name "-" version "-checkout"))
5046 "1pr6ym3ad7x14ng7gmhsmywh3685d2cnm5qgyrqbigng2r6fcc1k"))))
5047 (build-system trivial-build-system)
5049 `(#:modules ((guix build utils))
5052 (use-modules (guix build utils))
5053 (let ((target (string-append (assoc-ref %outputs "out")
5054 "/share/texmf-dist/tex/latex/overpic")))
5056 (copy-recursively (assoc-ref %build-inputs "source") target)
5058 (home-page "https://www.ctan.org/pkg/overpic")
5059 (synopsis "Combine LaTeX commands over included graphics")
5061 "The @code{overpic} environment is a cross between the LaTeX
5062 @code{picture} environment and the @code{\\includegraphics} command of
5063 @code{graphicx}. The resulting picture environment has the same dimensions as
5064 the included graphic. LaTeX commands can be placed on the graphic at defined
5065 positions; a grid for orientation is available.")
5066 (license license:lppl1.0+)))
5068 (define-public texlive-latex-parskip
5070 (name "texlive-latex-parskip")
5071 (version (number->string %texlive-revision))
5075 (url (string-append "svn://www.tug.org/texlive/tags/"
5076 %texlive-tag "/Master/texmf-dist/"
5077 "/tex/latex/parskip"))
5078 (revision %texlive-revision)))
5079 (file-name (string-append name "-" version "-checkout"))
5082 "0j1fhm1m9k6rz80lmch3x44g20y9nm4abaaf8czb0q8hzwlx5aq5"))))
5083 (build-system trivial-build-system)
5085 `(#:modules ((guix build utils))
5088 (use-modules (guix build utils))
5089 (let ((target (string-append (assoc-ref %outputs "out")
5090 "/share/texmf-dist/tex/latex/parskip")))
5092 (copy-recursively (assoc-ref %build-inputs "source") target)
5094 (home-page "https://www.ctan.org/pkg/parskip")
5095 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
5097 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
5098 that is untidy; this package (though it is no substitute for a properly
5099 designed class) helps alleviate this untidiness.")
5100 (license license:lppl)))
5102 (define-public texlive-latex-pdfpages
5104 (name "texlive-latex-pdfpages")
5105 (version (number->string %texlive-revision))
5108 (uri (texlive-ref "latex" "pdfpages"))
5109 (file-name (string-append name "-" version "-checkout"))
5112 "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd"))))
5113 (build-system texlive-build-system)
5114 (arguments '(#:tex-directory "latex/pdfpages"))
5115 (home-page "https://www.ctan.org/pkg/pdfpages")
5116 (synopsis "Include PDF documents in LaTeX")
5118 "This package simplifies the inclusion of external multi-page PDF
5119 documents in LaTeX documents. Pages may be freely selected and it is possible
5120 to put several logical pages onto each sheet of paper. Furthermore a lot of
5121 hypertext features like hyperlinks and article threads are provided. The
5122 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
5123 use this package to insert PostScript files, in addition to PDF files.")
5124 (license license:lppl1.3+)))
5126 (define-public texlive-fonts-stmaryrd
5128 (name "texlive-fonts-stmaryrd")
5129 (version (number->string %texlive-revision))
5132 (uri (texlive-ref "fonts" "stmaryrd"))
5133 (file-name (string-append name "-" version "-checkout"))
5136 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
5137 (build-system texlive-build-system)
5139 '(#:tex-directory "latex/stmaryrd"
5141 (modify-phases %standard-phases
5142 (add-after 'configure 'patch-ins
5144 (substitute* "stmaryrd.ins"
5145 (("^%% LaTeX2e.*") "\\input docstrip\n")
5146 (("fontdef\\}\\}" line)
5147 (string-append line "\n\\endbatchfile")))
5149 (home-page "https://www.ctan.org/pkg/stmaryrd")
5150 (synopsis "St Mary Road symbols for theoretical computer science")
5152 "The fonts were originally distributed as Metafont sources only, but
5153 Adobe Type 1 versions are also now available. Macro support is provided for
5154 use under LaTeX; the package supports the @code{only} option (provided by the
5155 @code{somedefs} package) to restrict what is loaded, for those who don't need
5157 (license license:lppl)))
5159 (define-public texlive-latex-subfigure
5161 (name "texlive-latex-subfigure")
5162 (version (number->string %texlive-revision))
5165 (uri (texlive-ref "latex" "subfigure"))
5166 (file-name (string-append name "-" version "-checkout"))
5169 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
5170 (build-system texlive-build-system)
5171 (arguments '(#:tex-directory "latex/subfigure"))
5172 (home-page "https://www.ctan.org/pkg/subfigure")
5173 (synopsis "Figures divided into subfigures")
5175 "This (deprecated) package provides support for the manipulation and
5176 reference of small or \"sub\" figures and tables within a single figure or
5177 table environment. It is convenient to use this package when your subfigures
5178 are to be separately captioned, referenced, or are to be included in the
5179 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
5180 used inside a figure environment for each subfigure. An optional first
5181 argument is used as the caption for that subfigure. The package is now
5182 considered obsolete: it was superseded by @code{subfig}, but users may find
5183 the more recent @code{subcaption} package more satisfactory.")
5184 (license license:lppl)))
5186 (define-public texlive-latex-tabulary
5188 (name "texlive-latex-tabulary")
5189 (version (number->string %texlive-revision))
5192 (uri (texlive-ref "latex" "tabulary"))
5193 (file-name (string-append name "-" version "-checkout"))
5196 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
5197 (build-system texlive-build-system)
5198 (arguments '(#:tex-directory "latex/tabulary"))
5199 (home-page "https://www.ctan.org/pkg/tabulary")
5200 (synopsis "Tabular with variable width columns balanced")
5202 "The package defines a @code{tabular*}-like environment, @code{tabulary},
5203 taking a \"total width\" argument as well as the column specifications. The
5204 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
5205 variable width columns (@code{\\raggedright}, @code{\\centering},
5206 @code{\\raggedleft}, and normally justified). In contrast to
5207 @code{tabularx}'s @code{X} columns, the width of each column is weighted
5208 according to the natural width of the widest cell in the column.")
5209 (license license:lppl)))
5211 (define-public texlive-latex-threeparttable
5213 (name "texlive-latex-threeparttable")
5214 (version (number->string %texlive-revision))
5218 (url (string-append "svn://www.tug.org/texlive/tags/"
5219 %texlive-tag "/Master/texmf-dist/"
5220 "/tex/latex/threeparttable"))
5221 (revision %texlive-revision)))
5222 (file-name (string-append name "-" version "-checkout"))
5225 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
5226 (build-system trivial-build-system)
5228 `(#:modules ((guix build utils))
5231 (use-modules (guix build utils))
5232 (let ((target (string-append (assoc-ref %outputs "out")
5233 "/share/texmf-dist/tex/latex/threeparttable")))
5235 (copy-recursively (assoc-ref %build-inputs "source") target)
5237 (home-page "https://www.ctan.org/pkg/threeparttable")
5238 (synopsis "Tables with captions and notes all the same width")
5240 "This package facilitates tables with titles (captions) and notes. The
5241 title and notes are given a width equal to the body of the table (a
5242 @code{tabular} environment). By itself, a @code{threeparttable} does not
5243 float, but you can put it in a @code{table} or a @code{table*} or some other
5245 (license (license:fsf-free "file://threeparttable.sty"))))
5247 (define-public texlive-txfonts
5249 (inherit (simple-texlive-package
5251 (list "/doc/fonts/txfonts/"
5253 "/fonts/afm/public/txfonts/"
5254 "/fonts/tfm/public/txfonts/"
5255 "/fonts/type1/public/txfonts/"
5256 "/fonts/vf/public/txfonts/"
5258 "/fonts/map/dvips/txfonts/"
5259 "/fonts/enc/dvips/txfonts/"
5260 "/tex/latex/txfonts/")
5262 "017zjas5y1zlyq0iy4x6mv1qbz23xcy3y5xs0crj6zdnfvnccqgp")
5264 (home-page "https://www.ctan.org/pkg/txfonts")
5265 (synopsis "Times-like fonts in support of mathematics")
5267 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
5268 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
5269 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
5270 providing all the symbols of the Computer Modern and AMS fonts, including all
5271 the Greek capital letters from CMR; and additional maths fonts of various
5274 The set is complemented by a sans-serif set of text fonts, based on
5275 Helvetica/NimbusSanL, and a monospace set.
5277 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
5278 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
5279 ;; Any version of the GPL with font exception.
5280 (license license:gpl3+)))
5282 (define-public texlive-fonts-txfonts
5283 (deprecated-package "texlive-fonts-txfonts" texlive-txfonts))
5285 (define-public texlive-fonts-iwona
5287 (name "texlive-fonts-iwona")
5291 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
5292 (string-map (lambda (c)
5299 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
5300 (build-system trivial-build-system)
5302 `(#:modules ((guix build utils))
5305 (use-modules (guix build utils))
5306 (let ((target (string-append (assoc-ref %outputs "out")
5307 "/share/texmf-dist/"))
5308 (unzip (string-append (assoc-ref %build-inputs "unzip")
5310 (invoke unzip (assoc-ref %build-inputs "source"))
5312 (copy-recursively "iwona" target)
5315 `(("unzip" ,unzip)))
5316 (home-page "http://jmn.pl/en/kurier-i-iwona/")
5317 (synopsis "Sans-serif typeface for TeX")
5318 (description "Iwona is a two-element sans-serif typeface. It was created
5319 as an alternative version of the Kurier typeface, which was designed in 1975
5320 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
5321 supervision of Roman Tomaszewski. Kurier was designed for linotype
5322 typesetting of newspapers and similar periodicals. The Iwona fonts are an
5323 alternative version of the Kurier fonts. The difference lies in the absence
5324 of ink traps which typify the Kurier font.")
5325 (license license:gfl1.0)))
5327 (define-public texlive-latex-titlesec
5329 (name "texlive-latex-titlesec")
5330 (version (number->string %texlive-revision))
5334 (url (string-append "svn://www.tug.org/texlive/tags/"
5335 %texlive-tag "/Master/texmf-dist/"
5336 "/tex/latex/titlesec"))
5337 (revision %texlive-revision)))
5338 (file-name (string-append name "-" version "-checkout"))
5341 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
5342 (build-system trivial-build-system)
5344 `(#:modules ((guix build utils))
5347 (use-modules (guix build utils))
5348 (let ((target (string-append (assoc-ref %outputs "out")
5349 "/share/texmf-dist/tex/latex/titlesec")))
5351 (copy-recursively (assoc-ref %build-inputs "source") target)
5353 (home-page "https://www.ctan.org/pkg/titlesec")
5354 (synopsis "Select alternative section titles")
5356 "This package provides an interface to sectioning commands for selection
5357 from various title styles, e.g. for marginal titles and to change the font of
5358 all headings with a single command, also providing simple one-step page
5359 styles. It also includes a package to change the page styles when there are
5360 floats in a page. You may assign headers/footers to individual floats, too.")
5361 (license license:lppl)))
5363 (define-public texlive-latex-type1cm
5365 (name "texlive-latex-type1cm")
5366 (version (number->string %texlive-revision))
5369 (uri (texlive-ref "latex" "type1cm"))
5370 (file-name (string-append name "-" version "-checkout"))
5373 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
5374 (build-system texlive-build-system)
5375 (arguments '(#:tex-directory "latex/type1cm"))
5376 (home-page "https://www.ctan.org/pkg/type1cm")
5377 (synopsis "Arbitrary size font selection in LaTeX")
5379 "LaTeX, by default, restricts the sizes at which you can use its default
5380 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
5381 specified by Knuth). The @code{type1cm} package removes this restriction;
5382 this is particularly useful when using scalable versions of the CM
5383 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
5384 PCTeX, etc.). In fact, since modern distributions will automatically generate
5385 any bitmap font you might need, @code{type1cm} has wider application than just
5386 those using scalable versions of the fonts. Note that the LaTeX distribution
5387 now contains a package @code{fix-cm},f which performs the task of
5388 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
5390 (license license:lppl)))
5392 (define-public texlive-latex-lh
5394 (name "texlive-latex-lh")
5395 (version (number->string %texlive-revision))
5398 (uri (texlive-ref "latex" "lh"))
5399 (file-name (string-append name "-" version "-checkout"))
5402 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
5403 (build-system texlive-build-system)
5404 (arguments '(#:tex-directory "latex/lh"))
5405 (home-page "https://www.ctan.org/pkg/lh")
5406 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
5408 "The LH fonts address the problem of the wide variety of alphabets that
5409 are written with Cyrillic-style characters. The fonts are the original basis
5410 of the set of T2* and X2 encodings that are now used when LaTeX users need to
5411 write in Cyrillic languages. Macro support in standard LaTeX encodings is
5412 offered through the latex-cyrillic and t2 bundles, and the package itself
5413 offers support for other (more traditional) encodings. The fonts, in the
5414 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
5415 CM-Super family of fonts. The package also offers its own LaTeX support for
5416 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
5417 (license license:lppl)))
5419 (define-public texlive-metapost
5421 (name "texlive-metapost")
5422 (version (number->string %texlive-revision))
5426 (url (string-append "svn://www.tug.org/texlive/tags/"
5427 %texlive-tag "/Master/texmf-dist/"
5429 (revision %texlive-revision)))
5430 (file-name (string-append name "-" version "-checkout"))
5433 "1xyd57c8z1xi0kbqpbad61flcazz68i9ssxrag0gjvci3irxi8xh"))))
5434 (build-system trivial-build-system)
5436 `(#:modules ((guix build utils))
5439 (use-modules (guix build utils))
5440 (let ((target (string-append (assoc-ref %outputs "out")
5441 "/share/texmf-dist/metapost")))
5443 (copy-recursively (assoc-ref %build-inputs "source") target)
5445 (home-page "https://www.ctan.org/pkg/metapost")
5446 (synopsis "Create scalable illustrations")
5448 "MetaPost uses a language based on that of Metafont to produce precise
5449 technical illustrations. Its output is scalable PostScript or SVG, rather
5450 than the bitmaps Metafont creates.")
5451 (license license:lppl)))
5453 (define-public texlive-latex-acmart
5455 (name "texlive-latex-acmart")
5459 (uri (texlive-ref "latex" "acmart"))
5462 "18rl67p2zhngskisnhv78mksv8q8q658l6igkswzswldixmkpphq"))
5463 (file-name (string-append name "-" version "-checkout"))))
5464 (build-system texlive-build-system)
5465 (arguments '(#:tex-directory "latex/acmart"))
5466 (home-page "https://www.ctan.org/pkg/acmart")
5467 (synopsis "Class for typesetting publications of ACM")
5469 "This package provides a class for typesetting publications of the
5470 Association for Computing Machinery (ACM).")
5471 (license license:lppl1.3+)))
5473 (define-public texlive-latex-varwidth
5475 (name "texlive-latex-varwidth")
5476 (version (number->string %texlive-revision))
5480 (url (string-append "svn://www.tug.org/texlive/tags/"
5481 %texlive-tag "/Master/texmf-dist/"
5482 "/tex/latex/varwidth"))
5483 (revision %texlive-revision)))
5484 (file-name (string-append name "-" version "-checkout"))
5487 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
5488 (build-system trivial-build-system)
5490 `(#:modules ((guix build utils))
5493 (use-modules (guix build utils))
5494 (let ((target (string-append (assoc-ref %outputs "out")
5495 "/share/texmf-dist/tex/latex/varwidth")))
5497 (copy-recursively (assoc-ref %build-inputs "source") target)
5499 (home-page "https://www.ctan.org/pkg/varwidth")
5500 (synopsis "Variable-width minipage")
5502 "The @code{varwidth} environment is superficially similar to
5503 @code{minipage}, but the specified width is just a maximum value — the box may
5504 get a narrower “natural” width.")
5505 (license license:lppl)))
5507 (define-public texlive-latex-wasysym
5509 (name "texlive-latex-wasysym")
5510 (version (number->string %texlive-revision))
5513 (uri (texlive-ref "latex" "wasysym"))
5514 (file-name (string-append name "-" version "-checkout"))
5517 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
5518 (build-system texlive-build-system)
5519 (arguments '(#:tex-directory "latex/wasysym"))
5520 (home-page "https://www.ctan.org/pkg/wasysym")
5521 (synopsis "LaTeX support file to use the WASY2 fonts")
5523 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
5524 like male and female symbols and astronomical symbols, as well as the complete
5525 lasy font set and other odds and ends. The wasysym package implements an easy
5526 to use interface for these symbols.")
5527 (license license:lppl)))
5529 (define-public texlive-latex-wrapfig
5531 (name "texlive-latex-wrapfig")
5532 (version (number->string %texlive-revision))
5536 (url (string-append "svn://www.tug.org/texlive/tags/"
5537 %texlive-tag "/Master/texmf-dist/"
5538 "/tex/latex/wrapfig"))
5539 (revision %texlive-revision)))
5540 (file-name (string-append name "-" version "-checkout"))
5543 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
5544 (build-system trivial-build-system)
5546 `(#:modules ((guix build utils))
5549 (use-modules (guix build utils))
5550 (let ((target (string-append (assoc-ref %outputs "out")
5551 "/share/texmf-dist/tex/latex/wrapfig")))
5553 (copy-recursively (assoc-ref %build-inputs "source") target)
5555 (home-page "https://www.ctan.org/pkg/wrapfig")
5556 (synopsis "Produces figures which text can flow around")
5558 "This package allows figures or tables to have text wrapped around them.
5559 It does not work in combination with list environments, but can be used in a
5560 @code{parbox} or @code{minipage}, and in two-column format.")
5561 (license license:lppl)))
5563 (define-public texlive-latex-ucs
5565 (name "texlive-latex-ucs")
5566 (version (number->string %texlive-revision))
5570 (url (string-append "svn://www.tug.org/texlive/tags/"
5571 %texlive-tag "/Master/texmf-dist/"
5573 (revision %texlive-revision)))
5574 (file-name (string-append name "-" version "-checkout"))
5577 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
5578 (build-system trivial-build-system)
5580 `(#:modules ((guix build utils))
5583 (use-modules (guix build utils))
5584 (let ((target (string-append (assoc-ref %outputs "out")
5585 "/share/texmf-dist/tex/latex/ucs")))
5587 (copy-recursively (assoc-ref %build-inputs "source") target)
5589 (home-page "https://www.ctan.org/pkg/ucs")
5590 (synopsis "Extended UTF-8 input encoding support for LaTeX")
5592 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
5593 together with a large number of support files. The @code{utf8x.def}
5594 definition file for use with @code{inputenc} covers a wider range of Unicode
5595 characters than does @code{utf8.def} in the LaTeX distribution. The package
5596 provides facilities for efficient use of its large sets of Unicode characters.
5597 Glyph production may be controlled by various options, which permits use of
5598 non-ASCII characters when coding mathematical formulae. Note that the bundle
5599 previously had an alias “unicode”; that alias has now been withdrawn, and no
5600 package of that name now exists.")
5601 (license license:lppl1.3+)))
5603 (define-public texlive-latex-preview
5605 (name "texlive-latex-preview")
5606 (version (number->string %texlive-revision))
5609 (uri (texlive-ref "latex" "preview"))
5610 (file-name (string-append name "-" version "-checkout"))
5613 "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6"))))
5614 (build-system texlive-build-system)
5616 '(#:tex-directory "latex/preview"
5618 (modify-phases %standard-phases
5619 (add-after 'unpack 'remove-generated-file
5621 (delete-file "preview.drv")
5623 (home-page "https://www.ctan.org/pkg/preview")
5624 (synopsis "Extract bits of a LaTeX source for output")
5626 "The main purpose of the preview package is the extraction of selected
5627 elements from a LaTeX source, like formulas or graphics, into separate
5628 pages of a DVI file. A flexible and convenient interface allows it to
5629 specify what commands and constructs should be extracted. This works
5630 with DVI files postprocessed by either Dvips and Ghostscript or
5631 dvipng, but it also works when you are using PDFTeX for generating PDF
5633 (license license:gpl3+)))
5635 (define-public texlive-latex-acronym
5637 (name "texlive-latex-acronym")
5638 (version (number->string %texlive-revision))
5641 (uri (texlive-ref "latex" "acronym"))
5642 (file-name (string-append name "-" version "-checkout"))
5645 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
5646 (build-system texlive-build-system)
5647 (arguments '(#:tex-directory "latex/acronym"))
5648 (home-page "https://www.ctan.org/pkg/acronym")
5649 (synopsis "Expand acronyms at least once")
5651 "This package ensures that all acronyms used in the text are spelled out
5652 in full at least once. It also provides an environment to build a list of
5653 acronyms used. The package is compatible with PDF bookmarks. The package
5654 requires the suffix package, which in turn requires that it runs under
5656 (license license:lppl1.3+)))
5658 (define-public texlive-generic-pdftex
5660 (name "texlive-generic-pdftex")
5661 (version (number->string %texlive-revision))
5665 (url (string-append "svn://www.tug.org/texlive/tags/"
5666 %texlive-tag "/Master/texmf-dist/"
5667 "/tex/generic/pdftex"))
5668 (revision %texlive-revision)))
5669 (file-name (string-append name "-" version "-checkout"))
5672 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
5673 (build-system trivial-build-system)
5675 `(#:modules ((guix build utils))
5678 (use-modules (guix build utils))
5679 (let ((target (string-append (assoc-ref %outputs "out")
5680 "/share/texmf-dist/tex/generic/pdftex"))
5681 (target-map (string-append (assoc-ref %outputs "out")
5682 "/share/texmf-dist/fonts/map/pdftex")))
5684 (copy-recursively (assoc-ref %build-inputs "source") target)
5685 (mkdir-p target-map)
5686 (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map)
5693 (url (string-append "svn://www.tug.org/texlive/tags/"
5694 %texlive-tag "/Master/texmf-dist/"
5695 "/fonts/map/pdftex"))
5696 (revision %texlive-revision)))
5697 (file-name (string-append name "-map-" version "-checkout"))
5700 "03rfif2631pgd8g1ar4xblcdh078kky7fvw3kfsj5a47rxxgicp2"))))))
5701 (home-page "https://www.ctan.org/pkg/pdftex")
5702 (synopsis "TeX extension for direct creation of PDF")
5704 "This package provides an extension of TeX which can be configured to
5705 directly generate PDF documents instead of DVI.")
5706 (license license:gpl2+)))
5708 (define texlive-texmf
5710 (name "texlive-texmf")
5711 (version "20190410")
5712 (source texlive-texmf-src)
5713 (build-system gnu-build-system)
5715 `(("texlive-bin" ,texlive-bin)
5718 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5722 `(#:modules ((guix build gnu-build-system)
5726 ;; This package takes 4 GiB, which we can't afford to distribute from
5731 (modify-phases (map (cut assq <> %standard-phases)
5732 '(set-paths unpack patch-source-shebangs))
5733 (add-after 'unpack 'unset-environment-variables
5736 (unsetenv "TEXMFCNF")
5738 (add-after 'patch-source-shebangs 'install
5739 (lambda* (#:key outputs #:allow-other-keys)
5740 (let ((share (string-append (assoc-ref outputs "out") "/share")))
5742 (invoke "mv" "texmf-dist" share))))
5743 (add-after 'install 'texmf-config
5744 (lambda* (#:key inputs outputs #:allow-other-keys)
5745 (let* ((out (assoc-ref outputs "out"))
5746 (share (string-append out "/share"))
5747 (texmfroot (string-append share "/texmf-dist/web2c"))
5748 (texmfcnf (string-append texmfroot "/texmf.cnf"))
5749 (texlive-bin (assoc-ref inputs "texlive-bin"))
5750 (texbin (string-append texlive-bin "/bin"))
5751 (tlpkg (string-append texlive-bin "/share/tlpkg")))
5752 ;; Register SHARE as TEXMFROOT in texmf.cnf.
5753 (substitute* texmfcnf
5754 (("TEXMFROOT = \\$SELFAUTOPARENT")
5755 (string-append "TEXMFROOT = " share))
5756 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
5757 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
5758 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
5759 ;; Register paths in texmfcnf.lua, needed for context.
5760 (substitute* (string-append texmfroot "/texmfcnf.lua")
5761 (("selfautodir:") out)
5762 (("selfautoparent:") (string-append share "/")))
5763 ;; Set path to TeXLive Perl modules
5765 (string-append (getenv "PERL5LIB") ":" tlpkg))
5766 ;; Configure the texmf-dist tree; inspired from
5767 ;; http://slackbuilds.org/repository/13.37/office/texlive/
5768 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
5769 (setenv "TEXMFCNF" texmfroot)
5770 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
5772 (invoke "fmtutil-sys" "--all")))))))
5773 (properties `((max-silent-time . 9600))) ; don't time out while grafting
5774 (synopsis "TeX Live, a package of the TeX typesetting system")
5776 "TeX Live provides a comprehensive TeX document production system.
5777 It includes all the major TeX-related programs, macro packages, and fonts
5778 that are free software, including support for many languages around the
5781 This package contains the complete tree of texmf-dist data.")
5782 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
5783 (home-page "https://www.tug.org/texlive/")))
5785 (define-public texlive
5788 (version "20190410")
5790 (build-system trivial-build-system)
5791 (inputs `(("bash" ,bash) ; for wrap-program
5792 ("texlive-bin" ,texlive-bin)
5793 ("texlive-texmf" ,texlive-texmf)))
5794 (native-search-paths
5795 (list (search-path-specification
5796 (variable "TEXMFLOCAL")
5797 (files '("share/texmf-local")))))
5799 `(#:modules ((guix build utils))
5801 ;; Build the union of texlive-bin and texlive-texmf, but take the
5802 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
5804 (use-modules (guix build utils))
5805 (let ((out (assoc-ref %outputs "out"))
5806 (bin (assoc-ref %build-inputs "texlive-bin"))
5807 (texmf (assoc-ref %build-inputs "texlive-texmf"))
5808 (bash (assoc-ref %build-inputs "bash")))
5810 (with-directory-excursion out
5813 (symlink (string-append bin "/" name) name))
5816 (with-directory-excursion "bin"
5817 (setenv "PATH" (string-append bash "/bin"))
5820 (symlink name (basename name))
5824 (,(string-append texmf "/share/texmf-dist/web2c")))))
5825 (find-files (string-append bin "/bin/") "")))
5827 (with-directory-excursion "share"
5830 (symlink (string-append bin "/share/" name) name))
5831 '("info" "man" "tlpkg"))
5834 (symlink (string-append texmf "/share/" name) name))
5835 '("texmf-dist" "texmf-var"))))
5837 (synopsis "TeX Live, a package of the TeX typesetting system")
5839 "TeX Live provides a comprehensive TeX document production system.
5840 It includes all the major TeX-related programs, macro packages, and fonts
5841 that are free software, including support for many languages around the
5844 This package contains the complete TeX Live distribution.")
5845 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
5846 (home-page "https://www.tug.org/texlive/")))
5848 (define-public perl-text-bibtex
5850 (name "perl-text-bibtex")
5855 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
5859 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
5860 (build-system perl-build-system)
5863 (modify-phases %standard-phases
5864 (add-after 'unpack 'add-output-directory-to-rpath
5865 (lambda* (#:key outputs #:allow-other-keys)
5866 (substitute* "inc/MyBuilder.pm"
5868 (string-append "-Wl,-rpath="
5869 (assoc-ref outputs "out") "/lib " line)))
5871 (add-after 'unpack 'install-libraries-to-/lib
5872 (lambda* (#:key outputs #:allow-other-keys)
5873 (substitute* "Build.PL"
5877 `(("perl-capture-tiny" ,perl-capture-tiny)
5878 ("perl-config-autoconf" ,perl-config-autoconf)
5879 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
5880 ("perl-module-build" ,perl-module-build)))
5881 (home-page "https://metacpan.org/release/Text-BibTeX")
5882 (synopsis "Interface to read and parse BibTeX files")
5883 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
5884 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
5885 at many different levels: you may work with BibTeX entries as simple field to
5886 string mappings, or get at the original form of the data as a list of simple
5887 values (strings, macros, or numbers) pasted together.")
5888 (license license:perl-license)))
5890 (define-public biber
5897 (url "https://github.com/plk/biber/")
5898 (commit (string-append "v" version))))
5899 (file-name (git-file-name name version))
5900 ;; TODO: Patch awaiting inclusion upstream (see:
5901 ;; https://github.com/plk/biber/issues/239).
5902 (patches (search-patches "biber-fix-encoding-write.patch"))
5905 "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx"))))
5906 (build-system perl-build-system)
5909 (modify-phases %standard-phases
5910 (add-after 'install 'wrap-programs
5911 (lambda* (#:key outputs #:allow-other-keys)
5912 (let* ((out (assoc-ref outputs "out"))
5913 (perl5lib (getenv "PERL5LIB")))
5914 (wrap-program (string-append out "/bin/biber")
5915 `("PERL5LIB" ":" prefix
5916 (,(string-append perl5lib ":" out
5917 "/lib/perl5/site_perl")))))
5920 `(("perl-autovivification" ,perl-autovivification)
5921 ("perl-class-accessor" ,perl-class-accessor)
5922 ("perl-data-dump" ,perl-data-dump)
5923 ("perl-data-compare" ,perl-data-compare)
5924 ("perl-data-uniqid" ,perl-data-uniqid)
5925 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
5926 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
5927 ("perl-file-slurper" ,perl-file-slurper)
5928 ("perl-ipc-cmd" ,perl-ipc-cmd)
5929 ("perl-ipc-run3" ,perl-ipc-run3)
5930 ("perl-list-allutils" ,perl-list-allutils)
5931 ("perl-list-moreutils" ,perl-list-moreutils)
5932 ("perl-mozilla-ca" ,perl-mozilla-ca)
5933 ("perl-regexp-common" ,perl-regexp-common)
5934 ("perl-log-log4perl" ,perl-log-log4perl)
5935 ;; We cannot use perl-unicode-collate here, because otherwise the
5936 ;; hardcoded hashes in the tests would differ. See
5937 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
5938 ;;("perl-unicode-collate" ,perl-unicode-collate)
5939 ("perl-unicode-normalize" ,perl-unicode-normalize)
5940 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
5941 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
5942 ("perl-encode-jis2k" ,perl-encode-jis2k)
5943 ("perl-encode-hanextra" ,perl-encode-hanextra)
5944 ("perl-xml-libxml" ,perl-xml-libxml)
5945 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
5946 ("perl-xml-libxslt" ,perl-xml-libxslt)
5947 ("perl-xml-writer" ,perl-xml-writer)
5948 ("perl-sort-key" ,perl-sort-key)
5949 ("perl-text-csv" ,perl-text-csv)
5950 ("perl-text-csv-xs" ,perl-text-csv-xs)
5951 ("perl-text-roman" ,perl-text-roman)
5952 ("perl-uri" ,perl-uri)
5953 ("perl-text-bibtex" ,perl-text-bibtex)
5954 ("perl-libwww" ,perl-libwww)
5955 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
5956 ("perl-business-isbn" ,perl-business-isbn)
5957 ("perl-business-issn" ,perl-business-issn)
5958 ("perl-business-ismn" ,perl-business-ismn)
5959 ("perl-lingua-translit" ,perl-lingua-translit)))
5961 `(("perl-config-autoconf" ,perl-config-autoconf)
5962 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
5963 ("perl-module-build" ,perl-module-build)
5965 ("perl-file-which" ,perl-file-which)
5966 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
5967 ("perl-test-differences" ,perl-test-differences)))
5968 (home-page "http://biblatex-biber.sourceforge.net/")
5969 (synopsis "Backend for the BibLaTeX citation management tool")
5970 (description "Biber is a BibTeX replacement for users of biblatex. Among
5971 other things it comes with full Unicode support.")
5972 (license license:artistic2.0)))
5974 (define-public rubber
5980 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
5981 version "/+download/rubber-"
5983 (string-append "http://ebeffara.free.fr/pub/rubber-"
5984 version ".tar.gz")))
5987 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
5988 (build-system gnu-build-system)
5989 (arguments '(#:tests? #f)) ; no `check' target
5990 (inputs `(("texinfo" ,texinfo)
5991 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5993 (home-page "https://launchpad.net/rubber")
5994 (synopsis "Wrapper for LaTeX and friends")
5996 "Rubber is a program whose purpose is to handle all tasks related to the
5997 compilation of LaTeX documents. This includes compiling the document itself,
5998 of course, enough times so that all references are defined, and running BibTeX
5999 to manage bibliographic references. Automatic execution of dvips to produce
6000 PostScript documents is also included, as well as usage of pdfLaTeX to produce
6002 (license license:gpl2+)))
6004 (define-public texmaker
6010 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
6011 version ".tar.bz2"))
6014 "0vrj9w5lk3vf6138n5bz8phmy3xp5kv4dq1rgirghcf4hbxdyx30"))))
6015 (build-system gnu-build-system)
6018 (modify-phases %standard-phases
6019 ;; Qt has its own configuration utility.
6021 (lambda* (#:key outputs #:allow-other-keys)
6022 (let ((out (assoc-ref outputs "out")))
6024 (string-append "PREFIX=" out)
6025 (string-append "DESKTOPDIR=" out "/share/applications")
6026 (string-append "ICONDIR=" out "/share/pixmaps")
6027 (string-append "METAINFODIR=" out "/share/metainfo")
6028 "texmaker.pro")))))))
6030 `(("poppler-qt5" ,poppler-qt5)
6032 ("qtscript" ,qtscript)
6033 ("qtwebkit" ,qtwebkit)
6036 `(("pkg-config" ,pkg-config)))
6037 (home-page "http://www.xm1math.net/texmaker/")
6038 (synopsis "LaTeX editor")
6039 (description "Texmaker is a program that integrates many tools needed to
6040 develop documents with LaTeX, in a single application.")
6041 (license license:gpl2+)))
6043 (define-public teximpatient
6045 (name "teximpatient")
6048 (method url-fetch/tarbomb)
6049 (uri (string-append "mirror://gnu/" name "/" name "-"
6053 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
6054 (build-system gnu-build-system)
6056 `(#:tests? #f ; there are none
6058 (modify-phases %standard-phases
6059 (add-after 'unpack 'fix-packaging-error
6060 (lambda* (#:key inputs #:allow-other-keys)
6061 ;; This file should have been part of the tarball.
6064 (assoc-ref inputs "automake")
6067 ;; Remove generated file.
6068 (delete-file "book.pdf")
6071 `(("texlive" ,(texlive-union (list texlive-amsfonts
6072 texlive-fonts-adobe-palatino
6073 texlive-fonts-adobe-zapfding
6074 texlive-fonts-knuth-lib
6075 texlive-fonts-mflogo-font
6076 texlive-generic-pdftex)))
6077 ("automake" ,automake)))
6078 (home-page "https://www.gnu.org/software/teximpatient/")
6079 (synopsis "Book on TeX, plain TeX and Eplain")
6080 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
6081 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
6083 (license license:fdl1.3+)))
6091 (uri (string-append "https://ftp.lyx.org/pub/lyx/stable/"
6092 (version-major+minor version) ".x/"
6093 "lyx-" version ".tar.gz"))
6096 "0j3xincwmsscfgv13g3z6h4kx1qfzgg8x71fs393akcdxsh2g07c"))
6097 (modules '((guix build utils)))
6100 (delete-file-recursively "3rdparty")
6102 (build-system cmake-build-system)
6104 `(#:configure-flags `("-DLYX_USE_QT=QT5"
6105 "-DLYX_EXTERNAL_BOOST=1"
6108 ,(string-append "-DLYX_INSTALL_PREFIX="
6109 (assoc-ref %outputs "out")
6110 ;; Exact name and level is necessary.
6111 "/lyx" ,(version-major+minor version)))
6113 (modify-phases %standard-phases
6114 ;; See ;; https://www.lyx.org/trac/changeset/3a123b90af838b08680471d87170c38e56787df9/lyxgit
6115 (add-after 'unpack 'fix-compilation-with-boost-1.69
6117 (substitute* "src/support/FileName.cpp"
6118 (("^template struct boost::detail::crc_table_t.*") ""))
6120 (add-after 'unpack 'patch-python
6121 (lambda* (#:key inputs #:allow-other-keys)
6122 (substitute* '("src/support/os.cpp")
6125 (assoc-ref inputs "python")
6128 (add-after 'patch-python 'patch-desktop-file
6129 (lambda* (#:key outputs #:allow-other-keys)
6130 (substitute* "lib/lyx.desktop.in"
6132 (string-append "Exec="
6133 (assoc-ref outputs "out")
6136 (add-before 'check 'setenv-check
6138 ;; Create missing file that would cause tests to fail.
6139 (with-output-to-file (string-append "../lyx-"
6141 "/src/tests/check_layout.cmake")
6143 (setenv (string-append "LYX_DIR_"
6146 ,(version-major+minor version) #\-)) "x")
6147 (string-append (getcwd) "/../lyx-" ,version "/lib"))
6149 (add-after 'install 'install-symlinks
6150 (lambda* (#:key outputs #:allow-other-keys)
6151 (let ((out (assoc-ref outputs "out")))
6152 (mkdir-p (string-append out "/bin"))
6153 (symlink (string-append "../lyx" ,(version-major+minor version)
6154 "/bin/lyx" ,(version-major+minor version))
6155 (string-append out "/bin/lyx" ,(version-major+minor version)))
6159 ("hunspell" ,hunspell) ; Note: Could also use aspell instead.
6167 `(("texlive" ,(texlive-union (list texlive-fonts-ec)))))
6169 `(("python" ,python)
6170 ("pkg-config" ,pkg-config)))
6171 (home-page "https://www.lyx.org/")
6172 (synopsis "Document preparation system with GUI")
6173 (description "LyX is a document preparation system. It excels at letting
6174 you create complex technical and scientific articles with mathematics,
6175 cross-references, bibliographies, indexes, etc. It is very good for working
6176 with documents of any length in which the usual processing abilities are
6177 required: automatic sectioning and pagination, spell checking and so forth.")
6178 (license license:gpl2+)))
6180 (define-public texlive-latex-media9
6182 (name "texlive-latex-media9")
6183 (version (number->string %texlive-revision))
6187 (url (string-append "svn://www.tug.org/texlive/tags/"
6188 %texlive-tag "/Master/texmf-dist/"
6189 "/tex/latex/media9"))
6190 (revision %texlive-revision)))
6191 (file-name (string-append name "-" version "-checkout"))
6194 "0s86v2b6b1vky1svmmn8pn0l2gz3v280mvjbr2d9l2sjyarlgz9w"))))
6195 (build-system trivial-build-system)
6197 `(#:modules ((guix build utils))
6200 (use-modules (guix build utils))
6201 (let ((target (string-append (assoc-ref %outputs "out")
6202 "/share/texmf-dist/tex/latex/media9")))
6204 (copy-recursively (assoc-ref %build-inputs "source") target)
6206 (home-page "https://www.ctan.org/pkg/media9")
6207 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
6209 "The package provides an interface to embed interactive Flash (SWF) and 3D
6210 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
6211 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
6212 compatibility. Playback of multimedia files uses the built-in Flash Player of
6213 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
6214 supports the efficient H.264 codec for video compression.
6216 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
6217 specification. It replaces the now obsolete @code{movie15} package.")
6218 (license license:lppl)))
6220 (define-public texlive-latex-ocgx2
6222 (name "texlive-latex-ocgx2")
6223 (version (number->string %texlive-revision))
6227 (url (string-append "svn://www.tug.org/texlive/tags/"
6228 %texlive-tag "/Master/texmf-dist/"
6229 "/tex/latex/ocgx2"))
6230 (revision %texlive-revision)))
6231 (file-name (string-append name "-" version "-checkout"))
6234 "1yhp51w8yr10c10pc9196q7hlw80brzqinnqbjw81d0sf2p0llc5"))))
6235 (build-system trivial-build-system)
6237 `(#:modules ((guix build utils))
6240 (use-modules (guix build utils))
6241 (let ((target (string-append (assoc-ref %outputs "out")
6242 "/share/texmf-dist/tex/latex/ogcx2")))
6244 (copy-recursively (assoc-ref %build-inputs "source") target)
6246 (home-page "https://www.ctan.org/pkg/ocgx2")
6247 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
6249 "This package provides OCG (Optional Content Groups) support within a PDF
6252 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
6253 @code{ocg-p} packages and adds support for all known engines and back-ends
6257 @item LaTeX → dvips → @code{ps2pdf}/Distiller
6258 @item (Xe)LaTeX(x) → @code{dvipdfmx}
6259 @item pdfLaTeX and LuaLaTeX .
6262 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
6263 (license license:lppl)))
6265 (define-public texlive-latex-ms
6267 (name "texlive-latex-ms")
6268 (version (number->string %texlive-revision))
6271 (uri (texlive-ref "latex" "ms"))
6272 (file-name (string-append name "-" version "-checkout"))
6275 "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s"))))
6276 (build-system texlive-build-system)
6278 '(#:tex-directory "latex/ms"
6279 #:tex-format "latex"))
6280 (home-page "https://ctan.org/pkg/ms")
6281 (synopsis "Various LATEX packages by Martin Schröder")
6283 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
6286 @item @command{count1to}, make use of fixed TEX counters;
6287 @item @command{everysel}, set commands to execute every time a font is selected;
6288 @item @command{everyshi}, set commands to execute whenever a page is shipped out;
6289 @item @command{multitoc}, typeset the table of contents in multiple columns;
6290 @item @command{prelim2e}, mark typeset pages as preliminary; and
6291 @item @command{ragged2e}, typeset ragged text and allow hyphenation.
6293 (license license:lppl1.3c+)))
6295 (define-public texlive-latex-needspace
6297 (name "texlive-latex-needspace")
6298 (version (number->string %texlive-revision))
6301 (uri (texlive-ref "latex" "needspace"))
6302 (file-name (string-append name "-" version "-checkout"))
6305 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
6306 (build-system texlive-build-system)
6308 '(#:tex-directory "latex/needspace"
6309 #:tex-format "latex"))
6311 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
6312 (home-page "https://www.ctan.org/pkg/needspace")
6313 (synopsis "Insert pagebreak if not enough space")
6315 "Provides commands to disable pagebreaking within a given vertical
6316 space. If there is not enough space between the command and the bottom of the
6317 page, a new page will be started.")
6318 (license license:lppl)))
6320 (define-public texlive-latex-changepage
6322 (name "texlive-latex-changepage")
6323 (version (number->string %texlive-revision))
6327 (uri (texlive-ref "latex" "changepage"))
6328 (file-name (string-append name "-" version "-checkout"))
6331 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
6332 (build-system texlive-build-system)
6334 '(#:tex-directory "latex/changepage"
6335 #:tex-format "latex"))
6337 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
6338 (home-page "https://www.ctan.org/pkg/changepage")
6339 (synopsis "Margin adjustment and detection of odd/even pages")
6341 "The package provides commands to change the page layout in the middle of
6342 a document, and to robustly check for typesetting on odd or even pages.
6343 Instructions for use are at the end of the file. The package is an extraction
6344 of code from the @code{memoir} class, whose user interface it shares.")
6345 (license license:lppl1.3+)))
6347 (define-public texlive-latex-eukdate
6349 (name "texlive-latex-eukdate")
6350 (version (number->string %texlive-revision))
6355 (url (string-append "svn://www.tug.org/texlive/tags/"
6356 %texlive-tag "/Master/texmf-dist/"
6357 "/tex/latex/eukdate"))
6358 (revision %texlive-revision)))
6359 (file-name (string-append name "-" version "-checkout"))
6362 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
6363 (build-system trivial-build-system)
6365 `(#:modules ((guix build utils))
6368 (use-modules (guix build utils))
6369 (let ((target (string-append (assoc-ref %outputs "out")
6370 "/share/texmf-dist/tex/latex/eukdate")))
6372 (copy-recursively (assoc-ref %build-inputs "source") target)
6374 (home-page "https://www.ctan.org/pkg/eukdate")
6375 (synopsis "UK format dates, with weekday")
6377 "The package is used to change the format of @code{\\today}’s date,
6378 including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
6379 is preferred in many parts of the world, as distinct from that which is used in
6380 @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
6381 (license license:lppl)))
6383 (define-public texlive-generic-ulem
6385 (name "texlive-generic-ulem")
6386 (version (number->string %texlive-revision))
6391 (url (string-append "svn://www.tug.org/texlive/tags/"
6392 %texlive-tag "/Master/texmf-dist/"
6393 "/tex/generic/ulem"))
6394 (revision %texlive-revision)))
6395 (file-name (string-append name "-" version "-checkout"))
6398 "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797"))))
6399 (build-system trivial-build-system)
6401 `(#:modules ((guix build utils))
6404 (use-modules (guix build utils))
6405 (let ((target (string-append (assoc-ref %outputs "out")
6406 "/share/texmf-dist/tex/generic/ulem")))
6408 (copy-recursively (assoc-ref %build-inputs "source") target)
6410 (home-page "https://www.ctan.org/pkg/ulem")
6411 (synopsis "Underline text in TeX")
6413 "The package provides an @code{\\ul} (underline) command which will break
6414 over line ends; this technique may be used to replace @code{\\em} (both in that
6415 form and as the @code{\\emph} command), so as to make output look as if it comes
6416 from a typewriter. The package also offers double and wavy underlining, and
6417 striking out (line through words) and crossing out (/// over words).")
6418 (license license:lppl1.3c+)))
6420 (define-public texlive-latex-pgf
6422 (name "texlive-latex-pgf")
6423 (version (number->string %texlive-revision))
6428 (url (string-append "svn://www.tug.org/texlive/tags/"
6429 %texlive-tag "/Master/texmf-dist/"
6431 (revision %texlive-revision)))
6432 (file-name (string-append name "-" version "-checkout"))
6435 "1dscrgwyr71vgx35mzb316xl669arzagfgq50fdv3nxga63959b3"))))
6436 (build-system trivial-build-system)
6438 `(("texlive-latex-pgf-generic"
6442 (url (string-append "svn://www.tug.org/texlive/tags/"
6443 %texlive-tag "/Master/texmf-dist/"
6444 "/tex/generic/pgf"))
6445 (revision %texlive-revision)))
6446 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
6449 "0hk5x2j15n4pps279cmkbjl1dvhasq3mbhna5xdvp2qgh635ahks"))))))
6451 `(("texlive-latex-xcolor" ,texlive-latex-xcolor)))
6453 `(#:modules ((guix build utils))
6456 (use-modules (guix build utils))
6457 (let ((target-generic (string-append (assoc-ref %outputs "out")
6458 "/share/texmf-dist/tex/generic/pgf"))
6459 (target-latex (string-append (assoc-ref %outputs "out")
6460 "/share/texmf-dist/tex/latex/pgf")))
6461 (mkdir-p target-generic)
6462 (mkdir-p target-latex)
6463 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
6464 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
6466 (home-page "https://www.ctan.org/pkg/tikz")
6467 (synopsis "Create PostScript and PDF graphics in TeX")
6469 "PGF is a macro package for creating graphics. It is platform- and
6470 format-independent and works together with the most important TeX backend
6471 drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
6474 Its usage is similar to pstricks and the standard picture environment. PGF
6475 works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
6476 produce either PostScript or PDF output.")
6477 (license license:lppl1.3c+)))
6479 (define-public texlive-latex-koma-script
6481 (name "texlive-latex-koma-script")
6482 (version (number->string %texlive-revision))
6486 (url (string-append "svn://www.tug.org/texlive/tags/"
6487 %texlive-tag "/Master/texmf-dist/"
6488 "/tex/latex/koma-script"))
6489 (revision %texlive-revision)))
6490 (file-name (string-append name "-" version "-checkout"))
6493 "1vz9zg7s5w52xr323zgglzprfrvba2zvyzf6b8vrdf4wdghlpv4z"))))
6494 (build-system trivial-build-system)
6496 `(#:modules ((guix build utils)
6500 (use-modules (guix build utils)
6502 (let ((root (string-append (assoc-ref %outputs "out")
6503 "/share/texmf-dist/"))
6504 (pkgs '(("source" . "tex/latex/koma-script"))))
6505 (for-each (match-lambda
6507 (let ((target (string-append root dir)))
6509 (copy-recursively (assoc-ref %build-inputs pkg)
6513 (home-page "https://www.ctan.org/pkg/koma-script")
6514 (synopsis "Bundle of versatile classes and packages")
6516 "The KOMA-Script bundle provides replacements for the article, report, and
6517 book classes with emphasis on typography and versatility. There is also a
6520 The bundle also offers:
6523 @item a package for calculating type areas in the way laid down by the
6524 typographer Jan Tschichold,
6525 @item packages for easily changing and defining page styles,
6526 @item a package scrdate for getting not only the current date but also the name
6528 @item a package scrtime for getting the current time.
6531 All these packages may be used not only with KOMA-Script classes but also with
6532 the standard classes.
6534 Since every package has its own version number, the version number quoted only
6535 refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
6536 typearea (which are the main parts of the bundle).")
6537 (license license:lppl1.3+)))
6539 (define-public texlive-generic-listofitems
6541 (name "texlive-generic-listofitems")
6542 (version (number->string %texlive-revision))
6546 (url (string-append "svn://www.tug.org/texlive/tags/"
6547 %texlive-tag "/Master/texmf-dist/"
6548 "/tex/generic/listofitems"))
6549 (revision %texlive-revision)))
6550 (file-name (string-append name "-" version "-checkout"))
6553 "1x4wnpca97rnbvvg6wjmbkxxvnfva274q9ahzx746b435q93z3i1"))))
6554 (build-system trivial-build-system)
6556 `(#:modules ((guix build utils))
6559 (use-modules (guix build utils))
6560 (let ((target (string-append (assoc-ref %outputs "out")
6561 "/share/texmf-dist/tex/generic/listofitems")))
6563 (copy-recursively (assoc-ref %build-inputs "source") target)
6565 (home-page "https://www.ctan.org/pkg/listofitems")
6566 (synopsis "Grab items in lists using user-specified separation character")
6568 "This package allows one to capture all the items of a list, for which
6569 the parsing character has been selected by the user, and to access any of
6570 these items with a simple syntax.")
6571 (license license:lppl1.3c+)))
6573 (define-public texlive-latex-readarray
6575 (name "texlive-latex-readarray")
6576 (version (number->string %texlive-revision))
6580 (url (string-append "svn://www.tug.org/texlive/tags/"
6581 %texlive-tag "/Master/texmf-dist/"
6582 "/tex/latex/readarray"))
6583 (revision %texlive-revision)))
6584 (file-name (string-append name "-" version "-checkout"))
6587 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
6588 (build-system trivial-build-system)
6590 `(#:modules ((guix build utils))
6593 (use-modules (guix build utils))
6594 (let ((target (string-append (assoc-ref %outputs "out")
6595 "/share/texmf-dist/tex/latex/readarray")))
6597 (copy-recursively (assoc-ref %build-inputs "source") target)
6600 `(("texlive-generic-listofitems" ,texlive-generic-listofitems)))
6601 (home-page "https://www.ctan.org/pkg/readarray")
6602 (synopsis "Read, store and recall array-formatted data")
6604 "This package allows the user to input formatted data into elements of a
6605 2-D or 3-D array and to recall that data at will by individual cell number.
6606 The data can be but need not be numerical in nature. It can be, for example,
6608 (license license:lppl1.3)))
6610 (define-public texlive-latex-verbatimbox
6612 (name "texlive-latex-verbatimbox")
6613 (version (number->string %texlive-revision))
6617 (url (string-append "svn://www.tug.org/texlive/tags/"
6618 %texlive-tag "/Master/texmf-dist/"
6619 "/tex/latex/verbatimbox"))
6620 (revision %texlive-revision)))
6621 (file-name (string-append name "-" version "-checkout"))
6624 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
6625 (build-system trivial-build-system)
6627 `(#:modules ((guix build utils))
6630 (use-modules (guix build utils))
6631 (let ((target (string-append (assoc-ref %outputs "out")
6632 "/share/texmf-dist/tex/latex/verbatimbox")))
6634 (copy-recursively (assoc-ref %build-inputs "source") target)
6637 `(("texlive-latex-readarray" ,texlive-latex-readarray)))
6638 (home-page "https://www.ctan.org/pkg/verbatimbox")
6639 (synopsis "Deposit verbatim text in a box")
6641 "The package provides a @code{verbbox} environment to place its contents
6642 into a globally available box, or into a box specified by the user. The
6643 global box may then be used in a variety of situations (for example, providing
6644 a replica of the @code{boxedverbatim} environment itself). A valuable use is
6645 in places where the standard @code{verbatim} environment (which is based on a
6646 @code{trivlist}) may not appear.")
6647 (license license:lppl1.3+)))
6649 (define-public texlive-latex-examplep
6651 (name "texlive-latex-examplep")
6652 (version (number->string %texlive-revision))
6656 (url (string-append "svn://www.tug.org/texlive/tags/"
6657 %texlive-tag "/Master/texmf-dist/"
6658 "/tex/latex/examplep"))
6659 (revision %texlive-revision)))
6660 (file-name (string-append name "-" version "-checkout"))
6663 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
6664 (build-system trivial-build-system)
6666 `(#:modules ((guix build utils))
6669 (use-modules (guix build utils))
6670 (let ((target (string-append (assoc-ref %outputs "out")
6671 "/share/texmf-dist/tex/latex/examplep")))
6673 (copy-recursively (assoc-ref %build-inputs "source") target)
6675 (home-page "https://www.ctan.org/pkg/examplep")
6676 (synopsis "Verbatim phrases and listings in LaTeX")
6678 "Examplep provides sophisticated features for typesetting verbatim source
6679 code listings, including the display of the source code and its compiled LaTeX
6680 or METAPOST output side-by-side, with automatic width detection and enabled
6681 page breaks (in the source), without the need for specifying the source twice.
6682 Special care is taken that section, page and footnote numbers do not interfere
6683 with the main document. For typesetting short verbatim phrases, a replacement
6684 for the @code{\\verb} command is also provided in the package, which can be
6685 used inside tables and moving arguments such as footnotes and section
6687 ;; No version of the GPL is specified.
6688 (license license:gpl3+)))
6690 (define-public texlive-xypic
6691 (let ((template (simple-texlive-package
6693 (list "/doc/generic/xypic/"
6694 "/dvips/xypic/xy389dict.pro"
6695 "/fonts/enc/dvips/xypic/"
6696 "/fonts/map/dvips/xypic/xypic.map"
6698 "/fonts/source/public/xypic/"
6699 "/fonts/afm/public/xypic/"
6700 "/fonts/tfm/public/xypic/"
6701 "/fonts/type1/public/xypic/"
6702 "/tex/generic/xypic/")
6704 "09b51bbm189xh7039h5n8nmab5nn2bybhh26qjn08763m80zdhjg")
6709 (substitute-keyword-arguments (package-arguments template)
6711 `(modify-phases ,phases
6712 (delete 'reset-gzip-timestamps)))))
6713 (home-page "https://www.ctan.org/pkg/xypic")
6714 (synopsis "Flexible diagramming macros")
6715 (description "This is a package for typesetting a variety of graphs and
6716 diagrams with TeX. Xy-pic works with most formats (including LaTeX,
6717 AMS-LaTeX, AMS-TeX, and plain TeX). The distribution includes Michael Barr's
6718 @code{diag} package, which was previously distributed stand-alone.")
6719 (license license:gpl3+))))
6721 (define-public texlive-fonts-xypic
6722 (deprecated-package "texlive-fonts-xypic" texlive-xypic))
6724 (define-public texlive-generic-xypic
6725 (deprecated-package "texblive-generic-xypic" texlive-xypic))
6727 (define-public texlive-bibtex
6729 (name "texlive-bibtex")
6730 (version (number->string %texlive-revision))
6735 (url (string-append "svn://www.tug.org/texlive/tags/"
6736 %texlive-tag "/Master/texmf-dist/"
6738 (revision %texlive-revision)))
6739 (file-name (string-append name "-" version "-checkout"))
6742 "1wijqq605cbhn2bdaryby3xpkwmnk9ixcrjn5zwlfrxbgfblzfmz"))))
6743 (build-system trivial-build-system)
6745 `(#:modules ((guix build utils))
6748 (use-modules (guix build utils))
6749 (let ((target (string-append (assoc-ref %outputs "out")
6750 "/share/texmf-dist/bibtex")))
6752 (copy-recursively (assoc-ref %build-inputs "source") target)
6754 (home-page "https://www.ctan.org/pkg/bibtex")
6755 (synopsis "Process bibliographies for LaTeX")
6757 "BibTeX allows the user to store his citation data in generic form, while
6758 printing citations in a document in the form specified by a BibTeX style, to
6759 be specified in the document itself (one often needs a LaTeX citation-style
6760 package, such as @command{natbib} as well).")
6761 (license license:knuth)))
6763 (define-public texlive-charter
6765 (inherit (simple-texlive-package
6767 (list "/doc/fonts/charter/readme.charter"
6768 "/fonts/afm/bitstrea/charter/"
6769 "/fonts/tfm/bitstrea/charter/"
6770 "/fonts/type1/bitstrea/charter/"
6771 "/fonts/vf/bitstrea/charter/")
6773 "09l5ymgz48s3hyn776l01g3isk3dnhrj1vdavdw4qq4kfxxpqdn9")
6775 (home-page "https://www.ctan.org/pkg/charter")
6776 (synopsis "Charter fonts for TeX")
6777 (description "This package provides a copy of the Charter Type-1 fonts
6778 which Bitstream contributed to the X consortium, renamed for use with TeX.
6779 Support for use with LaTeX is available in @code{freenfss}, part of
6780 @command{psnfss}. ")
6781 (license (license:non-copyleft
6782 "http://mirrors.ctan.org/fonts/charter/readme.charter"))))
6784 (define-public texlive-fonts-charter
6785 (deprecated-package "texlive-fonts-charter" texlive-charter))
6787 (define-public texlive-context-base
6789 (name "texlive-context-base")
6790 (version (number->string %texlive-revision))
6794 (url (string-append "svn://www.tug.org/texlive/tags/"
6795 %texlive-tag "/Master/texmf-dist/"
6796 "/tex/context/base"))
6797 (revision %texlive-revision)))
6798 (file-name (string-append name "-" version "-checkout"))
6801 "0d7d74giz5knvj4rj6mbzd6c05mwg9jrxab86jxdqbc3jy7cl4kz"))))
6802 (build-system trivial-build-system)
6804 `(#:modules ((guix build utils))
6807 (use-modules (guix build utils))
6808 (let ((target (string-append (assoc-ref %outputs "out")
6809 "/share/texmf-dist/tex/context/case")))
6811 (copy-recursively (assoc-ref %build-inputs "source") target)
6813 (home-page "https://www.ctan.org/pkg/context")
6814 (synopsis "Full featured, parameter driven macro package for TeX")
6815 (description "A full featured, parameter driven macro package, which fully
6816 supports advanced interactive documents. See the ConTeXt garden for a wealth
6817 of support information.")
6818 (license license:gpl2+)))
6820 (define-public texlive-beamer
6822 (inherit (simple-texlive-package
6824 (list "/doc/latex/beamer/"
6825 "/tex/latex/beamer/")
6827 "1fqzbkmw2kfxihab8j4dadc3v68xap6v2ghpp2064fna47xlwy1c")
6830 `(("texlive-latex-hyperref" ,texlive-latex-hyperref)
6831 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
6832 ("texlive-latex-etoolbox" ,texlive-latex-etoolbox)
6833 ("texlive-latex-pgf" ,texlive-latex-pgf)))
6834 (home-page "https://www.ctan.org/pkg/beamer")
6835 (synopsis "LaTeX class for producing presentations and slides")
6836 (description "The beamer LaTeX class can be used for producing slides.
6837 The class works in both PostScript and direct PDF output modes, using the
6838 @code{pgf} graphics system for visual effects. Content is created in the
6839 @code{frame} environment, and each frame can be made up of a number of slides
6840 using a simple notation for specifying material to appear on each slide within
6841 a frame. Short versions of title, authors, institute can also be specified as
6842 optional parameters. Whole frame graphics are supported by plain frames. The
6843 class supports @code{figure} and @code{table} environments, transparency
6844 effects, varying slide transitions and animations.")
6845 ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is
6846 ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+.
6847 (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+))))
6849 (define-public texlive-latex-beamer
6850 (deprecated-package "texlive-latex-beamer" texlive-beamer))
6852 (define-public texlive-latex-xmpincl
6854 (name "texlive-latex-xmpincl")
6855 (version (number->string %texlive-revision))
6859 (uri (texlive-ref "latex" "xmpincl"))
6860 (file-name (string-append name "-" version "-checkout"))
6863 "0lq3dfb4fsw955gjwllnk7cg00ciq5mva64mlpbva6g2jz117734"))))
6864 (build-system texlive-build-system)
6865 (arguments '(#:tex-directory "latex/xmpincl"))
6866 (home-page "http://www.ctan.org/pkg/xmpincl")
6867 (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX")
6869 "The XMP (eXtensible Metadata platform) is a framework to add metadata to
6870 digital material to enhance the workflow in publication. The essence is that
6871 the metadata is stored in an XML file, and this XML stream is then embedded in
6872 the file to which it applies.")
6873 (license license:gpl3+)))
6875 (define-public texlive-latex-pdfx
6877 (name "texlive-latex-pdfx")
6878 (version (number->string %texlive-revision))
6882 (uri (texlive-ref "latex" "pdfx"))
6883 (file-name (string-append name "-" version "-checkout"))
6886 "18294h0cr05fs424m3x6aq24z5hf5zmiflalkj4kvpmsyyqqsj74"))))
6887 (build-system texlive-build-system)
6889 '(#:tex-directory "latex/pdfx"
6891 (modify-phases %standard-phases
6892 (add-after 'unpack 'fix-encoding
6894 (substitute* "pdfx.dtx"
6895 ((" .+umaczy") "umaczy"))
6897 (add-before 'install 'install-tex-files
6898 (lambda* (#:key inputs outputs #:allow-other-keys)
6899 (let ((target (string-append (assoc-ref outputs "out")
6900 "/share/texmf-dist/tex/latex/pdfx")))
6902 (copy-recursively (assoc-ref inputs "texlive-tex-pdfx") target)
6903 ;; Install the generated version in the "install" phase.
6904 (delete-file (string-append target "/pdfx.sty"))
6907 `(("texlive-generic-pdftex" ,texlive-generic-pdftex)))
6909 `(("texlive-tex-pdfx"
6913 (url (string-append "svn://www.tug.org/texlive/tags/"
6914 %texlive-tag "/Master/texmf-dist/"
6916 (revision %texlive-revision)))
6917 (file-name (string-append "texlive-tex-latex-pdfx-" version "-checkout"))
6920 "171ffvpkj2fab4ljcxv3l6l5c8ga8zavdhmhfq07id8zyyr619ip"))))))
6921 (home-page "https://www.ctan.org/pkg/pdfx")
6922 (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX")
6924 "This package helps LaTeX users to create PDF/X, PFD/A and other
6925 standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.")
6926 (license license:lppl1.2+)))
6928 (define-public texlive-ydoc
6929 (let ((template (simple-texlive-package
6931 (list "/doc/latex/ydoc/"
6932 "/source/latex/ydoc/")
6934 "0ckcpy1b8v1fk3qc8qkxgiag2wc0qzxm6bgksv000m4m1hsi2g8b")
6938 (outputs '("out" "doc"))
6940 (substitute-keyword-arguments (package-arguments template)
6941 ((#:tex-directory _ #t)
6943 ((#:build-targets _ #t)
6946 `(modify-phases ,phases
6947 (add-after 'unpack 'chdir
6948 (lambda _ (chdir "source/latex/ydoc") #t))
6949 (add-after 'copy-files 'move-files
6950 (lambda* (#:key outputs #:allow-other-keys)
6951 (let* ((share (string-append (assoc-ref outputs "out")
6952 "/share/texmf-dist"))
6953 (target (string-append share "/tex/generic/ydoc"))
6954 (doc (string-append (assoc-ref outputs "doc")
6955 "/share/texmf-dist/doc") ))
6959 (rename-file (string-append share "/tex/latex/ydoc/" file)
6960 (string-append target "/" file)))
6961 '("ydocincl.tex" "ydocstrip.tex"))
6963 (rename-file (string-append share "/doc") doc)
6965 (home-page "http://www.ctan.org/pkg/ydoc")
6966 (synopsis "Macros for documentation of LaTeX classes and packages")
6967 (description "The package provides macros and environments to document
6968 LaTeX packages and classes. It is an (as yet unfinished) alternative to the
6969 @code{ltxdoc} class and the @code{doc} or @code{xdoc} packages. The aim is to
6970 provide a different layout and more modern styles (using the @code{xcolor},
6971 @code{hyperref} packages, etc.) This is an alpha release, and should probably
6972 not (yet) be used with other packages, since the implementation might
6974 (license license:lppl1.3+))))
6976 (define-public texlive-pstricks
6977 (let ((template (simple-texlive-package
6979 (list "/doc/generic/pstricks/"
6981 "/tex/generic/pstricks/"
6982 "/tex/latex/pstricks/")
6984 "0sdxdd0qi4sccw9il7d4s7jivs24pq99cdzfnrf0gkqjb1y8s7cl")
6989 (substitute-keyword-arguments (package-arguments template)
6991 `(modify-phases ,phases
6992 (delete 'reset-gzip-timestamps)))))
6993 (home-page "http://www.ctan.org/pkg/pstricks")
6994 (synopsis "PostScript macros for TeX")
6995 (description "PSTricks offers an extensive collection of macros for
6996 generating PostScript that is usable with most TeX macro formats, including
6997 Plain TeX, LaTeX, AMS-TeX, and AMS-LaTeX. Included are macros for colour,
6998 graphics, pie charts, rotation, trees and overlays. It has many special
6999 features, including a wide variety of graphics (picture drawing) macros, with
7000 a flexible interface and with colour support. There are macros for colouring
7001 or shading the cells of tables.")
7002 (license license:lppl1.3+))))
7004 (define-public texlive-pst-text
7005 (let ((template (simple-texlive-package
7007 (list "/doc/generic/pst-text/"
7008 "/dvips/pst-text/pst-text.pro"
7009 "/tex/generic/pst-text/"
7010 "/tex/latex/pst-text/")
7012 "146fpzd1xlqi94q5r48z8ni8qww713yh6nwkbr9pw27mjrqdadb9")
7017 `(("texlive-pstricks" ,texlive-pstricks)))
7018 (home-page "http://www.ctan.org/pkg/pst-text")
7019 (synopsis "Text and character manipulation in PSTricks")
7020 (description "Pst-text is a PSTricks based package for plotting text along
7021 a different path and manipulating characters. It includes the functionality
7022 of the old package @code{pst-char}.")
7023 (license license:lppl))))
7025 (define-public texlive-iftex
7026 (let ((template (simple-texlive-package
7028 (list "/doc/generic/iftex/"
7029 "/tex/generic/iftex/iftex.sty")
7031 "089zvw31gby150n1k0zdk2c0q97pgbqs46phxydaqil64b55nnl7")
7035 (home-page "http://www.ctan.org/pkg/iftex")
7036 (synopsis "Determine the currently used TeX engine")
7037 (description "This package, which works both for Plain TeX and for
7038 LaTeX, defines the @code{\\ifPDFTeX}, @code{\\ifXeTeX}, and @code{\\ifLuaTeX}
7039 conditionals for testing which engine is being used for typesetting. The
7040 package also provides the @code{\\RequirePDFTeX}, @code{\\RequireXeTeX}, and
7041 @code{\\RequireLuaTeX} commands which throw an error if pdfTeX, XeTeX or
7042 LuaTeX (respectively) is not the engine in use.")
7043 (license license:lppl1.3+))))
7045 (define-public texlive-tools
7046 (let ((template (simple-texlive-package
7048 (list "/doc/latex/tools/"
7049 "/source/latex/tools/")
7051 "1ivhij7171wvrgcjn4wah84wxwpd21d0chh3zxab4pj067c8d0mh"))))
7055 (substitute-keyword-arguments (package-arguments template)
7056 ((#:tex-directory _ '())
7058 ((#:build-targets _ '())
7061 `(modify-phases ,phases
7062 (add-after 'unpack 'chdir
7063 (lambda _ (chdir "source/latex/tools") #t))))))
7064 (home-page "https://www.ctan.org/tex-archive/macros/latex/required/tools/")
7065 (synopsis "LaTeX standard tools bundle")
7066 (description "This package provides a collection of simple tools that
7067 are part of the LaTeX required tools distribution, comprising the packages:
7068 @code{afterpage}, @code{array}, @code{bm}, @code{calc}, @code{dcolumn},
7069 @code{delarray}, @code{enumerate}, @code{fileerr}, @code{fontsmpl},
7070 @code{ftnright}, @code{hhline}, @code{indentfirst}, @code{layout},
7071 @code{longtable}, @code{multicol}, @code{rawfonts}, @code{showkeys},
7072 @code{somedefs}, @code{tabularx}, @code{theorem}, @code{trace},
7073 @code{varioref}, @code{verbatim}, @code{xr}, and @code{xspace}.")
7074 (license license:lppl1.3+))))
7076 (define-public texlive-latex-xkeyval
7078 (name "texlive-latex-xkeyval")
7079 (version (number->string %texlive-revision))
7082 (uri (texlive-ref "latex" "xkeyval"))
7083 (file-name (string-append name "-" version "-checkout"))
7086 "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp"))))
7087 (build-system texlive-build-system)
7089 '(#:tex-directory "latex/xkeyval"
7090 #:build-targets '("xkeyval.dtx")
7091 #:tex-format "latex" ; won't build with luatex
7093 (modify-phases %standard-phases
7094 ;; This package cannot be built out of tree as it expects to find
7095 ;; built files in the working directory.
7096 (add-before 'build 'fix-build
7099 (string-append (getcwd) "/build:"))
7100 (substitute* "xkeyval.dtx"
7101 (("usepackage\\{xcolor\\}")
7102 "usepackage[dvips]{xcolor}"))
7104 ;; FIXME: We don't have a package for this font yet.
7105 (add-after 'unpack 'remove-dependency-on-fourier
7107 (substitute* "xkeyval.dtx"
7108 (("\\\\usepackage\\{fourier\\}") ""))
7110 (add-after 'install 'move-files
7111 (lambda* (#:key outputs #:allow-other-keys)
7112 (let* ((out (assoc-ref outputs "out"))
7113 (share (string-append out "/share/texmf-dist"))
7114 (source (string-append share "/tex/latex/xkeyval/"))
7115 (target (string-append share "/tex/generic/xkeyval/")))
7117 (for-each (lambda (file)
7118 (rename-file (string-append source file)
7119 (string-append target file)))
7131 `(("texlive-latex-base" ,texlive-latex-base)
7132 ("texlive-cm" ,texlive-cm)
7133 ("texlive-lm" ,texlive-lm)
7134 ("texlive-url" ,texlive-url)
7135 ("texlive-graphics-def" ,texlive-graphics-def)
7136 ("texlive-xcolor" ,texlive-xcolor)
7137 ("texlive-latex-footmisc" ,texlive-latex-footmisc)
7138 ("texlive-latex-listings" ,texlive-latex-listings)
7139 ("texlive-iftex" ,texlive-iftex)
7140 ("texlive-pstricks" ,texlive-pstricks)
7141 ("texlive-pst-text" ,texlive-pst-text)
7142 ("texlive-tools" ,texlive-tools)
7143 ("texlive-latex-pgf" ,texlive-latex-pgf)))
7144 (home-page "http://www.ctan.org/pkg/xkeyval")
7145 (synopsis "Extension of the keyval package")
7147 "This package is an extension of the keyval package and offers additional
7148 macros for setting keys and declaring and setting class or package options.
7149 The package allows the programmer to specify a prefix to the name of the
7150 macros it defines for keys, and to define families of key definitions; these
7151 all help use in documents where several packages define their own sets of
7153 (license license:lppl1.3+)))
7155 (define-public texlive-standalone
7157 (name "texlive-standalone")
7158 (version (number->string %texlive-revision))
7162 (uri (texlive-ref "latex" "standalone"))
7163 (file-name (string-append name "-" version "-checkout"))
7166 "192ydxcn8ir96q8qwvnppksmqf5i0p50i0wz6iqazbwmh3dqxpx4"))))
7167 (build-system texlive-build-system)
7168 (arguments '(#:tex-directory "latex/standalone"))
7170 `(("texlive-latex-xkeyval" ,texlive-latex-xkeyval)))
7172 `(("texlive-ydoc" ,texlive-ydoc)))
7173 (home-page "http://www.ctan.org/pkg/standalone")
7174 (synopsis "Compile TeX pictures stand-alone or as part of a document")
7175 (description "A class and package is provided which allows TeX pictures or
7176 other TeX code to be compiled standalone or as part of a main document.
7177 Special support for pictures with beamer overlays is also provided. The
7178 package is used in the main document and skips extra preambles in sub-files.
7179 The class may be used to simplify the preamble in sub-files. By default the
7180 @code{preview} package is used to display the typeset code without margins.
7181 The behaviour in standalone mode may adjusted using a configuration file
7182 @code{standalone.cfg} to redefine the standalone environment.")
7183 (license license:lppl1.3+)))
7185 (define-public texlive-siunitx
7187 (name "texlive-siunitx")
7188 (version (number->string %texlive-revision))
7189 (source (texlive-origin
7191 (list "/source/latex/siunitx/siunitx.dtx"
7192 "/doc/latex/siunitx/README.md")
7194 "11kf6znkgw7y5qmw75qk6px6pqf57bwr53q0673zaiyq20lif96c")))
7195 (build-system texlive-build-system)
7197 '(#:tex-directory "latex/siunitx"
7198 #:build-targets '("siunitx.dtx")
7200 (modify-phases %standard-phases
7201 (add-after 'unpack 'chdir
7202 (lambda _ (chdir "source/latex/siunitx") #t)))))
7204 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)
7205 ("texlive-latex-l3packages" ,texlive-latex-l3packages)))
7206 (home-page "http://www.ctan.org/pkg/siunitx")
7207 (synopsis "Comprehensive SI units package")
7209 "Typesetting values with units requires care to ensure that the combined
7210 mathematical meaning of the value plus unit combination is clear. In
7211 particular, the SI units system lays down a consistent set of units with rules
7212 on how they are to be used. However, different countries and publishers have
7213 differing conventions on the exact appearance of numbers (and units). A
7214 number of LaTeX packages have been developed to provide consistent application
7215 of the various rules. The @code{siunitx} package takes the best from the
7216 existing packages, and adds new features and a consistent interface. A number
7217 of new ideas have been incorporated, to fill gaps in the existing provision.
7218 The package also provides backward-compatibility with @code{SIunits},
7219 @code{sistyle}, @code{unitsdef} and @code{units}. The aim is to have one
7220 package to handle all of the possible unit-related needs of LaTeX users.")
7221 (license license:lppl1.3c)))
7223 (define-public texlive-booktabs
7225 (name "texlive-booktabs")
7226 (version (number->string %texlive-revision))
7230 (uri (texlive-ref "latex" "booktabs"))
7231 (file-name (string-append name "-" version "-checkout"))
7234 "1dqid48vgh25wmw8xzmx6x3pfgz1y9f0r8aza1yxq2mjny5yf68x"))))
7235 (build-system texlive-build-system)
7236 (arguments '(#:tex-directory "latex/booktabs"))
7237 (home-page "http://www.ctan.org/pkg/booktabs")
7238 (synopsis "Publication quality tables in LaTeX")
7240 "This package enhances the quality of tables in LaTeX, providing extra
7241 commands as well as behind-the-scenes optimisation. Guidelines are given as
7242 to what constitutes a good table in this context. The package offers
7243 @code{longtable} compatibility.")
7244 (license license:lppl1.3+)))