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