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 web)
70 #:use-module (gnu packages xml)
71 #:use-module (gnu packages xorg)
72 #:use-module (gnu packages xdisorg)
73 #:autoload (gnu packages texinfo) (texinfo)
74 #:use-module (ice-9 ftw)
75 #:use-module (ice-9 match)
76 #:use-module ((srfi srfi-1) #:hide (zip)))
78 (define* (simple-texlive-package name locations hash
80 "Return a template for a simple TeX Live package with the given NAME,
81 downloading from a list of LOCATIONS in the TeX Live repository, and expecting
82 the provided output HASH. If TRIVIAL? is provided, all files will simply be
83 copied to their outputs; otherwise the TEXLIVE-BUILD-SYSTEM is used."
84 (define with-documentation?
86 (any (lambda (location)
87 (string-prefix? "/doc" location))
91 (version (number->string %texlive-revision))
92 (source (texlive-origin name version
94 (outputs (if with-documentation?
97 (build-system (if trivial?
99 texlive-build-system))
102 `(lambda* (#:key outputs inputs #:allow-other-keys)
103 (let (,@(if with-documentation?
104 `((doc (string-append (assoc-ref outputs "doc")
105 "/share/texmf-dist/")))
107 (out (string-append (assoc-ref outputs "out")
108 "/share/texmf-dist/")))
109 ,@(if with-documentation?
112 (string-append (assoc-ref inputs "source") "/doc")
113 (string-append doc "/doc")))
116 (copy-recursively (assoc-ref inputs "source") out)
117 ,@(if with-documentation?
118 '((delete-file-recursively (string-append out "/doc")))
124 (modify-phases %standard-phases
126 (replace 'build (const #t))
127 (replace 'install ,copy-files)))
129 (modify-phases %standard-phases
130 (add-after 'install 'copy-files ,copy-files))))))
136 (define hyph-utf8-scripts
139 (uri (texlive-ref "generic" "hyph-utf8"))
140 (file-name (string-append "hyph-utf8-scripts-"
141 (number->string %texlive-revision)
145 "1ix8h637hwhz4vrdhilf84kzzdza0wi8fp26nh7iws0bq08sl517"))))
147 (define (texlive-hyphen-package name code locations hash)
148 (let ((parent (simple-texlive-package
149 name locations hash #:trivial? #t)))
153 (substitute-keyword-arguments (package-arguments parent)
155 '((guix build gnu-build-system)
159 `(modify-phases ,phases
161 (lambda* (#:key inputs outputs #:allow-other-keys)
162 (let* ((out (assoc-ref outputs "out"))
163 (root (string-append out "/share/texmf-dist"))
165 (string-append root "/tex/generic/hyph-utf8/patterns/txt/"))
167 (string-append root "/tex/generic/hyph-utf8/loadhyph"))
169 (string-append root "/tex/generic/hyph-utf8/patterns/ptex"))
173 (format #f "\nlanguages.select!{|l| l.code == \"~a\"}\n" ',code))
175 (format #f "\nlanguages.select!{|l| [~{\"~a\",~}].include? l.code }\n" ',code)))))
178 (assoc-ref inputs "hyph-utf8-scripts") "scripts")
180 ;; Prepare target directories
185 ;; Generate plain patterns
186 (with-directory-excursion "scripts"
187 (substitute* "languages.rb"
188 (("../../../tex/generic/") "../tex/generic/"))
189 (substitute* "generate-plain-patterns.rb"
190 ;; Ruby 2 does not need this.
191 (("require 'unicode'") "")
192 (("Unicode.upcase\\(ch\\)") "ch.upcase")
193 ;; Write directly to the output directory
194 (("\\$path_root=File.*")
195 (string-append "$path_root=\"" out "/share/texmf-dist/\"\n"))
196 ;; Create quote directory when needed
197 (("f = File.open\\(\"#\\{\\$path_quote\\}" m)
198 (string-append "require 'fileutils'; FileUtils.mkdir_p $path_quote;" m))
199 ;; Only generate patterns for this language.
201 (string-append m filter-expression)))
202 (invoke "ruby" "generate-plain-patterns.rb")
204 ;; Build pattern loaders
205 (substitute* "generate-pattern-loaders.rb"
206 (("\\$path_tex_generic=File.*")
207 (string-append "$path_tex_generic=\"" root "/tex/generic\"\n"))
208 ;; Only generate loader for this language.
210 (string-append m filter-expression)))
211 (invoke "ruby" "generate-pattern-loaders.rb")
213 ;; Build ptex patterns
214 (substitute* "generate-ptex-patterns.rb"
215 (("\\$path_root=File.*")
216 (string-append "$path_root=\"" root "\"\n"))
217 ;; Only generate ptex patterns for this language.
219 (string-append m filter-expression)))
220 (invoke "ruby" "generate-ptex-patterns.rb")))))))))
223 ("hyph-utf8-scripts" ,hyph-utf8-scripts)))
224 (home-page "https://ctan.org/pkg/hyph-utf8"))))
226 (define texlive-extra-src
229 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-extra.tar.xz")
231 "0a83kymxc8zmlxjb0y1gf6mx7qnf0hxffwkivwh5yh138y2rfhsv"))))
233 (define texlive-texmf-src
236 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-texmf.tar.xz")
238 "1b8zigzg8raxkhhzphcmynf84rbdbj2ym2qkz24v8n0qx82zmqms"))))
240 (define-public texlive-bin
247 (uri (string-append "ftp://tug.org/historic/systems/texlive/2018/"
248 "texlive-" version "-source.tar.xz"))
251 "0khyi6h015r2zfqgg0a44a2j7vmr1cy42knw7jbss237yvakc07y"))
254 (lambda (name revision hash)
257 (uri (string-append "https://git.archlinux.org/svntogit/packages.git"
258 "/plain/trunk/" name "?h=packages/texlive-bin"
260 (file-name (string-append "texlive-bin-" name))
261 (sha256 (base32 hash)))))
262 (arch-revision "e1975bce0b9d270d7c9773c5beb7e87d61ee8f57"))
263 (append (search-patches "texlive-bin-CVE-2018-17407.patch"
264 "texlive-bin-luatex-poppler-compat.patch")
266 (arch-patch "pdftex-poppler0.72.patch" arch-revision
267 "0p46b6xxxg2s3hx67r0wpz16g3qygx65hpc581xs3jz5pvsiq3y7")
268 (arch-patch "xetex-poppler-fixes.patch" arch-revision
269 "1jj1p5zkjljb7id9pjv29cw0cf8mwrgrh4ackgzz9c200vaqpsvx")))))))
270 (build-system gnu-build-system)
272 `(("texlive-extra-src" ,texlive-extra-src)
274 ("fontconfig" ,fontconfig)
275 ("fontforge" ,fontforge)
276 ("freetype" ,freetype)
279 ("ghostscript" ,ghostscript)
280 ("graphite2" ,graphite2)
281 ("harfbuzz" ,harfbuzz)
283 ("libpaper" ,libpaper)
292 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
297 ("zziplib" ,zziplib)))
299 `(("pkg-config" ,pkg-config)))
301 `(#:out-of-source? #t
303 `("--disable-native-texlive-build"
304 ;; XXX: This is needed because recent Poppler requires C++11 or later.
305 ;; Remove after switch to GCC >= 6.
306 "CXXFLAGS=-std=gnu++11"
307 "--with-system-cairo"
308 "--with-system-freetype2"
311 "--with-system-graphite2"
312 "--with-system-harfbuzz"
314 "--with-system-libgs"
315 "--with-system-libpaper"
316 "--with-system-libpng"
318 "--with-system-pixman"
319 "--with-system-poppler"
320 "--with-system-potrace"
321 "--with-system-teckit"
324 "--with-system-zziplib")
326 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
327 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
328 #:tests? ,(let ((s (or (%current-target-system)
330 (not (or (string-prefix? "aarch64" s)
331 (string-prefix? "mips64" s))))
333 (modify-phases %standard-phases
334 (add-after 'unpack 'configure-ghostscript-executable
335 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
336 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
337 ;; checking for the existence of the /usr/bin directory. Since
338 ;; Guix System does not have /usr/bin, it is also detected as Windows.
339 (lambda* (#:key inputs #:allow-other-keys)
340 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
342 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
344 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
346 (add-after 'unpack 'use-code-for-new-poppler
348 (copy-file "texk/web2c/pdftexdir/pdftoepdf-poppler0.72.0.cc"
349 "texk/web2c/pdftexdir/pdftoepdf.cc")
350 (copy-file "texk/web2c/pdftexdir/pdftosrc-poppler0.72.0.cc"
351 "texk/web2c/pdftexdir/pdftosrc.cc")
353 (add-after 'unpack 'disable-failing-test
355 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
356 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
357 (substitute* "texk/web2c/omegafonts/check.test"
358 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
359 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))
361 (add-after 'install 'postint
362 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
363 (let* ((out (assoc-ref outputs "out"))
364 (share (string-append out "/share"))
365 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
366 (unpack (assoc-ref %standard-phases 'unpack))
367 (patch-source-shebangs
368 (assoc-ref %standard-phases 'patch-source-shebangs)))
369 (substitute* (string-append share "/texmf-dist/web2c/texmf.cnf")
370 ;; Don't truncate lines.
371 (("^error_line = .*$") "error_line = 254\n")
372 (("^half_error_line = .*$") "half_error_line = 238\n")
373 (("^max_print_line = .*$") "max_print_line = 1000\n"))
374 ;; Create symbolic links for the latex variants and their
376 (with-directory-excursion (string-append out "/bin/")
378 '("pdftex" "pdftex" "xetex" "luatex")
379 '("latex" "pdflatex" "xelatex" "lualatex")))
380 (with-directory-excursion (string-append share "/man/man1/")
381 (symlink "luatex.1" "lualatex.1"))
382 ;; Unpack texlive-extra and install tlpkg.
383 (mkdir "texlive-extra")
384 (with-directory-excursion "texlive-extra"
385 (apply unpack (list #:source texlive-extra))
386 (apply patch-source-shebangs (list #:source texlive-extra))
387 (invoke "mv" "tlpkg" share))
388 ;; texlua shebangs are not patched by the patch-source-shebangs
389 ;; phase because the texlua executable does not exist at that
391 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
392 (with-directory-excursion out
393 (patch-source-shebangs))))))))
395 (list (search-path-specification
397 (files '("share/texmf-dist"))
399 (search-path-specification
400 (variable "TEXMFCNF")
401 (files '("share/texmf-dist/web2c"))
403 (synopsis "TeX Live, a package of the TeX typesetting system")
405 "TeX Live provides a comprehensive TeX document production system.
406 It includes all the major TeX-related programs, macro packages, and fonts
407 that are free software, including support for many languages around the
410 This package contains the binaries.")
411 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
412 (home-page "https://www.tug.org/texlive/")))
415 (define-public texlive-unicode-data
417 (inherit (simple-texlive-package
418 "texlive-unicode-data"
419 (list "/tex/generic/unicode-data/"
420 "/doc/generic/unicode-data/")
422 "1j63kz29arfiydb8r1a53q1r4zyk1yjbcq0w9i93zddczgqzgbfb")
424 (home-page "https://www.ctan.org/pkg/unicode-data")
425 (synopsis "Unicode data and loaders for TeX")
426 (description "This bundle provides generic access to Unicode Consortium
427 data for TeX use. It contains a set of text files provided by the Unicode
428 Consortium which are currently all from Unicode 8.0.0, with the exception of
429 @code{MathClass.txt} which is not currently part of the Unicode Character
430 Database. Accompanying these source data are generic TeX loader files
431 allowing this data to be used as part of TeX runs, in particular in building
432 format files. Currently there are two loader files: one for general character
433 set up and one for initializing XeTeX character classes as has been carried
434 out to date by @code{unicode-letters.tex}. ")
435 (license license:lppl1.3c+)))
437 (define-public texlive-generic-unicode-data
438 (deprecated-package "texlive-generic-unicode-data" texlive-unicode-data))
440 (define-public texlive-dvips
442 (name "texlive-dvips")
443 (version (number->string %texlive-revision))
447 (url (string-append "svn://www.tug.org/texlive/tags/"
448 %texlive-tag "/Master/texmf-dist/"
450 (revision %texlive-revision)))
451 (file-name (string-append name "-" version "-checkout"))
454 "1ky6wc173jhf0b33lhyb4r3bx1d4bmiqkn6y1hxn92kwjdzl42p7"))))
455 (build-system trivial-build-system)
457 `(#:modules ((guix build utils))
460 (use-modules (guix build utils))
461 (let* ((root (string-append (assoc-ref %outputs "out")
462 "/share/texmf-dist"))
463 (dvips (string-append root "/dvips"))
464 (maps (string-append root "/fonts/map/dvips"))
465 (encs (string-append root "/fonts/enc/dvips/base")))
467 (copy-recursively (assoc-ref %build-inputs "source") dvips)
469 (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps)
471 (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs)
478 (url (string-append "svn://www.tug.org/texlive/tags/"
479 %texlive-tag "/Master/texmf-dist/"
481 (revision %texlive-revision)))
482 (file-name (string-append "dvips-font-maps-" version "-checkout"))
485 "0nxvfbb5vsvakiw0iviicghdc2sxk05cj056ilqnpa62fffc36a6"))))
490 (url (string-append "svn://www.tug.org/texlive/tags/"
491 %texlive-tag "/Master/texmf-dist/"
492 "/fonts/enc/dvips/base"))
493 (revision %texlive-revision)))
494 (file-name (string-append "dvips-base-enc-" version "-checkout"))
497 "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy"))))))
498 (home-page "https://www.ctan.org/pkg/dvips")
499 (synopsis "DVI to PostScript drivers")
500 (description "This package provides files needed for converting DVI files
502 ;; Various free software licenses apply to individual files.
503 (license (list license:lppl1.3c+
507 (define-public texlive-generic-dehyph-exptl
509 (name "texlive-generic-dehyph-exptl")
510 (version (number->string %texlive-revision))
514 (url (string-append "svn://www.tug.org/texlive/tags/"
515 %texlive-tag "/Master/texmf-dist/"
516 "/tex/generic/dehyph-exptl"))
517 (revision %texlive-revision)))
518 (file-name (string-append name "-" version "-checkout"))
521 "03yj1di9py92drp6gpfva6q69vk2iixr79r7cp7ja570s3pr0m33"))))
522 (build-system trivial-build-system)
524 `(#:modules ((guix build utils))
527 (use-modules (guix build utils))
528 (let ((target (string-append (assoc-ref %outputs "out")
529 "/share/texmf-dist/tex/generic/dehyph-exptl")))
531 (copy-recursively (assoc-ref %build-inputs "source") target)
533 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
534 (synopsis "Hyphenation patterns for German")
535 (description "The package provides experimental hyphenation patterns for
536 the German language, covering both traditional and reformed orthography. The
537 patterns can be used with packages Babel and hyphsubst from the Oberdiek
539 ;; Hyphenation patterns are under the Expat license; documentation is
541 (license (list license:expat license:lppl))))
543 (define-public texlive-generic-tex-ini-files
545 (name "texlive-generic-tex-ini-files")
546 (version (number->string %texlive-revision))
550 (url (string-append "svn://www.tug.org/texlive/tags/"
551 %texlive-tag "/Master/texmf-dist/"
552 "/tex/generic/tex-ini-files"))
553 (revision %texlive-revision)))
554 (file-name (string-append name "-" version "-checkout"))
557 "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5"))))
558 (build-system trivial-build-system)
560 `(#:modules ((guix build utils))
563 (use-modules (guix build utils))
564 (let ((target (string-append (assoc-ref %outputs "out")
565 "/share/texmf-dist/tex/generic/tex-ini-files")))
567 (copy-recursively (assoc-ref %build-inputs "source") target)
569 (home-page "https://www.ctan.org/pkg/tex-ini-files")
570 (synopsis "Files for creating TeX formats")
571 (description "This bundle provides a collection of model \".ini\" files
572 for creating TeX formats. These files are commonly used to introduced
573 distribution-dependent variations in formats. They are also used to
574 allow existing format source files to be used with newer engines, for example
575 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
576 (license license:public-domain)))
578 (define-public texlive-generic-hyph-utf8
580 (name "texlive-generic-hyph-utf8")
581 (version (number->string %texlive-revision))
585 (url (string-append "svn://www.tug.org/texlive/tags/"
586 %texlive-tag "/Master/texmf-dist/"
587 "/tex/generic/hyph-utf8"))
588 (revision %texlive-revision)))
589 (file-name (string-append name "-" version "-checkout"))
592 "1alnn9cd60m2c12vym9f9q22ap1ngywxpkjl9dk472why44g1dmy"))))
593 (build-system trivial-build-system)
595 `(#:modules ((guix build utils))
598 (use-modules (guix build utils))
599 (let ((target (string-append (assoc-ref %outputs "out")
600 "/share/texmf-dist/tex/generic/hyph-utf8")))
602 (copy-recursively (assoc-ref %build-inputs "source") target)
604 (home-page "https://ctan.org/pkg/hyph-utf8")
605 (synopsis "Hyphenation patterns expressed in UTF-8")
606 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
607 hyphenation patterns in UTF-8 format, whereas older systems require
608 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
609 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
610 etc). The present package offers a collection of conversions of existing
611 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
612 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
613 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
614 converters, will completely supplant the older patterns.")
615 ;; Individual files each have their own license. Most of these files are
616 ;; independent hyphenation patterns.
617 (license (list license:lppl1.0+
632 license:public-domain
635 (define-public texlive-metafont-base
637 (name "texlive-metafont-base")
638 (version (number->string %texlive-revision))
642 (url (string-append "svn://www.tug.org/texlive/tags/"
643 %texlive-tag "/Master/texmf-dist/"
645 (revision %texlive-revision)))
646 (file-name (string-append name "-" version "-checkout"))
649 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
650 (build-system gnu-build-system)
652 `(#:tests? #f ; no test target
654 (modify-phases %standard-phases
657 (lambda* (#:key inputs #:allow-other-keys)
658 (let ((cwd (getcwd)))
660 (string-append cwd "/base:"
667 (with-directory-excursion "build"
668 (invoke "inimf" "mf.mf"))))
670 (lambda* (#:key outputs #:allow-other-keys)
671 (let* ((out (assoc-ref outputs "out"))
672 (base (string-append out "/share/texmf-dist/web2c"))
673 (mf (string-append out "/share/texmf-dist/metafont/base")))
676 (install-file "build/mf.base" base)
677 (copy-recursively "base" mf)
680 `(("texlive-bin" ,texlive-bin)))
681 (home-page "https://www.ctan.org/pkg/metafont")
682 (synopsis "Metafont base files")
683 (description "This package provides the Metafont base files needed to
684 build fonts using the Metafont system.")
685 (license license:knuth)))
687 (define-public texlive-tex-fontinst-base
689 (name "texlive-tex-fontinst-base")
690 (version (number->string %texlive-revision))
694 (url (string-append "svn://www.tug.org/texlive/tags/"
695 %texlive-tag "/Master/texmf-dist/"
696 "/tex/fontinst/base"))
697 (revision %texlive-revision)))
698 (file-name (string-append name "-" version "-checkout"))
701 "12gnb8hc45p47pqn31msvi4mpr3wxbbbf2k4xhmshjqykwzlx508"))))
702 (build-system trivial-build-system)
704 `(#:modules ((guix build utils))
707 (use-modules (guix build utils))
708 (let ((target (string-append (assoc-ref %outputs "out")
709 "/share/texmf-dist/tex/fontinst/base")))
711 (copy-recursively (assoc-ref %build-inputs "source") target)
713 (home-page "https://www.ctan.org/pkg/fontinst")
714 (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
715 (description "This package provides TeX macros for converting Adobe Font
716 Metric files to TeX metric and virtual font format. Fontinst helps mainly
717 with the number crunching and shovelling parts of font installation. This
718 means in practice that it creates a number of files which give the TeX
719 metrics (and related information) for a font family that TeX needs to do any
720 typesetting in these fonts.")
721 (license license:lppl1.1+)))
723 (define-public texlive-fontname
725 (name "texlive-fontname")
726 (version (number->string %texlive-revision))
730 (url (string-append "svn://www.tug.org/texlive/tags/"
731 %texlive-tag "/Master/texmf-dist/"
732 "/fonts/map/fontname"))
733 (revision %texlive-revision)))
734 (file-name (string-append name "-" version "-checkout"))
737 "05rbn7z30xawd3n6w7c3ijp2yc67ga220jgqmkla9pd9wx185rzq"))))
738 (build-system trivial-build-system)
740 `(#:modules ((guix build utils))
743 (use-modules (guix build utils))
744 (let ((target (string-append (assoc-ref %outputs "out")
745 "/share/texmf-dist/fonts/map/fontname")))
747 (copy-recursively (assoc-ref %build-inputs "source") target)
749 (home-page "https://www.ctan.org/pkg/fontname")
750 (synopsis "Scheme for naming fonts in TeX")
751 (description "This is Fontname, a naming scheme for (the base part of)
752 external TeX font filenames. This makes at most eight-character names
753 from (almost) arbitrarily complex font names, thus helping portability of TeX
755 (license license:public-domain)))
757 (define-public texlive-fonts-cm
759 (name "texlive-fonts-cm")
760 (version (number->string %texlive-revision))
764 (url (string-append "svn://www.tug.org/texlive/tags/"
765 %texlive-tag "/Master/texmf-dist/"
766 "/fonts/source/public/cm"))
767 (revision %texlive-revision)))
768 (file-name (string-append name "-" version "-checkout"))
771 "0vfjhidr9pha613h8mfhnpcpvld6ahdfb449918fpsfs93cppkyj"))))
772 (build-system gnu-build-system)
774 `(#:modules ((guix build gnu-build-system)
778 #:tests? #f ; no tests
780 (modify-phases %standard-phases
783 (lambda* (#:key inputs #:allow-other-keys)
784 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
785 ;; Tell mf where to find mf.base
786 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
787 ;; Tell mf where to look for source files
789 (string-append (getcwd) ":"
790 mf "/share/texmf-dist/metafont/base")))
792 (mkdir-p "pk/ljfour/public/cm/dpi600")
793 (for-each (lambda (font)
794 (format #t "building font ~a\n" font)
795 (invoke "mf" "-progname=mf"
796 "-output-directory=build"
802 (basename font ".mf")))
804 (string-append "build/"
805 (basename font ".mf") ".600gf")
806 (string-append "pk/ljfour/public/cm/dpi600/"
807 (basename font ".mf") ".pk")))
808 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))
811 (lambda* (#:key inputs outputs #:allow-other-keys)
812 (let* ((out (assoc-ref outputs "out"))
813 (fonts (string-append out "/share/texmf-dist/fonts/"))
814 (pk (string-append fonts "pk"))
815 (tfm (string-append fonts "tfm/public/cm"))
816 (mf (string-append fonts "source/public/cm"))
817 (type1 (string-append fonts "type1/public/amsfonts/cm")))
818 (for-each (cut install-file <> tfm)
819 (find-files "build" "\\.*"))
820 (for-each (cut install-file <> mf)
821 (find-files "." "\\.mf"))
822 (copy-recursively "pk" pk)
824 (copy-recursively (assoc-ref inputs "cm-type1") type1)
827 `(("texlive-bin" ,texlive-bin)
828 ("texlive-metafont-base" ,texlive-metafont-base)
833 (url (string-append "svn://www.tug.org/texlive/tags/"
834 %texlive-tag "/Master/texmf-dist/"
835 "/fonts/type1/public/amsfonts/cm"))
836 (revision %texlive-revision)))
837 (file-name (string-append name "-type1-" version "-checkout"))
840 "12jyl9jp3hidifa4l5pmi47p71d5mb5kj5rknxkygilix8yz2iy6"))))))
841 (home-page "https://www.ctan.org/pkg/cm")
842 (synopsis "Computer Modern fonts for TeX")
843 (description "This package provides the Computer Modern fonts by Donald
844 Knuth. The Computer Modern font family is a large collection of text,
845 display, and mathematical fonts in a range of styles, based on Monotype Modern
847 (license license:knuth)))
849 (define-public texlive-fonts-cm-super
851 (name "texlive-fonts-cm-super")
852 (version (number->string %texlive-revision))
856 (url (string-append "svn://www.tug.org/texlive/tags/"
857 %texlive-tag "/Master/texmf-dist/"
858 "/tex/latex/cm-super"))
859 (revision %texlive-revision)))
860 (file-name (string-append name "-" version "-checkout"))
863 "0ybb4gi2rblzpb6wfzm2wk7dj3y2jnmkzsla7mz7g3zc12y4r2b9"))))
864 (build-system trivial-build-system)
866 `(#:modules ((guix build utils)
870 (use-modules (guix build utils)
872 (let ((root (string-append (assoc-ref %outputs "out")
873 "/share/texmf-dist/"))
874 (pkgs '(("source" . "tex/latex/cm-super")
875 ("cm-super-afm" . "fonts/afm/public/cm-super")
876 ("cm-super-type1" . "fonts/type1/public/cm-super")
877 ("cm-super-enc" . "fonts/enc/dvips/cm-super")
878 ("cm-super-map" . "fonts/map/dvips/cm-super")
879 ("cm-super-vtex" . "fonts/map/vtex/cm-super"))))
880 (for-each (match-lambda
882 (let ((target (string-append root dir)))
884 (copy-recursively (assoc-ref %build-inputs pkg)
893 (url (string-append "svn://www.tug.org/texlive/tags/"
894 %texlive-tag "/Master/texmf-dist/"
895 "/fonts/map/vtex/cm-super"))
896 (revision %texlive-revision)))
897 (file-name (string-append name "-map-vtex-" version "-checkout"))
900 "14c9allsgfv6za9wznz4cxqxwz5nsmj8rnwvxams8fhs5rvglxqi"))))
905 (url (string-append "svn://www.tug.org/texlive/tags/"
906 %texlive-tag "/Master/texmf-dist/"
907 "/fonts/afm/public/cm-super"))
908 (revision %texlive-revision)))
909 (file-name (string-append name "-afm-" version "-checkout"))
912 "048ih65f2nghdabdar2p957c4s2spgllmy2gxdscddwqpnmd26yn"))))
917 (url (string-append "svn://www.tug.org/texlive/tags/"
918 %texlive-tag "/Master/texmf-dist/"
919 "/fonts/type1/public/cm-super"))
920 (revision %texlive-revision)))
921 (file-name (string-append name "-type1-" version "-checkout"))
924 "1140swk3w2ka0y4zdsq6pdifrdanb281q71p5gngbbjxdxjxf4qx"))))
929 (url (string-append "svn://www.tug.org/texlive/tags/"
930 %texlive-tag "/Master/texmf-dist/"
931 "/fonts/map/dvips/cm-super"))
932 (revision %texlive-revision)))
933 (file-name (string-append name "-map-" version "-checkout"))
936 "10r6xqbwf9wk3ylg7givwyrw1952zydc6p7fw29zjf8ijl0lndim"))))
941 (url (string-append "svn://www.tug.org/texlive/tags/"
942 %texlive-tag "/Master/texmf-dist/"
943 "/fonts/enc/dvips/cm-super"))
944 (revision %texlive-revision)))
945 (file-name (string-append name "-enc-" version "-checkout"))
948 "1pgksy96gfgyjxfhs2k04bgg7nr7i128y01kjcahr7n38080h4ij"))))))
949 (home-page "https://www.ctan.org/pkg/cm-super")
950 (synopsis "Computer Modern Super family of fonts")
951 (description "The CM-Super family provides Adobe Type 1 fonts that replace
952 the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
953 T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
954 languages except Greek), and bringing many ameliorations in typesetting
955 quality. The fonts exhibit the same metrics as the METAFONT-encoded
957 ;; With font exception
958 (license license:gpl2+)))
960 (define-public texlive-fonts-lm
962 (name "texlive-fonts-lm")
966 (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
967 "latin-modern/download/lm" version "bas.zip"))
970 "0z2s253y751m2ci5aw8nq0sf2kyg9hpimv2gyixkch9d07m2b9wp"))))
971 (build-system trivial-build-system)
973 `(#:modules ((guix build utils))
976 (use-modules (guix build utils))
977 (let ((root (string-append (assoc-ref %outputs "out")
978 "/share/texmf-dist/")))
980 (with-directory-excursion root
981 (invoke (string-append (assoc-ref %build-inputs "unzip")
983 (assoc-ref %build-inputs "source")))
987 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/")
988 (synopsis "Latin Modern family of fonts")
989 (description "The Latin Modern fonts are derived from the famous Computer
990 Modern fonts designed by Donald E. Knuth and described in Volume E of his
991 Computers & Typesetting series.")
992 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
993 ;; Public License (LPPL), version 1.3c or later, but comes with an
994 ;; additional but not legally binding clause.
995 (license license:lppl1.3c+)))
997 (define-public texlive-fonts-knuth-lib
999 (name "texlive-fonts-knuth-lib")
1000 (version (number->string %texlive-revision))
1004 (url (string-append "svn://www.tug.org/texlive/tags/"
1005 %texlive-tag "/Master/texmf-dist/"
1006 "/fonts/source/public/knuth-lib"))
1007 (revision %texlive-revision)))
1008 (file-name (string-append name "-" version "-checkout"))
1011 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
1012 (build-system gnu-build-system)
1014 `(#:modules ((guix build gnu-build-system)
1017 #:tests? #f ; no tests
1019 (modify-phases %standard-phases
1022 (lambda* (#:key inputs #:allow-other-keys)
1023 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
1024 ;; Tell mf where to find mf.base
1026 (string-append mf "/share/texmf-dist/web2c"))
1027 ;; Tell mf where to look for source files
1029 (string-append (getcwd) ":"
1030 mf "/share/texmf-dist/metafont/base")))
1032 (for-each (lambda (font)
1033 (format #t "building font ~a\n" font)
1034 (invoke "mf" "-progname=mf"
1035 "-output-directory=build"
1041 (find-files "." "(manfnt|logo.+)\\.mf$"))
1044 (lambda* (#:key outputs #:allow-other-keys)
1045 (let* ((out (assoc-ref outputs "out"))
1047 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
1049 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
1050 (for-each (cut install-file <> tfm)
1051 (find-files "build" "\\.*"))
1052 (for-each (cut install-file <> mf)
1053 (find-files "." "\\.mf"))
1056 `(("texlive-bin" ,texlive-bin)
1057 ("texlive-metafont-base" ,texlive-metafont-base)))
1058 (home-page "https://www.ctan.org/pkg/knuth-lib")
1059 (synopsis "Small library of METAFONT sources")
1060 (description "This is a collection of core TeX and METAFONT macro files
1061 from Donald Knuth, including the plain format, plain base, and the MF logo
1063 (license license:knuth)))
1065 (define-public texlive-fonts-latex
1067 (name "texlive-fonts-latex")
1068 (version (number->string %texlive-revision))
1072 (url (string-append "svn://www.tug.org/texlive/tags/"
1073 %texlive-tag "/Master/texmf-dist/"
1074 "/fonts/source/public/latex-fonts"))
1075 (revision %texlive-revision)))
1076 (file-name (string-append name "-" version "-checkout"))
1079 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
1080 (build-system gnu-build-system)
1082 `(#:modules ((guix build gnu-build-system)
1086 #:tests? #f ; no tests
1088 (modify-phases %standard-phases
1091 (lambda* (#:key inputs #:allow-other-keys)
1092 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
1093 ;; Tell mf where to find mf.base
1094 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1095 ;; Tell mf where to look for source files
1097 (string-append (getcwd) ":"
1098 mf "/share/texmf-dist/metafont/base:"
1099 (assoc-ref inputs "texlive-fonts-cm")
1100 "/share/texmf-dist/fonts/source/public/cm")))
1102 (for-each (lambda (font)
1103 (format #t "building font ~a\n" font)
1104 (invoke "mf" "-progname=mf"
1105 "-output-directory=build"
1111 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
1112 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
1113 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
1114 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
1115 "line10" "linew10"))
1118 (lambda* (#:key outputs #:allow-other-keys)
1119 (let* ((out (assoc-ref outputs "out"))
1121 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
1123 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
1124 (for-each (cut install-file <> tfm)
1125 (find-files "build" "\\.*"))
1126 (for-each (cut install-file <> mf)
1127 (find-files "." "\\.mf"))
1130 `(("texlive-bin" ,texlive-bin)
1131 ("texlive-metafont-base" ,texlive-metafont-base)
1132 ("texlive-fonts-cm" ,texlive-fonts-cm)))
1133 (home-page "https://www.ctan.org/pkg/latex-fonts")
1134 (synopsis "Collection of fonts used in LaTeX distributions")
1135 (description "This is a collection of fonts for use with standard LaTeX
1136 packages and classes. It includes invisible fonts (for use with the slides
1137 class), line and circle fonts (for use in the picture environment) and LaTeX
1139 (license license:lppl1.2+)))
1141 (define-public texlive-latex-mflogo
1143 (name "texlive-latex-mflogo")
1144 (version (number->string %texlive-revision))
1148 (uri (texlive-ref "latex" "mflogo"))
1151 "15i2ib6nvhf31g1b92c6njf7n0g29znlq7hbfp9ii7qabhcwwvrj"))))
1152 (build-system texlive-build-system)
1153 (arguments '(#:tex-directory "latex/mflogo"))
1154 (home-page "http://www.ctan.org/pkg/mflogo")
1155 (synopsis "LaTeX support for Metafont logo fonts")
1157 "This package provides LaTeX and font definition files to access the
1158 Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont
1159 logos in LaTeX documents.")
1160 (license license:lppl)))
1162 (define-public texlive-fonts-mflogo-font
1164 (name "texlive-fonts-mflogo-font")
1165 (version (number->string %texlive-revision))
1169 (url (string-append "svn://www.tug.org/texlive/tags/"
1170 %texlive-tag "/Master/texmf-dist/"
1171 "/fonts/type1/hoekwater/mflogo-font"))
1172 (revision %texlive-revision)))
1173 (file-name (string-append name "-" version "-checkout"))
1176 "09fsxfpiyxjljkrb52b197728bjnkcnv3bdwm4hl6hf23mbmqadf"))))
1177 (build-system trivial-build-system)
1179 `(#:modules ((guix build utils)
1183 (use-modules (guix build utils)
1185 (let ((root (string-append (assoc-ref %outputs "out")
1186 "/share/texmf-dist/"))
1187 (pkgs '(("source" . "fonts/type1/hoekwater/mflogo-font")
1188 ("afm" . "fonts/afm/hoekwater/mflogo-font")
1189 ("fonts-map" . "fonts/map/dvips/mflogo-font"))))
1190 (for-each (match-lambda
1192 (let ((target (string-append root dir)))
1194 (copy-recursively (assoc-ref %build-inputs pkg)
1203 (url (string-append "svn://www.tug.org/texlive/tags/"
1204 %texlive-tag "/Master/texmf-dist/"
1205 "/fonts/afm/hoekwater/mflogo-font"))
1206 (revision %texlive-revision)))
1207 (file-name (string-append name "-afm-" version "-checkout"))
1210 "0bx1mfhhzsk9gj1pha36q2rk0jd0y285qm62zgvdvzzzlfnk8sdb"))))
1215 (url (string-append "svn://www.tug.org/texlive/tags/"
1216 %texlive-tag "/Master/texmf-dist/"
1217 "/fonts/map/dvips/mflogo-font/"))
1218 (revision %texlive-revision)))
1219 (file-name (string-append name "-fonts-map-" version "-checkout"))
1222 "044xrrpl8hnvj55cx2ql1ib1bcyr33nzanx5nkwxpai7fb7pg4y6"))))))
1223 (home-page "https://www.ctan.org/pkg/mflogo-font")
1224 (synopsis "Metafont logo font")
1226 "These fonts were created in METAFONT by Knuth, for his own publications.
1227 At some stage, the letters P and S were added, so that the METAPOST logo could
1228 also be expressed. The fonts were originally issued (of course) as METAFONT
1229 source; they have since been autotraced and reissued in Adobe Type 1 format by
1231 (license license:knuth)))
1233 (define-public texlive-fonts-amsfonts
1235 (name "texlive-fonts-amsfonts")
1236 (version (number->string %texlive-revision))
1240 (url (string-append "svn://www.tug.org/texlive/tags/"
1241 %texlive-tag "/Master/texmf-dist/"
1242 "/fonts/source/public/amsfonts"))
1243 (revision %texlive-revision)))
1244 (file-name (string-append name "-" version "-checkout"))
1247 "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
1248 (build-system gnu-build-system)
1250 `(#:modules ((guix build gnu-build-system)
1255 #:tests? #f ; no tests
1257 (modify-phases %standard-phases
1260 (lambda* (#:key inputs #:allow-other-keys)
1261 (let ((mf (assoc-ref inputs "texlive-union"))
1263 ;; Make METAFONT reproducible
1264 (setenv "SOURCE_DATE_EPOCH" "1")
1265 ;; Tell mf where to find mf.base
1266 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1267 ;; Tell mf where to look for source files
1269 (string-append cwd ":"
1274 mf "/share/texmf-dist/metafont/base:"
1275 (assoc-ref inputs "texlive-fonts-cm")
1276 "/share/texmf-dist/fonts/source/public/cm")))
1278 (for-each (lambda (font)
1279 (format #t "building font ~a\n" (basename font ".mf"))
1280 (with-directory-excursion (dirname font)
1281 (invoke "mf" "-progname=mf"
1282 "-output-directory=../build"
1289 (basename font ".mf")))))
1290 (find-files "." "[0-9]+\\.mf$"))
1292 ;; There are no metafont sources for the Euler fonts, so we
1293 ;; convert the afm files instead.
1294 (mkdir "build/euler")
1295 (for-each (lambda (font)
1296 (format #t "converting afm font ~a\n" (basename font ".afm"))
1297 (invoke "afm2tfm" font
1298 (string-append "build/euler/"
1299 (basename font ".tfm"))))
1300 (find-files (assoc-ref inputs "amsfonts-afm")
1303 ;; Frustratingly, not all fonts can be created this way. To
1304 ;; generate eufm8.tfm, for example, we first scale down
1305 ;; eufm10.afm to eufm8.pl, and then generate the tfm file from
1307 (with-directory-excursion "build/euler"
1309 (string-append (getcwd) "//:"
1310 (assoc-ref inputs "amsfonts-afm") "//:"
1311 (assoc-ref inputs "texlive-union") "//"))
1312 (for-each (match-lambda
1313 (((target-base target-size)
1314 (source-base source-size))
1315 (let ((factor (number->string
1316 (truncate/ (* 1000 target-size)
1319 "-interaction=scrollmode"
1320 (string-append "\\input fontinst.sty "
1321 "\\transformfont{" target-base "}"
1322 "{\\scalefont{" factor "}"
1323 "{\\fromafm{" source-base "}}} "
1326 (string-append target-base ".pl")
1327 (string-append target-base ".tfm"))
1328 (delete-file (string-append target-base ".pl"))))
1330 '((("eufm8" 8) ("eufm10" 10))
1332 (("eufb6" 6) ("eufb7" 7))
1333 (("eufb8" 8) ("eufb10" 10))
1334 (("eufb9" 9) ("eufb10" 10))
1336 (("eufm6" 6) ("eufb7" 7))
1337 (("eufm9" 9) ("eufb10" 10))
1339 (("eurb6" 6) ("eurb7" 7))
1340 (("eurb8" 8) ("eurb10" 10))
1341 (("eurb9" 9) ("eurb10" 10))
1343 (("eurm6" 6) ("eurm7" 7))
1344 (("eurm8" 8) ("eurm10" 10))
1345 (("eurm9" 9) ("eurm10" 10)))))
1348 (lambda* (#:key inputs outputs #:allow-other-keys)
1349 (let* ((out (assoc-ref outputs "out"))
1350 (root (string-append out "/share/texmf-dist/fonts/"))
1351 (pkgs '(("amsfonts-afm" . "afm/public/amsfonts")
1352 ("amsfonts-type1" . "type1/public/amsfonts")
1353 ("amsfonts-map" . "map/dvips/amsfonts"))))
1354 (for-each (match-lambda
1356 (let ((target (string-append root dir)))
1358 (copy-recursively (assoc-ref inputs pkg)
1361 (copy-recursively (assoc-ref inputs "amsfonts-plain")
1362 (string-append out "/share/texmf-dist/tex/plain/amsfonts"))
1363 (let* ((tfm (string-append root "tfm/public/amsfonts"))
1364 (mf (string-append root "source/public/amsfonts")))
1365 (copy-recursively "build" tfm)
1366 (for-each (cut install-file <> mf)
1367 (find-files "." "\\.mf"))
1370 `(("texlive-union" ,(texlive-union (list texlive-tex-fontinst-base
1372 texlive-metafont-base)))
1377 (url (string-append "svn://www.tug.org/texlive/tags/"
1378 %texlive-tag "/Master/texmf-dist/"
1379 "/tex/plain/amsfonts"))
1380 (revision %texlive-revision)))
1381 (file-name (string-append name "-plain-" version "-checkout"))
1384 "1hi8c9rkfb6395sxf7fhkr91xygfg8am1hqij9g3h2c7qx3714qp"))))
1389 (url (string-append "svn://www.tug.org/texlive/tags/"
1390 %texlive-tag "/Master/texmf-dist/"
1391 "/fonts/map/dvips/amsfonts"))
1392 (revision %texlive-revision)))
1393 (file-name (string-append name "-map-" version "-checkout"))
1396 "1lrj3bd9ybj4aawzlygc6qvakbrwc5s0mc5n9rpic331frv3axfs"))))
1401 (url (string-append "svn://www.tug.org/texlive/tags/"
1402 %texlive-tag "/Master/texmf-dist/"
1403 "/fonts/type1/public/amsfonts"))
1404 (revision %texlive-revision)))
1405 (file-name (string-append name "-type1-" version "-checkout"))
1408 "1zfz33vn6gm19njy74n8wmn7sljrimfhwns5z8qqhxqfh1g4qip2"))))
1413 (url (string-append "svn://www.tug.org/texlive/tags/"
1414 %texlive-tag "/Master/texmf-dist/"
1415 "/fonts/afm/public/amsfonts"))
1416 (revision %texlive-revision)))
1417 (file-name (string-append name "-afm-" version "-checkout"))
1420 "1fifzkaihmjgchnk7dmw0c23k0cz999dxnc78ivmqvgi1dhx0iv8"))))))
1421 (home-page "https://www.ctan.org/pkg/amsfonts")
1422 (synopsis "TeX fonts from the American Mathematical Society")
1424 "This package provides an extended set of fonts for use in mathematics,
1425 including: extra mathematical symbols; blackboard bold letters (uppercase
1426 only); fraktur letters; subscript sizes of bold math italic and bold Greek
1427 letters; subscript sizes of large symbols such as sum and product; added sizes
1428 of the Computer Modern small caps font; cyrillic fonts (from the University of
1429 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1430 files, and all except the Euler fonts are provided as Metafont source. The
1431 distribution also includes the canonical Type 1 versions of the Computer
1432 Modern family of fonts. The Euler fonts are supported by separate packages;
1433 details can be found in the documentation.")
1434 (license license:silofl1.1)))
1436 (define-public texlive-latex-amsfonts
1438 (name "texlive-latex-amsfonts")
1439 (version (number->string %texlive-revision))
1442 (uri (texlive-ref "latex" "amsfonts"))
1443 (file-name (string-append name "-" version "-checkout"))
1446 "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
1447 (build-system texlive-build-system)
1448 (arguments '(#:tex-directory "latex/amsfonts"))
1450 `(("texlive-fonts-cm" ,texlive-fonts-cm)
1451 ("texlive-metafont-base" ,texlive-metafont-base)))
1452 (home-page "https://www.ctan.org/pkg/amsfonts")
1453 (synopsis "TeX fonts from the American Mathematical Society")
1455 "This package provides basic LaTeX support for the symbol fonts provides
1456 by the amsfonts package. It provides @code{amsfonts.sty}, with names of
1457 individual symbols defined in @code{amssymb.sty}.")
1458 (license license:silofl1.1)))
1460 ;; This provides etex.src which is needed to build various formats, including
1461 ;; luatex.fmt and pdflatex.fmt
1462 (define-public texlive-tex-plain
1464 (name "texlive-tex-plain")
1465 (version (number->string %texlive-revision))
1469 (url (string-append "svn://www.tug.org/texlive/tags/"
1470 %texlive-tag "/Master/texmf-dist/"
1472 (revision %texlive-revision)))
1473 (file-name (string-append name "-" version "-checkout"))
1476 "1xknlb3gcw6jjqh97bhghxi594bzpj1zfzzfsrr9pvr9s1bx7dnf"))))
1477 (build-system trivial-build-system)
1479 `(#:modules ((guix build utils))
1482 (use-modules (guix build utils))
1483 (let ((target (string-append (assoc-ref %outputs "out")
1484 "/share/texmf-dist/tex/plain")))
1486 (copy-recursively (assoc-ref %build-inputs "source") target)
1488 (home-page "https://www.ctan.org/pkg/plain")
1489 (synopsis "Plain TeX format and supporting files")
1491 "Contains files used to build the Plain TeX format, as described in the
1492 TeXbook, together with various supporting files (some also discussed in the
1494 (license license:knuth)))
1496 (define-public texlive-latex-base
1502 (url (string-append "svn://www.tug.org/texlive/tags/"
1503 %texlive-tag "/Master/texmf-dist/"
1505 (revision %texlive-revision)))
1506 (file-name (string-append "texlive-generic-"
1508 (string-drop-right dir 1) #\/))
1509 "-" (number->string %texlive-revision)
1511 (sha256 (base32 hash))))))
1513 (name "texlive-latex-base")
1514 (version (number->string %texlive-revision))
1517 (uri (texlive-ref "latex" "base"))
1518 (file-name (string-append name "-" version "-checkout"))
1521 "17bqrzzjz16k52sc7ydl4vw7ddy2z3g0p1xsk2c35h1ynq9h3wwm"))))
1522 (build-system gnu-build-system)
1524 `(#:modules ((guix build gnu-build-system)
1529 #:tests? #f ; no tests
1531 (modify-phases %standard-phases
1534 (lambda* (#:key inputs #:allow-other-keys)
1535 ;; Find required fonts
1537 (string-append (assoc-ref inputs "texlive-fonts-cm")
1538 "/share/texmf-dist/fonts/tfm/public/cm:"
1539 (assoc-ref inputs "texlive-fonts-latex")
1540 "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
1541 (assoc-ref inputs "texlive-fonts-knuth-lib")
1542 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
1548 (map (match-lambda ((_ . dir) dir)) inputs)
1551 ;; Create an empty texsys.cfg, because latex.ltx wants to include
1552 ;; it. This file must exist and it's fine if it's empty.
1553 (with-output-to-file "texsys.cfg"
1554 (lambda _ (format #t "%")))
1558 (invoke "luatex" "-ini" "-interaction=batchmode"
1559 "-output-directory=build" "unpack.ins")
1560 (invoke "tex" "-ini" "-interaction=batchmode"
1561 "-output-directory=web2c" "tex.ini")
1562 ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
1563 ;; is enabled only in extended mode (activated with a
1564 ;; leading asterisk). We should not use luatex here,
1565 ;; because that would make the generated format files
1566 ;; incompatible with any other TeX engine.
1567 (for-each (lambda (format)
1568 (invoke "latex" "-ini" "-interaction=batchmode"
1569 "-output-directory=web2c"
1570 "-translate-file=cp227.tcx"
1571 (string-append "*" format ".ini")))
1575 (for-each (lambda (format)
1576 (invoke format "-ini" "-interaction=batchmode"
1577 "-output-directory=web2c"
1578 (string-append "*" format ".ini")))
1581 (for-each (lambda (format)
1582 (invoke "luatex" "-ini" "-interaction=batchmode"
1583 "-output-directory=web2c"
1584 (string-append format ".ini")))
1585 '("dviluatex" "dvilualatex" "luatex" "lualatex"))
1588 (lambda* (#:key inputs outputs #:allow-other-keys)
1589 (let* ((out (assoc-ref outputs "out"))
1590 (target (string-append
1591 out "/share/texmf-dist/tex/latex/base"))
1592 (web2c (string-append
1593 out "/share/texmf-dist/web2c"))
1594 (support-files (assoc-ref inputs "texlive-latex-base-support-files")))
1597 (for-each delete-file (find-files "." "\\.(log|aux)$"))
1598 (for-each (cut install-file <> target)
1599 (find-files "build" ".*"))
1600 (for-each (cut install-file <> web2c)
1601 (find-files "web2c" ".*"))
1602 ;; pdftex is really just the same as pdfetex, but since it
1603 ;; doesn't have its own format file, we need to copy it.
1604 (copy-file "web2c/pdfetex.fmt"
1605 (string-append web2c "/pdftex.fmt"))
1606 ;; "source" is missing the support files as per doc/latex/base/manifest.txt.
1607 ;; FIXME: We are probably not packaging this right.
1608 (for-each (lambda (file)
1610 (string-append support-files "/" file)
1612 '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex"
1613 "lablst.tex" "testpage.tex" "ltxcheck.tex"))
1614 ;; Install configurations
1616 (assoc-ref inputs "texlive-latex-latexconfig")
1617 (string-append out "/share/texmf-dist/tex/latex/latexconfig"))
1619 (assoc-ref inputs "texlive-generic-config")
1620 (string-append out "/share/texmf-dist/tex/generic/config"))
1622 (assoc-ref inputs "texlive-generic-hyphen")
1623 (string-append out "/share/texmf-dist/tex/generic/hyphen"))
1625 (assoc-ref inputs "texlive-generic-ruhyphen")
1626 (string-append out "/share/texmf-dist/tex/generic/ruhyphen"))
1628 (assoc-ref inputs "texlive-generic-ukrhyph")
1629 (string-append out "/share/texmf-dist/tex/generic/ukrhyph"))
1632 `(("texlive-bin" ,texlive-bin)
1633 ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
1634 ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
1635 ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
1636 ("texlive-latex-latexconfig"
1637 ,(texlive-dir "tex/latex/latexconfig/"
1638 "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
1639 ("texlive-generic-hyphen"
1640 ,(texlive-dir "tex/generic/hyphen/"
1641 "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
1642 ("texlive-generic-ruhyphen"
1643 ,(texlive-dir "tex/generic/ruhyphen/"
1644 "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
1645 ("texlive-generic-ukrhyph"
1646 ,(texlive-dir "tex/generic/ukrhyph/"
1647 "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
1648 ("texlive-generic-config"
1649 ,(texlive-dir "tex/generic/config/"
1650 "1v90iihy112q93zdpblpdk8zv8rf99fgslsg06s1sxm27zjm9nap"))
1651 ("texlive-latex-base-support-files"
1655 (url (string-append "svn://www.tug.org/texlive/tags/"
1656 %texlive-tag "/Master/texmf-dist/"
1658 (revision %texlive-revision)))
1659 (file-name (string-append name "-" version "-checkout"))
1662 "18wy8dlcw8adl6jzqwbg54pdwlhs8hilnfvqbw6ikj6y3zhqkj7q"))))
1663 ("texlive-tex-plain" ,texlive-tex-plain)
1664 ("texlive-fonts-cm" ,texlive-fonts-cm)
1665 ("texlive-fonts-latex" ,texlive-fonts-latex)
1666 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
1668 `(("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)))
1669 (home-page "https://www.ctan.org/pkg/latex-base")
1670 (synopsis "Base sources of LaTeX")
1672 "This bundle comprises the source of LaTeX itself, together with several
1673 packages which are considered \"part of the kernel\". This bundle, together
1674 with the required packages, constitutes what every LaTeX distribution should
1676 (license license:lppl1.3c+))))
1678 (define-public texlive-latex-filecontents
1680 (name "texlive-latex-filecontents")
1681 (version (number->string %texlive-revision))
1684 (uri (texlive-ref "latex" "filecontents"))
1685 (file-name (string-append name "-" version "-checkout"))
1688 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
1689 (build-system texlive-build-system)
1690 (arguments '(#:tex-directory "latex/filecontents"))
1691 (home-page "https://www.ctan.org/pkg/filecontents")
1692 (synopsis "Extended filecontents and filecontents* environments")
1694 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
1695 enable a LaTeX source file to generate external files as it runs through
1696 LaTeX. However, there are two limitations of these environments: they refuse
1697 to overwrite existing files, and they can only be used in the preamble of a
1698 document. The filecontents package removes these limitations, letting you
1699 overwrite existing files and letting you use @code{filecontents} /
1700 @code{filecontents*} anywhere.")
1701 (license license:lppl1.3c+)))
1703 (define-public texlive-generic-ifxetex
1705 (name "texlive-generic-ifxetex")
1706 (version (number->string %texlive-revision))
1709 (uri (texlive-ref "generic" "ifxetex"))
1710 (file-name (string-append name "-" version "-checkout"))
1713 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
1714 (build-system texlive-build-system)
1716 '(#:tex-directory "generic/ifxetex"
1717 #:tex-format "xelatex"))
1719 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
1720 (home-page "https://www.ctan.org/pkg/ifxetex")
1721 (synopsis "Am I running under XeTeX?")
1723 "This is a simple package which provides an @code{\\ifxetex} conditional,
1724 so that other code can determine that it is running under XeTeX. The package
1725 requires the e-TeX extensions to the TeX primitive set.")
1726 (license license:lppl1.3c+)))
1728 (define-public texlive-generic-epsf
1730 (name "texlive-generic-epsf")
1731 (version (number->string %texlive-revision))
1735 (url (string-append "svn://www.tug.org/texlive/tags/"
1736 %texlive-tag "/Master/texmf-dist/"
1737 "/tex/generic/epsf"))
1738 (revision %texlive-revision)))
1739 (file-name (string-append name "-" version "-checkout"))
1742 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
1743 (build-system trivial-build-system)
1745 `(#:modules ((guix build utils))
1748 (use-modules (guix build utils))
1749 (let ((target (string-append (assoc-ref %outputs "out")
1750 "/share/texmf-dist/tex/generic/epfs")))
1752 (copy-recursively (assoc-ref %build-inputs "source") target)
1754 (home-page "https://www.ctan.org/pkg/epsf")
1755 (synopsis "Simple macros for EPS inclusion")
1757 "This package provides the original (and now obsolescent) graphics
1758 inclusion macros for use with dvips, still widely used by Plain TeX users (in
1759 particular). For LaTeX users, the package is nowadays (rather strongly)
1760 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
1761 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
1762 users, via its Plain TeX version.)")
1763 (license license:public-domain)))
1765 (define-public texlive-latex-fancyvrb
1767 (name "texlive-latex-fancyvrb")
1768 (version (number->string %texlive-revision))
1771 (uri (texlive-ref "latex" "fancyvrb"))
1772 (file-name (string-append name "-" version "-checkout"))
1775 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
1776 (build-system texlive-build-system)
1778 '(#:tex-directory "latex/fancyvrb"
1779 #:tex-format "latex"))
1780 (home-page "https://www.ctan.org/pkg/fancyvrb")
1781 (synopsis "Sophisticated verbatim text")
1783 "This package provides tools for the flexible handling of verbatim text
1784 including: verbatim commands in footnotes; a variety of verbatim environments
1785 with many parameters; ability to define new customized verbatim environments;
1786 save and restore verbatim text and environments; write and read files in
1787 verbatim mode; build \"example\" environments (showing both result and
1789 (license license:lppl1.0+)))
1791 (define-public texlive-latex-graphics
1793 (name "texlive-latex-graphics")
1794 (version (number->string %texlive-revision))
1797 (uri (texlive-ref "latex" "graphics"))
1798 (file-name (string-append name "-" version "-checkout"))
1801 "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz"))))
1802 (build-system texlive-build-system)
1804 '(#:tex-directory "latex/graphics"
1806 (modify-phases %standard-phases
1807 (add-after 'install 'install-config
1808 (lambda* (#:key inputs outputs #:allow-other-keys)
1809 (let ((cfg (assoc-ref inputs "graphics-cfg"))
1810 (target (string-append (assoc-ref outputs "out")
1811 "/share/texmf-dist/tex/latex/graphics-cfg")))
1813 (install-file (string-append cfg "/graphics.cfg") target)
1814 (install-file (string-append cfg "/color.cfg") target)
1816 (add-after 'install 'install-defs
1817 (lambda* (#:key inputs outputs #:allow-other-keys)
1818 (let ((def (assoc-ref inputs "graphics-def"))
1819 (target (string-append (assoc-ref outputs "out")
1820 "/share/texmf-dist/tex/latex/graphics-def")))
1822 (copy-recursively def target)
1829 (url "https://github.com/latex3/graphics-cfg.git")
1830 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
1831 (file-name (string-append "graphics-cfg-"
1832 (number->string %texlive-revision)
1836 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
1841 (url (string-append "svn://www.tug.org/texlive/tags/"
1842 %texlive-tag "/Master/texmf-dist/"
1843 "/tex/latex/graphics-def"))
1844 (revision %texlive-revision)))
1845 (file-name (string-append "graphics-def-"
1846 (number->string %texlive-revision)
1850 "17zpcgrfsr29g1dkz9np1qi63kjv7gb12rg979c6dai6qksbr3vq"))))))
1851 (home-page "https://www.ctan.org/pkg/latex-graphics")
1852 (synopsis "LaTeX standard graphics bundle")
1854 "This is a collection of LaTeX packages for producing color, including
1855 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
1856 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
1857 keyval, and lscape.")
1858 ;; The configuration files are released under CC0.
1859 (license (list license:lppl1.3c+
1862 (define-public texlive-latex-xcolor
1864 (name "texlive-latex-xcolor")
1865 (version (number->string %texlive-revision))
1868 (uri (texlive-ref "latex" "xcolor"))
1869 (file-name (string-append name "-" version "-checkout"))
1872 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
1873 (build-system texlive-build-system)
1874 (arguments '(#:tex-directory "latex/xcolor"))
1875 (home-page "https://www.ctan.org/pkg/xcolor")
1876 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
1878 "The package starts from the basic facilities of the colorcolor package,
1879 and provides easy driver-independent access to several kinds of color tints,
1880 shades, tones, and mixes of arbitrary colors. It allows a user to select a
1881 document-wide target color model and offers complete tools for conversion
1882 between eight color models. Additionally, there is a command for alternating
1883 row colors plus repeated non-aligned material (like horizontal lines) in
1885 (license license:lppl1.2+)))
1887 (define-public texlive-latex-hyperref
1889 (name "texlive-latex-hyperref")
1891 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
1892 ;; so we fetch the release from GitHub.
1895 (uri (string-append "https://github.com/ho-tex/hyperref/"
1896 "archive/release-" version ".tar.gz"))
1897 (file-name (string-append name "-" version ".tar.gz"))
1900 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
1901 (build-system texlive-build-system)
1902 (arguments '(#:tex-directory "latex/hyperref"))
1904 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek) ; for ltxcmds.sty
1905 ("texlive-latex-url" ,texlive-latex-url)))
1906 (home-page "https://www.ctan.org/pkg/hyperref")
1907 (synopsis "Extensive support for hypertext in LaTeX")
1909 "The @code{hyperref} package is used to handle cross-referencing commands
1910 in LaTeX to produce hypertext links in the document. The package provides
1911 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
1912 embedded @code{pdfmark} commands for processing by Acrobat
1913 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
1914 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
1915 pdf and HTML backends. The package is distributed with the @code{backref} and
1916 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
1917 (license license:lppl1.3+)))
1919 (define-public texlive-latex-oberdiek
1921 (name "texlive-latex-oberdiek")
1922 (version (number->string %texlive-revision))
1925 (uri (texlive-ref "latex" "oberdiek"))
1926 (file-name (string-append name "-" version "-checkout"))
1929 "1m9fg8ddhpsl1212igr9a9fmj012lv780aghjn6fpidg2wqrffmn"))))
1930 (build-system texlive-build-system)
1932 '(#:tex-directory "latex/oberdiek"
1933 #:build-targets '("oberdiek.ins")
1935 (modify-phases %standard-phases
1936 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
1937 (add-after 'unpack 'do-not-process-ifpdf.ins
1939 (substitute* "oberdiek.ins"
1940 (("ifpdf.ins") "ifpdf.dtx"))
1943 `(("texlive-generic-ifxetex" ,texlive-generic-ifxetex)))
1944 (home-page "https://www.ctan.org/pkg/oberdiek")
1945 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
1947 "The bundle comprises various LaTeX packages, providing among others:
1948 better accessibility support for PDF files; extensible chemists reaction
1949 arrows; record information about document class(es) used; and many more.")
1950 (license license:lppl1.3+)))
1952 (define-public texlive-latex-tools
1954 (name "texlive-latex-tools")
1955 (version (number->string %texlive-revision))
1958 (uri (texlive-ref "latex" "tools"))
1959 (file-name (string-append name "-" version "-checkout"))
1962 "0vj7h1fgf1396h4qjdc2m07y08i54gbbfrxl8y327cn3r1n093s6"))))
1963 (build-system texlive-build-system)
1965 '(#:tex-directory "latex/tools"
1966 #:build-targets '("tools.ins")))
1967 (home-page "https://www.ctan.org/pkg/latex-tools")
1968 (synopsis "LaTeX standard tools bundle")
1970 "This package is a collection of (variously) simple tools provided as
1971 part of the LaTeX required tools distribution, comprising the following
1972 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
1973 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
1974 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
1976 (license license:lppl1.3+)))
1978 (define-public texlive-latex-url
1980 (name "texlive-latex-url")
1981 (version (number->string %texlive-revision))
1985 (url (string-append "svn://www.tug.org/texlive/tags/"
1986 %texlive-tag "/Master/texmf-dist/"
1988 (revision %texlive-revision)))
1989 (file-name (string-append name "-" version "-checkout"))
1992 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
1993 (build-system trivial-build-system)
1995 `(#:modules ((guix build utils))
1998 (use-modules (guix build utils))
1999 (let ((target (string-append (assoc-ref %outputs "out")
2000 "/share/texmf-dist/tex/latex/url")))
2002 (copy-recursively (assoc-ref %build-inputs "source") target)
2004 (home-page "https://www.ctan.org/pkg/url")
2005 (synopsis "Verbatim with URL-sensitive line breaks")
2006 (description "The command @code{\\url} is a form of verbatim command that
2007 allows linebreaks at certain characters or combinations of characters, accepts
2008 reconfiguration, and can usually be used in the argument to another command.
2009 The command is intended for email addresses, hypertext links,
2010 directories/paths, etc., which normally have no spaces, so by default the
2011 package ignores spaces in its argument. However, a package option allows
2012 spaces, which is useful for operating systems where spaces are a common part
2014 ;; The license header states that it is under LPPL version 2 or later, but
2015 ;; the latest version is 1.3c.
2016 (license license:lppl1.3c+)))
2018 (define-public texlive-latex-l3kernel
2020 (name "texlive-latex-l3kernel")
2021 (version (number->string %texlive-revision))
2024 (uri (texlive-ref "latex" "l3kernel"))
2025 (file-name (string-append name "-" version "-checkout"))
2028 "0p3fsxap1ilwjz356aq4s5ygwvdscis8bh93g8klf8mhrd8cr2jy"))))
2029 (build-system texlive-build-system)
2031 '(#:tex-directory "latex/l3kernel"))
2032 (home-page "https://www.ctan.org/pkg/l3kernel")
2033 (synopsis "LaTeX3 programmers’ interface")
2035 "The l3kernel bundle provides an implementation of the LaTeX3
2036 programmers’ interface, as a set of packages that run under LaTeX 2e. The
2037 interface provides the foundation on which the LaTeX3 kernel and other future
2038 code are built: it is an API for TeX programmers. The packages are set up so
2039 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
2040 (license license:lppl1.3c+)))
2042 (define-public texlive-latex-l3packages
2044 (name "texlive-latex-l3packages")
2045 (version (number->string %texlive-revision))
2048 (uri (texlive-ref "latex" "l3packages"))
2049 (file-name (string-append name "-" version "-checkout"))
2052 "0pyx0hffiyss363vv7fkrcdiaf7p099xnq0mngzqc7v8v9q849hs"))))
2053 (build-system texlive-build-system)
2055 '(#:tex-directory "latex/l3packages"
2056 ;; build-targets must be specified manually since they are in
2058 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
2060 (modify-phases %standard-phases
2061 ;; All package sources are in sub-directories, so we need to add them
2063 (add-after 'unpack 'set-TEXINPUTS
2065 (let ((cwd (getcwd)))
2067 (string-append cwd "/l3keys2e:"
2072 ;; The terminating ":" is required to include the
2073 ;; l3kernel input as well.
2078 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
2079 (home-page "https://www.ctan.org/pkg/l3packages")
2080 (synopsis "High-level LaTeX3 concepts")
2082 "This bundle holds prototype implementations of concepts for a LaTeX
2083 designer interface, to be used with the experimental LaTeX kernel as
2084 programming tools and kernel support. Packages provided in this release are:
2087 @item l3keys2e, which makes the facilities of the kernel module l3keys
2088 available for use by LaTeX 2e packages;
2089 @item xfrac, which provides flexible splitlevel fractions;
2090 @item xparse, which provides a high-level interface for declaring document
2092 @item xtemplate, which provides a means of defining generic functions using a
2095 (license license:lppl1.3c+)))
2097 (define-public texlive-latex-fontspec
2099 (name "texlive-latex-fontspec")
2100 (version (number->string %texlive-revision))
2103 (uri (texlive-ref "latex" "fontspec"))
2104 (file-name (string-append name "-" version "-checkout"))
2107 "1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq"))))
2108 (build-system texlive-build-system)
2110 '(#:tex-directory "latex/fontspec"
2112 (modify-phases %standard-phases
2113 (add-after 'install 'install-default-fontspec.cfg
2114 (lambda* (#:key outputs #:allow-other-keys)
2115 (with-output-to-file
2116 (string-append (assoc-ref outputs "out")
2117 "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg")
2120 %%% FONTSPEC.CFG %%%
2122 % This configuration file sets up TeX Ligatures by default for all fonts loaded
2123 % with `\\setmainfont` and `\\setsansfont`.
2125 % In addition, `\\setmonofont` has default features to enforce \"monospace\"
2126 % settings with regard to space stretchability and shrinkability.
2128 \\defaultfontfeatures
2129 [\\rmfamily,\\sffamily]
2132 \\defaultfontfeatures
2136 PunctuationSpace=WordSpace}
2140 `(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
2141 (home-page "https://www.ctan.org/pkg/fontspec")
2142 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
2144 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
2145 automatic and unified interface to feature-rich AAT and OpenType fonts through
2146 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
2147 the l3kernel and xparse bundles from the LaTeX 3 development team.")
2148 (license license:lppl1.3+)))
2150 ;; The SVN directory contains little more than a dtx file that generates three
2151 ;; of the many lua files that should be installed as part of this package.
2152 ;; This is why we take the release from GitHub instead.
2153 (define-public texlive-luatex-lualibs
2155 (name "texlive-luatex-lualibs")
2159 (uri (string-append "https://github.com/lualatex/lualibs/"
2160 "releases/download/v"
2161 version "/lualibs.zip"))
2162 (file-name (string-append name "-" version ".zip"))
2165 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
2166 (build-system gnu-build-system)
2169 (list (string-append "DESTDIR="
2170 (assoc-ref %outputs "out")
2171 "/share/texmf-dist"))
2173 (modify-phases %standard-phases
2174 (delete 'configure))))
2176 `(("texlive-bin" ,texlive-bin)
2179 (home-page "https://github.com/lualatex/lualibs")
2180 (synopsis "Lua modules for general programming (in the (La)TeX world)")
2182 "Lualibs is a collection of Lua modules useful for general programming.
2183 The bundle is based on Lua modules shipped with ConTeXt, and made available in
2184 this bundle for use independent of ConTeXt.")
2185 ;; GPL version 2 only
2186 (license license:gpl2)))
2188 (define-public texlive-luatex-luaotfload
2190 (name "texlive-luatex-luaotfload")
2191 (version "2.8-fix-2")
2192 ;; The release tarball does not contain all source files.
2196 (url "https://github.com/lualatex/luaotfload.git")
2197 (commit (string-append "v" version))))
2198 (file-name (git-file-name name version))
2201 "0l5l7iq3dxcxl65qaghcpjg27yd9iw1sxa8pnd7xlvlm09dhfdnf"))))
2202 (build-system gnu-build-system)
2205 (list (string-append "DESTDIR="
2206 (assoc-ref %outputs "out")
2207 "/share/texmf-dist")
2209 #:parallel-build? #f ; not supported
2211 (modify-phases %standard-phases
2213 (lambda* (#:key inputs #:allow-other-keys)
2214 (substitute* "doc/Makefile"
2215 (("rst2man") "rst2man.py")
2216 ;; Don't build the PDF. This requires more of LaTeX.
2217 (("\\$\\(DOCPDF\\)") ""))
2219 (substitute* "Makefile"
2220 ;; We don't build the PDF, so don't attempt to install it.
2221 (("cp \\$\\(RESOURCES\\) \\$\\(DOCPDF\\)")
2223 (("= \\$\\(DOCPDF\\)") "= ")
2224 ;; Fix name of fontloader file
2225 (("^LOADER.*= \\$\\(BUILDDIR\\)/fontloader-\\$\\(shell date \\+%F\\).lua")
2226 "LOADER = $(BUILDDIR)/fontloader.lua"))
2230 ;; Don't download this file.
2231 (copy-file (assoc-ref inputs "glyphlist")
2232 "build/glyphlist.txt")
2236 `((committer . "Philipp Gesang <phg@phi-gamma.net>")
2237 (description . ,version)
2238 (loader . "fontloader.lua")
2239 (revision . "ad480924393fffa2896156e1a32c22f5c61120dd")
2240 (timestamp . "2019-01-01 00:00:00 +0000"))))
2241 (substitute* "scripts/mkstatus"
2242 (("local notes.*=.*")
2243 (string-append "local notes = {"
2245 (map (lambda (entry)
2246 (format "[\"~a\"]=\"~a\","
2247 (symbol->string (car entry))
2255 ("graphviz" ,graphviz)
2256 ("lualatex" ,(texlive-union (list texlive-luatex-lualibs
2257 texlive-context-base)))
2258 ("python-docutils" ,python-docutils)
2262 (uri (string-append "https://raw.githubusercontent.com/adobe-type-tools/"
2263 "agl-aglfn/b2a04cb906f9257cc06a2fe0ad4b3d663bc02136/"
2266 (base32 "1s6svfw23rqzdvflv8frgd4xrwvrmsj8szwzqgcd39dp9rpjafjp"))))))
2268 `(("texlive-luatex-lualibs" ,texlive-luatex-lualibs)))
2269 (home-page "https://github.com/lualatex/luaotfload")
2270 (synopsis "OpenType font loader for LuaTeX")
2272 "Luaotfload is an adaptation of the ConTeXt font loading system for the
2273 Plain and LaTeX formats. It allows OpenType fonts to be loaded with font
2274 features accessible using an extended font request syntax while providing
2275 compatibilitywith XeTeX. By indexing metadata in a database it facilitates
2276 loading fonts by their proper names instead of file names.")
2277 ;; GPL version 2 only
2278 (license license:gpl2)))
2280 (define-public texlive-latex-amsmath
2282 (name "texlive-latex-amsmath")
2283 (version (number->string %texlive-revision))
2286 (uri (texlive-ref "latex" "amsmath"))
2287 (file-name (string-append name "-" version "-checkout"))
2290 "0arvk7gn32mshnfdad5qkgf3i1arxq77k3vq7wnpm4nwnrzclxal"))))
2291 (build-system texlive-build-system)
2292 (arguments '(#:tex-directory "latex/amsmath"))
2293 (home-page "https://www.ctan.org/pkg/amsmath")
2294 (synopsis "AMS mathematical facilities for LaTeX")
2296 "This is the principal package in the AMS-LaTeX distribution. It adapts
2297 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
2298 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
2299 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
2300 symbols), @code{amsopnamsopn} (for operator names) and
2301 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
2302 This package is part of the LaTeX required distribution; however, several
2303 contributed packages add still further to its appeal; examples are
2304 @code{empheqempheq}, which provides functions for decorating and highlighting
2305 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
2307 (license license:lppl1.3c+)))
2309 (define-public texlive-latex-amscls
2311 (name "texlive-latex-amscls")
2312 (version (number->string %texlive-revision))
2315 (uri (texlive-ref "latex" "amscls"))
2316 (file-name (string-append name "-" version "-checkout"))
2319 "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca"))))
2320 (build-system texlive-build-system)
2322 `(#:tex-directory "latex/amscls"))
2323 (home-page "https://www.ctan.org/pkg/amscls")
2324 (synopsis "AMS document classes for LaTeX")
2326 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
2327 articles for the AMS), @code{amsbookamsbook} (for books) and
2328 @code{amsprocamsproc} (for proceedings), together with some supporting
2329 material. The material is made available as part of the AMS-LaTeX
2331 (license license:lppl1.3c+)))
2333 (define-public texlive-latex-babel
2335 (name "texlive-latex-babel")
2336 (version (number->string %texlive-revision))
2339 (uri (texlive-ref "latex" "babel"))
2340 (file-name (string-append name "-" version "-checkout"))
2343 "0yhlfiz3fjc8jd46f1zrjj4jig48l8rrzh8cmd8ammml8z9a01z6"))))
2344 (build-system texlive-build-system)
2346 '(#:tex-directory "generic/babel"
2348 (modify-phases %standard-phases
2349 ;; This package tries to produce babel.aux twice but refuses to
2350 ;; overwrite the first one.
2351 (add-before 'build 'fix-ins
2353 (substitute* "babel.ins"
2354 (("askonceonly") "askforoverwritefalse"))
2356 (home-page "https://www.ctan.org/pkg/babel")
2357 (synopsis "Multilingual support for Plain TeX or LaTeX")
2359 "The package manages culturally-determined typographical (and other)
2360 rules, and hyphenation patterns for a wide range of languages. A document may
2361 select a single language to be supported, or it may select several, in which
2362 case the document may switch from one language to another in a variety of
2363 ways. Babel uses contributed configuration files that provide the detail of
2364 what has to be done for each language. Users of XeTeX are advised to use the
2365 polyglossia package rather than Babel.")
2366 (license license:lppl1.3+)))
2368 (define-public texlive-generic-babel-english
2370 (name "texlive-generic-babel-english")
2371 (version (number->string %texlive-revision))
2374 (uri (texlive-ref "generic" "babel-english"))
2375 (file-name (string-append name "-" version "-checkout"))
2378 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
2379 (build-system texlive-build-system)
2380 (arguments '(#:tex-directory "generic/babel-english"))
2381 (home-page "https://www.ctan.org/pkg/babel-english")
2382 (synopsis "Babel support for English")
2384 "This package provides the language definition file for support of
2385 English in @code{babel}. Care is taken to select British hyphenation patterns
2386 for British English and Australian text, and default (\"american\") patterns
2387 for Canadian and USA text.")
2388 (license license:lppl1.3+)))
2390 (define-public texlive-generic-babel-german
2392 (name "texlive-generic-babel-german")
2393 (version (number->string %texlive-revision))
2396 (uri (texlive-ref "generic" "babel-german"))
2397 (file-name (string-append name "-" version "-checkout"))
2400 "0h47s67gnhdaxfgbf8pirp5vw4z6rrhxl8zav803yjxka0096i3y"))))
2401 (build-system texlive-build-system)
2402 (arguments '(#:tex-directory "generic/babel-german"))
2403 (home-page "https://www.ctan.org/pkg/babel-german")
2404 (synopsis "Babel support for German")
2406 "This package provides the language definition file for support of German
2407 in @code{babel}. It provides all the necessary macros, definitions and
2408 settings to typeset German documents. The bundle includes support for the
2409 traditional and reformed German orthography as well as for the Austrian and
2410 Swiss varieties of German.")
2411 (license license:lppl1.3+)))
2413 (define-public texlive-latex-cyrillic
2415 (name "texlive-latex-cyrillic")
2416 (version (number->string %texlive-revision))
2419 (uri (texlive-ref "latex" "cyrillic"))
2420 (file-name (string-append name "-" version "-checkout"))
2423 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
2424 (build-system texlive-build-system)
2426 '(#:tex-directory "latex/cyrillic"))
2427 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
2428 (synopsis "Support for Cyrillic fonts in LaTeX")
2430 "This bundle of macros files provides macro support (including font
2431 encoding macros) for the use of Cyrillic characters in fonts encoded under the
2432 T2* and X2 encodings. These encodings cover (between them) pretty much every
2433 language that is written in a Cyrillic alphabet.")
2434 (license license:lppl1.3c+)))
2436 (define-public texlive-latex-psnfss
2438 (name "texlive-latex-psnfss")
2439 (version (number->string %texlive-revision))
2442 (uri (texlive-ref "latex" "psnfss"))
2443 (file-name (string-append name "-" version "-checkout"))
2446 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
2447 (build-system texlive-build-system)
2448 (arguments '(#:tex-directory "latex/psnfss"))
2449 (home-page "https://www.ctan.org/pkg/psnfss")
2450 (synopsis "Font support for common PostScript fonts")
2452 "The PSNFSS collection includes a set of files that provide a complete
2453 working setup of the LaTeX font selection scheme (NFSS2) for use with common
2454 PostScript fonts. It covers the so-called \"Base\" fonts (which are built
2455 into any Level 2 PostScript printing device and the Ghostscript interpreter)
2456 and a number of free fonts. It provides font definition files, macros and
2457 font metrics. The bundle as a whole is part of the LaTeX required set of
2459 (license license:lppl1.2+)))
2461 ;; For user profiles
2462 (define-public texlive-base
2463 (let ((default-packages
2469 texlive-metafont-base
2471 ;; LaTeX packages from the "required" set.
2472 texlive-latex-amsmath
2473 texlive-latex-amscls
2475 texlive-generic-babel-english
2476 texlive-latex-cyrillic
2477 texlive-latex-graphics
2478 texlive-latex-psnfss
2479 texlive-latex-tools)))
2481 (name "texlive-base")
2482 (version (number->string %texlive-revision))
2484 (build-system trivial-build-system)
2487 (begin (mkdir (assoc-ref %outputs "out")))))
2489 (map (lambda (package)
2490 (list (package-name package) package))
2492 (home-page (package-home-page texlive-bin))
2493 (synopsis "TeX Live base packages")
2494 (description "This is a very limited subset of the TeX Live distribution.
2495 It includes little more than the required set of LaTeX packages.")
2496 (license (fold (lambda (package result)
2497 (match (package-license package)
2499 (append lst result))
2500 ((? license:license? license)
2501 (cons license result))))
2503 default-packages)))))
2505 ;; For use in package definitions only
2506 (define-public texlive-union
2507 (lambda* (#:optional (packages '()))
2508 "Return 'texlive-union' package which is a union of PACKAGES and the
2509 standard LaTeX packages."
2510 (let ((default-packages (match (package-propagated-inputs texlive-base)
2511 (((labels packages) ...) packages))))
2512 (package (inherit texlive-base)
2513 (name "texlive-union")
2514 (build-system trivial-build-system)
2516 '(#:modules ((guix build union)
2518 (guix build texlive-build-system)
2519 (guix build gnu-build-system)
2520 (guix build gremlin)
2524 (use-modules (ice-9 match)
2529 (guix build texlive-build-system))
2530 (let* ((out (assoc-ref %outputs "out"))
2531 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
2532 ;; Build a modifiable union of all inputs (but exclude bash and
2533 ;; the updmap.cfg file)
2534 (match (filter (match-lambda
2536 (not (member name '("bash" "updmap.cfg")))))
2538 (((names . directories) ...)
2539 (union-build (assoc-ref %outputs "out")
2541 #:create-all-directories? #t
2542 #:log-port (%make-void-port "w"))))
2544 ;; The configuration file "texmf.cnf" is provided by the
2545 ;; "texlive-bin" package. We take it and override only the
2546 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
2547 ;; by default, though, so we still need to set TEXMFCNF.
2548 (substitute* texmf.cnf
2549 (("^TEXMFROOT = .*")
2550 (string-append "TEXMFROOT = " out "/share\n"))
2552 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
2553 (setenv "PATH" (string-append
2554 (assoc-ref %build-inputs "bash") "/bin:"
2555 (assoc-ref %build-inputs "coreutils") "/bin:"
2556 (string-append out "/bin")))
2558 (cut wrap-program <>
2559 `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf)))
2560 `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist"))))
2561 (find-files (string-append out "/bin") ".*"))
2563 ;; Remove invalid maps from config file.
2564 (let ((port (open-pipe* OPEN_WRITE "updmap-sys"
2567 (assoc-ref %build-inputs "updmap.cfg"))))
2568 (display "Y\n" port)
2569 (when (not (zero? (status:exit-val (close-pipe port))))
2570 (error "failed to filter updmap.cfg")))
2572 (invoke "updmap-sys" "--force"
2573 (string-append out "/share/texmf-config/web2c/updmap.cfg"))
2577 ,@(map (lambda (package)
2578 (list (package-name package) package))
2579 (append default-packages packages))))
2581 `(("coreutils" ,coreutils)
2586 (uri (string-append "https://tug.org/svn/texlive/tags/"
2587 %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg"
2588 "?revision=" (number->string %texlive-revision)))
2589 (file-name (string-append "updmap.cfg-"
2590 (number->string %texlive-revision)))
2593 "06mwpy5i218g5k3sf4gba0fmxgas82hkzx9fhwn67z5ik37d8apq"))))))
2594 (home-page (package-home-page texlive-bin))
2595 (synopsis "Union of TeX Live packages")
2596 (description "This package provides a subset of the TeX Live
2598 (license (fold (lambda (package result)
2599 (match (package-license package)
2601 (append lst result))
2602 ((? license:license? license)
2603 (cons license result))))
2605 (append default-packages packages)))))))
2607 ;; For use in package definitions only
2608 (define-public texlive-tiny
2610 (inherit (texlive-union))
2611 (name "texlive-tiny")
2612 (description "This is a very limited subset of the TeX Live distribution.
2613 It includes little more than the required set of LaTeX packages.")))
2615 (define-public texlive-latex-amsrefs
2617 (name "texlive-latex-amsrefs")
2618 (version (number->string %texlive-revision))
2621 (uri (texlive-ref "latex" "amsrefs"))
2622 (file-name (string-append name "-" version "-checkout"))
2625 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
2626 (build-system texlive-build-system)
2627 (arguments '(#:tex-directory "latex/amsrefs"))
2628 (home-page "https://www.ctan.org/pkg/amsrefs")
2629 (synopsis "LaTeX-based replacement for BibTeX")
2631 "Amsrefs is a LaTeX package for bibliographies that provides an archival
2632 data format similar to the format of BibTeX database files, but adapted to
2633 make direct processing by LaTeX easier. The package can be used either in
2634 conjunction with BibTeX or as a replacement for BibTeX.")
2635 (license license:lppl1.3+)))
2637 (define-public texlive-latex-bigfoot
2639 (name "texlive-latex-bigfoot")
2640 (version (number->string %texlive-revision))
2643 (uri (texlive-ref "latex" "bigfoot"))
2644 (file-name (string-append name "-" version "-checkout"))
2647 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
2648 (build-system texlive-build-system)
2650 '(#:tex-directory "latex/bigfoot"
2652 (modify-phases %standard-phases
2653 (add-after 'unpack 'remove-generated-file
2655 (for-each delete-file (find-files "." "\\.drv$"))
2657 (home-page "https://www.ctan.org/pkg/bigfoot")
2658 (synopsis "Footnotes for critical editions")
2660 "This package aims to provide a one-stop solution to requirements for
2661 footnotes. It offers: Multiple footnote apparatus superior to that of
2662 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
2663 into a single paragraph (this choice may be selected per footnote series);
2664 Things you might have expected (such as @code{\\verb}-like material in
2665 footnotes, and color selections over page breaks) now work. Note that the
2666 majority of the bigfoot package's interface is identical to that of
2667 @code{manyfoot}; users should seek information from that package's
2668 documentation. The bigfoot bundle also provides the @code{perpage} and
2669 @code{suffix} packages.")
2670 (license license:gpl2+)))
2672 (define-public texlive-latex-blindtext
2674 (name "texlive-latex-blindtext")
2675 (version (number->string %texlive-revision))
2678 (uri (texlive-ref "latex" "blindtext"))
2679 (file-name (string-append name "-" version "-checkout"))
2682 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
2683 (build-system texlive-build-system)
2684 (arguments '(#:tex-directory "latex/blindtext"))
2685 (home-page "https://www.ctan.org/pkg/blindtext")
2686 (synopsis "Producing 'blind' text for testing")
2688 "The package provides the commands @code{\\blindtext} and
2689 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
2690 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
2691 an entire random document with sections, lists, mathematics, etc. The package
2692 supports three languages, @code{english}, @code{(n)german} and @code{latin};
2693 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
2694 ipsum\" text, see the @code{lipsum} package).")
2695 (license license:lppl)))
2697 (define-public texlive-latex-dinbrief
2699 (name "texlive-latex-dinbrief")
2700 (version (number->string %texlive-revision))
2703 (uri (texlive-ref "latex" "dinbrief"))
2704 (file-name (string-append name "-" version "-checkout"))
2707 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
2708 (build-system texlive-build-system)
2710 '(#:tex-directory "latex/dinbrief"
2712 (modify-phases %standard-phases
2713 (add-after 'unpack 'remove-generated-file
2715 (delete-file "dinbrief.drv")
2717 (add-after 'unpack 'fix-encoding-error
2719 (with-fluids ((%default-port-encoding "ISO-8859-1"))
2720 (substitute* "dinbrief.dtx"
2721 (("zur Verf.+ung. In der Pr\"aambel")
2722 "zur Verf\"ung. In der Pr\"aambel")))
2724 (home-page "https://www.ctan.org/pkg/dinbrief")
2725 (synopsis "German letter DIN style")
2727 "This package implements a document layout for writing letters according
2728 to the rules of DIN (Deutsches Institut für Normung, German standardisation
2729 institute). A style file for LaTeX 2.09 (with limited support of the
2730 features) is part of the package. Since the letter layout is based on a
2731 German standard, the user guide is written in German, but most macros have
2732 English names from which the user can recognize what they are used for. In
2733 addition there are example files showing how letters may be created with the
2735 (license license:lppl)))
2737 (define-public texlive-latex-draftwatermark
2739 (name "texlive-latex-draftwatermark")
2740 (version (number->string %texlive-revision))
2743 (uri (texlive-ref "latex" "draftwatermark"))
2744 (file-name (string-append name "-" version "-checkout"))
2747 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
2748 (build-system texlive-build-system)
2749 (arguments '(#:tex-directory "latex/draftwatermark"))
2750 (home-page "https://www.ctan.org/pkg/draftwatermark")
2751 (synopsis "Put a grey textual watermark on document pages")
2753 "This package provides a means to add a textual, light grey watermark on
2754 every page or on the first page of a document. Typical usage may consist in
2755 writing words such as DRAFT or CONFIDENTIAL across document pages. The
2756 package performs a similar function to that of @code{draftcopy}, but its
2757 implementation is output device independent, and made very simple by relying
2759 (license license:lppl1.3+)))
2761 (define-public texlive-latex-environ
2763 (name "texlive-latex-environ")
2764 (version (number->string %texlive-revision))
2767 (uri (texlive-ref "latex" "environ"))
2768 (file-name (string-append name "-" version "-checkout"))
2771 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
2772 (build-system texlive-build-system)
2773 (arguments '(#:tex-directory "latex/environ"))
2774 (home-page "https://www.ctan.org/pkg/environ")
2775 (synopsis "New interface for environments in LaTeX")
2777 "This package provides the @code{\\collect@@body} command (as in
2778 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
2779 for collecting the body text of an environment. These commands are used to
2780 define a new author interface to creating new environments.")
2781 (license license:lppl)))
2783 (define-public texlive-latex-eqparbox
2785 (name "texlive-latex-eqparbox")
2786 (version (number->string %texlive-revision))
2789 (uri (texlive-ref "latex" "eqparbox"))
2790 (file-name (string-append name "-" version "-checkout"))
2793 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
2794 (build-system texlive-build-system)
2795 (arguments '(#:tex-directory "latex/eqparbox"))
2796 (home-page "https://www.ctan.org/pkg/eqparbox")
2797 (synopsis "Create equal-widthed parboxes")
2799 "LaTeX users sometimes need to ensure that two or more blocks of text
2800 occupy the same amount of horizontal space on the page. To that end, the
2801 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
2802 just like @code{\\parbox}, except that instead of specifying a width, one
2803 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
2804 where they are in the document---will stretch to fit the widest
2805 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
2806 for a variety of alignment purposes, as is evidenced by the examples in
2807 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
2809 (license license:lppl1.3+)))
2811 (define-public texlive-latex-expdlist
2813 (name "texlive-latex-expdlist")
2814 (version (number->string %texlive-revision))
2817 (uri (texlive-ref "latex" "expdlist"))
2818 (file-name (string-append name "-" version "-checkout"))
2821 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
2822 (build-system texlive-build-system)
2824 '(#:tex-directory "latex/expdlist"
2826 (modify-phases %standard-phases
2827 (add-after 'unpack 'remove-generated-file
2829 (for-each delete-file
2830 (find-files "." "\\.drv$"))
2832 (home-page "https://www.ctan.org/pkg/expdlist")
2833 (synopsis "Expanded description environments")
2835 "The package provides additional features for the LaTeX
2836 @code{description} environment, including adjustable left margin. The package
2837 also allows the user to \"break\" a list (for example, to interpose a comment)
2838 without affecting the structure of the list (this works for @code{itemize} and
2839 @code{enumerate} lists, and numbered lists remain in sequence).")
2840 (license license:lppl)))
2842 (define-public texlive-latex-filemod
2844 (name "texlive-latex-filemod")
2845 (version (number->string %texlive-revision))
2849 (url (string-append "svn://www.tug.org/texlive/tags/"
2850 %texlive-tag "/Master/texmf-dist/"
2851 "/tex/latex/filemod"))
2852 (revision %texlive-revision)))
2853 (file-name (string-append name "-" version "-checkout"))
2856 "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
2857 (build-system trivial-build-system)
2859 `(#:modules ((guix build utils))
2862 (use-modules (guix build utils))
2863 (let ((target (string-append (assoc-ref %outputs "out")
2864 "/share/texmf-dist/tex/latex/filemod")))
2866 (copy-recursively (assoc-ref %build-inputs "source") target)
2868 (home-page "https://www.ctan.org/pkg/filemod")
2869 (synopsis "Provide file modification times, and compare them")
2871 "This package provides macros to read and compare the modification dates
2872 of files. The files may be @code{.tex} files, images or other files (as long
2873 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
2874 of pdfLaTeX to find the file modification date as PDF date string, parses the
2875 string and returns the value to the user. The package will also work for DVI
2876 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
2877 mode. The functionality is provided by purely expandable macros or by faster
2878 but non-expandable ones.")
2879 (license license:lppl1.3+)))
2881 (define-public texlive-latex-ifplatform
2883 (name "texlive-latex-ifplatform")
2884 (version (number->string %texlive-revision))
2887 (uri (texlive-ref "latex" "ifplatform"))
2888 (file-name (string-append name "-" version "-checkout"))
2891 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
2892 (build-system texlive-build-system)
2893 (arguments '(#:tex-directory "latex/ifplatform"))
2894 (home-page "https://www.ctan.org/pkg/ifplatform")
2895 (synopsis "Conditionals to test which platform is being used")
2897 "This package uses the (La)TeX extension @code{-shell-escape} to
2898 establish whether the document is being processed on a Windows or on a
2899 Unix-like system, or on Cygwin (Unix environment over a Windows system).
2900 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
2901 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
2902 on a Unix-like system, which may be used to distinguish between various
2903 classes of systems.")
2904 (license license:lppl)))
2906 (define-public texlive-latex-natbib
2908 (name "texlive-latex-natbib")
2909 (version (number->string %texlive-revision))
2912 (uri (texlive-ref "latex" "natbib"))
2913 (file-name (string-append name "-" version "-checkout"))
2916 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
2917 (build-system texlive-build-system)
2918 (arguments '(#:tex-directory "latex/natbib"))
2919 (home-page "https://www.ctan.org/pkg/natbib")
2920 (synopsis "Flexible bibliography support")
2922 "This bundle provides a package that implements both author-year and
2923 numbered references, as well as much detailed of support for other
2924 bibliography use. Also provided are versions of the standard BibTeX styles
2925 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
2926 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
2927 designed from the start to be compatible with @code{natbib}.")
2928 (license license:lppl)))
2930 (define-public texlive-latex-psfrag
2932 (name "texlive-latex-psfrag")
2933 (version (number->string %texlive-revision))
2936 (uri (texlive-ref "latex" "psfrag"))
2937 (file-name (string-append name "-" version "-checkout"))
2940 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
2941 (build-system texlive-build-system)
2942 (arguments '(#:tex-directory "latex/psfrag"))
2943 (home-page "https://www.ctan.org/pkg/psfrag")
2944 (synopsis "Replace strings in encapsulated PostScript figures")
2946 "This package allows LaTeX constructions (equations, picture
2947 environments, etc.) to be precisely superimposed over Encapsulated PostScript
2948 figures, using your own favorite drawing tool to create an EPS figure and
2949 placing simple text \"tags\" where each replacement is to be placed, with
2950 PSfrag automatically removing these tags from the figure and replacing them
2951 with a user specified LaTeX construction, properly aligned, scaled, and/or
2953 (license (license:fsf-free "file://psfrag.dtx"))))
2955 (define-public texlive-latex-xkeyval
2957 (name "texlive-latex-xkeyval")
2958 (version (number->string %texlive-revision))
2961 (uri (texlive-ref "latex" "xkeyval"))
2962 (file-name (string-append name "-" version "-checkout"))
2965 "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp"))))
2966 (build-system texlive-build-system)
2967 (arguments '(#:tex-directory "latex/xkeyval"))
2968 (home-page "https://www.ctan.org/pkg/xkeyval")
2969 (synopsis "Macros for defining and setting keys")
2971 "This package is an extension of the @code{keyval} package and offers
2972 more flexible macros for defining and setting keys. The package provides a
2973 pointer and a preset system. Furthermore, it supplies macros to allow class
2974 and package options to contain options of the @code{key=value} form. A LaTeX
2975 kernel patch is provided to avoid premature expansions of macros in class or
2976 package options. A specialized system for setting @code{PSTricks} keys is
2977 provided by the @code{pst-xkey} package.")
2978 (license license:lppl1.3+)))
2980 (define-public texlive-latex-pstool
2982 (name "texlive-latex-pstool")
2983 (version (number->string %texlive-revision))
2987 (url (string-append "svn://www.tug.org/texlive/tags/"
2988 %texlive-tag "/Master/texmf-dist/"
2989 "/tex/latex/pstool"))
2990 (revision %texlive-revision)))
2991 (file-name (string-append name "-" version "-checkout"))
2994 "1h816jain8c9nky75kk8pmmwj5b4yf9dpqvdvi2l6jhfj5iqkzr8"))))
2995 (build-system trivial-build-system)
2997 `(#:modules ((guix build utils))
3000 (use-modules (guix build utils))
3001 (let ((target (string-append (assoc-ref %outputs "out")
3002 "/share/texmf-dist/tex/latex/pstool")))
3004 (copy-recursively (assoc-ref %build-inputs "source") target)
3007 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix
3008 ("texlive-latex-filemod" ,texlive-latex-filemod)
3009 ("texlive-latex-graphics" ,texlive-latex-graphics)
3010 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
3011 ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3
3012 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
3013 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
3014 ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc
3015 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)
3016 ("texlive-latex-xkeyval" ,texlive-latex-xkeyval)))
3017 (home-page "https://www.ctan.org/pkg/pstool")
3018 (synopsis "Process PostScript graphics within pdfLaTeX documents")
3020 "This is a package for processing PostScript graphics with @code{psfrag}
3021 labels within pdfLaTeX documents. Every graphic is compiled individually,
3022 drastically speeding up compilation time when only a single figure needs
3024 (license license:lppl)))
3026 (define-public texlive-latex-seminar
3028 (name "texlive-latex-seminar")
3029 (version (number->string %texlive-revision))
3033 (url (string-append "svn://www.tug.org/texlive/tags/"
3034 %texlive-tag "/Master/texmf-dist/"
3035 "/tex/latex/seminar"))
3036 (revision %texlive-revision)))
3037 (file-name (string-append name "-" version "-checkout"))
3040 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
3041 (build-system trivial-build-system)
3043 `(#:modules ((guix build utils))
3046 (use-modules (guix build utils))
3047 (let ((target (string-append (assoc-ref %outputs "out")
3048 "/share/texmf-dist/tex/latex/seminar")))
3050 (copy-recursively (assoc-ref %build-inputs "source") target)
3052 (home-page "https://www.ctan.org/pkg/seminar")
3053 (synopsis "Make overhead slides")
3054 ;; TODO: This package may need fancybox and xcomment at runtime.
3056 "This package provides a class that produces overhead
3057 slides (transparencies), with many facilities. Seminar is not nowadays
3058 reckoned a good basis for a presentation — users are advised to use more
3059 recent classes such as powerdot or beamer, both of which are tuned to
3060 21st-century presentation styles.")
3061 (license license:lppl1.2+)))
3063 (define-public texlive-latex-trimspaces
3065 (name "texlive-latex-trimspaces")
3066 (version (number->string %texlive-revision))
3069 (uri (texlive-ref "latex" "trimspaces"))
3070 (file-name (string-append name "-" version "-checkout"))
3073 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
3074 (build-system texlive-build-system)
3076 '(#:tex-directory "latex/trimspaces"
3077 #:tex-format "latex"
3079 (modify-phases %standard-phases
3080 (add-after 'unpack 'fix-bug
3082 ;; The "ins" file refers to the wrong source file.
3083 (substitute* "trimspaces.ins"
3084 (("pstool.tex") "trimspaces.tex"))
3087 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
3088 (home-page "https://www.ctan.org/pkg/trimspaces")
3089 (synopsis "Trim spaces around an argument or within a macro")
3091 "This very short package allows you to expandably remove spaces around a
3092 token list (commands are provided to remove spaces before, spaces after, or
3093 both); or to remove surrounding spaces within a macro definition, or to define
3094 space-stripped macros.")
3095 (license license:lppl)))
3097 (define-public texlive-latex-capt-of
3099 (name "texlive-latex-capt-of")
3100 (version (number->string %texlive-revision))
3104 (url (string-append "svn://www.tug.org/texlive/tags/"
3105 %texlive-tag "/Master/texmf-dist/"
3106 "/tex/latex/capt-of"))
3107 (revision %texlive-revision)))
3108 (file-name (string-append name "-" version "-checkout"))
3111 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
3112 (build-system trivial-build-system)
3114 `(#:modules ((guix build utils))
3117 (use-modules (guix build utils))
3118 (let ((target (string-append (assoc-ref %outputs "out")
3119 "/share/texmf-dist/tex/latex/capt-of")))
3121 (copy-recursively (assoc-ref %build-inputs "source") target)
3123 (home-page "https://www.ctan.org/pkg/capt-of")
3124 (synopsis "Captions on more than floats")
3126 "This package defines a command @code{\\captionof} for putting a caption
3127 to something that's not a float.")
3128 (license license:lppl)))
3130 (define-public texlive-latex-doi
3132 (name "texlive-latex-doi")
3133 (version (number->string %texlive-revision))
3137 (url (string-append "svn://www.tug.org/texlive/tags/"
3138 %texlive-tag "/Master/texmf-dist/"
3140 (revision %texlive-revision)))
3141 (file-name (string-append name "-" version "-checkout"))
3144 "0378rdmrgr2lzbfi4qqy4dfpj5im20diyd8z8b9m4mlg05r7wgnb"))))
3145 (build-system trivial-build-system)
3147 `(#:modules ((guix build utils))
3150 (use-modules (guix build utils))
3151 (let ((target (string-append (assoc-ref %outputs "out")
3152 "/share/texmf-dist/tex/latex/doi")))
3154 (copy-recursively (assoc-ref %build-inputs "source") target)
3156 (home-page "https://www.ctan.org/pkg/doi")
3157 (synopsis "Create correct hyperlinks for DOI numbers")
3159 "You can hyperlink DOI numbers to doi.org. However, some publishers have
3160 elected to use nasty characters in their DOI numbering scheme (@code{<},
3161 @code{>}, @code{_} and @code{;} have all been spotted). This will either
3162 upset LaTeX, or your PDF reader. This package contains a single user-level
3163 command @code{\\doi{}}, which takes a DOI number, and creates a correct
3164 hyperlink to the target of the DOI.")
3165 ;; Any version of the LPPL.
3166 (license license:lppl1.3+)))
3168 (define-public texlive-latex-etoolbox
3170 (name "texlive-latex-etoolbox")
3171 (version (number->string %texlive-revision))
3175 (url (string-append "svn://www.tug.org/texlive/tags/"
3176 %texlive-tag "/Master/texmf-dist/"
3177 "/tex/latex/etoolbox"))
3178 (revision %texlive-revision)))
3179 (file-name (string-append name "-" version "-checkout"))
3182 "1agmq6bf8wzcd77n20ng8bl4kh69cg5f6sjniii7bcw4llhd3nc8"))))
3183 (build-system trivial-build-system)
3185 `(#:modules ((guix build utils))
3188 (use-modules (guix build utils))
3189 (let ((target (string-append (assoc-ref %outputs "out")
3190 "/share/texmf-dist/tex/latex/etoolbox")))
3192 (copy-recursively (assoc-ref %build-inputs "source") target)
3194 (home-page "https://www.ctan.org/pkg/etoolbox")
3195 (synopsis "e-TeX tools for LaTeX")
3197 "This package is a toolbox of programming facilities geared primarily
3198 towards LaTeX class and package authors. It provides LaTeX frontends to some
3199 of the new primitives provided by e-TeX as well as some generic tools which
3200 are not strictly related to e-TeX but match the profile of this package. The
3201 package provides functions that seem to offer alternative ways of implementing
3202 some LaTeX kernel commands; nevertheless, the package will not modify any part
3203 of the LaTeX kernel.")
3204 (license license:lppl1.3+)))
3206 (define-public texlive-latex-fncychap
3208 (name "texlive-latex-fncychap")
3209 (version (number->string %texlive-revision))
3213 (url (string-append "svn://www.tug.org/texlive/tags/"
3214 %texlive-tag "/Master/texmf-dist/"
3215 "/tex/latex/fncychap"))
3216 (revision %texlive-revision)))
3217 (file-name (string-append name "-" version "-checkout"))
3220 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
3221 (build-system trivial-build-system)
3223 `(#:modules ((guix build utils))
3226 (use-modules (guix build utils))
3227 (let ((target (string-append (assoc-ref %outputs "out")
3228 "/share/texmf-dist/tex/latex/fncychap")))
3230 (copy-recursively (assoc-ref %build-inputs "source") target)
3232 (home-page "https://www.ctan.org/pkg/fncychap")
3233 (synopsis "Seven predefined chapter heading styles")
3235 "This package provides seven predefined chapter heading styles. Each
3236 style can be modified using a set of simple commands. Optionally one can
3237 modify the formatting routines in order to create additional chapter
3239 (license license:lppl1.3+)))
3241 (define-public texlive-latex-framed
3243 (name "texlive-latex-framed")
3244 (version (number->string %texlive-revision))
3248 (url (string-append "svn://www.tug.org/texlive/tags/"
3249 %texlive-tag "/Master/texmf-dist/"
3250 "/tex/latex/framed"))
3251 (revision %texlive-revision)))
3252 (file-name (string-append name "-" version "-checkout"))
3255 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
3256 (build-system trivial-build-system)
3258 `(#:modules ((guix build utils))
3261 (use-modules (guix build utils))
3262 (let ((target (string-append (assoc-ref %outputs "out")
3263 "/share/texmf-dist/tex/latex/framed")))
3265 (copy-recursively (assoc-ref %build-inputs "source") target)
3267 (home-page "https://www.ctan.org/pkg/framed")
3268 (synopsis "Framed or shaded regions that can break across pages")
3270 "The package creates three environments: @code{framed}, which puts an
3271 ordinary frame box around the region, @code{shaded}, which shades the region,
3272 and @code{leftbar}, which places a line at the left side. The environments
3273 allow a break at their start (the @code{\\FrameCommand} enables creation of a
3274 title that is “attached” to the environment); breaks are also allowed in the
3275 course of the framed/shaded matter. There is also a command
3276 @code{\\MakeFramed} to make your own framed-style environments.")
3277 ;; The header states: "These macros may be freely transmitted, reproduced,
3278 ;; or modified for any purpose provided that this notice is left intact."
3279 (license (license:fsf-free "file://framed.sty"))))
3281 (define-public texlive-latex-g-brief
3283 (name "texlive-latex-g-brief")
3284 (version (number->string %texlive-revision))
3287 (uri (texlive-ref "latex" "g-brief"))
3288 (file-name (string-append name "-" version "-checkout"))
3291 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
3292 (build-system texlive-build-system)
3294 '(#:tex-directory "latex/g-brief"
3296 (modify-phases %standard-phases
3297 (add-after 'unpack 'remove-generated-file
3299 (delete-file "g-brief.drv")
3301 (home-page "https://www.ctan.org/pkg/g-brief")
3302 (synopsis "Letter document class")
3304 "This package is designed for formatting formless letters in German; it
3305 can also be used for English (by those who can read the documentation). There
3306 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
3307 \"old\" and a \"new\" version of g-brief.")
3308 (license license:lppl)))
3310 (define-public texlive-latex-galois
3312 (name "texlive-latex-galois")
3313 (version (number->string %texlive-revision))
3316 (uri (texlive-ref "latex" "galois"))
3317 (file-name (string-append name "-" version "-checkout"))
3320 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
3321 (build-system texlive-build-system)
3322 (arguments '(#:tex-directory "latex/galois"))
3323 (home-page "https://www.ctan.org/pkg/galois")
3324 (synopsis "Typeset Galois connections")
3326 "The package deals with connections in two-dimensional style, optionally
3328 (license license:lppl)))
3330 (define-public texlive-latex-gcite
3332 (name "texlive-latex-gcite")
3333 (version (number->string %texlive-revision))
3336 (uri (texlive-ref "latex" "gcite"))
3337 (file-name (string-append name "-" version "-checkout"))
3340 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
3341 (build-system texlive-build-system)
3342 (arguments '(#:tex-directory "latex/gcite"))
3343 (home-page "https://www.ctan.org/pkg/gcite")
3344 (synopsis "Citations in a reader-friendly style")
3346 "The package allows citations in the German style, which is considered by
3347 many to be particularly reader-friendly. The citation provides a small amount
3348 of bibliographic information in a footnote on the page where each citation is
3349 made. It combines a desire to eliminate unnecessary page-turning with the
3350 look-up efficiency afforded by numeric citations. The package makes use of
3351 BibLaTeX, and is considered experimental.")
3352 (license license:lppl1.3+)))
3354 (define-public texlive-latex-geometry
3356 (name "texlive-latex-geometry")
3357 (version (number->string %texlive-revision))
3360 (uri (texlive-ref "latex" "geometry"))
3361 (file-name (string-append name "-" version "-checkout"))
3364 "0yw6bjfgsli3s1dldsgb7mkr7lnk329cgdjbgs8z2xn59pmmdsn4"))))
3365 (build-system texlive-build-system)
3366 (arguments '(#:tex-directory "latex/geometry"))
3368 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek))) ;for ifpdf
3369 (home-page "https://www.ctan.org/pkg/geometry")
3370 (synopsis "Flexible and complete interface to document dimensions")
3372 "This package provides an easy and flexible user interface to customize
3373 page layout, implementing auto-centering and auto-balancing mechanisms so that
3374 the users have only to give the least description for the page layout. The
3375 package knows about all the standard paper sizes, so that the user need not
3376 know what the nominal \"real\" dimensions of the paper are, just its standard
3377 name (such as a4, letter, etc.). An important feature is the package's
3378 ability to communicate the paper size it's set up to the output.")
3379 (license license:lppl)))
3381 (define-public texlive-latex-mdwtools
3383 (name "texlive-latex-mdwtools")
3384 (version (number->string %texlive-revision))
3387 (uri (texlive-ref "latex" "mdwtools"))
3388 (file-name (string-append name "-" version "-checkout"))
3391 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
3392 (build-system texlive-build-system)
3393 (arguments '(#:tex-directory "latex/mdwtools"))
3394 (home-page "https://www.ctan.org/pkg/mdwtools")
3395 (synopsis "Miscellaneous tools by Mark Wooding")
3397 "This collection of tools includes: @code{atsupport} for short commands
3398 starting with @code{@@}, macros to sanitize the OT1 encoding of the
3399 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
3400 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
3401 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
3402 array environments; verbatim handling; and syntax diagrams.")
3403 (license license:gpl3+)))
3405 (define-public texlive-latex-polyglossia
3407 (name "texlive-latex-polyglossia")
3408 (version (number->string %texlive-revision))
3411 (uri (texlive-ref "latex" "polyglossia"))
3412 (file-name (string-append name "-" version "-checkout"))
3415 "03ma58z3ypsbp7zgkzb1ylpn2ygr27cxzkf042ns0rif4g8s491f"))))
3416 (build-system texlive-build-system)
3417 (arguments '(#:tex-directory "latex/polyglossia"))
3418 (home-page "https://www.ctan.org/pkg/polyglossia")
3419 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
3421 "This package provides a complete Babel replacement for users of LuaLaTeX
3422 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
3423 (license license:lppl1.3+)))
3425 (define-public texlive-latex-supertabular
3427 (name "texlive-latex-supertabular")
3428 (version (number->string %texlive-revision))
3431 (uri (texlive-ref "latex" "supertabular"))
3432 (file-name (string-append name "-" version "-checkout"))
3435 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
3436 (build-system texlive-build-system)
3437 (arguments '(#:tex-directory "latex/supertabular"))
3438 (home-page "https://www.ctan.org/pkg/supertabular")
3439 (synopsis "Multi-page tables package")
3441 "This package was a predecessor of @code{longtable}; the newer
3442 package (designed on quite different principles) is easier to use and more
3443 flexible, in many cases, but supertabular retains its usefulness in a few
3444 situations where longtable has problems.")
3445 (license license:lppl1.3+)))
3447 (define-public texlive-tex-texinfo
3449 (name "texlive-tex-texinfo")
3450 (version (number->string %texlive-revision))
3454 (url (string-append "svn://www.tug.org/texlive/tags/"
3455 %texlive-tag "/Master/texmf-dist/"
3457 (revision %texlive-revision)))
3458 (file-name (string-append name "-" version "-checkout"))
3461 "06cf821y1j7jdg93pb41ayigrfwgn0y49d7w1025zlijjxi6bvjp"))))
3462 (build-system trivial-build-system)
3464 `(#:modules ((guix build utils))
3467 (use-modules (guix build utils))
3468 (let ((target (string-append (assoc-ref %outputs "out")
3469 "/share/texmf-dist/tex/texinfo")))
3471 (copy-recursively (assoc-ref %build-inputs "source") target)
3473 (home-page "https://www.ctan.org/pkg/texinfo")
3474 (synopsis "TeX macros to handle Texinfo files")
3476 "Texinfo is the preferred format for documentation in the GNU project;
3477 the format may be used to produce online or printed output from a single
3478 source. The Texinfo macros may be used to produce printable output using TeX;
3479 other programs in the distribution offer online interactive use (with
3480 hypertext linkages in some cases).")
3481 (license license:gpl3+)))
3483 (define-public texlive-latex-upquote
3485 (name "texlive-latex-upquote")
3486 (version (number->string %texlive-revision))
3489 (uri (texlive-ref "latex" "upquote"))
3490 (file-name (string-append name "-" version "-checkout"))
3493 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
3494 (build-system texlive-build-system)
3495 (arguments '(#:tex-directory "latex/upquote"))
3496 (home-page "https://www.ctan.org/pkg/upquote")
3497 (synopsis "Show \"realistic\" quotes in verbatim")
3499 "Typewriter-style fonts are best for program listings, but Computer
3500 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
3501 single quotes. Other fonts, and most programming languages, print @code{`} as
3502 a grave accent and @code{'} upright; @code{'} is used both to open and to
3503 close quoted strings. The package switches the typewriter font to Computer
3504 Modern Typewriter in OT1 encoding, and modifies the behaviour of
3505 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
3506 in the expected way. It does this regardless of other fonts or encodings in
3507 use, so long as the package is loaded after the other fonts were. The package
3508 does not affect @code{\\tt}, @code{\\texttt}, etc.")
3509 (license license:lppl1.2+)))
3511 (define-public texlive-latex-anysize
3513 (name "texlive-latex-anysize")
3514 (version (number->string %texlive-revision))
3518 (url (string-append "svn://www.tug.org/texlive/tags/"
3519 %texlive-tag "/Master/texmf-dist/"
3520 "/tex/latex/anysize"))
3521 (revision %texlive-revision)))
3522 (file-name (string-append name "-" version "-checkout"))
3525 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
3526 (build-system trivial-build-system)
3528 `(#:modules ((guix build utils))
3531 (use-modules (guix build utils))
3532 (let ((target (string-append (assoc-ref %outputs "out")
3533 "/share/texmf-dist/tex/latex/anysize")))
3535 (copy-recursively (assoc-ref %build-inputs "source") target)
3537 (home-page "https://www.ctan.org/pkg/anysize")
3538 (synopsis "Simple package to set up document margins")
3540 "This is a simple package to set up document margins. This package is
3541 considered obsolete; alternatives are the @code{typearea} package from the
3542 @code{koma-script} bundle, or the @code{geometry} package.")
3543 (license license:public-domain)))
3545 (define-public texlive-latex-appendix
3547 (name "texlive-latex-appendix")
3548 (version (number->string %texlive-revision))
3551 (uri (texlive-ref "latex" "appendix"))
3552 (file-name (string-append name "-" version "-checkout"))
3555 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
3556 (build-system texlive-build-system)
3557 (arguments '(#:tex-directory "latex/appendix"))
3558 (home-page "https://www.ctan.org/pkg/appendix")
3559 (synopsis "Extra control of appendices")
3561 "The appendix package provides various ways of formatting the titles of
3562 appendices. Also (sub)appendices environments are provided that can be used,
3563 for example, for per chapter/section appendices. An @code{appendices}
3564 environment is provided which can be used instead of the @code{\\appendix}
3566 (license license:lppl)))
3568 (define-public texlive-latex-changebar
3570 (name "texlive-latex-changebar")
3571 (version (number->string %texlive-revision))
3574 (uri (texlive-ref "latex" "changebar"))
3575 (file-name (string-append name "-" version "-checkout"))
3578 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
3579 (build-system texlive-build-system)
3580 (arguments '(#:tex-directory "latex/changebar"))
3581 (home-page "https://www.ctan.org/pkg/changebar")
3582 (synopsis "Generate changebars in LaTeX documents")
3584 "Identify areas of text to be marked with changebars with the
3585 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
3586 package uses @code{drivers} to place the bars; the available drivers can work
3587 with @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
3588 drivers, and VTeX and pdfTeX.")
3589 (license license:lppl)))
3591 (define-public texlive-latex-cmap
3593 (name "texlive-latex-cmap")
3594 (version (number->string %texlive-revision))
3598 (url (string-append "svn://www.tug.org/texlive/tags/"
3599 %texlive-tag "/Master/texmf-dist/"
3601 (revision %texlive-revision)))
3602 (file-name (string-append name "-" version "-checkout"))
3605 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
3606 (build-system trivial-build-system)
3608 `(#:modules ((guix build utils))
3611 (use-modules (guix build utils))
3612 (let ((target (string-append (assoc-ref %outputs "out")
3613 "/share/texmf-dist/tex/latex/cmap")))
3615 (copy-recursively (assoc-ref %build-inputs "source") target)
3617 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
3618 Master/texmf-dist/tex/latex/cmap/")
3619 (synopsis "CMap support for PDF files")
3621 "This package embeds CMap tables into PDF files to make search and
3622 copy-and-paste functions work properly.")
3623 (license license:lppl)))
3625 (define-public texlive-latex-colortbl
3627 (name "texlive-latex-colortbl")
3628 (version (number->string %texlive-revision))
3631 (uri (texlive-ref "latex" "colortbl"))
3632 (file-name (string-append name "-" version "-checkout"))
3635 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
3636 (build-system texlive-build-system)
3637 (arguments '(#:tex-directory "latex/colortbl"))
3638 (home-page "https://www.ctan.org/pkg/colortbl")
3639 (synopsis "Add colour to LaTeX tables")
3641 "This package allows rows, columns, and even individual cells in LaTeX
3642 tables to be coloured.")
3643 (license license:lppl)))
3645 (define-public texlive-latex-fancybox
3647 (name "texlive-latex-fancybox")
3648 (version (number->string %texlive-revision))
3652 (url (string-append "svn://www.tug.org/texlive/tags/"
3653 %texlive-tag "/Master/texmf-dist/"
3654 "/tex/latex/fancybox"))
3655 (revision %texlive-revision)))
3656 (file-name (string-append name "-" version "-checkout"))
3659 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
3660 (build-system trivial-build-system)
3662 `(#:modules ((guix build utils))
3665 (use-modules (guix build utils))
3666 (let ((target (string-append (assoc-ref %outputs "out")
3667 "/share/texmf-dist/tex/latex/fancybox")))
3669 (copy-recursively (assoc-ref %build-inputs "source") target)
3671 (home-page "https://www.ctan.org/pkg/fancybox")
3672 (synopsis "Variants of \\fbox and other games with boxes")
3674 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
3675 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
3676 using box macros and flexible verbatim macros. You can box mathematics,
3677 floats, center, flushleft, and flushright, lists, and pages.")
3678 (license license:lppl1.2+)))
3680 (define-public texlive-latex-fancyhdr
3682 (name "texlive-latex-fancyhdr")
3683 (version (number->string %texlive-revision))
3687 (url (string-append "svn://www.tug.org/texlive/tags/"
3688 %texlive-tag "/Master/texmf-dist/"
3689 "/tex/latex/fancyhdr"))
3690 (revision %texlive-revision)))
3691 (file-name (string-append name "-" version "-checkout"))
3694 "1xsnzx7vgdfh9zh2m7bjz6bgdpxsgb1kyc19p50vhs34x5nbgsnr"))))
3695 (build-system trivial-build-system)
3697 `(#:modules ((guix build utils))
3700 (use-modules (guix build utils))
3701 (let ((target (string-append (assoc-ref %outputs "out")
3702 "/share/texmf-dist/tex/latex/fancyhdr")))
3704 (copy-recursively (assoc-ref %build-inputs "source") target)
3706 (home-page "https://www.ctan.org/pkg/fancyhdr")
3707 (synopsis "Extensive control of page headers and footers in LaTeX2e")
3709 "The package provides extensive facilities, both for constructing headers
3710 and footers, and for controlling their use (for example, at times when LaTeX
3711 would automatically change the heading style in use).")
3712 (license license:lppl)))
3714 (define-public texlive-latex-float
3716 (name "texlive-latex-float")
3717 (version (number->string %texlive-revision))
3720 (uri (texlive-ref "latex" "float"))
3721 (file-name (string-append name "-" version "-checkout"))
3724 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
3725 (build-system texlive-build-system)
3726 (arguments '(#:tex-directory "latex/float"))
3727 (home-page "https://www.ctan.org/pkg/float")
3728 (synopsis "Improved interface for floating objects")
3730 "This package improves the interface for defining floating objects such
3731 as figures and tables. It introduces the boxed float, the ruled float and the
3732 plaintop float. You can define your own floats and improve the behaviour of
3733 the old ones. The package also provides the @code{H} float modifier option of
3734 the obsolete @code{here} package. You can select this as automatic default
3735 with @code{\\floatplacement{figure}{H}}.")
3736 (license license:lppl)))
3738 (define-public texlive-latex-footmisc
3740 (name "texlive-latex-footmisc")
3741 (version (number->string %texlive-revision))
3744 (uri (texlive-ref "latex" "footmisc"))
3745 (file-name (string-append name "-" version "-checkout"))
3748 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
3749 (build-system texlive-build-system)
3750 (arguments '(#:tex-directory "latex/footmisc"))
3751 (home-page "https://www.ctan.org/pkg/footmisc")
3752 (synopsis "Range of footnote options")
3754 "This is a collection of ways to change the typesetting of footnotes.
3755 The package provides means of changing the layout of the footnotes themselves,
3756 a way to number footnotes per page, to make footnotes disappear in a
3757 \"moving\" argument, and to deal with multiple references to footnotes from
3758 the same place. The package also has a range of techniques for labelling
3759 footnotes with symbols rather than numbers.")
3760 (license license:lppl1.3+)))
3762 (define-public texlive-latex-listings
3764 (name "texlive-latex-listings")
3765 (version (number->string %texlive-revision))
3768 (uri (texlive-ref "latex" "listings"))
3769 (file-name (string-append name "-" version "-checkout"))
3772 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
3773 (build-system texlive-build-system)
3775 '(#:tex-directory "latex/listings"
3776 #:build-targets '("listings.ins")))
3777 (home-page "https://www.ctan.org/pkg/listings")
3778 (synopsis "Typeset source code listings using LaTeX")
3780 "The package enables the user to typeset programs (programming code)
3781 within LaTeX; the source code is read directly by TeX---no front-end processor
3782 is needed. Keywords, comments and strings can be typeset using different
3783 styles. Support for @code{hyperref} is provided.")
3784 (license license:lppl1.3+)))
3786 (define-public texlive-latex-jknapltx
3788 (name "texlive-latex-jknapltx")
3789 (version (number->string %texlive-revision))
3793 (url (string-append "svn://www.tug.org/texlive/tags/"
3794 %texlive-tag "/Master/texmf-dist/"
3795 "/tex/latex/jknapltx"))
3796 (revision %texlive-revision)))
3797 (file-name (string-append name "-" version "-checkout"))
3800 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
3801 (build-system trivial-build-system)
3803 `(#:modules ((guix build utils))
3806 (use-modules (guix build utils))
3807 (let ((target (string-append (assoc-ref %outputs "out")
3808 "/share/texmf-dist/tex/latex/jknapltx")))
3810 (copy-recursively (assoc-ref %build-inputs "source") target)
3812 (home-page "https://www.ctan.org/pkg/jknappen")
3813 (synopsis "Miscellaneous packages by Joerg Knappen")
3815 "This package provides miscellaneous macros by Joerg Knappen, including:
3816 represent counters in greek; Maxwell's non-commutative division;
3817 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
3818 @code{inputenc} definition files that allow verbatim input in the respective
3819 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
3820 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
3821 transliterate semitic languages; patches to make (La)TeX formulae embeddable
3822 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
3823 (license license:gpl2)))
3825 (define-public texlive-fonts-ec
3827 (name "texlive-fonts-ec")
3828 (version (number->string %texlive-revision))
3832 (url (string-append "svn://www.tug.org/texlive/tags/"
3833 %texlive-tag "/Master/texmf-dist/"
3834 "/fonts/source/jknappen/ec/"))
3835 (revision %texlive-revision)))
3836 (file-name (string-append name "-" version "-checkout"))
3839 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
3840 (build-system gnu-build-system)
3842 `(#:modules ((guix build gnu-build-system)
3846 #:tests? #f ; no tests
3848 (modify-phases %standard-phases
3851 (lambda* (#:key inputs #:allow-other-keys)
3852 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
3853 ;; Tell mf where to find mf.base
3854 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
3855 ;; Tell mf where to look for source files
3857 (string-append (getcwd) ":"
3858 mf "/share/texmf-dist/metafont/base:"
3859 (assoc-ref inputs "texlive-fonts-cm")
3860 "/share/texmf-dist/fonts/source/public/cm")))
3862 (for-each (lambda (font)
3863 (format #t "building font ~a\n" font)
3864 (invoke "mf" "-progname=mf"
3865 "-output-directory=build"
3870 "input " (basename font ".mf"))))
3871 (find-files "." "[0-9]+\\.mf$"))
3874 (lambda* (#:key outputs #:allow-other-keys)
3875 (let* ((out (assoc-ref outputs "out"))
3877 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
3879 out "/share/texmf-dist/fonts/source/jknappen/ec")))
3880 (for-each (cut install-file <> tfm)
3881 (find-files "build" "\\.*"))
3882 (for-each (cut install-file <> mf)
3883 (find-files "." "\\.mf"))
3886 `(("texlive-bin" ,texlive-bin)
3887 ("texlive-metafont-base" ,texlive-metafont-base)
3888 ("texlive-fonts-cm" ,texlive-fonts-cm)))
3889 (home-page "https://www.ctan.org/pkg/ec")
3890 (synopsis "Computer modern fonts in T1 and TS1 encodings")
3892 "The EC fonts are European Computer Modern Fonts, supporting the complete
3893 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
3894 These fonts are intended to be stable with no changes being made to the tfm
3895 files. The set also contains a Text Companion Symbol font, called @code{tc},
3896 featuring many useful characters needed in text typesetting, for example
3897 oldstyle digits, currency symbols (including the newly created Euro symbol),
3898 the permille sign, copyright, trade mark and servicemark as well as a copyleft
3899 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
3900 EC fonts supersede the preliminary version released as the DC fonts. The
3901 fonts are available in (traced) Adobe Type 1 format, as part of the
3902 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
3903 set, Latin Modern, is not actually a direct development of the EC set, and
3904 differs from the EC in a number of particulars.")
3905 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
3906 texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
3908 (define-public texlive-fonts-adobe-times
3910 (name "texlive-fonts-adobe-times")
3911 (version (number->string %texlive-revision))
3915 (url (string-append "svn://www.tug.org/texlive/tags/"
3916 %texlive-tag "/Master/texmf-dist/"
3917 "/fonts/type1/urw/times/"))
3918 (revision %texlive-revision)))
3919 (file-name (string-append name "-" version "-checkout"))
3922 "15vzyr7favkv1mj00qxr03s89kw78nd066fh69by93272g8p5sgd"))))
3923 (build-system trivial-build-system)
3925 `(#:modules ((guix build utils)
3929 (use-modules (guix build utils)
3931 (let ((root (string-append (assoc-ref %outputs "out")
3932 "/share/texmf-dist/"))
3933 (pkgs '(("source" . "fonts/type1/urw/times")
3935 ("times-afm" . "fonts/afm/adobe/times")
3936 ("times-tfm" . "fonts/tfm/adobe/times")
3937 ("times-vf" . "fonts/vf/adobe/times")
3939 ("urw-afm" . "fonts/afm/urw/times")
3940 ("urw35vf-tfm" . "fonts/tfm/urw35vf/times")
3941 ("urw35vf-vf" . "fonts/vf/urw35vf/times")
3943 ("times-tex" . "tex/latex/times")
3944 ("dvips" . "dvips/times")
3945 ("fonts-map" . "fonts/map/dvips/times"))))
3946 (for-each (match-lambda
3948 (let ((target (string-append root dir)))
3950 (copy-recursively (assoc-ref %build-inputs pkg)
3959 (url (string-append "svn://www.tug.org/texlive/tags/"
3960 %texlive-tag "/Master/texmf-dist/"
3961 "/fonts/afm/adobe/times"))
3962 (revision %texlive-revision)))
3963 (file-name (string-append name "-afm-" version "-checkout"))
3966 "1k7h6vihfc6ri2lq9ggnq2g4zq3qcgq1vd0hr486g9cqrdpys6cy"))))
3971 (url (string-append "svn://www.tug.org/texlive/tags/"
3972 %texlive-tag "/Master/texmf-dist/"
3973 "/fonts/tfm/adobe/times"))
3974 (revision %texlive-revision)))
3975 (file-name (string-append name "-tfm-" version "-checkout"))
3978 "1hbgkjnf5xyganbznwpwszvr3iyk4bzb0ys4hd8ybawp60paadrr"))))
3983 (url (string-append "svn://www.tug.org/texlive/tags/"
3984 %texlive-tag "/Master/texmf-dist/"
3985 "/fonts/vf/adobe/times"))
3986 (revision %texlive-revision)))
3987 (file-name (string-append name "-vf-" version "-checkout"))
3990 "18rfspnwdw9r81dy18lb4w96d09b6c4g7y80azwylalkhwdf2lfp"))))
3995 (url (string-append "svn://www.tug.org/texlive/tags/"
3996 %texlive-tag "/Master/texmf-dist/"
3997 "/fonts/afm/urw/times"))
3998 (revision %texlive-revision)))
3999 (file-name (string-append name "-urw-afm-" version "-checkout"))
4002 "0g0xpsyn6634g0b4rpd420v7i4gkz3zr12vcy2b8csbcscjvwri5"))))
4007 (url (string-append "svn://www.tug.org/texlive/tags/"
4008 %texlive-tag "/Master/texmf-dist/"
4009 "/fonts/tfm/urw35vf/times"))
4010 (revision %texlive-revision)))
4011 (file-name (string-append name "-urw35vf-tfm-" version "-checkout"))
4014 "0a4idlvpaqd0ypqgy1xw0rpx8q23bvssg8xq757zzn3zikj0w7pr"))))
4019 (url (string-append "svn://www.tug.org/texlive/tags/"
4020 %texlive-tag "/Master/texmf-dist/"
4021 "/fonts/vf/urw35vf/times"))
4022 (revision %texlive-revision)))
4023 (file-name (string-append name "-urw35vf-vf-" version "-checkout"))
4026 "05mppwxd4c5x0yw50gca726f0ylc1rk8jf0jjkrriixq6rnw03di"))))
4031 (url (string-append "svn://www.tug.org/texlive/tags/"
4032 %texlive-tag "/Master/texmf-dist/"
4033 "/tex/latex/times"))
4034 (revision %texlive-revision)))
4035 (file-name (string-append name "-tex-" version "-checkout"))
4038 "1gmd0x7c3vkvfzgmrsp4866rcdbyimfk3bjr91zaadc41r1i8xrp"))))
4043 (url (string-append "svn://www.tug.org/texlive/tags/"
4044 %texlive-tag "/Master/texmf-dist/"
4046 (revision %texlive-revision)))
4047 (file-name (string-append name "-dvips-" version "-checkout"))
4050 "1fvqpgqi7bp2q76nf5kmlhsdijxw65arqfy3ax3djwih3yg12mp0"))))
4055 (url (string-append "svn://www.tug.org/texlive/tags/"
4056 %texlive-tag "/Master/texmf-dist/"
4057 "/fonts/map/dvips/times/"))
4058 (revision %texlive-revision)))
4059 (file-name (string-append name "-fonts-map-" version "-checkout"))
4062 "12f00gzs2zgllkm59qdhw2xxj7lvg3p256232f1l275z3pldfqqi"))))))
4063 (home-page "https://ctan.org/pkg/urw-base35")
4064 (synopsis "URW Base 35 font pack for LaTeX")
4066 "This package provides a drop-in replacements for the Times font from
4067 Adobe's basic set.")
4068 ;; No license version specified.
4069 (license license:gpl3+)))
4071 (define-public texlive-fonts-adobe-palatino
4073 (name "texlive-fonts-adobe-palatino")
4074 (version (number->string %texlive-revision))
4078 (url (string-append "svn://www.tug.org/texlive/tags/"
4079 %texlive-tag "/Master/texmf-dist/"
4080 "/fonts/type1/urw/palatino/"))
4081 (revision %texlive-revision)))
4082 (file-name (string-append name "-" version "-checkout"))
4085 "18dw5260c6fy7acxaqwrg3hw04kg63ijq4lkn56q5pa2g6nyylrp"))))
4086 (build-system trivial-build-system)
4088 `(#:modules ((guix build utils)
4092 (use-modules (guix build utils)
4094 (let ((root (string-append (assoc-ref %outputs "out")
4095 "/share/texmf-dist/"))
4096 (pkgs '(("source" . "fonts/type1/urw/palatino")
4098 ("palatino-afm" . "fonts/afm/adobe/palatino")
4099 ("palatino-tfm" . "fonts/tfm/adobe/palatino")
4100 ("palatino-vf" . "fonts/vf/adobe/palatino")
4102 ("urw-afm" . "fonts/afm/urw/palatino")
4103 ("urw35vf-tfm" . "fonts/tfm/urw35vf/palatino")
4104 ("urw35vf-vf" . "fonts/vf/urw35vf/palatino")
4106 ("palatino-tex" . "tex/latex/palatino")
4107 ("dvips" . "dvips/palatino")
4108 ("fonts-map" . "fonts/map/dvips/palatino"))))
4109 (for-each (match-lambda
4111 (let ((target (string-append root dir)))
4113 (copy-recursively (assoc-ref %build-inputs pkg)
4122 (url (string-append "svn://www.tug.org/texlive/tags/"
4123 %texlive-tag "/Master/texmf-dist/"
4124 "/fonts/afm/adobe/palatino"))
4125 (revision %texlive-revision)))
4126 (file-name (string-append name "-afm-" version "-checkout"))
4129 "0pxizay730cx7rb9y5bqq9dn1zxx3arc33rmdsn7l29pc51flmmi"))))
4134 (url (string-append "svn://www.tug.org/texlive/tags/"
4135 %texlive-tag "/Master/texmf-dist/"
4136 "/fonts/tfm/adobe/palatino"))
4137 (revision %texlive-revision)))
4138 (file-name (string-append name "-tfm-" version "-checkout"))
4141 "1w1vm0sk9kpsy14yhyf1v1q3c6b97cgbba74g578bcwjlh810mg0"))))
4146 (url (string-append "svn://www.tug.org/texlive/tags/"
4147 %texlive-tag "/Master/texmf-dist/"
4148 "/fonts/vf/adobe/palatino"))
4149 (revision %texlive-revision)))
4150 (file-name (string-append name "-vf-" version "-checkout"))
4153 "1maqfis8hpybcn9lmm8r2b1g56620lfpsncg0742c3kkjd6dh97h"))))
4158 (url (string-append "svn://www.tug.org/texlive/tags/"
4159 %texlive-tag "/Master/texmf-dist/"
4160 "/fonts/afm/urw/palatino"))
4161 (revision %texlive-revision)))
4162 (file-name (string-append name "-urw-afm-" version "-checkout"))
4165 "0gk0xwy1fs2si5kb1j3dzgm52c8sagv32gd9dmw88m7sgh5qkd87"))))
4170 (url (string-append "svn://www.tug.org/texlive/tags/"
4171 %texlive-tag "/Master/texmf-dist/"
4172 "/fonts/tfm/urw35vf/palatino"))
4173 (revision %texlive-revision)))
4174 (file-name (string-append name "-urw35vf-tfm-" version "-checkout"))
4177 "19aq3xwfg7vkf1qzjdxgcvcdqwpvpavq3l25y64xni72qx0kmppz"))))
4182 (url (string-append "svn://www.tug.org/texlive/tags/"
4183 %texlive-tag "/Master/texmf-dist/"
4184 "/fonts/vf/urw35vf/palatino"))
4185 (revision %texlive-revision)))
4186 (file-name (string-append name "-urw35vf-vf-" version "-checkout"))
4189 "1lkn4p6zimrs0ah6mxsang4bicp8j7xzl016529a3f168an7mdmj"))))
4194 (url (string-append "svn://www.tug.org/texlive/tags/"
4195 %texlive-tag "/Master/texmf-dist/"
4196 "/tex/latex/palatino"))
4197 (revision %texlive-revision)))
4198 (file-name (string-append name "-tex-" version "-checkout"))
4201 "0ng9w7i0p1nb51amla32jj86vx6p84m6qc7asam3g4x8w5jf7s27"))))
4206 (url (string-append "svn://www.tug.org/texlive/tags/"
4207 %texlive-tag "/Master/texmf-dist/"
4208 "/dvips/palatino/"))
4209 (revision %texlive-revision)))
4210 (file-name (string-append name "-dvips-" version "-checkout"))
4213 "1pdbkfmhx4kk3brh5lg6fyl9ad2kbjmkrhgcx84klnlhq01mfdhb"))))
4218 (url (string-append "svn://www.tug.org/texlive/tags/"
4219 %texlive-tag "/Master/texmf-dist/"
4220 "/fonts/map/dvips/palatino/"))
4221 (revision %texlive-revision)))
4222 (file-name (string-append name "-fonts-map-" version "-checkout"))
4225 "0rg13hyp652hp3gnrj5pbyb84zkqmyi1qnm8c6spcyaq8pm06l0d"))))))
4226 (home-page "https://ctan.org/pkg/urw-base35")
4227 (synopsis "URW Base 35 font pack for LaTeX")
4229 "This package provides a drop-in replacements for the Palatino font from
4230 Adobe's basic set.")
4231 ;; No license version specified.
4232 (license license:gpl3+)))
4234 (define-public texlive-fonts-adobe-zapfding
4236 (name "texlive-fonts-adobe-zapfding")
4237 (version (number->string %texlive-revision))
4241 (url (string-append "svn://www.tug.org/texlive/tags/"
4242 %texlive-tag "/Master/texmf-dist/"
4243 "/fonts/type1/urw/zapfding/"))
4244 (revision %texlive-revision)))
4245 (file-name (string-append name "-" version "-checkout"))
4248 "1sp3jblg3khp0yj121blvhph6ib09919kyrsk5x2lg258yypqyis"))))
4249 (build-system trivial-build-system)
4251 `(#:modules ((guix build utils)
4255 (use-modules (guix build utils)
4257 (let ((root (string-append (assoc-ref %outputs "out")
4258 "/share/texmf-dist/"))
4259 (pkgs '(("source" . "fonts/type1/urw/zapfding")
4260 ("zapf-afm" . "fonts/afm/adobe/zapfding")
4261 ("zapf-tfm" . "fonts/tfm/adobe/zapfding")
4262 ("urw-afm" . "fonts/afm/urw/zapfding")
4263 ("urw35vf-tfm" . "fonts/tfm/urw35vf/zapfding")
4265 ("zapf-tex" . "tex/latex/zapfding")
4266 ("dvips" . "dvips/zapfding")
4267 ("fonts-map" . "fonts/map/dvips/zapfding"))))
4268 (for-each (match-lambda
4270 (let ((target (string-append root dir)))
4272 (copy-recursively (assoc-ref %build-inputs pkg)
4281 (url (string-append "svn://www.tug.org/texlive/tags/"
4282 %texlive-tag "/Master/texmf-dist/"
4283 "/fonts/afm/adobe/zapfding"))
4284 (revision %texlive-revision)))
4285 (file-name (string-append name "-afm-" version "-checkout"))
4288 "0qvl4w1bfcpiakkd8rvkism46qnvzj9w7x4r8z9m0y7mspbkblyr"))))
4293 (url (string-append "svn://www.tug.org/texlive/tags/"
4294 %texlive-tag "/Master/texmf-dist/"
4295 "/fonts/tfm/adobe/zapfding"))
4296 (revision %texlive-revision)))
4297 (file-name (string-append name "-tfm-" version "-checkout"))
4300 "1i8mh9xsl8l4cgsg3nl4ha9q6m55j122riclaxsvkc5ka83432qm"))))
4305 (url (string-append "svn://www.tug.org/texlive/tags/"
4306 %texlive-tag "/Master/texmf-dist/"
4307 "/fonts/afm/urw/zapfding"))
4308 (revision %texlive-revision)))
4309 (file-name (string-append name "-urw-afm-" version "-checkout"))
4312 "0m4qndqh7ji723ff82c5c1q8ziqvblbaip7vx05vnl15fqbsnfx1"))))
4317 (url (string-append "svn://www.tug.org/texlive/tags/"
4318 %texlive-tag "/Master/texmf-dist/"
4319 "/fonts/tfm/urw35vf/zapfding"))
4320 (revision %texlive-revision)))
4321 (file-name (string-append name "-urw35vf-tfm-" version "-checkout"))
4324 "167g2x6mpjfqh0w1fhjbw14qcx6ridrj2zm1bd8bi0l2d7phj28m"))))
4329 (url (string-append "svn://www.tug.org/texlive/tags/"
4330 %texlive-tag "/Master/texmf-dist/"
4331 "/tex/latex/zapfding"))
4332 (revision %texlive-revision)))
4333 (file-name (string-append name "-tex-" version "-checkout"))
4336 "0hp7i8f6nbrg7irrwc8fd7n1hrzjysa84d6iyivwlc65v9p7lmd0"))))
4341 (url (string-append "svn://www.tug.org/texlive/tags/"
4342 %texlive-tag "/Master/texmf-dist/"
4343 "/dvips/zapfding/"))
4344 (revision %texlive-revision)))
4345 (file-name (string-append name "-dvips-" version "-checkout"))
4348 "1f18sc4qwxykd786zhn6szcrycqvpvfhlcim71aamxmwghakd7fa"))))
4353 (url (string-append "svn://www.tug.org/texlive/tags/"
4354 %texlive-tag "/Master/texmf-dist/"
4355 "/fonts/map/dvips/zapfding/"))
4356 (revision %texlive-revision)))
4357 (file-name (string-append name "-fonts-map-" version "-checkout"))
4360 "17kwxmdrgz2fb072hx57a3pidcrhbgayphx11zyld2hv9149pkyl"))))))
4361 (home-page "https://ctan.org/pkg/urw-base35")
4362 (synopsis "URW Base 35 font pack for LaTeX")
4364 "This package provides a drop-in replacements for the Zapfding font from
4365 Adobe's basic set.")
4366 ;; No license version specified.
4367 (license license:gpl3+)))
4369 (define-public texlive-fonts-rsfs
4371 (name "texlive-fonts-rsfs")
4372 (version (number->string %texlive-revision))
4376 (url (string-append "svn://www.tug.org/texlive/tags/"
4377 %texlive-tag "/Master/texmf-dist/"
4378 "/fonts/source/public/rsfs/"))
4379 (revision %texlive-revision)))
4380 (file-name (string-append name "-" version "-checkout"))
4383 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
4384 (build-system gnu-build-system)
4386 `(#:modules ((guix build gnu-build-system)
4390 #:tests? #f ; no tests
4392 (modify-phases %standard-phases
4395 (lambda* (#:key inputs #:allow-other-keys)
4396 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
4397 ;; Tell mf where to find mf.base
4398 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
4399 ;; Tell mf where to look for source files
4401 (string-append (getcwd) ":"
4402 mf "/share/texmf-dist/metafont/base:"
4403 (assoc-ref inputs "texlive-fonts-cm")
4404 "/share/texmf-dist/fonts/source/public/cm")))
4406 (for-each (lambda (font)
4407 (format #t "building font ~a\n" font)
4408 (invoke "mf" "-progname=mf"
4409 "-output-directory=build"
4414 "input " (basename font ".mf"))))
4415 (find-files "." "[0-9]+\\.mf$"))
4418 (lambda* (#:key outputs #:allow-other-keys)
4419 (let* ((out (assoc-ref outputs "out"))
4421 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
4423 out "/share/texmf-dist/fonts/source/public/rsfs")))
4424 (for-each (cut install-file <> tfm)
4425 (find-files "build" "\\.*"))
4426 (for-each (cut install-file <> mf)
4427 (find-files "." "\\.mf"))
4430 `(("texlive-bin" ,texlive-bin)
4431 ("texlive-metafont-base" ,texlive-metafont-base)
4432 ("texlive-fonts-cm" ,texlive-fonts-cm)))
4433 (home-page "https://www.ctan.org/pkg/rsfs")
4434 (synopsis "Ralph Smith's Formal Script font")
4436 "The fonts provide uppercase formal script letters for use as symbols in
4437 scientific and mathematical typesetting (in contrast to the informal script
4438 fonts such as that used for the calligraphic symbols in the TeX maths symbol
4439 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
4440 format. LaTeX support, for using these fonts in mathematics, is available via
4441 one of the packages @code{calrsfs} and @code{mathrsfs}.")
4442 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
4444 (define-public texlive-latex-eso-pic
4446 (name "texlive-latex-eso-pic")
4447 (version (number->string %texlive-revision))
4450 (uri (texlive-ref "latex" "eso-pic"))
4451 (file-name (string-append name "-" version "-checkout"))
4454 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
4455 (build-system texlive-build-system)
4456 (arguments '(#:tex-directory "latex/eso-pic"))
4457 (home-page "https://www.ctan.org/pkg/eso-pic")
4458 (synopsis "Add picture commands (or backgrounds) to every page")
4460 "The package adds one or more user commands to LaTeX's @code{shipout}
4461 routine, which may be used to place the output at fixed positions. The
4462 @code{grid} option may be used to find the correct places.")
4463 (license license:lppl1.3+)))
4465 (define-public texlive-latex-eepic
4467 (name "texlive-latex-eepic")
4468 (version (number->string %texlive-revision))
4472 (url (string-append "svn://www.tug.org/texlive/tags/"
4473 %texlive-tag "/Master/texmf-dist/"
4474 "/tex/latex/eepic"))
4475 (revision %texlive-revision)))
4476 (file-name (string-append name "-" version "-checkout"))
4479 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
4480 (build-system trivial-build-system)
4482 `(#:modules ((guix build utils))
4485 (use-modules (guix build utils))
4486 (let ((target (string-append (assoc-ref %outputs "out")
4487 "/share/texmf-dist/tex/latex/eepic")))
4489 (copy-recursively (assoc-ref %build-inputs "source") target)
4491 (home-page "https://www.ctan.org/pkg/eepic")
4492 (synopsis "Extensions to epic and the LaTeX drawing tools")
4494 "Extensions to @code{epic} and the LaTeX picture drawing environment,
4495 include the drawing of lines at any slope, the drawing of circles in any
4496 radii, and the drawing of dotted and dashed lines much faster with much less
4497 TeX memory, and providing several new commands for drawing ellipses, arcs,
4498 splines, and filled circles and ellipses. The package uses @code{tpic}
4499 @code{\\special} commands.")
4500 (license license:public-domain)))
4502 (define-public texlive-latex-enumitem
4504 (name "texlive-latex-enumitem")
4505 (version (number->string %texlive-revision))
4509 (url (string-append "svn://www.tug.org/texlive/tags/"
4510 %texlive-tag "/Master/texmf-dist/"
4511 "/tex/latex/enumitem"))
4512 (revision %texlive-revision)))
4513 (file-name (string-append name "-" version "-checkout"))
4516 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
4517 (build-system trivial-build-system)
4519 `(#:modules ((guix build utils))
4522 (use-modules (guix build utils))
4523 (let ((target (string-append (assoc-ref %outputs "out")
4524 "/share/texmf-dist/tex/latex/enumitem")))
4526 (copy-recursively (assoc-ref %build-inputs "source") target)
4528 (home-page "https://www.ctan.org/pkg/enumitem")
4529 (synopsis "Customize basic list environments")
4531 "This package is intended to ease customizing the three basic list
4532 environments: @code{enumerate}, @code{itemize} and @code{description}. It
4533 extends their syntax to allow an optional argument where a set of parameters
4534 in the form @code{key=value} are available, for example:
4535 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
4536 (license license:lppl1.3+)))
4538 (define-public texlive-latex-multirow
4540 (name "texlive-latex-multirow")
4541 (version (number->string %texlive-revision))
4544 (uri (texlive-ref "latex" "multirow"))
4545 (file-name (string-append name "-" version "-checkout"))
4548 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
4549 (build-system texlive-build-system)
4550 (arguments '(#:tex-directory "latex/multirow"))
4551 (home-page "https://www.ctan.org/pkg/multirow")
4552 (synopsis "Create tabular cells spanning multiple rows")
4554 "The package provides tools for creating tabular cells spanning multiple
4555 rows. It has a lot of flexibility, including an option for specifying an
4556 entry at the \"natural\" width of its text.")
4557 (license license:lppl1.3+)))
4559 (define-public texlive-latex-overpic
4561 (name "texlive-latex-overpic")
4562 (version (number->string %texlive-revision))
4566 (url (string-append "svn://www.tug.org/texlive/tags/"
4567 %texlive-tag "/Master/texmf-dist/"
4568 "/tex/latex/overpic"))
4569 (revision %texlive-revision)))
4570 (file-name (string-append name "-" version "-checkout"))
4573 "1rpx4ibjncj5416rg19v0xjbj3z9avhfdfn2gzp8r8sz9vz25c6g"))))
4574 (build-system trivial-build-system)
4576 `(#:modules ((guix build utils))
4579 (use-modules (guix build utils))
4580 (let ((target (string-append (assoc-ref %outputs "out")
4581 "/share/texmf-dist/tex/latex/overpic")))
4583 (copy-recursively (assoc-ref %build-inputs "source") target)
4585 (home-page "https://www.ctan.org/pkg/overpic")
4586 (synopsis "Combine LaTeX commands over included graphics")
4588 "The @code{overpic} environment is a cross between the LaTeX
4589 @code{picture} environment and the @code{\\includegraphics} command of
4590 @code{graphicx}. The resulting picture environment has the same dimensions as
4591 the included graphic. LaTeX commands can be placed on the graphic at defined
4592 positions; a grid for orientation is available.")
4593 (license license:lppl1.0+)))
4595 (define-public texlive-latex-parskip
4597 (name "texlive-latex-parskip")
4598 (version (number->string %texlive-revision))
4602 (url (string-append "svn://www.tug.org/texlive/tags/"
4603 %texlive-tag "/Master/texmf-dist/"
4604 "/tex/latex/parskip"))
4605 (revision %texlive-revision)))
4606 (file-name (string-append name "-" version "-checkout"))
4609 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
4610 (build-system trivial-build-system)
4612 `(#:modules ((guix build utils))
4615 (use-modules (guix build utils))
4616 (let ((target (string-append (assoc-ref %outputs "out")
4617 "/share/texmf-dist/tex/latex/parskip")))
4619 (copy-recursively (assoc-ref %build-inputs "source") target)
4621 (home-page "https://www.ctan.org/pkg/parskip")
4622 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
4624 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
4625 that is untidy; this package (though it is no substitute for a properly
4626 designed class) helps alleviate this untidiness.")
4627 (license license:lppl)))
4629 (define-public texlive-latex-pdfpages
4631 (name "texlive-latex-pdfpages")
4632 (version (number->string %texlive-revision))
4635 (uri (texlive-ref "latex" "pdfpages"))
4636 (file-name (string-append name "-" version "-checkout"))
4639 "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd"))))
4640 (build-system texlive-build-system)
4641 (arguments '(#:tex-directory "latex/pdfpages"))
4642 (home-page "https://www.ctan.org/pkg/pdfpages")
4643 (synopsis "Include PDF documents in LaTeX")
4645 "This package simplifies the inclusion of external multi-page PDF
4646 documents in LaTeX documents. Pages may be freely selected and it is possible
4647 to put several logical pages onto each sheet of paper. Furthermore a lot of
4648 hypertext features like hyperlinks and article threads are provided. The
4649 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
4650 use this package to insert PostScript files, in addition to PDF files.")
4651 (license license:lppl1.3+)))
4653 (define-public texlive-fonts-stmaryrd
4655 (name "texlive-fonts-stmaryrd")
4656 (version (number->string %texlive-revision))
4659 (uri (texlive-ref "fonts" "stmaryrd"))
4660 (file-name (string-append name "-" version "-checkout"))
4663 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
4664 (build-system texlive-build-system)
4666 '(#:tex-directory "latex/stmaryrd"
4668 (modify-phases %standard-phases
4669 (add-after 'configure 'patch-ins
4671 (substitute* "stmaryrd.ins"
4672 (("^%% LaTeX2e.*") "\\input docstrip\n")
4673 (("fontdef\\}\\}" line)
4674 (string-append line "\n\\endbatchfile")))
4676 (home-page "https://www.ctan.org/pkg/stmaryrd")
4677 (synopsis "St Mary Road symbols for theoretical computer science")
4679 "The fonts were originally distributed as Metafont sources only, but
4680 Adobe Type 1 versions are also now available. Macro support is provided for
4681 use under LaTeX; the package supports the @code{only} option (provided by the
4682 @code{somedefs} package) to restrict what is loaded, for those who don't need
4684 (license license:lppl)))
4686 (define-public texlive-latex-subfigure
4688 (name "texlive-latex-subfigure")
4689 (version (number->string %texlive-revision))
4692 (uri (texlive-ref "latex" "subfigure"))
4693 (file-name (string-append name "-" version "-checkout"))
4696 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
4697 (build-system texlive-build-system)
4698 (arguments '(#:tex-directory "latex/subfigure"))
4699 (home-page "https://www.ctan.org/pkg/subfigure")
4700 (synopsis "Figures divided into subfigures")
4702 "This (deprecated) package provides support for the manipulation and
4703 reference of small or \"sub\" figures and tables within a single figure or
4704 table environment. It is convenient to use this package when your subfigures
4705 are to be separately captioned, referenced, or are to be included in the
4706 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
4707 used inside a figure environment for each subfigure. An optional first
4708 argument is used as the caption for that subfigure. The package is now
4709 considered obsolete: it was superseded by @code{subfig}, but users may find
4710 the more recent @code{subcaption} package more satisfactory.")
4711 (license license:lppl)))
4713 (define-public texlive-latex-tabulary
4715 (name "texlive-latex-tabulary")
4716 (version (number->string %texlive-revision))
4719 (uri (texlive-ref "latex" "tabulary"))
4720 (file-name (string-append name "-" version "-checkout"))
4723 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
4724 (build-system texlive-build-system)
4725 (arguments '(#:tex-directory "latex/tabulary"))
4726 (home-page "https://www.ctan.org/pkg/tabulary")
4727 (synopsis "Tabular with variable width columns balanced")
4729 "The package defines a @code{tabular*}-like environment, @code{tabulary},
4730 taking a \"total width\" argument as well as the column specifications. The
4731 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
4732 variable width columns (@code{\\raggedright}, @code{\\centering},
4733 @code{\\raggedleft}, and normally justified). In contrast to
4734 @code{tabularx}'s @code{X} columns, the width of each column is weighted
4735 according to the natural width of the widest cell in the column.")
4736 (license license:lppl)))
4738 (define-public texlive-latex-threeparttable
4740 (name "texlive-latex-threeparttable")
4741 (version (number->string %texlive-revision))
4745 (url (string-append "svn://www.tug.org/texlive/tags/"
4746 %texlive-tag "/Master/texmf-dist/"
4747 "/tex/latex/threeparttable"))
4748 (revision %texlive-revision)))
4749 (file-name (string-append name "-" version "-checkout"))
4752 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
4753 (build-system trivial-build-system)
4755 `(#:modules ((guix build utils))
4758 (use-modules (guix build utils))
4759 (let ((target (string-append (assoc-ref %outputs "out")
4760 "/share/texmf-dist/tex/latex/threeparttable")))
4762 (copy-recursively (assoc-ref %build-inputs "source") target)
4764 (home-page "https://www.ctan.org/pkg/threeparttable")
4765 (synopsis "Tables with captions and notes all the same width")
4767 "This package facilitates tables with titles (captions) and notes. The
4768 title and notes are given a width equal to the body of the table (a
4769 @code{tabular} environment). By itself, a @code{threeparttable} does not
4770 float, but you can put it in a @code{table} or a @code{table*} or some other
4772 (license (license:fsf-free "file://threeparttable.sty"))))
4774 (define-public texlive-fonts-txfonts
4776 (name "texlive-fonts-txfonts")
4777 (version (number->string %texlive-revision))
4781 (url (string-append "svn://www.tug.org/texlive/tags/"
4782 %texlive-tag "/Master/texmf-dist/"
4783 "/tex/latex/txfonts"))
4784 (revision %texlive-revision)))
4785 (file-name (string-append name "-" version "-checkout"))
4788 "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
4789 (build-system trivial-build-system)
4791 `(#:modules ((guix build utils)
4795 (use-modules (guix build utils)
4797 (let ((root (string-append (assoc-ref %outputs "out")
4798 "/share/texmf-dist/"))
4799 (pkgs '(("source" . "tex/latex/txfonts")
4800 ("txfonts-vf" . "fonts/tfm/public/txfonts")
4801 ("txfonts-afm" . "fonts/afm/public/txfonts")
4802 ("txfonts-tfm" . "fonts/tfm/public/txfonts")
4803 ("txfonts-type1" . "fonts/type1/public/txfonts")
4804 ("txfonts-enc" . "fonts/enc/dvips/txfonts")
4805 ("txfonts-map" . "fonts/map/dvips/txfonts"))))
4806 (for-each (match-lambda
4808 (let ((target (string-append root dir)))
4810 (copy-recursively (assoc-ref %build-inputs pkg)
4819 (url (string-append "svn://www.tug.org/texlive/tags/"
4820 %texlive-tag "/Master/texmf-dist/"
4821 "/fonts/tfm/public/txfonts"))
4822 (revision %texlive-revision)))
4823 (file-name (string-append name "-tfm-" version "-checkout"))
4826 "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
4831 (url (string-append "svn://www.tug.org/texlive/tags/"
4832 %texlive-tag "/Master/texmf-dist/"
4833 "/fonts/vf/public/txfonts"))
4834 (revision %texlive-revision)))
4835 (file-name (string-append name "-vf-" version "-checkout"))
4838 "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
4843 (url (string-append "svn://www.tug.org/texlive/tags/"
4844 %texlive-tag "/Master/texmf-dist/"
4845 "/fonts/afm/public/txfonts"))
4846 (revision %texlive-revision)))
4847 (file-name (string-append name "-afm-" version "-checkout"))
4850 "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
4855 (url (string-append "svn://www.tug.org/texlive/tags/"
4856 %texlive-tag "/Master/texmf-dist/"
4857 "/fonts/type1/public/txfonts"))
4858 (revision %texlive-revision)))
4859 (file-name (string-append name "-type1-" version "-checkout"))
4862 "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
4867 (url (string-append "svn://www.tug.org/texlive/tags/"
4868 %texlive-tag "/Master/texmf-dist/"
4869 "/fonts/map/dvips/txfonts"))
4870 (revision %texlive-revision)))
4871 (file-name (string-append name "-map-" version "-checkout"))
4874 "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
4879 (url (string-append "svn://www.tug.org/texlive/tags/"
4880 %texlive-tag "/Master/texmf-dist/"
4881 "/fonts/enc/dvips/txfonts"))
4882 (revision %texlive-revision)))
4883 (file-name (string-append name "-enc-" version "-checkout"))
4886 "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
4887 (home-page "https://www.ctan.org/pkg/threeparttable")
4888 (synopsis "Times-like fonts in support of mathematics")
4890 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
4891 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
4892 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
4893 providing all the symbols of the Computer Modern and AMS fonts, including all
4894 the Greek capital letters from CMR; and additional maths fonts of various
4897 The set is complemented by a sans-serif set of text fonts, based on
4898 Helvetica/NimbusSanL, and a monospace set.
4900 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
4901 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
4902 ;; Any version of the GPL with font exception.
4903 (license license:gpl3+)))
4905 (define-public texlive-fonts-iwona
4907 (name "texlive-fonts-iwona")
4911 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
4912 (string-map (lambda (c)
4919 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
4920 (build-system trivial-build-system)
4922 `(#:modules ((guix build utils))
4925 (use-modules (guix build utils))
4926 (let ((target (string-append (assoc-ref %outputs "out")
4927 "/share/texmf-dist/"))
4928 (unzip (string-append (assoc-ref %build-inputs "unzip")
4930 (invoke unzip (assoc-ref %build-inputs "source"))
4932 (copy-recursively "iwona" target)
4935 `(("unzip" ,unzip)))
4936 (home-page "http://jmn.pl/en/kurier-i-iwona/")
4937 (synopsis "Sans-serif typeface for TeX")
4938 (description "Iwona is a two-element sans-serif typeface. It was created
4939 as an alternative version of the Kurier typeface, which was designed in 1975
4940 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
4941 supervision of Roman Tomaszewski. Kurier was designed for linotype
4942 typesetting of newspapers and similar periodicals. The Iwona fonts are an
4943 alternative version of the Kurier fonts. The difference lies in the absence
4944 of ink traps which typify the Kurier font.")
4945 (license license:gfl1.0)))
4947 (define-public texlive-latex-titlesec
4949 (name "texlive-latex-titlesec")
4950 (version (number->string %texlive-revision))
4954 (url (string-append "svn://www.tug.org/texlive/tags/"
4955 %texlive-tag "/Master/texmf-dist/"
4956 "/tex/latex/titlesec"))
4957 (revision %texlive-revision)))
4958 (file-name (string-append name "-" version "-checkout"))
4961 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
4962 (build-system trivial-build-system)
4964 `(#:modules ((guix build utils))
4967 (use-modules (guix build utils))
4968 (let ((target (string-append (assoc-ref %outputs "out")
4969 "/share/texmf-dist/tex/latex/titlesec")))
4971 (copy-recursively (assoc-ref %build-inputs "source") target)
4973 (home-page "https://www.ctan.org/pkg/titlesec")
4974 (synopsis "Select alternative section titles")
4976 "This package provides an interface to sectioning commands for selection
4977 from various title styles, e.g. for marginal titles and to change the font of
4978 all headings with a single command, also providing simple one-step page
4979 styles. It also includes a package to change the page styles when there are
4980 floats in a page. You may assign headers/footers to individual floats, too.")
4981 (license license:lppl)))
4983 (define-public texlive-latex-type1cm
4985 (name "texlive-latex-type1cm")
4986 (version (number->string %texlive-revision))
4989 (uri (texlive-ref "latex" "type1cm"))
4990 (file-name (string-append name "-" version "-checkout"))
4993 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
4994 (build-system texlive-build-system)
4995 (arguments '(#:tex-directory "latex/type1cm"))
4996 (home-page "https://www.ctan.org/pkg/type1cm")
4997 (synopsis "Arbitrary size font selection in LaTeX")
4999 "LaTeX, by default, restricts the sizes at which you can use its default
5000 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
5001 specified by Knuth). The @code{type1cm} package removes this restriction;
5002 this is particularly useful when using scalable versions of the CM
5003 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
5004 PCTeX, etc.). In fact, since modern distributions will automatically generate
5005 any bitmap font you might need, @code{type1cm} has wider application than just
5006 those using scalable versions of the fonts. Note that the LaTeX distribution
5007 now contains a package @code{fix-cm},f which performs the task of
5008 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
5010 (license license:lppl)))
5012 (define-public texlive-latex-lh
5014 (name "texlive-latex-lh")
5015 (version (number->string %texlive-revision))
5018 (uri (texlive-ref "latex" "lh"))
5019 (file-name (string-append name "-" version "-checkout"))
5022 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
5023 (build-system texlive-build-system)
5024 (arguments '(#:tex-directory "latex/lh"))
5025 (home-page "https://www.ctan.org/pkg/lh")
5026 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
5028 "The LH fonts address the problem of the wide variety of alphabets that
5029 are written with Cyrillic-style characters. The fonts are the original basis
5030 of the set of T2* and X2 encodings that are now used when LaTeX users need to
5031 write in Cyrillic languages. Macro support in standard LaTeX encodings is
5032 offered through the latex-cyrillic and t2 bundles, and the package itself
5033 offers support for other (more traditional) encodings. The fonts, in the
5034 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
5035 CM-Super family of fonts. The package also offers its own LaTeX support for
5036 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
5037 (license license:lppl)))
5039 (define-public texlive-metapost
5041 (name "texlive-metapost")
5042 (version (number->string %texlive-revision))
5046 (url (string-append "svn://www.tug.org/texlive/tags/"
5047 %texlive-tag "/Master/texmf-dist/"
5049 (revision %texlive-revision)))
5050 (file-name (string-append name "-" version "-checkout"))
5053 "0sf18pc6chgy26p9bxxn44xcqhzjrfb53jxjr2y7l3jb6xllhblq"))))
5054 (build-system trivial-build-system)
5056 `(#:modules ((guix build utils))
5059 (use-modules (guix build utils))
5060 (let ((target (string-append (assoc-ref %outputs "out")
5061 "/share/texmf-dist/metapost")))
5063 (copy-recursively (assoc-ref %build-inputs "source") target)
5065 (home-page "https://www.ctan.org/pkg/metapost")
5066 (synopsis "Create scalable illustrations")
5068 "MetaPost uses a language based on that of Metafont to produce precise
5069 technical illustrations. Its output is scalable PostScript or SVG, rather
5070 than the bitmaps Metafont creates.")
5071 (license license:lppl)))
5073 (define-public texlive-latex-acmart
5075 (name "texlive-latex-acmart")
5079 (uri (texlive-ref "latex" "acmart"))
5082 "0n62cs8dhcbn29y9ij1nnyigzr76yhk36kyahhqkkmvbafbys9s7"))
5083 (file-name (string-append name "-" version "-checkout"))))
5084 (build-system texlive-build-system)
5085 (arguments '(#:tex-directory "latex/acmart"))
5086 (home-page "https://www.ctan.org/pkg/acmart")
5087 (synopsis "Class for typesetting publications of ACM")
5089 "This package provides a class for typesetting publications of the
5090 Association for Computing Machinery (ACM).")
5091 (license license:lppl1.3+)))
5093 (define-public texlive-latex-varwidth
5095 (name "texlive-latex-varwidth")
5096 (version (number->string %texlive-revision))
5100 (url (string-append "svn://www.tug.org/texlive/tags/"
5101 %texlive-tag "/Master/texmf-dist/"
5102 "/tex/latex/varwidth"))
5103 (revision %texlive-revision)))
5104 (file-name (string-append name "-" version "-checkout"))
5107 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
5108 (build-system trivial-build-system)
5110 `(#:modules ((guix build utils))
5113 (use-modules (guix build utils))
5114 (let ((target (string-append (assoc-ref %outputs "out")
5115 "/share/texmf-dist/tex/latex/varwidth")))
5117 (copy-recursively (assoc-ref %build-inputs "source") target)
5119 (home-page "https://www.ctan.org/pkg/varwidth")
5120 (synopsis "Variable-width minipage")
5122 "The @code{varwidth} environment is superficially similar to
5123 @code{minipage}, but the specified width is just a maximum value — the box may
5124 get a narrower “natural” width.")
5125 (license license:lppl)))
5127 (define-public texlive-latex-wasysym
5129 (name "texlive-latex-wasysym")
5130 (version (number->string %texlive-revision))
5133 (uri (texlive-ref "latex" "wasysym"))
5134 (file-name (string-append name "-" version "-checkout"))
5137 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
5138 (build-system texlive-build-system)
5139 (arguments '(#:tex-directory "latex/wasysym"))
5140 (home-page "https://www.ctan.org/pkg/wasysym")
5141 (synopsis "LaTeX support file to use the WASY2 fonts")
5143 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
5144 like male and female symbols and astronomical symbols, as well as the complete
5145 lasy font set and other odds and ends. The wasysym package implements an easy
5146 to use interface for these symbols.")
5147 (license license:lppl)))
5149 (define-public texlive-latex-wrapfig
5151 (name "texlive-latex-wrapfig")
5152 (version (number->string %texlive-revision))
5156 (url (string-append "svn://www.tug.org/texlive/tags/"
5157 %texlive-tag "/Master/texmf-dist/"
5158 "/tex/latex/wrapfig"))
5159 (revision %texlive-revision)))
5160 (file-name (string-append name "-" version "-checkout"))
5163 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
5164 (build-system trivial-build-system)
5166 `(#:modules ((guix build utils))
5169 (use-modules (guix build utils))
5170 (let ((target (string-append (assoc-ref %outputs "out")
5171 "/share/texmf-dist/tex/latex/wrapfig")))
5173 (copy-recursively (assoc-ref %build-inputs "source") target)
5175 (home-page "https://www.ctan.org/pkg/wrapfig")
5176 (synopsis "Produces figures which text can flow around")
5178 "This package allows figures or tables to have text wrapped around them.
5179 It does not work in combination with list environments, but can be used in a
5180 @code{parbox} or @code{minipage}, and in two-column format.")
5181 (license license:lppl)))
5183 (define-public texlive-latex-ucs
5185 (name "texlive-latex-ucs")
5186 (version (number->string %texlive-revision))
5190 (url (string-append "svn://www.tug.org/texlive/tags/"
5191 %texlive-tag "/Master/texmf-dist/"
5193 (revision %texlive-revision)))
5194 (file-name (string-append name "-" version "-checkout"))
5197 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
5198 (build-system trivial-build-system)
5200 `(#:modules ((guix build utils))
5203 (use-modules (guix build utils))
5204 (let ((target (string-append (assoc-ref %outputs "out")
5205 "/share/texmf-dist/tex/latex/ucs")))
5207 (copy-recursively (assoc-ref %build-inputs "source") target)
5209 (home-page "https://www.ctan.org/pkg/ucs")
5210 (synopsis "Extended UTF-8 input encoding support for LaTeX")
5212 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
5213 together with a large number of support files. The @code{utf8x.def}
5214 definition file for use with @code{inputenc} covers a wider range of Unicode
5215 characters than does @code{utf8.def} in the LaTeX distribution. The package
5216 provides facilities for efficient use of its large sets of Unicode characters.
5217 Glyph production may be controlled by various options, which permits use of
5218 non-ASCII characters when coding mathematical formulae. Note that the bundle
5219 previously had an alias “unicode”; that alias has now been withdrawn, and no
5220 package of that name now exists.")
5221 (license license:lppl1.3+)))
5223 (define-public texlive-latex-preview
5225 (name "texlive-latex-preview")
5226 (version (number->string %texlive-revision))
5229 (uri (texlive-ref "latex" "preview"))
5230 (file-name (string-append name "-" version "-checkout"))
5233 "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6"))))
5234 (build-system texlive-build-system)
5236 '(#:tex-directory "latex/preview"
5238 (modify-phases %standard-phases
5239 (add-after 'unpack 'remove-generated-file
5241 (delete-file "preview.drv")
5243 (home-page "https://www.ctan.org/pkg/preview")
5244 (synopsis "Extract bits of a LaTeX source for output")
5246 "The main purpose of the preview package is the extraction of selected
5247 elements from a LaTeX source, like formulas or graphics, into separate
5248 pages of a DVI file. A flexible and convenient interface allows it to
5249 specify what commands and constructs should be extracted. This works
5250 with DVI files postprocessed by either Dvips and Ghostscript or
5251 dvipng, but it also works when you are using PDFTeX for generating PDF
5253 (license license:gpl3+)))
5255 (define-public texlive-latex-acronym
5257 (name "texlive-latex-acronym")
5258 (version (number->string %texlive-revision))
5261 (uri (texlive-ref "latex" "acronym"))
5262 (file-name (string-append name "-" version "-checkout"))
5265 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
5266 (build-system texlive-build-system)
5267 (arguments '(#:tex-directory "latex/acronym"))
5268 (home-page "https://www.ctan.org/pkg/acronym")
5269 (synopsis "Expand acronyms at least once")
5271 "This package ensures that all acronyms used in the text are spelled out
5272 in full at least once. It also provides an environment to build a list of
5273 acronyms used. The package is compatible with PDF bookmarks. The package
5274 requires the suffix package, which in turn requires that it runs under
5276 (license license:lppl1.3+)))
5278 (define-public texlive-generic-pdftex
5280 (name "texlive-generic-pdftex")
5281 (version (number->string %texlive-revision))
5285 (url (string-append "svn://www.tug.org/texlive/tags/"
5286 %texlive-tag "/Master/texmf-dist/"
5287 "/tex/generic/pdftex"))
5288 (revision %texlive-revision)))
5289 (file-name (string-append name "-" version "-checkout"))
5292 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
5293 (build-system trivial-build-system)
5295 `(#:modules ((guix build utils))
5298 (use-modules (guix build utils))
5299 (let ((target (string-append (assoc-ref %outputs "out")
5300 "/share/texmf-dist/tex/generic/pdftex"))
5301 (target-map (string-append (assoc-ref %outputs "out")
5302 "/share/texmf-dist/fonts/map/pdftex")))
5304 (copy-recursively (assoc-ref %build-inputs "source") target)
5305 (mkdir-p target-map)
5306 (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map)
5313 (url (string-append "svn://www.tug.org/texlive/tags/"
5314 %texlive-tag "/Master/texmf-dist/"
5315 "/fonts/map/pdftex"))
5316 (revision %texlive-revision)))
5317 (file-name (string-append name "-map-" version "-checkout"))
5320 "18jvcm0vwpg6wwzijvnb92xx78la45kkh71k6l44425krp2vnwm0"))))))
5321 (home-page "https://www.ctan.org/pkg/pdftex")
5322 (synopsis "TeX extension for direct creation of PDF")
5324 "This package provides an extension of TeX which can be configured to
5325 directly generate PDF documents instead of DVI.")
5326 (license license:gpl2+)))
5328 (define texlive-texmf
5330 (name "texlive-texmf")
5331 (version "20180414")
5332 (source texlive-texmf-src)
5333 (build-system gnu-build-system)
5335 `(("texlive-bin" ,texlive-bin)
5338 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5342 `(#:modules ((guix build gnu-build-system)
5346 ;; This package takes 4 GiB, which we can't afford to distribute from
5351 (modify-phases (map (cut assq <> %standard-phases)
5352 '(set-paths unpack patch-source-shebangs))
5353 (add-after 'unpack 'unset-environment-variables
5356 (unsetenv "TEXMFCNF")
5358 (add-after 'patch-source-shebangs 'install
5359 (lambda* (#:key outputs #:allow-other-keys)
5360 (let ((share (string-append (assoc-ref outputs "out") "/share")))
5362 (invoke "mv" "texmf-dist" share))))
5363 (add-after 'install 'texmf-config
5364 (lambda* (#:key inputs outputs #:allow-other-keys)
5365 (let* ((out (assoc-ref outputs "out"))
5366 (share (string-append out "/share"))
5367 (texmfroot (string-append share "/texmf-dist/web2c"))
5368 (texmfcnf (string-append texmfroot "/texmf.cnf"))
5369 (texlive-bin (assoc-ref inputs "texlive-bin"))
5370 (texbin (string-append texlive-bin "/bin"))
5371 (tlpkg (string-append texlive-bin "/share/tlpkg")))
5372 ;; Register SHARE as TEXMFROOT in texmf.cnf.
5373 (substitute* texmfcnf
5374 (("TEXMFROOT = \\$SELFAUTOPARENT")
5375 (string-append "TEXMFROOT = " share))
5376 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
5377 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
5378 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
5379 ;; Register paths in texmfcnf.lua, needed for context.
5380 (substitute* (string-append texmfroot "/texmfcnf.lua")
5381 (("selfautodir:") out)
5382 (("selfautoparent:") (string-append share "/")))
5383 ;; Set path to TeXLive Perl modules
5385 (string-append (getenv "PERL5LIB") ":" tlpkg))
5386 ;; Configure the texmf-dist tree; inspired from
5387 ;; http://slackbuilds.org/repository/13.37/office/texlive/
5388 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
5389 (setenv "TEXMFCNF" texmfroot)
5390 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
5392 (invoke "fmtutil-sys" "--all")))))))
5393 (properties `((max-silent-time . 9600))) ; don't time out while grafting
5394 (synopsis "TeX Live, a package of the TeX typesetting system")
5396 "TeX Live provides a comprehensive TeX document production system.
5397 It includes all the major TeX-related programs, macro packages, and fonts
5398 that are free software, including support for many languages around the
5401 This package contains the complete tree of texmf-dist data.")
5402 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
5403 (home-page "https://www.tug.org/texlive/")))
5405 (define-public texlive
5408 (version "20180414")
5410 (build-system trivial-build-system)
5411 (inputs `(("bash" ,bash) ; for wrap-program
5412 ("texlive-bin" ,texlive-bin)
5413 ("texlive-texmf" ,texlive-texmf)))
5414 (native-search-paths
5415 (list (search-path-specification
5416 (variable "TEXMFLOCAL")
5417 (files '("share/texmf-local")))))
5419 `(#:modules ((guix build utils))
5421 ;; Build the union of texlive-bin and texlive-texmf, but take the
5422 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
5424 (use-modules (guix build utils))
5425 (let ((out (assoc-ref %outputs "out"))
5426 (bin (assoc-ref %build-inputs "texlive-bin"))
5427 (texmf (assoc-ref %build-inputs "texlive-texmf"))
5428 (bash (assoc-ref %build-inputs "bash")))
5430 (with-directory-excursion out
5433 (symlink (string-append bin "/" name) name))
5436 (with-directory-excursion "bin"
5437 (setenv "PATH" (string-append bash "/bin"))
5440 (symlink name (basename name))
5444 (,(string-append texmf "/share/texmf-dist/web2c")))))
5445 (find-files (string-append bin "/bin/") "")))
5447 (with-directory-excursion "share"
5450 (symlink (string-append bin "/share/" name) name))
5451 '("info" "man" "tlpkg"))
5454 (symlink (string-append texmf "/share/" name) name))
5455 '("texmf-dist" "texmf-var"))))
5457 (synopsis "TeX Live, a package of the TeX typesetting system")
5459 "TeX Live provides a comprehensive TeX document production system.
5460 It includes all the major TeX-related programs, macro packages, and fonts
5461 that are free software, including support for many languages around the
5464 This package contains the complete TeX Live distribution.")
5465 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
5466 (home-page "https://www.tug.org/texlive/")))
5468 (define-public perl-text-bibtex
5470 (name "perl-text-bibtex")
5475 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
5479 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
5480 (build-system perl-build-system)
5483 (modify-phases %standard-phases
5484 (add-after 'unpack 'add-output-directory-to-rpath
5485 (lambda* (#:key outputs #:allow-other-keys)
5486 (substitute* "inc/MyBuilder.pm"
5488 (string-append "-Wl,-rpath="
5489 (assoc-ref outputs "out") "/lib " line)))
5491 (add-after 'unpack 'install-libraries-to-/lib
5492 (lambda* (#:key outputs #:allow-other-keys)
5493 (substitute* "Build.PL"
5497 `(("perl-capture-tiny" ,perl-capture-tiny)
5498 ("perl-config-autoconf" ,perl-config-autoconf)
5499 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
5500 ("perl-module-build" ,perl-module-build)))
5501 (home-page "https://metacpan.org/release/Text-BibTeX")
5502 (synopsis "Interface to read and parse BibTeX files")
5503 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
5504 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
5505 at many different levels: you may work with BibTeX entries as simple field to
5506 string mappings, or get at the original form of the data as a list of simple
5507 values (strings, macros, or numbers) pasted together.")
5508 (license license:perl-license)))
5510 (define-public biber
5517 (url "https://github.com/plk/biber/")
5518 (commit (string-append "v" version))))
5519 (file-name (git-file-name name version))
5520 ;; TODO: Patch awaiting inclusion upstream (see:
5521 ;; https://github.com/plk/biber/issues/239).
5522 (patches (search-patches "biber-fix-encoding-write.patch"))
5525 "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx"))))
5526 (build-system perl-build-system)
5529 (modify-phases %standard-phases
5530 (add-after 'install 'wrap-programs
5531 (lambda* (#:key outputs #:allow-other-keys)
5532 (let* ((out (assoc-ref outputs "out"))
5533 (perl5lib (getenv "PERL5LIB")))
5534 (wrap-program (string-append out "/bin/biber")
5535 `("PERL5LIB" ":" prefix
5536 (,(string-append perl5lib ":" out
5537 "/lib/perl5/site_perl")))))
5540 `(("perl-autovivification" ,perl-autovivification)
5541 ("perl-class-accessor" ,perl-class-accessor)
5542 ("perl-data-dump" ,perl-data-dump)
5543 ("perl-data-compare" ,perl-data-compare)
5544 ("perl-data-uniqid" ,perl-data-uniqid)
5545 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
5546 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
5547 ("perl-file-slurper" ,perl-file-slurper)
5548 ("perl-ipc-cmd" ,perl-ipc-cmd)
5549 ("perl-ipc-run3" ,perl-ipc-run3)
5550 ("perl-list-allutils" ,perl-list-allutils)
5551 ("perl-list-moreutils" ,perl-list-moreutils)
5552 ("perl-mozilla-ca" ,perl-mozilla-ca)
5553 ("perl-regexp-common" ,perl-regexp-common)
5554 ("perl-log-log4perl" ,perl-log-log4perl)
5555 ;; We cannot use perl-unicode-collate here, because otherwise the
5556 ;; hardcoded hashes in the tests would differ. See
5557 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
5558 ;;("perl-unicode-collate" ,perl-unicode-collate)
5559 ("perl-unicode-normalize" ,perl-unicode-normalize)
5560 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
5561 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
5562 ("perl-encode-jis2k" ,perl-encode-jis2k)
5563 ("perl-encode-hanextra" ,perl-encode-hanextra)
5564 ("perl-xml-libxml" ,perl-xml-libxml)
5565 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
5566 ("perl-xml-libxslt" ,perl-xml-libxslt)
5567 ("perl-xml-writer" ,perl-xml-writer)
5568 ("perl-sort-key" ,perl-sort-key)
5569 ("perl-text-csv" ,perl-text-csv)
5570 ("perl-text-csv-xs" ,perl-text-csv-xs)
5571 ("perl-text-roman" ,perl-text-roman)
5572 ("perl-uri" ,perl-uri)
5573 ("perl-text-bibtex" ,perl-text-bibtex)
5574 ("perl-libwww" ,perl-libwww)
5575 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
5576 ("perl-business-isbn" ,perl-business-isbn)
5577 ("perl-business-issn" ,perl-business-issn)
5578 ("perl-business-ismn" ,perl-business-ismn)
5579 ("perl-lingua-translit" ,perl-lingua-translit)))
5581 `(("perl-config-autoconf" ,perl-config-autoconf)
5582 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
5583 ("perl-module-build" ,perl-module-build)
5585 ("perl-file-which" ,perl-file-which)
5586 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
5587 ("perl-test-differences" ,perl-test-differences)))
5588 (home-page "http://biblatex-biber.sourceforge.net/")
5589 (synopsis "Backend for the BibLaTeX citation management tool")
5590 (description "Biber is a BibTeX replacement for users of biblatex. Among
5591 other things it comes with full Unicode support.")
5592 (license license:artistic2.0)))
5594 (define-public rubber
5600 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
5601 version "/+download/rubber-"
5603 (string-append "http://ebeffara.free.fr/pub/rubber-"
5604 version ".tar.gz")))
5607 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
5608 (build-system gnu-build-system)
5609 (arguments '(#:tests? #f)) ; no `check' target
5610 (inputs `(("texinfo" ,texinfo)
5611 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5613 (home-page "https://launchpad.net/rubber")
5614 (synopsis "Wrapper for LaTeX and friends")
5616 "Rubber is a program whose purpose is to handle all tasks related to the
5617 compilation of LaTeX documents. This includes compiling the document itself,
5618 of course, enough times so that all references are defined, and running BibTeX
5619 to manage bibliographic references. Automatic execution of dvips to produce
5620 PostScript documents is also included, as well as usage of pdfLaTeX to produce
5622 (license license:gpl2+)))
5624 (define-public texmaker
5630 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
5631 version ".tar.bz2"))
5634 "0vrj9w5lk3vf6138n5bz8phmy3xp5kv4dq1rgirghcf4hbxdyx30"))))
5635 (build-system gnu-build-system)
5638 (modify-phases %standard-phases
5639 ;; Qt has its own configuration utility.
5641 (lambda* (#:key outputs #:allow-other-keys)
5642 (let ((out (assoc-ref outputs "out")))
5644 (string-append "PREFIX=" out)
5645 (string-append "DESKTOPDIR=" out "/share/applications")
5646 (string-append "ICONDIR=" out "/share/pixmaps")
5647 (string-append "METAINFODIR=" out "/share/metainfo")
5648 "texmaker.pro")))))))
5650 `(("poppler-qt5" ,poppler-qt5)
5652 ("qtscript" ,qtscript)
5653 ("qtwebkit" ,qtwebkit)
5656 `(("pkg-config" ,pkg-config)))
5657 (home-page "http://www.xm1math.net/texmaker/")
5658 (synopsis "LaTeX editor")
5659 (description "Texmaker is a program that integrates many tools needed to
5660 develop documents with LaTeX, in a single application.")
5661 (license license:gpl2+)))
5663 (define-public teximpatient
5665 (name "teximpatient")
5668 (method url-fetch/tarbomb)
5669 (uri (string-append "mirror://gnu/" name "/" name "-"
5673 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
5674 (build-system gnu-build-system)
5676 `(#:tests? #f ; there are none
5678 (modify-phases %standard-phases
5679 (add-after 'unpack 'fix-packaging-error
5680 (lambda* (#:key inputs #:allow-other-keys)
5681 ;; This file should have been part of the tarball.
5684 (assoc-ref inputs "automake")
5687 ;; Remove generated file.
5688 (delete-file "book.pdf")
5691 `(("texlive" ,(texlive-union (list texlive-latex-amsfonts
5692 texlive-fonts-amsfonts
5693 texlive-fonts-adobe-palatino
5694 texlive-fonts-adobe-zapfding
5695 texlive-fonts-knuth-lib
5696 texlive-fonts-mflogo-font
5697 texlive-generic-pdftex)))
5698 ("automake" ,automake)))
5699 (home-page "https://www.gnu.org/software/teximpatient/")
5700 (synopsis "Book on TeX, plain TeX and Eplain")
5701 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
5702 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
5704 (license license:fdl1.3+)))
5712 (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/"
5713 (version-major+minor version) ".x/"
5714 name "-" version ".tar.gz"))
5717 "0vr0qwis6rhind6azfa270hqxci7rj8qb1kk5x6lm80mc34nvrqi"))
5718 (modules '((guix build utils)))
5721 (delete-file-recursively "3rdparty")
5723 (build-system cmake-build-system)
5725 `(#:configure-flags `("-DLYX_USE_QT=QT5"
5726 "-DLYX_EXTERNAL_BOOST=1"
5729 ,(string-append "-DLYX_INSTALL_PREFIX="
5730 (assoc-ref %outputs "out")
5731 ;; Exact name and level is necessary.
5732 "/lyx" ,(version-major+minor version)))
5734 (modify-phases %standard-phases
5735 ;; See ;; https://www.lyx.org/trac/changeset/3a123b90af838b08680471d87170c38e56787df9/lyxgit
5736 (add-after 'unpack 'fix-compilation-with-boost-1.69
5738 (substitute* "src/support/FileName.cpp"
5739 (("^template struct boost::detail::crc_table_t.*") ""))
5741 (add-after 'unpack 'patch-python
5742 (lambda* (#:key inputs #:allow-other-keys)
5743 (substitute* '("src/support/os.cpp")
5746 (assoc-ref inputs "python")
5749 (add-after 'patch-python 'patch-desktop-file
5750 (lambda* (#:key outputs #:allow-other-keys)
5751 (substitute* "lib/lyx.desktop.in"
5753 (string-append "Exec="
5754 (assoc-ref outputs "out")
5757 (add-before 'check 'setenv-check
5759 ;; Create missing file that would cause tests to fail.
5760 (with-output-to-file (string-append "../lyx-"
5762 "/src/tests/check_layout.cmake")
5764 (setenv (string-append "LYX_DIR_"
5767 ,(version-major+minor version) #\-)) "x")
5768 (string-append (getcwd) "/../lyx-" ,version "/lib"))
5770 (add-after 'install 'install-symlinks
5771 (lambda* (#:key outputs #:allow-other-keys)
5772 (let ((out (assoc-ref outputs "out")))
5773 (mkdir-p (string-append out "/bin"))
5774 (symlink (string-append "../lyx" ,(version-major+minor version)
5775 "/bin/lyx" ,(version-major+minor version))
5776 (string-append out "/bin/lyx" ,(version-major+minor version)))
5780 ("hunspell" ,hunspell) ; Note: Could also use aspell instead.
5783 ("python" ,python-2)
5788 `(("texlive" ,(texlive-union (list texlive-fonts-ec)))))
5789 ;; FIXME: Python 3.7.0 cannot be used because the test infrastructure
5790 ;; "requires a bytes-like object, not 'str'". This may be fixed with
5791 ;; upgrades to Python.
5793 `(("python" ,python-2)
5794 ("pkg-config" ,pkg-config)
5796 (home-page "https://www.lyx.org/")
5797 (synopsis "Document preparation system with GUI")
5798 (description "LyX is a document preparation system. It excels at letting
5799 you create complex technical and scientific articles with mathematics,
5800 cross-references, bibliographies, indexes, etc. It is very good for working
5801 with documents of any length in which the usual processing abilities are
5802 required: automatic sectioning and pagination, spell checking and so forth.")
5803 (license license:gpl2+)))
5805 (define-public texlive-latex-media9
5807 (name "texlive-latex-media9")
5808 (version (number->string %texlive-revision))
5812 (url (string-append "svn://www.tug.org/texlive/tags/"
5813 %texlive-tag "/Master/texmf-dist/"
5814 "/tex/latex/media9"))
5815 (revision %texlive-revision)))
5816 (file-name (string-append name "-" version "-checkout"))
5819 "0lhb2h5hxjq9alpk4r3gvg21pwyifs4ah6hqzp92k55mkp1xv73j"))))
5820 (build-system trivial-build-system)
5822 `(#:modules ((guix build utils))
5825 (use-modules (guix build utils))
5826 (let ((target (string-append (assoc-ref %outputs "out")
5827 "/share/texmf-dist/tex/latex/media9")))
5829 (copy-recursively (assoc-ref %build-inputs "source") target)
5831 (home-page "https://www.ctan.org/pkg/media9")
5832 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
5834 "The package provides an interface to embed interactive Flash (SWF) and 3D
5835 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
5836 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
5837 compatibility. Playback of multimedia files uses the built-in Flash Player of
5838 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
5839 supports the efficient H.264 codec for video compression.
5841 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
5842 specification. It replaces the now obsolete @code{movie15} package.")
5843 (license license:lppl)))
5845 (define-public texlive-latex-ocgx2
5847 (name "texlive-latex-ocgx2")
5848 (version (number->string %texlive-revision))
5852 (url (string-append "svn://www.tug.org/texlive/tags/"
5853 %texlive-tag "/Master/texmf-dist/"
5854 "/tex/latex/ocgx2"))
5855 (revision %texlive-revision)))
5856 (file-name (string-append name "-" version "-checkout"))
5859 "0zp00jg058djx8xp0xqwas92y3j97clkyd8z6pqr890yqy06myqb"))))
5860 (build-system trivial-build-system)
5862 `(#:modules ((guix build utils))
5865 (use-modules (guix build utils))
5866 (let ((target (string-append (assoc-ref %outputs "out")
5867 "/share/texmf-dist/tex/latex/ogcx2")))
5869 (copy-recursively (assoc-ref %build-inputs "source") target)
5871 (home-page "https://www.ctan.org/pkg/ocgx2")
5872 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
5874 "This package provides OCG (Optional Content Groups) support within a PDF
5877 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
5878 @code{ocg-p} packages and adds support for all known engines and back-ends
5882 @item LaTeX → dvips → @code{ps2pdf}/Distiller
5883 @item (Xe)LaTeX(x) → @code{dvipdfmx}
5884 @item pdfLaTeX and LuaLaTeX .
5887 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
5888 (license license:lppl)))
5890 (define-public texlive-latex-ms
5892 (name "texlive-latex-ms")
5893 (version (number->string %texlive-revision))
5896 (uri (texlive-ref "latex" "ms"))
5897 (file-name (string-append name "-" version "-checkout"))
5900 "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s"))))
5901 (build-system texlive-build-system)
5903 '(#:tex-directory "latex/ms"
5904 #:tex-format "latex"))
5905 (home-page "https://ctan.org/pkg/ms")
5906 (synopsis "Various LATEX packages by Martin Schröder")
5908 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
5911 @item @command{count1to}, make use of fixed TEX counters;
5912 @item @command{everysel}, set commands to execute every time a font is selected;
5913 @item @command{everyshi}, set commands to execute whenever a page is shipped out;
5914 @item @command{multitoc}, typeset the table of contents in multiple columns;
5915 @item @command{prelim2e}, mark typeset pages as preliminary; and
5916 @item @command{ragged2e}, typeset ragged text and allow hyphenation.
5918 (license license:lppl1.3c+)))
5920 (define-public texlive-latex-needspace
5922 (name "texlive-latex-needspace")
5923 (version (number->string %texlive-revision))
5926 (uri (texlive-ref "latex" "needspace"))
5927 (file-name (string-append name "-" version "-checkout"))
5930 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
5931 (build-system texlive-build-system)
5933 '(#:tex-directory "latex/needspace"
5934 #:tex-format "latex"))
5936 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
5937 (home-page "https://www.ctan.org/pkg/needspace")
5938 (synopsis "Insert pagebreak if not enough space")
5940 "Provides commands to disable pagebreaking within a given vertical
5941 space. If there is not enough space between the command and the bottom of the
5942 page, a new page will be started.")
5943 (license license:lppl)))
5945 (define-public texlive-latex-changepage
5947 (name "texlive-latex-changepage")
5948 (version (number->string %texlive-revision))
5952 (uri (texlive-ref "latex" "changepage"))
5955 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
5956 (build-system texlive-build-system)
5958 '(#:tex-directory "latex/changepage"
5959 #:tex-format "latex"))
5961 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
5962 (home-page "https://www.ctan.org/pkg/changepage")
5963 (synopsis "Margin adjustment and detection of odd/even pages")
5965 "The package provides commands to change the page layout in the middle of
5966 a document, and to robustly check for typesetting on odd or even pages.
5967 Instructions for use are at the end of the file. The package is an extraction
5968 of code from the @code{memoir} class, whose user interface it shares.")
5969 (license license:lppl1.3+)))
5971 (define-public texlive-latex-eukdate
5973 (name "texlive-latex-eukdate")
5974 (version (number->string %texlive-revision))
5979 (url (string-append "svn://www.tug.org/texlive/tags/"
5980 %texlive-tag "/Master/texmf-dist/"
5981 "/tex/latex/eukdate"))
5982 (revision %texlive-revision)))
5983 (file-name (string-append name "-" version "-checkout"))
5986 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
5987 (build-system trivial-build-system)
5989 `(#:modules ((guix build utils))
5992 (use-modules (guix build utils))
5993 (let ((target (string-append (assoc-ref %outputs "out")
5994 "/share/texmf-dist/tex/latex/eukdate")))
5996 (copy-recursively (assoc-ref %build-inputs "source") target)
5998 (home-page "https://www.ctan.org/pkg/eukdate")
5999 (synopsis "UK format dates, with weekday")
6001 "The package is used to change the format of @code{\\today}’s date,
6002 including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
6003 is preferred in many parts of the world, as distinct from that which is used in
6004 @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
6005 (license license:lppl)))
6007 (define-public texlive-generic-ulem
6009 (name "texlive-generic-ulem")
6010 (version (number->string %texlive-revision))
6015 (url (string-append "svn://www.tug.org/texlive/tags/"
6016 %texlive-tag "/Master/texmf-dist/"
6017 "/tex/generic/ulem"))
6018 (revision %texlive-revision)))
6019 (file-name (string-append name "-" version "-checkout"))
6022 "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797"))))
6023 (build-system trivial-build-system)
6025 `(#:modules ((guix build utils))
6028 (use-modules (guix build utils))
6029 (let ((target (string-append (assoc-ref %outputs "out")
6030 "/share/texmf-dist/tex/generic/ulem")))
6032 (copy-recursively (assoc-ref %build-inputs "source") target)
6034 (home-page "https://www.ctan.org/pkg/ulem")
6035 (synopsis "Underline text in TeX")
6037 "The package provides an @code{\\ul} (underline) command which will break
6038 over line ends; this technique may be used to replace @code{\\em} (both in that
6039 form and as the @code{\\emph} command), so as to make output look as if it comes
6040 from a typewriter. The package also offers double and wavy underlining, and
6041 striking out (line through words) and crossing out (/// over words).")
6042 (license license:lppl1.3c+)))
6044 (define-public texlive-latex-pgf
6046 (name "texlive-latex-pgf")
6047 (version (number->string %texlive-revision))
6052 (url (string-append "svn://www.tug.org/texlive/tags/"
6053 %texlive-tag "/Master/texmf-dist/"
6055 (revision %texlive-revision)))
6056 (file-name (string-append name "-" version "-checkout"))
6059 "1dq8p10pz8wn0vx412m7d7d5gj1syxly3yqdqvf7lv2xl8zndn5h"))))
6060 (build-system trivial-build-system)
6062 `(("texlive-latex-pgf-generic"
6066 (url (string-append "svn://www.tug.org/texlive/tags/"
6067 %texlive-tag "/Master/texmf-dist/"
6068 "/tex/generic/pgf"))
6069 (revision %texlive-revision)))
6070 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
6073 "0xkxw26sjzr5npjpzpr28yygwdbhzpdd0hsk80gjpidhcxmz393i"))))))
6075 `(("texlive-latex-xcolor" ,texlive-latex-xcolor)))
6077 `(#:modules ((guix build utils))
6080 (use-modules (guix build utils))
6081 (let ((target-generic (string-append (assoc-ref %outputs "out")
6082 "/share/texmf-dist/tex/generic/pgf"))
6083 (target-latex (string-append (assoc-ref %outputs "out")
6084 "/share/texmf-dist/tex/latex/pgf")))
6085 (mkdir-p target-generic)
6086 (mkdir-p target-latex)
6087 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
6088 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
6090 (home-page "https://www.ctan.org/pkg/tikz")
6091 (synopsis "Create PostScript and PDF graphics in TeX")
6093 "PGF is a macro package for creating graphics. It is platform- and
6094 format-independent and works together with the most important TeX backend
6095 drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
6098 Its usage is similar to pstricks and the standard picture environment. PGF
6099 works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
6100 produce either PostScript or PDF output.")
6101 (license license:lppl1.3c+)))
6103 (define-public texlive-latex-koma-script
6105 (name "texlive-latex-koma-script")
6106 (version (number->string %texlive-revision))
6110 (url (string-append "svn://www.tug.org/texlive/tags/"
6111 %texlive-tag "/Master/texmf-dist/"
6112 "/tex/latex/koma-script"))
6113 (revision %texlive-revision)))
6114 (file-name (string-append name "-" version "-checkout"))
6117 "0nqwf0sr4mf3v9gqa6apv6ml2xhcdwax0vgyf12a672g7rpdyvgm"))))
6118 (build-system trivial-build-system)
6120 `(#:modules ((guix build utils)
6124 (use-modules (guix build utils)
6126 (let ((root (string-append (assoc-ref %outputs "out")
6127 "/share/texmf-dist/"))
6128 (pkgs '(("source" . "tex/latex/koma-script"))))
6129 (for-each (match-lambda
6131 (let ((target (string-append root dir)))
6133 (copy-recursively (assoc-ref %build-inputs pkg)
6137 (home-page "https://www.ctan.org/pkg/koma-script")
6138 (synopsis "Bundle of versatile classes and packages")
6140 "The KOMA-Script bundle provides replacements for the article, report, and
6141 book classes with emphasis on typography and versatility. There is also a
6144 The bundle also offers:
6147 @item a package for calculating type areas in the way laid down by the
6148 typographer Jan Tschichold,
6149 @item packages for easily changing and defining page styles,
6150 @item a package scrdate for getting not only the current date but also the name
6152 @item a package scrtime for getting the current time.
6155 All these packages may be used not only with KOMA-Script classes but also with
6156 the standard classes.
6158 Since every package has its own version number, the version number quoted only
6159 refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
6160 typearea (which are the main parts of the bundle).")
6161 (license license:lppl1.3+)))
6163 (define-public texlive-generic-listofitems
6165 (name "texlive-generic-listofitems")
6166 (version (number->string %texlive-revision))
6170 (url (string-append "svn://www.tug.org/texlive/tags/"
6171 %texlive-tag "/Master/texmf-dist/"
6172 "/tex/generic/listofitems"))
6173 (revision %texlive-revision)))
6174 (file-name (string-append name "-" version "-checkout"))
6177 "0hs28fc0v2l92ad9las9b8xcckyrdrwmyhcx1yzmbr6s7s6nvsx8"))))
6178 (build-system trivial-build-system)
6180 `(#:modules ((guix build utils))
6183 (use-modules (guix build utils))
6184 (let ((target (string-append (assoc-ref %outputs "out")
6185 "/share/texmf-dist/tex/generic/listofitems")))
6187 (copy-recursively (assoc-ref %build-inputs "source") target)
6189 (home-page "https://www.ctan.org/pkg/listofitems")
6190 (synopsis "Grab items in lists using user-specified separation character")
6192 "This package allows one to capture all the items of a list, for which
6193 the parsing character has been selected by the user, and to access any of
6194 these items with a simple syntax.")
6195 (license license:lppl1.3c+)))
6197 (define-public texlive-latex-readarray
6199 (name "texlive-latex-readarray")
6200 (version (number->string %texlive-revision))
6204 (url (string-append "svn://www.tug.org/texlive/tags/"
6205 %texlive-tag "/Master/texmf-dist/"
6206 "/tex/latex/readarray"))
6207 (revision %texlive-revision)))
6208 (file-name (string-append name "-" version "-checkout"))
6211 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
6212 (build-system trivial-build-system)
6214 `(#:modules ((guix build utils))
6217 (use-modules (guix build utils))
6218 (let ((target (string-append (assoc-ref %outputs "out")
6219 "/share/texmf-dist/tex/latex/readarray")))
6221 (copy-recursively (assoc-ref %build-inputs "source") target)
6224 `(("texlive-generic-listofitems" ,texlive-generic-listofitems)))
6225 (home-page "https://www.ctan.org/pkg/readarray")
6226 (synopsis "Read, store and recall array-formatted data")
6228 "This package allows the user to input formatted data into elements of a
6229 2-D or 3-D array and to recall that data at will by individual cell number.
6230 The data can be but need not be numerical in nature. It can be, for example,
6232 (license license:lppl1.3)))
6234 (define-public texlive-latex-verbatimbox
6236 (name "texlive-latex-verbatimbox")
6237 (version (number->string %texlive-revision))
6241 (url (string-append "svn://www.tug.org/texlive/tags/"
6242 %texlive-tag "/Master/texmf-dist/"
6243 "/tex/latex/verbatimbox"))
6244 (revision %texlive-revision)))
6245 (file-name (string-append name "-" version "-checkout"))
6248 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
6249 (build-system trivial-build-system)
6251 `(#:modules ((guix build utils))
6254 (use-modules (guix build utils))
6255 (let ((target (string-append (assoc-ref %outputs "out")
6256 "/share/texmf-dist/tex/latex/verbatimbox")))
6258 (copy-recursively (assoc-ref %build-inputs "source") target)
6261 `(("texlive-latex-readarray" ,texlive-latex-readarray)))
6262 (home-page "https://www.ctan.org/pkg/verbatimbox")
6263 (synopsis "Deposit verbatim text in a box")
6265 "The package provides a @code{verbbox} environment to place its contents
6266 into a globally available box, or into a box specified by the user. The
6267 global box may then be used in a variety of situations (for example, providing
6268 a replica of the @code{boxedverbatim} environment itself). A valuable use is
6269 in places where the standard @code{verbatim} environment (which is based on a
6270 @code{trivlist}) may not appear.")
6271 (license license:lppl1.3+)))
6273 (define-public texlive-latex-examplep
6275 (name "texlive-latex-examplep")
6276 (version (number->string %texlive-revision))
6280 (url (string-append "svn://www.tug.org/texlive/tags/"
6281 %texlive-tag "/Master/texmf-dist/"
6282 "/tex/latex/examplep"))
6283 (revision %texlive-revision)))
6284 (file-name (string-append name "-" version "-checkout"))
6287 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
6288 (build-system trivial-build-system)
6290 `(#:modules ((guix build utils))
6293 (use-modules (guix build utils))
6294 (let ((target (string-append (assoc-ref %outputs "out")
6295 "/share/texmf-dist/tex/latex/examplep")))
6297 (copy-recursively (assoc-ref %build-inputs "source") target)
6299 (home-page "https://www.ctan.org/pkg/examplep")
6300 (synopsis "Verbatim phrases and listings in LaTeX")
6302 "Examplep provides sophisticated features for typesetting verbatim source
6303 code listings, including the display of the source code and its compiled LaTeX
6304 or METAPOST output side-by-side, with automatic width detection and enabled
6305 page breaks (in the source), without the need for specifying the source twice.
6306 Special care is taken that section, page and footnote numbers do not interfere
6307 with the main document. For typesetting short verbatim phrases, a replacement
6308 for the @code{\\verb} command is also provided in the package, which can be
6309 used inside tables and moving arguments such as footnotes and section
6311 ;; No version of the GPL is specified.
6312 (license license:gpl3+)))
6314 (define-public texlive-generic-xypic
6316 (name "texlive-generic-xypic")
6317 (version (number->string %texlive-revision))
6322 (url (string-append "svn://www.tug.org/texlive/tags/"
6323 %texlive-tag "/Master/texmf-dist/"
6324 "/tex/generic/xypic"))
6325 (revision %texlive-revision)))
6326 (file-name (string-append name "-" version "-checkout"))
6329 "1g5cyxwdfznq4lk9zl6fkjkapmhmwd2cm4m5aibxj20qgwnaggfz"))))
6330 (build-system trivial-build-system)
6332 `(#:modules ((guix build utils))
6335 (use-modules (guix build utils))
6336 (let ((target (string-append (assoc-ref %outputs "out")
6337 "/share/texmf-dist/tex/generic/xypic")))
6339 (copy-recursively (assoc-ref %build-inputs "source") target)
6341 (home-page "https://www.ctan.org/pkg/xypic")
6342 (synopsis "Flexible diagramming macros for TeX")
6344 "A package for typesetting a variety of graphs and diagrams with TeX.
6345 Xy-pic works with most formats (including LaTeX, AMS-LaTeX, AMS-TeX, and plain
6347 (license license:gpl3+)))
6349 (define-public texlive-fonts-xypic
6351 (name "texlive-fonts-xypic")
6352 (version (number->string %texlive-revision))
6356 (url (string-append "svn://www.tug.org/texlive/tags/"
6357 %texlive-tag "/Master/texmf-dist/"
6358 "/fonts/source/public/xypic"))
6359 (revision %texlive-revision)))
6360 (file-name (string-append name "-" version "-checkout"))
6363 "0p20v1257kwsqnrk98cdhhiz2viv8l3ly4xay4by0an3j37m9xs3"))))
6364 (build-system trivial-build-system)
6366 `(#:modules ((guix build utils)
6370 (use-modules (guix build utils)
6372 (let ((root (string-append (assoc-ref %outputs "out")
6373 "/share/texmf-dist/"))
6374 (pkgs '(("source" . "fonts/source/public/xypic")
6375 ("xypic-afm" . "fonts/afm/public/xypic")
6376 ("xypic-type1" . "fonts/type1/public/xypic")
6377 ("xypic-enc" . "fonts/enc/dvips/xypic"))))
6378 (for-each (match-lambda
6380 (let ((target (string-append root dir)))
6382 (copy-recursively (assoc-ref %build-inputs pkg)
6391 (url (string-append "svn://www.tug.org/texlive/tags/"
6392 %texlive-tag "/Master/texmf-dist/"
6393 "/fonts/afm/public/xypic"))
6394 (revision %texlive-revision)))
6395 (file-name (string-append name "-afm-" version "-checkout"))
6398 "149xdijxp8lw3s0qv2aqxxxyyn748z57dpr596rjvkqdffpnsddh"))))
6403 (url (string-append "svn://www.tug.org/texlive/tags/"
6404 %texlive-tag "/Master/texmf-dist/"
6405 "/fonts/type1/public/xypic"))
6406 (revision %texlive-revision)))
6407 (file-name (string-append name "-type1-" version "-checkout"))
6410 "1bln89wib7g3hcv2jny3qi6jb73k9d2vbgx3wnnjwp3ryg0846if"))))
6415 (url (string-append "svn://www.tug.org/texlive/tags/"
6416 %texlive-tag "/Master/texmf-dist/"
6417 "/fonts/enc/dvips/xypic"))
6418 (revision %texlive-revision)))
6419 (file-name (string-append name "-enc-" version "-checkout"))
6422 "0yi8vms3203l3p5slnhrrlzzp0f0jw77fkcvcaicrz2vmw9z99x7"))))))
6423 (home-page "https://www.ctan.org/pkg/xypic")
6424 (synopsis "Fonts for XY-pic")
6425 (description "This package provides the XY-pic fonts.")
6426 (license license:gpl3+)))
6428 (define-public texlive-bibtex
6430 (name "texlive-bibtex")
6431 (version (number->string %texlive-revision))
6436 (url (string-append "svn://www.tug.org/texlive/tags/"
6437 %texlive-tag "/Master/texmf-dist/"
6439 (revision %texlive-revision)))
6440 (file-name (string-append name "-" version "-checkout"))
6443 "0hnbs0s1znbn32hfcsyijl39z81sdb00jf092a4blqz421qs2mbv"))))
6444 (build-system trivial-build-system)
6446 `(#:modules ((guix build utils))
6449 (use-modules (guix build utils))
6450 (let ((target (string-append (assoc-ref %outputs "out")
6451 "/share/texmf-dist/bibtex")))
6453 (copy-recursively (assoc-ref %build-inputs "source") target)
6455 (home-page "https://www.ctan.org/pkg/bibtex")
6456 (synopsis "Process bibliographies for LaTeX")
6458 "BibTeX allows the user to store his citation data in generic form, while
6459 printing citations in a document in the form specified by a BibTeX style, to
6460 be specified in the document itself (one often needs a LaTeX citation-style
6461 package, such as @command{natbib} as well).")
6462 (license license:knuth)))
6464 (define-public texlive-fonts-charter
6466 (name "texlive-fonts-charter")
6467 (version (number->string %texlive-revision))
6471 (url (string-append "svn://www.tug.org/texlive/tags/"
6472 %texlive-tag "/Master/texmf-dist/"
6473 "/fonts/type1/bitstrea/charter"))
6474 (revision %texlive-revision)))
6475 (file-name (string-append name "-" version "-checkout"))
6478 "0yvib45xxff3jm5270zij4q888pivbc18cqs7lz4pqfhn1am4wnv"))))
6479 (build-system trivial-build-system)
6481 `(#:modules ((guix build utils)
6485 (use-modules (guix build utils)
6487 (let ((root (string-append (assoc-ref %outputs "out")
6488 "/share/texmf-dist/"))
6489 (pkgs '(("source" . "fonts/type1/bitstrea/charter")
6490 ("charter-afm" . "fonts/afm/bitstrea/charter")
6491 ("charter-tfm" . "fonts/tfm/bitstrea/charter"))))
6492 (for-each (match-lambda
6494 (let ((target (string-append root dir)))
6496 (copy-recursively (assoc-ref %build-inputs pkg)
6505 (url (string-append "svn://www.tug.org/texlive/tags/"
6506 %texlive-tag "/Master/texmf-dist/"
6507 "/fonts/afm/bitstrea/charter"))
6508 (revision %texlive-revision)))
6509 (file-name (string-append name "-afm-" version "-checkout"))
6512 "02nbkqrlr3vypnzslmr7dxg1353mmc0rl4ynx0s6qbvf313fq76a"))))
6517 (url (string-append "svn://www.tug.org/texlive/tags/"
6518 %texlive-tag "/Master/texmf-dist/"
6519 "/fonts/tfm/bitstrea/charter"))
6520 (revision %texlive-revision)))
6521 (file-name (string-append name "-tfm-" version "-checkout"))
6524 "0j7ci9vprivbhac70aq0z7m23hqcpx1g0i3wp1k0h8ilhimj80xk"))))))
6525 (home-page "https://www.ctan.org/pkg/charter")
6526 (synopsis "Charter fonts for TeX")
6527 (description "A commercial text font donated for the common good. Support
6528 for use with LaTeX is available in @code{freenfss}, part of
6529 @command{psnfss}. ")
6530 (license (license:non-copyleft (string-append "http://mirrors.ctan.org/"
6531 "fonts/charter/readme.charter")))))
6533 (define-public texlive-context-base
6535 (name "texlive-context-base")
6536 (version (number->string %texlive-revision))
6540 (url (string-append "svn://www.tug.org/texlive/tags/"
6541 %texlive-tag "/Master/texmf-dist/"
6542 "/tex/context/base"))
6543 (revision %texlive-revision)))
6544 (file-name (string-append name "-" version "-checkout"))
6547 "0rlx4qqijms1n64gjx475kvip8l322fh7v17zkmwp1l1g0w3vlyz"))))
6548 (build-system trivial-build-system)
6550 `(#:modules ((guix build utils))
6553 (use-modules (guix build utils))
6554 (let ((target (string-append (assoc-ref %outputs "out")
6555 "/share/texmf-dist/tex/context/case")))
6557 (copy-recursively (assoc-ref %build-inputs "source") target)
6559 (home-page "https://www.ctan.org/pkg/context")
6560 (synopsis "Full featured, parameter driven macro package for TeX")
6561 (description "A full featured, parameter driven macro package, which fully
6562 supports advanced interactive documents. See the ConTeXt garden for a wealth
6563 of support information.")
6564 (license license:gpl2+)))
6566 (define-public texlive-latex-beamer
6568 (name "texlive-latex-beamer")
6569 (version (number->string %texlive-revision))
6573 (url (string-append "svn://www.tug.org/texlive/tags/"
6574 %texlive-tag "/Master/texmf-dist/"
6575 "/tex/latex/beamer"))
6576 (revision %texlive-revision)))
6577 (file-name (string-append name "-" version "-checkout"))
6580 "09y3qwbj0nckshvg9afgwcv9v3zdif1d7bnpzrggsa1fbr80mgk2"))))
6581 (build-system trivial-build-system)
6582 (outputs '("out" "doc"))
6584 `(#:modules ((guix build utils))
6587 (use-modules (guix build utils))
6588 (let ((target (string-append (assoc-ref %outputs "out")
6589 "/share/texmf-dist/tex/latex/beamer"))
6590 (docs (string-append (assoc-ref %outputs "doc")
6591 "/share/texmf-dist/doc/latex/beamer/")))
6593 (copy-recursively (assoc-ref %build-inputs "source") target)
6596 (copy-recursively (assoc-ref %build-inputs "docs") docs)
6599 `(("texlive-latex-hyperref" ,texlive-latex-hyperref)
6600 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
6601 ("texlive-latex-etoolbox" ,texlive-latex-etoolbox)
6602 ("texlive-latex-pgf" ,texlive-latex-pgf)))
6608 (url (string-append "svn://www.tug.org/texlive/tags/"
6609 %texlive-tag "/Master/texmf-dist/"
6610 "/doc/latex/beamer"))
6611 (revision %texlive-revision)))
6612 (file-name (string-append name "-" version "-checkout"))
6615 "102b18b9nw9dicqqgjwx0srh1mav8vh9wdvwayn741niza9hac23"))))))
6616 (home-page "https://www.ctan.org/pkg/beamer")
6617 (synopsis "LaTeX class for producing presentations and slides")
6618 (description "The beamer LaTeX class can be used for producing slides.
6619 The class works in both PostScript and direct PDF output modes, using the
6620 @code{pgf} graphics system for visual effects. Content is created in the
6621 @code{frame} environment, and each frame can be made up of a number of slides
6622 using a simple notation for specifying material to appear on each slide within
6623 a frame. Short versions of title, authors, institute can also be specified as
6624 optional parameters. Whole frame graphics are supported by plain frames. The
6625 class supports @code{figure} and @code{table} environments, transparency
6626 effects, varying slide transitions and animations.")
6627 ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is
6628 ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+.
6629 (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+))))
6631 (define-public texlive-latex-xmpincl
6633 (name "texlive-latex-xmpincl")
6634 (version (number->string %texlive-revision))
6638 (uri (texlive-ref "latex" "xmpincl"))
6641 "0lq3dfb4fsw955gjwllnk7cg00ciq5mva64mlpbva6g2jz117734"))))
6642 (build-system texlive-build-system)
6643 (arguments '(#:tex-directory "latex/xmpincl"))
6644 (home-page "http://www.ctan.org/pkg/xmpincl")
6645 (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX")
6647 "The XMP (eXtensible Metadata platform) is a framework to add metadata to
6648 digital material to enhance the workflow in publication. The essence is that
6649 the metadata is stored in an XML file, and this XML stream is then embedded in
6650 the file to which it applies.")
6651 (license license:gpl3+)))
6653 (define-public texlive-latex-pdfx
6655 (name "texlive-latex-pdfx")
6656 (version (number->string %texlive-revision))
6660 (uri (texlive-ref "latex" "pdfx"))
6663 "0ikxg8yzq78hy5b9x13d4nah46d0yvmwlqmdri06pygbx116dcac"))))
6664 (build-system texlive-build-system)
6666 '(#:tex-directory "latex/pdfx"
6668 (modify-phases %standard-phases
6669 (add-after 'unpack 'fix-encoding
6671 (substitute* "pdfx.dtx"
6672 ((" .+umaczy") "umaczy"))
6674 (add-before 'install 'install-tex-files
6675 (lambda* (#:key inputs outputs #:allow-other-keys)
6676 (let ((target (string-append (assoc-ref outputs "out")
6677 "/share/texmf-dist/tex/latex/pdfx")))
6679 (copy-recursively (assoc-ref inputs "texlive-tex-pdfx") target)
6680 ;; Install the generated version in the "install" phase.
6681 (delete-file (string-append target "/pdfx.sty"))
6684 `(("texlive-generic-pdftex" ,texlive-generic-pdftex)))
6686 `(("texlive-tex-pdfx"
6690 (url (string-append "svn://www.tug.org/texlive/tags/"
6691 %texlive-tag "/Master/texmf-dist/"
6693 (revision %texlive-revision)))
6694 (file-name (string-append "texlive-tex-latex-pdfx-" version "-checkout"))
6697 "14j1zsvqc59ims3sk34v6km8db6cimks28y5fcxcr5mi2ykvj4vf"))))))
6698 (home-page "https://www.ctan.org/pkg/pdfx")
6699 (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX")
6701 "This package helps LaTeX users to create PDF/X, PFD/A and other
6702 standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.")
6703 (license license:lppl1.2+)))