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 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 #:autoload (gnu packages texinfo) (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 "1ix8h637hwhz4vrdhilf84kzzdza0wi8fp26nh7iws0bq08sl517"))))
148 (define (texlive-hyphen-package name code locations hash)
149 (let ((parent (simple-texlive-package
150 name locations hash #:trivial? #t)))
154 (substitute-keyword-arguments (package-arguments parent)
156 '((guix build gnu-build-system)
160 `(modify-phases ,phases
162 (lambda* (#:key inputs outputs #:allow-other-keys)
163 (let* ((out (assoc-ref outputs "out"))
164 (root (string-append out "/share/texmf-dist"))
166 (string-append root "/tex/generic/hyph-utf8/patterns/txt/"))
168 (string-append root "/tex/generic/hyph-utf8/loadhyph"))
170 (string-append root "/tex/generic/hyph-utf8/patterns/ptex"))
174 (format #f "\nlanguages.select!{|l| l.code == \"~a\"}\n" ',code))
176 (format #f "\nlanguages.select!{|l| [~{\"~a\",~}].include? l.code }\n" ',code)))))
179 (assoc-ref inputs "hyph-utf8-scripts") "scripts")
181 ;; Prepare target directories
186 ;; Generate plain patterns
187 (with-directory-excursion "scripts"
188 (substitute* "languages.rb"
189 (("../../../tex/generic/") "../tex/generic/"))
190 (substitute* "generate-plain-patterns.rb"
191 ;; Ruby 2 does not need this.
192 (("require 'unicode'") "")
193 (("Unicode.upcase\\(ch\\)") "ch.upcase")
194 ;; Write directly to the output directory
195 (("\\$path_root=File.*")
196 (string-append "$path_root=\"" out "/share/texmf-dist/\"\n"))
197 ;; Create quote directory when needed
198 (("f = File.open\\(\"#\\{\\$path_quote\\}" m)
199 (string-append "require 'fileutils'; FileUtils.mkdir_p $path_quote;" m))
200 ;; Only generate patterns for this language.
202 (string-append m filter-expression)))
203 (invoke "ruby" "generate-plain-patterns.rb")
205 ;; Build pattern loaders
206 (substitute* "generate-pattern-loaders.rb"
207 (("\\$path_tex_generic=File.*")
208 (string-append "$path_tex_generic=\"" root "/tex/generic\"\n"))
209 ;; Only generate loader for this language.
211 (string-append m filter-expression)))
212 (invoke "ruby" "generate-pattern-loaders.rb")
214 ;; Build ptex patterns
215 (substitute* "generate-ptex-patterns.rb"
216 (("\\$path_root=File.*")
217 (string-append "$path_root=\"" root "\"\n"))
218 ;; Only generate ptex patterns for this language.
220 (string-append m filter-expression)))
221 (invoke "ruby" "generate-ptex-patterns.rb")))))))))
224 ("hyph-utf8-scripts" ,hyph-utf8-scripts)))
225 (home-page "https://ctan.org/pkg/hyph-utf8"))))
227 (define texlive-extra-src
230 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-extra.tar.xz")
232 "0a83kymxc8zmlxjb0y1gf6mx7qnf0hxffwkivwh5yh138y2rfhsv"))))
234 (define texlive-texmf-src
237 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-texmf.tar.xz")
239 "1b8zigzg8raxkhhzphcmynf84rbdbj2ym2qkz24v8n0qx82zmqms"))))
241 (define-public texlive-bin
248 (uri (string-append "ftp://tug.org/historic/systems/texlive/2018/"
249 "texlive-" version "-source.tar.xz"))
252 "0khyi6h015r2zfqgg0a44a2j7vmr1cy42knw7jbss237yvakc07y"))
255 (lambda (name revision hash)
258 (uri (string-append "https://git.archlinux.org/svntogit/packages.git"
259 "/plain/trunk/" name "?h=packages/texlive-bin"
261 (file-name (string-append "texlive-bin-" name))
262 (sha256 (base32 hash)))))
263 (arch-revision "e1975bce0b9d270d7c9773c5beb7e87d61ee8f57"))
264 (append (search-patches "texlive-bin-CVE-2018-17407.patch"
265 "texlive-bin-luatex-poppler-compat.patch")
267 (arch-patch "pdftex-poppler0.72.patch" arch-revision
268 "0p46b6xxxg2s3hx67r0wpz16g3qygx65hpc581xs3jz5pvsiq3y7")
269 (arch-patch "xetex-poppler-fixes.patch" arch-revision
270 "1jj1p5zkjljb7id9pjv29cw0cf8mwrgrh4ackgzz9c200vaqpsvx")))))))
271 (build-system gnu-build-system)
273 `(("texlive-extra-src" ,texlive-extra-src)
278 (url (string-append "svn://www.tug.org/texlive/tags/"
279 %texlive-tag "/Master/texmf-dist/"
281 (revision %texlive-revision)))
282 (file-name (string-append "texlive-scripts-"
283 (number->string %texlive-revision)
287 "0wrjls1y9b4k1z10l9l8w2l3yjcw7v7by2y16kchdpkiyldlkry6"))))
289 ("fontconfig" ,fontconfig)
290 ("fontforge" ,fontforge)
291 ("freetype" ,freetype)
294 ("ghostscript" ,ghostscript)
295 ("graphite2" ,graphite2)
296 ("harfbuzz" ,harfbuzz)
298 ("libpaper" ,libpaper)
307 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
312 ("zziplib" ,zziplib)))
314 `(("pkg-config" ,pkg-config)))
316 `(#:out-of-source? #t
318 `("--disable-native-texlive-build"
319 ;; XXX: This is needed because recent Poppler requires C++11 or later.
320 ;; Remove after switch to GCC >= 6.
321 "CXXFLAGS=-std=gnu++11"
322 "--with-system-cairo"
323 "--with-system-freetype2"
326 "--with-system-graphite2"
327 "--with-system-harfbuzz"
329 "--with-system-libgs"
330 "--with-system-libpaper"
331 "--with-system-libpng"
333 "--with-system-pixman"
334 "--with-system-poppler"
335 "--with-system-potrace"
336 "--with-system-teckit"
339 "--with-system-zziplib")
341 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
342 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
343 #:tests? ,(let ((s (or (%current-target-system)
345 (not (or (string-prefix? "aarch64" s)
346 (string-prefix? "mips64" s))))
348 (modify-phases %standard-phases
349 (add-after 'unpack 'configure-ghostscript-executable
350 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
351 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
352 ;; checking for the existence of the /usr/bin directory. Since
353 ;; Guix System does not have /usr/bin, it is also detected as Windows.
354 (lambda* (#:key inputs #:allow-other-keys)
355 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
357 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
359 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
361 (add-after 'unpack 'use-code-for-new-poppler
363 (copy-file "texk/web2c/pdftexdir/pdftoepdf-poppler0.72.0.cc"
364 "texk/web2c/pdftexdir/pdftoepdf.cc")
365 (copy-file "texk/web2c/pdftexdir/pdftosrc-poppler0.72.0.cc"
366 "texk/web2c/pdftexdir/pdftosrc.cc")
368 (add-after 'unpack 'disable-failing-test
370 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
371 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
372 (substitute* "texk/web2c/omegafonts/check.test"
373 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
374 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))
376 (add-after 'install 'postint
377 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
378 (let* ((out (assoc-ref outputs "out"))
379 (share (string-append out "/share"))
380 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
381 (unpack (assoc-ref %standard-phases 'unpack))
382 (patch-source-shebangs
383 (assoc-ref %standard-phases 'patch-source-shebangs)))
384 (substitute* (string-append share "/texmf-dist/web2c/texmf.cnf")
385 ;; Don't truncate lines.
386 (("^error_line = .*$") "error_line = 254\n")
387 (("^half_error_line = .*$") "half_error_line = 238\n")
388 (("^max_print_line = .*$") "max_print_line = 1000\n"))
389 ;; Create symbolic links for the latex variants and their
391 (with-directory-excursion (string-append out "/bin/")
393 '("pdftex" "pdftex" "xetex" "luatex")
394 '("latex" "pdflatex" "xelatex" "lualatex")))
395 (with-directory-excursion (string-append share "/man/man1/")
396 (symlink "luatex.1" "lualatex.1"))
397 ;; Unpack texlive-extra and install tlpkg.
398 (mkdir "texlive-extra")
399 (with-directory-excursion "texlive-extra"
400 (apply unpack (list #:source texlive-extra))
401 (apply patch-source-shebangs (list #:source texlive-extra))
402 (invoke "mv" "tlpkg" share))
403 (let ((scripts (string-append share "/texmf-dist/scripts/texlive/")))
405 (copy-recursively (assoc-ref inputs "texlive-scripts") scripts)
406 ;; Make sure that fmtutil can find its Perl modules.
407 (substitute* (string-append scripts "fmtutil.pl")
408 (("\\$TEXMFROOT/") (string-append share "/"))))
410 ;; texlua shebangs are not patched by the patch-source-shebangs
411 ;; phase because the texlua executable does not exist at that
413 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
414 (with-directory-excursion out
415 (patch-source-shebangs))))))))
417 (list (search-path-specification
419 (files '("share/texmf-dist"))
421 (search-path-specification
422 (variable "TEXMFCNF")
423 (files '("share/texmf-dist/web2c"))
425 (synopsis "TeX Live, a package of the TeX typesetting system")
427 "TeX Live provides a comprehensive TeX document production system.
428 It includes all the major TeX-related programs, macro packages, and fonts
429 that are free software, including support for many languages around the
432 This package contains the binaries.")
433 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
434 (home-page "https://www.tug.org/texlive/")))
437 (define texlive-docstrip
439 (inherit (simple-texlive-package
441 (list "/tex/latex/base/docstrip.tex")
443 "17vdy43d9vknldz7wb69hp33r8awmdvn4xszamvgs5ikcl4cp289")
445 (home-page "https://www.ctan.org/texlive")
446 (synopsis "Utility to strip documentation from TeX files.")
447 (description "This package provides the docstrip utility to strip
448 documentation from TeX files. It is part of the LaTeX base.")
449 (license license:lppl1.3+)))
451 (define-public texlive-unicode-data
453 (inherit (simple-texlive-package
454 "texlive-unicode-data"
455 (list "/tex/generic/unicode-data/"
456 "/doc/generic/unicode-data/")
458 "1j63kz29arfiydb8r1a53q1r4zyk1yjbcq0w9i93zddczgqzgbfb")
460 (home-page "https://www.ctan.org/pkg/unicode-data")
461 (synopsis "Unicode data and loaders for TeX")
462 (description "This bundle provides generic access to Unicode Consortium
463 data for TeX use. It contains a set of text files provided by the Unicode
464 Consortium which are currently all from Unicode 8.0.0, with the exception of
465 @code{MathClass.txt} which is not currently part of the Unicode Character
466 Database. Accompanying these source data are generic TeX loader files
467 allowing this data to be used as part of TeX runs, in particular in building
468 format files. Currently there are two loader files: one for general character
469 set up and one for initializing XeTeX character classes as has been carried
470 out to date by @code{unicode-letters.tex}. ")
471 (license license:lppl1.3c+)))
473 (define-public texlive-generic-unicode-data
474 (deprecated-package "texlive-generic-unicode-data" texlive-unicode-data))
476 (define-public texlive-hyphen-base
478 (inherit (simple-texlive-package
479 "texlive-hyphen-base"
480 (list "/tex/generic/config/language.dat"
481 "/tex/generic/config/language.dat.lua"
482 "/tex/generic/config/language.def"
483 "/tex/generic/config/language.us"
484 "/tex/generic/config/language.us.def"
485 "/tex/generic/config/language.us.lua"
486 "/tex/generic/hyphen/dumyhyph.tex"
487 "/tex/generic/hyphen/hyphen.tex"
488 "/tex/generic/hyphen/hypht1.tex"
489 "/tex/generic/hyphen/zerohyph.tex")
491 "002g5zhzbj3ikgg8zidagdp605ac9f4qmfl148mp0mbpz1svk0ni")
493 (home-page "https://tug.org/texlive/")
494 (synopsis "Core hyphenation support files")
495 (description "This package includes Knuth's original @file{hyphen.tex},
496 @file{zerohyph.tex} to disable hyphenation, @file{language.us} which starts
497 the autogenerated files @file{language.dat} and @file{language.def} (and
498 default versions of those), etc.")
499 (license license:knuth)))
501 (define-public texlive-dvips
503 (inherit (simple-texlive-package
505 (list "/doc/man/man1/afm2tfm.1"
506 "/doc/man/man1/dvips.1"
509 "/fonts/enc/dvips/base/"
510 "/tex/generic/dvips/")
512 "1qr7h0ahycmz5wmpv54glfss9jqdmmyymj6kim626d1c8v9bmg86")
514 (home-page "https://www.ctan.org/pkg/dvips")
515 (synopsis "DVI to PostScript drivers")
516 (description "This package provides files needed for converting DVI files
518 (license license:lppl)))
520 (define-public texlive-tex-ini-files
522 (inherit (simple-texlive-package
523 "texlive-tex-ini-files"
524 (list "/tex/generic/tex-ini-files/")
526 "0q1g62jg0qiqslm93ycvm30bw8ydmssjdshzsnzl7n2vpd62qfi2")
528 (home-page "https://www.ctan.org/pkg/tex-ini-files")
529 (synopsis "Files for creating TeX formats")
530 (description "This bundle provides a collection of model \".ini\" files
531 for creating TeX formats. These files are commonly used to introduced
532 distribution-dependent variations in formats. They are also used to
533 allow existing format source files to be used with newer engines, for example
534 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
535 (license license:public-domain)))
537 (define-public texlive-generic-tex-ini-files
538 (deprecated-package "texlive-generic-tex-ini-files" texlive-tex-ini-files))
540 (define-public texlive-metafont-base
542 (name "texlive-metafont-base")
543 (version (number->string %texlive-revision))
547 (url (string-append "svn://www.tug.org/texlive/tags/"
548 %texlive-tag "/Master/texmf-dist/"
550 (revision %texlive-revision)))
551 (file-name (string-append name "-" version "-checkout"))
554 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
555 (build-system gnu-build-system)
557 `(#:tests? #f ; no test target
559 (modify-phases %standard-phases
562 (lambda* (#:key inputs #:allow-other-keys)
563 (let ((cwd (getcwd)))
565 (string-append cwd "/base:"
572 (with-directory-excursion "build"
573 (invoke "inimf" "mf.mf"))))
575 (lambda* (#:key outputs #:allow-other-keys)
576 (let* ((out (assoc-ref outputs "out"))
577 (base (string-append out "/share/texmf-dist/web2c"))
578 (mf (string-append out "/share/texmf-dist/metafont/base")))
581 (install-file "build/mf.base" base)
582 (copy-recursively "base" mf)
585 `(("texlive-bin" ,texlive-bin)))
586 (home-page "https://www.ctan.org/pkg/metafont")
587 (synopsis "Metafont base files")
588 (description "This package provides the Metafont base files needed to
589 build fonts using the Metafont system.")
590 (license license:knuth)))
592 (define-public texlive-fontinst
593 (let ((template (simple-texlive-package
595 (list "/doc/fonts/fontinst/"
596 "/doc/man/man1/fontinst.1"
597 "/doc/man/man1/fontinst.man1.pdf"
599 ;; This is used to build parts of
600 ;; /tex/fontinst/{base,misc}/ and
601 ;; /tex/latex/fontinst/fontdoc.sty.
602 "/source/fontinst/base/"
604 ;; These are not generated.
605 "/tex/fontinst/base/bbox.sty"
606 "/tex/fontinst/base/multislot.sty"
607 "/tex/fontinst/misc/glyphbox.mtx"
608 "/tex/fontinst/misc/glyphoff.mtx"
609 "/tex/fontinst/misc/glyphon.mtx"
610 "/tex/fontinst/misc/kernoff.mtx"
611 "/tex/fontinst/misc/kernon.mtx"
613 "/tex/fontinst/latinetx/"
614 "/tex/fontinst/latinmtx/"
615 "/tex/fontinst/mathmtx/"
616 "/tex/fontinst/smblmtx/"
618 "/scripts/texlive/fontinst.sh")
620 "09drlb0krhnizw92xlm5wxzzpgn3shcxd684xlg0zc5p16l47w6h")
625 (substitute-keyword-arguments (package-arguments template)
627 '((guix build gnu-build-system)
631 `(modify-phases ,phases
633 (lambda* (#:key inputs #:allow-other-keys)
635 (string-append (getcwd) "//:"
636 (getcwd) "/source/fontinst/base//:"
637 (assoc-ref inputs "texlive-docstrip") "//"))
639 (invoke "tex" "-ini" "-interaction=scrollmode"
640 "-output-directory=build"
642 ;; Since we're using docstrip without LaTeX we can't set \UseTDS
643 ;; or \BaseDirectory, so the generated files are just dumped in
644 ;; the "build" directory.
645 (add-after 'install 'install-generated-files
646 (lambda* (#:key outputs #:allow-other-keys)
647 (let* ((out (assoc-ref outputs "out"))
648 (root (string-append out "/share/texmf-dist")))
649 (for-each (match-lambda
651 (for-each (lambda (file)
653 (string-append "build/" file)
654 (string-append root dir)))
656 '(("/tex/fontinst/base"
662 ("/tex/fontinst/misc"
666 ("/tex/latex/fontinst"
670 `(("texlive-bin" ,texlive-bin)
671 ("texlive-docstrip" ,texlive-docstrip)))
672 (home-page "https://www.ctan.org/pkg/fontinst")
673 (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
674 (description "This package provides TeX macros for converting Adobe Font
675 Metric files to TeX metric and virtual font format. Fontinst helps mainly
676 with the number crunching and shovelling parts of font installation. This
677 means in practice that it creates a number of files which give the TeX
678 metrics (and related information) for a font family that TeX needs to do any
679 typesetting in these fonts.")
680 (license license:lppl1.1+))))
682 (define-public texlive-tex-fontinst-base
683 (deprecated-package "texlive-tex-fontinst-base" texlive-fontinst))
685 (define-public texlive-fontname
687 (inherit (simple-texlive-package
689 (list "/doc/fonts/fontname/fontname.texi"
690 "/fonts/map/fontname/")
692 "0h5im5rnhycrrkd6z10f17m2caa8lv594wf482b68qjmnxfrqnxj")
694 (home-page "https://www.ctan.org/pkg/fontname")
695 (synopsis "Scheme for naming fonts in TeX")
696 (description "This is Fontname, a naming scheme for (the base part of)
697 external TeX font filenames. This makes at most eight-character names
698 from (almost) arbitrarily complex font names, thus helping portability of TeX
700 (license license:public-domain)))
702 (define-public texlive-cm
703 (let ((template (simple-texlive-package
705 (list "/fonts/source/public/cm/"
706 "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map"
709 "1h0q71paqmg1xjg6k35ni2i6m93kmlq9rdwm913xg9n4qngywl18")
714 (substitute-keyword-arguments (package-arguments template)
715 ((#:modules modules '())
716 '((guix build gnu-build-system)
720 `(modify-phases ,phases
722 (lambda* (#:key inputs #:allow-other-keys)
723 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
724 ;; Tell mf where to find mf.base
725 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
726 ;; Tell mf where to look for source files
728 (string-append (getcwd) "/fonts/source/public/cm/:"
729 mf "/share/texmf-dist/metafont/base")))
730 (for-each make-file-writable
731 (cons "fonts/source/public/cm/"
732 (find-files "fonts/source/public/cm/" ".*")))
733 (let ((build (string-append (getcwd) "/build"))
734 (pkdir (string-append (getcwd) "/pk/ljfour/public/cm/dpi600")))
737 (with-directory-excursion "fonts/source/public/cm/"
738 (for-each (lambda (font)
739 (format #t "building font ~a\n" font)
740 (invoke "mf" "-progname=mf"
741 (string-append "-output-directory=" build)
747 (basename font ".mf")))
749 (string-append build "/"
750 (basename font ".mf") ".600gf")
751 (string-append pkdir "/"
752 (basename font ".mf") ".pk")))
753 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
755 (add-after 'install 'install-generated-fonts
756 (lambda* (#:key inputs outputs #:allow-other-keys)
757 (let* ((out (assoc-ref outputs "out"))
758 (fonts (string-append out "/share/texmf-dist/fonts/"))
759 (pk (string-append fonts "pk"))
760 (tfm (string-append fonts "tfm/public/cm")))
761 (for-each (cut install-file <> tfm)
762 (find-files "build" "\\.*"))
763 (copy-recursively "pk" pk)
766 `(("texlive-bin" ,texlive-bin)
767 ("texlive-metafont-base" ,texlive-metafont-base)))
768 (home-page "https://www.ctan.org/pkg/cm")
769 (synopsis "Computer Modern fonts for TeX")
770 (description "This package provides the Computer Modern fonts by Donald
771 Knuth. The Computer Modern font family is a large collection of text,
772 display, and mathematical fonts in a range of styles, based on Monotype Modern
774 (license license:knuth))))
776 (define-public texlive-fonts-cm
777 (deprecated-package "texlive-fonts-cm" texlive-cm))
779 (define-public texlive-cm-super
780 (let ((template (simple-texlive-package
782 (list "/doc/fonts/cm-super/"
784 "/fonts/afm/public/cm-super/"
785 "/fonts/enc/dvips/cm-super/"
786 "/fonts/map/dvips/cm-super/"
787 "/fonts/map/vtex/cm-super/"
788 "/fonts/type1/public/cm-super/"
789 "/tex/latex/cm-super/")
791 "1k3afl0x0bqbr5mnawbnp7rr2126dwn0vwnxzibm9ggvzqilnkm6")
796 (substitute-keyword-arguments (package-arguments template)
798 `(modify-phases ,phases
799 (delete 'reset-gzip-timestamps)))))
800 (home-page "https://www.ctan.org/pkg/cm-super")
801 (synopsis "Computer Modern Super family of fonts")
802 (description "The CM-Super family provides Adobe Type 1 fonts that replace
803 the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
804 T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
805 languages except Greek), and bringing many ameliorations in typesetting
806 quality. The fonts exhibit the same metrics as the METAFONT-encoded
808 ;; With font exception
809 (license license:gpl2+))))
811 (define-public texlive-fonts-cm-super
812 (deprecated-package "texlive-fonts-cm-super" texlive-cm-super))
814 (define-public texlive-lm
816 (inherit (simple-texlive-package
818 (list "/doc/fonts/lm/"
819 "/fonts/afm/public/lm/"
820 "/fonts/enc/dvips/lm/"
821 "/fonts/map/dvipdfm/lm/"
822 "/fonts/map/dvips/lm/"
823 "/fonts/opentype/public/lm/"
824 "/fonts/tfm/public/lm/"
825 "/fonts/type1/public/lm/"
828 "0i1hwr8rp0jqyvs4qyplrirscd4w7lsgwsncyv3yzy80bsa56jq5")
830 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/")
831 (synopsis "Latin Modern family of fonts")
832 (description "The Latin Modern fonts are derived from the famous Computer
833 Modern fonts designed by Donald E. Knuth and described in Volume E of his
834 Computers & Typesetting series.")
835 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
836 ;; Public License (LPPL), version 1.3c or later, but comes with an
837 ;; additional but not legally binding clause.
838 (license license:lppl1.3c+)))
840 (define-public texlive-fonts-lm
841 (deprecated-package "texlive-fonts-lm" texlive-lm))
843 (define-public texlive-fonts-knuth-lib
845 (name "texlive-fonts-knuth-lib")
846 (version (number->string %texlive-revision))
850 (url (string-append "svn://www.tug.org/texlive/tags/"
851 %texlive-tag "/Master/texmf-dist/"
852 "/fonts/source/public/knuth-lib"))
853 (revision %texlive-revision)))
854 (file-name (string-append name "-" version "-checkout"))
857 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
858 (build-system gnu-build-system)
860 `(#:modules ((guix build gnu-build-system)
863 #:tests? #f ; no tests
865 (modify-phases %standard-phases
868 (lambda* (#:key inputs #:allow-other-keys)
869 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
870 ;; Tell mf where to find mf.base
872 (string-append mf "/share/texmf-dist/web2c"))
873 ;; Tell mf where to look for source files
875 (string-append (getcwd) ":"
876 mf "/share/texmf-dist/metafont/base")))
878 (for-each (lambda (font)
879 (format #t "building font ~a\n" font)
880 (invoke "mf" "-progname=mf"
881 "-output-directory=build"
887 (find-files "." "(manfnt|logo.+)\\.mf$"))
890 (lambda* (#:key outputs #:allow-other-keys)
891 (let* ((out (assoc-ref outputs "out"))
893 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
895 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
896 (for-each (cut install-file <> tfm)
897 (find-files "build" "\\.*"))
898 (for-each (cut install-file <> mf)
899 (find-files "." "\\.mf"))
902 `(("texlive-bin" ,texlive-bin)
903 ("texlive-metafont-base" ,texlive-metafont-base)))
904 (home-page "https://www.ctan.org/pkg/knuth-lib")
905 (synopsis "Small library of METAFONT sources")
906 (description "This is a collection of core TeX and METAFONT macro files
907 from Donald Knuth, including the plain format, plain base, and the MF logo
909 (license license:knuth)))
911 (define-public texlive-fonts-latex
913 (name "texlive-fonts-latex")
914 (version (number->string %texlive-revision))
918 (url (string-append "svn://www.tug.org/texlive/tags/"
919 %texlive-tag "/Master/texmf-dist/"
920 "/fonts/source/public/latex-fonts"))
921 (revision %texlive-revision)))
922 (file-name (string-append name "-" version "-checkout"))
925 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
926 (build-system gnu-build-system)
928 `(#:modules ((guix build gnu-build-system)
932 #:tests? #f ; no tests
934 (modify-phases %standard-phases
937 (lambda* (#:key inputs #:allow-other-keys)
938 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
939 ;; Tell mf where to find mf.base
940 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
941 ;; Tell mf where to look for source files
943 (string-append (getcwd) ":"
944 mf "/share/texmf-dist/metafont/base:"
945 (assoc-ref inputs "texlive-cm")
946 "/share/texmf-dist/fonts/source/public/cm")))
948 (for-each (lambda (font)
949 (format #t "building font ~a\n" font)
950 (invoke "mf" "-progname=mf"
951 "-output-directory=build"
957 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
958 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
959 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
960 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
964 (lambda* (#:key outputs #:allow-other-keys)
965 (let* ((out (assoc-ref outputs "out"))
967 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
969 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
970 (for-each (cut install-file <> tfm)
971 (find-files "build" "\\.*"))
972 (for-each (cut install-file <> mf)
973 (find-files "." "\\.mf"))
976 `(("texlive-bin" ,texlive-bin)
977 ("texlive-metafont-base" ,texlive-metafont-base)
978 ("texlive-cm" ,texlive-cm)))
979 (home-page "https://www.ctan.org/pkg/latex-fonts")
980 (synopsis "Collection of fonts used in LaTeX distributions")
981 (description "This is a collection of fonts for use with standard LaTeX
982 packages and classes. It includes invisible fonts (for use with the slides
983 class), line and circle fonts (for use in the picture environment) and LaTeX
985 (license license:lppl1.2+)))
987 (define-public texlive-latex-mflogo
989 (name "texlive-latex-mflogo")
990 (version (number->string %texlive-revision))
994 (uri (texlive-ref "latex" "mflogo"))
997 "15i2ib6nvhf31g1b92c6njf7n0g29znlq7hbfp9ii7qabhcwwvrj"))))
998 (build-system texlive-build-system)
999 (arguments '(#:tex-directory "latex/mflogo"))
1000 (home-page "http://www.ctan.org/pkg/mflogo")
1001 (synopsis "LaTeX support for Metafont logo fonts")
1003 "This package provides LaTeX and font definition files to access the
1004 Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont
1005 logos in LaTeX documents.")
1006 (license license:lppl)))
1008 (define-public texlive-mflogo-font
1010 (inherit (simple-texlive-package
1011 "texlive-mflogo-font"
1012 (list "/doc/fonts/mflogo-font/README"
1013 "/fonts/afm/hoekwater/mflogo-font/"
1014 "/fonts/map/dvips/mflogo-font/"
1015 "/fonts/type1/hoekwater/mflogo-font/")
1017 "094mknjv8ki2pvj1zin0f1z4f1w12g0cfqjiqcsawjsry4yfrmbg")
1019 (home-page "https://www.ctan.org/pkg/mflogo-font")
1020 (synopsis "Metafont logo font")
1022 "These fonts were created in METAFONT by Knuth, for his own publications.
1023 At some stage, the letters P and S were added, so that the METAPOST logo could
1024 also be expressed. The fonts were originally issued (of course) as METAFONT
1025 source; they have since been autotraced and reissued in Adobe Type 1 format by
1027 (license license:knuth)))
1029 (define-public texlive-fonts-mflogo-font
1030 (deprecated-package "texlive-fonts-mflogo-font" texlive-mflogo-font))
1032 (define-public texlive-amsfonts
1033 (let ((template (simple-texlive-package
1035 (list "/source/latex/amsfonts/"
1036 "/fonts/source/public/amsfonts/"
1037 "/fonts/type1/public/amsfonts/"
1038 "/fonts/afm/public/amsfonts/"
1039 "/fonts/map/dvips/amsfonts/"
1040 "/tex/plain/amsfonts/"
1041 "/doc/fonts/amsfonts/")
1043 "15q70nkjf8wqzbd5ivcdx3i2sdgqxjb38q0qn9a2qw9i0qcnx6zw"))))
1047 (substitute-keyword-arguments (package-arguments template)
1048 ((#:build-targets _ #t)
1049 '(list "amsfonts.ins"))
1050 ((#:tex-directory _ #t)
1052 ((#:modules modules '())
1053 `((guix build texlive-build-system)
1059 `(modify-phases ,phases
1060 (add-before 'build 'build-fonts
1061 (lambda* (#:key inputs #:allow-other-keys)
1062 (let ((mf (assoc-ref inputs "texlive-union"))
1063 (src (string-append (getcwd) "/fonts/source/public/amsfonts/")))
1064 ;; Make METAFONT reproducible
1065 (setenv "SOURCE_DATE_EPOCH" "1")
1066 ;; Tell mf where to find mf.base
1067 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1068 ;; Tell mf where to look for source files
1070 (string-append src ":"
1075 mf "/share/texmf-dist/metafont/base:"
1076 (assoc-ref inputs "texlive-cm")
1077 "/share/texmf-dist/fonts/source/public/cm")))
1078 (let ((build (string-append (getcwd) "/build-fonts")))
1080 (with-directory-excursion "fonts/source/public/amsfonts"
1081 (for-each (lambda (font)
1082 (format #t "building font ~a\n" (basename font ".mf"))
1083 (with-directory-excursion (dirname font)
1084 (invoke "mf" "-progname=mf"
1085 (string-append "-output-directory=" build)
1092 (basename font ".mf")))))
1093 (find-files "." "[0-9]+\\.mf$"))))
1095 ;; There are no metafont sources for the Euler fonts, so we
1096 ;; convert the afm files instead.
1097 (let ((build (string-append (getcwd) "/build-fonts/euler")))
1099 (with-directory-excursion "fonts/afm/public/amsfonts/"
1100 (for-each (lambda (font)
1101 (format #t "converting afm font ~a\n" (basename font ".afm"))
1102 (invoke "afm2tfm" font
1103 (string-append build "/"
1104 (basename font ".tfm"))))
1105 (find-files "." "\\.afm$")))
1107 ;; Frustratingly, not all fonts can be created this way. To
1108 ;; generate eufm8.tfm, for example, we first scale down
1109 ;; eufm10.afm to eufm8.pl, and then generate the tfm file from
1112 (string-append build "//:"
1113 (getcwd) "/fonts/afm/public/amsfonts//:"
1114 (getcwd) "/source/latex/amsfonts//:"
1115 (assoc-ref inputs "texlive-union") "//"))
1116 (with-directory-excursion build
1117 (for-each (match-lambda
1118 (((target-base target-size)
1119 (source-base source-size))
1120 (let ((factor (number->string
1121 (truncate/ (* 1000 target-size)
1124 "-interaction=scrollmode"
1125 (string-append "\\input fontinst.sty "
1126 "\\transformfont{" target-base "}"
1127 "{\\scalefont{" factor "}"
1128 "{\\fromafm{" source-base "}}} "
1131 (string-append target-base ".pl")
1132 (string-append target-base ".tfm"))
1133 (delete-file (string-append target-base ".pl"))))
1135 '((("eufm8" 8) ("eufm10" 10))
1137 (("eufb6" 6) ("eufb7" 7))
1138 (("eufb8" 8) ("eufb10" 10))
1139 (("eufb9" 9) ("eufb10" 10))
1141 (("eufm6" 6) ("eufb7" 7))
1142 (("eufm9" 9) ("eufb10" 10))
1144 (("eurb6" 6) ("eurb7" 7))
1145 (("eurb8" 8) ("eurb10" 10))
1146 (("eurb9" 9) ("eurb10" 10))
1148 (("eurm6" 6) ("eurm7" 7))
1149 (("eurm8" 8) ("eurm10" 10))
1150 (("eurm9" 9) ("eurm10" 10))))))
1152 (add-after 'install 'install-generated-fonts
1153 (lambda* (#:key inputs outputs #:allow-other-keys)
1154 (copy-recursively "build-fonts"
1156 (assoc-ref outputs "out")
1157 "/share/texmf-dist/fonts/tfm/public/amsfonts"))
1160 `(("texlive-union" ,(texlive-union (list texlive-tex-fontinst-base
1162 texlive-metafont-base)))))
1163 (home-page "https://www.ctan.org/pkg/amsfonts")
1164 (synopsis "TeX fonts from the American Mathematical Society")
1166 "This package provides an extended set of fonts for use in mathematics,
1167 including: extra mathematical symbols; blackboard bold letters (uppercase
1168 only); fraktur letters; subscript sizes of bold math italic and bold Greek
1169 letters; subscript sizes of large symbols such as sum and product; added sizes
1170 of the Computer Modern small caps font; cyrillic fonts (from the University of
1171 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1172 files, and all except the Euler fonts are provided as Metafont source. The
1173 distribution also includes the canonical Type 1 versions of the Computer
1174 Modern family of fonts. The Euler fonts are supported by separate packages;
1175 details can be found in the documentation.")
1176 (license license:silofl1.1))))
1178 (define-public texlive-fonts-amsfonts
1179 (deprecated-package "texlive-fonts-amsfonts" texlive-amsfonts))
1181 (define-public texlive-latex-amsfonts
1182 (deprecated-package "texlive-latex-amsfonts" texlive-amsfonts))
1184 (define-public texlive-mkpattern
1186 (inherit (simple-texlive-package
1188 (list "/doc/plain/mkpattern/README"
1189 "/doc/plain/mkpattern/mkpatdoc.tex"
1190 "/doc/plain/mkpattern/mkpatter.pdf"
1191 "/doc/plain/mkpattern/mkpattern-exmpl.tex"
1192 "/tex/plain/mkpattern/mkpatter.tex")
1194 "0sxnkbcc802jl3fj56x9hvg978bpv15lhrwj0aykb4syq29l47ga")
1196 (home-page "https://ctan.org/pkg/mkpattern")
1197 (synopsis "Utility for making hyphenation patterns")
1198 (description "Mkpattern is a general purpose program for the generation of
1199 hyphenation patterns, with definition of letter sets and template-like
1200 constructions. It also provides an easy way to handle different input and
1201 output encodings, and features generation of clean UTF-8 patterns.")
1202 (license license:lppl)))
1204 ;; This provides etex.src which is needed to build various formats, including
1205 ;; luatex.fmt and pdflatex.fmt
1206 (define-public texlive-etex
1207 (let ((template (simple-texlive-package
1209 (list "/doc/etex/base/"
1210 "/doc/man/man1/etex.1"
1211 "/doc/man/man1/etex.man1.pdf"
1213 "/fonts/source/public/etex/")
1215 "1qv6vxm5a8pw38gas3i69ivmsn79zj2yq5n5vdmh0rzic5hw2hmc")
1220 (substitute-keyword-arguments (package-arguments template)
1222 `(modify-phases ,phases
1225 (lambda* (#:key inputs #:allow-other-keys)
1226 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
1227 ;; Tell mf where to find mf.base
1228 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1229 ;; Tell mf where to look for source files
1231 (string-append (getcwd)
1232 "/fonts/source/public/etex/:"
1233 mf "/share/texmf-dist/metafont/base:"
1234 (assoc-ref inputs "texlive-cm")
1235 "/share/texmf-dist/fonts/source/public/cm")))
1236 (invoke "mf" "-progname=mf"
1243 (add-after 'install 'install-font
1244 (lambda* (#:key outputs #:allow-other-keys)
1247 (string-append (assoc-ref outputs "out")
1248 "/share/texmf-dist/fonts/tfm/public/etex/"))
1251 `(("texlive-bin" ,texlive-bin)
1252 ("texlive-metafont-base" ,texlive-metafont-base)
1253 ("texlive-cm" ,texlive-cm)))
1254 (home-page "https://www.ctan.org/pkg/etex")
1255 (synopsis "Extended version of TeX")
1257 "This package provides an extended version of TeX (which is capable of
1258 running as if it were TeX unmodified). E-TeX has been specified by the LaTeX
1259 team as the engine for the development of LaTeX2e; as a result, LaTeX
1260 programmers may assume e-TeX functionality. The pdftex engine directly
1261 incorporates the e-TeX extensions.")
1262 (license license:knuth))))
1264 (define-public texlive-tex-plain
1266 (inherit (simple-texlive-package
1268 (list "/tex/plain/")
1270 "1rrfay4d7lbyj02wlf23mwvbpjd160nwlgryx97hq1vb7dva4swr")
1272 (home-page "https://www.ctan.org/pkg/plain")
1273 (synopsis "Plain TeX format and supporting files")
1275 "This package contains files used to build the Plain TeX format, as
1276 described in the TeXbook, together with various supporting files (some also
1277 discussed in the book).")
1278 (license license:knuth)))
1280 (define-public texlive-hyphen-afrikaans
1282 (inherit (texlive-hyphen-package
1283 "texlive-hyphen-afrikaans" "af"
1284 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex")
1286 "1vb3jccqnn1pm0680yqx52kvz595fmxnwa0cbf8qman6zglsssiw")))
1287 (synopsis "Hyphenation patterns for Afrikaans")
1288 (description "The package provides hyphenation patterns for the Afrikaans
1290 (license license:lppl1.3+)))
1292 (define-public texlive-hyphen-ancientgreek
1294 (inherit (texlive-hyphen-package
1295 "texlive-hyphen-ancientgreek" "grc"
1296 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-grc.tex"
1297 "/tex/generic/hyphen/grahyph5.tex"
1298 "/tex/generic/hyphen/ibyhyph.tex")
1300 "0kwrqsz7wdr1d9kylzwp60ka3wfbj8iad029k5h6y94nb86mf7zv")))
1301 (synopsis "Hyphenation patterns for ancient Greek")
1302 (description "The package provides hyphenation patterns for ancient
1304 (license license:lppl1.3+)))
1306 (define-public texlive-hyphen-armenian
1307 (let ((template (texlive-hyphen-package
1308 "texlive-hyphen-armenian" "hy"
1309 (list "/source/generic/hyph-utf8/languages/hy/generate_patterns_hy.rb")
1311 "0z666y580w1kpxssdanz67ykq257lf11a1mnp1jrn08zijvfrw9c"))))
1315 (substitute-keyword-arguments (package-arguments template)
1317 `(modify-phases ,phases
1318 (add-before 'build 'build-patterns
1320 (let ((target (string-append (getcwd)
1321 "/tex/generic/hyph-utf8/patterns/tex")))
1323 (with-directory-excursion "source/generic/hyph-utf8/languages/hy/"
1324 (substitute* "generate_patterns_hy.rb"
1325 (("\\$file = File.new.*")
1326 (string-append "$file = File.new(\"" target
1327 "/hyph-hy.tex\",\"w\")\n")))
1328 (invoke "ruby" "generate_patterns_hy.rb"))
1330 (add-after 'install 'install-hyph-hy.tex
1331 (lambda* (#:key inputs outputs #:allow-other-keys)
1332 (let* ((out (assoc-ref outputs "out"))
1333 (target (string-append out "/share/texmf-dist/tex")))
1334 (copy-recursively "tex" target)
1336 (synopsis "Hyphenation patterns for Armenian")
1337 (description "The package provides hyphenation patterns for the Armenian
1339 ;; Any version of the LGPL.
1340 (license license:lgpl3+))))
1342 (define-public texlive-hyphen-basque
1343 (let ((template (texlive-hyphen-package
1344 "texlive-hyphen-basque" "eu"
1345 (list "/source/generic/hyph-utf8/languages/eu/generate_patterns_eu.rb")
1347 "1yhsbzf1g9dm70jfixsz51hsfvn26cwfkfxvhg7xv2piynr4v51l"))))
1351 (substitute-keyword-arguments (package-arguments template)
1353 `(modify-phases ,phases
1354 (add-before 'build 'build-patterns
1356 (let ((target (string-append (getcwd)
1357 "/tex/generic/hyph-utf8/patterns/tex")))
1359 (with-directory-excursion "source/generic/hyph-utf8/languages/eu/"
1360 (substitute* "generate_patterns_eu.rb"
1361 (("\\$file = File.new.*")
1362 (string-append "$file = File.new(\"" target
1363 "/hyph-eu.tex\",\"w\")\n")))
1364 (invoke "ruby" "generate_patterns_eu.rb"))
1366 (add-after 'install 'install-hyph-eu.tex
1367 (lambda* (#:key inputs outputs #:allow-other-keys)
1368 (let* ((out (assoc-ref outputs "out"))
1369 (target (string-append out "/share/texmf-dist/tex")))
1370 (copy-recursively "tex" target)
1372 (synopsis "Hyphenation patterns for Basque")
1373 (description "The package provides hyphenation patterns for the Basque
1375 ;; "Free for any purpose".
1376 (license (license:fsf-free
1377 "/source/generic/hyph-utf8/languages/eu/generate_patterns_eu.rb")))))
1379 (define-public texlive-hyphen-belarusian
1381 (inherit (texlive-hyphen-package
1382 "texlive-hyphen-belarusian" "be"
1383 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-be.tex")
1385 "1xvffph824rg43gi2xs3ny9gzlp708fyxj9zfhckmg8pzh9vv3n6")))
1386 (synopsis "Hyphenation patterns for Belarusian")
1387 (description "The package provides hyphenation patterns for the Belarusian
1389 (license license:expat)))
1391 (define-public texlive-hyphen-bulgarian
1393 (inherit (texlive-hyphen-package
1394 "texlive-hyphen-bulgarian" "bg"
1395 (list "/doc/generic/hyph-utf8/bg/azbukaExtended.pdf"
1396 "/doc/generic/hyph-utf8/bg/azbukaExtended.tex"
1397 "/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex")
1399 "06dxkk9azsggbri04i6g62lswygzadsx3rpqvbyzvbxc5wxz1dj1")))
1400 (synopsis "Hyphenation patterns for Bulgarian")
1401 (description "The package provides hyphenation patterns for the Bulgarian
1402 language in T2A and UTF-8 encodings.")
1403 (license (license:non-copyleft
1404 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex"
1405 "Ancestral BSD variant"))))
1407 (define-public texlive-hyphen-catalan
1409 (inherit (texlive-hyphen-package
1410 "texlive-hyphen-catalan" "ca"
1411 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex")
1413 "0cisx76jpw8kpd3an37m9h8ppiysnizgfzl48y9d9n3fvx8jyykb")))
1414 (synopsis "Hyphenation patterns for Catalan")
1415 (description "The package provides hyphenation patterns for Catalan in
1416 T1/EC and UTF-8 encodings.")
1417 (license license:lppl1.0+)))
1419 (define-public texlive-hyphen-chinese
1421 (inherit (texlive-hyphen-package
1422 "texlive-hyphen-chinese" "zh-latn-pinyin"
1423 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-zh-latn-pinyin.tex")
1425 "07gbrn5fcl5d3hyg1zpai3zp1ggl73cmvpalwvh7ah313f57gjkk")))
1426 (synopsis "Hyphenation patterns for unaccented Chinese pinyin")
1427 (description "The package provides hyphenation patterns for unaccented
1428 Chinese pinyin T1/EC and UTF-8 encodings.")
1429 (license license:gpl2+)))
1431 (define-public texlive-hyphen-churchslavonic
1433 (inherit (texlive-hyphen-package
1434 "texlive-hyphen-churchslavonic" "cu"
1435 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cu.tex")
1437 "0xkqlz3ixyl4fxsnzrbxqrb82p0n67rhgpddbiyv3qwfnbr2b5a4")))
1438 (synopsis "Hyphenation patterns for Church Slavonic")
1439 (description "The package provides hyphenation patterns for Church
1440 Slavonic in UTF-8 encoding.")
1441 (license license:expat)))
1443 (define-public texlive-hyphen-coptic
1445 (inherit (texlive-hyphen-package
1446 "texlive-hyphen-coptic" "cop"
1447 (list "/tex/generic/hyph-utf8/patterns/tex-8bit/copthyph.tex"
1448 "/tex/generic/hyph-utf8/patterns/tex/hyph-cop.tex")
1450 "07i03jpdfy4ip7zbg4gnk4hk8zwj8rlni9dgrb1p8mfw2w19d80c")))
1451 (synopsis "Hyphenation patterns for Coptic")
1452 (description "The package provides hyphenation patterns for Coptic in
1453 UTF-8 encoding as well as in ASCII-based encoding for 8-bit engines.")
1454 ;; No explicit license declaration, so we use the project license.
1455 (license license:lppl)))
1457 (define-public texlive-hyphen-croatian
1459 (inherit (texlive-hyphen-package
1460 "texlive-hyphen-croatian" "hr"
1461 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hr.tex")
1463 "129nz2nqilyq2477n2clx20xfbxh1qxm69zg4n2f6c4d4a8711nc")))
1464 (synopsis "Hyphenation patterns for Croatian")
1465 (description "The package provides hyphenation patterns for Croatian in
1466 T1/EC and UTF-8 encodings.")
1467 (license license:lppl1.0+)))
1469 (define-public texlive-hyphen-czech
1471 (inherit (texlive-hyphen-package
1472 "texlive-hyphen-czech" "cs"
1473 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cs.tex")
1475 "1k5516gbfp1d5p97j247byag9sdgds5zwc11bwxfk58i6zq1v0m6")))
1476 (synopsis "Hyphenation patterns for Czech")
1477 (description "The package provides hyphenation patterns for Czech in T1/EC
1478 and UTF-8 encodings.")
1479 (license license:gpl2+)))
1481 (define-public texlive-hyphen-danish
1483 (inherit (texlive-hyphen-package
1484 "texlive-hyphen-danish" "da"
1485 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-da.tex")
1487 "0zxzs1b1723mav76i0wiyq4w82x8715cykvwa2bc60ldc2amv0vs")))
1488 (synopsis "Hyphenation patterns for Danish")
1489 (description "The package provides hyphenation patterns for Danish in
1490 T1/EC and UTF-8 encodings.")
1491 ;; Either LPPL 1.3 or later, or Expat
1492 (license (list license:lppl1.3+ license:expat))))
1494 (define-public texlive-hyphen-dutch
1496 (inherit (texlive-hyphen-package
1497 "texlive-hyphen-dutch" "nl"
1498 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex")
1500 "0cq46cmgjc4y2x0xs9b0a5zca3jmszv4rkzmrhgjb5z2nm3xkrpi")))
1501 (synopsis "Hyphenation patterns for Dutch")
1502 (description "The package provides hyphenation patterns for Dutch in T1/EC
1503 and UTF-8 encodings.")
1504 (license license:lppl1.0+)))
1506 (define-public texlive-hyphen-english
1508 (inherit (texlive-hyphen-package
1509 "texlive-hyphen-english" '("en-gb" "en-us")
1510 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-en-gb.tex"
1511 "/tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex")
1513 "08hyih8hn2w2q12gc4zygz0ckbz00mkzzn9898z2bicky02zg3kc")))
1514 (synopsis "Hyphenation patterns for American and British English")
1515 (description "The package provides additional hyphenation patterns for
1516 American and British English in ASCII encoding.")
1517 (license (license:non-copyleft
1518 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex"
1519 "FSF all permissive license"))))
1521 (define-public texlive-hyphen-esperanto
1523 (inherit (texlive-hyphen-package
1524 "texlive-hyphen-esperanto" "eo"
1525 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eo.tex")
1527 "03xbjbzasznsyf4wd45bya6f4snfmzpdzg5zpvqj5q6gjykdg54k")))
1528 (synopsis "Hyphenation patterns for Esperanto")
1529 (description "The package provides hyphenation patterns for Esperanto ISO
1530 Latin 3 and UTF-8 encodings.")
1531 (license license:lppl1.0+)))
1533 (define-public texlive-hyphen-estonian
1535 (inherit (texlive-hyphen-package
1536 "texlive-hyphen-estonian" "et"
1537 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-et.tex")
1539 "0idl6xajkkgxqngjn19jcfd29is5rhfn59v0z8h4sv8yjv6k934m")))
1540 (synopsis "Hyphenation patterns for Estonian")
1541 (description "The package provides hyphenation patterns for Estonian in
1542 T1/EC and UTF-8 encodings.")
1543 ;; Dual licensed under either license.
1544 (license (list license:lppl1.3+ license:expat))))
1546 (define-public texlive-hyphen-ethiopic
1547 (let ((template (texlive-hyphen-package
1548 "texlive-hyphen-ethiopic" "mul-ethi"
1549 (list "/source/generic/hyph-utf8/languages/mul-ethi/generate_patterns_mul-ethi.lua")
1551 "1dp5qn1mhv62kj27lqc7s0ca65z9bziyavkvif9ds5ivk7aq9drw"))))
1555 (substitute-keyword-arguments (package-arguments template)
1557 `(modify-phases ,phases
1558 (add-before 'build 'build-patterns
1559 (lambda* (#:key inputs #:allow-other-keys)
1560 (let ((tex (string-append (getcwd)
1561 "/tex/generic/hyph-utf8/patterns/tex/")))
1563 (with-directory-excursion "source/generic/hyph-utf8/languages/mul-ethi/"
1564 (substitute* "generate_patterns_mul-ethi.lua"
1565 (("\"UnicodeData.txt\"")
1567 (assoc-ref inputs "UnicodeData.txt")
1569 (invoke "texlua" "generate_patterns_mul-ethi.lua")
1570 (rename-file "hyph-mul-ethi.tex"
1571 (string-append tex "/hyph-mul-ethi.tex"))
1573 (add-after 'install 'install-hyph-mul-ethi.tex
1574 (lambda* (#:key inputs outputs #:allow-other-keys)
1575 (let* ((out (assoc-ref outputs "out"))
1576 (target (string-append out "/share/texmf-dist/tex")))
1577 (copy-recursively "tex" target)
1580 `(,@(package-native-inputs template)
1581 ("texlive-bin" ,texlive-bin)
1585 (uri (string-append "http://www.unicode.org/Public/10.0.0/ucd/"
1589 "1cfak1j753zcrbgixwgppyxhm4w8vda8vxhqymi7n5ljfi6kwhjj"))))))
1590 (synopsis "Hyphenation patterns for Ethiopic scripts")
1591 (description "The package provides hyphenation patterns for languages
1592 written using the Ethiopic script for Unicode engines. They are not supposed
1593 to be linguistically relevant in all cases and should, for proper typography,
1594 be replaced by files tailored to individual languages.")
1595 (license license:lppl))))
1597 (define-public texlive-hyphen-finnish
1599 (inherit (texlive-hyphen-package
1600 "texlive-hyphen-finnish" "fi"
1601 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi.tex")
1603 "03n6s8dwwa5vfk9bbyhcdf7p0bc0d1rrr312hpgbz8jfc9fbgd7n")))
1604 (synopsis "Hyphenation patterns for Finnish")
1605 (description "The package provides hyphenation patterns for Finnish in
1606 T1/EC and UTF-8 encodings.")
1607 (license license:public-domain)))
1609 (define-public texlive-hyphen-french
1611 (inherit (texlive-hyphen-package
1612 "texlive-hyphen-french" "fr"
1613 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fr.tex")
1615 "1q82mmwvy7fdkm42958ajb53w89qkcdwybswxlwcvqngvhpy3zf0")))
1616 (synopsis "Hyphenation patterns for French")
1617 (description "The package provides hyphenation patterns for French in
1618 T1/EC and UTF-8 encodings.")
1619 (license license:expat)))
1621 (define-public texlive-hyphen-friulan
1623 (inherit (texlive-hyphen-package
1624 "texlive-hyphen-friulan" "fur"
1625 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fur.tex")
1627 "07m975p0ghzs9sjqqgxy7qdkqmgvg4rx4xp08zwm1parqsdlwd5d")))
1628 (synopsis "Hyphenation patterns for Friulan")
1629 (description "The package provides hyphenation patterns for Friulan in
1631 (license license:lppl1.3+)))
1633 (define-public texlive-hyphen-galician
1634 (let ((template (texlive-hyphen-package
1635 "texlive-hyphen-galician" "gl"
1636 (list "/source/generic/hyph-utf8/languages/gl/README"
1637 "/source/generic/hyph-utf8/languages/gl/glhybiox.tex"
1638 "/source/generic/hyph-utf8/languages/gl/glhyextr.tex"
1639 "/source/generic/hyph-utf8/languages/gl/glhymed.tex"
1640 "/source/generic/hyph-utf8/languages/gl/glhyquim.tex"
1641 "/source/generic/hyph-utf8/languages/gl/glhytec.tex"
1642 "/source/generic/hyph-utf8/languages/gl/glhyxeog.tex"
1643 "/source/generic/hyph-utf8/languages/gl/glpatter-utf8.tex")
1645 "1yj1gxhkqqlyaand5gd6ij6xwffskryzlbcigdam3871a9p8x18w"))))
1649 (substitute-keyword-arguments (package-arguments template)
1651 `(modify-phases ,phases
1652 (add-before 'build 'build-patterns
1653 (lambda* (#:key inputs #:allow-other-keys)
1654 (let ((tex (string-append (getcwd)
1655 "/tex/generic/hyph-utf8/patterns/tex/")))
1657 (with-directory-excursion "source/generic/hyph-utf8/languages/gl/"
1659 (string-append (getcwd) "//:"
1660 (assoc-ref inputs "texlive-mkpattern") "//"))
1661 (invoke "tex" "-ini" "-8bit" "glpatter-utf8.tex")
1662 (rename-file "hyph-gl.tex"
1663 (string-append tex "/hyph-gl.tex"))
1665 (add-after 'install 'install-hyph-gl.tex
1666 (lambda* (#:key inputs outputs #:allow-other-keys)
1667 (let* ((out (assoc-ref outputs "out"))
1668 (target (string-append out "/share/texmf-dist/tex")))
1669 (copy-recursively "tex" target)
1672 `(,@(package-native-inputs template)
1673 ("texlive-bin" ,texlive-bin)
1674 ("texlive-mkpattern" ,texlive-mkpattern)))
1675 (synopsis "Hyphenation patterns for Galician")
1676 (description "The package provides hyphenation patterns for Galician in
1677 T1/EC and UTF-8 encodings.")
1678 ;; glhyextr.tex is the only file in the public domain.
1679 (license (list license:lppl1.3 license:public-domain)))))
1681 (define-public texlive-hyphen-georgian
1683 (inherit (texlive-hyphen-package
1684 "texlive-hyphen-georgian" "ka"
1685 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ka.tex")
1687 "01zhn6mflpiqw4lyi8dx8syiz5mky9jrxm87cgw31hanis5cml4l")))
1688 (synopsis "Hyphenation patterns for Georgian")
1689 (description "The package provides hyphenation patterns for Georgian in
1690 T8M, T8K, and UTF-8 encodings.")
1691 (license license:lppl1.3+)))
1693 (define-public texlive-hyphen-german
1695 (inherit (texlive-hyphen-package
1696 "texlive-hyphen-german" '("de-1901" "de-1996" "de-ch-1901")
1697 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1901.tex"
1698 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1996.tex"
1699 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-ch-1901.tex"
1700 "/tex/generic/hyphen/dehyphn.tex"
1701 "/tex/generic/hyphen/dehypht.tex"
1702 "/tex/generic/hyphen/dehyphtex.tex"
1703 "/tex/generic/hyphen/ghyphen.README")
1705 "1g0vhpvl2l69rn2lx7lkw0inrjbcxkj2sjgwd2fq7hdi4yb2ms76")))
1706 (synopsis "Hyphenation patterns for German")
1707 (description "This package provides hyphenation patterns for German in
1708 T1/EC and UTF-8 encodings, for traditional and reformed spelling, including
1710 ;; The patterns are released under the Expat license; the dehyph* files
1711 ;; are released under the LPPL version 1 or later.
1712 (license (list license:expat license:lppl1.0+))))
1714 (define-public texlive-hyphen-greek
1716 (inherit (texlive-hyphen-package
1717 "texlive-hyphen-greek" '("el-monoton" "el-polyton")
1718 (list "/doc/generic/elhyphen/"
1719 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-monoton.tex"
1720 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-polyton.tex"
1721 "/tex/generic/hyphen/grmhyph5.tex"
1722 "/tex/generic/hyphen/grphyph5.tex")
1724 "04626jhlrv2flgdygm7sfv6xpqhfwiavi16gy2ac04iliyk4rypg")))
1725 (synopsis "Hyphenation patterns for Greek")
1726 (description "This package provides hyphenation patterns for Modern Greek
1727 in monotonic and polytonic spelling in LGR and UTF-8 encodings.")
1728 (license license:lppl)))
1730 (define-public texlive-hyphen-hungarian
1732 (inherit (texlive-hyphen-package
1733 "texlive-hyphen-hungarian" "hu"
1734 (list "/doc/generic/huhyphen/"
1735 "/doc/generic/hyph-utf8/hu/"
1736 "/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex")
1738 "0c81w2569cqsi4j56azwz0lfx16541zhiqgmn3m4iwh7mpx3rji8")))
1739 (synopsis "Hyphenation patterns for Hungarian")
1740 (description "This package provides hyphenation patterns for Hungarian in
1741 T1/EC and UTF-8 encodings.")
1742 ;; Any of these licenses
1743 (license (list license:gpl2 license:lgpl2.1+ license:mpl1.1))))
1745 (define-public texlive-hyphen-icelandic
1747 (inherit (texlive-hyphen-package
1748 "texlive-hyphen-icelandic" "is"
1749 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-is.tex")
1751 "1ah1f82lgfhqgid4ngsfiypybx10v8gwxnb12396vfsj3bq6j0ba")))
1752 (synopsis "Hyphenation patterns for Icelandic")
1753 (description "This package provides hyphenation patterns for Icelandic in
1754 T1/EC and UTF-8 encodings.")
1755 (license license:lppl1.2+)))
1757 (define-public texlive-hyphen-indic
1759 (inherit (texlive-hyphen-package
1760 "texlive-hyphen-indic"
1761 '("as" "bn" "gu" "hi" "kn" "ml" "mr" "or" "pa" "ta" "te")
1762 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-as.tex"
1763 "/tex/generic/hyph-utf8/patterns/tex/hyph-bn.tex"
1764 "/tex/generic/hyph-utf8/patterns/tex/hyph-gu.tex"
1765 "/tex/generic/hyph-utf8/patterns/tex/hyph-hi.tex"
1766 "/tex/generic/hyph-utf8/patterns/tex/hyph-kn.tex"
1767 "/tex/generic/hyph-utf8/patterns/tex/hyph-ml.tex"
1768 "/tex/generic/hyph-utf8/patterns/tex/hyph-mr.tex"
1769 "/tex/generic/hyph-utf8/patterns/tex/hyph-or.tex"
1770 "/tex/generic/hyph-utf8/patterns/tex/hyph-pa.tex"
1771 "/tex/generic/hyph-utf8/patterns/tex/hyph-ta.tex"
1772 "/tex/generic/hyph-utf8/patterns/tex/hyph-te.tex")
1774 "1v8zc3wdbkhzjrflndmz4gdj11syz8vrcg0vwvm5bwhkx23g91lv")))
1775 (synopsis "Indic hyphenation patterns")
1776 (description "This package provides hyphenation patterns for Assamese,
1777 Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Panjabi, Tamil
1778 and Telugu for Unicode engines.")
1779 (license license:expat)))
1781 (define-public texlive-hyphen-indonesian
1783 (inherit (texlive-hyphen-package
1784 "texlive-hyphen-indonesian" "id"
1785 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-id.tex")
1787 "0mf0hr9c952kb2hmzid7fqg5whshwpribbyndb3ba092wh02abh5")))
1788 (synopsis "Indonesian hyphenation patterns")
1789 (description "This package provides hyphenation patterns for
1790 Indonesian (Bahasa Indonesia) in ASCII encoding. They are probably also
1791 usable for Malay (Bahasa Melayu).")
1792 (license license:gpl2)))
1794 (define-public texlive-hyphen-interlingua
1796 (inherit (texlive-hyphen-package
1797 "texlive-hyphen-interlingua" "ia"
1798 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ia.tex")
1800 "1aihgma3rix4jkc1z5k1lh6hlfrncn66yj0givd3j6xjqflafr2g")))
1801 (synopsis "Interlingua hyphenation patterns")
1802 (description "This package provides hyphenation patterns for Interlingua
1803 in ASCII encoding.")
1804 (license license:lppl1.3+)))
1806 (define-public texlive-hyphen-irish
1808 (inherit (texlive-hyphen-package
1809 "texlive-hyphen-irish" "ga"
1810 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ga.tex")
1812 "02k1fykgj3xamczjq16i9fsjjsh78pp5ypmh93p64izk2vymfwk0")))
1813 (synopsis "Irish hyphenation patterns")
1814 (description "This package provides hyphenation patterns for
1815 Irish (Gaeilge) in T1/EC and UTF-8 encodings.")
1816 ;; Either of these licenses
1817 (license (list license:gpl2+ license:expat))))
1819 (define-public texlive-hyphen-italian
1821 (inherit (texlive-hyphen-package
1822 "texlive-hyphen-italian" "it"
1823 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-it.tex")
1825 "1a65q3hjn2p212cgv6p7wa0wcn34qnxcz2pl3v3ip0xmb16qqsk5")))
1826 (synopsis "Italian hyphenation patterns")
1827 (description "This package provides hyphenation patterns for Italian in
1828 ASCII encoding. Compliant with the Recommendation UNI 6461 on hyphenation
1829 issued by the Italian Standards Institution (Ente Nazionale di Unificazione
1831 (license license:lppl1.3+)))
1833 (define-public texlive-hyphen-kurmanji
1835 (inherit (texlive-hyphen-package
1836 "texlive-hyphen-kurmanji" "kmr"
1837 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-kmr.tex")
1839 "1145ykfd0b0hgklindlxdgkqmsnj3cai3cwgllz411yqmrhjc6y9")))
1840 (synopsis "Kurmanji hyphenation patterns")
1841 (description "This package provides hyphenation patterns for
1842 Kurmanji (Northern Kurdish) as spoken in Turkey and by the Kurdish diaspora in
1843 Europe, in T1/EC and UTF-8 encodings.")
1844 (license license:lppl1.3)))
1846 (define-public texlive-hyphen-latin
1848 (inherit (texlive-hyphen-package
1849 "texlive-hyphen-latin" '("la-x-classic" "la-x-liturgic" "la")
1850 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex"
1851 "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-liturgic.tex"
1852 "/tex/generic/hyph-utf8/patterns/tex/hyph-la.tex")
1854 "1d8d6b47r4r000gqgzyl0sy9is0y0dg41jp8fw4gqq8qmcgdxgsg")))
1855 (synopsis "Liturgical Latin hyphenation patterns")
1856 (description "This package provides hyphenation patterns for Latin in
1857 T1/EC and UTF-8 encodings, mainly in modern spelling (u when u is needed and v
1858 when v is needed), medieval spelling with the ligatures @code{\\ae} and
1859 @code{\\oe} and the (uncial) lowercase 'v' written as a 'u' is also supported.
1860 Apparently there is no conflict between the patterns of modern Latin and those
1861 of medieval Latin. It also includes hyphenation patterns for the Classical
1862 Latin in T1/EC and UTF-8 encodings. Classical Latin hyphenation patterns are
1863 different from those of 'plain' Latin, the latter being more adapted to modern
1864 Latin. It also provides hyphenation patterns for the Liturgical Latin in
1865 T1/EC and UTF-8 encodings.")
1866 ;; Either of these licenses
1867 (license (list license:lppl1.0+ license:expat))))
1869 (define-public texlive-hyphen-latvian
1871 (inherit (texlive-hyphen-package
1872 "texlive-hyphen-latvian" "lv"
1873 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lv.tex")
1875 "1xbh5s6nwfjbv7g4kmcpjkm02a6s767p7jn9qjcnz5ip0ndl5g66")))
1876 (synopsis "Latvian hyphenation patterns")
1877 (description "This package provides hyphenation patterns for Latvian in
1878 L7X and UTF-8 encodings.")
1879 ;; Either of these licenses.
1880 (license (list license:gpl2 license:lgpl2.1))))
1882 (define-public texlive-hyphen-lithuanian
1884 (inherit (texlive-hyphen-package
1885 "texlive-hyphen-lithuanian" "lt"
1886 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lt.tex")
1888 "0v9spw0qkygkihj5app2immzqqr98w81pz460bcgvj1ah35jdfsl")))
1889 (synopsis "Lithuanian hyphenation patterns")
1890 (description "This package provides hyphenation patterns for Lithuanian in
1891 L7X and UTF-8 encodings.")
1892 ;; "Do ... whatever ... as long as you respect the copyright"; as part of
1893 ;; the hyph-utf8 package we choose the LPPL license.
1894 (license license:lppl)))
1896 (define-public texlive-hyphen-mongolian
1898 (inherit (texlive-hyphen-package
1899 "texlive-hyphen-mongolian" '("mn-cyrl-x-lmc" "mn-cyrl")
1900 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl-x-lmc.tex"
1901 "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl.tex")
1903 "0lqq3jgwgnclb1cn3x99xmk90xra9q51b00ypwy5crssmy023hqc")))
1904 (synopsis "Mongolian hyphenation patterns in Cyrillic script")
1905 (description "This package provides hyphenation patterns for Mongolian in
1906 T2A, LMC and UTF-8 encodings.")
1907 ;; Either of these licenses
1908 (license (list license:lppl1.3+ license:expat))))
1910 (define-public texlive-hyphen-norwegian
1912 (inherit (texlive-hyphen-package
1913 "texlive-hyphen-norwegian" '("nb" "nn" "no")
1914 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nb.tex"
1915 "/tex/generic/hyph-utf8/patterns/tex/hyph-nn.tex"
1916 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex")
1918 "1fxnf671yz0p3lmdkspna7fjh96br1jy6yf7v17yh4fxwry3s4yz")))
1919 (synopsis "Norwegian Bokmal and Nynorsk hyphenation patterns")
1920 (description "This package provides hyphenation patterns for Norwegian
1921 Bokmal and Nynorsk in T1/EC and UTF-8 encodings.")
1922 (license (license:non-copyleft
1923 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex"
1924 "FSF All permissive license"))))
1926 (define-public texlive-hyphen-occitan
1928 (inherit (texlive-hyphen-package
1929 "texlive-hyphen-occitan" "oc"
1930 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-oc.tex")
1932 "1y6j6ac9ncn79p7hnp6mdwdsw9ij14zyjby5iwdhpvzzn7yyc7p8")))
1933 (synopsis "Occitan hyphenation patterns")
1934 (description "This package provides hyphenation patterns for Occitan in
1935 T1/EC and UTF-8 encodings. They are supposed to be valid for all the Occitan
1936 variants spoken and written in the wide area called 'Occitanie' by the French.
1937 It ranges from the Val d'Aran within Catalunya, to the South Western Italian
1938 Alps encompassing the southern half of the French pentagon.")
1939 (license license:lppl1.0+)))
1941 (define-public texlive-hyphen-piedmontese
1943 (inherit (texlive-hyphen-package
1944 "texlive-hyphen-piedmontese" "pms"
1945 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pms.tex")
1947 "00fqzymkg374r3dzf1y82k6b18bqrf688vnjv0vkvw5a45srlb5r")))
1948 (synopsis "Piedmontese hyphenation patterns")
1949 (description "This package provides hyphenation patterns for Piedmontese
1950 in ASCII encoding. Compliant with 'Gramatica dla lengua piemonteisa' by
1952 (license license:lppl1.3+)))
1954 (define-public texlive-hyphen-polish
1956 (inherit (texlive-hyphen-package
1957 "texlive-hyphen-polish" "pl"
1958 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex")
1960 "0dzq8ca96q7m5bslh51x8d30pdb86glh2gn3mmvq5ip813ckwh3s")))
1961 (synopsis "Polish hyphenation patterns")
1962 (description "This package provides hyphenation patterns for Polish in QX
1963 and UTF-8 encodings.")
1964 ;; No differing license declared, so we choose the project license.
1965 (license license:lppl)))
1967 (define-public texlive-hyphen-portuguese
1969 (inherit (texlive-hyphen-package
1970 "texlive-hyphen-portuguese" "pt"
1971 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pt.tex")
1973 "1waxrmm33fd2qfc4kiaiblg8kwzasrvgq4j3l14z733d0hlg4rfz")))
1974 (synopsis "Portuguese hyphenation patterns")
1975 (description "This package provides hyphenation patterns for Portuguese in
1976 T1/EC and UTF-8 encodings.")
1977 (license license:bsd-3)))
1979 (define-public texlive-hyphen-romanian
1981 (inherit (texlive-hyphen-package
1982 "texlive-hyphen-romanian" "ro"
1983 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ro.tex")
1985 "12i1vryl51yhdpj163ahfyiy21rjmf4gkqgslpriirdjmyrwrs65")))
1986 (synopsis "Romanian hyphenation patterns")
1987 (description "This package provides hyphenation patterns for Romanian in
1988 T1/EC and UTF-8 encodings.")
1989 ;; No differing license declared, so we choose the project license.
1990 (license license:lppl)))
1992 (define-public texlive-hyphen-romansh
1994 (inherit (texlive-hyphen-package
1995 "texlive-hyphen-romansh" "rm"
1996 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex")
1998 "06wan8i4appc1zfvc0q4cgnfv1nj0qgk02w3sg56zc11hf8sywl9")))
1999 (synopsis "Romansh hyphenation patterns")
2000 (description "This package provides hyphenation patterns for Romansh in
2001 ASCII encodings. They are supposed to comply with the rules indicated by the
2002 Lia Rumantscha (Romansh language society).")
2003 (license license:lppl1.3+)))
2005 (define-public texlive-hyphen-russian
2007 (inherit (texlive-hyphen-package
2008 "texlive-hyphen-russian" "ru"
2009 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex")
2011 "09s4vq23x4vff08ykmf08dvcdradjzzwvyys8p2wk6jxaqp980s3")))
2012 (synopsis "Russian hyphenation patterns")
2013 (description "This package provides hyphenation patterns for Russian in
2014 T2A and UTF-8 encodings.")
2015 (license license:lppl1.2+)))
2017 (define-public texlive-hyphen-sanskrit
2019 (inherit (texlive-hyphen-package
2020 "texlive-hyphen-sanskrit" "sa"
2021 (list "/doc/generic/hyph-utf8/sa/hyphenmin.txt"
2022 "/tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex")
2024 "0grnn09l4i5yridx10yhm6dg9sbhgc2pmsp1p6hrcy7lzkqwdvs3")))
2025 (synopsis "Sanskrit hyphenation patterns")
2026 (description "This package provides hyphenation patterns for Sanskrit and
2027 Prakrit in longdesc transliteration, and in Devanagari, Bengali, Kannada,
2028 Malayalam longdesc and Telugu scripts for Unicode engines.")
2029 ;; "You may freely use, copy, modify and/or distribute this file."
2030 (license (license:non-copyleft
2031 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex"))))
2033 (define-public texlive-hyphen-serbian
2035 (inherit (texlive-hyphen-package
2036 "texlive-hyphen-serbian" '("sh-cyrl" "sh-latn" "sr-cyrl")
2037 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-cyrl.tex"
2038 "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-latn.tex"
2039 "/tex/generic/hyph-utf8/patterns/tex/hyph-sr-cyrl.tex")
2041 "0fhdfydyaspb8dwirlf24vn7y9dzwmhsld0mmw0fz1lmcfaj252n")))
2042 (synopsis "Serbian hyphenation patterns")
2043 (description "This package provides hyphenation patterns for Serbian in
2044 T1/EC, T2A and UTF-8 encodings.")
2045 ;; Any version of the GPL.
2046 (license license:gpl3+)))
2048 (define-public texlive-hyphen-slovak
2050 (inherit (texlive-hyphen-package
2051 "texlive-hyphen-slovak" "sk"
2052 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex")
2054 "1cgw6fmyci3za3vsa49b6m74wqv582w0rpca7s9xva3hqm1m5qdg")))
2055 (synopsis "Slovak hyphenation patterns")
2056 (description "This package provides hyphenation patterns for Slovak in
2057 T1/EC and UTF-8 encodings.")
2058 (license license:gpl2+)))
2060 (define-public texlive-hyphen-slovenian
2062 (inherit (texlive-hyphen-package
2063 "texlive-hyphen-slovenian" "sl"
2064 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sl.tex")
2066 "1ixf2pxir9xf1gggq9k28xxglsq9bwqlghd9cl4amk5vrn5bjbds")))
2067 (synopsis "Slovenian hyphenation patterns")
2068 (description "This package provides hyphenation patterns for Slovenian in
2069 T1/EC and UTF-8 encodings.")
2071 (license (list license:lppl1.0+ license:expat))))
2073 (define-public texlive-hyphen-spanish
2075 ;; The source files "eshyph-make.lua" and "eshyph.src" are provided to
2076 ;; generate obsolete hyphenation patterns, which aren't included in a
2077 ;; default TeX Live distribution, so we don't include them either.
2078 (inherit (texlive-hyphen-package
2079 "texlive-hyphen-spanish" "es"
2080 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-es.tex")
2082 "0jgs0zzyk2wwrjbx2hqdh5qggrnik9xmsxygbfhlb7gdrcrs0mbj")))
2083 (synopsis "Hyphenation patterns for Spanish")
2084 (description "The package provides hyphenation patterns for Spanish in
2085 T1/EC and UTF-8 encodings.")
2086 (license license:expat)))
2088 (define-public texlive-hyphen-swedish
2090 (inherit (texlive-hyphen-package
2091 "texlive-hyphen-swedish" "sv"
2092 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sv.tex")
2094 "12sf9f43zwyzb4cn57yry8r4zmwdc7cfdljn3qwxwrny4m3sw4w8")))
2095 (synopsis "Swedish hyphenation patterns")
2096 (description "This package provides hyphenation patterns for Swedish in
2097 T1/EC and UTF-8 encodings.")
2098 (license license:lppl1.2+)))
2100 (define-public texlive-hyphen-thai
2102 (inherit (texlive-hyphen-package
2103 "texlive-hyphen-thai" "th"
2104 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-th.tex")
2106 "15k1n4xdw8zzd5nrh76s53z4j95gxa4i2h1av5gx5vrjgblzzl97")))
2107 (synopsis "Thai hyphenation patterns")
2108 (description "This package provides hyphenation patterns for Thai in LTH
2109 and UTF-8 encodings.")
2110 (license license:lppl1.3+)))
2112 (define-public texlive-hyphen-turkish
2113 (let ((template (texlive-hyphen-package
2114 "texlive-hyphen-turkish" "tr"
2115 (list "/source/generic/hyph-utf8/languages/tr/generate_patterns_tr.rb")
2117 "0rvlhs2z2sn312lqsf44bzknid5dry7d2sl2q1whfvr0y4qj1g8f"))))
2121 (substitute-keyword-arguments (package-arguments template)
2123 `(modify-phases ,phases
2124 (add-before 'build 'build-patterns
2126 (let ((target (string-append (getcwd)
2127 "/tex/generic/hyph-utf8/patterns/tex")))
2129 (with-directory-excursion "source/generic/hyph-utf8/languages/tr/"
2130 (substitute* "generate_patterns_tr.rb"
2131 (("\\$file = File.new.*")
2132 (string-append "$file = File.new(\"" target
2133 "/hyph-tr.tex\",\"w\")\n")))
2134 (invoke "ruby" "generate_patterns_tr.rb"))
2136 (add-after 'install 'install-hyph-tr.tex
2137 (lambda* (#:key inputs outputs #:allow-other-keys)
2138 (let* ((out (assoc-ref outputs "out"))
2139 (target (string-append out "/share/texmf-dist/tex")))
2140 (copy-recursively "tex" target)
2142 (synopsis "Hyphenation patterns for Turkish")
2143 (description "The package provides hyphenation patterns for Turkish in
2144 T1/EC and UTF-8 encodings. The patterns for Turkish were first produced for
2145 the Ottoman Texts Project in 1987 and were suitable for both Modern Turkish
2146 and Ottoman Turkish in Latin script, however the required character set didn't
2147 fit into EC encoding, so support for Ottoman Turkish had to be dropped to keep
2148 compatibility with 8-bit engines.")
2149 (license license:lppl1.0+))))
2151 (define-public texlive-hyphen-turkmen
2152 (let ((template (texlive-hyphen-package
2153 "texlive-hyphen-turkmen" "tk"
2154 (list "/source/generic/hyph-utf8/languages/tk/generate_patterns_tk.rb")
2156 "1wlqx8wb0wsqhdv823brc3i8w1vf4m4bkb2vg917j5dq8p8p71aw"))))
2160 (substitute-keyword-arguments (package-arguments template)
2162 `(modify-phases ,phases
2163 (add-before 'build 'build-patterns
2165 (let ((target (string-append (getcwd)
2166 "/tex/generic/hyph-utf8/patterns/tex")))
2168 (with-directory-excursion "source/generic/hyph-utf8/languages/tk/"
2169 (substitute* "generate_patterns_tk.rb"
2170 (("\\$file = File.new.*")
2171 (string-append "$file = File.new(\"" target
2172 "/hyph-tr.tex\",\"w\")\n")))
2173 (invoke "ruby" "generate_patterns_tk.rb"))
2175 (add-after 'install 'install-hyph-tk.tex
2176 (lambda* (#:key inputs outputs #:allow-other-keys)
2177 (let* ((out (assoc-ref outputs "out"))
2178 (target (string-append out "/share/texmf-dist/tex")))
2179 (copy-recursively "tex" target)
2181 (synopsis "Hyphenation patterns for Turkmen")
2182 (description "The package provides hyphenation patterns for Turkmen in
2183 T1/EC and UTF-8 encodings.")
2184 (license license:public-domain))))
2186 (define-public texlive-hyphen-ukrainian
2188 (inherit (texlive-hyphen-package
2189 "texlive-hyphen-ukrainian" "uk"
2190 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-uk.tex")
2192 "17z0gmw5svsf5zlhjkckwk4y21g7prfwj473jlqnwcsr8a941gsf")))
2193 (synopsis "Ukrainian hyphenation patterns")
2194 (description "This package provides hyphenation patterns for Ukrainian in
2195 T2A and UTF-8 encodings.")
2196 ;; No version specified
2197 (license license:lppl)))
2199 (define-public texlive-hyphen-uppersorbian
2201 (inherit (texlive-hyphen-package
2202 "texlive-hyphen-uppersorbian" "hsb"
2203 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hsb.tex")
2205 "1q42s32cfbynlnzn9hpcldi77fszi5xkn1c85l8xqjmfydqbqdyi")))
2206 (synopsis "Upper Sorbian hyphenation patterns")
2207 (description "This package provides hyphenation patterns for Upper Sorbian
2208 in T1/EC and UTF-8 encodings.")
2209 (license license:lppl1.3a+)))
2211 (define-public texlive-hyphen-welsh
2213 (inherit (texlive-hyphen-package
2214 "texlive-hyphen-welsh" "cy"
2215 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cy.tex")
2217 "0h8yjj5zdg0hvpb2vx9gi376536nl59hp8w286z1a13diaayg1m2")))
2218 (synopsis "Welsh hyphenation patterns")
2219 (description "This package provides hyphenation patterns for Welsh in
2220 T1/EC and UTF-8 encodings.")
2222 (license (list license:lppl1.0+ license:expat))))
2224 (define-public texlive-hyph-utf8
2226 (inherit (simple-texlive-package
2228 (list "/source/generic/hyph-utf8/"
2229 "/source/luatex/hyph-utf8/"
2230 "/doc/luatex/hyph-utf8/"
2231 "/tex/luatex/hyph-utf8/etex.src"
2232 ;; Used to extract luatex-hyphen.lua
2233 "/tex/latex/base/docstrip.tex"
2235 ;; Documentation; we can't use the whole directory because
2236 ;; it includes files from other packages.
2237 "/doc/generic/hyph-utf8/CHANGES"
2238 "/doc/generic/hyph-utf8/HISTORY"
2239 "/doc/generic/hyph-utf8/hyph-utf8.pdf"
2240 "/doc/generic/hyph-utf8/hyph-utf8.tex"
2241 "/doc/generic/hyph-utf8/hyphenation-distribution.pdf"
2242 "/doc/generic/hyph-utf8/hyphenation-distribution.tex"
2243 "/doc/generic/hyph-utf8/img/miktex-languages.png"
2244 "/doc/generic/hyph-utf8/img/texlive-collection.png")
2246 "10y8svgk68sivmgzrv8gv137r7kv49cs256cq2wja9ms437pxvbj")))
2247 (outputs '("out" "doc"))
2248 (build-system gnu-build-system)
2250 `(#:tests? #f ; there are none
2251 #:modules ((guix build gnu-build-system)
2255 (list "-C" "source/luatex/hyph-utf8/"
2256 (string-append "DO_TEX = tex --interaction=nonstopmode '&tex' $<")
2257 (string-append "RUNDIR =" (assoc-ref %outputs "out") "/share/texmf-dist/tex/luatex/hyph-utf8/")
2258 (string-append "DOCDIR =" (assoc-ref %outputs "doc") "/share/texmf-dist/doc/luatex/hyph-utf8/")
2259 ;; hyphen.cfg is neither included nor generated, so let's only build the lua file.
2260 (string-append "UNPACKED = $(NAME).lua"))
2262 (modify-phases %standard-phases
2263 ;; TeX isn't usable at this point, so we first need to generate the
2266 (lambda* (#:key inputs outputs #:allow-other-keys)
2267 ;; Target directories must exist.
2268 (mkdir-p (string-append (assoc-ref %outputs "out")
2269 "/share/texmf-dist/tex/luatex/hyph-utf8/"))
2270 (mkdir-p (string-append (assoc-ref %outputs "doc")
2271 "/share/texmf-dist/doc/luatex/hyph-utf8/"))
2273 ;; We cannot build the documentation because that requires a
2274 ;; fully functional pdflatex, which depends on this package.
2275 (substitute* "source/luatex/hyph-utf8/Makefile"
2276 (("all: .*") "all: $(RUNFILES)\n"))
2278 ;; Find required fonts for building tex.fmt
2280 (string-append (assoc-ref inputs "texlive-cm")
2281 "/share/texmf-dist/fonts/tfm/public/cm:"
2282 (assoc-ref inputs "texlive-fonts-knuth-lib")
2283 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
2284 ;; ...and find all tex files in this environment.
2289 (map (match-lambda ((_ . dir) dir)) inputs)
2292 ;; Generate tex.fmt.
2293 (let ((where "source/luatex/hyph-utf8"))
2295 (with-directory-excursion where
2296 (invoke "tex" "-ini"
2297 (string-append (assoc-ref inputs "texlive-tex-plain")
2298 "/share/texmf-dist/tex/plain/config/tex.ini"))))))
2299 (add-before 'build 'build-loaders-and-converters
2300 (lambda* (#:key outputs #:allow-other-keys)
2301 (let* ((root (string-append (assoc-ref outputs "out")
2302 "/share/texmf-dist"))
2305 "/tex/generic/hyph-utf8/conversions")))
2309 (with-directory-excursion "source/generic/hyph-utf8"
2310 (substitute* "generate-converters.rb"
2311 (("\\$path_root=File.*")
2312 (string-append "$path_root=\"" root "\"\n"))
2313 ;; Avoid error with newer Ruby.
2314 (("#1\\{%") "#1{%%"))
2315 (invoke "ruby" "generate-converters.rb"))
2318 (lambda* (#:key source outputs #:allow-other-keys)
2319 (let ((doc (assoc-ref outputs "doc"))
2320 (out (assoc-ref outputs "out")))
2323 (string-append source "/doc")
2324 (string-append doc "/doc"))
2326 (string-append source "/tex/luatex/hyph-utf8/etex.src")
2327 (string-append out "/share/texmf-dist/tex/luatex/hyph-utf8/")))
2331 ("texlive-bin" ,texlive-bin)
2332 ;; The following packages are needed for build "tex.fmt", which we need
2333 ;; for a working "tex".
2334 ("texlive-tex-plain" ,texlive-tex-plain)
2335 ("texlive-cm" ,texlive-cm)
2336 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)
2337 ("texlive-hyphen-base" ,texlive-hyphen-base)))
2338 (home-page "https://ctan.org/pkg/hyph-utf8")
2339 (synopsis "Hyphenation patterns expressed in UTF-8")
2340 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
2341 hyphenation patterns in UTF-8 format, whereas older systems require
2342 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
2343 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
2344 etc). The present package offers a collection of conversions of existing
2345 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
2346 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
2347 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
2348 converters, will completely supplant the older patterns.")
2349 ;; Individual files each have their own license. Most of these files are
2350 ;; independent hyphenation patterns.
2351 (license (list license:lppl1.0+
2366 license:public-domain
2369 (define-public texlive-generic-hyph-utf8
2370 (deprecated-package "texlive-generic-hyph-utf8" texlive-hyph-utf8))
2372 (define-public texlive-dehyph-exptl
2374 (inherit (simple-texlive-package
2375 "texlive-dehyph-exptl"
2376 (list "/tex/generic/dehyph-exptl/"
2377 "/doc/generic/dehyph-exptl/")
2379 "1w2danvvy2f52hcb4acvjks53kcanwxr9s990fap6mj279hpgmh2")
2382 `(("texlive-hyphen-base" ,texlive-hyphen-base)
2383 ("texlive-hyph-utf8" ,texlive-hyph-utf8)))
2384 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
2385 (synopsis "Hyphenation patterns for German")
2386 (description "The package provides experimental hyphenation patterns for
2387 the German language, covering both traditional and reformed orthography. The
2388 patterns can be used with packages Babel and hyphsubst from the Oberdiek
2390 ;; Hyphenation patterns are under the Expat license; documentation is
2392 (license (list license:expat license:lppl))))
2394 (define-public texlive-generic-dehyph-exptl
2395 (deprecated-package "texlive-generic-dehyph-exptl" texlive-dehyph-exptl))
2397 (define-public texlive-ukrhyph
2399 (inherit (simple-texlive-package
2401 (list "/doc/generic/ukrhyph/"
2402 "/tex/generic/ukrhyph/")
2404 "01ma274sixcrbpb7fpqkxwfvrnzfj2srv9b4a42rfnph1pdql74z")
2406 (home-page "https://www.ctan.org/pkg/ukrhyph")
2407 (synopsis "Hyphenation patterns for Ukrainian")
2408 (description "The package provides a range of hyphenation patterns for
2409 Ukrainian, depending on the encoding of the output font including the standard
2411 (license license:lppl)))
2413 (define-public texlive-ruhyphen
2414 (let ((template (simple-texlive-package
2416 (list "/source/generic/ruhyphen/"
2417 "/tex/generic/ruhyphen/")
2419 "18n1bqhh8jv765vz3a3fjwffy7m71vhwx9yq8zl0p5j7p72q9qcn")
2424 (substitute-keyword-arguments (package-arguments template)
2426 `(modify-phases ,phases
2429 (let ((cwd (getcwd)))
2430 ;; Remove generated files.
2431 (for-each delete-file
2432 (find-files "tex/generic/ruhyphen/"
2434 (substitute* "source/generic/ruhyphen/Makefile"
2435 (("./mkcyryo") (string-append cwd "/source/generic/ruhyphen/mkcyryo")))
2436 (with-directory-excursion "tex/generic/ruhyphen"
2438 (string-append cwd "/source/generic/ruhyphen/Makefile"))))))))))
2440 `(("coreutils" ,coreutils)
2445 (home-page "https://www.ctan.org/pkg/ruhyphen")
2446 (synopsis "Hyphenation patterns for Russian")
2447 (description "The package provides a collection of Russian hyphenation
2448 patterns supporting a number of Cyrillic font encodings, including T2,
2449 UCY (Omega Unicode Cyrillic), LCY, LWN (OT2), and koi8-r.")
2450 (license license:lppl))))
2452 (define-public texlive-kpathsea
2454 (inherit (simple-texlive-package
2456 (list "/web2c/amiga-pl.tcx"
2457 "/web2c/cp1250cs.tcx"
2458 "/web2c/cp1250pl.tcx"
2459 "/web2c/cp1250t1.tcx"
2461 "/web2c/cp852-cs.tcx"
2462 "/web2c/cp852-pl.tcx"
2465 "/web2c/fmtutil.cnf"
2472 "/web2c/macce-pl.tcx"
2473 "/web2c/macce-t1.tcx"
2478 "/web2c/mktexdir.opt"
2480 "/web2c/mktexnam.opt"
2482 "/web2c/natural.tcx"
2483 "/web2c/tcvn-t5.tcx"
2484 "/web2c/viscii-t5.tcx")
2486 "0ajfp9kr330lcm2ymr3kl9zn6y2xjkrzpa0c0azc4qdm5jllawb9")
2488 (home-page "https://www.tug.org/texlive/")
2489 (synopsis "Files related to the path searching library for TeX")
2490 (description "Kpathsea is a library and utility programs which provide
2491 path searching facilities for TeX file types, including the self-locating
2492 feature required for movable installations, layered on top of a general search
2493 mechanism. This package provides supporting files.")
2494 (license license:lgpl3+)))
2496 (define-public texlive-latexconfig
2498 (inherit (simple-texlive-package
2499 "texlive-latexconfig"
2500 (list "/tex/latex/latexconfig/")
2502 "1wa7yhdpnz1nyidwgli68fyr33jn951bnniqrih5lj98k09rqc3h")
2504 (home-page "https://www.tug.org/")
2505 (synopsis "Configuration files for LaTeX-related formats")
2506 (description "The package provides configuration files for LaTeX-related
2508 (license license:lppl)))
2510 (define-public texlive-latex-base
2512 (name "texlive-latex-base")
2513 (version (number->string %texlive-revision))
2514 (source (texlive-origin
2516 (list "/doc/latex/base/"
2517 "/source/latex/base/"
2518 ;; Almost all files in /tex/latex/base are generated, but
2520 "/tex/latex/base/idx.tex"
2521 "/tex/latex/base/lablst.tex"
2522 "/tex/latex/base/lppl.tex"
2523 "/tex/latex/base/ltnews.cls"
2524 "/tex/latex/base/ltxcheck.tex"
2525 "/tex/latex/base/ltxguide.cls"
2526 "/tex/latex/base/minimal.cls"
2527 "/tex/latex/base/sample2e.tex"
2528 "/tex/latex/base/small2e.tex"
2529 "/tex/latex/base/source2e.tex"
2530 "/tex/latex/base/testpage.tex"
2531 "/tex/latex/base/texsys.cfg")
2533 "0f8d41wk1gb7i6xq1a10drwhhayc50pg9nwzjkrqnxrv0pcc08w5")))
2534 (build-system gnu-build-system)
2536 `(#:modules ((guix build gnu-build-system)
2540 #:tests? #f ; no tests
2542 (modify-phases %standard-phases
2545 (lambda* (#:key inputs #:allow-other-keys)
2546 ;; Find required fonts
2552 (assoc-ref inputs pkg-name)
2553 "/share/texmf-dist/fonts/tfm/public"
2555 '(("texlive-etex" . "/etex")
2556 ("texlive-cm" . "/cm")
2557 ("texlive-fonts-latex" . "/latex-fonts")
2558 ("texlive-fonts-knuth-lib" . "/knuth-lib")))
2560 (let ((cwd (getcwd)))
2564 cwd "/source/latex/base//:"
2567 (map (match-lambda ((_ . dir) dir)) inputs)
2570 ;; This is the actual build step.
2572 (invoke "tex" "-ini" "-interaction=scrollmode"
2573 "-output-directory=build" "unpack.ins")
2575 ;; XXX: We can't build all formats at this point, nor are they
2576 ;; part of the LaTeX base, so we disable them. Actually, we
2577 ;; should be running this all in a profile hook, so that only
2578 ;; selected formats and hyphenation patterns are included, but it
2579 ;; takes long and TeX Live isn't designed to be modular like
2580 ;; that. Everything operates on a shared directory, which we
2581 ;; would only have at profile generation time.
2582 (let ((disabled-formats
2583 '("aleph aleph" "lamed aleph" "uptex uptex" "euptex euptex"
2584 "eptex eptex" "ptex ptex" "pdfxmltex pdftex" "platex eptex"
2585 "csplain pdftex" "mf mf-nowin" "mex pdftex" "pdfmex pdftex"
2586 "cont-en xetex" "cont-en pdftex" "pdfcsplain xetex"
2587 "pdfcsplain pdftex" "pdfcsplain luatex" "cslatex pdftex"
2588 "mptopdf pdftex" "uplatex euptex" "jadetex pdftex"
2589 "amstex pdftex" "pdfcslatex pdftex" "lollipop tex"
2590 "xmltex pdftex" "pdfjadetex pdftex" "eplain pdftex"
2591 "texsis pdftex" "mltex pdftex" "utf8mex pdftex")))
2593 (install-file (string-append
2594 (assoc-ref inputs "texlive-kpathsea")
2595 "/share/texmf-dist/web2c/fmtutil.cnf")
2597 (make-file-writable "web2c/fmtutil.cnf")
2598 (substitute* "web2c/fmtutil.cnf"
2599 (((string-append "^(" (string-join disabled-formats "|") ")") m)
2600 (string-append "#! " m))))
2601 (invoke "fmtutil-sys" "--all"
2603 (string-append "--cnffile=web2c/fmtutil.cnf"))
2604 ;; We don't actually want to install it.
2605 (delete-file "web2c/fmtutil.cnf")
2608 (lambda* (#:key inputs outputs #:allow-other-keys)
2609 (let* ((out (assoc-ref outputs "out"))
2610 (root (string-append out "/share/texmf-dist"))
2611 (target (string-append root "/tex/latex/base"))
2612 (web2c (string-append root "/web2c"))
2613 (makeindex (string-append root "/makeindex/latex")))
2614 (for-each delete-file (find-files "." "\\.(log|aux)$"))
2616 ;; The usedir directive in docstrip.ins is ignored, so these
2617 ;; two files end up in the wrong place. Move them.
2619 (for-each (lambda (file)
2620 (install-file file makeindex)
2624 (for-each (cut install-file <> target)
2625 (find-files "build" ".*"))
2626 (for-each (cut install-file <> web2c)
2627 (find-files "web2c" ".*"))
2630 `(("texlive-bin" ,texlive-bin)
2631 ("texlive-tex-ini-files" ,texlive-tex-ini-files)
2632 ("texlive-tex-plain" ,texlive-tex-plain)
2633 ("texlive-kpathsea" ,texlive-kpathsea)
2634 ("texlive-cm" ,texlive-cm)
2635 ("texlive-fonts-latex" ,texlive-fonts-latex)
2636 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)
2637 ("texlive-luatexconfig"
2639 "texlive-luatexconfig" (number->string %texlive-revision)
2640 (list "/tex/generic/config/luatex-unicode-letters.tex"
2641 "/tex/generic/config/luatexiniconfig.tex"
2642 "/web2c/texmfcnf.lua")
2644 "0cs67a8wwh4s5p5gn8l49jyccgy7glw8mfq5klgn3dfsl2fdlhk7")))))
2646 `(("texlive-dehyph-exptl" ,texlive-dehyph-exptl)
2647 ("texlive-etex" ,texlive-etex)
2648 ("texlive-hyph-utf8" ,texlive-hyph-utf8)
2649 ("texlive-hyphen-base" ,texlive-hyphen-base)
2650 ("texlive-hyphen-afrikaans" ,texlive-hyphen-afrikaans)
2651 ("texlive-hyphen-ancientgreek" ,texlive-hyphen-ancientgreek)
2652 ("texlive-hyphen-armenian" ,texlive-hyphen-armenian)
2653 ("texlive-hyphen-basque" ,texlive-hyphen-basque)
2654 ("texlive-hyphen-belarusian" ,texlive-hyphen-belarusian)
2655 ("texlive-hyphen-bulgarian" ,texlive-hyphen-bulgarian)
2656 ("texlive-hyphen-catalan" ,texlive-hyphen-catalan)
2657 ("texlive-hyphen-chinese" ,texlive-hyphen-chinese)
2658 ("texlive-hyphen-churchslavonic" ,texlive-hyphen-churchslavonic)
2659 ("texlive-hyphen-coptic" ,texlive-hyphen-coptic)
2660 ("texlive-hyphen-croatian" ,texlive-hyphen-croatian)
2661 ("texlive-hyphen-czech" ,texlive-hyphen-czech)
2662 ("texlive-hyphen-danish" ,texlive-hyphen-danish)
2663 ("texlive-hyphen-dutch" ,texlive-hyphen-dutch)
2664 ("texlive-hyphen-english" ,texlive-hyphen-english)
2665 ("texlive-hyphen-esperanto" ,texlive-hyphen-esperanto)
2666 ("texlive-hyphen-estonian" ,texlive-hyphen-estonian)
2667 ("texlive-hyphen-ethiopic" ,texlive-hyphen-ethiopic)
2668 ("texlive-hyphen-finnish" ,texlive-hyphen-finnish)
2669 ("texlive-hyphen-french" ,texlive-hyphen-french)
2670 ("texlive-hyphen-friulan" ,texlive-hyphen-friulan)
2671 ("texlive-hyphen-galician" ,texlive-hyphen-galician)
2672 ("texlive-hyphen-georgian" ,texlive-hyphen-georgian)
2673 ("texlive-hyphen-german" ,texlive-hyphen-german)
2674 ("texlive-hyphen-greek" ,texlive-hyphen-greek)
2675 ("texlive-hyphen-hungarian" ,texlive-hyphen-hungarian)
2676 ("texlive-hyphen-icelandic" ,texlive-hyphen-icelandic)
2677 ("texlive-hyphen-indic" ,texlive-hyphen-indic)
2678 ("texlive-hyphen-indonesian" ,texlive-hyphen-indonesian)
2679 ("texlive-hyphen-interlingua" ,texlive-hyphen-interlingua)
2680 ("texlive-hyphen-irish" ,texlive-hyphen-irish)
2681 ("texlive-hyphen-italian" ,texlive-hyphen-italian)
2682 ("texlive-hyphen-kurmanji" ,texlive-hyphen-kurmanji)
2683 ("texlive-hyphen-latin" ,texlive-hyphen-latin)
2684 ("texlive-hyphen-latvian" ,texlive-hyphen-latvian)
2685 ("texlive-hyphen-lithuanian" ,texlive-hyphen-lithuanian)
2686 ("texlive-hyphen-mongolian" ,texlive-hyphen-mongolian)
2687 ("texlive-hyphen-norwegian" ,texlive-hyphen-norwegian)
2688 ("texlive-hyphen-occitan" ,texlive-hyphen-occitan)
2689 ("texlive-hyphen-piedmontese" ,texlive-hyphen-piedmontese)
2690 ("texlive-hyphen-polish" ,texlive-hyphen-polish)
2691 ("texlive-hyphen-portuguese" ,texlive-hyphen-portuguese)
2692 ("texlive-hyphen-romanian" ,texlive-hyphen-romanian)
2693 ("texlive-hyphen-romansh" ,texlive-hyphen-romansh)
2694 ("texlive-hyphen-russian" ,texlive-hyphen-russian)
2695 ("texlive-hyphen-sanskrit" ,texlive-hyphen-sanskrit)
2696 ("texlive-hyphen-serbian" ,texlive-hyphen-serbian)
2697 ("texlive-hyphen-slovak" ,texlive-hyphen-slovak)
2698 ("texlive-hyphen-slovenian" ,texlive-hyphen-slovenian)
2699 ("texlive-hyphen-spanish" ,texlive-hyphen-spanish)
2700 ("texlive-hyphen-swedish" ,texlive-hyphen-swedish)
2701 ("texlive-hyphen-thai" ,texlive-hyphen-thai)
2702 ("texlive-hyphen-turkish" ,texlive-hyphen-turkish)
2703 ("texlive-hyphen-turkmen" ,texlive-hyphen-turkmen)
2704 ("texlive-hyphen-ukrainian" ,texlive-hyphen-ukrainian)
2705 ("texlive-hyphen-uppersorbian" ,texlive-hyphen-uppersorbian)
2706 ("texlive-hyphen-welsh" ,texlive-hyphen-welsh)
2707 ("texlive-unicode-data" ,texlive-unicode-data)
2708 ("texlive-ukrhyph" ,texlive-ukrhyph)
2709 ("texlive-ruhyphen" ,texlive-ruhyphen)
2710 ("texlive-latexconfig" ,texlive-latexconfig)))
2711 (home-page "https://www.ctan.org/pkg/latex-base")
2712 (synopsis "Base sources of LaTeX")
2714 "This bundle comprises the source of LaTeX itself, together with several
2715 packages which are considered \"part of the kernel\". This bundle, together
2716 with the required packages, constitutes what every LaTeX distribution should
2718 (license license:lppl1.3c+)))
2720 (define-public texlive-latex-filecontents
2722 (name "texlive-latex-filecontents")
2723 (version (number->string %texlive-revision))
2726 (uri (texlive-ref "latex" "filecontents"))
2727 (file-name (string-append name "-" version "-checkout"))
2730 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
2731 (build-system texlive-build-system)
2732 (arguments '(#:tex-directory "latex/filecontents"))
2733 (home-page "https://www.ctan.org/pkg/filecontents")
2734 (synopsis "Extended filecontents and filecontents* environments")
2736 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
2737 enable a LaTeX source file to generate external files as it runs through
2738 LaTeX. However, there are two limitations of these environments: they refuse
2739 to overwrite existing files, and they can only be used in the preamble of a
2740 document. The filecontents package removes these limitations, letting you
2741 overwrite existing files and letting you use @code{filecontents} /
2742 @code{filecontents*} anywhere.")
2743 (license license:lppl1.3c+)))
2745 (define-public texlive-generic-ifxetex
2747 (name "texlive-generic-ifxetex")
2748 (version (number->string %texlive-revision))
2751 (uri (texlive-ref "generic" "ifxetex"))
2752 (file-name (string-append name "-" version "-checkout"))
2755 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
2756 (build-system texlive-build-system)
2758 '(#:tex-directory "generic/ifxetex"
2759 #:tex-format "xelatex"))
2761 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2762 (home-page "https://www.ctan.org/pkg/ifxetex")
2763 (synopsis "Am I running under XeTeX?")
2765 "This is a simple package which provides an @code{\\ifxetex} conditional,
2766 so that other code can determine that it is running under XeTeX. The package
2767 requires the e-TeX extensions to the TeX primitive set.")
2768 (license license:lppl1.3c+)))
2770 (define-public texlive-epsf
2772 (inherit (simple-texlive-package
2774 (list "/doc/generic/epsf/"
2775 "/tex/generic/epsf/")
2777 "03jcf0kqh47is965d2590miwj7d5kif3c4mgsnvkyl664jzjkh92")
2779 (home-page "https://www.ctan.org/pkg/epsf")
2780 (synopsis "Simple macros for EPS inclusion")
2782 "This package provides the original (and now obsolescent) graphics
2783 inclusion macros for use with dvips, still widely used by Plain TeX users (in
2784 particular). For LaTeX users, the package is nowadays (rather strongly)
2785 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
2786 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
2787 users, via its Plain TeX version.)")
2788 (license license:public-domain)))
2790 (define-public texlive-generic-epsf
2791 (deprecated-package "texlive-generic-epsf" texlive-epsf))
2793 (define-public texlive-latex-fancyvrb
2795 (name "texlive-latex-fancyvrb")
2796 (version (number->string %texlive-revision))
2799 (uri (texlive-ref "latex" "fancyvrb"))
2800 (file-name (string-append name "-" version "-checkout"))
2803 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
2804 (build-system texlive-build-system)
2806 '(#:tex-directory "latex/fancyvrb"
2807 #:tex-format "latex"))
2808 (home-page "https://www.ctan.org/pkg/fancyvrb")
2809 (synopsis "Sophisticated verbatim text")
2811 "This package provides tools for the flexible handling of verbatim text
2812 including: verbatim commands in footnotes; a variety of verbatim environments
2813 with many parameters; ability to define new customized verbatim environments;
2814 save and restore verbatim text and environments; write and read files in
2815 verbatim mode; build \"example\" environments (showing both result and
2817 (license license:lppl1.0+)))
2819 (define-public texlive-graphics-def
2821 (inherit (simple-texlive-package
2822 "texlive-graphics-def"
2823 (list "/doc/latex/graphics-def/README.md"
2824 "/tex/latex/graphics-def/")
2826 "0zrbn9cwfnnrrl3b2zsd74ldksp9jwpvjh7z93ild1m75crpb39a")
2828 (home-page "https://www.ctan.org/pkg/latex-graphics")
2829 (synopsis "Color and graphics option files")
2831 "This bundle is a combined distribution consisting of @file{dvips.def},
2832 @file{pdftex.def}, @file{luatex.def}, @file{xetex.def}, @file{dvipdfmx.def},
2833 and @file{dvisvgm.def} driver option files for the LaTeX graphics and color
2835 (license license:lppl1.3c+)))
2837 (define-public texlive-graphics-cfg
2839 (inherit (simple-texlive-package
2840 "texlive-graphics-cfg"
2841 (list "/doc/latex/graphics-cfg/README.md"
2842 "/tex/latex/graphics-cfg/")
2844 "00n63adb2laf43lzix39xl68aq0k5k80mmrw602w99w5n7f96gsf")
2846 (home-page "https://www.ctan.org/pkg/latex-graphics")
2847 (synopsis "Sample configuration files for LaTeX color and graphics")
2849 "This bundle includes @file{color.cfg} and @file{graphics.cfg} files that
2850 set default \"driver\" options for the color and graphics packages.")
2851 (license license:public-domain)))
2853 (define-public texlive-latex-graphics
2855 (name "texlive-latex-graphics")
2856 (version (number->string %texlive-revision))
2859 (uri (texlive-ref "latex" "graphics"))
2860 (file-name (string-append name "-" version "-checkout"))
2863 "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz"))))
2864 (build-system texlive-build-system)
2865 (arguments '(#:tex-directory "latex/graphics"))
2867 `(("texlive-graphics-cfg" ,texlive-graphics-cfg)
2868 ("texlive-graphics-def" ,texlive-graphics-def)))
2869 (home-page "https://www.ctan.org/pkg/latex-graphics")
2870 (synopsis "LaTeX standard graphics bundle")
2872 "This is a collection of LaTeX packages for producing color, including
2873 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
2874 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
2875 keyval, and lscape.")
2876 (license license:lppl1.3c+)))
2878 (define-public texlive-latex-xcolor
2880 (name "texlive-latex-xcolor")
2881 (version (number->string %texlive-revision))
2884 (uri (texlive-ref "latex" "xcolor"))
2885 (file-name (string-append name "-" version "-checkout"))
2888 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
2889 (build-system texlive-build-system)
2890 (arguments '(#:tex-directory "latex/xcolor"))
2891 (home-page "https://www.ctan.org/pkg/xcolor")
2892 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
2894 "The package starts from the basic facilities of the colorcolor package,
2895 and provides easy driver-independent access to several kinds of color tints,
2896 shades, tones, and mixes of arbitrary colors. It allows a user to select a
2897 document-wide target color model and offers complete tools for conversion
2898 between eight color models. Additionally, there is a command for alternating
2899 row colors plus repeated non-aligned material (like horizontal lines) in
2901 (license license:lppl1.2+)))
2903 (define-public texlive-latex-hyperref
2905 (name "texlive-latex-hyperref")
2907 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
2908 ;; so we fetch the release from GitHub.
2911 (uri (string-append "https://github.com/ho-tex/hyperref/"
2912 "archive/release-" version ".tar.gz"))
2913 (file-name (string-append name "-" version ".tar.gz"))
2916 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
2917 (build-system texlive-build-system)
2918 (arguments '(#:tex-directory "latex/hyperref"))
2920 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek) ; for ltxcmds.sty
2921 ("texlive-latex-url" ,texlive-latex-url)))
2922 (home-page "https://www.ctan.org/pkg/hyperref")
2923 (synopsis "Extensive support for hypertext in LaTeX")
2925 "The @code{hyperref} package is used to handle cross-referencing commands
2926 in LaTeX to produce hypertext links in the document. The package provides
2927 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
2928 embedded @code{pdfmark} commands for processing by Acrobat
2929 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
2930 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
2931 pdf and HTML backends. The package is distributed with the @code{backref} and
2932 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
2933 (license license:lppl1.3+)))
2935 (define-public texlive-latex-oberdiek
2937 (name "texlive-latex-oberdiek")
2938 (version (number->string %texlive-revision))
2941 (uri (texlive-ref "latex" "oberdiek"))
2942 (file-name (string-append name "-" version "-checkout"))
2945 "1m9fg8ddhpsl1212igr9a9fmj012lv780aghjn6fpidg2wqrffmn"))))
2946 (build-system texlive-build-system)
2948 '(#:tex-directory "latex/oberdiek"
2949 #:build-targets '("oberdiek.ins")
2951 (modify-phases %standard-phases
2952 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
2953 (add-after 'unpack 'do-not-process-ifpdf.ins
2955 (substitute* "oberdiek.ins"
2956 (("ifpdf.ins") "ifpdf.dtx"))
2959 `(("texlive-generic-ifxetex" ,texlive-generic-ifxetex)))
2960 (home-page "https://www.ctan.org/pkg/oberdiek")
2961 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
2963 "The bundle comprises various LaTeX packages, providing among others:
2964 better accessibility support for PDF files; extensible chemists reaction
2965 arrows; record information about document class(es) used; and many more.")
2966 (license license:lppl1.3+)))
2968 (define-public texlive-latex-tools
2970 (name "texlive-latex-tools")
2971 (version (number->string %texlive-revision))
2974 (uri (texlive-ref "latex" "tools"))
2975 (file-name (string-append name "-" version "-checkout"))
2978 "0vj7h1fgf1396h4qjdc2m07y08i54gbbfrxl8y327cn3r1n093s6"))))
2979 (build-system texlive-build-system)
2981 '(#:tex-directory "latex/tools"
2982 #:build-targets '("tools.ins")))
2983 (home-page "https://www.ctan.org/pkg/latex-tools")
2984 (synopsis "LaTeX standard tools bundle")
2986 "This package is a collection of (variously) simple tools provided as
2987 part of the LaTeX required tools distribution, comprising the following
2988 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
2989 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
2990 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
2992 (license license:lppl1.3+)))
2994 (define-public texlive-url
2996 (inherit (simple-texlive-package
2998 (list "/doc/latex/url/"
3001 "184m40wgnx939ky2hbxnj0v9aak023ldrhgffp0lgyk9wdqpxlqg")
3003 (home-page "https://www.ctan.org/pkg/url")
3004 (synopsis "Verbatim with URL-sensitive line breaks")
3005 (description "The command @code{\\url} is a form of verbatim command that
3006 allows linebreaks at certain characters or combinations of characters, accepts
3007 reconfiguration, and can usually be used in the argument to another command.
3008 The command is intended for email addresses, hypertext links,
3009 directories/paths, etc., which normally have no spaces, so by default the
3010 package ignores spaces in its argument. However, a package option allows
3011 spaces, which is useful for operating systems where spaces are a common part
3013 ;; The license header states that it is under LPPL version 2 or later, but
3014 ;; the latest version is 1.3c.
3015 (license license:lppl1.3c+)))
3017 (define-public texlive-latex-url
3018 (deprecated-package "texlive-latex-url" texlive-url))
3020 (define-public texlive-tetex
3022 (inherit (simple-texlive-package
3024 (list "/dvips/tetex/"
3025 "/fonts/enc/dvips/tetex/"
3026 "/fonts/map/dvips/tetex/")
3028 "1si3as8mwi8837965djlw6jhwwzsp3r1hkflvdxv2avx9vb45hjb")
3030 (home-page "https://www.ctan.org/pkg/tetex")
3031 (synopsis "Font maps originally from teTeX")
3032 (description "This package provides font maps that were originally part of
3033 the now obsolete teTeX distributions but are still used at the core of the TeX
3034 Live distribution.")
3035 (license license:public-domain)))
3037 (define-public texlive-latex-l3kernel
3039 (name "texlive-latex-l3kernel")
3040 (version (number->string %texlive-revision))
3043 (uri (texlive-ref "latex" "l3kernel"))
3044 (file-name (string-append name "-" version "-checkout"))
3047 "0p3fsxap1ilwjz356aq4s5ygwvdscis8bh93g8klf8mhrd8cr2jy"))))
3048 (build-system texlive-build-system)
3050 '(#:tex-directory "latex/l3kernel"))
3051 (home-page "https://www.ctan.org/pkg/l3kernel")
3052 (synopsis "LaTeX3 programmers’ interface")
3054 "The l3kernel bundle provides an implementation of the LaTeX3
3055 programmers’ interface, as a set of packages that run under LaTeX 2e. The
3056 interface provides the foundation on which the LaTeX3 kernel and other future
3057 code are built: it is an API for TeX programmers. The packages are set up so
3058 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
3059 (license license:lppl1.3c+)))
3061 (define-public texlive-latex-l3packages
3063 (name "texlive-latex-l3packages")
3064 (version (number->string %texlive-revision))
3067 (uri (texlive-ref "latex" "l3packages"))
3068 (file-name (string-append name "-" version "-checkout"))
3071 "0pyx0hffiyss363vv7fkrcdiaf7p099xnq0mngzqc7v8v9q849hs"))))
3072 (build-system texlive-build-system)
3074 '(#:tex-directory "latex/l3packages"
3075 ;; build-targets must be specified manually since they are in
3077 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
3079 (modify-phases %standard-phases
3080 ;; All package sources are in sub-directories, so we need to add them
3082 (add-after 'unpack 'set-TEXINPUTS
3084 (let ((cwd (getcwd)))
3086 (string-append cwd "/l3keys2e:"
3091 ;; The terminating ":" is required to include the
3092 ;; l3kernel input as well.
3097 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
3098 (home-page "https://www.ctan.org/pkg/l3packages")
3099 (synopsis "High-level LaTeX3 concepts")
3101 "This bundle holds prototype implementations of concepts for a LaTeX
3102 designer interface, to be used with the experimental LaTeX kernel as
3103 programming tools and kernel support. Packages provided in this release are:
3106 @item l3keys2e, which makes the facilities of the kernel module l3keys
3107 available for use by LaTeX 2e packages;
3108 @item xfrac, which provides flexible splitlevel fractions;
3109 @item xparse, which provides a high-level interface for declaring document
3111 @item xtemplate, which provides a means of defining generic functions using a
3114 (license license:lppl1.3c+)))
3116 (define-public texlive-latex-fontspec
3118 (name "texlive-latex-fontspec")
3119 (version (number->string %texlive-revision))
3122 (uri (texlive-ref "latex" "fontspec"))
3123 (file-name (string-append name "-" version "-checkout"))
3126 "1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq"))))
3127 (build-system texlive-build-system)
3129 '(#:tex-directory "latex/fontspec"
3131 (modify-phases %standard-phases
3132 (add-after 'install 'install-default-fontspec.cfg
3133 (lambda* (#:key outputs #:allow-other-keys)
3134 (with-output-to-file
3135 (string-append (assoc-ref outputs "out")
3136 "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg")
3139 %%% FONTSPEC.CFG %%%
3141 % This configuration file sets up TeX Ligatures by default for all fonts loaded
3142 % with `\\setmainfont` and `\\setsansfont`.
3144 % In addition, `\\setmonofont` has default features to enforce \"monospace\"
3145 % settings with regard to space stretchability and shrinkability.
3147 \\defaultfontfeatures
3148 [\\rmfamily,\\sffamily]
3151 \\defaultfontfeatures
3155 PunctuationSpace=WordSpace}
3159 `(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
3160 (home-page "https://www.ctan.org/pkg/fontspec")
3161 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
3163 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
3164 automatic and unified interface to feature-rich AAT and OpenType fonts through
3165 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
3166 the l3kernel and xparse bundles from the LaTeX 3 development team.")
3167 (license license:lppl1.3+)))
3169 ;; The SVN directory contains little more than a dtx file that generates three
3170 ;; of the many lua files that should be installed as part of this package.
3171 ;; This is why we take the release from GitHub instead.
3172 (define-public texlive-luatex-lualibs
3174 (name "texlive-luatex-lualibs")
3178 (uri (string-append "https://github.com/lualatex/lualibs/"
3179 "releases/download/v"
3180 version "/lualibs.zip"))
3181 (file-name (string-append name "-" version ".zip"))
3184 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
3185 (build-system gnu-build-system)
3188 (list (string-append "DESTDIR="
3189 (assoc-ref %outputs "out")
3190 "/share/texmf-dist"))
3192 (modify-phases %standard-phases
3193 (delete 'configure))))
3195 `(("texlive-bin" ,texlive-bin)
3198 (home-page "https://github.com/lualatex/lualibs")
3199 (synopsis "Lua modules for general programming (in the (La)TeX world)")
3201 "Lualibs is a collection of Lua modules useful for general programming.
3202 The bundle is based on Lua modules shipped with ConTeXt, and made available in
3203 this bundle for use independent of ConTeXt.")
3204 ;; GPL version 2 only
3205 (license license:gpl2)))
3207 (define-public texlive-luatex-luaotfload
3209 (name "texlive-luatex-luaotfload")
3210 (version "2.8-fix-2")
3211 ;; The release tarball does not contain all source files.
3215 (url "https://github.com/lualatex/luaotfload.git")
3216 (commit (string-append "v" version))))
3217 (file-name (git-file-name name version))
3220 "0l5l7iq3dxcxl65qaghcpjg27yd9iw1sxa8pnd7xlvlm09dhfdnf"))))
3221 (build-system gnu-build-system)
3224 (list (string-append "DESTDIR="
3225 (assoc-ref %outputs "out")
3226 "/share/texmf-dist")
3228 #:parallel-build? #f ; not supported
3230 (modify-phases %standard-phases
3232 (lambda* (#:key inputs #:allow-other-keys)
3233 (substitute* "doc/Makefile"
3234 (("rst2man") "rst2man.py")
3235 ;; Don't build the PDF. This requires more of LaTeX.
3236 (("\\$\\(DOCPDF\\)") ""))
3238 (substitute* "Makefile"
3239 ;; We don't build the PDF, so don't attempt to install it.
3240 (("cp \\$\\(RESOURCES\\) \\$\\(DOCPDF\\)")
3242 (("= \\$\\(DOCPDF\\)") "= ")
3243 ;; Fix name of fontloader file
3244 (("^LOADER.*= \\$\\(BUILDDIR\\)/fontloader-\\$\\(shell date \\+%F\\).lua")
3245 "LOADER = $(BUILDDIR)/fontloader.lua"))
3249 ;; Don't download this file.
3250 (copy-file (assoc-ref inputs "glyphlist")
3251 "build/glyphlist.txt")
3255 `((committer . "Philipp Gesang <phg@phi-gamma.net>")
3256 (description . ,version)
3257 (loader . "fontloader.lua")
3258 (revision . "ad480924393fffa2896156e1a32c22f5c61120dd")
3259 (timestamp . "2019-01-01 00:00:00 +0000"))))
3260 (substitute* "scripts/mkstatus"
3261 (("local notes.*=.*")
3262 (string-append "local notes = {"
3264 (map (lambda (entry)
3265 (format "[\"~a\"]=\"~a\","
3266 (symbol->string (car entry))
3274 ("graphviz" ,graphviz)
3275 ("lualatex" ,(texlive-union (list texlive-luatex-lualibs
3276 texlive-context-base)))
3277 ("python-docutils" ,python-docutils)
3281 (uri (string-append "https://raw.githubusercontent.com/adobe-type-tools/"
3282 "agl-aglfn/b2a04cb906f9257cc06a2fe0ad4b3d663bc02136/"
3285 (base32 "1s6svfw23rqzdvflv8frgd4xrwvrmsj8szwzqgcd39dp9rpjafjp"))))))
3287 `(("texlive-luatex-lualibs" ,texlive-luatex-lualibs)))
3288 (home-page "https://github.com/lualatex/luaotfload")
3289 (synopsis "OpenType font loader for LuaTeX")
3291 "Luaotfload is an adaptation of the ConTeXt font loading system for the
3292 Plain and LaTeX formats. It allows OpenType fonts to be loaded with font
3293 features accessible using an extended font request syntax while providing
3294 compatibilitywith XeTeX. By indexing metadata in a database it facilitates
3295 loading fonts by their proper names instead of file names.")
3296 ;; GPL version 2 only
3297 (license license:gpl2)))
3299 (define-public texlive-latex-amsmath
3301 (name "texlive-latex-amsmath")
3302 (version (number->string %texlive-revision))
3305 (uri (texlive-ref "latex" "amsmath"))
3306 (file-name (string-append name "-" version "-checkout"))
3309 "0arvk7gn32mshnfdad5qkgf3i1arxq77k3vq7wnpm4nwnrzclxal"))))
3310 (build-system texlive-build-system)
3311 (arguments '(#:tex-directory "latex/amsmath"))
3312 (home-page "https://www.ctan.org/pkg/amsmath")
3313 (synopsis "AMS mathematical facilities for LaTeX")
3315 "This is the principal package in the AMS-LaTeX distribution. It adapts
3316 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
3317 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
3318 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
3319 symbols), @code{amsopnamsopn} (for operator names) and
3320 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
3321 This package is part of the LaTeX required distribution; however, several
3322 contributed packages add still further to its appeal; examples are
3323 @code{empheqempheq}, which provides functions for decorating and highlighting
3324 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
3326 (license license:lppl1.3c+)))
3328 (define-public texlive-latex-amscls
3330 (name "texlive-latex-amscls")
3331 (version (number->string %texlive-revision))
3334 (uri (texlive-ref "latex" "amscls"))
3335 (file-name (string-append name "-" version "-checkout"))
3338 "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca"))))
3339 (build-system texlive-build-system)
3341 `(#:tex-directory "latex/amscls"))
3342 (home-page "https://www.ctan.org/pkg/amscls")
3343 (synopsis "AMS document classes for LaTeX")
3345 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
3346 articles for the AMS), @code{amsbookamsbook} (for books) and
3347 @code{amsprocamsproc} (for proceedings), together with some supporting
3348 material. The material is made available as part of the AMS-LaTeX
3350 (license license:lppl1.3c+)))
3352 (define-public texlive-latex-babel
3354 (name "texlive-latex-babel")
3355 (version (number->string %texlive-revision))
3358 (uri (texlive-ref "latex" "babel"))
3359 (file-name (string-append name "-" version "-checkout"))
3362 "0yhlfiz3fjc8jd46f1zrjj4jig48l8rrzh8cmd8ammml8z9a01z6"))))
3363 (build-system texlive-build-system)
3365 '(#:tex-directory "generic/babel"
3367 (modify-phases %standard-phases
3368 ;; This package tries to produce babel.aux twice but refuses to
3369 ;; overwrite the first one.
3370 (add-before 'build 'fix-ins
3372 (substitute* "babel.ins"
3373 (("askonceonly") "askforoverwritefalse"))
3375 (home-page "https://www.ctan.org/pkg/babel")
3376 (synopsis "Multilingual support for Plain TeX or LaTeX")
3378 "The package manages culturally-determined typographical (and other)
3379 rules, and hyphenation patterns for a wide range of languages. A document may
3380 select a single language to be supported, or it may select several, in which
3381 case the document may switch from one language to another in a variety of
3382 ways. Babel uses contributed configuration files that provide the detail of
3383 what has to be done for each language. Users of XeTeX are advised to use the
3384 polyglossia package rather than Babel.")
3385 (license license:lppl1.3+)))
3387 (define-public texlive-generic-babel-english
3389 (name "texlive-generic-babel-english")
3390 (version (number->string %texlive-revision))
3393 (uri (texlive-ref "generic" "babel-english"))
3394 (file-name (string-append name "-" version "-checkout"))
3397 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
3398 (build-system texlive-build-system)
3399 (arguments '(#:tex-directory "generic/babel-english"))
3400 (home-page "https://www.ctan.org/pkg/babel-english")
3401 (synopsis "Babel support for English")
3403 "This package provides the language definition file for support of
3404 English in @code{babel}. Care is taken to select British hyphenation patterns
3405 for British English and Australian text, and default (\"american\") patterns
3406 for Canadian and USA text.")
3407 (license license:lppl1.3+)))
3409 (define-public texlive-generic-babel-german
3411 (name "texlive-generic-babel-german")
3412 (version (number->string %texlive-revision))
3415 (uri (texlive-ref "generic" "babel-german"))
3416 (file-name (string-append name "-" version "-checkout"))
3419 "0h47s67gnhdaxfgbf8pirp5vw4z6rrhxl8zav803yjxka0096i3y"))))
3420 (build-system texlive-build-system)
3421 (arguments '(#:tex-directory "generic/babel-german"))
3422 (home-page "https://www.ctan.org/pkg/babel-german")
3423 (synopsis "Babel support for German")
3425 "This package provides the language definition file for support of German
3426 in @code{babel}. It provides all the necessary macros, definitions and
3427 settings to typeset German documents. The bundle includes support for the
3428 traditional and reformed German orthography as well as for the Austrian and
3429 Swiss varieties of German.")
3430 (license license:lppl1.3+)))
3432 (define-public texlive-latex-cyrillic
3434 (name "texlive-latex-cyrillic")
3435 (version (number->string %texlive-revision))
3438 (uri (texlive-ref "latex" "cyrillic"))
3439 (file-name (string-append name "-" version "-checkout"))
3442 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
3443 (build-system texlive-build-system)
3445 '(#:tex-directory "latex/cyrillic"))
3446 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
3447 (synopsis "Support for Cyrillic fonts in LaTeX")
3449 "This bundle of macros files provides macro support (including font
3450 encoding macros) for the use of Cyrillic characters in fonts encoded under the
3451 T2* and X2 encodings. These encodings cover (between them) pretty much every
3452 language that is written in a Cyrillic alphabet.")
3453 (license license:lppl1.3c+)))
3455 (define-public texlive-latex-psnfss
3457 (name "texlive-latex-psnfss")
3458 (version (number->string %texlive-revision))
3461 (uri (texlive-ref "latex" "psnfss"))
3462 (file-name (string-append name "-" version "-checkout"))
3465 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
3466 (build-system texlive-build-system)
3467 (arguments '(#:tex-directory "latex/psnfss"))
3468 (home-page "https://www.ctan.org/pkg/psnfss")
3469 (synopsis "Font support for common PostScript fonts")
3471 "The PSNFSS collection includes a set of files that provide a complete
3472 working setup of the LaTeX font selection scheme (NFSS2) for use with common
3473 PostScript fonts. It covers the so-called \"Base\" fonts (which are built
3474 into any Level 2 PostScript printing device and the Ghostscript interpreter)
3475 and a number of free fonts. It provides font definition files, macros and
3476 font metrics. The bundle as a whole is part of the LaTeX required set of
3478 (license license:lppl1.2+)))
3480 ;; For user profiles
3481 (define-public texlive-base
3482 (let ((default-packages
3488 texlive-metafont-base
3490 ;; LaTeX packages from the "required" set.
3491 texlive-latex-amsmath
3492 texlive-latex-amscls
3494 texlive-generic-babel-english
3495 texlive-latex-cyrillic
3496 texlive-latex-graphics
3497 texlive-latex-psnfss
3501 (name "texlive-base")
3502 (version (number->string %texlive-revision))
3504 (build-system trivial-build-system)
3507 (begin (mkdir (assoc-ref %outputs "out")))))
3509 (map (lambda (package)
3510 (list (package-name package) package))
3512 (home-page (package-home-page texlive-bin))
3513 (synopsis "TeX Live base packages")
3514 (description "This is a very limited subset of the TeX Live distribution.
3515 It includes little more than the required set of LaTeX packages.")
3516 (license (fold (lambda (package result)
3517 (match (package-license package)
3519 (append lst result))
3520 ((? license:license? license)
3521 (cons license result))))
3523 default-packages)))))
3525 ;; For use in package definitions only
3526 (define-public texlive-union
3527 (lambda* (#:optional (packages '()))
3528 "Return 'texlive-union' package which is a union of PACKAGES and the
3529 standard LaTeX packages."
3530 (let ((default-packages (match (package-propagated-inputs texlive-base)
3531 (((labels packages) ...) packages))))
3532 (package (inherit texlive-base)
3533 (name "texlive-union")
3534 (build-system trivial-build-system)
3536 '(#:modules ((guix build union)
3538 (guix build texlive-build-system)
3539 (guix build gnu-build-system)
3540 (guix build gremlin)
3544 (use-modules (ice-9 match)
3549 (guix build texlive-build-system))
3550 (let* ((out (assoc-ref %outputs "out"))
3551 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
3552 ;; Build a modifiable union of all inputs (but exclude bash and
3553 ;; the updmap.cfg file)
3554 (match (filter (match-lambda
3556 (not (member name '("bash" "updmap.cfg")))))
3558 (((names . directories) ...)
3559 (union-build (assoc-ref %outputs "out")
3561 #:create-all-directories? #t
3562 #:log-port (%make-void-port "w"))))
3564 ;; The configuration file "texmf.cnf" is provided by the
3565 ;; "texlive-bin" package. We take it and override only the
3566 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
3567 ;; by default, though, so we still need to set TEXMFCNF.
3568 (substitute* texmf.cnf
3569 (("^TEXMFROOT = .*")
3570 (string-append "TEXMFROOT = " out "/share\n"))
3572 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
3573 (setenv "PATH" (string-append
3574 (assoc-ref %build-inputs "bash") "/bin:"
3575 (assoc-ref %build-inputs "coreutils") "/bin:"
3576 (string-append out "/bin")))
3578 (cut wrap-program <>
3579 `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf)))
3580 `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist"))))
3581 (find-files (string-append out "/bin") ".*"))
3583 ;; Remove invalid maps from config file.
3584 (let ((port (open-pipe* OPEN_WRITE "updmap-sys"
3587 (assoc-ref %build-inputs "updmap.cfg"))))
3588 (display "Y\n" port)
3589 (when (not (zero? (status:exit-val (close-pipe port))))
3590 (error "failed to filter updmap.cfg")))
3592 (invoke "updmap-sys" "--force"
3593 (string-append out "/share/texmf-config/web2c/updmap.cfg"))
3597 ,@(map (lambda (package)
3598 (list (package-name package) package))
3599 (append default-packages packages))))
3601 `(("coreutils" ,coreutils)
3606 (uri (string-append "https://tug.org/svn/texlive/tags/"
3607 %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg"
3608 "?revision=" (number->string %texlive-revision)))
3609 (file-name (string-append "updmap.cfg-"
3610 (number->string %texlive-revision)))
3613 "06mwpy5i218g5k3sf4gba0fmxgas82hkzx9fhwn67z5ik37d8apq"))))))
3614 (home-page (package-home-page texlive-bin))
3615 (synopsis "Union of TeX Live packages")
3616 (description "This package provides a subset of the TeX Live
3618 (license (fold (lambda (package result)
3619 (match (package-license package)
3621 (append lst result))
3622 ((? license:license? license)
3623 (cons license result))))
3625 (append default-packages packages)))))))
3627 ;; For use in package definitions only
3628 (define-public texlive-tiny
3630 (inherit (texlive-union))
3631 (name "texlive-tiny")
3632 (description "This is a very limited subset of the TeX Live distribution.
3633 It includes little more than the required set of LaTeX packages.")))
3635 (define-public texlive-latex-amsrefs
3637 (name "texlive-latex-amsrefs")
3638 (version (number->string %texlive-revision))
3641 (uri (texlive-ref "latex" "amsrefs"))
3642 (file-name (string-append name "-" version "-checkout"))
3645 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
3646 (build-system texlive-build-system)
3647 (arguments '(#:tex-directory "latex/amsrefs"))
3648 (home-page "https://www.ctan.org/pkg/amsrefs")
3649 (synopsis "LaTeX-based replacement for BibTeX")
3651 "Amsrefs is a LaTeX package for bibliographies that provides an archival
3652 data format similar to the format of BibTeX database files, but adapted to
3653 make direct processing by LaTeX easier. The package can be used either in
3654 conjunction with BibTeX or as a replacement for BibTeX.")
3655 (license license:lppl1.3+)))
3657 (define-public texlive-latex-bigfoot
3659 (name "texlive-latex-bigfoot")
3660 (version (number->string %texlive-revision))
3663 (uri (texlive-ref "latex" "bigfoot"))
3664 (file-name (string-append name "-" version "-checkout"))
3667 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
3668 (build-system texlive-build-system)
3670 '(#:tex-directory "latex/bigfoot"
3672 (modify-phases %standard-phases
3673 (add-after 'unpack 'remove-generated-file
3675 (for-each delete-file (find-files "." "\\.drv$"))
3677 (home-page "https://www.ctan.org/pkg/bigfoot")
3678 (synopsis "Footnotes for critical editions")
3680 "This package aims to provide a one-stop solution to requirements for
3681 footnotes. It offers: Multiple footnote apparatus superior to that of
3682 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
3683 into a single paragraph (this choice may be selected per footnote series);
3684 Things you might have expected (such as @code{\\verb}-like material in
3685 footnotes, and color selections over page breaks) now work. Note that the
3686 majority of the bigfoot package's interface is identical to that of
3687 @code{manyfoot}; users should seek information from that package's
3688 documentation. The bigfoot bundle also provides the @code{perpage} and
3689 @code{suffix} packages.")
3690 (license license:gpl2+)))
3692 (define-public texlive-latex-blindtext
3694 (name "texlive-latex-blindtext")
3695 (version (number->string %texlive-revision))
3698 (uri (texlive-ref "latex" "blindtext"))
3699 (file-name (string-append name "-" version "-checkout"))
3702 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
3703 (build-system texlive-build-system)
3704 (arguments '(#:tex-directory "latex/blindtext"))
3705 (home-page "https://www.ctan.org/pkg/blindtext")
3706 (synopsis "Producing 'blind' text for testing")
3708 "The package provides the commands @code{\\blindtext} and
3709 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
3710 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
3711 an entire random document with sections, lists, mathematics, etc. The package
3712 supports three languages, @code{english}, @code{(n)german} and @code{latin};
3713 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
3714 ipsum\" text, see the @code{lipsum} package).")
3715 (license license:lppl)))
3717 (define-public texlive-latex-dinbrief
3719 (name "texlive-latex-dinbrief")
3720 (version (number->string %texlive-revision))
3723 (uri (texlive-ref "latex" "dinbrief"))
3724 (file-name (string-append name "-" version "-checkout"))
3727 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
3728 (build-system texlive-build-system)
3730 '(#:tex-directory "latex/dinbrief"
3732 (modify-phases %standard-phases
3733 (add-after 'unpack 'remove-generated-file
3735 (delete-file "dinbrief.drv")
3737 (add-after 'unpack 'fix-encoding-error
3739 (with-fluids ((%default-port-encoding "ISO-8859-1"))
3740 (substitute* "dinbrief.dtx"
3741 (("zur Verf.+ung. In der Pr\"aambel")
3742 "zur Verf\"ung. In der Pr\"aambel")))
3744 (home-page "https://www.ctan.org/pkg/dinbrief")
3745 (synopsis "German letter DIN style")
3747 "This package implements a document layout for writing letters according
3748 to the rules of DIN (Deutsches Institut für Normung, German standardisation
3749 institute). A style file for LaTeX 2.09 (with limited support of the
3750 features) is part of the package. Since the letter layout is based on a
3751 German standard, the user guide is written in German, but most macros have
3752 English names from which the user can recognize what they are used for. In
3753 addition there are example files showing how letters may be created with the
3755 (license license:lppl)))
3757 (define-public texlive-latex-draftwatermark
3759 (name "texlive-latex-draftwatermark")
3760 (version (number->string %texlive-revision))
3763 (uri (texlive-ref "latex" "draftwatermark"))
3764 (file-name (string-append name "-" version "-checkout"))
3767 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
3768 (build-system texlive-build-system)
3769 (arguments '(#:tex-directory "latex/draftwatermark"))
3770 (home-page "https://www.ctan.org/pkg/draftwatermark")
3771 (synopsis "Put a grey textual watermark on document pages")
3773 "This package provides a means to add a textual, light grey watermark on
3774 every page or on the first page of a document. Typical usage may consist in
3775 writing words such as DRAFT or CONFIDENTIAL across document pages. The
3776 package performs a similar function to that of @code{draftcopy}, but its
3777 implementation is output device independent, and made very simple by relying
3779 (license license:lppl1.3+)))
3781 (define-public texlive-latex-environ
3783 (name "texlive-latex-environ")
3784 (version (number->string %texlive-revision))
3787 (uri (texlive-ref "latex" "environ"))
3788 (file-name (string-append name "-" version "-checkout"))
3791 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
3792 (build-system texlive-build-system)
3793 (arguments '(#:tex-directory "latex/environ"))
3794 (home-page "https://www.ctan.org/pkg/environ")
3795 (synopsis "New interface for environments in LaTeX")
3797 "This package provides the @code{\\collect@@body} command (as in
3798 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
3799 for collecting the body text of an environment. These commands are used to
3800 define a new author interface to creating new environments.")
3801 (license license:lppl)))
3803 (define-public texlive-latex-eqparbox
3805 (name "texlive-latex-eqparbox")
3806 (version (number->string %texlive-revision))
3809 (uri (texlive-ref "latex" "eqparbox"))
3810 (file-name (string-append name "-" version "-checkout"))
3813 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
3814 (build-system texlive-build-system)
3815 (arguments '(#:tex-directory "latex/eqparbox"))
3816 (home-page "https://www.ctan.org/pkg/eqparbox")
3817 (synopsis "Create equal-widthed parboxes")
3819 "LaTeX users sometimes need to ensure that two or more blocks of text
3820 occupy the same amount of horizontal space on the page. To that end, the
3821 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
3822 just like @code{\\parbox}, except that instead of specifying a width, one
3823 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
3824 where they are in the document---will stretch to fit the widest
3825 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
3826 for a variety of alignment purposes, as is evidenced by the examples in
3827 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
3829 (license license:lppl1.3+)))
3831 (define-public texlive-latex-expdlist
3833 (name "texlive-latex-expdlist")
3834 (version (number->string %texlive-revision))
3837 (uri (texlive-ref "latex" "expdlist"))
3838 (file-name (string-append name "-" version "-checkout"))
3841 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
3842 (build-system texlive-build-system)
3844 '(#:tex-directory "latex/expdlist"
3846 (modify-phases %standard-phases
3847 (add-after 'unpack 'remove-generated-file
3849 (for-each delete-file
3850 (find-files "." "\\.drv$"))
3852 (home-page "https://www.ctan.org/pkg/expdlist")
3853 (synopsis "Expanded description environments")
3855 "The package provides additional features for the LaTeX
3856 @code{description} environment, including adjustable left margin. The package
3857 also allows the user to \"break\" a list (for example, to interpose a comment)
3858 without affecting the structure of the list (this works for @code{itemize} and
3859 @code{enumerate} lists, and numbered lists remain in sequence).")
3860 (license license:lppl)))
3862 (define-public texlive-filemod
3864 (inherit (simple-texlive-package
3866 (list "/doc/latex/filemod/"
3867 "/tex/latex/filemod/"
3868 "/tex/generic/filemod/")
3870 "1snsj7kblkj1ig3x3845lsypz7ab04lf0dcpdh946xakgjnz4fb5")
3872 (home-page "https://www.ctan.org/pkg/filemod")
3873 (synopsis "Provide file modification times, and compare them")
3875 "This package provides macros to read and compare the modification dates
3876 of files. The files may be @code{.tex} files, images or other files (as long
3877 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
3878 of pdfLaTeX to find the file modification date as PDF date string, parses the
3879 string and returns the value to the user. The package will also work for DVI
3880 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
3881 mode. The functionality is provided by purely expandable macros or by faster
3882 but non-expandable ones.")
3883 (license license:lppl1.3+)))
3885 (define-public texlive-latex-filemod
3886 (deprecated-package "texlive-latex-filemod" texlive-filemod))
3888 (define-public texlive-latex-ifplatform
3890 (name "texlive-latex-ifplatform")
3891 (version (number->string %texlive-revision))
3894 (uri (texlive-ref "latex" "ifplatform"))
3895 (file-name (string-append name "-" version "-checkout"))
3898 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
3899 (build-system texlive-build-system)
3900 (arguments '(#:tex-directory "latex/ifplatform"))
3901 (home-page "https://www.ctan.org/pkg/ifplatform")
3902 (synopsis "Conditionals to test which platform is being used")
3904 "This package uses the (La)TeX extension @code{-shell-escape} to
3905 establish whether the document is being processed on a Windows or on a
3906 Unix-like system, or on Cygwin (Unix environment over a Windows system).
3907 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
3908 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
3909 on a Unix-like system, which may be used to distinguish between various
3910 classes of systems.")
3911 (license license:lppl)))
3913 (define-public texlive-latex-natbib
3915 (name "texlive-latex-natbib")
3916 (version (number->string %texlive-revision))
3919 (uri (texlive-ref "latex" "natbib"))
3920 (file-name (string-append name "-" version "-checkout"))
3923 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
3924 (build-system texlive-build-system)
3925 (arguments '(#:tex-directory "latex/natbib"))
3926 (home-page "https://www.ctan.org/pkg/natbib")
3927 (synopsis "Flexible bibliography support")
3929 "This bundle provides a package that implements both author-year and
3930 numbered references, as well as much detailed of support for other
3931 bibliography use. Also provided are versions of the standard BibTeX styles
3932 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
3933 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
3934 designed from the start to be compatible with @code{natbib}.")
3935 (license license:lppl)))
3937 (define-public texlive-latex-psfrag
3939 (name "texlive-latex-psfrag")
3940 (version (number->string %texlive-revision))
3943 (uri (texlive-ref "latex" "psfrag"))
3944 (file-name (string-append name "-" version "-checkout"))
3947 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
3948 (build-system texlive-build-system)
3949 (arguments '(#:tex-directory "latex/psfrag"))
3950 (home-page "https://www.ctan.org/pkg/psfrag")
3951 (synopsis "Replace strings in encapsulated PostScript figures")
3953 "This package allows LaTeX constructions (equations, picture
3954 environments, etc.) to be precisely superimposed over Encapsulated PostScript
3955 figures, using your own favorite drawing tool to create an EPS figure and
3956 placing simple text \"tags\" where each replacement is to be placed, with
3957 PSfrag automatically removing these tags from the figure and replacing them
3958 with a user specified LaTeX construction, properly aligned, scaled, and/or
3960 (license (license:fsf-free "file://psfrag.dtx"))))
3962 (define-public texlive-latex-xkeyval
3964 (name "texlive-latex-xkeyval")
3965 (version (number->string %texlive-revision))
3968 (uri (texlive-ref "latex" "xkeyval"))
3969 (file-name (string-append name "-" version "-checkout"))
3972 "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp"))))
3973 (build-system texlive-build-system)
3974 (arguments '(#:tex-directory "latex/xkeyval"))
3975 (home-page "https://www.ctan.org/pkg/xkeyval")
3976 (synopsis "Macros for defining and setting keys")
3978 "This package is an extension of the @code{keyval} package and offers
3979 more flexible macros for defining and setting keys. The package provides a
3980 pointer and a preset system. Furthermore, it supplies macros to allow class
3981 and package options to contain options of the @code{key=value} form. A LaTeX
3982 kernel patch is provided to avoid premature expansions of macros in class or
3983 package options. A specialized system for setting @code{PSTricks} keys is
3984 provided by the @code{pst-xkey} package.")
3985 (license license:lppl1.3+)))
3987 (define-public texlive-pstool
3989 (inherit (simple-texlive-package
3991 (list "/doc/latex/pstool/"
3992 "/tex/latex/pstool/")
3994 "12clzcw2cl7g2chr2phgmmiwxw4859cln1gbx1wgp8bl9iw590nc")
3997 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix
3998 ("texlive-latex-filemod" ,texlive-latex-filemod)
3999 ("texlive-latex-graphics" ,texlive-latex-graphics)
4000 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
4001 ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3
4002 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
4003 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
4004 ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc
4005 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)
4006 ("texlive-latex-xkeyval" ,texlive-latex-xkeyval)))
4007 (home-page "https://www.ctan.org/pkg/pstool")
4008 (synopsis "Process PostScript graphics within pdfLaTeX documents")
4010 "This is a package for processing PostScript graphics with @code{psfrag}
4011 labels within pdfLaTeX documents. Every graphic is compiled individually,
4012 drastically speeding up compilation time when only a single figure needs
4014 (license license:lppl)))
4016 (define-public texlive-latex-pstool
4017 (deprecated-package "texlive-latex-pstool" texlive-pstool))
4019 (define-public texlive-seminar
4021 (inherit (simple-texlive-package
4023 (list "/doc/latex/seminar/"
4024 "/tex/latex/seminar/")
4026 "1clgw5xy867khzfn8d210rc5hsw5s7r0pznhk84niybvw4zc7r3f")
4028 (home-page "https://www.ctan.org/pkg/seminar")
4029 (synopsis "Make overhead slides")
4030 ;; TODO: This package may need fancybox and xcomment at runtime.
4032 "This package provides a class that produces overhead
4033 slides (transparencies), with many facilities. Seminar is not nowadays
4034 reckoned a good basis for a presentation — users are advised to use more
4035 recent classes such as powerdot or beamer, both of which are tuned to
4036 21st-century presentation styles.")
4037 (license license:lppl1.2+)))
4039 (define-public texlive-latex-seminar
4040 (deprecated-package "texlive-latex-seminar" texlive-seminar))
4042 (define-public texlive-latex-trimspaces
4044 (name "texlive-latex-trimspaces")
4045 (version (number->string %texlive-revision))
4048 (uri (texlive-ref "latex" "trimspaces"))
4049 (file-name (string-append name "-" version "-checkout"))
4052 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
4053 (build-system texlive-build-system)
4055 '(#:tex-directory "latex/trimspaces"
4056 #:tex-format "latex"
4058 (modify-phases %standard-phases
4059 (add-after 'unpack 'fix-bug
4061 ;; The "ins" file refers to the wrong source file.
4062 (substitute* "trimspaces.ins"
4063 (("pstool.tex") "trimspaces.tex"))
4066 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
4067 (home-page "https://www.ctan.org/pkg/trimspaces")
4068 (synopsis "Trim spaces around an argument or within a macro")
4070 "This very short package allows you to expandably remove spaces around a
4071 token list (commands are provided to remove spaces before, spaces after, or
4072 both); or to remove surrounding spaces within a macro definition, or to define
4073 space-stripped macros.")
4074 (license license:lppl)))
4076 (define-public texlive-latex-capt-of
4078 (name "texlive-latex-capt-of")
4079 (version (number->string %texlive-revision))
4083 (url (string-append "svn://www.tug.org/texlive/tags/"
4084 %texlive-tag "/Master/texmf-dist/"
4085 "/tex/latex/capt-of"))
4086 (revision %texlive-revision)))
4087 (file-name (string-append name "-" version "-checkout"))
4090 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
4091 (build-system trivial-build-system)
4093 `(#:modules ((guix build utils))
4096 (use-modules (guix build utils))
4097 (let ((target (string-append (assoc-ref %outputs "out")
4098 "/share/texmf-dist/tex/latex/capt-of")))
4100 (copy-recursively (assoc-ref %build-inputs "source") target)
4102 (home-page "https://www.ctan.org/pkg/capt-of")
4103 (synopsis "Captions on more than floats")
4105 "This package defines a command @code{\\captionof} for putting a caption
4106 to something that's not a float.")
4107 (license license:lppl)))
4109 (define-public texlive-doi
4111 (inherit (simple-texlive-package
4113 (list "/doc/latex/doi/README"
4116 "17lnnhfmb8g4nh4fnyc9616h8xg3vjrzmlvfmlfqwwlfpma9xnnw")
4118 (home-page "https://www.ctan.org/pkg/doi")
4119 (synopsis "Create correct hyperlinks for DOI numbers")
4121 "You can hyperlink DOI numbers to doi.org. However, some publishers have
4122 elected to use nasty characters in their DOI numbering scheme (@code{<},
4123 @code{>}, @code{_} and @code{;} have all been spotted). This will either
4124 upset LaTeX, or your PDF reader. This package contains a single user-level
4125 command @code{\\doi{}}, which takes a DOI number, and creates a correct
4126 hyperlink to the target of the DOI.")
4127 ;; Any version of the LPPL.
4128 (license license:lppl1.3+)))
4130 (define-public texlive-latex-doi
4131 (deprecated-package "texlive-latex-doi" texlive-doi))
4133 (define-public texlive-etoolbox
4135 (inherit (simple-texlive-package
4137 (list "/doc/latex/etoolbox/"
4138 "/tex/latex/etoolbox/")
4140 "1qg4x5r4ibinl6zy5lq70lv4zcrjsn54n6hwv31k5kl7mwv0mvr3")
4142 (home-page "https://www.ctan.org/pkg/etoolbox")
4143 (synopsis "e-TeX tools for LaTeX")
4145 "This package is a toolbox of programming facilities geared primarily
4146 towards LaTeX class and package authors. It provides LaTeX frontends to some
4147 of the new primitives provided by e-TeX as well as some generic tools which
4148 are not strictly related to e-TeX but match the profile of this package. The
4149 package provides functions that seem to offer alternative ways of implementing
4150 some LaTeX kernel commands; nevertheless, the package will not modify any part
4151 of the LaTeX kernel.")
4152 (license license:lppl1.3+)))
4154 (define-public texlive-latex-etoolbox
4155 (deprecated-package "texlive-latex-etoolbox" texlive-etoolbox))
4157 (define-public texlive-latex-fncychap
4159 (name "texlive-latex-fncychap")
4160 (version (number->string %texlive-revision))
4164 (url (string-append "svn://www.tug.org/texlive/tags/"
4165 %texlive-tag "/Master/texmf-dist/"
4166 "/tex/latex/fncychap"))
4167 (revision %texlive-revision)))
4168 (file-name (string-append name "-" version "-checkout"))
4171 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
4172 (build-system trivial-build-system)
4174 `(#:modules ((guix build utils))
4177 (use-modules (guix build utils))
4178 (let ((target (string-append (assoc-ref %outputs "out")
4179 "/share/texmf-dist/tex/latex/fncychap")))
4181 (copy-recursively (assoc-ref %build-inputs "source") target)
4183 (home-page "https://www.ctan.org/pkg/fncychap")
4184 (synopsis "Seven predefined chapter heading styles")
4186 "This package provides seven predefined chapter heading styles. Each
4187 style can be modified using a set of simple commands. Optionally one can
4188 modify the formatting routines in order to create additional chapter
4190 (license license:lppl1.3+)))
4192 (define-public texlive-latex-framed
4194 (name "texlive-latex-framed")
4195 (version (number->string %texlive-revision))
4199 (url (string-append "svn://www.tug.org/texlive/tags/"
4200 %texlive-tag "/Master/texmf-dist/"
4201 "/tex/latex/framed"))
4202 (revision %texlive-revision)))
4203 (file-name (string-append name "-" version "-checkout"))
4206 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
4207 (build-system trivial-build-system)
4209 `(#:modules ((guix build utils))
4212 (use-modules (guix build utils))
4213 (let ((target (string-append (assoc-ref %outputs "out")
4214 "/share/texmf-dist/tex/latex/framed")))
4216 (copy-recursively (assoc-ref %build-inputs "source") target)
4218 (home-page "https://www.ctan.org/pkg/framed")
4219 (synopsis "Framed or shaded regions that can break across pages")
4221 "The package creates three environments: @code{framed}, which puts an
4222 ordinary frame box around the region, @code{shaded}, which shades the region,
4223 and @code{leftbar}, which places a line at the left side. The environments
4224 allow a break at their start (the @code{\\FrameCommand} enables creation of a
4225 title that is “attached” to the environment); breaks are also allowed in the
4226 course of the framed/shaded matter. There is also a command
4227 @code{\\MakeFramed} to make your own framed-style environments.")
4228 ;; The header states: "These macros may be freely transmitted, reproduced,
4229 ;; or modified for any purpose provided that this notice is left intact."
4230 (license (license:fsf-free "file://framed.sty"))))
4232 (define-public texlive-latex-g-brief
4234 (name "texlive-latex-g-brief")
4235 (version (number->string %texlive-revision))
4238 (uri (texlive-ref "latex" "g-brief"))
4239 (file-name (string-append name "-" version "-checkout"))
4242 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
4243 (build-system texlive-build-system)
4245 '(#:tex-directory "latex/g-brief"
4247 (modify-phases %standard-phases
4248 (add-after 'unpack 'remove-generated-file
4250 (delete-file "g-brief.drv")
4252 (home-page "https://www.ctan.org/pkg/g-brief")
4253 (synopsis "Letter document class")
4255 "This package is designed for formatting formless letters in German; it
4256 can also be used for English (by those who can read the documentation). There
4257 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
4258 \"old\" and a \"new\" version of g-brief.")
4259 (license license:lppl)))
4261 (define-public texlive-latex-galois
4263 (name "texlive-latex-galois")
4264 (version (number->string %texlive-revision))
4267 (uri (texlive-ref "latex" "galois"))
4268 (file-name (string-append name "-" version "-checkout"))
4271 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
4272 (build-system texlive-build-system)
4273 (arguments '(#:tex-directory "latex/galois"))
4274 (home-page "https://www.ctan.org/pkg/galois")
4275 (synopsis "Typeset Galois connections")
4277 "The package deals with connections in two-dimensional style, optionally
4279 (license license:lppl)))
4281 (define-public texlive-latex-gcite
4283 (name "texlive-latex-gcite")
4284 (version (number->string %texlive-revision))
4287 (uri (texlive-ref "latex" "gcite"))
4288 (file-name (string-append name "-" version "-checkout"))
4291 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
4292 (build-system texlive-build-system)
4293 (arguments '(#:tex-directory "latex/gcite"))
4294 (home-page "https://www.ctan.org/pkg/gcite")
4295 (synopsis "Citations in a reader-friendly style")
4297 "The package allows citations in the German style, which is considered by
4298 many to be particularly reader-friendly. The citation provides a small amount
4299 of bibliographic information in a footnote on the page where each citation is
4300 made. It combines a desire to eliminate unnecessary page-turning with the
4301 look-up efficiency afforded by numeric citations. The package makes use of
4302 BibLaTeX, and is considered experimental.")
4303 (license license:lppl1.3+)))
4305 (define-public texlive-latex-geometry
4307 (name "texlive-latex-geometry")
4308 (version (number->string %texlive-revision))
4311 (uri (texlive-ref "latex" "geometry"))
4312 (file-name (string-append name "-" version "-checkout"))
4315 "0yw6bjfgsli3s1dldsgb7mkr7lnk329cgdjbgs8z2xn59pmmdsn4"))))
4316 (build-system texlive-build-system)
4317 (arguments '(#:tex-directory "latex/geometry"))
4319 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek))) ;for ifpdf
4320 (home-page "https://www.ctan.org/pkg/geometry")
4321 (synopsis "Flexible and complete interface to document dimensions")
4323 "This package provides an easy and flexible user interface to customize
4324 page layout, implementing auto-centering and auto-balancing mechanisms so that
4325 the users have only to give the least description for the page layout. The
4326 package knows about all the standard paper sizes, so that the user need not
4327 know what the nominal \"real\" dimensions of the paper are, just its standard
4328 name (such as a4, letter, etc.). An important feature is the package's
4329 ability to communicate the paper size it's set up to the output.")
4330 (license license:lppl)))
4332 (define-public texlive-latex-mdwtools
4334 (name "texlive-latex-mdwtools")
4335 (version (number->string %texlive-revision))
4338 (uri (texlive-ref "latex" "mdwtools"))
4339 (file-name (string-append name "-" version "-checkout"))
4342 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
4343 (build-system texlive-build-system)
4344 (arguments '(#:tex-directory "latex/mdwtools"))
4345 (home-page "https://www.ctan.org/pkg/mdwtools")
4346 (synopsis "Miscellaneous tools by Mark Wooding")
4348 "This collection of tools includes: @code{atsupport} for short commands
4349 starting with @code{@@}, macros to sanitize the OT1 encoding of the
4350 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
4351 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
4352 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
4353 array environments; verbatim handling; and syntax diagrams.")
4354 (license license:gpl3+)))
4356 (define-public texlive-latex-polyglossia
4358 (name "texlive-latex-polyglossia")
4359 (version (number->string %texlive-revision))
4362 (uri (texlive-ref "latex" "polyglossia"))
4363 (file-name (string-append name "-" version "-checkout"))
4366 "03ma58z3ypsbp7zgkzb1ylpn2ygr27cxzkf042ns0rif4g8s491f"))))
4367 (build-system texlive-build-system)
4368 (arguments '(#:tex-directory "latex/polyglossia"))
4369 (home-page "https://www.ctan.org/pkg/polyglossia")
4370 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
4372 "This package provides a complete Babel replacement for users of LuaLaTeX
4373 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
4374 (license license:lppl1.3+)))
4376 (define-public texlive-latex-supertabular
4378 (name "texlive-latex-supertabular")
4379 (version (number->string %texlive-revision))
4382 (uri (texlive-ref "latex" "supertabular"))
4383 (file-name (string-append name "-" version "-checkout"))
4386 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
4387 (build-system texlive-build-system)
4388 (arguments '(#:tex-directory "latex/supertabular"))
4389 (home-page "https://www.ctan.org/pkg/supertabular")
4390 (synopsis "Multi-page tables package")
4392 "This package was a predecessor of @code{longtable}; the newer
4393 package (designed on quite different principles) is easier to use and more
4394 flexible, in many cases, but supertabular retains its usefulness in a few
4395 situations where longtable has problems.")
4396 (license license:lppl1.3+)))
4398 (define-public texlive-tex-texinfo
4400 (name "texlive-tex-texinfo")
4401 (version (number->string %texlive-revision))
4405 (url (string-append "svn://www.tug.org/texlive/tags/"
4406 %texlive-tag "/Master/texmf-dist/"
4408 (revision %texlive-revision)))
4409 (file-name (string-append name "-" version "-checkout"))
4412 "06cf821y1j7jdg93pb41ayigrfwgn0y49d7w1025zlijjxi6bvjp"))))
4413 (build-system trivial-build-system)
4415 `(#:modules ((guix build utils))
4418 (use-modules (guix build utils))
4419 (let ((target (string-append (assoc-ref %outputs "out")
4420 "/share/texmf-dist/tex/texinfo")))
4422 (copy-recursively (assoc-ref %build-inputs "source") target)
4424 (home-page "https://www.ctan.org/pkg/texinfo")
4425 (synopsis "TeX macros to handle Texinfo files")
4427 "Texinfo is the preferred format for documentation in the GNU project;
4428 the format may be used to produce online or printed output from a single
4429 source. The Texinfo macros may be used to produce printable output using TeX;
4430 other programs in the distribution offer online interactive use (with
4431 hypertext linkages in some cases).")
4432 (license license:gpl3+)))
4434 (define-public texlive-latex-upquote
4436 (name "texlive-latex-upquote")
4437 (version (number->string %texlive-revision))
4440 (uri (texlive-ref "latex" "upquote"))
4441 (file-name (string-append name "-" version "-checkout"))
4444 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
4445 (build-system texlive-build-system)
4446 (arguments '(#:tex-directory "latex/upquote"))
4447 (home-page "https://www.ctan.org/pkg/upquote")
4448 (synopsis "Show \"realistic\" quotes in verbatim")
4450 "Typewriter-style fonts are best for program listings, but Computer
4451 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
4452 single quotes. Other fonts, and most programming languages, print @code{`} as
4453 a grave accent and @code{'} upright; @code{'} is used both to open and to
4454 close quoted strings. The package switches the typewriter font to Computer
4455 Modern Typewriter in OT1 encoding, and modifies the behaviour of
4456 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
4457 in the expected way. It does this regardless of other fonts or encodings in
4458 use, so long as the package is loaded after the other fonts were. The package
4459 does not affect @code{\\tt}, @code{\\texttt}, etc.")
4460 (license license:lppl1.2+)))
4462 (define-public texlive-latex-anysize
4464 (name "texlive-latex-anysize")
4465 (version (number->string %texlive-revision))
4469 (url (string-append "svn://www.tug.org/texlive/tags/"
4470 %texlive-tag "/Master/texmf-dist/"
4471 "/tex/latex/anysize"))
4472 (revision %texlive-revision)))
4473 (file-name (string-append name "-" version "-checkout"))
4476 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
4477 (build-system trivial-build-system)
4479 `(#:modules ((guix build utils))
4482 (use-modules (guix build utils))
4483 (let ((target (string-append (assoc-ref %outputs "out")
4484 "/share/texmf-dist/tex/latex/anysize")))
4486 (copy-recursively (assoc-ref %build-inputs "source") target)
4488 (home-page "https://www.ctan.org/pkg/anysize")
4489 (synopsis "Simple package to set up document margins")
4491 "This is a simple package to set up document margins. This package is
4492 considered obsolete; alternatives are the @code{typearea} package from the
4493 @code{koma-script} bundle, or the @code{geometry} package.")
4494 (license license:public-domain)))
4496 (define-public texlive-latex-appendix
4498 (name "texlive-latex-appendix")
4499 (version (number->string %texlive-revision))
4502 (uri (texlive-ref "latex" "appendix"))
4503 (file-name (string-append name "-" version "-checkout"))
4506 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
4507 (build-system texlive-build-system)
4508 (arguments '(#:tex-directory "latex/appendix"))
4509 (home-page "https://www.ctan.org/pkg/appendix")
4510 (synopsis "Extra control of appendices")
4512 "The appendix package provides various ways of formatting the titles of
4513 appendices. Also (sub)appendices environments are provided that can be used,
4514 for example, for per chapter/section appendices. An @code{appendices}
4515 environment is provided which can be used instead of the @code{\\appendix}
4517 (license license:lppl)))
4519 (define-public texlive-latex-changebar
4521 (name "texlive-latex-changebar")
4522 (version (number->string %texlive-revision))
4525 (uri (texlive-ref "latex" "changebar"))
4526 (file-name (string-append name "-" version "-checkout"))
4529 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
4530 (build-system texlive-build-system)
4531 (arguments '(#:tex-directory "latex/changebar"))
4532 (home-page "https://www.ctan.org/pkg/changebar")
4533 (synopsis "Generate changebars in LaTeX documents")
4535 "Identify areas of text to be marked with changebars with the
4536 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
4537 package uses @code{drivers} to place the bars; the available drivers can work
4538 with @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
4539 drivers, and VTeX and pdfTeX.")
4540 (license license:lppl)))
4542 (define-public texlive-latex-cmap
4544 (name "texlive-latex-cmap")
4545 (version (number->string %texlive-revision))
4549 (url (string-append "svn://www.tug.org/texlive/tags/"
4550 %texlive-tag "/Master/texmf-dist/"
4552 (revision %texlive-revision)))
4553 (file-name (string-append name "-" version "-checkout"))
4556 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
4557 (build-system trivial-build-system)
4559 `(#:modules ((guix build utils))
4562 (use-modules (guix build utils))
4563 (let ((target (string-append (assoc-ref %outputs "out")
4564 "/share/texmf-dist/tex/latex/cmap")))
4566 (copy-recursively (assoc-ref %build-inputs "source") target)
4568 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
4569 Master/texmf-dist/tex/latex/cmap/")
4570 (synopsis "CMap support for PDF files")
4572 "This package embeds CMap tables into PDF files to make search and
4573 copy-and-paste functions work properly.")
4574 (license license:lppl)))
4576 (define-public texlive-latex-colortbl
4578 (name "texlive-latex-colortbl")
4579 (version (number->string %texlive-revision))
4582 (uri (texlive-ref "latex" "colortbl"))
4583 (file-name (string-append name "-" version "-checkout"))
4586 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
4587 (build-system texlive-build-system)
4588 (arguments '(#:tex-directory "latex/colortbl"))
4589 (home-page "https://www.ctan.org/pkg/colortbl")
4590 (synopsis "Add colour to LaTeX tables")
4592 "This package allows rows, columns, and even individual cells in LaTeX
4593 tables to be coloured.")
4594 (license license:lppl)))
4596 (define-public texlive-latex-fancybox
4598 (name "texlive-latex-fancybox")
4599 (version (number->string %texlive-revision))
4603 (url (string-append "svn://www.tug.org/texlive/tags/"
4604 %texlive-tag "/Master/texmf-dist/"
4605 "/tex/latex/fancybox"))
4606 (revision %texlive-revision)))
4607 (file-name (string-append name "-" version "-checkout"))
4610 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
4611 (build-system trivial-build-system)
4613 `(#:modules ((guix build utils))
4616 (use-modules (guix build utils))
4617 (let ((target (string-append (assoc-ref %outputs "out")
4618 "/share/texmf-dist/tex/latex/fancybox")))
4620 (copy-recursively (assoc-ref %build-inputs "source") target)
4622 (home-page "https://www.ctan.org/pkg/fancybox")
4623 (synopsis "Variants of \\fbox and other games with boxes")
4625 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
4626 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
4627 using box macros and flexible verbatim macros. You can box mathematics,
4628 floats, center, flushleft, and flushright, lists, and pages.")
4629 (license license:lppl1.2+)))
4631 (define-public texlive-latex-fancyhdr
4633 (name "texlive-latex-fancyhdr")
4634 (version (number->string %texlive-revision))
4638 (url (string-append "svn://www.tug.org/texlive/tags/"
4639 %texlive-tag "/Master/texmf-dist/"
4640 "/tex/latex/fancyhdr"))
4641 (revision %texlive-revision)))
4642 (file-name (string-append name "-" version "-checkout"))
4645 "1xsnzx7vgdfh9zh2m7bjz6bgdpxsgb1kyc19p50vhs34x5nbgsnr"))))
4646 (build-system trivial-build-system)
4648 `(#:modules ((guix build utils))
4651 (use-modules (guix build utils))
4652 (let ((target (string-append (assoc-ref %outputs "out")
4653 "/share/texmf-dist/tex/latex/fancyhdr")))
4655 (copy-recursively (assoc-ref %build-inputs "source") target)
4657 (home-page "https://www.ctan.org/pkg/fancyhdr")
4658 (synopsis "Extensive control of page headers and footers in LaTeX2e")
4660 "The package provides extensive facilities, both for constructing headers
4661 and footers, and for controlling their use (for example, at times when LaTeX
4662 would automatically change the heading style in use).")
4663 (license license:lppl)))
4665 (define-public texlive-latex-float
4667 (name "texlive-latex-float")
4668 (version (number->string %texlive-revision))
4671 (uri (texlive-ref "latex" "float"))
4672 (file-name (string-append name "-" version "-checkout"))
4675 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
4676 (build-system texlive-build-system)
4677 (arguments '(#:tex-directory "latex/float"))
4678 (home-page "https://www.ctan.org/pkg/float")
4679 (synopsis "Improved interface for floating objects")
4681 "This package improves the interface for defining floating objects such
4682 as figures and tables. It introduces the boxed float, the ruled float and the
4683 plaintop float. You can define your own floats and improve the behaviour of
4684 the old ones. The package also provides the @code{H} float modifier option of
4685 the obsolete @code{here} package. You can select this as automatic default
4686 with @code{\\floatplacement{figure}{H}}.")
4687 (license license:lppl)))
4689 (define-public texlive-latex-footmisc
4691 (name "texlive-latex-footmisc")
4692 (version (number->string %texlive-revision))
4695 (uri (texlive-ref "latex" "footmisc"))
4696 (file-name (string-append name "-" version "-checkout"))
4699 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
4700 (build-system texlive-build-system)
4701 (arguments '(#:tex-directory "latex/footmisc"))
4702 (home-page "https://www.ctan.org/pkg/footmisc")
4703 (synopsis "Range of footnote options")
4705 "This is a collection of ways to change the typesetting of footnotes.
4706 The package provides means of changing the layout of the footnotes themselves,
4707 a way to number footnotes per page, to make footnotes disappear in a
4708 \"moving\" argument, and to deal with multiple references to footnotes from
4709 the same place. The package also has a range of techniques for labelling
4710 footnotes with symbols rather than numbers.")
4711 (license license:lppl1.3+)))
4713 (define-public texlive-latex-listings
4715 (name "texlive-latex-listings")
4716 (version (number->string %texlive-revision))
4719 (uri (texlive-ref "latex" "listings"))
4720 (file-name (string-append name "-" version "-checkout"))
4723 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
4724 (build-system texlive-build-system)
4726 '(#:tex-directory "latex/listings"
4727 #:build-targets '("listings.ins")))
4728 (home-page "https://www.ctan.org/pkg/listings")
4729 (synopsis "Typeset source code listings using LaTeX")
4731 "The package enables the user to typeset programs (programming code)
4732 within LaTeX; the source code is read directly by TeX---no front-end processor
4733 is needed. Keywords, comments and strings can be typeset using different
4734 styles. Support for @code{hyperref} is provided.")
4735 (license license:lppl1.3+)))
4737 (define-public texlive-latex-jknapltx
4739 (name "texlive-latex-jknapltx")
4740 (version (number->string %texlive-revision))
4744 (url (string-append "svn://www.tug.org/texlive/tags/"
4745 %texlive-tag "/Master/texmf-dist/"
4746 "/tex/latex/jknapltx"))
4747 (revision %texlive-revision)))
4748 (file-name (string-append name "-" version "-checkout"))
4751 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
4752 (build-system trivial-build-system)
4754 `(#:modules ((guix build utils))
4757 (use-modules (guix build utils))
4758 (let ((target (string-append (assoc-ref %outputs "out")
4759 "/share/texmf-dist/tex/latex/jknapltx")))
4761 (copy-recursively (assoc-ref %build-inputs "source") target)
4763 (home-page "https://www.ctan.org/pkg/jknappen")
4764 (synopsis "Miscellaneous packages by Joerg Knappen")
4766 "This package provides miscellaneous macros by Joerg Knappen, including:
4767 represent counters in greek; Maxwell's non-commutative division;
4768 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
4769 @code{inputenc} definition files that allow verbatim input in the respective
4770 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
4771 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
4772 transliterate semitic languages; patches to make (La)TeX formulae embeddable
4773 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
4774 (license license:gpl2)))
4776 (define-public texlive-fonts-ec
4778 (name "texlive-fonts-ec")
4779 (version (number->string %texlive-revision))
4783 (url (string-append "svn://www.tug.org/texlive/tags/"
4784 %texlive-tag "/Master/texmf-dist/"
4785 "/fonts/source/jknappen/ec/"))
4786 (revision %texlive-revision)))
4787 (file-name (string-append name "-" version "-checkout"))
4790 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
4791 (build-system gnu-build-system)
4793 `(#:modules ((guix build gnu-build-system)
4797 #:tests? #f ; no tests
4799 (modify-phases %standard-phases
4802 (lambda* (#:key inputs #:allow-other-keys)
4803 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
4804 ;; Tell mf where to find mf.base
4805 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
4806 ;; Tell mf where to look for source files
4808 (string-append (getcwd) ":"
4809 mf "/share/texmf-dist/metafont/base:"
4810 (assoc-ref inputs "texlive-cm")
4811 "/share/texmf-dist/fonts/source/public/cm")))
4813 (for-each (lambda (font)
4814 (format #t "building font ~a\n" font)
4815 (invoke "mf" "-progname=mf"
4816 "-output-directory=build"
4821 "input " (basename font ".mf"))))
4822 (find-files "." "[0-9]+\\.mf$"))
4825 (lambda* (#:key outputs #:allow-other-keys)
4826 (let* ((out (assoc-ref outputs "out"))
4828 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
4830 out "/share/texmf-dist/fonts/source/jknappen/ec")))
4831 (for-each (cut install-file <> tfm)
4832 (find-files "build" "\\.*"))
4833 (for-each (cut install-file <> mf)
4834 (find-files "." "\\.mf"))
4837 `(("texlive-bin" ,texlive-bin)
4838 ("texlive-metafont-base" ,texlive-metafont-base)
4839 ("texlive-cm" ,texlive-cm)))
4840 (home-page "https://www.ctan.org/pkg/ec")
4841 (synopsis "Computer modern fonts in T1 and TS1 encodings")
4843 "The EC fonts are European Computer Modern Fonts, supporting the complete
4844 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
4845 These fonts are intended to be stable with no changes being made to the tfm
4846 files. The set also contains a Text Companion Symbol font, called @code{tc},
4847 featuring many useful characters needed in text typesetting, for example
4848 oldstyle digits, currency symbols (including the newly created Euro symbol),
4849 the permille sign, copyright, trade mark and servicemark as well as a copyleft
4850 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
4851 EC fonts supersede the preliminary version released as the DC fonts. The
4852 fonts are available in (traced) Adobe Type 1 format, as part of the
4853 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
4854 set, Latin Modern, is not actually a direct development of the EC set, and
4855 differs from the EC in a number of particulars.")
4856 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
4857 texlive-2018.2/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
4859 ;; FIXME: the fonts should be built from source, but running "tex aefonts.tex"
4860 ;; fails with obscure TeX-typical error messages.
4861 (define-public texlive-ae
4863 (inherit (simple-texlive-package
4865 (list "/doc/fonts/ae/"
4867 "/fonts/tfm/public/ae/"
4868 "/fonts/vf/public/ae/"
4871 "1xkzg381y0avdq381r2m990wp27czkdff0qkvsp2n5q62yc0bdsw")
4873 (home-page "https://www.ctan.org/pkg/ae")
4874 (synopsis "Virtual fonts for T1 encoded CMR-fonts")
4876 "This package provides a set of virtual fonts which emulates T1 coded
4877 fonts using the standard CM fonts. The package name, AE fonts, supposedly
4878 stands for \"Almost European\". The main use of the package was to produce
4879 PDF files using Adobe Type 1 versions of the CM fonts instead of bitmapped EC
4880 fonts. Note that direct substitutes for the bitmapped EC fonts are available,
4881 via the CM-super, Latin Modern and (in a restricted way) CM-LGC font sets.")
4882 (license license:lppl1.3+)))
4884 (define-public texlive-times
4886 (inherit (simple-texlive-package
4888 (list "/dvips/times/"
4889 "/fonts/afm/adobe/times/"
4890 "/fonts/afm/urw/times/"
4891 "/fonts/tfm/adobe/times/"
4892 "/fonts/tfm/urw35vf/times/"
4893 "/fonts/type1/urw/times/"
4894 "/fonts/vf/adobe/times/"
4895 "/fonts/vf/urw35vf/times/"
4896 "/fonts/map/dvips/times/"
4897 "/tex/latex/times/")
4899 "13g41a7vbkvsf7ki9dgl7qm100w382mnlqkcngwgl3axp6s5s8l0")
4901 (home-page "https://ctan.org/pkg/urw-base35")
4902 (synopsis "URW Base 35 font pack for LaTeX")
4904 "This package provides a drop-in replacements for the Times font from
4905 Adobe's basic set.")
4906 ;; No license version specified.
4907 (license license:gpl3+)))
4909 (define-public texlive-fonts-adobe-times
4910 (deprecated-package "texlive-fonts-adobe-times" texlive-times))
4912 (define-public texlive-palatino
4914 (inherit (simple-texlive-package
4916 (list "/dvips/palatino/"
4917 "/fonts/afm/adobe/palatino/"
4918 "/fonts/afm/urw/palatino/"
4919 "/fonts/tfm/adobe/palatino/"
4920 "/fonts/tfm/urw35vf/palatino/"
4921 "/fonts/type1/urw/palatino/"
4922 "/fonts/vf/adobe/palatino/"
4923 "/fonts/vf/urw35vf/palatino/"
4925 "/fonts/map/dvips/palatino/"
4926 "/tex/latex/palatino/")
4928 "12jc0av7v99857jigmva47qaxyllhpzsnqis10n0qya2kz44xf22")
4930 (home-page "https://ctan.org/pkg/urw-base35")
4931 (synopsis "URW Base 35 font pack for LaTeX")
4933 "This package provides a drop-in replacements for the Palatino font from
4934 Adobe's basic set.")
4935 ;; No license version specified.
4936 (license license:gpl3+)))
4938 (define-public texlive-fonts-adobe-palatino
4939 (deprecated-package "texlive-fonts-adobe-palatino" texlive-palatino))
4941 (define-public texlive-zapfding
4943 (inherit (simple-texlive-package
4945 (list "/dvips/zapfding/"
4946 "/fonts/afm/adobe/zapfding/"
4947 "/fonts/afm/urw/zapfding/"
4948 "/fonts/tfm/adobe/zapfding/"
4949 "/fonts/tfm/urw35vf/zapfding/"
4950 "/fonts/type1/urw/zapfding/"
4951 "/fonts/map/dvips/zapfding/"
4952 "/tex/latex/zapfding/")
4954 "17mls8wilz9api9ivsbcczpiqp1f39qy8wa6ajssi8zhnc5lq7zn")
4956 (home-page "https://ctan.org/pkg/urw-base35")
4957 (synopsis "URW Base 35 font pack for LaTeX")
4959 "This package provides a drop-in replacements for the Zapfding font from
4960 Adobe's basic set.")
4961 ;; No license version specified.
4962 (license license:gpl3+)))
4964 (define-public texlive-fonts-adobe-zapfding
4965 (deprecated-package "texlive-fonts-adobe-zapfding" texlive-zapfding))
4967 (define-public texlive-fonts-rsfs
4969 (name "texlive-fonts-rsfs")
4970 (version (number->string %texlive-revision))
4974 (url (string-append "svn://www.tug.org/texlive/tags/"
4975 %texlive-tag "/Master/texmf-dist/"
4976 "/fonts/source/public/rsfs/"))
4977 (revision %texlive-revision)))
4978 (file-name (string-append name "-" version "-checkout"))
4981 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
4982 (build-system gnu-build-system)
4984 `(#:modules ((guix build gnu-build-system)
4988 #:tests? #f ; no tests
4990 (modify-phases %standard-phases
4993 (lambda* (#:key inputs #:allow-other-keys)
4994 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
4995 ;; Tell mf where to find mf.base
4996 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
4997 ;; Tell mf where to look for source files
4999 (string-append (getcwd) ":"
5000 mf "/share/texmf-dist/metafont/base:"
5001 (assoc-ref inputs "texlive-cm")
5002 "/share/texmf-dist/fonts/source/public/cm")))
5004 (for-each (lambda (font)
5005 (format #t "building font ~a\n" font)
5006 (invoke "mf" "-progname=mf"
5007 "-output-directory=build"
5012 "input " (basename font ".mf"))))
5013 (find-files "." "[0-9]+\\.mf$"))
5016 (lambda* (#:key outputs #:allow-other-keys)
5017 (let* ((out (assoc-ref outputs "out"))
5019 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
5021 out "/share/texmf-dist/fonts/source/public/rsfs")))
5022 (for-each (cut install-file <> tfm)
5023 (find-files "build" "\\.*"))
5024 (for-each (cut install-file <> mf)
5025 (find-files "." "\\.mf"))
5028 `(("texlive-bin" ,texlive-bin)
5029 ("texlive-metafont-base" ,texlive-metafont-base)
5030 ("texlive-cm" ,texlive-cm)))
5031 (home-page "https://www.ctan.org/pkg/rsfs")
5032 (synopsis "Ralph Smith's Formal Script font")
5034 "The fonts provide uppercase formal script letters for use as symbols in
5035 scientific and mathematical typesetting (in contrast to the informal script
5036 fonts such as that used for the calligraphic symbols in the TeX maths symbol
5037 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
5038 format. LaTeX support, for using these fonts in mathematics, is available via
5039 one of the packages @code{calrsfs} and @code{mathrsfs}.")
5040 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
5042 (define-public texlive-latex-eso-pic
5044 (name "texlive-latex-eso-pic")
5045 (version (number->string %texlive-revision))
5048 (uri (texlive-ref "latex" "eso-pic"))
5049 (file-name (string-append name "-" version "-checkout"))
5052 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
5053 (build-system texlive-build-system)
5054 (arguments '(#:tex-directory "latex/eso-pic"))
5055 (home-page "https://www.ctan.org/pkg/eso-pic")
5056 (synopsis "Add picture commands (or backgrounds) to every page")
5058 "The package adds one or more user commands to LaTeX's @code{shipout}
5059 routine, which may be used to place the output at fixed positions. The
5060 @code{grid} option may be used to find the correct places.")
5061 (license license:lppl1.3+)))
5063 (define-public texlive-latex-eepic
5065 (name "texlive-latex-eepic")
5066 (version (number->string %texlive-revision))
5070 (url (string-append "svn://www.tug.org/texlive/tags/"
5071 %texlive-tag "/Master/texmf-dist/"
5072 "/tex/latex/eepic"))
5073 (revision %texlive-revision)))
5074 (file-name (string-append name "-" version "-checkout"))
5077 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
5078 (build-system trivial-build-system)
5080 `(#:modules ((guix build utils))
5083 (use-modules (guix build utils))
5084 (let ((target (string-append (assoc-ref %outputs "out")
5085 "/share/texmf-dist/tex/latex/eepic")))
5087 (copy-recursively (assoc-ref %build-inputs "source") target)
5089 (home-page "https://www.ctan.org/pkg/eepic")
5090 (synopsis "Extensions to epic and the LaTeX drawing tools")
5092 "Extensions to @code{epic} and the LaTeX picture drawing environment,
5093 include the drawing of lines at any slope, the drawing of circles in any
5094 radii, and the drawing of dotted and dashed lines much faster with much less
5095 TeX memory, and providing several new commands for drawing ellipses, arcs,
5096 splines, and filled circles and ellipses. The package uses @code{tpic}
5097 @code{\\special} commands.")
5098 (license license:public-domain)))
5100 (define-public texlive-latex-enumitem
5102 (name "texlive-latex-enumitem")
5103 (version (number->string %texlive-revision))
5107 (url (string-append "svn://www.tug.org/texlive/tags/"
5108 %texlive-tag "/Master/texmf-dist/"
5109 "/tex/latex/enumitem"))
5110 (revision %texlive-revision)))
5111 (file-name (string-append name "-" version "-checkout"))
5114 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
5115 (build-system trivial-build-system)
5117 `(#:modules ((guix build utils))
5120 (use-modules (guix build utils))
5121 (let ((target (string-append (assoc-ref %outputs "out")
5122 "/share/texmf-dist/tex/latex/enumitem")))
5124 (copy-recursively (assoc-ref %build-inputs "source") target)
5126 (home-page "https://www.ctan.org/pkg/enumitem")
5127 (synopsis "Customize basic list environments")
5129 "This package is intended to ease customizing the three basic list
5130 environments: @code{enumerate}, @code{itemize} and @code{description}. It
5131 extends their syntax to allow an optional argument where a set of parameters
5132 in the form @code{key=value} are available, for example:
5133 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
5134 (license license:lppl1.3+)))
5136 (define-public texlive-latex-multirow
5138 (name "texlive-latex-multirow")
5139 (version (number->string %texlive-revision))
5142 (uri (texlive-ref "latex" "multirow"))
5143 (file-name (string-append name "-" version "-checkout"))
5146 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
5147 (build-system texlive-build-system)
5148 (arguments '(#:tex-directory "latex/multirow"))
5149 (home-page "https://www.ctan.org/pkg/multirow")
5150 (synopsis "Create tabular cells spanning multiple rows")
5152 "The package provides tools for creating tabular cells spanning multiple
5153 rows. It has a lot of flexibility, including an option for specifying an
5154 entry at the \"natural\" width of its text.")
5155 (license license:lppl1.3+)))
5157 (define-public texlive-latex-overpic
5159 (name "texlive-latex-overpic")
5160 (version (number->string %texlive-revision))
5164 (url (string-append "svn://www.tug.org/texlive/tags/"
5165 %texlive-tag "/Master/texmf-dist/"
5166 "/tex/latex/overpic"))
5167 (revision %texlive-revision)))
5168 (file-name (string-append name "-" version "-checkout"))
5171 "1rpx4ibjncj5416rg19v0xjbj3z9avhfdfn2gzp8r8sz9vz25c6g"))))
5172 (build-system trivial-build-system)
5174 `(#:modules ((guix build utils))
5177 (use-modules (guix build utils))
5178 (let ((target (string-append (assoc-ref %outputs "out")
5179 "/share/texmf-dist/tex/latex/overpic")))
5181 (copy-recursively (assoc-ref %build-inputs "source") target)
5183 (home-page "https://www.ctan.org/pkg/overpic")
5184 (synopsis "Combine LaTeX commands over included graphics")
5186 "The @code{overpic} environment is a cross between the LaTeX
5187 @code{picture} environment and the @code{\\includegraphics} command of
5188 @code{graphicx}. The resulting picture environment has the same dimensions as
5189 the included graphic. LaTeX commands can be placed on the graphic at defined
5190 positions; a grid for orientation is available.")
5191 (license license:lppl1.0+)))
5193 (define-public texlive-latex-parskip
5195 (name "texlive-latex-parskip")
5196 (version (number->string %texlive-revision))
5200 (url (string-append "svn://www.tug.org/texlive/tags/"
5201 %texlive-tag "/Master/texmf-dist/"
5202 "/tex/latex/parskip"))
5203 (revision %texlive-revision)))
5204 (file-name (string-append name "-" version "-checkout"))
5207 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
5208 (build-system trivial-build-system)
5210 `(#:modules ((guix build utils))
5213 (use-modules (guix build utils))
5214 (let ((target (string-append (assoc-ref %outputs "out")
5215 "/share/texmf-dist/tex/latex/parskip")))
5217 (copy-recursively (assoc-ref %build-inputs "source") target)
5219 (home-page "https://www.ctan.org/pkg/parskip")
5220 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
5222 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
5223 that is untidy; this package (though it is no substitute for a properly
5224 designed class) helps alleviate this untidiness.")
5225 (license license:lppl)))
5227 (define-public texlive-latex-pdfpages
5229 (name "texlive-latex-pdfpages")
5230 (version (number->string %texlive-revision))
5233 (uri (texlive-ref "latex" "pdfpages"))
5234 (file-name (string-append name "-" version "-checkout"))
5237 "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd"))))
5238 (build-system texlive-build-system)
5239 (arguments '(#:tex-directory "latex/pdfpages"))
5240 (home-page "https://www.ctan.org/pkg/pdfpages")
5241 (synopsis "Include PDF documents in LaTeX")
5243 "This package simplifies the inclusion of external multi-page PDF
5244 documents in LaTeX documents. Pages may be freely selected and it is possible
5245 to put several logical pages onto each sheet of paper. Furthermore a lot of
5246 hypertext features like hyperlinks and article threads are provided. The
5247 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
5248 use this package to insert PostScript files, in addition to PDF files.")
5249 (license license:lppl1.3+)))
5251 (define-public texlive-fonts-stmaryrd
5253 (name "texlive-fonts-stmaryrd")
5254 (version (number->string %texlive-revision))
5257 (uri (texlive-ref "fonts" "stmaryrd"))
5258 (file-name (string-append name "-" version "-checkout"))
5261 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
5262 (build-system texlive-build-system)
5264 '(#:tex-directory "latex/stmaryrd"
5266 (modify-phases %standard-phases
5267 (add-after 'configure 'patch-ins
5269 (substitute* "stmaryrd.ins"
5270 (("^%% LaTeX2e.*") "\\input docstrip\n")
5271 (("fontdef\\}\\}" line)
5272 (string-append line "\n\\endbatchfile")))
5274 (home-page "https://www.ctan.org/pkg/stmaryrd")
5275 (synopsis "St Mary Road symbols for theoretical computer science")
5277 "The fonts were originally distributed as Metafont sources only, but
5278 Adobe Type 1 versions are also now available. Macro support is provided for
5279 use under LaTeX; the package supports the @code{only} option (provided by the
5280 @code{somedefs} package) to restrict what is loaded, for those who don't need
5282 (license license:lppl)))
5284 (define-public texlive-latex-subfigure
5286 (name "texlive-latex-subfigure")
5287 (version (number->string %texlive-revision))
5290 (uri (texlive-ref "latex" "subfigure"))
5291 (file-name (string-append name "-" version "-checkout"))
5294 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
5295 (build-system texlive-build-system)
5296 (arguments '(#:tex-directory "latex/subfigure"))
5297 (home-page "https://www.ctan.org/pkg/subfigure")
5298 (synopsis "Figures divided into subfigures")
5300 "This (deprecated) package provides support for the manipulation and
5301 reference of small or \"sub\" figures and tables within a single figure or
5302 table environment. It is convenient to use this package when your subfigures
5303 are to be separately captioned, referenced, or are to be included in the
5304 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
5305 used inside a figure environment for each subfigure. An optional first
5306 argument is used as the caption for that subfigure. The package is now
5307 considered obsolete: it was superseded by @code{subfig}, but users may find
5308 the more recent @code{subcaption} package more satisfactory.")
5309 (license license:lppl)))
5311 (define-public texlive-latex-tabulary
5313 (name "texlive-latex-tabulary")
5314 (version (number->string %texlive-revision))
5317 (uri (texlive-ref "latex" "tabulary"))
5318 (file-name (string-append name "-" version "-checkout"))
5321 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
5322 (build-system texlive-build-system)
5323 (arguments '(#:tex-directory "latex/tabulary"))
5324 (home-page "https://www.ctan.org/pkg/tabulary")
5325 (synopsis "Tabular with variable width columns balanced")
5327 "The package defines a @code{tabular*}-like environment, @code{tabulary},
5328 taking a \"total width\" argument as well as the column specifications. The
5329 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
5330 variable width columns (@code{\\raggedright}, @code{\\centering},
5331 @code{\\raggedleft}, and normally justified). In contrast to
5332 @code{tabularx}'s @code{X} columns, the width of each column is weighted
5333 according to the natural width of the widest cell in the column.")
5334 (license license:lppl)))
5336 (define-public texlive-latex-threeparttable
5338 (name "texlive-latex-threeparttable")
5339 (version (number->string %texlive-revision))
5343 (url (string-append "svn://www.tug.org/texlive/tags/"
5344 %texlive-tag "/Master/texmf-dist/"
5345 "/tex/latex/threeparttable"))
5346 (revision %texlive-revision)))
5347 (file-name (string-append name "-" version "-checkout"))
5350 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
5351 (build-system trivial-build-system)
5353 `(#:modules ((guix build utils))
5356 (use-modules (guix build utils))
5357 (let ((target (string-append (assoc-ref %outputs "out")
5358 "/share/texmf-dist/tex/latex/threeparttable")))
5360 (copy-recursively (assoc-ref %build-inputs "source") target)
5362 (home-page "https://www.ctan.org/pkg/threeparttable")
5363 (synopsis "Tables with captions and notes all the same width")
5365 "This package facilitates tables with titles (captions) and notes. The
5366 title and notes are given a width equal to the body of the table (a
5367 @code{tabular} environment). By itself, a @code{threeparttable} does not
5368 float, but you can put it in a @code{table} or a @code{table*} or some other
5370 (license (license:fsf-free "file://threeparttable.sty"))))
5372 (define-public texlive-txfonts
5374 (inherit (simple-texlive-package
5376 (list "/doc/fonts/txfonts/"
5378 "/fonts/afm/public/txfonts/"
5379 "/fonts/tfm/public/txfonts/"
5380 "/fonts/type1/public/txfonts/"
5381 "/fonts/vf/public/txfonts/"
5383 "/fonts/map/dvips/txfonts/"
5384 "/fonts/enc/dvips/txfonts/"
5385 "/tex/latex/txfonts/")
5387 "017zjas5y1zlyq0iy4x6mv1qbz23xcy3y5xs0crj6zdnfvnccqgp")
5389 (home-page "https://www.ctan.org/pkg/txfonts")
5390 (synopsis "Times-like fonts in support of mathematics")
5392 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
5393 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
5394 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
5395 providing all the symbols of the Computer Modern and AMS fonts, including all
5396 the Greek capital letters from CMR; and additional maths fonts of various
5399 The set is complemented by a sans-serif set of text fonts, based on
5400 Helvetica/NimbusSanL, and a monospace set.
5402 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
5403 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
5404 ;; Any version of the GPL with font exception.
5405 (license license:gpl3+)))
5407 (define-public texlive-fonts-txfonts
5408 (deprecated-package "texlive-fonts-txfonts" texlive-txfonts))
5410 (define-public texlive-fonts-iwona
5412 (name "texlive-fonts-iwona")
5416 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
5417 (string-map (lambda (c)
5424 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
5425 (build-system trivial-build-system)
5427 `(#:modules ((guix build utils))
5430 (use-modules (guix build utils))
5431 (let ((target (string-append (assoc-ref %outputs "out")
5432 "/share/texmf-dist/"))
5433 (unzip (string-append (assoc-ref %build-inputs "unzip")
5435 (invoke unzip (assoc-ref %build-inputs "source"))
5437 (copy-recursively "iwona" target)
5440 `(("unzip" ,unzip)))
5441 (home-page "http://jmn.pl/en/kurier-i-iwona/")
5442 (synopsis "Sans-serif typeface for TeX")
5443 (description "Iwona is a two-element sans-serif typeface. It was created
5444 as an alternative version of the Kurier typeface, which was designed in 1975
5445 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
5446 supervision of Roman Tomaszewski. Kurier was designed for linotype
5447 typesetting of newspapers and similar periodicals. The Iwona fonts are an
5448 alternative version of the Kurier fonts. The difference lies in the absence
5449 of ink traps which typify the Kurier font.")
5450 (license license:gfl1.0)))
5452 (define-public texlive-latex-titlesec
5454 (name "texlive-latex-titlesec")
5455 (version (number->string %texlive-revision))
5459 (url (string-append "svn://www.tug.org/texlive/tags/"
5460 %texlive-tag "/Master/texmf-dist/"
5461 "/tex/latex/titlesec"))
5462 (revision %texlive-revision)))
5463 (file-name (string-append name "-" version "-checkout"))
5466 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
5467 (build-system trivial-build-system)
5469 `(#:modules ((guix build utils))
5472 (use-modules (guix build utils))
5473 (let ((target (string-append (assoc-ref %outputs "out")
5474 "/share/texmf-dist/tex/latex/titlesec")))
5476 (copy-recursively (assoc-ref %build-inputs "source") target)
5478 (home-page "https://www.ctan.org/pkg/titlesec")
5479 (synopsis "Select alternative section titles")
5481 "This package provides an interface to sectioning commands for selection
5482 from various title styles, e.g. for marginal titles and to change the font of
5483 all headings with a single command, also providing simple one-step page
5484 styles. It also includes a package to change the page styles when there are
5485 floats in a page. You may assign headers/footers to individual floats, too.")
5486 (license license:lppl)))
5488 (define-public texlive-latex-type1cm
5490 (name "texlive-latex-type1cm")
5491 (version (number->string %texlive-revision))
5494 (uri (texlive-ref "latex" "type1cm"))
5495 (file-name (string-append name "-" version "-checkout"))
5498 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
5499 (build-system texlive-build-system)
5500 (arguments '(#:tex-directory "latex/type1cm"))
5501 (home-page "https://www.ctan.org/pkg/type1cm")
5502 (synopsis "Arbitrary size font selection in LaTeX")
5504 "LaTeX, by default, restricts the sizes at which you can use its default
5505 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
5506 specified by Knuth). The @code{type1cm} package removes this restriction;
5507 this is particularly useful when using scalable versions of the CM
5508 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
5509 PCTeX, etc.). In fact, since modern distributions will automatically generate
5510 any bitmap font you might need, @code{type1cm} has wider application than just
5511 those using scalable versions of the fonts. Note that the LaTeX distribution
5512 now contains a package @code{fix-cm},f which performs the task of
5513 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
5515 (license license:lppl)))
5517 (define-public texlive-latex-lh
5519 (name "texlive-latex-lh")
5520 (version (number->string %texlive-revision))
5523 (uri (texlive-ref "latex" "lh"))
5524 (file-name (string-append name "-" version "-checkout"))
5527 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
5528 (build-system texlive-build-system)
5529 (arguments '(#:tex-directory "latex/lh"))
5530 (home-page "https://www.ctan.org/pkg/lh")
5531 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
5533 "The LH fonts address the problem of the wide variety of alphabets that
5534 are written with Cyrillic-style characters. The fonts are the original basis
5535 of the set of T2* and X2 encodings that are now used when LaTeX users need to
5536 write in Cyrillic languages. Macro support in standard LaTeX encodings is
5537 offered through the latex-cyrillic and t2 bundles, and the package itself
5538 offers support for other (more traditional) encodings. The fonts, in the
5539 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
5540 CM-Super family of fonts. The package also offers its own LaTeX support for
5541 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
5542 (license license:lppl)))
5544 (define-public texlive-metapost
5546 (name "texlive-metapost")
5547 (version (number->string %texlive-revision))
5551 (url (string-append "svn://www.tug.org/texlive/tags/"
5552 %texlive-tag "/Master/texmf-dist/"
5554 (revision %texlive-revision)))
5555 (file-name (string-append name "-" version "-checkout"))
5558 "0sf18pc6chgy26p9bxxn44xcqhzjrfb53jxjr2y7l3jb6xllhblq"))))
5559 (build-system trivial-build-system)
5561 `(#:modules ((guix build utils))
5564 (use-modules (guix build utils))
5565 (let ((target (string-append (assoc-ref %outputs "out")
5566 "/share/texmf-dist/metapost")))
5568 (copy-recursively (assoc-ref %build-inputs "source") target)
5570 (home-page "https://www.ctan.org/pkg/metapost")
5571 (synopsis "Create scalable illustrations")
5573 "MetaPost uses a language based on that of Metafont to produce precise
5574 technical illustrations. Its output is scalable PostScript or SVG, rather
5575 than the bitmaps Metafont creates.")
5576 (license license:lppl)))
5578 (define-public texlive-latex-acmart
5580 (name "texlive-latex-acmart")
5584 (uri (texlive-ref "latex" "acmart"))
5587 "0n62cs8dhcbn29y9ij1nnyigzr76yhk36kyahhqkkmvbafbys9s7"))
5588 (file-name (string-append name "-" version "-checkout"))))
5589 (build-system texlive-build-system)
5590 (arguments '(#:tex-directory "latex/acmart"))
5591 (home-page "https://www.ctan.org/pkg/acmart")
5592 (synopsis "Class for typesetting publications of ACM")
5594 "This package provides a class for typesetting publications of the
5595 Association for Computing Machinery (ACM).")
5596 (license license:lppl1.3+)))
5598 (define-public texlive-latex-varwidth
5600 (name "texlive-latex-varwidth")
5601 (version (number->string %texlive-revision))
5605 (url (string-append "svn://www.tug.org/texlive/tags/"
5606 %texlive-tag "/Master/texmf-dist/"
5607 "/tex/latex/varwidth"))
5608 (revision %texlive-revision)))
5609 (file-name (string-append name "-" version "-checkout"))
5612 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
5613 (build-system trivial-build-system)
5615 `(#:modules ((guix build utils))
5618 (use-modules (guix build utils))
5619 (let ((target (string-append (assoc-ref %outputs "out")
5620 "/share/texmf-dist/tex/latex/varwidth")))
5622 (copy-recursively (assoc-ref %build-inputs "source") target)
5624 (home-page "https://www.ctan.org/pkg/varwidth")
5625 (synopsis "Variable-width minipage")
5627 "The @code{varwidth} environment is superficially similar to
5628 @code{minipage}, but the specified width is just a maximum value — the box may
5629 get a narrower “natural” width.")
5630 (license license:lppl)))
5632 (define-public texlive-latex-wasysym
5634 (name "texlive-latex-wasysym")
5635 (version (number->string %texlive-revision))
5638 (uri (texlive-ref "latex" "wasysym"))
5639 (file-name (string-append name "-" version "-checkout"))
5642 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
5643 (build-system texlive-build-system)
5644 (arguments '(#:tex-directory "latex/wasysym"))
5645 (home-page "https://www.ctan.org/pkg/wasysym")
5646 (synopsis "LaTeX support file to use the WASY2 fonts")
5648 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
5649 like male and female symbols and astronomical symbols, as well as the complete
5650 lasy font set and other odds and ends. The wasysym package implements an easy
5651 to use interface for these symbols.")
5652 (license license:lppl)))
5654 (define-public texlive-latex-wrapfig
5656 (name "texlive-latex-wrapfig")
5657 (version (number->string %texlive-revision))
5661 (url (string-append "svn://www.tug.org/texlive/tags/"
5662 %texlive-tag "/Master/texmf-dist/"
5663 "/tex/latex/wrapfig"))
5664 (revision %texlive-revision)))
5665 (file-name (string-append name "-" version "-checkout"))
5668 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
5669 (build-system trivial-build-system)
5671 `(#:modules ((guix build utils))
5674 (use-modules (guix build utils))
5675 (let ((target (string-append (assoc-ref %outputs "out")
5676 "/share/texmf-dist/tex/latex/wrapfig")))
5678 (copy-recursively (assoc-ref %build-inputs "source") target)
5680 (home-page "https://www.ctan.org/pkg/wrapfig")
5681 (synopsis "Produces figures which text can flow around")
5683 "This package allows figures or tables to have text wrapped around them.
5684 It does not work in combination with list environments, but can be used in a
5685 @code{parbox} or @code{minipage}, and in two-column format.")
5686 (license license:lppl)))
5688 (define-public texlive-latex-ucs
5690 (name "texlive-latex-ucs")
5691 (version (number->string %texlive-revision))
5695 (url (string-append "svn://www.tug.org/texlive/tags/"
5696 %texlive-tag "/Master/texmf-dist/"
5698 (revision %texlive-revision)))
5699 (file-name (string-append name "-" version "-checkout"))
5702 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
5703 (build-system trivial-build-system)
5705 `(#:modules ((guix build utils))
5708 (use-modules (guix build utils))
5709 (let ((target (string-append (assoc-ref %outputs "out")
5710 "/share/texmf-dist/tex/latex/ucs")))
5712 (copy-recursively (assoc-ref %build-inputs "source") target)
5714 (home-page "https://www.ctan.org/pkg/ucs")
5715 (synopsis "Extended UTF-8 input encoding support for LaTeX")
5717 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
5718 together with a large number of support files. The @code{utf8x.def}
5719 definition file for use with @code{inputenc} covers a wider range of Unicode
5720 characters than does @code{utf8.def} in the LaTeX distribution. The package
5721 provides facilities for efficient use of its large sets of Unicode characters.
5722 Glyph production may be controlled by various options, which permits use of
5723 non-ASCII characters when coding mathematical formulae. Note that the bundle
5724 previously had an alias “unicode”; that alias has now been withdrawn, and no
5725 package of that name now exists.")
5726 (license license:lppl1.3+)))
5728 (define-public texlive-latex-preview
5730 (name "texlive-latex-preview")
5731 (version (number->string %texlive-revision))
5734 (uri (texlive-ref "latex" "preview"))
5735 (file-name (string-append name "-" version "-checkout"))
5738 "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6"))))
5739 (build-system texlive-build-system)
5741 '(#:tex-directory "latex/preview"
5743 (modify-phases %standard-phases
5744 (add-after 'unpack 'remove-generated-file
5746 (delete-file "preview.drv")
5748 (home-page "https://www.ctan.org/pkg/preview")
5749 (synopsis "Extract bits of a LaTeX source for output")
5751 "The main purpose of the preview package is the extraction of selected
5752 elements from a LaTeX source, like formulas or graphics, into separate
5753 pages of a DVI file. A flexible and convenient interface allows it to
5754 specify what commands and constructs should be extracted. This works
5755 with DVI files postprocessed by either Dvips and Ghostscript or
5756 dvipng, but it also works when you are using PDFTeX for generating PDF
5758 (license license:gpl3+)))
5760 (define-public texlive-latex-acronym
5762 (name "texlive-latex-acronym")
5763 (version (number->string %texlive-revision))
5766 (uri (texlive-ref "latex" "acronym"))
5767 (file-name (string-append name "-" version "-checkout"))
5770 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
5771 (build-system texlive-build-system)
5772 (arguments '(#:tex-directory "latex/acronym"))
5773 (home-page "https://www.ctan.org/pkg/acronym")
5774 (synopsis "Expand acronyms at least once")
5776 "This package ensures that all acronyms used in the text are spelled out
5777 in full at least once. It also provides an environment to build a list of
5778 acronyms used. The package is compatible with PDF bookmarks. The package
5779 requires the suffix package, which in turn requires that it runs under
5781 (license license:lppl1.3+)))
5783 (define-public texlive-generic-pdftex
5785 (name "texlive-generic-pdftex")
5786 (version (number->string %texlive-revision))
5790 (url (string-append "svn://www.tug.org/texlive/tags/"
5791 %texlive-tag "/Master/texmf-dist/"
5792 "/tex/generic/pdftex"))
5793 (revision %texlive-revision)))
5794 (file-name (string-append name "-" version "-checkout"))
5797 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
5798 (build-system trivial-build-system)
5800 `(#:modules ((guix build utils))
5803 (use-modules (guix build utils))
5804 (let ((target (string-append (assoc-ref %outputs "out")
5805 "/share/texmf-dist/tex/generic/pdftex"))
5806 (target-map (string-append (assoc-ref %outputs "out")
5807 "/share/texmf-dist/fonts/map/pdftex")))
5809 (copy-recursively (assoc-ref %build-inputs "source") target)
5810 (mkdir-p target-map)
5811 (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map)
5818 (url (string-append "svn://www.tug.org/texlive/tags/"
5819 %texlive-tag "/Master/texmf-dist/"
5820 "/fonts/map/pdftex"))
5821 (revision %texlive-revision)))
5822 (file-name (string-append name "-map-" version "-checkout"))
5825 "18jvcm0vwpg6wwzijvnb92xx78la45kkh71k6l44425krp2vnwm0"))))))
5826 (home-page "https://www.ctan.org/pkg/pdftex")
5827 (synopsis "TeX extension for direct creation of PDF")
5829 "This package provides an extension of TeX which can be configured to
5830 directly generate PDF documents instead of DVI.")
5831 (license license:gpl2+)))
5833 (define texlive-texmf
5835 (name "texlive-texmf")
5836 (version "20180414")
5837 (source texlive-texmf-src)
5838 (build-system gnu-build-system)
5840 `(("texlive-bin" ,texlive-bin)
5843 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5847 `(#:modules ((guix build gnu-build-system)
5851 ;; This package takes 4 GiB, which we can't afford to distribute from
5856 (modify-phases (map (cut assq <> %standard-phases)
5857 '(set-paths unpack patch-source-shebangs))
5858 (add-after 'unpack 'unset-environment-variables
5861 (unsetenv "TEXMFCNF")
5863 (add-after 'patch-source-shebangs 'install
5864 (lambda* (#:key outputs #:allow-other-keys)
5865 (let ((share (string-append (assoc-ref outputs "out") "/share")))
5867 (invoke "mv" "texmf-dist" share))))
5868 (add-after 'install 'texmf-config
5869 (lambda* (#:key inputs outputs #:allow-other-keys)
5870 (let* ((out (assoc-ref outputs "out"))
5871 (share (string-append out "/share"))
5872 (texmfroot (string-append share "/texmf-dist/web2c"))
5873 (texmfcnf (string-append texmfroot "/texmf.cnf"))
5874 (texlive-bin (assoc-ref inputs "texlive-bin"))
5875 (texbin (string-append texlive-bin "/bin"))
5876 (tlpkg (string-append texlive-bin "/share/tlpkg")))
5877 ;; Register SHARE as TEXMFROOT in texmf.cnf.
5878 (substitute* texmfcnf
5879 (("TEXMFROOT = \\$SELFAUTOPARENT")
5880 (string-append "TEXMFROOT = " share))
5881 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
5882 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
5883 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
5884 ;; Register paths in texmfcnf.lua, needed for context.
5885 (substitute* (string-append texmfroot "/texmfcnf.lua")
5886 (("selfautodir:") out)
5887 (("selfautoparent:") (string-append share "/")))
5888 ;; Set path to TeXLive Perl modules
5890 (string-append (getenv "PERL5LIB") ":" tlpkg))
5891 ;; Configure the texmf-dist tree; inspired from
5892 ;; http://slackbuilds.org/repository/13.37/office/texlive/
5893 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
5894 (setenv "TEXMFCNF" texmfroot)
5895 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
5897 (invoke "fmtutil-sys" "--all")))))))
5898 (properties `((max-silent-time . 9600))) ; don't time out while grafting
5899 (synopsis "TeX Live, a package of the TeX typesetting system")
5901 "TeX Live provides a comprehensive TeX document production system.
5902 It includes all the major TeX-related programs, macro packages, and fonts
5903 that are free software, including support for many languages around the
5906 This package contains the complete tree of texmf-dist data.")
5907 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
5908 (home-page "https://www.tug.org/texlive/")))
5910 (define-public texlive
5913 (version "20180414")
5915 (build-system trivial-build-system)
5916 (inputs `(("bash" ,bash) ; for wrap-program
5917 ("texlive-bin" ,texlive-bin)
5918 ("texlive-texmf" ,texlive-texmf)))
5919 (native-search-paths
5920 (list (search-path-specification
5921 (variable "TEXMFLOCAL")
5922 (files '("share/texmf-local")))))
5924 `(#:modules ((guix build utils))
5926 ;; Build the union of texlive-bin and texlive-texmf, but take the
5927 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
5929 (use-modules (guix build utils))
5930 (let ((out (assoc-ref %outputs "out"))
5931 (bin (assoc-ref %build-inputs "texlive-bin"))
5932 (texmf (assoc-ref %build-inputs "texlive-texmf"))
5933 (bash (assoc-ref %build-inputs "bash")))
5935 (with-directory-excursion out
5938 (symlink (string-append bin "/" name) name))
5941 (with-directory-excursion "bin"
5942 (setenv "PATH" (string-append bash "/bin"))
5945 (symlink name (basename name))
5949 (,(string-append texmf "/share/texmf-dist/web2c")))))
5950 (find-files (string-append bin "/bin/") "")))
5952 (with-directory-excursion "share"
5955 (symlink (string-append bin "/share/" name) name))
5956 '("info" "man" "tlpkg"))
5959 (symlink (string-append texmf "/share/" name) name))
5960 '("texmf-dist" "texmf-var"))))
5962 (synopsis "TeX Live, a package of the TeX typesetting system")
5964 "TeX Live provides a comprehensive TeX document production system.
5965 It includes all the major TeX-related programs, macro packages, and fonts
5966 that are free software, including support for many languages around the
5969 This package contains the complete TeX Live distribution.")
5970 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
5971 (home-page "https://www.tug.org/texlive/")))
5973 (define-public perl-text-bibtex
5975 (name "perl-text-bibtex")
5980 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
5984 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
5985 (build-system perl-build-system)
5988 (modify-phases %standard-phases
5989 (add-after 'unpack 'add-output-directory-to-rpath
5990 (lambda* (#:key outputs #:allow-other-keys)
5991 (substitute* "inc/MyBuilder.pm"
5993 (string-append "-Wl,-rpath="
5994 (assoc-ref outputs "out") "/lib " line)))
5996 (add-after 'unpack 'install-libraries-to-/lib
5997 (lambda* (#:key outputs #:allow-other-keys)
5998 (substitute* "Build.PL"
6002 `(("perl-capture-tiny" ,perl-capture-tiny)
6003 ("perl-config-autoconf" ,perl-config-autoconf)
6004 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
6005 ("perl-module-build" ,perl-module-build)))
6006 (home-page "https://metacpan.org/release/Text-BibTeX")
6007 (synopsis "Interface to read and parse BibTeX files")
6008 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
6009 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
6010 at many different levels: you may work with BibTeX entries as simple field to
6011 string mappings, or get at the original form of the data as a list of simple
6012 values (strings, macros, or numbers) pasted together.")
6013 (license license:perl-license)))
6015 (define-public biber
6022 (url "https://github.com/plk/biber/")
6023 (commit (string-append "v" version))))
6024 (file-name (git-file-name name version))
6025 ;; TODO: Patch awaiting inclusion upstream (see:
6026 ;; https://github.com/plk/biber/issues/239).
6027 (patches (search-patches "biber-fix-encoding-write.patch"))
6030 "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx"))))
6031 (build-system perl-build-system)
6034 (modify-phases %standard-phases
6035 (add-after 'install 'wrap-programs
6036 (lambda* (#:key outputs #:allow-other-keys)
6037 (let* ((out (assoc-ref outputs "out"))
6038 (perl5lib (getenv "PERL5LIB")))
6039 (wrap-program (string-append out "/bin/biber")
6040 `("PERL5LIB" ":" prefix
6041 (,(string-append perl5lib ":" out
6042 "/lib/perl5/site_perl")))))
6045 `(("perl-autovivification" ,perl-autovivification)
6046 ("perl-class-accessor" ,perl-class-accessor)
6047 ("perl-data-dump" ,perl-data-dump)
6048 ("perl-data-compare" ,perl-data-compare)
6049 ("perl-data-uniqid" ,perl-data-uniqid)
6050 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
6051 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
6052 ("perl-file-slurper" ,perl-file-slurper)
6053 ("perl-ipc-cmd" ,perl-ipc-cmd)
6054 ("perl-ipc-run3" ,perl-ipc-run3)
6055 ("perl-list-allutils" ,perl-list-allutils)
6056 ("perl-list-moreutils" ,perl-list-moreutils)
6057 ("perl-mozilla-ca" ,perl-mozilla-ca)
6058 ("perl-regexp-common" ,perl-regexp-common)
6059 ("perl-log-log4perl" ,perl-log-log4perl)
6060 ;; We cannot use perl-unicode-collate here, because otherwise the
6061 ;; hardcoded hashes in the tests would differ. See
6062 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
6063 ;;("perl-unicode-collate" ,perl-unicode-collate)
6064 ("perl-unicode-normalize" ,perl-unicode-normalize)
6065 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
6066 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
6067 ("perl-encode-jis2k" ,perl-encode-jis2k)
6068 ("perl-encode-hanextra" ,perl-encode-hanextra)
6069 ("perl-xml-libxml" ,perl-xml-libxml)
6070 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
6071 ("perl-xml-libxslt" ,perl-xml-libxslt)
6072 ("perl-xml-writer" ,perl-xml-writer)
6073 ("perl-sort-key" ,perl-sort-key)
6074 ("perl-text-csv" ,perl-text-csv)
6075 ("perl-text-csv-xs" ,perl-text-csv-xs)
6076 ("perl-text-roman" ,perl-text-roman)
6077 ("perl-uri" ,perl-uri)
6078 ("perl-text-bibtex" ,perl-text-bibtex)
6079 ("perl-libwww" ,perl-libwww)
6080 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
6081 ("perl-business-isbn" ,perl-business-isbn)
6082 ("perl-business-issn" ,perl-business-issn)
6083 ("perl-business-ismn" ,perl-business-ismn)
6084 ("perl-lingua-translit" ,perl-lingua-translit)))
6086 `(("perl-config-autoconf" ,perl-config-autoconf)
6087 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
6088 ("perl-module-build" ,perl-module-build)
6090 ("perl-file-which" ,perl-file-which)
6091 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
6092 ("perl-test-differences" ,perl-test-differences)))
6093 (home-page "http://biblatex-biber.sourceforge.net/")
6094 (synopsis "Backend for the BibLaTeX citation management tool")
6095 (description "Biber is a BibTeX replacement for users of biblatex. Among
6096 other things it comes with full Unicode support.")
6097 (license license:artistic2.0)))
6099 (define-public rubber
6105 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
6106 version "/+download/rubber-"
6108 (string-append "http://ebeffara.free.fr/pub/rubber-"
6109 version ".tar.gz")))
6112 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
6113 (build-system gnu-build-system)
6114 (arguments '(#:tests? #f)) ; no `check' target
6115 (inputs `(("texinfo" ,texinfo)
6116 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
6118 (home-page "https://launchpad.net/rubber")
6119 (synopsis "Wrapper for LaTeX and friends")
6121 "Rubber is a program whose purpose is to handle all tasks related to the
6122 compilation of LaTeX documents. This includes compiling the document itself,
6123 of course, enough times so that all references are defined, and running BibTeX
6124 to manage bibliographic references. Automatic execution of dvips to produce
6125 PostScript documents is also included, as well as usage of pdfLaTeX to produce
6127 (license license:gpl2+)))
6129 (define-public texmaker
6135 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
6136 version ".tar.bz2"))
6139 "0vrj9w5lk3vf6138n5bz8phmy3xp5kv4dq1rgirghcf4hbxdyx30"))))
6140 (build-system gnu-build-system)
6143 (modify-phases %standard-phases
6144 ;; Qt has its own configuration utility.
6146 (lambda* (#:key outputs #:allow-other-keys)
6147 (let ((out (assoc-ref outputs "out")))
6149 (string-append "PREFIX=" out)
6150 (string-append "DESKTOPDIR=" out "/share/applications")
6151 (string-append "ICONDIR=" out "/share/pixmaps")
6152 (string-append "METAINFODIR=" out "/share/metainfo")
6153 "texmaker.pro")))))))
6155 `(("poppler-qt5" ,poppler-qt5)
6157 ("qtscript" ,qtscript)
6158 ("qtwebkit" ,qtwebkit)
6161 `(("pkg-config" ,pkg-config)))
6162 (home-page "http://www.xm1math.net/texmaker/")
6163 (synopsis "LaTeX editor")
6164 (description "Texmaker is a program that integrates many tools needed to
6165 develop documents with LaTeX, in a single application.")
6166 (license license:gpl2+)))
6168 (define-public teximpatient
6170 (name "teximpatient")
6173 (method url-fetch/tarbomb)
6174 (uri (string-append "mirror://gnu/" name "/" name "-"
6178 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
6179 (build-system gnu-build-system)
6181 `(#:tests? #f ; there are none
6183 (modify-phases %standard-phases
6184 (add-after 'unpack 'fix-packaging-error
6185 (lambda* (#:key inputs #:allow-other-keys)
6186 ;; This file should have been part of the tarball.
6189 (assoc-ref inputs "automake")
6192 ;; Remove generated file.
6193 (delete-file "book.pdf")
6196 `(("texlive" ,(texlive-union (list texlive-amsfonts
6197 texlive-fonts-adobe-palatino
6198 texlive-fonts-adobe-zapfding
6199 texlive-fonts-knuth-lib
6200 texlive-fonts-mflogo-font
6201 texlive-generic-pdftex)))
6202 ("automake" ,automake)))
6203 (home-page "https://www.gnu.org/software/teximpatient/")
6204 (synopsis "Book on TeX, plain TeX and Eplain")
6205 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
6206 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
6208 (license license:fdl1.3+)))
6216 (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/"
6217 (version-major+minor version) ".x/"
6218 name "-" version ".tar.gz"))
6221 "0vr0qwis6rhind6azfa270hqxci7rj8qb1kk5x6lm80mc34nvrqi"))
6222 (modules '((guix build utils)))
6225 (delete-file-recursively "3rdparty")
6227 (build-system cmake-build-system)
6229 `(#:configure-flags `("-DLYX_USE_QT=QT5"
6230 "-DLYX_EXTERNAL_BOOST=1"
6233 ,(string-append "-DLYX_INSTALL_PREFIX="
6234 (assoc-ref %outputs "out")
6235 ;; Exact name and level is necessary.
6236 "/lyx" ,(version-major+minor version)))
6238 (modify-phases %standard-phases
6239 ;; See ;; https://www.lyx.org/trac/changeset/3a123b90af838b08680471d87170c38e56787df9/lyxgit
6240 (add-after 'unpack 'fix-compilation-with-boost-1.69
6242 (substitute* "src/support/FileName.cpp"
6243 (("^template struct boost::detail::crc_table_t.*") ""))
6245 (add-after 'unpack 'patch-python
6246 (lambda* (#:key inputs #:allow-other-keys)
6247 (substitute* '("src/support/os.cpp")
6250 (assoc-ref inputs "python")
6253 (add-after 'patch-python 'patch-desktop-file
6254 (lambda* (#:key outputs #:allow-other-keys)
6255 (substitute* "lib/lyx.desktop.in"
6257 (string-append "Exec="
6258 (assoc-ref outputs "out")
6261 (add-before 'check 'setenv-check
6263 ;; Create missing file that would cause tests to fail.
6264 (with-output-to-file (string-append "../lyx-"
6266 "/src/tests/check_layout.cmake")
6268 (setenv (string-append "LYX_DIR_"
6271 ,(version-major+minor version) #\-)) "x")
6272 (string-append (getcwd) "/../lyx-" ,version "/lib"))
6274 (add-after 'install 'install-symlinks
6275 (lambda* (#:key outputs #:allow-other-keys)
6276 (let ((out (assoc-ref outputs "out")))
6277 (mkdir-p (string-append out "/bin"))
6278 (symlink (string-append "../lyx" ,(version-major+minor version)
6279 "/bin/lyx" ,(version-major+minor version))
6280 (string-append out "/bin/lyx" ,(version-major+minor version)))
6284 ("hunspell" ,hunspell) ; Note: Could also use aspell instead.
6287 ("python" ,python-2)
6292 `(("texlive" ,(texlive-union (list texlive-fonts-ec)))))
6293 ;; FIXME: Python 3.7.0 cannot be used because the test infrastructure
6294 ;; "requires a bytes-like object, not 'str'". This may be fixed with
6295 ;; upgrades to Python.
6297 `(("python" ,python-2)
6298 ("pkg-config" ,pkg-config)
6300 (home-page "https://www.lyx.org/")
6301 (synopsis "Document preparation system with GUI")
6302 (description "LyX is a document preparation system. It excels at letting
6303 you create complex technical and scientific articles with mathematics,
6304 cross-references, bibliographies, indexes, etc. It is very good for working
6305 with documents of any length in which the usual processing abilities are
6306 required: automatic sectioning and pagination, spell checking and so forth.")
6307 (license license:gpl2+)))
6309 (define-public texlive-latex-media9
6311 (name "texlive-latex-media9")
6312 (version (number->string %texlive-revision))
6316 (url (string-append "svn://www.tug.org/texlive/tags/"
6317 %texlive-tag "/Master/texmf-dist/"
6318 "/tex/latex/media9"))
6319 (revision %texlive-revision)))
6320 (file-name (string-append name "-" version "-checkout"))
6323 "0lhb2h5hxjq9alpk4r3gvg21pwyifs4ah6hqzp92k55mkp1xv73j"))))
6324 (build-system trivial-build-system)
6326 `(#:modules ((guix build utils))
6329 (use-modules (guix build utils))
6330 (let ((target (string-append (assoc-ref %outputs "out")
6331 "/share/texmf-dist/tex/latex/media9")))
6333 (copy-recursively (assoc-ref %build-inputs "source") target)
6335 (home-page "https://www.ctan.org/pkg/media9")
6336 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
6338 "The package provides an interface to embed interactive Flash (SWF) and 3D
6339 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
6340 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
6341 compatibility. Playback of multimedia files uses the built-in Flash Player of
6342 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
6343 supports the efficient H.264 codec for video compression.
6345 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
6346 specification. It replaces the now obsolete @code{movie15} package.")
6347 (license license:lppl)))
6349 (define-public texlive-latex-ocgx2
6351 (name "texlive-latex-ocgx2")
6352 (version (number->string %texlive-revision))
6356 (url (string-append "svn://www.tug.org/texlive/tags/"
6357 %texlive-tag "/Master/texmf-dist/"
6358 "/tex/latex/ocgx2"))
6359 (revision %texlive-revision)))
6360 (file-name (string-append name "-" version "-checkout"))
6363 "0zp00jg058djx8xp0xqwas92y3j97clkyd8z6pqr890yqy06myqb"))))
6364 (build-system trivial-build-system)
6366 `(#:modules ((guix build utils))
6369 (use-modules (guix build utils))
6370 (let ((target (string-append (assoc-ref %outputs "out")
6371 "/share/texmf-dist/tex/latex/ogcx2")))
6373 (copy-recursively (assoc-ref %build-inputs "source") target)
6375 (home-page "https://www.ctan.org/pkg/ocgx2")
6376 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
6378 "This package provides OCG (Optional Content Groups) support within a PDF
6381 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
6382 @code{ocg-p} packages and adds support for all known engines and back-ends
6386 @item LaTeX → dvips → @code{ps2pdf}/Distiller
6387 @item (Xe)LaTeX(x) → @code{dvipdfmx}
6388 @item pdfLaTeX and LuaLaTeX .
6391 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
6392 (license license:lppl)))
6394 (define-public texlive-latex-ms
6396 (name "texlive-latex-ms")
6397 (version (number->string %texlive-revision))
6400 (uri (texlive-ref "latex" "ms"))
6401 (file-name (string-append name "-" version "-checkout"))
6404 "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s"))))
6405 (build-system texlive-build-system)
6407 '(#:tex-directory "latex/ms"
6408 #:tex-format "latex"))
6409 (home-page "https://ctan.org/pkg/ms")
6410 (synopsis "Various LATEX packages by Martin Schröder")
6412 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
6415 @item @command{count1to}, make use of fixed TEX counters;
6416 @item @command{everysel}, set commands to execute every time a font is selected;
6417 @item @command{everyshi}, set commands to execute whenever a page is shipped out;
6418 @item @command{multitoc}, typeset the table of contents in multiple columns;
6419 @item @command{prelim2e}, mark typeset pages as preliminary; and
6420 @item @command{ragged2e}, typeset ragged text and allow hyphenation.
6422 (license license:lppl1.3c+)))
6424 (define-public texlive-latex-needspace
6426 (name "texlive-latex-needspace")
6427 (version (number->string %texlive-revision))
6430 (uri (texlive-ref "latex" "needspace"))
6431 (file-name (string-append name "-" version "-checkout"))
6434 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
6435 (build-system texlive-build-system)
6437 '(#:tex-directory "latex/needspace"
6438 #:tex-format "latex"))
6440 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
6441 (home-page "https://www.ctan.org/pkg/needspace")
6442 (synopsis "Insert pagebreak if not enough space")
6444 "Provides commands to disable pagebreaking within a given vertical
6445 space. If there is not enough space between the command and the bottom of the
6446 page, a new page will be started.")
6447 (license license:lppl)))
6449 (define-public texlive-latex-changepage
6451 (name "texlive-latex-changepage")
6452 (version (number->string %texlive-revision))
6456 (uri (texlive-ref "latex" "changepage"))
6459 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
6460 (build-system texlive-build-system)
6462 '(#:tex-directory "latex/changepage"
6463 #:tex-format "latex"))
6465 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
6466 (home-page "https://www.ctan.org/pkg/changepage")
6467 (synopsis "Margin adjustment and detection of odd/even pages")
6469 "The package provides commands to change the page layout in the middle of
6470 a document, and to robustly check for typesetting on odd or even pages.
6471 Instructions for use are at the end of the file. The package is an extraction
6472 of code from the @code{memoir} class, whose user interface it shares.")
6473 (license license:lppl1.3+)))
6475 (define-public texlive-latex-eukdate
6477 (name "texlive-latex-eukdate")
6478 (version (number->string %texlive-revision))
6483 (url (string-append "svn://www.tug.org/texlive/tags/"
6484 %texlive-tag "/Master/texmf-dist/"
6485 "/tex/latex/eukdate"))
6486 (revision %texlive-revision)))
6487 (file-name (string-append name "-" version "-checkout"))
6490 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
6491 (build-system trivial-build-system)
6493 `(#:modules ((guix build utils))
6496 (use-modules (guix build utils))
6497 (let ((target (string-append (assoc-ref %outputs "out")
6498 "/share/texmf-dist/tex/latex/eukdate")))
6500 (copy-recursively (assoc-ref %build-inputs "source") target)
6502 (home-page "https://www.ctan.org/pkg/eukdate")
6503 (synopsis "UK format dates, with weekday")
6505 "The package is used to change the format of @code{\\today}’s date,
6506 including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
6507 is preferred in many parts of the world, as distinct from that which is used in
6508 @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
6509 (license license:lppl)))
6511 (define-public texlive-generic-ulem
6513 (name "texlive-generic-ulem")
6514 (version (number->string %texlive-revision))
6519 (url (string-append "svn://www.tug.org/texlive/tags/"
6520 %texlive-tag "/Master/texmf-dist/"
6521 "/tex/generic/ulem"))
6522 (revision %texlive-revision)))
6523 (file-name (string-append name "-" version "-checkout"))
6526 "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797"))))
6527 (build-system trivial-build-system)
6529 `(#:modules ((guix build utils))
6532 (use-modules (guix build utils))
6533 (let ((target (string-append (assoc-ref %outputs "out")
6534 "/share/texmf-dist/tex/generic/ulem")))
6536 (copy-recursively (assoc-ref %build-inputs "source") target)
6538 (home-page "https://www.ctan.org/pkg/ulem")
6539 (synopsis "Underline text in TeX")
6541 "The package provides an @code{\\ul} (underline) command which will break
6542 over line ends; this technique may be used to replace @code{\\em} (both in that
6543 form and as the @code{\\emph} command), so as to make output look as if it comes
6544 from a typewriter. The package also offers double and wavy underlining, and
6545 striking out (line through words) and crossing out (/// over words).")
6546 (license license:lppl1.3c+)))
6548 (define-public texlive-latex-pgf
6550 (name "texlive-latex-pgf")
6551 (version (number->string %texlive-revision))
6556 (url (string-append "svn://www.tug.org/texlive/tags/"
6557 %texlive-tag "/Master/texmf-dist/"
6559 (revision %texlive-revision)))
6560 (file-name (string-append name "-" version "-checkout"))
6563 "1dq8p10pz8wn0vx412m7d7d5gj1syxly3yqdqvf7lv2xl8zndn5h"))))
6564 (build-system trivial-build-system)
6566 `(("texlive-latex-pgf-generic"
6570 (url (string-append "svn://www.tug.org/texlive/tags/"
6571 %texlive-tag "/Master/texmf-dist/"
6572 "/tex/generic/pgf"))
6573 (revision %texlive-revision)))
6574 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
6577 "0xkxw26sjzr5npjpzpr28yygwdbhzpdd0hsk80gjpidhcxmz393i"))))))
6579 `(("texlive-latex-xcolor" ,texlive-latex-xcolor)))
6581 `(#:modules ((guix build utils))
6584 (use-modules (guix build utils))
6585 (let ((target-generic (string-append (assoc-ref %outputs "out")
6586 "/share/texmf-dist/tex/generic/pgf"))
6587 (target-latex (string-append (assoc-ref %outputs "out")
6588 "/share/texmf-dist/tex/latex/pgf")))
6589 (mkdir-p target-generic)
6590 (mkdir-p target-latex)
6591 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
6592 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
6594 (home-page "https://www.ctan.org/pkg/tikz")
6595 (synopsis "Create PostScript and PDF graphics in TeX")
6597 "PGF is a macro package for creating graphics. It is platform- and
6598 format-independent and works together with the most important TeX backend
6599 drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
6602 Its usage is similar to pstricks and the standard picture environment. PGF
6603 works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
6604 produce either PostScript or PDF output.")
6605 (license license:lppl1.3c+)))
6607 (define-public texlive-latex-koma-script
6609 (name "texlive-latex-koma-script")
6610 (version (number->string %texlive-revision))
6614 (url (string-append "svn://www.tug.org/texlive/tags/"
6615 %texlive-tag "/Master/texmf-dist/"
6616 "/tex/latex/koma-script"))
6617 (revision %texlive-revision)))
6618 (file-name (string-append name "-" version "-checkout"))
6621 "0nqwf0sr4mf3v9gqa6apv6ml2xhcdwax0vgyf12a672g7rpdyvgm"))))
6622 (build-system trivial-build-system)
6624 `(#:modules ((guix build utils)
6628 (use-modules (guix build utils)
6630 (let ((root (string-append (assoc-ref %outputs "out")
6631 "/share/texmf-dist/"))
6632 (pkgs '(("source" . "tex/latex/koma-script"))))
6633 (for-each (match-lambda
6635 (let ((target (string-append root dir)))
6637 (copy-recursively (assoc-ref %build-inputs pkg)
6641 (home-page "https://www.ctan.org/pkg/koma-script")
6642 (synopsis "Bundle of versatile classes and packages")
6644 "The KOMA-Script bundle provides replacements for the article, report, and
6645 book classes with emphasis on typography and versatility. There is also a
6648 The bundle also offers:
6651 @item a package for calculating type areas in the way laid down by the
6652 typographer Jan Tschichold,
6653 @item packages for easily changing and defining page styles,
6654 @item a package scrdate for getting not only the current date but also the name
6656 @item a package scrtime for getting the current time.
6659 All these packages may be used not only with KOMA-Script classes but also with
6660 the standard classes.
6662 Since every package has its own version number, the version number quoted only
6663 refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
6664 typearea (which are the main parts of the bundle).")
6665 (license license:lppl1.3+)))
6667 (define-public texlive-generic-listofitems
6669 (name "texlive-generic-listofitems")
6670 (version (number->string %texlive-revision))
6674 (url (string-append "svn://www.tug.org/texlive/tags/"
6675 %texlive-tag "/Master/texmf-dist/"
6676 "/tex/generic/listofitems"))
6677 (revision %texlive-revision)))
6678 (file-name (string-append name "-" version "-checkout"))
6681 "0hs28fc0v2l92ad9las9b8xcckyrdrwmyhcx1yzmbr6s7s6nvsx8"))))
6682 (build-system trivial-build-system)
6684 `(#:modules ((guix build utils))
6687 (use-modules (guix build utils))
6688 (let ((target (string-append (assoc-ref %outputs "out")
6689 "/share/texmf-dist/tex/generic/listofitems")))
6691 (copy-recursively (assoc-ref %build-inputs "source") target)
6693 (home-page "https://www.ctan.org/pkg/listofitems")
6694 (synopsis "Grab items in lists using user-specified separation character")
6696 "This package allows one to capture all the items of a list, for which
6697 the parsing character has been selected by the user, and to access any of
6698 these items with a simple syntax.")
6699 (license license:lppl1.3c+)))
6701 (define-public texlive-latex-readarray
6703 (name "texlive-latex-readarray")
6704 (version (number->string %texlive-revision))
6708 (url (string-append "svn://www.tug.org/texlive/tags/"
6709 %texlive-tag "/Master/texmf-dist/"
6710 "/tex/latex/readarray"))
6711 (revision %texlive-revision)))
6712 (file-name (string-append name "-" version "-checkout"))
6715 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
6716 (build-system trivial-build-system)
6718 `(#:modules ((guix build utils))
6721 (use-modules (guix build utils))
6722 (let ((target (string-append (assoc-ref %outputs "out")
6723 "/share/texmf-dist/tex/latex/readarray")))
6725 (copy-recursively (assoc-ref %build-inputs "source") target)
6728 `(("texlive-generic-listofitems" ,texlive-generic-listofitems)))
6729 (home-page "https://www.ctan.org/pkg/readarray")
6730 (synopsis "Read, store and recall array-formatted data")
6732 "This package allows the user to input formatted data into elements of a
6733 2-D or 3-D array and to recall that data at will by individual cell number.
6734 The data can be but need not be numerical in nature. It can be, for example,
6736 (license license:lppl1.3)))
6738 (define-public texlive-latex-verbatimbox
6740 (name "texlive-latex-verbatimbox")
6741 (version (number->string %texlive-revision))
6745 (url (string-append "svn://www.tug.org/texlive/tags/"
6746 %texlive-tag "/Master/texmf-dist/"
6747 "/tex/latex/verbatimbox"))
6748 (revision %texlive-revision)))
6749 (file-name (string-append name "-" version "-checkout"))
6752 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
6753 (build-system trivial-build-system)
6755 `(#:modules ((guix build utils))
6758 (use-modules (guix build utils))
6759 (let ((target (string-append (assoc-ref %outputs "out")
6760 "/share/texmf-dist/tex/latex/verbatimbox")))
6762 (copy-recursively (assoc-ref %build-inputs "source") target)
6765 `(("texlive-latex-readarray" ,texlive-latex-readarray)))
6766 (home-page "https://www.ctan.org/pkg/verbatimbox")
6767 (synopsis "Deposit verbatim text in a box")
6769 "The package provides a @code{verbbox} environment to place its contents
6770 into a globally available box, or into a box specified by the user. The
6771 global box may then be used in a variety of situations (for example, providing
6772 a replica of the @code{boxedverbatim} environment itself). A valuable use is
6773 in places where the standard @code{verbatim} environment (which is based on a
6774 @code{trivlist}) may not appear.")
6775 (license license:lppl1.3+)))
6777 (define-public texlive-latex-examplep
6779 (name "texlive-latex-examplep")
6780 (version (number->string %texlive-revision))
6784 (url (string-append "svn://www.tug.org/texlive/tags/"
6785 %texlive-tag "/Master/texmf-dist/"
6786 "/tex/latex/examplep"))
6787 (revision %texlive-revision)))
6788 (file-name (string-append name "-" version "-checkout"))
6791 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
6792 (build-system trivial-build-system)
6794 `(#:modules ((guix build utils))
6797 (use-modules (guix build utils))
6798 (let ((target (string-append (assoc-ref %outputs "out")
6799 "/share/texmf-dist/tex/latex/examplep")))
6801 (copy-recursively (assoc-ref %build-inputs "source") target)
6803 (home-page "https://www.ctan.org/pkg/examplep")
6804 (synopsis "Verbatim phrases and listings in LaTeX")
6806 "Examplep provides sophisticated features for typesetting verbatim source
6807 code listings, including the display of the source code and its compiled LaTeX
6808 or METAPOST output side-by-side, with automatic width detection and enabled
6809 page breaks (in the source), without the need for specifying the source twice.
6810 Special care is taken that section, page and footnote numbers do not interfere
6811 with the main document. For typesetting short verbatim phrases, a replacement
6812 for the @code{\\verb} command is also provided in the package, which can be
6813 used inside tables and moving arguments such as footnotes and section
6815 ;; No version of the GPL is specified.
6816 (license license:gpl3+)))
6818 (define-public texlive-xypic
6819 (let ((template (simple-texlive-package
6821 (list "/doc/generic/xypic/"
6822 "/dvips/xypic/xy389dict.pro"
6823 "/fonts/enc/dvips/xypic/"
6824 "/fonts/map/dvips/xypic/xypic.map"
6826 "/fonts/source/public/xypic/"
6827 "/fonts/afm/public/xypic/"
6828 "/fonts/tfm/public/xypic/"
6829 "/fonts/type1/public/xypic/"
6831 ;;"/tex/generic/xypic/" ; I guess these are generated
6834 "0sqkkvjzzsiazvh8803qqyrcv4is3m1qs9x9v2m35jjikbqc08y8"))))
6838 (substitute-keyword-arguments (package-arguments template)
6839 ((#:tex-directory _ #t)
6840 "tex/generic/xypic")
6842 `(modify-phases ,phases
6843 (delete 'reset-gzip-timestamps)))))
6844 (home-page "https://www.ctan.org/pkg/xypic")
6845 (synopsis "Flexible diagramming macros")
6846 (description "This is a package for typesetting a variety of graphs and
6847 diagrams with TeX. Xy-pic works with most formats (including LaTeX,
6848 AMS-LaTeX, AMS-TeX, and plain TeX). The distribution includes Michael Barr's
6849 @code{diag} package, which was previously distributed stand-alone.")
6850 (license license:gpl3+))))
6852 (define-public texlive-fonts-xypic
6853 (deprecated-package "texlive-fonts-xypic" texlive-xypic))
6855 (define-public texlive-generic-xypic
6856 (deprecated-package "texblive-generic-xypic" texlive-xypic))
6858 (define-public texlive-bibtex
6860 (name "texlive-bibtex")
6861 (version (number->string %texlive-revision))
6866 (url (string-append "svn://www.tug.org/texlive/tags/"
6867 %texlive-tag "/Master/texmf-dist/"
6869 (revision %texlive-revision)))
6870 (file-name (string-append name "-" version "-checkout"))
6873 "0hnbs0s1znbn32hfcsyijl39z81sdb00jf092a4blqz421qs2mbv"))))
6874 (build-system trivial-build-system)
6876 `(#:modules ((guix build utils))
6879 (use-modules (guix build utils))
6880 (let ((target (string-append (assoc-ref %outputs "out")
6881 "/share/texmf-dist/bibtex")))
6883 (copy-recursively (assoc-ref %build-inputs "source") target)
6885 (home-page "https://www.ctan.org/pkg/bibtex")
6886 (synopsis "Process bibliographies for LaTeX")
6888 "BibTeX allows the user to store his citation data in generic form, while
6889 printing citations in a document in the form specified by a BibTeX style, to
6890 be specified in the document itself (one often needs a LaTeX citation-style
6891 package, such as @command{natbib} as well).")
6892 (license license:knuth)))
6894 (define-public texlive-charter
6896 (inherit (simple-texlive-package
6898 (list "/doc/fonts/charter/readme.charter"
6899 "/fonts/afm/bitstrea/charter/"
6900 "/fonts/tfm/bitstrea/charter/"
6901 "/fonts/type1/bitstrea/charter/"
6902 "/fonts/vf/bitstrea/charter/")
6904 "09l5ymgz48s3hyn776l01g3isk3dnhrj1vdavdw4qq4kfxxpqdn9")
6906 (home-page "https://www.ctan.org/pkg/charter")
6907 (synopsis "Charter fonts for TeX")
6908 (description "This package provides a copy of the Charter Type-1 fonts
6909 which Bitstream contributed to the X consortium, renamed for use with TeX.
6910 Support for use with LaTeX is available in @code{freenfss}, part of
6911 @command{psnfss}. ")
6912 (license (license:non-copyleft
6913 "http://mirrors.ctan.org/fonts/charter/readme.charter"))))
6915 (define-public texlive-fonts-charter
6916 (deprecated-package "texlive-fonts-charter" texlive-charter))
6918 (define-public texlive-context-base
6920 (name "texlive-context-base")
6921 (version (number->string %texlive-revision))
6925 (url (string-append "svn://www.tug.org/texlive/tags/"
6926 %texlive-tag "/Master/texmf-dist/"
6927 "/tex/context/base"))
6928 (revision %texlive-revision)))
6929 (file-name (string-append name "-" version "-checkout"))
6932 "0rlx4qqijms1n64gjx475kvip8l322fh7v17zkmwp1l1g0w3vlyz"))))
6933 (build-system trivial-build-system)
6935 `(#:modules ((guix build utils))
6938 (use-modules (guix build utils))
6939 (let ((target (string-append (assoc-ref %outputs "out")
6940 "/share/texmf-dist/tex/context/case")))
6942 (copy-recursively (assoc-ref %build-inputs "source") target)
6944 (home-page "https://www.ctan.org/pkg/context")
6945 (synopsis "Full featured, parameter driven macro package for TeX")
6946 (description "A full featured, parameter driven macro package, which fully
6947 supports advanced interactive documents. See the ConTeXt garden for a wealth
6948 of support information.")
6949 (license license:gpl2+)))
6951 (define-public texlive-beamer
6953 (inherit (simple-texlive-package
6955 (list "/doc/latex/beamer/"
6956 "/tex/latex/beamer/")
6958 "00z1a32wkz1ffif7dc8h3ar2fn2hlvfnljgim2szjam2k14l82x3")
6961 `(("texlive-latex-hyperref" ,texlive-latex-hyperref)
6962 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
6963 ("texlive-latex-etoolbox" ,texlive-latex-etoolbox)
6964 ("texlive-latex-pgf" ,texlive-latex-pgf)))
6965 (home-page "https://www.ctan.org/pkg/beamer")
6966 (synopsis "LaTeX class for producing presentations and slides")
6967 (description "The beamer LaTeX class can be used for producing slides.
6968 The class works in both PostScript and direct PDF output modes, using the
6969 @code{pgf} graphics system for visual effects. Content is created in the
6970 @code{frame} environment, and each frame can be made up of a number of slides
6971 using a simple notation for specifying material to appear on each slide within
6972 a frame. Short versions of title, authors, institute can also be specified as
6973 optional parameters. Whole frame graphics are supported by plain frames. The
6974 class supports @code{figure} and @code{table} environments, transparency
6975 effects, varying slide transitions and animations.")
6976 ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is
6977 ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+.
6978 (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+))))
6980 (define-public texlive-latex-beamer
6981 (deprecated-package "texlive-latex-beamer" texlive-beamer))
6983 (define-public texlive-latex-xmpincl
6985 (name "texlive-latex-xmpincl")
6986 (version (number->string %texlive-revision))
6990 (uri (texlive-ref "latex" "xmpincl"))
6993 "0lq3dfb4fsw955gjwllnk7cg00ciq5mva64mlpbva6g2jz117734"))))
6994 (build-system texlive-build-system)
6995 (arguments '(#:tex-directory "latex/xmpincl"))
6996 (home-page "http://www.ctan.org/pkg/xmpincl")
6997 (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX")
6999 "The XMP (eXtensible Metadata platform) is a framework to add metadata to
7000 digital material to enhance the workflow in publication. The essence is that
7001 the metadata is stored in an XML file, and this XML stream is then embedded in
7002 the file to which it applies.")
7003 (license license:gpl3+)))
7005 (define-public texlive-latex-pdfx
7007 (name "texlive-latex-pdfx")
7008 (version (number->string %texlive-revision))
7012 (uri (texlive-ref "latex" "pdfx"))
7015 "0ikxg8yzq78hy5b9x13d4nah46d0yvmwlqmdri06pygbx116dcac"))))
7016 (build-system texlive-build-system)
7018 '(#:tex-directory "latex/pdfx"
7020 (modify-phases %standard-phases
7021 (add-after 'unpack 'fix-encoding
7023 (substitute* "pdfx.dtx"
7024 ((" .+umaczy") "umaczy"))
7026 (add-before 'install 'install-tex-files
7027 (lambda* (#:key inputs outputs #:allow-other-keys)
7028 (let ((target (string-append (assoc-ref outputs "out")
7029 "/share/texmf-dist/tex/latex/pdfx")))
7031 (copy-recursively (assoc-ref inputs "texlive-tex-pdfx") target)
7032 ;; Install the generated version in the "install" phase.
7033 (delete-file (string-append target "/pdfx.sty"))
7036 `(("texlive-generic-pdftex" ,texlive-generic-pdftex)))
7038 `(("texlive-tex-pdfx"
7042 (url (string-append "svn://www.tug.org/texlive/tags/"
7043 %texlive-tag "/Master/texmf-dist/"
7045 (revision %texlive-revision)))
7046 (file-name (string-append "texlive-tex-latex-pdfx-" version "-checkout"))
7049 "14j1zsvqc59ims3sk34v6km8db6cimks28y5fcxcr5mi2ykvj4vf"))))))
7050 (home-page "https://www.ctan.org/pkg/pdfx")
7051 (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX")
7053 "This package helps LaTeX users to create PDF/X, PFD/A and other
7054 standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.")
7055 (license license:lppl1.2+)))