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