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