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