gnu: texlive-latex-l3kernel: Declare a source file-name.
[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 Ricardo Wurmus <rekado@elephly.net>
10 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
11 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
12 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
13 ;;;
14 ;;; This file is part of GNU Guix.
15 ;;;
16 ;;; GNU Guix is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
20 ;;;
21 ;;; GNU Guix is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
25 ;;;
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28
29 (define-module (gnu packages tex)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (guix packages)
32 #:use-module (guix download)
33 #:use-module (guix build-system gnu)
34 #:use-module (guix build-system perl)
35 #:use-module (guix build-system trivial)
36 #:use-module (guix build-system texlive)
37 #:use-module (guix utils)
38 #:use-module (guix git-download)
39 #:use-module (guix svn-download)
40 #:use-module (gnu packages)
41 #:use-module (gnu packages autotools)
42 #:use-module (gnu packages bash)
43 #:use-module (gnu packages compression)
44 #:use-module (gnu packages fontutils)
45 #:use-module (gnu packages gd)
46 #:use-module (gnu packages ghostscript)
47 #:use-module (gnu packages gtk)
48 #:use-module (gnu packages icu4c)
49 #:use-module (gnu packages image)
50 #:use-module (gnu packages lua)
51 #:use-module (gnu packages multiprecision)
52 #:use-module (gnu packages pdf)
53 #:use-module (gnu packages perl)
54 #:use-module (gnu packages perl-check)
55 #:use-module (gnu packages pkg-config)
56 #:use-module (gnu packages python)
57 #:use-module (gnu packages qt)
58 #:use-module (gnu packages ruby)
59 #:use-module (gnu packages shells)
60 #:use-module (gnu packages base)
61 #:use-module (gnu packages web)
62 #:use-module (gnu packages xml)
63 #:use-module (gnu packages xorg)
64 #:use-module (gnu packages xdisorg)
65 #:autoload (gnu packages texinfo) (texinfo)
66 #:use-module (ice-9 ftw)
67 #:use-module (ice-9 match)
68 #:use-module ((srfi srfi-1) #:hide (zip)))
69
70 (define texlive-extra-src
71 (origin
72 (method url-fetch)
73 (uri "ftp://tug.org/historic/systems/texlive/2017/texlive-20170524-extra.tar.xz")
74 (sha256 (base32
75 "0zvd2zskk78ig114mfj24g15qys41hzqv59fmqpirdbgq9c9gr5g"))))
76
77 (define texlive-texmf-src
78 (origin
79 (method url-fetch)
80 (uri "ftp://tug.org/historic/systems/texlive/2017/texlive-20170524-texmf.tar.xz")
81 (sha256 (base32
82 "1v69y3kgkbk24f7s4dfkknwd317mqmck5jgpyb35wqgqfy5p0qrz"))))
83
84 (define-public texlive-bin
85 (package
86 (name "texlive-bin")
87 (version "20170524")
88 (source
89 (origin
90 (method url-fetch)
91 (uri (string-append "ftp://tug.org/historic/systems/texlive/2017/"
92 "texlive-" version "-source.tar.xz"))
93 (patches
94 (list
95 ;; This is required for compatibility with Poppler >= 0.58.
96 ;; See <http://tutex.tug.org/pipermail/tex-k/2017-September/002809.html>
97 ;; and <https://bugs.archlinux.org/task/55720> for some discussion.
98 (origin
99 (method url-fetch)
100 (uri (string-append "https://git.archlinux.org/svntogit/packages.git/plain"
101 "/trunk/texlive-poppler-0.59.patch?h=packages/texlive-bin"
102 "&id=ba2de374e2b21ecc4b85cc9777f2f15c4d356c61"))
103 (file-name "texlive-poppler-compat.patch")
104 (sha256
105 (base32
106 "1c4ikq4kxw48bi3i33bzpabrjvbk01fwjr2lz20gkc9kv8l0bg3n")))))
107 (sha256 (base32
108 "1amjrxyasplv4alfwcxwnw4nrx7dz2ydmddkq16k6hg90i9njq81"))))
109 (build-system gnu-build-system)
110 (inputs
111 `(("texlive-extra-src" ,texlive-extra-src)
112 ("cairo" ,cairo)
113 ("fontconfig" ,fontconfig)
114 ("fontforge" ,fontforge)
115 ("freetype" ,freetype)
116 ("gd" ,gd)
117 ("gmp" ,gmp)
118 ("ghostscript" ,ghostscript)
119 ("graphite2" ,graphite2)
120 ("harfbuzz" ,harfbuzz)
121 ("icu4c" ,icu4c)
122 ("libpaper" ,libpaper)
123 ("libpng" ,libpng)
124 ("libxaw" ,libxaw)
125 ("libxt" ,libxt)
126 ("mpfr" ,mpfr)
127 ("perl" ,perl)
128 ("pixman" ,pixman)
129 ("poppler" ,poppler)
130 ("potrace" ,potrace)
131 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
132 ("ruby" ,ruby)
133 ("tcsh" ,tcsh)
134 ("teckit" ,teckit)
135 ("zlib" ,zlib)
136 ("zziplib" ,zziplib)))
137 (native-inputs
138 `(("pkg-config" ,pkg-config)))
139 (arguments
140 `(#:out-of-source? #t
141 #:configure-flags
142 `("--disable-native-texlive-build"
143 ;; XXX: This is needed because recent Poppler requires C++11 or later.
144 ;; Remove after switch to GCC >= 6.
145 "CXXFLAGS=-std=gnu++11"
146 "--with-system-cairo"
147 "--with-system-freetype2"
148 "--with-system-gd"
149 "--with-system-gmp"
150 "--with-system-graphite2"
151 "--with-system-harfbuzz"
152 "--with-system-icu"
153 "--with-system-libgs"
154 "--with-system-libpaper"
155 "--with-system-libpng"
156 "--with-system-mpfr"
157 "--with-system-pixman"
158 "--with-system-poppler"
159 "--with-system-potrace"
160 "--with-system-teckit"
161 "--with-system-xpdf"
162 "--with-system-zlib"
163 "--with-system-zziplib")
164
165 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
166 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
167 #:tests? ,(let ((s (or (%current-target-system)
168 (%current-system))))
169 (not (or (string-prefix? "aarch64" s)
170 (string-prefix? "mips64" s))))
171 #:phases
172 (modify-phases %standard-phases
173 (add-after 'install 'postint
174 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
175 (let* ((out (assoc-ref outputs "out"))
176 (share (string-append out "/share"))
177 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
178 (unpack (assoc-ref %standard-phases 'unpack))
179 (patch-source-shebangs
180 (assoc-ref %standard-phases 'patch-source-shebangs)))
181 ;; Create symbolic links for the latex variants and their
182 ;; man pages.
183 (with-directory-excursion (string-append out "/bin/")
184 (for-each symlink
185 '("pdftex" "pdftex" "xetex" "luatex")
186 '("latex" "pdflatex" "xelatex" "lualatex")))
187 (with-directory-excursion (string-append share "/man/man1/")
188 (symlink "luatex.1" "lualatex.1"))
189 ;; Unpack texlive-extra and install tlpkg.
190 (mkdir "texlive-extra")
191 (with-directory-excursion "texlive-extra"
192 (apply unpack (list #:source texlive-extra))
193 (apply patch-source-shebangs (list #:source texlive-extra))
194 (system* "mv" "tlpkg" share))))))))
195 (synopsis "TeX Live, a package of the TeX typesetting system")
196 (description
197 "TeX Live provides a comprehensive TeX document production system.
198 It includes all the major TeX-related programs, macro packages, and fonts
199 that are free software, including support for many languages around the
200 world.
201
202 This package contains the binaries.")
203 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
204 (home-page "https://www.tug.org/texlive/")))
205
206 (define-public texlive-dvips
207 (package
208 (name "texlive-dvips")
209 (version (number->string %texlive-revision))
210 (source (origin
211 (method svn-fetch)
212 (uri (svn-reference
213 (url (string-append "svn://www.tug.org/texlive/tags/"
214 %texlive-tag "/Master/texmf-dist/"
215 "/dvips"))
216 (revision %texlive-revision)))
217 (file-name (string-append name "-" version "-checkout"))
218 (sha256
219 (base32
220 "0fcy2hpapbj01ncpjj3v39yhr0jjxb6rm13qaxjjw66s3vydxls1"))))
221 (build-system trivial-build-system)
222 (arguments
223 `(#:modules ((guix build utils))
224 #:builder
225 (begin
226 (use-modules (guix build utils))
227 (let* ((root (string-append (assoc-ref %outputs "out")
228 "/share/texmf-dist"))
229 (dvips (string-append root "/dvips"))
230 (maps (string-append root "/fonts/map/dvips/tetex"))
231 (encs (string-append root "/fonts/enc/dvips/base")))
232 (mkdir-p dvips)
233 (copy-recursively (assoc-ref %build-inputs "source") dvips)
234 (mkdir-p maps)
235 (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps)
236 (mkdir-p encs)
237 (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs)
238 #t))))
239 (native-inputs
240 `(("dvips-font-maps"
241 ,(origin
242 (method svn-fetch)
243 (uri (svn-reference
244 (url (string-append "svn://www.tug.org/texlive/tags/"
245 %texlive-tag "/Master/texmf-dist/"
246 "/fonts/map/dvips/tetex"))
247 (revision %texlive-revision)))
248 (file-name (string-append "dvips-font-maps-" version "-checkout"))
249 (sha256
250 (base32
251 "100208pg7q6lj7swiq9p9287nn6b64bl62bnlaxpjni9y2kdrqy5"))))
252 ("dvips-base-enc"
253 ,(origin
254 (method svn-fetch)
255 (uri (svn-reference
256 (url (string-append "svn://www.tug.org/texlive/tags/"
257 %texlive-tag "/Master/texmf-dist/"
258 "/fonts/enc/dvips/base"))
259 (revision %texlive-revision)))
260 (file-name (string-append "dvips-base-enc-" version "-checkout"))
261 (sha256
262 (base32
263 "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy"))))))
264 (home-page "https://www.ctan.org/pkg/dvips")
265 (synopsis "DVI to PostScript drivers")
266 (description "This package provides files needed for converting DVI files
267 to PostScript.")
268 ;; Various free software licenses apply to individual files.
269 (license (list license:lppl1.3c+
270 license:expat
271 license:lgpl3+))))
272
273 (define-public texlive-generic-unicode-data
274 (package
275 (name "texlive-generic-unicode-data")
276 (version (number->string %texlive-revision))
277 (source (origin
278 (method svn-fetch)
279 (uri (svn-reference
280 (url (string-append "svn://www.tug.org/texlive/tags/"
281 %texlive-tag "/Master/texmf-dist/"
282 "/tex/generic/unicode-data"))
283 (revision %texlive-revision)))
284 (file-name (string-append name "-" version "-checkout"))
285 (sha256
286 (base32
287 "0ivrhp6jz31pl4z841g4ws41lmvdiwz4sslmhf02inlib79gz6r2"))))
288 (build-system trivial-build-system)
289 (arguments
290 `(#:modules ((guix build utils))
291 #:builder
292 (begin
293 (use-modules (guix build utils))
294 (let ((target (string-append (assoc-ref %outputs "out")
295 "/share/texmf-dist/tex/generic/unicode-data")))
296 (mkdir-p target)
297 (copy-recursively (assoc-ref %build-inputs "source") target)
298 #t))))
299 (home-page "https://www.ctan.org/pkg/unicode-data")
300 (synopsis "Unicode data and loaders for TeX")
301 (description "This bundle provides generic access to Unicode Consortium
302 data for TeX use. It contains a set of text files provided by the Unicode
303 Consortium which are currently all from Unicode 8.0.0, with the exception of
304 @code{MathClass.txt} which is not currently part of the Unicode Character
305 Database. Accompanying these source data are generic TeX loader files
306 allowing this data to be used as part of TeX runs, in particular in building
307 format files. Currently there are two loader files: one for general character
308 set up and one for initializing XeTeX character classes as has been carried
309 out to date by @code{unicode-letters.tex}. ")
310 (license license:lppl1.3c+)))
311
312 (define-public texlive-generic-dehyph-exptl
313 (package
314 (name "texlive-generic-dehyph-exptl")
315 (version (number->string %texlive-revision))
316 (source (origin
317 (method svn-fetch)
318 (uri (svn-reference
319 (url (string-append "svn://www.tug.org/texlive/tags/"
320 %texlive-tag "/Master/texmf-dist/"
321 "/tex/generic/dehyph-exptl"))
322 (revision %texlive-revision)))
323 (file-name (string-append name "-" version "-checkout"))
324 (sha256
325 (base32
326 "1l9wgv99qq0ysvlxqpj4g8bl0dywbzra4g8m2kmpg2fb0i0hczap"))))
327 (build-system trivial-build-system)
328 (arguments
329 `(#:modules ((guix build utils))
330 #:builder
331 (begin
332 (use-modules (guix build utils))
333 (let ((target (string-append (assoc-ref %outputs "out")
334 "/share/texmf-dist/tex/generic/dehyph-exptl")))
335 (mkdir-p target)
336 (copy-recursively (assoc-ref %build-inputs "source") target)
337 #t))))
338 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
339 (synopsis "Hyphenation patterns for German")
340 (description "The package provides experimental hyphenation patterns for
341 the German language, covering both traditional and reformed orthography. The
342 patterns can be used with packages Babel and hyphsubst from the Oberdiek
343 bundle.")
344 ;; Hyphenation patterns are under the Expat license; documentation is
345 ;; under LPPL.
346 (license (list license:expat license:lppl))))
347
348 (define-public texlive-generic-tex-ini-files
349 (package
350 (name "texlive-generic-tex-ini-files")
351 (version (number->string %texlive-revision))
352 (source (origin
353 (method svn-fetch)
354 (uri (svn-reference
355 (url (string-append "svn://www.tug.org/texlive/tags/"
356 %texlive-tag "/Master/texmf-dist/"
357 "/tex/generic/tex-ini-files"))
358 (revision %texlive-revision)))
359 (file-name (string-append name "-" version "-checkout"))
360 (sha256
361 (base32
362 "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5"))))
363 (build-system trivial-build-system)
364 (arguments
365 `(#:modules ((guix build utils))
366 #:builder
367 (begin
368 (use-modules (guix build utils))
369 (let ((target (string-append (assoc-ref %outputs "out")
370 "/share/texmf-dist/tex/generic/tex-ini-files")))
371 (mkdir-p target)
372 (copy-recursively (assoc-ref %build-inputs "source") target)
373 #t))))
374 (home-page "https://www.ctan.org/pkg/tex-ini-files")
375 (synopsis "Files for creating TeX formats")
376 (description "This bundle provides a collection of model \".ini\" files
377 for creating TeX formats. These files are commonly used to introduced
378 distribution-dependent variations in formats. They are also used to
379 allow existing format source files to be used with newer engines, for example
380 to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
381 (license license:public-domain)))
382
383 (define-public texlive-generic-hyph-utf8
384 (package
385 (name "texlive-generic-hyph-utf8")
386 (version (number->string %texlive-revision))
387 (source (origin
388 (method svn-fetch)
389 (uri (svn-reference
390 (url (string-append "svn://www.tug.org/texlive/tags/"
391 %texlive-tag "/Master/texmf-dist/"
392 "/tex/generic/hyph-utf8"))
393 (revision %texlive-revision)))
394 (file-name (string-append name "-" version "-checkout"))
395 (sha256
396 (base32
397 "0ghizcz7ps16dzfqf66wwg5i181assc6qsm0g7g5dbmp909931vi"))))
398 (build-system trivial-build-system)
399 (arguments
400 `(#:modules ((guix build utils))
401 #:builder
402 (begin
403 (use-modules (guix build utils))
404 (let ((target (string-append (assoc-ref %outputs "out")
405 "/share/texmf-dist/tex/generic/hyph-utf8")))
406 (mkdir-p target)
407 (copy-recursively (assoc-ref %build-inputs "source") target)
408 #t))))
409 (home-page "https://ctan.org/pkg/hyph-utf8")
410 (synopsis "Hyphenation patterns expressed in UTF-8")
411 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
412 hyphenation patterns in UTF-8 format, whereas older systems require
413 hyphenation patterns in the 8-bit encoding of the font in use (such encodings
414 are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
415 etc). The present package offers a collection of conversions of existing
416 patterns to UTF-8 format, together with converters for use with 8-bit fonts in
417 older systems. Since hyphenation patterns for Knuthian-style TeX systems are
418 only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
419 converters, will completely supplant the older patterns.")
420 ;; Individual files each have their own license. Most of these files are
421 ;; independent hyphenation patterns.
422 (license (list license:lppl1.0+
423 license:lppl1.2+
424 license:lppl1.3
425 license:lppl1.3+
426 license:lppl1.3a+
427 license:lgpl2.1
428 license:lgpl2.1+
429 license:lgpl3+
430 license:gpl2+
431 license:gpl3+
432 license:mpl1.1
433 license:asl2.0
434 license:expat
435 license:bsd-3
436 license:cc0
437 license:public-domain
438 license:wtfpl2))))
439
440 (define-public texlive-metafont-base
441 (package
442 (name "texlive-metafont-base")
443 (version (number->string %texlive-revision))
444 (source (origin
445 (method svn-fetch)
446 (uri (svn-reference
447 (url (string-append "svn://www.tug.org/texlive/tags/"
448 %texlive-tag "/Master/texmf-dist/"
449 "/metafont"))
450 (revision %texlive-revision)))
451 (file-name (string-append name "-" version "-checkout"))
452 (sha256
453 (base32
454 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
455 (build-system gnu-build-system)
456 (arguments
457 `(#:tests? #f ; no test target
458 #:phases
459 (modify-phases %standard-phases
460 (delete 'configure)
461 (replace 'build
462 (lambda* (#:key inputs #:allow-other-keys)
463 (let ((cwd (getcwd)))
464 (setenv "MFINPUTS"
465 (string-append cwd "/base:"
466 cwd "/misc:"
467 cwd "/roex:"
468 cwd "/feynmf:"
469 cwd "/mfpic:"
470 cwd "/config")))
471 (mkdir "build")
472 (with-directory-excursion "build"
473 (zero? (system* "inimf" "mf.mf")))))
474 (replace 'install
475 (lambda* (#:key outputs #:allow-other-keys)
476 (let* ((out (assoc-ref outputs "out"))
477 (base (string-append out "/share/texmf-dist/web2c"))
478 (mf (string-append out "/share/texmf-dist/metafont/base")))
479 (mkdir-p base)
480 (mkdir-p mf)
481 (install-file "build/mf.base" base)
482 (copy-recursively "base" mf)
483 #t))))))
484 (native-inputs
485 `(("texlive-bin" ,texlive-bin)))
486 (home-page "https://www.ctan.org/pkg/metafont")
487 (synopsis "Metafont base files")
488 (description "This package provides the Metafont base files needed to
489 build fonts using the Metafont system.")
490 (license license:knuth)))
491
492 (define-public texlive-fontname
493 (package
494 (name "texlive-fontname")
495 (version (number->string %texlive-revision))
496 (source (origin
497 (method svn-fetch)
498 (uri (svn-reference
499 (url (string-append "svn://www.tug.org/texlive/tags/"
500 %texlive-tag "/Master/texmf-dist/"
501 "/fonts/map/fontname"))
502 (revision %texlive-revision)))
503 (file-name (string-append name "-" version "-checkout"))
504 (sha256
505 (base32
506 "0cssbzcx15221dynp5sii72qh4l18mwkr14n8w1xb19j8pbaqasz"))))
507 (build-system trivial-build-system)
508 (arguments
509 `(#:modules ((guix build utils))
510 #:builder
511 (begin
512 (use-modules (guix build utils))
513 (let ((target (string-append (assoc-ref %outputs "out")
514 "/share/texmf-dist/fonts/map/fontname")))
515 (mkdir-p target)
516 (copy-recursively (assoc-ref %build-inputs "source") target)
517 #t))))
518 (home-page "https://www.ctan.org/pkg/fontname")
519 (synopsis "Scheme for naming fonts in TeX")
520 (description "This is Fontname, a naming scheme for (the base part of)
521 external TeX font filenames. This makes at most eight-character names
522 from (almost) arbitrarily complex font names, thus helping portability of TeX
523 documents.")
524 (license license:public-domain)))
525
526 (define-public texlive-fonts-cm
527 (package
528 (name "texlive-fonts-cm")
529 (version (number->string %texlive-revision))
530 (source (origin
531 (method svn-fetch)
532 (uri (svn-reference
533 (url (string-append "svn://www.tug.org/texlive/tags/"
534 %texlive-tag "/Master/texmf-dist/"
535 "/fonts/source/public/cm"))
536 (revision %texlive-revision)))
537 (file-name (string-append name "-" version "-checkout"))
538 (sha256
539 (base32
540 "045k5b9rdmbxpy1a3006l1x96z1rd18vg3cwrvnld9bqybw5qz44"))))
541 (build-system gnu-build-system)
542 (arguments
543 `(#:modules ((guix build gnu-build-system)
544 (guix build utils)
545 (srfi srfi-1)
546 (srfi srfi-26))
547 #:tests? #f ; no tests
548 #:phases
549 (modify-phases %standard-phases
550 (delete 'configure)
551 (replace 'build
552 (lambda* (#:key inputs #:allow-other-keys)
553 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
554 ;; Tell mf where to find mf.base
555 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
556 ;; Tell mf where to look for source files
557 (setenv "MFINPUTS"
558 (string-append (getcwd) ":"
559 mf "/share/texmf-dist/metafont/base")))
560 (mkdir "build")
561 (every (lambda (font)
562 (format #t "building font ~a\n" font)
563 (zero? (system* "mf" "-progname=mf"
564 "-output-directory=build"
565 (string-append "\\"
566 "mode:=ljfour; "
567 "mag:=1; "
568 "batchmode; "
569 "input "
570 (basename font ".mf")))))
571 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
572 (replace 'install
573 (lambda* (#:key outputs #:allow-other-keys)
574 (let* ((out (assoc-ref outputs "out"))
575 (tfm (string-append
576 out "/share/texmf-dist/fonts/tfm/public/cm"))
577 (mf (string-append
578 out "/share/texmf-dist/fonts/source/public/cm")))
579 (for-each (cut install-file <> tfm)
580 (find-files "build" "\\.*"))
581 (for-each (cut install-file <> mf)
582 (find-files "." "\\.mf"))
583 #t))))))
584 (native-inputs
585 `(("texlive-bin" ,texlive-bin)
586 ("texlive-metafont-base" ,texlive-metafont-base)))
587 (home-page "https://www.ctan.org/pkg/cm")
588 (synopsis "Computer Modern fonts for TeX")
589 (description "This package provides the Computer Modern fonts by Donald
590 Knuth. The Computer Modern font family is a large collection of text,
591 display, and mathematical fonts in a range of styles, based on Monotype Modern
592 8A.")
593 (license license:knuth)))
594
595 (define-public texlive-fonts-knuth-lib
596 (package
597 (name "texlive-fonts-knuth-lib")
598 (version (number->string %texlive-revision))
599 (source (origin
600 (method svn-fetch)
601 (uri (svn-reference
602 (url (string-append "svn://www.tug.org/texlive/tags/"
603 %texlive-tag "/Master/texmf-dist/"
604 "/fonts/source/public/knuth-lib"))
605 (revision %texlive-revision)))
606 (file-name (string-append name "-" version "-checkout"))
607 (sha256
608 (base32
609 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
610 (build-system gnu-build-system)
611 (arguments
612 `(#:modules ((guix build gnu-build-system)
613 (guix build utils)
614 (srfi srfi-26))
615 #:tests? #f ; no tests
616 #:phases
617 (modify-phases %standard-phases
618 (delete 'configure)
619 (replace 'build
620 (lambda* (#:key inputs #:allow-other-keys)
621 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
622 ;; Tell mf where to find mf.base
623 (setenv "MFBASES"
624 (string-append mf "/share/texmf-dist/web2c"))
625 ;; Tell mf where to look for source files
626 (setenv "MFINPUTS"
627 (string-append (getcwd) ":"
628 mf "/share/texmf-dist/metafont/base")))
629 (mkdir "build")
630 (zero? (system* "mf" "-progname=mf"
631 "-output-directory=build"
632 (string-append "\\"
633 "mode:=ljfour; "
634 "mag:=1; "
635 "batchmode; "
636 "input manfnt")))))
637 (replace 'install
638 (lambda* (#:key outputs #:allow-other-keys)
639 (let* ((out (assoc-ref outputs "out"))
640 (tfm (string-append
641 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
642 (mf (string-append
643 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
644 (for-each (cut install-file <> tfm)
645 (find-files "build" "\\.*"))
646 (for-each (cut install-file <> mf)
647 (find-files "." "\\.mf"))
648 #t))))))
649 (native-inputs
650 `(("texlive-bin" ,texlive-bin)
651 ("texlive-metafont-base" ,texlive-metafont-base)))
652 (home-page "https://www.ctan.org/pkg/knuth-lib")
653 (synopsis "Small library of METAFONT sources")
654 (description "This is a collection of core TeX and METAFONT macro files
655 from Donald Knuth, including the plain format, plain base, and the MF logo
656 fonts.")
657 (license license:knuth)))
658
659 (define-public texlive-fonts-latex
660 (package
661 (name "texlive-fonts-latex")
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/latex-fonts"))
669 (revision %texlive-revision)))
670 (file-name (string-append name "-" version "-checkout"))
671 (sha256
672 (base32
673 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
674 (build-system gnu-build-system)
675 (arguments
676 `(#:modules ((guix build gnu-build-system)
677 (guix build utils)
678 (srfi srfi-1)
679 (srfi srfi-26))
680 #:tests? #f ; no tests
681 #:phases
682 (modify-phases %standard-phases
683 (delete 'configure)
684 (replace 'build
685 (lambda* (#:key inputs #:allow-other-keys)
686 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
687 ;; Tell mf where to find mf.base
688 (setenv "MFBASES" (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 (assoc-ref inputs "texlive-fonts-cm")
694 "/share/texmf-dist/fonts/source/public/cm")))
695 (mkdir "build")
696 (every (lambda (font)
697 (format #t "building font ~a\n" font)
698 (zero? (system* "mf" "-progname=mf"
699 "-output-directory=build"
700 (string-append "\\"
701 "mode:=ljfour; "
702 "mag:=1; "
703 "batchmode; "
704 "input " font))))
705 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
706 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
707 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
708 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
709 "line10" "linew10"))))
710 (replace 'install
711 (lambda* (#:key outputs #:allow-other-keys)
712 (let* ((out (assoc-ref outputs "out"))
713 (tfm (string-append
714 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
715 (mf (string-append
716 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
717 (for-each (cut install-file <> tfm)
718 (find-files "build" "\\.*"))
719 (for-each (cut install-file <> mf)
720 (find-files "." "\\.mf"))
721 #t))))))
722 (native-inputs
723 `(("texlive-bin" ,texlive-bin)
724 ("texlive-metafont-base" ,texlive-metafont-base)
725 ("texlive-fonts-cm" ,texlive-fonts-cm)))
726 (home-page "https://www.ctan.org/pkg/latex-fonts")
727 (synopsis "Collection of fonts used in LaTeX distributions")
728 (description "This is a collection of fonts for use with standard LaTeX
729 packages and classes. It includes invisible fonts (for use with the slides
730 class), line and circle fonts (for use in the picture environment) and LaTeX
731 symbol fonts.")
732 (license license:lppl1.2+)))
733
734 (define-public texlive-fonts-amsfonts
735 (package
736 (name "texlive-fonts-amsfonts")
737 (version (number->string %texlive-revision))
738 (source (origin
739 (method svn-fetch)
740 (uri (svn-reference
741 (url (string-append "svn://www.tug.org/texlive/tags/"
742 %texlive-tag "/Master/texmf-dist/"
743 "/fonts/source/public/amsfonts"))
744 (revision %texlive-revision)))
745 (file-name (string-append name "-" version "-checkout"))
746 (sha256
747 (base32
748 "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
749 (build-system gnu-build-system)
750 (arguments
751 `(#:modules ((guix build gnu-build-system)
752 (guix build utils)
753 (srfi srfi-1)
754 (srfi srfi-26))
755 #:tests? #f ; no tests
756 #:phases
757 (modify-phases %standard-phases
758 (delete 'configure)
759 (replace 'build
760 (lambda* (#:key inputs #:allow-other-keys)
761 (let ((mf (assoc-ref inputs "texlive-metafont-base"))
762 (cwd (getcwd)))
763 ;; Tell mf where to find mf.base
764 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
765 ;; Tell mf where to look for source files
766 (setenv "MFINPUTS"
767 (string-append cwd ":"
768 cwd "/cmextra:"
769 cwd "/cyrillic:"
770 cwd "/dummy:"
771 cwd "/symbols:"
772 mf "/share/texmf-dist/metafont/base:"
773 (assoc-ref inputs "texlive-fonts-cm")
774 "/share/texmf-dist/fonts/source/public/cm")))
775 (mkdir "build")
776 (every (lambda (font)
777 (format #t "building font ~a\n" (basename font ".mf"))
778 (with-directory-excursion (dirname font)
779 (zero? (system* "mf" "-progname=mf"
780 "-output-directory=../build"
781 (string-append "\\"
782 "mode:=ljfour; "
783 "mag:=1; "
784 "nonstopmode; "
785 "input "
786 (getcwd) "/"
787 (basename font ".mf"))))))
788 (find-files "." "[0-9]+\\.mf$"))))
789 (replace 'install
790 (lambda* (#:key outputs #:allow-other-keys)
791 (let* ((out (assoc-ref outputs "out"))
792 (tfm (string-append
793 out "/share/texmf-dist/fonts/tfm/public/amsfonts"))
794 (mf (string-append
795 out "/share/texmf-dist/fonts/source/public/amsfonts")))
796 (for-each (cut install-file <> tfm)
797 (find-files "build" "\\.*"))
798 (for-each (cut install-file <> mf)
799 (find-files "." "\\.mf"))
800 #t))))))
801 (native-inputs
802 `(("texlive-fonts-cm" ,texlive-fonts-cm)
803 ("texlive-metafont-base" ,texlive-metafont-base)
804 ("texlive-bin" ,texlive-bin)))
805 (home-page "https://www.ctan.org/pkg/amsfonts")
806 (synopsis "TeX fonts from the American Mathematical Society")
807 (description
808 "This package provides an extended set of fonts for use in mathematics,
809 including: extra mathematical symbols; blackboard bold letters (uppercase
810 only); fraktur letters; subscript sizes of bold math italic and bold Greek
811 letters; subscript sizes of large symbols such as sum and product; added sizes
812 of the Computer Modern small caps font; cyrillic fonts (from the University of
813 Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
814 files, and all except the Euler fonts are provided as Metafont source. The
815 distribution also includes the canonical Type 1 versions of the Computer
816 Modern family of fonts. The Euler fonts are supported by separate packages;
817 details can be found in the documentation.")
818 (license license:silofl1.1)))
819
820 (define-public texlive-latex-amsfonts
821 (package
822 (name "texlive-latex-amsfonts")
823 (version (number->string %texlive-revision))
824 (source (origin
825 (method svn-fetch)
826 (uri (texlive-ref "latex" "amsfonts"))
827 (file-name (string-append name "-" version "-checkout"))
828 (sha256
829 (base32
830 "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
831 (build-system texlive-build-system)
832 (arguments '(#:tex-directory "latex/amsfonts"))
833 (native-inputs
834 `(("texlive-fonts-cm" ,texlive-fonts-cm)
835 ("texlive-metafont-base" ,texlive-metafont-base)))
836 (home-page "https://www.ctan.org/pkg/amsfonts")
837 (synopsis "TeX fonts from the American Mathematical Society")
838 (description
839 "This package provides basic LaTeX support for the symbol fonts provides
840 by the amsfonts package. It provides @code{amsfonts.sty}, with names of
841 individual symbols defined in @code{amssymb.sty}.")
842 (license license:silofl1.1)))
843
844 ;; This provides etex.src which is needed to build various formats, including
845 ;; luatex.fmt and pdflatex.fmt
846 (define-public texlive-tex-plain
847 (package
848 (name "texlive-tex-plain")
849 (version (number->string %texlive-revision))
850 (source (origin
851 (method svn-fetch)
852 (uri (svn-reference
853 (url (string-append "svn://www.tug.org/texlive/tags/"
854 %texlive-tag "/Master/texmf-dist/"
855 "/tex/plain"))
856 (revision %texlive-revision)))
857 (file-name (string-append name "-" version "-checkout"))
858 (sha256
859 (base32
860 "0mjgl3gscn3ps29yjambz1j9fg81ynnncb96vpprwx4xsijhsns0"))))
861 (build-system trivial-build-system)
862 (arguments
863 `(#:modules ((guix build utils))
864 #:builder
865 (begin
866 (use-modules (guix build utils))
867 (let ((target (string-append (assoc-ref %outputs "out")
868 "/share/texmf-dist/tex/plain")))
869 (mkdir-p target)
870 (copy-recursively (assoc-ref %build-inputs "source") target)
871 #t))))
872 (home-page "https://www.ctan.org/pkg/plain")
873 (synopsis "Plain TeX format and supporting files")
874 (description
875 "Contains files used to build the Plain TeX format, as described in the
876 TeXbook, together with various supporting files (some also discussed in the
877 book).")
878 (license license:knuth)))
879
880 (define-public texlive-latex-base
881 (let ((texlive-dir
882 (lambda (dir hash)
883 (origin
884 (method svn-fetch)
885 (uri (svn-reference
886 (url (string-append "svn://www.tug.org/texlive/tags/"
887 %texlive-tag "/Master/texmf-dist/"
888 dir))
889 (revision %texlive-revision)))
890 (file-name (string-append "texlive-generic-"
891 (last (string-split
892 (string-drop-right dir 1) #\/))
893 "-" (number->string %texlive-revision)
894 "-checkout"))
895 (sha256 (base32 hash))))))
896 (package
897 (name "texlive-latex-base")
898 (version (number->string %texlive-revision))
899 (source (origin
900 (method svn-fetch)
901 (uri (texlive-ref "latex" "base"))
902 (file-name (string-append name "-" version "-checkout"))
903 (sha256
904 (base32
905 "1h9pir2hz6i9avc4lrl733p3zf4rpkg8537x1zdbhs91hvhikw9k"))))
906 (build-system gnu-build-system)
907 (arguments
908 `(#:modules ((guix build gnu-build-system)
909 (guix build utils)
910 (ice-9 match)
911 (srfi srfi-1)
912 (srfi srfi-26))
913 #:tests? #f ; no tests
914 #:phases
915 (modify-phases %standard-phases
916 (delete 'configure)
917 (replace 'build
918 (lambda* (#:key inputs #:allow-other-keys)
919 ;; Find required fonts
920 (setenv "TFMFONTS"
921 (string-append (assoc-ref inputs "texlive-fonts-cm")
922 "/share/texmf-dist/fonts/tfm/public/cm:"
923 (assoc-ref inputs "texlive-fonts-latex")
924 "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
925 (assoc-ref inputs "texlive-fonts-knuth-lib")
926 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
927 (setenv "TEXINPUTS"
928 (string-append
929 (getcwd) ":"
930 (getcwd) "/build:"
931 (string-join
932 (append-map (match-lambda
933 ((_ . dir)
934 (find-files dir
935 (lambda (_ stat)
936 (eq? 'directory (stat:type stat)))
937 #:directories? #t
938 #:stat stat)))
939 inputs)
940 ":")))
941
942 ;; Create an empty texsys.cfg, because latex.ltx wants to include
943 ;; it. This file must exist and it's fine if it's empty.
944 (with-output-to-file "texsys.cfg"
945 (lambda _ (format #t "%")))
946
947 (mkdir "build")
948 (mkdir "web2c")
949 (and (invoke "luatex" "-ini" "-interaction=batchmode"
950 "-output-directory=build" "unpack.ins")
951 (invoke "tex" "-ini" "-interaction=batchmode"
952 "-output-directory=web2c" "tex.ini")
953 ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
954 ;; is enabled only in extended mode (activated with a
955 ;; leading asterisk). We should not use luatex here,
956 ;; because that would make the generated format files
957 ;; incompatible with any other TeX engine.
958 (every
959 (lambda (format)
960 (invoke "latex" "-ini" "-interaction=batchmode"
961 "-output-directory=web2c"
962 "-translate-file=cp227.tcx"
963 (string-append "*" format ".ini")))
964 '("latex"
965 "pdflatex"
966 "pdfetex"))
967 (every
968 (lambda (format)
969 (invoke format "-ini" "-interaction=batchmode"
970 "-output-directory=web2c"
971 (string-append "*" format ".ini")))
972 '("xetex"
973 "xelatex"))
974 (every
975 (lambda (format)
976 (invoke "luatex" "-ini" "-interaction=batchmode"
977 "-output-directory=web2c"
978 (string-append format ".ini")))
979 '("dviluatex" "dvilualatex" "luatex" "lualatex")))))
980 (replace 'install
981 (lambda* (#:key outputs #:allow-other-keys)
982 (let* ((out (assoc-ref outputs "out"))
983 (target (string-append
984 out "/share/texmf-dist/tex/latex/base"))
985 (web2c (string-append
986 out "/share/texmf-dist/web2c")))
987 (mkdir-p target)
988 (mkdir-p web2c)
989 (for-each delete-file (find-files "." "\\.(log|aux)$"))
990 (for-each (cut install-file <> target)
991 (find-files "build" ".*"))
992 (for-each (cut install-file <> web2c)
993 (find-files "web2c" ".*"))
994 ;; pdftex is really just the same as pdfetex, but since it
995 ;; doesn't have its own format file, we need to copy it.
996 (copy-file "web2c/pdfetex.fmt"
997 (string-append web2c "/pdftex.fmt"))
998 #t))))))
999 (native-inputs
1000 `(("texlive-bin" ,texlive-bin)
1001 ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
1002 ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
1003 ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
1004 ("texlive-latex-latexconfig"
1005 ,(texlive-dir "tex/latex/latexconfig/"
1006 "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
1007 ("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)
1008 ("texlive-generic-hyphen"
1009 ,(texlive-dir "tex/generic/hyphen/"
1010 "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
1011 ("texlive-generic-ruhyphen"
1012 ,(texlive-dir "tex/generic/ruhyphen/"
1013 "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
1014 ("texlive-generic-ukrhyph"
1015 ,(texlive-dir "tex/generic/ukrhyph/"
1016 "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
1017 ("texlive-generic-config"
1018 ,(texlive-dir "tex/generic/config/"
1019 "19vj088p4kkp6xll0141m4kl6ssgdzhs3g10i232khb07aqiag8s"))
1020 ("texlive-tex-plain" ,texlive-tex-plain)
1021 ("texlive-fonts-cm" ,texlive-fonts-cm)
1022 ("texlive-fonts-latex" ,texlive-fonts-latex)
1023 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
1024 (home-page "https://www.ctan.org/pkg/latex-base")
1025 (synopsis "Base sources of LaTeX")
1026 (description
1027 "This bundle comprises the source of LaTeX itself, together with several
1028 packages which are considered \"part of the kernel\". This bundle, together
1029 with the required packages, constitutes what every LaTeX distribution should
1030 contain.")
1031 (license license:lppl1.3c+))))
1032
1033 (define-public texlive-latex-filecontents
1034 (package
1035 (name "texlive-latex-filecontents")
1036 (version (number->string %texlive-revision))
1037 (source (origin
1038 (method svn-fetch)
1039 (uri (texlive-ref "latex" "filecontents"))
1040 (file-name (string-append name "-" version "-checkout"))
1041 (sha256
1042 (base32
1043 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
1044 (build-system texlive-build-system)
1045 (arguments '(#:tex-directory "latex/filecontents"))
1046 (home-page "https://www.ctan.org/pkg/filecontents")
1047 (synopsis "Extended filecontents and filecontents* environments")
1048 (description
1049 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
1050 enable a LaTeX source file to generate external files as it runs through
1051 LaTeX. However, there are two limitations of these environments: they refuse
1052 to overwrite existing files, and they can only be used in the preamble of a
1053 document. The filecontents package removes these limitations, letting you
1054 overwrite existing files and letting you use @code{filecontents} /
1055 @code{filecontents*} anywhere.")
1056 (license license:lppl1.3c+)))
1057
1058 (define-public texlive-generic-ifxetex
1059 (package
1060 (name "texlive-generic-ifxetex")
1061 (version (number->string %texlive-revision))
1062 (source (origin
1063 (method svn-fetch)
1064 (uri (texlive-ref "generic" "ifxetex"))
1065 (file-name (string-append name "-" version "-checkout"))
1066 (sha256
1067 (base32
1068 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
1069 (build-system texlive-build-system)
1070 (arguments
1071 '(#:tex-directory "generic/ifxetex"
1072 #:tex-format "xelatex"))
1073 (inputs
1074 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
1075 (home-page "https://www.ctan.org/pkg/ifxetex")
1076 (synopsis "Am I running under XeTeX?")
1077 (description
1078 "This is a simple package which provides an @code{\\ifxetex} conditional,
1079 so that other code can determine that it is running under XeTeX. The package
1080 requires the e-TeX extensions to the TeX primitive set.")
1081 (license license:lppl1.3c+)))
1082
1083 (define-public texlive-generic-epsf
1084 (package
1085 (name "texlive-generic-epsf")
1086 (version (number->string %texlive-revision))
1087 (source (origin
1088 (method svn-fetch)
1089 (uri (svn-reference
1090 (url (string-append "svn://www.tug.org/texlive/tags/"
1091 %texlive-tag "/Master/texmf-dist/"
1092 "/tex/generic/epsf"))
1093 (revision %texlive-revision)))
1094 (file-name (string-append name "-" version "-checkout"))
1095 (sha256
1096 (base32
1097 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
1098 (build-system trivial-build-system)
1099 (arguments
1100 `(#:modules ((guix build utils))
1101 #:builder
1102 (begin
1103 (use-modules (guix build utils))
1104 (let ((target (string-append (assoc-ref %outputs "out")
1105 "/share/texmf-dist/tex/generic/epfs")))
1106 (mkdir-p target)
1107 (copy-recursively (assoc-ref %build-inputs "source") target)
1108 #t))))
1109 (home-page "https://www.ctan.org/pkg/epsf")
1110 (synopsis "Simple macros for EPS inclusion")
1111 (description
1112 "This package provides the original (and now obsolescent) graphics
1113 inclusion macros for use with dvips, still widely used by Plain TeX users (in
1114 particular). For LaTeX users, the package is nowadays (rather strongly)
1115 deprecated in favour of the more sophisticated standard LaTeX latex-graphics
1116 bundle of packages. (The latex-graphics bundle is also available to Plain TeX
1117 users, via its Plain TeX version.)")
1118 (license license:public-domain)))
1119
1120 (define-public texlive-latex-fancyvrb
1121 (package
1122 (name "texlive-latex-fancyvrb")
1123 (version (number->string %texlive-revision))
1124 (source (origin
1125 (method svn-fetch)
1126 (uri (texlive-ref "latex" "fancyvrb"))
1127 (file-name (string-append name "-" version "-checkout"))
1128 (sha256
1129 (base32
1130 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
1131 (build-system texlive-build-system)
1132 (arguments
1133 '(#:tex-directory "latex/fancyvrb"
1134 ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and
1135 ;; thus texlive-luatex-lualibs.
1136 #:build-targets '("fancyvrb.ins")))
1137 (home-page "https://www.ctan.org/pkg/fancyvrb")
1138 (synopsis "Sophisticated verbatim text")
1139 (description
1140 "This package provides tools for the flexible handling of verbatim text
1141 including: verbatim commands in footnotes; a variety of verbatim environments
1142 with many parameters; ability to define new customized verbatim environments;
1143 save and restore verbatim text and environments; write and read files in
1144 verbatim mode; build \"example\" environments (showing both result and
1145 verbatim source).")
1146 (license license:lppl1.0+)))
1147
1148 (define-public texlive-latex-graphics
1149 (package
1150 (name "texlive-latex-graphics")
1151 (version (number->string %texlive-revision))
1152 (source (origin
1153 (method svn-fetch)
1154 (uri (texlive-ref "latex" "graphics"))
1155 (file-name (string-append name "-" version "-checkout"))
1156 (sha256
1157 (base32
1158 "07azyn0b1s49vbdlr6dmygrminxp72ndl24j1091hiiccvrjq3xc"))))
1159 (build-system texlive-build-system)
1160 (arguments
1161 '(#:tex-directory "latex/graphics"
1162 #:phases
1163 (modify-phases %standard-phases
1164 (add-after 'install 'install-config
1165 (lambda* (#:key inputs outputs #:allow-other-keys)
1166 (let ((cfg (assoc-ref inputs "graphics-cfg"))
1167 (target (string-append (assoc-ref outputs "out")
1168 "/share/texmf-dist/tex/latex/graphics-cfg")))
1169 (mkdir-p target)
1170 (install-file (string-append cfg "/graphics.cfg") target)
1171 (install-file (string-append cfg "/color.cfg") target)
1172 #t)))
1173 (add-after 'install 'install-defs
1174 (lambda* (#:key inputs outputs #:allow-other-keys)
1175 (let ((def (assoc-ref inputs "graphics-def"))
1176 (target (string-append (assoc-ref outputs "out")
1177 "/share/texmf-dist/tex/latex/graphics-def")))
1178 (mkdir-p target)
1179 (copy-recursively def target)
1180 #t))))))
1181 (native-inputs
1182 `(("graphics-cfg"
1183 ,(origin
1184 (method git-fetch)
1185 (uri (git-reference
1186 (url "https://github.com/latex3/graphics-cfg.git")
1187 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
1188 (file-name (string-append "graphics-cfg-"
1189 (number->string %texlive-revision)
1190 "-checkout"))
1191 (sha256
1192 (base32
1193 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
1194 ("graphics-def"
1195 ,(origin
1196 (method svn-fetch)
1197 (uri (svn-reference
1198 (url (string-append "svn://www.tug.org/texlive/tags/"
1199 %texlive-tag "/Master/texmf-dist/"
1200 "/tex/latex/graphics-def"))
1201 (revision %texlive-revision)))
1202 (file-name (string-append "graphics-def-"
1203 (number->string %texlive-revision)
1204 "-checkout"))
1205 (sha256
1206 (base32
1207 "0gi4qv6378nl84s8n1yx3hjqvv7r4lza7hpbymbl5rzwgw8qrnyb"))))))
1208 (home-page "https://www.ctan.org/pkg/latex-graphics")
1209 (synopsis "LaTeX standard graphics bundle")
1210 (description
1211 "This is a collection of LaTeX packages for producing color, including
1212 graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
1213 documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
1214 keyval, and lscape.")
1215 ;; The configuration files are released under CC0.
1216 (license (list license:lppl1.3c+
1217 license:cc0))))
1218
1219 (define-public texlive-latex-xcolor
1220 (package
1221 (name "texlive-latex-xcolor")
1222 (version (number->string %texlive-revision))
1223 (source (origin
1224 (method svn-fetch)
1225 (uri (texlive-ref "latex" "xcolor"))
1226 (file-name (string-append name "-" version "-checkout"))
1227 (sha256
1228 (base32
1229 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
1230 (build-system texlive-build-system)
1231 (arguments '(#:tex-directory "latex/xcolor"))
1232 (home-page "https://www.ctan.org/pkg/xcolor")
1233 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
1234 (description
1235 "The package starts from the basic facilities of the colorcolor package,
1236 and provides easy driver-independent access to several kinds of color tints,
1237 shades, tones, and mixes of arbitrary colors. It allows a user to select a
1238 document-wide target color model and offers complete tools for conversion
1239 between eight color models. Additionally, there is a command for alternating
1240 row colors plus repeated non-aligned material (like horizontal lines) in
1241 tables.")
1242 (license license:lppl1.2+)))
1243
1244 (define-public texlive-latex-hyperref
1245 (package
1246 (name "texlive-latex-hyperref")
1247 (version "6.84a2")
1248 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
1249 ;; so we fetch the release from GitHub.
1250 (source (origin
1251 (method url-fetch)
1252 (uri (string-append "https://github.com/ho-tex/hyperref/"
1253 "archive/release-" version ".tar.gz"))
1254 (file-name (string-append name "-" version ".tar.gz"))
1255 (sha256
1256 (base32
1257 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
1258 (build-system texlive-build-system)
1259 (arguments '(#:tex-directory "latex/hyperref"))
1260 (home-page "https://www.ctan.org/pkg/hyperref")
1261 (synopsis "Extensive support for hypertext in LaTeX")
1262 (description
1263 "The @code{hyperref} package is used to handle cross-referencing commands
1264 in LaTeX to produce hypertext links in the document. The package provides
1265 backends for the @code{\\special} set defined for HyperTeX DVI processors; for
1266 embedded @code{pdfmark} commands for processing by Acrobat
1267 Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
1268 for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
1269 pdf and HTML backends. The package is distributed with the @code{backref} and
1270 @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
1271 (license license:lppl1.3+)))
1272
1273 (define-public texlive-latex-oberdiek
1274 (package
1275 (name "texlive-latex-oberdiek")
1276 (version (number->string %texlive-revision))
1277 (source (origin
1278 (method svn-fetch)
1279 (uri (texlive-ref "latex" "oberdiek"))
1280 (file-name (string-append name "-" version "-checkout"))
1281 (sha256
1282 (base32
1283 "0aswvsxgsn709xmvpcg50d2xl7vcy1ckdxb9c1cligqqfjjvviqf"))))
1284 (build-system texlive-build-system)
1285 (arguments
1286 '(#:tex-directory "latex/oberdiek"
1287 #:build-targets '("oberdiek.ins")
1288 #:phases
1289 (modify-phases %standard-phases
1290 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
1291 (add-after 'unpack 'do-not-process-ifpdf.ins
1292 (lambda _
1293 (substitute* "oberdiek.ins"
1294 (("ifpdf.ins") "ifpdf.dtx"))
1295 #t)))))
1296 (home-page "https://www.ctan.org/pkg/oberdiek")
1297 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
1298 (description
1299 "The bundle comprises various LaTeX packages, providing among others:
1300 better accessibility support for PDF files; extensible chemists reaction
1301 arrows; record information about document class(es) used; and many more.")
1302 (license license:lppl1.3+)))
1303
1304 (define-public texlive-latex-tools
1305 (package
1306 (name "texlive-latex-tools")
1307 (version (number->string %texlive-revision))
1308 (source (origin
1309 (method svn-fetch)
1310 (uri (texlive-ref "latex" "tools"))
1311 (file-name (string-append name "-" version "-checkout"))
1312 (sha256
1313 (base32
1314 "052a0pch2k5zls5jlay9xxcf93rw3i60a2x28y3ip3rhbsv3xgiz"))))
1315 (build-system texlive-build-system)
1316 (arguments
1317 '(#:tex-directory "latex/tools"
1318 #:build-targets '("tools.ins")))
1319 (home-page "https://www.ctan.org/pkg/latex-tools")
1320 (synopsis "LaTeX standard tools bundle")
1321 (description
1322 "This package is a collection of (variously) simple tools provided as
1323 part of the LaTeX required tools distribution, comprising the following
1324 packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
1325 fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
1326 rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
1327 xr, and xspace.")
1328 (license license:lppl1.3+)))
1329
1330 (define-public texlive-latex-url
1331 (package
1332 (name "texlive-latex-url")
1333 (version (number->string %texlive-revision))
1334 (source (origin
1335 (method svn-fetch)
1336 (uri (svn-reference
1337 (url (string-append "svn://www.tug.org/texlive/tags/"
1338 %texlive-tag "/Master/texmf-dist/"
1339 "/tex/latex/url"))
1340 (revision %texlive-revision)))
1341 (file-name (string-append name "-" version "-checkout"))
1342 (sha256
1343 (base32
1344 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
1345 (build-system trivial-build-system)
1346 (arguments
1347 `(#:modules ((guix build utils))
1348 #:builder
1349 (begin
1350 (use-modules (guix build utils))
1351 (let ((target (string-append (assoc-ref %outputs "out")
1352 "/share/texmf-dist/tex/latex/url")))
1353 (mkdir-p target)
1354 (copy-recursively (assoc-ref %build-inputs "source") target)
1355 #t))))
1356 (home-page "https://www.ctan.org/pkg/url")
1357 (synopsis "Verbatim with URL-sensitive line breaks")
1358 (description "The command @code{\\url} is a form of verbatim command that
1359 allows linebreaks at certain characters or combinations of characters, accepts
1360 reconfiguration, and can usually be used in the argument to another command.
1361 The command is intended for email addresses, hypertext links,
1362 directories/paths, etc., which normally have no spaces, so by default the
1363 package ignores spaces in its argument. However, a package option allows
1364 spaces, which is useful for operating systems where spaces are a common part
1365 of file names.")
1366 ;; The license header states that it is under LPPL version 2 or later, but
1367 ;; the latest version is 1.3c.
1368 (license license:lppl1.3c+)))
1369
1370 (define-public texlive-latex-l3kernel
1371 (package
1372 (name "texlive-latex-l3kernel")
1373 (version (number->string %texlive-revision))
1374 (source (origin
1375 (method svn-fetch)
1376 (uri (texlive-ref "latex" "l3kernel"))
1377 (file-name (string-append name "-" version "-checkout"))
1378 (sha256
1379 (base32
1380 "0r0wfk594j8wkdqhh21haimwsfq8x5jch4ldm21hkzk5dnmvpbg6"))))
1381 (build-system texlive-build-system)
1382 (arguments
1383 '(#:tex-directory "latex/l3kernel"))
1384 (home-page "https://www.ctan.org/pkg/l3kernel")
1385 (synopsis "LaTeX3 programmers’ interface")
1386 (description
1387 "The l3kernel bundle provides an implementation of the LaTeX3
1388 programmers’ interface, as a set of packages that run under LaTeX 2e. The
1389 interface provides the foundation on which the LaTeX3 kernel and other future
1390 code are built: it is an API for TeX programmers. The packages are set up so
1391 that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
1392 (license license:lppl1.3c+)))
1393
1394 (define-public texlive-latex-l3packages
1395 (package
1396 (name "texlive-latex-l3packages")
1397 (version (number->string %texlive-revision))
1398 (source (origin
1399 (method svn-fetch)
1400 (uri (texlive-ref "latex" "l3packages"))
1401 (sha256
1402 (base32
1403 "16jplkvzdysfssijq9l051nsks65c2nrarsl17k8gjhc28yznj8y"))))
1404 (build-system texlive-build-system)
1405 (arguments
1406 '(#:tex-directory "latex/l3packages"
1407 #:phases
1408 (modify-phases %standard-phases
1409 ;; All package sources are in sub-directories, so we need to add them
1410 ;; to TEXINPUTS.
1411 (add-after 'unpack 'set-TEXINPUTS
1412 (lambda _
1413 (let ((cwd (getcwd)))
1414 (setenv "TEXINPUTS"
1415 (string-append cwd "/l3keys2e:"
1416 cwd "/xparse:"
1417 cwd "/xfrac:"
1418 cwd "/xfp:"
1419 cwd "/xtemplate")))
1420 #t)))))
1421 (inputs
1422 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1423 (home-page "https://www.ctan.org/pkg/l3packages")
1424 (synopsis "High-level LaTeX3 concepts")
1425 (description
1426 "This bundle holds prototype implementations of concepts for a LaTeX
1427 designer interface, to be used with the experimental LaTeX kernel as
1428 programming tools and kernel sup­port. Packages provided in this release are:
1429
1430 @enumerate
1431 @item l3keys2e, which makes the facilities of the kernel module l3keys
1432 available for use by LaTeX 2e packages;
1433 @item xfrac, which provides flexible splitlevel fractions;
1434 @item xparse, which provides a high-level interface for declaring document
1435 commands; and
1436 @item xtemplate, which provides a means of defining generic functions using a
1437 key-value syntax.
1438 @end enumerate\n")
1439 (license license:lppl1.3c+)))
1440
1441 (define-public texlive-latex-fontspec
1442 (package
1443 (name "texlive-latex-fontspec")
1444 (version (number->string %texlive-revision))
1445 (source (origin
1446 (method svn-fetch)
1447 (uri (texlive-ref "latex" "fontspec"))
1448 (sha256
1449 (base32
1450 "1rx43y5xmjqvc27pjdnmqwp4pcw3czcfd6nfpmzc1gnqfl1hlc0q"))))
1451 (build-system texlive-build-system)
1452 (arguments
1453 '(#:tex-directory "latex/fontspec"
1454 #:build-targets '("fontspec.dtx")))
1455 (inputs
1456 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1457 (home-page "https://www.ctan.org/pkg/fontspec")
1458 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
1459 (description
1460 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
1461 automatic and unified interface to feature-rich AAT and OpenType fonts through
1462 the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
1463 the l3kernel and xparse bundles from the LaTeX 3 development team.")
1464 (license license:lppl1.3+)))
1465
1466 ;; The SVN directory contains little more than a dtx file that generates three
1467 ;; of the many lua files that should be installed as part of this package.
1468 ;; This is why we take the release from GitHub instead.
1469 (define-public texlive-luatex-lualibs
1470 (package
1471 (name "texlive-luatex-lualibs")
1472 (version "2.5")
1473 (source (origin
1474 (method url-fetch)
1475 (uri (string-append "https://github.com/lualatex/lualibs/"
1476 "releases/download/v"
1477 version "/lualibs.zip"))
1478 (sha256
1479 (base32
1480 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
1481 (build-system gnu-build-system)
1482 (arguments
1483 `(#:make-flags
1484 (list (string-append "DESTDIR="
1485 (assoc-ref %outputs "out")
1486 "/share/texmf-dist"))
1487 #:phases
1488 (modify-phases %standard-phases
1489 (delete 'configure))))
1490 (native-inputs
1491 `(("texlive-bin" ,texlive-bin)
1492 ("unzip" ,unzip)
1493 ("zip" ,zip)))
1494 (home-page "https://github.com/lualatex/lualibs")
1495 (synopsis "Lua modules for general programming (in the (La)TeX world)")
1496 (description
1497 "Lualibs is a collection of Lua modules useful for general programming.
1498 The bundle is based on Lua modules shipped with ConTeXt, and made available in
1499 this bundle for use independent of ConTeXt.")
1500 ;; GPL version 2 only
1501 (license license:gpl2)))
1502
1503 (define-public texlive-latex-amsmath
1504 (package
1505 (name "texlive-latex-amsmath")
1506 (version (number->string %texlive-revision))
1507 (source (origin
1508 (method svn-fetch)
1509 (uri (texlive-ref "latex" "amsmath"))
1510 (sha256
1511 (base32
1512 "178ywjpdlv78qmfzqdyn6gy14620zjsn2q9wap76fbr9s4hw6dba"))))
1513 (build-system texlive-build-system)
1514 (arguments '(#:tex-directory "latex/amsmath"))
1515 (home-page "https://www.ctan.org/pkg/amsmath")
1516 (synopsis "AMS mathematical facilities for LaTeX")
1517 (description
1518 "This is the principal package in the AMS-LaTeX distribution. It adapts
1519 for use in LaTeX most of the mathematical features found in AMS-TeX; it is
1520 highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
1521 When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
1522 symbols), @code{amsopnamsopn} (for operator names) and
1523 @code{amstextamstext} (for text embedded in mathematics) are also loaded.
1524 This package is part of the LaTeX required distribution; however, several
1525 contributed packages add still further to its appeal; examples are
1526 @code{empheqempheq}, which provides functions for decorating and highlighting
1527 mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
1528 definitions.")
1529 (license license:lppl1.3c+)))
1530
1531 (define-public texlive-latex-amscls
1532 (package
1533 (name "texlive-latex-amscls")
1534 (version (number->string %texlive-revision))
1535 (source (origin
1536 (method svn-fetch)
1537 (uri (texlive-ref "latex" "amscls"))
1538 (sha256
1539 (base32
1540 "0jmcr37mcdi7drczppvr6lmz5d5yd9m67ii79gp2nglg1xpw934j"))))
1541 (build-system texlive-build-system)
1542 (arguments
1543 `(#:tex-directory "latex/amscls"))
1544 (home-page "https://www.ctan.org/pkg/amscls")
1545 (synopsis "AMS document classes for LaTeX")
1546 (description
1547 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
1548 articles for the AMS), @code{amsbookamsbook} (for books) and
1549 @code{amsprocamsproc} (for proceedings), together with some supporting
1550 material. The material is made available as part of the AMS-LaTeX
1551 distribution.")
1552 (license license:lppl1.3c+)))
1553
1554 (define-public texlive-latex-babel
1555 (package
1556 (name "texlive-latex-babel")
1557 (version (number->string %texlive-revision))
1558 (source (origin
1559 (method svn-fetch)
1560 (uri (texlive-ref "latex" "babel"))
1561 (sha256
1562 (base32
1563 "1n3i5adsyy7jw0imnzrm2i8wkf73i3mjk9h3ic8cb9cd19i4r9r3"))))
1564 (build-system texlive-build-system)
1565 (arguments
1566 '(#:tex-directory "generic/babel"
1567 #:phases
1568 (modify-phases %standard-phases
1569 ;; This package tries to produce babel.aux twice but refuses to
1570 ;; overwrite the first one.
1571 (add-before 'build 'fix-ins
1572 (lambda _
1573 (substitute* "babel.ins"
1574 (("askonceonly") "askforoverwritefalse"))
1575 #t)))))
1576 (home-page "https://www.ctan.org/pkg/babel")
1577 (synopsis "Multilingual support for Plain TeX or LaTeX")
1578 (description
1579 "The package manages culturally-determined typographical (and other)
1580 rules, and hyphenation patterns for a wide range of languages. A document may
1581 select a single language to be supported, or it may select several, in which
1582 case the document may switch from one language to another in a variety of
1583 ways. Babel uses contributed configuration files that provide the detail of
1584 what has to be done for each language. Users of XeTeX are advised to use the
1585 polyglossia package rather than Babel.")
1586 (license license:lppl1.3+)))
1587
1588 (define-public texlive-generic-babel-english
1589 (package
1590 (name "texlive-generic-babel-english")
1591 (version (number->string %texlive-revision))
1592 (source (origin
1593 (method svn-fetch)
1594 (uri (texlive-ref "generic" "babel-english"))
1595 (file-name (string-append name "-" version "-checkout"))
1596 (sha256
1597 (base32
1598 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
1599 (build-system texlive-build-system)
1600 (arguments '(#:tex-directory "generic/babel-english"))
1601 (home-page "https://www.ctan.org/pkg/babel-english")
1602 (synopsis "Babel support for English")
1603 (description
1604 "This package provides the language definition file for support of
1605 English in @code{babel}. Care is taken to select British hyphenation patterns
1606 for British English and Australian text, and default (\"american\") patterns
1607 for Canadian and USA text.")
1608 (license license:lppl1.3+)))
1609
1610 (define-public texlive-latex-cyrillic
1611 (package
1612 (name "texlive-latex-cyrillic")
1613 (version (number->string %texlive-revision))
1614 (source (origin
1615 (method svn-fetch)
1616 (uri (texlive-ref "latex" "cyrillic"))
1617 (sha256
1618 (base32
1619 "1mdhl35hwas68ki56qqngzar37dwv4mm64l2canihr255bz34lbv"))))
1620 (build-system texlive-build-system)
1621 (arguments
1622 '(#:tex-directory "latex/cyrillic"))
1623 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
1624 (synopsis "Support for Cyrillic fonts in LaTeX")
1625 (description
1626 "This bundle of macros files provides macro support (including font
1627 encoding macros) for the use of Cyrillic characters in fonts encoded under the
1628 T2* and X2 encodings. These encodings cover (between them) pretty much every
1629 language that is written in a Cyrillic alphabet.")
1630 (license license:lppl1.3c+)))
1631
1632 (define-public texlive-latex-psnfss
1633 (package
1634 (name "texlive-latex-psnfss")
1635 (version (number->string %texlive-revision))
1636 (source (origin
1637 (method svn-fetch)
1638 (uri (texlive-ref "latex" "psnfss"))
1639 (sha256
1640 (base32
1641 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
1642 (build-system texlive-build-system)
1643 (arguments '(#:tex-directory "latex/psnfss"))
1644 (home-page "https://www.ctan.org/pkg/psnfss")
1645 (synopsis "Font support for common PostScript fonts")
1646 (description
1647 "The PSNFSS collection includes a set of files that provide a complete
1648 working setup of the LaTeX font selection scheme (NFSS2) for use with common
1649 PostScript fonts. It covers the so-called \"Base\" fonts (which are built
1650 into any Level 2 PostScript printing device and the Ghostscript interpreter)
1651 and a number of free fonts. It provides font definition files, macros and
1652 font metrics. The bundle as a whole is part of the LaTeX required set of
1653 packages.")
1654 (license license:lppl1.2+)))
1655
1656 (define-public texlive-union
1657 (lambda* (#:optional (packages '()))
1658 "Return 'texlive-union' package which is a union of PACKAGES and the
1659 standard LaTeX packages."
1660 (let ((default-packages
1661 (list texlive-bin
1662 texlive-dvips
1663 texlive-fontname
1664 texlive-fonts-cm
1665 texlive-fonts-latex
1666 texlive-metafont-base
1667 texlive-latex-base
1668 ;; LaTeX packages from the "required" set.
1669 texlive-latex-amsmath
1670 texlive-latex-amscls
1671 texlive-latex-babel
1672 texlive-generic-babel-english
1673 texlive-latex-cyrillic
1674 texlive-latex-graphics
1675 texlive-latex-psnfss
1676 texlive-latex-tools)))
1677 (package
1678 (name "texlive-union")
1679 (version (number->string %texlive-revision))
1680 (source #f)
1681 (build-system trivial-build-system)
1682 (arguments
1683 '(#:modules ((guix build union)
1684 (guix build utils)
1685 (guix build texlive-build-system)
1686 (guix build gnu-build-system)
1687 (guix build gremlin)
1688 (guix elf))
1689 #:builder
1690 (begin
1691 (use-modules (ice-9 match)
1692 (srfi srfi-26)
1693 (guix build union)
1694 (guix build utils)
1695 (guix build texlive-build-system))
1696 (let* ((out (assoc-ref %outputs "out"))
1697 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
1698 ;; Build a modifiable union of all inputs (but exclude bash)
1699 (match (filter (match-lambda
1700 ((name . _)
1701 (not (string=? "bash" name))))
1702 %build-inputs)
1703 (((names . directories) ...)
1704 (union-build (assoc-ref %outputs "out")
1705 directories
1706 #:create-all-directories? #t
1707 #:log-port (%make-void-port "w"))))
1708
1709 ;; The configuration file "texmf.cnf" is provided by the
1710 ;; "texlive-bin" package. We take it and override only the
1711 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
1712 ;; by default, though, so we still need to set TEXMFCNF.
1713 (substitute* texmf.cnf
1714 (("^TEXMFROOT = .*")
1715 (string-append "TEXMFROOT = " out "/share\n"))
1716 (("^TEXMF = .*")
1717 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
1718 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash")
1719 "/bin"))
1720 (for-each
1721 (cut wrap-program <>
1722 `("TEXMFCNF" ":" = (,(dirname texmf.cnf)))
1723 `("TEXMF" ":" = (,(string-append out "/share/texmf-dist"))))
1724 (find-files (string-append out "/bin") ".*"))
1725 #t))))
1726 (inputs
1727 `(("bash" ,bash)
1728 ,@(map (lambda (package)
1729 (list (package-name package) package))
1730 (append default-packages packages))))
1731 (home-page (package-home-page texlive-bin))
1732 (synopsis "Union of TeX Live packages")
1733 (description "This package provides a subset of the TeX Live
1734 distribution.")
1735 (license (fold (lambda (package result)
1736 (match (package-license package)
1737 ((lst ...)
1738 (append lst result))
1739 ((? license:license? license)
1740 (cons license result))))
1741 '()
1742 (append default-packages packages)))))))
1743
1744 (define-public texlive-tiny
1745 (package
1746 (inherit (texlive-union))
1747 (name "texlive-tiny")
1748 (description "This is a very limited subset of the TeX Live distribution.
1749 It includes little more than the required set of LaTeX packages.")))
1750
1751 (define-public texlive-latex-amsrefs
1752 (package
1753 (name "texlive-latex-amsrefs")
1754 (version (number->string %texlive-revision))
1755 (source (origin
1756 (method svn-fetch)
1757 (uri (texlive-ref "latex" "amsrefs"))
1758 (file-name (string-append name "-" version "-checkout"))
1759 (sha256
1760 (base32
1761 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
1762 (build-system texlive-build-system)
1763 (arguments '(#:tex-directory "latex/amsrefs"))
1764 (home-page "https://www.ctan.org/pkg/amsrefs")
1765 (synopsis "LaTeX-based replacement for BibTeX")
1766 (description
1767 "Amsrefs is a LaTeX package for bibliographies that provides an archival
1768 data format similar to the format of BibTeX database files, but adapted to
1769 make direct processing by LaTeX easier. The package can be used either in
1770 conjunction with BibTeX or as a replacement for BibTeX.")
1771 (license license:lppl1.3+)))
1772
1773 (define-public texlive-latex-bigfoot
1774 (package
1775 (name "texlive-latex-bigfoot")
1776 (version (number->string %texlive-revision))
1777 (source (origin
1778 (method svn-fetch)
1779 (uri (texlive-ref "latex" "bigfoot"))
1780 (file-name (string-append name "-" version "-checkout"))
1781 (sha256
1782 (base32
1783 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
1784 (build-system texlive-build-system)
1785 (arguments
1786 '(#:tex-directory "latex/bigfoot"
1787 #:phases
1788 (modify-phases %standard-phases
1789 (add-after 'unpack 'remove-generated-file
1790 (lambda _
1791 (for-each delete-file (find-files "." "\\.drv$"))
1792 #t)))))
1793 (home-page "https://www.ctan.org/pkg/bigfoot")
1794 (synopsis "Footnotes for critical editions")
1795 (description
1796 "This package aims to provide a one-stop solution to requirements for
1797 footnotes. It offers: Multiple footnote apparatus superior to that of
1798 @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
1799 into a single paragraph (this choice may be selected per footnote series);
1800 Things you might have expected (such as @code{\\verb}-like material in
1801 footnotes, and color selections over page breaks) now work. Note that the
1802 majority of the bigfoot package's interface is identical to that of
1803 @code{manyfoot}; users should seek information from that package's
1804 documentation. The bigfoot bundle also provides the @code{perpage} and
1805 @code{suffix} packages.")
1806 (license license:gpl2+)))
1807
1808 (define-public texlive-latex-blindtext
1809 (package
1810 (name "texlive-latex-blindtext")
1811 (version (number->string %texlive-revision))
1812 (source (origin
1813 (method svn-fetch)
1814 (uri (texlive-ref "latex" "blindtext"))
1815 (file-name (string-append name "-" version "-checkout"))
1816 (sha256
1817 (base32
1818 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
1819 (build-system texlive-build-system)
1820 (arguments '(#:tex-directory "latex/blindtext"))
1821 (home-page "https://www.ctan.org/pkg/blindtext")
1822 (synopsis "Producing 'blind' text for testing")
1823 (description
1824 "The package provides the commands @code{\\blindtext} and
1825 @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
1826 and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
1827 an entire random document with sections, lists, mathematics, etc. The package
1828 supports three languages, @code{english}, @code{(n)german} and @code{latin};
1829 the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
1830 ipsum\" text, see the @code{lipsum} package).")
1831 (license license:lppl)))
1832
1833 (define-public texlive-latex-dinbrief
1834 (package
1835 (name "texlive-latex-dinbrief")
1836 (version (number->string %texlive-revision))
1837 (source (origin
1838 (method svn-fetch)
1839 (uri (texlive-ref "latex" "dinbrief"))
1840 (file-name (string-append name "-" version "-checkout"))
1841 (sha256
1842 (base32
1843 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
1844 (build-system texlive-build-system)
1845 (arguments
1846 '(#:tex-directory "latex/dinbrief"
1847 #:phases
1848 (modify-phases %standard-phases
1849 (add-after 'unpack 'remove-generated-file
1850 (lambda _
1851 (delete-file "dinbrief.drv")
1852 #t)))))
1853 (home-page "https://www.ctan.org/pkg/dinbrief")
1854 (synopsis "German letter DIN style")
1855 (description
1856 "This package implements a document layout for writing letters according
1857 to the rules of DIN (Deutsches Institut für Normung, German standardisation
1858 institute). A style file for LaTeX 2.09 (with limited support of the
1859 features) is part of the package. Since the letter layout is based on a
1860 German standard, the user guide is written in German, but most macros have
1861 English names from which the user can recognize what they are used for. In
1862 addition there are example files showing how letters may be created with the
1863 package.")
1864 (license license:lppl)))
1865
1866 (define-public texlive-latex-draftwatermark
1867 (package
1868 (name "texlive-latex-draftwatermark")
1869 (version (number->string %texlive-revision))
1870 (source (origin
1871 (method svn-fetch)
1872 (uri (texlive-ref "latex" "draftwatermark"))
1873 (file-name (string-append name "-" version "-checkout"))
1874 (sha256
1875 (base32
1876 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
1877 (build-system texlive-build-system)
1878 (arguments '(#:tex-directory "latex/draftwatermark"))
1879 (home-page "https://www.ctan.org/pkg/draftwatermark")
1880 (synopsis "Put a grey textual watermark on document pages")
1881 (description
1882 "This package provides a means to add a textual, light grey watermark on
1883 every page or on the first page of a document. Typical usage may consist in
1884 writing words such as DRAFT or CONFIDENTIAL across document pages. The
1885 package performs a similar function to that of @code{draftcopy}, but its
1886 implementation is output device independent, and made very simple by relying
1887 on everypage.")
1888 (license license:lppl1.3+)))
1889
1890 (define-public texlive-latex-environ
1891 (package
1892 (name "texlive-latex-environ")
1893 (version (number->string %texlive-revision))
1894 (source (origin
1895 (method svn-fetch)
1896 (uri (texlive-ref "latex" "environ"))
1897 (file-name (string-append name "-" version "-checkout"))
1898 (sha256
1899 (base32
1900 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
1901 (build-system texlive-build-system)
1902 (arguments '(#:tex-directory "latex/environ"))
1903 (home-page "https://www.ctan.org/pkg/environ")
1904 (synopsis "New interface for environments in LaTeX")
1905 (description
1906 "This package provides the @code{\\collect@@body} command (as in
1907 @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
1908 for collecting the body text of an environment. These commands are used to
1909 define a new author interface to creating new environments.")
1910 (license license:lppl)))
1911
1912 (define-public texlive-latex-eqparbox
1913 (package
1914 (name "texlive-latex-eqparbox")
1915 (version (number->string %texlive-revision))
1916 (source (origin
1917 (method svn-fetch)
1918 (uri (texlive-ref "latex" "eqparbox"))
1919 (file-name (string-append name "-" version "-checkout"))
1920 (sha256
1921 (base32
1922 "0pvmhsd4xmpil0m3c7qcgwilbk266mlkzv03g0jr8r3zd8jxlyzq"))))
1923 (build-system texlive-build-system)
1924 (arguments '(#:tex-directory "latex/eqparbox"))
1925 (home-page "https://www.ctan.org/pkg/eqparbox")
1926 (synopsis "Create equal-widthed parboxes")
1927 (description
1928 "LaTeX users sometimes need to ensure that two or more blocks of text
1929 occupy the same amount of horizontal space on the page. To that end, the
1930 @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
1931 just like @code{\\parbox}, except that instead of specifying a width, one
1932 specifies a tag. All @code{eqparbox}es with the same tag---regardless of
1933 where they are in the document---will stretch to fit the widest
1934 @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
1935 for a variety of alignment purposes, as is evidenced by the examples in
1936 @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
1937 also provided.")
1938 (license license:lppl1.3+)))
1939
1940 (define-public texlive-latex-expdlist
1941 (package
1942 (name "texlive-latex-expdlist")
1943 (version (number->string %texlive-revision))
1944 (source (origin
1945 (method svn-fetch)
1946 (uri (texlive-ref "latex" "expdlist"))
1947 (file-name (string-append name "-" version "-checkout"))
1948 (sha256
1949 (base32
1950 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
1951 (build-system texlive-build-system)
1952 (arguments
1953 '(#:tex-directory "latex/expdlist"
1954 #:phases
1955 (modify-phases %standard-phases
1956 (add-after 'unpack 'remove-generated-file
1957 (lambda _
1958 (for-each delete-file
1959 (find-files "." "\\.drv$"))
1960 #t)))))
1961 (home-page "https://www.ctan.org/pkg/expdlist")
1962 (synopsis "Expanded description environments")
1963 (description
1964 "The package provides additional features for the LaTeX
1965 @code{description} environment, including adjustable left margin. The package
1966 also allows the user to \"break\" a list (for example, to interpose a comment)
1967 without affecting the structure of the list (this works for @code{itemize} and
1968 @code{enumerate} lists, and numbered lists remain in sequence).")
1969 (license license:lppl)))
1970
1971 (define-public texlive-latex-filemod
1972 (package
1973 (name "texlive-latex-filemod")
1974 (version (number->string %texlive-revision))
1975 (source (origin
1976 (method svn-fetch)
1977 (uri (svn-reference
1978 (url (string-append "svn://www.tug.org/texlive/tags/"
1979 %texlive-tag "/Master/texmf-dist/"
1980 "/tex/latex/filemod"))
1981 (revision %texlive-revision)))
1982 (sha256
1983 (base32
1984 "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
1985 (build-system trivial-build-system)
1986 (arguments
1987 `(#:modules ((guix build utils))
1988 #:builder
1989 (begin
1990 (use-modules (guix build utils))
1991 (let ((target (string-append (assoc-ref %outputs "out")
1992 "/share/texmf-dist/tex/latex/filemod")))
1993 (mkdir-p target)
1994 (copy-recursively (assoc-ref %build-inputs "source") target)
1995 #t))))
1996 (home-page "https://www.ctan.org/pkg/filemod")
1997 (synopsis "Provide file modification times, and compare them")
1998 (description
1999 "This package provides macros to read and compare the modification dates
2000 of files. The files may be @code{.tex} files, images or other files (as long
2001 as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
2002 of pdfLaTeX to find the file modification date as PDF date string, parses the
2003 string and returns the value to the user. The package will also work for DVI
2004 output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
2005 mode. The functionality is provided by purely expandable macros or by faster
2006 but non-expandable ones.")
2007 (license license:lppl1.3+)))
2008
2009 (define-public texlive-latex-ifplatform
2010 (package
2011 (name "texlive-latex-ifplatform")
2012 (version (number->string %texlive-revision))
2013 (source (origin
2014 (method svn-fetch)
2015 (uri (texlive-ref "latex" "ifplatform"))
2016 (file-name (string-append name "-" version "-checkout"))
2017 (sha256
2018 (base32
2019 "11gvvjvmdfs9b7mm19yf80zwkx49jqcbq6g8qb9y5ns1r1qvnixp"))))
2020 (build-system texlive-build-system)
2021 (arguments '(#:tex-directory "latex/ifplatform"))
2022 (home-page "https://www.ctan.org/pkg/ifplatform")
2023 (synopsis "Conditionals to test which platform is being used")
2024 (description
2025 "This package uses the (La)TeX extension @code{-shell-escape} to
2026 establish whether the document is being processed on a Windows or on a
2027 Unix-like system, or on Cygwin (Unix environment over a Windows system).
2028 Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
2029 and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
2030 on a Unix-like system, which may be used to distinguish between various
2031 classes of systems.")
2032 (license license:lppl)))
2033
2034 (define-public texlive-latex-natbib
2035 (package
2036 (name "texlive-latex-natbib")
2037 (version (number->string %texlive-revision))
2038 (source (origin
2039 (method svn-fetch)
2040 (uri (texlive-ref "latex" "natbib"))
2041 (sha256
2042 (base32
2043 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
2044 (build-system texlive-build-system)
2045 (arguments '(#:tex-directory "latex/natbib"))
2046 (home-page "https://www.ctan.org/pkg/natbib")
2047 (synopsis "Flexible bibliography support")
2048 (description
2049 "This bundle provides a package that implements both author-year and
2050 numbered references, as well as much detailed of support for other
2051 bibliography use. Also provided are versions of the standard BibTeX styles
2052 that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
2053 @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
2054 designed from the start to be compatible with @code{natbib}.")
2055 (license license:lppl)))
2056
2057 (define-public texlive-latex-psfrag
2058 (package
2059 (name "texlive-latex-psfrag")
2060 (version (number->string %texlive-revision))
2061 (source (origin
2062 (method svn-fetch)
2063 (uri (texlive-ref "latex" "psfrag"))
2064 (file-name (string-append name "-" version "-checkout"))
2065 (sha256
2066 (base32
2067 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
2068 (build-system texlive-build-system)
2069 (arguments '(#:tex-directory "latex/psfrag"))
2070 (home-page "https://www.ctan.org/pkg/psfrag")
2071 (synopsis "Replace strings in encapsulated PostScript figures")
2072 (description
2073 "This package allows LaTeX constructions (equations, picture
2074 environments, etc.) to be precisely superimposed over Encapsulated PostScript
2075 figures, using your own favorite drawing tool to create an EPS figure and
2076 placing simple text \"tags\" where each replacement is to be placed, with
2077 PSfrag automatically removing these tags from the figure and replacing them
2078 with a user specified LaTeX construction, properly aligned, scaled, and/or
2079 rotated.")
2080 (license (license:fsf-free "file://psfrag.dtx"))))
2081
2082 (define-public texlive-latex-pstool
2083 (package
2084 (name "texlive-latex-pstool")
2085 (version (number->string %texlive-revision))
2086 (source (origin
2087 (method svn-fetch)
2088 (uri (texlive-ref "latex" "pstool"))
2089 (file-name (string-append name "-" version "-checkout"))
2090 (sha256
2091 (base32
2092 "1kwlk1x67lad4xb7gpkxqgdlxwpi6nvq1r9wika7m92abmyf18h3"))))
2093 (build-system texlive-build-system)
2094 (arguments
2095 '(#:tex-directory "latex/pstool"
2096 #:tex-format "latex"))
2097 (inputs
2098 `(("texlive-fonts-cm" ,texlive-fonts-cm)
2099 ("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2100 (propagated-inputs
2101 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot)
2102 ("texlive-latex-filemod" ,texlive-latex-filemod)
2103 ("texlive-latex-graphics" ,texlive-latex-graphics)
2104 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
2105 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
2106 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
2107 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)))
2108 (home-page "https://www.ctan.org/pkg/pstool")
2109 (synopsis "Process PostScript graphisc within pdfLaTeX documents")
2110 (description
2111 "This is a package for processing PostScript graphics with @code{psfrag}
2112 labels within pdfLaTeX documents. Every graphic is compiled individually,
2113 drastically speeding up compilation time when only a single figure needs
2114 re-processing.")
2115 (license license:lppl)))
2116
2117 (define-public texlive-latex-seminar
2118 (package
2119 (name "texlive-latex-seminar")
2120 (version (number->string %texlive-revision))
2121 (source (origin
2122 (method svn-fetch)
2123 (uri (svn-reference
2124 (url (string-append "svn://www.tug.org/texlive/tags/"
2125 %texlive-tag "/Master/texmf-dist/"
2126 "/tex/latex/seminar"))
2127 (revision %texlive-revision)))
2128 (sha256
2129 (base32
2130 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
2131 (build-system texlive-build-system)
2132 (arguments '(#:tex-directory "latex/seminar"))
2133 (home-page "https://www.ctan.org/pkg/seminar")
2134 (synopsis "Make overhead slides")
2135 ;; TODO: This package may need fancybox and xcomment at runtime.
2136 (description
2137 "This package provides a class that produces overhead
2138 slides (transparencies), with many facilities. Seminar is not nowadays
2139 reckoned a good basis for a presentation — users are advised to use more
2140 recent classes such as powerdot or beamer, both of which are tuned to
2141 21st-century presentation styles.")
2142 (license license:lppl1.2+)))
2143
2144 (define-public texlive-latex-trimspaces
2145 (package
2146 (name "texlive-latex-trimspaces")
2147 (version (number->string %texlive-revision))
2148 (source (origin
2149 (method svn-fetch)
2150 (uri (texlive-ref "latex" "trimspaces"))
2151 (sha256
2152 (base32
2153 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
2154 (build-system texlive-build-system)
2155 (arguments
2156 '(#:tex-directory "latex/trimspaces"
2157 #:tex-format "latex"
2158 #:phases
2159 (modify-phases %standard-phases
2160 (add-after 'unpack 'fix-bug
2161 (lambda _
2162 ;; The "ins" file refers to the wrong source file.
2163 (substitute* "trimspaces.ins"
2164 (("pstool.tex") "trimspaces.tex"))
2165 #t)))))
2166 (inputs
2167 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2168 (home-page "https://www.ctan.org/pkg/trimspaces")
2169 (synopsis "Trim spaces around an argument or within a macro")
2170 (description
2171 "This very short package allows you to expandably remove spaces around a
2172 token list (commands are provided to remove spaces before, spaces after, or
2173 both); or to remove surrounding spaces within a macro definition, or to define
2174 space-stripped macros.")
2175 (license license:lppl)))
2176
2177 (define-public texlive-latex-capt-of
2178 (package
2179 (name "texlive-latex-capt-of")
2180 (version (number->string %texlive-revision))
2181 (source (origin
2182 (method svn-fetch)
2183 (uri (svn-reference
2184 (url (string-append "svn://www.tug.org/texlive/tags/"
2185 %texlive-tag "/Master/texmf-dist/"
2186 "/tex/latex/capt-of"))
2187 (revision %texlive-revision)))
2188 (file-name (string-append name "-" version "-checkout"))
2189 (sha256
2190 (base32
2191 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
2192 (build-system trivial-build-system)
2193 (arguments
2194 `(#:modules ((guix build utils))
2195 #:builder
2196 (begin
2197 (use-modules (guix build utils))
2198 (let ((target (string-append (assoc-ref %outputs "out")
2199 "/share/texmf-dist/tex/latex/capt-of")))
2200 (mkdir-p target)
2201 (copy-recursively (assoc-ref %build-inputs "source") target)
2202 #t))))
2203 (home-page "https://www.ctan.org/pkg/capt-of")
2204 (synopsis "Captions on more than floats")
2205 (description
2206 "This package defines a command @code{\\captionof} for putting a caption
2207 to something that's not a float.")
2208 (license license:lppl)))
2209
2210 (define-public texlive-latex-etoolbox
2211 (package
2212 (name "texlive-latex-etoolbox")
2213 (version (number->string %texlive-revision))
2214 (source (origin
2215 (method svn-fetch)
2216 (uri (svn-reference
2217 (url (string-append "svn://www.tug.org/texlive/tags/"
2218 %texlive-tag "/Master/texmf-dist/"
2219 "/tex/latex/etoolbox"))
2220 (revision %texlive-revision)))
2221 (file-name (string-append name "-" version "-checkout"))
2222 (sha256
2223 (base32
2224 "0016bscnpima9krrg2569mva78xzwnygzlvg87dznsm6gf8g589v"))))
2225 (build-system trivial-build-system)
2226 (arguments
2227 `(#:modules ((guix build utils))
2228 #:builder
2229 (begin
2230 (use-modules (guix build utils))
2231 (let ((target (string-append (assoc-ref %outputs "out")
2232 "/share/texmf-dist/tex/latex/etoolbox")))
2233 (mkdir-p target)
2234 (copy-recursively (assoc-ref %build-inputs "source") target)
2235 #t))))
2236 (home-page "https://www.ctan.org/pkg/etoolbox")
2237 (synopsis "e-TeX tools for LaTeX")
2238 (description
2239 "This package is a toolbox of programming facilities geared primarily
2240 towards LaTeX class and package authors. It provides LaTeX frontends to some
2241 of the new primitives provided by e-TeX as well as some generic tools which
2242 are not strictly related to e-TeX but match the profile of this package. The
2243 package provides functions that seem to offer alternative ways of implementing
2244 some LaTeX kernel commands; nevertheless, the package will not modify any part
2245 of the LaTeX kernel.")
2246 (license license:lppl1.3+)))
2247
2248 (define-public texlive-latex-fncychap
2249 (package
2250 (name "texlive-latex-fncychap")
2251 (version (number->string %texlive-revision))
2252 (source (origin
2253 (method svn-fetch)
2254 (uri (svn-reference
2255 (url (string-append "svn://www.tug.org/texlive/tags/"
2256 %texlive-tag "/Master/texmf-dist/"
2257 "/tex/latex/fncychap"))
2258 (revision %texlive-revision)))
2259 (file-name (string-append name "-" version "-checkout"))
2260 (sha256
2261 (base32
2262 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
2263 (build-system trivial-build-system)
2264 (arguments
2265 `(#:modules ((guix build utils))
2266 #:builder
2267 (begin
2268 (use-modules (guix build utils))
2269 (let ((target (string-append (assoc-ref %outputs "out")
2270 "/share/texmf-dist/tex/latex/fncychap")))
2271 (mkdir-p target)
2272 (copy-recursively (assoc-ref %build-inputs "source") target)
2273 #t))))
2274 (home-page "https://www.ctan.org/pkg/fncychap")
2275 (synopsis "Seven predefined chapter heading styles")
2276 (description
2277 "This package provides seven predefined chapter heading styles. Each
2278 style can be modified using a set of simple commands. Optionally one can
2279 modify the formatting routines in order to create additional chapter
2280 headings.")
2281 (license license:lppl1.3+)))
2282
2283 (define-public texlive-latex-framed
2284 (package
2285 (name "texlive-latex-framed")
2286 (version (number->string %texlive-revision))
2287 (source (origin
2288 (method svn-fetch)
2289 (uri (svn-reference
2290 (url (string-append "svn://www.tug.org/texlive/tags/"
2291 %texlive-tag "/Master/texmf-dist/"
2292 "/tex/latex/framed"))
2293 (revision %texlive-revision)))
2294 (file-name (string-append name "-" version "-checkout"))
2295 (sha256
2296 (base32
2297 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
2298 (build-system trivial-build-system)
2299 (arguments
2300 `(#:modules ((guix build utils))
2301 #:builder
2302 (begin
2303 (use-modules (guix build utils))
2304 (let ((target (string-append (assoc-ref %outputs "out")
2305 "/share/texmf-dist/tex/latex/framed")))
2306 (mkdir-p target)
2307 (copy-recursively (assoc-ref %build-inputs "source") target)
2308 #t))))
2309 (home-page "https://www.ctan.org/pkg/framed")
2310 (synopsis "Framed or shaded regions that can break across pages")
2311 (description
2312 "The package creates three environments: @code{framed}, which puts an
2313 ordinary frame box around the region, @code{shaded}, which shades the region,
2314 and @code{leftbar}, which places a line at the left side. The environments
2315 allow a break at their start (the @code{\\FrameCommand} enables creation of a
2316 title that is “attached” to the environment); breaks are also allowed in the
2317 course of the framed/shaded matter. There is also a command
2318 @code{\\MakeFramed} to make your own framed-style environments.")
2319 ;; The header states: "These macros may be freely transmitted, reproduced,
2320 ;; or modified for any purpose provided that this notice is left intact."
2321 (license (license:fsf-free "file://framed.sty"))))
2322
2323 (define-public texlive-latex-g-brief
2324 (package
2325 (name "texlive-latex-g-brief")
2326 (version (number->string %texlive-revision))
2327 (source (origin
2328 (method svn-fetch)
2329 (uri (texlive-ref "latex" "g-brief"))
2330 (file-name (string-append name "-" version "-checkout"))
2331 (sha256
2332 (base32
2333 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
2334 (build-system texlive-build-system)
2335 (arguments
2336 '(#:tex-directory "latex/g-brief"
2337 #:phases
2338 (modify-phases %standard-phases
2339 (add-after 'unpack 'remove-generated-file
2340 (lambda _
2341 (delete-file "g-brief.drv")
2342 #t)))))
2343 (home-page "https://www.ctan.org/pkg/g-brief")
2344 (synopsis "Letter document class")
2345 (description
2346 "This package is designed for formatting formless letters in German; it
2347 can also be used for English (by those who can read the documentation). There
2348 are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
2349 \"old\" and a \"new\" version of g-brief.")
2350 (license license:lppl)))
2351
2352 (define-public texlive-latex-galois
2353 (package
2354 (name "texlive-latex-galois")
2355 (version (number->string %texlive-revision))
2356 (source (origin
2357 (method svn-fetch)
2358 (uri (texlive-ref "latex" "galois"))
2359 (file-name (string-append name "-" version "-checkout"))
2360 (sha256
2361 (base32
2362 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
2363 (build-system texlive-build-system)
2364 (arguments '(#:tex-directory "latex/galois"))
2365 (home-page "https://www.ctan.org/pkg/galois")
2366 (synopsis "Typeset Galois connections")
2367 (description
2368 "The package deals with connections in two-dimensional style, optionally
2369 in colour.")
2370 (license license:lppl)))
2371
2372 (define-public texlive-latex-gcite
2373 (package
2374 (name "texlive-latex-gcite")
2375 (version (number->string %texlive-revision))
2376 (source (origin
2377 (method svn-fetch)
2378 (uri (texlive-ref "latex" "gcite"))
2379 (file-name (string-append name "-" version "-checkout"))
2380 (sha256
2381 (base32
2382 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
2383 (build-system texlive-build-system)
2384 (arguments '(#:tex-directory "latex/gcite"))
2385 (home-page "https://www.ctan.org/pkg/gcite")
2386 (synopsis "Citations in a reader-friendly style")
2387 (description
2388 "The package allows citations in the German style, which is considered by
2389 many to be particularly reader-friendly. The citation provides a small amount
2390 of bibliographic information in a footnote on the page where each citation is
2391 made. It combines a desire to eliminate unnecessary page-turning with the
2392 look-up efficiency afforded by numeric citations. The package makes use of
2393 BibLaTeX, and is considered experimental.")
2394 (license license:lppl1.3+)))
2395
2396 (define-public texlive-latex-geometry
2397 (package
2398 (name "texlive-latex-geometry")
2399 (version (number->string %texlive-revision))
2400 (source (origin
2401 (method svn-fetch)
2402 (uri (texlive-ref "latex" "geometry"))
2403 (file-name (string-append name "-" version "-checkout"))
2404 (sha256
2405 (base32
2406 "1r2kfcwclg33yk5z8mvlagwxj7nr1mc3w4bdpmhrwv6dn8mrbvw8"))))
2407 (build-system texlive-build-system)
2408 (arguments '(#:tex-directory "latex/geometry"))
2409 (home-page "https://www.ctan.org/pkg/geometry")
2410 (synopsis "Flexible and complete interface to document dimensions")
2411 (description
2412 "This package provides an easy and flexible user interface to customize
2413 page layout, implementing auto-centering and auto-balancing mechanisms so that
2414 the users have only to give the least description for the page layout. The
2415 package knows about all the standard paper sizes, so that the user need not
2416 know what the nominal \"real\" dimensions of the paper are, just its standard
2417 name (such as a4, letter, etc.). An important feature is the package's
2418 ability to communicate the paper size it's set up to the output.")
2419 (license license:lppl)))
2420
2421 (define-public texlive-latex-mdwtools
2422 (package
2423 (name "texlive-latex-mdwtools")
2424 (version (number->string %texlive-revision))
2425 (source (origin
2426 (method svn-fetch)
2427 (uri (texlive-ref "latex" "mdwtools"))
2428 (file-name (string-append name "-" version "-checkout"))
2429 (sha256
2430 (base32
2431 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
2432 (build-system texlive-build-system)
2433 (arguments '(#:tex-directory "latex/mdwtools"))
2434 (home-page "https://www.ctan.org/pkg/mdwtools")
2435 (synopsis "Miscellaneous tools by Mark Wooding")
2436 (description
2437 "This collection of tools includes: @code{atsupport} for short commands
2438 starting with @code{@@}, macros to sanitize the OT1 encoding of the
2439 @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
2440 @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
2441 which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
2442 array environments; verbatim handling; and syntax diagrams.")
2443 (license license:gpl3+)))
2444
2445 (define-public texlive-latex-polyglossia
2446 (package
2447 (name "texlive-latex-polyglossia")
2448 (version (number->string %texlive-revision))
2449 (source (origin
2450 (method svn-fetch)
2451 (uri (texlive-ref "latex" "polyglossia"))
2452 (file-name (string-append name "-" version "-checkout"))
2453 (sha256
2454 (base32
2455 "09mvszd5qgqg4cfglpj5qxyzjz190ppb9p8gnsnjydwp1akvhayf"))))
2456 (build-system texlive-build-system)
2457 (arguments '(#:tex-directory "latex/polyglossia"))
2458 (home-page "https://www.ctan.org/pkg/polyglossia")
2459 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
2460 (description
2461 "This package provides a complete Babel replacement for users of LuaLaTeX
2462 and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
2463 (license license:lppl1.3+)))
2464
2465 (define-public texlive-latex-supertabular
2466 (package
2467 (name "texlive-latex-supertabular")
2468 (version (number->string %texlive-revision))
2469 (source (origin
2470 (method svn-fetch)
2471 (uri (texlive-ref "latex" "supertabular"))
2472 (file-name (string-append name "-" version "-checkout"))
2473 (sha256
2474 (base32
2475 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
2476 (build-system texlive-build-system)
2477 (arguments '(#:tex-directory "latex/supertabular"))
2478 (home-page "https://www.ctan.org/pkg/supertabular")
2479 (synopsis "Multi-page tables package")
2480 (description
2481 "This package was a predecessor of @code{longtable}; the newer
2482 package (designed on quite different principles) is easier to use and more
2483 flexible, in many cases, but supertabular retains its usefulness in a few
2484 situations where longtable has problems.")
2485 (license license:lppl1.3+)))
2486
2487 (define-public texlive-tex-texinfo
2488 (package
2489 (name "texlive-tex-texinfo")
2490 (version (number->string %texlive-revision))
2491 (source (origin
2492 (method svn-fetch)
2493 (uri (svn-reference
2494 (url (string-append "svn://www.tug.org/texlive/tags/"
2495 %texlive-tag "/Master/texmf-dist/"
2496 "/tex/texinfo"))
2497 (revision %texlive-revision)))
2498 (sha256
2499 (base32
2500 "09zj2w3lx0y6i2syfjjgizahf86z301dw8p37ln6syfhqhzqdz46"))))
2501 (build-system trivial-build-system)
2502 (arguments
2503 `(#:modules ((guix build utils))
2504 #:builder
2505 (begin
2506 (use-modules (guix build utils))
2507 (let ((target (string-append (assoc-ref %outputs "out")
2508 "/share/texmf-dist/tex/texinfo")))
2509 (mkdir-p target)
2510 (copy-recursively (assoc-ref %build-inputs "source") target)
2511 #t))))
2512 (home-page "https://www.ctan.org/pkg/texinfo")
2513 (synopsis "TeX macros to handle Texinfo files")
2514 (description
2515 "Texinfo is the preferred format for documentation in the GNU project;
2516 the format may be used to produce online or printed output from a single
2517 source. The Texinfo macros may be used to produce printable output using TeX;
2518 other programs in the distribution offer online interactive use (with
2519 hypertext linkages in some cases).")
2520 (license license:gpl3+)))
2521
2522 (define-public texlive-latex-upquote
2523 (package
2524 (name "texlive-latex-upquote")
2525 (version (number->string %texlive-revision))
2526 (source (origin
2527 (method svn-fetch)
2528 (uri (texlive-ref "latex" "upquote"))
2529 (file-name (string-append name "-" version "-checkout"))
2530 (sha256
2531 (base32
2532 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
2533 (build-system texlive-build-system)
2534 (arguments '(#:tex-directory "latex/upquote"))
2535 (home-page "https://www.ctan.org/pkg/upquote")
2536 (synopsis "Show \"realistic\" quotes in verbatim")
2537 (description
2538 "Typewriter-style fonts are best for program listings, but Computer
2539 Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
2540 single quotes. Other fonts, and most programming languages, print @code{`} as
2541 a grave accent and @code{'} upright; @code{'} is used both to open and to
2542 close quoted strings. The package switches the typewriter font to Computer
2543 Modern Typewriter in OT1 encoding, and modifies the behaviour of
2544 @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
2545 in the expected way. It does this regardless of other fonts or encodings in
2546 use, so long as the package is loaded after the other fonts were. The package
2547 does not affect @code{\\tt}, @code{\\texttt}, etc.")
2548 (license license:lppl1.2+)))
2549
2550 (define-public texlive-latex-anysize
2551 (package
2552 (name "texlive-latex-anysize")
2553 (version (number->string %texlive-revision))
2554 (source (origin
2555 (method svn-fetch)
2556 (uri (svn-reference
2557 (url (string-append "svn://www.tug.org/texlive/tags/"
2558 %texlive-tag "/Master/texmf-dist/"
2559 "/tex/latex/anysize"))
2560 (revision %texlive-revision)))
2561 (sha256
2562 (base32
2563 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
2564 (build-system trivial-build-system)
2565 (arguments
2566 `(#:modules ((guix build utils))
2567 #:builder
2568 (begin
2569 (use-modules (guix build utils))
2570 (let ((target (string-append (assoc-ref %outputs "out")
2571 "/share/texmf-dist/tex/latex/anysize")))
2572 (mkdir-p target)
2573 (copy-recursively (assoc-ref %build-inputs "source") target)
2574 #t))))
2575 (home-page "https://www.ctan.org/pkg/anysize")
2576 (synopsis "Simple package to set up document margins")
2577 (description
2578 "This is a simple package to set up document margins. This package is
2579 considered obsolete; alternatives are the @code{typearea} package from the
2580 @code{koma-script} bundle, or the @code{geometry} package.")
2581 (license license:public-domain)))
2582
2583 (define-public texlive-latex-appendix
2584 (package
2585 (name "texlive-latex-appendix")
2586 (version (number->string %texlive-revision))
2587 (source (origin
2588 (method svn-fetch)
2589 (uri (texlive-ref "latex" "appendix"))
2590 (sha256
2591 (base32
2592 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
2593 (build-system texlive-build-system)
2594 (arguments '(#:tex-directory "latex/appendix"))
2595 (home-page "https://www.ctan.org/pkg/appendix")
2596 (synopsis "Extra control of appendices")
2597 (description
2598 "The appendix package provides various ways of formatting the titles of
2599 appendices. Also (sub)appendices environments are provided that can be used,
2600 for example, for per chapter/section appendices. An @code{appendices}
2601 environment is provided which can be used instead of the @code{\\appendix}
2602 command.")
2603 (license license:lppl)))
2604
2605 (define-public texlive-latex-changebar
2606 (package
2607 (name "texlive-latex-changebar")
2608 (version (number->string %texlive-revision))
2609 (source (origin
2610 (method svn-fetch)
2611 (uri (texlive-ref "latex" "changebar"))
2612 (sha256
2613 (base32
2614 "1ik4m8pzfsn1grlda6fniqqfwmgj7rfxwg63jdw0p0qv002vc7ik"))))
2615 (build-system texlive-build-system)
2616 (arguments '(#:tex-directory "latex/changebar"))
2617 (home-page "https://www.ctan.org/pkg/changebar")
2618 (synopsis "Generate changebars in LaTeX documents")
2619 (description
2620 "Identify areas of text to be marked with changebars with the
2621 @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
2622 package uses 'drivers' to place the bars; the available drivers can work with
2623 @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
2624 drivers, and VTeX and pdfTeX.")
2625 (license license:lppl)))
2626
2627 (define-public texlive-latex-cmap
2628 (package
2629 (name "texlive-latex-cmap")
2630 (version (number->string %texlive-revision))
2631 (source (origin
2632 (method svn-fetch)
2633 (uri (svn-reference
2634 (url (string-append "svn://www.tug.org/texlive/tags/"
2635 %texlive-tag "/Master/texmf-dist/"
2636 "/tex/latex/cmap"))
2637 (revision %texlive-revision)))
2638 (file-name (string-append name "-" version "-checkout"))
2639 (sha256
2640 (base32
2641 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
2642 (build-system trivial-build-system)
2643 (arguments
2644 `(#:modules ((guix build utils))
2645 #:builder
2646 (begin
2647 (use-modules (guix build utils))
2648 (let ((target (string-append (assoc-ref %outputs "out")
2649 "/share/texmf-dist/tex/latex/cmap")))
2650 (mkdir-p target)
2651 (copy-recursively (assoc-ref %build-inputs "source") target)
2652 #t))))
2653 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
2654 Master/texmf-dist/tex/latex/cmap/")
2655 (synopsis "CMap support for PDF files")
2656 (description
2657 "This package embeds CMap tables into PDF files to make search and
2658 copy-and-paste functions work properly.")
2659 (license license:lppl)))
2660
2661 (define-public texlive-latex-colortbl
2662 (package
2663 (name "texlive-latex-colortbl")
2664 (version (number->string %texlive-revision))
2665 (source (origin
2666 (method svn-fetch)
2667 (uri (texlive-ref "latex" "colortbl"))
2668 (sha256
2669 (base32
2670 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
2671 (build-system texlive-build-system)
2672 (arguments '(#:tex-directory "latex/colortbl"))
2673 (home-page "https://www.ctan.org/pkg/colortbl")
2674 (synopsis "Add colour to LaTeX tables")
2675 (description
2676 "This package allows rows, columns, and even individual cells in LaTeX
2677 tables to be coloured.")
2678 (license license:lppl)))
2679
2680 (define-public texlive-latex-fancybox
2681 (package
2682 (name "texlive-latex-fancybox")
2683 (version (number->string %texlive-revision))
2684 (source (origin
2685 (method svn-fetch)
2686 (uri (svn-reference
2687 (url (string-append "svn://www.tug.org/texlive/tags/"
2688 %texlive-tag "/Master/texmf-dist/"
2689 "/tex/latex/fancybox"))
2690 (revision %texlive-revision)))
2691 (sha256
2692 (base32
2693 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
2694 (build-system trivial-build-system)
2695 (arguments
2696 `(#:modules ((guix build utils))
2697 #:builder
2698 (begin
2699 (use-modules (guix build utils))
2700 (let ((target (string-append (assoc-ref %outputs "out")
2701 "/share/texmf-dist/tex/latex/fancybox")))
2702 (mkdir-p target)
2703 (copy-recursively (assoc-ref %build-inputs "source") target)
2704 #t))))
2705 (home-page "https://www.ctan.org/pkg/fancybox")
2706 (synopsis "Variants of \\fbox and other games with boxes")
2707 (description
2708 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
2709 @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
2710 using box macros and flexible verbatim macros. You can box mathematics,
2711 floats, center, flushleft, and flushright, lists, and pages.")
2712 (license license:lppl1.2+)))
2713
2714 (define-public texlive-latex-fancyhdr
2715 (package
2716 (name "texlive-latex-fancyhdr")
2717 (version (number->string %texlive-revision))
2718 (source (origin
2719 (method svn-fetch)
2720 (uri (svn-reference
2721 (url (string-append "svn://www.tug.org/texlive/tags/"
2722 %texlive-tag "/Master/texmf-dist/"
2723 "/tex/latex/fancyhdr"))
2724 (revision %texlive-revision)))
2725 (sha256
2726 (base32
2727 "04h430agf8aj7ziwyb46xpk95c605rjk1wzhr63m6ylipihidlgw"))))
2728 (build-system trivial-build-system)
2729 (arguments
2730 `(#:modules ((guix build utils))
2731 #:builder
2732 (begin
2733 (use-modules (guix build utils))
2734 (let ((target (string-append (assoc-ref %outputs "out")
2735 "/share/texmf-dist/tex/latex/fancyhdr")))
2736 (mkdir-p target)
2737 (copy-recursively (assoc-ref %build-inputs "source") target)
2738 #t))))
2739 (home-page "https://www.ctan.org/pkg/fancyhdr")
2740 (synopsis "Extensive control of page headers and footers in LaTeX2e")
2741 (description
2742 "The package provides extensive facilities, both for constructing headers
2743 and footers, and for controlling their use (for example, at times when LaTeX
2744 would automatically change the heading style in use).")
2745 (license license:lppl)))
2746
2747 (define-public texlive-latex-float
2748 (package
2749 (name "texlive-latex-float")
2750 (version (number->string %texlive-revision))
2751 (source (origin
2752 (method svn-fetch)
2753 (uri (texlive-ref "latex" "float"))
2754 (sha256
2755 (base32
2756 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
2757 (build-system texlive-build-system)
2758 (arguments '(#:tex-directory "latex/float"))
2759 (home-page "https://www.ctan.org/pkg/float")
2760 (synopsis "Improved interface for floating objects")
2761 (description
2762 "This package improves the interface for defining floating objects such
2763 as figures and tables. It introduces the boxed float, the ruled float and the
2764 plaintop float. You can define your own floats and improve the behaviour of
2765 the old ones. The package also provides the @code{H} float modifier option of
2766 the obsolete @code{here} package. You can select this as automatic default
2767 with @code{\\floatplacement{figure}{H}}.")
2768 (license license:lppl)))
2769
2770 (define-public texlive-latex-footmisc
2771 (package
2772 (name "texlive-latex-footmisc")
2773 (version (number->string %texlive-revision))
2774 (source (origin
2775 (method svn-fetch)
2776 (uri (texlive-ref "latex" "footmisc"))
2777 (sha256
2778 (base32
2779 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
2780 (build-system texlive-build-system)
2781 (arguments '(#:tex-directory "latex/footmisc"))
2782 (home-page "https://www.ctan.org/pkg/footmisc")
2783 (synopsis "Range of footnote options")
2784 (description
2785 "This is a collection of ways to change the typesetting of footnotes.
2786 The package provides means of changing the layout of the footnotes themselves,
2787 a way to number footnotes per page, to make footnotes disappear in a
2788 \"moving\" argument, and to deal with multiple references to footnotes from
2789 the same place. The package also has a range of techniques for labelling
2790 footnotes with symbols rather than numbers.")
2791 (license license:lppl1.3+)))
2792
2793 (define-public texlive-latex-listings
2794 (package
2795 (name "texlive-latex-listings")
2796 (version (number->string %texlive-revision))
2797 (source (origin
2798 (method svn-fetch)
2799 (uri (texlive-ref "latex" "listings"))
2800 (sha256
2801 (base32
2802 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
2803 (build-system texlive-build-system)
2804 (arguments
2805 '(#:tex-directory "latex/listings"
2806 #:build-targets '("listings.ins")))
2807 (home-page "https://www.ctan.org/pkg/listings")
2808 (synopsis "Typeset source code listings using LaTeX")
2809 (description
2810 "The package enables the user to typeset programs (programming code)
2811 within LaTeX; the source code is read directly by TeX---no front-end processor
2812 is needed. Keywords, comments and strings can be typeset using different
2813 styles. Support for @code{hyperref} is provided.")
2814 (license license:lppl1.3+)))
2815
2816 (define-public texlive-latex-jknapltx
2817 (package
2818 (name "texlive-latex-jknapltx")
2819 (version (number->string %texlive-revision))
2820 (source (origin
2821 (method svn-fetch)
2822 (uri (svn-reference
2823 (url (string-append "svn://www.tug.org/texlive/tags/"
2824 %texlive-tag "/Master/texmf-dist/"
2825 "/tex/latex/jknapltx"))
2826 (revision %texlive-revision)))
2827 (sha256
2828 (base32
2829 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
2830 (build-system trivial-build-system)
2831 (arguments
2832 `(#:modules ((guix build utils))
2833 #:builder
2834 (begin
2835 (use-modules (guix build utils))
2836 (let ((target (string-append (assoc-ref %outputs "out")
2837 "/share/texmf-dist/tex/latex/jknapltx")))
2838 (mkdir-p target)
2839 (copy-recursively (assoc-ref %build-inputs "source") target)
2840 #t))))
2841 (home-page "https://www.ctan.org/pkg/jknappen")
2842 (synopsis "Miscellaneous packages by Joerg Knappen")
2843 (description
2844 "This package provides miscellaneous macros by Joerg Knappen, including:
2845 represent counters in greek; Maxwell's non-commutative division;
2846 @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
2847 @code{inputenc} definition files that allow verbatim input in the respective
2848 ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
2849 extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
2850 transliterate semitic languages; patches to make (La)TeX formulae embeddable
2851 in SGML; use maths minus in text as appropriate; simple Young tableaux.")
2852 (license license:gpl2)))
2853
2854 (define-public texlive-fonts-ec
2855 (package
2856 (name "texlive-fonts-ec")
2857 (version (number->string %texlive-revision))
2858 (source (origin
2859 (method svn-fetch)
2860 (uri (svn-reference
2861 (url (string-append "svn://www.tug.org/texlive/tags/"
2862 %texlive-tag "/Master/texmf-dist/"
2863 "/fonts/source/jknappen/ec/"))
2864 (revision %texlive-revision)))
2865 (sha256
2866 (base32
2867 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
2868 (build-system gnu-build-system)
2869 (arguments
2870 `(#:modules ((guix build gnu-build-system)
2871 (guix build utils)
2872 (srfi srfi-1)
2873 (srfi srfi-26))
2874 #:tests? #f ; no tests
2875 #:phases
2876 (modify-phases %standard-phases
2877 (delete 'configure)
2878 (replace 'build
2879 (lambda* (#:key inputs #:allow-other-keys)
2880 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
2881 ;; Tell mf where to find mf.base
2882 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
2883 ;; Tell mf where to look for source files
2884 (setenv "MFINPUTS"
2885 (string-append (getcwd) ":"
2886 mf "/share/texmf-dist/metafont/base:"
2887 (assoc-ref inputs "texlive-fonts-cm")
2888 "/share/texmf-dist/fonts/source/public/cm")))
2889 (mkdir "build")
2890 (every (lambda (font)
2891 (format #t "building font ~a\n" font)
2892 (zero? (system* "mf" "-progname=mf"
2893 "-output-directory=build"
2894 (string-append "\\"
2895 "mode:=ljfour; "
2896 "mag:=1; "
2897 "batchmode; "
2898 "input " (basename font ".mf")))))
2899 (find-files "." "[0-9]+\\.mf$"))))
2900 (replace 'install
2901 (lambda* (#:key outputs #:allow-other-keys)
2902 (let* ((out (assoc-ref outputs "out"))
2903 (tfm (string-append
2904 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
2905 (mf (string-append
2906 out "/share/texmf-dist/fonts/source/jknappen/ec")))
2907 (for-each (cut install-file <> tfm)
2908 (find-files "build" "\\.*"))
2909 (for-each (cut install-file <> mf)
2910 (find-files "." "\\.mf"))
2911 #t))))))
2912 (native-inputs
2913 `(("texlive-bin" ,texlive-bin)
2914 ("texlive-metafont-base" ,texlive-metafont-base)
2915 ("texlive-fonts-cm" ,texlive-fonts-cm)))
2916 (home-page "https://www.ctan.org/pkg/ec")
2917 (synopsis "Computer modern fonts in T1 and TS1 encodings")
2918 (description
2919 "The EC fonts are European Computer Modern Fonts, supporting the complete
2920 LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
2921 These fonts are intended to be stable with no changes being made to the tfm
2922 files. The set also contains a Text Companion Symbol font, called @code{tc},
2923 featuring many useful characters needed in text typesetting, for example
2924 oldstyle digits, currency symbols (including the newly created Euro symbol),
2925 the permille sign, copyright, trade mark and servicemark as well as a copyleft
2926 sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
2927 EC fonts supersede the preliminary version released as the DC fonts. The
2928 fonts are available in (traced) Adobe Type 1 format, as part of the
2929 @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
2930 set, Latin Modern, is not actually a direct development of the EC set, and
2931 differs from the EC in a number of particulars.")
2932 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
2933 texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
2934
2935 (define-public texlive-fonts-rsfs
2936 (package
2937 (name "texlive-fonts-rsfs")
2938 (version (number->string %texlive-revision))
2939 (source (origin
2940 (method svn-fetch)
2941 (uri (svn-reference
2942 (url (string-append "svn://www.tug.org/texlive/tags/"
2943 %texlive-tag "/Master/texmf-dist/"
2944 "/fonts/source/public/rsfs/"))
2945 (revision %texlive-revision)))
2946 (sha256
2947 (base32
2948 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
2949 (build-system gnu-build-system)
2950 (arguments
2951 `(#:modules ((guix build gnu-build-system)
2952 (guix build utils)
2953 (srfi srfi-1)
2954 (srfi srfi-26))
2955 #:tests? #f ; no tests
2956 #:phases
2957 (modify-phases %standard-phases
2958 (delete 'configure)
2959 (replace 'build
2960 (lambda* (#:key inputs #:allow-other-keys)
2961 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
2962 ;; Tell mf where to find mf.base
2963 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
2964 ;; Tell mf where to look for source files
2965 (setenv "MFINPUTS"
2966 (string-append (getcwd) ":"
2967 mf "/share/texmf-dist/metafont/base:"
2968 (assoc-ref inputs "texlive-fonts-cm")
2969 "/share/texmf-dist/fonts/source/public/cm")))
2970 (mkdir "build")
2971 (every (lambda (font)
2972 (format #t "building font ~a\n" font)
2973 (zero? (system* "mf" "-progname=mf"
2974 "-output-directory=build"
2975 (string-append "\\"
2976 "mode:=ljfour; "
2977 "mag:=1; "
2978 "batchmode; "
2979 "input " (basename font ".mf")))))
2980 (find-files "." "[0-9]+\\.mf$"))))
2981 (replace 'install
2982 (lambda* (#:key outputs #:allow-other-keys)
2983 (let* ((out (assoc-ref outputs "out"))
2984 (tfm (string-append
2985 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
2986 (mf (string-append
2987 out "/share/texmf-dist/fonts/source/public/rsfs")))
2988 (for-each (cut install-file <> tfm)
2989 (find-files "build" "\\.*"))
2990 (for-each (cut install-file <> mf)
2991 (find-files "." "\\.mf"))
2992 #t))))))
2993 (native-inputs
2994 `(("texlive-bin" ,texlive-bin)
2995 ("texlive-metafont-base" ,texlive-metafont-base)
2996 ("texlive-fonts-cm" ,texlive-fonts-cm)))
2997 (home-page "https://www.ctan.org/pkg/rsfs")
2998 (synopsis "Ralph Smith's Formal Script font")
2999 (description
3000 "The fonts provide uppercase formal script letters for use as symbols in
3001 scientific and mathematical typesetting (in contrast to the informal script
3002 fonts such as that used for the calligraphic symbols in the TeX maths symbol
3003 font). The fonts are provided as Metafont source, and as derived Adobe Type 1
3004 format. LaTeX support, for using these fonts in mathematics, is available via
3005 one of the packages @code{calrsfs} and @code{mathrsfs}.")
3006 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
3007
3008 (define-public texlive-latex-eso-pic
3009 (package
3010 (name "texlive-latex-eso-pic")
3011 (version (number->string %texlive-revision))
3012 (source (origin
3013 (method svn-fetch)
3014 (uri (texlive-ref "latex" "eso-pic"))
3015 (sha256
3016 (base32
3017 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
3018 (build-system texlive-build-system)
3019 (arguments '(#:tex-directory "latex/eso-pic"))
3020 (home-page "https://www.ctan.org/pkg/eso-pic")
3021 (synopsis "Add picture commands (or backgrounds) to every page")
3022 (description
3023 "The package adds one or more user commands to LaTeX's @code{shipout}
3024 routine, which may be used to place the output at fixed positions. The
3025 @code{grid} option may be used to find the correct places.")
3026 (license license:lppl1.3+)))
3027
3028 (define-public texlive-latex-eepic
3029 (package
3030 (name "texlive-latex-eepic")
3031 (version (number->string %texlive-revision))
3032 (source (origin
3033 (method svn-fetch)
3034 (uri (svn-reference
3035 (url (string-append "svn://www.tug.org/texlive/tags/"
3036 %texlive-tag "/Master/texmf-dist/"
3037 "/tex/latex/eepic"))
3038 (revision %texlive-revision)))
3039 (sha256
3040 (base32
3041 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
3042 (build-system trivial-build-system)
3043 (arguments
3044 `(#:modules ((guix build utils))
3045 #:builder
3046 (begin
3047 (use-modules (guix build utils))
3048 (let ((target (string-append (assoc-ref %outputs "out")
3049 "/share/texmf-dist/tex/latex/eepic")))
3050 (mkdir-p target)
3051 (copy-recursively (assoc-ref %build-inputs "source") target)
3052 #t))))
3053 (home-page "https://www.ctan.org/pkg/eepic")
3054 (synopsis "Extensions to epic and the LaTeX drawing tools")
3055 (description
3056 "Extensions to @code{epic} and the LaTeX picture drawing environment,
3057 include the drawing of lines at any slope, the drawing of circles in any
3058 radii, and the drawing of dotted and dashed lines much faster with much less
3059 TeX memory, and providing several new commands for drawing ellipses, arcs,
3060 splines, and filled circles and ellipses. The package uses @code{tpic}
3061 @code{\\special} commands.")
3062 (license license:public-domain)))
3063
3064 (define-public texlive-latex-enumitem
3065 (package
3066 (name "texlive-latex-enumitem")
3067 (version (number->string %texlive-revision))
3068 (source (origin
3069 (method svn-fetch)
3070 (uri (svn-reference
3071 (url (string-append "svn://www.tug.org/texlive/tags/"
3072 %texlive-tag "/Master/texmf-dist/"
3073 "/tex/latex/enumitem"))
3074 (revision %texlive-revision)))
3075 (file-name (string-append name "-" version "-checkout"))
3076 (sha256
3077 (base32
3078 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
3079 (build-system trivial-build-system)
3080 (arguments
3081 `(#:modules ((guix build utils))
3082 #:builder
3083 (begin
3084 (use-modules (guix build utils))
3085 (let ((target (string-append (assoc-ref %outputs "out")
3086 "/share/texmf-dist/tex/latex/enumitem")))
3087 (mkdir-p target)
3088 (copy-recursively (assoc-ref %build-inputs "source") target)
3089 #t))))
3090 (home-page "https://www.ctan.org/pkg/enumitem")
3091 (synopsis "Customize basic list environments")
3092 (description
3093 "This package is intended to ease customizing the three basic list
3094 environments: @code{enumerate}, @code{itemize} and @code{description}. It
3095 extends their syntax to allow an optional argument where a set of parameters
3096 in the form @code{key=value} are available, for example:
3097 @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
3098 (license license:lppl1.3+)))
3099
3100 (define-public texlive-latex-multirow
3101 (package
3102 (name "texlive-latex-multirow")
3103 (version (number->string %texlive-revision))
3104 (source (origin
3105 (method svn-fetch)
3106 (uri (texlive-ref "latex" "multirow"))
3107 (sha256
3108 (base32
3109 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
3110 (build-system texlive-build-system)
3111 (arguments '(#:tex-directory "latex/multirow"))
3112 (home-page "https://www.ctan.org/pkg/multirow")
3113 (synopsis "Create tabular cells spanning multiple rows")
3114 (description
3115 "The package provides tools for creating tabular cells spanning multiple
3116 rows. It has a lot of flexibility, including an option for specifying an
3117 entry at the \"natural\" width of its text.")
3118 (license license:lppl1.3+)))
3119
3120 (define-public texlive-latex-overpic
3121 (package
3122 (name "texlive-latex-overpic")
3123 (version (number->string %texlive-revision))
3124 (source (origin
3125 (method svn-fetch)
3126 (uri (svn-reference
3127 (url (string-append "svn://www.tug.org/texlive/tags/"
3128 %texlive-tag "/Master/texmf-dist/"
3129 "/tex/latex/overpic"))
3130 (revision %texlive-revision)))
3131 (sha256
3132 (base32
3133 "0m29q9qdb00558b7g2i7iw6w62n5s46yx81j8m99qkv77magk4fm"))))
3134 (build-system trivial-build-system)
3135 (arguments
3136 `(#:modules ((guix build utils))
3137 #:builder
3138 (begin
3139 (use-modules (guix build utils))
3140 (let ((target (string-append (assoc-ref %outputs "out")
3141 "/share/texmf-dist/tex/latex/overpic")))
3142 (mkdir-p target)
3143 (copy-recursively (assoc-ref %build-inputs "source") target)
3144 #t))))
3145 (home-page "https://www.ctan.org/pkg/overpic")
3146 (synopsis "Combine LaTeX commands over included graphics")
3147 (description
3148 "The @code{overpic} environment is a cross between the LaTeX
3149 @code{picture} environment and the @code{\\includegraphics} command of
3150 @code{graphicx}. The resulting picture environment has the same dimensions as
3151 the included graphic. LaTeX commands can be placed on the graphic at defined
3152 positions; a grid for orientation is available.")
3153 (license license:lppl1.0+)))
3154
3155 (define-public texlive-latex-parskip
3156 (package
3157 (name "texlive-latex-parskip")
3158 (version (number->string %texlive-revision))
3159 (source (origin
3160 (method svn-fetch)
3161 (uri (svn-reference
3162 (url (string-append "svn://www.tug.org/texlive/tags/"
3163 %texlive-tag "/Master/texmf-dist/"
3164 "/tex/latex/parskip"))
3165 (revision %texlive-revision)))
3166 (file-name (string-append name "-" version "-checkout"))
3167 (sha256
3168 (base32
3169 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
3170 (build-system trivial-build-system)
3171 (arguments
3172 `(#:modules ((guix build utils))
3173 #:builder
3174 (begin
3175 (use-modules (guix build utils))
3176 (let ((target (string-append (assoc-ref %outputs "out")
3177 "/share/texmf-dist/tex/latex/parskip")))
3178 (mkdir-p target)
3179 (copy-recursively (assoc-ref %build-inputs "source") target)
3180 #t))))
3181 (home-page "https://www.ctan.org/pkg/parskip")
3182 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
3183 (description
3184 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
3185 that is untidy; this package (though it is no substitute for a properly
3186 designed class) helps alleviate this untidiness.")
3187 (license license:lppl)))
3188
3189 (define-public texlive-latex-pdfpages
3190 (package
3191 (name "texlive-latex-pdfpages")
3192 (version (number->string %texlive-revision))
3193 (source (origin
3194 (method svn-fetch)
3195 (uri (texlive-ref "latex" "pdfpages"))
3196 (sha256
3197 (base32
3198 "06p5smfq66559ppdnmkl3hp8534x84ywbscimsiir4gllpya3i9h"))))
3199 (build-system texlive-build-system)
3200 (arguments '(#:tex-directory "latex/pdfpages"))
3201 (home-page "https://www.ctan.org/pkg/pdfpages")
3202 (synopsis "Include PDF documents in LaTeX")
3203 (description
3204 "This package simplifies the inclusion of external multi-page PDF
3205 documents in LaTeX documents. Pages may be freely selected and it is possible
3206 to put several logical pages onto each sheet of paper. Furthermore a lot of
3207 hypertext features like hyperlinks and article threads are provided. The
3208 package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
3209 use this package to insert PostScript files, in addition to PDF files.")
3210 (license license:lppl1.3+)))
3211
3212 (define-public texlive-fonts-stmaryrd
3213 (package
3214 (name "texlive-fonts-stmaryrd")
3215 (version (number->string %texlive-revision))
3216 (source (origin
3217 (method svn-fetch)
3218 (uri (texlive-ref "fonts" "stmaryrd"))
3219 (sha256
3220 (base32
3221 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
3222 (build-system texlive-build-system)
3223 (arguments
3224 '(#:tex-directory "latex/stmaryrd"
3225 #:phases
3226 (modify-phases %standard-phases
3227 (add-after 'configure 'patch-ins
3228 (lambda _
3229 (substitute* "stmaryrd.ins"
3230 (("^%% LaTeX2e.*") "\\input docstrip\n")
3231 (("fontdef\\}\\}" line)
3232 (string-append line "\n\\endbatchfile")))
3233 #t)))))
3234 (home-page "https://www.ctan.org/pkg/stmaryrd")
3235 (synopsis "St Mary Road symbols for theoretical computer science")
3236 (description
3237 "The fonts were originally distributed as Metafont sources only, but
3238 Adobe Type 1 versions are also now available. Macro support is provided for
3239 use under LaTeX; the package supports the @code{only} option (provided by the
3240 @code{somedefs} package) to restrict what is loaded, for those who don't need
3241 the whole font.")
3242 (license license:lppl)))
3243
3244 (define-public texlive-latex-subfigure
3245 (package
3246 (name "texlive-latex-subfigure")
3247 (version (number->string %texlive-revision))
3248 (source (origin
3249 (method svn-fetch)
3250 (uri (texlive-ref "latex" "subfigure"))
3251 (sha256
3252 (base32
3253 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
3254 (build-system texlive-build-system)
3255 (arguments '(#:tex-directory "latex/subfigure"))
3256 (home-page "https://www.ctan.org/pkg/subfigure")
3257 (synopsis "Figures divided into subfigures")
3258 (description
3259 "This (deprecated) package provides support for the manipulation and
3260 reference of small or \"sub\" figures and tables within a single figure or
3261 table environment. It is convenient to use this package when your subfigures
3262 are to be separately captioned, referenced, or are to be included in the
3263 List-of-Figures. A new @code{\\subfigure} command is introduced which can be
3264 used inside a figure environment for each subfigure. An optional first
3265 argument is used as the caption for that subfigure. The package is now
3266 considered obsolete: it was superseded by @code{subfig}, but users may find
3267 the more recent @code{subcaption} package more satisfactory.")
3268 (license license:lppl)))
3269
3270 (define-public texlive-latex-tabulary
3271 (package
3272 (name "texlive-latex-tabulary")
3273 (version (number->string %texlive-revision))
3274 (source (origin
3275 (method svn-fetch)
3276 (uri (texlive-ref "latex" "tabulary"))
3277 (file-name (string-append name "-" version "-checkout"))
3278 (sha256
3279 (base32
3280 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
3281 (build-system texlive-build-system)
3282 (arguments '(#:tex-directory "latex/tabulary"))
3283 (home-page "https://www.ctan.org/pkg/tabulary")
3284 (synopsis "Tabular with variable width columns balanced")
3285 (description
3286 "The package defines a @code{tabular*}-like environment, @code{tabulary},
3287 taking a \"total width\" argument as well as the column specifications. The
3288 environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
3289 variable width columns (@code{\\raggedright}, @code{\\centering},
3290 @code{\\raggedleft}, and normally justified). In contrast to
3291 @code{tabularx}'s @code{X} columns, the width of each column is weighted
3292 according to the natural width of the widest cell in the column.")
3293 (license license:lppl)))
3294
3295 (define-public texlive-latex-threeparttable
3296 (package
3297 (name "texlive-latex-threeparttable")
3298 (version (number->string %texlive-revision))
3299 (source (origin
3300 (method svn-fetch)
3301 (uri (svn-reference
3302 (url (string-append "svn://www.tug.org/texlive/tags/"
3303 %texlive-tag "/Master/texmf-dist/"
3304 "/tex/latex/threeparttable"))
3305 (revision %texlive-revision)))
3306 (sha256
3307 (base32
3308 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
3309 (build-system trivial-build-system)
3310 (arguments
3311 `(#:modules ((guix build utils))
3312 #:builder
3313 (begin
3314 (use-modules (guix build utils))
3315 (let ((target (string-append (assoc-ref %outputs "out")
3316 "/share/texmf-dist/tex/latex/threeparttable")))
3317 (mkdir-p target)
3318 (copy-recursively (assoc-ref %build-inputs "source") target)
3319 #t))))
3320 (home-page "https://www.ctan.org/pkg/threeparttable")
3321 (synopsis "Tables with captions and notes all the same width")
3322 (description
3323 "This package facilitates tables with titles (captions) and notes. The
3324 title and notes are given a width equal to the body of the table (a
3325 @code{tabular} environment). By itself, a @code{threeparttable} does not
3326 float, but you can put it in a @code{table} or a @code{table*} or some other
3327 environment.")
3328 (license (license:fsf-free "file://threeparttable.sty"))))
3329
3330 (define-public texlive-fonts-txfonts
3331 (package
3332 (name "texlive-fonts-txfonts")
3333 (version (number->string %texlive-revision))
3334 (source (origin
3335 (method svn-fetch)
3336 (uri (svn-reference
3337 (url (string-append "svn://www.tug.org/texlive/tags/"
3338 %texlive-tag "/Master/texmf-dist/"
3339 "/tex/latex/txfonts"))
3340 (revision %texlive-revision)))
3341 (file-name (string-append name "-" version "-checkout"))
3342 (sha256
3343 (base32
3344 "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
3345 (build-system trivial-build-system)
3346 (arguments
3347 `(#:modules ((guix build utils)
3348 (ice-9 match))
3349 #:builder
3350 (begin
3351 (use-modules (guix build utils)
3352 (ice-9 match))
3353 (let ((root (string-append (assoc-ref %outputs "out")
3354 "/share/texmf-dist/"))
3355 (pkgs '(("source" . "tex/latex/txfonts")
3356 ("txfonts-vf" . "fonts/tfm/public/txfonts")
3357 ("txfonts-afm" . "fonts/afm/public/txfonts")
3358 ("txfonts-tfm" . "fonts/tfm/public/txfonts")
3359 ("txfonts-type1" . "fonts/type1/public/txfonts")
3360 ("txfonts-enc" . "fonts/enc/dvips/txfonts")
3361 ("txfonts-map" . "fonts/map/dvips/txfonts"))))
3362 (for-each (match-lambda
3363 ((pkg . dir)
3364 (let ((target (string-append root dir)))
3365 (mkdir-p target)
3366 (copy-recursively (assoc-ref %build-inputs pkg)
3367 target))))
3368 pkgs)
3369 #t))))
3370 (native-inputs
3371 `(("txfonts-tfm"
3372 ,(origin
3373 (method svn-fetch)
3374 (uri (svn-reference
3375 (url (string-append "svn://www.tug.org/texlive/tags/"
3376 %texlive-tag "/Master/texmf-dist/"
3377 "/fonts/tfm/public/txfonts"))
3378 (revision %texlive-revision)))
3379 (file-name (string-append name "-tfm-" version "-checkout"))
3380 (sha256
3381 (base32
3382 "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
3383 ("txfonts-vf"
3384 ,(origin
3385 (method svn-fetch)
3386 (uri (svn-reference
3387 (url (string-append "svn://www.tug.org/texlive/tags/"
3388 %texlive-tag "/Master/texmf-dist/"
3389 "/fonts/vf/public/txfonts"))
3390 (revision %texlive-revision)))
3391 (file-name (string-append name "-vf-" version "-checkout"))
3392 (sha256
3393 (base32
3394 "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
3395 ("txfonts-afm"
3396 ,(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 "/fonts/afm/public/txfonts"))
3402 (revision %texlive-revision)))
3403 (file-name (string-append name "-afm-" version "-checkout"))
3404 (sha256
3405 (base32
3406 "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
3407 ("txfonts-type1"
3408 ,(origin
3409 (method svn-fetch)
3410 (uri (svn-reference
3411 (url (string-append "svn://www.tug.org/texlive/tags/"
3412 %texlive-tag "/Master/texmf-dist/"
3413 "/fonts/type1/public/txfonts"))
3414 (revision %texlive-revision)))
3415 (file-name (string-append name "-type1-" version "-checkout"))
3416 (sha256
3417 (base32
3418 "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
3419 ("txfonts-map"
3420 ,(origin
3421 (method svn-fetch)
3422 (uri (svn-reference
3423 (url (string-append "svn://www.tug.org/texlive/tags/"
3424 %texlive-tag "/Master/texmf-dist/"
3425 "/fonts/map/dvips/txfonts"))
3426 (revision %texlive-revision)))
3427 (file-name (string-append name "-map-" version "-checkout"))
3428 (sha256
3429 (base32
3430 "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
3431 ("txfonts-enc"
3432 ,(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 "/fonts/enc/dvips/txfonts"))
3438 (revision %texlive-revision)))
3439 (file-name (string-append name "-enc-" version "-checkout"))
3440 (sha256
3441 (base32
3442 "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
3443 (home-page "https://www.ctan.org/pkg/threeparttable")
3444 (synopsis "Times-like fonts in support of mathematics")
3445 (description
3446 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
3447 NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
3448 and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
3449 providing all the symbols of the Computer Modern and AMS fonts, including all
3450 the Greek capital letters from CMR; and additional maths fonts of various
3451 other symbols.
3452
3453 The set is complemented by a sans-serif set of text fonts, based on
3454 Helvetica/NimbusSanL, and a monospace set.
3455
3456 All the fonts are in Type 1 format (AFM and PFB files), and are supported by
3457 TeX metrics (VF and TFM files) and macros for use with LaTeX.")
3458 ;; Any version of the GPL with font exception.
3459 (license license:gpl3+)))
3460
3461 (define-public texlive-fonts-iwona
3462 (package
3463 (name "texlive-fonts-iwona")
3464 (version "0.995b")
3465 (source (origin
3466 (method url-fetch)
3467 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
3468 (string-map (lambda (c)
3469 (if (char=? c #\.)
3470 #\_ c))
3471 version)
3472 ".zip"))
3473 (sha256
3474 (base32
3475 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
3476 (build-system trivial-build-system)
3477 (arguments
3478 `(#:modules ((guix build utils))
3479 #:builder
3480 (begin
3481 (use-modules (guix build utils))
3482 (let ((target (string-append (assoc-ref %outputs "out")
3483 "/share/texmf-dist/"))
3484 (unzip (string-append (assoc-ref %build-inputs "unzip")
3485 "/bin/unzip")))
3486 (system* unzip (assoc-ref %build-inputs "source"))
3487 (mkdir-p target)
3488 (copy-recursively "iwona" target)))))
3489 (native-inputs
3490 `(("unzip" ,unzip)))
3491 (home-page "http://jmn.pl/en/kurier-i-iwona/")
3492 (synopsis "Sans-serif typeface for TeX")
3493 (description "Iwona is a two-element sans-serif typeface. It was created
3494 as an alternative version of the Kurier typeface, which was designed in 1975
3495 for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
3496 supervision of Roman Tomaszewski. Kurier was designed for linotype
3497 typesetting of newspapers and similar periodicals. The Iwona fonts are an
3498 alternative version of the Kurier fonts. The difference lies in the absence
3499 of ink traps which typify the Kurier font.")
3500 (license license:gfl1.0)))
3501
3502 (define-public texlive-latex-titlesec
3503 (package
3504 (name "texlive-latex-titlesec")
3505 (version (number->string %texlive-revision))
3506 (source (origin
3507 (method svn-fetch)
3508 (uri (svn-reference
3509 (url (string-append "svn://www.tug.org/texlive/tags/"
3510 %texlive-tag "/Master/texmf-dist/"
3511 "/tex/latex/titlesec"))
3512 (revision %texlive-revision)))
3513 (sha256
3514 (base32
3515 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
3516 (build-system trivial-build-system)
3517 (arguments
3518 `(#:modules ((guix build utils))
3519 #:builder
3520 (begin
3521 (use-modules (guix build utils))
3522 (let ((target (string-append (assoc-ref %outputs "out")
3523 "/share/texmf-dist/tex/latex/titlesec")))
3524 (mkdir-p target)
3525 (copy-recursively (assoc-ref %build-inputs "source") target)
3526 #t))))
3527 (home-page "https://www.ctan.org/pkg/titlesec")
3528 (synopsis "Select alternative section titles")
3529 (description
3530 "This package provides an interface to sectioning commands for selection
3531 from various title styles, e.g. for marginal titles and to change the font of
3532 all headings with a single command, also providing simple one-step page
3533 styles. It also includes a package to change the page styles when there are
3534 floats in a page. You may assign headers/footers to individual floats, too.")
3535 (license license:lppl)))
3536
3537 (define-public texlive-latex-type1cm
3538 (package
3539 (name "texlive-latex-type1cm")
3540 (version (number->string %texlive-revision))
3541 (source (origin
3542 (method svn-fetch)
3543 (uri (texlive-ref "latex" "type1cm"))
3544 (file-name (string-append name "-" version "-checkout"))
3545 (sha256
3546 (base32
3547 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
3548 (build-system texlive-build-system)
3549 (arguments '(#:tex-directory "latex/type1cm"))
3550 (home-page "https://www.ctan.org/pkg/type1cm")
3551 (synopsis "Arbitrary size font selection in LaTeX")
3552 (description
3553 "LaTeX, by default, restricts the sizes at which you can use its default
3554 computer modern fonts, to a fixed set of discrete sizes (effectively, a set
3555 specified by Knuth). The @code{type1cm} package removes this restriction;
3556 this is particularly useful when using scalable versions of the CM
3557 fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
3558 PCTeX, etc.). In fact, since modern distributions will automatically generate
3559 any bitmap font you might need, @code{type1cm} has wider application than just
3560 those using scaleable versions of the fonts. Note that the LaTeX distribution
3561 now contains a package @code{fix-cm},f which performs the task of
3562 @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
3563 @code{ec} fonts.")
3564 (license license:lppl)))
3565
3566 (define-public texlive-latex-lh
3567 (package
3568 (name "texlive-latex-lh")
3569 (version (number->string %texlive-revision))
3570 (source (origin
3571 (method svn-fetch)
3572 (uri (texlive-ref "latex" "lh"))
3573 (sha256
3574 (base32
3575 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
3576 (build-system texlive-build-system)
3577 (arguments '(#:tex-directory "latex/lh"))
3578 (home-page "https://www.ctan.org/pkg/lh")
3579 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
3580 (description
3581 "The LH fonts address the problem of the wide variety of alphabets that
3582 are written with Cyrillic-style characters. The fonts are the original basis
3583 of the set of T2* and X2 encodings that are now used when LaTeX users need to
3584 write in Cyrillic languages. Macro support in standard LaTeX encodings is
3585 offered through the latex-cyrillic and t2 bundles, and the package itself
3586 offers support for other (more traditional) encodings. The fonts, in the
3587 standard T2* and X2 encodings are available in Adobe Type 1 format, in the
3588 CM-Super family of fonts. The package also offers its own LaTeX support for
3589 OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
3590 (license license:lppl)))
3591
3592 (define-public texlive-metapost
3593 (package
3594 (name "texlive-metapost")
3595 (version (number->string %texlive-revision))
3596 (source (origin
3597 (method svn-fetch)
3598 (uri (svn-reference
3599 (url (string-append "svn://www.tug.org/texlive/tags/"
3600 %texlive-tag "/Master/texmf-dist/"
3601 "/metapost"))
3602 (revision %texlive-revision)))
3603 (sha256
3604 (base32
3605 "03nvjddffiz796wll6axzmgfvynyciy2mqamv20qx252w71vwkwd"))))
3606 (build-system trivial-build-system)
3607 (arguments
3608 `(#:modules ((guix build utils))
3609 #:builder
3610 (begin
3611 (use-modules (guix build utils))
3612 (let ((target (string-append (assoc-ref %outputs "out")
3613 "/share/texmf-dist/metapost")))
3614 (mkdir-p target)
3615 (copy-recursively (assoc-ref %build-inputs "source") target)
3616 #t))))
3617 (home-page "https://www.ctan.org/pkg/metapost")
3618 (synopsis "Create scalable illustrations")
3619 (description
3620 "MetaPost uses a language based on that of Metafont to produce precise
3621 technical illustrations. Its output is scalable PostScript or SVG, rather
3622 than the bitmaps Metafont creates.")
3623 (license license:lppl)))
3624
3625 (define-public texlive-latex-acmart
3626 (package
3627 (name "texlive-latex-acmart")
3628 (version "1.45")
3629 (source (origin
3630 (method svn-fetch)
3631 (uri (texlive-ref "latex" "acmart"))
3632 (sha256
3633 (base32
3634 "10zs8ga88ksypv1v4p6mynmfa7749q2hgxlr4shnwfjd9wrb421q"))
3635 (file-name (string-append name "-" version "-checkout"))))
3636 (build-system texlive-build-system)
3637 (arguments '(#:tex-directory "latex/acmart"))
3638 (home-page "https://www.ctan.org/pkg/acmart")
3639 (synopsis "Class for typesetting publications of ACM")
3640 (description
3641 "This package provides a class for typesetting publications of the
3642 Association for Computing Machinery (ACM).")
3643 (license license:lppl1.3+)))
3644
3645 (define-public texlive-latex-varwidth
3646 (package
3647 (name "texlive-latex-varwidth")
3648 (version (number->string %texlive-revision))
3649 (source (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 "/tex/latex/varwidth"))
3655 (revision %texlive-revision)))
3656 (file-name (string-append name "-" version "-checkout"))
3657 (sha256
3658 (base32
3659 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
3660 (build-system trivial-build-system)
3661 (arguments
3662 `(#:modules ((guix build utils))
3663 #:builder
3664 (begin
3665 (use-modules (guix build utils))
3666 (let ((target (string-append (assoc-ref %outputs "out")
3667 "/share/texmf-dist/tex/latex/varwidth")))
3668 (mkdir-p target)
3669 (copy-recursively (assoc-ref %build-inputs "source") target)
3670 #t))))
3671 (home-page "https://www.ctan.org/pkg/varwidth")
3672 (synopsis "Variable-width minipage")
3673 (description
3674 "The @code{varwidth} environment is superficially similar to
3675 @code{minipage}, but the specified width is just a maximum value — the box may
3676 get a narrower “natural” width.")
3677 (license license:lppl)))
3678
3679 (define-public texlive-latex-wasysym
3680 (package
3681 (name "texlive-latex-wasysym")
3682 (version (number->string %texlive-revision))
3683 (source (origin
3684 (method svn-fetch)
3685 (uri (texlive-ref "latex" "wasysym"))
3686 (sha256
3687 (base32
3688 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
3689 (build-system texlive-build-system)
3690 (arguments '(#:tex-directory "latex/wasysym"))
3691 (home-page "https://www.ctan.org/pkg/wasysym")
3692 (synopsis "LaTeX support file to use the WASY2 fonts")
3693 (description
3694 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
3695 like male and female symbols and astronomical symbols, as well as the complete
3696 lasy font set and other odds and ends. The wasysym package implements an easy
3697 to use interface for these symbols.")
3698 (license license:lppl)))
3699
3700 (define-public texlive-latex-wrapfig
3701 (package
3702 (name "texlive-latex-wrapfig")
3703 (version (number->string %texlive-revision))
3704 (source (origin
3705 (method svn-fetch)
3706 (uri (svn-reference
3707 (url (string-append "svn://www.tug.org/texlive/tags/"
3708 %texlive-tag "/Master/texmf-dist/"
3709 "/tex/latex/wrapfig"))
3710 (revision %texlive-revision)))
3711 (file-name (string-append name "-" version "-checkout"))
3712 (sha256
3713 (base32
3714 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
3715 (build-system trivial-build-system)
3716 (arguments
3717 `(#:modules ((guix build utils))
3718 #:builder
3719 (begin
3720 (use-modules (guix build utils))
3721 (let ((target (string-append (assoc-ref %outputs "out")
3722 "/share/texmf-dist/tex/latex/wrapfig")))
3723 (mkdir-p target)
3724 (copy-recursively (assoc-ref %build-inputs "source") target)
3725 #t))))
3726 (home-page "https://www.ctan.org/pkg/wrapfig")
3727 (synopsis "Produces figures which text can flow around")
3728 (description
3729 "This package allows figures or tables to have text wrapped around them.
3730 It does not work in combination with list environments, but can be used in a
3731 @code{parbox} or @code{minipage}, and in two-column format.")
3732 (license license:lppl)))
3733
3734 (define-public texlive-latex-ucs
3735 (package
3736 (name "texlive-latex-ucs")
3737 (version (number->string %texlive-revision))
3738 (source (origin
3739 (method svn-fetch)
3740 (uri (svn-reference
3741 (url (string-append "svn://www.tug.org/texlive/tags/"
3742 %texlive-tag "/Master/texmf-dist/"
3743 "/tex/latex/ucs"))
3744 (revision %texlive-revision)))
3745 (file-name (string-append name "-" version "-checkout"))
3746 (sha256
3747 (base32
3748 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
3749 (build-system trivial-build-system)
3750 (arguments
3751 `(#:modules ((guix build utils))
3752 #:builder
3753 (begin
3754 (use-modules (guix build utils))
3755 (let ((target (string-append (assoc-ref %outputs "out")
3756 "/share/texmf-dist/tex/latex/ucs")))
3757 (mkdir-p target)
3758 (copy-recursively (assoc-ref %build-inputs "source") target)
3759 #t))))
3760 (home-page "https://www.ctan.org/pkg/ucs")
3761 (synopsis "Extended UTF-8 input encoding support for LaTeX")
3762 (description
3763 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
3764 together with a large number of support files. The @code{utf8x.def}
3765 definition file for use with @code{inputenc} covers a wider range of Unicode
3766 characters than does @code{utf8.def} in the LaTeX distribution. The package
3767 provides facilities for efficient use of its large sets of Unicode characters.
3768 Glyph production may be controlled by various options, which permits use of
3769 non-ASCII characters when coding mathematical formulae. Note that the bundle
3770 previously had an alias “unicode”; that alias has now been withdrawn, and no
3771 package of that name now exists.")
3772 (license license:lppl1.3+)))
3773
3774 (define-public texlive-latex-preview
3775 (package
3776 (name "texlive-latex-preview")
3777 (version (number->string %texlive-revision))
3778 (source (origin
3779 (method svn-fetch)
3780 (uri (texlive-ref "latex" "preview"))
3781 (file-name (string-append name "-" version "-checkout"))
3782 (sha256
3783 (base32
3784 "0j6fff6q0ca96nwfdgay2jm55792z4q9aa0rczmiw2qccyg5n2dv"))))
3785 (build-system texlive-build-system)
3786 (arguments
3787 '(#:tex-directory "latex/preview"
3788 #:phases
3789 (modify-phases %standard-phases
3790 (add-after 'unpack 'remove-generated-file
3791 (lambda _
3792 (delete-file "preview.drv")
3793 #t)))))
3794 (home-page "https://www.ctan.org/pkg/preview")
3795 (synopsis "Extract bits of a LaTeX source for output")
3796 (description
3797 "The main purpose of the preview package is the extraction of selected
3798 elements from a LaTeX source, like formulas or graphics, into separate
3799 pages of a DVI file. A flexible and convenient interface allows it to
3800 specify what commands and constructs should be extracted. This works
3801 with DVI files postprocessed by either Dvips and Ghostscript or
3802 dvipng, but it also works when you are using PDFTeX for generating PDF
3803 files.")
3804 (license license:gpl3+)))
3805
3806 (define-public texlive-latex-acronym
3807 (package
3808 (name "texlive-latex-acronym")
3809 (version (number->string %texlive-revision))
3810 (source (origin
3811 (method svn-fetch)
3812 (uri (texlive-ref "latex" "acronym"))
3813 (file-name (string-append name "-" version "-checkout"))
3814 (sha256
3815 (base32
3816 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
3817 (build-system texlive-build-system)
3818 (arguments '(#:tex-directory "latex/acronym"))
3819 (home-page "https://www.ctan.org/pkg/acronym")
3820 (synopsis "Expand acronyms at least once")
3821 (description
3822 "This package ensures that all acronyms used in the text are spelled out
3823 in full at least once. It also provides an environment to build a list of
3824 acronyms used. The package is compatible with PDF bookmarks. The package
3825 requires the suffix package, which in turn requires that it runs under
3826 e-TeX.")
3827 (license license:lppl1.3+)))
3828
3829 (define-public texlive-generic-pdftex
3830 (package
3831 (name "texlive-generic-pdftex")
3832 (version (number->string %texlive-revision))
3833 (source (origin
3834 (method svn-fetch)
3835 (uri (svn-reference
3836 (url (string-append "svn://www.tug.org/texlive/tags/"
3837 %texlive-tag "/Master/texmf-dist/"
3838 "/tex/generic/pdftex"))
3839 (revision %texlive-revision)))
3840 (sha256
3841 (base32
3842 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
3843 (build-system trivial-build-system)
3844 (arguments
3845 `(#:modules ((guix build utils))
3846 #:builder
3847 (begin
3848 (use-modules (guix build utils))
3849 (let ((target (string-append (assoc-ref %outputs "out")
3850 "/share/texmf-dist/tex/generic/pdftex")))
3851 (mkdir-p target)
3852 (copy-recursively (assoc-ref %build-inputs "source") target)
3853 #t))))
3854 (home-page "https://www.ctan.org/pkg/pdftex")
3855 (synopsis "TeX extension for direct creation of PDF")
3856 (description
3857 "This package provides an extension of TeX which can be configured to
3858 directly generate PDF documents instead of DVI.")
3859 (license license:gpl2+)))
3860
3861 (define texlive-texmf
3862 (package
3863 (name "texlive-texmf")
3864 (version "2017")
3865 (source texlive-texmf-src)
3866 (build-system gnu-build-system)
3867 (inputs
3868 `(("texlive-bin" ,texlive-bin)
3869 ("lua" ,lua)
3870 ("perl" ,perl)
3871 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
3872 ("ruby" ,ruby)
3873 ("tcsh" ,tcsh)))
3874 (arguments
3875 `(#:modules ((guix build gnu-build-system)
3876 (guix build utils)
3877 (srfi srfi-26))
3878
3879 ;; This package takes 4 GiB, which we can't afford to distribute from
3880 ;; our servers.
3881 #:substitutable? #f
3882
3883 #:phases
3884 (modify-phases (map (cut assq <> %standard-phases)
3885 '(set-paths unpack patch-source-shebangs))
3886 (add-after 'patch-source-shebangs 'install
3887 (lambda* (#:key outputs #:allow-other-keys)
3888 (let ((share (string-append (assoc-ref outputs "out") "/share")))
3889 (mkdir-p share)
3890 (system* "mv" "texmf-dist" share))))
3891 (add-after 'install 'texmf-config
3892 (lambda* (#:key inputs outputs #:allow-other-keys)
3893 (let* ((out (assoc-ref outputs "out"))
3894 (share (string-append out "/share"))
3895 (texmfroot (string-append share "/texmf-dist/web2c"))
3896 (texmfcnf (string-append texmfroot "/texmf.cnf"))
3897 (texlive-bin (assoc-ref inputs "texlive-bin"))
3898 (texbin (string-append texlive-bin "/bin"))
3899 (tlpkg (string-append texlive-bin "/share/tlpkg")))
3900 ;; Register SHARE as TEXMFROOT in texmf.cnf.
3901 (substitute* texmfcnf
3902 (("TEXMFROOT = \\$SELFAUTOPARENT")
3903 (string-append "TEXMFROOT = " share))
3904 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
3905 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
3906 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
3907 ;; Register paths in texmfcnf.lua, needed for context.
3908 (substitute* (string-append texmfroot "/texmfcnf.lua")
3909 (("selfautodir:") out)
3910 (("selfautoparent:") (string-append share "/")))
3911 ;; Set path to TeXLive Perl modules
3912 (setenv "PERL5LIB"
3913 (string-append (getenv "PERL5LIB") ":" tlpkg))
3914 ;; Configure the texmf-dist tree; inspired from
3915 ;; http://slackbuilds.org/repository/13.37/office/texlive/
3916 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
3917 (setenv "TEXMFCNF" texmfroot)
3918 (system* "updmap-sys" "--nohash" "--syncwithtrees")
3919 (system* "mktexlsr")
3920 (system* "fmtutil-sys" "--all")))))))
3921 (properties `((max-silent-time . 9600))) ; don't time out while grafting
3922 (synopsis "TeX Live, a package of the TeX typesetting system")
3923 (description
3924 "TeX Live provides a comprehensive TeX document production system.
3925 It includes all the major TeX-related programs, macro packages, and fonts
3926 that are free software, including support for many languages around the
3927 world.
3928
3929 This package contains the complete tree of texmf-dist data.")
3930 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
3931 (home-page "https://www.tug.org/texlive/")))
3932
3933 (define-public texlive
3934 (package
3935 (name "texlive")
3936 (version "2017")
3937 (source #f)
3938 (build-system trivial-build-system)
3939 (inputs `(("bash" ,bash) ; for wrap-program
3940 ("texlive-bin" ,texlive-bin)
3941 ("texlive-texmf" ,texlive-texmf)))
3942 (native-search-paths
3943 (list (search-path-specification
3944 (variable "TEXMFLOCAL")
3945 (files '("share/texmf-local")))))
3946 (arguments
3947 `(#:modules ((guix build utils))
3948 #:builder
3949 ;; Build the union of texlive-bin and texlive-texmf, but take the
3950 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
3951 (begin
3952 (use-modules (guix build utils))
3953 (let ((out (assoc-ref %outputs "out"))
3954 (bin (assoc-ref %build-inputs "texlive-bin"))
3955 (texmf (assoc-ref %build-inputs "texlive-texmf"))
3956 (bash (assoc-ref %build-inputs "bash")))
3957 (mkdir out)
3958 (with-directory-excursion out
3959 (for-each
3960 (lambda (name)
3961 (symlink (string-append bin "/" name) name))
3962 '("include" "lib"))
3963 (mkdir "bin")
3964 (with-directory-excursion "bin"
3965 (setenv "PATH" (string-append bash "/bin"))
3966 (for-each
3967 (lambda (name)
3968 (symlink name (basename name))
3969 (wrap-program
3970 (basename name)
3971 `("TEXMFCNF" =
3972 (,(string-append texmf "/share/texmf-dist/web2c")))))
3973 (find-files (string-append bin "/bin/") "")))
3974 (mkdir "share")
3975 (with-directory-excursion "share"
3976 (for-each
3977 (lambda (name)
3978 (symlink (string-append bin "/share/" name) name))
3979 '("info" "man" "tlpkg"))
3980 (for-each
3981 (lambda (name)
3982 (symlink (string-append texmf "/share/" name) name))
3983 '("texmf-dist" "texmf-var"))))))))
3984 (synopsis "TeX Live, a package of the TeX typesetting system")
3985 (description
3986 "TeX Live provides a comprehensive TeX document production system.
3987 It includes all the major TeX-related programs, macro packages, and fonts
3988 that are free software, including support for many languages around the
3989 world.
3990
3991 This package contains the complete TeX Live distribution.")
3992 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
3993 (home-page "https://www.tug.org/texlive/")))
3994
3995 (define-public perl-text-bibtex
3996 (package
3997 (name "perl-text-bibtex")
3998 (version "0.85")
3999 (source
4000 (origin
4001 (method url-fetch)
4002 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
4003 version ".tar.gz"))
4004 (sha256
4005 (base32
4006 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
4007 (build-system perl-build-system)
4008 (arguments
4009 `(#:phases
4010 (modify-phases %standard-phases
4011 (add-after 'unpack 'add-output-directory-to-rpath
4012 (lambda* (#:key outputs #:allow-other-keys)
4013 (substitute* "inc/MyBuilder.pm"
4014 (("-Lbtparse" line)
4015 (string-append "-Wl,-rpath="
4016 (assoc-ref outputs "out") "/lib " line)))
4017 #t))
4018 (add-after 'unpack 'install-libraries-to-/lib
4019 (lambda* (#:key outputs #:allow-other-keys)
4020 (substitute* "Build.PL"
4021 (("lib64") "lib"))
4022 #t)))))
4023 (native-inputs
4024 `(("perl-capture-tiny" ,perl-capture-tiny)
4025 ("perl-config-autoconf" ,perl-config-autoconf)
4026 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4027 ("perl-module-build" ,perl-module-build)))
4028 (home-page "http://search.cpan.org/dist/Text-BibTeX")
4029 (synopsis "Interface to read and parse BibTeX files")
4030 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
4031 and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
4032 at many different levels: you may work with BibTeX entries as simple field to
4033 string mappings, or get at the original form of the data as a list of simple
4034 values (strings, macros, or numbers) pasted together.")
4035 (license license:perl-license)))
4036
4037 (define-public biber
4038 (package
4039 (name "biber")
4040 (version "2.7")
4041 (source (origin
4042 (method url-fetch)
4043 (uri (string-append "https://github.com/plk/biber/archive/v"
4044 version ".tar.gz"))
4045 (file-name (string-append name "-" version ".tar.gz"))
4046 (sha256
4047 (base32
4048 "17wd80jg98qyddhvz4cin8779ycvppaf2va77r1lyvymjz6w9bx0"))))
4049 (build-system perl-build-system)
4050 (arguments
4051 `(#:phases
4052 (modify-phases %standard-phases
4053 (add-after 'install 'wrap-programs
4054 (lambda* (#:key outputs #:allow-other-keys)
4055 (let* ((out (assoc-ref outputs "out"))
4056 (perl5lib (getenv "PERL5LIB")))
4057 (wrap-program (string-append out "/bin/biber")
4058 `("PERL5LIB" ":" prefix
4059 (,(string-append perl5lib ":" out
4060 "/lib/perl5/site_perl")))))
4061 #t)))))
4062 (inputs
4063 `(("perl-autovivification" ,perl-autovivification)
4064 ("perl-class-accessor" ,perl-class-accessor)
4065 ("perl-data-dump" ,perl-data-dump)
4066 ("perl-data-compare" ,perl-data-compare)
4067 ("perl-data-uniqid" ,perl-data-uniqid)
4068 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
4069 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
4070 ("perl-file-slurp" ,perl-file-slurp)
4071 ("perl-ipc-cmd" ,perl-ipc-cmd)
4072 ("perl-ipc-run3" ,perl-ipc-run3)
4073 ("perl-list-allutils" ,perl-list-allutils)
4074 ("perl-list-moreutils" ,perl-list-moreutils)
4075 ("perl-mozilla-ca" ,perl-mozilla-ca)
4076 ("perl-regexp-common" ,perl-regexp-common)
4077 ("perl-log-log4perl" ,perl-log-log4perl)
4078 ;; We cannot use perl-unicode-collate here, because otherwise the
4079 ;; hardcoded hashes in the tests would differ. See
4080 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
4081 ;;("perl-unicode-collate" ,perl-unicode-collate)
4082 ("perl-unicode-normalize" ,perl-unicode-normalize)
4083 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
4084 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
4085 ("perl-encode-jis2k" ,perl-encode-jis2k)
4086 ("perl-encode-hanextra" ,perl-encode-hanextra)
4087 ("perl-xml-libxml" ,perl-xml-libxml)
4088 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
4089 ("perl-xml-libxslt" ,perl-xml-libxslt)
4090 ("perl-xml-writer" ,perl-xml-writer)
4091 ("perl-sort-key" ,perl-sort-key)
4092 ("perl-text-csv" ,perl-text-csv)
4093 ("perl-text-csv-xs" ,perl-text-csv-xs)
4094 ("perl-text-roman" ,perl-text-roman)
4095 ("perl-uri" ,perl-uri)
4096 ("perl-text-bibtex" ,perl-text-bibtex)
4097 ("perl-libwww" ,perl-libwww)
4098 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4099 ("perl-business-isbn" ,perl-business-isbn)
4100 ("perl-business-issn" ,perl-business-issn)
4101 ("perl-business-ismn" ,perl-business-ismn)
4102 ("perl-lingua-translit" ,perl-lingua-translit)))
4103 (native-inputs
4104 `(("perl-config-autoconf" ,perl-config-autoconf)
4105 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4106 ("perl-module-build" ,perl-module-build)
4107 ;; for tests
4108 ("perl-file-which" ,perl-file-which)
4109 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
4110 ("perl-test-differences" ,perl-test-differences)))
4111 (home-page "http://biblatex-biber.sourceforge.net/")
4112 (synopsis "Backend for the BibLaTeX citation management tool")
4113 (description "Biber is a BibTeX replacement for users of biblatex. Among
4114 other things it comes with full Unicode support.")
4115 (license license:artistic2.0)))
4116
4117 (define-public rubber
4118 (package
4119 (name "rubber")
4120 (version "1.1")
4121 (source (origin
4122 (method url-fetch)
4123 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
4124 version "/+download/rubber-"
4125 version ".tar.gz")
4126 (string-append "http://ebeffara.free.fr/pub/rubber-"
4127 version ".tar.gz")))
4128 (sha256
4129 (base32
4130 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
4131 (build-system gnu-build-system)
4132 (arguments '(#:tests? #f)) ; no `check' target
4133 (inputs `(("texinfo" ,texinfo)
4134 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
4135 ("which" ,which)))
4136 (home-page "https://launchpad.net/rubber")
4137 (synopsis "Wrapper for LaTeX and friends")
4138 (description
4139 "Rubber is a program whose purpose is to handle all tasks related to the
4140 compilation of LaTeX documents. This includes compiling the document itself,
4141 of course, enough times so that all references are defined, and running BibTeX
4142 to manage bibliographic references. Automatic execution of dvips to produce
4143 PostScript documents is also included, as well as usage of pdfLaTeX to produce
4144 PDF documents.")
4145 (license license:gpl2+)))
4146
4147 (define-public texmaker
4148 (package
4149 (name "texmaker")
4150 (version "4.5")
4151 (source (origin
4152 (method url-fetch)
4153 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
4154 version ".tar.bz2"))
4155 (sha256
4156 (base32
4157 "056njk6j8wma23mlp7xa3rgfaxx0q8ynwx8wkmj7iy0b85p9ds9c"))))
4158 (build-system gnu-build-system)
4159 (arguments
4160 `(#:phases
4161 (modify-phases %standard-phases
4162 ;; Qt has its own configuration utility.
4163 (replace 'configure
4164 (lambda* (#:key outputs #:allow-other-keys)
4165 (let ((out (assoc-ref outputs "out")))
4166 (zero? (system* "qmake"
4167 (string-append "PREFIX=" out)
4168 (string-append "DESKTOPDIR=" out
4169 "/share/applications")
4170 (string-append "ICONDIR=" out "/share/pixmaps")
4171 "texmaker.pro"))))))))
4172 (inputs
4173 `(("poppler-qt5" ,poppler-qt5)
4174 ("qtbase" ,qtbase)
4175 ("qtscript" ,qtscript)
4176 ("qtwebkit" ,qtwebkit)
4177 ("zlib" ,zlib)))
4178 (native-inputs
4179 `(("pkg-config" ,pkg-config)))
4180 (home-page "http://www.xm1math.net/texmaker/")
4181 (synopsis "LaTeX editor")
4182 (description "Texmaker is a program that integrates many tools needed to
4183 develop documents with LaTeX, in a single application.")
4184 (license license:gpl2+)))
4185
4186
4187 (define-public teximpatient
4188 (package
4189 (name "teximpatient")
4190 (version "2.4")
4191 (source (origin
4192 (method url-fetch)
4193 (uri (string-append "mirror://gnu/" name "/" name "-"
4194 version ".tar.gz"))
4195 (sha256
4196 (base32
4197 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
4198 (build-system gnu-build-system)
4199 (arguments
4200 `(#:phases
4201 (modify-phases %standard-phases
4202 (delete 'check)
4203 ;; Unfortunately some mistakes have been made in packaging.
4204 ;; Work around them here ...
4205 (replace 'unpack
4206 (lambda* (#:key inputs outputs #:allow-other-keys)
4207 (let ((srcdir "teximpatient-2.4"))
4208 (system* "tar" "-xzf" (assoc-ref inputs "source")
4209 (string-append "--one-top-level=" srcdir))
4210 (delete-file (string-append srcdir "/book.pdf"))
4211 (install-file (car
4212 (find-files
4213 (assoc-ref inputs "automake")
4214 "^install-sh$"))
4215 srcdir)
4216 (chdir srcdir)))))))
4217 (native-inputs
4218 `(("texlive" ,texlive)
4219 ("automake" ,automake)))
4220 (home-page "https://www.gnu.org/software/teximpatient/")
4221 (synopsis "Book on TeX, plain TeX and Eplain")
4222 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
4223 plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
4224 and Karl Berry.")
4225 (license license:fdl1.3+)))