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