gnu: Add texlive-latex-expdlist.
[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>
7a15a68f 6;;; Copyright © 2016 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>
eb0119ef
AE
10;;;
11;;; This file is part of GNU Guix.
12;;;
13;;; GNU Guix is free software; you can redistribute it and/or modify it
14;;; under the terms of the GNU General Public License as published by
15;;; the Free Software Foundation; either version 3 of the License, or (at
16;;; your option) any later version.
17;;;
18;;; GNU Guix is distributed in the hope that it will be useful, but
19;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21;;; GNU General Public License for more details.
22;;;
23;;; You should have received a copy of the GNU General Public License
24;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25
8f9ac901 26(define-module (gnu packages tex)
b5b73a82 27 #:use-module ((guix licenses) #:prefix license:)
eb0119ef
AE
28 #:use-module (guix packages)
29 #:use-module (guix download)
30 #:use-module (guix build-system gnu)
ebcf74da 31 #:use-module (guix build-system perl)
0aa34e82 32 #:use-module (guix build-system trivial)
205794c8 33 #:use-module (guix build-system texlive)
6b5eb840 34 #:use-module (guix utils)
83457fe0 35 #:use-module (guix git-download)
9d913b25 36 #:use-module (guix svn-download)
eb0119ef 37 #:use-module (gnu packages)
83457fe0 38 #:use-module (gnu packages autotools)
0aa34e82 39 #:use-module (gnu packages bash)
eb0119ef 40 #:use-module (gnu packages compression)
a86177d6 41 #:use-module (gnu packages fontutils)
fd89b36b 42 #:use-module (gnu packages gd)
eb0119ef 43 #:use-module (gnu packages ghostscript)
fd89b36b 44 #:use-module (gnu packages gtk)
eb0119ef 45 #:use-module (gnu packages icu4c)
e55354b8 46 #:use-module (gnu packages image)
0aa34e82 47 #:use-module (gnu packages lua)
0256c746 48 #:use-module (gnu packages multiprecision)
eb0119ef
AE
49 #:use-module (gnu packages pdf)
50 #:use-module (gnu packages perl)
51 #:use-module (gnu packages pkg-config)
52 #:use-module (gnu packages python)
4791876c 53 #:use-module (gnu packages qt)
b32c8549 54 #:use-module (gnu packages ruby)
b7194849 55 #:use-module (gnu packages shells)
ce0614dd 56 #:use-module (gnu packages base)
d4000680
RW
57 #:use-module (gnu packages web)
58 #:use-module (gnu packages xml)
c0589f75 59 #:use-module (gnu packages xorg)
ece9b417 60 #:use-module (gnu packages xdisorg)
6b5eb840
AE
61 #:autoload (gnu packages texinfo) (texinfo)
62 #:use-module (ice-9 ftw)
cb7bc20a 63 #:use-module (ice-9 match)
e93f472d 64 #:use-module ((srfi srfi-1) #:hide (zip)))
eb0119ef
AE
65
66(define texlive-extra-src
67 (origin
68 (method url-fetch)
7a15a68f 69 (uri "ftp://tug.org/historic/systems/texlive/2016/texlive-20160523-extra.tar.xz")
eb0119ef 70 (sha256 (base32
7a15a68f 71 "0q4a92zmwhn4ry6xgrp4k8wq11ax2sg9rg9yrsrdkr719y0x887a"))))
eb0119ef
AE
72
73(define texlive-texmf-src
74 (origin
75 (method url-fetch)
29a56d8e 76 (uri "ftp://tug.org/historic/systems/texlive/2016/texlive-20160523b-texmf.tar.xz")
e20784e6
LF
77 (patches (search-patches "texlive-texmf-CVE-2016-10243.patch"))
78 (patch-flags '("-p2"))
eb0119ef 79 (sha256 (base32
29a56d8e 80 "1dv8vgfzpczqw82hv9g7a8djhhyzywljmrarlcyy6g2qi5q51glr"))))
eb0119ef 81
3abe72bd 82(define-public texlive-bin
eb0119ef 83 (package
0aa34e82 84 (name "texlive-bin")
7a15a68f 85 (version "2016")
0aa34e82
AE
86 (source
87 (origin
88 (method url-fetch)
29a56d8e 89 (uri "ftp://tug.org/historic/systems/texlive/2016/texlive-20160523b-source.tar.xz")
0aa34e82 90 (sha256 (base32
29a56d8e 91 "1v91vahxlxkdra0qz3f132vvx5d9cx2jy84yl1hkch0agyj2rcx8"))))
eb0119ef 92 (build-system gnu-build-system)
0aa34e82
AE
93 (inputs
94 `(("texlive-extra-src" ,texlive-extra-src)
95 ("cairo" ,cairo)
96 ("fontconfig" ,fontconfig)
97 ("fontforge" ,fontforge)
98 ("freetype" ,freetype)
99 ("gd" ,gd)
0256c746 100 ("gmp" ,gmp)
0aa34e82
AE
101 ("ghostscript" ,ghostscript)
102 ("graphite2" ,graphite2)
103 ("harfbuzz" ,harfbuzz)
104 ("icu4c" ,icu4c)
105 ("libpaper" ,libpaper)
106 ("libpng" ,libpng)
107 ("libxaw" ,libxaw)
108 ("libxt" ,libxt)
0256c746 109 ("mpfr" ,mpfr)
0aa34e82
AE
110 ("perl" ,perl)
111 ("pixman" ,pixman)
112 ("poppler" ,poppler)
113 ("potrace" ,potrace)
114 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
115 ("ruby" ,ruby)
116 ("tcsh" ,tcsh)
117 ("teckit" ,teckit)
118 ("zlib" ,zlib)
119 ("zziplib" ,zziplib)))
c4c4cc05 120 (native-inputs
e9a6d225 121 `(("pkg-config" ,pkg-config)))
eb0119ef
AE
122 (arguments
123 `(#:out-of-source? #t
124 #:configure-flags
125 `("--disable-native-texlive-build"
fd89b36b 126 "--with-system-cairo"
eb0119ef 127 "--with-system-freetype2"
fd89b36b 128 "--with-system-gd"
0256c746 129 "--with-system-gmp"
be2c88ca 130 "--with-system-graphite2"
c70cf7eb 131 "--with-system-harfbuzz"
eb0119ef
AE
132 "--with-system-icu"
133 "--with-system-libgs"
609578a7 134 "--with-system-libpaper"
eb0119ef 135 "--with-system-libpng"
0256c746 136 "--with-system-mpfr"
fd89b36b 137 "--with-system-pixman"
eb0119ef 138 "--with-system-poppler"
75916982 139 "--with-system-potrace"
eb0119ef
AE
140 "--with-system-teckit"
141 "--with-system-xpdf"
142 "--with-system-zlib"
143 "--with-system-zziplib")
2f4640e3
MW
144
145 ;; Disable tests on mips64 to cope with a failure of luajiterr.test.
146 ;; XXX FIXME fix luajit properly on mips64.
d2e84281 147 #:tests? ,(not (string-prefix? "mips64" (or (%current-target-system)
2f4640e3 148 (%current-system))))
eb0119ef 149 #:phases
4a6635f3
AE
150 (modify-phases %standard-phases
151 (add-after 'install 'postint
152 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
153 (let* ((out (assoc-ref outputs "out"))
154 (share (string-append out "/share"))
155 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
156 (unpack (assoc-ref %standard-phases 'unpack))
157 (patch-source-shebangs
158 (assoc-ref %standard-phases 'patch-source-shebangs)))
159 ;; Create symbolic links for the latex variants and their
160 ;; man pages.
161 (with-directory-excursion (string-append out "/bin/")
162 (for-each symlink
163 '("pdftex" "pdftex" "xetex" "luatex")
164 '("latex" "pdflatex" "xelatex" "lualatex")))
165 (with-directory-excursion (string-append share "/man/man1/")
166 (symlink "luatex.1" "lualatex.1"))
167 ;; Unpack texlive-extra and install tlpkg.
168 (mkdir "texlive-extra")
169 (with-directory-excursion "texlive-extra"
170 (apply unpack (list #:source texlive-extra))
171 (apply patch-source-shebangs (list #:source texlive-extra))
172 (system* "mv" "tlpkg" share))))))))
0aa34e82
AE
173 (synopsis "TeX Live, a package of the TeX typesetting system")
174 (description
175 "TeX Live provides a comprehensive TeX document production system.
176It includes all the major TeX-related programs, macro packages, and fonts
177that are free software, including support for many languages around the
178world.
179
180This package contains the binaries.")
132e14b4
EF
181 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
182 (home-page "https://www.tug.org/texlive/")))
0aa34e82 183
9d913b25
RW
184(define-public texlive-dvips
185 (package
186 (name "texlive-dvips")
187 (version (number->string %texlive-revision))
188 (source (origin
189 (method svn-fetch)
190 (uri (svn-reference
191 (url (string-append "svn://www.tug.org/texlive/tags/"
192 %texlive-tag "/Master/texmf-dist/"
193 "/dvips"))
194 (revision %texlive-revision)))
195 (sha256
196 (base32
15dc52e5 197 "0fcy2hpapbj01ncpjj3v39yhr0jjxb6rm13qaxjjw66s3vydxls1"))))
9d913b25
RW
198 (build-system trivial-build-system)
199 (arguments
200 `(#:modules ((guix build utils))
201 #:builder
202 (begin
203 (use-modules (guix build utils))
204 (let ((target (string-append (assoc-ref %outputs "out")
205 "/share/texmf-dist/dvips")))
206 (mkdir-p target)
207 (copy-recursively (assoc-ref %build-inputs "source") target)
208 #t))))
209 (home-page "http://www.ctan.org/pkg/dvips")
210 (synopsis "DVI to PostScript drivers")
211 (description "This package provides files needed for converting DVI files
212to PostScript.")
213 ;; Various free software licenses apply to individual files.
214 (license (list license:lppl1.3c+
215 license:expat
216 license:lgpl3+))))
217
99952c53
RW
218(define-public texlive-generic-unicode-data
219 (package
220 (name "texlive-generic-unicode-data")
221 (version (number->string %texlive-revision))
222 (source (origin
223 (method svn-fetch)
224 (uri (svn-reference
225 (url (string-append "svn://www.tug.org/texlive/tags/"
226 %texlive-tag "/Master/texmf-dist/"
227 "/tex/generic/unicode-data"))
228 (revision %texlive-revision)))
229 (sha256
230 (base32
231 "0ivrhp6jz31pl4z841g4ws41lmvdiwz4sslmhf02inlib79gz6r2"))))
232 (build-system trivial-build-system)
233 (arguments
234 `(#:modules ((guix build utils))
235 #:builder
236 (begin
237 (use-modules (guix build utils))
238 (let ((target (string-append (assoc-ref %outputs "out")
239 "/share/texmf-dist/tex/generic/unicode-data")))
240 (mkdir-p target)
241 (copy-recursively (assoc-ref %build-inputs "source") target)
242 #t))))
243 (home-page "http://www.ctan.org/pkg/unicode-data")
244 (synopsis "Unicode data and loaders for TeX")
245 (description "This bundle provides generic access to Unicode Consortium
246data for TeX use. It contains a set of text files provided by the Unicode
247Consortium which are currently all from Unicode 8.0.0, with the exception of
248@code{MathClass.txt} which is not currently part of the Unicode Character
249Database. Accompanying these source data are generic TeX loader files
250allowing this data to be used as part of TeX runs, in particular in building
251format files. Currently there are two loader files: one for general character
252set up and one for initializing XeTeX character classes as has been carried
253out to date by @code{unicode-letters.tex}. ")
254 (license license:lppl1.3c+)))
255
9e99b1b4
RW
256(define-public texlive-generic-dehyph-exptl
257 (package
258 (name "texlive-generic-dehyph-exptl")
259 (version (number->string %texlive-revision))
260 (source (origin
261 (method svn-fetch)
262 (uri (svn-reference
263 (url (string-append "svn://www.tug.org/texlive/tags/"
264 %texlive-tag "/Master/texmf-dist/"
265 "/tex/generic/dehyph-exptl"))
266 (revision %texlive-revision)))
267 (sha256
268 (base32
269 "1l9wgv99qq0ysvlxqpj4g8bl0dywbzra4g8m2kmpg2fb0i0hczap"))))
270 (build-system trivial-build-system)
271 (arguments
272 `(#:modules ((guix build utils))
273 #:builder
274 (begin
275 (use-modules (guix build utils))
276 (let ((target (string-append (assoc-ref %outputs "out")
277 "/share/texmf-dist/tex/generic/dehyph-exptl")))
278 (mkdir-p target)
279 (copy-recursively (assoc-ref %build-inputs "source") target)
280 #t))))
281 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
282 (synopsis "Hyphenation patterns for German")
283 (description "The package provides experimental hyphenation patterns for
284the German language, covering both traditional and reformed orthography. The
285patterns can be used with packages Babel and hyphsubst from the Oberdiek
286bundle.")
287 ;; Hyphenation patterns are under the Expat license; documentation is
288 ;; under LPPL.
289 (license (list license:expat license:lppl))))
290
453aae66
RW
291(define-public texlive-generic-tex-ini-files
292 (package
293 (name "texlive-generic-tex-ini-files")
294 (version (number->string %texlive-revision))
295 (source (origin
296 (method svn-fetch)
297 (uri (svn-reference
298 (url (string-append "svn://www.tug.org/texlive/tags/"
299 %texlive-tag "/Master/texmf-dist/"
300 "/tex/generic/tex-ini-files"))
301 (revision %texlive-revision)))
302 (sha256
303 (base32
304 "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5"))))
305 (build-system trivial-build-system)
306 (arguments
307 `(#:modules ((guix build utils))
308 #:builder
309 (begin
310 (use-modules (guix build utils))
311 (let ((target (string-append (assoc-ref %outputs "out")
312 "/share/texmf-dist/tex/generic/tex-ini-files")))
313 (mkdir-p target)
314 (copy-recursively (assoc-ref %build-inputs "source") target)
315 #t))))
316 (home-page "http://ctan.org/pkg/tex-ini-files")
317 (synopsis "Files for creating TeX formats")
318 (description "This bundle provides a collection of model \".ini\" files
319for creating TeX formats. These files are commonly used to introduced
320distribution-dependent variations in formats. They are also used to
321allow existing format source files to be used with newer engines, for example
322to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
323 (license license:public-domain)))
324
9b134da8
RW
325(define-public texlive-generic-hyph-utf8
326 (package
327 (name "texlive-generic-hyph-utf8")
328 (version (number->string %texlive-revision))
329 (source (origin
330 (method svn-fetch)
331 (uri (svn-reference
332 (url (string-append "svn://www.tug.org/texlive/tags/"
333 %texlive-tag "/Master/texmf-dist/"
334 "/tex/generic/hyph-utf8"))
335 (revision %texlive-revision)))
336 (sha256
337 (base32
338 "0ghizcz7ps16dzfqf66wwg5i181assc6qsm0g7g5dbmp909931vi"))))
339 (build-system trivial-build-system)
340 (arguments
341 `(#:modules ((guix build utils))
342 #:builder
343 (begin
344 (use-modules (guix build utils))
345 (let ((target (string-append (assoc-ref %outputs "out")
346 "/share/texmf-dist/tex/generic/hyph-utf8")))
347 (mkdir-p target)
348 (copy-recursively (assoc-ref %build-inputs "source") target)
349 #t))))
350 (home-page "http://ctan.org/pkg/hyph-utf8")
351 (synopsis "Hyphenation patterns expressed in UTF-8")
352 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
353hyphenation patterns in UTF-8 format, whereas older systems require
354hyphenation patterns in the 8-bit encoding of the font in use (such encodings
355are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
356etc). The present package offers a collection of conversions of existing
357patterns to UTF-8 format, together with converters for use with 8-bit fonts in
358older systems. Since hyphenation patterns for Knuthian-style TeX systems are
359only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
360converters, will completely supplant the older patterns.")
361 ;; Individual files each have their own license. Most of these files are
362 ;; independent hyphenation patterns.
363 (license (list license:lppl1.0+
364 license:lppl1.2+
365 license:lppl1.3
366 license:lppl1.3+
367 license:lppl1.3a+
368 license:lgpl2.1
369 license:lgpl2.1+
370 license:lgpl3+
371 license:gpl2+
372 license:gpl3+
373 license:mpl1.1
374 license:asl2.0
375 license:expat
376 license:bsd-3
377 license:cc0
378 license:public-domain
379 license:wtfpl2))))
380
8ada0f0b
RW
381(define-public texlive-metafont-base
382 (package
383 (name "texlive-metafont-base")
384 (version (number->string %texlive-revision))
385 (source (origin
386 (method svn-fetch)
387 (uri (svn-reference
388 (url (string-append "svn://www.tug.org/texlive/tags/"
389 %texlive-tag "/Master/texmf-dist/"
390 "/metafont"))
391 (revision %texlive-revision)))
392 (sha256
393 (base32
394 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
395 (build-system gnu-build-system)
396 (arguments
397 `(#:tests? #f ; no test target
398 #:phases
399 (modify-phases %standard-phases
400 (delete 'configure)
401 (replace 'build
402 (lambda* (#:key inputs #:allow-other-keys)
403 (let ((cwd (getcwd)))
404 (setenv "MFINPUTS"
405 (string-append cwd "/base:"
406 cwd "/misc:"
407 cwd "/roex:"
408 cwd "/feynmf:"
409 cwd "/mfpic:"
410 cwd "/config")))
411 (mkdir "build")
412 (with-directory-excursion "build"
413 (zero? (system* "inimf" "mf.mf")))))
414 (replace 'install
415 (lambda* (#:key outputs #:allow-other-keys)
416 (let* ((out (assoc-ref outputs "out"))
417 (base (string-append out "/share/texmf-dist/web2c"))
418 (mf (string-append out "/share/texmf-dist/metafont/base")))
419 (mkdir-p base)
420 (mkdir-p mf)
421 (install-file "build/mf.base" base)
422 (copy-recursively "base" mf)
423 #t))))))
424 (native-inputs
425 `(("texlive-bin" ,texlive-bin)))
426 (home-page "http://www.ctan.org/pkg/metafont")
427 (synopsis "Metafont base files")
428 (description "This package provides the Metafont base files needed to
429build fonts using the Metafont system.")
430 (license license:knuth)))
431
3c4f1ec7
RW
432(define-public texlive-fonts-cm
433 (package
434 (name "texlive-fonts-cm")
435 (version (number->string %texlive-revision))
436 (source (origin
437 (method svn-fetch)
438 (uri (svn-reference
439 (url (string-append "svn://www.tug.org/texlive/tags/"
440 %texlive-tag "/Master/texmf-dist/"
441 "/fonts/source/public/cm"))
442 (revision %texlive-revision)))
443 (sha256
444 (base32
445 "045k5b9rdmbxpy1a3006l1x96z1rd18vg3cwrvnld9bqybw5qz44"))))
446 (build-system gnu-build-system)
447 (arguments
448 `(#:modules ((guix build gnu-build-system)
449 (guix build utils)
450 (srfi srfi-1)
451 (srfi srfi-26))
452 #:tests? #f ; no tests
453 #:phases
454 (modify-phases %standard-phases
455 (delete 'configure)
456 (replace 'build
457 (lambda* (#:key inputs #:allow-other-keys)
458 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
459 ;; Tell mf where to find mf.base
460 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
461 ;; Tell mf where to look for source files
462 (setenv "MFINPUTS"
463 (string-append (getcwd) ":"
464 mf "/share/texmf-dist/metafont/base")))
465 (mkdir "build")
466 (every (lambda (font)
467 (format #t "building font ~a\n" font)
468 (zero? (system* "mf" "-progname=mf"
469 "-output-directory=build"
470 (string-append "\\"
471 "mode:=ljfour; "
472 "mag:=1; "
473 "batchmode; "
474 "input "
475 (basename font ".mf")))))
476 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
477 (replace 'install
478 (lambda* (#:key outputs #:allow-other-keys)
479 (let* ((out (assoc-ref outputs "out"))
480 (tfm (string-append
481 out "/share/texmf-dist/fonts/tfm/public/cm"))
482 (mf (string-append
483 out "/share/texmf-dist/fonts/source/public/cm")))
484 (for-each (cut install-file <> tfm)
485 (find-files "build" "\\.*"))
486 (for-each (cut install-file <> mf)
487 (find-files "." "\\.mf"))
488 #t))))))
489 (native-inputs
490 `(("texlive-bin" ,texlive-bin)
491 ("texlive-metafont-base" ,texlive-metafont-base)))
492 (home-page "http://www.ctan.org/pkg/cm")
493 (synopsis "Computer Modern fonts for TeX")
494 (description "This package provides the Computer Modern fonts by Donald
495Knuth. The Computer Modern font family is a large collection of text,
496display, and mathematical fonts in a range of styles, based on Monotype Modern
4978A.")
498 (license license:knuth)))
499
5ebba61a
RW
500(define-public texlive-fonts-knuth-lib
501 (package
502 (name "texlive-fonts-knuth-lib")
503 (version (number->string %texlive-revision))
504 (source (origin
505 (method svn-fetch)
506 (uri (svn-reference
507 (url (string-append "svn://www.tug.org/texlive/tags/"
508 %texlive-tag "/Master/texmf-dist/"
509 "/fonts/source/public/knuth-lib"))
510 (revision %texlive-revision)))
511 (sha256
512 (base32
513 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
514 (build-system gnu-build-system)
515 (arguments
516 `(#:modules ((guix build gnu-build-system)
517 (guix build utils)
518 (srfi srfi-26))
519 #:tests? #f ; no tests
520 #:phases
521 (modify-phases %standard-phases
522 (delete 'configure)
523 (replace 'build
524 (lambda* (#:key inputs #:allow-other-keys)
525 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
526 ;; Tell mf where to find mf.base
527 (setenv "MFBASES"
528 (string-append mf "/share/texmf-dist/web2c"))
529 ;; Tell mf where to look for source files
530 (setenv "MFINPUTS"
531 (string-append (getcwd) ":"
532 mf "/share/texmf-dist/metafont/base")))
533 (mkdir "build")
534 (zero? (system* "mf" "-progname=mf"
535 "-output-directory=build"
536 (string-append "\\"
537 "mode:=ljfour; "
538 "mag:=1; "
539 "batchmode; "
540 "input manfnt")))))
541 (replace 'install
542 (lambda* (#:key outputs #:allow-other-keys)
543 (let* ((out (assoc-ref outputs "out"))
544 (tfm (string-append
545 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
546 (mf (string-append
547 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
548 (for-each (cut install-file <> tfm)
549 (find-files "build" "\\.*"))
550 (for-each (cut install-file <> mf)
551 (find-files "." "\\.mf"))
552 #t))))))
553 (native-inputs
554 `(("texlive-bin" ,texlive-bin)
555 ("texlive-metafont-base" ,texlive-metafont-base)))
556 (home-page "https://www.ctan.org/pkg/knuth-lib")
557 (synopsis "Small library of METAFONT sources")
558 (description "This is a collection of core TeX and METAFONT macro files
559from Donald Knuth, including the plain format, plain base, and the MF logo
560fonts.")
561 (license license:knuth)))
562
a00d5933
RW
563(define-public texlive-fonts-latex
564 (package
565 (name "texlive-fonts-latex")
566 (version (number->string %texlive-revision))
567 (source (origin
568 (method svn-fetch)
569 (uri (svn-reference
570 (url (string-append "svn://www.tug.org/texlive/tags/"
571 %texlive-tag "/Master/texmf-dist/"
572 "/fonts/source/public/latex-fonts"))
573 (revision %texlive-revision)))
574 (sha256
575 (base32
576 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
577 (build-system gnu-build-system)
578 (arguments
579 `(#:modules ((guix build gnu-build-system)
580 (guix build utils)
581 (srfi srfi-1)
582 (srfi srfi-26))
583 #:tests? #f ; no tests
584 #:phases
585 (modify-phases %standard-phases
586 (delete 'configure)
587 (replace 'build
588 (lambda* (#:key inputs #:allow-other-keys)
589 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
590 ;; Tell mf where to find mf.base
591 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
592 ;; Tell mf where to look for source files
593 (setenv "MFINPUTS"
594 (string-append (getcwd) ":"
595 mf "/share/texmf-dist/metafont/base:"
596 (assoc-ref inputs "texlive-fonts-cm")
597 "/share/texmf-dist/fonts/source/public/cm")))
598 (mkdir "build")
599 (every (lambda (font)
600 (format #t "building font ~a\n" font)
601 (zero? (system* "mf" "-progname=mf"
602 "-output-directory=build"
603 (string-append "\\"
604 "mode:=ljfour; "
605 "mag:=1; "
606 "batchmode; "
607 "input " font))))
608 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
609 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
610 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
611 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
612 "line10" "linew10"))))
613 (replace 'install
614 (lambda* (#:key outputs #:allow-other-keys)
615 (let* ((out (assoc-ref outputs "out"))
616 (tfm (string-append
617 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
618 (mf (string-append
619 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
620 (for-each (cut install-file <> tfm)
621 (find-files "build" "\\.*"))
622 (for-each (cut install-file <> mf)
623 (find-files "." "\\.mf"))
624 #t))))))
625 (native-inputs
626 `(("texlive-bin" ,texlive-bin)
627 ("texlive-metafont-base" ,texlive-metafont-base)
628 ("texlive-fonts-cm" ,texlive-fonts-cm)))
629 (home-page "http://www.ctan.org/pkg/latex-fonts")
630 (synopsis "Collection of fonts used in LaTeX distributions")
631 (description "This is a collection of fonts for use with standard LaTeX
632packages and classes. It includes invisible fonts (for use with the slides
633class), line and circle fonts (for use in the picture environment) and LaTeX
634symbol fonts.")
635 (license license:lppl1.2+)))
636
98b4aca1
RW
637(define-public texlive-fonts-amsfonts
638 (package
639 (name "texlive-fonts-amsfonts")
640 (version (number->string %texlive-revision))
641 (source (origin
642 (method svn-fetch)
643 (uri (svn-reference
644 (url (string-append "svn://www.tug.org/texlive/tags/"
645 %texlive-tag "/Master/texmf-dist/"
646 "/fonts/source/public/amsfonts"))
647 (revision %texlive-revision)))
648 (sha256
649 (base32
650 "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
651 (build-system gnu-build-system)
652 (arguments
653 `(#:modules ((guix build gnu-build-system)
654 (guix build utils)
655 (srfi srfi-1)
656 (srfi srfi-26))
657 #:tests? #f ; no tests
658 #:phases
659 (modify-phases %standard-phases
660 (delete 'configure)
661 (replace 'build
662 (lambda* (#:key inputs #:allow-other-keys)
663 (let ((mf (assoc-ref inputs "texlive-metafont-base"))
664 (cwd (getcwd)))
665 ;; Tell mf where to find mf.base
666 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
667 ;; Tell mf where to look for source files
668 (setenv "MFINPUTS"
669 (string-append cwd ":"
670 cwd "/cmextra:"
671 cwd "/cyrillic:"
672 cwd "/dummy:"
673 cwd "/symbols:"
674 mf "/share/texmf-dist/metafont/base:"
675 (assoc-ref inputs "texlive-fonts-cm")
676 "/share/texmf-dist/fonts/source/public/cm")))
677 (mkdir "build")
678 (every (lambda (font)
679 (format #t "building font ~a\n" (basename font ".mf"))
680 (with-directory-excursion (dirname font)
681 (zero? (system* "mf" "-progname=mf"
682 "-output-directory=../build"
683 (string-append "\\"
684 "mode:=ljfour; "
685 "mag:=1; "
686 "nonstopmode; "
687 "input "
688 (getcwd) "/"
689 (basename font ".mf"))))))
690 (find-files "." "[0-9]+\\.mf$"))))
691 (replace 'install
692 (lambda* (#:key outputs #:allow-other-keys)
693 (let* ((out (assoc-ref outputs "out"))
694 (tfm (string-append
695 out "/share/texmf-dist/fonts/tfm/public/amsfonts"))
696 (mf (string-append
697 out "/share/texmf-dist/fonts/source/public/amsfonts")))
698 (for-each (cut install-file <> tfm)
699 (find-files "build" "\\.*"))
700 (for-each (cut install-file <> mf)
701 (find-files "." "\\.mf"))
702 #t))))))
703 (native-inputs
704 `(("texlive-fonts-cm" ,texlive-fonts-cm)
705 ("texlive-metafont-base" ,texlive-metafont-base)
706 ("texlive-bin" ,texlive-bin)))
707 (home-page "http://www.ctan.org/pkg/amsfonts")
708 (synopsis "TeX fonts from the American Mathematical Society")
709 (description
710 "This package provides an extended set of fonts for use in mathematics,
711including: extra mathematical symbols; blackboard bold letters (uppercase
712only); fraktur letters; subscript sizes of bold math italic and bold Greek
713letters; subscript sizes of large symbols such as sum and product; added sizes
714of the Computer Modern small caps font; cyrillic fonts (from the University of
715Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
716files, and all except the Euler fonts are provided as Metafont source. The
717distribution also includes the canonical Type 1 versions of the Computer
718Modern family of fonts. The Euler fonts are supported by separate packages;
719details can be found in the documentation.")
720 (license license:silofl1.1)))
721
137f9cbc
RW
722(define-public texlive-latex-amsfonts
723 (package
724 (name "texlive-latex-amsfonts")
725 (version (number->string %texlive-revision))
726 (source (origin
727 (method svn-fetch)
728 (uri (texlive-ref "latex" "amsfonts"))
729 (sha256
730 (base32
731 "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
732 (build-system texlive-build-system)
733 (arguments '(#:tex-directory "latex/amsfonts"))
734 (native-inputs
735 `(("texlive-fonts-cm" ,texlive-fonts-cm)
736 ("texlive-metafont-base" ,texlive-metafont-base)))
737 (home-page "http://www.ctan.org/pkg/amsfonts")
738 (synopsis "TeX fonts from the American Mathematical Society")
739 (description
740 "This package provides basic LaTeX support for the symbol fonts provides
741by the amsfonts package. It provides @code{amsfonts.sty}, with names of
742individual symbols defined in @code{amssymb.sty}.")
743 (license license:silofl1.1)))
744
566e95f7
RW
745;; This provides etex.src which is needed to build various formats, including
746;; luatex.fmt and pdflatex.fmt
747(define-public texlive-tex-plain
748 (package
749 (name "texlive-tex-plain")
750 (version (number->string %texlive-revision))
751 (source (origin
752 (method svn-fetch)
753 (uri (svn-reference
754 (url (string-append "svn://www.tug.org/texlive/tags/"
755 %texlive-tag "/Master/texmf-dist/"
756 "/tex/plain"))
757 (revision %texlive-revision)))
758 (sha256
759 (base32
96c336be 760 "0mjgl3gscn3ps29yjambz1j9fg81ynnncb96vpprwx4xsijhsns0"))))
566e95f7
RW
761 (build-system trivial-build-system)
762 (arguments
763 `(#:modules ((guix build utils))
764 #:builder
765 (begin
766 (use-modules (guix build utils))
767 (let ((target (string-append (assoc-ref %outputs "out")
768 "/share/texmf-dist/tex/plain")))
769 (mkdir-p target)
770 (copy-recursively (assoc-ref %build-inputs "source") target)
771 #t))))
772 (home-page "https://www.ctan.org/pkg/plain")
773 (synopsis "Plain TeX format and supporting files")
774 (description
775 "Contains files used to build the Plain TeX format, as described in the
776TeXbook, together with various supporting files (some also discussed in the
777book).")
778 (license license:knuth)))
779
010f476f
RW
780(define-public texlive-latex-base
781 (let ((texlive-dir
782 (lambda (dir hash)
783 (origin
784 (method svn-fetch)
785 (uri (svn-reference
786 (url (string-append "svn://www.tug.org/texlive/tags/"
787 %texlive-tag "/Master/texmf-dist/"
788 dir))
789 (revision %texlive-revision)))
790 (sha256 (base32 hash))))))
791 (package
792 (name "texlive-latex-base")
793 (version (number->string %texlive-revision))
794 (source (origin
795 (method svn-fetch)
796 (uri (texlive-ref "latex" "base"))
797 (sha256
798 (base32
799 "1h9pir2hz6i9avc4lrl733p3zf4rpkg8537x1zdbhs91hvhikw9k"))))
800 (build-system gnu-build-system)
801 (arguments
802 `(#:modules ((guix build gnu-build-system)
803 (guix build utils)
804 (ice-9 match)
805 (srfi srfi-1)
806 (srfi srfi-26))
807 #:tests? #f ; no tests
808 #:phases
809 (modify-phases %standard-phases
810 (delete 'configure)
811 (replace 'build
812 (lambda* (#:key inputs #:allow-other-keys)
813 ;; Find required fonts
814 (setenv "TFMFONTS"
815 (string-append (assoc-ref inputs "texlive-fonts-cm")
816 "/share/texmf-dist/fonts/tfm/public/cm:"
817 (assoc-ref inputs "texlive-fonts-latex")
818 "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
819 (assoc-ref inputs "texlive-fonts-knuth-lib")
820 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
821 (setenv "TEXINPUTS"
822 (string-append
823 (getcwd) ":"
824 (getcwd) "/build:"
825 (string-join
826 (append-map (match-lambda
827 ((_ . dir)
828 (find-files dir
829 (lambda (_ stat)
830 (eq? 'directory (stat:type stat)))
831 #:directories? #t
832 #:stat stat)))
833 inputs)
834 ":")))
835
836 ;; Create an empty texsys.cfg, because latex.ltx wants to include
837 ;; it. This file must exist and it's fine if it's empty.
838 (with-output-to-file "texsys.cfg"
839 (lambda _ (format #t "%")))
840
841 (mkdir "build")
842 (mkdir "web2c")
843 (and (zero? (system* "luatex" "-ini" "-interaction=batchmode"
844 "-output-directory=build"
845 "unpack.ins"))
bd6e2385
RW
846 (zero? (system* "tex" "-ini" "-interaction=batchmode"
847 "-output-directory=web2c"
848 "tex.ini"))
849 ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
850 ;; is enabled only in extended mode (activated with a
851 ;; leading asterisk). We should not use luatex here,
852 ;; because that would make the generated format files
853 ;; incompatible with any other TeX engine.
010f476f
RW
854 (every
855 (lambda (format)
856 (zero? (system* "latex" "-ini" "-interaction=batchmode"
857 "-output-directory=web2c"
858 "-translate-file=cp227.tcx"
859 (string-append "*" format ".ini"))))
702f23b3 860 '("latex"
bd6e2385
RW
861 "pdflatex"
862 "pdfetex"))
702f23b3
RW
863 (every
864 (lambda (format)
865 (zero? (system* format "-ini" "-interaction=batchmode"
866 "-output-directory=web2c"
867 (string-append "*" format ".ini"))))
868 '("xetex"
869 "xelatex"))
010f476f
RW
870 (every
871 (lambda (format)
872 (zero? (system* "luatex" "-ini" "-interaction=batchmode"
873 "-output-directory=web2c"
874 (string-append format ".ini"))))
702f23b3 875 '("dviluatex" "dvilualatex" "luatex" "lualatex")))))
010f476f
RW
876 (replace 'install
877 (lambda* (#:key outputs #:allow-other-keys)
878 (let* ((out (assoc-ref outputs "out"))
879 (target (string-append
880 out "/share/texmf-dist/tex/latex/base"))
881 (web2c (string-append
882 out "/share/texmf-dist/web2c")))
883 (mkdir-p target)
884 (mkdir-p web2c)
885 (for-each delete-file (find-files "." "\\.(log|aux)$"))
886 (for-each (cut install-file <> target)
887 (find-files "build" ".*"))
888 (for-each (cut install-file <> web2c)
889 (find-files "web2c" ".*"))
bd6e2385
RW
890 ;; pdftex is really just the same as pdfetex, but since it
891 ;; doesn't have its own format file, we need to copy it.
892 (copy-file "web2c/pdfetex.fmt"
893 (string-append web2c "/pdftex.fmt"))
010f476f
RW
894 #t))))))
895 (native-inputs
896 `(("texlive-bin" ,texlive-bin)
897 ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
898 ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
899 ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
900 ("texlive-latex-latexconfig"
901 ,(texlive-dir "tex/latex/latexconfig/"
902 "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
903 ("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)
904 ("texlive-generic-hyphen"
905 ,(texlive-dir "tex/generic/hyphen/"
906 "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
907 ("texlive-generic-ruhyphen"
908 ,(texlive-dir "tex/generic/ruhyphen/"
909 "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
910 ("texlive-generic-ukrhyph"
911 ,(texlive-dir "tex/generic/ukrhyph/"
912 "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
913 ("texlive-generic-config"
914 ,(texlive-dir "tex/generic/config/"
915 "19vj088p4kkp6xll0141m4kl6ssgdzhs3g10i232khb07aqiag8s"))
916 ("texlive-tex-plain" ,texlive-tex-plain)
917 ("texlive-fonts-cm" ,texlive-fonts-cm)
918 ("texlive-fonts-latex" ,texlive-fonts-latex)
919 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
920 (home-page "http://www.ctan.org/pkg/latex-base")
921 (synopsis "Base sources of LaTeX")
922 (description
923 "This bundle comprises the source of LaTeX itself, together with several
924packages which are considered \"part of the kernel\". This bundle, together
925with the required packages, constitutes what every LaTeX distribution should
926contain.")
927 (license license:lppl1.3c+))))
928
3e485ed2
RW
929(define-public texlive-latex-filecontents
930 (package
931 (name "texlive-latex-filecontents")
932 (version (number->string %texlive-revision))
933 (source (origin
934 (method svn-fetch)
935 (uri (texlive-ref "latex" "filecontents"))
936 (sha256
937 (base32
938 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
939 (build-system texlive-build-system)
940 (arguments '(#:tex-directory "latex/filecontents"))
941 (home-page "http://www.ctan.org/pkg/filecontents")
942 (synopsis "Extended filecontents and filecontents* environments")
943 (description
944 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
945enable a LaTeX source file to generate external files as it runs through
946LaTeX. However, there are two limitations of these environments: they refuse
947to overwrite existing files, and they can only be used in the preamble of a
948document. The filecontents package removes these limitations, letting you
949overwrite existing files and letting you use @code{filecontents} /
950@code{filecontents*} anywhere.")
951 (license license:lppl1.3c+)))
952
1193aa89
RW
953(define-public texlive-generic-ifxetex
954 (package
955 (name "texlive-generic-ifxetex")
fea8eef3 956 (version (number->string %texlive-revision))
1193aa89
RW
957 (source (origin
958 (method svn-fetch)
959 (uri (texlive-ref "generic" "ifxetex"))
960 (sha256
961 (base32
962 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
963 (build-system texlive-build-system)
964 (arguments
965 '(#:tex-directory "generic/ifxetex"
966 #:tex-format "xelatex"))
967 (inputs
968 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
969 (home-page "http://www.ctan.org/pkg/ifxetex")
970 (synopsis "Am I running under XeTeX?")
971 (description
972 "This is a simple package which provides an @code{\\ifxetex} conditional,
973so that other code can determine that it is running under XeTeX. The package
beb476ed 974requires the e-TeX extensions to the TeX primitive set.")
1193aa89
RW
975 (license license:lppl1.3c+)))
976
9186c156
RW
977(define-public texlive-generic-epsf
978 (package
979 (name "texlive-generic-epsf")
980 (version (number->string %texlive-revision))
981 (source (origin
982 (method svn-fetch)
983 (uri (svn-reference
984 (url (string-append "svn://www.tug.org/texlive/tags/"
985 %texlive-tag "/Master/texmf-dist/"
986 "/tex/generic/epsf"))
987 (revision %texlive-revision)))
988 (sha256
989 (base32
990 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
991 (build-system trivial-build-system)
992 (arguments
993 `(#:modules ((guix build utils))
994 #:builder
995 (begin
996 (use-modules (guix build utils))
997 (let ((target (string-append (assoc-ref %outputs "out")
998 "/share/texmf-dist/tex/generic/epfs")))
999 (mkdir-p target)
1000 (copy-recursively (assoc-ref %build-inputs "source") target)
1001 #t))))
1002 (home-page "http://www.ctan.org/pkg/epsf")
1003 (synopsis "Simple macros for EPS inclusion")
1004 (description
1005 "This package provides the original (and now obsolescent) graphics
1006inclusion macros for use with dvips, still widely used by Plain TeX users (in
1007particular). For LaTeX users, the package is nowadays (rather strongly)
1008deprecated in favour of the more sophisticated standard LaTeX latex-graphics
1009bundle of packages. (The latex-graphics bundle is also available to Plain TeX
1010users, via its Plain TeX version.)")
1011 (license license:public-domain)))
1012
437822a1
RW
1013(define-public texlive-latex-fancyvrb
1014 (package
1015 (name "texlive-latex-fancyvrb")
1016 (version (number->string %texlive-revision))
1017 (source (origin
1018 (method svn-fetch)
1019 (uri (texlive-ref "latex" "fancyvrb"))
1020 (sha256
1021 (base32
1022 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
1023 (build-system texlive-build-system)
1024 (arguments
1025 '(#:tex-directory "latex/fancyvrb"
1026 ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and
1027 ;; thus texlive-luatex-lualibs.
1028 #:build-targets '("fancyvrb.ins")))
1029 (home-page "http://www.ctan.org/pkg/fancyvrb")
1030 (synopsis "Sophisticated verbatim text")
1031 (description
1032 "This package provides tools for the flexible handling of verbatim text
1033including: verbatim commands in footnotes; a variety of verbatim environments
1034with many parameters; ability to define new customized verbatim environments;
1035save and restore verbatim text and environments; write and read files in
1036verbatim mode; build \"example\" environments (showing both result and
1037verbatim source).")
1038 (license license:lppl1.0+)))
1039
4eebd2cd
RW
1040(define-public texlive-latex-graphics
1041 (package
1042 (name "texlive-latex-graphics")
1043 (version (number->string %texlive-revision))
1044 (source (origin
1045 (method svn-fetch)
1046 (uri (texlive-ref "latex" "graphics"))
1047 (sha256
1048 (base32
e3c970fc 1049 "07azyn0b1s49vbdlr6dmygrminxp72ndl24j1091hiiccvrjq3xc"))))
4eebd2cd
RW
1050 (build-system texlive-build-system)
1051 (arguments
1052 '(#:tex-directory "latex/graphics"
1053 #:phases
1054 (modify-phases %standard-phases
1055 (add-after 'install 'install-config
1056 (lambda* (#:key inputs outputs #:allow-other-keys)
1057 (let ((cfg (assoc-ref inputs "graphics-cfg"))
1058 (target (string-append (assoc-ref outputs "out")
1059 "/share/texmf-dist/tex/latex/graphics-cfg")))
1060 (mkdir-p target)
1061 (install-file (string-append cfg "/graphics.cfg") target)
1062 (install-file (string-append cfg "/color.cfg") target)
1063 #t)))
1064 (add-after 'install 'install-defs
1065 (lambda* (#:key inputs outputs #:allow-other-keys)
1066 (let ((def (assoc-ref inputs "graphics-def"))
1067 (target (string-append (assoc-ref outputs "out")
1068 "/share/texmf-dist/tex/latex/graphics-def")))
1069 (mkdir-p target)
1070 (copy-recursively def target)
1071 #t))))))
1072 (native-inputs
1073 `(("graphics-cfg"
1074 ,(origin
1075 (method git-fetch)
1076 (uri (git-reference
1077 (url "https://github.com/latex3/graphics-cfg.git")
1078 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
1079 (sha256
1080 (base32
1081 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
1082 ("graphics-def"
1083 ,(origin
1084 (method svn-fetch)
1085 (uri (svn-reference
1086 (url (string-append "svn://www.tug.org/texlive/tags/"
1087 %texlive-tag "/Master/texmf-dist/"
1088 "/tex/latex/graphics-def"))
1089 (revision %texlive-revision)))
1090 (sha256
1091 (base32
51c15375 1092 "0gi4qv6378nl84s8n1yx3hjqvv7r4lza7hpbymbl5rzwgw8qrnyb"))))))
4eebd2cd
RW
1093 (home-page "http://www.ctan.org/pkg/latex-graphics")
1094 (synopsis "LaTeX standard graphics bundle")
1095 (description
1096 "This is a collection of LaTeX packages for producing color, including
1097graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
1098documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
1099keyval, and lscape.")
1100 ;; The configuration files are released under CC0.
1101 (license (list license:lppl1.3c+
1102 license:cc0))))
1103
f5a6af42
RW
1104(define-public texlive-latex-xcolor
1105 (package
1106 (name "texlive-latex-xcolor")
1107 (version (number->string %texlive-revision))
1108 (source (origin
1109 (method svn-fetch)
1110 (uri (texlive-ref "latex" "xcolor"))
1111 (sha256
1112 (base32
1113 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
1114 (build-system texlive-build-system)
1115 (arguments '(#:tex-directory "latex/xcolor"))
1116 (home-page "http://www.ctan.org/pkg/xcolor")
1117 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
1118 (description
1119 "The package starts from the basic facilities of the colorcolor package,
1120and provides easy driver-independent access to several kinds of color tints,
1121shades, tones, and mixes of arbitrary colors. It allows a user to select a
1122document-wide target color model and offers complete tools for conversion
1123between eight color models. Additionally, there is a command for alternating
1124row colors plus repeated non-aligned material (like horizontal lines) in
1125tables.")
1126 (license license:lppl1.2+)))
1127
4d660fdf
RW
1128(define-public texlive-latex-hyperref
1129 (package
1130 (name "texlive-latex-hyperref")
1131 (version "6.84a2")
1132 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
1133 ;; so we fetch the release from GitHub.
1134 (source (origin
1135 (method url-fetch)
1136 (uri (string-append "https://github.com/ho-tex/hyperref/"
1137 "archive/release-" version ".tar.gz"))
1138 (file-name (string-append name "-" version ".tar.gz"))
1139 (sha256
1140 (base32
1141 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
1142 (build-system texlive-build-system)
1143 (arguments '(#:tex-directory "latex/hyperref"))
1144 (home-page "http://www.ctan.org/pkg/hyperref")
1145 (synopsis "Extensive support for hypertext in LaTeX")
1146 (description
1147 "The hyperref package is used to handle cross-referencing commands in
1148LaTeX to produce hypertext links in the document. The package provides
1149backends for the special set defined for HyperTeX DVI processors; for embedded
1150pdfmark commands for processing by Acrobat Distiller (dvips and dvipsone); for
1151dviwindo; for PDF control within pdfTeX and dvipdfm; for TeX4ht; and for VTeX
1152pdf and HTML backends. The package is distributed with the backref and
1153nameref packages, which make use of the facilities of hyperref.")
1154 (license license:lppl1.3+)))
1155
c3455b7d
RW
1156(define-public texlive-latex-oberdiek
1157 (package
1158 (name "texlive-latex-oberdiek")
1159 (version (number->string %texlive-revision))
1160 (source (origin
1161 (method svn-fetch)
1162 (uri (texlive-ref "latex" "oberdiek"))
1163 (sha256
1164 (base32
1165 "0aswvsxgsn709xmvpcg50d2xl7vcy1ckdxb9c1cligqqfjjvviqf"))))
1166 (build-system texlive-build-system)
1167 (arguments
1168 '(#:tex-directory "latex/oberdiek"
05d28068 1169 #:build-targets '("oberdiek.ins")
c3455b7d
RW
1170 #:phases
1171 (modify-phases %standard-phases
05d28068 1172 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
c3455b7d
RW
1173 (add-after 'unpack 'do-not-process-ifpdf.ins
1174 (lambda _
1175 (substitute* "oberdiek.ins"
05d28068 1176 (("ifpdf.ins") "ifpdf.dtx"))
c3455b7d
RW
1177 #t)))))
1178 (home-page "http://www.ctan.org/pkg/oberdiek")
1179 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
1180 (description
1181 "The bundle comprises various LaTeX packages, providing among others:
1182better accessibility support for PDF files; extensible chemists reaction
1183arrows; record information about document class(es) used; and many more.")
1184 (license license:lppl1.3+)))
1185
f2536af2
RW
1186(define-public texlive-latex-tools
1187 (package
1188 (name "texlive-latex-tools")
1189 (version (number->string %texlive-revision))
1190 (source (origin
1191 (method svn-fetch)
1192 (uri (texlive-ref "latex" "tools"))
1193 (sha256
1194 (base32
1195 "052a0pch2k5zls5jlay9xxcf93rw3i60a2x28y3ip3rhbsv3xgiz"))))
1196 (build-system texlive-build-system)
1197 (arguments
1198 '(#:tex-directory "latex/tools"
1199 #:build-targets '("tools.ins")))
1200 (home-page "http://www.ctan.org/pkg/latex-tools")
1201 (synopsis "LaTeX standard tools bundle")
1202 (description
1203 "This package is a collection of (variously) simple tools provided as
1204part of the LaTeX required tools distribution, comprising the following
1205packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
1206fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
1207rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
1208xr, and xspace.")
1209 (license license:lppl1.3+)))
1210
35adcc3a
RW
1211(define-public texlive-latex-url
1212 (package
1213 (name "texlive-latex-url")
1214 (version (number->string %texlive-revision))
1215 (source (origin
1216 (method svn-fetch)
1217 (uri (svn-reference
1218 (url (string-append "svn://www.tug.org/texlive/tags/"
1219 %texlive-tag "/Master/texmf-dist/"
1220 "/tex/latex/url"))
1221 (revision %texlive-revision)))
1222 (sha256
1223 (base32
1224 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
1225 (build-system trivial-build-system)
1226 (arguments
1227 `(#:modules ((guix build utils))
1228 #:builder
1229 (begin
1230 (use-modules (guix build utils))
1231 (let ((target (string-append (assoc-ref %outputs "out")
1232 "/share/texmf-dist/tex/latex/url")))
1233 (mkdir-p target)
1234 (copy-recursively (assoc-ref %build-inputs "source") target)
1235 #t))))
1236 (home-page "https://www.ctan.org/pkg/url")
1237 (synopsis "Verbatim with URL-sensitive line breaks")
1238 (description "The command @code{\\url} is a form of verbatim command that
1239allows linebreaks at certain characters or combinations of characters, accepts
1240reconfiguration, and can usually be used in the argument to another command.
1241The command is intended for email addresses, hypertext links,
1242directories/paths, etc., which normally have no spaces, so by default the
1243package ignores spaces in its argument. However, a package option allows
1244spaces, which is useful for operating systems where spaces are a common part
1245of file names.")
1246 ;; The license header states that it is under LPPL version 2 or later, but
1247 ;; the latest version is 1.3c.
1248 (license license:lppl1.3c+)))
1249
a5b1ef84
RW
1250(define-public texlive-latex-l3kernel
1251 (package
1252 (name "texlive-latex-l3kernel")
1253 (version (number->string %texlive-revision))
1254 (source (origin
1255 (method svn-fetch)
1256 (uri (texlive-ref "latex" "l3kernel"))
1257 (sha256
1258 (base32
1f7d1010 1259 "0r0wfk594j8wkdqhh21haimwsfq8x5jch4ldm21hkzk5dnmvpbg6"))))
a5b1ef84
RW
1260 (build-system texlive-build-system)
1261 (arguments
1262 '(#:tex-directory "latex/l3kernel"))
1263 (home-page "http://www.ctan.org/pkg/l3kernel")
1264 (synopsis "LaTeX3 programmers’ interface")
1265 (description
1266 "The l3kernel bundle provides an implementation of the LaTeX3
1267programmers’ interface, as a set of packages that run under LaTeX 2e. The
1268interface provides the foundation on which the LaTeX3 kernel and other future
1269code are built: it is an API for TeX programmers. The packages are set up so
1270that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
1271 (license license:lppl1.3c+)))
1272
cc09d48b
RW
1273(define-public texlive-latex-l3packages
1274 (package
1275 (name "texlive-latex-l3packages")
1276 (version (number->string %texlive-revision))
1277 (source (origin
1278 (method svn-fetch)
1279 (uri (texlive-ref "latex" "l3packages"))
1280 (sha256
1281 (base32
83474718 1282 "16jplkvzdysfssijq9l051nsks65c2nrarsl17k8gjhc28yznj8y"))))
cc09d48b
RW
1283 (build-system texlive-build-system)
1284 (arguments
1285 '(#:tex-directory "latex/l3packages"
1286 #:phases
1287 (modify-phases %standard-phases
1288 ;; All package sources are in sub-directories, so we need to add them
1289 ;; to TEXINPUTS.
1290 (add-after 'unpack 'set-TEXINPUTS
1291 (lambda _
1292 (let ((cwd (getcwd)))
1293 (setenv "TEXINPUTS"
1294 (string-append cwd "/l3keys2e:"
1295 cwd "/xparse:"
1296 cwd "/xfrac:"
1297 cwd "/xfp:"
1298 cwd "/xtemplate")))
1299 #t)))))
1300 (inputs
1301 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1302 (home-page "http://www.ctan.org/pkg/l3packages")
1303 (synopsis "High-level LaTeX3 concepts")
1304 (description
1305 "This bundle holds prototype implementations of concepts for a LaTeX
1306designer interface, to be used with the experimental LaTeX kernel as
1307programming tools and kernel sup­port. Packages provided in this release are:
1308
1309@enumerate
1310@item l3keys2e, which makes the facilities of the kernel module l3keys
1311 available for use by LaTeX 2e packages;
1312@item xfrac, which provides flexible splitlevel fractions;
1313@item xparse, which provides a high-level interface for declaring document
1314 commands; and
1315@item xtemplate, which provides a means of defining generic functions using a
1316 key-value syntax.
1317@end enumerate\n")
1318 (license license:lppl1.3c+)))
1319
58308491
RW
1320(define-public texlive-latex-fontspec
1321 (package
1322 (name "texlive-latex-fontspec")
1323 (version (number->string %texlive-revision))
1324 (source (origin
1325 (method svn-fetch)
1326 (uri (texlive-ref "latex" "fontspec"))
1327 (sha256
1328 (base32
1329 "1rx43y5xmjqvc27pjdnmqwp4pcw3czcfd6nfpmzc1gnqfl1hlc0q"))))
1330 (build-system texlive-build-system)
1331 (arguments
1332 '(#:tex-directory "latex/fontspec"
1333 #:build-targets '("fontspec.dtx")))
1334 (inputs
1335 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
1336 (home-page "http://www.ctan.org/pkg/fontspec")
1337 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
1338 (description
1339 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
1340automatic and unified interface to feature-rich AAT and OpenType fonts through
1341the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
1342the l3kernel and xparse bundles from the LaTeX 3 development team.")
1343 (license license:lppl1.3+)))
1344
e93f472d
RW
1345;; The SVN directory contains little more than a dtx file that generates three
1346;; of the many lua files that should be installed as part of this package.
1347;; This is why we take the release from GitHub instead.
1348(define-public texlive-luatex-lualibs
1349 (package
1350 (name "texlive-luatex-lualibs")
1351 (version "2.5")
1352 (source (origin
1353 (method url-fetch)
1354 (uri (string-append "https://github.com/lualatex/lualibs/"
1355 "releases/download/v"
1356 version "/lualibs.zip"))
1357 (sha256
1358 (base32
1359 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
1360 (build-system gnu-build-system)
1361 (arguments
1362 `(#:make-flags
1363 (list (string-append "DESTDIR="
1364 (assoc-ref %outputs "out")
1365 "/share/texmf-dist"))
1366 #:phases
1367 (modify-phases %standard-phases
1368 (delete 'configure))))
1369 (native-inputs
1370 `(("texlive-bin" ,texlive-bin)
1371 ("unzip" ,unzip)
1372 ("zip" ,zip)))
1373 (home-page "https://github.com/lualatex/lualibs")
1374 (synopsis "Lua modules for general programming (in the (La)TeX world)")
1375 (description
1376 "Lualibs is a collection of Lua modules useful for general programming.
1377The bundle is based on Lua modules shipped with ConTeXt, and made available in
1378this bundle for use independent of ConTeXt.")
1379 ;; GPL version 2 only
1380 (license license:gpl2)))
1381
2573163a
RW
1382(define-public texlive-latex-amsmath
1383 (package
1384 (name "texlive-latex-amsmath")
1385 (version (number->string %texlive-revision))
1386 (source (origin
1387 (method svn-fetch)
1388 (uri (texlive-ref "latex" "amsmath"))
1389 (sha256
1390 (base32
1391 "178ywjpdlv78qmfzqdyn6gy14620zjsn2q9wap76fbr9s4hw6dba"))))
1392 (build-system texlive-build-system)
1393 (arguments '(#:tex-directory "latex/amsmath"))
1394 (home-page "http://www.ctan.org/pkg/amsmath")
1395 (synopsis "AMS mathematical facilities for LaTeX")
1396 (description
1397 "This is the principal package in the AMS-LaTeX distribution. It adapts
1398for use in LaTeX most of the mathematical features found in AMS-TeX; it is
1399highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
1400When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
1401symbols), @code{amsopnamsopn} (for operator names) and
1402@code{amstextamstext} (for text embedded in mathematics) are also loaded.
1403This package is part of the LaTeX required distribution; however, several
1404contributed packages add still further to its appeal; examples are
1405@code{empheqempheq}, which provides functions for decorating and highlighting
1406mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
1407definitions.")
1408 (license license:lppl1.3c+)))
1409
18e366e8
RW
1410(define-public texlive-latex-amscls
1411 (package
1412 (name "texlive-latex-amscls")
1413 (version (number->string %texlive-revision))
1414 (source (origin
1415 (method svn-fetch)
1416 (uri (texlive-ref "latex" "amscls"))
1417 (sha256
1418 (base32
1419 "0jmcr37mcdi7drczppvr6lmz5d5yd9m67ii79gp2nglg1xpw934j"))))
1420 (build-system texlive-build-system)
1421 (arguments
1422 `(#:tex-directory "latex/amscls"))
1423 (home-page "http://www.ctan.org/pkg/amscls")
1424 (synopsis "AMS document classes for LaTeX")
1425 (description
1426 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
1427articles for the AMS), @code{amsbookamsbook} (for books) and
1428@code{amsprocamsproc} (for proceedings), together with some supporting
1429material. The material is made available as part of the AMS-LaTeX
1430distribution.")
1431 (license license:lppl1.3c+)))
1432
f84d5a09
RW
1433(define-public texlive-latex-babel
1434 (package
1435 (name "texlive-latex-babel")
1436 (version (number->string %texlive-revision))
1437 (source (origin
1438 (method svn-fetch)
1439 (uri (texlive-ref "latex" "babel"))
1440 (sha256
1441 (base32
1442 "1n3i5adsyy7jw0imnzrm2i8wkf73i3mjk9h3ic8cb9cd19i4r9r3"))))
1443 (build-system texlive-build-system)
1444 (arguments
1445 '(#:tex-directory "latex/babel"
1446 #:phases
1447 (modify-phases %standard-phases
1448 ;; This package tries to produce babel.aux twice but refuses to
1449 ;; overwrite the first one.
1450 (add-before 'build 'fix-ins
1451 (lambda _
1452 (substitute* "babel.ins"
1453 (("askonceonly") "askforoverwritefalse"))
1454 #t)))))
1455 (home-page "http://www.ctan.org/pkg/babel")
1456 (synopsis "Multilingual support for Plain TeX or LaTeX")
1457 (description
1458 "The package manages culturally-determined typographical (and other)
1459rules, and hyphenation patterns for a wide range of languages. A document may
1460select a single language to be supported, or it may select several, in which
1461case the document may switch from one language to another in a variety of
1462ways. Babel uses contributed configuration files that provide the detail of
1463what has to be done for each language. Users of XeTeX are advised to use the
1464polyglossia package rather than Babel.")
1465 (license license:lppl1.3+)))
1466
93286d38
RW
1467(define-public texlive-latex-cyrillic
1468 (package
1469 (name "texlive-latex-cyrillic")
1470 (version (number->string %texlive-revision))
1471 (source (origin
1472 (method svn-fetch)
1473 (uri (texlive-ref "latex" "cyrillic"))
1474 (sha256
1475 (base32
1476 "1mdhl35hwas68ki56qqngzar37dwv4mm64l2canihr255bz34lbv"))))
1477 (build-system texlive-build-system)
1478 (arguments
1479 '(#:tex-directory "latex/cyrillic"))
1480 (home-page "http://www.ctan.org/pkg/latex-cyrillic")
1481 (synopsis "Support for Cyrillic fonts in LaTeX")
1482 (description
1483 "This bundle of macros files provides macro support (including font
1484encoding macros) for the use of Cyrillic characters in fonts encoded under the
1485T2* and X2 encodings. These encodings cover (between them) pretty much every
1486language that is written in a Cyrillic alphabet.")
1487 (license license:lppl1.3c+)))
1488
83fe6231
RW
1489(define-public texlive-latex-psnfss
1490 (package
1491 (name "texlive-latex-psnfss")
1492 (version (number->string %texlive-revision))
1493 (source (origin
1494 (method svn-fetch)
1495 (uri (texlive-ref "latex" "psnfss"))
1496 (sha256
1497 (base32
1498 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
1499 (build-system texlive-build-system)
1500 (arguments '(#:tex-directory "latex/psnfss"))
1501 (home-page "http://www.ctan.org/pkg/psnfss")
1502 (synopsis "Font support for common PostScript fonts")
1503 (description
1504 "The PSNFSS collection includes a set of files that provide a complete
1505working setup of the LaTeX font selection scheme (NFSS2) for use with common
1506PostScript fonts. It covers the so-called \"Base\" fonts (which are built
1507into any Level 2 PostScript printing device and the Ghostscript interpreter)
1508and a number of free fonts. It provides font definition files, macros and
1509font metrics. The bundle as a whole is part of the LaTeX required set of
1510packages.")
1511 (license license:lppl1.2+)))
1512
cb7bc20a
RW
1513(define-public texlive-union
1514 (lambda* (#:optional (packages '()))
1515 "Return 'texlive-union' package which is a union of PACKAGES and the
1516standard LaTeX packages."
1517 (let ((default-packages
1518 (list texlive-bin
1519 texlive-dvips
1520 texlive-fonts-cm
1521 texlive-fonts-latex
1522 texlive-metafont-base
1523 texlive-latex-base
1524 ;; LaTeX packages from the "required" set.
1525 texlive-latex-amsmath
1526 texlive-latex-amscls
1527 texlive-latex-babel
1528 texlive-latex-cyrillic
1529 texlive-latex-graphics
1530 texlive-latex-psnfss
1531 texlive-latex-tools)))
1532 (package
1533 (name "texlive-union")
1534 (version (number->string %texlive-revision))
1535 (source #f)
1536 (build-system trivial-build-system)
1537 (arguments
1538 '(#:modules ((guix build union)
1539 (guix build utils)
1540 (guix build texlive-build-system)
1541 (guix build gnu-build-system)
1542 (guix build gremlin)
1543 (guix elf))
1544 #:builder
1545 (begin
1546 (use-modules (ice-9 match)
1547 (srfi srfi-26)
1548 (guix build union)
1549 (guix build utils)
1550 (guix build texlive-build-system))
1551 (let* ((out (assoc-ref %outputs "out"))
1552 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
1553 ;; Build a modifiable union of all inputs (but exclude bash)
1554 (match (filter (match-lambda
1555 ((name . _)
1556 (not (string=? "bash" name))))
1557 %build-inputs)
1558 (((names . directories) ...)
1559 (union-build (assoc-ref %outputs "out")
1560 directories
1561 #:create-all-directories? #t)))
1562
1563 ;; The configuration file "texmf.cnf" is provided by the
1564 ;; "texlive-bin" package. We take it and override only the
1565 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
1566 ;; by default, though, so we still need to set TEXMFCNF.
1567 (substitute* texmf.cnf
1568 (("^TEXMFROOT = .*")
1569 (string-append "TEXMFROOT = " out "/share\n"))
1570 (("^TEXMF = .*")
1571 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
1572 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash")
1573 "/bin"))
1574 (for-each
1575 (cut wrap-program <>
1576 `("TEXMFCNF" ":" = (,(dirname texmf.cnf)))
1577 `("TEXMF" ":" = (,(string-append out "/share/texmf-dist"))))
1578 (find-files (string-append out "/bin") ".*"))
1579 #t))))
1580 (inputs
1581 `(("bash" ,bash)
1582 ,@(map (lambda (package)
1583 (list (package-name package) package))
1584 (append default-packages packages))))
1585 (home-page (package-home-page texlive-bin))
1586 (synopsis "Union of TeX Live packages")
1587 (description "This package provides a subset of the TeX Live
1588distribution.")
1589 (license (fold (lambda (package result)
1590 (match (package-license package)
1591 ((lst ...)
1592 (append lst result))
1593 ((? license:license? license)
1594 (cons license result))))
1595 '()
1596 (append default-packages packages)))))))
1597
9d4f8dc2
RW
1598(define-public texlive-tiny
1599 (package
1600 (inherit (texlive-union))
1601 (name "texlive-tiny")
1602 (description "This is a very limited subset of the TeX Live distribution.
1603It includes little more than the required set of LaTeX packages.")))
1604
60b5e228
RW
1605(define-public texlive-latex-amsrefs
1606 (package
1607 (name "texlive-latex-amsrefs")
1608 (version (number->string %texlive-revision))
1609 (source (origin
1610 (method svn-fetch)
1611 (uri (texlive-ref "latex" "amsrefs"))
1612 (file-name (string-append name "-" version "-checkout"))
1613 (sha256
1614 (base32
1615 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
1616 (build-system texlive-build-system)
1617 (arguments '(#:tex-directory "latex/amsrefs"))
1618 (home-page "http://www.ctan.org/pkg/amsrefs")
1619 (synopsis "LaTeX-based replacement for BibTeX")
1620 (description
1621 "Amsrefs is a LaTeX package for bibliographies that provides an archival
1622data format similar to the format of BibTeX database files, but adapted to
1623make direct processing by LaTeX easier. The package can be used either in
1624conjunction with BibTeX or as a replacement for BibTeX.")
1625 (license license:lppl1.3+)))
1626
8e732b49
RW
1627(define-public texlive-latex-blindtext
1628 (package
1629 (name "texlive-latex-blindtext")
1630 (version (number->string %texlive-revision))
1631 (source (origin
1632 (method svn-fetch)
1633 (uri (texlive-ref "latex" "blindtext"))
1634 (file-name (string-append name "-" version "-checkout"))
1635 (sha256
1636 (base32
1637 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
1638 (build-system texlive-build-system)
1639 (arguments '(#:tex-directory "latex/blindtext"))
1640 (home-page "http://www.ctan.org/pkg/blindtext")
1641 (synopsis "Producing 'blind' text for testing")
1642 (description
1643 "The package provides the commands @code{\\blindtext} and
1644@code{\\Blindtext} for creating \"blind\" text useful in testing new classes
1645and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
1646an entire random document with sections, lists, mathematics, etc. The package
1647supports three languages, @code{english}, @code{(n)german} and @code{latin};
1648the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
1649ipsum\" text, see the @code{lipsum} package).")
1650 (license license:lppl)))
1651
7cda03bd
RW
1652(define-public texlive-latex-dinbrief
1653 (package
1654 (name "texlive-latex-dinbrief")
1655 (version (number->string %texlive-revision))
1656 (source (origin
1657 (method svn-fetch)
1658 (uri (texlive-ref "latex" "dinbrief"))
1659 (file-name (string-append name "-" version "-checkout"))
1660 (sha256
1661 (base32
1662 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
1663 (build-system texlive-build-system)
1664 (arguments
1665 '(#:tex-directory "latex/dinbrief"
1666 #:phases
1667 (modify-phases %standard-phases
1668 (add-after 'unpack 'remove-generated-file
1669 (lambda _
1670 (delete-file "dinbrief.drv")
1671 #t)))))
1672 (home-page "http://www.ctan.org/pkg/dinbrief")
1673 (synopsis "German letter DIN style")
1674 (description
1675 "This package implements a document layout for writing letters according
1676to the rules of DIN (Deutsches Institut für Normung, German standardisation
1677institute). A style file for LaTeX 2.09 (with limited support of the
1678features) is part of the package. Since the letter layout is based on a
1679German standard, the user guide is written in German, but most macros have
1680English names from which the user can recognize what they are used for. In
1681addition there are example files showing how letters may be created with the
1682package.")
1683 (license license:lppl)))
1684
de224adb
RW
1685(define-public texlive-latex-draftwatermark
1686 (package
1687 (name "texlive-latex-draftwatermark")
1688 (version (number->string %texlive-revision))
1689 (source (origin
1690 (method svn-fetch)
1691 (uri (texlive-ref "latex" "draftwatermark"))
1692 (file-name (string-append name "-" version "-checkout"))
1693 (sha256
1694 (base32
1695 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
1696 (build-system texlive-build-system)
1697 (arguments '(#:tex-directory "latex/draftwatermark"))
1698 (home-page "http://www.ctan.org/pkg/draftwatermark")
1699 (synopsis "Put a grey textual watermark on document pages")
1700 (description
1701 "This package provides a means to add a textual, light grey watermark on
1702every page or on the first page of a document. Typical usage may consist in
1703writing words such as DRAFT or CONFIDENTIAL across document pages. The
1704package performs a similar function to that of @code{draftcopy}, but its
1705implementation is output device independent, and made very simple by relying
1706on everypage.")
1707 (license license:lppl1.3+)))
1708
adfa7a2a
RW
1709(define-public texlive-latex-eqparbox
1710 (package
1711 (name "texlive-latex-eqparbox")
1712 (version (number->string %texlive-revision))
1713 (source (origin
1714 (method svn-fetch)
1715 (uri (texlive-ref "latex" "eqparbox"))
1716 (file-name (string-append name "-" version "-checkout"))
1717 (sha256
1718 (base32
1719 "0pvmhsd4xmpil0m3c7qcgwilbk266mlkzv03g0jr8r3zd8jxlyzq"))))
1720 (build-system texlive-build-system)
1721 (arguments '(#:tex-directory "latex/eqparbox"))
1722 (home-page "http://www.ctan.org/pkg/eqparbox")
1723 (synopsis "Create equal-widthed parboxes")
1724 (description
1725 "LaTeX users sometimes need to ensure that two or more blocks of text
1726occupy the same amount of horizontal space on the page. To that end, the
1727@code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
1728just like @code{\\parbox}, except that instead of specifying a width, one
1729specifies a tag. All @code{eqparbox}es with the same tag---regardless of
1730where they are in the document---will stretch to fit the widest
1731@code{eqparbox} with that tag. This simple, equal-width mechanism can be used
1732for a variety of alignment purposes, as is evidenced by the examples in
1733@code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
1734also provided.")
1735 (license license:lppl1.3+)))
1736
32e623d0
RW
1737(define-public texlive-latex-expdlist
1738 (package
1739 (name "texlive-latex-expdlist")
1740 (version (number->string %texlive-revision))
1741 (source (origin
1742 (method svn-fetch)
1743 (uri (texlive-ref "latex" "expdlist"))
1744 (file-name (string-append name "-" version "-checkout"))
1745 (sha256
1746 (base32
1747 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
1748 (build-system texlive-build-system)
1749 (arguments
1750 '(#:tex-directory "latex/expdlist"
1751 #:phases
1752 (modify-phases %standard-phases
1753 (add-after 'unpack 'remove-generated-file
1754 (lambda _
1755 (for-each delete-file
1756 (find-files "." "\\.drv$"))
1757 #t)))))
1758 (home-page "http://www.ctan.org/pkg/expdlist")
1759 (synopsis "Expanded description environments")
1760 (description
1761 "The package provides additional features for the LaTeX
1762@code{description} environment, including adjustable left margin. The package
1763also allows the user to \"break\" a list (for example, to interpose a comment)
1764without affecting the structure of the list (this works for @code{itemize} and
1765@code{enumerate} lists, and numbered lists remain in sequence).")
1766 (license license:lppl)))
1767
9b416042
RW
1768(define-public texlive-latex-natbib
1769 (package
1770 (name "texlive-latex-natbib")
1771 (version (number->string %texlive-revision))
1772 (source (origin
1773 (method svn-fetch)
1774 (uri (texlive-ref "latex" "natbib"))
1775 (sha256
1776 (base32
1777 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
1778 (build-system texlive-build-system)
1779 (arguments '(#:tex-directory "latex/natbib"))
1780 (home-page "http://www.ctan.org/pkg/natbib")
1781 (synopsis "Flexible bibliography support")
1782 (description
1783 "This bundle provides a package that implements both author-year and
1784numbered references, as well as much detailed of support for other
1785bibliography use. Also provided are versions of the standard BibTeX styles
1786that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
1787@code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
1788designed from the start to be compatible with @code{natbib}.")
1789 (license license:lppl)))
1790
171160d5
RW
1791(define-public texlive-latex-seminar
1792 (package
1793 (name "texlive-latex-seminar")
1794 (version (number->string %texlive-revision))
1795 (source (origin
1796 (method svn-fetch)
1797 (uri (svn-reference
1798 (url (string-append "svn://www.tug.org/texlive/tags/"
1799 %texlive-tag "/Master/texmf-dist/"
1800 "/tex/latex/seminar"))
1801 (revision %texlive-revision)))
1802 (sha256
1803 (base32
1804 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
1805 (build-system texlive-build-system)
1806 (arguments '(#:tex-directory "latex/seminar"))
1807 (home-page "http://www.ctan.org/pkg/seminar")
1808 (synopsis "Make overhead slides")
1809 ;; TODO: This package may need fancybox and xcomment at runtime.
1810 (description
1811 "This package provides a class that produces overhead
1812slides (transparencies), with many facilities. Seminar is not nowadays
1813reckoned a good basis for a presentation — users are advised to use more
1814recent classes such as powerdot or beamer, both of which are tuned to
181521st-century presentation styles.")
1816 (license license:lppl1.2+)))
1817
588b5e96
RW
1818(define-public texlive-latex-g-brief
1819 (package
1820 (name "texlive-latex-g-brief")
1821 (version (number->string %texlive-revision))
1822 (source (origin
1823 (method svn-fetch)
1824 (uri (texlive-ref "latex" "g-brief"))
1825 (file-name (string-append name "-" version "-checkout"))
1826 (sha256
1827 (base32
1828 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
1829 (build-system texlive-build-system)
1830 (arguments
1831 '(#:tex-directory "latex/g-brief"
1832 #:phases
1833 (modify-phases %standard-phases
1834 (add-after 'unpack 'remove-generated-file
1835 (lambda _
1836 (delete-file "g-brief.drv")
1837 #t)))))
1838 (home-page "http://www.ctan.org/pkg/g-brief")
1839 (synopsis "Letter document class")
1840 (description
1841 "This package is designed for formatting formless letters in German; it
1842can also be used for English (by those who can read the documentation). There
1843are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
1844\"old\" and a \"new\" version of g-brief.")
1845 (license license:lppl)))
1846
9b4d5c09
RW
1847(define-public texlive-latex-galois
1848 (package
1849 (name "texlive-latex-galois")
1850 (version (number->string %texlive-revision))
1851 (source (origin
1852 (method svn-fetch)
1853 (uri (texlive-ref "latex" "galois"))
1854 (file-name (string-append name "-" version "-checkout"))
1855 (sha256
1856 (base32
1857 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
1858 (build-system texlive-build-system)
1859 (arguments '(#:tex-directory "latex/galois"))
1860 (home-page "http://www.ctan.org/pkg/galois")
1861 (synopsis "Typeset Galois connections")
1862 (description
1863 "The package deals with connections in two-dimensional style, optionally
1864in colour.")
1865 (license license:lppl)))
1866
5f691e2e
RW
1867(define-public texlive-latex-gcite
1868 (package
1869 (name "texlive-latex-gcite")
1870 (version (number->string %texlive-revision))
1871 (source (origin
1872 (method svn-fetch)
1873 (uri (texlive-ref "latex" "gcite"))
1874 (file-name (string-append name "-" version "-checkout"))
1875 (sha256
1876 (base32
1877 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
1878 (build-system texlive-build-system)
1879 (arguments '(#:tex-directory "latex/gcite"))
1880 (home-page "http://www.ctan.org/pkg/gcite")
1881 (synopsis "Citations in a reader-friendly style")
1882 (description
1883 "The package allows citations in the German style, which is considered by
1884many to be particularly reader-friendly. The citation provides a small amount
1885of bibliographic information in a footnote on the page where each citation is
1886made. It combines a desire to eliminate unnecessary page-turning with the
1887look-up efficiency afforded by numeric citations. The package makes use of
1888BibLaTeX, and is considered experimental.")
1889 (license license:lppl1.3+)))
1890
f47d1a52
RW
1891(define-public texlive-latex-geometry
1892 (package
1893 (name "texlive-latex-geometry")
1894 (version (number->string %texlive-revision))
1895 (source (origin
1896 (method svn-fetch)
1897 (uri (texlive-ref "latex" "geometry"))
1898 (file-name (string-append name "-" version "-checkout"))
1899 (sha256
1900 (base32
1901 "1r2kfcwclg33yk5z8mvlagwxj7nr1mc3w4bdpmhrwv6dn8mrbvw8"))))
1902 (build-system texlive-build-system)
1903 (arguments '(#:tex-directory "latex/geometry"))
1904 (home-page "http://www.ctan.org/pkg/geometry")
1905 (synopsis "Flexible and complete interface to document dimensions")
1906 (description
1907 "This package provides an easy and flexible user interface to customize
1908page layout, implementing auto-centering and auto-balancing mechanisms so that
1909the users have only to give the least description for the page layout. The
1910package knows about all the standard paper sizes, so that the user need not
1911know what the nominal \"real\" dimensions of the paper are, just its standard
1912name (such as a4, letter, etc.). An important feature is the package's
1913ability to communicate the paper size it's set up to the output.")
1914 (license license:lppl)))
1915
9f86ef85
RW
1916(define-public texlive-latex-hyperref
1917 (package
1918 (name "texlive-latex-hyperref")
1919 (version (number->string %texlive-revision))
1920 (source (origin
1921 (method svn-fetch)
1922 (uri (texlive-ref "latex" "hyperref"))
1923 (sha256
1924 (base32
1925 "03arf3xvz1jsbvlpgc5qxbxbl9wmk8k09cn6b8gv9pzgpjy4vx4j"))))
1926 (build-system texlive-build-system)
1927 (arguments
1928 '(#:tex-directory "latex/hyperref"
1929 #:phases
1930 (modify-phases %standard-phases
1931 (add-after 'unpack 'remove-hluatex.def
1932 (lambda _
1933 ;; This depends on hluatex.dtx, which does not exist and is
1934 ;; nowhere to be found in the sources of the TeX Live
1935 ;; distribution.
1936 (substitute* "hyperref.ins"
1937 (("\\\\file\\{hluatex.def\\}.*") ""))
1938 #t)))))
1939 ;; The package depends on the kvoptions, ltxcmds, and refcount packages,
1940 ;; which are part of the oberdiek bundle.
1941 (inputs
1942 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek)))
1943 (home-page "http://www.ctan.org/pkg/hyperref")
1944 (synopsis "Extensive support for hypertext in LaTeX")
1945 (description
1946 "The @code{hyperref} package is used to handle cross-referencing commands
1947in LaTeX to produce hypertext links in the document. The package provides
1948backends for the @code{\\special} set defined for HyperTeX DVI processors; for
1949embedded @code{pdfmark} commands for processing by Acrobat
1950Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
1951for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
1952pdf and HTML backends. The package is distributed with the @code{backref} and
1953@code{nameref} packages, which make use of the facilities of @code{hyperref}.")
1954 (license license:lppl1.3+)))
1955
80bf1f21
RW
1956(define-public texlive-latex-polyglossia
1957 (package
1958 (name "texlive-latex-polyglossia")
1959 (version (number->string %texlive-revision))
1960 (source (origin
1961 (method svn-fetch)
1962 (uri (texlive-ref "latex" "polyglossia"))
1963 (file-name (string-append name "-" version "-checkout"))
1964 (sha256
1965 (base32
1966 "09mvszd5qgqg4cfglpj5qxyzjz190ppb9p8gnsnjydwp1akvhayf"))))
1967 (build-system texlive-build-system)
1968 (arguments '(#:tex-directory "latex/polyglossia"))
1969 (home-page "http://www.ctan.org/pkg/polyglossia")
1970 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
1971 (description
1972 "This package provides a complete Babel replacement for users of LuaLaTeX
1973and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
1974 (license license:lppl1.3+)))
1975
84f8035a
RW
1976(define-public texlive-latex-supertabular
1977 (package
1978 (name "texlive-latex-supertabular")
1979 (version (number->string %texlive-revision))
1980 (source (origin
1981 (method svn-fetch)
1982 (uri (texlive-ref "latex" "supertabular"))
1983 (file-name (string-append name "-" version "-checkout"))
1984 (sha256
1985 (base32
1986 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
1987 (build-system texlive-build-system)
1988 (arguments '(#:tex-directory "latex/supertabular"))
1989 (home-page "http://www.ctan.org/pkg/supertabular")
1990 (synopsis "Multi-page tables package")
1991 (description
1992 "This package was a predecessor of @code{longtable}; the newer
1993package (designed on quite different principles) is easier to use and more
1994flexible, in many cases, but supertabular retains its usefulness in a few
1995situations where longtable has problems.")
1996 (license license:lppl1.3+)))
1997
a0aa6b59
RW
1998(define-public texlive-tex-texinfo
1999 (package
2000 (name "texlive-tex-texinfo")
2001 (version (number->string %texlive-revision))
2002 (source (origin
2003 (method svn-fetch)
2004 (uri (svn-reference
2005 (url (string-append "svn://www.tug.org/texlive/tags/"
2006 %texlive-tag "/Master/texmf-dist/"
2007 "/tex/texinfo"))
2008 (revision %texlive-revision)))
2009 (sha256
2010 (base32
2011 "09zj2w3lx0y6i2syfjjgizahf86z301dw8p37ln6syfhqhzqdz46"))))
2012 (build-system trivial-build-system)
2013 (arguments
2014 `(#:modules ((guix build utils))
2015 #:builder
2016 (begin
2017 (use-modules (guix build utils))
2018 (let ((target (string-append (assoc-ref %outputs "out")
2019 "/share/texmf-dist/tex/texinfo")))
2020 (mkdir-p target)
2021 (copy-recursively (assoc-ref %build-inputs "source") target)
2022 #t))))
2023 (home-page "http://www.ctan.org/pkg/texinfo")
2024 (synopsis "TeX macros to handle Texinfo files")
2025 (description
2026 "Texinfo is the preferred format for documentation in the GNU project;
2027the format may be used to produce online or printed output from a single
2028source. The Texinfo macros may be used to produce printable output using TeX;
2029other programs in the distribution offer online interactive use (with
2030hypertext linkages in some cases).")
2031 (license license:gpl3+)))
2032
bda61541
RW
2033(define-public texlive-latex-anysize
2034 (package
2035 (name "texlive-latex-anysize")
2036 (version (number->string %texlive-revision))
2037 (source (origin
2038 (method svn-fetch)
2039 (uri (svn-reference
2040 (url (string-append "svn://www.tug.org/texlive/tags/"
2041 %texlive-tag "/Master/texmf-dist/"
2042 "/tex/latex/anysize"))
2043 (revision %texlive-revision)))
2044 (sha256
2045 (base32
2046 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
2047 (build-system trivial-build-system)
2048 (arguments
2049 `(#:modules ((guix build utils))
2050 #:builder
2051 (begin
2052 (use-modules (guix build utils))
2053 (let ((target (string-append (assoc-ref %outputs "out")
2054 "/share/texmf-dist/tex/latex/anysize")))
2055 (mkdir-p target)
2056 (copy-recursively (assoc-ref %build-inputs "source") target)
2057 #t))))
2058 (home-page "http://www.ctan.org/pkg/anysize")
2059 (synopsis "Simple package to set up document margins")
2060 (description
2061 "This is a simple package to set up document margins. This package is
2062considered obsolete; alternatives are the @code{typearea} package from the
2063@code{koma-script} bundle, or the @code{geometry} package.")
2064 (license license:public-domain)))
2065
1d3be84e
RW
2066(define-public texlive-latex-appendix
2067 (package
2068 (name "texlive-latex-appendix")
2069 (version (number->string %texlive-revision))
2070 (source (origin
2071 (method svn-fetch)
2072 (uri (texlive-ref "latex" "appendix"))
2073 (sha256
2074 (base32
2075 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
2076 (build-system texlive-build-system)
2077 (arguments '(#:tex-directory "latex/appendix"))
2078 (home-page "http://www.ctan.org/pkg/appendix")
2079 (synopsis "Extra control of appendices")
2080 (description
2081 "The appendix package provides various ways of formatting the titles of
2082appendices. Also (sub)appendices environments are provided that can be used,
2083for example, for per chapter/section appendices. An @code{appendices}
2084environment is provided which can be used instead of the @code{\\appendix}
2085command.")
2086 (license license:lppl)))
2087
b92ac281
RW
2088(define-public texlive-latex-changebar
2089 (package
2090 (name "texlive-latex-changebar")
2091 (version (number->string %texlive-revision))
2092 (source (origin
2093 (method svn-fetch)
2094 (uri (texlive-ref "latex" "changebar"))
2095 (sha256
2096 (base32
2097 "1ik4m8pzfsn1grlda6fniqqfwmgj7rfxwg63jdw0p0qv002vc7ik"))))
2098 (build-system texlive-build-system)
2099 (arguments '(#:tex-directory "latex/changebar"))
2100 (home-page "http://www.ctan.org/pkg/changebar")
2101 (synopsis "Generate changebars in LaTeX documents")
2102 (description
2103 "Identify areas of text to be marked with changebars with the
2104@code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
2105package uses 'drivers' to place the bars; the available drivers can work with
2106@code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
2107drivers, and VTeX and pdfTeX.")
2108 (license license:lppl)))
2109
e003a5f0
RW
2110(define-public texlive-latex-colortbl
2111 (package
2112 (name "texlive-latex-colortbl")
2113 (version (number->string %texlive-revision))
2114 (source (origin
2115 (method svn-fetch)
2116 (uri (texlive-ref "latex" "colortbl"))
2117 (sha256
2118 (base32
2119 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
2120 (build-system texlive-build-system)
2121 (arguments '(#:tex-directory "latex/colortbl"))
2122 (home-page "http://www.ctan.org/pkg/colortbl")
2123 (synopsis "Add colour to LaTeX tables")
2124 (description
2125 "This package allows rows, columns, and even individual cells in LaTeX
2126tables to be coloured.")
2127 (license license:lppl)))
2128
36ce05ff
RW
2129(define-public texlive-latex-fancybox
2130 (package
2131 (name "texlive-latex-fancybox")
2132 (version (number->string %texlive-revision))
2133 (source (origin
2134 (method svn-fetch)
2135 (uri (svn-reference
2136 (url (string-append "svn://www.tug.org/texlive/tags/"
2137 %texlive-tag "/Master/texmf-dist/"
2138 "/tex/latex/fancybox"))
2139 (revision %texlive-revision)))
2140 (sha256
2141 (base32
2142 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
2143 (build-system trivial-build-system)
2144 (arguments
2145 `(#:modules ((guix build utils))
2146 #:builder
2147 (begin
2148 (use-modules (guix build utils))
2149 (let ((target (string-append (assoc-ref %outputs "out")
2150 "/share/texmf-dist/tex/latex/fancybox")))
2151 (mkdir-p target)
2152 (copy-recursively (assoc-ref %build-inputs "source") target)
2153 #t))))
2154 (home-page "http://www.ctan.org/pkg/fancybox")
2155 (synopsis "Variants of \\fbox and other games with boxes")
2156 (description
2157 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
2158@code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
2159using box macros and flexible verbatim macros. You can box mathematics,
2160floats, center, flushleft, and flushright, lists, and pages.")
2161 (license license:lppl1.2+)))
2162
20282111
RW
2163(define-public texlive-latex-fancyhdr
2164 (package
2165 (name "texlive-latex-fancyhdr")
2166 (version (number->string %texlive-revision))
2167 (source (origin
2168 (method svn-fetch)
2169 (uri (svn-reference
2170 (url (string-append "svn://www.tug.org/texlive/tags/"
2171 %texlive-tag "/Master/texmf-dist/"
2172 "/tex/latex/fancyhdr"))
2173 (revision %texlive-revision)))
2174 (sha256
2175 (base32
2176 "04h430agf8aj7ziwyb46xpk95c605rjk1wzhr63m6ylipihidlgw"))))
2177 (build-system trivial-build-system)
2178 (arguments
2179 `(#:modules ((guix build utils))
2180 #:builder
2181 (begin
2182 (use-modules (guix build utils))
2183 (let ((target (string-append (assoc-ref %outputs "out")
2184 "/share/texmf-dist/tex/latex/fancyhdr")))
2185 (mkdir-p target)
2186 (copy-recursively (assoc-ref %build-inputs "source") target)
2187 #t))))
2188 (home-page "http://www.ctan.org/pkg/fancyhdr")
2189 (synopsis "Extensive control of page headers and footers in LaTeX2e")
2190 (description
2191 "The package provides extensive facilities, both for constructing headers
2192and footers, and for controlling their use (for example, at times when LaTeX
2193would automatically change the heading style in use).")
2194 (license license:lppl)))
2195
18ce3437
RW
2196(define-public texlive-latex-fancyvrb
2197 (package
2198 (name "texlive-latex-fancyvrb")
2199 (version (number->string %texlive-revision))
2200 (source (origin
2201 (method svn-fetch)
2202 (uri (texlive-ref "latex" "fancyvrb"))
2203 (sha256
2204 (base32
2205 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
2206 (build-system texlive-build-system)
2207 (arguments
2208 '(#:build-targets '("fancyvrb.ins") ; fvrb-ex.ins cannot be built
2209 #:tex-directory "latex/fancyvrb"))
2210 (home-page "http://www.ctan.org/pkg/fancyvrb")
2211 (synopsis "Sophisticated verbatim text")
2212 (description
2213 "This package provides tools for flexible handling of verbatim text
2214including: verbatim commands in footnotes; a variety of verbatim environments
2215with many parameters; ability to define new customized verbatim environments;
2216save and restore verbatim text and environments; write and read files in
2217verbatim mode; build \"example\" environments (showing both result and
2218verbatim source).")
2219 (license license:lppl1.0+)))
2220
df2b9bb4
RW
2221(define-public texlive-latex-float
2222 (package
2223 (name "texlive-latex-float")
2224 (version (number->string %texlive-revision))
2225 (source (origin
2226 (method svn-fetch)
2227 (uri (texlive-ref "latex" "float"))
2228 (sha256
2229 (base32
2230 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
2231 (build-system texlive-build-system)
2232 (arguments '(#:tex-directory "latex/float"))
2233 (home-page "http://www.ctan.org/pkg/float")
2234 (synopsis "Improved interface for floating objects")
2235 (description
2236 "This package improves the interface for defining floating objects such
2237as figures and tables. It introduces the boxed float, the ruled float and the
2238plaintop float. You can define your own floats and improve the behaviour of
2239the old ones. The package also provides the @code{H} float modifier option of
2240the obsolete @code{here} package. You can select this as automatic default
2241with @code{\\floatplacement{figure}{H}}.")
2242 (license license:lppl)))
2243
3921bc7c
RW
2244(define-public texlive-latex-footmisc
2245 (package
2246 (name "texlive-latex-footmisc")
2247 (version (number->string %texlive-revision))
2248 (source (origin
2249 (method svn-fetch)
2250 (uri (texlive-ref "latex" "footmisc"))
2251 (sha256
2252 (base32
2253 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
2254 (build-system texlive-build-system)
2255 (arguments '(#:tex-directory "latex/footmisc"))
2256 (home-page "http://www.ctan.org/pkg/footmisc")
2257 (synopsis "Range of footnote options")
2258 (description
2259 "This is a collection of ways to change the typesetting of footnotes.
2260The package provides means of changing the layout of the footnotes themselves,
2261a way to number footnotes per page, to make footnotes disappear in a
2262\"moving\" argument, and to deal with multiple references to footnotes from
2263the same place. The package also has a range of techniques for labelling
2264footnotes with symbols rather than numbers.")
2265 (license license:lppl1.3+)))
2266
b2bc1daf
RW
2267(define-public texlive-latex-listings
2268 (package
2269 (name "texlive-latex-listings")
2270 (version (number->string %texlive-revision))
2271 (source (origin
2272 (method svn-fetch)
2273 (uri (texlive-ref "latex" "listings"))
2274 (sha256
2275 (base32
2276 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
2277 (build-system texlive-build-system)
2278 (arguments
2279 '(#:tex-directory "latex/listings"
2280 #:build-targets '("listings.ins")))
2281 (home-page "http://www.ctan.org/pkg/listings")
2282 (synopsis "Typeset source code listings using LaTeX")
2283 (description
2284 "The package enables the user to typeset programs (programming code)
2285within LaTeX; the source code is read directly by TeX---no front-end processor
2286is needed. Keywords, comments and strings can be typeset using different
2287styles. Support for @code{hyperref} is provided.")
2288 (license license:lppl1.3+)))
2289
02fd07b3
RW
2290(define-public texlive-latex-jknapltx
2291 (package
2292 (name "texlive-latex-jknapltx")
2293 (version (number->string %texlive-revision))
2294 (source (origin
2295 (method svn-fetch)
2296 (uri (svn-reference
2297 (url (string-append "svn://www.tug.org/texlive/tags/"
2298 %texlive-tag "/Master/texmf-dist/"
2299 "/tex/latex/jknapltx"))
2300 (revision %texlive-revision)))
2301 (sha256
2302 (base32
2303 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
2304 (build-system trivial-build-system)
2305 (arguments
2306 `(#:modules ((guix build utils))
2307 #:builder
2308 (begin
2309 (use-modules (guix build utils))
2310 (let ((target (string-append (assoc-ref %outputs "out")
2311 "/share/texmf-dist/tex/latex/jknapltx")))
2312 (mkdir-p target)
2313 (copy-recursively (assoc-ref %build-inputs "source") target)
2314 #t))))
2315 (home-page "http://www.ctan.org/pkg/jknappen")
2316 (synopsis "Miscellaneous packages by Joerg Knappen")
2317 (description
2318 "This package provides miscellaneous macros by Joerg Knappen, including:
2319represent counters in greek; Maxwell's non-commutative division;
2320@code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
2321@code{inputenc} definition files that allow verbatim input in the respective
2322ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
2323extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
2324transliterate semitic languages; patches to make (La)TeX formulae embeddable
2325in SGML; use maths minus in text as appropriate; simple Young tableaux.")
2326 (license license:gpl2)))
2327
83c830d1
RW
2328(define-public texlive-fonts-ec
2329 (package
2330 (name "texlive-fonts-ec")
2331 (version (number->string %texlive-revision))
2332 (source (origin
2333 (method svn-fetch)
2334 (uri (svn-reference
2335 (url (string-append "svn://www.tug.org/texlive/tags/"
2336 %texlive-tag "/Master/texmf-dist/"
2337 "/fonts/source/jknappen/ec/"))
2338 (revision %texlive-revision)))
2339 (sha256
2340 (base32
2341 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
2342 (build-system gnu-build-system)
2343 (arguments
2344 `(#:modules ((guix build gnu-build-system)
2345 (guix build utils)
2346 (srfi srfi-1)
2347 (srfi srfi-26))
2348 #:tests? #f ; no tests
2349 #:phases
2350 (modify-phases %standard-phases
2351 (delete 'configure)
2352 (replace 'build
2353 (lambda* (#:key inputs #:allow-other-keys)
2354 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
2355 ;; Tell mf where to find mf.base
2356 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
2357 ;; Tell mf where to look for source files
2358 (setenv "MFINPUTS"
2359 (string-append (getcwd) ":"
2360 mf "/share/texmf-dist/metafont/base:"
2361 (assoc-ref inputs "texlive-fonts-cm")
2362 "/share/texmf-dist/fonts/source/public/cm")))
2363 (mkdir "build")
2364 (every (lambda (font)
2365 (format #t "building font ~a\n" font)
2366 (zero? (system* "mf" "-progname=mf"
2367 "-output-directory=build"
2368 (string-append "\\"
2369 "mode:=ljfour; "
2370 "mag:=1; "
2371 "batchmode; "
2372 "input " (basename font ".mf")))))
2373 (find-files "." "[0-9]+\\.mf$"))))
2374 (replace 'install
2375 (lambda* (#:key outputs #:allow-other-keys)
2376 (let* ((out (assoc-ref outputs "out"))
2377 (tfm (string-append
2378 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
2379 (mf (string-append
2380 out "/share/texmf-dist/fonts/source/jknappen/ec")))
2381 (for-each (cut install-file <> tfm)
2382 (find-files "build" "\\.*"))
2383 (for-each (cut install-file <> mf)
2384 (find-files "." "\\.mf"))
2385 #t))))))
2386 (native-inputs
2387 `(("texlive-bin" ,texlive-bin)
2388 ("texlive-metafont-base" ,texlive-metafont-base)
2389 ("texlive-fonts-cm" ,texlive-fonts-cm)))
2390 (home-page "http://www.ctan.org/pkg/ec")
2391 (synopsis "Computer modern fonts in T1 and TS1 encodings")
2392 (description
2393 "The EC fonts are European Computer Modern Fonts, supporting the complete
2394LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
2395These fonts are intended to be stable with no changes being made to the tfm
2396files. The set also contains a Text Companion Symbol font, called @code{tc},
2397featuring many useful characters needed in text typesetting, for example
2398oldstyle digits, currency symbols (including the newly created Euro symbol),
2399the permille sign, copyright, trade mark and servicemark as well as a copyleft
2400sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
2401EC fonts supersede the preliminary version released as the DC fonts. The
2402fonts are available in (traced) Adobe Type 1 format, as part of the
2403@code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
2404set, Latin Modern, is not actually a direct development of the EC set, and
2405differs from the EC in a number of particulars.")
2406 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
2407texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
2408
f45a5520
RW
2409(define-public texlive-fonts-rsfs
2410 (package
2411 (name "texlive-fonts-rsfs")
2412 (version (number->string %texlive-revision))
2413 (source (origin
2414 (method svn-fetch)
2415 (uri (svn-reference
2416 (url (string-append "svn://www.tug.org/texlive/tags/"
2417 %texlive-tag "/Master/texmf-dist/"
2418 "/fonts/source/public/rsfs/"))
2419 (revision %texlive-revision)))
2420 (sha256
2421 (base32
2422 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
2423 (build-system gnu-build-system)
2424 (arguments
2425 `(#:modules ((guix build gnu-build-system)
2426 (guix build utils)
2427 (srfi srfi-1)
2428 (srfi srfi-26))
2429 #:tests? #f ; no tests
2430 #:phases
2431 (modify-phases %standard-phases
2432 (delete 'configure)
2433 (replace 'build
2434 (lambda* (#:key inputs #:allow-other-keys)
2435 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
2436 ;; Tell mf where to find mf.base
2437 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
2438 ;; Tell mf where to look for source files
2439 (setenv "MFINPUTS"
2440 (string-append (getcwd) ":"
2441 mf "/share/texmf-dist/metafont/base:"
2442 (assoc-ref inputs "texlive-fonts-cm")
2443 "/share/texmf-dist/fonts/source/public/cm")))
2444 (mkdir "build")
2445 (every (lambda (font)
2446 (format #t "building font ~a\n" font)
2447 (zero? (system* "mf" "-progname=mf"
2448 "-output-directory=build"
2449 (string-append "\\"
2450 "mode:=ljfour; "
2451 "mag:=1; "
2452 "batchmode; "
2453 "input " (basename font ".mf")))))
2454 (find-files "." "[0-9]+\\.mf$"))))
2455 (replace 'install
2456 (lambda* (#:key outputs #:allow-other-keys)
2457 (let* ((out (assoc-ref outputs "out"))
2458 (tfm (string-append
2459 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
2460 (mf (string-append
2461 out "/share/texmf-dist/fonts/source/public/rsfs")))
2462 (for-each (cut install-file <> tfm)
2463 (find-files "build" "\\.*"))
2464 (for-each (cut install-file <> mf)
2465 (find-files "." "\\.mf"))
2466 #t))))))
2467 (native-inputs
2468 `(("texlive-bin" ,texlive-bin)
2469 ("texlive-metafont-base" ,texlive-metafont-base)
2470 ("texlive-fonts-cm" ,texlive-fonts-cm)))
2471 (home-page "http://www.ctan.org/pkg/rsfs")
2472 (synopsis "Ralph Smith's Formal Script font")
2473 (description
2474 "The fonts provide uppercase formal script letters for use as symbols in
2475scientific and mathematical typesetting (in contrast to the informal script
2476fonts such as that used for the calligraphic symbols in the TeX maths symbol
2477font). The fonts are provided as Metafont source, and as derived Adobe Type 1
2478format. LaTeX support, for using these fonts in mathematics, is available via
2479one of the packages @code{calrsfs} and @code{mathrsfs}.")
2480 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
2481
1562763c
RW
2482(define-public texlive-latex-eso-pic
2483 (package
2484 (name "texlive-latex-eso-pic")
2485 (version (number->string %texlive-revision))
2486 (source (origin
2487 (method svn-fetch)
2488 (uri (texlive-ref "latex" "eso-pic"))
2489 (sha256
2490 (base32
2491 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
2492 (build-system texlive-build-system)
2493 (arguments '(#:tex-directory "latex/eso-pic"))
2494 (home-page "http://www.ctan.org/pkg/eso-pic")
2495 (synopsis "Add picture commands (or backgrounds) to every page")
2496 (description
2497 "The package adds one or more user commands to LaTeX's @code{shipout}
2498routine, which may be used to place the output at fixed positions. The
2499@code{grid} option may be used to find the correct places.")
2500 (license license:lppl1.3+)))
2501
ae3779d5
RW
2502(define-public texlive-latex-eepic
2503 (package
2504 (name "texlive-latex-eepic")
2505 (version (number->string %texlive-revision))
2506 (source (origin
2507 (method svn-fetch)
2508 (uri (svn-reference
2509 (url (string-append "svn://www.tug.org/texlive/tags/"
2510 %texlive-tag "/Master/texmf-dist/"
2511 "/tex/latex/eepic"))
2512 (revision %texlive-revision)))
2513 (sha256
2514 (base32
2515 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
2516 (build-system trivial-build-system)
2517 (arguments
2518 `(#:modules ((guix build utils))
2519 #:builder
2520 (begin
2521 (use-modules (guix build utils))
2522 (let ((target (string-append (assoc-ref %outputs "out")
2523 "/share/texmf-dist/tex/latex/eepic")))
2524 (mkdir-p target)
2525 (copy-recursively (assoc-ref %build-inputs "source") target)
2526 #t))))
2527 (home-page "http://www.ctan.org/pkg/eepic")
2528 (synopsis "Extensions to epic and the LaTeX drawing tools")
2529 (description
2530 "Extensions to @code{epic} and the LaTeX picture drawing environment,
2531include the drawing of lines at any slope, the drawing of circles in any
2532radii, and the drawing of dotted and dashed lines much faster with much less
2533TeX memory, and providing several new commands for drawing ellipses, arcs,
2534splines, and filled circles and ellipses. The package uses @code{tpic}
2535@code{\\special} commands.")
2536 (license license:public-domain)))
2537
ecffeeb5
RW
2538(define-public texlive-latex-multirow
2539 (package
2540 (name "texlive-latex-multirow")
2541 (version (number->string %texlive-revision))
2542 (source (origin
2543 (method svn-fetch)
2544 (uri (texlive-ref "latex" "multirow"))
2545 (sha256
2546 (base32
2547 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
2548 (build-system texlive-build-system)
2549 (arguments '(#:tex-directory "latex/multirow"))
2550 (home-page "http://www.ctan.org/pkg/multirow")
2551 (synopsis "Create tabular cells spanning multiple rows")
2552 (description
2553 "The package provides tools for creating tabular cells spanning multiple
2554rows. It has a lot of flexibility, including an option for specifying an
2555entry at the \"natural\" width of its text.")
2556 (license license:lppl1.3+)))
2557
da38b235
RW
2558(define-public texlive-latex-overpic
2559 (package
2560 (name "texlive-latex-overpic")
2561 (version (number->string %texlive-revision))
2562 (source (origin
2563 (method svn-fetch)
2564 (uri (svn-reference
2565 (url (string-append "svn://www.tug.org/texlive/tags/"
2566 %texlive-tag "/Master/texmf-dist/"
2567 "/tex/latex/overpic"))
2568 (revision %texlive-revision)))
2569 (sha256
2570 (base32
2571 "0m29q9qdb00558b7g2i7iw6w62n5s46yx81j8m99qkv77magk4fm"))))
2572 (build-system trivial-build-system)
2573 (arguments
2574 `(#:modules ((guix build utils))
2575 #:builder
2576 (begin
2577 (use-modules (guix build utils))
2578 (let ((target (string-append (assoc-ref %outputs "out")
2579 "/share/texmf-dist/tex/latex/overpic")))
2580 (mkdir-p target)
2581 (copy-recursively (assoc-ref %build-inputs "source") target)
2582 #t))))
2583 (home-page "http://www.ctan.org/pkg/overpic")
2584 (synopsis "Combine LaTeX commands over included graphics")
2585 (description
2586 "The @code{overpic} environment is a cross between the LaTeX
2587@code{picture} environment and the @code{\\includegraphics} command of
2588@code{graphicx}. The resulting picture environment has the same dimensions as
2589the included graphic. LaTeX commands can be placed on the graphic at defined
2590positions; a grid for orientation is available.")
2591 (license license:lppl1.0+)))
2592
adc02c70
RW
2593(define-public texlive-latex-pdfpages
2594 (package
2595 (name "texlive-latex-pdfpages")
2596 (version (number->string %texlive-revision))
2597 (source (origin
2598 (method svn-fetch)
2599 (uri (texlive-ref "latex" "pdfpages"))
2600 (sha256
2601 (base32
2602 "06p5smfq66559ppdnmkl3hp8534x84ywbscimsiir4gllpya3i9h"))))
2603 (build-system texlive-build-system)
2604 (arguments '(#:tex-directory "latex/pdfpages"))
2605 (home-page "http://www.ctan.org/pkg/pdfpages")
2606 (synopsis "Include PDF documents in LaTeX")
2607 (description
2608 "This package simplifies the inclusion of external multi-page PDF
2609documents in LaTeX documents. Pages may be freely selected and it is possible
2610to put several logical pages onto each sheet of paper. Furthermore a lot of
2611hypertext features like hyperlinks and article threads are provided. The
2612package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
2613use this package to insert PostScript files, in addition to PDF files.")
2614 (license license:lppl1.3+)))
2615
d8fef6ea
RW
2616(define-public texlive-fonts-stmaryrd
2617 (package
2618 (name "texlive-fonts-stmaryrd")
2619 (version (number->string %texlive-revision))
2620 (source (origin
2621 (method svn-fetch)
2622 (uri (texlive-ref "fonts" "stmaryrd"))
2623 (sha256
2624 (base32
2625 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
2626 (build-system texlive-build-system)
2627 (arguments
2628 '(#:tex-directory "latex/stmaryrd"
2629 #:phases
2630 (modify-phases %standard-phases
2631 (add-after 'configure 'patch-ins
2632 (lambda _
2633 (substitute* "stmaryrd.ins"
2634 (("^%% LaTeX2e.*") "\\input docstrip\n")
2635 (("fontdef\\}\\}" line)
2636 (string-append line "\n\\endbatchfile")))
2637 #t)))))
2638 (home-page "http://www.ctan.org/pkg/stmaryrd")
2639 (synopsis "St Mary Road symbols for theoretical computer science")
2640 (description
2641 "The fonts were originally distributed as Metafont sources only, but
2642Adobe Type 1 versions are also now available. Macro support is provided for
2643use under LaTeX; the package supports the @code{only} option (provided by the
2644@code{somedefs} package) to restrict what is loaded, for those who don't need
2645the whole font.")
2646 (license license:lppl)))
2647
2db3a034
RW
2648(define-public texlive-latex-subfigure
2649 (package
2650 (name "texlive-latex-subfigure")
2651 (version (number->string %texlive-revision))
2652 (source (origin
2653 (method svn-fetch)
2654 (uri (texlive-ref "latex" "subfigure"))
2655 (sha256
2656 (base32
2657 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
2658 (build-system texlive-build-system)
2659 (arguments '(#:tex-directory "latex/subfigure"))
2660 (home-page "http://www.ctan.org/pkg/subfigure")
2661 (synopsis "Figures divided into subfigures")
2662 (description
2663 "This (deprecated) package provides support for the manipulation and
2664reference of small or \"sub\" figures and tables within a single figure or
2665table environment. It is convenient to use this package when your subfigures
2666are to be separately captioned, referenced, or are to be included in the
2667List-of-Figures. A new @code{\\subfigure} command is introduced which can be
2668used inside a figure environment for each subfigure. An optional first
2669argument is used as the caption for that subfigure. The package is now
2670considered obsolete: it was superseded by @code{subfig}, but users may find
2671the more recent @code{subcaption} package more satisfactory.")
2672 (license license:lppl)))
2673
acc620d6
RW
2674(define-public texlive-latex-titlesec
2675 (package
2676 (name "texlive-latex-titlesec")
2677 (version (number->string %texlive-revision))
2678 (source (origin
2679 (method svn-fetch)
2680 (uri (svn-reference
2681 (url (string-append "svn://www.tug.org/texlive/tags/"
2682 %texlive-tag "/Master/texmf-dist/"
2683 "/tex/latex/titlesec"))
2684 (revision %texlive-revision)))
2685 (sha256
2686 (base32
2687 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
2688 (build-system trivial-build-system)
2689 (arguments
2690 `(#:modules ((guix build utils))
2691 #:builder
2692 (begin
2693 (use-modules (guix build utils))
2694 (let ((target (string-append (assoc-ref %outputs "out")
2695 "/share/texmf-dist/tex/latex/titlesec")))
2696 (mkdir-p target)
2697 (copy-recursively (assoc-ref %build-inputs "source") target)
2698 #t))))
2699 (home-page "http://www.ctan.org/pkg/titlesec")
2700 (synopsis "Select alternative section titles")
2701 (description
2702 "This package provides an interface to sectioning commands for selection
2703from various title styles, e.g. for marginal titles and to change the font of
2704all headings with a single command, also providing simple one-step page
2705styles. It also includes a package to change the page styles when there are
2706floats in a page. You may assign headers/footers to individual floats, too.")
2707 (license license:lppl)))
2708
406af0d6
RW
2709(define-public texlive-latex-lh
2710 (package
2711 (name "texlive-latex-lh")
2712 (version (number->string %texlive-revision))
2713 (source (origin
2714 (method svn-fetch)
2715 (uri (texlive-ref "latex" "lh"))
2716 (sha256
2717 (base32
2718 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
2719 (build-system texlive-build-system)
2720 (arguments '(#:tex-directory "latex/lh"))
2721 (home-page "http://www.ctan.org/pkg/lh")
2722 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
2723 (description
2724 "The LH fonts address the problem of the wide variety of alphabets that
2725are written with Cyrillic-style characters. The fonts are the original basis
2726of the set of T2* and X2 encodings that are now used when LaTeX users need to
2727write in Cyrillic languages. Macro support in standard LaTeX encodings is
2728offered through the latex-cyrillic and t2 bundles, and the package itself
2729offers support for other (more traditional) encodings. The fonts, in the
2730standard T2* and X2 encodings are available in Adobe Type 1 format, in the
2731CM-Super family of fonts. The package also offers its own LaTeX support for
2732OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
2733 (license license:lppl)))
2734
44436def
RW
2735(define-public texlive-metapost
2736 (package
2737 (name "texlive-metapost")
2738 (version (number->string %texlive-revision))
2739 (source (origin
2740 (method svn-fetch)
2741 (uri (svn-reference
2742 (url (string-append "svn://www.tug.org/texlive/tags/"
2743 %texlive-tag "/Master/texmf-dist/"
2744 "/metapost"))
2745 (revision %texlive-revision)))
2746 (sha256
2747 (base32
2748 "03nvjddffiz796wll6axzmgfvynyciy2mqamv20qx252w71vwkwd"))))
2749 (build-system trivial-build-system)
2750 (arguments
2751 `(#:modules ((guix build utils))
2752 #:builder
2753 (begin
2754 (use-modules (guix build utils))
2755 (let ((target (string-append (assoc-ref %outputs "out")
2756 "/share/texmf-dist/metapost")))
2757 (mkdir-p target)
2758 (copy-recursively (assoc-ref %build-inputs "source") target)
2759 #t))))
2760 (home-page "http://www.ctan.org/pkg/metapost")
2761 (synopsis "Create scalable illustrations")
2762 (description
2763 "MetaPost uses a language based on that of Metafont to produce precise
2764technical illustrations. Its output is scalable PostScript or SVG, rather
2765than the bitmaps Metafont creates.")
2766 (license license:lppl)))
2767
cd2c77f4
RW
2768(define-public texlive-latex-wasysym
2769 (package
2770 (name "texlive-latex-wasysym")
2771 (version (number->string %texlive-revision))
2772 (source (origin
2773 (method svn-fetch)
2774 (uri (texlive-ref "latex" "wasysym"))
2775 (sha256
2776 (base32
2777 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
2778 (build-system texlive-build-system)
2779 (arguments '(#:tex-directory "latex/wasysym"))
2780 (home-page "http://www.ctan.org/pkg/wasysym")
2781 (synopsis "LaTeX support file to use the WASY2 fonts")
2782 (description
2783 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
2784like male and female symbols and astronomical symbols, as well as the complete
2785lasy font set and other odds and ends. The wasysym package implements an easy
2786to use interface for these symbols.")
2787 (license license:lppl)))
2788
c178ffca
RW
2789(define-public texlive-latex-ucs
2790 (package
2791 (name "texlive-latex-ucs")
2792 (version (number->string %texlive-revision))
2793 (source (origin
2794 (method svn-fetch)
2795 (uri (svn-reference
2796 (url (string-append "svn://www.tug.org/texlive/tags/"
2797 %texlive-tag "/Master/texmf-dist/"
2798 "/tex/latex/ucs"))
2799 (revision %texlive-revision)))
2800 (file-name (string-append name "-" version "-checkout"))
2801 (sha256
2802 (base32
2803 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
2804 (build-system trivial-build-system)
2805 (arguments
2806 `(#:modules ((guix build utils))
2807 #:builder
2808 (begin
2809 (use-modules (guix build utils))
2810 (let ((target (string-append (assoc-ref %outputs "out")
2811 "/share/texmf-dist/tex/latex/ucs")))
2812 (mkdir-p target)
2813 (copy-recursively (assoc-ref %build-inputs "source") target)
2814 #t))))
2815 (home-page "http://www.ctan.org/pkg/ucs")
2816 (synopsis "Extended UTF-8 input encoding support for LaTeX")
2817 (description
2818 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
2819together with a large number of support files. The @code{utf8x.def}
2820definition file for use with @code{inputenc} covers a wider range of Unicode
2821characters than does @code{utf8.def} in the LaTeX distribution. The package
2822provides facilities for efficient use of its large sets of Unicode characters.
2823Glyph production may be controlled by various options, which permits use of
2824non-ASCII characters when coding mathematical formulae. Note that the bundle
2825previously had an alias “unicode”; that alias has now been withdrawn, and no
2826package of that name now exists.")
2827 (license license:lppl1.3+)))
2828
86af0f2a
RW
2829(define-public texlive-latex-preview
2830 (package
2831 (name "texlive-latex-preview")
2832 (version (number->string %texlive-revision))
2833 (source (origin
2834 (method svn-fetch)
2835 (uri (texlive-ref "latex" "preview"))
2836 (file-name (string-append name "-" version "-checkout"))
2837 (sha256
2838 (base32
2839 "0j6fff6q0ca96nwfdgay2jm55792z4q9aa0rczmiw2qccyg5n2dv"))))
2840 (build-system texlive-build-system)
2841 (arguments
2842 '(#:tex-directory "latex/preview"
2843 #:phases
2844 (modify-phases %standard-phases
2845 (add-after 'unpack 'remove-generated-file
2846 (lambda _
2847 (delete-file "preview.drv")
2848 #t)))))
2849 (home-page "http://www.ctan.org/pkg/preview")
2850 (synopsis "Extract bits of a LaTeX source for output")
2851 (description
2852 "The main purpose of the preview package is the extraction of selected
2853elements from a LaTeX source, like formulas or graphics, into separate
2854pages of a DVI file. A flexible and convenient interface allows it to
2855specify what commands and constructs should be extracted. This works
2856with DVI files postprocessed by either Dvips and Ghostscript or
2857dvipng, but it also works when you are using PDFTeX for generating PDF
2858files.")
2859 (license license:gpl3+)))
2860
87b4360e
RW
2861(define-public texlive-latex-acronym
2862 (package
2863 (name "texlive-latex-acronym")
2864 (version (number->string %texlive-revision))
2865 (source (origin
2866 (method svn-fetch)
2867 (uri (texlive-ref "latex" "acronym"))
2868 (file-name (string-append name "-" version "-checkout"))
2869 (sha256
2870 (base32
2871 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
2872 (build-system texlive-build-system)
2873 (arguments '(#:tex-directory "latex/acronym"))
2874 (home-page "http://www.ctan.org/pkg/acronym")
2875 (synopsis "Expand acronyms at least once")
2876 (description
2877 "This package ensures that all acronyms used in the text are spelled out
2878in full at least once. It also provides an environment to build a list of
2879acronyms used. The package is compatible with PDF bookmarks. The package
2880requires the suffix package, which in turn requires that it runs under
2881e-TeX.")
2882 (license license:lppl1.3+)))
2883
8bcdc23f 2884(define texlive-texmf
0aa34e82
AE
2885 (package
2886 (name "texlive-texmf")
7a15a68f 2887 (version "2016")
0aa34e82
AE
2888 (source texlive-texmf-src)
2889 (build-system gnu-build-system)
2890 (inputs
2891 `(("texlive-bin" ,texlive-bin)
2892 ("lua" ,lua)
2893 ("perl" ,perl)
2894 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
2895 ("ruby" ,ruby)
2896 ("tcsh" ,tcsh)))
2897 (arguments
2898 `(#:modules ((guix build gnu-build-system)
2899 (guix build utils)
2900 (srfi srfi-26))
a348af40
LC
2901
2902 ;; This package takes 4 GiB, which we can't afford to distribute from
2903 ;; our servers.
2904 #:substitutable? #f
2905
0aa34e82 2906 #:phases
4a6635f3
AE
2907 (modify-phases (map (cut assq <> %standard-phases)
2908 '(set-paths unpack patch-source-shebangs))
2909 (add-after 'patch-source-shebangs 'install
2910 (lambda* (#:key outputs #:allow-other-keys)
2911 (let ((share (string-append (assoc-ref outputs "out") "/share")))
2912 (mkdir-p share)
2913 (system* "mv" "texmf-dist" share))))
2914 (add-after 'install 'texmf-config
2915 (lambda* (#:key inputs outputs #:allow-other-keys)
2916 (let* ((out (assoc-ref outputs "out"))
2917 (share (string-append out "/share"))
2918 (texmfroot (string-append share "/texmf-dist/web2c"))
2919 (texmfcnf (string-append texmfroot "/texmf.cnf"))
2920 (texlive-bin (assoc-ref inputs "texlive-bin"))
2921 (texbin (string-append texlive-bin "/bin"))
2922 (tlpkg (string-append texlive-bin "/share/tlpkg")))
2923 ;; Register SHARE as TEXMFROOT in texmf.cnf.
2924 (substitute* texmfcnf
2925 (("TEXMFROOT = \\$SELFAUTOPARENT")
2d634d9b
FB
2926 (string-append "TEXMFROOT = " share))
2927 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
2928 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
2929 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
4a6635f3
AE
2930 ;; Register paths in texmfcnf.lua, needed for context.
2931 (substitute* (string-append texmfroot "/texmfcnf.lua")
2932 (("selfautodir:") out)
2933 (("selfautoparent:") (string-append share "/")))
2934 ;; Set path to TeXLive Perl modules
2935 (setenv "PERL5LIB"
2936 (string-append (getenv "PERL5LIB") ":" tlpkg))
2937 ;; Configure the texmf-dist tree; inspired from
2938 ;; http://slackbuilds.org/repository/13.37/office/texlive/
2939 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
2940 (setenv "TEXMFCNF" texmfroot)
2941 (system* "updmap-sys" "--nohash" "--syncwithtrees")
2942 (system* "mktexlsr")
2943 (system* "fmtutil-sys" "--all")))))))
7a15a68f 2944 (properties `((max-silent-time . 9600))) ; don't time out while grafting
0aa34e82 2945 (synopsis "TeX Live, a package of the TeX typesetting system")
eb0119ef
AE
2946 (description
2947 "TeX Live provides a comprehensive TeX document production system.
2948It includes all the major TeX-related programs, macro packages, and fonts
2949that are free software, including support for many languages around the
0aa34e82
AE
2950world.
2951
2952This package contains the complete tree of texmf-dist data.")
132e14b4
EF
2953 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
2954 (home-page "https://www.tug.org/texlive/")))
0aa34e82
AE
2955
2956(define-public texlive
2957 (package
2958 (name "texlive")
7a15a68f 2959 (version "2016")
0aa34e82
AE
2960 (source #f)
2961 (build-system trivial-build-system)
2962 (inputs `(("bash" ,bash) ; for wrap-program
2963 ("texlive-bin" ,texlive-bin)
2964 ("texlive-texmf" ,texlive-texmf)))
2d634d9b
FB
2965 (native-search-paths
2966 (list (search-path-specification
2967 (variable "TEXMFLOCAL")
2968 (files '("share/texmf-local")))))
0aa34e82
AE
2969 (arguments
2970 `(#:modules ((guix build utils))
2971 #:builder
2972 ;; Build the union of texlive-bin and texlive-texmf, but take the
2973 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
2974 (begin
2975 (use-modules (guix build utils))
2976 (let ((out (assoc-ref %outputs "out"))
2977 (bin (assoc-ref %build-inputs "texlive-bin"))
2978 (texmf (assoc-ref %build-inputs "texlive-texmf"))
2979 (bash (assoc-ref %build-inputs "bash")))
2980 (mkdir out)
2981 (with-directory-excursion out
2982 (for-each
2983 (lambda (name)
2984 (symlink (string-append bin "/" name) name))
2985 '("include" "lib"))
2986 (mkdir "bin")
2987 (with-directory-excursion "bin"
2988 (setenv "PATH" (string-append bash "/bin"))
2989 (for-each
2990 (lambda (name)
2991 (symlink name (basename name))
2992 (wrap-program
2993 (basename name)
2994 `("TEXMFCNF" =
2995 (,(string-append texmf "/share/texmf-dist/web2c")))))
2996 (find-files (string-append bin "/bin/") "")))
2997 (mkdir "share")
2998 (with-directory-excursion "share"
2999 (for-each
3000 (lambda (name)
3001 (symlink (string-append bin "/share/" name) name))
3002 '("info" "man" "tlpkg"))
3003 (for-each
3004 (lambda (name)
3005 (symlink (string-append texmf "/share/" name) name))
3006 '("texmf-dist" "texmf-var"))))))))
3007 (synopsis "TeX Live, a package of the TeX typesetting system")
3008 (description
3009 "TeX Live provides a comprehensive TeX document production system.
3010It includes all the major TeX-related programs, macro packages, and fonts
3011that are free software, including support for many languages around the
3012world.
3013
3014This package contains the complete TeX Live distribution.")
132e14b4
EF
3015 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
3016 (home-page "https://www.tug.org/texlive/")))
231eae53 3017
6b5eb840
AE
3018
3019;; texlive-texmf-minimal is a pruned, small version of the texlive tree,
a348af40
LC
3020;; in particular dropping documentation and fonts. It weighs in at 470 MiB
3021;; instead of 4 GiB.
6b5eb840
AE
3022(define texlive-texmf-minimal
3023 (package (inherit texlive-texmf)
3024 (name "texlive-texmf-minimal")
3025 (arguments
3026 (substitute-keyword-arguments
3027 (package-arguments texlive-texmf)
3028 ((#:modules modules)
3029 `((ice-9 ftw)
3030 (srfi srfi-1)
3031 ,@modules))
3032 ((#:phases phases)
3033 `(modify-phases ,phases
3034 (add-after 'unpack 'prune
3035 (lambda _
3036 (define (delete subdir exclude)
3037 "Delete all files and directories in SUBDIR except for those
3038given in the list EXCLUDE."
3039 (with-directory-excursion subdir
3040 (for-each delete-file-recursively
3041 (lset-difference equal?
3042 (scandir ".")
3043 (append '("." "..")
3044 exclude)))))
3045 (with-directory-excursion "texmf-dist"
3046 (for-each delete-file-recursively
3047 '("doc" "source" "tex4ht"))
3048 ;; Delete all subdirectories of "fonts", except for "tfm" and
3049 ;; any directories named "cm".
3050 (delete "fonts" '("afm" "map" "pk" "source" "tfm" "type1"))
3051 (delete "fonts/afm" '("public"))
3052 (delete "fonts/afm/public" '("amsfonts"))
3053 (delete "fonts/afm/public/amsfonts" '("cm"))
3054 (delete "fonts/map" '("dvips"))
3055 (delete "fonts/map/dvips" '("cm"))
3056 (delete "fonts/source" '("public"))
3057 (delete "fonts/source/public" '("cm"))
3058 (delete "fonts/tfm" '("public"))
3059 (delete "fonts/type1" '("public"))
3060 (delete "fonts/type1/public" '("amsfonts"))
3061 (delete "fonts/type1/public/amsfonts" '("cm")))
3062 #t))))))
3063 (description
3064 "TeX Live provides a comprehensive TeX document production system.
3065It includes all the major TeX-related programs, macro packages, and fonts
3066that are free software, including support for many languages around the
3067world.
3068
3069This package contains a small subset of the texmf-dist data.")))
3070
3071
3072;; texlive-minimal is the same as texlive, but using texlive-texmf-minimal
3073;; instead of the full texlive-texmf. It can be used, for instance, as a
3074;; native input to packages that need texlive to build their documentation.
3075(define-public texlive-minimal
3076 (package (inherit texlive)
3077 (name "texlive-minimal")
3078 (inputs
3079 `(("texlive-texmf" ,texlive-texmf-minimal)
3080 ,@(alist-delete "texlive-texmf" (package-inputs texlive))))
2d634d9b
FB
3081 (native-search-paths
3082 (list (search-path-specification
3083 (variable "TEXMFLOCAL")
3084 (files '("share/texmf-local")))))
6b5eb840
AE
3085 (description
3086 "TeX Live provides a comprehensive TeX document production system.
3087It includes all the major TeX-related programs, macro packages, and fonts
3088that are free software, including support for many languages around the
3089world.
3090
3091This package contains a small working part of the TeX Live distribution.")))
3092
ebcf74da
RW
3093(define-public perl-text-bibtex
3094 (package
3095 (name "perl-text-bibtex")
3096 (version "0.77")
3097 (source
3098 (origin
3099 (method url-fetch)
3100 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
3101 version ".tar.gz"))
3102 (sha256
3103 (base32
3104 "0kkfx8skk763pivz6h2ffy2zdp1lvy6d5sz0kjaj0mdbjffvnnb4"))))
3105 (build-system perl-build-system)
3106 (arguments
3107 `(#:phases
3108 (modify-phases %standard-phases
3109 (add-after 'unpack 'add-output-directory-to-rpath
3110 (lambda* (#:key outputs #:allow-other-keys)
3111 (substitute* "inc/MyBuilder.pm"
3112 (("-Lbtparse" line)
3113 (string-append "-Wl,-rpath="
3114 (assoc-ref outputs "out") "/lib " line)))
3115 #t))
3116 (add-after 'unpack 'install-libraries-to-/lib
3117 (lambda* (#:key outputs #:allow-other-keys)
3118 (substitute* "Build.PL"
3119 (("lib64") "lib"))
3120 #t)))))
3121 (native-inputs
3122 `(("perl-capture-tiny" ,perl-capture-tiny)
3123 ("perl-config-autoconf" ,perl-config-autoconf)
3124 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
3125 ("perl-module-build" ,perl-module-build)))
3126 (home-page "http://search.cpan.org/dist/Text-BibTeX")
3127 (synopsis "Interface to read and parse BibTeX files")
3128 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
3129and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
3130at many different levels: you may work with BibTeX entries as simple field to
3131string mappings, or get at the original form of the data as a list of simple
3132values (strings, macros, or numbers) pasted together.")
2f3108ad 3133 (license license:perl-license)))
ebcf74da 3134
d4000680
RW
3135(define-public biber
3136 (package
3137 (name "biber-next")
3138 (version "2.6")
3139 (source (origin
3140 (method url-fetch)
3141 (uri (string-append "https://github.com/plk/biber/archive/v"
3142 version ".tar.gz"))
3143 (file-name (string-append name "-" version ".tar.gz"))
3144 (sha256
3145 (base32
3146 "158smzgjhjvyabdv97si5q88zjj5l8j1zbfnddvzy6fkpfhskgkp"))))
3147 (build-system perl-build-system)
3148 (arguments
3149 `(#:phases
3150 (modify-phases %standard-phases
3151 (add-after 'install 'wrap-programs
3152 (lambda* (#:key outputs #:allow-other-keys)
3153 (let* ((out (assoc-ref outputs "out"))
3154 (perl5lib (getenv "PERL5LIB")))
3155 (wrap-program (string-append out "/bin/biber")
3156 `("PERL5LIB" ":" prefix
3157 (,(string-append perl5lib ":" out
3158 "/lib/perl5/site_perl")))))
3159 #t)))))
3160 (inputs
3161 `(("perl-autovivification" ,perl-autovivification)
3162 ("perl-class-accessor" ,perl-class-accessor)
3163 ("perl-data-dump" ,perl-data-dump)
3164 ("perl-data-compare" ,perl-data-compare)
3165 ("perl-data-uniqid" ,perl-data-uniqid)
3166 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
3167 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
3168 ("perl-file-slurp" ,perl-file-slurp)
3169 ("perl-ipc-cmd" ,perl-ipc-cmd)
3170 ("perl-ipc-run3" ,perl-ipc-run3)
3171 ("perl-list-allutils" ,perl-list-allutils)
3172 ("perl-list-moreutils" ,perl-list-moreutils)
3173 ("perl-mozilla-ca" ,perl-mozilla-ca)
3174 ("perl-regexp-common" ,perl-regexp-common)
3175 ("perl-log-log4perl" ,perl-log-log4perl)
3176 ;; We cannot use perl-unicode-collate here, because otherwise the
3177 ;; hardcoded hashes in the tests would differ. See
3178 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
3179 ;;("perl-unicode-collate" ,perl-unicode-collate)
3180 ("perl-unicode-normalize" ,perl-unicode-normalize)
3181 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
3182 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
3183 ("perl-encode-jis2k" ,perl-encode-jis2k)
3184 ("perl-encode-hanextra" ,perl-encode-hanextra)
3185 ("perl-xml-libxml" ,perl-xml-libxml)
3186 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
3187 ("perl-xml-libxslt" ,perl-xml-libxslt)
3188 ("perl-xml-writer" ,perl-xml-writer)
3189 ("perl-sort-key" ,perl-sort-key)
3190 ("perl-text-csv" ,perl-text-csv)
3191 ("perl-text-csv-xs" ,perl-text-csv-xs)
3192 ("perl-text-roman" ,perl-text-roman)
3193 ("perl-uri" ,perl-uri)
3194 ("perl-text-bibtex" ,perl-text-bibtex)
3195 ("perl-libwww" ,perl-libwww)
3196 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
3197 ("perl-business-isbn" ,perl-business-isbn)
3198 ("perl-business-issn" ,perl-business-issn)
3199 ("perl-business-ismn" ,perl-business-ismn)
3200 ("perl-lingua-translit" ,perl-lingua-translit)))
3201 (native-inputs
3202 `(("perl-config-autoconf" ,perl-config-autoconf)
3203 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
3204 ("perl-module-build" ,perl-module-build)
3205 ;; for tests
3206 ("perl-file-which" ,perl-file-which)
3207 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
3208 ("perl-test-differences" ,perl-test-differences)))
3209 (home-page "http://biblatex-biber.sourceforge.net/")
3210 (synopsis "Backend for the BibLaTeX citation management tool")
3211 (description "Biber is a BibTeX replacement for users of biblatex. Among
3212other things it comes with full Unicode support.")
3213 (license license:artistic2.0)))
3214
253cdd6c
RW
3215;; Our version of texlive comes with biblatex 3.4, which is only compatible
3216;; with biber 2.5 according to the compatibility matrix in the biber
3217;; documentation.
3218(define-public biber-2.5
3219 (package (inherit biber)
3220 (name "biber")
3221 (version "2.5")
3222 (source (origin
3223 (method url-fetch)
3224 (uri (string-append "https://github.com/plk/biber/archive/v"
3225 version ".tar.gz"))
3226 (file-name (string-append name "-" version ".tar.gz"))
3227 (sha256
3228 (base32
3229 "163sd343wkrzwnvj2003m2j0kz517jmjr4savw6f8bjxhj8fdrqv"))))
3230 (arguments
3231 (substitute-keyword-arguments (package-arguments biber)
3232 ((#:phases phases)
3233 `(modify-phases ,phases
3234 (add-before 'check 'delete-failing-test
3235 (lambda _
3236 (delete-file "t/sort-order.t")
3237 #t))))))
3238 (inputs
3239 `(("perl-date-simple" ,perl-date-simple)
3240 ,@(package-inputs biber)))))
6b5eb840 3241
231eae53
LC
3242(define-public rubber
3243 (package
3244 (name "rubber")
3245 (version "1.1")
3246 (source (origin
3247 (method url-fetch)
3248 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
3249 version "/+download/rubber-"
3250 version ".tar.gz")
3251 (string-append "http://ebeffara.free.fr/pub/rubber-"
3252 version ".tar.gz")))
3253 (sha256
3254 (base32
3255 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
3256 (build-system gnu-build-system)
3257 (arguments '(#:tests? #f)) ; no `check' target
3258 (inputs `(("texinfo" ,texinfo)
9bee5d6c 3259 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
231eae53
LC
3260 ("which" ,which)))
3261 (home-page "https://launchpad.net/rubber")
35b9e423 3262 (synopsis "Wrapper for LaTeX and friends")
231eae53
LC
3263 (description
3264 "Rubber is a program whose purpose is to handle all tasks related to the
3265compilation of LaTeX documents. This includes compiling the document itself,
3266of course, enough times so that all references are defined, and running BibTeX
3267to manage bibliographic references. Automatic execution of dvips to produce
3268PostScript documents is also included, as well as usage of pdfLaTeX to produce
3269PDF documents.")
3270 (license license:gpl2+)))
4791876c
RJ
3271
3272(define-public texmaker
3273 (package
3274 (name "texmaker")
3275 (version "4.5")
3276 (source (origin
3277 (method url-fetch)
3278 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
3279 version ".tar.bz2"))
3280 (sha256
3281 (base32
3282 "056njk6j8wma23mlp7xa3rgfaxx0q8ynwx8wkmj7iy0b85p9ds9c"))))
3283 (build-system gnu-build-system)
3284 (arguments
3285 `(#:phases
3286 (modify-phases %standard-phases
3287 ;; Qt has its own configuration utility.
3288 (replace 'configure
3289 (lambda* (#:key outputs #:allow-other-keys)
3290 (let ((out (assoc-ref outputs "out")))
3291 (zero? (system* "qmake"
3292 (string-append "PREFIX=" out)
3293 (string-append "DESKTOPDIR=" out
3294 "/share/applications")
3295 (string-append "ICONDIR=" out "/share/pixmaps")
3296 "texmaker.pro"))))))))
3297 (inputs
3298 `(("poppler-qt5" ,poppler-qt5)
bd917486
TD
3299 ("qtbase" ,qtbase)
3300 ("qtscript" ,qtscript)
3301 ("qtwebkit" ,qtwebkit)
4791876c
RJ
3302 ("zlib" ,zlib)))
3303 (native-inputs
3304 `(("pkg-config" ,pkg-config)))
3305 (home-page "http://www.xm1math.net/texmaker/")
3306 (synopsis "LaTeX editor")
3307 (description "Texmaker is a program that integrates many tools needed to
3308develop documents with LaTeX, in a single application.")
3309 (license license:gpl2+)))
83457fe0
JD
3310
3311
3312(define-public teximpatient
3313 (package
3314 (name "teximpatient")
3315 (version "2.4")
3316 (source (origin
3317 (method url-fetch)
3318 (uri (string-append "mirror://gnu/" name "/" name "-"
3319 version ".tar.gz"))
3320 (sha256
3321 (base32
3322 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
3323 (build-system gnu-build-system)
3324 (arguments
3325 `(#:phases
3326 (modify-phases %standard-phases
3327 (delete 'check)
3328 ;; Unfortunately some mistakes have been made in packaging.
3329 ;; Work around them here ...
3330 (replace 'unpack
3331 (lambda* (#:key inputs outputs #:allow-other-keys)
3332 (let ((srcdir "teximpatient-2.4"))
3333 (system* "tar" "-xzf" (assoc-ref inputs "source")
3334 (string-append "--one-top-level=" srcdir))
3335 (delete-file (string-append srcdir "/book.pdf"))
3336 (install-file (car
3337 (find-files
3338 (assoc-ref inputs "automake")
3339 "^install-sh$"))
3340 srcdir)
3341 (chdir srcdir)))))))
3342 (native-inputs
3343 `(("texlive" ,texlive)
3344 ("automake" ,automake)))
6fd52309 3345 (home-page "https://www.gnu.org/software/teximpatient/")
83457fe0
JD
3346 (synopsis "Book on TeX, plain TeX and Eplain")
3347 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
3348plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
3349and Karl Berry.")
3350 (license license:fdl1.3+)))