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, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
10 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
11 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
12 ;;; Copyright © 2017, 2018 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/2018/texlive-20180414-extra.tar.xz")
81 "0a83kymxc8zmlxjb0y1gf6mx7qnf0hxffwkivwh5yh138y2rfhsv"))))
83 (define texlive-texmf-src
86 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-texmf.tar.xz")
88 "1b8zigzg8raxkhhzphcmynf84rbdbj2ym2qkz24v8n0qx82zmqms"))))
90 (define-public texlive-bin
97 (uri (string-append "ftp://tug.org/historic/systems/texlive/2018/"
98 "texlive-" version "-source.tar.xz"))
101 "0khyi6h015r2zfqgg0a44a2j7vmr1cy42knw7jbss237yvakc07y"))
104 ;; This is required for compatibility with Poppler 0.64.0 and to fix a
105 ;; segmentation fault in dvipdfm-x from XeTeX.
108 (uri (string-append "http://www.linuxfromscratch.org/patches/blfs/"
109 "svn/texlive-" version "-source-upstream_fixes-1.patch"))
110 (file-name "texlive-poppler-compat.patch")
113 "0f8vhyj167y4xj0jx47vkybrcacfpxw0wdn1b777yq3xmhlahhlg")))))))
114 (build-system gnu-build-system)
116 `(("texlive-extra-src" ,texlive-extra-src)
118 ("fontconfig" ,fontconfig)
119 ("fontforge" ,fontforge)
120 ("freetype" ,freetype)
123 ("ghostscript" ,ghostscript)
124 ("graphite2" ,graphite2)
125 ("harfbuzz" ,harfbuzz)
127 ("libpaper" ,libpaper)
136 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
141 ("zziplib" ,zziplib)))
143 `(("pkg-config" ,pkg-config)))
145 `(#:out-of-source? #t
147 `("--disable-native-texlive-build"
148 ;; XXX: This is needed because recent Poppler requires C++11 or later.
149 ;; Remove after switch to GCC >= 6.
150 "CXXFLAGS=-std=gnu++11"
151 "--with-system-cairo"
152 "--with-system-freetype2"
155 "--with-system-graphite2"
156 "--with-system-harfbuzz"
158 "--with-system-libgs"
159 "--with-system-libpaper"
160 "--with-system-libpng"
162 "--with-system-pixman"
163 "--with-system-poppler"
164 "--with-system-potrace"
165 "--with-system-teckit"
168 "--with-system-zziplib")
170 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
171 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
172 #:tests? ,(let ((s (or (%current-target-system)
174 (not (or (string-prefix? "aarch64" s)
175 (string-prefix? "mips64" s))))
177 (modify-phases %standard-phases
178 (add-after 'unpack 'configure-ghostscript-executable
179 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
180 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
181 ;; checking for the existence of the /usr/bin directory. Since
182 ;; GuixSD does not have /usr/bin, it is also detected as Windows.
183 (lambda* (#:key inputs #:allow-other-keys)
184 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
186 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
188 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
190 (add-after 'unpack 'use-code-for-new-poppler
192 (copy-file "texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc"
193 "texk/web2c/pdftexdir/pdftoepdf.cc")
194 (copy-file "texk/web2c/pdftexdir/pdftosrc-newpoppler.cc"
195 "texk/web2c/pdftexdir/pdftosrc.cc")
197 (add-after 'unpack 'disable-failing-test
199 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
200 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
201 (substitute* "texk/web2c/omegafonts/check.test"
202 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
203 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))
205 (add-after 'install 'postint
206 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
207 (let* ((out (assoc-ref outputs "out"))
208 (share (string-append out "/share"))
209 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
210 (unpack (assoc-ref %standard-phases 'unpack))
211 (patch-source-shebangs
212 (assoc-ref %standard-phases 'patch-source-shebangs)))
213 ;; Create symbolic links for the latex variants and their
215 (with-directory-excursion (string-append out "/bin/")
217 '("pdftex" "pdftex" "xetex" "luatex")
218 '("latex" "pdflatex" "xelatex" "lualatex")))
219 (with-directory-excursion (string-append share "/man/man1/")
220 (symlink "luatex.1" "lualatex.1"))
221 ;; Unpack texlive-extra and install tlpkg.
222 (mkdir "texlive-extra")
223 (with-directory-excursion "texlive-extra"
224 (apply unpack (list #:source texlive-extra))
225 (apply patch-source-shebangs (list #:source texlive-extra))
226 (invoke "mv" "tlpkg" share))
227 ;; texlua shebangs are not patched by the patch-source-shebangs
228 ;; phase because the texlua executable does not exist at that
230 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
231 (with-directory-excursion out
232 (patch-source-shebangs))))))))
234 (list (search-path-specification
236 (files '("share/texmf-dist"))
238 (search-path-specification
239 (variable "TEXMFCNF")
240 (files '("share/texmf-dist/web2c"))
242 (synopsis "TeX Live, a package of the TeX typesetting system")
244 "TeX Live provides a comprehensive TeX document production system.
245 It includes all the major TeX-related programs, macro packages, and fonts
246 that are free software, including support for many languages around the
249 This package contains the binaries.")
250 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
251 (home-page "https://www.tug.org/texlive/")))
253 (define-public texlive-dvips
255 (name "texlive-dvips")
256 (version (number->string %texlive-revision))
260 (url (string-append "svn://www.tug.org/texlive/tags/"
261 %texlive-tag "/Master/texmf-dist/"
263 (revision %texlive-revision)))
264 (file-name (string-append name "-" version "-checkout"))
267 "1ky6wc173jhf0b33lhyb4r3bx1d4bmiqkn6y1hxn92kwjdzl42p7"))))
268 (build-system trivial-build-system)
270 `(#:modules ((guix build utils))
273 (use-modules (guix build utils))
274 (let* ((root (string-append (assoc-ref %outputs "out")
275 "/share/texmf-dist"))
276 (dvips (string-append root "/dvips"))
277 (maps (string-append root "/fonts/map/dvips"))
278 (encs (string-append root "/fonts/enc/dvips/base")))
280 (copy-recursively (assoc-ref %build-inputs "source") dvips)
282 (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps)
284 (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs)
291 (url (string-append "svn://www.tug.org/texlive/tags/"
292 %texlive-tag "/Master/texmf-dist/"
294 (revision %texlive-revision)))
295 (file-name (string-append "dvips-font-maps-" version "-checkout"))
298 "0nxvfbb5vsvakiw0iviicghdc2sxk05cj056ilqnpa62fffc36a6"))))
303 (url (string-append "svn://www.tug.org/texlive/tags/"
304 %texlive-tag "/Master/texmf-dist/"
305 "/fonts/enc/dvips/base"))
306 (revision %texlive-revision)))
307 (file-name (string-append "dvips-base-enc-" version "-checkout"))
310 "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy"))))))
311 (home-page "https://www.ctan.org/pkg/dvips")
312 (synopsis "DVI to PostScript drivers")
313 (description "This package provides files needed for converting DVI files
315 ;; Various free software licenses apply to individual files.
316 (license (list license:lppl1.3c+
320 (define-public texlive-generic-unicode-data
322 (name "texlive-generic-unicode-data")
323 (version (number->string %texlive-revision))
327 (url (string-append "svn://www.tug.org/texlive/tags/"
328 %texlive-tag "/Master/texmf-dist/"
329 "/tex/generic/unicode-data"))
330 (revision %texlive-revision)))
331 (file-name (string-append name "-" version "-checkout"))
334 "0r1v16jyfpz6dwqsgm6b9jcj4kf2pkzc9hg07s6fx9g8ba8qglih"))))
335 (build-system trivial-build-system)
337 `(#:modules ((guix build utils))
340 (use-modules (guix build utils))
341 (let ((target (string-append (assoc-ref %outputs "out")
342 "/share/texmf-dist/tex/generic/unicode-data")))
344 (copy-recursively (assoc-ref %build-inputs "source") target)
346 (home-page "https://www.ctan.org/pkg/unicode-data")
347 (synopsis "Unicode data and loaders for TeX")
348 (description "This bundle provides generic access to Unicode Consortium
349 data for TeX use. It contains a set of text files provided by the Unicode
350 Consortium which are currently all from Unicode 8.0.0, with the exception of
351 @code{MathClass.txt} which is not currently part of the Unicode Character
352 Database. Accompanying these source data are generic TeX loader files
353 allowing this data to be used as part of TeX runs, in particular in building
354 format files. Currently there are two loader files: one for general character
355 set up and one for initializing XeTeX character classes as has been carried
356 out to date by @code{unicode-letters.tex}. ")
357 (license license:lppl1.3c+)))
359 (define-public texlive-generic-dehyph-exptl
361 (name "texlive-generic-dehyph-exptl")
362 (version (number->string %texlive-revision))
366 (url (string-append "svn://www.tug.org/texlive/tags/"
367 %texlive-tag "/Master/texmf-dist/"
368 "/tex/generic/dehyph-exptl"))
369 (revision %texlive-revision)))
370 (file-name (string-append name "-" version "-checkout"))
373 "03yj1di9py92drp6gpfva6q69vk2iixr79r7cp7ja570s3pr0m33"))))
374 (build-system trivial-build-system)
376 `(#:modules ((guix build utils))
379 (use-modules (guix build utils))
380 (let ((target (string-append (assoc-ref %outputs "out")
381 "/share/texmf-dist/tex/generic/dehyph-exptl")))
383 (copy-recursively (assoc-ref %build-inputs "source") target)
385 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
386 (synopsis "Hyphenation patterns for German")
387 (description "The package provides experimental hyphenation patterns for
388 the German language, covering both traditional and reformed orthography. The
389 patterns can be used with packages Babel and hyphsubst from the Oberdiek
391 ;; Hyphenation patterns are under the Expat license; documentation is
393 (license (list license:expat license:lppl))))
395 (define-public texlive-generic-tex-ini-files
397 (name "texlive-generic-tex-ini-files")
398 (version (number->string %texlive-revision))
402 (url (string-append "svn://www.tug.org/texlive/tags/"
403 %texlive-tag "/Master/texmf-dist/"
404 "/tex/generic/tex-ini-files"))
405 (revision %texlive-revision)))
406 (file-name (string-append name "-" version "-checkout"))
409 "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5"))))
410 (build-system trivial-build-system)
412 `(#:modules ((guix build utils))
415 (use-modules (guix build utils))
416 (let ((target (string-append (assoc-ref %outputs "out")
417 "/share/texmf-dist/tex/generic/tex-ini-files")))
419 (copy-recursively (assoc-ref %build-inputs "source") target)
421 (home-page "https://www.ctan.org/pkg/tex-ini-files")
422 (synopsis "Files for creating TeX formats")
423 (description "This bundle provides a collection of model \".ini\" files
424 for creating TeX formats. These files are commonly used to introduced
425 distribution-dependent variations in formats. They are also used to
426 allow existing format source files to be used with newer engines, for example
427 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
428 (license license:public-domain)))
430 (define-public texlive-generic-hyph-utf8
432 (name "texlive-generic-hyph-utf8")
433 (version (number->string %texlive-revision))
437 (url (string-append "svn://www.tug.org/texlive/tags/"
438 %texlive-tag "/Master/texmf-dist/"
439 "/tex/generic/hyph-utf8"))
440 (revision %texlive-revision)))
441 (file-name (string-append name "-" version "-checkout"))
444 "1alnn9cd60m2c12vym9f9q22ap1ngywxpkjl9dk472why44g1dmy"))))
445 (build-system trivial-build-system)
447 `(#:modules ((guix build utils))
450 (use-modules (guix build utils))
451 (let ((target (string-append (assoc-ref %outputs "out")
452 "/share/texmf-dist/tex/generic/hyph-utf8")))
454 (copy-recursively (assoc-ref %build-inputs "source") target)
456 (home-page "https://ctan.org/pkg/hyph-utf8")
457 (synopsis "Hyphenation patterns expressed in UTF-8")
458 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
459 hyphenation patterns in UTF-8 format, whereas older systems require
460 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
461 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
462 etc). The present package offers a collection of conversions of existing
463 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
464 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
465 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
466 converters, will completely supplant the older patterns.")
467 ;; Individual files each have their own license. Most of these files are
468 ;; independent hyphenation patterns.
469 (license (list license:lppl1.0+
484 license:public-domain
487 (define-public texlive-metafont-base
489 (name "texlive-metafont-base")
490 (version (number->string %texlive-revision))
494 (url (string-append "svn://www.tug.org/texlive/tags/"
495 %texlive-tag "/Master/texmf-dist/"
497 (revision %texlive-revision)))
498 (file-name (string-append name "-" version "-checkout"))
501 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
502 (build-system gnu-build-system)
504 `(#:tests? #f ; no test target
506 (modify-phases %standard-phases
509 (lambda* (#:key inputs #:allow-other-keys)
510 (let ((cwd (getcwd)))
512 (string-append cwd "/base:"
519 (with-directory-excursion "build"
520 (invoke "inimf" "mf.mf"))))
522 (lambda* (#:key outputs #:allow-other-keys)
523 (let* ((out (assoc-ref outputs "out"))
524 (base (string-append out "/share/texmf-dist/web2c"))
525 (mf (string-append out "/share/texmf-dist/metafont/base")))
528 (install-file "build/mf.base" base)
529 (copy-recursively "base" mf)
532 `(("texlive-bin" ,texlive-bin)))
533 (home-page "https://www.ctan.org/pkg/metafont")
534 (synopsis "Metafont base files")
535 (description "This package provides the Metafont base files needed to
536 build fonts using the Metafont system.")
537 (license license:knuth)))
539 (define-public texlive-fontname
541 (name "texlive-fontname")
542 (version (number->string %texlive-revision))
546 (url (string-append "svn://www.tug.org/texlive/tags/"
547 %texlive-tag "/Master/texmf-dist/"
548 "/fonts/map/fontname"))
549 (revision %texlive-revision)))
550 (file-name (string-append name "-" version "-checkout"))
553 "05rbn7z30xawd3n6w7c3ijp2yc67ga220jgqmkla9pd9wx185rzq"))))
554 (build-system trivial-build-system)
556 `(#:modules ((guix build utils))
559 (use-modules (guix build utils))
560 (let ((target (string-append (assoc-ref %outputs "out")
561 "/share/texmf-dist/fonts/map/fontname")))
563 (copy-recursively (assoc-ref %build-inputs "source") target)
565 (home-page "https://www.ctan.org/pkg/fontname")
566 (synopsis "Scheme for naming fonts in TeX")
567 (description "This is Fontname, a naming scheme for (the base part of)
568 external TeX font filenames. This makes at most eight-character names
569 from (almost) arbitrarily complex font names, thus helping portability of TeX
571 (license license:public-domain)))
573 (define-public texlive-fonts-cm
575 (name "texlive-fonts-cm")
576 (version (number->string %texlive-revision))
580 (url (string-append "svn://www.tug.org/texlive/tags/"
581 %texlive-tag "/Master/texmf-dist/"
582 "/fonts/source/public/cm"))
583 (revision %texlive-revision)))
584 (file-name (string-append name "-" version "-checkout"))
587 "0vfjhidr9pha613h8mfhnpcpvld6ahdfb449918fpsfs93cppkyj"))))
588 (build-system gnu-build-system)
590 `(#:modules ((guix build gnu-build-system)
594 #:tests? #f ; no tests
596 (modify-phases %standard-phases
599 (lambda* (#:key inputs #:allow-other-keys)
600 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
601 ;; Tell mf where to find mf.base
602 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
603 ;; Tell mf where to look for source files
605 (string-append (getcwd) ":"
606 mf "/share/texmf-dist/metafont/base")))
608 (for-each (lambda (font)
609 (format #t "building font ~a\n" font)
610 (invoke "mf" "-progname=mf"
611 "-output-directory=build"
617 (basename font ".mf"))))
618 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))
621 (lambda* (#:key inputs outputs #:allow-other-keys)
622 (let* ((out (assoc-ref outputs "out"))
624 out "/share/texmf-dist/fonts/tfm/public/cm"))
626 out "/share/texmf-dist/fonts/source/public/cm"))
627 (type1 (string-append
628 out "/share/texmf-dist/fonts/type1/public/amsfonts/cm")))
629 (for-each (cut install-file <> tfm)
630 (find-files "build" "\\.*"))
631 (for-each (cut install-file <> mf)
632 (find-files "." "\\.mf"))
634 (copy-recursively (assoc-ref inputs "cm-type1") type1)
637 `(("texlive-bin" ,texlive-bin)
638 ("texlive-metafont-base" ,texlive-metafont-base)
643 (url (string-append "svn://www.tug.org/texlive/tags/"
644 %texlive-tag "/Master/texmf-dist/"
645 "/fonts/type1/public/amsfonts/cm"))
646 (revision %texlive-revision)))
647 (file-name (string-append name "-type1-" version "-checkout"))
650 "12jyl9jp3hidifa4l5pmi47p71d5mb5kj5rknxkygilix8yz2iy6"))))))
651 (home-page "https://www.ctan.org/pkg/cm")
652 (synopsis "Computer Modern fonts for TeX")
653 (description "This package provides the Computer Modern fonts by Donald
654 Knuth. The Computer Modern font family is a large collection of text,
655 display, and mathematical fonts in a range of styles, based on Monotype Modern
657 (license license:knuth)))
659 (define-public texlive-fonts-knuth-lib
661 (name "texlive-fonts-knuth-lib")
662 (version (number->string %texlive-revision))
666 (url (string-append "svn://www.tug.org/texlive/tags/"
667 %texlive-tag "/Master/texmf-dist/"
668 "/fonts/source/public/knuth-lib"))
669 (revision %texlive-revision)))
670 (file-name (string-append name "-" version "-checkout"))
673 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
674 (build-system gnu-build-system)
676 `(#:modules ((guix build gnu-build-system)
679 #:tests? #f ; no tests
681 (modify-phases %standard-phases
684 (lambda* (#:key inputs #:allow-other-keys)
685 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
686 ;; Tell mf where to find mf.base
688 (string-append mf "/share/texmf-dist/web2c"))
689 ;; Tell mf where to look for source files
691 (string-append (getcwd) ":"
692 mf "/share/texmf-dist/metafont/base")))
694 (invoke "mf" "-progname=mf"
695 "-output-directory=build"
702 (lambda* (#:key outputs #:allow-other-keys)
703 (let* ((out (assoc-ref outputs "out"))
705 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
707 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
708 (for-each (cut install-file <> tfm)
709 (find-files "build" "\\.*"))
710 (for-each (cut install-file <> mf)
711 (find-files "." "\\.mf"))
714 `(("texlive-bin" ,texlive-bin)
715 ("texlive-metafont-base" ,texlive-metafont-base)))
716 (home-page "https://www.ctan.org/pkg/knuth-lib")
717 (synopsis "Small library of METAFONT sources")
718 (description "This is a collection of core TeX and METAFONT macro files
719 from Donald Knuth, including the plain format, plain base, and the MF logo
721 (license license:knuth)))
723 (define-public texlive-fonts-latex
725 (name "texlive-fonts-latex")
726 (version (number->string %texlive-revision))
730 (url (string-append "svn://www.tug.org/texlive/tags/"
731 %texlive-tag "/Master/texmf-dist/"
732 "/fonts/source/public/latex-fonts"))
733 (revision %texlive-revision)))
734 (file-name (string-append name "-" version "-checkout"))
737 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
738 (build-system gnu-build-system)
740 `(#:modules ((guix build gnu-build-system)
744 #:tests? #f ; no tests
746 (modify-phases %standard-phases
749 (lambda* (#:key inputs #:allow-other-keys)
750 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
751 ;; Tell mf where to find mf.base
752 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
753 ;; Tell mf where to look for source files
755 (string-append (getcwd) ":"
756 mf "/share/texmf-dist/metafont/base:"
757 (assoc-ref inputs "texlive-fonts-cm")
758 "/share/texmf-dist/fonts/source/public/cm")))
760 (for-each (lambda (font)
761 (format #t "building font ~a\n" font)
762 (invoke "mf" "-progname=mf"
763 "-output-directory=build"
769 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
770 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
771 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
772 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
776 (lambda* (#:key outputs #:allow-other-keys)
777 (let* ((out (assoc-ref outputs "out"))
779 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
781 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
782 (for-each (cut install-file <> tfm)
783 (find-files "build" "\\.*"))
784 (for-each (cut install-file <> mf)
785 (find-files "." "\\.mf"))
788 `(("texlive-bin" ,texlive-bin)
789 ("texlive-metafont-base" ,texlive-metafont-base)
790 ("texlive-fonts-cm" ,texlive-fonts-cm)))
791 (home-page "https://www.ctan.org/pkg/latex-fonts")
792 (synopsis "Collection of fonts used in LaTeX distributions")
793 (description "This is a collection of fonts for use with standard LaTeX
794 packages and classes. It includes invisible fonts (for use with the slides
795 class), line and circle fonts (for use in the picture environment) and LaTeX
797 (license license:lppl1.2+)))
799 (define-public texlive-fonts-amsfonts
801 (name "texlive-fonts-amsfonts")
802 (version (number->string %texlive-revision))
806 (url (string-append "svn://www.tug.org/texlive/tags/"
807 %texlive-tag "/Master/texmf-dist/"
808 "/fonts/source/public/amsfonts"))
809 (revision %texlive-revision)))
810 (file-name (string-append name "-" version "-checkout"))
813 "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
814 (build-system gnu-build-system)
816 `(#:modules ((guix build gnu-build-system)
820 #:tests? #f ; no tests
822 (modify-phases %standard-phases
825 (lambda* (#:key inputs #:allow-other-keys)
826 (let ((mf (assoc-ref inputs "texlive-metafont-base"))
828 ;; Make METAFONT reproducible
829 (setenv "SOURCE_DATE_EPOCH" "1")
830 ;; Tell mf where to find mf.base
831 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
832 ;; Tell mf where to look for source files
834 (string-append cwd ":"
839 mf "/share/texmf-dist/metafont/base:"
840 (assoc-ref inputs "texlive-fonts-cm")
841 "/share/texmf-dist/fonts/source/public/cm")))
843 (for-each (lambda (font)
844 (format #t "building font ~a\n" (basename font ".mf"))
845 (with-directory-excursion (dirname font)
846 (invoke "mf" "-progname=mf"
847 "-output-directory=../build"
854 (basename font ".mf")))))
855 (find-files "." "[0-9]+\\.mf$"))
858 (lambda* (#:key outputs #:allow-other-keys)
859 (let* ((out (assoc-ref outputs "out"))
861 out "/share/texmf-dist/fonts/tfm/public/amsfonts"))
863 out "/share/texmf-dist/fonts/source/public/amsfonts")))
864 (for-each (cut install-file <> tfm)
865 (find-files "build" "\\.*"))
866 (for-each (cut install-file <> mf)
867 (find-files "." "\\.mf"))
870 `(("texlive-fonts-cm" ,texlive-fonts-cm)
871 ("texlive-metafont-base" ,texlive-metafont-base)
872 ("texlive-bin" ,texlive-bin)))
873 (home-page "https://www.ctan.org/pkg/amsfonts")
874 (synopsis "TeX fonts from the American Mathematical Society")
876 "This package provides an extended set of fonts for use in mathematics,
877 including: extra mathematical symbols; blackboard bold letters (uppercase
878 only); fraktur letters; subscript sizes of bold math italic and bold Greek
879 letters; subscript sizes of large symbols such as sum and product; added sizes
880 of the Computer Modern small caps font; cyrillic fonts (from the University of
881 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
882 files, and all except the Euler fonts are provided as Metafont source. The
883 distribution also includes the canonical Type 1 versions of the Computer
884 Modern family of fonts. The Euler fonts are supported by separate packages;
885 details can be found in the documentation.")
886 (license license:silofl1.1)))
888 (define-public texlive-latex-amsfonts
890 (name "texlive-latex-amsfonts")
891 (version (number->string %texlive-revision))
894 (uri (texlive-ref "latex" "amsfonts"))
895 (file-name (string-append name "-" version "-checkout"))
898 "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
899 (build-system texlive-build-system)
900 (arguments '(#:tex-directory "latex/amsfonts"))
902 `(("texlive-fonts-cm" ,texlive-fonts-cm)
903 ("texlive-metafont-base" ,texlive-metafont-base)))
904 (home-page "https://www.ctan.org/pkg/amsfonts")
905 (synopsis "TeX fonts from the American Mathematical Society")
907 "This package provides basic LaTeX support for the symbol fonts provides
908 by the amsfonts package. It provides @code{amsfonts.sty}, with names of
909 individual symbols defined in @code{amssymb.sty}.")
910 (license license:silofl1.1)))
912 ;; This provides etex.src which is needed to build various formats, including
913 ;; luatex.fmt and pdflatex.fmt
914 (define-public texlive-tex-plain
916 (name "texlive-tex-plain")
917 (version (number->string %texlive-revision))
921 (url (string-append "svn://www.tug.org/texlive/tags/"
922 %texlive-tag "/Master/texmf-dist/"
924 (revision %texlive-revision)))
925 (file-name (string-append name "-" version "-checkout"))
928 "1xknlb3gcw6jjqh97bhghxi594bzpj1zfzzfsrr9pvr9s1bx7dnf"))))
929 (build-system trivial-build-system)
931 `(#:modules ((guix build utils))
934 (use-modules (guix build utils))
935 (let ((target (string-append (assoc-ref %outputs "out")
936 "/share/texmf-dist/tex/plain")))
938 (copy-recursively (assoc-ref %build-inputs "source") target)
940 (home-page "https://www.ctan.org/pkg/plain")
941 (synopsis "Plain TeX format and supporting files")
943 "Contains files used to build the Plain TeX format, as described in the
944 TeXbook, together with various supporting files (some also discussed in the
946 (license license:knuth)))
948 (define-public texlive-latex-base
954 (url (string-append "svn://www.tug.org/texlive/tags/"
955 %texlive-tag "/Master/texmf-dist/"
957 (revision %texlive-revision)))
958 (file-name (string-append "texlive-generic-"
960 (string-drop-right dir 1) #\/))
961 "-" (number->string %texlive-revision)
963 (sha256 (base32 hash))))))
965 (name "texlive-latex-base")
966 (version (number->string %texlive-revision))
969 (uri (texlive-ref "latex" "base"))
970 (file-name (string-append name "-" version "-checkout"))
973 "17bqrzzjz16k52sc7ydl4vw7ddy2z3g0p1xsk2c35h1ynq9h3wwm"))))
974 (build-system gnu-build-system)
976 `(#:modules ((guix build gnu-build-system)
981 #:tests? #f ; no tests
983 (modify-phases %standard-phases
986 (lambda* (#:key inputs #:allow-other-keys)
987 ;; Find required fonts
989 (string-append (assoc-ref inputs "texlive-fonts-cm")
990 "/share/texmf-dist/fonts/tfm/public/cm:"
991 (assoc-ref inputs "texlive-fonts-latex")
992 "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
993 (assoc-ref inputs "texlive-fonts-knuth-lib")
994 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
1000 (append-map (match-lambda
1004 (eq? 'directory (stat:type stat)))
1010 ;; Create an empty texsys.cfg, because latex.ltx wants to include
1011 ;; it. This file must exist and it's fine if it's empty.
1012 (with-output-to-file "texsys.cfg"
1013 (lambda _ (format #t "%")))
1017 (invoke "luatex" "-ini" "-interaction=batchmode"
1018 "-output-directory=build" "unpack.ins")
1019 (invoke "tex" "-ini" "-interaction=batchmode"
1020 "-output-directory=web2c" "tex.ini")
1021 ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
1022 ;; is enabled only in extended mode (activated with a
1023 ;; leading asterisk). We should not use luatex here,
1024 ;; because that would make the generated format files
1025 ;; incompatible with any other TeX engine.
1026 (for-each (lambda (format)
1027 (invoke "latex" "-ini" "-interaction=batchmode"
1028 "-output-directory=web2c"
1029 "-translate-file=cp227.tcx"
1030 (string-append "*" format ".ini")))
1034 (for-each (lambda (format)
1035 (invoke format "-ini" "-interaction=batchmode"
1036 "-output-directory=web2c"
1037 (string-append "*" format ".ini")))
1040 (for-each (lambda (format)
1041 (invoke "luatex" "-ini" "-interaction=batchmode"
1042 "-output-directory=web2c"
1043 (string-append format ".ini")))
1044 '("dviluatex" "dvilualatex" "luatex" "lualatex"))
1047 (lambda* (#:key inputs outputs #:allow-other-keys)
1048 (let* ((out (assoc-ref outputs "out"))
1049 (target (string-append
1050 out "/share/texmf-dist/tex/latex/base"))
1051 (web2c (string-append
1052 out "/share/texmf-dist/web2c"))
1053 (support-files (assoc-ref inputs "texlive-latex-base-support-files")))
1056 (for-each delete-file (find-files "." "\\.(log|aux)$"))
1057 (for-each (cut install-file <> target)
1058 (find-files "build" ".*"))
1059 (for-each (cut install-file <> web2c)
1060 (find-files "web2c" ".*"))
1061 ;; pdftex is really just the same as pdfetex, but since it
1062 ;; doesn't have its own format file, we need to copy it.
1063 (copy-file "web2c/pdfetex.fmt"
1064 (string-append web2c "/pdftex.fmt"))
1065 ;; "source" is missing the support files as per doc/latex/base/manifest.txt.
1066 ;; FIXME: We are probably not packaging this right.
1067 (for-each (lambda (file)
1069 (string-append support-files "/" file)
1071 '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex"
1072 "lablst.tex" "testpage.tex" "ltxcheck.tex"))
1073 ;; Install configurations
1075 (assoc-ref inputs "texlive-latex-latexconfig")
1076 (string-append out "/share/texmf-dist/tex/latex/latexconfig"))
1078 (assoc-ref inputs "texlive-generic-config")
1079 (string-append out "/share/texmf-dist/tex/generic/config"))
1081 (assoc-ref inputs "texlive-generic-hyphen")
1082 (string-append out "/share/texmf-dist/tex/generic/hyphen"))
1084 (assoc-ref inputs "texlive-generic-ruhyphen")
1085 (string-append out "/share/texmf-dist/tex/generic/ruhyphen"))
1087 (assoc-ref inputs "texlive-generic-ukrhyph")
1088 (string-append out "/share/texmf-dist/tex/generic/ukrhyph"))
1091 `(("texlive-bin" ,texlive-bin)
1092 ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
1093 ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
1094 ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
1095 ("texlive-latex-latexconfig"
1096 ,(texlive-dir "tex/latex/latexconfig/"
1097 "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
1098 ("texlive-generic-hyphen"
1099 ,(texlive-dir "tex/generic/hyphen/"
1100 "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
1101 ("texlive-generic-ruhyphen"
1102 ,(texlive-dir "tex/generic/ruhyphen/"
1103 "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
1104 ("texlive-generic-ukrhyph"
1105 ,(texlive-dir "tex/generic/ukrhyph/"
1106 "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
1107 ("texlive-generic-config"
1108 ,(texlive-dir "tex/generic/config/"
1109 "1v90iihy112q93zdpblpdk8zv8rf99fgslsg06s1sxm27zjm9nap"))
1110 ("texlive-latex-base-support-files"
1114 (url (string-append "svn://www.tug.org/texlive/tags/"
1115 %texlive-tag "/Master/texmf-dist/"
1117 (revision %texlive-revision)))
1118 (file-name (string-append name "-" version "-checkout"))
1121 "18wy8dlcw8adl6jzqwbg54pdwlhs8hilnfvqbw6ikj6y3zhqkj7q"))))
1122 ("texlive-tex-plain" ,texlive-tex-plain)
1123 ("texlive-fonts-cm" ,texlive-fonts-cm)
1124 ("texlive-fonts-latex" ,texlive-fonts-latex)
1125 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
1127 `(("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)))
1128 (home-page "https://www.ctan.org/pkg/latex-base")
1129 (synopsis "Base sources of LaTeX")
1131 "This bundle comprises the source of LaTeX itself, together with several
1132 packages which are considered \"part of the kernel\". This bundle, together
1133 with the required packages, constitutes what every LaTeX distribution should
1135 (license license:lppl1.3c+))))
1137 (define-public texlive-latex-filecontents
1139 (name "texlive-latex-filecontents")
1140 (version (number->string %texlive-revision))
1143 (uri (texlive-ref "latex" "filecontents"))
1144 (file-name (string-append name "-" version "-checkout"))
1147 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
1148 (build-system texlive-build-system)
1149 (arguments '(#:tex-directory "latex/filecontents"))
1150 (home-page "https://www.ctan.org/pkg/filecontents")
1151 (synopsis "Extended filecontents and filecontents* environments")
1153 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
1154 enable a LaTeX source file to generate external files as it runs through
1155 LaTeX. However, there are two limitations of these environments: they refuse
1156 to overwrite existing files, and they can only be used in the preamble of a
1157 document. The filecontents package removes these limitations, letting you
1158 overwrite existing files and letting you use @code{filecontents} /
1159 @code{filecontents*} anywhere.")
1160 (license license:lppl1.3c+)))
1162 (define-public texlive-generic-ifxetex
1164 (name "texlive-generic-ifxetex")
1165 (version (number->string %texlive-revision))
1168 (uri (texlive-ref "generic" "ifxetex"))
1169 (file-name (string-append name "-" version "-checkout"))
1172 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
1173 (build-system texlive-build-system)
1175 '(#:tex-directory "generic/ifxetex"
1176 #:tex-format "xelatex"))
1178 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
1179 (home-page "https://www.ctan.org/pkg/ifxetex")
1180 (synopsis "Am I running under XeTeX?")
1182 "This is a simple package which provides an @code{\\ifxetex} conditional,
1183 so that other code can determine that it is running under XeTeX. The package
1184 requires the e-TeX extensions to the TeX primitive set.")
1185 (license license:lppl1.3c+)))
1187 (define-public texlive-generic-epsf
1189 (name "texlive-generic-epsf")
1190 (version (number->string %texlive-revision))
1194 (url (string-append "svn://www.tug.org/texlive/tags/"
1195 %texlive-tag "/Master/texmf-dist/"
1196 "/tex/generic/epsf"))
1197 (revision %texlive-revision)))
1198 (file-name (string-append name "-" version "-checkout"))
1201 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
1202 (build-system trivial-build-system)
1204 `(#:modules ((guix build utils))
1207 (use-modules (guix build utils))
1208 (let ((target (string-append (assoc-ref %outputs "out")
1209 "/share/texmf-dist/tex/generic/epfs")))
1211 (copy-recursively (assoc-ref %build-inputs "source") target)
1213 (home-page "https://www.ctan.org/pkg/epsf")
1214 (synopsis "Simple macros for EPS inclusion")
1216 "This package provides the original (and now obsolescent) graphics
1217 inclusion macros for use with dvips, still widely used by Plain TeX users (in
1218 particular). For LaTeX users, the package is nowadays (rather strongly)
1219 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
1220 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
1221 users, via its Plain TeX version.)")
1222 (license license:public-domain)))
1224 (define-public texlive-latex-fancyvrb
1226 (name "texlive-latex-fancyvrb")
1227 (version (number->string %texlive-revision))
1230 (uri (texlive-ref "latex" "fancyvrb"))
1231 (file-name (string-append name "-" version "-checkout"))
1234 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
1235 (build-system texlive-build-system)
1237 '(#:tex-directory "latex/fancyvrb"
1238 ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and
1239 ;; thus texlive-luatex-lualibs.
1240 #:build-targets '("fancyvrb.ins")))
1241 (home-page "https://www.ctan.org/pkg/fancyvrb")
1242 (synopsis "Sophisticated verbatim text")
1244 "This package provides tools for the flexible handling of verbatim text
1245 including: verbatim commands in footnotes; a variety of verbatim environments
1246 with many parameters; ability to define new customized verbatim environments;
1247 save and restore verbatim text and environments; write and read files in
1248 verbatim mode; build \"example\" environments (showing both result and
1250 (license license:lppl1.0+)))
1252 (define-public texlive-latex-graphics
1254 (name "texlive-latex-graphics")
1255 (version (number->string %texlive-revision))
1258 (uri (texlive-ref "latex" "graphics"))
1259 (file-name (string-append name "-" version "-checkout"))
1262 "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz"))))
1263 (build-system texlive-build-system)
1265 '(#:tex-directory "latex/graphics"
1267 (modify-phases %standard-phases
1268 (add-after 'install 'install-config
1269 (lambda* (#:key inputs outputs #:allow-other-keys)
1270 (let ((cfg (assoc-ref inputs "graphics-cfg"))
1271 (target (string-append (assoc-ref outputs "out")
1272 "/share/texmf-dist/tex/latex/graphics-cfg")))
1274 (install-file (string-append cfg "/graphics.cfg") target)
1275 (install-file (string-append cfg "/color.cfg") target)
1277 (add-after 'install 'install-defs
1278 (lambda* (#:key inputs outputs #:allow-other-keys)
1279 (let ((def (assoc-ref inputs "graphics-def"))
1280 (target (string-append (assoc-ref outputs "out")
1281 "/share/texmf-dist/tex/latex/graphics-def")))
1283 (copy-recursively def target)
1290 (url "https://github.com/latex3/graphics-cfg.git")
1291 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
1292 (file-name (string-append "graphics-cfg-"
1293 (number->string %texlive-revision)
1297 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
1302 (url (string-append "svn://www.tug.org/texlive/tags/"
1303 %texlive-tag "/Master/texmf-dist/"
1304 "/tex/latex/graphics-def"))
1305 (revision %texlive-revision)))
1306 (file-name (string-append "graphics-def-"
1307 (number->string %texlive-revision)
1311 "17zpcgrfsr29g1dkz9np1qi63kjv7gb12rg979c6dai6qksbr3vq"))))))
1312 (home-page "https://www.ctan.org/pkg/latex-graphics")
1313 (synopsis "LaTeX standard graphics bundle")
1315 "This is a collection of LaTeX packages for producing color, including
1316 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
1317 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
1318 keyval, and lscape.")
1319 ;; The configuration files are released under CC0.
1320 (license (list license:lppl1.3c+
1323 (define-public texlive-latex-xcolor
1325 (name "texlive-latex-xcolor")
1326 (version (number->string %texlive-revision))
1329 (uri (texlive-ref "latex" "xcolor"))
1330 (file-name (string-append name "-" version "-checkout"))
1333 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
1334 (build-system texlive-build-system)
1335 (arguments '(#:tex-directory "latex/xcolor"))
1336 (home-page "https://www.ctan.org/pkg/xcolor")
1337 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
1339 "The package starts from the basic facilities of the colorcolor package,
1340 and provides easy driver-independent access to several kinds of color tints,
1341 shades, tones, and mixes of arbitrary colors. It allows a user to select a
1342 document-wide target color model and offers complete tools for conversion
1343 between eight color models. Additionally, there is a command for alternating
1344 row colors plus repeated non-aligned material (like horizontal lines) in
1346 (license license:lppl1.2+)))
1348 (define-public texlive-latex-hyperref
1350 (name "texlive-latex-hyperref")
1352 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
1353 ;; so we fetch the release from GitHub.
1356 (uri (string-append "https://github.com/ho-tex/hyperref/"
1357 "archive/release-" version ".tar.gz"))
1358 (file-name (string-append name "-" version ".tar.gz"))
1361 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
1362 (build-system texlive-build-system)
1363 (arguments '(#:tex-directory "latex/hyperref"))
1364 (home-page "https://www.ctan.org/pkg/hyperref")
1365 (synopsis "Extensive support for hypertext in LaTeX")
1367 "The @code{hyperref} package is used to handle cross-referencing commands
1368 in LaTeX to produce hypertext links in the document. The package provides
1369 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
1370 embedded @code{pdfmark} commands for processing by Acrobat
1371 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
1372 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
1373 pdf and HTML backends. The package is distributed with the @code{backref} and
1374 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
1375 (license license:lppl1.3+)))
1377 (define-public texlive-latex-oberdiek
1379 (name "texlive-latex-oberdiek")
1380 (version (number->string %texlive-revision))
1383 (uri (texlive-ref "latex" "oberdiek"))
1384 (file-name (string-append name "-" version "-checkout"))
1387 "1m9fg8ddhpsl1212igr9a9fmj012lv780aghjn6fpidg2wqrffmn"))))
1388 (build-system texlive-build-system)
1390 '(#:tex-directory "latex/oberdiek"
1391 #:build-targets '("oberdiek.ins")
1393 (modify-phases %standard-phases
1394 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
1395 (add-after 'unpack 'do-not-process-ifpdf.ins
1397 (substitute* "oberdiek.ins"
1398 (("ifpdf.ins") "ifpdf.dtx"))
1400 (home-page "https://www.ctan.org/pkg/oberdiek")
1401 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
1403 "The bundle comprises various LaTeX packages, providing among others:
1404 better accessibility support for PDF files; extensible chemists reaction
1405 arrows; record information about document class(es) used; and many more.")
1406 (license license:lppl1.3+)))
1408 (define-public texlive-latex-tools
1410 (name "texlive-latex-tools")
1411 (version (number->string %texlive-revision))
1414 (uri (texlive-ref "latex" "tools"))
1415 (file-name (string-append name "-" version "-checkout"))
1418 "0vj7h1fgf1396h4qjdc2m07y08i54gbbfrxl8y327cn3r1n093s6"))))
1419 (build-system texlive-build-system)
1421 '(#:tex-directory "latex/tools"
1422 #:build-targets '("tools.ins")))
1423 (home-page "https://www.ctan.org/pkg/latex-tools")
1424 (synopsis "LaTeX standard tools bundle")
1426 "This package is a collection of (variously) simple tools provided as
1427 part of the LaTeX required tools distribution, comprising the following
1428 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
1429 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
1430 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
1432 (license license:lppl1.3+)))
1434 (define-public texlive-latex-url
1436 (name "texlive-latex-url")
1437 (version (number->string %texlive-revision))
1441 (url (string-append "svn://www.tug.org/texlive/tags/"
1442 %texlive-tag "/Master/texmf-dist/"
1444 (revision %texlive-revision)))
1445 (file-name (string-append name "-" version "-checkout"))
1448 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
1449 (build-system trivial-build-system)
1451 `(#:modules ((guix build utils))
1454 (use-modules (guix build utils))
1455 (let ((target (string-append (assoc-ref %outputs "out")
1456 "/share/texmf-dist/tex/latex/url")))
1458 (copy-recursively (assoc-ref %build-inputs "source") target)
1460 (home-page "https://www.ctan.org/pkg/url")
1461 (synopsis "Verbatim with URL-sensitive line breaks")
1462 (description "The command @code{\\url} is a form of verbatim command that
1463 allows linebreaks at certain characters or combinations of characters, accepts
1464 reconfiguration, and can usually be used in the argument to another command.
1465 The command is intended for email addresses, hypertext links,
1466 directories/paths, etc., which normally have no spaces, so by default the
1467 package ignores spaces in its argument. However, a package option allows
1468 spaces, which is useful for operating systems where spaces are a common part
1470 ;; The license header states that it is under LPPL version 2 or later, but
1471 ;; the latest version is 1.3c.
1472 (license license:lppl1.3c+)))
1474 (define-public texlive-latex-l3kernel
1476 (name "texlive-latex-l3kernel")
1477 (version (number->string %texlive-revision))
1480 (uri (texlive-ref "latex" "l3kernel"))
1481 (file-name (string-append name "-" version "-checkout"))
1484 "0p3fsxap1ilwjz356aq4s5ygwvdscis8bh93g8klf8mhrd8cr2jy"))))
1485 (build-system texlive-build-system)
1487 '(#:tex-directory "latex/l3kernel"))
1488 (home-page "https://www.ctan.org/pkg/l3kernel")
1489 (synopsis "LaTeX3 programmers’ interface")
1491 "The l3kernel bundle provides an implementation of the LaTeX3
1492 programmers’ interface, as a set of packages that run under LaTeX 2e. The
1493 interface provides the foundation on which the LaTeX3 kernel and other future
1494 code are built: it is an API for TeX programmers. The packages are set up so
1495 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
1496 (license license:lppl1.3c+)))
1498 (define-public texlive-latex-l3packages
1500 (name "texlive-latex-l3packages")
1501 (version (number->string %texlive-revision))
1504 (uri (texlive-ref "latex" "l3packages"))
1505 (file-name (string-append name "-" version "-checkout"))
1508 "0pyx0hffiyss363vv7fkrcdiaf7p099xnq0mngzqc7v8v9q849hs"))))
1509 (build-system texlive-build-system)
1511 '(#:tex-directory "latex/l3packages"
1512 ;; build-targets must be specified manually since they are in
1514 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
1516 (modify-phases %standard-phases
1517 ;; All package sources are in sub-directories, so we need to add them
1519 (add-after 'unpack 'set-TEXINPUTS
1521 (let ((cwd (getcwd)))
1523 (string-append cwd "/l3keys2e:"
1528 ;; The terminating ":" is required to include the
1529 ;; l3kernel input as well.
1534 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1535 (home-page "https://www.ctan.org/pkg/l3packages")
1536 (synopsis "High-level LaTeX3 concepts")
1538 "This bundle holds prototype implementations of concepts for a LaTeX
1539 designer interface, to be used with the experimental LaTeX kernel as
1540 programming tools and kernel support. Packages provided in this release are:
1543 @item l3keys2e, which makes the facilities of the kernel module l3keys
1544 available for use by LaTeX 2e packages;
1545 @item xfrac, which provides flexible splitlevel fractions;
1546 @item xparse, which provides a high-level interface for declaring document
1548 @item xtemplate, which provides a means of defining generic functions using a
1551 (license license:lppl1.3c+)))
1553 (define-public texlive-latex-fontspec
1555 (name "texlive-latex-fontspec")
1556 (version (number->string %texlive-revision))
1559 (uri (texlive-ref "latex" "fontspec"))
1560 (file-name (string-append name "-" version "-checkout"))
1563 "1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq"))))
1564 (build-system texlive-build-system)
1566 '(#:tex-directory "latex/fontspec"
1568 (modify-phases %standard-phases
1569 (add-after 'install 'install-default-fontspec.cfg
1570 (lambda* (#:key outputs #:allow-other-keys)
1571 (with-output-to-file
1572 (string-append (assoc-ref outputs "out")
1573 "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg")
1576 %%% FONTSPEC.CFG %%%
1578 % This configuration file sets up TeX Ligatures by default for all fonts loaded
1579 % with `\\setmainfont` and `\\setsansfont`.
1581 % In addition, `\\setmonofont` has default features to enforce \"monospace\"
1582 % settings with regard to space stretchability and shrinkability.
1584 \\defaultfontfeatures
1585 [\\rmfamily,\\sffamily]
1588 \\defaultfontfeatures
1592 PunctuationSpace=WordSpace}
1596 `(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
1597 (home-page "https://www.ctan.org/pkg/fontspec")
1598 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
1600 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
1601 automatic and unified interface to feature-rich AAT and OpenType fonts through
1602 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
1603 the l3kernel and xparse bundles from the LaTeX 3 development team.")
1604 (license license:lppl1.3+)))
1606 ;; The SVN directory contains little more than a dtx file that generates three
1607 ;; of the many lua files that should be installed as part of this package.
1608 ;; This is why we take the release from GitHub instead.
1609 (define-public texlive-luatex-lualibs
1611 (name "texlive-luatex-lualibs")
1615 (uri (string-append "https://github.com/lualatex/lualibs/"
1616 "releases/download/v"
1617 version "/lualibs.zip"))
1618 (file-name (string-append name "-" version ".zip"))
1621 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
1622 (build-system gnu-build-system)
1625 (list (string-append "DESTDIR="
1626 (assoc-ref %outputs "out")
1627 "/share/texmf-dist"))
1629 (modify-phases %standard-phases
1630 (delete 'configure))))
1632 `(("texlive-bin" ,texlive-bin)
1635 (home-page "https://github.com/lualatex/lualibs")
1636 (synopsis "Lua modules for general programming (in the (La)TeX world)")
1638 "Lualibs is a collection of Lua modules useful for general programming.
1639 The bundle is based on Lua modules shipped with ConTeXt, and made available in
1640 this bundle for use independent of ConTeXt.")
1641 ;; GPL version 2 only
1642 (license license:gpl2)))
1644 (define-public texlive-latex-amsmath
1646 (name "texlive-latex-amsmath")
1647 (version (number->string %texlive-revision))
1650 (uri (texlive-ref "latex" "amsmath"))
1651 (file-name (string-append name "-" version "-checkout"))
1654 "0arvk7gn32mshnfdad5qkgf3i1arxq77k3vq7wnpm4nwnrzclxal"))))
1655 (build-system texlive-build-system)
1656 (arguments '(#:tex-directory "latex/amsmath"))
1657 (home-page "https://www.ctan.org/pkg/amsmath")
1658 (synopsis "AMS mathematical facilities for LaTeX")
1660 "This is the principal package in the AMS-LaTeX distribution. It adapts
1661 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
1662 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
1663 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
1664 symbols), @code{amsopnamsopn} (for operator names) and
1665 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
1666 This package is part of the LaTeX required distribution; however, several
1667 contributed packages add still further to its appeal; examples are
1668 @code{empheqempheq}, which provides functions for decorating and highlighting
1669 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
1671 (license license:lppl1.3c+)))
1673 (define-public texlive-latex-amscls
1675 (name "texlive-latex-amscls")
1676 (version (number->string %texlive-revision))
1679 (uri (texlive-ref "latex" "amscls"))
1680 (file-name (string-append name "-" version "-checkout"))
1683 "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca"))))
1684 (build-system texlive-build-system)
1686 `(#:tex-directory "latex/amscls"))
1687 (home-page "https://www.ctan.org/pkg/amscls")
1688 (synopsis "AMS document classes for LaTeX")
1690 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
1691 articles for the AMS), @code{amsbookamsbook} (for books) and
1692 @code{amsprocamsproc} (for proceedings), together with some supporting
1693 material. The material is made available as part of the AMS-LaTeX
1695 (license license:lppl1.3c+)))
1697 (define-public texlive-latex-babel
1699 (name "texlive-latex-babel")
1700 (version (number->string %texlive-revision))
1703 (uri (texlive-ref "latex" "babel"))
1704 (file-name (string-append name "-" version "-checkout"))
1707 "0yhlfiz3fjc8jd46f1zrjj4jig48l8rrzh8cmd8ammml8z9a01z6"))))
1708 (build-system texlive-build-system)
1710 '(#:tex-directory "generic/babel"
1712 (modify-phases %standard-phases
1713 ;; This package tries to produce babel.aux twice but refuses to
1714 ;; overwrite the first one.
1715 (add-before 'build 'fix-ins
1717 (substitute* "babel.ins"
1718 (("askonceonly") "askforoverwritefalse"))
1720 (home-page "https://www.ctan.org/pkg/babel")
1721 (synopsis "Multilingual support for Plain TeX or LaTeX")
1723 "The package manages culturally-determined typographical (and other)
1724 rules, and hyphenation patterns for a wide range of languages. A document may
1725 select a single language to be supported, or it may select several, in which
1726 case the document may switch from one language to another in a variety of
1727 ways. Babel uses contributed configuration files that provide the detail of
1728 what has to be done for each language. Users of XeTeX are advised to use the
1729 polyglossia package rather than Babel.")
1730 (license license:lppl1.3+)))
1732 (define-public texlive-generic-babel-english
1734 (name "texlive-generic-babel-english")
1735 (version (number->string %texlive-revision))
1738 (uri (texlive-ref "generic" "babel-english"))
1739 (file-name (string-append name "-" version "-checkout"))
1742 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
1743 (build-system texlive-build-system)
1744 (arguments '(#:tex-directory "generic/babel-english"))
1745 (home-page "https://www.ctan.org/pkg/babel-english")
1746 (synopsis "Babel support for English")
1748 "This package provides the language definition file for support of
1749 English in @code{babel}. Care is taken to select British hyphenation patterns
1750 for British English and Australian text, and default (\"american\") patterns
1751 for Canadian and USA text.")
1752 (license license:lppl1.3+)))
1754 (define-public texlive-generic-babel-german
1756 (name "texlive-generic-babel-german")
1757 (version (number->string %texlive-revision))
1760 (uri (texlive-ref "generic" "babel-german"))
1761 (file-name (string-append name "-" version "-checkout"))
1764 "0h47s67gnhdaxfgbf8pirp5vw4z6rrhxl8zav803yjxka0096i3y"))))
1765 (build-system texlive-build-system)
1766 (arguments '(#:tex-directory "generic/babel-german"))
1767 (home-page "https://www.ctan.org/pkg/babel-german")
1768 (synopsis "Babel support for German")
1770 "This package provides the language definition file for support of German
1771 in @code{babel}. It provides all the necessary macros, definitions and
1772 settings to typeset German documents. The bundle includes support for the
1773 traditional and reformed German orthography as well as for the Austrian and
1774 Swiss varieties of German.")
1775 (license license:lppl1.3+)))
1777 (define-public texlive-latex-cyrillic
1779 (name "texlive-latex-cyrillic")
1780 (version (number->string %texlive-revision))
1783 (uri (texlive-ref "latex" "cyrillic"))
1784 (file-name (string-append name "-" version "-checkout"))
1787 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
1788 (build-system texlive-build-system)
1790 '(#:tex-directory "latex/cyrillic"))
1791 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
1792 (synopsis "Support for Cyrillic fonts in LaTeX")
1794 "This bundle of macros files provides macro support (including font
1795 encoding macros) for the use of Cyrillic characters in fonts encoded under the
1796 T2* and X2 encodings. These encodings cover (between them) pretty much every
1797 language that is written in a Cyrillic alphabet.")
1798 (license license:lppl1.3c+)))
1800 (define-public texlive-latex-psnfss
1802 (name "texlive-latex-psnfss")
1803 (version (number->string %texlive-revision))
1806 (uri (texlive-ref "latex" "psnfss"))
1807 (file-name (string-append name "-" version "-checkout"))
1810 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
1811 (build-system texlive-build-system)
1812 (arguments '(#:tex-directory "latex/psnfss"))
1813 (home-page "https://www.ctan.org/pkg/psnfss")
1814 (synopsis "Font support for common PostScript fonts")
1816 "The PSNFSS collection includes a set of files that provide a complete
1817 working setup of the LaTeX font selection scheme (NFSS2) for use with common
1818 PostScript fonts. It covers the so-called \"Base\" fonts (which are built
1819 into any Level 2 PostScript printing device and the Ghostscript interpreter)
1820 and a number of free fonts. It provides font definition files, macros and
1821 font metrics. The bundle as a whole is part of the LaTeX required set of
1823 (license license:lppl1.2+)))
1825 ;; For user profiles
1826 (define-public texlive-base
1827 (let ((default-packages
1833 texlive-metafont-base
1835 ;; LaTeX packages from the "required" set.
1836 texlive-latex-amsmath
1837 texlive-latex-amscls
1839 texlive-generic-babel-english
1840 texlive-latex-cyrillic
1841 texlive-latex-graphics
1842 texlive-latex-psnfss
1843 texlive-latex-tools)))
1845 (name "texlive-base")
1846 (version (number->string %texlive-revision))
1848 (build-system trivial-build-system)
1851 (begin (mkdir (assoc-ref %outputs "out")))))
1853 (map (lambda (package)
1854 (list (package-name package) package))
1856 (home-page (package-home-page texlive-bin))
1857 (synopsis "TeX Live base packages")
1858 (description "This is a very limited subset of the TeX Live distribution.
1859 It includes little more than the required set of LaTeX packages.")
1860 (license (fold (lambda (package result)
1861 (match (package-license package)
1863 (append lst result))
1864 ((? license:license? license)
1865 (cons license result))))
1867 default-packages)))))
1869 (define-public texlive-union
1870 (lambda* (#:optional (packages '()))
1871 "Return 'texlive-union' package which is a union of PACKAGES and the
1872 standard LaTeX packages."
1873 (let ((default-packages
1879 texlive-metafont-base
1881 ;; LaTeX packages from the "required" set.
1882 texlive-latex-amsmath
1883 texlive-latex-amscls
1885 texlive-generic-babel-english
1886 texlive-latex-cyrillic
1887 texlive-latex-graphics
1888 texlive-latex-psnfss
1889 texlive-latex-tools)))
1891 (name "texlive-union")
1892 (version (number->string %texlive-revision))
1894 (build-system trivial-build-system)
1896 '(#:modules ((guix build union)
1898 (guix build texlive-build-system)
1899 (guix build gnu-build-system)
1900 (guix build gremlin)
1904 (use-modules (ice-9 match)
1908 (guix build texlive-build-system))
1909 (let* ((out (assoc-ref %outputs "out"))
1910 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
1911 ;; Build a modifiable union of all inputs (but exclude bash)
1912 (match (filter (match-lambda
1914 (not (string=? "bash" name))))
1916 (((names . directories) ...)
1917 (union-build (assoc-ref %outputs "out")
1919 #:create-all-directories? #t
1920 #:log-port (%make-void-port "w"))))
1922 ;; The configuration file "texmf.cnf" is provided by the
1923 ;; "texlive-bin" package. We take it and override only the
1924 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
1925 ;; by default, though, so we still need to set TEXMFCNF.
1926 (substitute* texmf.cnf
1927 (("^TEXMFROOT = .*")
1928 (string-append "TEXMFROOT = " out "/share\n"))
1930 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
1931 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash")
1934 (cut wrap-program <>
1935 `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf)))
1936 `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist"))))
1937 (find-files (string-append out "/bin") ".*"))
1941 ,@(map (lambda (package)
1942 (list (package-name package) package))
1943 (append default-packages packages))))
1944 (home-page (package-home-page texlive-bin))
1945 (synopsis "Union of TeX Live packages")
1946 (description "This package provides a subset of the TeX Live
1948 (license (fold (lambda (package result)
1949 (match (package-license package)
1951 (append lst result))
1952 ((? license:license? license)
1953 (cons license result))))
1955 (append default-packages packages)))))))
1957 (define-public texlive-tiny
1959 (inherit (texlive-union))
1960 (name "texlive-tiny")
1961 (description "This is a very limited subset of the TeX Live distribution.
1962 It includes little more than the required set of LaTeX packages.")))
1964 (define-public texlive-latex-amsrefs
1966 (name "texlive-latex-amsrefs")
1967 (version (number->string %texlive-revision))
1970 (uri (texlive-ref "latex" "amsrefs"))
1971 (file-name (string-append name "-" version "-checkout"))
1974 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
1975 (build-system texlive-build-system)
1976 (arguments '(#:tex-directory "latex/amsrefs"))
1977 (home-page "https://www.ctan.org/pkg/amsrefs")
1978 (synopsis "LaTeX-based replacement for BibTeX")
1980 "Amsrefs is a LaTeX package for bibliographies that provides an archival
1981 data format similar to the format of BibTeX database files, but adapted to
1982 make direct processing by LaTeX easier. The package can be used either in
1983 conjunction with BibTeX or as a replacement for BibTeX.")
1984 (license license:lppl1.3+)))
1986 (define-public texlive-latex-bigfoot
1988 (name "texlive-latex-bigfoot")
1989 (version (number->string %texlive-revision))
1992 (uri (texlive-ref "latex" "bigfoot"))
1993 (file-name (string-append name "-" version "-checkout"))
1996 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
1997 (build-system texlive-build-system)
1999 '(#:tex-directory "latex/bigfoot"
2001 (modify-phases %standard-phases
2002 (add-after 'unpack 'remove-generated-file
2004 (for-each delete-file (find-files "." "\\.drv$"))
2006 (home-page "https://www.ctan.org/pkg/bigfoot")
2007 (synopsis "Footnotes for critical editions")
2009 "This package aims to provide a one-stop solution to requirements for
2010 footnotes. It offers: Multiple footnote apparatus superior to that of
2011 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
2012 into a single paragraph (this choice may be selected per footnote series);
2013 Things you might have expected (such as @code{\\verb}-like material in
2014 footnotes, and color selections over page breaks) now work. Note that the
2015 majority of the bigfoot package's interface is identical to that of
2016 @code{manyfoot}; users should seek information from that package's
2017 documentation. The bigfoot bundle also provides the @code{perpage} and
2018 @code{suffix} packages.")
2019 (license license:gpl2+)))
2021 (define-public texlive-latex-blindtext
2023 (name "texlive-latex-blindtext")
2024 (version (number->string %texlive-revision))
2027 (uri (texlive-ref "latex" "blindtext"))
2028 (file-name (string-append name "-" version "-checkout"))
2031 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
2032 (build-system texlive-build-system)
2033 (arguments '(#:tex-directory "latex/blindtext"))
2034 (home-page "https://www.ctan.org/pkg/blindtext")
2035 (synopsis "Producing 'blind' text for testing")
2037 "The package provides the commands @code{\\blindtext} and
2038 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
2039 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
2040 an entire random document with sections, lists, mathematics, etc. The package
2041 supports three languages, @code{english}, @code{(n)german} and @code{latin};
2042 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
2043 ipsum\" text, see the @code{lipsum} package).")
2044 (license license:lppl)))
2046 (define-public texlive-latex-dinbrief
2048 (name "texlive-latex-dinbrief")
2049 (version (number->string %texlive-revision))
2052 (uri (texlive-ref "latex" "dinbrief"))
2053 (file-name (string-append name "-" version "-checkout"))
2056 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
2057 (build-system texlive-build-system)
2059 '(#:tex-directory "latex/dinbrief"
2061 (modify-phases %standard-phases
2062 (add-after 'unpack 'remove-generated-file
2064 (delete-file "dinbrief.drv")
2066 (add-after 'unpack 'fix-encoding-error
2068 (with-fluids ((%default-port-encoding "ISO-8859-1"))
2069 (substitute* "dinbrief.dtx"
2070 (("zur Verf.+ung. In der Pr\"aambel")
2071 "zur Verf\"ung. In der Pr\"aambel")))
2073 (home-page "https://www.ctan.org/pkg/dinbrief")
2074 (synopsis "German letter DIN style")
2076 "This package implements a document layout for writing letters according
2077 to the rules of DIN (Deutsches Institut für Normung, German standardisation
2078 institute). A style file for LaTeX 2.09 (with limited support of the
2079 features) is part of the package. Since the letter layout is based on a
2080 German standard, the user guide is written in German, but most macros have
2081 English names from which the user can recognize what they are used for. In
2082 addition there are example files showing how letters may be created with the
2084 (license license:lppl)))
2086 (define-public texlive-latex-draftwatermark
2088 (name "texlive-latex-draftwatermark")
2089 (version (number->string %texlive-revision))
2092 (uri (texlive-ref "latex" "draftwatermark"))
2093 (file-name (string-append name "-" version "-checkout"))
2096 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
2097 (build-system texlive-build-system)
2098 (arguments '(#:tex-directory "latex/draftwatermark"))
2099 (home-page "https://www.ctan.org/pkg/draftwatermark")
2100 (synopsis "Put a grey textual watermark on document pages")
2102 "This package provides a means to add a textual, light grey watermark on
2103 every page or on the first page of a document. Typical usage may consist in
2104 writing words such as DRAFT or CONFIDENTIAL across document pages. The
2105 package performs a similar function to that of @code{draftcopy}, but its
2106 implementation is output device independent, and made very simple by relying
2108 (license license:lppl1.3+)))
2110 (define-public texlive-latex-environ
2112 (name "texlive-latex-environ")
2113 (version (number->string %texlive-revision))
2116 (uri (texlive-ref "latex" "environ"))
2117 (file-name (string-append name "-" version "-checkout"))
2120 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
2121 (build-system texlive-build-system)
2122 (arguments '(#:tex-directory "latex/environ"))
2123 (home-page "https://www.ctan.org/pkg/environ")
2124 (synopsis "New interface for environments in LaTeX")
2126 "This package provides the @code{\\collect@@body} command (as in
2127 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
2128 for collecting the body text of an environment. These commands are used to
2129 define a new author interface to creating new environments.")
2130 (license license:lppl)))
2132 (define-public texlive-latex-eqparbox
2134 (name "texlive-latex-eqparbox")
2135 (version (number->string %texlive-revision))
2138 (uri (texlive-ref "latex" "eqparbox"))
2139 (file-name (string-append name "-" version "-checkout"))
2142 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
2143 (build-system texlive-build-system)
2144 (arguments '(#:tex-directory "latex/eqparbox"))
2145 (home-page "https://www.ctan.org/pkg/eqparbox")
2146 (synopsis "Create equal-widthed parboxes")
2148 "LaTeX users sometimes need to ensure that two or more blocks of text
2149 occupy the same amount of horizontal space on the page. To that end, the
2150 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
2151 just like @code{\\parbox}, except that instead of specifying a width, one
2152 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
2153 where they are in the document---will stretch to fit the widest
2154 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
2155 for a variety of alignment purposes, as is evidenced by the examples in
2156 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
2158 (license license:lppl1.3+)))
2160 (define-public texlive-latex-expdlist
2162 (name "texlive-latex-expdlist")
2163 (version (number->string %texlive-revision))
2166 (uri (texlive-ref "latex" "expdlist"))
2167 (file-name (string-append name "-" version "-checkout"))
2170 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
2171 (build-system texlive-build-system)
2173 '(#:tex-directory "latex/expdlist"
2175 (modify-phases %standard-phases
2176 (add-after 'unpack 'remove-generated-file
2178 (for-each delete-file
2179 (find-files "." "\\.drv$"))
2181 (home-page "https://www.ctan.org/pkg/expdlist")
2182 (synopsis "Expanded description environments")
2184 "The package provides additional features for the LaTeX
2185 @code{description} environment, including adjustable left margin. The package
2186 also allows the user to \"break\" a list (for example, to interpose a comment)
2187 without affecting the structure of the list (this works for @code{itemize} and
2188 @code{enumerate} lists, and numbered lists remain in sequence).")
2189 (license license:lppl)))
2191 (define-public texlive-latex-filemod
2193 (name "texlive-latex-filemod")
2194 (version (number->string %texlive-revision))
2198 (url (string-append "svn://www.tug.org/texlive/tags/"
2199 %texlive-tag "/Master/texmf-dist/"
2200 "/tex/latex/filemod"))
2201 (revision %texlive-revision)))
2202 (file-name (string-append name "-" version "-checkout"))
2205 "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
2206 (build-system trivial-build-system)
2208 `(#:modules ((guix build utils))
2211 (use-modules (guix build utils))
2212 (let ((target (string-append (assoc-ref %outputs "out")
2213 "/share/texmf-dist/tex/latex/filemod")))
2215 (copy-recursively (assoc-ref %build-inputs "source") target)
2217 (home-page "https://www.ctan.org/pkg/filemod")
2218 (synopsis "Provide file modification times, and compare them")
2220 "This package provides macros to read and compare the modification dates
2221 of files. The files may be @code{.tex} files, images or other files (as long
2222 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
2223 of pdfLaTeX to find the file modification date as PDF date string, parses the
2224 string and returns the value to the user. The package will also work for DVI
2225 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
2226 mode. The functionality is provided by purely expandable macros or by faster
2227 but non-expandable ones.")
2228 (license license:lppl1.3+)))
2230 (define-public texlive-latex-ifplatform
2232 (name "texlive-latex-ifplatform")
2233 (version (number->string %texlive-revision))
2236 (uri (texlive-ref "latex" "ifplatform"))
2237 (file-name (string-append name "-" version "-checkout"))
2240 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
2241 (build-system texlive-build-system)
2242 (arguments '(#:tex-directory "latex/ifplatform"))
2243 (home-page "https://www.ctan.org/pkg/ifplatform")
2244 (synopsis "Conditionals to test which platform is being used")
2246 "This package uses the (La)TeX extension @code{-shell-escape} to
2247 establish whether the document is being processed on a Windows or on a
2248 Unix-like system, or on Cygwin (Unix environment over a Windows system).
2249 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
2250 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
2251 on a Unix-like system, which may be used to distinguish between various
2252 classes of systems.")
2253 (license license:lppl)))
2255 (define-public texlive-latex-natbib
2257 (name "texlive-latex-natbib")
2258 (version (number->string %texlive-revision))
2261 (uri (texlive-ref "latex" "natbib"))
2262 (file-name (string-append name "-" version "-checkout"))
2265 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
2266 (build-system texlive-build-system)
2267 (arguments '(#:tex-directory "latex/natbib"))
2268 (home-page "https://www.ctan.org/pkg/natbib")
2269 (synopsis "Flexible bibliography support")
2271 "This bundle provides a package that implements both author-year and
2272 numbered references, as well as much detailed of support for other
2273 bibliography use. Also provided are versions of the standard BibTeX styles
2274 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
2275 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
2276 designed from the start to be compatible with @code{natbib}.")
2277 (license license:lppl)))
2279 (define-public texlive-latex-psfrag
2281 (name "texlive-latex-psfrag")
2282 (version (number->string %texlive-revision))
2285 (uri (texlive-ref "latex" "psfrag"))
2286 (file-name (string-append name "-" version "-checkout"))
2289 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
2290 (build-system texlive-build-system)
2291 (arguments '(#:tex-directory "latex/psfrag"))
2292 (home-page "https://www.ctan.org/pkg/psfrag")
2293 (synopsis "Replace strings in encapsulated PostScript figures")
2295 "This package allows LaTeX constructions (equations, picture
2296 environments, etc.) to be precisely superimposed over Encapsulated PostScript
2297 figures, using your own favorite drawing tool to create an EPS figure and
2298 placing simple text \"tags\" where each replacement is to be placed, with
2299 PSfrag automatically removing these tags from the figure and replacing them
2300 with a user specified LaTeX construction, properly aligned, scaled, and/or
2302 (license (license:fsf-free "file://psfrag.dtx"))))
2304 (define-public texlive-latex-xkeyval
2306 (name "texlive-latex-xkeyval")
2307 (version (number->string %texlive-revision))
2310 (uri (texlive-ref "latex" "xkeyval"))
2311 (file-name (string-append name "-" version "-checkout"))
2314 "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp"))))
2315 (build-system texlive-build-system)
2316 (arguments '(#:tex-directory "latex/xkeyval"))
2317 (home-page "https://www.ctan.org/pkg/xkeyval")
2318 (synopsis "Macros for defining and setting keys")
2320 "This package is an extension of the @code{keyval} package and offers
2321 more flexible macros for defining and setting keys. The package provides a
2322 pointer and a preset system. Furthermore, it supplies macros to allow class
2323 and package options to contain options of the @code{key=value} form. A LaTeX
2324 kernel patch is provided to avoid premature expansions of macros in class or
2325 package options. A specialized system for setting @code{PSTricks} keys is
2326 provided by the @code{pst-xkey} package.")
2327 (license license:lppl1.3+)))
2329 (define-public texlive-latex-pstool
2331 (name "texlive-latex-pstool")
2332 (version (number->string %texlive-revision))
2336 (url (string-append "svn://www.tug.org/texlive/tags/"
2337 %texlive-tag "/Master/texmf-dist/"
2338 "/tex/latex/pstool"))
2339 (revision %texlive-revision)))
2340 (file-name (string-append name "-" version "-checkout"))
2343 "1h816jain8c9nky75kk8pmmwj5b4yf9dpqvdvi2l6jhfj5iqkzr8"))))
2344 (build-system trivial-build-system)
2346 `(#:modules ((guix build utils))
2349 (use-modules (guix build utils))
2350 (let ((target (string-append (assoc-ref %outputs "out")
2351 "/share/texmf-dist/tex/latex/pstool")))
2353 (copy-recursively (assoc-ref %build-inputs "source") target)
2356 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix
2357 ("texlive-latex-filemod" ,texlive-latex-filemod)
2358 ("texlive-latex-graphics" ,texlive-latex-graphics)
2359 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
2360 ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3
2361 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
2362 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
2363 ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc
2364 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)
2365 ("texlive-latex-xkeyval" ,texlive-latex-xkeyval)))
2366 (home-page "https://www.ctan.org/pkg/pstool")
2367 (synopsis "Process PostScript graphics within pdfLaTeX documents")
2369 "This is a package for processing PostScript graphics with @code{psfrag}
2370 labels within pdfLaTeX documents. Every graphic is compiled individually,
2371 drastically speeding up compilation time when only a single figure needs
2373 (license license:lppl)))
2375 (define-public texlive-latex-seminar
2377 (name "texlive-latex-seminar")
2378 (version (number->string %texlive-revision))
2382 (url (string-append "svn://www.tug.org/texlive/tags/"
2383 %texlive-tag "/Master/texmf-dist/"
2384 "/tex/latex/seminar"))
2385 (revision %texlive-revision)))
2386 (file-name (string-append name "-" version "-checkout"))
2389 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
2390 (build-system texlive-build-system)
2391 (arguments '(#:tex-directory "latex/seminar"))
2392 (home-page "https://www.ctan.org/pkg/seminar")
2393 (synopsis "Make overhead slides")
2394 ;; TODO: This package may need fancybox and xcomment at runtime.
2396 "This package provides a class that produces overhead
2397 slides (transparencies), with many facilities. Seminar is not nowadays
2398 reckoned a good basis for a presentation — users are advised to use more
2399 recent classes such as powerdot or beamer, both of which are tuned to
2400 21st-century presentation styles.")
2401 (license license:lppl1.2+)))
2403 (define-public texlive-latex-trimspaces
2405 (name "texlive-latex-trimspaces")
2406 (version (number->string %texlive-revision))
2409 (uri (texlive-ref "latex" "trimspaces"))
2410 (file-name (string-append name "-" version "-checkout"))
2413 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
2414 (build-system texlive-build-system)
2416 '(#:tex-directory "latex/trimspaces"
2417 #:tex-format "latex"
2419 (modify-phases %standard-phases
2420 (add-after 'unpack 'fix-bug
2422 ;; The "ins" file refers to the wrong source file.
2423 (substitute* "trimspaces.ins"
2424 (("pstool.tex") "trimspaces.tex"))
2427 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2428 (home-page "https://www.ctan.org/pkg/trimspaces")
2429 (synopsis "Trim spaces around an argument or within a macro")
2431 "This very short package allows you to expandably remove spaces around a
2432 token list (commands are provided to remove spaces before, spaces after, or
2433 both); or to remove surrounding spaces within a macro definition, or to define
2434 space-stripped macros.")
2435 (license license:lppl)))
2437 (define-public texlive-latex-capt-of
2439 (name "texlive-latex-capt-of")
2440 (version (number->string %texlive-revision))
2444 (url (string-append "svn://www.tug.org/texlive/tags/"
2445 %texlive-tag "/Master/texmf-dist/"
2446 "/tex/latex/capt-of"))
2447 (revision %texlive-revision)))
2448 (file-name (string-append name "-" version "-checkout"))
2451 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
2452 (build-system trivial-build-system)
2454 `(#:modules ((guix build utils))
2457 (use-modules (guix build utils))
2458 (let ((target (string-append (assoc-ref %outputs "out")
2459 "/share/texmf-dist/tex/latex/capt-of")))
2461 (copy-recursively (assoc-ref %build-inputs "source") target)
2463 (home-page "https://www.ctan.org/pkg/capt-of")
2464 (synopsis "Captions on more than floats")
2466 "This package defines a command @code{\\captionof} for putting a caption
2467 to something that's not a float.")
2468 (license license:lppl)))
2470 (define-public texlive-latex-doi
2472 (name "texlive-latex-doi")
2473 (version (number->string %texlive-revision))
2477 (url (string-append "svn://www.tug.org/texlive/tags/"
2478 %texlive-tag "/Master/texmf-dist/"
2480 (revision %texlive-revision)))
2481 (file-name (string-append name "-" version "-checkout"))
2484 "0378rdmrgr2lzbfi4qqy4dfpj5im20diyd8z8b9m4mlg05r7wgnb"))))
2485 (build-system trivial-build-system)
2487 `(#:modules ((guix build utils))
2490 (use-modules (guix build utils))
2491 (let ((target (string-append (assoc-ref %outputs "out")
2492 "/share/texmf-dist/tex/latex/doi")))
2494 (copy-recursively (assoc-ref %build-inputs "source") target)
2496 (home-page "https://www.ctan.org/pkg/doi")
2497 (synopsis "Create correct hyperlinks for DOI numbers")
2499 "You can hyperlink DOI numbers to doi.org. However, some publishers have
2500 elected to use nasty characters in their DOI numbering scheme (@code{<},
2501 @code{>}, @code{_} and @code{;} have all been spotted). This will either
2502 upset LaTeX, or your PDF reader. This package contains a single user-level
2503 command @code{\\doi{}}, which takes a DOI number, and creates a correct
2504 hyperlink to the target of the DOI.")
2505 ;; Any version of the LPPL.
2506 (license license:lppl1.3+)))
2508 (define-public texlive-latex-etoolbox
2510 (name "texlive-latex-etoolbox")
2511 (version (number->string %texlive-revision))
2515 (url (string-append "svn://www.tug.org/texlive/tags/"
2516 %texlive-tag "/Master/texmf-dist/"
2517 "/tex/latex/etoolbox"))
2518 (revision %texlive-revision)))
2519 (file-name (string-append name "-" version "-checkout"))
2522 "1agmq6bf8wzcd77n20ng8bl4kh69cg5f6sjniii7bcw4llhd3nc8"))))
2523 (build-system trivial-build-system)
2525 `(#:modules ((guix build utils))
2528 (use-modules (guix build utils))
2529 (let ((target (string-append (assoc-ref %outputs "out")
2530 "/share/texmf-dist/tex/latex/etoolbox")))
2532 (copy-recursively (assoc-ref %build-inputs "source") target)
2534 (home-page "https://www.ctan.org/pkg/etoolbox")
2535 (synopsis "e-TeX tools for LaTeX")
2537 "This package is a toolbox of programming facilities geared primarily
2538 towards LaTeX class and package authors. It provides LaTeX frontends to some
2539 of the new primitives provided by e-TeX as well as some generic tools which
2540 are not strictly related to e-TeX but match the profile of this package. The
2541 package provides functions that seem to offer alternative ways of implementing
2542 some LaTeX kernel commands; nevertheless, the package will not modify any part
2543 of the LaTeX kernel.")
2544 (license license:lppl1.3+)))
2546 (define-public texlive-latex-fncychap
2548 (name "texlive-latex-fncychap")
2549 (version (number->string %texlive-revision))
2553 (url (string-append "svn://www.tug.org/texlive/tags/"
2554 %texlive-tag "/Master/texmf-dist/"
2555 "/tex/latex/fncychap"))
2556 (revision %texlive-revision)))
2557 (file-name (string-append name "-" version "-checkout"))
2560 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
2561 (build-system trivial-build-system)
2563 `(#:modules ((guix build utils))
2566 (use-modules (guix build utils))
2567 (let ((target (string-append (assoc-ref %outputs "out")
2568 "/share/texmf-dist/tex/latex/fncychap")))
2570 (copy-recursively (assoc-ref %build-inputs "source") target)
2572 (home-page "https://www.ctan.org/pkg/fncychap")
2573 (synopsis "Seven predefined chapter heading styles")
2575 "This package provides seven predefined chapter heading styles. Each
2576 style can be modified using a set of simple commands. Optionally one can
2577 modify the formatting routines in order to create additional chapter
2579 (license license:lppl1.3+)))
2581 (define-public texlive-latex-framed
2583 (name "texlive-latex-framed")
2584 (version (number->string %texlive-revision))
2588 (url (string-append "svn://www.tug.org/texlive/tags/"
2589 %texlive-tag "/Master/texmf-dist/"
2590 "/tex/latex/framed"))
2591 (revision %texlive-revision)))
2592 (file-name (string-append name "-" version "-checkout"))
2595 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
2596 (build-system trivial-build-system)
2598 `(#:modules ((guix build utils))
2601 (use-modules (guix build utils))
2602 (let ((target (string-append (assoc-ref %outputs "out")
2603 "/share/texmf-dist/tex/latex/framed")))
2605 (copy-recursively (assoc-ref %build-inputs "source") target)
2607 (home-page "https://www.ctan.org/pkg/framed")
2608 (synopsis "Framed or shaded regions that can break across pages")
2610 "The package creates three environments: @code{framed}, which puts an
2611 ordinary frame box around the region, @code{shaded}, which shades the region,
2612 and @code{leftbar}, which places a line at the left side. The environments
2613 allow a break at their start (the @code{\\FrameCommand} enables creation of a
2614 title that is “attached” to the environment); breaks are also allowed in the
2615 course of the framed/shaded matter. There is also a command
2616 @code{\\MakeFramed} to make your own framed-style environments.")
2617 ;; The header states: "These macros may be freely transmitted, reproduced,
2618 ;; or modified for any purpose provided that this notice is left intact."
2619 (license (license:fsf-free "file://framed.sty"))))
2621 (define-public texlive-latex-g-brief
2623 (name "texlive-latex-g-brief")
2624 (version (number->string %texlive-revision))
2627 (uri (texlive-ref "latex" "g-brief"))
2628 (file-name (string-append name "-" version "-checkout"))
2631 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
2632 (build-system texlive-build-system)
2634 '(#:tex-directory "latex/g-brief"
2636 (modify-phases %standard-phases
2637 (add-after 'unpack 'remove-generated-file
2639 (delete-file "g-brief.drv")
2641 (home-page "https://www.ctan.org/pkg/g-brief")
2642 (synopsis "Letter document class")
2644 "This package is designed for formatting formless letters in German; it
2645 can also be used for English (by those who can read the documentation). There
2646 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
2647 \"old\" and a \"new\" version of g-brief.")
2648 (license license:lppl)))
2650 (define-public texlive-latex-galois
2652 (name "texlive-latex-galois")
2653 (version (number->string %texlive-revision))
2656 (uri (texlive-ref "latex" "galois"))
2657 (file-name (string-append name "-" version "-checkout"))
2660 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
2661 (build-system texlive-build-system)
2662 (arguments '(#:tex-directory "latex/galois"))
2663 (home-page "https://www.ctan.org/pkg/galois")
2664 (synopsis "Typeset Galois connections")
2666 "The package deals with connections in two-dimensional style, optionally
2668 (license license:lppl)))
2670 (define-public texlive-latex-gcite
2672 (name "texlive-latex-gcite")
2673 (version (number->string %texlive-revision))
2676 (uri (texlive-ref "latex" "gcite"))
2677 (file-name (string-append name "-" version "-checkout"))
2680 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
2681 (build-system texlive-build-system)
2682 (arguments '(#:tex-directory "latex/gcite"))
2683 (home-page "https://www.ctan.org/pkg/gcite")
2684 (synopsis "Citations in a reader-friendly style")
2686 "The package allows citations in the German style, which is considered by
2687 many to be particularly reader-friendly. The citation provides a small amount
2688 of bibliographic information in a footnote on the page where each citation is
2689 made. It combines a desire to eliminate unnecessary page-turning with the
2690 look-up efficiency afforded by numeric citations. The package makes use of
2691 BibLaTeX, and is considered experimental.")
2692 (license license:lppl1.3+)))
2694 (define-public texlive-latex-geometry
2696 (name "texlive-latex-geometry")
2697 (version (number->string %texlive-revision))
2700 (uri (texlive-ref "latex" "geometry"))
2701 (file-name (string-append name "-" version "-checkout"))
2704 "0yw6bjfgsli3s1dldsgb7mkr7lnk329cgdjbgs8z2xn59pmmdsn4"))))
2705 (build-system texlive-build-system)
2706 (arguments '(#:tex-directory "latex/geometry"))
2707 (home-page "https://www.ctan.org/pkg/geometry")
2708 (synopsis "Flexible and complete interface to document dimensions")
2710 "This package provides an easy and flexible user interface to customize
2711 page layout, implementing auto-centering and auto-balancing mechanisms so that
2712 the users have only to give the least description for the page layout. The
2713 package knows about all the standard paper sizes, so that the user need not
2714 know what the nominal \"real\" dimensions of the paper are, just its standard
2715 name (such as a4, letter, etc.). An important feature is the package's
2716 ability to communicate the paper size it's set up to the output.")
2717 (license license:lppl)))
2719 (define-public texlive-latex-mdwtools
2721 (name "texlive-latex-mdwtools")
2722 (version (number->string %texlive-revision))
2725 (uri (texlive-ref "latex" "mdwtools"))
2726 (file-name (string-append name "-" version "-checkout"))
2729 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
2730 (build-system texlive-build-system)
2731 (arguments '(#:tex-directory "latex/mdwtools"))
2732 (home-page "https://www.ctan.org/pkg/mdwtools")
2733 (synopsis "Miscellaneous tools by Mark Wooding")
2735 "This collection of tools includes: @code{atsupport} for short commands
2736 starting with @code{@@}, macros to sanitize the OT1 encoding of the
2737 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
2738 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
2739 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
2740 array environments; verbatim handling; and syntax diagrams.")
2741 (license license:gpl3+)))
2743 (define-public texlive-latex-polyglossia
2745 (name "texlive-latex-polyglossia")
2746 (version (number->string %texlive-revision))
2749 (uri (texlive-ref "latex" "polyglossia"))
2750 (file-name (string-append name "-" version "-checkout"))
2753 "03ma58z3ypsbp7zgkzb1ylpn2ygr27cxzkf042ns0rif4g8s491f"))))
2754 (build-system texlive-build-system)
2755 (arguments '(#:tex-directory "latex/polyglossia"))
2756 (home-page "https://www.ctan.org/pkg/polyglossia")
2757 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
2759 "This package provides a complete Babel replacement for users of LuaLaTeX
2760 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
2761 (license license:lppl1.3+)))
2763 (define-public texlive-latex-supertabular
2765 (name "texlive-latex-supertabular")
2766 (version (number->string %texlive-revision))
2769 (uri (texlive-ref "latex" "supertabular"))
2770 (file-name (string-append name "-" version "-checkout"))
2773 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
2774 (build-system texlive-build-system)
2775 (arguments '(#:tex-directory "latex/supertabular"))
2776 (home-page "https://www.ctan.org/pkg/supertabular")
2777 (synopsis "Multi-page tables package")
2779 "This package was a predecessor of @code{longtable}; the newer
2780 package (designed on quite different principles) is easier to use and more
2781 flexible, in many cases, but supertabular retains its usefulness in a few
2782 situations where longtable has problems.")
2783 (license license:lppl1.3+)))
2785 (define-public texlive-tex-texinfo
2787 (name "texlive-tex-texinfo")
2788 (version (number->string %texlive-revision))
2792 (url (string-append "svn://www.tug.org/texlive/tags/"
2793 %texlive-tag "/Master/texmf-dist/"
2795 (revision %texlive-revision)))
2796 (file-name (string-append name "-" version "-checkout"))
2799 "06cf821y1j7jdg93pb41ayigrfwgn0y49d7w1025zlijjxi6bvjp"))))
2800 (build-system trivial-build-system)
2802 `(#:modules ((guix build utils))
2805 (use-modules (guix build utils))
2806 (let ((target (string-append (assoc-ref %outputs "out")
2807 "/share/texmf-dist/tex/texinfo")))
2809 (copy-recursively (assoc-ref %build-inputs "source") target)
2811 (home-page "https://www.ctan.org/pkg/texinfo")
2812 (synopsis "TeX macros to handle Texinfo files")
2814 "Texinfo is the preferred format for documentation in the GNU project;
2815 the format may be used to produce online or printed output from a single
2816 source. The Texinfo macros may be used to produce printable output using TeX;
2817 other programs in the distribution offer online interactive use (with
2818 hypertext linkages in some cases).")
2819 (license license:gpl3+)))
2821 (define-public texlive-latex-upquote
2823 (name "texlive-latex-upquote")
2824 (version (number->string %texlive-revision))
2827 (uri (texlive-ref "latex" "upquote"))
2828 (file-name (string-append name "-" version "-checkout"))
2831 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
2832 (build-system texlive-build-system)
2833 (arguments '(#:tex-directory "latex/upquote"))
2834 (home-page "https://www.ctan.org/pkg/upquote")
2835 (synopsis "Show \"realistic\" quotes in verbatim")
2837 "Typewriter-style fonts are best for program listings, but Computer
2838 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
2839 single quotes. Other fonts, and most programming languages, print @code{`} as
2840 a grave accent and @code{'} upright; @code{'} is used both to open and to
2841 close quoted strings. The package switches the typewriter font to Computer
2842 Modern Typewriter in OT1 encoding, and modifies the behaviour of
2843 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
2844 in the expected way. It does this regardless of other fonts or encodings in
2845 use, so long as the package is loaded after the other fonts were. The package
2846 does not affect @code{\\tt}, @code{\\texttt}, etc.")
2847 (license license:lppl1.2+)))
2849 (define-public texlive-latex-anysize
2851 (name "texlive-latex-anysize")
2852 (version (number->string %texlive-revision))
2856 (url (string-append "svn://www.tug.org/texlive/tags/"
2857 %texlive-tag "/Master/texmf-dist/"
2858 "/tex/latex/anysize"))
2859 (revision %texlive-revision)))
2860 (file-name (string-append name "-" version "-checkout"))
2863 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
2864 (build-system trivial-build-system)
2866 `(#:modules ((guix build utils))
2869 (use-modules (guix build utils))
2870 (let ((target (string-append (assoc-ref %outputs "out")
2871 "/share/texmf-dist/tex/latex/anysize")))
2873 (copy-recursively (assoc-ref %build-inputs "source") target)
2875 (home-page "https://www.ctan.org/pkg/anysize")
2876 (synopsis "Simple package to set up document margins")
2878 "This is a simple package to set up document margins. This package is
2879 considered obsolete; alternatives are the @code{typearea} package from the
2880 @code{koma-script} bundle, or the @code{geometry} package.")
2881 (license license:public-domain)))
2883 (define-public texlive-latex-appendix
2885 (name "texlive-latex-appendix")
2886 (version (number->string %texlive-revision))
2889 (uri (texlive-ref "latex" "appendix"))
2890 (file-name (string-append name "-" version "-checkout"))
2893 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
2894 (build-system texlive-build-system)
2895 (arguments '(#:tex-directory "latex/appendix"))
2896 (home-page "https://www.ctan.org/pkg/appendix")
2897 (synopsis "Extra control of appendices")
2899 "The appendix package provides various ways of formatting the titles of
2900 appendices. Also (sub)appendices environments are provided that can be used,
2901 for example, for per chapter/section appendices. An @code{appendices}
2902 environment is provided which can be used instead of the @code{\\appendix}
2904 (license license:lppl)))
2906 (define-public texlive-latex-changebar
2908 (name "texlive-latex-changebar")
2909 (version (number->string %texlive-revision))
2912 (uri (texlive-ref "latex" "changebar"))
2913 (file-name (string-append name "-" version "-checkout"))
2916 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
2917 (build-system texlive-build-system)
2918 (arguments '(#:tex-directory "latex/changebar"))
2919 (home-page "https://www.ctan.org/pkg/changebar")
2920 (synopsis "Generate changebars in LaTeX documents")
2922 "Identify areas of text to be marked with changebars with the
2923 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
2924 package uses 'drivers' to place the bars; the available drivers can work with
2925 @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
2926 drivers, and VTeX and pdfTeX.")
2927 (license license:lppl)))
2929 (define-public texlive-latex-cmap
2931 (name "texlive-latex-cmap")
2932 (version (number->string %texlive-revision))
2936 (url (string-append "svn://www.tug.org/texlive/tags/"
2937 %texlive-tag "/Master/texmf-dist/"
2939 (revision %texlive-revision)))
2940 (file-name (string-append name "-" version "-checkout"))
2943 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
2944 (build-system trivial-build-system)
2946 `(#:modules ((guix build utils))
2949 (use-modules (guix build utils))
2950 (let ((target (string-append (assoc-ref %outputs "out")
2951 "/share/texmf-dist/tex/latex/cmap")))
2953 (copy-recursively (assoc-ref %build-inputs "source") target)
2955 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
2956 Master/texmf-dist/tex/latex/cmap/")
2957 (synopsis "CMap support for PDF files")
2959 "This package embeds CMap tables into PDF files to make search and
2960 copy-and-paste functions work properly.")
2961 (license license:lppl)))
2963 (define-public texlive-latex-colortbl
2965 (name "texlive-latex-colortbl")
2966 (version (number->string %texlive-revision))
2969 (uri (texlive-ref "latex" "colortbl"))
2970 (file-name (string-append name "-" version "-checkout"))
2973 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
2974 (build-system texlive-build-system)
2975 (arguments '(#:tex-directory "latex/colortbl"))
2976 (home-page "https://www.ctan.org/pkg/colortbl")
2977 (synopsis "Add colour to LaTeX tables")
2979 "This package allows rows, columns, and even individual cells in LaTeX
2980 tables to be coloured.")
2981 (license license:lppl)))
2983 (define-public texlive-latex-fancybox
2985 (name "texlive-latex-fancybox")
2986 (version (number->string %texlive-revision))
2990 (url (string-append "svn://www.tug.org/texlive/tags/"
2991 %texlive-tag "/Master/texmf-dist/"
2992 "/tex/latex/fancybox"))
2993 (revision %texlive-revision)))
2994 (file-name (string-append name "-" version "-checkout"))
2997 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
2998 (build-system trivial-build-system)
3000 `(#:modules ((guix build utils))
3003 (use-modules (guix build utils))
3004 (let ((target (string-append (assoc-ref %outputs "out")
3005 "/share/texmf-dist/tex/latex/fancybox")))
3007 (copy-recursively (assoc-ref %build-inputs "source") target)
3009 (home-page "https://www.ctan.org/pkg/fancybox")
3010 (synopsis "Variants of \\fbox and other games with boxes")
3012 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
3013 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
3014 using box macros and flexible verbatim macros. You can box mathematics,
3015 floats, center, flushleft, and flushright, lists, and pages.")
3016 (license license:lppl1.2+)))
3018 (define-public texlive-latex-fancyhdr
3020 (name "texlive-latex-fancyhdr")
3021 (version (number->string %texlive-revision))
3025 (url (string-append "svn://www.tug.org/texlive/tags/"
3026 %texlive-tag "/Master/texmf-dist/"
3027 "/tex/latex/fancyhdr"))
3028 (revision %texlive-revision)))
3029 (file-name (string-append name "-" version "-checkout"))
3032 "1xsnzx7vgdfh9zh2m7bjz6bgdpxsgb1kyc19p50vhs34x5nbgsnr"))))
3033 (build-system trivial-build-system)
3035 `(#:modules ((guix build utils))
3038 (use-modules (guix build utils))
3039 (let ((target (string-append (assoc-ref %outputs "out")
3040 "/share/texmf-dist/tex/latex/fancyhdr")))
3042 (copy-recursively (assoc-ref %build-inputs "source") target)
3044 (home-page "https://www.ctan.org/pkg/fancyhdr")
3045 (synopsis "Extensive control of page headers and footers in LaTeX2e")
3047 "The package provides extensive facilities, both for constructing headers
3048 and footers, and for controlling their use (for example, at times when LaTeX
3049 would automatically change the heading style in use).")
3050 (license license:lppl)))
3052 (define-public texlive-latex-float
3054 (name "texlive-latex-float")
3055 (version (number->string %texlive-revision))
3058 (uri (texlive-ref "latex" "float"))
3059 (file-name (string-append name "-" version "-checkout"))
3062 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
3063 (build-system texlive-build-system)
3064 (arguments '(#:tex-directory "latex/float"))
3065 (home-page "https://www.ctan.org/pkg/float")
3066 (synopsis "Improved interface for floating objects")
3068 "This package improves the interface for defining floating objects such
3069 as figures and tables. It introduces the boxed float, the ruled float and the
3070 plaintop float. You can define your own floats and improve the behaviour of
3071 the old ones. The package also provides the @code{H} float modifier option of
3072 the obsolete @code{here} package. You can select this as automatic default
3073 with @code{\\floatplacement{figure}{H}}.")
3074 (license license:lppl)))
3076 (define-public texlive-latex-footmisc
3078 (name "texlive-latex-footmisc")
3079 (version (number->string %texlive-revision))
3082 (uri (texlive-ref "latex" "footmisc"))
3083 (file-name (string-append name "-" version "-checkout"))
3086 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
3087 (build-system texlive-build-system)
3088 (arguments '(#:tex-directory "latex/footmisc"))
3089 (home-page "https://www.ctan.org/pkg/footmisc")
3090 (synopsis "Range of footnote options")
3092 "This is a collection of ways to change the typesetting of footnotes.
3093 The package provides means of changing the layout of the footnotes themselves,
3094 a way to number footnotes per page, to make footnotes disappear in a
3095 \"moving\" argument, and to deal with multiple references to footnotes from
3096 the same place. The package also has a range of techniques for labelling
3097 footnotes with symbols rather than numbers.")
3098 (license license:lppl1.3+)))
3100 (define-public texlive-latex-listings
3102 (name "texlive-latex-listings")
3103 (version (number->string %texlive-revision))
3106 (uri (texlive-ref "latex" "listings"))
3107 (file-name (string-append name "-" version "-checkout"))
3110 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
3111 (build-system texlive-build-system)
3113 '(#:tex-directory "latex/listings"
3114 #:build-targets '("listings.ins")))
3115 (home-page "https://www.ctan.org/pkg/listings")
3116 (synopsis "Typeset source code listings using LaTeX")
3118 "The package enables the user to typeset programs (programming code)
3119 within LaTeX; the source code is read directly by TeX---no front-end processor
3120 is needed. Keywords, comments and strings can be typeset using different
3121 styles. Support for @code{hyperref} is provided.")
3122 (license license:lppl1.3+)))
3124 (define-public texlive-latex-jknapltx
3126 (name "texlive-latex-jknapltx")
3127 (version (number->string %texlive-revision))
3131 (url (string-append "svn://www.tug.org/texlive/tags/"
3132 %texlive-tag "/Master/texmf-dist/"
3133 "/tex/latex/jknapltx"))
3134 (revision %texlive-revision)))
3135 (file-name (string-append name "-" version "-checkout"))
3138 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
3139 (build-system trivial-build-system)
3141 `(#:modules ((guix build utils))
3144 (use-modules (guix build utils))
3145 (let ((target (string-append (assoc-ref %outputs "out")
3146 "/share/texmf-dist/tex/latex/jknapltx")))
3148 (copy-recursively (assoc-ref %build-inputs "source") target)
3150 (home-page "https://www.ctan.org/pkg/jknappen")
3151 (synopsis "Miscellaneous packages by Joerg Knappen")
3153 "This package provides miscellaneous macros by Joerg Knappen, including:
3154 represent counters in greek; Maxwell's non-commutative division;
3155 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
3156 @code{inputenc} definition files that allow verbatim input in the respective
3157 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
3158 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
3159 transliterate semitic languages; patches to make (La)TeX formulae embeddable
3160 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
3161 (license license:gpl2)))
3163 (define-public texlive-fonts-ec
3165 (name "texlive-fonts-ec")
3166 (version (number->string %texlive-revision))
3170 (url (string-append "svn://www.tug.org/texlive/tags/"
3171 %texlive-tag "/Master/texmf-dist/"
3172 "/fonts/source/jknappen/ec/"))
3173 (revision %texlive-revision)))
3174 (file-name (string-append name "-" version "-checkout"))
3177 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
3178 (build-system gnu-build-system)
3180 `(#:modules ((guix build gnu-build-system)
3184 #:tests? #f ; no tests
3186 (modify-phases %standard-phases
3189 (lambda* (#:key inputs #:allow-other-keys)
3190 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
3191 ;; Tell mf where to find mf.base
3192 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
3193 ;; Tell mf where to look for source files
3195 (string-append (getcwd) ":"
3196 mf "/share/texmf-dist/metafont/base:"
3197 (assoc-ref inputs "texlive-fonts-cm")
3198 "/share/texmf-dist/fonts/source/public/cm")))
3200 (for-each (lambda (font)
3201 (format #t "building font ~a\n" font)
3202 (invoke "mf" "-progname=mf"
3203 "-output-directory=build"
3208 "input " (basename font ".mf"))))
3209 (find-files "." "[0-9]+\\.mf$"))
3212 (lambda* (#:key outputs #:allow-other-keys)
3213 (let* ((out (assoc-ref outputs "out"))
3215 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
3217 out "/share/texmf-dist/fonts/source/jknappen/ec")))
3218 (for-each (cut install-file <> tfm)
3219 (find-files "build" "\\.*"))
3220 (for-each (cut install-file <> mf)
3221 (find-files "." "\\.mf"))
3224 `(("texlive-bin" ,texlive-bin)
3225 ("texlive-metafont-base" ,texlive-metafont-base)
3226 ("texlive-fonts-cm" ,texlive-fonts-cm)))
3227 (home-page "https://www.ctan.org/pkg/ec")
3228 (synopsis "Computer modern fonts in T1 and TS1 encodings")
3230 "The EC fonts are European Computer Modern Fonts, supporting the complete
3231 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
3232 These fonts are intended to be stable with no changes being made to the tfm
3233 files. The set also contains a Text Companion Symbol font, called @code{tc},
3234 featuring many useful characters needed in text typesetting, for example
3235 oldstyle digits, currency symbols (including the newly created Euro symbol),
3236 the permille sign, copyright, trade mark and servicemark as well as a copyleft
3237 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
3238 EC fonts supersede the preliminary version released as the DC fonts. The
3239 fonts are available in (traced) Adobe Type 1 format, as part of the
3240 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
3241 set, Latin Modern, is not actually a direct development of the EC set, and
3242 differs from the EC in a number of particulars.")
3243 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
3244 texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
3246 (define-public texlive-fonts-rsfs
3248 (name "texlive-fonts-rsfs")
3249 (version (number->string %texlive-revision))
3253 (url (string-append "svn://www.tug.org/texlive/tags/"
3254 %texlive-tag "/Master/texmf-dist/"
3255 "/fonts/source/public/rsfs/"))
3256 (revision %texlive-revision)))
3257 (file-name (string-append name "-" version "-checkout"))
3260 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
3261 (build-system gnu-build-system)
3263 `(#:modules ((guix build gnu-build-system)
3267 #:tests? #f ; no tests
3269 (modify-phases %standard-phases
3272 (lambda* (#:key inputs #:allow-other-keys)
3273 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
3274 ;; Tell mf where to find mf.base
3275 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
3276 ;; Tell mf where to look for source files
3278 (string-append (getcwd) ":"
3279 mf "/share/texmf-dist/metafont/base:"
3280 (assoc-ref inputs "texlive-fonts-cm")
3281 "/share/texmf-dist/fonts/source/public/cm")))
3283 (for-each (lambda (font)
3284 (format #t "building font ~a\n" font)
3285 (invoke "mf" "-progname=mf"
3286 "-output-directory=build"
3291 "input " (basename font ".mf"))))
3292 (find-files "." "[0-9]+\\.mf$"))
3295 (lambda* (#:key outputs #:allow-other-keys)
3296 (let* ((out (assoc-ref outputs "out"))
3298 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
3300 out "/share/texmf-dist/fonts/source/public/rsfs")))
3301 (for-each (cut install-file <> tfm)
3302 (find-files "build" "\\.*"))
3303 (for-each (cut install-file <> mf)
3304 (find-files "." "\\.mf"))
3307 `(("texlive-bin" ,texlive-bin)
3308 ("texlive-metafont-base" ,texlive-metafont-base)
3309 ("texlive-fonts-cm" ,texlive-fonts-cm)))
3310 (home-page "https://www.ctan.org/pkg/rsfs")
3311 (synopsis "Ralph Smith's Formal Script font")
3313 "The fonts provide uppercase formal script letters for use as symbols in
3314 scientific and mathematical typesetting (in contrast to the informal script
3315 fonts such as that used for the calligraphic symbols in the TeX maths symbol
3316 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
3317 format. LaTeX support, for using these fonts in mathematics, is available via
3318 one of the packages @code{calrsfs} and @code{mathrsfs}.")
3319 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
3321 (define-public texlive-latex-eso-pic
3323 (name "texlive-latex-eso-pic")
3324 (version (number->string %texlive-revision))
3327 (uri (texlive-ref "latex" "eso-pic"))
3328 (file-name (string-append name "-" version "-checkout"))
3331 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
3332 (build-system texlive-build-system)
3333 (arguments '(#:tex-directory "latex/eso-pic"))
3334 (home-page "https://www.ctan.org/pkg/eso-pic")
3335 (synopsis "Add picture commands (or backgrounds) to every page")
3337 "The package adds one or more user commands to LaTeX's @code{shipout}
3338 routine, which may be used to place the output at fixed positions. The
3339 @code{grid} option may be used to find the correct places.")
3340 (license license:lppl1.3+)))
3342 (define-public texlive-latex-eepic
3344 (name "texlive-latex-eepic")
3345 (version (number->string %texlive-revision))
3349 (url (string-append "svn://www.tug.org/texlive/tags/"
3350 %texlive-tag "/Master/texmf-dist/"
3351 "/tex/latex/eepic"))
3352 (revision %texlive-revision)))
3353 (file-name (string-append name "-" version "-checkout"))
3356 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
3357 (build-system trivial-build-system)
3359 `(#:modules ((guix build utils))
3362 (use-modules (guix build utils))
3363 (let ((target (string-append (assoc-ref %outputs "out")
3364 "/share/texmf-dist/tex/latex/eepic")))
3366 (copy-recursively (assoc-ref %build-inputs "source") target)
3368 (home-page "https://www.ctan.org/pkg/eepic")
3369 (synopsis "Extensions to epic and the LaTeX drawing tools")
3371 "Extensions to @code{epic} and the LaTeX picture drawing environment,
3372 include the drawing of lines at any slope, the drawing of circles in any
3373 radii, and the drawing of dotted and dashed lines much faster with much less
3374 TeX memory, and providing several new commands for drawing ellipses, arcs,
3375 splines, and filled circles and ellipses. The package uses @code{tpic}
3376 @code{\\special} commands.")
3377 (license license:public-domain)))
3379 (define-public texlive-latex-enumitem
3381 (name "texlive-latex-enumitem")
3382 (version (number->string %texlive-revision))
3386 (url (string-append "svn://www.tug.org/texlive/tags/"
3387 %texlive-tag "/Master/texmf-dist/"
3388 "/tex/latex/enumitem"))
3389 (revision %texlive-revision)))
3390 (file-name (string-append name "-" version "-checkout"))
3393 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
3394 (build-system trivial-build-system)
3396 `(#:modules ((guix build utils))
3399 (use-modules (guix build utils))
3400 (let ((target (string-append (assoc-ref %outputs "out")
3401 "/share/texmf-dist/tex/latex/enumitem")))
3403 (copy-recursively (assoc-ref %build-inputs "source") target)
3405 (home-page "https://www.ctan.org/pkg/enumitem")
3406 (synopsis "Customize basic list environments")
3408 "This package is intended to ease customizing the three basic list
3409 environments: @code{enumerate}, @code{itemize} and @code{description}. It
3410 extends their syntax to allow an optional argument where a set of parameters
3411 in the form @code{key=value} are available, for example:
3412 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
3413 (license license:lppl1.3+)))
3415 (define-public texlive-latex-multirow
3417 (name "texlive-latex-multirow")
3418 (version (number->string %texlive-revision))
3421 (uri (texlive-ref "latex" "multirow"))
3422 (file-name (string-append name "-" version "-checkout"))
3425 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
3426 (build-system texlive-build-system)
3427 (arguments '(#:tex-directory "latex/multirow"))
3428 (home-page "https://www.ctan.org/pkg/multirow")
3429 (synopsis "Create tabular cells spanning multiple rows")
3431 "The package provides tools for creating tabular cells spanning multiple
3432 rows. It has a lot of flexibility, including an option for specifying an
3433 entry at the \"natural\" width of its text.")
3434 (license license:lppl1.3+)))
3436 (define-public texlive-latex-overpic
3438 (name "texlive-latex-overpic")
3439 (version (number->string %texlive-revision))
3443 (url (string-append "svn://www.tug.org/texlive/tags/"
3444 %texlive-tag "/Master/texmf-dist/"
3445 "/tex/latex/overpic"))
3446 (revision %texlive-revision)))
3447 (file-name (string-append name "-" version "-checkout"))
3450 "1rpx4ibjncj5416rg19v0xjbj3z9avhfdfn2gzp8r8sz9vz25c6g"))))
3451 (build-system trivial-build-system)
3453 `(#:modules ((guix build utils))
3456 (use-modules (guix build utils))
3457 (let ((target (string-append (assoc-ref %outputs "out")
3458 "/share/texmf-dist/tex/latex/overpic")))
3460 (copy-recursively (assoc-ref %build-inputs "source") target)
3462 (home-page "https://www.ctan.org/pkg/overpic")
3463 (synopsis "Combine LaTeX commands over included graphics")
3465 "The @code{overpic} environment is a cross between the LaTeX
3466 @code{picture} environment and the @code{\\includegraphics} command of
3467 @code{graphicx}. The resulting picture environment has the same dimensions as
3468 the included graphic. LaTeX commands can be placed on the graphic at defined
3469 positions; a grid for orientation is available.")
3470 (license license:lppl1.0+)))
3472 (define-public texlive-latex-parskip
3474 (name "texlive-latex-parskip")
3475 (version (number->string %texlive-revision))
3479 (url (string-append "svn://www.tug.org/texlive/tags/"
3480 %texlive-tag "/Master/texmf-dist/"
3481 "/tex/latex/parskip"))
3482 (revision %texlive-revision)))
3483 (file-name (string-append name "-" version "-checkout"))
3486 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
3487 (build-system trivial-build-system)
3489 `(#:modules ((guix build utils))
3492 (use-modules (guix build utils))
3493 (let ((target (string-append (assoc-ref %outputs "out")
3494 "/share/texmf-dist/tex/latex/parskip")))
3496 (copy-recursively (assoc-ref %build-inputs "source") target)
3498 (home-page "https://www.ctan.org/pkg/parskip")
3499 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
3501 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
3502 that is untidy; this package (though it is no substitute for a properly
3503 designed class) helps alleviate this untidiness.")
3504 (license license:lppl)))
3506 (define-public texlive-latex-pdfpages
3508 (name "texlive-latex-pdfpages")
3509 (version (number->string %texlive-revision))
3512 (uri (texlive-ref "latex" "pdfpages"))
3513 (file-name (string-append name "-" version "-checkout"))
3516 "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd"))))
3517 (build-system texlive-build-system)
3518 (arguments '(#:tex-directory "latex/pdfpages"))
3519 (home-page "https://www.ctan.org/pkg/pdfpages")
3520 (synopsis "Include PDF documents in LaTeX")
3522 "This package simplifies the inclusion of external multi-page PDF
3523 documents in LaTeX documents. Pages may be freely selected and it is possible
3524 to put several logical pages onto each sheet of paper. Furthermore a lot of
3525 hypertext features like hyperlinks and article threads are provided. The
3526 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
3527 use this package to insert PostScript files, in addition to PDF files.")
3528 (license license:lppl1.3+)))
3530 (define-public texlive-fonts-stmaryrd
3532 (name "texlive-fonts-stmaryrd")
3533 (version (number->string %texlive-revision))
3536 (uri (texlive-ref "fonts" "stmaryrd"))
3537 (file-name (string-append name "-" version "-checkout"))
3540 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
3541 (build-system texlive-build-system)
3543 '(#:tex-directory "latex/stmaryrd"
3545 (modify-phases %standard-phases
3546 (add-after 'configure 'patch-ins
3548 (substitute* "stmaryrd.ins"
3549 (("^%% LaTeX2e.*") "\\input docstrip\n")
3550 (("fontdef\\}\\}" line)
3551 (string-append line "\n\\endbatchfile")))
3553 (home-page "https://www.ctan.org/pkg/stmaryrd")
3554 (synopsis "St Mary Road symbols for theoretical computer science")
3556 "The fonts were originally distributed as Metafont sources only, but
3557 Adobe Type 1 versions are also now available. Macro support is provided for
3558 use under LaTeX; the package supports the @code{only} option (provided by the
3559 @code{somedefs} package) to restrict what is loaded, for those who don't need
3561 (license license:lppl)))
3563 (define-public texlive-latex-subfigure
3565 (name "texlive-latex-subfigure")
3566 (version (number->string %texlive-revision))
3569 (uri (texlive-ref "latex" "subfigure"))
3570 (file-name (string-append name "-" version "-checkout"))
3573 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
3574 (build-system texlive-build-system)
3575 (arguments '(#:tex-directory "latex/subfigure"))
3576 (home-page "https://www.ctan.org/pkg/subfigure")
3577 (synopsis "Figures divided into subfigures")
3579 "This (deprecated) package provides support for the manipulation and
3580 reference of small or \"sub\" figures and tables within a single figure or
3581 table environment. It is convenient to use this package when your subfigures
3582 are to be separately captioned, referenced, or are to be included in the
3583 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
3584 used inside a figure environment for each subfigure. An optional first
3585 argument is used as the caption for that subfigure. The package is now
3586 considered obsolete: it was superseded by @code{subfig}, but users may find
3587 the more recent @code{subcaption} package more satisfactory.")
3588 (license license:lppl)))
3590 (define-public texlive-latex-tabulary
3592 (name "texlive-latex-tabulary")
3593 (version (number->string %texlive-revision))
3596 (uri (texlive-ref "latex" "tabulary"))
3597 (file-name (string-append name "-" version "-checkout"))
3600 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
3601 (build-system texlive-build-system)
3602 (arguments '(#:tex-directory "latex/tabulary"))
3603 (home-page "https://www.ctan.org/pkg/tabulary")
3604 (synopsis "Tabular with variable width columns balanced")
3606 "The package defines a @code{tabular*}-like environment, @code{tabulary},
3607 taking a \"total width\" argument as well as the column specifications. The
3608 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
3609 variable width columns (@code{\\raggedright}, @code{\\centering},
3610 @code{\\raggedleft}, and normally justified). In contrast to
3611 @code{tabularx}'s @code{X} columns, the width of each column is weighted
3612 according to the natural width of the widest cell in the column.")
3613 (license license:lppl)))
3615 (define-public texlive-latex-threeparttable
3617 (name "texlive-latex-threeparttable")
3618 (version (number->string %texlive-revision))
3622 (url (string-append "svn://www.tug.org/texlive/tags/"
3623 %texlive-tag "/Master/texmf-dist/"
3624 "/tex/latex/threeparttable"))
3625 (revision %texlive-revision)))
3626 (file-name (string-append name "-" version "-checkout"))
3629 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
3630 (build-system trivial-build-system)
3632 `(#:modules ((guix build utils))
3635 (use-modules (guix build utils))
3636 (let ((target (string-append (assoc-ref %outputs "out")
3637 "/share/texmf-dist/tex/latex/threeparttable")))
3639 (copy-recursively (assoc-ref %build-inputs "source") target)
3641 (home-page "https://www.ctan.org/pkg/threeparttable")
3642 (synopsis "Tables with captions and notes all the same width")
3644 "This package facilitates tables with titles (captions) and notes. The
3645 title and notes are given a width equal to the body of the table (a
3646 @code{tabular} environment). By itself, a @code{threeparttable} does not
3647 float, but you can put it in a @code{table} or a @code{table*} or some other
3649 (license (license:fsf-free "file://threeparttable.sty"))))
3651 (define-public texlive-fonts-txfonts
3653 (name "texlive-fonts-txfonts")
3654 (version (number->string %texlive-revision))
3658 (url (string-append "svn://www.tug.org/texlive/tags/"
3659 %texlive-tag "/Master/texmf-dist/"
3660 "/tex/latex/txfonts"))
3661 (revision %texlive-revision)))
3662 (file-name (string-append name "-" version "-checkout"))
3665 "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
3666 (build-system trivial-build-system)
3668 `(#:modules ((guix build utils)
3672 (use-modules (guix build utils)
3674 (let ((root (string-append (assoc-ref %outputs "out")
3675 "/share/texmf-dist/"))
3676 (pkgs '(("source" . "tex/latex/txfonts")
3677 ("txfonts-vf" . "fonts/tfm/public/txfonts")
3678 ("txfonts-afm" . "fonts/afm/public/txfonts")
3679 ("txfonts-tfm" . "fonts/tfm/public/txfonts")
3680 ("txfonts-type1" . "fonts/type1/public/txfonts")
3681 ("txfonts-enc" . "fonts/enc/dvips/txfonts")
3682 ("txfonts-map" . "fonts/map/dvips/txfonts"))))
3683 (for-each (match-lambda
3685 (let ((target (string-append root dir)))
3687 (copy-recursively (assoc-ref %build-inputs pkg)
3696 (url (string-append "svn://www.tug.org/texlive/tags/"
3697 %texlive-tag "/Master/texmf-dist/"
3698 "/fonts/tfm/public/txfonts"))
3699 (revision %texlive-revision)))
3700 (file-name (string-append name "-tfm-" version "-checkout"))
3703 "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
3708 (url (string-append "svn://www.tug.org/texlive/tags/"
3709 %texlive-tag "/Master/texmf-dist/"
3710 "/fonts/vf/public/txfonts"))
3711 (revision %texlive-revision)))
3712 (file-name (string-append name "-vf-" version "-checkout"))
3715 "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
3720 (url (string-append "svn://www.tug.org/texlive/tags/"
3721 %texlive-tag "/Master/texmf-dist/"
3722 "/fonts/afm/public/txfonts"))
3723 (revision %texlive-revision)))
3724 (file-name (string-append name "-afm-" version "-checkout"))
3727 "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
3732 (url (string-append "svn://www.tug.org/texlive/tags/"
3733 %texlive-tag "/Master/texmf-dist/"
3734 "/fonts/type1/public/txfonts"))
3735 (revision %texlive-revision)))
3736 (file-name (string-append name "-type1-" version "-checkout"))
3739 "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
3744 (url (string-append "svn://www.tug.org/texlive/tags/"
3745 %texlive-tag "/Master/texmf-dist/"
3746 "/fonts/map/dvips/txfonts"))
3747 (revision %texlive-revision)))
3748 (file-name (string-append name "-map-" version "-checkout"))
3751 "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
3756 (url (string-append "svn://www.tug.org/texlive/tags/"
3757 %texlive-tag "/Master/texmf-dist/"
3758 "/fonts/enc/dvips/txfonts"))
3759 (revision %texlive-revision)))
3760 (file-name (string-append name "-enc-" version "-checkout"))
3763 "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
3764 (home-page "https://www.ctan.org/pkg/threeparttable")
3765 (synopsis "Times-like fonts in support of mathematics")
3767 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
3768 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
3769 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
3770 providing all the symbols of the Computer Modern and AMS fonts, including all
3771 the Greek capital letters from CMR; and additional maths fonts of various
3774 The set is complemented by a sans-serif set of text fonts, based on
3775 Helvetica/NimbusSanL, and a monospace set.
3777 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
3778 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
3779 ;; Any version of the GPL with font exception.
3780 (license license:gpl3+)))
3782 (define-public texlive-fonts-iwona
3784 (name "texlive-fonts-iwona")
3788 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
3789 (string-map (lambda (c)
3796 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
3797 (build-system trivial-build-system)
3799 `(#:modules ((guix build utils))
3802 (use-modules (guix build utils))
3803 (let ((target (string-append (assoc-ref %outputs "out")
3804 "/share/texmf-dist/"))
3805 (unzip (string-append (assoc-ref %build-inputs "unzip")
3807 (invoke unzip (assoc-ref %build-inputs "source"))
3809 (copy-recursively "iwona" target)
3812 `(("unzip" ,unzip)))
3813 (home-page "http://jmn.pl/en/kurier-i-iwona/")
3814 (synopsis "Sans-serif typeface for TeX")
3815 (description "Iwona is a two-element sans-serif typeface. It was created
3816 as an alternative version of the Kurier typeface, which was designed in 1975
3817 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
3818 supervision of Roman Tomaszewski. Kurier was designed for linotype
3819 typesetting of newspapers and similar periodicals. The Iwona fonts are an
3820 alternative version of the Kurier fonts. The difference lies in the absence
3821 of ink traps which typify the Kurier font.")
3822 (license license:gfl1.0)))
3824 (define-public texlive-latex-titlesec
3826 (name "texlive-latex-titlesec")
3827 (version (number->string %texlive-revision))
3831 (url (string-append "svn://www.tug.org/texlive/tags/"
3832 %texlive-tag "/Master/texmf-dist/"
3833 "/tex/latex/titlesec"))
3834 (revision %texlive-revision)))
3835 (file-name (string-append name "-" version "-checkout"))
3838 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
3839 (build-system trivial-build-system)
3841 `(#:modules ((guix build utils))
3844 (use-modules (guix build utils))
3845 (let ((target (string-append (assoc-ref %outputs "out")
3846 "/share/texmf-dist/tex/latex/titlesec")))
3848 (copy-recursively (assoc-ref %build-inputs "source") target)
3850 (home-page "https://www.ctan.org/pkg/titlesec")
3851 (synopsis "Select alternative section titles")
3853 "This package provides an interface to sectioning commands for selection
3854 from various title styles, e.g. for marginal titles and to change the font of
3855 all headings with a single command, also providing simple one-step page
3856 styles. It also includes a package to change the page styles when there are
3857 floats in a page. You may assign headers/footers to individual floats, too.")
3858 (license license:lppl)))
3860 (define-public texlive-latex-type1cm
3862 (name "texlive-latex-type1cm")
3863 (version (number->string %texlive-revision))
3866 (uri (texlive-ref "latex" "type1cm"))
3867 (file-name (string-append name "-" version "-checkout"))
3870 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
3871 (build-system texlive-build-system)
3872 (arguments '(#:tex-directory "latex/type1cm"))
3873 (home-page "https://www.ctan.org/pkg/type1cm")
3874 (synopsis "Arbitrary size font selection in LaTeX")
3876 "LaTeX, by default, restricts the sizes at which you can use its default
3877 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
3878 specified by Knuth). The @code{type1cm} package removes this restriction;
3879 this is particularly useful when using scalable versions of the CM
3880 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
3881 PCTeX, etc.). In fact, since modern distributions will automatically generate
3882 any bitmap font you might need, @code{type1cm} has wider application than just
3883 those using scalable versions of the fonts. Note that the LaTeX distribution
3884 now contains a package @code{fix-cm},f which performs the task of
3885 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
3887 (license license:lppl)))
3889 (define-public texlive-latex-lh
3891 (name "texlive-latex-lh")
3892 (version (number->string %texlive-revision))
3895 (uri (texlive-ref "latex" "lh"))
3896 (file-name (string-append name "-" version "-checkout"))
3899 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
3900 (build-system texlive-build-system)
3901 (arguments '(#:tex-directory "latex/lh"))
3902 (home-page "https://www.ctan.org/pkg/lh")
3903 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
3905 "The LH fonts address the problem of the wide variety of alphabets that
3906 are written with Cyrillic-style characters. The fonts are the original basis
3907 of the set of T2* and X2 encodings that are now used when LaTeX users need to
3908 write in Cyrillic languages. Macro support in standard LaTeX encodings is
3909 offered through the latex-cyrillic and t2 bundles, and the package itself
3910 offers support for other (more traditional) encodings. The fonts, in the
3911 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
3912 CM-Super family of fonts. The package also offers its own LaTeX support for
3913 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
3914 (license license:lppl)))
3916 (define-public texlive-metapost
3918 (name "texlive-metapost")
3919 (version (number->string %texlive-revision))
3923 (url (string-append "svn://www.tug.org/texlive/tags/"
3924 %texlive-tag "/Master/texmf-dist/"
3926 (revision %texlive-revision)))
3927 (file-name (string-append name "-" version "-checkout"))
3930 "0sf18pc6chgy26p9bxxn44xcqhzjrfb53jxjr2y7l3jb6xllhblq"))))
3931 (build-system trivial-build-system)
3933 `(#:modules ((guix build utils))
3936 (use-modules (guix build utils))
3937 (let ((target (string-append (assoc-ref %outputs "out")
3938 "/share/texmf-dist/metapost")))
3940 (copy-recursively (assoc-ref %build-inputs "source") target)
3942 (home-page "https://www.ctan.org/pkg/metapost")
3943 (synopsis "Create scalable illustrations")
3945 "MetaPost uses a language based on that of Metafont to produce precise
3946 technical illustrations. Its output is scalable PostScript or SVG, rather
3947 than the bitmaps Metafont creates.")
3948 (license license:lppl)))
3950 (define-public texlive-latex-acmart
3952 (name "texlive-latex-acmart")
3956 (uri (texlive-ref "latex" "acmart"))
3959 "10zs8ga88ksypv1v4p6mynmfa7749q2hgxlr4shnwfjd9wrb421q"))
3960 (file-name (string-append name "-" version "-checkout"))))
3961 (build-system texlive-build-system)
3962 (arguments '(#:tex-directory "latex/acmart"))
3963 (home-page "https://www.ctan.org/pkg/acmart")
3964 (synopsis "Class for typesetting publications of ACM")
3966 "This package provides a class for typesetting publications of the
3967 Association for Computing Machinery (ACM).")
3968 (license license:lppl1.3+)))
3970 (define-public texlive-latex-varwidth
3972 (name "texlive-latex-varwidth")
3973 (version (number->string %texlive-revision))
3977 (url (string-append "svn://www.tug.org/texlive/tags/"
3978 %texlive-tag "/Master/texmf-dist/"
3979 "/tex/latex/varwidth"))
3980 (revision %texlive-revision)))
3981 (file-name (string-append name "-" version "-checkout"))
3984 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
3985 (build-system trivial-build-system)
3987 `(#:modules ((guix build utils))
3990 (use-modules (guix build utils))
3991 (let ((target (string-append (assoc-ref %outputs "out")
3992 "/share/texmf-dist/tex/latex/varwidth")))
3994 (copy-recursively (assoc-ref %build-inputs "source") target)
3996 (home-page "https://www.ctan.org/pkg/varwidth")
3997 (synopsis "Variable-width minipage")
3999 "The @code{varwidth} environment is superficially similar to
4000 @code{minipage}, but the specified width is just a maximum value — the box may
4001 get a narrower “natural” width.")
4002 (license license:lppl)))
4004 (define-public texlive-latex-wasysym
4006 (name "texlive-latex-wasysym")
4007 (version (number->string %texlive-revision))
4010 (uri (texlive-ref "latex" "wasysym"))
4011 (file-name (string-append name "-" version "-checkout"))
4014 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
4015 (build-system texlive-build-system)
4016 (arguments '(#:tex-directory "latex/wasysym"))
4017 (home-page "https://www.ctan.org/pkg/wasysym")
4018 (synopsis "LaTeX support file to use the WASY2 fonts")
4020 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
4021 like male and female symbols and astronomical symbols, as well as the complete
4022 lasy font set and other odds and ends. The wasysym package implements an easy
4023 to use interface for these symbols.")
4024 (license license:lppl)))
4026 (define-public texlive-latex-wrapfig
4028 (name "texlive-latex-wrapfig")
4029 (version (number->string %texlive-revision))
4033 (url (string-append "svn://www.tug.org/texlive/tags/"
4034 %texlive-tag "/Master/texmf-dist/"
4035 "/tex/latex/wrapfig"))
4036 (revision %texlive-revision)))
4037 (file-name (string-append name "-" version "-checkout"))
4040 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
4041 (build-system trivial-build-system)
4043 `(#:modules ((guix build utils))
4046 (use-modules (guix build utils))
4047 (let ((target (string-append (assoc-ref %outputs "out")
4048 "/share/texmf-dist/tex/latex/wrapfig")))
4050 (copy-recursively (assoc-ref %build-inputs "source") target)
4052 (home-page "https://www.ctan.org/pkg/wrapfig")
4053 (synopsis "Produces figures which text can flow around")
4055 "This package allows figures or tables to have text wrapped around them.
4056 It does not work in combination with list environments, but can be used in a
4057 @code{parbox} or @code{minipage}, and in two-column format.")
4058 (license license:lppl)))
4060 (define-public texlive-latex-ucs
4062 (name "texlive-latex-ucs")
4063 (version (number->string %texlive-revision))
4067 (url (string-append "svn://www.tug.org/texlive/tags/"
4068 %texlive-tag "/Master/texmf-dist/"
4070 (revision %texlive-revision)))
4071 (file-name (string-append name "-" version "-checkout"))
4074 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
4075 (build-system trivial-build-system)
4077 `(#:modules ((guix build utils))
4080 (use-modules (guix build utils))
4081 (let ((target (string-append (assoc-ref %outputs "out")
4082 "/share/texmf-dist/tex/latex/ucs")))
4084 (copy-recursively (assoc-ref %build-inputs "source") target)
4086 (home-page "https://www.ctan.org/pkg/ucs")
4087 (synopsis "Extended UTF-8 input encoding support for LaTeX")
4089 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
4090 together with a large number of support files. The @code{utf8x.def}
4091 definition file for use with @code{inputenc} covers a wider range of Unicode
4092 characters than does @code{utf8.def} in the LaTeX distribution. The package
4093 provides facilities for efficient use of its large sets of Unicode characters.
4094 Glyph production may be controlled by various options, which permits use of
4095 non-ASCII characters when coding mathematical formulae. Note that the bundle
4096 previously had an alias “unicode”; that alias has now been withdrawn, and no
4097 package of that name now exists.")
4098 (license license:lppl1.3+)))
4100 (define-public texlive-latex-preview
4102 (name "texlive-latex-preview")
4103 (version (number->string %texlive-revision))
4106 (uri (texlive-ref "latex" "preview"))
4107 (file-name (string-append name "-" version "-checkout"))
4110 "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6"))))
4111 (build-system texlive-build-system)
4113 '(#:tex-directory "latex/preview"
4115 (modify-phases %standard-phases
4116 (add-after 'unpack 'remove-generated-file
4118 (delete-file "preview.drv")
4120 (home-page "https://www.ctan.org/pkg/preview")
4121 (synopsis "Extract bits of a LaTeX source for output")
4123 "The main purpose of the preview package is the extraction of selected
4124 elements from a LaTeX source, like formulas or graphics, into separate
4125 pages of a DVI file. A flexible and convenient interface allows it to
4126 specify what commands and constructs should be extracted. This works
4127 with DVI files postprocessed by either Dvips and Ghostscript or
4128 dvipng, but it also works when you are using PDFTeX for generating PDF
4130 (license license:gpl3+)))
4132 (define-public texlive-latex-acronym
4134 (name "texlive-latex-acronym")
4135 (version (number->string %texlive-revision))
4138 (uri (texlive-ref "latex" "acronym"))
4139 (file-name (string-append name "-" version "-checkout"))
4142 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
4143 (build-system texlive-build-system)
4144 (arguments '(#:tex-directory "latex/acronym"))
4145 (home-page "https://www.ctan.org/pkg/acronym")
4146 (synopsis "Expand acronyms at least once")
4148 "This package ensures that all acronyms used in the text are spelled out
4149 in full at least once. It also provides an environment to build a list of
4150 acronyms used. The package is compatible with PDF bookmarks. The package
4151 requires the suffix package, which in turn requires that it runs under
4153 (license license:lppl1.3+)))
4155 (define-public texlive-generic-pdftex
4157 (name "texlive-generic-pdftex")
4158 (version (number->string %texlive-revision))
4162 (url (string-append "svn://www.tug.org/texlive/tags/"
4163 %texlive-tag "/Master/texmf-dist/"
4164 "/tex/generic/pdftex"))
4165 (revision %texlive-revision)))
4166 (file-name (string-append name "-" version "-checkout"))
4169 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
4170 (build-system trivial-build-system)
4172 `(#:modules ((guix build utils))
4175 (use-modules (guix build utils))
4176 (let ((target (string-append (assoc-ref %outputs "out")
4177 "/share/texmf-dist/tex/generic/pdftex"))
4178 (target-map (string-append (assoc-ref %outputs "out")
4179 "/share/texmf-dist/fonts/map/pdftex")))
4181 (copy-recursively (assoc-ref %build-inputs "source") target)
4182 (mkdir-p target-map)
4183 (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map)
4190 (url (string-append "svn://www.tug.org/texlive/tags/"
4191 %texlive-tag "/Master/texmf-dist/"
4192 "/fonts/map/pdftex"))
4193 (revision %texlive-revision)))
4194 (file-name (string-append name "-map-" version "-checkout"))
4197 "18jvcm0vwpg6wwzijvnb92xx78la45kkh71k6l44425krp2vnwm0"))))))
4198 (home-page "https://www.ctan.org/pkg/pdftex")
4199 (synopsis "TeX extension for direct creation of PDF")
4201 "This package provides an extension of TeX which can be configured to
4202 directly generate PDF documents instead of DVI.")
4203 (license license:gpl2+)))
4205 (define texlive-texmf
4207 (name "texlive-texmf")
4208 (version "20180414")
4209 (source texlive-texmf-src)
4210 (build-system gnu-build-system)
4212 `(("texlive-bin" ,texlive-bin)
4215 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
4219 `(#:modules ((guix build gnu-build-system)
4223 ;; This package takes 4 GiB, which we can't afford to distribute from
4228 (modify-phases (map (cut assq <> %standard-phases)
4229 '(set-paths unpack patch-source-shebangs))
4230 (add-after 'patch-source-shebangs 'install
4231 (lambda* (#:key outputs #:allow-other-keys)
4232 (let ((share (string-append (assoc-ref outputs "out") "/share")))
4234 (invoke "mv" "texmf-dist" share))))
4235 (add-after 'install 'texmf-config
4236 (lambda* (#:key inputs outputs #:allow-other-keys)
4237 (let* ((out (assoc-ref outputs "out"))
4238 (share (string-append out "/share"))
4239 (texmfroot (string-append share "/texmf-dist/web2c"))
4240 (texmfcnf (string-append texmfroot "/texmf.cnf"))
4241 (texlive-bin (assoc-ref inputs "texlive-bin"))
4242 (texbin (string-append texlive-bin "/bin"))
4243 (tlpkg (string-append texlive-bin "/share/tlpkg")))
4244 ;; Register SHARE as TEXMFROOT in texmf.cnf.
4245 (substitute* texmfcnf
4246 (("TEXMFROOT = \\$SELFAUTOPARENT")
4247 (string-append "TEXMFROOT = " share))
4248 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
4249 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
4250 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
4251 ;; Register paths in texmfcnf.lua, needed for context.
4252 (substitute* (string-append texmfroot "/texmfcnf.lua")
4253 (("selfautodir:") out)
4254 (("selfautoparent:") (string-append share "/")))
4255 ;; Set path to TeXLive Perl modules
4257 (string-append (getenv "PERL5LIB") ":" tlpkg))
4258 ;; Configure the texmf-dist tree; inspired from
4259 ;; http://slackbuilds.org/repository/13.37/office/texlive/
4260 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
4261 (setenv "TEXMFCNF" texmfroot)
4262 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
4264 (invoke "fmtutil-sys" "--all")))))))
4265 (properties `((max-silent-time . 9600))) ; don't time out while grafting
4266 (synopsis "TeX Live, a package of the TeX typesetting system")
4268 "TeX Live provides a comprehensive TeX document production system.
4269 It includes all the major TeX-related programs, macro packages, and fonts
4270 that are free software, including support for many languages around the
4273 This package contains the complete tree of texmf-dist data.")
4274 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
4275 (home-page "https://www.tug.org/texlive/")))
4277 (define-public texlive
4280 (version "20180414")
4282 (build-system trivial-build-system)
4283 (inputs `(("bash" ,bash) ; for wrap-program
4284 ("texlive-bin" ,texlive-bin)
4285 ("texlive-texmf" ,texlive-texmf)))
4286 (native-search-paths
4287 (list (search-path-specification
4288 (variable "TEXMFLOCAL")
4289 (files '("share/texmf-local")))))
4291 `(#:modules ((guix build utils))
4293 ;; Build the union of texlive-bin and texlive-texmf, but take the
4294 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
4296 (use-modules (guix build utils))
4297 (let ((out (assoc-ref %outputs "out"))
4298 (bin (assoc-ref %build-inputs "texlive-bin"))
4299 (texmf (assoc-ref %build-inputs "texlive-texmf"))
4300 (bash (assoc-ref %build-inputs "bash")))
4302 (with-directory-excursion out
4305 (symlink (string-append bin "/" name) name))
4308 (with-directory-excursion "bin"
4309 (setenv "PATH" (string-append bash "/bin"))
4312 (symlink name (basename name))
4316 (,(string-append texmf "/share/texmf-dist/web2c")))))
4317 (find-files (string-append bin "/bin/") "")))
4319 (with-directory-excursion "share"
4322 (symlink (string-append bin "/share/" name) name))
4323 '("info" "man" "tlpkg"))
4326 (symlink (string-append texmf "/share/" name) name))
4327 '("texmf-dist" "texmf-var"))))
4329 (synopsis "TeX Live, a package of the TeX typesetting system")
4331 "TeX Live provides a comprehensive TeX document production system.
4332 It includes all the major TeX-related programs, macro packages, and fonts
4333 that are free software, including support for many languages around the
4336 This package contains the complete TeX Live distribution.")
4337 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
4338 (home-page "https://www.tug.org/texlive/")))
4340 (define-public perl-text-bibtex
4342 (name "perl-text-bibtex")
4347 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
4351 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
4352 (build-system perl-build-system)
4355 (modify-phases %standard-phases
4356 (add-after 'unpack 'add-output-directory-to-rpath
4357 (lambda* (#:key outputs #:allow-other-keys)
4358 (substitute* "inc/MyBuilder.pm"
4360 (string-append "-Wl,-rpath="
4361 (assoc-ref outputs "out") "/lib " line)))
4363 (add-after 'unpack 'install-libraries-to-/lib
4364 (lambda* (#:key outputs #:allow-other-keys)
4365 (substitute* "Build.PL"
4369 `(("perl-capture-tiny" ,perl-capture-tiny)
4370 ("perl-config-autoconf" ,perl-config-autoconf)
4371 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4372 ("perl-module-build" ,perl-module-build)))
4373 (home-page "https://metacpan.org/release/Text-BibTeX")
4374 (synopsis "Interface to read and parse BibTeX files")
4375 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
4376 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
4377 at many different levels: you may work with BibTeX entries as simple field to
4378 string mappings, or get at the original form of the data as a list of simple
4379 values (strings, macros, or numbers) pasted together.")
4380 (license license:perl-license)))
4382 (define-public biber
4389 (url "https://github.com/plk/biber/")
4390 (commit (string-append "v" version))))
4391 (file-name (git-file-name name version))
4392 ;; TODO: Patch awaiting inclusion upstream (see:
4393 ;; https://github.com/plk/biber/issues/239).
4394 (patches (search-patches "biber-fix-encoding-write.patch"))
4397 "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx"))))
4398 (build-system perl-build-system)
4401 (modify-phases %standard-phases
4402 (add-after 'install 'wrap-programs
4403 (lambda* (#:key outputs #:allow-other-keys)
4404 (let* ((out (assoc-ref outputs "out"))
4405 (perl5lib (getenv "PERL5LIB")))
4406 (wrap-program (string-append out "/bin/biber")
4407 `("PERL5LIB" ":" prefix
4408 (,(string-append perl5lib ":" out
4409 "/lib/perl5/site_perl")))))
4412 `(("perl-autovivification" ,perl-autovivification)
4413 ("perl-class-accessor" ,perl-class-accessor)
4414 ("perl-data-dump" ,perl-data-dump)
4415 ("perl-data-compare" ,perl-data-compare)
4416 ("perl-data-uniqid" ,perl-data-uniqid)
4417 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
4418 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
4419 ("perl-file-slurper" ,perl-file-slurper)
4420 ("perl-ipc-cmd" ,perl-ipc-cmd)
4421 ("perl-ipc-run3" ,perl-ipc-run3)
4422 ("perl-list-allutils" ,perl-list-allutils)
4423 ("perl-list-moreutils" ,perl-list-moreutils)
4424 ("perl-mozilla-ca" ,perl-mozilla-ca)
4425 ("perl-regexp-common" ,perl-regexp-common)
4426 ("perl-log-log4perl" ,perl-log-log4perl)
4427 ;; We cannot use perl-unicode-collate here, because otherwise the
4428 ;; hardcoded hashes in the tests would differ. See
4429 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
4430 ;;("perl-unicode-collate" ,perl-unicode-collate)
4431 ("perl-unicode-normalize" ,perl-unicode-normalize)
4432 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
4433 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
4434 ("perl-encode-jis2k" ,perl-encode-jis2k)
4435 ("perl-encode-hanextra" ,perl-encode-hanextra)
4436 ("perl-xml-libxml" ,perl-xml-libxml)
4437 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
4438 ("perl-xml-libxslt" ,perl-xml-libxslt)
4439 ("perl-xml-writer" ,perl-xml-writer)
4440 ("perl-sort-key" ,perl-sort-key)
4441 ("perl-text-csv" ,perl-text-csv)
4442 ("perl-text-csv-xs" ,perl-text-csv-xs)
4443 ("perl-text-roman" ,perl-text-roman)
4444 ("perl-uri" ,perl-uri)
4445 ("perl-text-bibtex" ,perl-text-bibtex)
4446 ("perl-libwww" ,perl-libwww)
4447 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4448 ("perl-business-isbn" ,perl-business-isbn)
4449 ("perl-business-issn" ,perl-business-issn)
4450 ("perl-business-ismn" ,perl-business-ismn)
4451 ("perl-lingua-translit" ,perl-lingua-translit)))
4453 `(("perl-config-autoconf" ,perl-config-autoconf)
4454 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4455 ("perl-module-build" ,perl-module-build)
4457 ("perl-file-which" ,perl-file-which)
4458 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
4459 ("perl-test-differences" ,perl-test-differences)))
4460 (home-page "http://biblatex-biber.sourceforge.net/")
4461 (synopsis "Backend for the BibLaTeX citation management tool")
4462 (description "Biber is a BibTeX replacement for users of biblatex. Among
4463 other things it comes with full Unicode support.")
4464 (license license:artistic2.0)))
4466 (define-public rubber
4472 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
4473 version "/+download/rubber-"
4475 (string-append "http://ebeffara.free.fr/pub/rubber-"
4476 version ".tar.gz")))
4479 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
4480 (build-system gnu-build-system)
4481 (arguments '(#:tests? #f)) ; no `check' target
4482 (inputs `(("texinfo" ,texinfo)
4483 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
4485 (home-page "https://launchpad.net/rubber")
4486 (synopsis "Wrapper for LaTeX and friends")
4488 "Rubber is a program whose purpose is to handle all tasks related to the
4489 compilation of LaTeX documents. This includes compiling the document itself,
4490 of course, enough times so that all references are defined, and running BibTeX
4491 to manage bibliographic references. Automatic execution of dvips to produce
4492 PostScript documents is also included, as well as usage of pdfLaTeX to produce
4494 (license license:gpl2+)))
4496 (define-public texmaker
4502 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
4503 version ".tar.bz2"))
4506 "0y81mjm89b99pr9svcwpaf4iz2q9pc9hjas5kiwd1pbgl5vqskm9"))))
4507 (build-system gnu-build-system)
4510 (modify-phases %standard-phases
4511 ;; Qt has its own configuration utility.
4513 (lambda* (#:key outputs #:allow-other-keys)
4514 (let ((out (assoc-ref outputs "out")))
4516 (string-append "PREFIX=" out)
4517 (string-append "DESKTOPDIR=" out "/share/applications")
4518 (string-append "ICONDIR=" out "/share/pixmaps")
4519 (string-append "METAINFODIR=" out "/share/metainfo")
4520 "texmaker.pro")))))))
4522 `(("poppler-qt5" ,poppler-qt5)
4524 ("qtscript" ,qtscript)
4525 ("qtwebkit" ,qtwebkit)
4528 `(("pkg-config" ,pkg-config)))
4529 (home-page "http://www.xm1math.net/texmaker/")
4530 (synopsis "LaTeX editor")
4531 (description "Texmaker is a program that integrates many tools needed to
4532 develop documents with LaTeX, in a single application.")
4533 (license license:gpl2+)))
4536 (define-public teximpatient
4538 (name "teximpatient")
4542 (uri (string-append "mirror://gnu/" name "/" name "-"
4546 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
4547 (build-system gnu-build-system)
4550 (modify-phases %standard-phases
4552 ;; Unfortunately some mistakes have been made in packaging.
4553 ;; Work around them here ...
4555 (lambda* (#:key inputs outputs #:allow-other-keys)
4556 (let ((srcdir "teximpatient-2.4"))
4557 (system* "tar" "-xzf" (assoc-ref inputs "source")
4558 (string-append "--one-top-level=" srcdir))
4559 (delete-file (string-append srcdir "/book.pdf"))
4562 (assoc-ref inputs "automake")
4565 (chdir srcdir)))))))
4567 `(("texlive" ,texlive)
4568 ("automake" ,automake)))
4569 (home-page "https://www.gnu.org/software/teximpatient/")
4570 (synopsis "Book on TeX, plain TeX and Eplain")
4571 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
4572 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
4574 (license license:fdl1.3+)))
4582 (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/2.2.x/"
4583 name "-" version ".tar.gz"))
4586 "0xvaz0i371nn2ndinc0d3ywj76ivb62649a4sdgwbivisiahd2fj"))
4587 (patches (search-patches "lyx-2.2.3-fix-test.patch"))
4588 (modules '((guix build utils)))
4591 (delete-file-recursively "3rdparty")
4593 (build-system cmake-build-system)
4595 `(#:configure-flags `("-DLYX_USE_QT=QT5"
4596 "-DLYX_EXTERNAL_BOOST=1"
4599 ,(string-append "-DLYX_INSTALL_PREFIX="
4600 (assoc-ref %outputs "out")
4601 ;; Exact name and level is necessary.
4604 (modify-phases %standard-phases
4605 (add-after 'unpack 'patch-python
4606 (lambda* (#:key inputs #:allow-other-keys)
4607 (substitute* '("src/support/os.cpp")
4610 (assoc-ref inputs "python-2")
4613 (add-after 'patch-python 'patch-installer
4614 (lambda* (#:key outputs #:allow-other-keys)
4615 (substitute* "CMakeLists.txt"
4616 (("/usr/local/man/man1")
4617 (string-append (assoc-ref outputs "out")
4618 "/share/man/man1")))
4620 (add-after 'patch-python 'patch-desktop-file
4621 (lambda* (#:key outputs #:allow-other-keys)
4622 (substitute* "lib/lyx.desktop.in"
4624 (string-append "Exec="
4625 (assoc-ref outputs "out")
4628 (add-before 'check 'setenv-check
4630 (setenv "LYX_DIR_22x" (string-append (getcwd) "/../lyx-"
4633 (add-after 'install 'install-symlinks
4634 (lambda* (#:key outputs #:allow-other-keys)
4635 (let ((out (assoc-ref outputs "out")))
4636 (mkdir-p (string-append out "/bin"))
4637 (symlink "../lyx2.2/bin/lyx2.2"
4638 (string-append out "/bin/lyx2.2"))
4642 ("hunspell" ,hunspell) ; Note: Could also use aspell instead.
4644 ("python-2" ,python-2)
4649 `(("texlive" ,texlive))) ; article.cls is in texmf-dist.
4651 `(("python-2" ,python-2)
4652 ("pkg-config" ,pkg-config)
4654 (home-page "https://www.lyx.org/")
4655 (synopsis "Document preparation system with GUI")
4656 (description "LyX is a document preparation system. It excels at letting
4657 you create complex technical and scientific articles with mathematics,
4658 cross-references, bibliographies, indexes, etc. It is very good for working
4659 with documents of any length in which the usual processing abilities are
4660 required: automatic sectioning and pagination, spell checking and so forth.")
4661 (license license:gpl2+)))
4663 (define-public texlive-latex-media9
4665 (name "texlive-latex-media9")
4666 (version (number->string %texlive-revision))
4670 (url (string-append "svn://www.tug.org/texlive/tags/"
4671 %texlive-tag "/Master/texmf-dist/"
4672 "/tex/latex/media9"))
4673 (revision %texlive-revision)))
4674 (file-name (string-append name "-" version "-checkout"))
4677 "0lhb2h5hxjq9alpk4r3gvg21pwyifs4ah6hqzp92k55mkp1xv73j"))))
4678 (build-system trivial-build-system)
4680 `(#:modules ((guix build utils))
4683 (use-modules (guix build utils))
4684 (let ((target (string-append (assoc-ref %outputs "out")
4685 "/share/texmf-dist/tex/latex/media9")))
4687 (copy-recursively (assoc-ref %build-inputs "source") target)
4689 (home-page "https://www.ctan.org/pkg/media9")
4690 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
4692 "The package provides an interface to embed interactive Flash (SWF) and 3D
4693 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
4694 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
4695 compatibility. Playback of multimedia files uses the built-in Flash Player of
4696 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
4697 supports the efficient H.264 codec for video compression.
4699 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
4700 specification. It replaces the now obsolete @code{movie15} package.")
4701 (license license:lppl)))
4703 (define-public texlive-latex-ocgx2
4705 (name "texlive-latex-ocgx2")
4706 (version (number->string %texlive-revision))
4710 (url (string-append "svn://www.tug.org/texlive/tags/"
4711 %texlive-tag "/Master/texmf-dist/"
4712 "/tex/latex/ocgx2"))
4713 (revision %texlive-revision)))
4714 (file-name (string-append name "-" version "-checkout"))
4717 "0zp00jg058djx8xp0xqwas92y3j97clkyd8z6pqr890yqy06myqb"))))
4718 (build-system trivial-build-system)
4720 `(#:modules ((guix build utils))
4723 (use-modules (guix build utils))
4724 (let ((target (string-append (assoc-ref %outputs "out")
4725 "/share/texmf-dist/tex/latex/ogcx2")))
4727 (copy-recursively (assoc-ref %build-inputs "source") target)
4729 (home-page "https://www.ctan.org/pkg/ocgx2")
4730 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
4732 "This package provides OCG (Optional Content Groups) support within a PDF
4735 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
4736 @code{ocg-p} packages and adds support for all known engines and back-ends
4740 @item LaTeX → dvips → @code{ps2pdf}/Distiller
4741 @item (Xe)LaTeX(x) → @code{dvipdfmx}
4742 @item pdfLaTeX and LuaLaTeX .
4745 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
4746 (license license:lppl)))
4748 (define-public texlive-latex-ms
4750 (name "texlive-latex-ms")
4751 (version (number->string %texlive-revision))
4754 (uri (texlive-ref "latex" "ms"))
4755 (file-name (string-append name "-" version "-checkout"))
4758 "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s"))))
4759 (build-system texlive-build-system)
4761 '(#:tex-directory "latex/ms"
4762 #:tex-format "latex"))
4763 (home-page "https://ctan.org/pkg/ms")
4764 (synopsis "Various LATEX packages by Martin Schröder")
4766 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
4769 @item @command{count1to}, make use of fixed TEX counters;
4770 @item @command{everysel}, set commands to execute every time a font is selected;
4771 @item @command{everyshi}, set commands to execute whenever a page is shipped out;
4772 @item @command{multitoc}, typeset the table of contents in multiple columns;
4773 @item @command{prelim2e}, mark typeset pages as preliminary; and
4774 @item @command{ragged2e}, typeset ragged text and allow hyphenation.
4776 (license license:lppl1.3c+)))
4778 (define-public texlive-latex-needspace
4780 (name "texlive-latex-needspace")
4781 (version (number->string %texlive-revision))
4784 (uri (texlive-ref "latex" "needspace"))
4785 (file-name (string-append name "-" version "-checkout"))
4788 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
4789 (build-system texlive-build-system)
4791 '(#:tex-directory "latex/needspace"
4792 #:tex-format "latex"))
4794 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
4795 (home-page "https://www.ctan.org/pkg/needspace")
4796 (synopsis "Insert pagebreak if not enough space")
4798 "Provides commands to disable pagebreaking within a given vertical
4799 space. If there is not enough space between the command and the bottom of the
4800 page, a new page will be started.")
4801 (license license:lppl)))
4803 (define-public texlive-latex-changepage
4805 (name "texlive-latex-changepage")
4806 (version (number->string %texlive-revision))
4810 (uri (texlive-ref "latex" "changepage"))
4813 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
4814 (build-system texlive-build-system)
4816 '(#:tex-directory "latex/changepage"
4817 #:tex-format "latex"))
4819 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
4820 (home-page "https://www.ctan.org/pkg/changepage")
4821 (synopsis "Margin adjustment and detection of odd/even pages")
4823 "The package provides commands to change the page layout in the middle of
4824 a document, and to robustly check for typesetting on odd or even pages.
4825 Instructions for use are at the end of the file. The package is an extraction
4826 of code from the @code{memoir} class, whose user interface it shares.")
4827 (license license:lppl1.3+)))
4829 (define-public texlive-latex-eukdate
4831 (name "texlive-latex-eukdate")
4832 (version (number->string %texlive-revision))
4837 (url (string-append "svn://www.tug.org/texlive/tags/"
4838 %texlive-tag "/Master/texmf-dist/"
4839 "/tex/latex/eukdate"))
4840 (revision %texlive-revision)))
4841 (file-name (string-append name "-" version "-checkout"))
4844 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
4845 (build-system trivial-build-system)
4847 `(#:modules ((guix build utils))
4850 (use-modules (guix build utils))
4851 (let ((target (string-append (assoc-ref %outputs "out")
4852 "/share/texmf-dist/tex/latex/eukdate")))
4854 (copy-recursively (assoc-ref %build-inputs "source") target)
4856 (home-page "https://www.ctan.org/pkg/eukdate")
4857 (synopsis "UK format dates, with weekday")
4859 "The package is used to change the format of @code{\\today}’s date,
4860 including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
4861 is preferred in many parts of the world, as distinct from that which is used in
4862 @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
4863 (license license:lppl)))
4865 (define-public texlive-generic-ulem
4867 (name "texlive-generic-ulem")
4868 (version (number->string %texlive-revision))
4873 (url (string-append "svn://www.tug.org/texlive/tags/"
4874 %texlive-tag "/Master/texmf-dist/"
4875 "/tex/generic/ulem"))
4876 (revision %texlive-revision)))
4877 (file-name (string-append name "-" version "-checkout"))
4880 "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797"))))
4881 (build-system trivial-build-system)
4883 `(#:modules ((guix build utils))
4886 (use-modules (guix build utils))
4887 (let ((target (string-append (assoc-ref %outputs "out")
4888 "/share/texmf-dist/tex/generic/ulem")))
4890 (copy-recursively (assoc-ref %build-inputs "source") target)
4892 (home-page "https://www.ctan.org/pkg/ulem")
4893 (synopsis "Underline text in TeX")
4895 "The package provides an @code{\\ul} (underline) command which will break
4896 over line ends; this technique may be used to replace @code{\\em} (both in that
4897 form and as the @code{\\emph} command), so as to make output look as if it comes
4898 from a typewriter. The package also offers double and wavy underlining, and
4899 striking out (line through words) and crossing out (/// over words).")
4900 (license license:lppl1.3c+)))
4902 (define-public texlive-latex-pgf
4904 (name "texlive-latex-pgf")
4905 (version (number->string %texlive-revision))
4910 (url (string-append "svn://www.tug.org/texlive/tags/"
4911 %texlive-tag "/Master/texmf-dist/"
4913 (revision %texlive-revision)))
4914 (file-name (string-append name "-" version "-checkout"))
4917 "1dq8p10pz8wn0vx412m7d7d5gj1syxly3yqdqvf7lv2xl8zndn5h"))))
4918 (build-system trivial-build-system)
4920 `(("texlive-latex-pgf-generic"
4924 (url (string-append "svn://www.tug.org/texlive/tags/"
4925 %texlive-tag "/Master/texmf-dist/"
4926 "/tex/generic/pgf"))
4927 (revision %texlive-revision)))
4928 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
4931 "0xkxw26sjzr5npjpzpr28yygwdbhzpdd0hsk80gjpidhcxmz393i"))))))
4933 `(#:modules ((guix build utils))
4936 (use-modules (guix build utils))
4937 (let ((target-generic (string-append (assoc-ref %outputs "out")
4938 "/share/texmf-dist/tex/generic/pgf"))
4939 (target-latex (string-append (assoc-ref %outputs "out")
4940 "/share/texmf-dist/tex/latex/pgf")))
4941 (mkdir-p target-generic)
4942 (mkdir-p target-latex)
4943 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
4944 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
4946 (home-page "https://www.ctan.org/pkg/tikz")
4947 (synopsis "Create PostScript and PDF graphics in TeX")
4949 "PGF is a macro package for creating graphics. It is platform- and
4950 format-independent and works together with the most important TeX backend
4951 drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
4954 Its usage is similar to pstricks and the standard picture environment. PGF
4955 works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
4956 produce either PostScript or PDF output.")
4957 (license license:lppl1.3c+)))
4959 (define-public texlive-latex-koma-script
4961 (name "texlive-latex-koma-script")
4962 (version (number->string %texlive-revision))
4966 (url (string-append "svn://www.tug.org/texlive/tags/"
4967 %texlive-tag "/Master/texmf-dist/"
4968 "/tex/latex/koma-script"))
4969 (revision %texlive-revision)))
4970 (file-name (string-append name "-" version "-checkout"))
4973 "0nqwf0sr4mf3v9gqa6apv6ml2xhcdwax0vgyf12a672g7rpdyvgm"))))
4974 (build-system trivial-build-system)
4976 `(#:modules ((guix build utils)
4980 (use-modules (guix build utils)
4982 (let ((root (string-append (assoc-ref %outputs "out")
4983 "/share/texmf-dist/"))
4984 (pkgs '(("source" . "tex/latex/koma-script"))))
4985 (for-each (match-lambda
4987 (let ((target (string-append root dir)))
4989 (copy-recursively (assoc-ref %build-inputs pkg)
4993 (home-page "https://www.ctan.org/pkg/koma-script")
4994 (synopsis "Bundle of versatile classes and packages")
4996 "The KOMA-Script bundle provides replacements for the article, report, and
4997 book classes with emphasis on typography and versatility. There is also a
5000 The bundle also offers:
5003 @item a package for calculating type areas in the way laid down by the
5004 typographer Jan Tschichold,
5005 @item packages for easily changing and defining page styles,
5006 @item a package scrdate for getting not only the current date but also the name
5008 @item a package scrtime for getting the current time.
5011 All these packages may be used not only with KOMA-Script classes but also with
5012 the standard classes.
5014 Since every package has its own version number, the version number quoted only
5015 refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
5016 typearea (which are the main parts of the bundle).")
5017 (license license:lppl1.3+)))
5019 (define-public texlive-generic-listofitems
5021 (name "texlive-generic-listofitems")
5022 (version (number->string %texlive-revision))
5026 (url (string-append "svn://www.tug.org/texlive/tags/"
5027 %texlive-tag "/Master/texmf-dist/"
5028 "/tex/generic/listofitems"))
5029 (revision %texlive-revision)))
5030 (file-name (string-append name "-" version "-checkout"))
5033 "0hs28fc0v2l92ad9las9b8xcckyrdrwmyhcx1yzmbr6s7s6nvsx8"))))
5034 (build-system trivial-build-system)
5036 `(#:modules ((guix build utils))
5039 (use-modules (guix build utils))
5040 (let ((target (string-append (assoc-ref %outputs "out")
5041 "/share/texmf-dist/tex/generic/listofitems")))
5043 (copy-recursively (assoc-ref %build-inputs "source") target)
5045 (home-page "https://www.ctan.org/pkg/listofitems")
5046 (synopsis "Grab items in lists using user-specified seperation character")
5048 "This package allows one to capture all the items of a list, for which
5049 the parsing character has been selected by the user, and to access any of
5050 these items with a simple syntax.")
5051 (license license:lppl1.3c+)))
5053 (define-public texlive-latex-readarray
5055 (name "texlive-latex-readarray")
5056 (version (number->string %texlive-revision))
5060 (url (string-append "svn://www.tug.org/texlive/tags/"
5061 %texlive-tag "/Master/texmf-dist/"
5062 "/tex/latex/readarray"))
5063 (revision %texlive-revision)))
5064 (file-name (string-append name "-" version "-checkout"))
5067 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
5068 (build-system trivial-build-system)
5070 `(#:modules ((guix build utils))
5073 (use-modules (guix build utils))
5074 (let ((target (string-append (assoc-ref %outputs "out")
5075 "/share/texmf-dist/tex/latex/readarray")))
5077 (copy-recursively (assoc-ref %build-inputs "source") target)
5080 `(("texlive-generic-listofitems" ,texlive-generic-listofitems)))
5081 (home-page "https://www.ctan.org/pkg/readarray")
5082 (synopsis "Read, store and recall array-formatted data")
5084 "This package allows the user to input formatted data into elements of a
5085 2-D or 3-D array and to recall that data at will by individual cell number.
5086 The data can be but need not be numerical in nature. It can be, for example,
5088 (license license:lppl1.3)))
5090 (define-public texlive-latex-verbatimbox
5092 (name "texlive-latex-verbatimbox")
5093 (version (number->string %texlive-revision))
5097 (url (string-append "svn://www.tug.org/texlive/tags/"
5098 %texlive-tag "/Master/texmf-dist/"
5099 "/tex/latex/verbatimbox"))
5100 (revision %texlive-revision)))
5101 (file-name (string-append name "-" version "-checkout"))
5104 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
5105 (build-system trivial-build-system)
5107 `(#:modules ((guix build utils))
5110 (use-modules (guix build utils))
5111 (let ((target (string-append (assoc-ref %outputs "out")
5112 "/share/texmf-dist/tex/latex/verbatimbox")))
5114 (copy-recursively (assoc-ref %build-inputs "source") target)
5117 `(("texlive-latex-readarray" ,texlive-latex-readarray)))
5118 (home-page "https://www.ctan.org/pkg/verbatimbox")
5119 (synopsis "Deposit verbatim text in a box")
5121 "The package provides a @code{verbbox} environment to place its contents
5122 into a globally available box, or into a box specified by the user. The
5123 global box may then be used in a variety of situations (for example, providing
5124 a replica of the @code{boxedverbatim} environment itself). A valuable use is
5125 in places where the standard @code{verbatim} environment (which is based on a
5126 @code{trivlist}) may not appear.")
5127 (license license:lppl1.3+)))
5129 (define-public texlive-latex-examplep
5131 (name "texlive-latex-examplep")
5132 (version (number->string %texlive-revision))
5136 (url (string-append "svn://www.tug.org/texlive/tags/"
5137 %texlive-tag "/Master/texmf-dist/"
5138 "/tex/latex/examplep"))
5139 (revision %texlive-revision)))
5140 (file-name (string-append name "-" version "-checkout"))
5143 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
5144 (build-system trivial-build-system)
5146 `(#:modules ((guix build utils))
5149 (use-modules (guix build utils))
5150 (let ((target (string-append (assoc-ref %outputs "out")
5151 "/share/texmf-dist/tex/latex/examplep")))
5153 (copy-recursively (assoc-ref %build-inputs "source") target)
5155 (home-page "https://www.ctan.org/pkg/examplep")
5156 (synopsis "Verbatim phrases and listings in LaTeX")
5158 "Examplep provides sophisticated features for typesetting verbatim source
5159 code listings, including the display of the source code and its compiled LaTeX
5160 or METAPOST output side-by-side, with automatic width detection and enabled
5161 page breaks (in the source), without the need for specifying the source twice.
5162 Special care is taken that section, page and footnote numbers do not interfere
5163 with the main document. For typesetting short verbatim phrases, a replacement
5164 for the @code{\\verb} command is also provided in the package, which can be
5165 used inside tables and moving arguments such as footnotes and section
5167 ;; No version of the GPL is specified.
5168 (license license:gpl3+)))
5170 (define-public texlive-generic-xypic
5172 (name "texlive-generic-xypic")
5173 (version (number->string %texlive-revision))
5178 (url (string-append "svn://www.tug.org/texlive/tags/"
5179 %texlive-tag "/Master/texmf-dist/"
5180 "/tex/generic/xypic"))
5181 (revision %texlive-revision)))
5182 (file-name (string-append name "-" version "-checkout"))
5185 "1g5cyxwdfznq4lk9zl6fkjkapmhmwd2cm4m5aibxj20qgwnaggfz"))))
5186 (build-system trivial-build-system)
5188 `(#:modules ((guix build utils))
5191 (use-modules (guix build utils))
5192 (let ((target (string-append (assoc-ref %outputs "out")
5193 "/share/texmf-dist/tex/generic/xypic")))
5195 (copy-recursively (assoc-ref %build-inputs "source") target)
5197 (home-page "https://www.ctan.org/pkg/xypic")
5198 (synopsis "Flexible diagramming macros for TeX")
5200 "A package for typesetting a variety of graphs and diagrams with TeX.
5201 Xy-pic works with most formats (including LaTeX, AMS-LaTeX, AMS-TeX, and plain
5203 (license license:gpl3+)))
5205 (define-public texlive-fonts-xypic
5207 (name "texlive-fonts-xypic")
5208 (version (number->string %texlive-revision))
5212 (url (string-append "svn://www.tug.org/texlive/tags/"
5213 %texlive-tag "/Master/texmf-dist/"
5214 "/fonts/source/public/xypic"))
5215 (revision %texlive-revision)))
5216 (file-name (string-append name "-" version "-checkout"))
5219 "0p20v1257kwsqnrk98cdhhiz2viv8l3ly4xay4by0an3j37m9xs3"))))
5220 (build-system trivial-build-system)
5222 `(#:modules ((guix build utils)
5226 (use-modules (guix build utils)
5228 (let ((root (string-append (assoc-ref %outputs "out")
5229 "/share/texmf-dist/"))
5230 (pkgs '(("source" . "fonts/source/public/xypic")
5231 ("xypic-afm" . "fonts/afm/public/xypic")
5232 ("xypic-type1" . "fonts/type1/public/xypic")
5233 ("xypic-enc" . "fonts/enc/dvips/xypic"))))
5234 (for-each (match-lambda
5236 (let ((target (string-append root dir)))
5238 (copy-recursively (assoc-ref %build-inputs pkg)
5247 (url (string-append "svn://www.tug.org/texlive/tags/"
5248 %texlive-tag "/Master/texmf-dist/"
5249 "/fonts/afm/public/xypic"))
5250 (revision %texlive-revision)))
5251 (file-name (string-append name "-afm-" version "-checkout"))
5254 "149xdijxp8lw3s0qv2aqxxxyyn748z57dpr596rjvkqdffpnsddh"))))
5259 (url (string-append "svn://www.tug.org/texlive/tags/"
5260 %texlive-tag "/Master/texmf-dist/"
5261 "/fonts/type1/public/xypic"))
5262 (revision %texlive-revision)))
5263 (file-name (string-append name "-type1-" version "-checkout"))
5266 "1bln89wib7g3hcv2jny3qi6jb73k9d2vbgx3wnnjwp3ryg0846if"))))
5271 (url (string-append "svn://www.tug.org/texlive/tags/"
5272 %texlive-tag "/Master/texmf-dist/"
5273 "/fonts/enc/dvips/xypic"))
5274 (revision %texlive-revision)))
5275 (file-name (string-append name "-enc-" version "-checkout"))
5278 "0yi8vms3203l3p5slnhrrlzzp0f0jw77fkcvcaicrz2vmw9z99x7"))))))
5279 (home-page "https://www.ctan.org/pkg/xypic")
5280 (synopsis "Fonts for XY-pic")
5281 (description "This package provides the XY-pic fonts.")
5282 (license license:gpl3+)))
5284 (define-public texlive-bibtex
5286 (name "texlive-bibtex")
5287 (version (number->string %texlive-revision))
5292 (url (string-append "svn://www.tug.org/texlive/tags/"
5293 %texlive-tag "/Master/texmf-dist/"
5295 (revision %texlive-revision)))
5296 (file-name (string-append name "-" version "-checkout"))
5299 "0hnbs0s1znbn32hfcsyijl39z81sdb00jf092a4blqz421qs2mbv"))))
5300 (build-system trivial-build-system)
5302 `(#:modules ((guix build utils))
5305 (use-modules (guix build utils))
5306 (let ((target (string-append (assoc-ref %outputs "out")
5307 "/share/texmf-dist/bibtex")))
5309 (copy-recursively (assoc-ref %build-inputs "source") target)
5311 (home-page "https://www.ctan.org/pkg/bibtex")
5312 (synopsis "Process bibliographies for LaTeX")
5314 "BibTeX allows the user to store his citation data in generic form, while
5315 printing citations in a document in the form specified by a BibTeX style, to
5316 be specified in the document itself (one often needs a LaTeX citation-style
5317 package, such as @command{natbib} as well).")
5318 (license license:knuth)))
5320 (define-public texlive-fonts-charter
5322 (name "texlive-fonts-charter")
5323 (version (number->string %texlive-revision))
5327 (url (string-append "svn://www.tug.org/texlive/tags/"
5328 %texlive-tag "/Master/texmf-dist/"
5329 "/fonts/type1/bitstrea/charter"))
5330 (revision %texlive-revision)))
5331 (file-name (string-append name "-" version "-checkout"))
5334 "0yvib45xxff3jm5270zij4q888pivbc18cqs7lz4pqfhn1am4wnv"))))
5335 (build-system trivial-build-system)
5337 `(#:modules ((guix build utils)
5341 (use-modules (guix build utils)
5343 (let ((root (string-append (assoc-ref %outputs "out")
5344 "/share/texmf-dist/"))
5345 (pkgs '(("source" . "fonts/type1/bitstrea/charter")
5346 ("charter-afm" . "fonts/afm/bitstrea/charter")
5347 ("charter-tfm" . "fonts/tfm/bitstrea/charter"))))
5348 (for-each (match-lambda
5350 (let ((target (string-append root dir)))
5352 (copy-recursively (assoc-ref %build-inputs pkg)
5361 (url (string-append "svn://www.tug.org/texlive/tags/"
5362 %texlive-tag "/Master/texmf-dist/"
5363 "/fonts/afm/bitstrea/charter"))
5364 (revision %texlive-revision)))
5365 (file-name (string-append name "-afm-" version "-checkout"))
5368 "02nbkqrlr3vypnzslmr7dxg1353mmc0rl4ynx0s6qbvf313fq76a"))))
5373 (url (string-append "svn://www.tug.org/texlive/tags/"
5374 %texlive-tag "/Master/texmf-dist/"
5375 "/fonts/tfm/bitstrea/charter"))
5376 (revision %texlive-revision)))
5377 (file-name (string-append name "-tfm-" version "-checkout"))
5380 "0j7ci9vprivbhac70aq0z7m23hqcpx1g0i3wp1k0h8ilhimj80xk"))))))
5381 (home-page "https://www.ctan.org/pkg/charter")
5382 (synopsis "Charter fonts for TeX")
5383 (description "A commercial text font donated for the common good. Support
5384 for use with LaTeX is available in @code{freenfss}, part of
5385 @command{psnfss}. ")
5386 (license (license:non-copyleft (string-append "http://mirrors.ctan.org/"
5387 "fonts/charter/readme.charter")))))
5389 (define-public texlive-context-base
5391 (name "texlive-context-base")
5392 (version (number->string %texlive-revision))
5396 (url (string-append "svn://www.tug.org/texlive/tags/"
5397 %texlive-tag "/Master/texmf-dist/"
5398 "/tex/context/base"))
5399 (revision %texlive-revision)))
5400 (file-name (string-append name "-" version "-checkout"))
5403 "0rlx4qqijms1n64gjx475kvip8l322fh7v17zkmwp1l1g0w3vlyz"))))
5404 (build-system trivial-build-system)
5406 `(#:modules ((guix build utils))
5409 (use-modules (guix build utils))
5410 (let ((target (string-append (assoc-ref %outputs "out")
5411 "/share/texmf-dist/tex/context/case")))
5413 (copy-recursively (assoc-ref %build-inputs "source") target)
5415 (home-page "https://www.ctan.org/pkg/context")
5416 (synopsis "Full featured, parameter driven macro package for TeX")
5417 (description "A full featured, parameter driven macro package, which fully
5418 supports advanced interactive documents. See the ConTeXt garden for a wealth
5419 of support information.")
5420 (license license:gpl2+)))