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