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 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 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 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 gtk)
53 #:use-module (gnu packages icu4c)
54 #:use-module (gnu packages image)
55 #:use-module (gnu packages libreoffice)
56 #:use-module (gnu packages lua)
57 #:use-module (gnu packages multiprecision)
58 #:use-module (gnu packages pdf)
59 #:use-module (gnu packages perl)
60 #:use-module (gnu packages perl-check)
61 #:use-module (gnu packages pkg-config)
62 #:use-module (gnu packages python)
63 #:use-module (gnu packages qt)
64 #:use-module (gnu packages ruby)
65 #:use-module (gnu packages shells)
66 #:use-module (gnu packages base)
67 #:use-module (gnu packages web)
68 #:use-module (gnu packages xml)
69 #:use-module (gnu packages xorg)
70 #:use-module (gnu packages xdisorg)
71 #:autoload (gnu packages texinfo) (texinfo)
72 #:use-module (ice-9 ftw)
73 #:use-module (ice-9 match)
74 #:use-module ((srfi srfi-1) #:hide (zip)))
76 (define texlive-extra-src
79 (uri "ftp://tug.org/historic/systems/texlive/2017/texlive-20170524-extra.tar.xz")
81 "0zvd2zskk78ig114mfj24g15qys41hzqv59fmqpirdbgq9c9gr5g"))))
83 (define texlive-texmf-src
86 (uri "ftp://tug.org/historic/systems/texlive/2017/texlive-20170524-texmf.tar.xz")
88 "1v69y3kgkbk24f7s4dfkknwd317mqmck5jgpyb35wqgqfy5p0qrz"))))
90 (define-public texlive-bin
97 (uri (string-append "ftp://tug.org/historic/systems/texlive/2017/"
98 "texlive-" version "-source.tar.xz"))
101 ;; This is required for compatibility with Poppler >= 0.58.
102 ;; See <http://tutex.tug.org/pipermail/tex-k/2017-September/002809.html>
103 ;; and <https://bugs.archlinux.org/task/55720> for some discussion.
106 (uri (string-append "https://git.archlinux.org/svntogit/packages.git/plain"
107 "/trunk/texlive-poppler-0.59.patch?h=packages/texlive-bin"
108 "&id=ba2de374e2b21ecc4b85cc9777f2f15c4d356c61"))
109 (file-name "texlive-poppler-compat.patch")
112 "1c4ikq4kxw48bi3i33bzpabrjvbk01fwjr2lz20gkc9kv8l0bg3n")))))
114 "1amjrxyasplv4alfwcxwnw4nrx7dz2ydmddkq16k6hg90i9njq81"))))
115 (build-system gnu-build-system)
117 `(("texlive-extra-src" ,texlive-extra-src)
119 ("fontconfig" ,fontconfig)
120 ("fontforge" ,fontforge)
121 ("freetype" ,freetype)
124 ("ghostscript" ,ghostscript)
125 ("graphite2" ,graphite2)
126 ("harfbuzz" ,harfbuzz)
128 ("libpaper" ,libpaper)
137 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
142 ("zziplib" ,zziplib)))
144 `(("pkg-config" ,pkg-config)))
146 `(#:out-of-source? #t
148 `("--disable-native-texlive-build"
149 ;; XXX: This is needed because recent Poppler requires C++11 or later.
150 ;; Remove after switch to GCC >= 6.
151 "CXXFLAGS=-std=gnu++11"
152 "--with-system-cairo"
153 "--with-system-freetype2"
156 "--with-system-graphite2"
157 "--with-system-harfbuzz"
159 "--with-system-libgs"
160 "--with-system-libpaper"
161 "--with-system-libpng"
163 "--with-system-pixman"
164 "--with-system-poppler"
165 "--with-system-potrace"
166 "--with-system-teckit"
169 "--with-system-zziplib")
171 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
172 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
173 #:tests? ,(let ((s (or (%current-target-system)
175 (not (or (string-prefix? "aarch64" s)
176 (string-prefix? "mips64" s))))
178 (modify-phases %standard-phases
179 (add-after 'unpack 'configure-ghostscript-executable
180 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
181 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
182 ;; checking for the existence of the /usr/bin directory. Since
183 ;; GuixSD does not have /usr/bin, it is also detected as Windows.
184 (lambda* (#:key inputs #:allow-other-keys)
185 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
187 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
189 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
191 (add-after 'install 'postint
192 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
193 (let* ((out (assoc-ref outputs "out"))
194 (share (string-append out "/share"))
195 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
196 (unpack (assoc-ref %standard-phases 'unpack))
197 (patch-source-shebangs
198 (assoc-ref %standard-phases 'patch-source-shebangs)))
199 ;; Create symbolic links for the latex variants and their
201 (with-directory-excursion (string-append out "/bin/")
203 '("pdftex" "pdftex" "xetex" "luatex")
204 '("latex" "pdflatex" "xelatex" "lualatex")))
205 (with-directory-excursion (string-append share "/man/man1/")
206 (symlink "luatex.1" "lualatex.1"))
207 ;; Unpack texlive-extra and install tlpkg.
208 (mkdir "texlive-extra")
209 (with-directory-excursion "texlive-extra"
210 (apply unpack (list #:source texlive-extra))
211 (apply patch-source-shebangs (list #:source texlive-extra))
212 (invoke "mv" "tlpkg" share))
213 ;; texlua shebangs are not patched by the patch-source-shebangs
214 ;; phase because the texlua executable does not exist at that
216 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
217 (with-directory-excursion out
218 (patch-source-shebangs))))))))
219 (synopsis "TeX Live, a package of the TeX typesetting system")
221 "TeX Live provides a comprehensive TeX document production system.
222 It includes all the major TeX-related programs, macro packages, and fonts
223 that are free software, including support for many languages around the
226 This package contains the binaries.")
227 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
228 (home-page "https://www.tug.org/texlive/")))
230 (define-public texlive-dvips
232 (name "texlive-dvips")
233 (version (number->string %texlive-revision))
237 (url (string-append "svn://www.tug.org/texlive/tags/"
238 %texlive-tag "/Master/texmf-dist/"
240 (revision %texlive-revision)))
241 (file-name (string-append name "-" version "-checkout"))
244 "0fcy2hpapbj01ncpjj3v39yhr0jjxb6rm13qaxjjw66s3vydxls1"))))
245 (build-system trivial-build-system)
247 `(#:modules ((guix build utils))
250 (use-modules (guix build utils))
251 (let* ((root (string-append (assoc-ref %outputs "out")
252 "/share/texmf-dist"))
253 (dvips (string-append root "/dvips"))
254 (maps (string-append root "/fonts/map/dvips/tetex"))
255 (encs (string-append root "/fonts/enc/dvips/base")))
257 (copy-recursively (assoc-ref %build-inputs "source") dvips)
259 (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps)
261 (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs)
268 (url (string-append "svn://www.tug.org/texlive/tags/"
269 %texlive-tag "/Master/texmf-dist/"
270 "/fonts/map/dvips/tetex"))
271 (revision %texlive-revision)))
272 (file-name (string-append "dvips-font-maps-" version "-checkout"))
275 "100208pg7q6lj7swiq9p9287nn6b64bl62bnlaxpjni9y2kdrqy5"))))
280 (url (string-append "svn://www.tug.org/texlive/tags/"
281 %texlive-tag "/Master/texmf-dist/"
282 "/fonts/enc/dvips/base"))
283 (revision %texlive-revision)))
284 (file-name (string-append "dvips-base-enc-" version "-checkout"))
287 "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy"))))))
288 (home-page "https://www.ctan.org/pkg/dvips")
289 (synopsis "DVI to PostScript drivers")
290 (description "This package provides files needed for converting DVI files
292 ;; Various free software licenses apply to individual files.
293 (license (list license:lppl1.3c+
297 (define-public texlive-generic-unicode-data
299 (name "texlive-generic-unicode-data")
300 (version (number->string %texlive-revision))
304 (url (string-append "svn://www.tug.org/texlive/tags/"
305 %texlive-tag "/Master/texmf-dist/"
306 "/tex/generic/unicode-data"))
307 (revision %texlive-revision)))
308 (file-name (string-append name "-" version "-checkout"))
311 "0ivrhp6jz31pl4z841g4ws41lmvdiwz4sslmhf02inlib79gz6r2"))))
312 (build-system trivial-build-system)
314 `(#:modules ((guix build utils))
317 (use-modules (guix build utils))
318 (let ((target (string-append (assoc-ref %outputs "out")
319 "/share/texmf-dist/tex/generic/unicode-data")))
321 (copy-recursively (assoc-ref %build-inputs "source") target)
323 (home-page "https://www.ctan.org/pkg/unicode-data")
324 (synopsis "Unicode data and loaders for TeX")
325 (description "This bundle provides generic access to Unicode Consortium
326 data for TeX use. It contains a set of text files provided by the Unicode
327 Consortium which are currently all from Unicode 8.0.0, with the exception of
328 @code{MathClass.txt} which is not currently part of the Unicode Character
329 Database. Accompanying these source data are generic TeX loader files
330 allowing this data to be used as part of TeX runs, in particular in building
331 format files. Currently there are two loader files: one for general character
332 set up and one for initializing XeTeX character classes as has been carried
333 out to date by @code{unicode-letters.tex}. ")
334 (license license:lppl1.3c+)))
336 (define-public texlive-generic-dehyph-exptl
338 (name "texlive-generic-dehyph-exptl")
339 (version (number->string %texlive-revision))
343 (url (string-append "svn://www.tug.org/texlive/tags/"
344 %texlive-tag "/Master/texmf-dist/"
345 "/tex/generic/dehyph-exptl"))
346 (revision %texlive-revision)))
347 (file-name (string-append name "-" version "-checkout"))
350 "1l9wgv99qq0ysvlxqpj4g8bl0dywbzra4g8m2kmpg2fb0i0hczap"))))
351 (build-system trivial-build-system)
353 `(#:modules ((guix build utils))
356 (use-modules (guix build utils))
357 (let ((target (string-append (assoc-ref %outputs "out")
358 "/share/texmf-dist/tex/generic/dehyph-exptl")))
360 (copy-recursively (assoc-ref %build-inputs "source") target)
362 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
363 (synopsis "Hyphenation patterns for German")
364 (description "The package provides experimental hyphenation patterns for
365 the German language, covering both traditional and reformed orthography. The
366 patterns can be used with packages Babel and hyphsubst from the Oberdiek
368 ;; Hyphenation patterns are under the Expat license; documentation is
370 (license (list license:expat license:lppl))))
372 (define-public texlive-generic-tex-ini-files
374 (name "texlive-generic-tex-ini-files")
375 (version (number->string %texlive-revision))
379 (url (string-append "svn://www.tug.org/texlive/tags/"
380 %texlive-tag "/Master/texmf-dist/"
381 "/tex/generic/tex-ini-files"))
382 (revision %texlive-revision)))
383 (file-name (string-append name "-" version "-checkout"))
386 "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5"))))
387 (build-system trivial-build-system)
389 `(#:modules ((guix build utils))
392 (use-modules (guix build utils))
393 (let ((target (string-append (assoc-ref %outputs "out")
394 "/share/texmf-dist/tex/generic/tex-ini-files")))
396 (copy-recursively (assoc-ref %build-inputs "source") target)
398 (home-page "https://www.ctan.org/pkg/tex-ini-files")
399 (synopsis "Files for creating TeX formats")
400 (description "This bundle provides a collection of model \".ini\" files
401 for creating TeX formats. These files are commonly used to introduced
402 distribution-dependent variations in formats. They are also used to
403 allow existing format source files to be used with newer engines, for example
404 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
405 (license license:public-domain)))
407 (define-public texlive-generic-hyph-utf8
409 (name "texlive-generic-hyph-utf8")
410 (version (number->string %texlive-revision))
414 (url (string-append "svn://www.tug.org/texlive/tags/"
415 %texlive-tag "/Master/texmf-dist/"
416 "/tex/generic/hyph-utf8"))
417 (revision %texlive-revision)))
418 (file-name (string-append name "-" version "-checkout"))
421 "0ghizcz7ps16dzfqf66wwg5i181assc6qsm0g7g5dbmp909931vi"))))
422 (build-system trivial-build-system)
424 `(#:modules ((guix build utils))
427 (use-modules (guix build utils))
428 (let ((target (string-append (assoc-ref %outputs "out")
429 "/share/texmf-dist/tex/generic/hyph-utf8")))
431 (copy-recursively (assoc-ref %build-inputs "source") target)
433 (home-page "https://ctan.org/pkg/hyph-utf8")
434 (synopsis "Hyphenation patterns expressed in UTF-8")
435 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
436 hyphenation patterns in UTF-8 format, whereas older systems require
437 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
438 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
439 etc). The present package offers a collection of conversions of existing
440 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
441 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
442 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
443 converters, will completely supplant the older patterns.")
444 ;; Individual files each have their own license. Most of these files are
445 ;; independent hyphenation patterns.
446 (license (list license:lppl1.0+
461 license:public-domain
464 (define-public texlive-metafont-base
466 (name "texlive-metafont-base")
467 (version (number->string %texlive-revision))
471 (url (string-append "svn://www.tug.org/texlive/tags/"
472 %texlive-tag "/Master/texmf-dist/"
474 (revision %texlive-revision)))
475 (file-name (string-append name "-" version "-checkout"))
478 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
479 (build-system gnu-build-system)
481 `(#:tests? #f ; no test target
483 (modify-phases %standard-phases
486 (lambda* (#:key inputs #:allow-other-keys)
487 (let ((cwd (getcwd)))
489 (string-append cwd "/base:"
496 (with-directory-excursion "build"
497 (invoke "inimf" "mf.mf"))))
499 (lambda* (#:key outputs #:allow-other-keys)
500 (let* ((out (assoc-ref outputs "out"))
501 (base (string-append out "/share/texmf-dist/web2c"))
502 (mf (string-append out "/share/texmf-dist/metafont/base")))
505 (install-file "build/mf.base" base)
506 (copy-recursively "base" mf)
509 `(("texlive-bin" ,texlive-bin)))
510 (home-page "https://www.ctan.org/pkg/metafont")
511 (synopsis "Metafont base files")
512 (description "This package provides the Metafont base files needed to
513 build fonts using the Metafont system.")
514 (license license:knuth)))
516 (define-public texlive-fontname
518 (name "texlive-fontname")
519 (version (number->string %texlive-revision))
523 (url (string-append "svn://www.tug.org/texlive/tags/"
524 %texlive-tag "/Master/texmf-dist/"
525 "/fonts/map/fontname"))
526 (revision %texlive-revision)))
527 (file-name (string-append name "-" version "-checkout"))
530 "0cssbzcx15221dynp5sii72qh4l18mwkr14n8w1xb19j8pbaqasz"))))
531 (build-system trivial-build-system)
533 `(#:modules ((guix build utils))
536 (use-modules (guix build utils))
537 (let ((target (string-append (assoc-ref %outputs "out")
538 "/share/texmf-dist/fonts/map/fontname")))
540 (copy-recursively (assoc-ref %build-inputs "source") target)
542 (home-page "https://www.ctan.org/pkg/fontname")
543 (synopsis "Scheme for naming fonts in TeX")
544 (description "This is Fontname, a naming scheme for (the base part of)
545 external TeX font filenames. This makes at most eight-character names
546 from (almost) arbitrarily complex font names, thus helping portability of TeX
548 (license license:public-domain)))
550 (define-public texlive-fonts-cm
552 (name "texlive-fonts-cm")
553 (version (number->string %texlive-revision))
557 (url (string-append "svn://www.tug.org/texlive/tags/"
558 %texlive-tag "/Master/texmf-dist/"
559 "/fonts/source/public/cm"))
560 (revision %texlive-revision)))
561 (file-name (string-append name "-" version "-checkout"))
564 "045k5b9rdmbxpy1a3006l1x96z1rd18vg3cwrvnld9bqybw5qz44"))))
565 (build-system gnu-build-system)
567 `(#:modules ((guix build gnu-build-system)
571 #:tests? #f ; no tests
573 (modify-phases %standard-phases
576 (lambda* (#:key inputs #:allow-other-keys)
577 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
578 ;; Tell mf where to find mf.base
579 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
580 ;; Tell mf where to look for source files
582 (string-append (getcwd) ":"
583 mf "/share/texmf-dist/metafont/base")))
585 (for-each (lambda (font)
586 (format #t "building font ~a\n" font)
587 (invoke "mf" "-progname=mf"
588 "-output-directory=build"
594 (basename font ".mf"))))
595 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))
598 (lambda* (#:key outputs #:allow-other-keys)
599 (let* ((out (assoc-ref outputs "out"))
601 out "/share/texmf-dist/fonts/tfm/public/cm"))
603 out "/share/texmf-dist/fonts/source/public/cm")))
604 (for-each (cut install-file <> tfm)
605 (find-files "build" "\\.*"))
606 (for-each (cut install-file <> mf)
607 (find-files "." "\\.mf"))
610 `(("texlive-bin" ,texlive-bin)
611 ("texlive-metafont-base" ,texlive-metafont-base)))
612 (home-page "https://www.ctan.org/pkg/cm")
613 (synopsis "Computer Modern fonts for TeX")
614 (description "This package provides the Computer Modern fonts by Donald
615 Knuth. The Computer Modern font family is a large collection of text,
616 display, and mathematical fonts in a range of styles, based on Monotype Modern
618 (license license:knuth)))
620 (define-public texlive-fonts-knuth-lib
622 (name "texlive-fonts-knuth-lib")
623 (version (number->string %texlive-revision))
627 (url (string-append "svn://www.tug.org/texlive/tags/"
628 %texlive-tag "/Master/texmf-dist/"
629 "/fonts/source/public/knuth-lib"))
630 (revision %texlive-revision)))
631 (file-name (string-append name "-" version "-checkout"))
634 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
635 (build-system gnu-build-system)
637 `(#:modules ((guix build gnu-build-system)
640 #:tests? #f ; no tests
642 (modify-phases %standard-phases
645 (lambda* (#:key inputs #:allow-other-keys)
646 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
647 ;; Tell mf where to find mf.base
649 (string-append mf "/share/texmf-dist/web2c"))
650 ;; Tell mf where to look for source files
652 (string-append (getcwd) ":"
653 mf "/share/texmf-dist/metafont/base")))
655 (invoke "mf" "-progname=mf"
656 "-output-directory=build"
663 (lambda* (#:key outputs #:allow-other-keys)
664 (let* ((out (assoc-ref outputs "out"))
666 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
668 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
669 (for-each (cut install-file <> tfm)
670 (find-files "build" "\\.*"))
671 (for-each (cut install-file <> mf)
672 (find-files "." "\\.mf"))
675 `(("texlive-bin" ,texlive-bin)
676 ("texlive-metafont-base" ,texlive-metafont-base)))
677 (home-page "https://www.ctan.org/pkg/knuth-lib")
678 (synopsis "Small library of METAFONT sources")
679 (description "This is a collection of core TeX and METAFONT macro files
680 from Donald Knuth, including the plain format, plain base, and the MF logo
682 (license license:knuth)))
684 (define-public texlive-fonts-latex
686 (name "texlive-fonts-latex")
687 (version (number->string %texlive-revision))
691 (url (string-append "svn://www.tug.org/texlive/tags/"
692 %texlive-tag "/Master/texmf-dist/"
693 "/fonts/source/public/latex-fonts"))
694 (revision %texlive-revision)))
695 (file-name (string-append name "-" version "-checkout"))
698 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
699 (build-system gnu-build-system)
701 `(#:modules ((guix build gnu-build-system)
705 #:tests? #f ; no tests
707 (modify-phases %standard-phases
710 (lambda* (#:key inputs #:allow-other-keys)
711 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
712 ;; Tell mf where to find mf.base
713 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
714 ;; Tell mf where to look for source files
716 (string-append (getcwd) ":"
717 mf "/share/texmf-dist/metafont/base:"
718 (assoc-ref inputs "texlive-fonts-cm")
719 "/share/texmf-dist/fonts/source/public/cm")))
721 (for-each (lambda (font)
722 (format #t "building font ~a\n" font)
723 (invoke "mf" "-progname=mf"
724 "-output-directory=build"
730 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
731 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
732 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
733 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
737 (lambda* (#:key outputs #:allow-other-keys)
738 (let* ((out (assoc-ref outputs "out"))
740 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
742 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
743 (for-each (cut install-file <> tfm)
744 (find-files "build" "\\.*"))
745 (for-each (cut install-file <> mf)
746 (find-files "." "\\.mf"))
749 `(("texlive-bin" ,texlive-bin)
750 ("texlive-metafont-base" ,texlive-metafont-base)
751 ("texlive-fonts-cm" ,texlive-fonts-cm)))
752 (home-page "https://www.ctan.org/pkg/latex-fonts")
753 (synopsis "Collection of fonts used in LaTeX distributions")
754 (description "This is a collection of fonts for use with standard LaTeX
755 packages and classes. It includes invisible fonts (for use with the slides
756 class), line and circle fonts (for use in the picture environment) and LaTeX
758 (license license:lppl1.2+)))
760 (define-public texlive-fonts-amsfonts
762 (name "texlive-fonts-amsfonts")
763 (version (number->string %texlive-revision))
767 (url (string-append "svn://www.tug.org/texlive/tags/"
768 %texlive-tag "/Master/texmf-dist/"
769 "/fonts/source/public/amsfonts"))
770 (revision %texlive-revision)))
771 (file-name (string-append name "-" version "-checkout"))
774 "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
775 (build-system gnu-build-system)
777 `(#:modules ((guix build gnu-build-system)
781 #:tests? #f ; no tests
783 (modify-phases %standard-phases
786 (lambda* (#:key inputs #:allow-other-keys)
787 (let ((mf (assoc-ref inputs "texlive-metafont-base"))
789 ;; Make METAFONT reproducible
790 (setenv "SOURCE_DATE_EPOCH" "1")
791 ;; Tell mf where to find mf.base
792 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
793 ;; Tell mf where to look for source files
795 (string-append cwd ":"
800 mf "/share/texmf-dist/metafont/base:"
801 (assoc-ref inputs "texlive-fonts-cm")
802 "/share/texmf-dist/fonts/source/public/cm")))
804 (for-each (lambda (font)
805 (format #t "building font ~a\n" (basename font ".mf"))
806 (with-directory-excursion (dirname font)
807 (invoke "mf" "-progname=mf"
808 "-output-directory=../build"
815 (basename font ".mf")))))
816 (find-files "." "[0-9]+\\.mf$"))
819 (lambda* (#:key outputs #:allow-other-keys)
820 (let* ((out (assoc-ref outputs "out"))
822 out "/share/texmf-dist/fonts/tfm/public/amsfonts"))
824 out "/share/texmf-dist/fonts/source/public/amsfonts")))
825 (for-each (cut install-file <> tfm)
826 (find-files "build" "\\.*"))
827 (for-each (cut install-file <> mf)
828 (find-files "." "\\.mf"))
831 `(("texlive-fonts-cm" ,texlive-fonts-cm)
832 ("texlive-metafont-base" ,texlive-metafont-base)
833 ("texlive-bin" ,texlive-bin)))
834 (home-page "https://www.ctan.org/pkg/amsfonts")
835 (synopsis "TeX fonts from the American Mathematical Society")
837 "This package provides an extended set of fonts for use in mathematics,
838 including: extra mathematical symbols; blackboard bold letters (uppercase
839 only); fraktur letters; subscript sizes of bold math italic and bold Greek
840 letters; subscript sizes of large symbols such as sum and product; added sizes
841 of the Computer Modern small caps font; cyrillic fonts (from the University of
842 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
843 files, and all except the Euler fonts are provided as Metafont source. The
844 distribution also includes the canonical Type 1 versions of the Computer
845 Modern family of fonts. The Euler fonts are supported by separate packages;
846 details can be found in the documentation.")
847 (license license:silofl1.1)))
849 (define-public texlive-latex-amsfonts
851 (name "texlive-latex-amsfonts")
852 (version (number->string %texlive-revision))
855 (uri (texlive-ref "latex" "amsfonts"))
856 (file-name (string-append name "-" version "-checkout"))
859 "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
860 (build-system texlive-build-system)
861 (arguments '(#:tex-directory "latex/amsfonts"))
863 `(("texlive-fonts-cm" ,texlive-fonts-cm)
864 ("texlive-metafont-base" ,texlive-metafont-base)))
865 (home-page "https://www.ctan.org/pkg/amsfonts")
866 (synopsis "TeX fonts from the American Mathematical Society")
868 "This package provides basic LaTeX support for the symbol fonts provides
869 by the amsfonts package. It provides @code{amsfonts.sty}, with names of
870 individual symbols defined in @code{amssymb.sty}.")
871 (license license:silofl1.1)))
873 ;; This provides etex.src which is needed to build various formats, including
874 ;; luatex.fmt and pdflatex.fmt
875 (define-public texlive-tex-plain
877 (name "texlive-tex-plain")
878 (version (number->string %texlive-revision))
882 (url (string-append "svn://www.tug.org/texlive/tags/"
883 %texlive-tag "/Master/texmf-dist/"
885 (revision %texlive-revision)))
886 (file-name (string-append name "-" version "-checkout"))
889 "0mjgl3gscn3ps29yjambz1j9fg81ynnncb96vpprwx4xsijhsns0"))))
890 (build-system trivial-build-system)
892 `(#:modules ((guix build utils))
895 (use-modules (guix build utils))
896 (let ((target (string-append (assoc-ref %outputs "out")
897 "/share/texmf-dist/tex/plain")))
899 (copy-recursively (assoc-ref %build-inputs "source") target)
901 (home-page "https://www.ctan.org/pkg/plain")
902 (synopsis "Plain TeX format and supporting files")
904 "Contains files used to build the Plain TeX format, as described in the
905 TeXbook, together with various supporting files (some also discussed in the
907 (license license:knuth)))
909 (define-public texlive-latex-base
915 (url (string-append "svn://www.tug.org/texlive/tags/"
916 %texlive-tag "/Master/texmf-dist/"
918 (revision %texlive-revision)))
919 (file-name (string-append "texlive-generic-"
921 (string-drop-right dir 1) #\/))
922 "-" (number->string %texlive-revision)
924 (sha256 (base32 hash))))))
926 (name "texlive-latex-base")
927 (version (number->string %texlive-revision))
930 (uri (texlive-ref "latex" "base"))
931 (file-name (string-append name "-" version "-checkout"))
934 "1h9pir2hz6i9avc4lrl733p3zf4rpkg8537x1zdbhs91hvhikw9k"))))
935 (build-system gnu-build-system)
937 `(#:modules ((guix build gnu-build-system)
942 #:tests? #f ; no tests
944 (modify-phases %standard-phases
947 (lambda* (#:key inputs #:allow-other-keys)
948 ;; Find required fonts
950 (string-append (assoc-ref inputs "texlive-fonts-cm")
951 "/share/texmf-dist/fonts/tfm/public/cm:"
952 (assoc-ref inputs "texlive-fonts-latex")
953 "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
954 (assoc-ref inputs "texlive-fonts-knuth-lib")
955 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
961 (append-map (match-lambda
965 (eq? 'directory (stat:type stat)))
971 ;; Create an empty texsys.cfg, because latex.ltx wants to include
972 ;; it. This file must exist and it's fine if it's empty.
973 (with-output-to-file "texsys.cfg"
974 (lambda _ (format #t "%")))
978 (invoke "luatex" "-ini" "-interaction=batchmode"
979 "-output-directory=build" "unpack.ins")
980 (invoke "tex" "-ini" "-interaction=batchmode"
981 "-output-directory=web2c" "tex.ini")
982 ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
983 ;; is enabled only in extended mode (activated with a
984 ;; leading asterisk). We should not use luatex here,
985 ;; because that would make the generated format files
986 ;; incompatible with any other TeX engine.
987 (for-each (lambda (format)
988 (invoke "latex" "-ini" "-interaction=batchmode"
989 "-output-directory=web2c"
990 "-translate-file=cp227.tcx"
991 (string-append "*" format ".ini")))
995 (for-each (lambda (format)
996 (invoke format "-ini" "-interaction=batchmode"
997 "-output-directory=web2c"
998 (string-append "*" format ".ini")))
1001 (for-each (lambda (format)
1002 (invoke "luatex" "-ini" "-interaction=batchmode"
1003 "-output-directory=web2c"
1004 (string-append format ".ini")))
1005 '("dviluatex" "dvilualatex" "luatex" "lualatex"))
1008 (lambda* (#:key inputs outputs #:allow-other-keys)
1009 (let* ((out (assoc-ref outputs "out"))
1010 (target (string-append
1011 out "/share/texmf-dist/tex/latex/base"))
1012 (web2c (string-append
1013 out "/share/texmf-dist/web2c"))
1014 (support-files (assoc-ref inputs "texlive-latex-base-support-files")))
1017 (for-each delete-file (find-files "." "\\.(log|aux)$"))
1018 (for-each (cut install-file <> target)
1019 (find-files "build" ".*"))
1020 (for-each (cut install-file <> web2c)
1021 (find-files "web2c" ".*"))
1022 ;; pdftex is really just the same as pdfetex, but since it
1023 ;; doesn't have its own format file, we need to copy it.
1024 (copy-file "web2c/pdfetex.fmt"
1025 (string-append web2c "/pdftex.fmt"))
1026 ;; "source" is missing the support files as per doc/latex/base/manifest.txt.
1027 ;; FIXME: We are probably not packaging this right.
1028 (for-each (lambda (file)
1030 (string-append support-files "/" file)
1032 '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex"
1033 "lablst.tex" "testpage.tex" "ltxcheck.tex"))
1036 `(("texlive-bin" ,texlive-bin)
1037 ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
1038 ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
1039 ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
1040 ("texlive-latex-latexconfig"
1041 ,(texlive-dir "tex/latex/latexconfig/"
1042 "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
1043 ("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)
1044 ("texlive-generic-hyphen"
1045 ,(texlive-dir "tex/generic/hyphen/"
1046 "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
1047 ("texlive-generic-ruhyphen"
1048 ,(texlive-dir "tex/generic/ruhyphen/"
1049 "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
1050 ("texlive-generic-ukrhyph"
1051 ,(texlive-dir "tex/generic/ukrhyph/"
1052 "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
1053 ("texlive-generic-config"
1054 ,(texlive-dir "tex/generic/config/"
1055 "19vj088p4kkp6xll0141m4kl6ssgdzhs3g10i232khb07aqiag8s"))
1056 ("texlive-latex-base-support-files"
1060 (url (string-append "svn://www.tug.org/texlive/tags/"
1061 %texlive-tag "/Master/texmf-dist/"
1063 (revision %texlive-revision)))
1064 (file-name (string-append name "-" version "-checkout"))
1067 "16bs9pi3nq407xhg59glklqv43v102cg3yim6k3zcri5d9nkbv3a"))))
1068 ("texlive-tex-plain" ,texlive-tex-plain)
1069 ("texlive-fonts-cm" ,texlive-fonts-cm)
1070 ("texlive-fonts-latex" ,texlive-fonts-latex)
1071 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
1072 (home-page "https://www.ctan.org/pkg/latex-base")
1073 (synopsis "Base sources of LaTeX")
1075 "This bundle comprises the source of LaTeX itself, together with several
1076 packages which are considered \"part of the kernel\". This bundle, together
1077 with the required packages, constitutes what every LaTeX distribution should
1079 (license license:lppl1.3c+))))
1081 (define-public texlive-latex-filecontents
1083 (name "texlive-latex-filecontents")
1084 (version (number->string %texlive-revision))
1087 (uri (texlive-ref "latex" "filecontents"))
1088 (file-name (string-append name "-" version "-checkout"))
1091 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
1092 (build-system texlive-build-system)
1093 (arguments '(#:tex-directory "latex/filecontents"))
1094 (home-page "https://www.ctan.org/pkg/filecontents")
1095 (synopsis "Extended filecontents and filecontents* environments")
1097 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
1098 enable a LaTeX source file to generate external files as it runs through
1099 LaTeX. However, there are two limitations of these environments: they refuse
1100 to overwrite existing files, and they can only be used in the preamble of a
1101 document. The filecontents package removes these limitations, letting you
1102 overwrite existing files and letting you use @code{filecontents} /
1103 @code{filecontents*} anywhere.")
1104 (license license:lppl1.3c+)))
1106 (define-public texlive-generic-ifxetex
1108 (name "texlive-generic-ifxetex")
1109 (version (number->string %texlive-revision))
1112 (uri (texlive-ref "generic" "ifxetex"))
1113 (file-name (string-append name "-" version "-checkout"))
1116 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
1117 (build-system texlive-build-system)
1119 '(#:tex-directory "generic/ifxetex"
1120 #:tex-format "xelatex"))
1122 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
1123 (home-page "https://www.ctan.org/pkg/ifxetex")
1124 (synopsis "Am I running under XeTeX?")
1126 "This is a simple package which provides an @code{\\ifxetex} conditional,
1127 so that other code can determine that it is running under XeTeX. The package
1128 requires the e-TeX extensions to the TeX primitive set.")
1129 (license license:lppl1.3c+)))
1131 (define-public texlive-generic-epsf
1133 (name "texlive-generic-epsf")
1134 (version (number->string %texlive-revision))
1138 (url (string-append "svn://www.tug.org/texlive/tags/"
1139 %texlive-tag "/Master/texmf-dist/"
1140 "/tex/generic/epsf"))
1141 (revision %texlive-revision)))
1142 (file-name (string-append name "-" version "-checkout"))
1145 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
1146 (build-system trivial-build-system)
1148 `(#:modules ((guix build utils))
1151 (use-modules (guix build utils))
1152 (let ((target (string-append (assoc-ref %outputs "out")
1153 "/share/texmf-dist/tex/generic/epfs")))
1155 (copy-recursively (assoc-ref %build-inputs "source") target)
1157 (home-page "https://www.ctan.org/pkg/epsf")
1158 (synopsis "Simple macros for EPS inclusion")
1160 "This package provides the original (and now obsolescent) graphics
1161 inclusion macros for use with dvips, still widely used by Plain TeX users (in
1162 particular). For LaTeX users, the package is nowadays (rather strongly)
1163 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
1164 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
1165 users, via its Plain TeX version.)")
1166 (license license:public-domain)))
1168 (define-public texlive-latex-fancyvrb
1170 (name "texlive-latex-fancyvrb")
1171 (version (number->string %texlive-revision))
1174 (uri (texlive-ref "latex" "fancyvrb"))
1175 (file-name (string-append name "-" version "-checkout"))
1178 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
1179 (build-system texlive-build-system)
1181 '(#:tex-directory "latex/fancyvrb"
1182 ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and
1183 ;; thus texlive-luatex-lualibs.
1184 #:build-targets '("fancyvrb.ins")))
1185 (home-page "https://www.ctan.org/pkg/fancyvrb")
1186 (synopsis "Sophisticated verbatim text")
1188 "This package provides tools for the flexible handling of verbatim text
1189 including: verbatim commands in footnotes; a variety of verbatim environments
1190 with many parameters; ability to define new customized verbatim environments;
1191 save and restore verbatim text and environments; write and read files in
1192 verbatim mode; build \"example\" environments (showing both result and
1194 (license license:lppl1.0+)))
1196 (define-public texlive-latex-graphics
1198 (name "texlive-latex-graphics")
1199 (version (number->string %texlive-revision))
1202 (uri (texlive-ref "latex" "graphics"))
1203 (file-name (string-append name "-" version "-checkout"))
1206 "07azyn0b1s49vbdlr6dmygrminxp72ndl24j1091hiiccvrjq3xc"))))
1207 (build-system texlive-build-system)
1209 '(#:tex-directory "latex/graphics"
1211 (modify-phases %standard-phases
1212 (add-after 'install 'install-config
1213 (lambda* (#:key inputs outputs #:allow-other-keys)
1214 (let ((cfg (assoc-ref inputs "graphics-cfg"))
1215 (target (string-append (assoc-ref outputs "out")
1216 "/share/texmf-dist/tex/latex/graphics-cfg")))
1218 (install-file (string-append cfg "/graphics.cfg") target)
1219 (install-file (string-append cfg "/color.cfg") target)
1221 (add-after 'install 'install-defs
1222 (lambda* (#:key inputs outputs #:allow-other-keys)
1223 (let ((def (assoc-ref inputs "graphics-def"))
1224 (target (string-append (assoc-ref outputs "out")
1225 "/share/texmf-dist/tex/latex/graphics-def")))
1227 (copy-recursively def target)
1234 (url "https://github.com/latex3/graphics-cfg.git")
1235 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
1236 (file-name (string-append "graphics-cfg-"
1237 (number->string %texlive-revision)
1241 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
1246 (url (string-append "svn://www.tug.org/texlive/tags/"
1247 %texlive-tag "/Master/texmf-dist/"
1248 "/tex/latex/graphics-def"))
1249 (revision %texlive-revision)))
1250 (file-name (string-append "graphics-def-"
1251 (number->string %texlive-revision)
1255 "0gi4qv6378nl84s8n1yx3hjqvv7r4lza7hpbymbl5rzwgw8qrnyb"))))))
1256 (home-page "https://www.ctan.org/pkg/latex-graphics")
1257 (synopsis "LaTeX standard graphics bundle")
1259 "This is a collection of LaTeX packages for producing color, including
1260 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
1261 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
1262 keyval, and lscape.")
1263 ;; The configuration files are released under CC0.
1264 (license (list license:lppl1.3c+
1267 (define-public texlive-latex-xcolor
1269 (name "texlive-latex-xcolor")
1270 (version (number->string %texlive-revision))
1273 (uri (texlive-ref "latex" "xcolor"))
1274 (file-name (string-append name "-" version "-checkout"))
1277 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
1278 (build-system texlive-build-system)
1279 (arguments '(#:tex-directory "latex/xcolor"))
1280 (home-page "https://www.ctan.org/pkg/xcolor")
1281 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
1283 "The package starts from the basic facilities of the colorcolor package,
1284 and provides easy driver-independent access to several kinds of color tints,
1285 shades, tones, and mixes of arbitrary colors. It allows a user to select a
1286 document-wide target color model and offers complete tools for conversion
1287 between eight color models. Additionally, there is a command for alternating
1288 row colors plus repeated non-aligned material (like horizontal lines) in
1290 (license license:lppl1.2+)))
1292 (define-public texlive-latex-hyperref
1294 (name "texlive-latex-hyperref")
1296 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
1297 ;; so we fetch the release from GitHub.
1300 (uri (string-append "https://github.com/ho-tex/hyperref/"
1301 "archive/release-" version ".tar.gz"))
1302 (file-name (string-append name "-" version ".tar.gz"))
1305 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
1306 (build-system texlive-build-system)
1307 (arguments '(#:tex-directory "latex/hyperref"))
1308 (home-page "https://www.ctan.org/pkg/hyperref")
1309 (synopsis "Extensive support for hypertext in LaTeX")
1311 "The @code{hyperref} package is used to handle cross-referencing commands
1312 in LaTeX to produce hypertext links in the document. The package provides
1313 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
1314 embedded @code{pdfmark} commands for processing by Acrobat
1315 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
1316 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
1317 pdf and HTML backends. The package is distributed with the @code{backref} and
1318 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
1319 (license license:lppl1.3+)))
1321 (define-public texlive-latex-oberdiek
1323 (name "texlive-latex-oberdiek")
1324 (version (number->string %texlive-revision))
1327 (uri (texlive-ref "latex" "oberdiek"))
1328 (file-name (string-append name "-" version "-checkout"))
1331 "0aswvsxgsn709xmvpcg50d2xl7vcy1ckdxb9c1cligqqfjjvviqf"))))
1332 (build-system texlive-build-system)
1334 '(#:tex-directory "latex/oberdiek"
1335 #:build-targets '("oberdiek.ins")
1337 (modify-phases %standard-phases
1338 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
1339 (add-after 'unpack 'do-not-process-ifpdf.ins
1341 (substitute* "oberdiek.ins"
1342 (("ifpdf.ins") "ifpdf.dtx"))
1344 (home-page "https://www.ctan.org/pkg/oberdiek")
1345 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
1347 "The bundle comprises various LaTeX packages, providing among others:
1348 better accessibility support for PDF files; extensible chemists reaction
1349 arrows; record information about document class(es) used; and many more.")
1350 (license license:lppl1.3+)))
1352 (define-public texlive-latex-tools
1354 (name "texlive-latex-tools")
1355 (version (number->string %texlive-revision))
1358 (uri (texlive-ref "latex" "tools"))
1359 (file-name (string-append name "-" version "-checkout"))
1362 "052a0pch2k5zls5jlay9xxcf93rw3i60a2x28y3ip3rhbsv3xgiz"))))
1363 (build-system texlive-build-system)
1365 '(#:tex-directory "latex/tools"
1366 #:build-targets '("tools.ins")))
1367 (home-page "https://www.ctan.org/pkg/latex-tools")
1368 (synopsis "LaTeX standard tools bundle")
1370 "This package is a collection of (variously) simple tools provided as
1371 part of the LaTeX required tools distribution, comprising the following
1372 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
1373 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
1374 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
1376 (license license:lppl1.3+)))
1378 (define-public texlive-latex-url
1380 (name "texlive-latex-url")
1381 (version (number->string %texlive-revision))
1385 (url (string-append "svn://www.tug.org/texlive/tags/"
1386 %texlive-tag "/Master/texmf-dist/"
1388 (revision %texlive-revision)))
1389 (file-name (string-append name "-" version "-checkout"))
1392 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
1393 (build-system trivial-build-system)
1395 `(#:modules ((guix build utils))
1398 (use-modules (guix build utils))
1399 (let ((target (string-append (assoc-ref %outputs "out")
1400 "/share/texmf-dist/tex/latex/url")))
1402 (copy-recursively (assoc-ref %build-inputs "source") target)
1404 (home-page "https://www.ctan.org/pkg/url")
1405 (synopsis "Verbatim with URL-sensitive line breaks")
1406 (description "The command @code{\\url} is a form of verbatim command that
1407 allows linebreaks at certain characters or combinations of characters, accepts
1408 reconfiguration, and can usually be used in the argument to another command.
1409 The command is intended for email addresses, hypertext links,
1410 directories/paths, etc., which normally have no spaces, so by default the
1411 package ignores spaces in its argument. However, a package option allows
1412 spaces, which is useful for operating systems where spaces are a common part
1414 ;; The license header states that it is under LPPL version 2 or later, but
1415 ;; the latest version is 1.3c.
1416 (license license:lppl1.3c+)))
1418 (define-public texlive-latex-l3kernel
1420 (name "texlive-latex-l3kernel")
1421 (version (number->string %texlive-revision))
1424 (uri (texlive-ref "latex" "l3kernel"))
1425 (file-name (string-append name "-" version "-checkout"))
1428 "0r0wfk594j8wkdqhh21haimwsfq8x5jch4ldm21hkzk5dnmvpbg6"))))
1429 (build-system texlive-build-system)
1431 '(#:tex-directory "latex/l3kernel"))
1432 (home-page "https://www.ctan.org/pkg/l3kernel")
1433 (synopsis "LaTeX3 programmers’ interface")
1435 "The l3kernel bundle provides an implementation of the LaTeX3
1436 programmers’ interface, as a set of packages that run under LaTeX 2e. The
1437 interface provides the foundation on which the LaTeX3 kernel and other future
1438 code are built: it is an API for TeX programmers. The packages are set up so
1439 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
1440 (license license:lppl1.3c+)))
1442 (define-public texlive-latex-l3packages
1444 (name "texlive-latex-l3packages")
1445 (version (number->string %texlive-revision))
1448 (uri (texlive-ref "latex" "l3packages"))
1449 (file-name (string-append name "-" version "-checkout"))
1452 "16jplkvzdysfssijq9l051nsks65c2nrarsl17k8gjhc28yznj8y"))))
1453 (build-system texlive-build-system)
1455 '(#:tex-directory "latex/l3packages"
1456 ;; build-targets must be specified manually since they are in
1458 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
1460 (modify-phases %standard-phases
1461 ;; All package sources are in sub-directories, so we need to add them
1463 (add-after 'unpack 'set-TEXINPUTS
1465 (let ((cwd (getcwd)))
1467 (string-append cwd "/l3keys2e:"
1472 ;; The terminating ":" is required to include the
1473 ;; l3kernel input as well.
1478 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1479 (home-page "https://www.ctan.org/pkg/l3packages")
1480 (synopsis "High-level LaTeX3 concepts")
1482 "This bundle holds prototype implementations of concepts for a LaTeX
1483 designer interface, to be used with the experimental LaTeX kernel as
1484 programming tools and kernel support. Packages provided in this release are:
1487 @item l3keys2e, which makes the facilities of the kernel module l3keys
1488 available for use by LaTeX 2e packages;
1489 @item xfrac, which provides flexible splitlevel fractions;
1490 @item xparse, which provides a high-level interface for declaring document
1492 @item xtemplate, which provides a means of defining generic functions using a
1495 (license license:lppl1.3c+)))
1497 (define-public texlive-latex-fontspec
1499 (name "texlive-latex-fontspec")
1500 (version (number->string %texlive-revision))
1503 (uri (texlive-ref "latex" "fontspec"))
1504 (file-name (string-append name "-" version "-checkout"))
1507 "1rx43y5xmjqvc27pjdnmqwp4pcw3czcfd6nfpmzc1gnqfl1hlc0q"))))
1508 (build-system texlive-build-system)
1510 '(#:tex-directory "latex/fontspec"
1511 #:build-targets '("fontspec.dtx")))
1513 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1514 (home-page "https://www.ctan.org/pkg/fontspec")
1515 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
1517 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
1518 automatic and unified interface to feature-rich AAT and OpenType fonts through
1519 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
1520 the l3kernel and xparse bundles from the LaTeX 3 development team.")
1521 (license license:lppl1.3+)))
1523 ;; The SVN directory contains little more than a dtx file that generates three
1524 ;; of the many lua files that should be installed as part of this package.
1525 ;; This is why we take the release from GitHub instead.
1526 (define-public texlive-luatex-lualibs
1528 (name "texlive-luatex-lualibs")
1532 (uri (string-append "https://github.com/lualatex/lualibs/"
1533 "releases/download/v"
1534 version "/lualibs.zip"))
1535 (file-name (string-append name "-" version ".zip"))
1538 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
1539 (build-system gnu-build-system)
1542 (list (string-append "DESTDIR="
1543 (assoc-ref %outputs "out")
1544 "/share/texmf-dist"))
1546 (modify-phases %standard-phases
1547 (delete 'configure))))
1549 `(("texlive-bin" ,texlive-bin)
1552 (home-page "https://github.com/lualatex/lualibs")
1553 (synopsis "Lua modules for general programming (in the (La)TeX world)")
1555 "Lualibs is a collection of Lua modules useful for general programming.
1556 The bundle is based on Lua modules shipped with ConTeXt, and made available in
1557 this bundle for use independent of ConTeXt.")
1558 ;; GPL version 2 only
1559 (license license:gpl2)))
1561 (define-public texlive-latex-amsmath
1563 (name "texlive-latex-amsmath")
1564 (version (number->string %texlive-revision))
1567 (uri (texlive-ref "latex" "amsmath"))
1568 (file-name (string-append name "-" version "-checkout"))
1571 "178ywjpdlv78qmfzqdyn6gy14620zjsn2q9wap76fbr9s4hw6dba"))))
1572 (build-system texlive-build-system)
1573 (arguments '(#:tex-directory "latex/amsmath"))
1574 (home-page "https://www.ctan.org/pkg/amsmath")
1575 (synopsis "AMS mathematical facilities for LaTeX")
1577 "This is the principal package in the AMS-LaTeX distribution. It adapts
1578 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
1579 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
1580 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
1581 symbols), @code{amsopnamsopn} (for operator names) and
1582 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
1583 This package is part of the LaTeX required distribution; however, several
1584 contributed packages add still further to its appeal; examples are
1585 @code{empheqempheq}, which provides functions for decorating and highlighting
1586 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
1588 (license license:lppl1.3c+)))
1590 (define-public texlive-latex-amscls
1592 (name "texlive-latex-amscls")
1593 (version (number->string %texlive-revision))
1596 (uri (texlive-ref "latex" "amscls"))
1597 (file-name (string-append name "-" version "-checkout"))
1600 "0jmcr37mcdi7drczppvr6lmz5d5yd9m67ii79gp2nglg1xpw934j"))))
1601 (build-system texlive-build-system)
1603 `(#:tex-directory "latex/amscls"))
1604 (home-page "https://www.ctan.org/pkg/amscls")
1605 (synopsis "AMS document classes for LaTeX")
1607 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
1608 articles for the AMS), @code{amsbookamsbook} (for books) and
1609 @code{amsprocamsproc} (for proceedings), together with some supporting
1610 material. The material is made available as part of the AMS-LaTeX
1612 (license license:lppl1.3c+)))
1614 (define-public texlive-latex-babel
1616 (name "texlive-latex-babel")
1617 (version (number->string %texlive-revision))
1620 (uri (texlive-ref "latex" "babel"))
1621 (file-name (string-append name "-" version "-checkout"))
1624 "1n3i5adsyy7jw0imnzrm2i8wkf73i3mjk9h3ic8cb9cd19i4r9r3"))))
1625 (build-system texlive-build-system)
1627 '(#:tex-directory "generic/babel"
1629 (modify-phases %standard-phases
1630 ;; This package tries to produce babel.aux twice but refuses to
1631 ;; overwrite the first one.
1632 (add-before 'build 'fix-ins
1634 (substitute* "babel.ins"
1635 (("askonceonly") "askforoverwritefalse"))
1637 (home-page "https://www.ctan.org/pkg/babel")
1638 (synopsis "Multilingual support for Plain TeX or LaTeX")
1640 "The package manages culturally-determined typographical (and other)
1641 rules, and hyphenation patterns for a wide range of languages. A document may
1642 select a single language to be supported, or it may select several, in which
1643 case the document may switch from one language to another in a variety of
1644 ways. Babel uses contributed configuration files that provide the detail of
1645 what has to be done for each language. Users of XeTeX are advised to use the
1646 polyglossia package rather than Babel.")
1647 (license license:lppl1.3+)))
1649 (define-public texlive-generic-babel-english
1651 (name "texlive-generic-babel-english")
1652 (version (number->string %texlive-revision))
1655 (uri (texlive-ref "generic" "babel-english"))
1656 (file-name (string-append name "-" version "-checkout"))
1659 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
1660 (build-system texlive-build-system)
1661 (arguments '(#:tex-directory "generic/babel-english"))
1662 (home-page "https://www.ctan.org/pkg/babel-english")
1663 (synopsis "Babel support for English")
1665 "This package provides the language definition file for support of
1666 English in @code{babel}. Care is taken to select British hyphenation patterns
1667 for British English and Australian text, and default (\"american\") patterns
1668 for Canadian and USA text.")
1669 (license license:lppl1.3+)))
1671 (define-public texlive-latex-cyrillic
1673 (name "texlive-latex-cyrillic")
1674 (version (number->string %texlive-revision))
1677 (uri (texlive-ref "latex" "cyrillic"))
1678 (file-name (string-append name "-" version "-checkout"))
1681 "1mdhl35hwas68ki56qqngzar37dwv4mm64l2canihr255bz34lbv"))))
1682 (build-system texlive-build-system)
1684 '(#:tex-directory "latex/cyrillic"))
1685 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
1686 (synopsis "Support for Cyrillic fonts in LaTeX")
1688 "This bundle of macros files provides macro support (including font
1689 encoding macros) for the use of Cyrillic characters in fonts encoded under the
1690 T2* and X2 encodings. These encodings cover (between them) pretty much every
1691 language that is written in a Cyrillic alphabet.")
1692 (license license:lppl1.3c+)))
1694 (define-public texlive-latex-psnfss
1696 (name "texlive-latex-psnfss")
1697 (version (number->string %texlive-revision))
1700 (uri (texlive-ref "latex" "psnfss"))
1701 (file-name (string-append name "-" version "-checkout"))
1704 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
1705 (build-system texlive-build-system)
1706 (arguments '(#:tex-directory "latex/psnfss"))
1707 (home-page "https://www.ctan.org/pkg/psnfss")
1708 (synopsis "Font support for common PostScript fonts")
1710 "The PSNFSS collection includes a set of files that provide a complete
1711 working setup of the LaTeX font selection scheme (NFSS2) for use with common
1712 PostScript fonts. It covers the so-called \"Base\" fonts (which are built
1713 into any Level 2 PostScript printing device and the Ghostscript interpreter)
1714 and a number of free fonts. It provides font definition files, macros and
1715 font metrics. The bundle as a whole is part of the LaTeX required set of
1717 (license license:lppl1.2+)))
1719 (define-public texlive-union
1720 (lambda* (#:optional (packages '()))
1721 "Return 'texlive-union' package which is a union of PACKAGES and the
1722 standard LaTeX packages."
1723 (let ((default-packages
1729 texlive-metafont-base
1731 ;; LaTeX packages from the "required" set.
1732 texlive-latex-amsmath
1733 texlive-latex-amscls
1735 texlive-generic-babel-english
1736 texlive-latex-cyrillic
1737 texlive-latex-graphics
1738 texlive-latex-psnfss
1739 texlive-latex-tools)))
1741 (name "texlive-union")
1742 (version (number->string %texlive-revision))
1744 (build-system trivial-build-system)
1746 '(#:modules ((guix build union)
1748 (guix build texlive-build-system)
1749 (guix build gnu-build-system)
1750 (guix build gremlin)
1754 (use-modules (ice-9 match)
1758 (guix build texlive-build-system))
1759 (let* ((out (assoc-ref %outputs "out"))
1760 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
1761 ;; Build a modifiable union of all inputs (but exclude bash)
1762 (match (filter (match-lambda
1764 (not (string=? "bash" name))))
1766 (((names . directories) ...)
1767 (union-build (assoc-ref %outputs "out")
1769 #:create-all-directories? #t
1770 #:log-port (%make-void-port "w"))))
1772 ;; The configuration file "texmf.cnf" is provided by the
1773 ;; "texlive-bin" package. We take it and override only the
1774 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
1775 ;; by default, though, so we still need to set TEXMFCNF.
1776 (substitute* texmf.cnf
1777 (("^TEXMFROOT = .*")
1778 (string-append "TEXMFROOT = " out "/share\n"))
1780 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
1781 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash")
1784 (cut wrap-program <>
1785 `("TEXMFCNF" ":" = (,(dirname texmf.cnf)))
1786 `("TEXMF" ":" = (,(string-append out "/share/texmf-dist"))))
1787 (find-files (string-append out "/bin") ".*"))
1791 ,@(map (lambda (package)
1792 (list (package-name package) package))
1793 (append default-packages packages))))
1794 (home-page (package-home-page texlive-bin))
1795 (synopsis "Union of TeX Live packages")
1796 (description "This package provides a subset of the TeX Live
1798 (license (fold (lambda (package result)
1799 (match (package-license package)
1801 (append lst result))
1802 ((? license:license? license)
1803 (cons license result))))
1805 (append default-packages packages)))))))
1807 (define-public texlive-tiny
1809 (inherit (texlive-union))
1810 (name "texlive-tiny")
1811 (description "This is a very limited subset of the TeX Live distribution.
1812 It includes little more than the required set of LaTeX packages.")))
1814 (define-public texlive-latex-amsrefs
1816 (name "texlive-latex-amsrefs")
1817 (version (number->string %texlive-revision))
1820 (uri (texlive-ref "latex" "amsrefs"))
1821 (file-name (string-append name "-" version "-checkout"))
1824 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
1825 (build-system texlive-build-system)
1826 (arguments '(#:tex-directory "latex/amsrefs"))
1827 (home-page "https://www.ctan.org/pkg/amsrefs")
1828 (synopsis "LaTeX-based replacement for BibTeX")
1830 "Amsrefs is a LaTeX package for bibliographies that provides an archival
1831 data format similar to the format of BibTeX database files, but adapted to
1832 make direct processing by LaTeX easier. The package can be used either in
1833 conjunction with BibTeX or as a replacement for BibTeX.")
1834 (license license:lppl1.3+)))
1836 (define-public texlive-latex-bigfoot
1838 (name "texlive-latex-bigfoot")
1839 (version (number->string %texlive-revision))
1842 (uri (texlive-ref "latex" "bigfoot"))
1843 (file-name (string-append name "-" version "-checkout"))
1846 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
1847 (build-system texlive-build-system)
1849 '(#:tex-directory "latex/bigfoot"
1851 (modify-phases %standard-phases
1852 (add-after 'unpack 'remove-generated-file
1854 (for-each delete-file (find-files "." "\\.drv$"))
1856 (home-page "https://www.ctan.org/pkg/bigfoot")
1857 (synopsis "Footnotes for critical editions")
1859 "This package aims to provide a one-stop solution to requirements for
1860 footnotes. It offers: Multiple footnote apparatus superior to that of
1861 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
1862 into a single paragraph (this choice may be selected per footnote series);
1863 Things you might have expected (such as @code{\\verb}-like material in
1864 footnotes, and color selections over page breaks) now work. Note that the
1865 majority of the bigfoot package's interface is identical to that of
1866 @code{manyfoot}; users should seek information from that package's
1867 documentation. The bigfoot bundle also provides the @code{perpage} and
1868 @code{suffix} packages.")
1869 (license license:gpl2+)))
1871 (define-public texlive-latex-blindtext
1873 (name "texlive-latex-blindtext")
1874 (version (number->string %texlive-revision))
1877 (uri (texlive-ref "latex" "blindtext"))
1878 (file-name (string-append name "-" version "-checkout"))
1881 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
1882 (build-system texlive-build-system)
1883 (arguments '(#:tex-directory "latex/blindtext"))
1884 (home-page "https://www.ctan.org/pkg/blindtext")
1885 (synopsis "Producing 'blind' text for testing")
1887 "The package provides the commands @code{\\blindtext} and
1888 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
1889 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
1890 an entire random document with sections, lists, mathematics, etc. The package
1891 supports three languages, @code{english}, @code{(n)german} and @code{latin};
1892 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
1893 ipsum\" text, see the @code{lipsum} package).")
1894 (license license:lppl)))
1896 (define-public texlive-latex-dinbrief
1898 (name "texlive-latex-dinbrief")
1899 (version (number->string %texlive-revision))
1902 (uri (texlive-ref "latex" "dinbrief"))
1903 (file-name (string-append name "-" version "-checkout"))
1906 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
1907 (build-system texlive-build-system)
1909 '(#:tex-directory "latex/dinbrief"
1911 (modify-phases %standard-phases
1912 (add-after 'unpack 'remove-generated-file
1914 (delete-file "dinbrief.drv")
1916 (home-page "https://www.ctan.org/pkg/dinbrief")
1917 (synopsis "German letter DIN style")
1919 "This package implements a document layout for writing letters according
1920 to the rules of DIN (Deutsches Institut für Normung, German standardisation
1921 institute). A style file for LaTeX 2.09 (with limited support of the
1922 features) is part of the package. Since the letter layout is based on a
1923 German standard, the user guide is written in German, but most macros have
1924 English names from which the user can recognize what they are used for. In
1925 addition there are example files showing how letters may be created with the
1927 (license license:lppl)))
1929 (define-public texlive-latex-draftwatermark
1931 (name "texlive-latex-draftwatermark")
1932 (version (number->string %texlive-revision))
1935 (uri (texlive-ref "latex" "draftwatermark"))
1936 (file-name (string-append name "-" version "-checkout"))
1939 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
1940 (build-system texlive-build-system)
1941 (arguments '(#:tex-directory "latex/draftwatermark"))
1942 (home-page "https://www.ctan.org/pkg/draftwatermark")
1943 (synopsis "Put a grey textual watermark on document pages")
1945 "This package provides a means to add a textual, light grey watermark on
1946 every page or on the first page of a document. Typical usage may consist in
1947 writing words such as DRAFT or CONFIDENTIAL across document pages. The
1948 package performs a similar function to that of @code{draftcopy}, but its
1949 implementation is output device independent, and made very simple by relying
1951 (license license:lppl1.3+)))
1953 (define-public texlive-latex-environ
1955 (name "texlive-latex-environ")
1956 (version (number->string %texlive-revision))
1959 (uri (texlive-ref "latex" "environ"))
1960 (file-name (string-append name "-" version "-checkout"))
1963 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
1964 (build-system texlive-build-system)
1965 (arguments '(#:tex-directory "latex/environ"))
1966 (home-page "https://www.ctan.org/pkg/environ")
1967 (synopsis "New interface for environments in LaTeX")
1969 "This package provides the @code{\\collect@@body} command (as in
1970 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
1971 for collecting the body text of an environment. These commands are used to
1972 define a new author interface to creating new environments.")
1973 (license license:lppl)))
1975 (define-public texlive-latex-eqparbox
1977 (name "texlive-latex-eqparbox")
1978 (version (number->string %texlive-revision))
1981 (uri (texlive-ref "latex" "eqparbox"))
1982 (file-name (string-append name "-" version "-checkout"))
1985 "0pvmhsd4xmpil0m3c7qcgwilbk266mlkzv03g0jr8r3zd8jxlyzq"))))
1986 (build-system texlive-build-system)
1987 (arguments '(#:tex-directory "latex/eqparbox"))
1988 (home-page "https://www.ctan.org/pkg/eqparbox")
1989 (synopsis "Create equal-widthed parboxes")
1991 "LaTeX users sometimes need to ensure that two or more blocks of text
1992 occupy the same amount of horizontal space on the page. To that end, the
1993 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
1994 just like @code{\\parbox}, except that instead of specifying a width, one
1995 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
1996 where they are in the document---will stretch to fit the widest
1997 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
1998 for a variety of alignment purposes, as is evidenced by the examples in
1999 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
2001 (license license:lppl1.3+)))
2003 (define-public texlive-latex-expdlist
2005 (name "texlive-latex-expdlist")
2006 (version (number->string %texlive-revision))
2009 (uri (texlive-ref "latex" "expdlist"))
2010 (file-name (string-append name "-" version "-checkout"))
2013 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
2014 (build-system texlive-build-system)
2016 '(#:tex-directory "latex/expdlist"
2018 (modify-phases %standard-phases
2019 (add-after 'unpack 'remove-generated-file
2021 (for-each delete-file
2022 (find-files "." "\\.drv$"))
2024 (home-page "https://www.ctan.org/pkg/expdlist")
2025 (synopsis "Expanded description environments")
2027 "The package provides additional features for the LaTeX
2028 @code{description} environment, including adjustable left margin. The package
2029 also allows the user to \"break\" a list (for example, to interpose a comment)
2030 without affecting the structure of the list (this works for @code{itemize} and
2031 @code{enumerate} lists, and numbered lists remain in sequence).")
2032 (license license:lppl)))
2034 (define-public texlive-latex-filemod
2036 (name "texlive-latex-filemod")
2037 (version (number->string %texlive-revision))
2041 (url (string-append "svn://www.tug.org/texlive/tags/"
2042 %texlive-tag "/Master/texmf-dist/"
2043 "/tex/latex/filemod"))
2044 (revision %texlive-revision)))
2045 (file-name (string-append name "-" version "-checkout"))
2048 "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
2049 (build-system trivial-build-system)
2051 `(#:modules ((guix build utils))
2054 (use-modules (guix build utils))
2055 (let ((target (string-append (assoc-ref %outputs "out")
2056 "/share/texmf-dist/tex/latex/filemod")))
2058 (copy-recursively (assoc-ref %build-inputs "source") target)
2060 (home-page "https://www.ctan.org/pkg/filemod")
2061 (synopsis "Provide file modification times, and compare them")
2063 "This package provides macros to read and compare the modification dates
2064 of files. The files may be @code{.tex} files, images or other files (as long
2065 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
2066 of pdfLaTeX to find the file modification date as PDF date string, parses the
2067 string and returns the value to the user. The package will also work for DVI
2068 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
2069 mode. The functionality is provided by purely expandable macros or by faster
2070 but non-expandable ones.")
2071 (license license:lppl1.3+)))
2073 (define-public texlive-latex-ifplatform
2075 (name "texlive-latex-ifplatform")
2076 (version (number->string %texlive-revision))
2079 (uri (texlive-ref "latex" "ifplatform"))
2080 (file-name (string-append name "-" version "-checkout"))
2083 "11gvvjvmdfs9b7mm19yf80zwkx49jqcbq6g8qb9y5ns1r1qvnixp"))))
2084 (build-system texlive-build-system)
2085 (arguments '(#:tex-directory "latex/ifplatform"))
2086 (home-page "https://www.ctan.org/pkg/ifplatform")
2087 (synopsis "Conditionals to test which platform is being used")
2089 "This package uses the (La)TeX extension @code{-shell-escape} to
2090 establish whether the document is being processed on a Windows or on a
2091 Unix-like system, or on Cygwin (Unix environment over a Windows system).
2092 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
2093 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
2094 on a Unix-like system, which may be used to distinguish between various
2095 classes of systems.")
2096 (license license:lppl)))
2098 (define-public texlive-latex-natbib
2100 (name "texlive-latex-natbib")
2101 (version (number->string %texlive-revision))
2104 (uri (texlive-ref "latex" "natbib"))
2105 (file-name (string-append name "-" version "-checkout"))
2108 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
2109 (build-system texlive-build-system)
2110 (arguments '(#:tex-directory "latex/natbib"))
2111 (home-page "https://www.ctan.org/pkg/natbib")
2112 (synopsis "Flexible bibliography support")
2114 "This bundle provides a package that implements both author-year and
2115 numbered references, as well as much detailed of support for other
2116 bibliography use. Also provided are versions of the standard BibTeX styles
2117 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
2118 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
2119 designed from the start to be compatible with @code{natbib}.")
2120 (license license:lppl)))
2122 (define-public texlive-latex-psfrag
2124 (name "texlive-latex-psfrag")
2125 (version (number->string %texlive-revision))
2128 (uri (texlive-ref "latex" "psfrag"))
2129 (file-name (string-append name "-" version "-checkout"))
2132 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
2133 (build-system texlive-build-system)
2134 (arguments '(#:tex-directory "latex/psfrag"))
2135 (home-page "https://www.ctan.org/pkg/psfrag")
2136 (synopsis "Replace strings in encapsulated PostScript figures")
2138 "This package allows LaTeX constructions (equations, picture
2139 environments, etc.) to be precisely superimposed over Encapsulated PostScript
2140 figures, using your own favorite drawing tool to create an EPS figure and
2141 placing simple text \"tags\" where each replacement is to be placed, with
2142 PSfrag automatically removing these tags from the figure and replacing them
2143 with a user specified LaTeX construction, properly aligned, scaled, and/or
2145 (license (license:fsf-free "file://psfrag.dtx"))))
2147 (define-public texlive-latex-pstool
2149 (name "texlive-latex-pstool")
2150 (version (number->string %texlive-revision))
2153 (uri (texlive-ref "latex" "pstool"))
2154 (file-name (string-append name "-" version "-checkout"))
2157 "1kwlk1x67lad4xb7gpkxqgdlxwpi6nvq1r9wika7m92abmyf18h3"))))
2158 (build-system texlive-build-system)
2160 '(#:tex-directory "latex/pstool"
2161 #:tex-format "latex"))
2163 `(("texlive-fonts-cm" ,texlive-fonts-cm)
2164 ("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2166 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot)
2167 ("texlive-latex-filemod" ,texlive-latex-filemod)
2168 ("texlive-latex-graphics" ,texlive-latex-graphics)
2169 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
2170 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
2171 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
2172 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)))
2173 (home-page "https://www.ctan.org/pkg/pstool")
2174 (synopsis "Process PostScript graphisc within pdfLaTeX documents")
2176 "This is a package for processing PostScript graphics with @code{psfrag}
2177 labels within pdfLaTeX documents. Every graphic is compiled individually,
2178 drastically speeding up compilation time when only a single figure needs
2180 (license license:lppl)))
2182 (define-public texlive-latex-seminar
2184 (name "texlive-latex-seminar")
2185 (version (number->string %texlive-revision))
2189 (url (string-append "svn://www.tug.org/texlive/tags/"
2190 %texlive-tag "/Master/texmf-dist/"
2191 "/tex/latex/seminar"))
2192 (revision %texlive-revision)))
2193 (file-name (string-append name "-" version "-checkout"))
2196 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
2197 (build-system texlive-build-system)
2198 (arguments '(#:tex-directory "latex/seminar"))
2199 (home-page "https://www.ctan.org/pkg/seminar")
2200 (synopsis "Make overhead slides")
2201 ;; TODO: This package may need fancybox and xcomment at runtime.
2203 "This package provides a class that produces overhead
2204 slides (transparencies), with many facilities. Seminar is not nowadays
2205 reckoned a good basis for a presentation — users are advised to use more
2206 recent classes such as powerdot or beamer, both of which are tuned to
2207 21st-century presentation styles.")
2208 (license license:lppl1.2+)))
2210 (define-public texlive-latex-trimspaces
2212 (name "texlive-latex-trimspaces")
2213 (version (number->string %texlive-revision))
2216 (uri (texlive-ref "latex" "trimspaces"))
2217 (file-name (string-append name "-" version "-checkout"))
2220 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
2221 (build-system texlive-build-system)
2223 '(#:tex-directory "latex/trimspaces"
2224 #:tex-format "latex"
2226 (modify-phases %standard-phases
2227 (add-after 'unpack 'fix-bug
2229 ;; The "ins" file refers to the wrong source file.
2230 (substitute* "trimspaces.ins"
2231 (("pstool.tex") "trimspaces.tex"))
2234 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2235 (home-page "https://www.ctan.org/pkg/trimspaces")
2236 (synopsis "Trim spaces around an argument or within a macro")
2238 "This very short package allows you to expandably remove spaces around a
2239 token list (commands are provided to remove spaces before, spaces after, or
2240 both); or to remove surrounding spaces within a macro definition, or to define
2241 space-stripped macros.")
2242 (license license:lppl)))
2244 (define-public texlive-latex-capt-of
2246 (name "texlive-latex-capt-of")
2247 (version (number->string %texlive-revision))
2251 (url (string-append "svn://www.tug.org/texlive/tags/"
2252 %texlive-tag "/Master/texmf-dist/"
2253 "/tex/latex/capt-of"))
2254 (revision %texlive-revision)))
2255 (file-name (string-append name "-" version "-checkout"))
2258 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
2259 (build-system trivial-build-system)
2261 `(#:modules ((guix build utils))
2264 (use-modules (guix build utils))
2265 (let ((target (string-append (assoc-ref %outputs "out")
2266 "/share/texmf-dist/tex/latex/capt-of")))
2268 (copy-recursively (assoc-ref %build-inputs "source") target)
2270 (home-page "https://www.ctan.org/pkg/capt-of")
2271 (synopsis "Captions on more than floats")
2273 "This package defines a command @code{\\captionof} for putting a caption
2274 to something that's not a float.")
2275 (license license:lppl)))
2277 (define-public texlive-latex-etoolbox
2279 (name "texlive-latex-etoolbox")
2280 (version (number->string %texlive-revision))
2284 (url (string-append "svn://www.tug.org/texlive/tags/"
2285 %texlive-tag "/Master/texmf-dist/"
2286 "/tex/latex/etoolbox"))
2287 (revision %texlive-revision)))
2288 (file-name (string-append name "-" version "-checkout"))
2291 "0016bscnpima9krrg2569mva78xzwnygzlvg87dznsm6gf8g589v"))))
2292 (build-system trivial-build-system)
2294 `(#:modules ((guix build utils))
2297 (use-modules (guix build utils))
2298 (let ((target (string-append (assoc-ref %outputs "out")
2299 "/share/texmf-dist/tex/latex/etoolbox")))
2301 (copy-recursively (assoc-ref %build-inputs "source") target)
2303 (home-page "https://www.ctan.org/pkg/etoolbox")
2304 (synopsis "e-TeX tools for LaTeX")
2306 "This package is a toolbox of programming facilities geared primarily
2307 towards LaTeX class and package authors. It provides LaTeX frontends to some
2308 of the new primitives provided by e-TeX as well as some generic tools which
2309 are not strictly related to e-TeX but match the profile of this package. The
2310 package provides functions that seem to offer alternative ways of implementing
2311 some LaTeX kernel commands; nevertheless, the package will not modify any part
2312 of the LaTeX kernel.")
2313 (license license:lppl1.3+)))
2315 (define-public texlive-latex-fncychap
2317 (name "texlive-latex-fncychap")
2318 (version (number->string %texlive-revision))
2322 (url (string-append "svn://www.tug.org/texlive/tags/"
2323 %texlive-tag "/Master/texmf-dist/"
2324 "/tex/latex/fncychap"))
2325 (revision %texlive-revision)))
2326 (file-name (string-append name "-" version "-checkout"))
2329 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
2330 (build-system trivial-build-system)
2332 `(#:modules ((guix build utils))
2335 (use-modules (guix build utils))
2336 (let ((target (string-append (assoc-ref %outputs "out")
2337 "/share/texmf-dist/tex/latex/fncychap")))
2339 (copy-recursively (assoc-ref %build-inputs "source") target)
2341 (home-page "https://www.ctan.org/pkg/fncychap")
2342 (synopsis "Seven predefined chapter heading styles")
2344 "This package provides seven predefined chapter heading styles. Each
2345 style can be modified using a set of simple commands. Optionally one can
2346 modify the formatting routines in order to create additional chapter
2348 (license license:lppl1.3+)))
2350 (define-public texlive-latex-framed
2352 (name "texlive-latex-framed")
2353 (version (number->string %texlive-revision))
2357 (url (string-append "svn://www.tug.org/texlive/tags/"
2358 %texlive-tag "/Master/texmf-dist/"
2359 "/tex/latex/framed"))
2360 (revision %texlive-revision)))
2361 (file-name (string-append name "-" version "-checkout"))
2364 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
2365 (build-system trivial-build-system)
2367 `(#:modules ((guix build utils))
2370 (use-modules (guix build utils))
2371 (let ((target (string-append (assoc-ref %outputs "out")
2372 "/share/texmf-dist/tex/latex/framed")))
2374 (copy-recursively (assoc-ref %build-inputs "source") target)
2376 (home-page "https://www.ctan.org/pkg/framed")
2377 (synopsis "Framed or shaded regions that can break across pages")
2379 "The package creates three environments: @code{framed}, which puts an
2380 ordinary frame box around the region, @code{shaded}, which shades the region,
2381 and @code{leftbar}, which places a line at the left side. The environments
2382 allow a break at their start (the @code{\\FrameCommand} enables creation of a
2383 title that is “attached” to the environment); breaks are also allowed in the
2384 course of the framed/shaded matter. There is also a command
2385 @code{\\MakeFramed} to make your own framed-style environments.")
2386 ;; The header states: "These macros may be freely transmitted, reproduced,
2387 ;; or modified for any purpose provided that this notice is left intact."
2388 (license (license:fsf-free "file://framed.sty"))))
2390 (define-public texlive-latex-g-brief
2392 (name "texlive-latex-g-brief")
2393 (version (number->string %texlive-revision))
2396 (uri (texlive-ref "latex" "g-brief"))
2397 (file-name (string-append name "-" version "-checkout"))
2400 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
2401 (build-system texlive-build-system)
2403 '(#:tex-directory "latex/g-brief"
2405 (modify-phases %standard-phases
2406 (add-after 'unpack 'remove-generated-file
2408 (delete-file "g-brief.drv")
2410 (home-page "https://www.ctan.org/pkg/g-brief")
2411 (synopsis "Letter document class")
2413 "This package is designed for formatting formless letters in German; it
2414 can also be used for English (by those who can read the documentation). There
2415 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
2416 \"old\" and a \"new\" version of g-brief.")
2417 (license license:lppl)))
2419 (define-public texlive-latex-galois
2421 (name "texlive-latex-galois")
2422 (version (number->string %texlive-revision))
2425 (uri (texlive-ref "latex" "galois"))
2426 (file-name (string-append name "-" version "-checkout"))
2429 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
2430 (build-system texlive-build-system)
2431 (arguments '(#:tex-directory "latex/galois"))
2432 (home-page "https://www.ctan.org/pkg/galois")
2433 (synopsis "Typeset Galois connections")
2435 "The package deals with connections in two-dimensional style, optionally
2437 (license license:lppl)))
2439 (define-public texlive-latex-gcite
2441 (name "texlive-latex-gcite")
2442 (version (number->string %texlive-revision))
2445 (uri (texlive-ref "latex" "gcite"))
2446 (file-name (string-append name "-" version "-checkout"))
2449 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
2450 (build-system texlive-build-system)
2451 (arguments '(#:tex-directory "latex/gcite"))
2452 (home-page "https://www.ctan.org/pkg/gcite")
2453 (synopsis "Citations in a reader-friendly style")
2455 "The package allows citations in the German style, which is considered by
2456 many to be particularly reader-friendly. The citation provides a small amount
2457 of bibliographic information in a footnote on the page where each citation is
2458 made. It combines a desire to eliminate unnecessary page-turning with the
2459 look-up efficiency afforded by numeric citations. The package makes use of
2460 BibLaTeX, and is considered experimental.")
2461 (license license:lppl1.3+)))
2463 (define-public texlive-latex-geometry
2465 (name "texlive-latex-geometry")
2466 (version (number->string %texlive-revision))
2469 (uri (texlive-ref "latex" "geometry"))
2470 (file-name (string-append name "-" version "-checkout"))
2473 "1r2kfcwclg33yk5z8mvlagwxj7nr1mc3w4bdpmhrwv6dn8mrbvw8"))))
2474 (build-system texlive-build-system)
2475 (arguments '(#:tex-directory "latex/geometry"))
2476 (home-page "https://www.ctan.org/pkg/geometry")
2477 (synopsis "Flexible and complete interface to document dimensions")
2479 "This package provides an easy and flexible user interface to customize
2480 page layout, implementing auto-centering and auto-balancing mechanisms so that
2481 the users have only to give the least description for the page layout. The
2482 package knows about all the standard paper sizes, so that the user need not
2483 know what the nominal \"real\" dimensions of the paper are, just its standard
2484 name (such as a4, letter, etc.). An important feature is the package's
2485 ability to communicate the paper size it's set up to the output.")
2486 (license license:lppl)))
2488 (define-public texlive-latex-mdwtools
2490 (name "texlive-latex-mdwtools")
2491 (version (number->string %texlive-revision))
2494 (uri (texlive-ref "latex" "mdwtools"))
2495 (file-name (string-append name "-" version "-checkout"))
2498 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
2499 (build-system texlive-build-system)
2500 (arguments '(#:tex-directory "latex/mdwtools"))
2501 (home-page "https://www.ctan.org/pkg/mdwtools")
2502 (synopsis "Miscellaneous tools by Mark Wooding")
2504 "This collection of tools includes: @code{atsupport} for short commands
2505 starting with @code{@@}, macros to sanitize the OT1 encoding of the
2506 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
2507 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
2508 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
2509 array environments; verbatim handling; and syntax diagrams.")
2510 (license license:gpl3+)))
2512 (define-public texlive-latex-polyglossia
2514 (name "texlive-latex-polyglossia")
2515 (version (number->string %texlive-revision))
2518 (uri (texlive-ref "latex" "polyglossia"))
2519 (file-name (string-append name "-" version "-checkout"))
2522 "09mvszd5qgqg4cfglpj5qxyzjz190ppb9p8gnsnjydwp1akvhayf"))))
2523 (build-system texlive-build-system)
2524 (arguments '(#:tex-directory "latex/polyglossia"))
2525 (home-page "https://www.ctan.org/pkg/polyglossia")
2526 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
2528 "This package provides a complete Babel replacement for users of LuaLaTeX
2529 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
2530 (license license:lppl1.3+)))
2532 (define-public texlive-latex-supertabular
2534 (name "texlive-latex-supertabular")
2535 (version (number->string %texlive-revision))
2538 (uri (texlive-ref "latex" "supertabular"))
2539 (file-name (string-append name "-" version "-checkout"))
2542 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
2543 (build-system texlive-build-system)
2544 (arguments '(#:tex-directory "latex/supertabular"))
2545 (home-page "https://www.ctan.org/pkg/supertabular")
2546 (synopsis "Multi-page tables package")
2548 "This package was a predecessor of @code{longtable}; the newer
2549 package (designed on quite different principles) is easier to use and more
2550 flexible, in many cases, but supertabular retains its usefulness in a few
2551 situations where longtable has problems.")
2552 (license license:lppl1.3+)))
2554 (define-public texlive-tex-texinfo
2556 (name "texlive-tex-texinfo")
2557 (version (number->string %texlive-revision))
2561 (url (string-append "svn://www.tug.org/texlive/tags/"
2562 %texlive-tag "/Master/texmf-dist/"
2564 (revision %texlive-revision)))
2565 (file-name (string-append name "-" version "-checkout"))
2568 "09zj2w3lx0y6i2syfjjgizahf86z301dw8p37ln6syfhqhzqdz46"))))
2569 (build-system trivial-build-system)
2571 `(#:modules ((guix build utils))
2574 (use-modules (guix build utils))
2575 (let ((target (string-append (assoc-ref %outputs "out")
2576 "/share/texmf-dist/tex/texinfo")))
2578 (copy-recursively (assoc-ref %build-inputs "source") target)
2580 (home-page "https://www.ctan.org/pkg/texinfo")
2581 (synopsis "TeX macros to handle Texinfo files")
2583 "Texinfo is the preferred format for documentation in the GNU project;
2584 the format may be used to produce online or printed output from a single
2585 source. The Texinfo macros may be used to produce printable output using TeX;
2586 other programs in the distribution offer online interactive use (with
2587 hypertext linkages in some cases).")
2588 (license license:gpl3+)))
2590 (define-public texlive-latex-upquote
2592 (name "texlive-latex-upquote")
2593 (version (number->string %texlive-revision))
2596 (uri (texlive-ref "latex" "upquote"))
2597 (file-name (string-append name "-" version "-checkout"))
2600 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
2601 (build-system texlive-build-system)
2602 (arguments '(#:tex-directory "latex/upquote"))
2603 (home-page "https://www.ctan.org/pkg/upquote")
2604 (synopsis "Show \"realistic\" quotes in verbatim")
2606 "Typewriter-style fonts are best for program listings, but Computer
2607 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
2608 single quotes. Other fonts, and most programming languages, print @code{`} as
2609 a grave accent and @code{'} upright; @code{'} is used both to open and to
2610 close quoted strings. The package switches the typewriter font to Computer
2611 Modern Typewriter in OT1 encoding, and modifies the behaviour of
2612 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
2613 in the expected way. It does this regardless of other fonts or encodings in
2614 use, so long as the package is loaded after the other fonts were. The package
2615 does not affect @code{\\tt}, @code{\\texttt}, etc.")
2616 (license license:lppl1.2+)))
2618 (define-public texlive-latex-anysize
2620 (name "texlive-latex-anysize")
2621 (version (number->string %texlive-revision))
2625 (url (string-append "svn://www.tug.org/texlive/tags/"
2626 %texlive-tag "/Master/texmf-dist/"
2627 "/tex/latex/anysize"))
2628 (revision %texlive-revision)))
2629 (file-name (string-append name "-" version "-checkout"))
2632 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
2633 (build-system trivial-build-system)
2635 `(#:modules ((guix build utils))
2638 (use-modules (guix build utils))
2639 (let ((target (string-append (assoc-ref %outputs "out")
2640 "/share/texmf-dist/tex/latex/anysize")))
2642 (copy-recursively (assoc-ref %build-inputs "source") target)
2644 (home-page "https://www.ctan.org/pkg/anysize")
2645 (synopsis "Simple package to set up document margins")
2647 "This is a simple package to set up document margins. This package is
2648 considered obsolete; alternatives are the @code{typearea} package from the
2649 @code{koma-script} bundle, or the @code{geometry} package.")
2650 (license license:public-domain)))
2652 (define-public texlive-latex-appendix
2654 (name "texlive-latex-appendix")
2655 (version (number->string %texlive-revision))
2658 (uri (texlive-ref "latex" "appendix"))
2659 (file-name (string-append name "-" version "-checkout"))
2662 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
2663 (build-system texlive-build-system)
2664 (arguments '(#:tex-directory "latex/appendix"))
2665 (home-page "https://www.ctan.org/pkg/appendix")
2666 (synopsis "Extra control of appendices")
2668 "The appendix package provides various ways of formatting the titles of
2669 appendices. Also (sub)appendices environments are provided that can be used,
2670 for example, for per chapter/section appendices. An @code{appendices}
2671 environment is provided which can be used instead of the @code{\\appendix}
2673 (license license:lppl)))
2675 (define-public texlive-latex-changebar
2677 (name "texlive-latex-changebar")
2678 (version (number->string %texlive-revision))
2681 (uri (texlive-ref "latex" "changebar"))
2682 (file-name (string-append name "-" version "-checkout"))
2685 "1ik4m8pzfsn1grlda6fniqqfwmgj7rfxwg63jdw0p0qv002vc7ik"))))
2686 (build-system texlive-build-system)
2687 (arguments '(#:tex-directory "latex/changebar"))
2688 (home-page "https://www.ctan.org/pkg/changebar")
2689 (synopsis "Generate changebars in LaTeX documents")
2691 "Identify areas of text to be marked with changebars with the
2692 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
2693 package uses 'drivers' to place the bars; the available drivers can work with
2694 @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
2695 drivers, and VTeX and pdfTeX.")
2696 (license license:lppl)))
2698 (define-public texlive-latex-cmap
2700 (name "texlive-latex-cmap")
2701 (version (number->string %texlive-revision))
2705 (url (string-append "svn://www.tug.org/texlive/tags/"
2706 %texlive-tag "/Master/texmf-dist/"
2708 (revision %texlive-revision)))
2709 (file-name (string-append name "-" version "-checkout"))
2712 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
2713 (build-system trivial-build-system)
2715 `(#:modules ((guix build utils))
2718 (use-modules (guix build utils))
2719 (let ((target (string-append (assoc-ref %outputs "out")
2720 "/share/texmf-dist/tex/latex/cmap")))
2722 (copy-recursively (assoc-ref %build-inputs "source") target)
2724 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
2725 Master/texmf-dist/tex/latex/cmap/")
2726 (synopsis "CMap support for PDF files")
2728 "This package embeds CMap tables into PDF files to make search and
2729 copy-and-paste functions work properly.")
2730 (license license:lppl)))
2732 (define-public texlive-latex-colortbl
2734 (name "texlive-latex-colortbl")
2735 (version (number->string %texlive-revision))
2738 (uri (texlive-ref "latex" "colortbl"))
2739 (file-name (string-append name "-" version "-checkout"))
2742 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
2743 (build-system texlive-build-system)
2744 (arguments '(#:tex-directory "latex/colortbl"))
2745 (home-page "https://www.ctan.org/pkg/colortbl")
2746 (synopsis "Add colour to LaTeX tables")
2748 "This package allows rows, columns, and even individual cells in LaTeX
2749 tables to be coloured.")
2750 (license license:lppl)))
2752 (define-public texlive-latex-fancybox
2754 (name "texlive-latex-fancybox")
2755 (version (number->string %texlive-revision))
2759 (url (string-append "svn://www.tug.org/texlive/tags/"
2760 %texlive-tag "/Master/texmf-dist/"
2761 "/tex/latex/fancybox"))
2762 (revision %texlive-revision)))
2763 (file-name (string-append name "-" version "-checkout"))
2766 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
2767 (build-system trivial-build-system)
2769 `(#:modules ((guix build utils))
2772 (use-modules (guix build utils))
2773 (let ((target (string-append (assoc-ref %outputs "out")
2774 "/share/texmf-dist/tex/latex/fancybox")))
2776 (copy-recursively (assoc-ref %build-inputs "source") target)
2778 (home-page "https://www.ctan.org/pkg/fancybox")
2779 (synopsis "Variants of \\fbox and other games with boxes")
2781 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
2782 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
2783 using box macros and flexible verbatim macros. You can box mathematics,
2784 floats, center, flushleft, and flushright, lists, and pages.")
2785 (license license:lppl1.2+)))
2787 (define-public texlive-latex-fancyhdr
2789 (name "texlive-latex-fancyhdr")
2790 (version (number->string %texlive-revision))
2794 (url (string-append "svn://www.tug.org/texlive/tags/"
2795 %texlive-tag "/Master/texmf-dist/"
2796 "/tex/latex/fancyhdr"))
2797 (revision %texlive-revision)))
2798 (file-name (string-append name "-" version "-checkout"))
2801 "04h430agf8aj7ziwyb46xpk95c605rjk1wzhr63m6ylipihidlgw"))))
2802 (build-system trivial-build-system)
2804 `(#:modules ((guix build utils))
2807 (use-modules (guix build utils))
2808 (let ((target (string-append (assoc-ref %outputs "out")
2809 "/share/texmf-dist/tex/latex/fancyhdr")))
2811 (copy-recursively (assoc-ref %build-inputs "source") target)
2813 (home-page "https://www.ctan.org/pkg/fancyhdr")
2814 (synopsis "Extensive control of page headers and footers in LaTeX2e")
2816 "The package provides extensive facilities, both for constructing headers
2817 and footers, and for controlling their use (for example, at times when LaTeX
2818 would automatically change the heading style in use).")
2819 (license license:lppl)))
2821 (define-public texlive-latex-float
2823 (name "texlive-latex-float")
2824 (version (number->string %texlive-revision))
2827 (uri (texlive-ref "latex" "float"))
2828 (file-name (string-append name "-" version "-checkout"))
2831 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
2832 (build-system texlive-build-system)
2833 (arguments '(#:tex-directory "latex/float"))
2834 (home-page "https://www.ctan.org/pkg/float")
2835 (synopsis "Improved interface for floating objects")
2837 "This package improves the interface for defining floating objects such
2838 as figures and tables. It introduces the boxed float, the ruled float and the
2839 plaintop float. You can define your own floats and improve the behaviour of
2840 the old ones. The package also provides the @code{H} float modifier option of
2841 the obsolete @code{here} package. You can select this as automatic default
2842 with @code{\\floatplacement{figure}{H}}.")
2843 (license license:lppl)))
2845 (define-public texlive-latex-footmisc
2847 (name "texlive-latex-footmisc")
2848 (version (number->string %texlive-revision))
2851 (uri (texlive-ref "latex" "footmisc"))
2852 (file-name (string-append name "-" version "-checkout"))
2855 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
2856 (build-system texlive-build-system)
2857 (arguments '(#:tex-directory "latex/footmisc"))
2858 (home-page "https://www.ctan.org/pkg/footmisc")
2859 (synopsis "Range of footnote options")
2861 "This is a collection of ways to change the typesetting of footnotes.
2862 The package provides means of changing the layout of the footnotes themselves,
2863 a way to number footnotes per page, to make footnotes disappear in a
2864 \"moving\" argument, and to deal with multiple references to footnotes from
2865 the same place. The package also has a range of techniques for labelling
2866 footnotes with symbols rather than numbers.")
2867 (license license:lppl1.3+)))
2869 (define-public texlive-latex-listings
2871 (name "texlive-latex-listings")
2872 (version (number->string %texlive-revision))
2875 (uri (texlive-ref "latex" "listings"))
2876 (file-name (string-append name "-" version "-checkout"))
2879 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
2880 (build-system texlive-build-system)
2882 '(#:tex-directory "latex/listings"
2883 #:build-targets '("listings.ins")))
2884 (home-page "https://www.ctan.org/pkg/listings")
2885 (synopsis "Typeset source code listings using LaTeX")
2887 "The package enables the user to typeset programs (programming code)
2888 within LaTeX; the source code is read directly by TeX---no front-end processor
2889 is needed. Keywords, comments and strings can be typeset using different
2890 styles. Support for @code{hyperref} is provided.")
2891 (license license:lppl1.3+)))
2893 (define-public texlive-latex-jknapltx
2895 (name "texlive-latex-jknapltx")
2896 (version (number->string %texlive-revision))
2900 (url (string-append "svn://www.tug.org/texlive/tags/"
2901 %texlive-tag "/Master/texmf-dist/"
2902 "/tex/latex/jknapltx"))
2903 (revision %texlive-revision)))
2904 (file-name (string-append name "-" version "-checkout"))
2907 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
2908 (build-system trivial-build-system)
2910 `(#:modules ((guix build utils))
2913 (use-modules (guix build utils))
2914 (let ((target (string-append (assoc-ref %outputs "out")
2915 "/share/texmf-dist/tex/latex/jknapltx")))
2917 (copy-recursively (assoc-ref %build-inputs "source") target)
2919 (home-page "https://www.ctan.org/pkg/jknappen")
2920 (synopsis "Miscellaneous packages by Joerg Knappen")
2922 "This package provides miscellaneous macros by Joerg Knappen, including:
2923 represent counters in greek; Maxwell's non-commutative division;
2924 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
2925 @code{inputenc} definition files that allow verbatim input in the respective
2926 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
2927 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
2928 transliterate semitic languages; patches to make (La)TeX formulae embeddable
2929 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
2930 (license license:gpl2)))
2932 (define-public texlive-fonts-ec
2934 (name "texlive-fonts-ec")
2935 (version (number->string %texlive-revision))
2939 (url (string-append "svn://www.tug.org/texlive/tags/"
2940 %texlive-tag "/Master/texmf-dist/"
2941 "/fonts/source/jknappen/ec/"))
2942 (revision %texlive-revision)))
2943 (file-name (string-append name "-" version "-checkout"))
2946 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
2947 (build-system gnu-build-system)
2949 `(#:modules ((guix build gnu-build-system)
2953 #:tests? #f ; no tests
2955 (modify-phases %standard-phases
2958 (lambda* (#:key inputs #:allow-other-keys)
2959 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
2960 ;; Tell mf where to find mf.base
2961 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
2962 ;; Tell mf where to look for source files
2964 (string-append (getcwd) ":"
2965 mf "/share/texmf-dist/metafont/base:"
2966 (assoc-ref inputs "texlive-fonts-cm")
2967 "/share/texmf-dist/fonts/source/public/cm")))
2969 (for-each (lambda (font)
2970 (format #t "building font ~a\n" font)
2971 (invoke "mf" "-progname=mf"
2972 "-output-directory=build"
2977 "input " (basename font ".mf"))))
2978 (find-files "." "[0-9]+\\.mf$"))
2981 (lambda* (#:key outputs #:allow-other-keys)
2982 (let* ((out (assoc-ref outputs "out"))
2984 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
2986 out "/share/texmf-dist/fonts/source/jknappen/ec")))
2987 (for-each (cut install-file <> tfm)
2988 (find-files "build" "\\.*"))
2989 (for-each (cut install-file <> mf)
2990 (find-files "." "\\.mf"))
2993 `(("texlive-bin" ,texlive-bin)
2994 ("texlive-metafont-base" ,texlive-metafont-base)
2995 ("texlive-fonts-cm" ,texlive-fonts-cm)))
2996 (home-page "https://www.ctan.org/pkg/ec")
2997 (synopsis "Computer modern fonts in T1 and TS1 encodings")
2999 "The EC fonts are European Computer Modern Fonts, supporting the complete
3000 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
3001 These fonts are intended to be stable with no changes being made to the tfm
3002 files. The set also contains a Text Companion Symbol font, called @code{tc},
3003 featuring many useful characters needed in text typesetting, for example
3004 oldstyle digits, currency symbols (including the newly created Euro symbol),
3005 the permille sign, copyright, trade mark and servicemark as well as a copyleft
3006 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
3007 EC fonts supersede the preliminary version released as the DC fonts. The
3008 fonts are available in (traced) Adobe Type 1 format, as part of the
3009 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
3010 set, Latin Modern, is not actually a direct development of the EC set, and
3011 differs from the EC in a number of particulars.")
3012 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
3013 texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
3015 (define-public texlive-fonts-rsfs
3017 (name "texlive-fonts-rsfs")
3018 (version (number->string %texlive-revision))
3022 (url (string-append "svn://www.tug.org/texlive/tags/"
3023 %texlive-tag "/Master/texmf-dist/"
3024 "/fonts/source/public/rsfs/"))
3025 (revision %texlive-revision)))
3026 (file-name (string-append name "-" version "-checkout"))
3029 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
3030 (build-system gnu-build-system)
3032 `(#:modules ((guix build gnu-build-system)
3036 #:tests? #f ; no tests
3038 (modify-phases %standard-phases
3041 (lambda* (#:key inputs #:allow-other-keys)
3042 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
3043 ;; Tell mf where to find mf.base
3044 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
3045 ;; Tell mf where to look for source files
3047 (string-append (getcwd) ":"
3048 mf "/share/texmf-dist/metafont/base:"
3049 (assoc-ref inputs "texlive-fonts-cm")
3050 "/share/texmf-dist/fonts/source/public/cm")))
3052 (for-each (lambda (font)
3053 (format #t "building font ~a\n" font)
3054 (invoke "mf" "-progname=mf"
3055 "-output-directory=build"
3060 "input " (basename font ".mf"))))
3061 (find-files "." "[0-9]+\\.mf$"))
3064 (lambda* (#:key outputs #:allow-other-keys)
3065 (let* ((out (assoc-ref outputs "out"))
3067 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
3069 out "/share/texmf-dist/fonts/source/public/rsfs")))
3070 (for-each (cut install-file <> tfm)
3071 (find-files "build" "\\.*"))
3072 (for-each (cut install-file <> mf)
3073 (find-files "." "\\.mf"))
3076 `(("texlive-bin" ,texlive-bin)
3077 ("texlive-metafont-base" ,texlive-metafont-base)
3078 ("texlive-fonts-cm" ,texlive-fonts-cm)))
3079 (home-page "https://www.ctan.org/pkg/rsfs")
3080 (synopsis "Ralph Smith's Formal Script font")
3082 "The fonts provide uppercase formal script letters for use as symbols in
3083 scientific and mathematical typesetting (in contrast to the informal script
3084 fonts such as that used for the calligraphic symbols in the TeX maths symbol
3085 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
3086 format. LaTeX support, for using these fonts in mathematics, is available via
3087 one of the packages @code{calrsfs} and @code{mathrsfs}.")
3088 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
3090 (define-public texlive-latex-eso-pic
3092 (name "texlive-latex-eso-pic")
3093 (version (number->string %texlive-revision))
3096 (uri (texlive-ref "latex" "eso-pic"))
3097 (file-name (string-append name "-" version "-checkout"))
3100 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
3101 (build-system texlive-build-system)
3102 (arguments '(#:tex-directory "latex/eso-pic"))
3103 (home-page "https://www.ctan.org/pkg/eso-pic")
3104 (synopsis "Add picture commands (or backgrounds) to every page")
3106 "The package adds one or more user commands to LaTeX's @code{shipout}
3107 routine, which may be used to place the output at fixed positions. The
3108 @code{grid} option may be used to find the correct places.")
3109 (license license:lppl1.3+)))
3111 (define-public texlive-latex-eepic
3113 (name "texlive-latex-eepic")
3114 (version (number->string %texlive-revision))
3118 (url (string-append "svn://www.tug.org/texlive/tags/"
3119 %texlive-tag "/Master/texmf-dist/"
3120 "/tex/latex/eepic"))
3121 (revision %texlive-revision)))
3122 (file-name (string-append name "-" version "-checkout"))
3125 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
3126 (build-system trivial-build-system)
3128 `(#:modules ((guix build utils))
3131 (use-modules (guix build utils))
3132 (let ((target (string-append (assoc-ref %outputs "out")
3133 "/share/texmf-dist/tex/latex/eepic")))
3135 (copy-recursively (assoc-ref %build-inputs "source") target)
3137 (home-page "https://www.ctan.org/pkg/eepic")
3138 (synopsis "Extensions to epic and the LaTeX drawing tools")
3140 "Extensions to @code{epic} and the LaTeX picture drawing environment,
3141 include the drawing of lines at any slope, the drawing of circles in any
3142 radii, and the drawing of dotted and dashed lines much faster with much less
3143 TeX memory, and providing several new commands for drawing ellipses, arcs,
3144 splines, and filled circles and ellipses. The package uses @code{tpic}
3145 @code{\\special} commands.")
3146 (license license:public-domain)))
3148 (define-public texlive-latex-enumitem
3150 (name "texlive-latex-enumitem")
3151 (version (number->string %texlive-revision))
3155 (url (string-append "svn://www.tug.org/texlive/tags/"
3156 %texlive-tag "/Master/texmf-dist/"
3157 "/tex/latex/enumitem"))
3158 (revision %texlive-revision)))
3159 (file-name (string-append name "-" version "-checkout"))
3162 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
3163 (build-system trivial-build-system)
3165 `(#:modules ((guix build utils))
3168 (use-modules (guix build utils))
3169 (let ((target (string-append (assoc-ref %outputs "out")
3170 "/share/texmf-dist/tex/latex/enumitem")))
3172 (copy-recursively (assoc-ref %build-inputs "source") target)
3174 (home-page "https://www.ctan.org/pkg/enumitem")
3175 (synopsis "Customize basic list environments")
3177 "This package is intended to ease customizing the three basic list
3178 environments: @code{enumerate}, @code{itemize} and @code{description}. It
3179 extends their syntax to allow an optional argument where a set of parameters
3180 in the form @code{key=value} are available, for example:
3181 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
3182 (license license:lppl1.3+)))
3184 (define-public texlive-latex-multirow
3186 (name "texlive-latex-multirow")
3187 (version (number->string %texlive-revision))
3190 (uri (texlive-ref "latex" "multirow"))
3191 (file-name (string-append name "-" version "-checkout"))
3194 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
3195 (build-system texlive-build-system)
3196 (arguments '(#:tex-directory "latex/multirow"))
3197 (home-page "https://www.ctan.org/pkg/multirow")
3198 (synopsis "Create tabular cells spanning multiple rows")
3200 "The package provides tools for creating tabular cells spanning multiple
3201 rows. It has a lot of flexibility, including an option for specifying an
3202 entry at the \"natural\" width of its text.")
3203 (license license:lppl1.3+)))
3205 (define-public texlive-latex-overpic
3207 (name "texlive-latex-overpic")
3208 (version (number->string %texlive-revision))
3212 (url (string-append "svn://www.tug.org/texlive/tags/"
3213 %texlive-tag "/Master/texmf-dist/"
3214 "/tex/latex/overpic"))
3215 (revision %texlive-revision)))
3216 (file-name (string-append name "-" version "-checkout"))
3219 "0m29q9qdb00558b7g2i7iw6w62n5s46yx81j8m99qkv77magk4fm"))))
3220 (build-system trivial-build-system)
3222 `(#:modules ((guix build utils))
3225 (use-modules (guix build utils))
3226 (let ((target (string-append (assoc-ref %outputs "out")
3227 "/share/texmf-dist/tex/latex/overpic")))
3229 (copy-recursively (assoc-ref %build-inputs "source") target)
3231 (home-page "https://www.ctan.org/pkg/overpic")
3232 (synopsis "Combine LaTeX commands over included graphics")
3234 "The @code{overpic} environment is a cross between the LaTeX
3235 @code{picture} environment and the @code{\\includegraphics} command of
3236 @code{graphicx}. The resulting picture environment has the same dimensions as
3237 the included graphic. LaTeX commands can be placed on the graphic at defined
3238 positions; a grid for orientation is available.")
3239 (license license:lppl1.0+)))
3241 (define-public texlive-latex-parskip
3243 (name "texlive-latex-parskip")
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/parskip"))
3251 (revision %texlive-revision)))
3252 (file-name (string-append name "-" version "-checkout"))
3255 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
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/parskip")))
3265 (copy-recursively (assoc-ref %build-inputs "source") target)
3267 (home-page "https://www.ctan.org/pkg/parskip")
3268 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
3270 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
3271 that is untidy; this package (though it is no substitute for a properly
3272 designed class) helps alleviate this untidiness.")
3273 (license license:lppl)))
3275 (define-public texlive-latex-pdfpages
3277 (name "texlive-latex-pdfpages")
3278 (version (number->string %texlive-revision))
3281 (uri (texlive-ref "latex" "pdfpages"))
3282 (file-name (string-append name "-" version "-checkout"))
3285 "06p5smfq66559ppdnmkl3hp8534x84ywbscimsiir4gllpya3i9h"))))
3286 (build-system texlive-build-system)
3287 (arguments '(#:tex-directory "latex/pdfpages"))
3288 (home-page "https://www.ctan.org/pkg/pdfpages")
3289 (synopsis "Include PDF documents in LaTeX")
3291 "This package simplifies the inclusion of external multi-page PDF
3292 documents in LaTeX documents. Pages may be freely selected and it is possible
3293 to put several logical pages onto each sheet of paper. Furthermore a lot of
3294 hypertext features like hyperlinks and article threads are provided. The
3295 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
3296 use this package to insert PostScript files, in addition to PDF files.")
3297 (license license:lppl1.3+)))
3299 (define-public texlive-fonts-stmaryrd
3301 (name "texlive-fonts-stmaryrd")
3302 (version (number->string %texlive-revision))
3305 (uri (texlive-ref "fonts" "stmaryrd"))
3306 (file-name (string-append name "-" version "-checkout"))
3309 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
3310 (build-system texlive-build-system)
3312 '(#:tex-directory "latex/stmaryrd"
3314 (modify-phases %standard-phases
3315 (add-after 'configure 'patch-ins
3317 (substitute* "stmaryrd.ins"
3318 (("^%% LaTeX2e.*") "\\input docstrip\n")
3319 (("fontdef\\}\\}" line)
3320 (string-append line "\n\\endbatchfile")))
3322 (home-page "https://www.ctan.org/pkg/stmaryrd")
3323 (synopsis "St Mary Road symbols for theoretical computer science")
3325 "The fonts were originally distributed as Metafont sources only, but
3326 Adobe Type 1 versions are also now available. Macro support is provided for
3327 use under LaTeX; the package supports the @code{only} option (provided by the
3328 @code{somedefs} package) to restrict what is loaded, for those who don't need
3330 (license license:lppl)))
3332 (define-public texlive-latex-subfigure
3334 (name "texlive-latex-subfigure")
3335 (version (number->string %texlive-revision))
3338 (uri (texlive-ref "latex" "subfigure"))
3339 (file-name (string-append name "-" version "-checkout"))
3342 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
3343 (build-system texlive-build-system)
3344 (arguments '(#:tex-directory "latex/subfigure"))
3345 (home-page "https://www.ctan.org/pkg/subfigure")
3346 (synopsis "Figures divided into subfigures")
3348 "This (deprecated) package provides support for the manipulation and
3349 reference of small or \"sub\" figures and tables within a single figure or
3350 table environment. It is convenient to use this package when your subfigures
3351 are to be separately captioned, referenced, or are to be included in the
3352 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
3353 used inside a figure environment for each subfigure. An optional first
3354 argument is used as the caption for that subfigure. The package is now
3355 considered obsolete: it was superseded by @code{subfig}, but users may find
3356 the more recent @code{subcaption} package more satisfactory.")
3357 (license license:lppl)))
3359 (define-public texlive-latex-tabulary
3361 (name "texlive-latex-tabulary")
3362 (version (number->string %texlive-revision))
3365 (uri (texlive-ref "latex" "tabulary"))
3366 (file-name (string-append name "-" version "-checkout"))
3369 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
3370 (build-system texlive-build-system)
3371 (arguments '(#:tex-directory "latex/tabulary"))
3372 (home-page "https://www.ctan.org/pkg/tabulary")
3373 (synopsis "Tabular with variable width columns balanced")
3375 "The package defines a @code{tabular*}-like environment, @code{tabulary},
3376 taking a \"total width\" argument as well as the column specifications. The
3377 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
3378 variable width columns (@code{\\raggedright}, @code{\\centering},
3379 @code{\\raggedleft}, and normally justified). In contrast to
3380 @code{tabularx}'s @code{X} columns, the width of each column is weighted
3381 according to the natural width of the widest cell in the column.")
3382 (license license:lppl)))
3384 (define-public texlive-latex-threeparttable
3386 (name "texlive-latex-threeparttable")
3387 (version (number->string %texlive-revision))
3391 (url (string-append "svn://www.tug.org/texlive/tags/"
3392 %texlive-tag "/Master/texmf-dist/"
3393 "/tex/latex/threeparttable"))
3394 (revision %texlive-revision)))
3395 (file-name (string-append name "-" version "-checkout"))
3398 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
3399 (build-system trivial-build-system)
3401 `(#:modules ((guix build utils))
3404 (use-modules (guix build utils))
3405 (let ((target (string-append (assoc-ref %outputs "out")
3406 "/share/texmf-dist/tex/latex/threeparttable")))
3408 (copy-recursively (assoc-ref %build-inputs "source") target)
3410 (home-page "https://www.ctan.org/pkg/threeparttable")
3411 (synopsis "Tables with captions and notes all the same width")
3413 "This package facilitates tables with titles (captions) and notes. The
3414 title and notes are given a width equal to the body of the table (a
3415 @code{tabular} environment). By itself, a @code{threeparttable} does not
3416 float, but you can put it in a @code{table} or a @code{table*} or some other
3418 (license (license:fsf-free "file://threeparttable.sty"))))
3420 (define-public texlive-fonts-txfonts
3422 (name "texlive-fonts-txfonts")
3423 (version (number->string %texlive-revision))
3427 (url (string-append "svn://www.tug.org/texlive/tags/"
3428 %texlive-tag "/Master/texmf-dist/"
3429 "/tex/latex/txfonts"))
3430 (revision %texlive-revision)))
3431 (file-name (string-append name "-" version "-checkout"))
3434 "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
3435 (build-system trivial-build-system)
3437 `(#:modules ((guix build utils)
3441 (use-modules (guix build utils)
3443 (let ((root (string-append (assoc-ref %outputs "out")
3444 "/share/texmf-dist/"))
3445 (pkgs '(("source" . "tex/latex/txfonts")
3446 ("txfonts-vf" . "fonts/tfm/public/txfonts")
3447 ("txfonts-afm" . "fonts/afm/public/txfonts")
3448 ("txfonts-tfm" . "fonts/tfm/public/txfonts")
3449 ("txfonts-type1" . "fonts/type1/public/txfonts")
3450 ("txfonts-enc" . "fonts/enc/dvips/txfonts")
3451 ("txfonts-map" . "fonts/map/dvips/txfonts"))))
3452 (for-each (match-lambda
3454 (let ((target (string-append root dir)))
3456 (copy-recursively (assoc-ref %build-inputs pkg)
3465 (url (string-append "svn://www.tug.org/texlive/tags/"
3466 %texlive-tag "/Master/texmf-dist/"
3467 "/fonts/tfm/public/txfonts"))
3468 (revision %texlive-revision)))
3469 (file-name (string-append name "-tfm-" version "-checkout"))
3472 "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
3477 (url (string-append "svn://www.tug.org/texlive/tags/"
3478 %texlive-tag "/Master/texmf-dist/"
3479 "/fonts/vf/public/txfonts"))
3480 (revision %texlive-revision)))
3481 (file-name (string-append name "-vf-" version "-checkout"))
3484 "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
3489 (url (string-append "svn://www.tug.org/texlive/tags/"
3490 %texlive-tag "/Master/texmf-dist/"
3491 "/fonts/afm/public/txfonts"))
3492 (revision %texlive-revision)))
3493 (file-name (string-append name "-afm-" version "-checkout"))
3496 "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
3501 (url (string-append "svn://www.tug.org/texlive/tags/"
3502 %texlive-tag "/Master/texmf-dist/"
3503 "/fonts/type1/public/txfonts"))
3504 (revision %texlive-revision)))
3505 (file-name (string-append name "-type1-" version "-checkout"))
3508 "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
3513 (url (string-append "svn://www.tug.org/texlive/tags/"
3514 %texlive-tag "/Master/texmf-dist/"
3515 "/fonts/map/dvips/txfonts"))
3516 (revision %texlive-revision)))
3517 (file-name (string-append name "-map-" version "-checkout"))
3520 "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
3525 (url (string-append "svn://www.tug.org/texlive/tags/"
3526 %texlive-tag "/Master/texmf-dist/"
3527 "/fonts/enc/dvips/txfonts"))
3528 (revision %texlive-revision)))
3529 (file-name (string-append name "-enc-" version "-checkout"))
3532 "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
3533 (home-page "https://www.ctan.org/pkg/threeparttable")
3534 (synopsis "Times-like fonts in support of mathematics")
3536 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
3537 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
3538 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
3539 providing all the symbols of the Computer Modern and AMS fonts, including all
3540 the Greek capital letters from CMR; and additional maths fonts of various
3543 The set is complemented by a sans-serif set of text fonts, based on
3544 Helvetica/NimbusSanL, and a monospace set.
3546 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
3547 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
3548 ;; Any version of the GPL with font exception.
3549 (license license:gpl3+)))
3551 (define-public texlive-fonts-iwona
3553 (name "texlive-fonts-iwona")
3557 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
3558 (string-map (lambda (c)
3565 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
3566 (build-system trivial-build-system)
3568 `(#:modules ((guix build utils))
3571 (use-modules (guix build utils))
3572 (let ((target (string-append (assoc-ref %outputs "out")
3573 "/share/texmf-dist/"))
3574 (unzip (string-append (assoc-ref %build-inputs "unzip")
3576 (invoke unzip (assoc-ref %build-inputs "source"))
3578 (copy-recursively "iwona" target)
3581 `(("unzip" ,unzip)))
3582 (home-page "http://jmn.pl/en/kurier-i-iwona/")
3583 (synopsis "Sans-serif typeface for TeX")
3584 (description "Iwona is a two-element sans-serif typeface. It was created
3585 as an alternative version of the Kurier typeface, which was designed in 1975
3586 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
3587 supervision of Roman Tomaszewski. Kurier was designed for linotype
3588 typesetting of newspapers and similar periodicals. The Iwona fonts are an
3589 alternative version of the Kurier fonts. The difference lies in the absence
3590 of ink traps which typify the Kurier font.")
3591 (license license:gfl1.0)))
3593 (define-public texlive-latex-titlesec
3595 (name "texlive-latex-titlesec")
3596 (version (number->string %texlive-revision))
3600 (url (string-append "svn://www.tug.org/texlive/tags/"
3601 %texlive-tag "/Master/texmf-dist/"
3602 "/tex/latex/titlesec"))
3603 (revision %texlive-revision)))
3604 (file-name (string-append name "-" version "-checkout"))
3607 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
3608 (build-system trivial-build-system)
3610 `(#:modules ((guix build utils))
3613 (use-modules (guix build utils))
3614 (let ((target (string-append (assoc-ref %outputs "out")
3615 "/share/texmf-dist/tex/latex/titlesec")))
3617 (copy-recursively (assoc-ref %build-inputs "source") target)
3619 (home-page "https://www.ctan.org/pkg/titlesec")
3620 (synopsis "Select alternative section titles")
3622 "This package provides an interface to sectioning commands for selection
3623 from various title styles, e.g. for marginal titles and to change the font of
3624 all headings with a single command, also providing simple one-step page
3625 styles. It also includes a package to change the page styles when there are
3626 floats in a page. You may assign headers/footers to individual floats, too.")
3627 (license license:lppl)))
3629 (define-public texlive-latex-type1cm
3631 (name "texlive-latex-type1cm")
3632 (version (number->string %texlive-revision))
3635 (uri (texlive-ref "latex" "type1cm"))
3636 (file-name (string-append name "-" version "-checkout"))
3639 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
3640 (build-system texlive-build-system)
3641 (arguments '(#:tex-directory "latex/type1cm"))
3642 (home-page "https://www.ctan.org/pkg/type1cm")
3643 (synopsis "Arbitrary size font selection in LaTeX")
3645 "LaTeX, by default, restricts the sizes at which you can use its default
3646 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
3647 specified by Knuth). The @code{type1cm} package removes this restriction;
3648 this is particularly useful when using scalable versions of the CM
3649 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
3650 PCTeX, etc.). In fact, since modern distributions will automatically generate
3651 any bitmap font you might need, @code{type1cm} has wider application than just
3652 those using scalable versions of the fonts. Note that the LaTeX distribution
3653 now contains a package @code{fix-cm},f which performs the task of
3654 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
3656 (license license:lppl)))
3658 (define-public texlive-latex-lh
3660 (name "texlive-latex-lh")
3661 (version (number->string %texlive-revision))
3664 (uri (texlive-ref "latex" "lh"))
3665 (file-name (string-append name "-" version "-checkout"))
3668 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
3669 (build-system texlive-build-system)
3670 (arguments '(#:tex-directory "latex/lh"))
3671 (home-page "https://www.ctan.org/pkg/lh")
3672 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
3674 "The LH fonts address the problem of the wide variety of alphabets that
3675 are written with Cyrillic-style characters. The fonts are the original basis
3676 of the set of T2* and X2 encodings that are now used when LaTeX users need to
3677 write in Cyrillic languages. Macro support in standard LaTeX encodings is
3678 offered through the latex-cyrillic and t2 bundles, and the package itself
3679 offers support for other (more traditional) encodings. The fonts, in the
3680 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
3681 CM-Super family of fonts. The package also offers its own LaTeX support for
3682 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
3683 (license license:lppl)))
3685 (define-public texlive-metapost
3687 (name "texlive-metapost")
3688 (version (number->string %texlive-revision))
3692 (url (string-append "svn://www.tug.org/texlive/tags/"
3693 %texlive-tag "/Master/texmf-dist/"
3695 (revision %texlive-revision)))
3696 (file-name (string-append name "-" version "-checkout"))
3699 "03nvjddffiz796wll6axzmgfvynyciy2mqamv20qx252w71vwkwd"))))
3700 (build-system trivial-build-system)
3702 `(#:modules ((guix build utils))
3705 (use-modules (guix build utils))
3706 (let ((target (string-append (assoc-ref %outputs "out")
3707 "/share/texmf-dist/metapost")))
3709 (copy-recursively (assoc-ref %build-inputs "source") target)
3711 (home-page "https://www.ctan.org/pkg/metapost")
3712 (synopsis "Create scalable illustrations")
3714 "MetaPost uses a language based on that of Metafont to produce precise
3715 technical illustrations. Its output is scalable PostScript or SVG, rather
3716 than the bitmaps Metafont creates.")
3717 (license license:lppl)))
3719 (define-public texlive-latex-acmart
3721 (name "texlive-latex-acmart")
3725 (uri (texlive-ref "latex" "acmart"))
3728 "10zs8ga88ksypv1v4p6mynmfa7749q2hgxlr4shnwfjd9wrb421q"))
3729 (file-name (string-append name "-" version "-checkout"))))
3730 (build-system texlive-build-system)
3731 (arguments '(#:tex-directory "latex/acmart"))
3732 (home-page "https://www.ctan.org/pkg/acmart")
3733 (synopsis "Class for typesetting publications of ACM")
3735 "This package provides a class for typesetting publications of the
3736 Association for Computing Machinery (ACM).")
3737 (license license:lppl1.3+)))
3739 (define-public texlive-latex-varwidth
3741 (name "texlive-latex-varwidth")
3742 (version (number->string %texlive-revision))
3746 (url (string-append "svn://www.tug.org/texlive/tags/"
3747 %texlive-tag "/Master/texmf-dist/"
3748 "/tex/latex/varwidth"))
3749 (revision %texlive-revision)))
3750 (file-name (string-append name "-" version "-checkout"))
3753 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
3754 (build-system trivial-build-system)
3756 `(#:modules ((guix build utils))
3759 (use-modules (guix build utils))
3760 (let ((target (string-append (assoc-ref %outputs "out")
3761 "/share/texmf-dist/tex/latex/varwidth")))
3763 (copy-recursively (assoc-ref %build-inputs "source") target)
3765 (home-page "https://www.ctan.org/pkg/varwidth")
3766 (synopsis "Variable-width minipage")
3768 "The @code{varwidth} environment is superficially similar to
3769 @code{minipage}, but the specified width is just a maximum value — the box may
3770 get a narrower “natural” width.")
3771 (license license:lppl)))
3773 (define-public texlive-latex-wasysym
3775 (name "texlive-latex-wasysym")
3776 (version (number->string %texlive-revision))
3779 (uri (texlive-ref "latex" "wasysym"))
3780 (file-name (string-append name "-" version "-checkout"))
3783 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
3784 (build-system texlive-build-system)
3785 (arguments '(#:tex-directory "latex/wasysym"))
3786 (home-page "https://www.ctan.org/pkg/wasysym")
3787 (synopsis "LaTeX support file to use the WASY2 fonts")
3789 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
3790 like male and female symbols and astronomical symbols, as well as the complete
3791 lasy font set and other odds and ends. The wasysym package implements an easy
3792 to use interface for these symbols.")
3793 (license license:lppl)))
3795 (define-public texlive-latex-wrapfig
3797 (name "texlive-latex-wrapfig")
3798 (version (number->string %texlive-revision))
3802 (url (string-append "svn://www.tug.org/texlive/tags/"
3803 %texlive-tag "/Master/texmf-dist/"
3804 "/tex/latex/wrapfig"))
3805 (revision %texlive-revision)))
3806 (file-name (string-append name "-" version "-checkout"))
3809 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
3810 (build-system trivial-build-system)
3812 `(#:modules ((guix build utils))
3815 (use-modules (guix build utils))
3816 (let ((target (string-append (assoc-ref %outputs "out")
3817 "/share/texmf-dist/tex/latex/wrapfig")))
3819 (copy-recursively (assoc-ref %build-inputs "source") target)
3821 (home-page "https://www.ctan.org/pkg/wrapfig")
3822 (synopsis "Produces figures which text can flow around")
3824 "This package allows figures or tables to have text wrapped around them.
3825 It does not work in combination with list environments, but can be used in a
3826 @code{parbox} or @code{minipage}, and in two-column format.")
3827 (license license:lppl)))
3829 (define-public texlive-latex-ucs
3831 (name "texlive-latex-ucs")
3832 (version (number->string %texlive-revision))
3836 (url (string-append "svn://www.tug.org/texlive/tags/"
3837 %texlive-tag "/Master/texmf-dist/"
3839 (revision %texlive-revision)))
3840 (file-name (string-append name "-" version "-checkout"))
3843 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
3844 (build-system trivial-build-system)
3846 `(#:modules ((guix build utils))
3849 (use-modules (guix build utils))
3850 (let ((target (string-append (assoc-ref %outputs "out")
3851 "/share/texmf-dist/tex/latex/ucs")))
3853 (copy-recursively (assoc-ref %build-inputs "source") target)
3855 (home-page "https://www.ctan.org/pkg/ucs")
3856 (synopsis "Extended UTF-8 input encoding support for LaTeX")
3858 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
3859 together with a large number of support files. The @code{utf8x.def}
3860 definition file for use with @code{inputenc} covers a wider range of Unicode
3861 characters than does @code{utf8.def} in the LaTeX distribution. The package
3862 provides facilities for efficient use of its large sets of Unicode characters.
3863 Glyph production may be controlled by various options, which permits use of
3864 non-ASCII characters when coding mathematical formulae. Note that the bundle
3865 previously had an alias “unicode”; that alias has now been withdrawn, and no
3866 package of that name now exists.")
3867 (license license:lppl1.3+)))
3869 (define-public texlive-latex-preview
3871 (name "texlive-latex-preview")
3872 (version (number->string %texlive-revision))
3875 (uri (texlive-ref "latex" "preview"))
3876 (file-name (string-append name "-" version "-checkout"))
3879 "0j6fff6q0ca96nwfdgay2jm55792z4q9aa0rczmiw2qccyg5n2dv"))))
3880 (build-system texlive-build-system)
3882 '(#:tex-directory "latex/preview"
3884 (modify-phases %standard-phases
3885 (add-after 'unpack 'remove-generated-file
3887 (delete-file "preview.drv")
3889 (home-page "https://www.ctan.org/pkg/preview")
3890 (synopsis "Extract bits of a LaTeX source for output")
3892 "The main purpose of the preview package is the extraction of selected
3893 elements from a LaTeX source, like formulas or graphics, into separate
3894 pages of a DVI file. A flexible and convenient interface allows it to
3895 specify what commands and constructs should be extracted. This works
3896 with DVI files postprocessed by either Dvips and Ghostscript or
3897 dvipng, but it also works when you are using PDFTeX for generating PDF
3899 (license license:gpl3+)))
3901 (define-public texlive-latex-acronym
3903 (name "texlive-latex-acronym")
3904 (version (number->string %texlive-revision))
3907 (uri (texlive-ref "latex" "acronym"))
3908 (file-name (string-append name "-" version "-checkout"))
3911 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
3912 (build-system texlive-build-system)
3913 (arguments '(#:tex-directory "latex/acronym"))
3914 (home-page "https://www.ctan.org/pkg/acronym")
3915 (synopsis "Expand acronyms at least once")
3917 "This package ensures that all acronyms used in the text are spelled out
3918 in full at least once. It also provides an environment to build a list of
3919 acronyms used. The package is compatible with PDF bookmarks. The package
3920 requires the suffix package, which in turn requires that it runs under
3922 (license license:lppl1.3+)))
3924 (define-public texlive-generic-pdftex
3926 (name "texlive-generic-pdftex")
3927 (version (number->string %texlive-revision))
3931 (url (string-append "svn://www.tug.org/texlive/tags/"
3932 %texlive-tag "/Master/texmf-dist/"
3933 "/tex/generic/pdftex"))
3934 (revision %texlive-revision)))
3935 (file-name (string-append name "-" version "-checkout"))
3938 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
3939 (build-system trivial-build-system)
3941 `(#:modules ((guix build utils))
3944 (use-modules (guix build utils))
3945 (let ((target (string-append (assoc-ref %outputs "out")
3946 "/share/texmf-dist/tex/generic/pdftex")))
3948 (copy-recursively (assoc-ref %build-inputs "source") target)
3950 (home-page "https://www.ctan.org/pkg/pdftex")
3951 (synopsis "TeX extension for direct creation of PDF")
3953 "This package provides an extension of TeX which can be configured to
3954 directly generate PDF documents instead of DVI.")
3955 (license license:gpl2+)))
3957 (define texlive-texmf
3959 (name "texlive-texmf")
3961 (source texlive-texmf-src)
3962 (build-system gnu-build-system)
3964 `(("texlive-bin" ,texlive-bin)
3967 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
3971 `(#:modules ((guix build gnu-build-system)
3975 ;; This package takes 4 GiB, which we can't afford to distribute from
3980 (modify-phases (map (cut assq <> %standard-phases)
3981 '(set-paths unpack patch-source-shebangs))
3982 (add-after 'patch-source-shebangs 'install
3983 (lambda* (#:key outputs #:allow-other-keys)
3984 (let ((share (string-append (assoc-ref outputs "out") "/share")))
3986 (invoke "mv" "texmf-dist" share))))
3987 (add-after 'install 'texmf-config
3988 (lambda* (#:key inputs outputs #:allow-other-keys)
3989 (let* ((out (assoc-ref outputs "out"))
3990 (share (string-append out "/share"))
3991 (texmfroot (string-append share "/texmf-dist/web2c"))
3992 (texmfcnf (string-append texmfroot "/texmf.cnf"))
3993 (texlive-bin (assoc-ref inputs "texlive-bin"))
3994 (texbin (string-append texlive-bin "/bin"))
3995 (tlpkg (string-append texlive-bin "/share/tlpkg")))
3996 ;; Register SHARE as TEXMFROOT in texmf.cnf.
3997 (substitute* texmfcnf
3998 (("TEXMFROOT = \\$SELFAUTOPARENT")
3999 (string-append "TEXMFROOT = " share))
4000 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
4001 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
4002 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
4003 ;; Register paths in texmfcnf.lua, needed for context.
4004 (substitute* (string-append texmfroot "/texmfcnf.lua")
4005 (("selfautodir:") out)
4006 (("selfautoparent:") (string-append share "/")))
4007 ;; Set path to TeXLive Perl modules
4009 (string-append (getenv "PERL5LIB") ":" tlpkg))
4010 ;; Configure the texmf-dist tree; inspired from
4011 ;; http://slackbuilds.org/repository/13.37/office/texlive/
4012 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
4013 (setenv "TEXMFCNF" texmfroot)
4014 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
4016 (invoke "fmtutil-sys" "--all")))))))
4017 (properties `((max-silent-time . 9600))) ; don't time out while grafting
4018 (synopsis "TeX Live, a package of the TeX typesetting system")
4020 "TeX Live provides a comprehensive TeX document production system.
4021 It includes all the major TeX-related programs, macro packages, and fonts
4022 that are free software, including support for many languages around the
4025 This package contains the complete tree of texmf-dist data.")
4026 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
4027 (home-page "https://www.tug.org/texlive/")))
4029 (define-public texlive
4034 (build-system trivial-build-system)
4035 (inputs `(("bash" ,bash) ; for wrap-program
4036 ("texlive-bin" ,texlive-bin)
4037 ("texlive-texmf" ,texlive-texmf)))
4038 (native-search-paths
4039 (list (search-path-specification
4040 (variable "TEXMFLOCAL")
4041 (files '("share/texmf-local")))))
4043 `(#:modules ((guix build utils))
4045 ;; Build the union of texlive-bin and texlive-texmf, but take the
4046 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
4048 (use-modules (guix build utils))
4049 (let ((out (assoc-ref %outputs "out"))
4050 (bin (assoc-ref %build-inputs "texlive-bin"))
4051 (texmf (assoc-ref %build-inputs "texlive-texmf"))
4052 (bash (assoc-ref %build-inputs "bash")))
4054 (with-directory-excursion out
4057 (symlink (string-append bin "/" name) name))
4060 (with-directory-excursion "bin"
4061 (setenv "PATH" (string-append bash "/bin"))
4064 (symlink name (basename name))
4068 (,(string-append texmf "/share/texmf-dist/web2c")))))
4069 (find-files (string-append bin "/bin/") "")))
4071 (with-directory-excursion "share"
4074 (symlink (string-append bin "/share/" name) name))
4075 '("info" "man" "tlpkg"))
4078 (symlink (string-append texmf "/share/" name) name))
4079 '("texmf-dist" "texmf-var"))))
4081 (synopsis "TeX Live, a package of the TeX typesetting system")
4083 "TeX Live provides a comprehensive TeX document production system.
4084 It includes all the major TeX-related programs, macro packages, and fonts
4085 that are free software, including support for many languages around the
4088 This package contains the complete TeX Live distribution.")
4089 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
4090 (home-page "https://www.tug.org/texlive/")))
4092 (define-public perl-text-bibtex
4094 (name "perl-text-bibtex")
4099 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
4103 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
4104 (build-system perl-build-system)
4107 (modify-phases %standard-phases
4108 (add-after 'unpack 'add-output-directory-to-rpath
4109 (lambda* (#:key outputs #:allow-other-keys)
4110 (substitute* "inc/MyBuilder.pm"
4112 (string-append "-Wl,-rpath="
4113 (assoc-ref outputs "out") "/lib " line)))
4115 (add-after 'unpack 'install-libraries-to-/lib
4116 (lambda* (#:key outputs #:allow-other-keys)
4117 (substitute* "Build.PL"
4121 `(("perl-capture-tiny" ,perl-capture-tiny)
4122 ("perl-config-autoconf" ,perl-config-autoconf)
4123 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4124 ("perl-module-build" ,perl-module-build)))
4125 (home-page "https://metacpan.org/release/Text-BibTeX")
4126 (synopsis "Interface to read and parse BibTeX files")
4127 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
4128 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
4129 at many different levels: you may work with BibTeX entries as simple field to
4130 string mappings, or get at the original form of the data as a list of simple
4131 values (strings, macros, or numbers) pasted together.")
4132 (license license:perl-license)))
4134 (define-public biber
4140 (uri (string-append "https://github.com/plk/biber/archive/v"
4142 (file-name (string-append name "-" version ".tar.gz"))
4145 "17wd80jg98qyddhvz4cin8779ycvppaf2va77r1lyvymjz6w9bx0"))))
4146 (build-system perl-build-system)
4149 (modify-phases %standard-phases
4150 (add-after 'install 'wrap-programs
4151 (lambda* (#:key outputs #:allow-other-keys)
4152 (let* ((out (assoc-ref outputs "out"))
4153 (perl5lib (getenv "PERL5LIB")))
4154 (wrap-program (string-append out "/bin/biber")
4155 `("PERL5LIB" ":" prefix
4156 (,(string-append perl5lib ":" out
4157 "/lib/perl5/site_perl")))))
4160 `(("perl-autovivification" ,perl-autovivification)
4161 ("perl-class-accessor" ,perl-class-accessor)
4162 ("perl-data-dump" ,perl-data-dump)
4163 ("perl-data-compare" ,perl-data-compare)
4164 ("perl-data-uniqid" ,perl-data-uniqid)
4165 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
4166 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
4167 ("perl-file-slurp" ,perl-file-slurp)
4168 ("perl-ipc-cmd" ,perl-ipc-cmd)
4169 ("perl-ipc-run3" ,perl-ipc-run3)
4170 ("perl-list-allutils" ,perl-list-allutils)
4171 ("perl-list-moreutils" ,perl-list-moreutils)
4172 ("perl-mozilla-ca" ,perl-mozilla-ca)
4173 ("perl-regexp-common" ,perl-regexp-common)
4174 ("perl-log-log4perl" ,perl-log-log4perl)
4175 ;; We cannot use perl-unicode-collate here, because otherwise the
4176 ;; hardcoded hashes in the tests would differ. See
4177 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
4178 ;;("perl-unicode-collate" ,perl-unicode-collate)
4179 ("perl-unicode-normalize" ,perl-unicode-normalize)
4180 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
4181 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
4182 ("perl-encode-jis2k" ,perl-encode-jis2k)
4183 ("perl-encode-hanextra" ,perl-encode-hanextra)
4184 ("perl-xml-libxml" ,perl-xml-libxml)
4185 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
4186 ("perl-xml-libxslt" ,perl-xml-libxslt)
4187 ("perl-xml-writer" ,perl-xml-writer)
4188 ("perl-sort-key" ,perl-sort-key)
4189 ("perl-text-csv" ,perl-text-csv)
4190 ("perl-text-csv-xs" ,perl-text-csv-xs)
4191 ("perl-text-roman" ,perl-text-roman)
4192 ("perl-uri" ,perl-uri)
4193 ("perl-text-bibtex" ,perl-text-bibtex)
4194 ("perl-libwww" ,perl-libwww)
4195 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4196 ("perl-business-isbn" ,perl-business-isbn)
4197 ("perl-business-issn" ,perl-business-issn)
4198 ("perl-business-ismn" ,perl-business-ismn)
4199 ("perl-lingua-translit" ,perl-lingua-translit)))
4201 `(("perl-config-autoconf" ,perl-config-autoconf)
4202 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4203 ("perl-module-build" ,perl-module-build)
4205 ("perl-file-which" ,perl-file-which)
4206 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
4207 ("perl-test-differences" ,perl-test-differences)))
4208 (home-page "http://biblatex-biber.sourceforge.net/")
4209 (synopsis "Backend for the BibLaTeX citation management tool")
4210 (description "Biber is a BibTeX replacement for users of biblatex. Among
4211 other things it comes with full Unicode support.")
4212 (license license:artistic2.0)))
4214 (define-public rubber
4220 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
4221 version "/+download/rubber-"
4223 (string-append "http://ebeffara.free.fr/pub/rubber-"
4224 version ".tar.gz")))
4227 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
4228 (build-system gnu-build-system)
4229 (arguments '(#:tests? #f)) ; no `check' target
4230 (inputs `(("texinfo" ,texinfo)
4231 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
4233 (home-page "https://launchpad.net/rubber")
4234 (synopsis "Wrapper for LaTeX and friends")
4236 "Rubber is a program whose purpose is to handle all tasks related to the
4237 compilation of LaTeX documents. This includes compiling the document itself,
4238 of course, enough times so that all references are defined, and running BibTeX
4239 to manage bibliographic references. Automatic execution of dvips to produce
4240 PostScript documents is also included, as well as usage of pdfLaTeX to produce
4242 (license license:gpl2+)))
4244 (define-public texmaker
4250 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
4251 version ".tar.bz2"))
4254 "056njk6j8wma23mlp7xa3rgfaxx0q8ynwx8wkmj7iy0b85p9ds9c"))))
4255 (build-system gnu-build-system)
4258 (modify-phases %standard-phases
4259 ;; Qt has its own configuration utility.
4261 (lambda* (#:key outputs #:allow-other-keys)
4262 (let ((out (assoc-ref outputs "out")))
4264 (string-append "PREFIX=" out)
4265 (string-append "DESKTOPDIR=" out
4266 "/share/applications")
4267 (string-append "ICONDIR=" out "/share/pixmaps")
4268 "texmaker.pro")))))))
4270 `(("poppler-qt5" ,poppler-qt5)
4272 ("qtscript" ,qtscript)
4273 ("qtwebkit" ,qtwebkit)
4276 `(("pkg-config" ,pkg-config)))
4277 (home-page "http://www.xm1math.net/texmaker/")
4278 (synopsis "LaTeX editor")
4279 (description "Texmaker is a program that integrates many tools needed to
4280 develop documents with LaTeX, in a single application.")
4281 (license license:gpl2+)))
4284 (define-public teximpatient
4286 (name "teximpatient")
4290 (uri (string-append "mirror://gnu/" name "/" name "-"
4294 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
4295 (build-system gnu-build-system)
4298 (modify-phases %standard-phases
4300 ;; Unfortunately some mistakes have been made in packaging.
4301 ;; Work around them here ...
4303 (lambda* (#:key inputs outputs #:allow-other-keys)
4304 (let ((srcdir "teximpatient-2.4"))
4305 (system* "tar" "-xzf" (assoc-ref inputs "source")
4306 (string-append "--one-top-level=" srcdir))
4307 (delete-file (string-append srcdir "/book.pdf"))
4310 (assoc-ref inputs "automake")
4313 (chdir srcdir)))))))
4315 `(("texlive" ,texlive)
4316 ("automake" ,automake)))
4317 (home-page "https://www.gnu.org/software/teximpatient/")
4318 (synopsis "Book on TeX, plain TeX and Eplain")
4319 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
4320 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
4322 (license license:fdl1.3+)))
4330 (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/2.2.x/"
4331 name "-" version ".tar.gz"))
4334 "0xvaz0i371nn2ndinc0d3ywj76ivb62649a4sdgwbivisiahd2fj"))
4335 (patches (search-patches "lyx-2.2.3-fix-test.patch"))
4336 (modules '((guix build utils)))
4339 (delete-file-recursively "3rdparty")
4341 (build-system cmake-build-system)
4343 `(#:configure-flags `("-DLYX_USE_QT=QT5"
4344 "-DLYX_EXTERNAL_BOOST=1"
4347 ,(string-append "-DLYX_INSTALL_PREFIX="
4348 (assoc-ref %outputs "out")
4349 ;; Exact name and level is necessary.
4352 (modify-phases %standard-phases
4353 (add-after 'unpack 'patch-python
4354 (lambda* (#:key inputs #:allow-other-keys)
4355 (substitute* '("src/support/os.cpp")
4358 (assoc-ref inputs "python-2")
4361 (add-after 'patch-python 'patch-installer
4362 (lambda* (#:key outputs #:allow-other-keys)
4363 (substitute* "CMakeLists.txt"
4364 (("/usr/local/man/man1")
4365 (string-append (assoc-ref outputs "out")
4366 "/share/man/man1")))
4368 (add-after 'patch-python 'patch-desktop-file
4369 (lambda* (#:key outputs #:allow-other-keys)
4370 (substitute* "lib/lyx.desktop.in"
4372 (string-append "Exec="
4373 (assoc-ref outputs "out")
4376 (add-before 'check 'setenv-check
4378 (setenv "LYX_DIR_22x" (string-append (getcwd) "/../lyx-"
4381 (add-after 'install 'install-symlinks
4382 (lambda* (#:key outputs #:allow-other-keys)
4383 (let ((out (assoc-ref outputs "out")))
4384 (mkdir-p (string-append out "/bin"))
4385 (symlink "../lyx2.2/bin/lyx2.2"
4386 (string-append out "/bin/lyx2.2"))
4390 ("hunspell" ,hunspell) ; Note: Could also use aspell instead.
4392 ("python-2" ,python-2)
4397 `(("texlive" ,texlive))) ; article.cls is in texmf-dist.
4399 `(("python-2" ,python-2)
4400 ("pkg-config" ,pkg-config)
4402 (home-page "https://www.lyx.org/")
4403 (synopsis "Document preparation system with GUI")
4404 (description "LyX is a document preparation system. It excels at letting
4405 you create complex technical and scientific articles with mathematics,
4406 cross-references, bibliographies, indexes, etc. It is very good for working
4407 with documents of any length in which the usual processing abilities are
4408 required: automatic sectioning and pagination, spell checking and so forth.")
4409 (license license:gpl2+)))
4411 (define-public texlive-latex-media9
4413 (name "texlive-latex-media9")
4414 (version (number->string %texlive-revision))
4418 (url (string-append "svn://www.tug.org/texlive/tags/"
4419 %texlive-tag "/Master/texmf-dist/"
4420 "/tex/latex/media9"))
4421 (revision %texlive-revision)))
4422 (file-name (string-append name "-" version "-checkout"))
4425 "01ysky8h8s6q12dxfahkzwhbkc9j5wl50xzcczy0cbjx9f6aj9kv"))))
4426 (build-system trivial-build-system)
4428 `(#:modules ((guix build utils))
4431 (use-modules (guix build utils))
4432 (let ((target (string-append (assoc-ref %outputs "out")
4433 "/share/texmf-dist/tex/latex/media9")))
4435 (copy-recursively (assoc-ref %build-inputs "source") target)
4437 (home-page "https://www.ctan.org/pkg/media9")
4438 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
4440 "The package provides an interface to embed interactive Flash (SWF) and 3D
4441 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
4442 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
4443 compatibility. Playback of multimedia files uses the built-in Flash Player of
4444 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
4445 supports the efficient H.264 codec for video compression.
4447 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
4448 specification. It replaces the now obsolete @code{movie15} package.")
4449 (license license:lppl)))
4451 (define-public texlive-latex-ocgx2
4453 (name "texlive-latex-ocgx2")
4454 (version (number->string %texlive-revision))
4458 (url (string-append "svn://www.tug.org/texlive/tags/"
4459 %texlive-tag "/Master/texmf-dist/"
4460 "/tex/latex/ocgx2"))
4461 (revision %texlive-revision)))
4462 (file-name (string-append name "-" version "-checkout"))
4465 "12kkl7n534j0p4frwyrlw22dc3ik50kxv97cxp4xpmji13m0hxpf"))))
4466 (build-system trivial-build-system)
4468 `(#:modules ((guix build utils))
4471 (use-modules (guix build utils))
4472 (let ((target (string-append (assoc-ref %outputs "out")
4473 "/share/texmf-dist/tex/latex/ogcx2")))
4475 (copy-recursively (assoc-ref %build-inputs "source") target)
4477 (home-page "https://www.ctan.org/pkg/ocgx2")
4478 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
4480 "This package provides OCG (Optional Content Groups) support within a PDF
4483 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
4484 @code{ocg-p} packages and adds support for all known engines and back-ends
4488 @item LaTeX → dvips → @code{ps2pdf}/Distiller
4489 @item (Xe)LaTeX(x) → @code{dvipdfmx}
4490 @item pdfLaTeX and LuaLaTeX .
4493 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
4494 (license license:lppl)))