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