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