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