gnu: texlive-latex-fancyvrb: Build fvrb-ex.
[jackhill/guix/guix.git] / gnu / packages / tex.scm
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>
15 ;;;
16 ;;; This file is part of GNU Guix.
17 ;;;
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.
22 ;;;
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.
27 ;;;
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/>.
30
31 (define-module (gnu packages tex)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix download)
35 #:use-module (guix build-system cmake)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system perl)
38 #:use-module (guix build-system trivial)
39 #:use-module (guix build-system texlive)
40 #:use-module (guix utils)
41 #:use-module (guix git-download)
42 #:use-module (guix svn-download)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages boost)
48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages fontutils)
50 #:use-module (gnu packages gd)
51 #:use-module (gnu packages ghostscript)
52 #:use-module (gnu packages graphviz)
53 #:use-module (gnu packages gtk)
54 #:use-module (gnu packages icu4c)
55 #:use-module (gnu packages image)
56 #:use-module (gnu packages libreoffice)
57 #:use-module (gnu packages lua)
58 #:use-module (gnu packages multiprecision)
59 #:use-module (gnu packages pdf)
60 #:use-module (gnu packages perl)
61 #:use-module (gnu packages perl-check)
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages python)
64 #:use-module (gnu packages python-xyz)
65 #:use-module (gnu packages qt)
66 #:use-module (gnu packages ruby)
67 #:use-module (gnu packages shells)
68 #:use-module (gnu packages base)
69 #:use-module (gnu packages web)
70 #:use-module (gnu packages xml)
71 #:use-module (gnu packages xorg)
72 #:use-module (gnu packages xdisorg)
73 #:autoload (gnu packages texinfo) (texinfo)
74 #:use-module (ice-9 ftw)
75 #:use-module (ice-9 match)
76 #:use-module ((srfi srfi-1) #:hide (zip)))
77
78 (define texlive-extra-src
79 (origin
80 (method url-fetch)
81 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-extra.tar.xz")
82 (sha256 (base32
83 "0a83kymxc8zmlxjb0y1gf6mx7qnf0hxffwkivwh5yh138y2rfhsv"))))
84
85 (define texlive-texmf-src
86 (origin
87 (method url-fetch)
88 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-texmf.tar.xz")
89 (sha256 (base32
90 "1b8zigzg8raxkhhzphcmynf84rbdbj2ym2qkz24v8n0qx82zmqms"))))
91
92 (define-public texlive-bin
93 (package
94 (name "texlive-bin")
95 (version "20180414")
96 (source
97 (origin
98 (method url-fetch)
99 (uri (string-append "ftp://tug.org/historic/systems/texlive/2018/"
100 "texlive-" version "-source.tar.xz"))
101 (sha256
102 (base32
103 "0khyi6h015r2zfqgg0a44a2j7vmr1cy42knw7jbss237yvakc07y"))
104 (patches
105 (list
106 ;; This is required for compatibility with Poppler 0.64.0 and to fix a
107 ;; segmentation fault in dvipdfm-x from XeTeX.
108 (origin
109 (method url-fetch)
110 (uri (string-append "http://www.linuxfromscratch.org/patches/blfs/"
111 "svn/texlive-" version "-source-upstream_fixes-1.patch"))
112 (file-name "texlive-poppler-compat.patch")
113 (sha256
114 (base32
115 "0f8vhyj167y4xj0jx47vkybrcacfpxw0wdn1b777yq3xmhlahhlg")))))))
116 (build-system gnu-build-system)
117 (inputs
118 `(("texlive-extra-src" ,texlive-extra-src)
119 ("cairo" ,cairo)
120 ("fontconfig" ,fontconfig)
121 ("fontforge" ,fontforge)
122 ("freetype" ,freetype)
123 ("gd" ,gd)
124 ("gmp" ,gmp)
125 ("ghostscript" ,ghostscript)
126 ("graphite2" ,graphite2)
127 ("harfbuzz" ,harfbuzz)
128 ("icu4c" ,icu4c)
129 ("libpaper" ,libpaper)
130 ("libpng" ,libpng)
131 ("libxaw" ,libxaw)
132 ("libxt" ,libxt)
133 ("mpfr" ,mpfr)
134 ("perl" ,perl)
135 ("pixman" ,pixman)
136 ("poppler" ,poppler)
137 ("potrace" ,potrace)
138 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
139 ("ruby" ,ruby)
140 ("tcsh" ,tcsh)
141 ("teckit" ,teckit)
142 ("zlib" ,zlib)
143 ("zziplib" ,zziplib)))
144 (native-inputs
145 `(("pkg-config" ,pkg-config)))
146 (arguments
147 `(#:out-of-source? #t
148 #:configure-flags
149 `("--disable-native-texlive-build"
150 ;; XXX: This is needed because recent Poppler requires C++11 or later.
151 ;; Remove after switch to GCC >= 6.
152 "CXXFLAGS=-std=gnu++11"
153 "--with-system-cairo"
154 "--with-system-freetype2"
155 "--with-system-gd"
156 "--with-system-gmp"
157 "--with-system-graphite2"
158 "--with-system-harfbuzz"
159 "--with-system-icu"
160 "--with-system-libgs"
161 "--with-system-libpaper"
162 "--with-system-libpng"
163 "--with-system-mpfr"
164 "--with-system-pixman"
165 "--with-system-poppler"
166 "--with-system-potrace"
167 "--with-system-teckit"
168 "--with-system-xpdf"
169 "--with-system-zlib"
170 "--with-system-zziplib")
171
172 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
173 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
174 #:tests? ,(let ((s (or (%current-target-system)
175 (%current-system))))
176 (not (or (string-prefix? "aarch64" s)
177 (string-prefix? "mips64" s))))
178 #:phases
179 (modify-phases %standard-phases
180 (add-after 'unpack 'configure-ghostscript-executable
181 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
182 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
183 ;; checking for the existence of the /usr/bin directory. Since
184 ;; GuixSD does not have /usr/bin, it is also detected as Windows.
185 (lambda* (#:key inputs #:allow-other-keys)
186 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
187 (("gswin32c") "gs"))
188 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
189 (("\"gs\"")
190 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
191 #t))
192 (add-after 'unpack 'use-code-for-new-poppler
193 (lambda _
194 (copy-file "texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc"
195 "texk/web2c/pdftexdir/pdftoepdf.cc")
196 (copy-file "texk/web2c/pdftexdir/pdftosrc-newpoppler.cc"
197 "texk/web2c/pdftexdir/pdftosrc.cc")
198 #t))
199 (add-after 'unpack 'disable-failing-test
200 (lambda _
201 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
202 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
203 (substitute* "texk/web2c/omegafonts/check.test"
204 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
205 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))
206 #t))
207 (add-after 'install 'postint
208 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
209 (let* ((out (assoc-ref outputs "out"))
210 (share (string-append out "/share"))
211 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
212 (unpack (assoc-ref %standard-phases 'unpack))
213 (patch-source-shebangs
214 (assoc-ref %standard-phases 'patch-source-shebangs)))
215 (substitute* (string-append share "/texmf-dist/web2c/texmf.cnf")
216 ;; Don't truncate lines.
217 (("^error_line = .*$") "error_line = 254\n")
218 (("^half_error_line = .*$") "half_error_line = 238\n")
219 (("^max_print_line = .*$") "max_print_line = 1000\n"))
220 ;; Create symbolic links for the latex variants and their
221 ;; man pages.
222 (with-directory-excursion (string-append out "/bin/")
223 (for-each symlink
224 '("pdftex" "pdftex" "xetex" "luatex")
225 '("latex" "pdflatex" "xelatex" "lualatex")))
226 (with-directory-excursion (string-append share "/man/man1/")
227 (symlink "luatex.1" "lualatex.1"))
228 ;; Unpack texlive-extra and install tlpkg.
229 (mkdir "texlive-extra")
230 (with-directory-excursion "texlive-extra"
231 (apply unpack (list #:source texlive-extra))
232 (apply patch-source-shebangs (list #:source texlive-extra))
233 (invoke "mv" "tlpkg" share))
234 ;; texlua shebangs are not patched by the patch-source-shebangs
235 ;; phase because the texlua executable does not exist at that
236 ;; time.
237 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
238 (with-directory-excursion out
239 (patch-source-shebangs))))))))
240 (native-search-paths
241 (list (search-path-specification
242 (variable "TEXMF")
243 (files '("share/texmf-dist"))
244 (separator #f))
245 (search-path-specification
246 (variable "TEXMFCNF")
247 (files '("share/texmf-dist/web2c"))
248 (separator #f))))
249 (synopsis "TeX Live, a package of the TeX typesetting system")
250 (description
251 "TeX Live provides a comprehensive TeX document production system.
252 It includes all the major TeX-related programs, macro packages, and fonts
253 that are free software, including support for many languages around the
254 world.
255
256 This package contains the binaries.")
257 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
258 (home-page "https://www.tug.org/texlive/")))
259
260 (define-public texlive-dvips
261 (package
262 (name "texlive-dvips")
263 (version (number->string %texlive-revision))
264 (source (origin
265 (method svn-fetch)
266 (uri (svn-reference
267 (url (string-append "svn://www.tug.org/texlive/tags/"
268 %texlive-tag "/Master/texmf-dist/"
269 "/dvips"))
270 (revision %texlive-revision)))
271 (file-name (string-append name "-" version "-checkout"))
272 (sha256
273 (base32
274 "1ky6wc173jhf0b33lhyb4r3bx1d4bmiqkn6y1hxn92kwjdzl42p7"))))
275 (build-system trivial-build-system)
276 (arguments
277 `(#:modules ((guix build utils))
278 #:builder
279 (begin
280 (use-modules (guix build utils))
281 (let* ((root (string-append (assoc-ref %outputs "out")
282 "/share/texmf-dist"))
283 (dvips (string-append root "/dvips"))
284 (maps (string-append root "/fonts/map/dvips"))
285 (encs (string-append root "/fonts/enc/dvips/base")))
286 (mkdir-p dvips)
287 (copy-recursively (assoc-ref %build-inputs "source") dvips)
288 (mkdir-p maps)
289 (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps)
290 (mkdir-p encs)
291 (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs)
292 #t))))
293 (native-inputs
294 `(("dvips-font-maps"
295 ,(origin
296 (method svn-fetch)
297 (uri (svn-reference
298 (url (string-append "svn://www.tug.org/texlive/tags/"
299 %texlive-tag "/Master/texmf-dist/"
300 "/fonts/map/dvips"))
301 (revision %texlive-revision)))
302 (file-name (string-append "dvips-font-maps-" version "-checkout"))
303 (sha256
304 (base32
305 "0nxvfbb5vsvakiw0iviicghdc2sxk05cj056ilqnpa62fffc36a6"))))
306 ("dvips-base-enc"
307 ,(origin
308 (method svn-fetch)
309 (uri (svn-reference
310 (url (string-append "svn://www.tug.org/texlive/tags/"
311 %texlive-tag "/Master/texmf-dist/"
312 "/fonts/enc/dvips/base"))
313 (revision %texlive-revision)))
314 (file-name (string-append "dvips-base-enc-" version "-checkout"))
315 (sha256
316 (base32
317 "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy"))))))
318 (home-page "https://www.ctan.org/pkg/dvips")
319 (synopsis "DVI to PostScript drivers")
320 (description "This package provides files needed for converting DVI files
321 to PostScript.")
322 ;; Various free software licenses apply to individual files.
323 (license (list license:lppl1.3c+
324 license:expat
325 license:lgpl3+))))
326
327 (define-public texlive-generic-unicode-data
328 (package
329 (name "texlive-generic-unicode-data")
330 (version (number->string %texlive-revision))
331 (source (origin
332 (method svn-fetch)
333 (uri (svn-reference
334 (url (string-append "svn://www.tug.org/texlive/tags/"
335 %texlive-tag "/Master/texmf-dist/"
336 "/tex/generic/unicode-data"))
337 (revision %texlive-revision)))
338 (file-name (string-append name "-" version "-checkout"))
339 (sha256
340 (base32
341 "0r1v16jyfpz6dwqsgm6b9jcj4kf2pkzc9hg07s6fx9g8ba8qglih"))))
342 (build-system trivial-build-system)
343 (arguments
344 `(#:modules ((guix build utils))
345 #:builder
346 (begin
347 (use-modules (guix build utils))
348 (let ((target (string-append (assoc-ref %outputs "out")
349 "/share/texmf-dist/tex/generic/unicode-data")))
350 (mkdir-p target)
351 (copy-recursively (assoc-ref %build-inputs "source") target)
352 #t))))
353 (home-page "https://www.ctan.org/pkg/unicode-data")
354 (synopsis "Unicode data and loaders for TeX")
355 (description "This bundle provides generic access to Unicode Consortium
356 data for TeX use. It contains a set of text files provided by the Unicode
357 Consortium which are currently all from Unicode 8.0.0, with the exception of
358 @code{MathClass.txt} which is not currently part of the Unicode Character
359 Database. Accompanying these source data are generic TeX loader files
360 allowing this data to be used as part of TeX runs, in particular in building
361 format files. Currently there are two loader files: one for general character
362 set up and one for initializing XeTeX character classes as has been carried
363 out to date by @code{unicode-letters.tex}. ")
364 (license license:lppl1.3c+)))
365
366 (define-public texlive-generic-dehyph-exptl
367 (package
368 (name "texlive-generic-dehyph-exptl")
369 (version (number->string %texlive-revision))
370 (source (origin
371 (method svn-fetch)
372 (uri (svn-reference
373 (url (string-append "svn://www.tug.org/texlive/tags/"
374 %texlive-tag "/Master/texmf-dist/"
375 "/tex/generic/dehyph-exptl"))
376 (revision %texlive-revision)))
377 (file-name (string-append name "-" version "-checkout"))
378 (sha256
379 (base32
380 "03yj1di9py92drp6gpfva6q69vk2iixr79r7cp7ja570s3pr0m33"))))
381 (build-system trivial-build-system)
382 (arguments
383 `(#:modules ((guix build utils))
384 #:builder
385 (begin
386 (use-modules (guix build utils))
387 (let ((target (string-append (assoc-ref %outputs "out")
388 "/share/texmf-dist/tex/generic/dehyph-exptl")))
389 (mkdir-p target)
390 (copy-recursively (assoc-ref %build-inputs "source") target)
391 #t))))
392 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
393 (synopsis "Hyphenation patterns for German")
394 (description "The package provides experimental hyphenation patterns for
395 the German language, covering both traditional and reformed orthography. The
396 patterns can be used with packages Babel and hyphsubst from the Oberdiek
397 bundle.")
398 ;; Hyphenation patterns are under the Expat license; documentation is
399 ;; under LPPL.
400 (license (list license:expat license:lppl))))
401
402 (define-public texlive-generic-tex-ini-files
403 (package
404 (name "texlive-generic-tex-ini-files")
405 (version (number->string %texlive-revision))
406 (source (origin
407 (method svn-fetch)
408 (uri (svn-reference
409 (url (string-append "svn://www.tug.org/texlive/tags/"
410 %texlive-tag "/Master/texmf-dist/"
411 "/tex/generic/tex-ini-files"))
412 (revision %texlive-revision)))
413 (file-name (string-append name "-" version "-checkout"))
414 (sha256
415 (base32
416 "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5"))))
417 (build-system trivial-build-system)
418 (arguments
419 `(#:modules ((guix build utils))
420 #:builder
421 (begin
422 (use-modules (guix build utils))
423 (let ((target (string-append (assoc-ref %outputs "out")
424 "/share/texmf-dist/tex/generic/tex-ini-files")))
425 (mkdir-p target)
426 (copy-recursively (assoc-ref %build-inputs "source") target)
427 #t))))
428 (home-page "https://www.ctan.org/pkg/tex-ini-files")
429 (synopsis "Files for creating TeX formats")
430 (description "This bundle provides a collection of model \".ini\" files
431 for creating TeX formats. These files are commonly used to introduced
432 distribution-dependent variations in formats. They are also used to
433 allow existing format source files to be used with newer engines, for example
434 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
435 (license license:public-domain)))
436
437 (define-public texlive-generic-hyph-utf8
438 (package
439 (name "texlive-generic-hyph-utf8")
440 (version (number->string %texlive-revision))
441 (source (origin
442 (method svn-fetch)
443 (uri (svn-reference
444 (url (string-append "svn://www.tug.org/texlive/tags/"
445 %texlive-tag "/Master/texmf-dist/"
446 "/tex/generic/hyph-utf8"))
447 (revision %texlive-revision)))
448 (file-name (string-append name "-" version "-checkout"))
449 (sha256
450 (base32
451 "1alnn9cd60m2c12vym9f9q22ap1ngywxpkjl9dk472why44g1dmy"))))
452 (build-system trivial-build-system)
453 (arguments
454 `(#:modules ((guix build utils))
455 #:builder
456 (begin
457 (use-modules (guix build utils))
458 (let ((target (string-append (assoc-ref %outputs "out")
459 "/share/texmf-dist/tex/generic/hyph-utf8")))
460 (mkdir-p target)
461 (copy-recursively (assoc-ref %build-inputs "source") target)
462 #t))))
463 (home-page "https://ctan.org/pkg/hyph-utf8")
464 (synopsis "Hyphenation patterns expressed in UTF-8")
465 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
466 hyphenation patterns in UTF-8 format, whereas older systems require
467 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
468 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
469 etc). The present package offers a collection of conversions of existing
470 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
471 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
472 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
473 converters, will completely supplant the older patterns.")
474 ;; Individual files each have their own license. Most of these files are
475 ;; independent hyphenation patterns.
476 (license (list license:lppl1.0+
477 license:lppl1.2+
478 license:lppl1.3
479 license:lppl1.3+
480 license:lppl1.3a+
481 license:lgpl2.1
482 license:lgpl2.1+
483 license:lgpl3+
484 license:gpl2+
485 license:gpl3+
486 license:mpl1.1
487 license:asl2.0
488 license:expat
489 license:bsd-3
490 license:cc0
491 license:public-domain
492 license:wtfpl2))))
493
494 (define-public texlive-metafont-base
495 (package
496 (name "texlive-metafont-base")
497 (version (number->string %texlive-revision))
498 (source (origin
499 (method svn-fetch)
500 (uri (svn-reference
501 (url (string-append "svn://www.tug.org/texlive/tags/"
502 %texlive-tag "/Master/texmf-dist/"
503 "/metafont"))
504 (revision %texlive-revision)))
505 (file-name (string-append name "-" version "-checkout"))
506 (sha256
507 (base32
508 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
509 (build-system gnu-build-system)
510 (arguments
511 `(#:tests? #f ; no test target
512 #:phases
513 (modify-phases %standard-phases
514 (delete 'configure)
515 (replace 'build
516 (lambda* (#:key inputs #:allow-other-keys)
517 (let ((cwd (getcwd)))
518 (setenv "MFINPUTS"
519 (string-append cwd "/base:"
520 cwd "/misc:"
521 cwd "/roex:"
522 cwd "/feynmf:"
523 cwd "/mfpic:"
524 cwd "/config")))
525 (mkdir "build")
526 (with-directory-excursion "build"
527 (invoke "inimf" "mf.mf"))))
528 (replace 'install
529 (lambda* (#:key outputs #:allow-other-keys)
530 (let* ((out (assoc-ref outputs "out"))
531 (base (string-append out "/share/texmf-dist/web2c"))
532 (mf (string-append out "/share/texmf-dist/metafont/base")))
533 (mkdir-p base)
534 (mkdir-p mf)
535 (install-file "build/mf.base" base)
536 (copy-recursively "base" mf)
537 #t))))))
538 (native-inputs
539 `(("texlive-bin" ,texlive-bin)))
540 (home-page "https://www.ctan.org/pkg/metafont")
541 (synopsis "Metafont base files")
542 (description "This package provides the Metafont base files needed to
543 build fonts using the Metafont system.")
544 (license license:knuth)))
545
546 (define-public texlive-fontname
547 (package
548 (name "texlive-fontname")
549 (version (number->string %texlive-revision))
550 (source (origin
551 (method svn-fetch)
552 (uri (svn-reference
553 (url (string-append "svn://www.tug.org/texlive/tags/"
554 %texlive-tag "/Master/texmf-dist/"
555 "/fonts/map/fontname"))
556 (revision %texlive-revision)))
557 (file-name (string-append name "-" version "-checkout"))
558 (sha256
559 (base32
560 "05rbn7z30xawd3n6w7c3ijp2yc67ga220jgqmkla9pd9wx185rzq"))))
561 (build-system trivial-build-system)
562 (arguments
563 `(#:modules ((guix build utils))
564 #:builder
565 (begin
566 (use-modules (guix build utils))
567 (let ((target (string-append (assoc-ref %outputs "out")
568 "/share/texmf-dist/fonts/map/fontname")))
569 (mkdir-p target)
570 (copy-recursively (assoc-ref %build-inputs "source") target)
571 #t))))
572 (home-page "https://www.ctan.org/pkg/fontname")
573 (synopsis "Scheme for naming fonts in TeX")
574 (description "This is Fontname, a naming scheme for (the base part of)
575 external TeX font filenames. This makes at most eight-character names
576 from (almost) arbitrarily complex font names, thus helping portability of TeX
577 documents.")
578 (license license:public-domain)))
579
580 (define-public texlive-fonts-cm
581 (package
582 (name "texlive-fonts-cm")
583 (version (number->string %texlive-revision))
584 (source (origin
585 (method svn-fetch)
586 (uri (svn-reference
587 (url (string-append "svn://www.tug.org/texlive/tags/"
588 %texlive-tag "/Master/texmf-dist/"
589 "/fonts/source/public/cm"))
590 (revision %texlive-revision)))
591 (file-name (string-append name "-" version "-checkout"))
592 (sha256
593 (base32
594 "0vfjhidr9pha613h8mfhnpcpvld6ahdfb449918fpsfs93cppkyj"))))
595 (build-system gnu-build-system)
596 (arguments
597 `(#:modules ((guix build gnu-build-system)
598 (guix build utils)
599 (srfi srfi-1)
600 (srfi srfi-26))
601 #:tests? #f ; no tests
602 #:phases
603 (modify-phases %standard-phases
604 (delete 'configure)
605 (replace 'build
606 (lambda* (#:key inputs #:allow-other-keys)
607 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
608 ;; Tell mf where to find mf.base
609 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
610 ;; Tell mf where to look for source files
611 (setenv "MFINPUTS"
612 (string-append (getcwd) ":"
613 mf "/share/texmf-dist/metafont/base")))
614 (mkdir "build")
615 (mkdir-p "pk/ljfour/public/cm/dpi600")
616 (for-each (lambda (font)
617 (format #t "building font ~a\n" font)
618 (invoke "mf" "-progname=mf"
619 "-output-directory=build"
620 (string-append "\\"
621 "mode:=ljfour; "
622 "mag:=1+0/600; "
623 "batchmode; "
624 "input "
625 (basename font ".mf")))
626 (invoke "gftopk"
627 (string-append "build/"
628 (basename font ".mf") ".600gf")
629 (string-append "pk/ljfour/public/cm/dpi600/"
630 (basename font ".mf") ".pk")))
631 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))
632 #t))
633 (replace 'install
634 (lambda* (#:key inputs outputs #:allow-other-keys)
635 (let* ((out (assoc-ref outputs "out"))
636 (fonts (string-append out "/share/texmf-dist/fonts/"))
637 (pk (string-append fonts "pk"))
638 (tfm (string-append fonts "tfm/public/cm"))
639 (mf (string-append fonts "source/public/cm"))
640 (type1 (string-append fonts "type1/public/amsfonts/cm")))
641 (for-each (cut install-file <> tfm)
642 (find-files "build" "\\.*"))
643 (for-each (cut install-file <> mf)
644 (find-files "." "\\.mf"))
645 (copy-recursively "pk" pk)
646 (mkdir-p type1)
647 (copy-recursively (assoc-ref inputs "cm-type1") type1)
648 #t))))))
649 (native-inputs
650 `(("texlive-bin" ,texlive-bin)
651 ("texlive-metafont-base" ,texlive-metafont-base)
652 ("cm-type1"
653 ,(origin
654 (method svn-fetch)
655 (uri (svn-reference
656 (url (string-append "svn://www.tug.org/texlive/tags/"
657 %texlive-tag "/Master/texmf-dist/"
658 "/fonts/type1/public/amsfonts/cm"))
659 (revision %texlive-revision)))
660 (file-name (string-append name "-type1-" version "-checkout"))
661 (sha256
662 (base32
663 "12jyl9jp3hidifa4l5pmi47p71d5mb5kj5rknxkygilix8yz2iy6"))))))
664 (home-page "https://www.ctan.org/pkg/cm")
665 (synopsis "Computer Modern fonts for TeX")
666 (description "This package provides the Computer Modern fonts by Donald
667 Knuth. The Computer Modern font family is a large collection of text,
668 display, and mathematical fonts in a range of styles, based on Monotype Modern
669 8A.")
670 (license license:knuth)))
671
672 (define-public texlive-fonts-cm-super
673 (package
674 (name "texlive-fonts-cm-super")
675 (version (number->string %texlive-revision))
676 (source (origin
677 (method svn-fetch)
678 (uri (svn-reference
679 (url (string-append "svn://www.tug.org/texlive/tags/"
680 %texlive-tag "/Master/texmf-dist/"
681 "/tex/latex/cm-super"))
682 (revision %texlive-revision)))
683 (file-name (string-append name "-" version "-checkout"))
684 (sha256
685 (base32
686 "0ybb4gi2rblzpb6wfzm2wk7dj3y2jnmkzsla7mz7g3zc12y4r2b9"))))
687 (build-system trivial-build-system)
688 (arguments
689 `(#:modules ((guix build utils)
690 (ice-9 match))
691 #:builder
692 (begin
693 (use-modules (guix build utils)
694 (ice-9 match))
695 (let ((root (string-append (assoc-ref %outputs "out")
696 "/share/texmf-dist/"))
697 (pkgs '(("source" . "tex/latex/cm-super")
698 ("cm-super-afm" . "fonts/afm/public/cm-super")
699 ("cm-super-type1" . "fonts/type1/public/cm-super")
700 ("cm-super-enc" . "fonts/enc/dvips/cm-super")
701 ("cm-super-map" . "fonts/map/dvips/cm-super")
702 ("cm-super-vtex" . "fonts/map/vtex/cm-super"))))
703 (for-each (match-lambda
704 ((pkg . dir)
705 (let ((target (string-append root dir)))
706 (mkdir-p target)
707 (copy-recursively (assoc-ref %build-inputs pkg)
708 target))))
709 pkgs)
710 #t))))
711 (native-inputs
712 `(("cm-super-vtex"
713 ,(origin
714 (method svn-fetch)
715 (uri (svn-reference
716 (url (string-append "svn://www.tug.org/texlive/tags/"
717 %texlive-tag "/Master/texmf-dist/"
718 "/fonts/map/vtex/cm-super"))
719 (revision %texlive-revision)))
720 (file-name (string-append name "-map-vtex-" version "-checkout"))
721 (sha256
722 (base32
723 "14c9allsgfv6za9wznz4cxqxwz5nsmj8rnwvxams8fhs5rvglxqi"))))
724 ("cm-super-afm"
725 ,(origin
726 (method svn-fetch)
727 (uri (svn-reference
728 (url (string-append "svn://www.tug.org/texlive/tags/"
729 %texlive-tag "/Master/texmf-dist/"
730 "/fonts/afm/public/cm-super"))
731 (revision %texlive-revision)))
732 (file-name (string-append name "-afm-" version "-checkout"))
733 (sha256
734 (base32
735 "048ih65f2nghdabdar2p957c4s2spgllmy2gxdscddwqpnmd26yn"))))
736 ("cm-super-type1"
737 ,(origin
738 (method svn-fetch)
739 (uri (svn-reference
740 (url (string-append "svn://www.tug.org/texlive/tags/"
741 %texlive-tag "/Master/texmf-dist/"
742 "/fonts/type1/public/cm-super"))
743 (revision %texlive-revision)))
744 (file-name (string-append name "-type1-" version "-checkout"))
745 (sha256
746 (base32
747 "1140swk3w2ka0y4zdsq6pdifrdanb281q71p5gngbbjxdxjxf4qx"))))
748 ("cm-super-map"
749 ,(origin
750 (method svn-fetch)
751 (uri (svn-reference
752 (url (string-append "svn://www.tug.org/texlive/tags/"
753 %texlive-tag "/Master/texmf-dist/"
754 "/fonts/map/dvips/cm-super"))
755 (revision %texlive-revision)))
756 (file-name (string-append name "-map-" version "-checkout"))
757 (sha256
758 (base32
759 "10r6xqbwf9wk3ylg7givwyrw1952zydc6p7fw29zjf8ijl0lndim"))))
760 ("cm-super-enc"
761 ,(origin
762 (method svn-fetch)
763 (uri (svn-reference
764 (url (string-append "svn://www.tug.org/texlive/tags/"
765 %texlive-tag "/Master/texmf-dist/"
766 "/fonts/enc/dvips/cm-super"))
767 (revision %texlive-revision)))
768 (file-name (string-append name "-enc-" version "-checkout"))
769 (sha256
770 (base32
771 "1pgksy96gfgyjxfhs2k04bgg7nr7i128y01kjcahr7n38080h4ij"))))))
772 (home-page "https://www.ctan.org/pkg/cm-super")
773 (synopsis "Computer Modern Super family of fonts")
774 (description "The CM-Super family provides Adobe Type 1 fonts that replace
775 the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
776 T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
777 languages except Greek), and bringing many ameliorations in typesetting
778 quality. The fonts exhibit the same metrics as the METAFONT-encoded
779 originals.")
780 ;; With font exception
781 (license license:gpl2+)))
782
783 (define-public texlive-fonts-lm
784 (package
785 (name "texlive-fonts-lm")
786 (version "2.004")
787 (source (origin
788 (method url-fetch)
789 (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
790 "latin-modern/download/lm" version "bas.zip"))
791 (sha256
792 (base32
793 "0z2s253y751m2ci5aw8nq0sf2kyg9hpimv2gyixkch9d07m2b9wp"))))
794 (build-system trivial-build-system)
795 (arguments
796 `(#:modules ((guix build utils))
797 #:builder
798 (begin
799 (use-modules (guix build utils))
800 (let ((root (string-append (assoc-ref %outputs "out")
801 "/share/texmf-dist/")))
802 (mkdir-p root)
803 (with-directory-excursion root
804 (invoke (string-append (assoc-ref %build-inputs "unzip")
805 "/bin/unzip")
806 (assoc-ref %build-inputs "source")))
807 #t))))
808 (native-inputs
809 `(("unzip" ,unzip)))
810 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/")
811 (synopsis "Latin Modern family of fonts")
812 (description "The Latin Modern fonts are derived from the famous Computer
813 Modern fonts designed by Donald E. Knuth and described in Volume E of his
814 Computers & Typesetting series.")
815 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
816 ;; Public License (LPPL), version 1.3c or later, but comes with an
817 ;; additional but not legally binding clause.
818 (license license:lppl1.3c+)))
819
820 (define-public texlive-fonts-knuth-lib
821 (package
822 (name "texlive-fonts-knuth-lib")
823 (version (number->string %texlive-revision))
824 (source (origin
825 (method svn-fetch)
826 (uri (svn-reference
827 (url (string-append "svn://www.tug.org/texlive/tags/"
828 %texlive-tag "/Master/texmf-dist/"
829 "/fonts/source/public/knuth-lib"))
830 (revision %texlive-revision)))
831 (file-name (string-append name "-" version "-checkout"))
832 (sha256
833 (base32
834 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
835 (build-system gnu-build-system)
836 (arguments
837 `(#:modules ((guix build gnu-build-system)
838 (guix build utils)
839 (srfi srfi-26))
840 #:tests? #f ; no tests
841 #:phases
842 (modify-phases %standard-phases
843 (delete 'configure)
844 (replace 'build
845 (lambda* (#:key inputs #:allow-other-keys)
846 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
847 ;; Tell mf where to find mf.base
848 (setenv "MFBASES"
849 (string-append mf "/share/texmf-dist/web2c"))
850 ;; Tell mf where to look for source files
851 (setenv "MFINPUTS"
852 (string-append (getcwd) ":"
853 mf "/share/texmf-dist/metafont/base")))
854 (mkdir "build")
855 (invoke "mf" "-progname=mf"
856 "-output-directory=build"
857 (string-append "\\"
858 "mode:=ljfour; "
859 "mag:=1; "
860 "batchmode; "
861 "input manfnt"))))
862 (replace 'install
863 (lambda* (#:key outputs #:allow-other-keys)
864 (let* ((out (assoc-ref outputs "out"))
865 (tfm (string-append
866 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
867 (mf (string-append
868 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
869 (for-each (cut install-file <> tfm)
870 (find-files "build" "\\.*"))
871 (for-each (cut install-file <> mf)
872 (find-files "." "\\.mf"))
873 #t))))))
874 (native-inputs
875 `(("texlive-bin" ,texlive-bin)
876 ("texlive-metafont-base" ,texlive-metafont-base)))
877 (home-page "https://www.ctan.org/pkg/knuth-lib")
878 (synopsis "Small library of METAFONT sources")
879 (description "This is a collection of core TeX and METAFONT macro files
880 from Donald Knuth, including the plain format, plain base, and the MF logo
881 fonts.")
882 (license license:knuth)))
883
884 (define-public texlive-fonts-latex
885 (package
886 (name "texlive-fonts-latex")
887 (version (number->string %texlive-revision))
888 (source (origin
889 (method svn-fetch)
890 (uri (svn-reference
891 (url (string-append "svn://www.tug.org/texlive/tags/"
892 %texlive-tag "/Master/texmf-dist/"
893 "/fonts/source/public/latex-fonts"))
894 (revision %texlive-revision)))
895 (file-name (string-append name "-" version "-checkout"))
896 (sha256
897 (base32
898 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
899 (build-system gnu-build-system)
900 (arguments
901 `(#:modules ((guix build gnu-build-system)
902 (guix build utils)
903 (srfi srfi-1)
904 (srfi srfi-26))
905 #:tests? #f ; no tests
906 #:phases
907 (modify-phases %standard-phases
908 (delete 'configure)
909 (replace 'build
910 (lambda* (#:key inputs #:allow-other-keys)
911 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
912 ;; Tell mf where to find mf.base
913 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
914 ;; Tell mf where to look for source files
915 (setenv "MFINPUTS"
916 (string-append (getcwd) ":"
917 mf "/share/texmf-dist/metafont/base:"
918 (assoc-ref inputs "texlive-fonts-cm")
919 "/share/texmf-dist/fonts/source/public/cm")))
920 (mkdir "build")
921 (for-each (lambda (font)
922 (format #t "building font ~a\n" font)
923 (invoke "mf" "-progname=mf"
924 "-output-directory=build"
925 (string-append "\\"
926 "mode:=ljfour; "
927 "mag:=1; "
928 "batchmode; "
929 "input " font)))
930 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
931 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
932 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
933 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
934 "line10" "linew10"))
935 #t))
936 (replace 'install
937 (lambda* (#:key outputs #:allow-other-keys)
938 (let* ((out (assoc-ref outputs "out"))
939 (tfm (string-append
940 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
941 (mf (string-append
942 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
943 (for-each (cut install-file <> tfm)
944 (find-files "build" "\\.*"))
945 (for-each (cut install-file <> mf)
946 (find-files "." "\\.mf"))
947 #t))))))
948 (native-inputs
949 `(("texlive-bin" ,texlive-bin)
950 ("texlive-metafont-base" ,texlive-metafont-base)
951 ("texlive-fonts-cm" ,texlive-fonts-cm)))
952 (home-page "https://www.ctan.org/pkg/latex-fonts")
953 (synopsis "Collection of fonts used in LaTeX distributions")
954 (description "This is a collection of fonts for use with standard LaTeX
955 packages and classes. It includes invisible fonts (for use with the slides
956 class), line and circle fonts (for use in the picture environment) and LaTeX
957 symbol fonts.")
958 (license license:lppl1.2+)))
959
960 (define-public texlive-fonts-amsfonts
961 (package
962 (name "texlive-fonts-amsfonts")
963 (version (number->string %texlive-revision))
964 (source (origin
965 (method svn-fetch)
966 (uri (svn-reference
967 (url (string-append "svn://www.tug.org/texlive/tags/"
968 %texlive-tag "/Master/texmf-dist/"
969 "/fonts/source/public/amsfonts"))
970 (revision %texlive-revision)))
971 (file-name (string-append name "-" version "-checkout"))
972 (sha256
973 (base32
974 "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
975 (build-system gnu-build-system)
976 (arguments
977 `(#:modules ((guix build gnu-build-system)
978 (guix build utils)
979 (srfi srfi-1)
980 (srfi srfi-26))
981 #:tests? #f ; no tests
982 #:phases
983 (modify-phases %standard-phases
984 (delete 'configure)
985 (replace 'build
986 (lambda* (#:key inputs #:allow-other-keys)
987 (let ((mf (assoc-ref inputs "texlive-metafont-base"))
988 (cwd (getcwd)))
989 ;; Make METAFONT reproducible
990 (setenv "SOURCE_DATE_EPOCH" "1")
991 ;; Tell mf where to find mf.base
992 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
993 ;; Tell mf where to look for source files
994 (setenv "MFINPUTS"
995 (string-append cwd ":"
996 cwd "/cmextra:"
997 cwd "/cyrillic:"
998 cwd "/dummy:"
999 cwd "/symbols:"
1000 mf "/share/texmf-dist/metafont/base:"
1001 (assoc-ref inputs "texlive-fonts-cm")
1002 "/share/texmf-dist/fonts/source/public/cm")))
1003 (mkdir "build")
1004 (for-each (lambda (font)
1005 (format #t "building font ~a\n" (basename font ".mf"))
1006 (with-directory-excursion (dirname font)
1007 (invoke "mf" "-progname=mf"
1008 "-output-directory=../build"
1009 (string-append "\\"
1010 "mode:=ljfour; "
1011 "mag:=1; "
1012 "nonstopmode; "
1013 "input "
1014 (getcwd) "/"
1015 (basename font ".mf")))))
1016 (find-files "." "[0-9]+\\.mf$"))
1017 #t))
1018 (replace 'install
1019 (lambda* (#:key inputs outputs #:allow-other-keys)
1020 (let* ((out (assoc-ref outputs "out"))
1021 (fonts (string-append out "/share/texmf-dist/fonts"))
1022 (tfm (string-append fonts "/tfm/public/amsfonts"))
1023 (mf (string-append fonts "/source/public/amsfonts"))
1024 (type1 (string-append fonts "/type1/public/amsfonts")))
1025 (for-each (cut install-file <> tfm)
1026 (find-files "build" "\\.*"))
1027 (for-each (cut install-file <> mf)
1028 (find-files "." "\\.mf"))
1029 (copy-recursively (assoc-ref inputs "amsfonts-type1") type1)
1030 #t))))))
1031 (native-inputs
1032 `(("texlive-fonts-cm" ,texlive-fonts-cm)
1033 ("texlive-metafont-base" ,texlive-metafont-base)
1034 ("texlive-bin" ,texlive-bin)
1035 ("amsfonts-type1"
1036 ,(origin
1037 (method svn-fetch)
1038 (uri (svn-reference
1039 (url (string-append "svn://www.tug.org/texlive/tags/"
1040 %texlive-tag "/Master/texmf-dist/"
1041 "/fonts/type1/public/amsfonts"))
1042 (revision %texlive-revision)))
1043 (file-name (string-append name "-type1-" version "-checkout"))
1044 (sha256
1045 (base32
1046 "1zfz33vn6gm19njy74n8wmn7sljrimfhwns5z8qqhxqfh1g4qip2"))))))
1047 (home-page "https://www.ctan.org/pkg/amsfonts")
1048 (synopsis "TeX fonts from the American Mathematical Society")
1049 (description
1050 "This package provides an extended set of fonts for use in mathematics,
1051 including: extra mathematical symbols; blackboard bold letters (uppercase
1052 only); fraktur letters; subscript sizes of bold math italic and bold Greek
1053 letters; subscript sizes of large symbols such as sum and product; added sizes
1054 of the Computer Modern small caps font; cyrillic fonts (from the University of
1055 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1056 files, and all except the Euler fonts are provided as Metafont source. The
1057 distribution also includes the canonical Type 1 versions of the Computer
1058 Modern family of fonts. The Euler fonts are supported by separate packages;
1059 details can be found in the documentation.")
1060 (license license:silofl1.1)))
1061
1062 (define-public texlive-latex-amsfonts
1063 (package
1064 (name "texlive-latex-amsfonts")
1065 (version (number->string %texlive-revision))
1066 (source (origin
1067 (method svn-fetch)
1068 (uri (texlive-ref "latex" "amsfonts"))
1069 (file-name (string-append name "-" version "-checkout"))
1070 (sha256
1071 (base32
1072 "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
1073 (build-system texlive-build-system)
1074 (arguments '(#:tex-directory "latex/amsfonts"))
1075 (native-inputs
1076 `(("texlive-fonts-cm" ,texlive-fonts-cm)
1077 ("texlive-metafont-base" ,texlive-metafont-base)))
1078 (home-page "https://www.ctan.org/pkg/amsfonts")
1079 (synopsis "TeX fonts from the American Mathematical Society")
1080 (description
1081 "This package provides basic LaTeX support for the symbol fonts provides
1082 by the amsfonts package. It provides @code{amsfonts.sty}, with names of
1083 individual symbols defined in @code{amssymb.sty}.")
1084 (license license:silofl1.1)))
1085
1086 ;; This provides etex.src which is needed to build various formats, including
1087 ;; luatex.fmt and pdflatex.fmt
1088 (define-public texlive-tex-plain
1089 (package
1090 (name "texlive-tex-plain")
1091 (version (number->string %texlive-revision))
1092 (source (origin
1093 (method svn-fetch)
1094 (uri (svn-reference
1095 (url (string-append "svn://www.tug.org/texlive/tags/"
1096 %texlive-tag "/Master/texmf-dist/"
1097 "/tex/plain"))
1098 (revision %texlive-revision)))
1099 (file-name (string-append name "-" version "-checkout"))
1100 (sha256
1101 (base32
1102 "1xknlb3gcw6jjqh97bhghxi594bzpj1zfzzfsrr9pvr9s1bx7dnf"))))
1103 (build-system trivial-build-system)
1104 (arguments
1105 `(#:modules ((guix build utils))
1106 #:builder
1107 (begin
1108 (use-modules (guix build utils))
1109 (let ((target (string-append (assoc-ref %outputs "out")
1110 "/share/texmf-dist/tex/plain")))
1111 (mkdir-p target)
1112 (copy-recursively (assoc-ref %build-inputs "source") target)
1113 #t))))
1114 (home-page "https://www.ctan.org/pkg/plain")
1115 (synopsis "Plain TeX format and supporting files")
1116 (description
1117 "Contains files used to build the Plain TeX format, as described in the
1118 TeXbook, together with various supporting files (some also discussed in the
1119 book).")
1120 (license license:knuth)))
1121
1122 (define-public texlive-latex-base
1123 (let ((texlive-dir
1124 (lambda (dir hash)
1125 (origin
1126 (method svn-fetch)
1127 (uri (svn-reference
1128 (url (string-append "svn://www.tug.org/texlive/tags/"
1129 %texlive-tag "/Master/texmf-dist/"
1130 dir))
1131 (revision %texlive-revision)))
1132 (file-name (string-append "texlive-generic-"
1133 (last (string-split
1134 (string-drop-right dir 1) #\/))
1135 "-" (number->string %texlive-revision)
1136 "-checkout"))
1137 (sha256 (base32 hash))))))
1138 (package
1139 (name "texlive-latex-base")
1140 (version (number->string %texlive-revision))
1141 (source (origin
1142 (method svn-fetch)
1143 (uri (texlive-ref "latex" "base"))
1144 (file-name (string-append name "-" version "-checkout"))
1145 (sha256
1146 (base32
1147 "17bqrzzjz16k52sc7ydl4vw7ddy2z3g0p1xsk2c35h1ynq9h3wwm"))))
1148 (build-system gnu-build-system)
1149 (arguments
1150 `(#:modules ((guix build gnu-build-system)
1151 (guix build utils)
1152 (ice-9 match)
1153 (srfi srfi-1)
1154 (srfi srfi-26))
1155 #:tests? #f ; no tests
1156 #:phases
1157 (modify-phases %standard-phases
1158 (delete 'configure)
1159 (replace 'build
1160 (lambda* (#:key inputs #:allow-other-keys)
1161 ;; Find required fonts
1162 (setenv "TFMFONTS"
1163 (string-append (assoc-ref inputs "texlive-fonts-cm")
1164 "/share/texmf-dist/fonts/tfm/public/cm:"
1165 (assoc-ref inputs "texlive-fonts-latex")
1166 "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
1167 (assoc-ref inputs "texlive-fonts-knuth-lib")
1168 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
1169 (setenv "TEXINPUTS"
1170 (string-append
1171 (getcwd) ":"
1172 (getcwd) "/build:"
1173 (string-join
1174 (map (match-lambda ((_ . dir) dir)) inputs)
1175 "//:")))
1176
1177 ;; Create an empty texsys.cfg, because latex.ltx wants to include
1178 ;; it. This file must exist and it's fine if it's empty.
1179 (with-output-to-file "texsys.cfg"
1180 (lambda _ (format #t "%")))
1181
1182 (mkdir "build")
1183 (mkdir "web2c")
1184 (invoke "luatex" "-ini" "-interaction=batchmode"
1185 "-output-directory=build" "unpack.ins")
1186 (invoke "tex" "-ini" "-interaction=batchmode"
1187 "-output-directory=web2c" "tex.ini")
1188 ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
1189 ;; is enabled only in extended mode (activated with a
1190 ;; leading asterisk). We should not use luatex here,
1191 ;; because that would make the generated format files
1192 ;; incompatible with any other TeX engine.
1193 (for-each (lambda (format)
1194 (invoke "latex" "-ini" "-interaction=batchmode"
1195 "-output-directory=web2c"
1196 "-translate-file=cp227.tcx"
1197 (string-append "*" format ".ini")))
1198 '("latex"
1199 "pdflatex"
1200 "pdfetex"))
1201 (for-each (lambda (format)
1202 (invoke format "-ini" "-interaction=batchmode"
1203 "-output-directory=web2c"
1204 (string-append "*" format ".ini")))
1205 '("xetex"
1206 "xelatex"))
1207 (for-each (lambda (format)
1208 (invoke "luatex" "-ini" "-interaction=batchmode"
1209 "-output-directory=web2c"
1210 (string-append format ".ini")))
1211 '("dviluatex" "dvilualatex" "luatex" "lualatex"))
1212 #t))
1213 (replace 'install
1214 (lambda* (#:key inputs outputs #:allow-other-keys)
1215 (let* ((out (assoc-ref outputs "out"))
1216 (target (string-append
1217 out "/share/texmf-dist/tex/latex/base"))
1218 (web2c (string-append
1219 out "/share/texmf-dist/web2c"))
1220 (support-files (assoc-ref inputs "texlive-latex-base-support-files")))
1221 (mkdir-p target)
1222 (mkdir-p web2c)
1223 (for-each delete-file (find-files "." "\\.(log|aux)$"))
1224 (for-each (cut install-file <> target)
1225 (find-files "build" ".*"))
1226 (for-each (cut install-file <> web2c)
1227 (find-files "web2c" ".*"))
1228 ;; pdftex is really just the same as pdfetex, but since it
1229 ;; doesn't have its own format file, we need to copy it.
1230 (copy-file "web2c/pdfetex.fmt"
1231 (string-append web2c "/pdftex.fmt"))
1232 ;; "source" is missing the support files as per doc/latex/base/manifest.txt.
1233 ;; FIXME: We are probably not packaging this right.
1234 (for-each (lambda (file)
1235 (install-file
1236 (string-append support-files "/" file)
1237 target))
1238 '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex"
1239 "lablst.tex" "testpage.tex" "ltxcheck.tex"))
1240 ;; Install configurations
1241 (copy-recursively
1242 (assoc-ref inputs "texlive-latex-latexconfig")
1243 (string-append out "/share/texmf-dist/tex/latex/latexconfig"))
1244 (copy-recursively
1245 (assoc-ref inputs "texlive-generic-config")
1246 (string-append out "/share/texmf-dist/tex/generic/config"))
1247 (copy-recursively
1248 (assoc-ref inputs "texlive-generic-hyphen")
1249 (string-append out "/share/texmf-dist/tex/generic/hyphen"))
1250 (copy-recursively
1251 (assoc-ref inputs "texlive-generic-ruhyphen")
1252 (string-append out "/share/texmf-dist/tex/generic/ruhyphen"))
1253 (copy-recursively
1254 (assoc-ref inputs "texlive-generic-ukrhyph")
1255 (string-append out "/share/texmf-dist/tex/generic/ukrhyph"))
1256 #t))))))
1257 (native-inputs
1258 `(("texlive-bin" ,texlive-bin)
1259 ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
1260 ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
1261 ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
1262 ("texlive-latex-latexconfig"
1263 ,(texlive-dir "tex/latex/latexconfig/"
1264 "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
1265 ("texlive-generic-hyphen"
1266 ,(texlive-dir "tex/generic/hyphen/"
1267 "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
1268 ("texlive-generic-ruhyphen"
1269 ,(texlive-dir "tex/generic/ruhyphen/"
1270 "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
1271 ("texlive-generic-ukrhyph"
1272 ,(texlive-dir "tex/generic/ukrhyph/"
1273 "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
1274 ("texlive-generic-config"
1275 ,(texlive-dir "tex/generic/config/"
1276 "1v90iihy112q93zdpblpdk8zv8rf99fgslsg06s1sxm27zjm9nap"))
1277 ("texlive-latex-base-support-files"
1278 ,(origin
1279 (method svn-fetch)
1280 (uri (svn-reference
1281 (url (string-append "svn://www.tug.org/texlive/tags/"
1282 %texlive-tag "/Master/texmf-dist/"
1283 "/tex/latex/base"))
1284 (revision %texlive-revision)))
1285 (file-name (string-append name "-" version "-checkout"))
1286 (sha256
1287 (base32
1288 "18wy8dlcw8adl6jzqwbg54pdwlhs8hilnfvqbw6ikj6y3zhqkj7q"))))
1289 ("texlive-tex-plain" ,texlive-tex-plain)
1290 ("texlive-fonts-cm" ,texlive-fonts-cm)
1291 ("texlive-fonts-latex" ,texlive-fonts-latex)
1292 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
1293 (propagated-inputs
1294 `(("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)))
1295 (home-page "https://www.ctan.org/pkg/latex-base")
1296 (synopsis "Base sources of LaTeX")
1297 (description
1298 "This bundle comprises the source of LaTeX itself, together with several
1299 packages which are considered \"part of the kernel\". This bundle, together
1300 with the required packages, constitutes what every LaTeX distribution should
1301 contain.")
1302 (license license:lppl1.3c+))))
1303
1304 (define-public texlive-latex-filecontents
1305 (package
1306 (name "texlive-latex-filecontents")
1307 (version (number->string %texlive-revision))
1308 (source (origin
1309 (method svn-fetch)
1310 (uri (texlive-ref "latex" "filecontents"))
1311 (file-name (string-append name "-" version "-checkout"))
1312 (sha256
1313 (base32
1314 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
1315 (build-system texlive-build-system)
1316 (arguments '(#:tex-directory "latex/filecontents"))
1317 (home-page "https://www.ctan.org/pkg/filecontents")
1318 (synopsis "Extended filecontents and filecontents* environments")
1319 (description
1320 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
1321 enable a LaTeX source file to generate external files as it runs through
1322 LaTeX. However, there are two limitations of these environments: they refuse
1323 to overwrite existing files, and they can only be used in the preamble of a
1324 document. The filecontents package removes these limitations, letting you
1325 overwrite existing files and letting you use @code{filecontents} /
1326 @code{filecontents*} anywhere.")
1327 (license license:lppl1.3c+)))
1328
1329 (define-public texlive-generic-ifxetex
1330 (package
1331 (name "texlive-generic-ifxetex")
1332 (version (number->string %texlive-revision))
1333 (source (origin
1334 (method svn-fetch)
1335 (uri (texlive-ref "generic" "ifxetex"))
1336 (file-name (string-append name "-" version "-checkout"))
1337 (sha256
1338 (base32
1339 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
1340 (build-system texlive-build-system)
1341 (arguments
1342 '(#:tex-directory "generic/ifxetex"
1343 #:tex-format "xelatex"))
1344 (inputs
1345 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
1346 (home-page "https://www.ctan.org/pkg/ifxetex")
1347 (synopsis "Am I running under XeTeX?")
1348 (description
1349 "This is a simple package which provides an @code{\\ifxetex} conditional,
1350 so that other code can determine that it is running under XeTeX. The package
1351 requires the e-TeX extensions to the TeX primitive set.")
1352 (license license:lppl1.3c+)))
1353
1354 (define-public texlive-generic-epsf
1355 (package
1356 (name "texlive-generic-epsf")
1357 (version (number->string %texlive-revision))
1358 (source (origin
1359 (method svn-fetch)
1360 (uri (svn-reference
1361 (url (string-append "svn://www.tug.org/texlive/tags/"
1362 %texlive-tag "/Master/texmf-dist/"
1363 "/tex/generic/epsf"))
1364 (revision %texlive-revision)))
1365 (file-name (string-append name "-" version "-checkout"))
1366 (sha256
1367 (base32
1368 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
1369 (build-system trivial-build-system)
1370 (arguments
1371 `(#:modules ((guix build utils))
1372 #:builder
1373 (begin
1374 (use-modules (guix build utils))
1375 (let ((target (string-append (assoc-ref %outputs "out")
1376 "/share/texmf-dist/tex/generic/epfs")))
1377 (mkdir-p target)
1378 (copy-recursively (assoc-ref %build-inputs "source") target)
1379 #t))))
1380 (home-page "https://www.ctan.org/pkg/epsf")
1381 (synopsis "Simple macros for EPS inclusion")
1382 (description
1383 "This package provides the original (and now obsolescent) graphics
1384 inclusion macros for use with dvips, still widely used by Plain TeX users (in
1385 particular). For LaTeX users, the package is nowadays (rather strongly)
1386 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
1387 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
1388 users, via its Plain TeX version.)")
1389 (license license:public-domain)))
1390
1391 (define-public texlive-latex-fancyvrb
1392 (package
1393 (name "texlive-latex-fancyvrb")
1394 (version (number->string %texlive-revision))
1395 (source (origin
1396 (method svn-fetch)
1397 (uri (texlive-ref "latex" "fancyvrb"))
1398 (file-name (string-append name "-" version "-checkout"))
1399 (sha256
1400 (base32
1401 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
1402 (build-system texlive-build-system)
1403 (arguments
1404 '(#:tex-directory "latex/fancyvrb"
1405 #:tex-format "latex"))
1406 (home-page "https://www.ctan.org/pkg/fancyvrb")
1407 (synopsis "Sophisticated verbatim text")
1408 (description
1409 "This package provides tools for the flexible handling of verbatim text
1410 including: verbatim commands in footnotes; a variety of verbatim environments
1411 with many parameters; ability to define new customized verbatim environments;
1412 save and restore verbatim text and environments; write and read files in
1413 verbatim mode; build \"example\" environments (showing both result and
1414 verbatim source).")
1415 (license license:lppl1.0+)))
1416
1417 (define-public texlive-latex-graphics
1418 (package
1419 (name "texlive-latex-graphics")
1420 (version (number->string %texlive-revision))
1421 (source (origin
1422 (method svn-fetch)
1423 (uri (texlive-ref "latex" "graphics"))
1424 (file-name (string-append name "-" version "-checkout"))
1425 (sha256
1426 (base32
1427 "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz"))))
1428 (build-system texlive-build-system)
1429 (arguments
1430 '(#:tex-directory "latex/graphics"
1431 #:phases
1432 (modify-phases %standard-phases
1433 (add-after 'install 'install-config
1434 (lambda* (#:key inputs outputs #:allow-other-keys)
1435 (let ((cfg (assoc-ref inputs "graphics-cfg"))
1436 (target (string-append (assoc-ref outputs "out")
1437 "/share/texmf-dist/tex/latex/graphics-cfg")))
1438 (mkdir-p target)
1439 (install-file (string-append cfg "/graphics.cfg") target)
1440 (install-file (string-append cfg "/color.cfg") target)
1441 #t)))
1442 (add-after 'install 'install-defs
1443 (lambda* (#:key inputs outputs #:allow-other-keys)
1444 (let ((def (assoc-ref inputs "graphics-def"))
1445 (target (string-append (assoc-ref outputs "out")
1446 "/share/texmf-dist/tex/latex/graphics-def")))
1447 (mkdir-p target)
1448 (copy-recursively def target)
1449 #t))))))
1450 (native-inputs
1451 `(("graphics-cfg"
1452 ,(origin
1453 (method git-fetch)
1454 (uri (git-reference
1455 (url "https://github.com/latex3/graphics-cfg.git")
1456 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
1457 (file-name (string-append "graphics-cfg-"
1458 (number->string %texlive-revision)
1459 "-checkout"))
1460 (sha256
1461 (base32
1462 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
1463 ("graphics-def"
1464 ,(origin
1465 (method svn-fetch)
1466 (uri (svn-reference
1467 (url (string-append "svn://www.tug.org/texlive/tags/"
1468 %texlive-tag "/Master/texmf-dist/"
1469 "/tex/latex/graphics-def"))
1470 (revision %texlive-revision)))
1471 (file-name (string-append "graphics-def-"
1472 (number->string %texlive-revision)
1473 "-checkout"))
1474 (sha256
1475 (base32
1476 "17zpcgrfsr29g1dkz9np1qi63kjv7gb12rg979c6dai6qksbr3vq"))))))
1477 (home-page "https://www.ctan.org/pkg/latex-graphics")
1478 (synopsis "LaTeX standard graphics bundle")
1479 (description
1480 "This is a collection of LaTeX packages for producing color, including
1481 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
1482 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
1483 keyval, and lscape.")
1484 ;; The configuration files are released under CC0.
1485 (license (list license:lppl1.3c+
1486 license:cc0))))
1487
1488 (define-public texlive-latex-xcolor
1489 (package
1490 (name "texlive-latex-xcolor")
1491 (version (number->string %texlive-revision))
1492 (source (origin
1493 (method svn-fetch)
1494 (uri (texlive-ref "latex" "xcolor"))
1495 (file-name (string-append name "-" version "-checkout"))
1496 (sha256
1497 (base32
1498 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
1499 (build-system texlive-build-system)
1500 (arguments '(#:tex-directory "latex/xcolor"))
1501 (home-page "https://www.ctan.org/pkg/xcolor")
1502 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
1503 (description
1504 "The package starts from the basic facilities of the colorcolor package,
1505 and provides easy driver-independent access to several kinds of color tints,
1506 shades, tones, and mixes of arbitrary colors. It allows a user to select a
1507 document-wide target color model and offers complete tools for conversion
1508 between eight color models. Additionally, there is a command for alternating
1509 row colors plus repeated non-aligned material (like horizontal lines) in
1510 tables.")
1511 (license license:lppl1.2+)))
1512
1513 (define-public texlive-latex-hyperref
1514 (package
1515 (name "texlive-latex-hyperref")
1516 (version "6.84a2")
1517 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
1518 ;; so we fetch the release from GitHub.
1519 (source (origin
1520 (method url-fetch)
1521 (uri (string-append "https://github.com/ho-tex/hyperref/"
1522 "archive/release-" version ".tar.gz"))
1523 (file-name (string-append name "-" version ".tar.gz"))
1524 (sha256
1525 (base32
1526 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
1527 (build-system texlive-build-system)
1528 (arguments '(#:tex-directory "latex/hyperref"))
1529 (home-page "https://www.ctan.org/pkg/hyperref")
1530 (synopsis "Extensive support for hypertext in LaTeX")
1531 (description
1532 "The @code{hyperref} package is used to handle cross-referencing commands
1533 in LaTeX to produce hypertext links in the document. The package provides
1534 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
1535 embedded @code{pdfmark} commands for processing by Acrobat
1536 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
1537 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
1538 pdf and HTML backends. The package is distributed with the @code{backref} and
1539 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
1540 (license license:lppl1.3+)))
1541
1542 (define-public texlive-latex-oberdiek
1543 (package
1544 (name "texlive-latex-oberdiek")
1545 (version (number->string %texlive-revision))
1546 (source (origin
1547 (method svn-fetch)
1548 (uri (texlive-ref "latex" "oberdiek"))
1549 (file-name (string-append name "-" version "-checkout"))
1550 (sha256
1551 (base32
1552 "1m9fg8ddhpsl1212igr9a9fmj012lv780aghjn6fpidg2wqrffmn"))))
1553 (build-system texlive-build-system)
1554 (arguments
1555 '(#:tex-directory "latex/oberdiek"
1556 #:build-targets '("oberdiek.ins")
1557 #:phases
1558 (modify-phases %standard-phases
1559 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
1560 (add-after 'unpack 'do-not-process-ifpdf.ins
1561 (lambda _
1562 (substitute* "oberdiek.ins"
1563 (("ifpdf.ins") "ifpdf.dtx"))
1564 #t)))))
1565 (home-page "https://www.ctan.org/pkg/oberdiek")
1566 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
1567 (description
1568 "The bundle comprises various LaTeX packages, providing among others:
1569 better accessibility support for PDF files; extensible chemists reaction
1570 arrows; record information about document class(es) used; and many more.")
1571 (license license:lppl1.3+)))
1572
1573 (define-public texlive-latex-tools
1574 (package
1575 (name "texlive-latex-tools")
1576 (version (number->string %texlive-revision))
1577 (source (origin
1578 (method svn-fetch)
1579 (uri (texlive-ref "latex" "tools"))
1580 (file-name (string-append name "-" version "-checkout"))
1581 (sha256
1582 (base32
1583 "0vj7h1fgf1396h4qjdc2m07y08i54gbbfrxl8y327cn3r1n093s6"))))
1584 (build-system texlive-build-system)
1585 (arguments
1586 '(#:tex-directory "latex/tools"
1587 #:build-targets '("tools.ins")))
1588 (home-page "https://www.ctan.org/pkg/latex-tools")
1589 (synopsis "LaTeX standard tools bundle")
1590 (description
1591 "This package is a collection of (variously) simple tools provided as
1592 part of the LaTeX required tools distribution, comprising the following
1593 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
1594 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
1595 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
1596 xr, and xspace.")
1597 (license license:lppl1.3+)))
1598
1599 (define-public texlive-latex-url
1600 (package
1601 (name "texlive-latex-url")
1602 (version (number->string %texlive-revision))
1603 (source (origin
1604 (method svn-fetch)
1605 (uri (svn-reference
1606 (url (string-append "svn://www.tug.org/texlive/tags/"
1607 %texlive-tag "/Master/texmf-dist/"
1608 "/tex/latex/url"))
1609 (revision %texlive-revision)))
1610 (file-name (string-append name "-" version "-checkout"))
1611 (sha256
1612 (base32
1613 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
1614 (build-system trivial-build-system)
1615 (arguments
1616 `(#:modules ((guix build utils))
1617 #:builder
1618 (begin
1619 (use-modules (guix build utils))
1620 (let ((target (string-append (assoc-ref %outputs "out")
1621 "/share/texmf-dist/tex/latex/url")))
1622 (mkdir-p target)
1623 (copy-recursively (assoc-ref %build-inputs "source") target)
1624 #t))))
1625 (home-page "https://www.ctan.org/pkg/url")
1626 (synopsis "Verbatim with URL-sensitive line breaks")
1627 (description "The command @code{\\url} is a form of verbatim command that
1628 allows linebreaks at certain characters or combinations of characters, accepts
1629 reconfiguration, and can usually be used in the argument to another command.
1630 The command is intended for email addresses, hypertext links,
1631 directories/paths, etc., which normally have no spaces, so by default the
1632 package ignores spaces in its argument. However, a package option allows
1633 spaces, which is useful for operating systems where spaces are a common part
1634 of file names.")
1635 ;; The license header states that it is under LPPL version 2 or later, but
1636 ;; the latest version is 1.3c.
1637 (license license:lppl1.3c+)))
1638
1639 (define-public texlive-latex-l3kernel
1640 (package
1641 (name "texlive-latex-l3kernel")
1642 (version (number->string %texlive-revision))
1643 (source (origin
1644 (method svn-fetch)
1645 (uri (texlive-ref "latex" "l3kernel"))
1646 (file-name (string-append name "-" version "-checkout"))
1647 (sha256
1648 (base32
1649 "0p3fsxap1ilwjz356aq4s5ygwvdscis8bh93g8klf8mhrd8cr2jy"))))
1650 (build-system texlive-build-system)
1651 (arguments
1652 '(#:tex-directory "latex/l3kernel"))
1653 (home-page "https://www.ctan.org/pkg/l3kernel")
1654 (synopsis "LaTeX3 programmers’ interface")
1655 (description
1656 "The l3kernel bundle provides an implementation of the LaTeX3
1657 programmers’ interface, as a set of packages that run under LaTeX 2e. The
1658 interface provides the foundation on which the LaTeX3 kernel and other future
1659 code are built: it is an API for TeX programmers. The packages are set up so
1660 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
1661 (license license:lppl1.3c+)))
1662
1663 (define-public texlive-latex-l3packages
1664 (package
1665 (name "texlive-latex-l3packages")
1666 (version (number->string %texlive-revision))
1667 (source (origin
1668 (method svn-fetch)
1669 (uri (texlive-ref "latex" "l3packages"))
1670 (file-name (string-append name "-" version "-checkout"))
1671 (sha256
1672 (base32
1673 "0pyx0hffiyss363vv7fkrcdiaf7p099xnq0mngzqc7v8v9q849hs"))))
1674 (build-system texlive-build-system)
1675 (arguments
1676 '(#:tex-directory "latex/l3packages"
1677 ;; build-targets must be specified manually since they are in
1678 ;; sub-directories.
1679 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
1680 #:phases
1681 (modify-phases %standard-phases
1682 ;; All package sources are in sub-directories, so we need to add them
1683 ;; to TEXINPUTS.
1684 (add-after 'unpack 'set-TEXINPUTS
1685 (lambda _
1686 (let ((cwd (getcwd)))
1687 (setenv "TEXINPUTS"
1688 (string-append cwd "/l3keys2e:"
1689 cwd "/xparse:"
1690 cwd "/xfrac:"
1691 cwd "/xfp:"
1692 cwd "/xtemplate"
1693 ;; The terminating ":" is required to include the
1694 ;; l3kernel input as well.
1695 ":")))
1696 #t)))
1697 ))
1698 (propagated-inputs
1699 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1700 (home-page "https://www.ctan.org/pkg/l3packages")
1701 (synopsis "High-level LaTeX3 concepts")
1702 (description
1703 "This bundle holds prototype implementations of concepts for a LaTeX
1704 designer interface, to be used with the experimental LaTeX kernel as
1705 programming tools and kernel sup­port. Packages provided in this release are:
1706
1707 @enumerate
1708 @item l3keys2e, which makes the facilities of the kernel module l3keys
1709 available for use by LaTeX 2e packages;
1710 @item xfrac, which provides flexible splitlevel fractions;
1711 @item xparse, which provides a high-level interface for declaring document
1712 commands; and
1713 @item xtemplate, which provides a means of defining generic functions using a
1714 key-value syntax.
1715 @end enumerate\n")
1716 (license license:lppl1.3c+)))
1717
1718 (define-public texlive-latex-fontspec
1719 (package
1720 (name "texlive-latex-fontspec")
1721 (version (number->string %texlive-revision))
1722 (source (origin
1723 (method svn-fetch)
1724 (uri (texlive-ref "latex" "fontspec"))
1725 (file-name (string-append name "-" version "-checkout"))
1726 (sha256
1727 (base32
1728 "1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq"))))
1729 (build-system texlive-build-system)
1730 (arguments
1731 '(#:tex-directory "latex/fontspec"
1732 #:phases
1733 (modify-phases %standard-phases
1734 (add-after 'install 'install-default-fontspec.cfg
1735 (lambda* (#:key outputs #:allow-other-keys)
1736 (with-output-to-file
1737 (string-append (assoc-ref outputs "out")
1738 "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg")
1739 (lambda _
1740 (display "\
1741 %%% FONTSPEC.CFG %%%
1742 %
1743 % This configuration file sets up TeX Ligatures by default for all fonts loaded
1744 % with `\\setmainfont` and `\\setsansfont`.
1745 %
1746 % In addition, `\\setmonofont` has default features to enforce \"monospace\"
1747 % settings with regard to space stretchability and shrinkability.
1748
1749 \\defaultfontfeatures
1750 [\\rmfamily,\\sffamily]
1751 {Ligatures=TeX}
1752
1753 \\defaultfontfeatures
1754 [\\ttfamily]
1755 {WordSpace={1,0,0},
1756 HyphenChar=None,
1757 PunctuationSpace=WordSpace}
1758 ")))
1759 #t)))))
1760 (propagated-inputs
1761 `(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
1762 (home-page "https://www.ctan.org/pkg/fontspec")
1763 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
1764 (description
1765 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
1766 automatic and unified interface to feature-rich AAT and OpenType fonts through
1767 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
1768 the l3kernel and xparse bundles from the LaTeX 3 development team.")
1769 (license license:lppl1.3+)))
1770
1771 ;; The SVN directory contains little more than a dtx file that generates three
1772 ;; of the many lua files that should be installed as part of this package.
1773 ;; This is why we take the release from GitHub instead.
1774 (define-public texlive-luatex-lualibs
1775 (package
1776 (name "texlive-luatex-lualibs")
1777 (version "2.5")
1778 (source (origin
1779 (method url-fetch)
1780 (uri (string-append "https://github.com/lualatex/lualibs/"
1781 "releases/download/v"
1782 version "/lualibs.zip"))
1783 (file-name (string-append name "-" version ".zip"))
1784 (sha256
1785 (base32
1786 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
1787 (build-system gnu-build-system)
1788 (arguments
1789 `(#:make-flags
1790 (list (string-append "DESTDIR="
1791 (assoc-ref %outputs "out")
1792 "/share/texmf-dist"))
1793 #:phases
1794 (modify-phases %standard-phases
1795 (delete 'configure))))
1796 (native-inputs
1797 `(("texlive-bin" ,texlive-bin)
1798 ("unzip" ,unzip)
1799 ("zip" ,zip)))
1800 (home-page "https://github.com/lualatex/lualibs")
1801 (synopsis "Lua modules for general programming (in the (La)TeX world)")
1802 (description
1803 "Lualibs is a collection of Lua modules useful for general programming.
1804 The bundle is based on Lua modules shipped with ConTeXt, and made available in
1805 this bundle for use independent of ConTeXt.")
1806 ;; GPL version 2 only
1807 (license license:gpl2)))
1808
1809 (define-public texlive-luatex-luaotfload
1810 (package
1811 (name "texlive-luatex-luaotfload")
1812 (version "2.8-fix-2")
1813 ;; The release tarball does not contain all source files.
1814 (source (origin
1815 (method git-fetch)
1816 (uri (git-reference
1817 (url "https://github.com/lualatex/luaotfload.git")
1818 (commit (string-append "v" version))))
1819 (file-name (git-file-name name version))
1820 (sha256
1821 (base32
1822 "0l5l7iq3dxcxl65qaghcpjg27yd9iw1sxa8pnd7xlvlm09dhfdnf"))))
1823 (build-system gnu-build-system)
1824 (arguments
1825 `(#:make-flags
1826 (list (string-append "DESTDIR="
1827 (assoc-ref %outputs "out")
1828 "/share/texmf-dist")
1829 "all")
1830 #:parallel-build? #f ; not supported
1831 #:phases
1832 (modify-phases %standard-phases
1833 (replace 'configure
1834 (lambda* (#:key inputs #:allow-other-keys)
1835 (substitute* "doc/Makefile"
1836 (("rst2man") "rst2man.py")
1837 ;; Don't build the PDF. This requires more of LaTeX.
1838 (("\\$\\(DOCPDF\\)") ""))
1839
1840 (substitute* "Makefile"
1841 ;; We don't build the PDF, so don't attempt to install it.
1842 (("cp \\$\\(RESOURCES\\) \\$\\(DOCPDF\\)")
1843 "cp $(RESOURCES)")
1844 (("= \\$\\(DOCPDF\\)") "= ")
1845 ;; Fix name of fontloader file
1846 (("^LOADER.*= \\$\\(BUILDDIR\\)/fontloader-\\$\\(shell date \\+%F\\).lua")
1847 "LOADER = $(BUILDDIR)/fontloader.lua"))
1848
1849 (mkdir "build")
1850
1851 ;; Don't download this file.
1852 (copy-file (assoc-ref inputs "glyphlist")
1853 "build/glyphlist.txt")
1854
1855 ;; Don't use git
1856 (let ((notes
1857 `((committer . "Philipp Gesang <phg@phi-gamma.net>")
1858 (description . ,version)
1859 (loader . "fontloader.lua")
1860 (revision . "ad480924393fffa2896156e1a32c22f5c61120dd")
1861 (timestamp . "2019-01-01 00:00:00 +0000"))))
1862 (substitute* "scripts/mkstatus"
1863 (("local notes.*=.*")
1864 (string-append "local notes = {"
1865 (string-join
1866 (map (lambda (entry)
1867 (format "[\"~a\"]=\"~a\","
1868 (symbol->string (car entry))
1869 (cdr entry)))
1870 notes))
1871 "}"))))
1872 #t)))))
1873 (native-inputs
1874 `(("zip" ,zip)
1875 ("unzip" ,unzip)
1876 ("graphviz" ,graphviz)
1877 ("lualatex" ,(texlive-union (list texlive-luatex-lualibs
1878 texlive-context-base)))
1879 ("python-docutils" ,python-docutils)
1880 ("glyphlist"
1881 ,(origin
1882 (method url-fetch)
1883 (uri (string-append "https://raw.githubusercontent.com/adobe-type-tools/"
1884 "agl-aglfn/b2a04cb906f9257cc06a2fe0ad4b3d663bc02136/"
1885 "glyphlist.txt"))
1886 (sha256
1887 (base32 "1s6svfw23rqzdvflv8frgd4xrwvrmsj8szwzqgcd39dp9rpjafjp"))))))
1888 (propagated-inputs
1889 `(("texlive-luatex-lualibs" ,texlive-luatex-lualibs)))
1890 (home-page "https://github.com/lualatex/luaotfload")
1891 (synopsis "OpenType font loader for LuaTeX")
1892 (description
1893 "Luaotfload is an adaptation of the ConTeXt font loading system for the
1894 Plain and LaTeX formats. It allows OpenType fonts to be loaded with font
1895 features accessible using an extended font request syntax while providing
1896 compatibilitywith XeTeX. By indexing metadata in a database it facilitates
1897 loading fonts by their proper names instead of file names.")
1898 ;; GPL version 2 only
1899 (license license:gpl2)))
1900
1901 (define-public texlive-latex-amsmath
1902 (package
1903 (name "texlive-latex-amsmath")
1904 (version (number->string %texlive-revision))
1905 (source (origin
1906 (method svn-fetch)
1907 (uri (texlive-ref "latex" "amsmath"))
1908 (file-name (string-append name "-" version "-checkout"))
1909 (sha256
1910 (base32
1911 "0arvk7gn32mshnfdad5qkgf3i1arxq77k3vq7wnpm4nwnrzclxal"))))
1912 (build-system texlive-build-system)
1913 (arguments '(#:tex-directory "latex/amsmath"))
1914 (home-page "https://www.ctan.org/pkg/amsmath")
1915 (synopsis "AMS mathematical facilities for LaTeX")
1916 (description
1917 "This is the principal package in the AMS-LaTeX distribution. It adapts
1918 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
1919 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
1920 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
1921 symbols), @code{amsopnamsopn} (for operator names) and
1922 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
1923 This package is part of the LaTeX required distribution; however, several
1924 contributed packages add still further to its appeal; examples are
1925 @code{empheqempheq}, which provides functions for decorating and highlighting
1926 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
1927 definitions.")
1928 (license license:lppl1.3c+)))
1929
1930 (define-public texlive-latex-amscls
1931 (package
1932 (name "texlive-latex-amscls")
1933 (version (number->string %texlive-revision))
1934 (source (origin
1935 (method svn-fetch)
1936 (uri (texlive-ref "latex" "amscls"))
1937 (file-name (string-append name "-" version "-checkout"))
1938 (sha256
1939 (base32
1940 "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca"))))
1941 (build-system texlive-build-system)
1942 (arguments
1943 `(#:tex-directory "latex/amscls"))
1944 (home-page "https://www.ctan.org/pkg/amscls")
1945 (synopsis "AMS document classes for LaTeX")
1946 (description
1947 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
1948 articles for the AMS), @code{amsbookamsbook} (for books) and
1949 @code{amsprocamsproc} (for proceedings), together with some supporting
1950 material. The material is made available as part of the AMS-LaTeX
1951 distribution.")
1952 (license license:lppl1.3c+)))
1953
1954 (define-public texlive-latex-babel
1955 (package
1956 (name "texlive-latex-babel")
1957 (version (number->string %texlive-revision))
1958 (source (origin
1959 (method svn-fetch)
1960 (uri (texlive-ref "latex" "babel"))
1961 (file-name (string-append name "-" version "-checkout"))
1962 (sha256
1963 (base32
1964 "0yhlfiz3fjc8jd46f1zrjj4jig48l8rrzh8cmd8ammml8z9a01z6"))))
1965 (build-system texlive-build-system)
1966 (arguments
1967 '(#:tex-directory "generic/babel"
1968 #:phases
1969 (modify-phases %standard-phases
1970 ;; This package tries to produce babel.aux twice but refuses to
1971 ;; overwrite the first one.
1972 (add-before 'build 'fix-ins
1973 (lambda _
1974 (substitute* "babel.ins"
1975 (("askonceonly") "askforoverwritefalse"))
1976 #t)))))
1977 (home-page "https://www.ctan.org/pkg/babel")
1978 (synopsis "Multilingual support for Plain TeX or LaTeX")
1979 (description
1980 "The package manages culturally-determined typographical (and other)
1981 rules, and hyphenation patterns for a wide range of languages. A document may
1982 select a single language to be supported, or it may select several, in which
1983 case the document may switch from one language to another in a variety of
1984 ways. Babel uses contributed configuration files that provide the detail of
1985 what has to be done for each language. Users of XeTeX are advised to use the
1986 polyglossia package rather than Babel.")
1987 (license license:lppl1.3+)))
1988
1989 (define-public texlive-generic-babel-english
1990 (package
1991 (name "texlive-generic-babel-english")
1992 (version (number->string %texlive-revision))
1993 (source (origin
1994 (method svn-fetch)
1995 (uri (texlive-ref "generic" "babel-english"))
1996 (file-name (string-append name "-" version "-checkout"))
1997 (sha256
1998 (base32
1999 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
2000 (build-system texlive-build-system)
2001 (arguments '(#:tex-directory "generic/babel-english"))
2002 (home-page "https://www.ctan.org/pkg/babel-english")
2003 (synopsis "Babel support for English")
2004 (description
2005 "This package provides the language definition file for support of
2006 English in @code{babel}. Care is taken to select British hyphenation patterns
2007 for British English and Australian text, and default (\"american\") patterns
2008 for Canadian and USA text.")
2009 (license license:lppl1.3+)))
2010
2011 (define-public texlive-generic-babel-german
2012 (package
2013 (name "texlive-generic-babel-german")
2014 (version (number->string %texlive-revision))
2015 (source (origin
2016 (method svn-fetch)
2017 (uri (texlive-ref "generic" "babel-german"))
2018 (file-name (string-append name "-" version "-checkout"))
2019 (sha256
2020 (base32
2021 "0h47s67gnhdaxfgbf8pirp5vw4z6rrhxl8zav803yjxka0096i3y"))))
2022 (build-system texlive-build-system)
2023 (arguments '(#:tex-directory "generic/babel-german"))
2024 (home-page "https://www.ctan.org/pkg/babel-german")
2025 (synopsis "Babel support for German")
2026 (description
2027 "This package provides the language definition file for support of German
2028 in @code{babel}. It provides all the necessary macros, definitions and
2029 settings to typeset German documents. The bundle includes support for the
2030 traditional and reformed German orthography as well as for the Austrian and
2031 Swiss varieties of German.")
2032 (license license:lppl1.3+)))
2033
2034 (define-public texlive-latex-cyrillic
2035 (package
2036 (name "texlive-latex-cyrillic")
2037 (version (number->string %texlive-revision))
2038 (source (origin
2039 (method svn-fetch)
2040 (uri (texlive-ref "latex" "cyrillic"))
2041 (file-name (string-append name "-" version "-checkout"))
2042 (sha256
2043 (base32
2044 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
2045 (build-system texlive-build-system)
2046 (arguments
2047 '(#:tex-directory "latex/cyrillic"))
2048 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
2049 (synopsis "Support for Cyrillic fonts in LaTeX")
2050 (description
2051 "This bundle of macros files provides macro support (including font
2052 encoding macros) for the use of Cyrillic characters in fonts encoded under the
2053 T2* and X2 encodings. These encodings cover (between them) pretty much every
2054 language that is written in a Cyrillic alphabet.")
2055 (license license:lppl1.3c+)))
2056
2057 (define-public texlive-latex-psnfss
2058 (package
2059 (name "texlive-latex-psnfss")
2060 (version (number->string %texlive-revision))
2061 (source (origin
2062 (method svn-fetch)
2063 (uri (texlive-ref "latex" "psnfss"))
2064 (file-name (string-append name "-" version "-checkout"))
2065 (sha256
2066 (base32
2067 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
2068 (build-system texlive-build-system)
2069 (arguments '(#:tex-directory "latex/psnfss"))
2070 (home-page "https://www.ctan.org/pkg/psnfss")
2071 (synopsis "Font support for common PostScript fonts")
2072 (description
2073 "The PSNFSS collection includes a set of files that provide a complete
2074 working setup of the LaTeX font selection scheme (NFSS2) for use with common
2075 PostScript fonts. It covers the so-called \"Base\" fonts (which are built
2076 into any Level 2 PostScript printing device and the Ghostscript interpreter)
2077 and a number of free fonts. It provides font definition files, macros and
2078 font metrics. The bundle as a whole is part of the LaTeX required set of
2079 packages.")
2080 (license license:lppl1.2+)))
2081
2082 ;; For user profiles
2083 (define-public texlive-base
2084 (let ((default-packages
2085 (list texlive-bin
2086 texlive-dvips
2087 texlive-fontname
2088 texlive-fonts-cm
2089 texlive-fonts-latex
2090 texlive-metafont-base
2091 texlive-latex-base
2092 ;; LaTeX packages from the "required" set.
2093 texlive-latex-amsmath
2094 texlive-latex-amscls
2095 texlive-latex-babel
2096 texlive-generic-babel-english
2097 texlive-latex-cyrillic
2098 texlive-latex-graphics
2099 texlive-latex-psnfss
2100 texlive-latex-tools)))
2101 (package
2102 (name "texlive-base")
2103 (version (number->string %texlive-revision))
2104 (source #f)
2105 (build-system trivial-build-system)
2106 (arguments
2107 '(#:builder
2108 (begin (mkdir (assoc-ref %outputs "out")))))
2109 (propagated-inputs
2110 (map (lambda (package)
2111 (list (package-name package) package))
2112 default-packages))
2113 (home-page (package-home-page texlive-bin))
2114 (synopsis "TeX Live base packages")
2115 (description "This is a very limited subset of the TeX Live distribution.
2116 It includes little more than the required set of LaTeX packages.")
2117 (license (fold (lambda (package result)
2118 (match (package-license package)
2119 ((lst ...)
2120 (append lst result))
2121 ((? license:license? license)
2122 (cons license result))))
2123 '()
2124 default-packages)))))
2125
2126 ;; For use in package definitions only
2127 (define-public texlive-union
2128 (lambda* (#:optional (packages '()))
2129 "Return 'texlive-union' package which is a union of PACKAGES and the
2130 standard LaTeX packages."
2131 (let ((default-packages (match (package-propagated-inputs texlive-base)
2132 (((labels packages) ...) packages))))
2133 (package (inherit texlive-base)
2134 (name "texlive-union")
2135 (build-system trivial-build-system)
2136 (arguments
2137 '(#:modules ((guix build union)
2138 (guix build utils)
2139 (guix build texlive-build-system)
2140 (guix build gnu-build-system)
2141 (guix build gremlin)
2142 (guix elf))
2143 #:builder
2144 (begin
2145 (use-modules (ice-9 match)
2146 (srfi srfi-26)
2147 (guix build union)
2148 (guix build utils)
2149 (guix build texlive-build-system))
2150 (let* ((out (assoc-ref %outputs "out"))
2151 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
2152 ;; Build a modifiable union of all inputs (but exclude bash)
2153 (match (filter (match-lambda
2154 ((name . _)
2155 (not (string=? "bash" name))))
2156 %build-inputs)
2157 (((names . directories) ...)
2158 (union-build (assoc-ref %outputs "out")
2159 directories
2160 #:create-all-directories? #t
2161 #:log-port (%make-void-port "w"))))
2162
2163 ;; The configuration file "texmf.cnf" is provided by the
2164 ;; "texlive-bin" package. We take it and override only the
2165 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
2166 ;; by default, though, so we still need to set TEXMFCNF.
2167 (substitute* texmf.cnf
2168 (("^TEXMFROOT = .*")
2169 (string-append "TEXMFROOT = " out "/share\n"))
2170 (("^TEXMF = .*")
2171 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
2172 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash")
2173 "/bin"))
2174 (for-each
2175 (cut wrap-program <>
2176 `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf)))
2177 `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist"))))
2178 (find-files (string-append out "/bin") ".*"))
2179 #t))))
2180 (inputs
2181 `(("bash" ,bash)
2182 ,@(map (lambda (package)
2183 (list (package-name package) package))
2184 (append default-packages packages))))
2185 (home-page (package-home-page texlive-bin))
2186 (synopsis "Union of TeX Live packages")
2187 (description "This package provides a subset of the TeX Live
2188 distribution.")
2189 (license (fold (lambda (package result)
2190 (match (package-license package)
2191 ((lst ...)
2192 (append lst result))
2193 ((? license:license? license)
2194 (cons license result))))
2195 '()
2196 (append default-packages packages)))))))
2197
2198 ;; For use in package definitions only
2199 (define-public texlive-tiny
2200 (package
2201 (inherit (texlive-union))
2202 (name "texlive-tiny")
2203 (description "This is a very limited subset of the TeX Live distribution.
2204 It includes little more than the required set of LaTeX packages.")))
2205
2206 (define-public texlive-latex-amsrefs
2207 (package
2208 (name "texlive-latex-amsrefs")
2209 (version (number->string %texlive-revision))
2210 (source (origin
2211 (method svn-fetch)
2212 (uri (texlive-ref "latex" "amsrefs"))
2213 (file-name (string-append name "-" version "-checkout"))
2214 (sha256
2215 (base32
2216 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
2217 (build-system texlive-build-system)
2218 (arguments '(#:tex-directory "latex/amsrefs"))
2219 (home-page "https://www.ctan.org/pkg/amsrefs")
2220 (synopsis "LaTeX-based replacement for BibTeX")
2221 (description
2222 "Amsrefs is a LaTeX package for bibliographies that provides an archival
2223 data format similar to the format of BibTeX database files, but adapted to
2224 make direct processing by LaTeX easier. The package can be used either in
2225 conjunction with BibTeX or as a replacement for BibTeX.")
2226 (license license:lppl1.3+)))
2227
2228 (define-public texlive-latex-bigfoot
2229 (package
2230 (name "texlive-latex-bigfoot")
2231 (version (number->string %texlive-revision))
2232 (source (origin
2233 (method svn-fetch)
2234 (uri (texlive-ref "latex" "bigfoot"))
2235 (file-name (string-append name "-" version "-checkout"))
2236 (sha256
2237 (base32
2238 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
2239 (build-system texlive-build-system)
2240 (arguments
2241 '(#:tex-directory "latex/bigfoot"
2242 #:phases
2243 (modify-phases %standard-phases
2244 (add-after 'unpack 'remove-generated-file
2245 (lambda _
2246 (for-each delete-file (find-files "." "\\.drv$"))
2247 #t)))))
2248 (home-page "https://www.ctan.org/pkg/bigfoot")
2249 (synopsis "Footnotes for critical editions")
2250 (description
2251 "This package aims to provide a one-stop solution to requirements for
2252 footnotes. It offers: Multiple footnote apparatus superior to that of
2253 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
2254 into a single paragraph (this choice may be selected per footnote series);
2255 Things you might have expected (such as @code{\\verb}-like material in
2256 footnotes, and color selections over page breaks) now work. Note that the
2257 majority of the bigfoot package's interface is identical to that of
2258 @code{manyfoot}; users should seek information from that package's
2259 documentation. The bigfoot bundle also provides the @code{perpage} and
2260 @code{suffix} packages.")
2261 (license license:gpl2+)))
2262
2263 (define-public texlive-latex-blindtext
2264 (package
2265 (name "texlive-latex-blindtext")
2266 (version (number->string %texlive-revision))
2267 (source (origin
2268 (method svn-fetch)
2269 (uri (texlive-ref "latex" "blindtext"))
2270 (file-name (string-append name "-" version "-checkout"))
2271 (sha256
2272 (base32
2273 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
2274 (build-system texlive-build-system)
2275 (arguments '(#:tex-directory "latex/blindtext"))
2276 (home-page "https://www.ctan.org/pkg/blindtext")
2277 (synopsis "Producing 'blind' text for testing")
2278 (description
2279 "The package provides the commands @code{\\blindtext} and
2280 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
2281 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
2282 an entire random document with sections, lists, mathematics, etc. The package
2283 supports three languages, @code{english}, @code{(n)german} and @code{latin};
2284 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
2285 ipsum\" text, see the @code{lipsum} package).")
2286 (license license:lppl)))
2287
2288 (define-public texlive-latex-dinbrief
2289 (package
2290 (name "texlive-latex-dinbrief")
2291 (version (number->string %texlive-revision))
2292 (source (origin
2293 (method svn-fetch)
2294 (uri (texlive-ref "latex" "dinbrief"))
2295 (file-name (string-append name "-" version "-checkout"))
2296 (sha256
2297 (base32
2298 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
2299 (build-system texlive-build-system)
2300 (arguments
2301 '(#:tex-directory "latex/dinbrief"
2302 #:phases
2303 (modify-phases %standard-phases
2304 (add-after 'unpack 'remove-generated-file
2305 (lambda _
2306 (delete-file "dinbrief.drv")
2307 #t))
2308 (add-after 'unpack 'fix-encoding-error
2309 (lambda _
2310 (with-fluids ((%default-port-encoding "ISO-8859-1"))
2311 (substitute* "dinbrief.dtx"
2312 (("zur Verf.+ung. In der Pr\"aambel")
2313 "zur Verf\"ung. In der Pr\"aambel")))
2314 #t)))))
2315 (home-page "https://www.ctan.org/pkg/dinbrief")
2316 (synopsis "German letter DIN style")
2317 (description
2318 "This package implements a document layout for writing letters according
2319 to the rules of DIN (Deutsches Institut für Normung, German standardisation
2320 institute). A style file for LaTeX 2.09 (with limited support of the
2321 features) is part of the package. Since the letter layout is based on a
2322 German standard, the user guide is written in German, but most macros have
2323 English names from which the user can recognize what they are used for. In
2324 addition there are example files showing how letters may be created with the
2325 package.")
2326 (license license:lppl)))
2327
2328 (define-public texlive-latex-draftwatermark
2329 (package
2330 (name "texlive-latex-draftwatermark")
2331 (version (number->string %texlive-revision))
2332 (source (origin
2333 (method svn-fetch)
2334 (uri (texlive-ref "latex" "draftwatermark"))
2335 (file-name (string-append name "-" version "-checkout"))
2336 (sha256
2337 (base32
2338 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
2339 (build-system texlive-build-system)
2340 (arguments '(#:tex-directory "latex/draftwatermark"))
2341 (home-page "https://www.ctan.org/pkg/draftwatermark")
2342 (synopsis "Put a grey textual watermark on document pages")
2343 (description
2344 "This package provides a means to add a textual, light grey watermark on
2345 every page or on the first page of a document. Typical usage may consist in
2346 writing words such as DRAFT or CONFIDENTIAL across document pages. The
2347 package performs a similar function to that of @code{draftcopy}, but its
2348 implementation is output device independent, and made very simple by relying
2349 on everypage.")
2350 (license license:lppl1.3+)))
2351
2352 (define-public texlive-latex-environ
2353 (package
2354 (name "texlive-latex-environ")
2355 (version (number->string %texlive-revision))
2356 (source (origin
2357 (method svn-fetch)
2358 (uri (texlive-ref "latex" "environ"))
2359 (file-name (string-append name "-" version "-checkout"))
2360 (sha256
2361 (base32
2362 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
2363 (build-system texlive-build-system)
2364 (arguments '(#:tex-directory "latex/environ"))
2365 (home-page "https://www.ctan.org/pkg/environ")
2366 (synopsis "New interface for environments in LaTeX")
2367 (description
2368 "This package provides the @code{\\collect@@body} command (as in
2369 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
2370 for collecting the body text of an environment. These commands are used to
2371 define a new author interface to creating new environments.")
2372 (license license:lppl)))
2373
2374 (define-public texlive-latex-eqparbox
2375 (package
2376 (name "texlive-latex-eqparbox")
2377 (version (number->string %texlive-revision))
2378 (source (origin
2379 (method svn-fetch)
2380 (uri (texlive-ref "latex" "eqparbox"))
2381 (file-name (string-append name "-" version "-checkout"))
2382 (sha256
2383 (base32
2384 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
2385 (build-system texlive-build-system)
2386 (arguments '(#:tex-directory "latex/eqparbox"))
2387 (home-page "https://www.ctan.org/pkg/eqparbox")
2388 (synopsis "Create equal-widthed parboxes")
2389 (description
2390 "LaTeX users sometimes need to ensure that two or more blocks of text
2391 occupy the same amount of horizontal space on the page. To that end, the
2392 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
2393 just like @code{\\parbox}, except that instead of specifying a width, one
2394 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
2395 where they are in the document---will stretch to fit the widest
2396 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
2397 for a variety of alignment purposes, as is evidenced by the examples in
2398 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
2399 also provided.")
2400 (license license:lppl1.3+)))
2401
2402 (define-public texlive-latex-expdlist
2403 (package
2404 (name "texlive-latex-expdlist")
2405 (version (number->string %texlive-revision))
2406 (source (origin
2407 (method svn-fetch)
2408 (uri (texlive-ref "latex" "expdlist"))
2409 (file-name (string-append name "-" version "-checkout"))
2410 (sha256
2411 (base32
2412 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
2413 (build-system texlive-build-system)
2414 (arguments
2415 '(#:tex-directory "latex/expdlist"
2416 #:phases
2417 (modify-phases %standard-phases
2418 (add-after 'unpack 'remove-generated-file
2419 (lambda _
2420 (for-each delete-file
2421 (find-files "." "\\.drv$"))
2422 #t)))))
2423 (home-page "https://www.ctan.org/pkg/expdlist")
2424 (synopsis "Expanded description environments")
2425 (description
2426 "The package provides additional features for the LaTeX
2427 @code{description} environment, including adjustable left margin. The package
2428 also allows the user to \"break\" a list (for example, to interpose a comment)
2429 without affecting the structure of the list (this works for @code{itemize} and
2430 @code{enumerate} lists, and numbered lists remain in sequence).")
2431 (license license:lppl)))
2432
2433 (define-public texlive-latex-filemod
2434 (package
2435 (name "texlive-latex-filemod")
2436 (version (number->string %texlive-revision))
2437 (source (origin
2438 (method svn-fetch)
2439 (uri (svn-reference
2440 (url (string-append "svn://www.tug.org/texlive/tags/"
2441 %texlive-tag "/Master/texmf-dist/"
2442 "/tex/latex/filemod"))
2443 (revision %texlive-revision)))
2444 (file-name (string-append name "-" version "-checkout"))
2445 (sha256
2446 (base32
2447 "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
2448 (build-system trivial-build-system)
2449 (arguments
2450 `(#:modules ((guix build utils))
2451 #:builder
2452 (begin
2453 (use-modules (guix build utils))
2454 (let ((target (string-append (assoc-ref %outputs "out")
2455 "/share/texmf-dist/tex/latex/filemod")))
2456 (mkdir-p target)
2457 (copy-recursively (assoc-ref %build-inputs "source") target)
2458 #t))))
2459 (home-page "https://www.ctan.org/pkg/filemod")
2460 (synopsis "Provide file modification times, and compare them")
2461 (description
2462 "This package provides macros to read and compare the modification dates
2463 of files. The files may be @code{.tex} files, images or other files (as long
2464 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
2465 of pdfLaTeX to find the file modification date as PDF date string, parses the
2466 string and returns the value to the user. The package will also work for DVI
2467 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
2468 mode. The functionality is provided by purely expandable macros or by faster
2469 but non-expandable ones.")
2470 (license license:lppl1.3+)))
2471
2472 (define-public texlive-latex-ifplatform
2473 (package
2474 (name "texlive-latex-ifplatform")
2475 (version (number->string %texlive-revision))
2476 (source (origin
2477 (method svn-fetch)
2478 (uri (texlive-ref "latex" "ifplatform"))
2479 (file-name (string-append name "-" version "-checkout"))
2480 (sha256
2481 (base32
2482 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
2483 (build-system texlive-build-system)
2484 (arguments '(#:tex-directory "latex/ifplatform"))
2485 (home-page "https://www.ctan.org/pkg/ifplatform")
2486 (synopsis "Conditionals to test which platform is being used")
2487 (description
2488 "This package uses the (La)TeX extension @code{-shell-escape} to
2489 establish whether the document is being processed on a Windows or on a
2490 Unix-like system, or on Cygwin (Unix environment over a Windows system).
2491 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
2492 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
2493 on a Unix-like system, which may be used to distinguish between various
2494 classes of systems.")
2495 (license license:lppl)))
2496
2497 (define-public texlive-latex-natbib
2498 (package
2499 (name "texlive-latex-natbib")
2500 (version (number->string %texlive-revision))
2501 (source (origin
2502 (method svn-fetch)
2503 (uri (texlive-ref "latex" "natbib"))
2504 (file-name (string-append name "-" version "-checkout"))
2505 (sha256
2506 (base32
2507 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
2508 (build-system texlive-build-system)
2509 (arguments '(#:tex-directory "latex/natbib"))
2510 (home-page "https://www.ctan.org/pkg/natbib")
2511 (synopsis "Flexible bibliography support")
2512 (description
2513 "This bundle provides a package that implements both author-year and
2514 numbered references, as well as much detailed of support for other
2515 bibliography use. Also provided are versions of the standard BibTeX styles
2516 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
2517 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
2518 designed from the start to be compatible with @code{natbib}.")
2519 (license license:lppl)))
2520
2521 (define-public texlive-latex-psfrag
2522 (package
2523 (name "texlive-latex-psfrag")
2524 (version (number->string %texlive-revision))
2525 (source (origin
2526 (method svn-fetch)
2527 (uri (texlive-ref "latex" "psfrag"))
2528 (file-name (string-append name "-" version "-checkout"))
2529 (sha256
2530 (base32
2531 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
2532 (build-system texlive-build-system)
2533 (arguments '(#:tex-directory "latex/psfrag"))
2534 (home-page "https://www.ctan.org/pkg/psfrag")
2535 (synopsis "Replace strings in encapsulated PostScript figures")
2536 (description
2537 "This package allows LaTeX constructions (equations, picture
2538 environments, etc.) to be precisely superimposed over Encapsulated PostScript
2539 figures, using your own favorite drawing tool to create an EPS figure and
2540 placing simple text \"tags\" where each replacement is to be placed, with
2541 PSfrag automatically removing these tags from the figure and replacing them
2542 with a user specified LaTeX construction, properly aligned, scaled, and/or
2543 rotated.")
2544 (license (license:fsf-free "file://psfrag.dtx"))))
2545
2546 (define-public texlive-latex-xkeyval
2547 (package
2548 (name "texlive-latex-xkeyval")
2549 (version (number->string %texlive-revision))
2550 (source (origin
2551 (method svn-fetch)
2552 (uri (texlive-ref "latex" "xkeyval"))
2553 (file-name (string-append name "-" version "-checkout"))
2554 (sha256
2555 (base32
2556 "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp"))))
2557 (build-system texlive-build-system)
2558 (arguments '(#:tex-directory "latex/xkeyval"))
2559 (home-page "https://www.ctan.org/pkg/xkeyval")
2560 (synopsis "Macros for defining and setting keys")
2561 (description
2562 "This package is an extension of the @code{keyval} package and offers
2563 more flexible macros for defining and setting keys. The package provides a
2564 pointer and a preset system. Furthermore, it supplies macros to allow class
2565 and package options to contain options of the @code{key=value} form. A LaTeX
2566 kernel patch is provided to avoid premature expansions of macros in class or
2567 package options. A specialized system for setting @code{PSTricks} keys is
2568 provided by the @code{pst-xkey} package.")
2569 (license license:lppl1.3+)))
2570
2571 (define-public texlive-latex-pstool
2572 (package
2573 (name "texlive-latex-pstool")
2574 (version (number->string %texlive-revision))
2575 (source (origin
2576 (method svn-fetch)
2577 (uri (svn-reference
2578 (url (string-append "svn://www.tug.org/texlive/tags/"
2579 %texlive-tag "/Master/texmf-dist/"
2580 "/tex/latex/pstool"))
2581 (revision %texlive-revision)))
2582 (file-name (string-append name "-" version "-checkout"))
2583 (sha256
2584 (base32
2585 "1h816jain8c9nky75kk8pmmwj5b4yf9dpqvdvi2l6jhfj5iqkzr8"))))
2586 (build-system trivial-build-system)
2587 (arguments
2588 `(#:modules ((guix build utils))
2589 #:builder
2590 (begin
2591 (use-modules (guix build utils))
2592 (let ((target (string-append (assoc-ref %outputs "out")
2593 "/share/texmf-dist/tex/latex/pstool")))
2594 (mkdir-p target)
2595 (copy-recursively (assoc-ref %build-inputs "source") target)
2596 #t))))
2597 (propagated-inputs
2598 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix
2599 ("texlive-latex-filemod" ,texlive-latex-filemod)
2600 ("texlive-latex-graphics" ,texlive-latex-graphics)
2601 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
2602 ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3
2603 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
2604 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
2605 ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc
2606 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)
2607 ("texlive-latex-xkeyval" ,texlive-latex-xkeyval)))
2608 (home-page "https://www.ctan.org/pkg/pstool")
2609 (synopsis "Process PostScript graphics within pdfLaTeX documents")
2610 (description
2611 "This is a package for processing PostScript graphics with @code{psfrag}
2612 labels within pdfLaTeX documents. Every graphic is compiled individually,
2613 drastically speeding up compilation time when only a single figure needs
2614 re-processing.")
2615 (license license:lppl)))
2616
2617 (define-public texlive-latex-seminar
2618 (package
2619 (name "texlive-latex-seminar")
2620 (version (number->string %texlive-revision))
2621 (source (origin
2622 (method svn-fetch)
2623 (uri (svn-reference
2624 (url (string-append "svn://www.tug.org/texlive/tags/"
2625 %texlive-tag "/Master/texmf-dist/"
2626 "/tex/latex/seminar"))
2627 (revision %texlive-revision)))
2628 (file-name (string-append name "-" version "-checkout"))
2629 (sha256
2630 (base32
2631 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
2632 (build-system texlive-build-system)
2633 (arguments '(#:tex-directory "latex/seminar"))
2634 (home-page "https://www.ctan.org/pkg/seminar")
2635 (synopsis "Make overhead slides")
2636 ;; TODO: This package may need fancybox and xcomment at runtime.
2637 (description
2638 "This package provides a class that produces overhead
2639 slides (transparencies), with many facilities. Seminar is not nowadays
2640 reckoned a good basis for a presentation — users are advised to use more
2641 recent classes such as powerdot or beamer, both of which are tuned to
2642 21st-century presentation styles.")
2643 (license license:lppl1.2+)))
2644
2645 (define-public texlive-latex-trimspaces
2646 (package
2647 (name "texlive-latex-trimspaces")
2648 (version (number->string %texlive-revision))
2649 (source (origin
2650 (method svn-fetch)
2651 (uri (texlive-ref "latex" "trimspaces"))
2652 (file-name (string-append name "-" version "-checkout"))
2653 (sha256
2654 (base32
2655 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
2656 (build-system texlive-build-system)
2657 (arguments
2658 '(#:tex-directory "latex/trimspaces"
2659 #:tex-format "latex"
2660 #:phases
2661 (modify-phases %standard-phases
2662 (add-after 'unpack 'fix-bug
2663 (lambda _
2664 ;; The "ins" file refers to the wrong source file.
2665 (substitute* "trimspaces.ins"
2666 (("pstool.tex") "trimspaces.tex"))
2667 #t)))))
2668 (inputs
2669 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2670 (home-page "https://www.ctan.org/pkg/trimspaces")
2671 (synopsis "Trim spaces around an argument or within a macro")
2672 (description
2673 "This very short package allows you to expandably remove spaces around a
2674 token list (commands are provided to remove spaces before, spaces after, or
2675 both); or to remove surrounding spaces within a macro definition, or to define
2676 space-stripped macros.")
2677 (license license:lppl)))
2678
2679 (define-public texlive-latex-capt-of
2680 (package
2681 (name "texlive-latex-capt-of")
2682 (version (number->string %texlive-revision))
2683 (source (origin
2684 (method svn-fetch)
2685 (uri (svn-reference
2686 (url (string-append "svn://www.tug.org/texlive/tags/"
2687 %texlive-tag "/Master/texmf-dist/"
2688 "/tex/latex/capt-of"))
2689 (revision %texlive-revision)))
2690 (file-name (string-append name "-" version "-checkout"))
2691 (sha256
2692 (base32
2693 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
2694 (build-system trivial-build-system)
2695 (arguments
2696 `(#:modules ((guix build utils))
2697 #:builder
2698 (begin
2699 (use-modules (guix build utils))
2700 (let ((target (string-append (assoc-ref %outputs "out")
2701 "/share/texmf-dist/tex/latex/capt-of")))
2702 (mkdir-p target)
2703 (copy-recursively (assoc-ref %build-inputs "source") target)
2704 #t))))
2705 (home-page "https://www.ctan.org/pkg/capt-of")
2706 (synopsis "Captions on more than floats")
2707 (description
2708 "This package defines a command @code{\\captionof} for putting a caption
2709 to something that's not a float.")
2710 (license license:lppl)))
2711
2712 (define-public texlive-latex-doi
2713 (package
2714 (name "texlive-latex-doi")
2715 (version (number->string %texlive-revision))
2716 (source (origin
2717 (method svn-fetch)
2718 (uri (svn-reference
2719 (url (string-append "svn://www.tug.org/texlive/tags/"
2720 %texlive-tag "/Master/texmf-dist/"
2721 "/tex/latex/doi"))
2722 (revision %texlive-revision)))
2723 (file-name (string-append name "-" version "-checkout"))
2724 (sha256
2725 (base32
2726 "0378rdmrgr2lzbfi4qqy4dfpj5im20diyd8z8b9m4mlg05r7wgnb"))))
2727 (build-system trivial-build-system)
2728 (arguments
2729 `(#:modules ((guix build utils))
2730 #:builder
2731 (begin
2732 (use-modules (guix build utils))
2733 (let ((target (string-append (assoc-ref %outputs "out")
2734 "/share/texmf-dist/tex/latex/doi")))
2735 (mkdir-p target)
2736 (copy-recursively (assoc-ref %build-inputs "source") target)
2737 #t))))
2738 (home-page "https://www.ctan.org/pkg/doi")
2739 (synopsis "Create correct hyperlinks for DOI numbers")
2740 (description
2741 "You can hyperlink DOI numbers to doi.org. However, some publishers have
2742 elected to use nasty characters in their DOI numbering scheme (@code{<},
2743 @code{>}, @code{_} and @code{;} have all been spotted). This will either
2744 upset LaTeX, or your PDF reader. This package contains a single user-level
2745 command @code{\\doi{}}, which takes a DOI number, and creates a correct
2746 hyperlink to the target of the DOI.")
2747 ;; Any version of the LPPL.
2748 (license license:lppl1.3+)))
2749
2750 (define-public texlive-latex-etoolbox
2751 (package
2752 (name "texlive-latex-etoolbox")
2753 (version (number->string %texlive-revision))
2754 (source (origin
2755 (method svn-fetch)
2756 (uri (svn-reference
2757 (url (string-append "svn://www.tug.org/texlive/tags/"
2758 %texlive-tag "/Master/texmf-dist/"
2759 "/tex/latex/etoolbox"))
2760 (revision %texlive-revision)))
2761 (file-name (string-append name "-" version "-checkout"))
2762 (sha256
2763 (base32
2764 "1agmq6bf8wzcd77n20ng8bl4kh69cg5f6sjniii7bcw4llhd3nc8"))))
2765 (build-system trivial-build-system)
2766 (arguments
2767 `(#:modules ((guix build utils))
2768 #:builder
2769 (begin
2770 (use-modules (guix build utils))
2771 (let ((target (string-append (assoc-ref %outputs "out")
2772 "/share/texmf-dist/tex/latex/etoolbox")))
2773 (mkdir-p target)
2774 (copy-recursively (assoc-ref %build-inputs "source") target)
2775 #t))))
2776 (home-page "https://www.ctan.org/pkg/etoolbox")
2777 (synopsis "e-TeX tools for LaTeX")
2778 (description
2779 "This package is a toolbox of programming facilities geared primarily
2780 towards LaTeX class and package authors. It provides LaTeX frontends to some
2781 of the new primitives provided by e-TeX as well as some generic tools which
2782 are not strictly related to e-TeX but match the profile of this package. The
2783 package provides functions that seem to offer alternative ways of implementing
2784 some LaTeX kernel commands; nevertheless, the package will not modify any part
2785 of the LaTeX kernel.")
2786 (license license:lppl1.3+)))
2787
2788 (define-public texlive-latex-fncychap
2789 (package
2790 (name "texlive-latex-fncychap")
2791 (version (number->string %texlive-revision))
2792 (source (origin
2793 (method svn-fetch)
2794 (uri (svn-reference
2795 (url (string-append "svn://www.tug.org/texlive/tags/"
2796 %texlive-tag "/Master/texmf-dist/"
2797 "/tex/latex/fncychap"))
2798 (revision %texlive-revision)))
2799 (file-name (string-append name "-" version "-checkout"))
2800 (sha256
2801 (base32
2802 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
2803 (build-system trivial-build-system)
2804 (arguments
2805 `(#:modules ((guix build utils))
2806 #:builder
2807 (begin
2808 (use-modules (guix build utils))
2809 (let ((target (string-append (assoc-ref %outputs "out")
2810 "/share/texmf-dist/tex/latex/fncychap")))
2811 (mkdir-p target)
2812 (copy-recursively (assoc-ref %build-inputs "source") target)
2813 #t))))
2814 (home-page "https://www.ctan.org/pkg/fncychap")
2815 (synopsis "Seven predefined chapter heading styles")
2816 (description
2817 "This package provides seven predefined chapter heading styles. Each
2818 style can be modified using a set of simple commands. Optionally one can
2819 modify the formatting routines in order to create additional chapter
2820 headings.")
2821 (license license:lppl1.3+)))
2822
2823 (define-public texlive-latex-framed
2824 (package
2825 (name "texlive-latex-framed")
2826 (version (number->string %texlive-revision))
2827 (source (origin
2828 (method svn-fetch)
2829 (uri (svn-reference
2830 (url (string-append "svn://www.tug.org/texlive/tags/"
2831 %texlive-tag "/Master/texmf-dist/"
2832 "/tex/latex/framed"))
2833 (revision %texlive-revision)))
2834 (file-name (string-append name "-" version "-checkout"))
2835 (sha256
2836 (base32
2837 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
2838 (build-system trivial-build-system)
2839 (arguments
2840 `(#:modules ((guix build utils))
2841 #:builder
2842 (begin
2843 (use-modules (guix build utils))
2844 (let ((target (string-append (assoc-ref %outputs "out")
2845 "/share/texmf-dist/tex/latex/framed")))
2846 (mkdir-p target)
2847 (copy-recursively (assoc-ref %build-inputs "source") target)
2848 #t))))
2849 (home-page "https://www.ctan.org/pkg/framed")
2850 (synopsis "Framed or shaded regions that can break across pages")
2851 (description
2852 "The package creates three environments: @code{framed}, which puts an
2853 ordinary frame box around the region, @code{shaded}, which shades the region,
2854 and @code{leftbar}, which places a line at the left side. The environments
2855 allow a break at their start (the @code{\\FrameCommand} enables creation of a
2856 title that is “attached” to the environment); breaks are also allowed in the
2857 course of the framed/shaded matter. There is also a command
2858 @code{\\MakeFramed} to make your own framed-style environments.")
2859 ;; The header states: "These macros may be freely transmitted, reproduced,
2860 ;; or modified for any purpose provided that this notice is left intact."
2861 (license (license:fsf-free "file://framed.sty"))))
2862
2863 (define-public texlive-latex-g-brief
2864 (package
2865 (name "texlive-latex-g-brief")
2866 (version (number->string %texlive-revision))
2867 (source (origin
2868 (method svn-fetch)
2869 (uri (texlive-ref "latex" "g-brief"))
2870 (file-name (string-append name "-" version "-checkout"))
2871 (sha256
2872 (base32
2873 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
2874 (build-system texlive-build-system)
2875 (arguments
2876 '(#:tex-directory "latex/g-brief"
2877 #:phases
2878 (modify-phases %standard-phases
2879 (add-after 'unpack 'remove-generated-file
2880 (lambda _
2881 (delete-file "g-brief.drv")
2882 #t)))))
2883 (home-page "https://www.ctan.org/pkg/g-brief")
2884 (synopsis "Letter document class")
2885 (description
2886 "This package is designed for formatting formless letters in German; it
2887 can also be used for English (by those who can read the documentation). There
2888 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
2889 \"old\" and a \"new\" version of g-brief.")
2890 (license license:lppl)))
2891
2892 (define-public texlive-latex-galois
2893 (package
2894 (name "texlive-latex-galois")
2895 (version (number->string %texlive-revision))
2896 (source (origin
2897 (method svn-fetch)
2898 (uri (texlive-ref "latex" "galois"))
2899 (file-name (string-append name "-" version "-checkout"))
2900 (sha256
2901 (base32
2902 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
2903 (build-system texlive-build-system)
2904 (arguments '(#:tex-directory "latex/galois"))
2905 (home-page "https://www.ctan.org/pkg/galois")
2906 (synopsis "Typeset Galois connections")
2907 (description
2908 "The package deals with connections in two-dimensional style, optionally
2909 in colour.")
2910 (license license:lppl)))
2911
2912 (define-public texlive-latex-gcite
2913 (package
2914 (name "texlive-latex-gcite")
2915 (version (number->string %texlive-revision))
2916 (source (origin
2917 (method svn-fetch)
2918 (uri (texlive-ref "latex" "gcite"))
2919 (file-name (string-append name "-" version "-checkout"))
2920 (sha256
2921 (base32
2922 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
2923 (build-system texlive-build-system)
2924 (arguments '(#:tex-directory "latex/gcite"))
2925 (home-page "https://www.ctan.org/pkg/gcite")
2926 (synopsis "Citations in a reader-friendly style")
2927 (description
2928 "The package allows citations in the German style, which is considered by
2929 many to be particularly reader-friendly. The citation provides a small amount
2930 of bibliographic information in a footnote on the page where each citation is
2931 made. It combines a desire to eliminate unnecessary page-turning with the
2932 look-up efficiency afforded by numeric citations. The package makes use of
2933 BibLaTeX, and is considered experimental.")
2934 (license license:lppl1.3+)))
2935
2936 (define-public texlive-latex-geometry
2937 (package
2938 (name "texlive-latex-geometry")
2939 (version (number->string %texlive-revision))
2940 (source (origin
2941 (method svn-fetch)
2942 (uri (texlive-ref "latex" "geometry"))
2943 (file-name (string-append name "-" version "-checkout"))
2944 (sha256
2945 (base32
2946 "0yw6bjfgsli3s1dldsgb7mkr7lnk329cgdjbgs8z2xn59pmmdsn4"))))
2947 (build-system texlive-build-system)
2948 (arguments '(#:tex-directory "latex/geometry"))
2949 (home-page "https://www.ctan.org/pkg/geometry")
2950 (synopsis "Flexible and complete interface to document dimensions")
2951 (description
2952 "This package provides an easy and flexible user interface to customize
2953 page layout, implementing auto-centering and auto-balancing mechanisms so that
2954 the users have only to give the least description for the page layout. The
2955 package knows about all the standard paper sizes, so that the user need not
2956 know what the nominal \"real\" dimensions of the paper are, just its standard
2957 name (such as a4, letter, etc.). An important feature is the package's
2958 ability to communicate the paper size it's set up to the output.")
2959 (license license:lppl)))
2960
2961 (define-public texlive-latex-mdwtools
2962 (package
2963 (name "texlive-latex-mdwtools")
2964 (version (number->string %texlive-revision))
2965 (source (origin
2966 (method svn-fetch)
2967 (uri (texlive-ref "latex" "mdwtools"))
2968 (file-name (string-append name "-" version "-checkout"))
2969 (sha256
2970 (base32
2971 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
2972 (build-system texlive-build-system)
2973 (arguments '(#:tex-directory "latex/mdwtools"))
2974 (home-page "https://www.ctan.org/pkg/mdwtools")
2975 (synopsis "Miscellaneous tools by Mark Wooding")
2976 (description
2977 "This collection of tools includes: @code{atsupport} for short commands
2978 starting with @code{@@}, macros to sanitize the OT1 encoding of the
2979 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
2980 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
2981 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
2982 array environments; verbatim handling; and syntax diagrams.")
2983 (license license:gpl3+)))
2984
2985 (define-public texlive-latex-polyglossia
2986 (package
2987 (name "texlive-latex-polyglossia")
2988 (version (number->string %texlive-revision))
2989 (source (origin
2990 (method svn-fetch)
2991 (uri (texlive-ref "latex" "polyglossia"))
2992 (file-name (string-append name "-" version "-checkout"))
2993 (sha256
2994 (base32
2995 "03ma58z3ypsbp7zgkzb1ylpn2ygr27cxzkf042ns0rif4g8s491f"))))
2996 (build-system texlive-build-system)
2997 (arguments '(#:tex-directory "latex/polyglossia"))
2998 (home-page "https://www.ctan.org/pkg/polyglossia")
2999 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
3000 (description
3001 "This package provides a complete Babel replacement for users of LuaLaTeX
3002 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
3003 (license license:lppl1.3+)))
3004
3005 (define-public texlive-latex-supertabular
3006 (package
3007 (name "texlive-latex-supertabular")
3008 (version (number->string %texlive-revision))
3009 (source (origin
3010 (method svn-fetch)
3011 (uri (texlive-ref "latex" "supertabular"))
3012 (file-name (string-append name "-" version "-checkout"))
3013 (sha256
3014 (base32
3015 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
3016 (build-system texlive-build-system)
3017 (arguments '(#:tex-directory "latex/supertabular"))
3018 (home-page "https://www.ctan.org/pkg/supertabular")
3019 (synopsis "Multi-page tables package")
3020 (description
3021 "This package was a predecessor of @code{longtable}; the newer
3022 package (designed on quite different principles) is easier to use and more
3023 flexible, in many cases, but supertabular retains its usefulness in a few
3024 situations where longtable has problems.")
3025 (license license:lppl1.3+)))
3026
3027 (define-public texlive-tex-texinfo
3028 (package
3029 (name "texlive-tex-texinfo")
3030 (version (number->string %texlive-revision))
3031 (source (origin
3032 (method svn-fetch)
3033 (uri (svn-reference
3034 (url (string-append "svn://www.tug.org/texlive/tags/"
3035 %texlive-tag "/Master/texmf-dist/"
3036 "/tex/texinfo"))
3037 (revision %texlive-revision)))
3038 (file-name (string-append name "-" version "-checkout"))
3039 (sha256
3040 (base32
3041 "06cf821y1j7jdg93pb41ayigrfwgn0y49d7w1025zlijjxi6bvjp"))))
3042 (build-system trivial-build-system)
3043 (arguments
3044 `(#:modules ((guix build utils))
3045 #:builder
3046 (begin
3047 (use-modules (guix build utils))
3048 (let ((target (string-append (assoc-ref %outputs "out")
3049 "/share/texmf-dist/tex/texinfo")))
3050 (mkdir-p target)
3051 (copy-recursively (assoc-ref %build-inputs "source") target)
3052 #t))))
3053 (home-page "https://www.ctan.org/pkg/texinfo")
3054 (synopsis "TeX macros to handle Texinfo files")
3055 (description
3056 "Texinfo is the preferred format for documentation in the GNU project;
3057 the format may be used to produce online or printed output from a single
3058 source. The Texinfo macros may be used to produce printable output using TeX;
3059 other programs in the distribution offer online interactive use (with
3060 hypertext linkages in some cases).")
3061 (license license:gpl3+)))
3062
3063 (define-public texlive-latex-upquote
3064 (package
3065 (name "texlive-latex-upquote")
3066 (version (number->string %texlive-revision))
3067 (source (origin
3068 (method svn-fetch)
3069 (uri (texlive-ref "latex" "upquote"))
3070 (file-name (string-append name "-" version "-checkout"))
3071 (sha256
3072 (base32
3073 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
3074 (build-system texlive-build-system)
3075 (arguments '(#:tex-directory "latex/upquote"))
3076 (home-page "https://www.ctan.org/pkg/upquote")
3077 (synopsis "Show \"realistic\" quotes in verbatim")
3078 (description
3079 "Typewriter-style fonts are best for program listings, but Computer
3080 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
3081 single quotes. Other fonts, and most programming languages, print @code{`} as
3082 a grave accent and @code{'} upright; @code{'} is used both to open and to
3083 close quoted strings. The package switches the typewriter font to Computer
3084 Modern Typewriter in OT1 encoding, and modifies the behaviour of
3085 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
3086 in the expected way. It does this regardless of other fonts or encodings in
3087 use, so long as the package is loaded after the other fonts were. The package
3088 does not affect @code{\\tt}, @code{\\texttt}, etc.")
3089 (license license:lppl1.2+)))
3090
3091 (define-public texlive-latex-anysize
3092 (package
3093 (name "texlive-latex-anysize")
3094 (version (number->string %texlive-revision))
3095 (source (origin
3096 (method svn-fetch)
3097 (uri (svn-reference
3098 (url (string-append "svn://www.tug.org/texlive/tags/"
3099 %texlive-tag "/Master/texmf-dist/"
3100 "/tex/latex/anysize"))
3101 (revision %texlive-revision)))
3102 (file-name (string-append name "-" version "-checkout"))
3103 (sha256
3104 (base32
3105 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
3106 (build-system trivial-build-system)
3107 (arguments
3108 `(#:modules ((guix build utils))
3109 #:builder
3110 (begin
3111 (use-modules (guix build utils))
3112 (let ((target (string-append (assoc-ref %outputs "out")
3113 "/share/texmf-dist/tex/latex/anysize")))
3114 (mkdir-p target)
3115 (copy-recursively (assoc-ref %build-inputs "source") target)
3116 #t))))
3117 (home-page "https://www.ctan.org/pkg/anysize")
3118 (synopsis "Simple package to set up document margins")
3119 (description
3120 "This is a simple package to set up document margins. This package is
3121 considered obsolete; alternatives are the @code{typearea} package from the
3122 @code{koma-script} bundle, or the @code{geometry} package.")
3123 (license license:public-domain)))
3124
3125 (define-public texlive-latex-appendix
3126 (package
3127 (name "texlive-latex-appendix")
3128 (version (number->string %texlive-revision))
3129 (source (origin
3130 (method svn-fetch)
3131 (uri (texlive-ref "latex" "appendix"))
3132 (file-name (string-append name "-" version "-checkout"))
3133 (sha256
3134 (base32
3135 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
3136 (build-system texlive-build-system)
3137 (arguments '(#:tex-directory "latex/appendix"))
3138 (home-page "https://www.ctan.org/pkg/appendix")
3139 (synopsis "Extra control of appendices")
3140 (description
3141 "The appendix package provides various ways of formatting the titles of
3142 appendices. Also (sub)appendices environments are provided that can be used,
3143 for example, for per chapter/section appendices. An @code{appendices}
3144 environment is provided which can be used instead of the @code{\\appendix}
3145 command.")
3146 (license license:lppl)))
3147
3148 (define-public texlive-latex-changebar
3149 (package
3150 (name "texlive-latex-changebar")
3151 (version (number->string %texlive-revision))
3152 (source (origin
3153 (method svn-fetch)
3154 (uri (texlive-ref "latex" "changebar"))
3155 (file-name (string-append name "-" version "-checkout"))
3156 (sha256
3157 (base32
3158 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
3159 (build-system texlive-build-system)
3160 (arguments '(#:tex-directory "latex/changebar"))
3161 (home-page "https://www.ctan.org/pkg/changebar")
3162 (synopsis "Generate changebars in LaTeX documents")
3163 (description
3164 "Identify areas of text to be marked with changebars with the
3165 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
3166 package uses 'drivers' to place the bars; the available drivers can work with
3167 @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
3168 drivers, and VTeX and pdfTeX.")
3169 (license license:lppl)))
3170
3171 (define-public texlive-latex-cmap
3172 (package
3173 (name "texlive-latex-cmap")
3174 (version (number->string %texlive-revision))
3175 (source (origin
3176 (method svn-fetch)
3177 (uri (svn-reference
3178 (url (string-append "svn://www.tug.org/texlive/tags/"
3179 %texlive-tag "/Master/texmf-dist/"
3180 "/tex/latex/cmap"))
3181 (revision %texlive-revision)))
3182 (file-name (string-append name "-" version "-checkout"))
3183 (sha256
3184 (base32
3185 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
3186 (build-system trivial-build-system)
3187 (arguments
3188 `(#:modules ((guix build utils))
3189 #:builder
3190 (begin
3191 (use-modules (guix build utils))
3192 (let ((target (string-append (assoc-ref %outputs "out")
3193 "/share/texmf-dist/tex/latex/cmap")))
3194 (mkdir-p target)
3195 (copy-recursively (assoc-ref %build-inputs "source") target)
3196 #t))))
3197 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
3198 Master/texmf-dist/tex/latex/cmap/")
3199 (synopsis "CMap support for PDF files")
3200 (description
3201 "This package embeds CMap tables into PDF files to make search and
3202 copy-and-paste functions work properly.")
3203 (license license:lppl)))
3204
3205 (define-public texlive-latex-colortbl
3206 (package
3207 (name "texlive-latex-colortbl")
3208 (version (number->string %texlive-revision))
3209 (source (origin
3210 (method svn-fetch)
3211 (uri (texlive-ref "latex" "colortbl"))
3212 (file-name (string-append name "-" version "-checkout"))
3213 (sha256
3214 (base32
3215 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
3216 (build-system texlive-build-system)
3217 (arguments '(#:tex-directory "latex/colortbl"))
3218 (home-page "https://www.ctan.org/pkg/colortbl")
3219 (synopsis "Add colour to LaTeX tables")
3220 (description
3221 "This package allows rows, columns, and even individual cells in LaTeX
3222 tables to be coloured.")
3223 (license license:lppl)))
3224
3225 (define-public texlive-latex-fancybox
3226 (package
3227 (name "texlive-latex-fancybox")
3228 (version (number->string %texlive-revision))
3229 (source (origin
3230 (method svn-fetch)
3231 (uri (svn-reference
3232 (url (string-append "svn://www.tug.org/texlive/tags/"
3233 %texlive-tag "/Master/texmf-dist/"
3234 "/tex/latex/fancybox"))
3235 (revision %texlive-revision)))
3236 (file-name (string-append name "-" version "-checkout"))
3237 (sha256
3238 (base32
3239 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
3240 (build-system trivial-build-system)
3241 (arguments
3242 `(#:modules ((guix build utils))
3243 #:builder
3244 (begin
3245 (use-modules (guix build utils))
3246 (let ((target (string-append (assoc-ref %outputs "out")
3247 "/share/texmf-dist/tex/latex/fancybox")))
3248 (mkdir-p target)
3249 (copy-recursively (assoc-ref %build-inputs "source") target)
3250 #t))))
3251 (home-page "https://www.ctan.org/pkg/fancybox")
3252 (synopsis "Variants of \\fbox and other games with boxes")
3253 (description
3254 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
3255 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
3256 using box macros and flexible verbatim macros. You can box mathematics,
3257 floats, center, flushleft, and flushright, lists, and pages.")
3258 (license license:lppl1.2+)))
3259
3260 (define-public texlive-latex-fancyhdr
3261 (package
3262 (name "texlive-latex-fancyhdr")
3263 (version (number->string %texlive-revision))
3264 (source (origin
3265 (method svn-fetch)
3266 (uri (svn-reference
3267 (url (string-append "svn://www.tug.org/texlive/tags/"
3268 %texlive-tag "/Master/texmf-dist/"
3269 "/tex/latex/fancyhdr"))
3270 (revision %texlive-revision)))
3271 (file-name (string-append name "-" version "-checkout"))
3272 (sha256
3273 (base32
3274 "1xsnzx7vgdfh9zh2m7bjz6bgdpxsgb1kyc19p50vhs34x5nbgsnr"))))
3275 (build-system trivial-build-system)
3276 (arguments
3277 `(#:modules ((guix build utils))
3278 #:builder
3279 (begin
3280 (use-modules (guix build utils))
3281 (let ((target (string-append (assoc-ref %outputs "out")
3282 "/share/texmf-dist/tex/latex/fancyhdr")))
3283 (mkdir-p target)
3284 (copy-recursively (assoc-ref %build-inputs "source") target)
3285 #t))))
3286 (home-page "https://www.ctan.org/pkg/fancyhdr")
3287 (synopsis "Extensive control of page headers and footers in LaTeX2e")
3288 (description
3289 "The package provides extensive facilities, both for constructing headers
3290 and footers, and for controlling their use (for example, at times when LaTeX
3291 would automatically change the heading style in use).")
3292 (license license:lppl)))
3293
3294 (define-public texlive-latex-float
3295 (package
3296 (name "texlive-latex-float")
3297 (version (number->string %texlive-revision))
3298 (source (origin
3299 (method svn-fetch)
3300 (uri (texlive-ref "latex" "float"))
3301 (file-name (string-append name "-" version "-checkout"))
3302 (sha256
3303 (base32
3304 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
3305 (build-system texlive-build-system)
3306 (arguments '(#:tex-directory "latex/float"))
3307 (home-page "https://www.ctan.org/pkg/float")
3308 (synopsis "Improved interface for floating objects")
3309 (description
3310 "This package improves the interface for defining floating objects such
3311 as figures and tables. It introduces the boxed float, the ruled float and the
3312 plaintop float. You can define your own floats and improve the behaviour of
3313 the old ones. The package also provides the @code{H} float modifier option of
3314 the obsolete @code{here} package. You can select this as automatic default
3315 with @code{\\floatplacement{figure}{H}}.")
3316 (license license:lppl)))
3317
3318 (define-public texlive-latex-footmisc
3319 (package
3320 (name "texlive-latex-footmisc")
3321 (version (number->string %texlive-revision))
3322 (source (origin
3323 (method svn-fetch)
3324 (uri (texlive-ref "latex" "footmisc"))
3325 (file-name (string-append name "-" version "-checkout"))
3326 (sha256
3327 (base32
3328 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
3329 (build-system texlive-build-system)
3330 (arguments '(#:tex-directory "latex/footmisc"))
3331 (home-page "https://www.ctan.org/pkg/footmisc")
3332 (synopsis "Range of footnote options")
3333 (description
3334 "This is a collection of ways to change the typesetting of footnotes.
3335 The package provides means of changing the layout of the footnotes themselves,
3336 a way to number footnotes per page, to make footnotes disappear in a
3337 \"moving\" argument, and to deal with multiple references to footnotes from
3338 the same place. The package also has a range of techniques for labelling
3339 footnotes with symbols rather than numbers.")
3340 (license license:lppl1.3+)))
3341
3342 (define-public texlive-latex-listings
3343 (package
3344 (name "texlive-latex-listings")
3345 (version (number->string %texlive-revision))
3346 (source (origin
3347 (method svn-fetch)
3348 (uri (texlive-ref "latex" "listings"))
3349 (file-name (string-append name "-" version "-checkout"))
3350 (sha256
3351 (base32
3352 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
3353 (build-system texlive-build-system)
3354 (arguments
3355 '(#:tex-directory "latex/listings"
3356 #:build-targets '("listings.ins")))
3357 (home-page "https://www.ctan.org/pkg/listings")
3358 (synopsis "Typeset source code listings using LaTeX")
3359 (description
3360 "The package enables the user to typeset programs (programming code)
3361 within LaTeX; the source code is read directly by TeX---no front-end processor
3362 is needed. Keywords, comments and strings can be typeset using different
3363 styles. Support for @code{hyperref} is provided.")
3364 (license license:lppl1.3+)))
3365
3366 (define-public texlive-latex-jknapltx
3367 (package
3368 (name "texlive-latex-jknapltx")
3369 (version (number->string %texlive-revision))
3370 (source (origin
3371 (method svn-fetch)
3372 (uri (svn-reference
3373 (url (string-append "svn://www.tug.org/texlive/tags/"
3374 %texlive-tag "/Master/texmf-dist/"
3375 "/tex/latex/jknapltx"))
3376 (revision %texlive-revision)))
3377 (file-name (string-append name "-" version "-checkout"))
3378 (sha256
3379 (base32
3380 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
3381 (build-system trivial-build-system)
3382 (arguments
3383 `(#:modules ((guix build utils))
3384 #:builder
3385 (begin
3386 (use-modules (guix build utils))
3387 (let ((target (string-append (assoc-ref %outputs "out")
3388 "/share/texmf-dist/tex/latex/jknapltx")))
3389 (mkdir-p target)
3390 (copy-recursively (assoc-ref %build-inputs "source") target)
3391 #t))))
3392 (home-page "https://www.ctan.org/pkg/jknappen")
3393 (synopsis "Miscellaneous packages by Joerg Knappen")
3394 (description
3395 "This package provides miscellaneous macros by Joerg Knappen, including:
3396 represent counters in greek; Maxwell's non-commutative division;
3397 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
3398 @code{inputenc} definition files that allow verbatim input in the respective
3399 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
3400 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
3401 transliterate semitic languages; patches to make (La)TeX formulae embeddable
3402 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
3403 (license license:gpl2)))
3404
3405 (define-public texlive-fonts-ec
3406 (package
3407 (name "texlive-fonts-ec")
3408 (version (number->string %texlive-revision))
3409 (source (origin
3410 (method svn-fetch)
3411 (uri (svn-reference
3412 (url (string-append "svn://www.tug.org/texlive/tags/"
3413 %texlive-tag "/Master/texmf-dist/"
3414 "/fonts/source/jknappen/ec/"))
3415 (revision %texlive-revision)))
3416 (file-name (string-append name "-" version "-checkout"))
3417 (sha256
3418 (base32
3419 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
3420 (build-system gnu-build-system)
3421 (arguments
3422 `(#:modules ((guix build gnu-build-system)
3423 (guix build utils)
3424 (srfi srfi-1)
3425 (srfi srfi-26))
3426 #:tests? #f ; no tests
3427 #:phases
3428 (modify-phases %standard-phases
3429 (delete 'configure)
3430 (replace 'build
3431 (lambda* (#:key inputs #:allow-other-keys)
3432 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
3433 ;; Tell mf where to find mf.base
3434 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
3435 ;; Tell mf where to look for source files
3436 (setenv "MFINPUTS"
3437 (string-append (getcwd) ":"
3438 mf "/share/texmf-dist/metafont/base:"
3439 (assoc-ref inputs "texlive-fonts-cm")
3440 "/share/texmf-dist/fonts/source/public/cm")))
3441 (mkdir "build")
3442 (for-each (lambda (font)
3443 (format #t "building font ~a\n" font)
3444 (invoke "mf" "-progname=mf"
3445 "-output-directory=build"
3446 (string-append "\\"
3447 "mode:=ljfour; "
3448 "mag:=1; "
3449 "batchmode; "
3450 "input " (basename font ".mf"))))
3451 (find-files "." "[0-9]+\\.mf$"))
3452 #t))
3453 (replace 'install
3454 (lambda* (#:key outputs #:allow-other-keys)
3455 (let* ((out (assoc-ref outputs "out"))
3456 (tfm (string-append
3457 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
3458 (mf (string-append
3459 out "/share/texmf-dist/fonts/source/jknappen/ec")))
3460 (for-each (cut install-file <> tfm)
3461 (find-files "build" "\\.*"))
3462 (for-each (cut install-file <> mf)
3463 (find-files "." "\\.mf"))
3464 #t))))))
3465 (native-inputs
3466 `(("texlive-bin" ,texlive-bin)
3467 ("texlive-metafont-base" ,texlive-metafont-base)
3468 ("texlive-fonts-cm" ,texlive-fonts-cm)))
3469 (home-page "https://www.ctan.org/pkg/ec")
3470 (synopsis "Computer modern fonts in T1 and TS1 encodings")
3471 (description
3472 "The EC fonts are European Computer Modern Fonts, supporting the complete
3473 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
3474 These fonts are intended to be stable with no changes being made to the tfm
3475 files. The set also contains a Text Companion Symbol font, called @code{tc},
3476 featuring many useful characters needed in text typesetting, for example
3477 oldstyle digits, currency symbols (including the newly created Euro symbol),
3478 the permille sign, copyright, trade mark and servicemark as well as a copyleft
3479 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
3480 EC fonts supersede the preliminary version released as the DC fonts. The
3481 fonts are available in (traced) Adobe Type 1 format, as part of the
3482 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
3483 set, Latin Modern, is not actually a direct development of the EC set, and
3484 differs from the EC in a number of particulars.")
3485 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
3486 texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
3487
3488 (define-public texlive-fonts-rsfs
3489 (package
3490 (name "texlive-fonts-rsfs")
3491 (version (number->string %texlive-revision))
3492 (source (origin
3493 (method svn-fetch)
3494 (uri (svn-reference
3495 (url (string-append "svn://www.tug.org/texlive/tags/"
3496 %texlive-tag "/Master/texmf-dist/"
3497 "/fonts/source/public/rsfs/"))
3498 (revision %texlive-revision)))
3499 (file-name (string-append name "-" version "-checkout"))
3500 (sha256
3501 (base32
3502 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
3503 (build-system gnu-build-system)
3504 (arguments
3505 `(#:modules ((guix build gnu-build-system)
3506 (guix build utils)
3507 (srfi srfi-1)
3508 (srfi srfi-26))
3509 #:tests? #f ; no tests
3510 #:phases
3511 (modify-phases %standard-phases
3512 (delete 'configure)
3513 (replace 'build
3514 (lambda* (#:key inputs #:allow-other-keys)
3515 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
3516 ;; Tell mf where to find mf.base
3517 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
3518 ;; Tell mf where to look for source files
3519 (setenv "MFINPUTS"
3520 (string-append (getcwd) ":"
3521 mf "/share/texmf-dist/metafont/base:"
3522 (assoc-ref inputs "texlive-fonts-cm")
3523 "/share/texmf-dist/fonts/source/public/cm")))
3524 (mkdir "build")
3525 (for-each (lambda (font)
3526 (format #t "building font ~a\n" font)
3527 (invoke "mf" "-progname=mf"
3528 "-output-directory=build"
3529 (string-append "\\"
3530 "mode:=ljfour; "
3531 "mag:=1; "
3532 "batchmode; "
3533 "input " (basename font ".mf"))))
3534 (find-files "." "[0-9]+\\.mf$"))
3535 #t))
3536 (replace 'install
3537 (lambda* (#:key outputs #:allow-other-keys)
3538 (let* ((out (assoc-ref outputs "out"))
3539 (tfm (string-append
3540 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
3541 (mf (string-append
3542 out "/share/texmf-dist/fonts/source/public/rsfs")))
3543 (for-each (cut install-file <> tfm)
3544 (find-files "build" "\\.*"))
3545 (for-each (cut install-file <> mf)
3546 (find-files "." "\\.mf"))
3547 #t))))))
3548 (native-inputs
3549 `(("texlive-bin" ,texlive-bin)
3550 ("texlive-metafont-base" ,texlive-metafont-base)
3551 ("texlive-fonts-cm" ,texlive-fonts-cm)))
3552 (home-page "https://www.ctan.org/pkg/rsfs")
3553 (synopsis "Ralph Smith's Formal Script font")
3554 (description
3555 "The fonts provide uppercase formal script letters for use as symbols in
3556 scientific and mathematical typesetting (in contrast to the informal script
3557 fonts such as that used for the calligraphic symbols in the TeX maths symbol
3558 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
3559 format. LaTeX support, for using these fonts in mathematics, is available via
3560 one of the packages @code{calrsfs} and @code{mathrsfs}.")
3561 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
3562
3563 (define-public texlive-latex-eso-pic
3564 (package
3565 (name "texlive-latex-eso-pic")
3566 (version (number->string %texlive-revision))
3567 (source (origin
3568 (method svn-fetch)
3569 (uri (texlive-ref "latex" "eso-pic"))
3570 (file-name (string-append name "-" version "-checkout"))
3571 (sha256
3572 (base32
3573 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
3574 (build-system texlive-build-system)
3575 (arguments '(#:tex-directory "latex/eso-pic"))
3576 (home-page "https://www.ctan.org/pkg/eso-pic")
3577 (synopsis "Add picture commands (or backgrounds) to every page")
3578 (description
3579 "The package adds one or more user commands to LaTeX's @code{shipout}
3580 routine, which may be used to place the output at fixed positions. The
3581 @code{grid} option may be used to find the correct places.")
3582 (license license:lppl1.3+)))
3583
3584 (define-public texlive-latex-eepic
3585 (package
3586 (name "texlive-latex-eepic")
3587 (version (number->string %texlive-revision))
3588 (source (origin
3589 (method svn-fetch)
3590 (uri (svn-reference
3591 (url (string-append "svn://www.tug.org/texlive/tags/"
3592 %texlive-tag "/Master/texmf-dist/"
3593 "/tex/latex/eepic"))
3594 (revision %texlive-revision)))
3595 (file-name (string-append name "-" version "-checkout"))
3596 (sha256
3597 (base32
3598 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
3599 (build-system trivial-build-system)
3600 (arguments
3601 `(#:modules ((guix build utils))
3602 #:builder
3603 (begin
3604 (use-modules (guix build utils))
3605 (let ((target (string-append (assoc-ref %outputs "out")
3606 "/share/texmf-dist/tex/latex/eepic")))
3607 (mkdir-p target)
3608 (copy-recursively (assoc-ref %build-inputs "source") target)
3609 #t))))
3610 (home-page "https://www.ctan.org/pkg/eepic")
3611 (synopsis "Extensions to epic and the LaTeX drawing tools")
3612 (description
3613 "Extensions to @code{epic} and the LaTeX picture drawing environment,
3614 include the drawing of lines at any slope, the drawing of circles in any
3615 radii, and the drawing of dotted and dashed lines much faster with much less
3616 TeX memory, and providing several new commands for drawing ellipses, arcs,
3617 splines, and filled circles and ellipses. The package uses @code{tpic}
3618 @code{\\special} commands.")
3619 (license license:public-domain)))
3620
3621 (define-public texlive-latex-enumitem
3622 (package
3623 (name "texlive-latex-enumitem")
3624 (version (number->string %texlive-revision))
3625 (source (origin
3626 (method svn-fetch)
3627 (uri (svn-reference
3628 (url (string-append "svn://www.tug.org/texlive/tags/"
3629 %texlive-tag "/Master/texmf-dist/"
3630 "/tex/latex/enumitem"))
3631 (revision %texlive-revision)))
3632 (file-name (string-append name "-" version "-checkout"))
3633 (sha256
3634 (base32
3635 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
3636 (build-system trivial-build-system)
3637 (arguments
3638 `(#:modules ((guix build utils))
3639 #:builder
3640 (begin
3641 (use-modules (guix build utils))
3642 (let ((target (string-append (assoc-ref %outputs "out")
3643 "/share/texmf-dist/tex/latex/enumitem")))
3644 (mkdir-p target)
3645 (copy-recursively (assoc-ref %build-inputs "source") target)
3646 #t))))
3647 (home-page "https://www.ctan.org/pkg/enumitem")
3648 (synopsis "Customize basic list environments")
3649 (description
3650 "This package is intended to ease customizing the three basic list
3651 environments: @code{enumerate}, @code{itemize} and @code{description}. It
3652 extends their syntax to allow an optional argument where a set of parameters
3653 in the form @code{key=value} are available, for example:
3654 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
3655 (license license:lppl1.3+)))
3656
3657 (define-public texlive-latex-multirow
3658 (package
3659 (name "texlive-latex-multirow")
3660 (version (number->string %texlive-revision))
3661 (source (origin
3662 (method svn-fetch)
3663 (uri (texlive-ref "latex" "multirow"))
3664 (file-name (string-append name "-" version "-checkout"))
3665 (sha256
3666 (base32
3667 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
3668 (build-system texlive-build-system)
3669 (arguments '(#:tex-directory "latex/multirow"))
3670 (home-page "https://www.ctan.org/pkg/multirow")
3671 (synopsis "Create tabular cells spanning multiple rows")
3672 (description
3673 "The package provides tools for creating tabular cells spanning multiple
3674 rows. It has a lot of flexibility, including an option for specifying an
3675 entry at the \"natural\" width of its text.")
3676 (license license:lppl1.3+)))
3677
3678 (define-public texlive-latex-overpic
3679 (package
3680 (name "texlive-latex-overpic")
3681 (version (number->string %texlive-revision))
3682 (source (origin
3683 (method svn-fetch)
3684 (uri (svn-reference
3685 (url (string-append "svn://www.tug.org/texlive/tags/"
3686 %texlive-tag "/Master/texmf-dist/"
3687 "/tex/latex/overpic"))
3688 (revision %texlive-revision)))
3689 (file-name (string-append name "-" version "-checkout"))
3690 (sha256
3691 (base32
3692 "1rpx4ibjncj5416rg19v0xjbj3z9avhfdfn2gzp8r8sz9vz25c6g"))))
3693 (build-system trivial-build-system)
3694 (arguments
3695 `(#:modules ((guix build utils))
3696 #:builder
3697 (begin
3698 (use-modules (guix build utils))
3699 (let ((target (string-append (assoc-ref %outputs "out")
3700 "/share/texmf-dist/tex/latex/overpic")))
3701 (mkdir-p target)
3702 (copy-recursively (assoc-ref %build-inputs "source") target)
3703 #t))))
3704 (home-page "https://www.ctan.org/pkg/overpic")
3705 (synopsis "Combine LaTeX commands over included graphics")
3706 (description
3707 "The @code{overpic} environment is a cross between the LaTeX
3708 @code{picture} environment and the @code{\\includegraphics} command of
3709 @code{graphicx}. The resulting picture environment has the same dimensions as
3710 the included graphic. LaTeX commands can be placed on the graphic at defined
3711 positions; a grid for orientation is available.")
3712 (license license:lppl1.0+)))
3713
3714 (define-public texlive-latex-parskip
3715 (package
3716 (name "texlive-latex-parskip")
3717 (version (number->string %texlive-revision))
3718 (source (origin
3719 (method svn-fetch)
3720 (uri (svn-reference
3721 (url (string-append "svn://www.tug.org/texlive/tags/"
3722 %texlive-tag "/Master/texmf-dist/"
3723 "/tex/latex/parskip"))
3724 (revision %texlive-revision)))
3725 (file-name (string-append name "-" version "-checkout"))
3726 (sha256
3727 (base32
3728 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
3729 (build-system trivial-build-system)
3730 (arguments
3731 `(#:modules ((guix build utils))
3732 #:builder
3733 (begin
3734 (use-modules (guix build utils))
3735 (let ((target (string-append (assoc-ref %outputs "out")
3736 "/share/texmf-dist/tex/latex/parskip")))
3737 (mkdir-p target)
3738 (copy-recursively (assoc-ref %build-inputs "source") target)
3739 #t))))
3740 (home-page "https://www.ctan.org/pkg/parskip")
3741 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
3742 (description
3743 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
3744 that is untidy; this package (though it is no substitute for a properly
3745 designed class) helps alleviate this untidiness.")
3746 (license license:lppl)))
3747
3748 (define-public texlive-latex-pdfpages
3749 (package
3750 (name "texlive-latex-pdfpages")
3751 (version (number->string %texlive-revision))
3752 (source (origin
3753 (method svn-fetch)
3754 (uri (texlive-ref "latex" "pdfpages"))
3755 (file-name (string-append name "-" version "-checkout"))
3756 (sha256
3757 (base32
3758 "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd"))))
3759 (build-system texlive-build-system)
3760 (arguments '(#:tex-directory "latex/pdfpages"))
3761 (home-page "https://www.ctan.org/pkg/pdfpages")
3762 (synopsis "Include PDF documents in LaTeX")
3763 (description
3764 "This package simplifies the inclusion of external multi-page PDF
3765 documents in LaTeX documents. Pages may be freely selected and it is possible
3766 to put several logical pages onto each sheet of paper. Furthermore a lot of
3767 hypertext features like hyperlinks and article threads are provided. The
3768 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
3769 use this package to insert PostScript files, in addition to PDF files.")
3770 (license license:lppl1.3+)))
3771
3772 (define-public texlive-fonts-stmaryrd
3773 (package
3774 (name "texlive-fonts-stmaryrd")
3775 (version (number->string %texlive-revision))
3776 (source (origin
3777 (method svn-fetch)
3778 (uri (texlive-ref "fonts" "stmaryrd"))
3779 (file-name (string-append name "-" version "-checkout"))
3780 (sha256
3781 (base32
3782 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
3783 (build-system texlive-build-system)
3784 (arguments
3785 '(#:tex-directory "latex/stmaryrd"
3786 #:phases
3787 (modify-phases %standard-phases
3788 (add-after 'configure 'patch-ins
3789 (lambda _
3790 (substitute* "stmaryrd.ins"
3791 (("^%% LaTeX2e.*") "\\input docstrip\n")
3792 (("fontdef\\}\\}" line)
3793 (string-append line "\n\\endbatchfile")))
3794 #t)))))
3795 (home-page "https://www.ctan.org/pkg/stmaryrd")
3796 (synopsis "St Mary Road symbols for theoretical computer science")
3797 (description
3798 "The fonts were originally distributed as Metafont sources only, but
3799 Adobe Type 1 versions are also now available. Macro support is provided for
3800 use under LaTeX; the package supports the @code{only} option (provided by the
3801 @code{somedefs} package) to restrict what is loaded, for those who don't need
3802 the whole font.")
3803 (license license:lppl)))
3804
3805 (define-public texlive-latex-subfigure
3806 (package
3807 (name "texlive-latex-subfigure")
3808 (version (number->string %texlive-revision))
3809 (source (origin
3810 (method svn-fetch)
3811 (uri (texlive-ref "latex" "subfigure"))
3812 (file-name (string-append name "-" version "-checkout"))
3813 (sha256
3814 (base32
3815 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
3816 (build-system texlive-build-system)
3817 (arguments '(#:tex-directory "latex/subfigure"))
3818 (home-page "https://www.ctan.org/pkg/subfigure")
3819 (synopsis "Figures divided into subfigures")
3820 (description
3821 "This (deprecated) package provides support for the manipulation and
3822 reference of small or \"sub\" figures and tables within a single figure or
3823 table environment. It is convenient to use this package when your subfigures
3824 are to be separately captioned, referenced, or are to be included in the
3825 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
3826 used inside a figure environment for each subfigure. An optional first
3827 argument is used as the caption for that subfigure. The package is now
3828 considered obsolete: it was superseded by @code{subfig}, but users may find
3829 the more recent @code{subcaption} package more satisfactory.")
3830 (license license:lppl)))
3831
3832 (define-public texlive-latex-tabulary
3833 (package
3834 (name "texlive-latex-tabulary")
3835 (version (number->string %texlive-revision))
3836 (source (origin
3837 (method svn-fetch)
3838 (uri (texlive-ref "latex" "tabulary"))
3839 (file-name (string-append name "-" version "-checkout"))
3840 (sha256
3841 (base32
3842 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
3843 (build-system texlive-build-system)
3844 (arguments '(#:tex-directory "latex/tabulary"))
3845 (home-page "https://www.ctan.org/pkg/tabulary")
3846 (synopsis "Tabular with variable width columns balanced")
3847 (description
3848 "The package defines a @code{tabular*}-like environment, @code{tabulary},
3849 taking a \"total width\" argument as well as the column specifications. The
3850 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
3851 variable width columns (@code{\\raggedright}, @code{\\centering},
3852 @code{\\raggedleft}, and normally justified). In contrast to
3853 @code{tabularx}'s @code{X} columns, the width of each column is weighted
3854 according to the natural width of the widest cell in the column.")
3855 (license license:lppl)))
3856
3857 (define-public texlive-latex-threeparttable
3858 (package
3859 (name "texlive-latex-threeparttable")
3860 (version (number->string %texlive-revision))
3861 (source (origin
3862 (method svn-fetch)
3863 (uri (svn-reference
3864 (url (string-append "svn://www.tug.org/texlive/tags/"
3865 %texlive-tag "/Master/texmf-dist/"
3866 "/tex/latex/threeparttable"))
3867 (revision %texlive-revision)))
3868 (file-name (string-append name "-" version "-checkout"))
3869 (sha256
3870 (base32
3871 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
3872 (build-system trivial-build-system)
3873 (arguments
3874 `(#:modules ((guix build utils))
3875 #:builder
3876 (begin
3877 (use-modules (guix build utils))
3878 (let ((target (string-append (assoc-ref %outputs "out")
3879 "/share/texmf-dist/tex/latex/threeparttable")))
3880 (mkdir-p target)
3881 (copy-recursively (assoc-ref %build-inputs "source") target)
3882 #t))))
3883 (home-page "https://www.ctan.org/pkg/threeparttable")
3884 (synopsis "Tables with captions and notes all the same width")
3885 (description
3886 "This package facilitates tables with titles (captions) and notes. The
3887 title and notes are given a width equal to the body of the table (a
3888 @code{tabular} environment). By itself, a @code{threeparttable} does not
3889 float, but you can put it in a @code{table} or a @code{table*} or some other
3890 environment.")
3891 (license (license:fsf-free "file://threeparttable.sty"))))
3892
3893 (define-public texlive-fonts-txfonts
3894 (package
3895 (name "texlive-fonts-txfonts")
3896 (version (number->string %texlive-revision))
3897 (source (origin
3898 (method svn-fetch)
3899 (uri (svn-reference
3900 (url (string-append "svn://www.tug.org/texlive/tags/"
3901 %texlive-tag "/Master/texmf-dist/"
3902 "/tex/latex/txfonts"))
3903 (revision %texlive-revision)))
3904 (file-name (string-append name "-" version "-checkout"))
3905 (sha256
3906 (base32
3907 "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
3908 (build-system trivial-build-system)
3909 (arguments
3910 `(#:modules ((guix build utils)
3911 (ice-9 match))
3912 #:builder
3913 (begin
3914 (use-modules (guix build utils)
3915 (ice-9 match))
3916 (let ((root (string-append (assoc-ref %outputs "out")
3917 "/share/texmf-dist/"))
3918 (pkgs '(("source" . "tex/latex/txfonts")
3919 ("txfonts-vf" . "fonts/tfm/public/txfonts")
3920 ("txfonts-afm" . "fonts/afm/public/txfonts")
3921 ("txfonts-tfm" . "fonts/tfm/public/txfonts")
3922 ("txfonts-type1" . "fonts/type1/public/txfonts")
3923 ("txfonts-enc" . "fonts/enc/dvips/txfonts")
3924 ("txfonts-map" . "fonts/map/dvips/txfonts"))))
3925 (for-each (match-lambda
3926 ((pkg . dir)
3927 (let ((target (string-append root dir)))
3928 (mkdir-p target)
3929 (copy-recursively (assoc-ref %build-inputs pkg)
3930 target))))
3931 pkgs)
3932 #t))))
3933 (native-inputs
3934 `(("txfonts-tfm"
3935 ,(origin
3936 (method svn-fetch)
3937 (uri (svn-reference
3938 (url (string-append "svn://www.tug.org/texlive/tags/"
3939 %texlive-tag "/Master/texmf-dist/"
3940 "/fonts/tfm/public/txfonts"))
3941 (revision %texlive-revision)))
3942 (file-name (string-append name "-tfm-" version "-checkout"))
3943 (sha256
3944 (base32
3945 "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
3946 ("txfonts-vf"
3947 ,(origin
3948 (method svn-fetch)
3949 (uri (svn-reference
3950 (url (string-append "svn://www.tug.org/texlive/tags/"
3951 %texlive-tag "/Master/texmf-dist/"
3952 "/fonts/vf/public/txfonts"))
3953 (revision %texlive-revision)))
3954 (file-name (string-append name "-vf-" version "-checkout"))
3955 (sha256
3956 (base32
3957 "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
3958 ("txfonts-afm"
3959 ,(origin
3960 (method svn-fetch)
3961 (uri (svn-reference
3962 (url (string-append "svn://www.tug.org/texlive/tags/"
3963 %texlive-tag "/Master/texmf-dist/"
3964 "/fonts/afm/public/txfonts"))
3965 (revision %texlive-revision)))
3966 (file-name (string-append name "-afm-" version "-checkout"))
3967 (sha256
3968 (base32
3969 "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
3970 ("txfonts-type1"
3971 ,(origin
3972 (method svn-fetch)
3973 (uri (svn-reference
3974 (url (string-append "svn://www.tug.org/texlive/tags/"
3975 %texlive-tag "/Master/texmf-dist/"
3976 "/fonts/type1/public/txfonts"))
3977 (revision %texlive-revision)))
3978 (file-name (string-append name "-type1-" version "-checkout"))
3979 (sha256
3980 (base32
3981 "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
3982 ("txfonts-map"
3983 ,(origin
3984 (method svn-fetch)
3985 (uri (svn-reference
3986 (url (string-append "svn://www.tug.org/texlive/tags/"
3987 %texlive-tag "/Master/texmf-dist/"
3988 "/fonts/map/dvips/txfonts"))
3989 (revision %texlive-revision)))
3990 (file-name (string-append name "-map-" version "-checkout"))
3991 (sha256
3992 (base32
3993 "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
3994 ("txfonts-enc"
3995 ,(origin
3996 (method svn-fetch)
3997 (uri (svn-reference
3998 (url (string-append "svn://www.tug.org/texlive/tags/"
3999 %texlive-tag "/Master/texmf-dist/"
4000 "/fonts/enc/dvips/txfonts"))
4001 (revision %texlive-revision)))
4002 (file-name (string-append name "-enc-" version "-checkout"))
4003 (sha256
4004 (base32
4005 "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
4006 (home-page "https://www.ctan.org/pkg/threeparttable")
4007 (synopsis "Times-like fonts in support of mathematics")
4008 (description
4009 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
4010 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
4011 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
4012 providing all the symbols of the Computer Modern and AMS fonts, including all
4013 the Greek capital letters from CMR; and additional maths fonts of various
4014 other symbols.
4015
4016 The set is complemented by a sans-serif set of text fonts, based on
4017 Helvetica/NimbusSanL, and a monospace set.
4018
4019 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
4020 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
4021 ;; Any version of the GPL with font exception.
4022 (license license:gpl3+)))
4023
4024 (define-public texlive-fonts-iwona
4025 (package
4026 (name "texlive-fonts-iwona")
4027 (version "0.995b")
4028 (source (origin
4029 (method url-fetch)
4030 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
4031 (string-map (lambda (c)
4032 (if (char=? c #\.)
4033 #\_ c))
4034 version)
4035 ".zip"))
4036 (sha256
4037 (base32
4038 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
4039 (build-system trivial-build-system)
4040 (arguments
4041 `(#:modules ((guix build utils))
4042 #:builder
4043 (begin
4044 (use-modules (guix build utils))
4045 (let ((target (string-append (assoc-ref %outputs "out")
4046 "/share/texmf-dist/"))
4047 (unzip (string-append (assoc-ref %build-inputs "unzip")
4048 "/bin/unzip")))
4049 (invoke unzip (assoc-ref %build-inputs "source"))
4050 (mkdir-p target)
4051 (copy-recursively "iwona" target)
4052 #t))))
4053 (native-inputs
4054 `(("unzip" ,unzip)))
4055 (home-page "http://jmn.pl/en/kurier-i-iwona/")
4056 (synopsis "Sans-serif typeface for TeX")
4057 (description "Iwona is a two-element sans-serif typeface. It was created
4058 as an alternative version of the Kurier typeface, which was designed in 1975
4059 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
4060 supervision of Roman Tomaszewski. Kurier was designed for linotype
4061 typesetting of newspapers and similar periodicals. The Iwona fonts are an
4062 alternative version of the Kurier fonts. The difference lies in the absence
4063 of ink traps which typify the Kurier font.")
4064 (license license:gfl1.0)))
4065
4066 (define-public texlive-latex-titlesec
4067 (package
4068 (name "texlive-latex-titlesec")
4069 (version (number->string %texlive-revision))
4070 (source (origin
4071 (method svn-fetch)
4072 (uri (svn-reference
4073 (url (string-append "svn://www.tug.org/texlive/tags/"
4074 %texlive-tag "/Master/texmf-dist/"
4075 "/tex/latex/titlesec"))
4076 (revision %texlive-revision)))
4077 (file-name (string-append name "-" version "-checkout"))
4078 (sha256
4079 (base32
4080 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
4081 (build-system trivial-build-system)
4082 (arguments
4083 `(#:modules ((guix build utils))
4084 #:builder
4085 (begin
4086 (use-modules (guix build utils))
4087 (let ((target (string-append (assoc-ref %outputs "out")
4088 "/share/texmf-dist/tex/latex/titlesec")))
4089 (mkdir-p target)
4090 (copy-recursively (assoc-ref %build-inputs "source") target)
4091 #t))))
4092 (home-page "https://www.ctan.org/pkg/titlesec")
4093 (synopsis "Select alternative section titles")
4094 (description
4095 "This package provides an interface to sectioning commands for selection
4096 from various title styles, e.g. for marginal titles and to change the font of
4097 all headings with a single command, also providing simple one-step page
4098 styles. It also includes a package to change the page styles when there are
4099 floats in a page. You may assign headers/footers to individual floats, too.")
4100 (license license:lppl)))
4101
4102 (define-public texlive-latex-type1cm
4103 (package
4104 (name "texlive-latex-type1cm")
4105 (version (number->string %texlive-revision))
4106 (source (origin
4107 (method svn-fetch)
4108 (uri (texlive-ref "latex" "type1cm"))
4109 (file-name (string-append name "-" version "-checkout"))
4110 (sha256
4111 (base32
4112 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
4113 (build-system texlive-build-system)
4114 (arguments '(#:tex-directory "latex/type1cm"))
4115 (home-page "https://www.ctan.org/pkg/type1cm")
4116 (synopsis "Arbitrary size font selection in LaTeX")
4117 (description
4118 "LaTeX, by default, restricts the sizes at which you can use its default
4119 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
4120 specified by Knuth). The @code{type1cm} package removes this restriction;
4121 this is particularly useful when using scalable versions of the CM
4122 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
4123 PCTeX, etc.). In fact, since modern distributions will automatically generate
4124 any bitmap font you might need, @code{type1cm} has wider application than just
4125 those using scalable versions of the fonts. Note that the LaTeX distribution
4126 now contains a package @code{fix-cm},f which performs the task of
4127 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
4128 @code{ec} fonts.")
4129 (license license:lppl)))
4130
4131 (define-public texlive-latex-lh
4132 (package
4133 (name "texlive-latex-lh")
4134 (version (number->string %texlive-revision))
4135 (source (origin
4136 (method svn-fetch)
4137 (uri (texlive-ref "latex" "lh"))
4138 (file-name (string-append name "-" version "-checkout"))
4139 (sha256
4140 (base32
4141 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
4142 (build-system texlive-build-system)
4143 (arguments '(#:tex-directory "latex/lh"))
4144 (home-page "https://www.ctan.org/pkg/lh")
4145 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
4146 (description
4147 "The LH fonts address the problem of the wide variety of alphabets that
4148 are written with Cyrillic-style characters. The fonts are the original basis
4149 of the set of T2* and X2 encodings that are now used when LaTeX users need to
4150 write in Cyrillic languages. Macro support in standard LaTeX encodings is
4151 offered through the latex-cyrillic and t2 bundles, and the package itself
4152 offers support for other (more traditional) encodings. The fonts, in the
4153 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
4154 CM-Super family of fonts. The package also offers its own LaTeX support for
4155 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
4156 (license license:lppl)))
4157
4158 (define-public texlive-metapost
4159 (package
4160 (name "texlive-metapost")
4161 (version (number->string %texlive-revision))
4162 (source (origin
4163 (method svn-fetch)
4164 (uri (svn-reference
4165 (url (string-append "svn://www.tug.org/texlive/tags/"
4166 %texlive-tag "/Master/texmf-dist/"
4167 "/metapost"))
4168 (revision %texlive-revision)))
4169 (file-name (string-append name "-" version "-checkout"))
4170 (sha256
4171 (base32
4172 "0sf18pc6chgy26p9bxxn44xcqhzjrfb53jxjr2y7l3jb6xllhblq"))))
4173 (build-system trivial-build-system)
4174 (arguments
4175 `(#:modules ((guix build utils))
4176 #:builder
4177 (begin
4178 (use-modules (guix build utils))
4179 (let ((target (string-append (assoc-ref %outputs "out")
4180 "/share/texmf-dist/metapost")))
4181 (mkdir-p target)
4182 (copy-recursively (assoc-ref %build-inputs "source") target)
4183 #t))))
4184 (home-page "https://www.ctan.org/pkg/metapost")
4185 (synopsis "Create scalable illustrations")
4186 (description
4187 "MetaPost uses a language based on that of Metafont to produce precise
4188 technical illustrations. Its output is scalable PostScript or SVG, rather
4189 than the bitmaps Metafont creates.")
4190 (license license:lppl)))
4191
4192 (define-public texlive-latex-acmart
4193 (package
4194 (name "texlive-latex-acmart")
4195 (version "1.45")
4196 (source (origin
4197 (method svn-fetch)
4198 (uri (texlive-ref "latex" "acmart"))
4199 (sha256
4200 (base32
4201 "10zs8ga88ksypv1v4p6mynmfa7749q2hgxlr4shnwfjd9wrb421q"))
4202 (file-name (string-append name "-" version "-checkout"))))
4203 (build-system texlive-build-system)
4204 (arguments '(#:tex-directory "latex/acmart"))
4205 (home-page "https://www.ctan.org/pkg/acmart")
4206 (synopsis "Class for typesetting publications of ACM")
4207 (description
4208 "This package provides a class for typesetting publications of the
4209 Association for Computing Machinery (ACM).")
4210 (license license:lppl1.3+)))
4211
4212 (define-public texlive-latex-varwidth
4213 (package
4214 (name "texlive-latex-varwidth")
4215 (version (number->string %texlive-revision))
4216 (source (origin
4217 (method svn-fetch)
4218 (uri (svn-reference
4219 (url (string-append "svn://www.tug.org/texlive/tags/"
4220 %texlive-tag "/Master/texmf-dist/"
4221 "/tex/latex/varwidth"))
4222 (revision %texlive-revision)))
4223 (file-name (string-append name "-" version "-checkout"))
4224 (sha256
4225 (base32
4226 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
4227 (build-system trivial-build-system)
4228 (arguments
4229 `(#:modules ((guix build utils))
4230 #:builder
4231 (begin
4232 (use-modules (guix build utils))
4233 (let ((target (string-append (assoc-ref %outputs "out")
4234 "/share/texmf-dist/tex/latex/varwidth")))
4235 (mkdir-p target)
4236 (copy-recursively (assoc-ref %build-inputs "source") target)
4237 #t))))
4238 (home-page "https://www.ctan.org/pkg/varwidth")
4239 (synopsis "Variable-width minipage")
4240 (description
4241 "The @code{varwidth} environment is superficially similar to
4242 @code{minipage}, but the specified width is just a maximum value — the box may
4243 get a narrower “natural” width.")
4244 (license license:lppl)))
4245
4246 (define-public texlive-latex-wasysym
4247 (package
4248 (name "texlive-latex-wasysym")
4249 (version (number->string %texlive-revision))
4250 (source (origin
4251 (method svn-fetch)
4252 (uri (texlive-ref "latex" "wasysym"))
4253 (file-name (string-append name "-" version "-checkout"))
4254 (sha256
4255 (base32
4256 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
4257 (build-system texlive-build-system)
4258 (arguments '(#:tex-directory "latex/wasysym"))
4259 (home-page "https://www.ctan.org/pkg/wasysym")
4260 (synopsis "LaTeX support file to use the WASY2 fonts")
4261 (description
4262 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
4263 like male and female symbols and astronomical symbols, as well as the complete
4264 lasy font set and other odds and ends. The wasysym package implements an easy
4265 to use interface for these symbols.")
4266 (license license:lppl)))
4267
4268 (define-public texlive-latex-wrapfig
4269 (package
4270 (name "texlive-latex-wrapfig")
4271 (version (number->string %texlive-revision))
4272 (source (origin
4273 (method svn-fetch)
4274 (uri (svn-reference
4275 (url (string-append "svn://www.tug.org/texlive/tags/"
4276 %texlive-tag "/Master/texmf-dist/"
4277 "/tex/latex/wrapfig"))
4278 (revision %texlive-revision)))
4279 (file-name (string-append name "-" version "-checkout"))
4280 (sha256
4281 (base32
4282 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
4283 (build-system trivial-build-system)
4284 (arguments
4285 `(#:modules ((guix build utils))
4286 #:builder
4287 (begin
4288 (use-modules (guix build utils))
4289 (let ((target (string-append (assoc-ref %outputs "out")
4290 "/share/texmf-dist/tex/latex/wrapfig")))
4291 (mkdir-p target)
4292 (copy-recursively (assoc-ref %build-inputs "source") target)
4293 #t))))
4294 (home-page "https://www.ctan.org/pkg/wrapfig")
4295 (synopsis "Produces figures which text can flow around")
4296 (description
4297 "This package allows figures or tables to have text wrapped around them.
4298 It does not work in combination with list environments, but can be used in a
4299 @code{parbox} or @code{minipage}, and in two-column format.")
4300 (license license:lppl)))
4301
4302 (define-public texlive-latex-ucs
4303 (package
4304 (name "texlive-latex-ucs")
4305 (version (number->string %texlive-revision))
4306 (source (origin
4307 (method svn-fetch)
4308 (uri (svn-reference
4309 (url (string-append "svn://www.tug.org/texlive/tags/"
4310 %texlive-tag "/Master/texmf-dist/"
4311 "/tex/latex/ucs"))
4312 (revision %texlive-revision)))
4313 (file-name (string-append name "-" version "-checkout"))
4314 (sha256
4315 (base32
4316 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
4317 (build-system trivial-build-system)
4318 (arguments
4319 `(#:modules ((guix build utils))
4320 #:builder
4321 (begin
4322 (use-modules (guix build utils))
4323 (let ((target (string-append (assoc-ref %outputs "out")
4324 "/share/texmf-dist/tex/latex/ucs")))
4325 (mkdir-p target)
4326 (copy-recursively (assoc-ref %build-inputs "source") target)
4327 #t))))
4328 (home-page "https://www.ctan.org/pkg/ucs")
4329 (synopsis "Extended UTF-8 input encoding support for LaTeX")
4330 (description
4331 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
4332 together with a large number of support files. The @code{utf8x.def}
4333 definition file for use with @code{inputenc} covers a wider range of Unicode
4334 characters than does @code{utf8.def} in the LaTeX distribution. The package
4335 provides facilities for efficient use of its large sets of Unicode characters.
4336 Glyph production may be controlled by various options, which permits use of
4337 non-ASCII characters when coding mathematical formulae. Note that the bundle
4338 previously had an alias “unicode”; that alias has now been withdrawn, and no
4339 package of that name now exists.")
4340 (license license:lppl1.3+)))
4341
4342 (define-public texlive-latex-preview
4343 (package
4344 (name "texlive-latex-preview")
4345 (version (number->string %texlive-revision))
4346 (source (origin
4347 (method svn-fetch)
4348 (uri (texlive-ref "latex" "preview"))
4349 (file-name (string-append name "-" version "-checkout"))
4350 (sha256
4351 (base32
4352 "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6"))))
4353 (build-system texlive-build-system)
4354 (arguments
4355 '(#:tex-directory "latex/preview"
4356 #:phases
4357 (modify-phases %standard-phases
4358 (add-after 'unpack 'remove-generated-file
4359 (lambda _
4360 (delete-file "preview.drv")
4361 #t)))))
4362 (home-page "https://www.ctan.org/pkg/preview")
4363 (synopsis "Extract bits of a LaTeX source for output")
4364 (description
4365 "The main purpose of the preview package is the extraction of selected
4366 elements from a LaTeX source, like formulas or graphics, into separate
4367 pages of a DVI file. A flexible and convenient interface allows it to
4368 specify what commands and constructs should be extracted. This works
4369 with DVI files postprocessed by either Dvips and Ghostscript or
4370 dvipng, but it also works when you are using PDFTeX for generating PDF
4371 files.")
4372 (license license:gpl3+)))
4373
4374 (define-public texlive-latex-acronym
4375 (package
4376 (name "texlive-latex-acronym")
4377 (version (number->string %texlive-revision))
4378 (source (origin
4379 (method svn-fetch)
4380 (uri (texlive-ref "latex" "acronym"))
4381 (file-name (string-append name "-" version "-checkout"))
4382 (sha256
4383 (base32
4384 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
4385 (build-system texlive-build-system)
4386 (arguments '(#:tex-directory "latex/acronym"))
4387 (home-page "https://www.ctan.org/pkg/acronym")
4388 (synopsis "Expand acronyms at least once")
4389 (description
4390 "This package ensures that all acronyms used in the text are spelled out
4391 in full at least once. It also provides an environment to build a list of
4392 acronyms used. The package is compatible with PDF bookmarks. The package
4393 requires the suffix package, which in turn requires that it runs under
4394 e-TeX.")
4395 (license license:lppl1.3+)))
4396
4397 (define-public texlive-generic-pdftex
4398 (package
4399 (name "texlive-generic-pdftex")
4400 (version (number->string %texlive-revision))
4401 (source (origin
4402 (method svn-fetch)
4403 (uri (svn-reference
4404 (url (string-append "svn://www.tug.org/texlive/tags/"
4405 %texlive-tag "/Master/texmf-dist/"
4406 "/tex/generic/pdftex"))
4407 (revision %texlive-revision)))
4408 (file-name (string-append name "-" version "-checkout"))
4409 (sha256
4410 (base32
4411 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
4412 (build-system trivial-build-system)
4413 (arguments
4414 `(#:modules ((guix build utils))
4415 #:builder
4416 (begin
4417 (use-modules (guix build utils))
4418 (let ((target (string-append (assoc-ref %outputs "out")
4419 "/share/texmf-dist/tex/generic/pdftex"))
4420 (target-map (string-append (assoc-ref %outputs "out")
4421 "/share/texmf-dist/fonts/map/pdftex")))
4422 (mkdir-p target)
4423 (copy-recursively (assoc-ref %build-inputs "source") target)
4424 (mkdir-p target-map)
4425 (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map)
4426 #t))))
4427 (native-inputs
4428 `(("pdftex-map"
4429 ,(origin
4430 (method svn-fetch)
4431 (uri (svn-reference
4432 (url (string-append "svn://www.tug.org/texlive/tags/"
4433 %texlive-tag "/Master/texmf-dist/"
4434 "/fonts/map/pdftex"))
4435 (revision %texlive-revision)))
4436 (file-name (string-append name "-map-" version "-checkout"))
4437 (sha256
4438 (base32
4439 "18jvcm0vwpg6wwzijvnb92xx78la45kkh71k6l44425krp2vnwm0"))))))
4440 (home-page "https://www.ctan.org/pkg/pdftex")
4441 (synopsis "TeX extension for direct creation of PDF")
4442 (description
4443 "This package provides an extension of TeX which can be configured to
4444 directly generate PDF documents instead of DVI.")
4445 (license license:gpl2+)))
4446
4447 (define texlive-texmf
4448 (package
4449 (name "texlive-texmf")
4450 (version "20180414")
4451 (source texlive-texmf-src)
4452 (build-system gnu-build-system)
4453 (inputs
4454 `(("texlive-bin" ,texlive-bin)
4455 ("lua" ,lua)
4456 ("perl" ,perl)
4457 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
4458 ("ruby" ,ruby)
4459 ("tcsh" ,tcsh)))
4460 (arguments
4461 `(#:modules ((guix build gnu-build-system)
4462 (guix build utils)
4463 (srfi srfi-26))
4464
4465 ;; This package takes 4 GiB, which we can't afford to distribute from
4466 ;; our servers.
4467 #:substitutable? #f
4468
4469 #:phases
4470 (modify-phases (map (cut assq <> %standard-phases)
4471 '(set-paths unpack patch-source-shebangs))
4472 (add-after 'unpack 'unset-environment-variables
4473 (lambda _
4474 (unsetenv "TEXMF")
4475 (unsetenv "TEXMFCNF")
4476 #t))
4477 (add-after 'patch-source-shebangs 'install
4478 (lambda* (#:key outputs #:allow-other-keys)
4479 (let ((share (string-append (assoc-ref outputs "out") "/share")))
4480 (mkdir-p share)
4481 (invoke "mv" "texmf-dist" share))))
4482 (add-after 'install 'texmf-config
4483 (lambda* (#:key inputs outputs #:allow-other-keys)
4484 (let* ((out (assoc-ref outputs "out"))
4485 (share (string-append out "/share"))
4486 (texmfroot (string-append share "/texmf-dist/web2c"))
4487 (texmfcnf (string-append texmfroot "/texmf.cnf"))
4488 (texlive-bin (assoc-ref inputs "texlive-bin"))
4489 (texbin (string-append texlive-bin "/bin"))
4490 (tlpkg (string-append texlive-bin "/share/tlpkg")))
4491 ;; Register SHARE as TEXMFROOT in texmf.cnf.
4492 (substitute* texmfcnf
4493 (("TEXMFROOT = \\$SELFAUTOPARENT")
4494 (string-append "TEXMFROOT = " share))
4495 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
4496 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
4497 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
4498 ;; Register paths in texmfcnf.lua, needed for context.
4499 (substitute* (string-append texmfroot "/texmfcnf.lua")
4500 (("selfautodir:") out)
4501 (("selfautoparent:") (string-append share "/")))
4502 ;; Set path to TeXLive Perl modules
4503 (setenv "PERL5LIB"
4504 (string-append (getenv "PERL5LIB") ":" tlpkg))
4505 ;; Configure the texmf-dist tree; inspired from
4506 ;; http://slackbuilds.org/repository/13.37/office/texlive/
4507 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
4508 (setenv "TEXMFCNF" texmfroot)
4509 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
4510 (invoke "mktexlsr")
4511 (invoke "fmtutil-sys" "--all")))))))
4512 (properties `((max-silent-time . 9600))) ; don't time out while grafting
4513 (synopsis "TeX Live, a package of the TeX typesetting system")
4514 (description
4515 "TeX Live provides a comprehensive TeX document production system.
4516 It includes all the major TeX-related programs, macro packages, and fonts
4517 that are free software, including support for many languages around the
4518 world.
4519
4520 This package contains the complete tree of texmf-dist data.")
4521 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
4522 (home-page "https://www.tug.org/texlive/")))
4523
4524 (define-public texlive
4525 (package
4526 (name "texlive")
4527 (version "20180414")
4528 (source #f)
4529 (build-system trivial-build-system)
4530 (inputs `(("bash" ,bash) ; for wrap-program
4531 ("texlive-bin" ,texlive-bin)
4532 ("texlive-texmf" ,texlive-texmf)))
4533 (native-search-paths
4534 (list (search-path-specification
4535 (variable "TEXMFLOCAL")
4536 (files '("share/texmf-local")))))
4537 (arguments
4538 `(#:modules ((guix build utils))
4539 #:builder
4540 ;; Build the union of texlive-bin and texlive-texmf, but take the
4541 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
4542 (begin
4543 (use-modules (guix build utils))
4544 (let ((out (assoc-ref %outputs "out"))
4545 (bin (assoc-ref %build-inputs "texlive-bin"))
4546 (texmf (assoc-ref %build-inputs "texlive-texmf"))
4547 (bash (assoc-ref %build-inputs "bash")))
4548 (mkdir out)
4549 (with-directory-excursion out
4550 (for-each
4551 (lambda (name)
4552 (symlink (string-append bin "/" name) name))
4553 '("include" "lib"))
4554 (mkdir "bin")
4555 (with-directory-excursion "bin"
4556 (setenv "PATH" (string-append bash "/bin"))
4557 (for-each
4558 (lambda (name)
4559 (symlink name (basename name))
4560 (wrap-program
4561 (basename name)
4562 `("TEXMFCNF" =
4563 (,(string-append texmf "/share/texmf-dist/web2c")))))
4564 (find-files (string-append bin "/bin/") "")))
4565 (mkdir "share")
4566 (with-directory-excursion "share"
4567 (for-each
4568 (lambda (name)
4569 (symlink (string-append bin "/share/" name) name))
4570 '("info" "man" "tlpkg"))
4571 (for-each
4572 (lambda (name)
4573 (symlink (string-append texmf "/share/" name) name))
4574 '("texmf-dist" "texmf-var"))))
4575 #t))))
4576 (synopsis "TeX Live, a package of the TeX typesetting system")
4577 (description
4578 "TeX Live provides a comprehensive TeX document production system.
4579 It includes all the major TeX-related programs, macro packages, and fonts
4580 that are free software, including support for many languages around the
4581 world.
4582
4583 This package contains the complete TeX Live distribution.")
4584 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
4585 (home-page "https://www.tug.org/texlive/")))
4586
4587 (define-public perl-text-bibtex
4588 (package
4589 (name "perl-text-bibtex")
4590 (version "0.85")
4591 (source
4592 (origin
4593 (method url-fetch)
4594 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
4595 version ".tar.gz"))
4596 (sha256
4597 (base32
4598 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
4599 (build-system perl-build-system)
4600 (arguments
4601 `(#:phases
4602 (modify-phases %standard-phases
4603 (add-after 'unpack 'add-output-directory-to-rpath
4604 (lambda* (#:key outputs #:allow-other-keys)
4605 (substitute* "inc/MyBuilder.pm"
4606 (("-Lbtparse" line)
4607 (string-append "-Wl,-rpath="
4608 (assoc-ref outputs "out") "/lib " line)))
4609 #t))
4610 (add-after 'unpack 'install-libraries-to-/lib
4611 (lambda* (#:key outputs #:allow-other-keys)
4612 (substitute* "Build.PL"
4613 (("lib64") "lib"))
4614 #t)))))
4615 (native-inputs
4616 `(("perl-capture-tiny" ,perl-capture-tiny)
4617 ("perl-config-autoconf" ,perl-config-autoconf)
4618 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4619 ("perl-module-build" ,perl-module-build)))
4620 (home-page "https://metacpan.org/release/Text-BibTeX")
4621 (synopsis "Interface to read and parse BibTeX files")
4622 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
4623 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
4624 at many different levels: you may work with BibTeX entries as simple field to
4625 string mappings, or get at the original form of the data as a list of simple
4626 values (strings, macros, or numbers) pasted together.")
4627 (license license:perl-license)))
4628
4629 (define-public biber
4630 (package
4631 (name "biber")
4632 (version "2.12")
4633 (source (origin
4634 (method git-fetch)
4635 (uri (git-reference
4636 (url "https://github.com/plk/biber/")
4637 (commit (string-append "v" version))))
4638 (file-name (git-file-name name version))
4639 ;; TODO: Patch awaiting inclusion upstream (see:
4640 ;; https://github.com/plk/biber/issues/239).
4641 (patches (search-patches "biber-fix-encoding-write.patch"))
4642 (sha256
4643 (base32
4644 "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx"))))
4645 (build-system perl-build-system)
4646 (arguments
4647 `(#:phases
4648 (modify-phases %standard-phases
4649 (add-after 'install 'wrap-programs
4650 (lambda* (#:key outputs #:allow-other-keys)
4651 (let* ((out (assoc-ref outputs "out"))
4652 (perl5lib (getenv "PERL5LIB")))
4653 (wrap-program (string-append out "/bin/biber")
4654 `("PERL5LIB" ":" prefix
4655 (,(string-append perl5lib ":" out
4656 "/lib/perl5/site_perl")))))
4657 #t)))))
4658 (inputs
4659 `(("perl-autovivification" ,perl-autovivification)
4660 ("perl-class-accessor" ,perl-class-accessor)
4661 ("perl-data-dump" ,perl-data-dump)
4662 ("perl-data-compare" ,perl-data-compare)
4663 ("perl-data-uniqid" ,perl-data-uniqid)
4664 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
4665 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
4666 ("perl-file-slurper" ,perl-file-slurper)
4667 ("perl-ipc-cmd" ,perl-ipc-cmd)
4668 ("perl-ipc-run3" ,perl-ipc-run3)
4669 ("perl-list-allutils" ,perl-list-allutils)
4670 ("perl-list-moreutils" ,perl-list-moreutils)
4671 ("perl-mozilla-ca" ,perl-mozilla-ca)
4672 ("perl-regexp-common" ,perl-regexp-common)
4673 ("perl-log-log4perl" ,perl-log-log4perl)
4674 ;; We cannot use perl-unicode-collate here, because otherwise the
4675 ;; hardcoded hashes in the tests would differ. See
4676 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
4677 ;;("perl-unicode-collate" ,perl-unicode-collate)
4678 ("perl-unicode-normalize" ,perl-unicode-normalize)
4679 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
4680 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
4681 ("perl-encode-jis2k" ,perl-encode-jis2k)
4682 ("perl-encode-hanextra" ,perl-encode-hanextra)
4683 ("perl-xml-libxml" ,perl-xml-libxml)
4684 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
4685 ("perl-xml-libxslt" ,perl-xml-libxslt)
4686 ("perl-xml-writer" ,perl-xml-writer)
4687 ("perl-sort-key" ,perl-sort-key)
4688 ("perl-text-csv" ,perl-text-csv)
4689 ("perl-text-csv-xs" ,perl-text-csv-xs)
4690 ("perl-text-roman" ,perl-text-roman)
4691 ("perl-uri" ,perl-uri)
4692 ("perl-text-bibtex" ,perl-text-bibtex)
4693 ("perl-libwww" ,perl-libwww)
4694 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4695 ("perl-business-isbn" ,perl-business-isbn)
4696 ("perl-business-issn" ,perl-business-issn)
4697 ("perl-business-ismn" ,perl-business-ismn)
4698 ("perl-lingua-translit" ,perl-lingua-translit)))
4699 (native-inputs
4700 `(("perl-config-autoconf" ,perl-config-autoconf)
4701 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4702 ("perl-module-build" ,perl-module-build)
4703 ;; for tests
4704 ("perl-file-which" ,perl-file-which)
4705 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
4706 ("perl-test-differences" ,perl-test-differences)))
4707 (home-page "http://biblatex-biber.sourceforge.net/")
4708 (synopsis "Backend for the BibLaTeX citation management tool")
4709 (description "Biber is a BibTeX replacement for users of biblatex. Among
4710 other things it comes with full Unicode support.")
4711 (license license:artistic2.0)))
4712
4713 (define-public rubber
4714 (package
4715 (name "rubber")
4716 (version "1.1")
4717 (source (origin
4718 (method url-fetch)
4719 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
4720 version "/+download/rubber-"
4721 version ".tar.gz")
4722 (string-append "http://ebeffara.free.fr/pub/rubber-"
4723 version ".tar.gz")))
4724 (sha256
4725 (base32
4726 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
4727 (build-system gnu-build-system)
4728 (arguments '(#:tests? #f)) ; no `check' target
4729 (inputs `(("texinfo" ,texinfo)
4730 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
4731 ("which" ,which)))
4732 (home-page "https://launchpad.net/rubber")
4733 (synopsis "Wrapper for LaTeX and friends")
4734 (description
4735 "Rubber is a program whose purpose is to handle all tasks related to the
4736 compilation of LaTeX documents. This includes compiling the document itself,
4737 of course, enough times so that all references are defined, and running BibTeX
4738 to manage bibliographic references. Automatic execution of dvips to produce
4739 PostScript documents is also included, as well as usage of pdfLaTeX to produce
4740 PDF documents.")
4741 (license license:gpl2+)))
4742
4743 (define-public texmaker
4744 (package
4745 (name "texmaker")
4746 (version "5.0.2")
4747 (source (origin
4748 (method url-fetch)
4749 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
4750 version ".tar.bz2"))
4751 (sha256
4752 (base32
4753 "0y81mjm89b99pr9svcwpaf4iz2q9pc9hjas5kiwd1pbgl5vqskm9"))))
4754 (build-system gnu-build-system)
4755 (arguments
4756 `(#:phases
4757 (modify-phases %standard-phases
4758 ;; Qt has its own configuration utility.
4759 (replace 'configure
4760 (lambda* (#:key outputs #:allow-other-keys)
4761 (let ((out (assoc-ref outputs "out")))
4762 (invoke "qmake"
4763 (string-append "PREFIX=" out)
4764 (string-append "DESKTOPDIR=" out "/share/applications")
4765 (string-append "ICONDIR=" out "/share/pixmaps")
4766 (string-append "METAINFODIR=" out "/share/metainfo")
4767 "texmaker.pro")))))))
4768 (inputs
4769 `(("poppler-qt5" ,poppler-qt5)
4770 ("qtbase" ,qtbase)
4771 ("qtscript" ,qtscript)
4772 ("qtwebkit" ,qtwebkit)
4773 ("zlib" ,zlib)))
4774 (native-inputs
4775 `(("pkg-config" ,pkg-config)))
4776 (home-page "http://www.xm1math.net/texmaker/")
4777 (synopsis "LaTeX editor")
4778 (description "Texmaker is a program that integrates many tools needed to
4779 develop documents with LaTeX, in a single application.")
4780 (license license:gpl2+)))
4781
4782
4783 (define-public teximpatient
4784 (package
4785 (name "teximpatient")
4786 (version "2.4")
4787 (source (origin
4788 (method url-fetch)
4789 (uri (string-append "mirror://gnu/" name "/" name "-"
4790 version ".tar.gz"))
4791 (sha256
4792 (base32
4793 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
4794 (build-system gnu-build-system)
4795 (arguments
4796 `(#:phases
4797 (modify-phases %standard-phases
4798 (delete 'check)
4799 ;; Unfortunately some mistakes have been made in packaging.
4800 ;; Work around them here ...
4801 (replace 'unpack
4802 (lambda* (#:key inputs outputs #:allow-other-keys)
4803 (let ((srcdir "teximpatient-2.4"))
4804 (system* "tar" "-xzf" (assoc-ref inputs "source")
4805 (string-append "--one-top-level=" srcdir))
4806 (delete-file (string-append srcdir "/book.pdf"))
4807 (install-file (car
4808 (find-files
4809 (assoc-ref inputs "automake")
4810 "^install-sh$"))
4811 srcdir)
4812 (chdir srcdir)))))))
4813 (native-inputs
4814 `(("texlive" ,texlive)
4815 ("automake" ,automake)))
4816 (home-page "https://www.gnu.org/software/teximpatient/")
4817 (synopsis "Book on TeX, plain TeX and Eplain")
4818 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
4819 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
4820 and Karl Berry.")
4821 (license license:fdl1.3+)))
4822
4823 (define-public lyx
4824 (package
4825 (name "lyx")
4826 (version "2.2.3")
4827 (source (origin
4828 (method url-fetch)
4829 (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/2.2.x/"
4830 name "-" version ".tar.gz"))
4831 (sha256
4832 (base32
4833 "0xvaz0i371nn2ndinc0d3ywj76ivb62649a4sdgwbivisiahd2fj"))
4834 (patches (search-patches "lyx-2.2.3-fix-test.patch"))
4835 (modules '((guix build utils)))
4836 (snippet
4837 '(begin
4838 (delete-file-recursively "3rdparty")
4839 #t))))
4840 (build-system cmake-build-system)
4841 (arguments
4842 `(#:configure-flags `("-DLYX_USE_QT=QT5"
4843 "-DLYX_EXTERNAL_BOOST=1"
4844 "-DLYX_INSTALL=1"
4845 "-DLYX_RELEASE=1"
4846 ,(string-append "-DLYX_INSTALL_PREFIX="
4847 (assoc-ref %outputs "out")
4848 ;; Exact name and level is necessary.
4849 "/lyx2.2"))
4850 #:phases
4851 (modify-phases %standard-phases
4852 (add-after 'unpack 'patch-python
4853 (lambda* (#:key inputs #:allow-other-keys)
4854 (substitute* '("src/support/os.cpp")
4855 (("\"python ")
4856 (string-append "\""
4857 (assoc-ref inputs "python-2")
4858 "/bin/python ")))
4859 #t))
4860 (add-after 'patch-python 'patch-installer
4861 (lambda* (#:key outputs #:allow-other-keys)
4862 (substitute* "CMakeLists.txt"
4863 (("/usr/local/man/man1")
4864 (string-append (assoc-ref outputs "out")
4865 "/share/man/man1")))
4866 #t))
4867 (add-after 'patch-python 'patch-desktop-file
4868 (lambda* (#:key outputs #:allow-other-keys)
4869 (substitute* "lib/lyx.desktop.in"
4870 (("Exec=")
4871 (string-append "Exec="
4872 (assoc-ref outputs "out")
4873 "/")))
4874 #t))
4875 (add-before 'check 'setenv-check
4876 (lambda _
4877 (setenv "LYX_DIR_22x" (string-append (getcwd) "/../lyx-"
4878 ,version "/lib"))
4879 #t))
4880 (add-after 'install 'install-symlinks
4881 (lambda* (#:key outputs #:allow-other-keys)
4882 (let ((out (assoc-ref outputs "out")))
4883 (mkdir-p (string-append out "/bin"))
4884 (symlink "../lyx2.2/bin/lyx2.2"
4885 (string-append out "/bin/lyx2.2"))
4886 #t))))))
4887 (inputs
4888 `(("boost" ,boost)
4889 ("hunspell" ,hunspell) ; Note: Could also use aspell instead.
4890 ("libx11" ,libx11)
4891 ("python-2" ,python-2)
4892 ("qtbase" ,qtbase)
4893 ("qtsvg" ,qtsvg)
4894 ("zlib" ,zlib)))
4895 (propagated-inputs
4896 `(("texlive" ,texlive))) ; article.cls is in texmf-dist.
4897 (native-inputs
4898 `(("python-2" ,python-2)
4899 ("pkg-config" ,pkg-config)
4900 ("bc" ,bc)))
4901 (home-page "https://www.lyx.org/")
4902 (synopsis "Document preparation system with GUI")
4903 (description "LyX is a document preparation system. It excels at letting
4904 you create complex technical and scientific articles with mathematics,
4905 cross-references, bibliographies, indexes, etc. It is very good for working
4906 with documents of any length in which the usual processing abilities are
4907 required: automatic sectioning and pagination, spell checking and so forth.")
4908 (license license:gpl2+)))
4909
4910 (define-public texlive-latex-media9
4911 (package
4912 (name "texlive-latex-media9")
4913 (version (number->string %texlive-revision))
4914 (source (origin
4915 (method svn-fetch)
4916 (uri (svn-reference
4917 (url (string-append "svn://www.tug.org/texlive/tags/"
4918 %texlive-tag "/Master/texmf-dist/"
4919 "/tex/latex/media9"))
4920 (revision %texlive-revision)))
4921 (file-name (string-append name "-" version "-checkout"))
4922 (sha256
4923 (base32
4924 "0lhb2h5hxjq9alpk4r3gvg21pwyifs4ah6hqzp92k55mkp1xv73j"))))
4925 (build-system trivial-build-system)
4926 (arguments
4927 `(#:modules ((guix build utils))
4928 #:builder
4929 (begin
4930 (use-modules (guix build utils))
4931 (let ((target (string-append (assoc-ref %outputs "out")
4932 "/share/texmf-dist/tex/latex/media9")))
4933 (mkdir-p target)
4934 (copy-recursively (assoc-ref %build-inputs "source") target)
4935 #t))))
4936 (home-page "https://www.ctan.org/pkg/media9")
4937 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
4938 (description
4939 "The package provides an interface to embed interactive Flash (SWF) and 3D
4940 objects (Adobe U3D & PRC), as well as video and sound files or streams in the
4941 popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
4942 compatibility. Playback of multimedia files uses the built-in Flash Player of
4943 Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
4944 supports the efficient H.264 codec for video compression.
4945
4946 The package is based on the RichMedia Annotation, an Adobe addition to the PDF
4947 specification. It replaces the now obsolete @code{movie15} package.")
4948 (license license:lppl)))
4949
4950 (define-public texlive-latex-ocgx2
4951 (package
4952 (name "texlive-latex-ocgx2")
4953 (version (number->string %texlive-revision))
4954 (source (origin
4955 (method svn-fetch)
4956 (uri (svn-reference
4957 (url (string-append "svn://www.tug.org/texlive/tags/"
4958 %texlive-tag "/Master/texmf-dist/"
4959 "/tex/latex/ocgx2"))
4960 (revision %texlive-revision)))
4961 (file-name (string-append name "-" version "-checkout"))
4962 (sha256
4963 (base32
4964 "0zp00jg058djx8xp0xqwas92y3j97clkyd8z6pqr890yqy06myqb"))))
4965 (build-system trivial-build-system)
4966 (arguments
4967 `(#:modules ((guix build utils))
4968 #:builder
4969 (begin
4970 (use-modules (guix build utils))
4971 (let ((target (string-append (assoc-ref %outputs "out")
4972 "/share/texmf-dist/tex/latex/ogcx2")))
4973 (mkdir-p target)
4974 (copy-recursively (assoc-ref %build-inputs "source") target)
4975 #t))))
4976 (home-page "https://www.ctan.org/pkg/ocgx2")
4977 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
4978 (description
4979 "This package provides OCG (Optional Content Groups) support within a PDF
4980 document.
4981
4982 It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
4983 @code{ocg-p} packages and adds support for all known engines and back-ends
4984 including:
4985
4986 @itemize
4987 @item LaTeX → dvips → @code{ps2pdf}/Distiller
4988 @item (Xe)LaTeX(x) → @code{dvipdfmx}
4989 @item pdfLaTeX and LuaLaTeX .
4990 @end itemize
4991
4992 It also ensures compatibility with the @code{media9} and @code{animate} packages.")
4993 (license license:lppl)))
4994
4995 (define-public texlive-latex-ms
4996 (package
4997 (name "texlive-latex-ms")
4998 (version (number->string %texlive-revision))
4999 (source (origin
5000 (method svn-fetch)
5001 (uri (texlive-ref "latex" "ms"))
5002 (file-name (string-append name "-" version "-checkout"))
5003 (sha256
5004 (base32
5005 "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s"))))
5006 (build-system texlive-build-system)
5007 (arguments
5008 '(#:tex-directory "latex/ms"
5009 #:tex-format "latex"))
5010 (home-page "https://ctan.org/pkg/ms")
5011 (synopsis "Various LATEX packages by Martin Schröder")
5012 (description
5013 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
5014
5015 @itemize
5016 @item @command{count1to}, make use of fixed TEX counters;
5017 @item @command{everysel}, set commands to execute every time a font is selected;
5018 @item @command{everyshi}, set commands to execute whenever a page is shipped out;
5019 @item @command{multitoc}, typeset the table of contents in multiple columns;
5020 @item @command{prelim2e}, mark typeset pages as preliminary; and
5021 @item @command{ragged2e}, typeset ragged text and allow hyphenation.
5022 @end itemize\n")
5023 (license license:lppl1.3c+)))
5024
5025 (define-public texlive-latex-needspace
5026 (package
5027 (name "texlive-latex-needspace")
5028 (version (number->string %texlive-revision))
5029 (source (origin
5030 (method svn-fetch)
5031 (uri (texlive-ref "latex" "needspace"))
5032 (file-name (string-append name "-" version "-checkout"))
5033 (sha256
5034 (base32
5035 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
5036 (build-system texlive-build-system)
5037 (arguments
5038 '(#:tex-directory "latex/needspace"
5039 #:tex-format "latex"))
5040 (inputs
5041 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
5042 (home-page "https://www.ctan.org/pkg/needspace")
5043 (synopsis "Insert pagebreak if not enough space")
5044 (description
5045 "Provides commands to disable pagebreaking within a given vertical
5046 space. If there is not enough space between the command and the bottom of the
5047 page, a new page will be started.")
5048 (license license:lppl)))
5049
5050 (define-public texlive-latex-changepage
5051 (package
5052 (name "texlive-latex-changepage")
5053 (version (number->string %texlive-revision))
5054 (source
5055 (origin
5056 (method svn-fetch)
5057 (uri (texlive-ref "latex" "changepage"))
5058 (sha256
5059 (base32
5060 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
5061 (build-system texlive-build-system)
5062 (arguments
5063 '(#:tex-directory "latex/changepage"
5064 #:tex-format "latex"))
5065 (inputs
5066 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
5067 (home-page "https://www.ctan.org/pkg/changepage")
5068 (synopsis "Margin adjustment and detection of odd/even pages")
5069 (description
5070 "The package provides commands to change the page layout in the middle of
5071 a document, and to robustly check for typesetting on odd or even pages.
5072 Instructions for use are at the end of the file. The package is an extraction
5073 of code from the @code{memoir} class, whose user interface it shares.")
5074 (license license:lppl1.3+)))
5075
5076 (define-public texlive-latex-eukdate
5077 (package
5078 (name "texlive-latex-eukdate")
5079 (version (number->string %texlive-revision))
5080 (source
5081 (origin
5082 (method svn-fetch)
5083 (uri (svn-reference
5084 (url (string-append "svn://www.tug.org/texlive/tags/"
5085 %texlive-tag "/Master/texmf-dist/"
5086 "/tex/latex/eukdate"))
5087 (revision %texlive-revision)))
5088 (file-name (string-append name "-" version "-checkout"))
5089 (sha256
5090 (base32
5091 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
5092 (build-system trivial-build-system)
5093 (arguments
5094 `(#:modules ((guix build utils))
5095 #:builder
5096 (begin
5097 (use-modules (guix build utils))
5098 (let ((target (string-append (assoc-ref %outputs "out")
5099 "/share/texmf-dist/tex/latex/eukdate")))
5100 (mkdir-p target)
5101 (copy-recursively (assoc-ref %build-inputs "source") target)
5102 #t))))
5103 (home-page "https://www.ctan.org/pkg/eukdate")
5104 (synopsis "UK format dates, with weekday")
5105 (description
5106 "The package is used to change the format of @code{\\today}’s date,
5107 including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
5108 is preferred in many parts of the world, as distinct from that which is used in
5109 @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
5110 (license license:lppl)))
5111
5112 (define-public texlive-generic-ulem
5113 (package
5114 (name "texlive-generic-ulem")
5115 (version (number->string %texlive-revision))
5116 (source
5117 (origin
5118 (method svn-fetch)
5119 (uri (svn-reference
5120 (url (string-append "svn://www.tug.org/texlive/tags/"
5121 %texlive-tag "/Master/texmf-dist/"
5122 "/tex/generic/ulem"))
5123 (revision %texlive-revision)))
5124 (file-name (string-append name "-" version "-checkout"))
5125 (sha256
5126 (base32
5127 "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797"))))
5128 (build-system trivial-build-system)
5129 (arguments
5130 `(#:modules ((guix build utils))
5131 #:builder
5132 (begin
5133 (use-modules (guix build utils))
5134 (let ((target (string-append (assoc-ref %outputs "out")
5135 "/share/texmf-dist/tex/generic/ulem")))
5136 (mkdir-p target)
5137 (copy-recursively (assoc-ref %build-inputs "source") target)
5138 #t))))
5139 (home-page "https://www.ctan.org/pkg/ulem")
5140 (synopsis "Underline text in TeX")
5141 (description
5142 "The package provides an @code{\\ul} (underline) command which will break
5143 over line ends; this technique may be used to replace @code{\\em} (both in that
5144 form and as the @code{\\emph} command), so as to make output look as if it comes
5145 from a typewriter. The package also offers double and wavy underlining, and
5146 striking out (line through words) and crossing out (/// over words).")
5147 (license license:lppl1.3c+)))
5148
5149 (define-public texlive-latex-pgf
5150 (package
5151 (name "texlive-latex-pgf")
5152 (version (number->string %texlive-revision))
5153 (source
5154 (origin
5155 (method svn-fetch)
5156 (uri (svn-reference
5157 (url (string-append "svn://www.tug.org/texlive/tags/"
5158 %texlive-tag "/Master/texmf-dist/"
5159 "/tex/latex/pgf"))
5160 (revision %texlive-revision)))
5161 (file-name (string-append name "-" version "-checkout"))
5162 (sha256
5163 (base32
5164 "1dq8p10pz8wn0vx412m7d7d5gj1syxly3yqdqvf7lv2xl8zndn5h"))))
5165 (build-system trivial-build-system)
5166 (native-inputs
5167 `(("texlive-latex-pgf-generic"
5168 ,(origin
5169 (method svn-fetch)
5170 (uri (svn-reference
5171 (url (string-append "svn://www.tug.org/texlive/tags/"
5172 %texlive-tag "/Master/texmf-dist/"
5173 "/tex/generic/pgf"))
5174 (revision %texlive-revision)))
5175 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
5176 (sha256
5177 (base32
5178 "0xkxw26sjzr5npjpzpr28yygwdbhzpdd0hsk80gjpidhcxmz393i"))))))
5179 (arguments
5180 `(#:modules ((guix build utils))
5181 #:builder
5182 (begin
5183 (use-modules (guix build utils))
5184 (let ((target-generic (string-append (assoc-ref %outputs "out")
5185 "/share/texmf-dist/tex/generic/pgf"))
5186 (target-latex (string-append (assoc-ref %outputs "out")
5187 "/share/texmf-dist/tex/latex/pgf")))
5188 (mkdir-p target-generic)
5189 (mkdir-p target-latex)
5190 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
5191 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
5192 #t))))
5193 (home-page "https://www.ctan.org/pkg/tikz")
5194 (synopsis "Create PostScript and PDF graphics in TeX")
5195 (description
5196 "PGF is a macro package for creating graphics. It is platform- and
5197 format-independent and works together with the most important TeX backend
5198 drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
5199 called TikZ.
5200
5201 Its usage is similar to pstricks and the standard picture environment. PGF
5202 works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
5203 produce either PostScript or PDF output.")
5204 (license license:lppl1.3c+)))
5205
5206 (define-public texlive-latex-koma-script
5207 (package
5208 (name "texlive-latex-koma-script")
5209 (version (number->string %texlive-revision))
5210 (source (origin
5211 (method svn-fetch)
5212 (uri (svn-reference
5213 (url (string-append "svn://www.tug.org/texlive/tags/"
5214 %texlive-tag "/Master/texmf-dist/"
5215 "/tex/latex/koma-script"))
5216 (revision %texlive-revision)))
5217 (file-name (string-append name "-" version "-checkout"))
5218 (sha256
5219 (base32
5220 "0nqwf0sr4mf3v9gqa6apv6ml2xhcdwax0vgyf12a672g7rpdyvgm"))))
5221 (build-system trivial-build-system)
5222 (arguments
5223 `(#:modules ((guix build utils)
5224 (ice-9 match))
5225 #:builder
5226 (begin
5227 (use-modules (guix build utils)
5228 (ice-9 match))
5229 (let ((root (string-append (assoc-ref %outputs "out")
5230 "/share/texmf-dist/"))
5231 (pkgs '(("source" . "tex/latex/koma-script"))))
5232 (for-each (match-lambda
5233 ((pkg . dir)
5234 (let ((target (string-append root dir)))
5235 (mkdir-p target)
5236 (copy-recursively (assoc-ref %build-inputs pkg)
5237 target))))
5238 pkgs)
5239 #t))))
5240 (home-page "https://www.ctan.org/pkg/koma-script")
5241 (synopsis "Bundle of versatile classes and packages")
5242 (description
5243 "The KOMA-Script bundle provides replacements for the article, report, and
5244 book classes with emphasis on typography and versatility. There is also a
5245 letter class.
5246
5247 The bundle also offers:
5248
5249 @itemize
5250 @item a package for calculating type areas in the way laid down by the
5251 typographer Jan Tschichold,
5252 @item packages for easily changing and defining page styles,
5253 @item a package scrdate for getting not only the current date but also the name
5254 of the day, and
5255 @item a package scrtime for getting the current time.
5256 @end itemize
5257
5258 All these packages may be used not only with KOMA-Script classes but also with
5259 the standard classes.
5260
5261 Since every package has its own version number, the version number quoted only
5262 refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
5263 typearea (which are the main parts of the bundle).")
5264 (license license:lppl1.3+)))
5265
5266 (define-public texlive-generic-listofitems
5267 (package
5268 (name "texlive-generic-listofitems")
5269 (version (number->string %texlive-revision))
5270 (source (origin
5271 (method svn-fetch)
5272 (uri (svn-reference
5273 (url (string-append "svn://www.tug.org/texlive/tags/"
5274 %texlive-tag "/Master/texmf-dist/"
5275 "/tex/generic/listofitems"))
5276 (revision %texlive-revision)))
5277 (file-name (string-append name "-" version "-checkout"))
5278 (sha256
5279 (base32
5280 "0hs28fc0v2l92ad9las9b8xcckyrdrwmyhcx1yzmbr6s7s6nvsx8"))))
5281 (build-system trivial-build-system)
5282 (arguments
5283 `(#:modules ((guix build utils))
5284 #:builder
5285 (begin
5286 (use-modules (guix build utils))
5287 (let ((target (string-append (assoc-ref %outputs "out")
5288 "/share/texmf-dist/tex/generic/listofitems")))
5289 (mkdir-p target)
5290 (copy-recursively (assoc-ref %build-inputs "source") target)
5291 #t))))
5292 (home-page "https://www.ctan.org/pkg/listofitems")
5293 (synopsis "Grab items in lists using user-specified seperation character")
5294 (description
5295 "This package allows one to capture all the items of a list, for which
5296 the parsing character has been selected by the user, and to access any of
5297 these items with a simple syntax.")
5298 (license license:lppl1.3c+)))
5299
5300 (define-public texlive-latex-readarray
5301 (package
5302 (name "texlive-latex-readarray")
5303 (version (number->string %texlive-revision))
5304 (source (origin
5305 (method svn-fetch)
5306 (uri (svn-reference
5307 (url (string-append "svn://www.tug.org/texlive/tags/"
5308 %texlive-tag "/Master/texmf-dist/"
5309 "/tex/latex/readarray"))
5310 (revision %texlive-revision)))
5311 (file-name (string-append name "-" version "-checkout"))
5312 (sha256
5313 (base32
5314 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
5315 (build-system trivial-build-system)
5316 (arguments
5317 `(#:modules ((guix build utils))
5318 #:builder
5319 (begin
5320 (use-modules (guix build utils))
5321 (let ((target (string-append (assoc-ref %outputs "out")
5322 "/share/texmf-dist/tex/latex/readarray")))
5323 (mkdir-p target)
5324 (copy-recursively (assoc-ref %build-inputs "source") target)
5325 #t))))
5326 (propagated-inputs
5327 `(("texlive-generic-listofitems" ,texlive-generic-listofitems)))
5328 (home-page "https://www.ctan.org/pkg/readarray")
5329 (synopsis "Read, store and recall array-formatted data")
5330 (description
5331 "This package allows the user to input formatted data into elements of a
5332 2-D or 3-D array and to recall that data at will by individual cell number.
5333 The data can be but need not be numerical in nature. It can be, for example,
5334 formatted text.")
5335 (license license:lppl1.3)))
5336
5337 (define-public texlive-latex-verbatimbox
5338 (package
5339 (name "texlive-latex-verbatimbox")
5340 (version (number->string %texlive-revision))
5341 (source (origin
5342 (method svn-fetch)
5343 (uri (svn-reference
5344 (url (string-append "svn://www.tug.org/texlive/tags/"
5345 %texlive-tag "/Master/texmf-dist/"
5346 "/tex/latex/verbatimbox"))
5347 (revision %texlive-revision)))
5348 (file-name (string-append name "-" version "-checkout"))
5349 (sha256
5350 (base32
5351 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
5352 (build-system trivial-build-system)
5353 (arguments
5354 `(#:modules ((guix build utils))
5355 #:builder
5356 (begin
5357 (use-modules (guix build utils))
5358 (let ((target (string-append (assoc-ref %outputs "out")
5359 "/share/texmf-dist/tex/latex/verbatimbox")))
5360 (mkdir-p target)
5361 (copy-recursively (assoc-ref %build-inputs "source") target)
5362 #t))))
5363 (propagated-inputs
5364 `(("texlive-latex-readarray" ,texlive-latex-readarray)))
5365 (home-page "https://www.ctan.org/pkg/verbatimbox")
5366 (synopsis "Deposit verbatim text in a box")
5367 (description
5368 "The package provides a @code{verbbox} environment to place its contents
5369 into a globally available box, or into a box specified by the user. The
5370 global box may then be used in a variety of situations (for example, providing
5371 a replica of the @code{boxedverbatim} environment itself). A valuable use is
5372 in places where the standard @code{verbatim} environment (which is based on a
5373 @code{trivlist}) may not appear.")
5374 (license license:lppl1.3+)))
5375
5376 (define-public texlive-latex-examplep
5377 (package
5378 (name "texlive-latex-examplep")
5379 (version (number->string %texlive-revision))
5380 (source (origin
5381 (method svn-fetch)
5382 (uri (svn-reference
5383 (url (string-append "svn://www.tug.org/texlive/tags/"
5384 %texlive-tag "/Master/texmf-dist/"
5385 "/tex/latex/examplep"))
5386 (revision %texlive-revision)))
5387 (file-name (string-append name "-" version "-checkout"))
5388 (sha256
5389 (base32
5390 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
5391 (build-system trivial-build-system)
5392 (arguments
5393 `(#:modules ((guix build utils))
5394 #:builder
5395 (begin
5396 (use-modules (guix build utils))
5397 (let ((target (string-append (assoc-ref %outputs "out")
5398 "/share/texmf-dist/tex/latex/examplep")))
5399 (mkdir-p target)
5400 (copy-recursively (assoc-ref %build-inputs "source") target)
5401 #t))))
5402 (home-page "https://www.ctan.org/pkg/examplep")
5403 (synopsis "Verbatim phrases and listings in LaTeX")
5404 (description
5405 "Examplep provides sophisticated features for typesetting verbatim source
5406 code listings, including the display of the source code and its compiled LaTeX
5407 or METAPOST output side-by-side, with automatic width detection and enabled
5408 page breaks (in the source), without the need for specifying the source twice.
5409 Special care is taken that section, page and footnote numbers do not interfere
5410 with the main document. For typesetting short verbatim phrases, a replacement
5411 for the @code{\\verb} command is also provided in the package, which can be
5412 used inside tables and moving arguments such as footnotes and section
5413 titles.")
5414 ;; No version of the GPL is specified.
5415 (license license:gpl3+)))
5416
5417 (define-public texlive-generic-xypic
5418 (package
5419 (name "texlive-generic-xypic")
5420 (version (number->string %texlive-revision))
5421 (source
5422 (origin
5423 (method svn-fetch)
5424 (uri (svn-reference
5425 (url (string-append "svn://www.tug.org/texlive/tags/"
5426 %texlive-tag "/Master/texmf-dist/"
5427 "/tex/generic/xypic"))
5428 (revision %texlive-revision)))
5429 (file-name (string-append name "-" version "-checkout"))
5430 (sha256
5431 (base32
5432 "1g5cyxwdfznq4lk9zl6fkjkapmhmwd2cm4m5aibxj20qgwnaggfz"))))
5433 (build-system trivial-build-system)
5434 (arguments
5435 `(#:modules ((guix build utils))
5436 #:builder
5437 (begin
5438 (use-modules (guix build utils))
5439 (let ((target (string-append (assoc-ref %outputs "out")
5440 "/share/texmf-dist/tex/generic/xypic")))
5441 (mkdir-p target)
5442 (copy-recursively (assoc-ref %build-inputs "source") target)
5443 #t))))
5444 (home-page "https://www.ctan.org/pkg/xypic")
5445 (synopsis "Flexible diagramming macros for TeX")
5446 (description
5447 "A package for typesetting a variety of graphs and diagrams with TeX.
5448 Xy-pic works with most formats (including LaTeX, AMS-LaTeX, AMS-TeX, and plain
5449 TeX).")
5450 (license license:gpl3+)))
5451
5452 (define-public texlive-fonts-xypic
5453 (package
5454 (name "texlive-fonts-xypic")
5455 (version (number->string %texlive-revision))
5456 (source (origin
5457 (method svn-fetch)
5458 (uri (svn-reference
5459 (url (string-append "svn://www.tug.org/texlive/tags/"
5460 %texlive-tag "/Master/texmf-dist/"
5461 "/fonts/source/public/xypic"))
5462 (revision %texlive-revision)))
5463 (file-name (string-append name "-" version "-checkout"))
5464 (sha256
5465 (base32
5466 "0p20v1257kwsqnrk98cdhhiz2viv8l3ly4xay4by0an3j37m9xs3"))))
5467 (build-system trivial-build-system)
5468 (arguments
5469 `(#:modules ((guix build utils)
5470 (ice-9 match))
5471 #:builder
5472 (begin
5473 (use-modules (guix build utils)
5474 (ice-9 match))
5475 (let ((root (string-append (assoc-ref %outputs "out")
5476 "/share/texmf-dist/"))
5477 (pkgs '(("source" . "fonts/source/public/xypic")
5478 ("xypic-afm" . "fonts/afm/public/xypic")
5479 ("xypic-type1" . "fonts/type1/public/xypic")
5480 ("xypic-enc" . "fonts/enc/dvips/xypic"))))
5481 (for-each (match-lambda
5482 ((pkg . dir)
5483 (let ((target (string-append root dir)))
5484 (mkdir-p target)
5485 (copy-recursively (assoc-ref %build-inputs pkg)
5486 target))))
5487 pkgs)
5488 #t))))
5489 (native-inputs
5490 `(("xypic-afm"
5491 ,(origin
5492 (method svn-fetch)
5493 (uri (svn-reference
5494 (url (string-append "svn://www.tug.org/texlive/tags/"
5495 %texlive-tag "/Master/texmf-dist/"
5496 "/fonts/afm/public/xypic"))
5497 (revision %texlive-revision)))
5498 (file-name (string-append name "-afm-" version "-checkout"))
5499 (sha256
5500 (base32
5501 "149xdijxp8lw3s0qv2aqxxxyyn748z57dpr596rjvkqdffpnsddh"))))
5502 ("xypic-type1"
5503 ,(origin
5504 (method svn-fetch)
5505 (uri (svn-reference
5506 (url (string-append "svn://www.tug.org/texlive/tags/"
5507 %texlive-tag "/Master/texmf-dist/"
5508 "/fonts/type1/public/xypic"))
5509 (revision %texlive-revision)))
5510 (file-name (string-append name "-type1-" version "-checkout"))
5511 (sha256
5512 (base32
5513 "1bln89wib7g3hcv2jny3qi6jb73k9d2vbgx3wnnjwp3ryg0846if"))))
5514 ("xypic-enc"
5515 ,(origin
5516 (method svn-fetch)
5517 (uri (svn-reference
5518 (url (string-append "svn://www.tug.org/texlive/tags/"
5519 %texlive-tag "/Master/texmf-dist/"
5520 "/fonts/enc/dvips/xypic"))
5521 (revision %texlive-revision)))
5522 (file-name (string-append name "-enc-" version "-checkout"))
5523 (sha256
5524 (base32
5525 "0yi8vms3203l3p5slnhrrlzzp0f0jw77fkcvcaicrz2vmw9z99x7"))))))
5526 (home-page "https://www.ctan.org/pkg/xypic")
5527 (synopsis "Fonts for XY-pic")
5528 (description "This package provides the XY-pic fonts.")
5529 (license license:gpl3+)))
5530
5531 (define-public texlive-bibtex
5532 (package
5533 (name "texlive-bibtex")
5534 (version (number->string %texlive-revision))
5535 (source
5536 (origin
5537 (method svn-fetch)
5538 (uri (svn-reference
5539 (url (string-append "svn://www.tug.org/texlive/tags/"
5540 %texlive-tag "/Master/texmf-dist/"
5541 "/bibtex"))
5542 (revision %texlive-revision)))
5543 (file-name (string-append name "-" version "-checkout"))
5544 (sha256
5545 (base32
5546 "0hnbs0s1znbn32hfcsyijl39z81sdb00jf092a4blqz421qs2mbv"))))
5547 (build-system trivial-build-system)
5548 (arguments
5549 `(#:modules ((guix build utils))
5550 #:builder
5551 (begin
5552 (use-modules (guix build utils))
5553 (let ((target (string-append (assoc-ref %outputs "out")
5554 "/share/texmf-dist/bibtex")))
5555 (mkdir-p target)
5556 (copy-recursively (assoc-ref %build-inputs "source") target)
5557 #t))))
5558 (home-page "https://www.ctan.org/pkg/bibtex")
5559 (synopsis "Process bibliographies for LaTeX")
5560 (description
5561 "BibTeX allows the user to store his citation data in generic form, while
5562 printing citations in a document in the form specified by a BibTeX style, to
5563 be specified in the document itself (one often needs a LaTeX citation-style
5564 package, such as @command{natbib} as well).")
5565 (license license:knuth)))
5566
5567 (define-public texlive-fonts-charter
5568 (package
5569 (name "texlive-fonts-charter")
5570 (version (number->string %texlive-revision))
5571 (source (origin
5572 (method svn-fetch)
5573 (uri (svn-reference
5574 (url (string-append "svn://www.tug.org/texlive/tags/"
5575 %texlive-tag "/Master/texmf-dist/"
5576 "/fonts/type1/bitstrea/charter"))
5577 (revision %texlive-revision)))
5578 (file-name (string-append name "-" version "-checkout"))
5579 (sha256
5580 (base32
5581 "0yvib45xxff3jm5270zij4q888pivbc18cqs7lz4pqfhn1am4wnv"))))
5582 (build-system trivial-build-system)
5583 (arguments
5584 `(#:modules ((guix build utils)
5585 (ice-9 match))
5586 #:builder
5587 (begin
5588 (use-modules (guix build utils)
5589 (ice-9 match))
5590 (let ((root (string-append (assoc-ref %outputs "out")
5591 "/share/texmf-dist/"))
5592 (pkgs '(("source" . "fonts/type1/bitstrea/charter")
5593 ("charter-afm" . "fonts/afm/bitstrea/charter")
5594 ("charter-tfm" . "fonts/tfm/bitstrea/charter"))))
5595 (for-each (match-lambda
5596 ((pkg . dir)
5597 (let ((target (string-append root dir)))
5598 (mkdir-p target)
5599 (copy-recursively (assoc-ref %build-inputs pkg)
5600 target))))
5601 pkgs)
5602 #t))))
5603 (native-inputs
5604 `(("charter-afm"
5605 ,(origin
5606 (method svn-fetch)
5607 (uri (svn-reference
5608 (url (string-append "svn://www.tug.org/texlive/tags/"
5609 %texlive-tag "/Master/texmf-dist/"
5610 "/fonts/afm/bitstrea/charter"))
5611 (revision %texlive-revision)))
5612 (file-name (string-append name "-afm-" version "-checkout"))
5613 (sha256
5614 (base32
5615 "02nbkqrlr3vypnzslmr7dxg1353mmc0rl4ynx0s6qbvf313fq76a"))))
5616 ("charter-tfm"
5617 ,(origin
5618 (method svn-fetch)
5619 (uri (svn-reference
5620 (url (string-append "svn://www.tug.org/texlive/tags/"
5621 %texlive-tag "/Master/texmf-dist/"
5622 "/fonts/tfm/bitstrea/charter"))
5623 (revision %texlive-revision)))
5624 (file-name (string-append name "-tfm-" version "-checkout"))
5625 (sha256
5626 (base32
5627 "0j7ci9vprivbhac70aq0z7m23hqcpx1g0i3wp1k0h8ilhimj80xk"))))))
5628 (home-page "https://www.ctan.org/pkg/charter")
5629 (synopsis "Charter fonts for TeX")
5630 (description "A commercial text font donated for the common good. Support
5631 for use with LaTeX is available in @code{freenfss}, part of
5632 @command{psnfss}. ")
5633 (license (license:non-copyleft (string-append "http://mirrors.ctan.org/"
5634 "fonts/charter/readme.charter")))))
5635
5636 (define-public texlive-context-base
5637 (package
5638 (name "texlive-context-base")
5639 (version (number->string %texlive-revision))
5640 (source (origin
5641 (method svn-fetch)
5642 (uri (svn-reference
5643 (url (string-append "svn://www.tug.org/texlive/tags/"
5644 %texlive-tag "/Master/texmf-dist/"
5645 "/tex/context/base"))
5646 (revision %texlive-revision)))
5647 (file-name (string-append name "-" version "-checkout"))
5648 (sha256
5649 (base32
5650 "0rlx4qqijms1n64gjx475kvip8l322fh7v17zkmwp1l1g0w3vlyz"))))
5651 (build-system trivial-build-system)
5652 (arguments
5653 `(#:modules ((guix build utils))
5654 #:builder
5655 (begin
5656 (use-modules (guix build utils))
5657 (let ((target (string-append (assoc-ref %outputs "out")
5658 "/share/texmf-dist/tex/context/case")))
5659 (mkdir-p target)
5660 (copy-recursively (assoc-ref %build-inputs "source") target)
5661 #t))))
5662 (home-page "https://www.ctan.org/pkg/context")
5663 (synopsis "Full featured, parameter driven macro package for TeX")
5664 (description "A full featured, parameter driven macro package, which fully
5665 supports advanced interactive documents. See the ConTeXt garden for a wealth
5666 of support information.")
5667 (license license:gpl2+)))