gnu: texlive-latex-graphics: Declare a source file-name.
[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"))
7e353a77 1040 (file-name (string-append name "-" version "-checkout"))
3e485ed2
RW
1041 (sha256
1042 (base32
1043 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
1044 (build-system texlive-build-system)
1045 (arguments '(#:tex-directory "latex/filecontents"))
b8d8806b 1046 (home-page "https://www.ctan.org/pkg/filecontents")
3e485ed2
RW
1047 (synopsis "Extended filecontents and filecontents* environments")
1048 (description
1049 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
1050enable a LaTeX source file to generate external files as it runs through
1051LaTeX. However, there are two limitations of these environments: they refuse
1052to overwrite existing files, and they can only be used in the preamble of a
1053document. The filecontents package removes these limitations, letting you
1054overwrite existing files and letting you use @code{filecontents} /
1055@code{filecontents*} anywhere.")
1056 (license license:lppl1.3c+)))
1057
1193aa89
RW
1058(define-public texlive-generic-ifxetex
1059 (package
1060 (name "texlive-generic-ifxetex")
fea8eef3 1061 (version (number->string %texlive-revision))
1193aa89
RW
1062 (source (origin
1063 (method svn-fetch)
1064 (uri (texlive-ref "generic" "ifxetex"))
24dbc602 1065 (file-name (string-append name "-" version "-checkout"))
1193aa89
RW
1066 (sha256
1067 (base32
1068 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
1069 (build-system texlive-build-system)
1070 (arguments
1071 '(#:tex-directory "generic/ifxetex"
1072 #:tex-format "xelatex"))
1073 (inputs
1074 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
b8d8806b 1075 (home-page "https://www.ctan.org/pkg/ifxetex")
1193aa89
RW
1076 (synopsis "Am I running under XeTeX?")
1077 (description
1078 "This is a simple package which provides an @code{\\ifxetex} conditional,
1079so that other code can determine that it is running under XeTeX. The package
beb476ed 1080requires the e-TeX extensions to the TeX primitive set.")
1193aa89
RW
1081 (license license:lppl1.3c+)))
1082
9186c156
RW
1083(define-public texlive-generic-epsf
1084 (package
1085 (name "texlive-generic-epsf")
1086 (version (number->string %texlive-revision))
1087 (source (origin
1088 (method svn-fetch)
1089 (uri (svn-reference
1090 (url (string-append "svn://www.tug.org/texlive/tags/"
1091 %texlive-tag "/Master/texmf-dist/"
1092 "/tex/generic/epsf"))
1093 (revision %texlive-revision)))
ca61c6b3 1094 (file-name (string-append name "-" version "-checkout"))
9186c156
RW
1095 (sha256
1096 (base32
1097 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
1098 (build-system trivial-build-system)
1099 (arguments
1100 `(#:modules ((guix build utils))
1101 #:builder
1102 (begin
1103 (use-modules (guix build utils))
1104 (let ((target (string-append (assoc-ref %outputs "out")
1105 "/share/texmf-dist/tex/generic/epfs")))
1106 (mkdir-p target)
1107 (copy-recursively (assoc-ref %build-inputs "source") target)
1108 #t))))
b8d8806b 1109 (home-page "https://www.ctan.org/pkg/epsf")
9186c156
RW
1110 (synopsis "Simple macros for EPS inclusion")
1111 (description
1112 "This package provides the original (and now obsolescent) graphics
1113inclusion macros for use with dvips, still widely used by Plain TeX users (in
1114particular). For LaTeX users, the package is nowadays (rather strongly)
1115deprecated in favour of the more sophisticated standard LaTeX latex-graphics
1116bundle of packages. (The latex-graphics bundle is also available to Plain TeX
1117users, via its Plain TeX version.)")
1118 (license license:public-domain)))
1119
437822a1
RW
1120(define-public texlive-latex-fancyvrb
1121 (package
1122 (name "texlive-latex-fancyvrb")
1123 (version (number->string %texlive-revision))
1124 (source (origin
1125 (method svn-fetch)
1126 (uri (texlive-ref "latex" "fancyvrb"))
88e11022 1127 (file-name (string-append name "-" version "-checkout"))
437822a1
RW
1128 (sha256
1129 (base32
1130 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
1131 (build-system texlive-build-system)
1132 (arguments
1133 '(#:tex-directory "latex/fancyvrb"
1134 ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and
1135 ;; thus texlive-luatex-lualibs.
1136 #:build-targets '("fancyvrb.ins")))
b8d8806b 1137 (home-page "https://www.ctan.org/pkg/fancyvrb")
437822a1
RW
1138 (synopsis "Sophisticated verbatim text")
1139 (description
1140 "This package provides tools for the flexible handling of verbatim text
1141including: verbatim commands in footnotes; a variety of verbatim environments
1142with many parameters; ability to define new customized verbatim environments;
1143save and restore verbatim text and environments; write and read files in
1144verbatim mode; build \"example\" environments (showing both result and
1145verbatim source).")
1146 (license license:lppl1.0+)))
1147
4eebd2cd
RW
1148(define-public texlive-latex-graphics
1149 (package
1150 (name "texlive-latex-graphics")
1151 (version (number->string %texlive-revision))
1152 (source (origin
1153 (method svn-fetch)
1154 (uri (texlive-ref "latex" "graphics"))
f7302073 1155 (file-name (string-append name "-" version "-checkout"))
4eebd2cd
RW
1156 (sha256
1157 (base32
e3c970fc 1158 "07azyn0b1s49vbdlr6dmygrminxp72ndl24j1091hiiccvrjq3xc"))))
4eebd2cd
RW
1159 (build-system texlive-build-system)
1160 (arguments
1161 '(#:tex-directory "latex/graphics"
1162 #:phases
1163 (modify-phases %standard-phases
1164 (add-after 'install 'install-config
1165 (lambda* (#:key inputs outputs #:allow-other-keys)
1166 (let ((cfg (assoc-ref inputs "graphics-cfg"))
1167 (target (string-append (assoc-ref outputs "out")
1168 "/share/texmf-dist/tex/latex/graphics-cfg")))
1169 (mkdir-p target)
1170 (install-file (string-append cfg "/graphics.cfg") target)
1171 (install-file (string-append cfg "/color.cfg") target)
1172 #t)))
1173 (add-after 'install 'install-defs
1174 (lambda* (#:key inputs outputs #:allow-other-keys)
1175 (let ((def (assoc-ref inputs "graphics-def"))
1176 (target (string-append (assoc-ref outputs "out")
1177 "/share/texmf-dist/tex/latex/graphics-def")))
1178 (mkdir-p target)
1179 (copy-recursively def target)
1180 #t))))))
1181 (native-inputs
1182 `(("graphics-cfg"
1183 ,(origin
1184 (method git-fetch)
1185 (uri (git-reference
1186 (url "https://github.com/latex3/graphics-cfg.git")
1187 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
f7302073
EF
1188 (file-name (string-append "graphics-cfg-"
1189 (number->string %texlive-revision)
1190 "-checkout"))
4eebd2cd
RW
1191 (sha256
1192 (base32
1193 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
1194 ("graphics-def"
1195 ,(origin
1196 (method svn-fetch)
1197 (uri (svn-reference
1198 (url (string-append "svn://www.tug.org/texlive/tags/"
1199 %texlive-tag "/Master/texmf-dist/"
1200 "/tex/latex/graphics-def"))
1201 (revision %texlive-revision)))
f7302073
EF
1202 (file-name (string-append "graphics-def-"
1203 (number->string %texlive-revision)
1204 "-checkout"))
4eebd2cd
RW
1205 (sha256
1206 (base32
51c15375 1207 "0gi4qv6378nl84s8n1yx3hjqvv7r4lza7hpbymbl5rzwgw8qrnyb"))))))
b8d8806b 1208 (home-page "https://www.ctan.org/pkg/latex-graphics")
4eebd2cd
RW
1209 (synopsis "LaTeX standard graphics bundle")
1210 (description
1211 "This is a collection of LaTeX packages for producing color, including
1212graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
1213documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
1214keyval, and lscape.")
1215 ;; The configuration files are released under CC0.
1216 (license (list license:lppl1.3c+
1217 license:cc0))))
1218
f5a6af42
RW
1219(define-public texlive-latex-xcolor
1220 (package
1221 (name "texlive-latex-xcolor")
1222 (version (number->string %texlive-revision))
1223 (source (origin
1224 (method svn-fetch)
1225 (uri (texlive-ref "latex" "xcolor"))
1226 (sha256
1227 (base32
1228 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
1229 (build-system texlive-build-system)
1230 (arguments '(#:tex-directory "latex/xcolor"))
b8d8806b 1231 (home-page "https://www.ctan.org/pkg/xcolor")
f5a6af42
RW
1232 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
1233 (description
1234 "The package starts from the basic facilities of the colorcolor package,
1235and provides easy driver-independent access to several kinds of color tints,
1236shades, tones, and mixes of arbitrary colors. It allows a user to select a
1237document-wide target color model and offers complete tools for conversion
1238between eight color models. Additionally, there is a command for alternating
1239row colors plus repeated non-aligned material (like horizontal lines) in
1240tables.")
1241 (license license:lppl1.2+)))
1242
4d660fdf
RW
1243(define-public texlive-latex-hyperref
1244 (package
1245 (name "texlive-latex-hyperref")
1246 (version "6.84a2")
1247 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
1248 ;; so we fetch the release from GitHub.
1249 (source (origin
1250 (method url-fetch)
1251 (uri (string-append "https://github.com/ho-tex/hyperref/"
1252 "archive/release-" version ".tar.gz"))
1253 (file-name (string-append name "-" version ".tar.gz"))
1254 (sha256
1255 (base32
1256 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
1257 (build-system texlive-build-system)
1258 (arguments '(#:tex-directory "latex/hyperref"))
b8d8806b 1259 (home-page "https://www.ctan.org/pkg/hyperref")
4d660fdf
RW
1260 (synopsis "Extensive support for hypertext in LaTeX")
1261 (description
c5a8ecb6
RW
1262 "The @code{hyperref} package is used to handle cross-referencing commands
1263in LaTeX to produce hypertext links in the document. The package provides
1264backends for the @code{\\special} set defined for HyperTeX DVI processors; for
1265embedded @code{pdfmark} commands for processing by Acrobat
1266Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
1267for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
1268pdf and HTML backends. The package is distributed with the @code{backref} and
1269@code{nameref} packages, which make use of the facilities of @code{hyperref}.")
4d660fdf
RW
1270 (license license:lppl1.3+)))
1271
c3455b7d
RW
1272(define-public texlive-latex-oberdiek
1273 (package
1274 (name "texlive-latex-oberdiek")
1275 (version (number->string %texlive-revision))
1276 (source (origin
1277 (method svn-fetch)
1278 (uri (texlive-ref "latex" "oberdiek"))
1279 (sha256
1280 (base32
1281 "0aswvsxgsn709xmvpcg50d2xl7vcy1ckdxb9c1cligqqfjjvviqf"))))
1282 (build-system texlive-build-system)
1283 (arguments
1284 '(#:tex-directory "latex/oberdiek"
05d28068 1285 #:build-targets '("oberdiek.ins")
c3455b7d
RW
1286 #:phases
1287 (modify-phases %standard-phases
05d28068 1288 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
c3455b7d
RW
1289 (add-after 'unpack 'do-not-process-ifpdf.ins
1290 (lambda _
1291 (substitute* "oberdiek.ins"
05d28068 1292 (("ifpdf.ins") "ifpdf.dtx"))
c3455b7d 1293 #t)))))
b8d8806b 1294 (home-page "https://www.ctan.org/pkg/oberdiek")
c3455b7d
RW
1295 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
1296 (description
1297 "The bundle comprises various LaTeX packages, providing among others:
1298better accessibility support for PDF files; extensible chemists reaction
1299arrows; record information about document class(es) used; and many more.")
1300 (license license:lppl1.3+)))
1301
f2536af2
RW
1302(define-public texlive-latex-tools
1303 (package
1304 (name "texlive-latex-tools")
1305 (version (number->string %texlive-revision))
1306 (source (origin
1307 (method svn-fetch)
1308 (uri (texlive-ref "latex" "tools"))
1309 (sha256
1310 (base32
1311 "052a0pch2k5zls5jlay9xxcf93rw3i60a2x28y3ip3rhbsv3xgiz"))))
1312 (build-system texlive-build-system)
1313 (arguments
1314 '(#:tex-directory "latex/tools"
1315 #:build-targets '("tools.ins")))
b8d8806b 1316 (home-page "https://www.ctan.org/pkg/latex-tools")
f2536af2
RW
1317 (synopsis "LaTeX standard tools bundle")
1318 (description
1319 "This package is a collection of (variously) simple tools provided as
1320part of the LaTeX required tools distribution, comprising the following
1321packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
1322fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
1323rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
1324xr, and xspace.")
1325 (license license:lppl1.3+)))
1326
35adcc3a
RW
1327(define-public texlive-latex-url
1328 (package
1329 (name "texlive-latex-url")
1330 (version (number->string %texlive-revision))
1331 (source (origin
1332 (method svn-fetch)
1333 (uri (svn-reference
1334 (url (string-append "svn://www.tug.org/texlive/tags/"
1335 %texlive-tag "/Master/texmf-dist/"
1336 "/tex/latex/url"))
1337 (revision %texlive-revision)))
1338 (sha256
1339 (base32
1340 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
1341 (build-system trivial-build-system)
1342 (arguments
1343 `(#:modules ((guix build utils))
1344 #:builder
1345 (begin
1346 (use-modules (guix build utils))
1347 (let ((target (string-append (assoc-ref %outputs "out")
1348 "/share/texmf-dist/tex/latex/url")))
1349 (mkdir-p target)
1350 (copy-recursively (assoc-ref %build-inputs "source") target)
1351 #t))))
1352 (home-page "https://www.ctan.org/pkg/url")
1353 (synopsis "Verbatim with URL-sensitive line breaks")
1354 (description "The command @code{\\url} is a form of verbatim command that
1355allows linebreaks at certain characters or combinations of characters, accepts
1356reconfiguration, and can usually be used in the argument to another command.
1357The command is intended for email addresses, hypertext links,
1358directories/paths, etc., which normally have no spaces, so by default the
1359package ignores spaces in its argument. However, a package option allows
1360spaces, which is useful for operating systems where spaces are a common part
1361of file names.")
1362 ;; The license header states that it is under LPPL version 2 or later, but
1363 ;; the latest version is 1.3c.
1364 (license license:lppl1.3c+)))
1365
a5b1ef84
RW
1366(define-public texlive-latex-l3kernel
1367 (package
1368 (name "texlive-latex-l3kernel")
1369 (version (number->string %texlive-revision))
1370 (source (origin
1371 (method svn-fetch)
1372 (uri (texlive-ref "latex" "l3kernel"))
1373 (sha256
1374 (base32
1f7d1010 1375 "0r0wfk594j8wkdqhh21haimwsfq8x5jch4ldm21hkzk5dnmvpbg6"))))
a5b1ef84
RW
1376 (build-system texlive-build-system)
1377 (arguments
1378 '(#:tex-directory "latex/l3kernel"))
b8d8806b 1379 (home-page "https://www.ctan.org/pkg/l3kernel")
a5b1ef84
RW
1380 (synopsis "LaTeX3 programmers’ interface")
1381 (description
1382 "The l3kernel bundle provides an implementation of the LaTeX3
1383programmers’ interface, as a set of packages that run under LaTeX 2e. The
1384interface provides the foundation on which the LaTeX3 kernel and other future
1385code are built: it is an API for TeX programmers. The packages are set up so
1386that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
1387 (license license:lppl1.3c+)))
1388
cc09d48b
RW
1389(define-public texlive-latex-l3packages
1390 (package
1391 (name "texlive-latex-l3packages")
1392 (version (number->string %texlive-revision))
1393 (source (origin
1394 (method svn-fetch)
1395 (uri (texlive-ref "latex" "l3packages"))
1396 (sha256
1397 (base32
83474718 1398 "16jplkvzdysfssijq9l051nsks65c2nrarsl17k8gjhc28yznj8y"))))
cc09d48b
RW
1399 (build-system texlive-build-system)
1400 (arguments
1401 '(#:tex-directory "latex/l3packages"
1402 #:phases
1403 (modify-phases %standard-phases
1404 ;; All package sources are in sub-directories, so we need to add them
1405 ;; to TEXINPUTS.
1406 (add-after 'unpack 'set-TEXINPUTS
1407 (lambda _
1408 (let ((cwd (getcwd)))
1409 (setenv "TEXINPUTS"
1410 (string-append cwd "/l3keys2e:"
1411 cwd "/xparse:"
1412 cwd "/xfrac:"
1413 cwd "/xfp:"
1414 cwd "/xtemplate")))
1415 #t)))))
1416 (inputs
1417 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
b8d8806b 1418 (home-page "https://www.ctan.org/pkg/l3packages")
cc09d48b
RW
1419 (synopsis "High-level LaTeX3 concepts")
1420 (description
1421 "This bundle holds prototype implementations of concepts for a LaTeX
1422designer interface, to be used with the experimental LaTeX kernel as
1423programming tools and kernel sup­port. Packages provided in this release are:
1424
1425@enumerate
1426@item l3keys2e, which makes the facilities of the kernel module l3keys
1427 available for use by LaTeX 2e packages;
1428@item xfrac, which provides flexible splitlevel fractions;
1429@item xparse, which provides a high-level interface for declaring document
1430 commands; and
1431@item xtemplate, which provides a means of defining generic functions using a
1432 key-value syntax.
1433@end enumerate\n")
1434 (license license:lppl1.3c+)))
1435
58308491
RW
1436(define-public texlive-latex-fontspec
1437 (package
1438 (name "texlive-latex-fontspec")
1439 (version (number->string %texlive-revision))
1440 (source (origin
1441 (method svn-fetch)
1442 (uri (texlive-ref "latex" "fontspec"))
1443 (sha256
1444 (base32
1445 "1rx43y5xmjqvc27pjdnmqwp4pcw3czcfd6nfpmzc1gnqfl1hlc0q"))))
1446 (build-system texlive-build-system)
1447 (arguments
1448 '(#:tex-directory "latex/fontspec"
1449 #:build-targets '("fontspec.dtx")))
1450 (inputs
1451 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
b8d8806b 1452 (home-page "https://www.ctan.org/pkg/fontspec")
58308491
RW
1453 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
1454 (description
1455 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
1456automatic and unified interface to feature-rich AAT and OpenType fonts through
1457the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
1458the l3kernel and xparse bundles from the LaTeX 3 development team.")
1459 (license license:lppl1.3+)))
1460
e93f472d
RW
1461;; The SVN directory contains little more than a dtx file that generates three
1462;; of the many lua files that should be installed as part of this package.
1463;; This is why we take the release from GitHub instead.
1464(define-public texlive-luatex-lualibs
1465 (package
1466 (name "texlive-luatex-lualibs")
1467 (version "2.5")
1468 (source (origin
1469 (method url-fetch)
1470 (uri (string-append "https://github.com/lualatex/lualibs/"
1471 "releases/download/v"
1472 version "/lualibs.zip"))
1473 (sha256
1474 (base32
1475 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
1476 (build-system gnu-build-system)
1477 (arguments
1478 `(#:make-flags
1479 (list (string-append "DESTDIR="
1480 (assoc-ref %outputs "out")
1481 "/share/texmf-dist"))
1482 #:phases
1483 (modify-phases %standard-phases
1484 (delete 'configure))))
1485 (native-inputs
1486 `(("texlive-bin" ,texlive-bin)
1487 ("unzip" ,unzip)
1488 ("zip" ,zip)))
1489 (home-page "https://github.com/lualatex/lualibs")
1490 (synopsis "Lua modules for general programming (in the (La)TeX world)")
1491 (description
1492 "Lualibs is a collection of Lua modules useful for general programming.
1493The bundle is based on Lua modules shipped with ConTeXt, and made available in
1494this bundle for use independent of ConTeXt.")
1495 ;; GPL version 2 only
1496 (license license:gpl2)))
1497
2573163a
RW
1498(define-public texlive-latex-amsmath
1499 (package
1500 (name "texlive-latex-amsmath")
1501 (version (number->string %texlive-revision))
1502 (source (origin
1503 (method svn-fetch)
1504 (uri (texlive-ref "latex" "amsmath"))
1505 (sha256
1506 (base32
1507 "178ywjpdlv78qmfzqdyn6gy14620zjsn2q9wap76fbr9s4hw6dba"))))
1508 (build-system texlive-build-system)
1509 (arguments '(#:tex-directory "latex/amsmath"))
b8d8806b 1510 (home-page "https://www.ctan.org/pkg/amsmath")
2573163a
RW
1511 (synopsis "AMS mathematical facilities for LaTeX")
1512 (description
1513 "This is the principal package in the AMS-LaTeX distribution. It adapts
1514for use in LaTeX most of the mathematical features found in AMS-TeX; it is
1515highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
1516When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
1517symbols), @code{amsopnamsopn} (for operator names) and
1518@code{amstextamstext} (for text embedded in mathematics) are also loaded.
1519This package is part of the LaTeX required distribution; however, several
1520contributed packages add still further to its appeal; examples are
1521@code{empheqempheq}, which provides functions for decorating and highlighting
1522mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
1523definitions.")
1524 (license license:lppl1.3c+)))
1525
18e366e8
RW
1526(define-public texlive-latex-amscls
1527 (package
1528 (name "texlive-latex-amscls")
1529 (version (number->string %texlive-revision))
1530 (source (origin
1531 (method svn-fetch)
1532 (uri (texlive-ref "latex" "amscls"))
1533 (sha256
1534 (base32
1535 "0jmcr37mcdi7drczppvr6lmz5d5yd9m67ii79gp2nglg1xpw934j"))))
1536 (build-system texlive-build-system)
1537 (arguments
1538 `(#:tex-directory "latex/amscls"))
b8d8806b 1539 (home-page "https://www.ctan.org/pkg/amscls")
18e366e8
RW
1540 (synopsis "AMS document classes for LaTeX")
1541 (description
1542 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
1543articles for the AMS), @code{amsbookamsbook} (for books) and
1544@code{amsprocamsproc} (for proceedings), together with some supporting
1545material. The material is made available as part of the AMS-LaTeX
1546distribution.")
1547 (license license:lppl1.3c+)))
1548
f84d5a09
RW
1549(define-public texlive-latex-babel
1550 (package
1551 (name "texlive-latex-babel")
1552 (version (number->string %texlive-revision))
1553 (source (origin
1554 (method svn-fetch)
1555 (uri (texlive-ref "latex" "babel"))
1556 (sha256
1557 (base32
1558 "1n3i5adsyy7jw0imnzrm2i8wkf73i3mjk9h3ic8cb9cd19i4r9r3"))))
1559 (build-system texlive-build-system)
1560 (arguments
dcc8af4a 1561 '(#:tex-directory "generic/babel"
f84d5a09
RW
1562 #:phases
1563 (modify-phases %standard-phases
1564 ;; This package tries to produce babel.aux twice but refuses to
1565 ;; overwrite the first one.
1566 (add-before 'build 'fix-ins
1567 (lambda _
1568 (substitute* "babel.ins"
1569 (("askonceonly") "askforoverwritefalse"))
1570 #t)))))
b8d8806b 1571 (home-page "https://www.ctan.org/pkg/babel")
f84d5a09
RW
1572 (synopsis "Multilingual support for Plain TeX or LaTeX")
1573 (description
1574 "The package manages culturally-determined typographical (and other)
1575rules, and hyphenation patterns for a wide range of languages. A document may
1576select a single language to be supported, or it may select several, in which
1577case the document may switch from one language to another in a variety of
1578ways. Babel uses contributed configuration files that provide the detail of
1579what has to be done for each language. Users of XeTeX are advised to use the
1580polyglossia package rather than Babel.")
1581 (license license:lppl1.3+)))
1582
876a1980
RW
1583(define-public texlive-generic-babel-english
1584 (package
1585 (name "texlive-generic-babel-english")
1586 (version (number->string %texlive-revision))
1587 (source (origin
1588 (method svn-fetch)
1589 (uri (texlive-ref "generic" "babel-english"))
1590 (file-name (string-append name "-" version "-checkout"))
1591 (sha256
1592 (base32
1593 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
1594 (build-system texlive-build-system)
1595 (arguments '(#:tex-directory "generic/babel-english"))
b8d8806b 1596 (home-page "https://www.ctan.org/pkg/babel-english")
876a1980
RW
1597 (synopsis "Babel support for English")
1598 (description
1599 "This package provides the language definition file for support of
1600English in @code{babel}. Care is taken to select British hyphenation patterns
1601for British English and Australian text, and default (\"american\") patterns
1602for Canadian and USA text.")
1603 (license license:lppl1.3+)))
1604
93286d38
RW
1605(define-public texlive-latex-cyrillic
1606 (package
1607 (name "texlive-latex-cyrillic")
1608 (version (number->string %texlive-revision))
1609 (source (origin
1610 (method svn-fetch)
1611 (uri (texlive-ref "latex" "cyrillic"))
1612 (sha256
1613 (base32
1614 "1mdhl35hwas68ki56qqngzar37dwv4mm64l2canihr255bz34lbv"))))
1615 (build-system texlive-build-system)
1616 (arguments
1617 '(#:tex-directory "latex/cyrillic"))
b8d8806b 1618 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
93286d38
RW
1619 (synopsis "Support for Cyrillic fonts in LaTeX")
1620 (description
1621 "This bundle of macros files provides macro support (including font
1622encoding macros) for the use of Cyrillic characters in fonts encoded under the
1623T2* and X2 encodings. These encodings cover (between them) pretty much every
1624language that is written in a Cyrillic alphabet.")
1625 (license license:lppl1.3c+)))
1626
83fe6231
RW
1627(define-public texlive-latex-psnfss
1628 (package
1629 (name "texlive-latex-psnfss")
1630 (version (number->string %texlive-revision))
1631 (source (origin
1632 (method svn-fetch)
1633 (uri (texlive-ref "latex" "psnfss"))
1634 (sha256
1635 (base32
1636 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
1637 (build-system texlive-build-system)
1638 (arguments '(#:tex-directory "latex/psnfss"))
b8d8806b 1639 (home-page "https://www.ctan.org/pkg/psnfss")
83fe6231
RW
1640 (synopsis "Font support for common PostScript fonts")
1641 (description
1642 "The PSNFSS collection includes a set of files that provide a complete
1643working setup of the LaTeX font selection scheme (NFSS2) for use with common
1644PostScript fonts. It covers the so-called \"Base\" fonts (which are built
1645into any Level 2 PostScript printing device and the Ghostscript interpreter)
1646and a number of free fonts. It provides font definition files, macros and
1647font metrics. The bundle as a whole is part of the LaTeX required set of
1648packages.")
1649 (license license:lppl1.2+)))
1650
cb7bc20a
RW
1651(define-public texlive-union
1652 (lambda* (#:optional (packages '()))
1653 "Return 'texlive-union' package which is a union of PACKAGES and the
1654standard LaTeX packages."
1655 (let ((default-packages
1656 (list texlive-bin
1657 texlive-dvips
263d0c82 1658 texlive-fontname
cb7bc20a
RW
1659 texlive-fonts-cm
1660 texlive-fonts-latex
1661 texlive-metafont-base
1662 texlive-latex-base
1663 ;; LaTeX packages from the "required" set.
1664 texlive-latex-amsmath
1665 texlive-latex-amscls
1666 texlive-latex-babel
d9d44e84 1667 texlive-generic-babel-english
cb7bc20a
RW
1668 texlive-latex-cyrillic
1669 texlive-latex-graphics
1670 texlive-latex-psnfss
1671 texlive-latex-tools)))
1672 (package
1673 (name "texlive-union")
1674 (version (number->string %texlive-revision))
1675 (source #f)
1676 (build-system trivial-build-system)
1677 (arguments
1678 '(#:modules ((guix build union)
1679 (guix build utils)
1680 (guix build texlive-build-system)
1681 (guix build gnu-build-system)
1682 (guix build gremlin)
1683 (guix elf))
1684 #:builder
1685 (begin
1686 (use-modules (ice-9 match)
1687 (srfi srfi-26)
1688 (guix build union)
1689 (guix build utils)
1690 (guix build texlive-build-system))
1691 (let* ((out (assoc-ref %outputs "out"))
1692 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
1693 ;; Build a modifiable union of all inputs (but exclude bash)
1694 (match (filter (match-lambda
1695 ((name . _)
1696 (not (string=? "bash" name))))
1697 %build-inputs)
1698 (((names . directories) ...)
1699 (union-build (assoc-ref %outputs "out")
1700 directories
c58d1b5f
RW
1701 #:create-all-directories? #t
1702 #:log-port (%make-void-port "w"))))
cb7bc20a
RW
1703
1704 ;; The configuration file "texmf.cnf" is provided by the
1705 ;; "texlive-bin" package. We take it and override only the
1706 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
1707 ;; by default, though, so we still need to set TEXMFCNF.
1708 (substitute* texmf.cnf
1709 (("^TEXMFROOT = .*")
1710 (string-append "TEXMFROOT = " out "/share\n"))
1711 (("^TEXMF = .*")
1712 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
1713 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash")
1714 "/bin"))
1715 (for-each
1716 (cut wrap-program <>
1717 `("TEXMFCNF" ":" = (,(dirname texmf.cnf)))
1718 `("TEXMF" ":" = (,(string-append out "/share/texmf-dist"))))
1719 (find-files (string-append out "/bin") ".*"))
1720 #t))))
1721 (inputs
1722 `(("bash" ,bash)
1723 ,@(map (lambda (package)
1724 (list (package-name package) package))
1725 (append default-packages packages))))
1726 (home-page (package-home-page texlive-bin))
1727 (synopsis "Union of TeX Live packages")
1728 (description "This package provides a subset of the TeX Live
1729distribution.")
1730 (license (fold (lambda (package result)
1731 (match (package-license package)
1732 ((lst ...)
1733 (append lst result))
1734 ((? license:license? license)
1735 (cons license result))))
1736 '()
1737 (append default-packages packages)))))))
1738
9d4f8dc2
RW
1739(define-public texlive-tiny
1740 (package
1741 (inherit (texlive-union))
1742 (name "texlive-tiny")
1743 (description "This is a very limited subset of the TeX Live distribution.
1744It includes little more than the required set of LaTeX packages.")))
1745
60b5e228
RW
1746(define-public texlive-latex-amsrefs
1747 (package
1748 (name "texlive-latex-amsrefs")
1749 (version (number->string %texlive-revision))
1750 (source (origin
1751 (method svn-fetch)
1752 (uri (texlive-ref "latex" "amsrefs"))
1753 (file-name (string-append name "-" version "-checkout"))
1754 (sha256
1755 (base32
1756 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
1757 (build-system texlive-build-system)
1758 (arguments '(#:tex-directory "latex/amsrefs"))
b8d8806b 1759 (home-page "https://www.ctan.org/pkg/amsrefs")
60b5e228
RW
1760 (synopsis "LaTeX-based replacement for BibTeX")
1761 (description
1762 "Amsrefs is a LaTeX package for bibliographies that provides an archival
1763data format similar to the format of BibTeX database files, but adapted to
1764make direct processing by LaTeX easier. The package can be used either in
1765conjunction with BibTeX or as a replacement for BibTeX.")
1766 (license license:lppl1.3+)))
1767
3236599f
RW
1768(define-public texlive-latex-bigfoot
1769 (package
1770 (name "texlive-latex-bigfoot")
1771 (version (number->string %texlive-revision))
1772 (source (origin
1773 (method svn-fetch)
1774 (uri (texlive-ref "latex" "bigfoot"))
1775 (file-name (string-append name "-" version "-checkout"))
1776 (sha256
1777 (base32
1778 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
1779 (build-system texlive-build-system)
1780 (arguments
1781 '(#:tex-directory "latex/bigfoot"
1782 #:phases
1783 (modify-phases %standard-phases
1784 (add-after 'unpack 'remove-generated-file
1785 (lambda _
1786 (for-each delete-file (find-files "." "\\.drv$"))
1787 #t)))))
b8d8806b 1788 (home-page "https://www.ctan.org/pkg/bigfoot")
3236599f
RW
1789 (synopsis "Footnotes for critical editions")
1790 (description
1791 "This package aims to provide a one-stop solution to requirements for
1792footnotes. It offers: Multiple footnote apparatus superior to that of
1793@code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
1794into a single paragraph (this choice may be selected per footnote series);
1795Things you might have expected (such as @code{\\verb}-like material in
1796footnotes, and color selections over page breaks) now work. Note that the
1797majority of the bigfoot package's interface is identical to that of
1798@code{manyfoot}; users should seek information from that package's
1799documentation. The bigfoot bundle also provides the @code{perpage} and
1800@code{suffix} packages.")
1801 (license license:gpl2+)))
1802
8e732b49
RW
1803(define-public texlive-latex-blindtext
1804 (package
1805 (name "texlive-latex-blindtext")
1806 (version (number->string %texlive-revision))
1807 (source (origin
1808 (method svn-fetch)
1809 (uri (texlive-ref "latex" "blindtext"))
1810 (file-name (string-append name "-" version "-checkout"))
1811 (sha256
1812 (base32
1813 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
1814 (build-system texlive-build-system)
1815 (arguments '(#:tex-directory "latex/blindtext"))
b8d8806b 1816 (home-page "https://www.ctan.org/pkg/blindtext")
8e732b49
RW
1817 (synopsis "Producing 'blind' text for testing")
1818 (description
1819 "The package provides the commands @code{\\blindtext} and
1820@code{\\Blindtext} for creating \"blind\" text useful in testing new classes
1821and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
1822an entire random document with sections, lists, mathematics, etc. The package
1823supports three languages, @code{english}, @code{(n)german} and @code{latin};
1824the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
1825ipsum\" text, see the @code{lipsum} package).")
1826 (license license:lppl)))
1827
7cda03bd
RW
1828(define-public texlive-latex-dinbrief
1829 (package
1830 (name "texlive-latex-dinbrief")
1831 (version (number->string %texlive-revision))
1832 (source (origin
1833 (method svn-fetch)
1834 (uri (texlive-ref "latex" "dinbrief"))
1835 (file-name (string-append name "-" version "-checkout"))
1836 (sha256
1837 (base32
1838 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
1839 (build-system texlive-build-system)
1840 (arguments
1841 '(#:tex-directory "latex/dinbrief"
1842 #:phases
1843 (modify-phases %standard-phases
1844 (add-after 'unpack 'remove-generated-file
1845 (lambda _
1846 (delete-file "dinbrief.drv")
1847 #t)))))
b8d8806b 1848 (home-page "https://www.ctan.org/pkg/dinbrief")
7cda03bd
RW
1849 (synopsis "German letter DIN style")
1850 (description
1851 "This package implements a document layout for writing letters according
1852to the rules of DIN (Deutsches Institut für Normung, German standardisation
1853institute). A style file for LaTeX 2.09 (with limited support of the
1854features) is part of the package. Since the letter layout is based on a
1855German standard, the user guide is written in German, but most macros have
1856English names from which the user can recognize what they are used for. In
1857addition there are example files showing how letters may be created with the
1858package.")
1859 (license license:lppl)))
1860
de224adb
RW
1861(define-public texlive-latex-draftwatermark
1862 (package
1863 (name "texlive-latex-draftwatermark")
1864 (version (number->string %texlive-revision))
1865 (source (origin
1866 (method svn-fetch)
1867 (uri (texlive-ref "latex" "draftwatermark"))
1868 (file-name (string-append name "-" version "-checkout"))
1869 (sha256
1870 (base32
1871 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
1872 (build-system texlive-build-system)
1873 (arguments '(#:tex-directory "latex/draftwatermark"))
b8d8806b 1874 (home-page "https://www.ctan.org/pkg/draftwatermark")
de224adb
RW
1875 (synopsis "Put a grey textual watermark on document pages")
1876 (description
1877 "This package provides a means to add a textual, light grey watermark on
1878every page or on the first page of a document. Typical usage may consist in
1879writing words such as DRAFT or CONFIDENTIAL across document pages. The
1880package performs a similar function to that of @code{draftcopy}, but its
1881implementation is output device independent, and made very simple by relying
1882on everypage.")
1883 (license license:lppl1.3+)))
1884
74e9c9a4
RW
1885(define-public texlive-latex-environ
1886 (package
1887 (name "texlive-latex-environ")
1888 (version (number->string %texlive-revision))
1889 (source (origin
1890 (method svn-fetch)
1891 (uri (texlive-ref "latex" "environ"))
1892 (file-name (string-append name "-" version "-checkout"))
1893 (sha256
1894 (base32
1895 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
1896 (build-system texlive-build-system)
1897 (arguments '(#:tex-directory "latex/environ"))
b8d8806b 1898 (home-page "https://www.ctan.org/pkg/environ")
74e9c9a4
RW
1899 (synopsis "New interface for environments in LaTeX")
1900 (description
09acbb02
RW
1901 "This package provides the @code{\\collect@@body} command (as in
1902@code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
1903for collecting the body text of an environment. These commands are used to
1904define a new author interface to creating new environments.")
74e9c9a4
RW
1905 (license license:lppl)))
1906
adfa7a2a
RW
1907(define-public texlive-latex-eqparbox
1908 (package
1909 (name "texlive-latex-eqparbox")
1910 (version (number->string %texlive-revision))
1911 (source (origin
1912 (method svn-fetch)
1913 (uri (texlive-ref "latex" "eqparbox"))
1914 (file-name (string-append name "-" version "-checkout"))
1915 (sha256
1916 (base32
1917 "0pvmhsd4xmpil0m3c7qcgwilbk266mlkzv03g0jr8r3zd8jxlyzq"))))
1918 (build-system texlive-build-system)
1919 (arguments '(#:tex-directory "latex/eqparbox"))
b8d8806b 1920 (home-page "https://www.ctan.org/pkg/eqparbox")
adfa7a2a
RW
1921 (synopsis "Create equal-widthed parboxes")
1922 (description
1923 "LaTeX users sometimes need to ensure that two or more blocks of text
1924occupy the same amount of horizontal space on the page. To that end, the
1925@code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
1926just like @code{\\parbox}, except that instead of specifying a width, one
1927specifies a tag. All @code{eqparbox}es with the same tag---regardless of
1928where they are in the document---will stretch to fit the widest
1929@code{eqparbox} with that tag. This simple, equal-width mechanism can be used
1930for a variety of alignment purposes, as is evidenced by the examples in
1931@code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
1932also provided.")
1933 (license license:lppl1.3+)))
1934
32e623d0
RW
1935(define-public texlive-latex-expdlist
1936 (package
1937 (name "texlive-latex-expdlist")
1938 (version (number->string %texlive-revision))
1939 (source (origin
1940 (method svn-fetch)
1941 (uri (texlive-ref "latex" "expdlist"))
1942 (file-name (string-append name "-" version "-checkout"))
1943 (sha256
1944 (base32
1945 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
1946 (build-system texlive-build-system)
1947 (arguments
1948 '(#:tex-directory "latex/expdlist"
1949 #:phases
1950 (modify-phases %standard-phases
1951 (add-after 'unpack 'remove-generated-file
1952 (lambda _
1953 (for-each delete-file
1954 (find-files "." "\\.drv$"))
1955 #t)))))
b8d8806b 1956 (home-page "https://www.ctan.org/pkg/expdlist")
32e623d0
RW
1957 (synopsis "Expanded description environments")
1958 (description
1959 "The package provides additional features for the LaTeX
1960@code{description} environment, including adjustable left margin. The package
1961also allows the user to \"break\" a list (for example, to interpose a comment)
1962without affecting the structure of the list (this works for @code{itemize} and
1963@code{enumerate} lists, and numbered lists remain in sequence).")
1964 (license license:lppl)))
1965
893e3fc1
RW
1966(define-public texlive-latex-filemod
1967 (package
1968 (name "texlive-latex-filemod")
1969 (version (number->string %texlive-revision))
1970 (source (origin
1971 (method svn-fetch)
1972 (uri (svn-reference
1973 (url (string-append "svn://www.tug.org/texlive/tags/"
1974 %texlive-tag "/Master/texmf-dist/"
1975 "/tex/latex/filemod"))
1976 (revision %texlive-revision)))
1977 (sha256
1978 (base32
1979 "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
1980 (build-system trivial-build-system)
1981 (arguments
1982 `(#:modules ((guix build utils))
1983 #:builder
1984 (begin
1985 (use-modules (guix build utils))
1986 (let ((target (string-append (assoc-ref %outputs "out")
1987 "/share/texmf-dist/tex/latex/filemod")))
1988 (mkdir-p target)
1989 (copy-recursively (assoc-ref %build-inputs "source") target)
1990 #t))))
b8d8806b 1991 (home-page "https://www.ctan.org/pkg/filemod")
893e3fc1
RW
1992 (synopsis "Provide file modification times, and compare them")
1993 (description
1994 "This package provides macros to read and compare the modification dates
1995of files. The files may be @code{.tex} files, images or other files (as long
1996as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
1997of pdfLaTeX to find the file modification date as PDF date string, parses the
1998string and returns the value to the user. The package will also work for DVI
1999output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
2000mode. The functionality is provided by purely expandable macros or by faster
2001but non-expandable ones.")
2002 (license license:lppl1.3+)))
2003
8c23f238
RW
2004(define-public texlive-latex-ifplatform
2005 (package
2006 (name "texlive-latex-ifplatform")
2007 (version (number->string %texlive-revision))
2008 (source (origin
2009 (method svn-fetch)
2010 (uri (texlive-ref "latex" "ifplatform"))
2011 (file-name (string-append name "-" version "-checkout"))
2012 (sha256
2013 (base32
2014 "11gvvjvmdfs9b7mm19yf80zwkx49jqcbq6g8qb9y5ns1r1qvnixp"))))
2015 (build-system texlive-build-system)
2016 (arguments '(#:tex-directory "latex/ifplatform"))
b8d8806b 2017 (home-page "https://www.ctan.org/pkg/ifplatform")
8c23f238
RW
2018 (synopsis "Conditionals to test which platform is being used")
2019 (description
2020 "This package uses the (La)TeX extension @code{-shell-escape} to
2021establish whether the document is being processed on a Windows or on a
2022Unix-like system, or on Cygwin (Unix environment over a Windows system).
2023Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
2024and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
2025on a Unix-like system, which may be used to distinguish between various
2026classes of systems.")
2027 (license license:lppl)))
2028
9b416042
RW
2029(define-public texlive-latex-natbib
2030 (package
2031 (name "texlive-latex-natbib")
2032 (version (number->string %texlive-revision))
2033 (source (origin
2034 (method svn-fetch)
2035 (uri (texlive-ref "latex" "natbib"))
2036 (sha256
2037 (base32
2038 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
2039 (build-system texlive-build-system)
2040 (arguments '(#:tex-directory "latex/natbib"))
b8d8806b 2041 (home-page "https://www.ctan.org/pkg/natbib")
9b416042
RW
2042 (synopsis "Flexible bibliography support")
2043 (description
2044 "This bundle provides a package that implements both author-year and
2045numbered references, as well as much detailed of support for other
2046bibliography use. Also provided are versions of the standard BibTeX styles
2047that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
2048@code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
2049designed from the start to be compatible with @code{natbib}.")
2050 (license license:lppl)))
2051
d770d07f
RW
2052(define-public texlive-latex-psfrag
2053 (package
2054 (name "texlive-latex-psfrag")
2055 (version (number->string %texlive-revision))
2056 (source (origin
2057 (method svn-fetch)
2058 (uri (texlive-ref "latex" "psfrag"))
2059 (file-name (string-append name "-" version "-checkout"))
2060 (sha256
2061 (base32
2062 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
2063 (build-system texlive-build-system)
2064 (arguments '(#:tex-directory "latex/psfrag"))
b8d8806b 2065 (home-page "https://www.ctan.org/pkg/psfrag")
d770d07f
RW
2066 (synopsis "Replace strings in encapsulated PostScript figures")
2067 (description
2068 "This package allows LaTeX constructions (equations, picture
2069environments, etc.) to be precisely superimposed over Encapsulated PostScript
2070figures, using your own favorite drawing tool to create an EPS figure and
2071placing simple text \"tags\" where each replacement is to be placed, with
2072PSfrag automatically removing these tags from the figure and replacing them
2073with a user specified LaTeX construction, properly aligned, scaled, and/or
2074rotated.")
2075 (license (license:fsf-free "file://psfrag.dtx"))))
2076
5a1ee7d8
RW
2077(define-public texlive-latex-pstool
2078 (package
2079 (name "texlive-latex-pstool")
2080 (version (number->string %texlive-revision))
2081 (source (origin
2082 (method svn-fetch)
2083 (uri (texlive-ref "latex" "pstool"))
2084 (file-name (string-append name "-" version "-checkout"))
2085 (sha256
2086 (base32
2087 "1kwlk1x67lad4xb7gpkxqgdlxwpi6nvq1r9wika7m92abmyf18h3"))))
2088 (build-system texlive-build-system)
2089 (arguments
2090 '(#:tex-directory "latex/pstool"
2091 #:tex-format "latex"))
2092 (inputs
2093 `(("texlive-fonts-cm" ,texlive-fonts-cm)
2094 ("texlive-latex-filecontents" ,texlive-latex-filecontents)))
2095 (propagated-inputs
2096 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot)
2097 ("texlive-latex-filemod" ,texlive-latex-filemod)
2098 ("texlive-latex-graphics" ,texlive-latex-graphics)
2099 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
2100 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
2101 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
2102 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)))
b8d8806b 2103 (home-page "https://www.ctan.org/pkg/pstool")
5a1ee7d8
RW
2104 (synopsis "Process PostScript graphisc within pdfLaTeX documents")
2105 (description
2106 "This is a package for processing PostScript graphics with @code{psfrag}
2107labels within pdfLaTeX documents. Every graphic is compiled individually,
2108drastically speeding up compilation time when only a single figure needs
2109re-processing.")
2110 (license license:lppl)))
2111
171160d5
RW
2112(define-public texlive-latex-seminar
2113 (package
2114 (name "texlive-latex-seminar")
2115 (version (number->string %texlive-revision))
2116 (source (origin
2117 (method svn-fetch)
2118 (uri (svn-reference
2119 (url (string-append "svn://www.tug.org/texlive/tags/"
2120 %texlive-tag "/Master/texmf-dist/"
2121 "/tex/latex/seminar"))
2122 (revision %texlive-revision)))
2123 (sha256
2124 (base32
2125 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
2126 (build-system texlive-build-system)
2127 (arguments '(#:tex-directory "latex/seminar"))
b8d8806b 2128 (home-page "https://www.ctan.org/pkg/seminar")
171160d5
RW
2129 (synopsis "Make overhead slides")
2130 ;; TODO: This package may need fancybox and xcomment at runtime.
2131 (description
2132 "This package provides a class that produces overhead
2133slides (transparencies), with many facilities. Seminar is not nowadays
2134reckoned a good basis for a presentation — users are advised to use more
2135recent classes such as powerdot or beamer, both of which are tuned to
213621st-century presentation styles.")
2137 (license license:lppl1.2+)))
2138
f3540dbd
RW
2139(define-public texlive-latex-trimspaces
2140 (package
2141 (name "texlive-latex-trimspaces")
2142 (version (number->string %texlive-revision))
2143 (source (origin
2144 (method svn-fetch)
2145 (uri (texlive-ref "latex" "trimspaces"))
2146 (sha256
2147 (base32
2148 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
2149 (build-system texlive-build-system)
2150 (arguments
2151 '(#:tex-directory "latex/trimspaces"
2152 #:tex-format "latex"
2153 #:phases
2154 (modify-phases %standard-phases
2155 (add-after 'unpack 'fix-bug
2156 (lambda _
2157 ;; The "ins" file refers to the wrong source file.
2158 (substitute* "trimspaces.ins"
2159 (("pstool.tex") "trimspaces.tex"))
2160 #t)))))
2161 (inputs
2162 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
b8d8806b 2163 (home-page "https://www.ctan.org/pkg/trimspaces")
f3540dbd
RW
2164 (synopsis "Trim spaces around an argument or within a macro")
2165 (description
2166 "This very short package allows you to expandably remove spaces around a
2167token list (commands are provided to remove spaces before, spaces after, or
2168both); or to remove surrounding spaces within a macro definition, or to define
2169space-stripped macros.")
2170 (license license:lppl)))
2171
7709d4d8
RW
2172(define-public texlive-latex-capt-of
2173 (package
2174 (name "texlive-latex-capt-of")
2175 (version (number->string %texlive-revision))
2176 (source (origin
2177 (method svn-fetch)
2178 (uri (svn-reference
2179 (url (string-append "svn://www.tug.org/texlive/tags/"
2180 %texlive-tag "/Master/texmf-dist/"
2181 "/tex/latex/capt-of"))
2182 (revision %texlive-revision)))
2183 (file-name (string-append name "-" version "-checkout"))
2184 (sha256
2185 (base32
2186 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
2187 (build-system trivial-build-system)
2188 (arguments
2189 `(#:modules ((guix build utils))
2190 #:builder
2191 (begin
2192 (use-modules (guix build utils))
2193 (let ((target (string-append (assoc-ref %outputs "out")
2194 "/share/texmf-dist/tex/latex/capt-of")))
2195 (mkdir-p target)
2196 (copy-recursively (assoc-ref %build-inputs "source") target)
2197 #t))))
b8d8806b 2198 (home-page "https://www.ctan.org/pkg/capt-of")
7709d4d8
RW
2199 (synopsis "Captions on more than floats")
2200 (description
2201 "This package defines a command @code{\\captionof} for putting a caption
2202to something that's not a float.")
2203 (license license:lppl)))
2204
a8ac7c0b
RW
2205(define-public texlive-latex-etoolbox
2206 (package
2207 (name "texlive-latex-etoolbox")
2208 (version (number->string %texlive-revision))
2209 (source (origin
2210 (method svn-fetch)
2211 (uri (svn-reference
2212 (url (string-append "svn://www.tug.org/texlive/tags/"
2213 %texlive-tag "/Master/texmf-dist/"
2214 "/tex/latex/etoolbox"))
2215 (revision %texlive-revision)))
2216 (file-name (string-append name "-" version "-checkout"))
2217 (sha256
2218 (base32
2219 "0016bscnpima9krrg2569mva78xzwnygzlvg87dznsm6gf8g589v"))))
2220 (build-system trivial-build-system)
2221 (arguments
2222 `(#:modules ((guix build utils))
2223 #:builder
2224 (begin
2225 (use-modules (guix build utils))
2226 (let ((target (string-append (assoc-ref %outputs "out")
2227 "/share/texmf-dist/tex/latex/etoolbox")))
2228 (mkdir-p target)
2229 (copy-recursively (assoc-ref %build-inputs "source") target)
2230 #t))))
b8d8806b 2231 (home-page "https://www.ctan.org/pkg/etoolbox")
a8ac7c0b
RW
2232 (synopsis "e-TeX tools for LaTeX")
2233 (description
2234 "This package is a toolbox of programming facilities geared primarily
2235towards LaTeX class and package authors. It provides LaTeX frontends to some
2236of the new primitives provided by e-TeX as well as some generic tools which
2237are not strictly related to e-TeX but match the profile of this package. The
2238package provides functions that seem to offer alternative ways of implementing
2239some LaTeX kernel commands; nevertheless, the package will not modify any part
2240of the LaTeX kernel.")
2241 (license license:lppl1.3+)))
2242
17dce7e5
RW
2243(define-public texlive-latex-fncychap
2244 (package
2245 (name "texlive-latex-fncychap")
2246 (version (number->string %texlive-revision))
2247 (source (origin
2248 (method svn-fetch)
2249 (uri (svn-reference
2250 (url (string-append "svn://www.tug.org/texlive/tags/"
2251 %texlive-tag "/Master/texmf-dist/"
2252 "/tex/latex/fncychap"))
2253 (revision %texlive-revision)))
2254 (file-name (string-append name "-" version "-checkout"))
2255 (sha256
2256 (base32
2257 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
2258 (build-system trivial-build-system)
2259 (arguments
2260 `(#:modules ((guix build utils))
2261 #:builder
2262 (begin
2263 (use-modules (guix build utils))
2264 (let ((target (string-append (assoc-ref %outputs "out")
2265 "/share/texmf-dist/tex/latex/fncychap")))
2266 (mkdir-p target)
2267 (copy-recursively (assoc-ref %build-inputs "source") target)
2268 #t))))
b8d8806b 2269 (home-page "https://www.ctan.org/pkg/fncychap")
17dce7e5
RW
2270 (synopsis "Seven predefined chapter heading styles")
2271 (description
2272 "This package provides seven predefined chapter heading styles. Each
2273style can be modified using a set of simple commands. Optionally one can
2274modify the formatting routines in order to create additional chapter
2275headings.")
2276 (license license:lppl1.3+)))
2277
ef1e2ef0
RW
2278(define-public texlive-latex-framed
2279 (package
2280 (name "texlive-latex-framed")
2281 (version (number->string %texlive-revision))
2282 (source (origin
2283 (method svn-fetch)
2284 (uri (svn-reference
2285 (url (string-append "svn://www.tug.org/texlive/tags/"
2286 %texlive-tag "/Master/texmf-dist/"
2287 "/tex/latex/framed"))
2288 (revision %texlive-revision)))
2289 (file-name (string-append name "-" version "-checkout"))
2290 (sha256
2291 (base32
2292 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
2293 (build-system trivial-build-system)
2294 (arguments
2295 `(#:modules ((guix build utils))
2296 #:builder
2297 (begin
2298 (use-modules (guix build utils))
2299 (let ((target (string-append (assoc-ref %outputs "out")
2300 "/share/texmf-dist/tex/latex/framed")))
2301 (mkdir-p target)
2302 (copy-recursively (assoc-ref %build-inputs "source") target)
2303 #t))))
b8d8806b 2304 (home-page "https://www.ctan.org/pkg/framed")
ef1e2ef0
RW
2305 (synopsis "Framed or shaded regions that can break across pages")
2306 (description
2307 "The package creates three environments: @code{framed}, which puts an
2308ordinary frame box around the region, @code{shaded}, which shades the region,
2309and @code{leftbar}, which places a line at the left side. The environments
2310allow a break at their start (the @code{\\FrameCommand} enables creation of a
2311title that is “attached” to the environment); breaks are also allowed in the
2312course of the framed/shaded matter. There is also a command
2313@code{\\MakeFramed} to make your own framed-style environments.")
2314 ;; The header states: "These macros may be freely transmitted, reproduced,
2315 ;; or modified for any purpose provided that this notice is left intact."
2316 (license (license:fsf-free "file://framed.sty"))))
2317
588b5e96
RW
2318(define-public texlive-latex-g-brief
2319 (package
2320 (name "texlive-latex-g-brief")
2321 (version (number->string %texlive-revision))
2322 (source (origin
2323 (method svn-fetch)
2324 (uri (texlive-ref "latex" "g-brief"))
2325 (file-name (string-append name "-" version "-checkout"))
2326 (sha256
2327 (base32
2328 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
2329 (build-system texlive-build-system)
2330 (arguments
2331 '(#:tex-directory "latex/g-brief"
2332 #:phases
2333 (modify-phases %standard-phases
2334 (add-after 'unpack 'remove-generated-file
2335 (lambda _
2336 (delete-file "g-brief.drv")
2337 #t)))))
b8d8806b 2338 (home-page "https://www.ctan.org/pkg/g-brief")
588b5e96
RW
2339 (synopsis "Letter document class")
2340 (description
2341 "This package is designed for formatting formless letters in German; it
2342can also be used for English (by those who can read the documentation). There
2343are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
2344\"old\" and a \"new\" version of g-brief.")
2345 (license license:lppl)))
2346
9b4d5c09
RW
2347(define-public texlive-latex-galois
2348 (package
2349 (name "texlive-latex-galois")
2350 (version (number->string %texlive-revision))
2351 (source (origin
2352 (method svn-fetch)
2353 (uri (texlive-ref "latex" "galois"))
2354 (file-name (string-append name "-" version "-checkout"))
2355 (sha256
2356 (base32
2357 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
2358 (build-system texlive-build-system)
2359 (arguments '(#:tex-directory "latex/galois"))
b8d8806b 2360 (home-page "https://www.ctan.org/pkg/galois")
9b4d5c09
RW
2361 (synopsis "Typeset Galois connections")
2362 (description
2363 "The package deals with connections in two-dimensional style, optionally
2364in colour.")
2365 (license license:lppl)))
2366
5f691e2e
RW
2367(define-public texlive-latex-gcite
2368 (package
2369 (name "texlive-latex-gcite")
2370 (version (number->string %texlive-revision))
2371 (source (origin
2372 (method svn-fetch)
2373 (uri (texlive-ref "latex" "gcite"))
2374 (file-name (string-append name "-" version "-checkout"))
2375 (sha256
2376 (base32
2377 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
2378 (build-system texlive-build-system)
2379 (arguments '(#:tex-directory "latex/gcite"))
b8d8806b 2380 (home-page "https://www.ctan.org/pkg/gcite")
5f691e2e
RW
2381 (synopsis "Citations in a reader-friendly style")
2382 (description
2383 "The package allows citations in the German style, which is considered by
2384many to be particularly reader-friendly. The citation provides a small amount
2385of bibliographic information in a footnote on the page where each citation is
2386made. It combines a desire to eliminate unnecessary page-turning with the
2387look-up efficiency afforded by numeric citations. The package makes use of
2388BibLaTeX, and is considered experimental.")
2389 (license license:lppl1.3+)))
2390
f47d1a52
RW
2391(define-public texlive-latex-geometry
2392 (package
2393 (name "texlive-latex-geometry")
2394 (version (number->string %texlive-revision))
2395 (source (origin
2396 (method svn-fetch)
2397 (uri (texlive-ref "latex" "geometry"))
2398 (file-name (string-append name "-" version "-checkout"))
2399 (sha256
2400 (base32
2401 "1r2kfcwclg33yk5z8mvlagwxj7nr1mc3w4bdpmhrwv6dn8mrbvw8"))))
2402 (build-system texlive-build-system)
2403 (arguments '(#:tex-directory "latex/geometry"))
b8d8806b 2404 (home-page "https://www.ctan.org/pkg/geometry")
f47d1a52
RW
2405 (synopsis "Flexible and complete interface to document dimensions")
2406 (description
2407 "This package provides an easy and flexible user interface to customize
2408page layout, implementing auto-centering and auto-balancing mechanisms so that
2409the users have only to give the least description for the page layout. The
2410package knows about all the standard paper sizes, so that the user need not
2411know what the nominal \"real\" dimensions of the paper are, just its standard
2412name (such as a4, letter, etc.). An important feature is the package's
2413ability to communicate the paper size it's set up to the output.")
2414 (license license:lppl)))
2415
d48091be
RW
2416(define-public texlive-latex-mdwtools
2417 (package
2418 (name "texlive-latex-mdwtools")
2419 (version (number->string %texlive-revision))
2420 (source (origin
2421 (method svn-fetch)
2422 (uri (texlive-ref "latex" "mdwtools"))
2423 (file-name (string-append name "-" version "-checkout"))
2424 (sha256
2425 (base32
2426 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
2427 (build-system texlive-build-system)
2428 (arguments '(#:tex-directory "latex/mdwtools"))
b8d8806b 2429 (home-page "https://www.ctan.org/pkg/mdwtools")
d48091be
RW
2430 (synopsis "Miscellaneous tools by Mark Wooding")
2431 (description
2432 "This collection of tools includes: @code{atsupport} for short commands
fb5dfa86
RW
2433starting with @code{@@}, macros to sanitize the OT1 encoding of the
2434@code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
d48091be
RW
2435@code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
2436which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
2437array environments; verbatim handling; and syntax diagrams.")
2438 (license license:gpl3+)))
2439
80bf1f21
RW
2440(define-public texlive-latex-polyglossia
2441 (package
2442 (name "texlive-latex-polyglossia")
2443 (version (number->string %texlive-revision))
2444 (source (origin
2445 (method svn-fetch)
2446 (uri (texlive-ref "latex" "polyglossia"))
2447 (file-name (string-append name "-" version "-checkout"))
2448 (sha256
2449 (base32
2450 "09mvszd5qgqg4cfglpj5qxyzjz190ppb9p8gnsnjydwp1akvhayf"))))
2451 (build-system texlive-build-system)
2452 (arguments '(#:tex-directory "latex/polyglossia"))
b8d8806b 2453 (home-page "https://www.ctan.org/pkg/polyglossia")
80bf1f21
RW
2454 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
2455 (description
2456 "This package provides a complete Babel replacement for users of LuaLaTeX
2457and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
2458 (license license:lppl1.3+)))
2459
84f8035a
RW
2460(define-public texlive-latex-supertabular
2461 (package
2462 (name "texlive-latex-supertabular")
2463 (version (number->string %texlive-revision))
2464 (source (origin
2465 (method svn-fetch)
2466 (uri (texlive-ref "latex" "supertabular"))
2467 (file-name (string-append name "-" version "-checkout"))
2468 (sha256
2469 (base32
2470 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
2471 (build-system texlive-build-system)
2472 (arguments '(#:tex-directory "latex/supertabular"))
b8d8806b 2473 (home-page "https://www.ctan.org/pkg/supertabular")
84f8035a
RW
2474 (synopsis "Multi-page tables package")
2475 (description
2476 "This package was a predecessor of @code{longtable}; the newer
2477package (designed on quite different principles) is easier to use and more
2478flexible, in many cases, but supertabular retains its usefulness in a few
2479situations where longtable has problems.")
2480 (license license:lppl1.3+)))
2481
a0aa6b59
RW
2482(define-public texlive-tex-texinfo
2483 (package
2484 (name "texlive-tex-texinfo")
2485 (version (number->string %texlive-revision))
2486 (source (origin
2487 (method svn-fetch)
2488 (uri (svn-reference
2489 (url (string-append "svn://www.tug.org/texlive/tags/"
2490 %texlive-tag "/Master/texmf-dist/"
2491 "/tex/texinfo"))
2492 (revision %texlive-revision)))
2493 (sha256
2494 (base32
2495 "09zj2w3lx0y6i2syfjjgizahf86z301dw8p37ln6syfhqhzqdz46"))))
2496 (build-system trivial-build-system)
2497 (arguments
2498 `(#:modules ((guix build utils))
2499 #:builder
2500 (begin
2501 (use-modules (guix build utils))
2502 (let ((target (string-append (assoc-ref %outputs "out")
2503 "/share/texmf-dist/tex/texinfo")))
2504 (mkdir-p target)
2505 (copy-recursively (assoc-ref %build-inputs "source") target)
2506 #t))))
b8d8806b 2507 (home-page "https://www.ctan.org/pkg/texinfo")
a0aa6b59
RW
2508 (synopsis "TeX macros to handle Texinfo files")
2509 (description
2510 "Texinfo is the preferred format for documentation in the GNU project;
2511the format may be used to produce online or printed output from a single
2512source. The Texinfo macros may be used to produce printable output using TeX;
2513other programs in the distribution offer online interactive use (with
2514hypertext linkages in some cases).")
2515 (license license:gpl3+)))
2516
0de81b09
RW
2517(define-public texlive-latex-upquote
2518 (package
2519 (name "texlive-latex-upquote")
2520 (version (number->string %texlive-revision))
2521 (source (origin
2522 (method svn-fetch)
2523 (uri (texlive-ref "latex" "upquote"))
2524 (file-name (string-append name "-" version "-checkout"))
2525 (sha256
2526 (base32
2527 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
2528 (build-system texlive-build-system)
2529 (arguments '(#:tex-directory "latex/upquote"))
b8d8806b 2530 (home-page "https://www.ctan.org/pkg/upquote")
0de81b09
RW
2531 (synopsis "Show \"realistic\" quotes in verbatim")
2532 (description
2533 "Typewriter-style fonts are best for program listings, but Computer
2534Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
2535single quotes. Other fonts, and most programming languages, print @code{`} as
2536a grave accent and @code{'} upright; @code{'} is used both to open and to
2537close quoted strings. The package switches the typewriter font to Computer
2538Modern Typewriter in OT1 encoding, and modifies the behaviour of
2539@code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
2540in the expected way. It does this regardless of other fonts or encodings in
2541use, so long as the package is loaded after the other fonts were. The package
2542does not affect @code{\\tt}, @code{\\texttt}, etc.")
2543 (license license:lppl1.2+)))
2544
bda61541
RW
2545(define-public texlive-latex-anysize
2546 (package
2547 (name "texlive-latex-anysize")
2548 (version (number->string %texlive-revision))
2549 (source (origin
2550 (method svn-fetch)
2551 (uri (svn-reference
2552 (url (string-append "svn://www.tug.org/texlive/tags/"
2553 %texlive-tag "/Master/texmf-dist/"
2554 "/tex/latex/anysize"))
2555 (revision %texlive-revision)))
2556 (sha256
2557 (base32
2558 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
2559 (build-system trivial-build-system)
2560 (arguments
2561 `(#:modules ((guix build utils))
2562 #:builder
2563 (begin
2564 (use-modules (guix build utils))
2565 (let ((target (string-append (assoc-ref %outputs "out")
2566 "/share/texmf-dist/tex/latex/anysize")))
2567 (mkdir-p target)
2568 (copy-recursively (assoc-ref %build-inputs "source") target)
2569 #t))))
b8d8806b 2570 (home-page "https://www.ctan.org/pkg/anysize")
bda61541
RW
2571 (synopsis "Simple package to set up document margins")
2572 (description
2573 "This is a simple package to set up document margins. This package is
2574considered obsolete; alternatives are the @code{typearea} package from the
2575@code{koma-script} bundle, or the @code{geometry} package.")
2576 (license license:public-domain)))
2577
1d3be84e
RW
2578(define-public texlive-latex-appendix
2579 (package
2580 (name "texlive-latex-appendix")
2581 (version (number->string %texlive-revision))
2582 (source (origin
2583 (method svn-fetch)
2584 (uri (texlive-ref "latex" "appendix"))
2585 (sha256
2586 (base32
2587 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
2588 (build-system texlive-build-system)
2589 (arguments '(#:tex-directory "latex/appendix"))
b8d8806b 2590 (home-page "https://www.ctan.org/pkg/appendix")
1d3be84e
RW
2591 (synopsis "Extra control of appendices")
2592 (description
2593 "The appendix package provides various ways of formatting the titles of
2594appendices. Also (sub)appendices environments are provided that can be used,
2595for example, for per chapter/section appendices. An @code{appendices}
2596environment is provided which can be used instead of the @code{\\appendix}
2597command.")
2598 (license license:lppl)))
2599
b92ac281
RW
2600(define-public texlive-latex-changebar
2601 (package
2602 (name "texlive-latex-changebar")
2603 (version (number->string %texlive-revision))
2604 (source (origin
2605 (method svn-fetch)
2606 (uri (texlive-ref "latex" "changebar"))
2607 (sha256
2608 (base32
2609 "1ik4m8pzfsn1grlda6fniqqfwmgj7rfxwg63jdw0p0qv002vc7ik"))))
2610 (build-system texlive-build-system)
2611 (arguments '(#:tex-directory "latex/changebar"))
b8d8806b 2612 (home-page "https://www.ctan.org/pkg/changebar")
b92ac281
RW
2613 (synopsis "Generate changebars in LaTeX documents")
2614 (description
2615 "Identify areas of text to be marked with changebars with the
2616@code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
2617package uses 'drivers' to place the bars; the available drivers can work with
2618@code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
2619drivers, and VTeX and pdfTeX.")
2620 (license license:lppl)))
2621
fedd77c1
RW
2622(define-public texlive-latex-cmap
2623 (package
2624 (name "texlive-latex-cmap")
2625 (version (number->string %texlive-revision))
2626 (source (origin
2627 (method svn-fetch)
2628 (uri (svn-reference
2629 (url (string-append "svn://www.tug.org/texlive/tags/"
2630 %texlive-tag "/Master/texmf-dist/"
2631 "/tex/latex/cmap"))
2632 (revision %texlive-revision)))
2633 (file-name (string-append name "-" version "-checkout"))
2634 (sha256
2635 (base32
2636 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
2637 (build-system trivial-build-system)
2638 (arguments
2639 `(#:modules ((guix build utils))
2640 #:builder
2641 (begin
2642 (use-modules (guix build utils))
2643 (let ((target (string-append (assoc-ref %outputs "out")
2644 "/share/texmf-dist/tex/latex/cmap")))
2645 (mkdir-p target)
2646 (copy-recursively (assoc-ref %build-inputs "source") target)
2647 #t))))
2648 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
2649Master/texmf-dist/tex/latex/cmap/")
2650 (synopsis "CMap support for PDF files")
2651 (description
2652 "This package embeds CMap tables into PDF files to make search and
2653copy-and-paste functions work properly.")
2654 (license license:lppl)))
2655
e003a5f0
RW
2656(define-public texlive-latex-colortbl
2657 (package
2658 (name "texlive-latex-colortbl")
2659 (version (number->string %texlive-revision))
2660 (source (origin
2661 (method svn-fetch)
2662 (uri (texlive-ref "latex" "colortbl"))
2663 (sha256
2664 (base32
2665 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
2666 (build-system texlive-build-system)
2667 (arguments '(#:tex-directory "latex/colortbl"))
b8d8806b 2668 (home-page "https://www.ctan.org/pkg/colortbl")
e003a5f0
RW
2669 (synopsis "Add colour to LaTeX tables")
2670 (description
2671 "This package allows rows, columns, and even individual cells in LaTeX
2672tables to be coloured.")
2673 (license license:lppl)))
2674
36ce05ff
RW
2675(define-public texlive-latex-fancybox
2676 (package
2677 (name "texlive-latex-fancybox")
2678 (version (number->string %texlive-revision))
2679 (source (origin
2680 (method svn-fetch)
2681 (uri (svn-reference
2682 (url (string-append "svn://www.tug.org/texlive/tags/"
2683 %texlive-tag "/Master/texmf-dist/"
2684 "/tex/latex/fancybox"))
2685 (revision %texlive-revision)))
2686 (sha256
2687 (base32
2688 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
2689 (build-system trivial-build-system)
2690 (arguments
2691 `(#:modules ((guix build utils))
2692 #:builder
2693 (begin
2694 (use-modules (guix build utils))
2695 (let ((target (string-append (assoc-ref %outputs "out")
2696 "/share/texmf-dist/tex/latex/fancybox")))
2697 (mkdir-p target)
2698 (copy-recursively (assoc-ref %build-inputs "source") target)
2699 #t))))
b8d8806b 2700 (home-page "https://www.ctan.org/pkg/fancybox")
36ce05ff
RW
2701 (synopsis "Variants of \\fbox and other games with boxes")
2702 (description
2703 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
2704@code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
2705using box macros and flexible verbatim macros. You can box mathematics,
2706floats, center, flushleft, and flushright, lists, and pages.")
2707 (license license:lppl1.2+)))
2708
20282111
RW
2709(define-public texlive-latex-fancyhdr
2710 (package
2711 (name "texlive-latex-fancyhdr")
2712 (version (number->string %texlive-revision))
2713 (source (origin
2714 (method svn-fetch)
2715 (uri (svn-reference
2716 (url (string-append "svn://www.tug.org/texlive/tags/"
2717 %texlive-tag "/Master/texmf-dist/"
2718 "/tex/latex/fancyhdr"))
2719 (revision %texlive-revision)))
2720 (sha256
2721 (base32
2722 "04h430agf8aj7ziwyb46xpk95c605rjk1wzhr63m6ylipihidlgw"))))
2723 (build-system trivial-build-system)
2724 (arguments
2725 `(#:modules ((guix build utils))
2726 #:builder
2727 (begin
2728 (use-modules (guix build utils))
2729 (let ((target (string-append (assoc-ref %outputs "out")
2730 "/share/texmf-dist/tex/latex/fancyhdr")))
2731 (mkdir-p target)
2732 (copy-recursively (assoc-ref %build-inputs "source") target)
2733 #t))))
b8d8806b 2734 (home-page "https://www.ctan.org/pkg/fancyhdr")
20282111
RW
2735 (synopsis "Extensive control of page headers and footers in LaTeX2e")
2736 (description
2737 "The package provides extensive facilities, both for constructing headers
2738and footers, and for controlling their use (for example, at times when LaTeX
2739would automatically change the heading style in use).")
2740 (license license:lppl)))
2741
df2b9bb4
RW
2742(define-public texlive-latex-float
2743 (package
2744 (name "texlive-latex-float")
2745 (version (number->string %texlive-revision))
2746 (source (origin
2747 (method svn-fetch)
2748 (uri (texlive-ref "latex" "float"))
2749 (sha256
2750 (base32
2751 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
2752 (build-system texlive-build-system)
2753 (arguments '(#:tex-directory "latex/float"))
b8d8806b 2754 (home-page "https://www.ctan.org/pkg/float")
df2b9bb4
RW
2755 (synopsis "Improved interface for floating objects")
2756 (description
2757 "This package improves the interface for defining floating objects such
2758as figures and tables. It introduces the boxed float, the ruled float and the
2759plaintop float. You can define your own floats and improve the behaviour of
2760the old ones. The package also provides the @code{H} float modifier option of
2761the obsolete @code{here} package. You can select this as automatic default
2762with @code{\\floatplacement{figure}{H}}.")
2763 (license license:lppl)))
2764
3921bc7c
RW
2765(define-public texlive-latex-footmisc
2766 (package
2767 (name "texlive-latex-footmisc")
2768 (version (number->string %texlive-revision))
2769 (source (origin
2770 (method svn-fetch)
2771 (uri (texlive-ref "latex" "footmisc"))
2772 (sha256
2773 (base32
2774 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
2775 (build-system texlive-build-system)
2776 (arguments '(#:tex-directory "latex/footmisc"))
b8d8806b 2777 (home-page "https://www.ctan.org/pkg/footmisc")
3921bc7c
RW
2778 (synopsis "Range of footnote options")
2779 (description
2780 "This is a collection of ways to change the typesetting of footnotes.
2781The package provides means of changing the layout of the footnotes themselves,
2782a way to number footnotes per page, to make footnotes disappear in a
2783\"moving\" argument, and to deal with multiple references to footnotes from
2784the same place. The package also has a range of techniques for labelling
2785footnotes with symbols rather than numbers.")
2786 (license license:lppl1.3+)))
2787
b2bc1daf
RW
2788(define-public texlive-latex-listings
2789 (package
2790 (name "texlive-latex-listings")
2791 (version (number->string %texlive-revision))
2792 (source (origin
2793 (method svn-fetch)
2794 (uri (texlive-ref "latex" "listings"))
2795 (sha256
2796 (base32
2797 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
2798 (build-system texlive-build-system)
2799 (arguments
2800 '(#:tex-directory "latex/listings"
2801 #:build-targets '("listings.ins")))
b8d8806b 2802 (home-page "https://www.ctan.org/pkg/listings")
b2bc1daf
RW
2803 (synopsis "Typeset source code listings using LaTeX")
2804 (description
2805 "The package enables the user to typeset programs (programming code)
2806within LaTeX; the source code is read directly by TeX---no front-end processor
2807is needed. Keywords, comments and strings can be typeset using different
2808styles. Support for @code{hyperref} is provided.")
2809 (license license:lppl1.3+)))
2810
02fd07b3
RW
2811(define-public texlive-latex-jknapltx
2812 (package
2813 (name "texlive-latex-jknapltx")
2814 (version (number->string %texlive-revision))
2815 (source (origin
2816 (method svn-fetch)
2817 (uri (svn-reference
2818 (url (string-append "svn://www.tug.org/texlive/tags/"
2819 %texlive-tag "/Master/texmf-dist/"
2820 "/tex/latex/jknapltx"))
2821 (revision %texlive-revision)))
2822 (sha256
2823 (base32
2824 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
2825 (build-system trivial-build-system)
2826 (arguments
2827 `(#:modules ((guix build utils))
2828 #:builder
2829 (begin
2830 (use-modules (guix build utils))
2831 (let ((target (string-append (assoc-ref %outputs "out")
2832 "/share/texmf-dist/tex/latex/jknapltx")))
2833 (mkdir-p target)
2834 (copy-recursively (assoc-ref %build-inputs "source") target)
2835 #t))))
b8d8806b 2836 (home-page "https://www.ctan.org/pkg/jknappen")
02fd07b3
RW
2837 (synopsis "Miscellaneous packages by Joerg Knappen")
2838 (description
2839 "This package provides miscellaneous macros by Joerg Knappen, including:
2840represent counters in greek; Maxwell's non-commutative division;
2841@code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
2842@code{inputenc} definition files that allow verbatim input in the respective
2843ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
2844extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
2845transliterate semitic languages; patches to make (La)TeX formulae embeddable
2846in SGML; use maths minus in text as appropriate; simple Young tableaux.")
2847 (license license:gpl2)))
2848
83c830d1
RW
2849(define-public texlive-fonts-ec
2850 (package
2851 (name "texlive-fonts-ec")
2852 (version (number->string %texlive-revision))
2853 (source (origin
2854 (method svn-fetch)
2855 (uri (svn-reference
2856 (url (string-append "svn://www.tug.org/texlive/tags/"
2857 %texlive-tag "/Master/texmf-dist/"
2858 "/fonts/source/jknappen/ec/"))
2859 (revision %texlive-revision)))
2860 (sha256
2861 (base32
2862 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
2863 (build-system gnu-build-system)
2864 (arguments
2865 `(#:modules ((guix build gnu-build-system)
2866 (guix build utils)
2867 (srfi srfi-1)
2868 (srfi srfi-26))
2869 #:tests? #f ; no tests
2870 #:phases
2871 (modify-phases %standard-phases
2872 (delete 'configure)
2873 (replace 'build
2874 (lambda* (#:key inputs #:allow-other-keys)
2875 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
2876 ;; Tell mf where to find mf.base
2877 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
2878 ;; Tell mf where to look for source files
2879 (setenv "MFINPUTS"
2880 (string-append (getcwd) ":"
2881 mf "/share/texmf-dist/metafont/base:"
2882 (assoc-ref inputs "texlive-fonts-cm")
2883 "/share/texmf-dist/fonts/source/public/cm")))
2884 (mkdir "build")
2885 (every (lambda (font)
2886 (format #t "building font ~a\n" font)
2887 (zero? (system* "mf" "-progname=mf"
2888 "-output-directory=build"
2889 (string-append "\\"
2890 "mode:=ljfour; "
2891 "mag:=1; "
2892 "batchmode; "
2893 "input " (basename font ".mf")))))
2894 (find-files "." "[0-9]+\\.mf$"))))
2895 (replace 'install
2896 (lambda* (#:key outputs #:allow-other-keys)
2897 (let* ((out (assoc-ref outputs "out"))
2898 (tfm (string-append
2899 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
2900 (mf (string-append
2901 out "/share/texmf-dist/fonts/source/jknappen/ec")))
2902 (for-each (cut install-file <> tfm)
2903 (find-files "build" "\\.*"))
2904 (for-each (cut install-file <> mf)
2905 (find-files "." "\\.mf"))
2906 #t))))))
2907 (native-inputs
2908 `(("texlive-bin" ,texlive-bin)
2909 ("texlive-metafont-base" ,texlive-metafont-base)
2910 ("texlive-fonts-cm" ,texlive-fonts-cm)))
b8d8806b 2911 (home-page "https://www.ctan.org/pkg/ec")
83c830d1
RW
2912 (synopsis "Computer modern fonts in T1 and TS1 encodings")
2913 (description
2914 "The EC fonts are European Computer Modern Fonts, supporting the complete
2915LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
2916These fonts are intended to be stable with no changes being made to the tfm
2917files. The set also contains a Text Companion Symbol font, called @code{tc},
2918featuring many useful characters needed in text typesetting, for example
2919oldstyle digits, currency symbols (including the newly created Euro symbol),
2920the permille sign, copyright, trade mark and servicemark as well as a copyleft
2921sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
2922EC fonts supersede the preliminary version released as the DC fonts. The
2923fonts are available in (traced) Adobe Type 1 format, as part of the
2924@code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
2925set, Latin Modern, is not actually a direct development of the EC set, and
2926differs from the EC in a number of particulars.")
2927 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
2928texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
2929
f45a5520
RW
2930(define-public texlive-fonts-rsfs
2931 (package
2932 (name "texlive-fonts-rsfs")
2933 (version (number->string %texlive-revision))
2934 (source (origin
2935 (method svn-fetch)
2936 (uri (svn-reference
2937 (url (string-append "svn://www.tug.org/texlive/tags/"
2938 %texlive-tag "/Master/texmf-dist/"
2939 "/fonts/source/public/rsfs/"))
2940 (revision %texlive-revision)))
2941 (sha256
2942 (base32
2943 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
2944 (build-system gnu-build-system)
2945 (arguments
2946 `(#:modules ((guix build gnu-build-system)
2947 (guix build utils)
2948 (srfi srfi-1)
2949 (srfi srfi-26))
2950 #:tests? #f ; no tests
2951 #:phases
2952 (modify-phases %standard-phases
2953 (delete 'configure)
2954 (replace 'build
2955 (lambda* (#:key inputs #:allow-other-keys)
2956 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
2957 ;; Tell mf where to find mf.base
2958 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
2959 ;; Tell mf where to look for source files
2960 (setenv "MFINPUTS"
2961 (string-append (getcwd) ":"
2962 mf "/share/texmf-dist/metafont/base:"
2963 (assoc-ref inputs "texlive-fonts-cm")
2964 "/share/texmf-dist/fonts/source/public/cm")))
2965 (mkdir "build")
2966 (every (lambda (font)
2967 (format #t "building font ~a\n" font)
2968 (zero? (system* "mf" "-progname=mf"
2969 "-output-directory=build"
2970 (string-append "\\"
2971 "mode:=ljfour; "
2972 "mag:=1; "
2973 "batchmode; "
2974 "input " (basename font ".mf")))))
2975 (find-files "." "[0-9]+\\.mf$"))))
2976 (replace 'install
2977 (lambda* (#:key outputs #:allow-other-keys)
2978 (let* ((out (assoc-ref outputs "out"))
2979 (tfm (string-append
2980 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
2981 (mf (string-append
2982 out "/share/texmf-dist/fonts/source/public/rsfs")))
2983 (for-each (cut install-file <> tfm)
2984 (find-files "build" "\\.*"))
2985 (for-each (cut install-file <> mf)
2986 (find-files "." "\\.mf"))
2987 #t))))))
2988 (native-inputs
2989 `(("texlive-bin" ,texlive-bin)
2990 ("texlive-metafont-base" ,texlive-metafont-base)
2991 ("texlive-fonts-cm" ,texlive-fonts-cm)))
b8d8806b 2992 (home-page "https://www.ctan.org/pkg/rsfs")
f45a5520
RW
2993 (synopsis "Ralph Smith's Formal Script font")
2994 (description
2995 "The fonts provide uppercase formal script letters for use as symbols in
2996scientific and mathematical typesetting (in contrast to the informal script
2997fonts such as that used for the calligraphic symbols in the TeX maths symbol
2998font). The fonts are provided as Metafont source, and as derived Adobe Type 1
2999format. LaTeX support, for using these fonts in mathematics, is available via
3000one of the packages @code{calrsfs} and @code{mathrsfs}.")
3001 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
3002
1562763c
RW
3003(define-public texlive-latex-eso-pic
3004 (package
3005 (name "texlive-latex-eso-pic")
3006 (version (number->string %texlive-revision))
3007 (source (origin
3008 (method svn-fetch)
3009 (uri (texlive-ref "latex" "eso-pic"))
3010 (sha256
3011 (base32
3012 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
3013 (build-system texlive-build-system)
3014 (arguments '(#:tex-directory "latex/eso-pic"))
b8d8806b 3015 (home-page "https://www.ctan.org/pkg/eso-pic")
1562763c
RW
3016 (synopsis "Add picture commands (or backgrounds) to every page")
3017 (description
3018 "The package adds one or more user commands to LaTeX's @code{shipout}
3019routine, which may be used to place the output at fixed positions. The
3020@code{grid} option may be used to find the correct places.")
3021 (license license:lppl1.3+)))
3022
ae3779d5
RW
3023(define-public texlive-latex-eepic
3024 (package
3025 (name "texlive-latex-eepic")
3026 (version (number->string %texlive-revision))
3027 (source (origin
3028 (method svn-fetch)
3029 (uri (svn-reference
3030 (url (string-append "svn://www.tug.org/texlive/tags/"
3031 %texlive-tag "/Master/texmf-dist/"
3032 "/tex/latex/eepic"))
3033 (revision %texlive-revision)))
3034 (sha256
3035 (base32
3036 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
3037 (build-system trivial-build-system)
3038 (arguments
3039 `(#:modules ((guix build utils))
3040 #:builder
3041 (begin
3042 (use-modules (guix build utils))
3043 (let ((target (string-append (assoc-ref %outputs "out")
3044 "/share/texmf-dist/tex/latex/eepic")))
3045 (mkdir-p target)
3046 (copy-recursively (assoc-ref %build-inputs "source") target)
3047 #t))))
b8d8806b 3048 (home-page "https://www.ctan.org/pkg/eepic")
ae3779d5
RW
3049 (synopsis "Extensions to epic and the LaTeX drawing tools")
3050 (description
3051 "Extensions to @code{epic} and the LaTeX picture drawing environment,
3052include the drawing of lines at any slope, the drawing of circles in any
3053radii, and the drawing of dotted and dashed lines much faster with much less
3054TeX memory, and providing several new commands for drawing ellipses, arcs,
3055splines, and filled circles and ellipses. The package uses @code{tpic}
3056@code{\\special} commands.")
3057 (license license:public-domain)))
3058
245f1f31
RW
3059(define-public texlive-latex-enumitem
3060 (package
3061 (name "texlive-latex-enumitem")
3062 (version (number->string %texlive-revision))
3063 (source (origin
3064 (method svn-fetch)
3065 (uri (svn-reference
3066 (url (string-append "svn://www.tug.org/texlive/tags/"
3067 %texlive-tag "/Master/texmf-dist/"
3068 "/tex/latex/enumitem"))
3069 (revision %texlive-revision)))
3070 (file-name (string-append name "-" version "-checkout"))
3071 (sha256
3072 (base32
3073 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
3074 (build-system trivial-build-system)
3075 (arguments
3076 `(#:modules ((guix build utils))
3077 #:builder
3078 (begin
3079 (use-modules (guix build utils))
3080 (let ((target (string-append (assoc-ref %outputs "out")
3081 "/share/texmf-dist/tex/latex/enumitem")))
3082 (mkdir-p target)
3083 (copy-recursively (assoc-ref %build-inputs "source") target)
3084 #t))))
b8d8806b 3085 (home-page "https://www.ctan.org/pkg/enumitem")
245f1f31
RW
3086 (synopsis "Customize basic list environments")
3087 (description
3088 "This package is intended to ease customizing the three basic list
3089environments: @code{enumerate}, @code{itemize} and @code{description}. It
3090extends their syntax to allow an optional argument where a set of parameters
3091in the form @code{key=value} are available, for example:
3092@code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
3093 (license license:lppl1.3+)))
3094
ecffeeb5
RW
3095(define-public texlive-latex-multirow
3096 (package
3097 (name "texlive-latex-multirow")
3098 (version (number->string %texlive-revision))
3099 (source (origin
3100 (method svn-fetch)
3101 (uri (texlive-ref "latex" "multirow"))
3102 (sha256
3103 (base32
3104 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
3105 (build-system texlive-build-system)
3106 (arguments '(#:tex-directory "latex/multirow"))
b8d8806b 3107 (home-page "https://www.ctan.org/pkg/multirow")
ecffeeb5
RW
3108 (synopsis "Create tabular cells spanning multiple rows")
3109 (description
3110 "The package provides tools for creating tabular cells spanning multiple
3111rows. It has a lot of flexibility, including an option for specifying an
3112entry at the \"natural\" width of its text.")
3113 (license license:lppl1.3+)))
3114
da38b235
RW
3115(define-public texlive-latex-overpic
3116 (package
3117 (name "texlive-latex-overpic")
3118 (version (number->string %texlive-revision))
3119 (source (origin
3120 (method svn-fetch)
3121 (uri (svn-reference
3122 (url (string-append "svn://www.tug.org/texlive/tags/"
3123 %texlive-tag "/Master/texmf-dist/"
3124 "/tex/latex/overpic"))
3125 (revision %texlive-revision)))
3126 (sha256
3127 (base32
3128 "0m29q9qdb00558b7g2i7iw6w62n5s46yx81j8m99qkv77magk4fm"))))
3129 (build-system trivial-build-system)
3130 (arguments
3131 `(#:modules ((guix build utils))
3132 #:builder
3133 (begin
3134 (use-modules (guix build utils))
3135 (let ((target (string-append (assoc-ref %outputs "out")
3136 "/share/texmf-dist/tex/latex/overpic")))
3137 (mkdir-p target)
3138 (copy-recursively (assoc-ref %build-inputs "source") target)
3139 #t))))
b8d8806b 3140 (home-page "https://www.ctan.org/pkg/overpic")
da38b235
RW
3141 (synopsis "Combine LaTeX commands over included graphics")
3142 (description
3143 "The @code{overpic} environment is a cross between the LaTeX
3144@code{picture} environment and the @code{\\includegraphics} command of
3145@code{graphicx}. The resulting picture environment has the same dimensions as
3146the included graphic. LaTeX commands can be placed on the graphic at defined
3147positions; a grid for orientation is available.")
3148 (license license:lppl1.0+)))
3149
e0d307d1
RW
3150(define-public texlive-latex-parskip
3151 (package
3152 (name "texlive-latex-parskip")
3153 (version (number->string %texlive-revision))
3154 (source (origin
3155 (method svn-fetch)
3156 (uri (svn-reference
3157 (url (string-append "svn://www.tug.org/texlive/tags/"
3158 %texlive-tag "/Master/texmf-dist/"
3159 "/tex/latex/parskip"))
3160 (revision %texlive-revision)))
3161 (file-name (string-append name "-" version "-checkout"))
3162 (sha256
3163 (base32
3164 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
3165 (build-system trivial-build-system)
3166 (arguments
3167 `(#:modules ((guix build utils))
3168 #:builder
3169 (begin
3170 (use-modules (guix build utils))
3171 (let ((target (string-append (assoc-ref %outputs "out")
3172 "/share/texmf-dist/tex/latex/parskip")))
3173 (mkdir-p target)
3174 (copy-recursively (assoc-ref %build-inputs "source") target)
3175 #t))))
b8d8806b 3176 (home-page "https://www.ctan.org/pkg/parskip")
e0d307d1
RW
3177 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
3178 (description
3179 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
3180that is untidy; this package (though it is no substitute for a properly
3181designed class) helps alleviate this untidiness.")
3182 (license license:lppl)))
3183
adc02c70
RW
3184(define-public texlive-latex-pdfpages
3185 (package
3186 (name "texlive-latex-pdfpages")
3187 (version (number->string %texlive-revision))
3188 (source (origin
3189 (method svn-fetch)
3190 (uri (texlive-ref "latex" "pdfpages"))
3191 (sha256
3192 (base32
3193 "06p5smfq66559ppdnmkl3hp8534x84ywbscimsiir4gllpya3i9h"))))
3194 (build-system texlive-build-system)
3195 (arguments '(#:tex-directory "latex/pdfpages"))
b8d8806b 3196 (home-page "https://www.ctan.org/pkg/pdfpages")
adc02c70
RW
3197 (synopsis "Include PDF documents in LaTeX")
3198 (description
3199 "This package simplifies the inclusion of external multi-page PDF
3200documents in LaTeX documents. Pages may be freely selected and it is possible
3201to put several logical pages onto each sheet of paper. Furthermore a lot of
3202hypertext features like hyperlinks and article threads are provided. The
3203package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
3204use this package to insert PostScript files, in addition to PDF files.")
3205 (license license:lppl1.3+)))
3206
d8fef6ea
RW
3207(define-public texlive-fonts-stmaryrd
3208 (package
3209 (name "texlive-fonts-stmaryrd")
3210 (version (number->string %texlive-revision))
3211 (source (origin
3212 (method svn-fetch)
3213 (uri (texlive-ref "fonts" "stmaryrd"))
3214 (sha256
3215 (base32
3216 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
3217 (build-system texlive-build-system)
3218 (arguments
3219 '(#:tex-directory "latex/stmaryrd"
3220 #:phases
3221 (modify-phases %standard-phases
3222 (add-after 'configure 'patch-ins
3223 (lambda _
3224 (substitute* "stmaryrd.ins"
3225 (("^%% LaTeX2e.*") "\\input docstrip\n")
3226 (("fontdef\\}\\}" line)
3227 (string-append line "\n\\endbatchfile")))
3228 #t)))))
b8d8806b 3229 (home-page "https://www.ctan.org/pkg/stmaryrd")
d8fef6ea
RW
3230 (synopsis "St Mary Road symbols for theoretical computer science")
3231 (description
3232 "The fonts were originally distributed as Metafont sources only, but
3233Adobe Type 1 versions are also now available. Macro support is provided for
3234use under LaTeX; the package supports the @code{only} option (provided by the
3235@code{somedefs} package) to restrict what is loaded, for those who don't need
3236the whole font.")
3237 (license license:lppl)))
3238
2db3a034
RW
3239(define-public texlive-latex-subfigure
3240 (package
3241 (name "texlive-latex-subfigure")
3242 (version (number->string %texlive-revision))
3243 (source (origin
3244 (method svn-fetch)
3245 (uri (texlive-ref "latex" "subfigure"))
3246 (sha256
3247 (base32
3248 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
3249 (build-system texlive-build-system)
3250 (arguments '(#:tex-directory "latex/subfigure"))
b8d8806b 3251 (home-page "https://www.ctan.org/pkg/subfigure")
2db3a034
RW
3252 (synopsis "Figures divided into subfigures")
3253 (description
3254 "This (deprecated) package provides support for the manipulation and
3255reference of small or \"sub\" figures and tables within a single figure or
3256table environment. It is convenient to use this package when your subfigures
3257are to be separately captioned, referenced, or are to be included in the
3258List-of-Figures. A new @code{\\subfigure} command is introduced which can be
3259used inside a figure environment for each subfigure. An optional first
3260argument is used as the caption for that subfigure. The package is now
3261considered obsolete: it was superseded by @code{subfig}, but users may find
3262the more recent @code{subcaption} package more satisfactory.")
3263 (license license:lppl)))
3264
c73d0e9d
RW
3265(define-public texlive-latex-tabulary
3266 (package
3267 (name "texlive-latex-tabulary")
3268 (version (number->string %texlive-revision))
3269 (source (origin
3270 (method svn-fetch)
3271 (uri (texlive-ref "latex" "tabulary"))
3272 (file-name (string-append name "-" version "-checkout"))
3273 (sha256
3274 (base32
3275 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
3276 (build-system texlive-build-system)
3277 (arguments '(#:tex-directory "latex/tabulary"))
b8d8806b 3278 (home-page "https://www.ctan.org/pkg/tabulary")
c73d0e9d
RW
3279 (synopsis "Tabular with variable width columns balanced")
3280 (description
3281 "The package defines a @code{tabular*}-like environment, @code{tabulary},
3282taking a \"total width\" argument as well as the column specifications. The
3283environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
3284variable width columns (@code{\\raggedright}, @code{\\centering},
3285@code{\\raggedleft}, and normally justified). In contrast to
3286@code{tabularx}'s @code{X} columns, the width of each column is weighted
3287according to the natural width of the widest cell in the column.")
3288 (license license:lppl)))
3289
e3088297
RW
3290(define-public texlive-latex-threeparttable
3291 (package
3292 (name "texlive-latex-threeparttable")
3293 (version (number->string %texlive-revision))
3294 (source (origin
3295 (method svn-fetch)
3296 (uri (svn-reference
3297 (url (string-append "svn://www.tug.org/texlive/tags/"
3298 %texlive-tag "/Master/texmf-dist/"
3299 "/tex/latex/threeparttable"))
3300 (revision %texlive-revision)))
3301 (sha256
3302 (base32
3303 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
3304 (build-system trivial-build-system)
3305 (arguments
3306 `(#:modules ((guix build utils))
3307 #:builder
3308 (begin
3309 (use-modules (guix build utils))
3310 (let ((target (string-append (assoc-ref %outputs "out")
3311 "/share/texmf-dist/tex/latex/threeparttable")))
3312 (mkdir-p target)
3313 (copy-recursively (assoc-ref %build-inputs "source") target)
3314 #t))))
b8d8806b 3315 (home-page "https://www.ctan.org/pkg/threeparttable")
e3088297
RW
3316 (synopsis "Tables with captions and notes all the same width")
3317 (description
3318 "This package facilitates tables with titles (captions) and notes. The
3319title and notes are given a width equal to the body of the table (a
3320@code{tabular} environment). By itself, a @code{threeparttable} does not
3321float, but you can put it in a @code{table} or a @code{table*} or some other
3322environment.")
3323 (license (license:fsf-free "file://threeparttable.sty"))))
3324
1b10d494
RW
3325(define-public texlive-fonts-txfonts
3326 (package
3327 (name "texlive-fonts-txfonts")
3328 (version (number->string %texlive-revision))
3329 (source (origin
3330 (method svn-fetch)
3331 (uri (svn-reference
3332 (url (string-append "svn://www.tug.org/texlive/tags/"
3333 %texlive-tag "/Master/texmf-dist/"
3334 "/tex/latex/txfonts"))
3335 (revision %texlive-revision)))
3336 (file-name (string-append name "-" version "-checkout"))
3337 (sha256
3338 (base32
3339 "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
3340 (build-system trivial-build-system)
3341 (arguments
3342 `(#:modules ((guix build utils)
3343 (ice-9 match))
3344 #:builder
3345 (begin
3346 (use-modules (guix build utils)
3347 (ice-9 match))
3348 (let ((root (string-append (assoc-ref %outputs "out")
3349 "/share/texmf-dist/"))
3350 (pkgs '(("source" . "tex/latex/txfonts")
3351 ("txfonts-vf" . "fonts/tfm/public/txfonts")
3352 ("txfonts-afm" . "fonts/afm/public/txfonts")
3353 ("txfonts-tfm" . "fonts/tfm/public/txfonts")
3354 ("txfonts-type1" . "fonts/type1/public/txfonts")
3355 ("txfonts-enc" . "fonts/enc/dvips/txfonts")
3356 ("txfonts-map" . "fonts/map/dvips/txfonts"))))
3357 (for-each (match-lambda
3358 ((pkg . dir)
3359 (let ((target (string-append root dir)))
3360 (mkdir-p target)
3361 (copy-recursively (assoc-ref %build-inputs pkg)
3362 target))))
3363 pkgs)
3364 #t))))
3365 (native-inputs
3366 `(("txfonts-tfm"
3367 ,(origin
3368 (method svn-fetch)
3369 (uri (svn-reference
3370 (url (string-append "svn://www.tug.org/texlive/tags/"
3371 %texlive-tag "/Master/texmf-dist/"
3372 "/fonts/tfm/public/txfonts"))
3373 (revision %texlive-revision)))
3374 (file-name (string-append name "-tfm-" version "-checkout"))
3375 (sha256
3376 (base32
3377 "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
3378 ("txfonts-vf"
3379 ,(origin
3380 (method svn-fetch)
3381 (uri (svn-reference
3382 (url (string-append "svn://www.tug.org/texlive/tags/"
3383 %texlive-tag "/Master/texmf-dist/"
3384 "/fonts/vf/public/txfonts"))
3385 (revision %texlive-revision)))
3386 (file-name (string-append name "-vf-" version "-checkout"))
3387 (sha256
3388 (base32
3389 "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
3390 ("txfonts-afm"
3391 ,(origin
3392 (method svn-fetch)
3393 (uri (svn-reference
3394 (url (string-append "svn://www.tug.org/texlive/tags/"
3395 %texlive-tag "/Master/texmf-dist/"
3396 "/fonts/afm/public/txfonts"))
3397 (revision %texlive-revision)))
3398 (file-name (string-append name "-afm-" version "-checkout"))
3399 (sha256
3400 (base32
3401 "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
3402 ("txfonts-type1"
3403 ,(origin
3404 (method svn-fetch)
3405 (uri (svn-reference
3406 (url (string-append "svn://www.tug.org/texlive/tags/"
3407 %texlive-tag "/Master/texmf-dist/"
3408 "/fonts/type1/public/txfonts"))
3409 (revision %texlive-revision)))
3410 (file-name (string-append name "-type1-" version "-checkout"))
3411 (sha256
3412 (base32
3413 "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
3414 ("txfonts-map"
3415 ,(origin
3416 (method svn-fetch)
3417 (uri (svn-reference
3418 (url (string-append "svn://www.tug.org/texlive/tags/"
3419 %texlive-tag "/Master/texmf-dist/"
3420 "/fonts/map/dvips/txfonts"))
3421 (revision %texlive-revision)))
3422 (file-name (string-append name "-map-" version "-checkout"))
3423 (sha256
3424 (base32
3425 "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
3426 ("txfonts-enc"
3427 ,(origin
3428 (method svn-fetch)
3429 (uri (svn-reference
3430 (url (string-append "svn://www.tug.org/texlive/tags/"
3431 %texlive-tag "/Master/texmf-dist/"
3432 "/fonts/enc/dvips/txfonts"))
3433 (revision %texlive-revision)))
3434 (file-name (string-append name "-enc-" version "-checkout"))
3435 (sha256
3436 (base32
3437 "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
b8d8806b 3438 (home-page "https://www.ctan.org/pkg/threeparttable")
1b10d494
RW
3439 (synopsis "Times-like fonts in support of mathematics")
3440 (description
3441 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
3442NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
3443and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
3444providing all the symbols of the Computer Modern and AMS fonts, including all
3445the Greek capital letters from CMR; and additional maths fonts of various
3446other symbols.
3447
3448The set is complemented by a sans-serif set of text fonts, based on
3449Helvetica/NimbusSanL, and a monospace set.
3450
3451All the fonts are in Type 1 format (AFM and PFB files), and are supported by
3452TeX metrics (VF and TFM files) and macros for use with LaTeX.")
3453 ;; Any version of the GPL with font exception.
3454 (license license:gpl3+)))
3455
f9e0fcb2
RW
3456(define-public texlive-fonts-iwona
3457 (package
3458 (name "texlive-fonts-iwona")
3459 (version "0.995b")
3460 (source (origin
3461 (method url-fetch)
3462 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
3463 (string-map (lambda (c)
3464 (if (char=? c #\.)
3465 #\_ c))
3466 version)
3467 ".zip"))
3468 (sha256
3469 (base32
3470 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
3471 (build-system trivial-build-system)
3472 (arguments
3473 `(#:modules ((guix build utils))
3474 #:builder
3475 (begin
3476 (use-modules (guix build utils))
3477 (let ((target (string-append (assoc-ref %outputs "out")
3478 "/share/texmf-dist/"))
3479 (unzip (string-append (assoc-ref %build-inputs "unzip")
3480 "/bin/unzip")))
3481 (system* unzip (assoc-ref %build-inputs "source"))
3482 (mkdir-p target)
3483 (copy-recursively "iwona" target)))))
3484 (native-inputs
3485 `(("unzip" ,unzip)))
3486 (home-page "http://jmn.pl/en/kurier-i-iwona/")
3487 (synopsis "Sans-serif typeface for TeX")
3488 (description "Iwona is a two-element sans-serif typeface. It was created
3489as an alternative version of the Kurier typeface, which was designed in 1975
3490for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
3491supervision of Roman Tomaszewski. Kurier was designed for linotype
3492typesetting of newspapers and similar periodicals. The Iwona fonts are an
3493alternative version of the Kurier fonts. The difference lies in the absence
3494of ink traps which typify the Kurier font.")
3495 (license license:gfl1.0)))
3496
acc620d6
RW
3497(define-public texlive-latex-titlesec
3498 (package
3499 (name "texlive-latex-titlesec")
3500 (version (number->string %texlive-revision))
3501 (source (origin
3502 (method svn-fetch)
3503 (uri (svn-reference
3504 (url (string-append "svn://www.tug.org/texlive/tags/"
3505 %texlive-tag "/Master/texmf-dist/"
3506 "/tex/latex/titlesec"))
3507 (revision %texlive-revision)))
3508 (sha256
3509 (base32
3510 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
3511 (build-system trivial-build-system)
3512 (arguments
3513 `(#:modules ((guix build utils))
3514 #:builder
3515 (begin
3516 (use-modules (guix build utils))
3517 (let ((target (string-append (assoc-ref %outputs "out")
3518 "/share/texmf-dist/tex/latex/titlesec")))
3519 (mkdir-p target)
3520 (copy-recursively (assoc-ref %build-inputs "source") target)
3521 #t))))
b8d8806b 3522 (home-page "https://www.ctan.org/pkg/titlesec")
acc620d6
RW
3523 (synopsis "Select alternative section titles")
3524 (description
3525 "This package provides an interface to sectioning commands for selection
3526from various title styles, e.g. for marginal titles and to change the font of
3527all headings with a single command, also providing simple one-step page
3528styles. It also includes a package to change the page styles when there are
3529floats in a page. You may assign headers/footers to individual floats, too.")
3530 (license license:lppl)))
3531
274e3d4f
RW
3532(define-public texlive-latex-type1cm
3533 (package
3534 (name "texlive-latex-type1cm")
3535 (version (number->string %texlive-revision))
3536 (source (origin
3537 (method svn-fetch)
3538 (uri (texlive-ref "latex" "type1cm"))
3539 (file-name (string-append name "-" version "-checkout"))
3540 (sha256
3541 (base32
3542 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
3543 (build-system texlive-build-system)
3544 (arguments '(#:tex-directory "latex/type1cm"))
b8d8806b 3545 (home-page "https://www.ctan.org/pkg/type1cm")
274e3d4f
RW
3546 (synopsis "Arbitrary size font selection in LaTeX")
3547 (description
3548 "LaTeX, by default, restricts the sizes at which you can use its default
3549computer modern fonts, to a fixed set of discrete sizes (effectively, a set
3550specified by Knuth). The @code{type1cm} package removes this restriction;
3551this is particularly useful when using scalable versions of the CM
3552fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
3553PCTeX, etc.). In fact, since modern distributions will automatically generate
3554any bitmap font you might need, @code{type1cm} has wider application than just
3555those using scaleable versions of the fonts. Note that the LaTeX distribution
3556now contains a package @code{fix-cm},f which performs the task of
3557@code{type1cm}, as well as doing the same job for T1- and TS1-encoded
3558@code{ec} fonts.")
3559 (license license:lppl)))
3560
406af0d6
RW
3561(define-public texlive-latex-lh
3562 (package
3563 (name "texlive-latex-lh")
3564 (version (number->string %texlive-revision))
3565 (source (origin
3566 (method svn-fetch)
3567 (uri (texlive-ref "latex" "lh"))
3568 (sha256
3569 (base32
3570 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
3571 (build-system texlive-build-system)
3572 (arguments '(#:tex-directory "latex/lh"))
b8d8806b 3573 (home-page "https://www.ctan.org/pkg/lh")
406af0d6
RW
3574 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
3575 (description
3576 "The LH fonts address the problem of the wide variety of alphabets that
3577are written with Cyrillic-style characters. The fonts are the original basis
3578of the set of T2* and X2 encodings that are now used when LaTeX users need to
3579write in Cyrillic languages. Macro support in standard LaTeX encodings is
3580offered through the latex-cyrillic and t2 bundles, and the package itself
3581offers support for other (more traditional) encodings. The fonts, in the
3582standard T2* and X2 encodings are available in Adobe Type 1 format, in the
3583CM-Super family of fonts. The package also offers its own LaTeX support for
3584OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
3585 (license license:lppl)))
3586
44436def
RW
3587(define-public texlive-metapost
3588 (package
3589 (name "texlive-metapost")
3590 (version (number->string %texlive-revision))
3591 (source (origin
3592 (method svn-fetch)
3593 (uri (svn-reference
3594 (url (string-append "svn://www.tug.org/texlive/tags/"
3595 %texlive-tag "/Master/texmf-dist/"
3596 "/metapost"))
3597 (revision %texlive-revision)))
3598 (sha256
3599 (base32
3600 "03nvjddffiz796wll6axzmgfvynyciy2mqamv20qx252w71vwkwd"))))
3601 (build-system trivial-build-system)
3602 (arguments
3603 `(#:modules ((guix build utils))
3604 #:builder
3605 (begin
3606 (use-modules (guix build utils))
3607 (let ((target (string-append (assoc-ref %outputs "out")
3608 "/share/texmf-dist/metapost")))
3609 (mkdir-p target)
3610 (copy-recursively (assoc-ref %build-inputs "source") target)
3611 #t))))
b8d8806b 3612 (home-page "https://www.ctan.org/pkg/metapost")
44436def
RW
3613 (synopsis "Create scalable illustrations")
3614 (description
3615 "MetaPost uses a language based on that of Metafont to produce precise
3616technical illustrations. Its output is scalable PostScript or SVG, rather
3617than the bitmaps Metafont creates.")
3618 (license license:lppl)))
3619
9ff7161a
LC
3620(define-public texlive-latex-acmart
3621 (package
3622 (name "texlive-latex-acmart")
3623 (version "1.45")
3624 (source (origin
3625 (method svn-fetch)
3626 (uri (texlive-ref "latex" "acmart"))
3627 (sha256
3628 (base32
3629 "10zs8ga88ksypv1v4p6mynmfa7749q2hgxlr4shnwfjd9wrb421q"))
3630 (file-name (string-append name "-" version "-checkout"))))
3631 (build-system texlive-build-system)
3632 (arguments '(#:tex-directory "latex/acmart"))
b8d8806b 3633 (home-page "https://www.ctan.org/pkg/acmart")
9ff7161a
LC
3634 (synopsis "Class for typesetting publications of ACM")
3635 (description
3636 "This package provides a class for typesetting publications of the
3637Association for Computing Machinery (ACM).")
3638 (license license:lppl1.3+)))
3639
3966ebbb
RW
3640(define-public texlive-latex-varwidth
3641 (package
3642 (name "texlive-latex-varwidth")
3643 (version (number->string %texlive-revision))
3644 (source (origin
3645 (method svn-fetch)
3646 (uri (svn-reference
3647 (url (string-append "svn://www.tug.org/texlive/tags/"
3648 %texlive-tag "/Master/texmf-dist/"
3649 "/tex/latex/varwidth"))
3650 (revision %texlive-revision)))
3651 (file-name (string-append name "-" version "-checkout"))
3652 (sha256
3653 (base32
3654 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
3655 (build-system trivial-build-system)
3656 (arguments
3657 `(#:modules ((guix build utils))
3658 #:builder
3659 (begin
3660 (use-modules (guix build utils))
3661 (let ((target (string-append (assoc-ref %outputs "out")
3662 "/share/texmf-dist/tex/latex/varwidth")))
3663 (mkdir-p target)
3664 (copy-recursively (assoc-ref %build-inputs "source") target)
3665 #t))))
b8d8806b 3666 (home-page "https://www.ctan.org/pkg/varwidth")
3966ebbb
RW
3667 (synopsis "Variable-width minipage")
3668 (description
3669 "The @code{varwidth} environment is superficially similar to
3670@code{minipage}, but the specified width is just a maximum value — the box may
3671get a narrower “natural” width.")
3672 (license license:lppl)))
3673
cd2c77f4
RW
3674(define-public texlive-latex-wasysym
3675 (package
3676 (name "texlive-latex-wasysym")
3677 (version (number->string %texlive-revision))
3678 (source (origin
3679 (method svn-fetch)
3680 (uri (texlive-ref "latex" "wasysym"))
3681 (sha256
3682 (base32
3683 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
3684 (build-system texlive-build-system)
3685 (arguments '(#:tex-directory "latex/wasysym"))
b8d8806b 3686 (home-page "https://www.ctan.org/pkg/wasysym")
cd2c77f4
RW
3687 (synopsis "LaTeX support file to use the WASY2 fonts")
3688 (description
3689 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
3690like male and female symbols and astronomical symbols, as well as the complete
3691lasy font set and other odds and ends. The wasysym package implements an easy
3692to use interface for these symbols.")
3693 (license license:lppl)))
3694
63ed869b
RW
3695(define-public texlive-latex-wrapfig
3696 (package
3697 (name "texlive-latex-wrapfig")
3698 (version (number->string %texlive-revision))
3699 (source (origin
3700 (method svn-fetch)
3701 (uri (svn-reference
3702 (url (string-append "svn://www.tug.org/texlive/tags/"
3703 %texlive-tag "/Master/texmf-dist/"
3704 "/tex/latex/wrapfig"))
3705 (revision %texlive-revision)))
3706 (file-name (string-append name "-" version "-checkout"))
3707 (sha256
3708 (base32
3709 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
3710 (build-system trivial-build-system)
3711 (arguments
3712 `(#:modules ((guix build utils))
3713 #:builder
3714 (begin
3715 (use-modules (guix build utils))
3716 (let ((target (string-append (assoc-ref %outputs "out")
3717 "/share/texmf-dist/tex/latex/wrapfig")))
3718 (mkdir-p target)
3719 (copy-recursively (assoc-ref %build-inputs "source") target)
3720 #t))))
b8d8806b 3721 (home-page "https://www.ctan.org/pkg/wrapfig")
63ed869b
RW
3722 (synopsis "Produces figures which text can flow around")
3723 (description
3724 "This package allows figures or tables to have text wrapped around them.
3725It does not work in combination with list environments, but can be used in a
3726@code{parbox} or @code{minipage}, and in two-column format.")
3727 (license license:lppl)))
3728
c178ffca
RW
3729(define-public texlive-latex-ucs
3730 (package
3731 (name "texlive-latex-ucs")
3732 (version (number->string %texlive-revision))
3733 (source (origin
3734 (method svn-fetch)
3735 (uri (svn-reference
3736 (url (string-append "svn://www.tug.org/texlive/tags/"
3737 %texlive-tag "/Master/texmf-dist/"
3738 "/tex/latex/ucs"))
3739 (revision %texlive-revision)))
3740 (file-name (string-append name "-" version "-checkout"))
3741 (sha256
3742 (base32
3743 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
3744 (build-system trivial-build-system)
3745 (arguments
3746 `(#:modules ((guix build utils))
3747 #:builder
3748 (begin
3749 (use-modules (guix build utils))
3750 (let ((target (string-append (assoc-ref %outputs "out")
3751 "/share/texmf-dist/tex/latex/ucs")))
3752 (mkdir-p target)
3753 (copy-recursively (assoc-ref %build-inputs "source") target)
3754 #t))))
b8d8806b 3755 (home-page "https://www.ctan.org/pkg/ucs")
c178ffca
RW
3756 (synopsis "Extended UTF-8 input encoding support for LaTeX")
3757 (description
3758 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
3759together with a large number of support files. The @code{utf8x.def}
3760definition file for use with @code{inputenc} covers a wider range of Unicode
3761characters than does @code{utf8.def} in the LaTeX distribution. The package
3762provides facilities for efficient use of its large sets of Unicode characters.
3763Glyph production may be controlled by various options, which permits use of
3764non-ASCII characters when coding mathematical formulae. Note that the bundle
3765previously had an alias “unicode”; that alias has now been withdrawn, and no
3766package of that name now exists.")
3767 (license license:lppl1.3+)))
3768
86af0f2a
RW
3769(define-public texlive-latex-preview
3770 (package
3771 (name "texlive-latex-preview")
3772 (version (number->string %texlive-revision))
3773 (source (origin
3774 (method svn-fetch)
3775 (uri (texlive-ref "latex" "preview"))
3776 (file-name (string-append name "-" version "-checkout"))
3777 (sha256
3778 (base32
3779 "0j6fff6q0ca96nwfdgay2jm55792z4q9aa0rczmiw2qccyg5n2dv"))))
3780 (build-system texlive-build-system)
3781 (arguments
3782 '(#:tex-directory "latex/preview"
3783 #:phases
3784 (modify-phases %standard-phases
3785 (add-after 'unpack 'remove-generated-file
3786 (lambda _
3787 (delete-file "preview.drv")
3788 #t)))))
b8d8806b 3789 (home-page "https://www.ctan.org/pkg/preview")
86af0f2a
RW
3790 (synopsis "Extract bits of a LaTeX source for output")
3791 (description
3792 "The main purpose of the preview package is the extraction of selected
3793elements from a LaTeX source, like formulas or graphics, into separate
3794pages of a DVI file. A flexible and convenient interface allows it to
3795specify what commands and constructs should be extracted. This works
3796with DVI files postprocessed by either Dvips and Ghostscript or
3797dvipng, but it also works when you are using PDFTeX for generating PDF
3798files.")
3799 (license license:gpl3+)))
3800
87b4360e
RW
3801(define-public texlive-latex-acronym
3802 (package
3803 (name "texlive-latex-acronym")
3804 (version (number->string %texlive-revision))
3805 (source (origin
3806 (method svn-fetch)
3807 (uri (texlive-ref "latex" "acronym"))
3808 (file-name (string-append name "-" version "-checkout"))
3809 (sha256
3810 (base32
3811 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
3812 (build-system texlive-build-system)
3813 (arguments '(#:tex-directory "latex/acronym"))
b8d8806b 3814 (home-page "https://www.ctan.org/pkg/acronym")
87b4360e
RW
3815 (synopsis "Expand acronyms at least once")
3816 (description
3817 "This package ensures that all acronyms used in the text are spelled out
3818in full at least once. It also provides an environment to build a list of
3819acronyms used. The package is compatible with PDF bookmarks. The package
3820requires the suffix package, which in turn requires that it runs under
3821e-TeX.")
3822 (license license:lppl1.3+)))
3823
fedb80ee
RW
3824(define-public texlive-generic-pdftex
3825 (package
3826 (name "texlive-generic-pdftex")
3827 (version (number->string %texlive-revision))
3828 (source (origin
3829 (method svn-fetch)
3830 (uri (svn-reference
3831 (url (string-append "svn://www.tug.org/texlive/tags/"
3832 %texlive-tag "/Master/texmf-dist/"
3833 "/tex/generic/pdftex"))
3834 (revision %texlive-revision)))
3835 (sha256
3836 (base32
3837 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
3838 (build-system trivial-build-system)
3839 (arguments
3840 `(#:modules ((guix build utils))
3841 #:builder
3842 (begin
3843 (use-modules (guix build utils))
3844 (let ((target (string-append (assoc-ref %outputs "out")
3845 "/share/texmf-dist/tex/generic/pdftex")))
3846 (mkdir-p target)
3847 (copy-recursively (assoc-ref %build-inputs "source") target)
3848 #t))))
b8d8806b 3849 (home-page "https://www.ctan.org/pkg/pdftex")
fedb80ee
RW
3850 (synopsis "TeX extension for direct creation of PDF")
3851 (description
3852 "This package provides an extension of TeX which can be configured to
3853directly generate PDF documents instead of DVI.")
3854 (license license:gpl2+)))
3855
8bcdc23f 3856(define texlive-texmf
0aa34e82
AE
3857 (package
3858 (name "texlive-texmf")
149f6688 3859 (version "2017")
0aa34e82
AE
3860 (source texlive-texmf-src)
3861 (build-system gnu-build-system)
3862 (inputs
3863 `(("texlive-bin" ,texlive-bin)
3864 ("lua" ,lua)
3865 ("perl" ,perl)
3866 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
3867 ("ruby" ,ruby)
3868 ("tcsh" ,tcsh)))
3869 (arguments
3870 `(#:modules ((guix build gnu-build-system)
3871 (guix build utils)
3872 (srfi srfi-26))
a348af40
LC
3873
3874 ;; This package takes 4 GiB, which we can't afford to distribute from
3875 ;; our servers.
3876 #:substitutable? #f
3877
0aa34e82 3878 #:phases
4a6635f3
AE
3879 (modify-phases (map (cut assq <> %standard-phases)
3880 '(set-paths unpack patch-source-shebangs))
3881 (add-after 'patch-source-shebangs 'install
3882 (lambda* (#:key outputs #:allow-other-keys)
3883 (let ((share (string-append (assoc-ref outputs "out") "/share")))
3884 (mkdir-p share)
3885 (system* "mv" "texmf-dist" share))))
3886 (add-after 'install 'texmf-config
3887 (lambda* (#:key inputs outputs #:allow-other-keys)
3888 (let* ((out (assoc-ref outputs "out"))
3889 (share (string-append out "/share"))
3890 (texmfroot (string-append share "/texmf-dist/web2c"))
3891 (texmfcnf (string-append texmfroot "/texmf.cnf"))
3892 (texlive-bin (assoc-ref inputs "texlive-bin"))
3893 (texbin (string-append texlive-bin "/bin"))
3894 (tlpkg (string-append texlive-bin "/share/tlpkg")))
3895 ;; Register SHARE as TEXMFROOT in texmf.cnf.
3896 (substitute* texmfcnf
3897 (("TEXMFROOT = \\$SELFAUTOPARENT")
2d634d9b
FB
3898 (string-append "TEXMFROOT = " share))
3899 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
3900 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
3901 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
4a6635f3
AE
3902 ;; Register paths in texmfcnf.lua, needed for context.
3903 (substitute* (string-append texmfroot "/texmfcnf.lua")
3904 (("selfautodir:") out)
3905 (("selfautoparent:") (string-append share "/")))
3906 ;; Set path to TeXLive Perl modules
3907 (setenv "PERL5LIB"
3908 (string-append (getenv "PERL5LIB") ":" tlpkg))
3909 ;; Configure the texmf-dist tree; inspired from
3910 ;; http://slackbuilds.org/repository/13.37/office/texlive/
3911 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
3912 (setenv "TEXMFCNF" texmfroot)
3913 (system* "updmap-sys" "--nohash" "--syncwithtrees")
3914 (system* "mktexlsr")
3915 (system* "fmtutil-sys" "--all")))))))
7a15a68f 3916 (properties `((max-silent-time . 9600))) ; don't time out while grafting
0aa34e82 3917 (synopsis "TeX Live, a package of the TeX typesetting system")
eb0119ef
AE
3918 (description
3919 "TeX Live provides a comprehensive TeX document production system.
3920It includes all the major TeX-related programs, macro packages, and fonts
3921that are free software, including support for many languages around the
0aa34e82
AE
3922world.
3923
3924This package contains the complete tree of texmf-dist data.")
132e14b4
EF
3925 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
3926 (home-page "https://www.tug.org/texlive/")))
0aa34e82
AE
3927
3928(define-public texlive
3929 (package
3930 (name "texlive")
149f6688 3931 (version "2017")
0aa34e82
AE
3932 (source #f)
3933 (build-system trivial-build-system)
3934 (inputs `(("bash" ,bash) ; for wrap-program
3935 ("texlive-bin" ,texlive-bin)
3936 ("texlive-texmf" ,texlive-texmf)))
2d634d9b
FB
3937 (native-search-paths
3938 (list (search-path-specification
3939 (variable "TEXMFLOCAL")
3940 (files '("share/texmf-local")))))
0aa34e82
AE
3941 (arguments
3942 `(#:modules ((guix build utils))
3943 #:builder
3944 ;; Build the union of texlive-bin and texlive-texmf, but take the
3945 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
3946 (begin
3947 (use-modules (guix build utils))
3948 (let ((out (assoc-ref %outputs "out"))
3949 (bin (assoc-ref %build-inputs "texlive-bin"))
3950 (texmf (assoc-ref %build-inputs "texlive-texmf"))
3951 (bash (assoc-ref %build-inputs "bash")))
3952 (mkdir out)
3953 (with-directory-excursion out
3954 (for-each
3955 (lambda (name)
3956 (symlink (string-append bin "/" name) name))
3957 '("include" "lib"))
3958 (mkdir "bin")
3959 (with-directory-excursion "bin"
3960 (setenv "PATH" (string-append bash "/bin"))
3961 (for-each
3962 (lambda (name)
3963 (symlink name (basename name))
3964 (wrap-program
3965 (basename name)
3966 `("TEXMFCNF" =
3967 (,(string-append texmf "/share/texmf-dist/web2c")))))
3968 (find-files (string-append bin "/bin/") "")))
3969 (mkdir "share")
3970 (with-directory-excursion "share"
3971 (for-each
3972 (lambda (name)
3973 (symlink (string-append bin "/share/" name) name))
3974 '("info" "man" "tlpkg"))
3975 (for-each
3976 (lambda (name)
3977 (symlink (string-append texmf "/share/" name) name))
3978 '("texmf-dist" "texmf-var"))))))))
3979 (synopsis "TeX Live, a package of the TeX typesetting system")
3980 (description
3981 "TeX Live provides a comprehensive TeX document production system.
3982It includes all the major TeX-related programs, macro packages, and fonts
3983that are free software, including support for many languages around the
3984world.
3985
3986This package contains the complete TeX Live distribution.")
132e14b4
EF
3987 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
3988 (home-page "https://www.tug.org/texlive/")))
231eae53 3989
ebcf74da
RW
3990(define-public perl-text-bibtex
3991 (package
3992 (name "perl-text-bibtex")
a2460e0f 3993 (version "0.85")
ebcf74da
RW
3994 (source
3995 (origin
3996 (method url-fetch)
3997 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
3998 version ".tar.gz"))
3999 (sha256
4000 (base32
a2460e0f 4001 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
ebcf74da
RW
4002 (build-system perl-build-system)
4003 (arguments
4004 `(#:phases
4005 (modify-phases %standard-phases
4006 (add-after 'unpack 'add-output-directory-to-rpath
4007 (lambda* (#:key outputs #:allow-other-keys)
4008 (substitute* "inc/MyBuilder.pm"
4009 (("-Lbtparse" line)
4010 (string-append "-Wl,-rpath="
4011 (assoc-ref outputs "out") "/lib " line)))
4012 #t))
4013 (add-after 'unpack 'install-libraries-to-/lib
4014 (lambda* (#:key outputs #:allow-other-keys)
4015 (substitute* "Build.PL"
4016 (("lib64") "lib"))
4017 #t)))))
4018 (native-inputs
4019 `(("perl-capture-tiny" ,perl-capture-tiny)
4020 ("perl-config-autoconf" ,perl-config-autoconf)
4021 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4022 ("perl-module-build" ,perl-module-build)))
4023 (home-page "http://search.cpan.org/dist/Text-BibTeX")
4024 (synopsis "Interface to read and parse BibTeX files")
4025 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
4026and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
4027at many different levels: you may work with BibTeX entries as simple field to
4028string mappings, or get at the original form of the data as a list of simple
4029values (strings, macros, or numbers) pasted together.")
2f3108ad 4030 (license license:perl-license)))
ebcf74da 4031
d4000680
RW
4032(define-public biber
4033 (package
1335167a 4034 (name "biber")
6484e82d 4035 (version "2.7")
d4000680
RW
4036 (source (origin
4037 (method url-fetch)
4038 (uri (string-append "https://github.com/plk/biber/archive/v"
4039 version ".tar.gz"))
4040 (file-name (string-append name "-" version ".tar.gz"))
4041 (sha256
4042 (base32
6484e82d 4043 "17wd80jg98qyddhvz4cin8779ycvppaf2va77r1lyvymjz6w9bx0"))))
d4000680
RW
4044 (build-system perl-build-system)
4045 (arguments
4046 `(#:phases
4047 (modify-phases %standard-phases
4048 (add-after 'install 'wrap-programs
4049 (lambda* (#:key outputs #:allow-other-keys)
4050 (let* ((out (assoc-ref outputs "out"))
4051 (perl5lib (getenv "PERL5LIB")))
4052 (wrap-program (string-append out "/bin/biber")
4053 `("PERL5LIB" ":" prefix
4054 (,(string-append perl5lib ":" out
4055 "/lib/perl5/site_perl")))))
4056 #t)))))
4057 (inputs
4058 `(("perl-autovivification" ,perl-autovivification)
4059 ("perl-class-accessor" ,perl-class-accessor)
4060 ("perl-data-dump" ,perl-data-dump)
4061 ("perl-data-compare" ,perl-data-compare)
4062 ("perl-data-uniqid" ,perl-data-uniqid)
4063 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
4064 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
4065 ("perl-file-slurp" ,perl-file-slurp)
4066 ("perl-ipc-cmd" ,perl-ipc-cmd)
4067 ("perl-ipc-run3" ,perl-ipc-run3)
4068 ("perl-list-allutils" ,perl-list-allutils)
4069 ("perl-list-moreutils" ,perl-list-moreutils)
4070 ("perl-mozilla-ca" ,perl-mozilla-ca)
4071 ("perl-regexp-common" ,perl-regexp-common)
4072 ("perl-log-log4perl" ,perl-log-log4perl)
4073 ;; We cannot use perl-unicode-collate here, because otherwise the
4074 ;; hardcoded hashes in the tests would differ. See
4075 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
4076 ;;("perl-unicode-collate" ,perl-unicode-collate)
4077 ("perl-unicode-normalize" ,perl-unicode-normalize)
4078 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
4079 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
4080 ("perl-encode-jis2k" ,perl-encode-jis2k)
4081 ("perl-encode-hanextra" ,perl-encode-hanextra)
4082 ("perl-xml-libxml" ,perl-xml-libxml)
4083 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
4084 ("perl-xml-libxslt" ,perl-xml-libxslt)
4085 ("perl-xml-writer" ,perl-xml-writer)
4086 ("perl-sort-key" ,perl-sort-key)
4087 ("perl-text-csv" ,perl-text-csv)
4088 ("perl-text-csv-xs" ,perl-text-csv-xs)
4089 ("perl-text-roman" ,perl-text-roman)
4090 ("perl-uri" ,perl-uri)
4091 ("perl-text-bibtex" ,perl-text-bibtex)
4092 ("perl-libwww" ,perl-libwww)
4093 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4094 ("perl-business-isbn" ,perl-business-isbn)
4095 ("perl-business-issn" ,perl-business-issn)
4096 ("perl-business-ismn" ,perl-business-ismn)
4097 ("perl-lingua-translit" ,perl-lingua-translit)))
4098 (native-inputs
4099 `(("perl-config-autoconf" ,perl-config-autoconf)
4100 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
4101 ("perl-module-build" ,perl-module-build)
4102 ;; for tests
4103 ("perl-file-which" ,perl-file-which)
4104 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
4105 ("perl-test-differences" ,perl-test-differences)))
4106 (home-page "http://biblatex-biber.sourceforge.net/")
4107 (synopsis "Backend for the BibLaTeX citation management tool")
4108 (description "Biber is a BibTeX replacement for users of biblatex. Among
4109other things it comes with full Unicode support.")
4110 (license license:artistic2.0)))
4111
231eae53
LC
4112(define-public rubber
4113 (package
4114 (name "rubber")
4115 (version "1.1")
4116 (source (origin
4117 (method url-fetch)
4118 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
4119 version "/+download/rubber-"
4120 version ".tar.gz")
4121 (string-append "http://ebeffara.free.fr/pub/rubber-"
4122 version ".tar.gz")))
4123 (sha256
4124 (base32
4125 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
4126 (build-system gnu-build-system)
4127 (arguments '(#:tests? #f)) ; no `check' target
4128 (inputs `(("texinfo" ,texinfo)
9bee5d6c 4129 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
231eae53
LC
4130 ("which" ,which)))
4131 (home-page "https://launchpad.net/rubber")
35b9e423 4132 (synopsis "Wrapper for LaTeX and friends")
231eae53
LC
4133 (description
4134 "Rubber is a program whose purpose is to handle all tasks related to the
4135compilation of LaTeX documents. This includes compiling the document itself,
4136of course, enough times so that all references are defined, and running BibTeX
4137to manage bibliographic references. Automatic execution of dvips to produce
4138PostScript documents is also included, as well as usage of pdfLaTeX to produce
4139PDF documents.")
4140 (license license:gpl2+)))
4791876c
RJ
4141
4142(define-public texmaker
4143 (package
4144 (name "texmaker")
4145 (version "4.5")
4146 (source (origin
4147 (method url-fetch)
4148 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
4149 version ".tar.bz2"))
4150 (sha256
4151 (base32
4152 "056njk6j8wma23mlp7xa3rgfaxx0q8ynwx8wkmj7iy0b85p9ds9c"))))
4153 (build-system gnu-build-system)
4154 (arguments
4155 `(#:phases
4156 (modify-phases %standard-phases
4157 ;; Qt has its own configuration utility.
4158 (replace 'configure
4159 (lambda* (#:key outputs #:allow-other-keys)
4160 (let ((out (assoc-ref outputs "out")))
4161 (zero? (system* "qmake"
4162 (string-append "PREFIX=" out)
4163 (string-append "DESKTOPDIR=" out
4164 "/share/applications")
4165 (string-append "ICONDIR=" out "/share/pixmaps")
4166 "texmaker.pro"))))))))
4167 (inputs
4168 `(("poppler-qt5" ,poppler-qt5)
bd917486
TD
4169 ("qtbase" ,qtbase)
4170 ("qtscript" ,qtscript)
4171 ("qtwebkit" ,qtwebkit)
4791876c
RJ
4172 ("zlib" ,zlib)))
4173 (native-inputs
4174 `(("pkg-config" ,pkg-config)))
4175 (home-page "http://www.xm1math.net/texmaker/")
4176 (synopsis "LaTeX editor")
4177 (description "Texmaker is a program that integrates many tools needed to
4178develop documents with LaTeX, in a single application.")
4179 (license license:gpl2+)))
83457fe0
JD
4180
4181
4182(define-public teximpatient
4183 (package
4184 (name "teximpatient")
4185 (version "2.4")
4186 (source (origin
4187 (method url-fetch)
4188 (uri (string-append "mirror://gnu/" name "/" name "-"
4189 version ".tar.gz"))
4190 (sha256
4191 (base32
4192 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
4193 (build-system gnu-build-system)
4194 (arguments
4195 `(#:phases
4196 (modify-phases %standard-phases
4197 (delete 'check)
4198 ;; Unfortunately some mistakes have been made in packaging.
4199 ;; Work around them here ...
4200 (replace 'unpack
4201 (lambda* (#:key inputs outputs #:allow-other-keys)
4202 (let ((srcdir "teximpatient-2.4"))
4203 (system* "tar" "-xzf" (assoc-ref inputs "source")
4204 (string-append "--one-top-level=" srcdir))
4205 (delete-file (string-append srcdir "/book.pdf"))
4206 (install-file (car
4207 (find-files
4208 (assoc-ref inputs "automake")
4209 "^install-sh$"))
4210 srcdir)
4211 (chdir srcdir)))))))
4212 (native-inputs
4213 `(("texlive" ,texlive)
4214 ("automake" ,automake)))
6fd52309 4215 (home-page "https://www.gnu.org/software/teximpatient/")
83457fe0
JD
4216 (synopsis "Book on TeX, plain TeX and Eplain")
4217 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
4218plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
4219and Karl Berry.")
4220 (license license:fdl1.3+)))