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