gnu: Add texlive-ukrhyph.
[jackhill/guix/guix.git] / gnu / packages / tex.scm
CommitLineData
eb0119ef 1;;; GNU Guix --- Functional package management for GNU
4a6635f3 2;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
42e1394b 3;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
d2e84281 4;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
4791876c 5;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
e5a03489 6;;; Copyright © 2016, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
2d634d9b 7;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
bd917486 8;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
d68c8017 9;;; Copyright © 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
149f6688 10;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
594156ec 11;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
585be42f 12;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
ec40a050 13;;; Copyright © 2018 Danny Milosavljevic <dannym+a@scratchpost.org>
a9fda571 14;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
eb0119ef
AE
15;;;
16;;; This file is part of GNU Guix.
17;;;
18;;; GNU Guix is free software; you can redistribute it and/or modify it
19;;; under the terms of the GNU General Public License as published by
20;;; the Free Software Foundation; either version 3 of the License, or (at
21;;; your option) any later version.
22;;;
23;;; GNU Guix is distributed in the hope that it will be useful, but
24;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26;;; GNU General Public License for more details.
27;;;
28;;; You should have received a copy of the GNU General Public License
29;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30
8f9ac901 31(define-module (gnu packages tex)
b5b73a82 32 #:use-module ((guix licenses) #:prefix license:)
eb0119ef
AE
33 #:use-module (guix packages)
34 #:use-module (guix download)
ec40a050 35 #:use-module (guix build-system cmake)
eb0119ef 36 #:use-module (guix build-system gnu)
ebcf74da 37 #:use-module (guix build-system perl)
0aa34e82 38 #:use-module (guix build-system trivial)
205794c8 39 #:use-module (guix build-system texlive)
6b5eb840 40 #:use-module (guix utils)
83457fe0 41 #:use-module (guix git-download)
9d913b25 42 #:use-module (guix svn-download)
eb0119ef 43 #:use-module (gnu packages)
ec40a050 44 #:use-module (gnu packages algebra)
83457fe0 45 #:use-module (gnu packages autotools)
0aa34e82 46 #:use-module (gnu packages bash)
ec40a050 47 #:use-module (gnu packages boost)
eb0119ef 48 #:use-module (gnu packages compression)
a86177d6 49 #:use-module (gnu packages fontutils)
fd89b36b 50 #:use-module (gnu packages gd)
eb0119ef 51 #:use-module (gnu packages ghostscript)
769bb5e5 52 #:use-module (gnu packages graphviz)
fd89b36b 53 #:use-module (gnu packages gtk)
eb0119ef 54 #:use-module (gnu packages icu4c)
e55354b8 55 #:use-module (gnu packages image)
ec40a050 56 #:use-module (gnu packages libreoffice)
0aa34e82 57 #:use-module (gnu packages lua)
0256c746 58 #:use-module (gnu packages multiprecision)
eb0119ef
AE
59 #:use-module (gnu packages pdf)
60 #:use-module (gnu packages perl)
5ccde207 61 #:use-module (gnu packages perl-check)
eb0119ef
AE
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages python)
5327e912 64 #:use-module (gnu packages python-xyz)
4791876c 65 #:use-module (gnu packages qt)
b32c8549 66 #:use-module (gnu packages ruby)
b7194849 67 #:use-module (gnu packages shells)
ce0614dd 68 #:use-module (gnu packages base)
d4000680
RW
69 #:use-module (gnu packages web)
70 #:use-module (gnu packages xml)
c0589f75 71 #:use-module (gnu packages xorg)
ece9b417 72 #:use-module (gnu packages xdisorg)
6b5eb840
AE
73 #:autoload (gnu packages texinfo) (texinfo)
74 #:use-module (ice-9 ftw)
cb7bc20a 75 #:use-module (ice-9 match)
e93f472d 76 #:use-module ((srfi srfi-1) #:hide (zip)))
eb0119ef 77
8ab600f8
RW
78(define* (simple-texlive-package name locations hash
79 #:key trivial?)
80 "Return a template for a simple TeX Live package with the given NAME,
81downloading from a list of LOCATIONS in the TeX Live repository, and expecting
82the provided output HASH. If TRIVIAL? is provided, all files will simply be
83copied to their outputs; otherwise the TEXLIVE-BUILD-SYSTEM is used."
84 (define with-documentation?
85 (and trivial?
86 (any (lambda (location)
87 (string-prefix? "/doc" location))
88 locations)))
89 (package
90 (name name)
91 (version (number->string %texlive-revision))
92 (source (texlive-origin name version
93 locations hash))
94 (outputs (if with-documentation?
95 '("out" "doc")
96 '("out")))
97 (build-system (if trivial?
98 gnu-build-system
99 texlive-build-system))
100 (arguments
101 (let ((copy-files
102 `(lambda* (#:key outputs inputs #:allow-other-keys)
103 (let (,@(if with-documentation?
104 `((doc (string-append (assoc-ref outputs "doc")
105 "/share/texmf-dist/")))
106 '())
107 (out (string-append (assoc-ref outputs "out")
108 "/share/texmf-dist/")))
109 ,@(if with-documentation?
110 '((mkdir-p doc)
111 (copy-recursively
112 (string-append (assoc-ref inputs "source") "/doc")
113 (string-append doc "/doc")))
114 '())
115 (mkdir-p out)
116 (copy-recursively (assoc-ref inputs "source") out)
117 ,@(if with-documentation?
118 '((delete-file-recursively (string-append out "/doc")))
119 '())
120 #t))))
121 (if trivial?
122 `(#:tests? #f
123 #:phases
124 (modify-phases %standard-phases
125 (delete 'configure)
126 (replace 'build (const #t))
127 (replace 'install ,copy-files)))
128 `(#:phases
129 (modify-phases %standard-phases
130 (add-after 'install 'copy-files ,copy-files))))))
131 (home-page #f)
132 (synopsis #f)
133 (description #f)
134 (license #f)))
135
28e521e9
RW
136(define hyph-utf8-scripts
137 (origin
138 (method svn-fetch)
139 (uri (texlive-ref "generic" "hyph-utf8"))
140 (file-name (string-append "hyph-utf8-scripts-"
141 (number->string %texlive-revision)
142 "-checkout"))
143 (sha256
144 (base32
145 "1ix8h637hwhz4vrdhilf84kzzdza0wi8fp26nh7iws0bq08sl517"))))
146
cf4c07b9
RW
147(define (texlive-hyphen-package name code locations hash)
148 (let ((parent (simple-texlive-package
149 name locations hash #:trivial? #t)))
150 (package
151 (inherit parent)
152 (arguments
153 (substitute-keyword-arguments (package-arguments parent)
154 ((#:modules _ '())
155 '((guix build gnu-build-system)
156 (guix build utils)
157 (ice-9 match)))
158 ((#:phases phases)
159 `(modify-phases ,phases
160 (replace 'build
161 (lambda* (#:key inputs outputs #:allow-other-keys)
162 (let* ((out (assoc-ref outputs "out"))
163 (root (string-append out "/share/texmf-dist"))
164 (patterns
165 (string-append root "/tex/generic/hyph-utf8/patterns/txt/"))
166 (loaders
167 (string-append root "/tex/generic/hyph-utf8/loadhyph"))
168 (ptex
169 (string-append root "/tex/generic/hyph-utf8/patterns/ptex"))
170 (filter-expression
171 (match ',code
172 ((? string?)
173 (format #f "\nlanguages.select!{|l| l.code == \"~a\"}\n" ',code))
174 ((a b ...)
175 (format #f "\nlanguages.select!{|l| [~{\"~a\",~}].include? l.code }\n" ',code)))))
176 (mkdir "scripts")
177 (copy-recursively
178 (assoc-ref inputs "hyph-utf8-scripts") "scripts")
179
180 ;; Prepare target directories
181 (mkdir-p patterns)
182 (mkdir-p loaders)
183 (mkdir-p ptex)
184
185 ;; Generate plain patterns
186 (with-directory-excursion "scripts"
187 (substitute* "languages.rb"
188 (("../../../tex/generic/") "../tex/generic/"))
189 (substitute* "generate-plain-patterns.rb"
190 ;; Ruby 2 does not need this.
191 (("require 'unicode'") "")
192 (("Unicode.upcase\\(ch\\)") "ch.upcase")
193 ;; Write directly to the output directory
194 (("\\$path_root=File.*")
195 (string-append "$path_root=\"" out "/share/texmf-dist/\"\n"))
196 ;; Create quote directory when needed
197 (("f = File.open\\(\"#\\{\\$path_quote\\}" m)
198 (string-append "require 'fileutils'; FileUtils.mkdir_p $path_quote;" m))
199 ;; Only generate patterns for this language.
200 (("languages =.*" m)
201 (string-append m filter-expression)))
202 (invoke "ruby" "generate-plain-patterns.rb")
203
204 ;; Build pattern loaders
205 (substitute* "generate-pattern-loaders.rb"
206 (("\\$path_tex_generic=File.*")
207 (string-append "$path_tex_generic=\"" root "/tex/generic\"\n"))
208 ;; Only generate loader for this language.
209 (("languages =.*" m)
210 (string-append m filter-expression)))
211 (invoke "ruby" "generate-pattern-loaders.rb")
212
213 ;; Build ptex patterns
214 (substitute* "generate-ptex-patterns.rb"
215 (("\\$path_root=File.*")
216 (string-append "$path_root=\"" root "\"\n"))
217 ;; Only generate ptex patterns for this language.
218 (("languages =.*" m)
219 (string-append m filter-expression)))
220 (invoke "ruby" "generate-ptex-patterns.rb")))))))))
221 (native-inputs
222 `(("ruby" ,ruby)
223 ("hyph-utf8-scripts" ,hyph-utf8-scripts)))
224 (home-page "https://ctan.org/pkg/hyph-utf8"))))
225
eb0119ef
AE
226(define texlive-extra-src
227 (origin
228 (method url-fetch)
3e1ebaab 229 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-extra.tar.xz")
eb0119ef 230 (sha256 (base32
3e1ebaab 231 "0a83kymxc8zmlxjb0y1gf6mx7qnf0hxffwkivwh5yh138y2rfhsv"))))
eb0119ef
AE
232
233(define texlive-texmf-src
234 (origin
235 (method url-fetch)
3e1ebaab 236 (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-texmf.tar.xz")
eb0119ef 237 (sha256 (base32
3e1ebaab 238 "1b8zigzg8raxkhhzphcmynf84rbdbj2ym2qkz24v8n0qx82zmqms"))))
eb0119ef 239
3abe72bd 240(define-public texlive-bin
eb0119ef 241 (package
0aa34e82 242 (name "texlive-bin")
3e1ebaab 243 (version "20180414")
0aa34e82
AE
244 (source
245 (origin
3e1ebaab
RW
246 (method url-fetch)
247 (uri (string-append "ftp://tug.org/historic/systems/texlive/2018/"
149f6688 248 "texlive-" version "-source.tar.xz"))
3e1ebaab
RW
249 (sha256
250 (base32
251 "0khyi6h015r2zfqgg0a44a2j7vmr1cy42knw7jbss237yvakc07y"))
594156ec 252 (patches
0fa50555
MB
253 (let ((arch-patch
254 (lambda (name revision hash)
255 (origin
256 (method url-fetch)
257 (uri (string-append "https://git.archlinux.org/svntogit/packages.git"
258 "/plain/trunk/" name "?h=packages/texlive-bin"
259 "&id=" revision))
260 (file-name (string-append "texlive-bin-" name))
261 (sha256 (base32 hash)))))
262 (arch-revision "e1975bce0b9d270d7c9773c5beb7e87d61ee8f57"))
263 (append (search-patches "texlive-bin-CVE-2018-17407.patch"
264 "texlive-bin-luatex-poppler-compat.patch")
265 (list
266 (arch-patch "pdftex-poppler0.72.patch" arch-revision
267 "0p46b6xxxg2s3hx67r0wpz16g3qygx65hpc581xs3jz5pvsiq3y7")
268 (arch-patch "xetex-poppler-fixes.patch" arch-revision
269 "1jj1p5zkjljb7id9pjv29cw0cf8mwrgrh4ackgzz9c200vaqpsvx")))))))
eb0119ef 270 (build-system gnu-build-system)
0aa34e82
AE
271 (inputs
272 `(("texlive-extra-src" ,texlive-extra-src)
273 ("cairo" ,cairo)
274 ("fontconfig" ,fontconfig)
275 ("fontforge" ,fontforge)
276 ("freetype" ,freetype)
277 ("gd" ,gd)
0256c746 278 ("gmp" ,gmp)
0aa34e82
AE
279 ("ghostscript" ,ghostscript)
280 ("graphite2" ,graphite2)
281 ("harfbuzz" ,harfbuzz)
282 ("icu4c" ,icu4c)
283 ("libpaper" ,libpaper)
284 ("libpng" ,libpng)
285 ("libxaw" ,libxaw)
286 ("libxt" ,libxt)
0256c746 287 ("mpfr" ,mpfr)
0aa34e82
AE
288 ("perl" ,perl)
289 ("pixman" ,pixman)
290 ("poppler" ,poppler)
291 ("potrace" ,potrace)
292 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
293 ("ruby" ,ruby)
294 ("tcsh" ,tcsh)
295 ("teckit" ,teckit)
296 ("zlib" ,zlib)
297 ("zziplib" ,zziplib)))
c4c4cc05 298 (native-inputs
e9a6d225 299 `(("pkg-config" ,pkg-config)))
eb0119ef
AE
300 (arguments
301 `(#:out-of-source? #t
302 #:configure-flags
303 `("--disable-native-texlive-build"
594156ec
MB
304 ;; XXX: This is needed because recent Poppler requires C++11 or later.
305 ;; Remove after switch to GCC >= 6.
306 "CXXFLAGS=-std=gnu++11"
fd89b36b 307 "--with-system-cairo"
eb0119ef 308 "--with-system-freetype2"
fd89b36b 309 "--with-system-gd"
0256c746 310 "--with-system-gmp"
be2c88ca 311 "--with-system-graphite2"
c70cf7eb 312 "--with-system-harfbuzz"
eb0119ef
AE
313 "--with-system-icu"
314 "--with-system-libgs"
609578a7 315 "--with-system-libpaper"
eb0119ef 316 "--with-system-libpng"
0256c746 317 "--with-system-mpfr"
fd89b36b 318 "--with-system-pixman"
eb0119ef 319 "--with-system-poppler"
75916982 320 "--with-system-potrace"
eb0119ef
AE
321 "--with-system-teckit"
322 "--with-system-xpdf"
323 "--with-system-zlib"
324 "--with-system-zziplib")
2f4640e3 325
7683bf11
EB
326 ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test.
327 ;; XXX FIXME fix luajit properly on mips64 and aarch64.
328 #:tests? ,(let ((s (or (%current-target-system)
329 (%current-system))))
330 (not (or (string-prefix? "aarch64" s)
331 (string-prefix? "mips64" s))))
eb0119ef 332 #:phases
3e1ebaab 333 (modify-phases %standard-phases
f1728d43 334 (add-after 'unpack 'configure-ghostscript-executable
3e1ebaab
RW
335 ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
336 ;; and the "gs" ghostscript executable on Unix. It detects Unix by
337 ;; checking for the existence of the /usr/bin directory. Since
59e80445 338 ;; Guix System does not have /usr/bin, it is also detected as Windows.
f1728d43 339 (lambda* (#:key inputs #:allow-other-keys)
3e1ebaab
RW
340 (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
341 (("gswin32c") "gs"))
f1728d43
RW
342 (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
343 (("\"gs\"")
344 (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
345 #t))
346 (add-after 'unpack 'use-code-for-new-poppler
347 (lambda _
0fa50555 348 (copy-file "texk/web2c/pdftexdir/pdftoepdf-poppler0.72.0.cc"
f1728d43 349 "texk/web2c/pdftexdir/pdftoepdf.cc")
0fa50555 350 (copy-file "texk/web2c/pdftexdir/pdftosrc-poppler0.72.0.cc"
f1728d43 351 "texk/web2c/pdftexdir/pdftosrc.cc")
3e1ebaab 352 #t))
be200ef3
MB
353 (add-after 'unpack 'disable-failing-test
354 (lambda _
355 ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28:
356 ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>.
357 (substitute* "texk/web2c/omegafonts/check.test"
21f7d88e 358 (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1")
be200ef3
MB
359 "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77"))
360 #t))
3e1ebaab
RW
361 (add-after 'install 'postint
362 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
363 (let* ((out (assoc-ref outputs "out"))
364 (share (string-append out "/share"))
365 (texlive-extra (assoc-ref inputs "texlive-extra-src"))
366 (unpack (assoc-ref %standard-phases 'unpack))
367 (patch-source-shebangs
368 (assoc-ref %standard-phases 'patch-source-shebangs)))
1574932d
RW
369 (substitute* (string-append share "/texmf-dist/web2c/texmf.cnf")
370 ;; Don't truncate lines.
371 (("^error_line = .*$") "error_line = 254\n")
372 (("^half_error_line = .*$") "half_error_line = 238\n")
373 (("^max_print_line = .*$") "max_print_line = 1000\n"))
3e1ebaab
RW
374 ;; Create symbolic links for the latex variants and their
375 ;; man pages.
376 (with-directory-excursion (string-append out "/bin/")
377 (for-each symlink
378 '("pdftex" "pdftex" "xetex" "luatex")
379 '("latex" "pdflatex" "xelatex" "lualatex")))
380 (with-directory-excursion (string-append share "/man/man1/")
381 (symlink "luatex.1" "lualatex.1"))
382 ;; Unpack texlive-extra and install tlpkg.
383 (mkdir "texlive-extra")
384 (with-directory-excursion "texlive-extra"
385 (apply unpack (list #:source texlive-extra))
386 (apply patch-source-shebangs (list #:source texlive-extra))
387 (invoke "mv" "tlpkg" share))
388 ;; texlua shebangs are not patched by the patch-source-shebangs
389 ;; phase because the texlua executable does not exist at that
390 ;; time.
391 (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
392 (with-directory-excursion out
393 (patch-source-shebangs))))))))
a1b4d62c
RW
394 (native-search-paths
395 (list (search-path-specification
396 (variable "TEXMF")
397 (files '("share/texmf-dist"))
398 (separator #f))
399 (search-path-specification
400 (variable "TEXMFCNF")
401 (files '("share/texmf-dist/web2c"))
402 (separator #f))))
0aa34e82
AE
403 (synopsis "TeX Live, a package of the TeX typesetting system")
404 (description
405 "TeX Live provides a comprehensive TeX document production system.
406It includes all the major TeX-related programs, macro packages, and fonts
407that are free software, including support for many languages around the
408world.
409
410This package contains the binaries.")
132e14b4
EF
411 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
412 (home-page "https://www.tug.org/texlive/")))
0aa34e82 413
2cece695
RW
414\f
415(define-public texlive-unicode-data
416 (package
417 (inherit (simple-texlive-package
418 "texlive-unicode-data"
419 (list "/tex/generic/unicode-data/"
420 "/doc/generic/unicode-data/")
421 (base32
422 "1j63kz29arfiydb8r1a53q1r4zyk1yjbcq0w9i93zddczgqzgbfb")
423 #:trivial? #t))
424 (home-page "https://www.ctan.org/pkg/unicode-data")
425 (synopsis "Unicode data and loaders for TeX")
426 (description "This bundle provides generic access to Unicode Consortium
427data for TeX use. It contains a set of text files provided by the Unicode
428Consortium which are currently all from Unicode 8.0.0, with the exception of
429@code{MathClass.txt} which is not currently part of the Unicode Character
430Database. Accompanying these source data are generic TeX loader files
431allowing this data to be used as part of TeX runs, in particular in building
432format files. Currently there are two loader files: one for general character
433set up and one for initializing XeTeX character classes as has been carried
434out to date by @code{unicode-letters.tex}. ")
435 (license license:lppl1.3c+)))
436
437(define-public texlive-generic-unicode-data
438 (deprecated-package "texlive-generic-unicode-data" texlive-unicode-data))
439
92b4a48c
RW
440(define-public texlive-hyphen-base
441 (package
442 (inherit (simple-texlive-package
443 "texlive-hyphen-base"
444 (list "/tex/generic/config/language.dat"
445 "/tex/generic/config/language.dat.lua"
446 "/tex/generic/config/language.def"
447 "/tex/generic/config/language.us"
448 "/tex/generic/config/language.us.def"
449 "/tex/generic/config/language.us.lua"
450 "/tex/generic/hyphen/dumyhyph.tex"
451 "/tex/generic/hyphen/hyphen.tex"
452 "/tex/generic/hyphen/hypht1.tex"
453 "/tex/generic/hyphen/zerohyph.tex")
454 (base32
455 "002g5zhzbj3ikgg8zidagdp605ac9f4qmfl148mp0mbpz1svk0ni")
456 #:trivial? #t))
457 (home-page "https://tug.org/texlive/")
458 (synopsis "Core hyphenation support files")
459 (description "This package includes Knuth's original @file{hyphen.tex},
460@file{zerohyph.tex} to disable hyphenation, @file{language.us} which starts
461the autogenerated files @file{language.dat} and @file{language.def} (and
462default versions of those), etc.")
463 (license license:knuth)))
464
659fda6c
RW
465;; TODO: This package should not exist. There should not be a single package
466;; containing all of /dvips. These really belong to different packages.
9d913b25
RW
467(define-public texlive-dvips
468 (package
659fda6c
RW
469 (inherit (simple-texlive-package
470 "texlive-dvips"
471 (list "/fonts/map/dvips/"
472 "/fonts/enc/dvips/base/"
473 "/dvips/")
474 (base32
475 "1di07wx8wjczddmagq5z082l2has3inzk5jwkqh4i6wv1qdfqpp6")
476 #:trivial? #t))
b8d8806b 477 (home-page "https://www.ctan.org/pkg/dvips")
9d913b25
RW
478 (synopsis "DVI to PostScript drivers")
479 (description "This package provides files needed for converting DVI files
480to PostScript.")
481 ;; Various free software licenses apply to individual files.
482 (license (list license:lppl1.3c+
483 license:expat
484 license:lgpl3+))))
485
b8df0d1b 486(define-public texlive-tex-ini-files
453aae66 487 (package
b8df0d1b
RW
488 (inherit (simple-texlive-package
489 "texlive-tex-ini-files"
490 (list "/tex/generic/tex-ini-files/")
491 (base32
492 "0q1g62jg0qiqslm93ycvm30bw8ydmssjdshzsnzl7n2vpd62qfi2")
493 #:trivial? #t))
b8d8806b 494 (home-page "https://www.ctan.org/pkg/tex-ini-files")
453aae66
RW
495 (synopsis "Files for creating TeX formats")
496 (description "This bundle provides a collection of model \".ini\" files
497for creating TeX formats. These files are commonly used to introduced
498distribution-dependent variations in formats. They are also used to
499allow existing format source files to be used with newer engines, for example
500to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
501 (license license:public-domain)))
502
b8df0d1b
RW
503(define-public texlive-generic-tex-ini-files
504 (deprecated-package "texlive-generic-tex-ini-files" texlive-tex-ini-files))
505
8ada0f0b
RW
506(define-public texlive-metafont-base
507 (package
508 (name "texlive-metafont-base")
509 (version (number->string %texlive-revision))
510 (source (origin
511 (method svn-fetch)
512 (uri (svn-reference
513 (url (string-append "svn://www.tug.org/texlive/tags/"
514 %texlive-tag "/Master/texmf-dist/"
515 "/metafont"))
516 (revision %texlive-revision)))
1dec413a 517 (file-name (string-append name "-" version "-checkout"))
8ada0f0b
RW
518 (sha256
519 (base32
520 "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
521 (build-system gnu-build-system)
522 (arguments
523 `(#:tests? #f ; no test target
524 #:phases
525 (modify-phases %standard-phases
526 (delete 'configure)
527 (replace 'build
528 (lambda* (#:key inputs #:allow-other-keys)
529 (let ((cwd (getcwd)))
530 (setenv "MFINPUTS"
531 (string-append cwd "/base:"
532 cwd "/misc:"
533 cwd "/roex:"
534 cwd "/feynmf:"
535 cwd "/mfpic:"
536 cwd "/config")))
537 (mkdir "build")
538 (with-directory-excursion "build"
3730a107 539 (invoke "inimf" "mf.mf"))))
8ada0f0b
RW
540 (replace 'install
541 (lambda* (#:key outputs #:allow-other-keys)
542 (let* ((out (assoc-ref outputs "out"))
543 (base (string-append out "/share/texmf-dist/web2c"))
544 (mf (string-append out "/share/texmf-dist/metafont/base")))
545 (mkdir-p base)
546 (mkdir-p mf)
547 (install-file "build/mf.base" base)
548 (copy-recursively "base" mf)
549 #t))))))
550 (native-inputs
551 `(("texlive-bin" ,texlive-bin)))
b8d8806b 552 (home-page "https://www.ctan.org/pkg/metafont")
8ada0f0b
RW
553 (synopsis "Metafont base files")
554 (description "This package provides the Metafont base files needed to
555build fonts using the Metafont system.")
556 (license license:knuth)))
557
513fff4c
RW
558(define-public texlive-tex-fontinst-base
559 (package
560 (name "texlive-tex-fontinst-base")
561 (version (number->string %texlive-revision))
562 (source (origin
563 (method svn-fetch)
564 (uri (svn-reference
565 (url (string-append "svn://www.tug.org/texlive/tags/"
566 %texlive-tag "/Master/texmf-dist/"
567 "/tex/fontinst/base"))
568 (revision %texlive-revision)))
569 (file-name (string-append name "-" version "-checkout"))
570 (sha256
571 (base32
572 "12gnb8hc45p47pqn31msvi4mpr3wxbbbf2k4xhmshjqykwzlx508"))))
573 (build-system trivial-build-system)
574 (arguments
575 `(#:modules ((guix build utils))
576 #:builder
577 (begin
578 (use-modules (guix build utils))
579 (let ((target (string-append (assoc-ref %outputs "out")
580 "/share/texmf-dist/tex/fontinst/base")))
581 (mkdir-p target)
582 (copy-recursively (assoc-ref %build-inputs "source") target)
583 #t))))
584 (home-page "https://www.ctan.org/pkg/fontinst")
585 (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
586 (description "This package provides TeX macros for converting Adobe Font
587Metric files to TeX metric and virtual font format. Fontinst helps mainly
588with the number crunching and shovelling parts of font installation. This
589means in practice that it creates a number of files which give the TeX
590metrics (and related information) for a font family that TeX needs to do any
591typesetting in these fonts.")
592 (license license:lppl1.1+)))
593
dea67d8a
RW
594(define-public texlive-fontname
595 (package
596 (name "texlive-fontname")
597 (version (number->string %texlive-revision))
598 (source (origin
599 (method svn-fetch)
600 (uri (svn-reference
601 (url (string-append "svn://www.tug.org/texlive/tags/"
602 %texlive-tag "/Master/texmf-dist/"
603 "/fonts/map/fontname"))
604 (revision %texlive-revision)))
b8e213cb 605 (file-name (string-append name "-" version "-checkout"))
dea67d8a
RW
606 (sha256
607 (base32
d4d9a1ec 608 "05rbn7z30xawd3n6w7c3ijp2yc67ga220jgqmkla9pd9wx185rzq"))))
dea67d8a
RW
609 (build-system trivial-build-system)
610 (arguments
611 `(#:modules ((guix build utils))
612 #:builder
613 (begin
614 (use-modules (guix build utils))
615 (let ((target (string-append (assoc-ref %outputs "out")
616 "/share/texmf-dist/fonts/map/fontname")))
617 (mkdir-p target)
618 (copy-recursively (assoc-ref %build-inputs "source") target)
619 #t))))
620 (home-page "https://www.ctan.org/pkg/fontname")
621 (synopsis "Scheme for naming fonts in TeX")
622 (description "This is Fontname, a naming scheme for (the base part of)
623external TeX font filenames. This makes at most eight-character names
624from (almost) arbitrarily complex font names, thus helping portability of TeX
625documents.")
626 (license license:public-domain)))
627
3c4f1ec7
RW
628(define-public texlive-fonts-cm
629 (package
2b63e54b
RW
630 (inherit (simple-texlive-package
631 "texlive-fonts-cm"
632 (list "/fonts/source/public/cm/"
633 "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map"
634 "/doc/fonts/cm/README"
635 "/doc/fonts/cm/README-cmps.txt")
636 (base32
637 "1h0q71paqmg1xjg6k35ni2i6m93kmlq9rdwm913xg9n4qngywl18")))
638 (outputs '("out" "doc"))
3c4f1ec7
RW
639 (build-system gnu-build-system)
640 (arguments
641 `(#:modules ((guix build gnu-build-system)
642 (guix build utils)
643 (srfi srfi-1)
644 (srfi srfi-26))
645 #:tests? #f ; no tests
646 #:phases
647 (modify-phases %standard-phases
648 (delete 'configure)
649 (replace 'build
650 (lambda* (#:key inputs #:allow-other-keys)
651 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
652 ;; Tell mf where to find mf.base
653 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
654 ;; Tell mf where to look for source files
655 (setenv "MFINPUTS"
2b63e54b 656 (string-append (getcwd) "/fonts/source/public/cm/:"
3c4f1ec7 657 mf "/share/texmf-dist/metafont/base")))
2b63e54b
RW
658 (for-each make-file-writable
659 (cons "fonts/source/public/cm/"
660 (find-files "fonts/source/public/cm/" ".*")))
661 (let ((build (string-append (getcwd) "/build"))
662 (pkdir (string-append (getcwd) "/pk/ljfour/public/cm/dpi600")))
663 (mkdir-p pkdir)
664 (mkdir-p build)
665 (with-directory-excursion "fonts/source/public/cm/"
666 (for-each (lambda (font)
667 (format #t "building font ~a\n" font)
668 (invoke "mf" "-progname=mf"
669 (string-append "-output-directory=" build)
670 (string-append "\\"
671 "mode:=ljfour; "
672 "mag:=1+0/600; "
673 "scrollmode; "
674 "input "
675 (basename font ".mf")))
676 (invoke "gftopk"
677 (string-append build "/"
678 (basename font ".mf") ".600gf")
679 (string-append pkdir "/"
680 (basename font ".mf") ".pk")))
681 (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
ff440d62 682 #t))
3c4f1ec7 683 (replace 'install
6534e885 684 (lambda* (#:key inputs outputs #:allow-other-keys)
2b63e54b
RW
685 (let* ((out (assoc-ref outputs "out"))
686 (doc (assoc-ref outputs "doc"))
687 (source (assoc-ref inputs "source"))
688 (fonts (string-append out "/share/texmf-dist/fonts/"))
689 (pk (string-append fonts "pk"))
690 (tfm (string-append fonts "tfm/public/cm"))
691 (mf (string-append fonts "source/public/cm")))
3c4f1ec7
RW
692 (for-each (cut install-file <> tfm)
693 (find-files "build" "\\.*"))
694 (for-each (cut install-file <> mf)
695 (find-files "." "\\.mf"))
26a05061 696 (copy-recursively "pk" pk)
2b63e54b
RW
697 (copy-recursively
698 (string-append source "/doc")
699 (string-append doc "/doc"))
700 (install-file
701 (string-append source "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map")
702 (string-append fonts "/map/dvips/cm/cmtext-bsr-interpolated.map"))
3c4f1ec7
RW
703 #t))))))
704 (native-inputs
705 `(("texlive-bin" ,texlive-bin)
0512ae30 706 ("texlive-metafont-base" ,texlive-metafont-base)))
b8d8806b 707 (home-page "https://www.ctan.org/pkg/cm")
3c4f1ec7
RW
708 (synopsis "Computer Modern fonts for TeX")
709 (description "This package provides the Computer Modern fonts by Donald
710Knuth. The Computer Modern font family is a large collection of text,
711display, and mathematical fonts in a range of styles, based on Monotype Modern
7128A.")
713 (license license:knuth)))
714
4e9242aa
RW
715(define-public texlive-fonts-cm-super
716 (package
717 (name "texlive-fonts-cm-super")
718 (version (number->string %texlive-revision))
719 (source (origin
720 (method svn-fetch)
721 (uri (svn-reference
722 (url (string-append "svn://www.tug.org/texlive/tags/"
723 %texlive-tag "/Master/texmf-dist/"
724 "/tex/latex/cm-super"))
725 (revision %texlive-revision)))
726 (file-name (string-append name "-" version "-checkout"))
727 (sha256
728 (base32
729 "0ybb4gi2rblzpb6wfzm2wk7dj3y2jnmkzsla7mz7g3zc12y4r2b9"))))
730 (build-system trivial-build-system)
731 (arguments
732 `(#:modules ((guix build utils)
733 (ice-9 match))
734 #:builder
735 (begin
736 (use-modules (guix build utils)
737 (ice-9 match))
738 (let ((root (string-append (assoc-ref %outputs "out")
739 "/share/texmf-dist/"))
740 (pkgs '(("source" . "tex/latex/cm-super")
741 ("cm-super-afm" . "fonts/afm/public/cm-super")
742 ("cm-super-type1" . "fonts/type1/public/cm-super")
743 ("cm-super-enc" . "fonts/enc/dvips/cm-super")
744 ("cm-super-map" . "fonts/map/dvips/cm-super")
745 ("cm-super-vtex" . "fonts/map/vtex/cm-super"))))
746 (for-each (match-lambda
747 ((pkg . dir)
748 (let ((target (string-append root dir)))
749 (mkdir-p target)
750 (copy-recursively (assoc-ref %build-inputs pkg)
751 target))))
752 pkgs)
753 #t))))
754 (native-inputs
755 `(("cm-super-vtex"
756 ,(origin
757 (method svn-fetch)
758 (uri (svn-reference
759 (url (string-append "svn://www.tug.org/texlive/tags/"
760 %texlive-tag "/Master/texmf-dist/"
761 "/fonts/map/vtex/cm-super"))
762 (revision %texlive-revision)))
763 (file-name (string-append name "-map-vtex-" version "-checkout"))
764 (sha256
765 (base32
766 "14c9allsgfv6za9wznz4cxqxwz5nsmj8rnwvxams8fhs5rvglxqi"))))
767 ("cm-super-afm"
768 ,(origin
769 (method svn-fetch)
770 (uri (svn-reference
771 (url (string-append "svn://www.tug.org/texlive/tags/"
772 %texlive-tag "/Master/texmf-dist/"
773 "/fonts/afm/public/cm-super"))
774 (revision %texlive-revision)))
775 (file-name (string-append name "-afm-" version "-checkout"))
776 (sha256
777 (base32
778 "048ih65f2nghdabdar2p957c4s2spgllmy2gxdscddwqpnmd26yn"))))
779 ("cm-super-type1"
780 ,(origin
781 (method svn-fetch)
782 (uri (svn-reference
783 (url (string-append "svn://www.tug.org/texlive/tags/"
784 %texlive-tag "/Master/texmf-dist/"
785 "/fonts/type1/public/cm-super"))
786 (revision %texlive-revision)))
787 (file-name (string-append name "-type1-" version "-checkout"))
788 (sha256
789 (base32
790 "1140swk3w2ka0y4zdsq6pdifrdanb281q71p5gngbbjxdxjxf4qx"))))
791 ("cm-super-map"
792 ,(origin
793 (method svn-fetch)
794 (uri (svn-reference
795 (url (string-append "svn://www.tug.org/texlive/tags/"
796 %texlive-tag "/Master/texmf-dist/"
797 "/fonts/map/dvips/cm-super"))
798 (revision %texlive-revision)))
799 (file-name (string-append name "-map-" version "-checkout"))
800 (sha256
801 (base32
802 "10r6xqbwf9wk3ylg7givwyrw1952zydc6p7fw29zjf8ijl0lndim"))))
803 ("cm-super-enc"
804 ,(origin
805 (method svn-fetch)
806 (uri (svn-reference
807 (url (string-append "svn://www.tug.org/texlive/tags/"
808 %texlive-tag "/Master/texmf-dist/"
809 "/fonts/enc/dvips/cm-super"))
810 (revision %texlive-revision)))
811 (file-name (string-append name "-enc-" version "-checkout"))
812 (sha256
813 (base32
814 "1pgksy96gfgyjxfhs2k04bgg7nr7i128y01kjcahr7n38080h4ij"))))))
815 (home-page "https://www.ctan.org/pkg/cm-super")
816 (synopsis "Computer Modern Super family of fonts")
817 (description "The CM-Super family provides Adobe Type 1 fonts that replace
818the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete,
819T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European
820languages except Greek), and bringing many ameliorations in typesetting
821quality. The fonts exhibit the same metrics as the METAFONT-encoded
822originals.")
823 ;; With font exception
824 (license license:gpl2+)))
825
c2a1fe4a
RW
826(define-public texlive-fonts-lm
827 (package
828 (name "texlive-fonts-lm")
829 (version "2.004")
830 (source (origin
831 (method url-fetch)
832 (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
833 "latin-modern/download/lm" version "bas.zip"))
834 (sha256
835 (base32
836 "0z2s253y751m2ci5aw8nq0sf2kyg9hpimv2gyixkch9d07m2b9wp"))))
837 (build-system trivial-build-system)
838 (arguments
839 `(#:modules ((guix build utils))
840 #:builder
841 (begin
842 (use-modules (guix build utils))
843 (let ((root (string-append (assoc-ref %outputs "out")
844 "/share/texmf-dist/")))
845 (mkdir-p root)
846 (with-directory-excursion root
847 (invoke (string-append (assoc-ref %build-inputs "unzip")
848 "/bin/unzip")
849 (assoc-ref %build-inputs "source")))
850 #t))))
851 (native-inputs
852 `(("unzip" ,unzip)))
853 (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/")
854 (synopsis "Latin Modern family of fonts")
855 (description "The Latin Modern fonts are derived from the famous Computer
856Modern fonts designed by Donald E. Knuth and described in Volume E of his
857Computers & Typesetting series.")
858 ;; The GUST font license (GFL) is legally identical to the LaTeX Project
859 ;; Public License (LPPL), version 1.3c or later, but comes with an
860 ;; additional but not legally binding clause.
861 (license license:lppl1.3c+)))
862
5ebba61a
RW
863(define-public texlive-fonts-knuth-lib
864 (package
865 (name "texlive-fonts-knuth-lib")
866 (version (number->string %texlive-revision))
867 (source (origin
868 (method svn-fetch)
869 (uri (svn-reference
870 (url (string-append "svn://www.tug.org/texlive/tags/"
871 %texlive-tag "/Master/texmf-dist/"
872 "/fonts/source/public/knuth-lib"))
873 (revision %texlive-revision)))
6b286e42 874 (file-name (string-append name "-" version "-checkout"))
5ebba61a
RW
875 (sha256
876 (base32
877 "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
878 (build-system gnu-build-system)
879 (arguments
880 `(#:modules ((guix build gnu-build-system)
881 (guix build utils)
882 (srfi srfi-26))
883 #:tests? #f ; no tests
884 #:phases
885 (modify-phases %standard-phases
886 (delete 'configure)
887 (replace 'build
888 (lambda* (#:key inputs #:allow-other-keys)
889 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
890 ;; Tell mf where to find mf.base
891 (setenv "MFBASES"
892 (string-append mf "/share/texmf-dist/web2c"))
893 ;; Tell mf where to look for source files
894 (setenv "MFINPUTS"
895 (string-append (getcwd) ":"
896 mf "/share/texmf-dist/metafont/base")))
897 (mkdir "build")
96f5377d
RW
898 (for-each (lambda (font)
899 (format #t "building font ~a\n" font)
900 (invoke "mf" "-progname=mf"
901 "-output-directory=build"
902 (string-append "\\"
903 "mode:=ljfour; "
904 "mag:=1; "
905 "batchmode; "
906 "input " font)))
907 (find-files "." "(manfnt|logo.+)\\.mf$"))
908 #t))
5ebba61a
RW
909 (replace 'install
910 (lambda* (#:key outputs #:allow-other-keys)
911 (let* ((out (assoc-ref outputs "out"))
912 (tfm (string-append
913 out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
914 (mf (string-append
915 out "/share/texmf-dist/fonts/source/public/knuth-lib")))
916 (for-each (cut install-file <> tfm)
917 (find-files "build" "\\.*"))
918 (for-each (cut install-file <> mf)
919 (find-files "." "\\.mf"))
920 #t))))))
921 (native-inputs
922 `(("texlive-bin" ,texlive-bin)
923 ("texlive-metafont-base" ,texlive-metafont-base)))
924 (home-page "https://www.ctan.org/pkg/knuth-lib")
925 (synopsis "Small library of METAFONT sources")
926 (description "This is a collection of core TeX and METAFONT macro files
927from Donald Knuth, including the plain format, plain base, and the MF logo
928fonts.")
929 (license license:knuth)))
930
a00d5933
RW
931(define-public texlive-fonts-latex
932 (package
933 (name "texlive-fonts-latex")
934 (version (number->string %texlive-revision))
935 (source (origin
936 (method svn-fetch)
937 (uri (svn-reference
938 (url (string-append "svn://www.tug.org/texlive/tags/"
939 %texlive-tag "/Master/texmf-dist/"
940 "/fonts/source/public/latex-fonts"))
941 (revision %texlive-revision)))
a4550e7d 942 (file-name (string-append name "-" version "-checkout"))
a00d5933
RW
943 (sha256
944 (base32
945 "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
946 (build-system gnu-build-system)
947 (arguments
948 `(#:modules ((guix build gnu-build-system)
949 (guix build utils)
950 (srfi srfi-1)
951 (srfi srfi-26))
952 #:tests? #f ; no tests
953 #:phases
954 (modify-phases %standard-phases
955 (delete 'configure)
956 (replace 'build
957 (lambda* (#:key inputs #:allow-other-keys)
958 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
959 ;; Tell mf where to find mf.base
960 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
961 ;; Tell mf where to look for source files
962 (setenv "MFINPUTS"
963 (string-append (getcwd) ":"
964 mf "/share/texmf-dist/metafont/base:"
965 (assoc-ref inputs "texlive-fonts-cm")
966 "/share/texmf-dist/fonts/source/public/cm")))
967 (mkdir "build")
806faaab
MW
968 (for-each (lambda (font)
969 (format #t "building font ~a\n" font)
970 (invoke "mf" "-progname=mf"
971 "-output-directory=build"
972 (string-append "\\"
973 "mode:=ljfour; "
974 "mag:=1; "
975 "batchmode; "
976 "input " font)))
977 '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
978 "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
979 "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
980 "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
981 "line10" "linew10"))
982 #t))
a00d5933
RW
983 (replace 'install
984 (lambda* (#:key outputs #:allow-other-keys)
985 (let* ((out (assoc-ref outputs "out"))
986 (tfm (string-append
987 out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
988 (mf (string-append
989 out "/share/texmf-dist/fonts/source/public/latex-fonts")))
990 (for-each (cut install-file <> tfm)
991 (find-files "build" "\\.*"))
992 (for-each (cut install-file <> mf)
993 (find-files "." "\\.mf"))
994 #t))))))
995 (native-inputs
996 `(("texlive-bin" ,texlive-bin)
997 ("texlive-metafont-base" ,texlive-metafont-base)
998 ("texlive-fonts-cm" ,texlive-fonts-cm)))
b8d8806b 999 (home-page "https://www.ctan.org/pkg/latex-fonts")
a00d5933
RW
1000 (synopsis "Collection of fonts used in LaTeX distributions")
1001 (description "This is a collection of fonts for use with standard LaTeX
1002packages and classes. It includes invisible fonts (for use with the slides
1003class), line and circle fonts (for use in the picture environment) and LaTeX
1004symbol fonts.")
1005 (license license:lppl1.2+)))
1006
6072f82a
RW
1007(define-public texlive-latex-mflogo
1008 (package
1009 (name "texlive-latex-mflogo")
1010 (version (number->string %texlive-revision))
1011 (source
1012 (origin
1013 (method svn-fetch)
1014 (uri (texlive-ref "latex" "mflogo"))
1015 (sha256
1016 (base32
1017 "15i2ib6nvhf31g1b92c6njf7n0g29znlq7hbfp9ii7qabhcwwvrj"))))
1018 (build-system texlive-build-system)
1019 (arguments '(#:tex-directory "latex/mflogo"))
1020 (home-page "http://www.ctan.org/pkg/mflogo")
1021 (synopsis "LaTeX support for Metafont logo fonts")
1022 (description
1023 "This package provides LaTeX and font definition files to access the
1024Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont
1025logos in LaTeX documents.")
1026 (license license:lppl)))
1027
01cf8c89
RW
1028(define-public texlive-fonts-mflogo-font
1029 (package
1030 (name "texlive-fonts-mflogo-font")
1031 (version (number->string %texlive-revision))
1032 (source (origin
1033 (method svn-fetch)
1034 (uri (svn-reference
1035 (url (string-append "svn://www.tug.org/texlive/tags/"
1036 %texlive-tag "/Master/texmf-dist/"
1037 "/fonts/type1/hoekwater/mflogo-font"))
1038 (revision %texlive-revision)))
1039 (file-name (string-append name "-" version "-checkout"))
1040 (sha256
1041 (base32
1042 "09fsxfpiyxjljkrb52b197728bjnkcnv3bdwm4hl6hf23mbmqadf"))))
1043 (build-system trivial-build-system)
1044 (arguments
1045 `(#:modules ((guix build utils)
1046 (ice-9 match))
1047 #:builder
1048 (begin
1049 (use-modules (guix build utils)
1050 (ice-9 match))
1051 (let ((root (string-append (assoc-ref %outputs "out")
1052 "/share/texmf-dist/"))
1053 (pkgs '(("source" . "fonts/type1/hoekwater/mflogo-font")
1054 ("afm" . "fonts/afm/hoekwater/mflogo-font")
1055 ("fonts-map" . "fonts/map/dvips/mflogo-font"))))
1056 (for-each (match-lambda
1057 ((pkg . dir)
1058 (let ((target (string-append root dir)))
1059 (mkdir-p target)
1060 (copy-recursively (assoc-ref %build-inputs pkg)
1061 target))))
1062 pkgs)
1063 #t))))
1064 (native-inputs
1065 `(("afm"
1066 ,(origin
1067 (method svn-fetch)
1068 (uri (svn-reference
1069 (url (string-append "svn://www.tug.org/texlive/tags/"
1070 %texlive-tag "/Master/texmf-dist/"
1071 "/fonts/afm/hoekwater/mflogo-font"))
1072 (revision %texlive-revision)))
1073 (file-name (string-append name "-afm-" version "-checkout"))
1074 (sha256
1075 (base32
1076 "0bx1mfhhzsk9gj1pha36q2rk0jd0y285qm62zgvdvzzzlfnk8sdb"))))
1077 ("fonts-map"
1078 ,(origin
1079 (method svn-fetch)
1080 (uri (svn-reference
1081 (url (string-append "svn://www.tug.org/texlive/tags/"
1082 %texlive-tag "/Master/texmf-dist/"
1083 "/fonts/map/dvips/mflogo-font/"))
1084 (revision %texlive-revision)))
1085 (file-name (string-append name "-fonts-map-" version "-checkout"))
1086 (sha256
1087 (base32
1088 "044xrrpl8hnvj55cx2ql1ib1bcyr33nzanx5nkwxpai7fb7pg4y6"))))))
1089 (home-page "https://www.ctan.org/pkg/mflogo-font")
1090 (synopsis "Metafont logo font")
1091 (description
1092 "These fonts were created in METAFONT by Knuth, for his own publications.
1093At some stage, the letters P and S were added, so that the METAPOST logo could
1094also be expressed. The fonts were originally issued (of course) as METAFONT
1095source; they have since been autotraced and reissued in Adobe Type 1 format by
1096Taco Hoekwater.")
1097 (license license:knuth)))
1098
98b4aca1
RW
1099(define-public texlive-fonts-amsfonts
1100 (package
1101 (name "texlive-fonts-amsfonts")
1102 (version (number->string %texlive-revision))
1103 (source (origin
1104 (method svn-fetch)
1105 (uri (svn-reference
1106 (url (string-append "svn://www.tug.org/texlive/tags/"
1107 %texlive-tag "/Master/texmf-dist/"
1108 "/fonts/source/public/amsfonts"))
1109 (revision %texlive-revision)))
5fe9233e 1110 (file-name (string-append name "-" version "-checkout"))
98b4aca1
RW
1111 (sha256
1112 (base32
1113 "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
1114 (build-system gnu-build-system)
1115 (arguments
1116 `(#:modules ((guix build gnu-build-system)
1117 (guix build utils)
fe2bfabe 1118 (ice-9 match)
98b4aca1
RW
1119 (srfi srfi-1)
1120 (srfi srfi-26))
1121 #:tests? #f ; no tests
1122 #:phases
1123 (modify-phases %standard-phases
1124 (delete 'configure)
1125 (replace 'build
1126 (lambda* (#:key inputs #:allow-other-keys)
fe2bfabe 1127 (let ((mf (assoc-ref inputs "texlive-union"))
98b4aca1 1128 (cwd (getcwd)))
db6609bd
DM
1129 ;; Make METAFONT reproducible
1130 (setenv "SOURCE_DATE_EPOCH" "1")
98b4aca1
RW
1131 ;; Tell mf where to find mf.base
1132 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
1133 ;; Tell mf where to look for source files
1134 (setenv "MFINPUTS"
1135 (string-append cwd ":"
1136 cwd "/cmextra:"
1137 cwd "/cyrillic:"
1138 cwd "/dummy:"
1139 cwd "/symbols:"
1140 mf "/share/texmf-dist/metafont/base:"
1141 (assoc-ref inputs "texlive-fonts-cm")
1142 "/share/texmf-dist/fonts/source/public/cm")))
1143 (mkdir "build")
2762023a
MW
1144 (for-each (lambda (font)
1145 (format #t "building font ~a\n" (basename font ".mf"))
1146 (with-directory-excursion (dirname font)
1147 (invoke "mf" "-progname=mf"
1148 "-output-directory=../build"
1149 (string-append "\\"
1150 "mode:=ljfour; "
1151 "mag:=1; "
1152 "nonstopmode; "
1153 "input "
1154 (getcwd) "/"
1155 (basename font ".mf")))))
1156 (find-files "." "[0-9]+\\.mf$"))
fe2bfabe
RW
1157
1158 ;; There are no metafont sources for the Euler fonts, so we
1159 ;; convert the afm files instead.
1160 (mkdir "build/euler")
1161 (for-each (lambda (font)
1162 (format #t "converting afm font ~a\n" (basename font ".afm"))
1163 (invoke "afm2tfm" font
1164 (string-append "build/euler/"
1165 (basename font ".tfm"))))
1166 (find-files (assoc-ref inputs "amsfonts-afm")
1167 "\\.afm$"))
1168
1169 ;; Frustratingly, not all fonts can be created this way. To
1170 ;; generate eufm8.tfm, for example, we first scale down
1171 ;; eufm10.afm to eufm8.pl, and then generate the tfm file from
1172 ;; the pl file.
1173 (with-directory-excursion "build/euler"
1174 (setenv "TEXINPUTS"
1175 (string-append (getcwd) "//:"
1176 (assoc-ref inputs "amsfonts-afm") "//:"
1177 (assoc-ref inputs "texlive-union") "//"))
1178 (for-each (match-lambda
1179 (((target-base target-size)
1180 (source-base source-size))
1181 (let ((factor (number->string
1182 (truncate/ (* 1000 target-size)
1183 source-size))))
1184 (invoke "tex"
1185 "-interaction=scrollmode"
1186 (string-append "\\input fontinst.sty "
1187 "\\transformfont{" target-base "}"
1188 "{\\scalefont{" factor "}"
1189 "{\\fromafm{" source-base "}}} "
1190 "\\bye")))
1191 (invoke "pltotf"
1192 (string-append target-base ".pl")
1193 (string-append target-base ".tfm"))
1194 (delete-file (string-append target-base ".pl"))))
1195
1196 '((("eufm8" 8) ("eufm10" 10))
1197
1198 (("eufb6" 6) ("eufb7" 7))
1199 (("eufb8" 8) ("eufb10" 10))
1200 (("eufb9" 9) ("eufb10" 10))
1201
1202 (("eufm6" 6) ("eufb7" 7))
1203 (("eufm9" 9) ("eufb10" 10))
1204
1205 (("eurb6" 6) ("eurb7" 7))
1206 (("eurb8" 8) ("eurb10" 10))
1207 (("eurb9" 9) ("eurb10" 10))
1208
1209 (("eurm6" 6) ("eurm7" 7))
1210 (("eurm8" 8) ("eurm10" 10))
1211 (("eurm9" 9) ("eurm10" 10)))))
2762023a 1212 #t))
98b4aca1 1213 (replace 'install
24d0c4d0 1214 (lambda* (#:key inputs outputs #:allow-other-keys)
fe2bfabe
RW
1215 (let* ((out (assoc-ref outputs "out"))
1216 (root (string-append out "/share/texmf-dist/fonts/"))
1217 (pkgs '(("amsfonts-afm" . "afm/public/amsfonts")
1218 ("amsfonts-type1" . "type1/public/amsfonts")
1219 ("amsfonts-map" . "map/dvips/amsfonts"))))
1220 (for-each (match-lambda
1221 ((pkg . dir)
1222 (let ((target (string-append root dir)))
1223 (mkdir-p target)
1224 (copy-recursively (assoc-ref inputs pkg)
1225 target))))
1226 pkgs)
1227 (copy-recursively (assoc-ref inputs "amsfonts-plain")
1228 (string-append out "/share/texmf-dist/tex/plain/amsfonts"))
1229 (let* ((tfm (string-append root "tfm/public/amsfonts"))
1230 (mf (string-append root "source/public/amsfonts")))
1231 (copy-recursively "build" tfm)
1232 (for-each (cut install-file <> mf)
1233 (find-files "." "\\.mf"))
1234 #t)))))))
98b4aca1 1235 (native-inputs
fe2bfabe
RW
1236 `(("texlive-union" ,(texlive-union (list texlive-tex-fontinst-base
1237 texlive-fonts-cm
1238 texlive-metafont-base)))
1239 ("amsfonts-plain"
1240 ,(origin
1241 (method svn-fetch)
1242 (uri (svn-reference
1243 (url (string-append "svn://www.tug.org/texlive/tags/"
1244 %texlive-tag "/Master/texmf-dist/"
1245 "/tex/plain/amsfonts"))
1246 (revision %texlive-revision)))
1247 (file-name (string-append name "-plain-" version "-checkout"))
1248 (sha256
1249 (base32
1250 "1hi8c9rkfb6395sxf7fhkr91xygfg8am1hqij9g3h2c7qx3714qp"))))
1251 ("amsfonts-map"
1252 ,(origin
1253 (method svn-fetch)
1254 (uri (svn-reference
1255 (url (string-append "svn://www.tug.org/texlive/tags/"
1256 %texlive-tag "/Master/texmf-dist/"
1257 "/fonts/map/dvips/amsfonts"))
1258 (revision %texlive-revision)))
1259 (file-name (string-append name "-map-" version "-checkout"))
1260 (sha256
1261 (base32
1262 "1lrj3bd9ybj4aawzlygc6qvakbrwc5s0mc5n9rpic331frv3axfs"))))
24d0c4d0
RW
1263 ("amsfonts-type1"
1264 ,(origin
1265 (method svn-fetch)
1266 (uri (svn-reference
1267 (url (string-append "svn://www.tug.org/texlive/tags/"
1268 %texlive-tag "/Master/texmf-dist/"
1269 "/fonts/type1/public/amsfonts"))
1270 (revision %texlive-revision)))
1271 (file-name (string-append name "-type1-" version "-checkout"))
1272 (sha256
1273 (base32
fe2bfabe
RW
1274 "1zfz33vn6gm19njy74n8wmn7sljrimfhwns5z8qqhxqfh1g4qip2"))))
1275 ("amsfonts-afm"
1276 ,(origin
1277 (method svn-fetch)
1278 (uri (svn-reference
1279 (url (string-append "svn://www.tug.org/texlive/tags/"
1280 %texlive-tag "/Master/texmf-dist/"
1281 "/fonts/afm/public/amsfonts"))
1282 (revision %texlive-revision)))
1283 (file-name (string-append name "-afm-" version "-checkout"))
1284 (sha256
1285 (base32
1286 "1fifzkaihmjgchnk7dmw0c23k0cz999dxnc78ivmqvgi1dhx0iv8"))))))
b8d8806b 1287 (home-page "https://www.ctan.org/pkg/amsfonts")
98b4aca1
RW
1288 (synopsis "TeX fonts from the American Mathematical Society")
1289 (description
1290 "This package provides an extended set of fonts for use in mathematics,
1291including: extra mathematical symbols; blackboard bold letters (uppercase
1292only); fraktur letters; subscript sizes of bold math italic and bold Greek
1293letters; subscript sizes of large symbols such as sum and product; added sizes
1294of the Computer Modern small caps font; cyrillic fonts (from the University of
1295Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
1296files, and all except the Euler fonts are provided as Metafont source. The
1297distribution also includes the canonical Type 1 versions of the Computer
1298Modern family of fonts. The Euler fonts are supported by separate packages;
1299details can be found in the documentation.")
1300 (license license:silofl1.1)))
1301
137f9cbc
RW
1302(define-public texlive-latex-amsfonts
1303 (package
1304 (name "texlive-latex-amsfonts")
1305 (version (number->string %texlive-revision))
1306 (source (origin
1307 (method svn-fetch)
1308 (uri (texlive-ref "latex" "amsfonts"))
9700a0d0 1309 (file-name (string-append name "-" version "-checkout"))
137f9cbc
RW
1310 (sha256
1311 (base32
1312 "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
1313 (build-system texlive-build-system)
1314 (arguments '(#:tex-directory "latex/amsfonts"))
1315 (native-inputs
1316 `(("texlive-fonts-cm" ,texlive-fonts-cm)
1317 ("texlive-metafont-base" ,texlive-metafont-base)))
b8d8806b 1318 (home-page "https://www.ctan.org/pkg/amsfonts")
137f9cbc
RW
1319 (synopsis "TeX fonts from the American Mathematical Society")
1320 (description
1321 "This package provides basic LaTeX support for the symbol fonts provides
1322by the amsfonts package. It provides @code{amsfonts.sty}, with names of
1323individual symbols defined in @code{amssymb.sty}.")
1324 (license license:silofl1.1)))
1325
e4c5481d
RW
1326(define-public texlive-mkpattern
1327 (package
1328 (inherit (simple-texlive-package
1329 "texlive-mkpattern"
1330 (list "/doc/plain/mkpattern/README"
1331 "/doc/plain/mkpattern/mkpatdoc.tex"
1332 "/doc/plain/mkpattern/mkpatter.pdf"
1333 "/doc/plain/mkpattern/mkpattern-exmpl.tex"
1334 "/tex/plain/mkpattern/mkpatter.tex")
1335 (base32
1336 "0sxnkbcc802jl3fj56x9hvg978bpv15lhrwj0aykb4syq29l47ga")
1337 #:trivial? #t))
1338 (home-page "https://ctan.org/pkg/mkpattern")
1339 (synopsis "Utility for making hyphenation patterns")
1340 (description "Mkpattern is a general purpose program for the generation of
1341hyphenation patterns, with definition of letter sets and template-like
1342constructions. It also provides an easy way to handle different input and
1343output encodings, and features generation of clean UTF-8 patterns.")
1344 (license license:lppl)))
1345
566e95f7
RW
1346;; This provides etex.src which is needed to build various formats, including
1347;; luatex.fmt and pdflatex.fmt
1348(define-public texlive-tex-plain
1349 (package
1350 (name "texlive-tex-plain")
1351 (version (number->string %texlive-revision))
1352 (source (origin
1353 (method svn-fetch)
1354 (uri (svn-reference
1355 (url (string-append "svn://www.tug.org/texlive/tags/"
1356 %texlive-tag "/Master/texmf-dist/"
1357 "/tex/plain"))
1358 (revision %texlive-revision)))
b63aefe5 1359 (file-name (string-append name "-" version "-checkout"))
566e95f7
RW
1360 (sha256
1361 (base32
d4d9a1ec 1362 "1xknlb3gcw6jjqh97bhghxi594bzpj1zfzzfsrr9pvr9s1bx7dnf"))))
566e95f7
RW
1363 (build-system trivial-build-system)
1364 (arguments
1365 `(#:modules ((guix build utils))
1366 #:builder
1367 (begin
1368 (use-modules (guix build utils))
1369 (let ((target (string-append (assoc-ref %outputs "out")
1370 "/share/texmf-dist/tex/plain")))
1371 (mkdir-p target)
1372 (copy-recursively (assoc-ref %build-inputs "source") target)
1373 #t))))
1374 (home-page "https://www.ctan.org/pkg/plain")
1375 (synopsis "Plain TeX format and supporting files")
1376 (description
1377 "Contains files used to build the Plain TeX format, as described in the
1378TeXbook, together with various supporting files (some also discussed in the
1379book).")
1380 (license license:knuth)))
1381
df73a3d3
RW
1382(define-public texlive-hyphen-afrikaans
1383 (package
1384 (inherit (texlive-hyphen-package
1385 "texlive-hyphen-afrikaans" "af"
1386 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex")
1387 (base32
1388 "1vb3jccqnn1pm0680yqx52kvz595fmxnwa0cbf8qman6zglsssiw")))
1389 (synopsis "Hyphenation patterns for Afrikaans")
1390 (description "The package provides hyphenation patterns for the Afrikaans
1391language.")
1392 (license license:lppl1.3+)))
1393
619ca023
RW
1394(define-public texlive-hyphen-ancientgreek
1395 (package
1396 (inherit (texlive-hyphen-package
1397 "texlive-hyphen-ancientgreek" "grc"
1398 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-grc.tex"
1399 "/tex/generic/hyphen/grahyph5.tex"
1400 "/tex/generic/hyphen/ibyhyph.tex")
1401 (base32
1402 "0kwrqsz7wdr1d9kylzwp60ka3wfbj8iad029k5h6y94nb86mf7zv")))
1403 (synopsis "Hyphenation patterns for ancient Greek")
1404 (description "The package provides hyphenation patterns for ancient
1405Greek.")
1406 (license license:lppl1.3+)))
1407
a361f412
RW
1408(define-public texlive-hyphen-armenian
1409 (let ((template (texlive-hyphen-package
1410 "texlive-hyphen-armenian" "hy"
1411 (list "/source/generic/hyph-utf8/languages/hy/generate_patterns_hy.rb")
1412 (base32
1413 "0z666y580w1kpxssdanz67ykq257lf11a1mnp1jrn08zijvfrw9c"))))
1414 (package
1415 (inherit template)
1416 (arguments
1417 (substitute-keyword-arguments (package-arguments template)
1418 ((#:phases phases)
1419 `(modify-phases ,phases
1420 (add-before 'build 'build-patterns
1421 (lambda _
1422 (let ((target (string-append (getcwd)
1423 "/tex/generic/hyph-utf8/patterns/tex")))
1424 (mkdir-p target)
1425 (with-directory-excursion "source/generic/hyph-utf8/languages/hy/"
1426 (substitute* "generate_patterns_hy.rb"
1427 (("\\$file = File.new.*")
1428 (string-append "$file = File.new(\"" target
1429 "/hyph-hy.tex\",\"w\")\n")))
1430 (invoke "ruby" "generate_patterns_hy.rb"))
1431 #t)))
1432 (add-after 'install 'install-hyph-hy.tex
1433 (lambda* (#:key inputs outputs #:allow-other-keys)
1434 (let* ((out (assoc-ref outputs "out"))
1435 (target (string-append out "/share/texmf-dist/tex")))
1436 (copy-recursively "tex" target)
1437 #t)))))))
1438 (synopsis "Hyphenation patterns for Armenian")
1439 (description "The package provides hyphenation patterns for the Armenian
1440language.")
1441 ;; Any version of the LGPL.
1442 (license license:lgpl3+))))
1443
0ddbc25c
RW
1444(define-public texlive-hyphen-basque
1445 (let ((template (texlive-hyphen-package
1446 "texlive-hyphen-basque" "eu"
1447 (list "/source/generic/hyph-utf8/languages/eu/generate_patterns_eu.rb")
1448 (base32
1449 "1yhsbzf1g9dm70jfixsz51hsfvn26cwfkfxvhg7xv2piynr4v51l"))))
1450 (package
1451 (inherit template)
1452 (arguments
1453 (substitute-keyword-arguments (package-arguments template)
1454 ((#:phases phases)
1455 `(modify-phases ,phases
1456 (add-before 'build 'build-patterns
1457 (lambda _
1458 (let ((target (string-append (getcwd)
1459 "/tex/generic/hyph-utf8/patterns/tex")))
1460 (mkdir-p target)
1461 (with-directory-excursion "source/generic/hyph-utf8/languages/eu/"
1462 (substitute* "generate_patterns_eu.rb"
1463 (("\\$file = File.new.*")
1464 (string-append "$file = File.new(\"" target
1465 "/hyph-eu.tex\",\"w\")\n")))
1466 (invoke "ruby" "generate_patterns_eu.rb"))
1467 #t)))
1468 (add-after 'install 'install-hyph-eu.tex
1469 (lambda* (#:key inputs outputs #:allow-other-keys)
1470 (let* ((out (assoc-ref outputs "out"))
1471 (target (string-append out "/share/texmf-dist/tex")))
1472 (copy-recursively "tex" target)
1473 #t)))))))
1474 (synopsis "Hyphenation patterns for Basque")
1475 (description "The package provides hyphenation patterns for the Basque
1476language.")
1477 ;; "Free for any purpose".
1478 (license (license:fsf-free
1479 "/source/generic/hyph-utf8/languages/eu/generate_patterns_eu.rb")))))
1480
92266796
RW
1481(define-public texlive-hyphen-belarusian
1482 (package
1483 (inherit (texlive-hyphen-package
1484 "texlive-hyphen-belarusian" "be"
1485 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-be.tex")
1486 (base32
1487 "1xvffph824rg43gi2xs3ny9gzlp708fyxj9zfhckmg8pzh9vv3n6")))
1488 (synopsis "Hyphenation patterns for Belarusian")
1489 (description "The package provides hyphenation patterns for the Belarusian
1490language.")
1491 (license license:expat)))
1492
7ffc3105
RW
1493(define-public texlive-hyphen-bulgarian
1494 (package
1495 (inherit (texlive-hyphen-package
1496 "texlive-hyphen-bulgarian" "bg"
1497 (list "/doc/generic/hyph-utf8/bg/azbukaExtended.pdf"
1498 "/doc/generic/hyph-utf8/bg/azbukaExtended.tex"
1499 "/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex")
1500 (base32
1501 "06dxkk9azsggbri04i6g62lswygzadsx3rpqvbyzvbxc5wxz1dj1")))
1502 (synopsis "Hyphenation patterns for Bulgarian")
1503 (description "The package provides hyphenation patterns for the Bulgarian
1504language in T2A and UTF-8 encodings.")
1505 (license (license:non-copyleft
1506 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex"
1507 "Ancestral BSD variant"))))
1508
cbc7e109
RW
1509(define-public texlive-hyphen-catalan
1510 (package
1511 (inherit (texlive-hyphen-package
1512 "texlive-hyphen-catalan" "ca"
1513 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex")
1514 (base32
1515 "0cisx76jpw8kpd3an37m9h8ppiysnizgfzl48y9d9n3fvx8jyykb")))
1516 (synopsis "Hyphenation patterns for Catalan")
1517 (description "The package provides hyphenation patterns for Catalan in
1518T1/EC and UTF-8 encodings.")
1519 (license license:lppl1.0+)))
1520
9ebce8fc
RW
1521(define-public texlive-hyphen-chinese
1522 (package
1523 (inherit (texlive-hyphen-package
1524 "texlive-hyphen-chinese" "zh-latn-pinyin"
1525 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-zh-latn-pinyin.tex")
1526 (base32
1527 "07gbrn5fcl5d3hyg1zpai3zp1ggl73cmvpalwvh7ah313f57gjkk")))
1528 (synopsis "Hyphenation patterns for unaccented Chinese pinyin")
1529 (description "The package provides hyphenation patterns for unaccented
1530Chinese pinyin T1/EC and UTF-8 encodings.")
1531 (license license:gpl2+)))
0ddbc25c 1532
beed8377
RW
1533(define-public texlive-hyphen-churchslavonic
1534 (package
1535 (inherit (texlive-hyphen-package
1536 "texlive-hyphen-churchslavonic" "cu"
1537 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cu.tex")
1538 (base32
1539 "0xkqlz3ixyl4fxsnzrbxqrb82p0n67rhgpddbiyv3qwfnbr2b5a4")))
1540 (synopsis "Hyphenation patterns for Church Slavonic")
1541 (description "The package provides hyphenation patterns for Church
1542Slavonic in UTF-8 encoding.")
1543 (license license:expat)))
1544
1b1d8577
RW
1545(define-public texlive-hyphen-coptic
1546 (package
1547 (inherit (texlive-hyphen-package
1548 "texlive-hyphen-coptic" "cop"
1549 (list "/tex/generic/hyph-utf8/patterns/tex-8bit/copthyph.tex"
1550 "/tex/generic/hyph-utf8/patterns/tex/hyph-cop.tex")
1551 (base32
1552 "07i03jpdfy4ip7zbg4gnk4hk8zwj8rlni9dgrb1p8mfw2w19d80c")))
1553 (synopsis "Hyphenation patterns for Coptic")
1554 (description "The package provides hyphenation patterns for Coptic in
1555UTF-8 encoding as well as in ASCII-based encoding for 8-bit engines.")
1556 ;; No explicit license declaration, so we use the project license.
1557 (license license:lppl)))
1558
9b65c611
RW
1559(define-public texlive-hyphen-croatian
1560 (package
1561 (inherit (texlive-hyphen-package
1562 "texlive-hyphen-croatian" "hr"
1563 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hr.tex")
1564 (base32
1565 "129nz2nqilyq2477n2clx20xfbxh1qxm69zg4n2f6c4d4a8711nc")))
1566 (synopsis "Hyphenation patterns for Croatian")
1567 (description "The package provides hyphenation patterns for Croatian in
1568T1/EC and UTF-8 encodings.")
1569 (license license:lppl1.0+)))
1570
b5b2ef6e
RW
1571(define-public texlive-hyphen-czech
1572 (package
1573 (inherit (texlive-hyphen-package
1574 "texlive-hyphen-czech" "cs"
1575 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cs.tex")
1576 (base32
1577 "1k5516gbfp1d5p97j247byag9sdgds5zwc11bwxfk58i6zq1v0m6")))
1578 (synopsis "Hyphenation patterns for Czech")
1579 (description "The package provides hyphenation patterns for Czech in T1/EC
1580and UTF-8 encodings.")
1581 (license license:gpl2+)))
1582
3889b022
RW
1583(define-public texlive-hyphen-danish
1584 (package
1585 (inherit (texlive-hyphen-package
1586 "texlive-hyphen-danish" "da"
1587 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-da.tex")
1588 (base32
1589 "0zxzs1b1723mav76i0wiyq4w82x8715cykvwa2bc60ldc2amv0vs")))
1590 (synopsis "Hyphenation patterns for Danish")
1591 (description "The package provides hyphenation patterns for Danish in
1592T1/EC and UTF-8 encodings.")
1593 ;; Either LPPL 1.3 or later, or Expat
1594 (license (list license:lppl1.3+ license:expat))))
1595
402b835f
RW
1596(define-public texlive-hyphen-dutch
1597 (package
1598 (inherit (texlive-hyphen-package
1599 "texlive-hyphen-dutch" "nl"
1600 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex")
1601 (base32
1602 "0cq46cmgjc4y2x0xs9b0a5zca3jmszv4rkzmrhgjb5z2nm3xkrpi")))
1603 (synopsis "Hyphenation patterns for Dutch")
1604 (description "The package provides hyphenation patterns for Dutch in T1/EC
1605and UTF-8 encodings.")
1606 (license license:lppl1.0+)))
1607
ab8f6de6
RW
1608(define-public texlive-hyphen-english
1609 (package
1610 (inherit (texlive-hyphen-package
1611 "texlive-hyphen-english" '("en-gb" "en-us")
1612 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-en-gb.tex"
1613 "/tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex")
1614 (base32
1615 "08hyih8hn2w2q12gc4zygz0ckbz00mkzzn9898z2bicky02zg3kc")))
1616 (synopsis "Hyphenation patterns for American and British English")
1617 (description "The package provides additional hyphenation patterns for
1618American and British English in ASCII encoding.")
1619 (license (license:non-copyleft
1620 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex"
1621 "FSF all permissive license"))))
1622
d7c80395
RW
1623(define-public texlive-hyphen-esperanto
1624 (package
1625 (inherit (texlive-hyphen-package
1626 "texlive-hyphen-esperanto" "eo"
1627 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eo.tex")
1628 (base32
1629 "03xbjbzasznsyf4wd45bya6f4snfmzpdzg5zpvqj5q6gjykdg54k")))
1630 (synopsis "Hyphenation patterns for Esperanto")
1631 (description "The package provides hyphenation patterns for Esperanto ISO
1632Latin 3 and UTF-8 encodings.")
1633 (license license:lppl1.0+)))
1634
5f229484
RW
1635(define-public texlive-hyphen-estonian
1636 (package
1637 (inherit (texlive-hyphen-package
1638 "texlive-hyphen-estonian" "et"
1639 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-et.tex")
1640 (base32
1641 "0idl6xajkkgxqngjn19jcfd29is5rhfn59v0z8h4sv8yjv6k934m")))
1642 (synopsis "Hyphenation patterns for Estonian")
1643 (description "The package provides hyphenation patterns for Estonian in
1644T1/EC and UTF-8 encodings.")
1645 ;; Dual licensed under either license.
1646 (license (list license:lppl1.3+ license:expat))))
1647
54ef221c
RW
1648(define-public texlive-hyphen-ethiopic
1649 (let ((template (texlive-hyphen-package
1650 "texlive-hyphen-ethiopic" "mul-ethi"
1651 (list "/source/generic/hyph-utf8/languages/mul-ethi/generate_patterns_mul-ethi.lua")
1652 (base32
1653 "1dp5qn1mhv62kj27lqc7s0ca65z9bziyavkvif9ds5ivk7aq9drw"))))
1654 (package
1655 (inherit template)
1656 (arguments
1657 (substitute-keyword-arguments (package-arguments template)
1658 ((#:phases phases)
1659 `(modify-phases ,phases
1660 (add-before 'build 'build-patterns
1661 (lambda* (#:key inputs #:allow-other-keys)
1662 (let ((tex (string-append (getcwd)
1663 "/tex/generic/hyph-utf8/patterns/tex/")))
1664 (mkdir-p tex)
1665 (with-directory-excursion "source/generic/hyph-utf8/languages/mul-ethi/"
1666 (substitute* "generate_patterns_mul-ethi.lua"
1667 (("\"UnicodeData.txt\"")
1668 (string-append "\""
1669 (assoc-ref inputs "UnicodeData.txt")
1670 "\"")))
1671 (invoke "texlua" "generate_patterns_mul-ethi.lua")
1672 (rename-file "hyph-mul-ethi.tex"
1673 (string-append tex "/hyph-mul-ethi.tex"))
1674 #t))))
1675 (add-after 'install 'install-hyph-mul-ethi.tex
1676 (lambda* (#:key inputs outputs #:allow-other-keys)
1677 (let* ((out (assoc-ref outputs "out"))
1678 (target (string-append out "/share/texmf-dist/tex")))
1679 (copy-recursively "tex" target)
1680 #t)))))))
1681 (native-inputs
1682 `(,@(package-native-inputs template)
1683 ("texlive-bin" ,texlive-bin)
1684 ("UnicodeData.txt"
1685 ,(origin
1686 (method url-fetch)
1687 (uri (string-append "http://www.unicode.org/Public/10.0.0/ucd/"
1688 "UnicodeData.txt"))
1689 (sha256
1690 (base32
1691 "1cfak1j753zcrbgixwgppyxhm4w8vda8vxhqymi7n5ljfi6kwhjj"))))))
1692 (synopsis "Hyphenation patterns for Ethiopic scripts")
1693 (description "The package provides hyphenation patterns for languages
1694written using the Ethiopic script for Unicode engines. They are not supposed
1695to be linguistically relevant in all cases and should, for proper typography,
1696be replaced by files tailored to individual languages.")
1697 (license license:lppl))))
1698
bac10d82
RW
1699(define-public texlive-hyphen-finnish
1700 (package
1701 (inherit (texlive-hyphen-package
1702 "texlive-hyphen-finnish" "fi"
1703 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi.tex")
1704 (base32
1705 "03n6s8dwwa5vfk9bbyhcdf7p0bc0d1rrr312hpgbz8jfc9fbgd7n")))
1706 (synopsis "Hyphenation patterns for Finnish")
1707 (description "The package provides hyphenation patterns for Finnish in
1708T1/EC and UTF-8 encodings.")
1709 (license license:public-domain)))
1710
a14ffed2
RW
1711(define-public texlive-hyphen-french
1712 (package
1713 (inherit (texlive-hyphen-package
1714 "texlive-hyphen-french" "fr"
1715 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fr.tex")
1716 (base32
1717 "1q82mmwvy7fdkm42958ajb53w89qkcdwybswxlwcvqngvhpy3zf0")))
1718 (synopsis "Hyphenation patterns for French")
1719 (description "The package provides hyphenation patterns for French in
1720T1/EC and UTF-8 encodings.")
1721 (license license:expat)))
1722
28fbf42a
RW
1723(define-public texlive-hyphen-friulan
1724 (package
1725 (inherit (texlive-hyphen-package
1726 "texlive-hyphen-friulan" "fur"
1727 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fur.tex")
1728 (base32
1729 "07m975p0ghzs9sjqqgxy7qdkqmgvg4rx4xp08zwm1parqsdlwd5d")))
1730 (synopsis "Hyphenation patterns for Friulan")
1731 (description "The package provides hyphenation patterns for Friulan in
1732ASCII encodings.")
1733 (license license:lppl1.3+)))
1734
8d87184b
RW
1735(define-public texlive-hyphen-galician
1736 (let ((template (texlive-hyphen-package
1737 "texlive-hyphen-galician" "gl"
1738 (list "/source/generic/hyph-utf8/languages/gl/README"
1739 "/source/generic/hyph-utf8/languages/gl/glhybiox.tex"
1740 "/source/generic/hyph-utf8/languages/gl/glhyextr.tex"
1741 "/source/generic/hyph-utf8/languages/gl/glhymed.tex"
1742 "/source/generic/hyph-utf8/languages/gl/glhyquim.tex"
1743 "/source/generic/hyph-utf8/languages/gl/glhytec.tex"
1744 "/source/generic/hyph-utf8/languages/gl/glhyxeog.tex"
1745 "/source/generic/hyph-utf8/languages/gl/glpatter-utf8.tex")
1746 (base32
1747 "1yj1gxhkqqlyaand5gd6ij6xwffskryzlbcigdam3871a9p8x18w"))))
1748 (package
1749 (inherit template)
1750 (arguments
1751 (substitute-keyword-arguments (package-arguments template)
1752 ((#:phases phases)
1753 `(modify-phases ,phases
1754 (add-before 'build 'build-patterns
1755 (lambda* (#:key inputs #:allow-other-keys)
1756 (let ((tex (string-append (getcwd)
1757 "/tex/generic/hyph-utf8/patterns/tex/")))
1758 (mkdir-p tex)
1759 (with-directory-excursion "source/generic/hyph-utf8/languages/gl/"
1760 (setenv "TEXINPUTS"
1761 (string-append (getcwd) "//:"
1762 (assoc-ref inputs "texlive-mkpattern") "//"))
1763 (invoke "tex" "-ini" "-8bit" "glpatter-utf8.tex")
1764 (rename-file "hyph-gl.tex"
1765 (string-append tex "/hyph-gl.tex"))
1766 #t))))
1767 (add-after 'install 'install-hyph-gl.tex
1768 (lambda* (#:key inputs outputs #:allow-other-keys)
1769 (let* ((out (assoc-ref outputs "out"))
1770 (target (string-append out "/share/texmf-dist/tex")))
1771 (copy-recursively "tex" target)
1772 #t)))))))
1773 (native-inputs
1774 `(,@(package-native-inputs template)
1775 ("texlive-bin" ,texlive-bin)
1776 ("texlive-mkpattern" ,texlive-mkpattern)))
1777 (synopsis "Hyphenation patterns for Galician")
1778 (description "The package provides hyphenation patterns for Galician in
1779T1/EC and UTF-8 encodings.")
1780 ;; glhyextr.tex is the only file in the public domain.
1781 (license (list license:lppl1.3 license:public-domain)))))
1782
b2334b6e
RW
1783(define-public texlive-hyphen-georgian
1784 (package
1785 (inherit (texlive-hyphen-package
1786 "texlive-hyphen-georgian" "ka"
1787 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ka.tex")
1788 (base32
1789 "01zhn6mflpiqw4lyi8dx8syiz5mky9jrxm87cgw31hanis5cml4l")))
1790 (synopsis "Hyphenation patterns for Georgian")
1791 (description "The package provides hyphenation patterns for Georgian in
1792T8M, T8K, and UTF-8 encodings.")
1793 (license license:lppl1.3+)))
1794
6028620d
RW
1795(define-public texlive-hyphen-german
1796 (package
1797 (inherit (texlive-hyphen-package
1798 "texlive-hyphen-german" '("de-1901" "de-1996" "de-ch-1901")
1799 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1901.tex"
1800 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1996.tex"
1801 "/tex/generic/hyph-utf8/patterns/tex/hyph-de-ch-1901.tex"
1802 "/tex/generic/hyphen/dehyphn.tex"
1803 "/tex/generic/hyphen/dehypht.tex"
1804 "/tex/generic/hyphen/dehyphtex.tex"
1805 "/tex/generic/hyphen/ghyphen.README")
1806 (base32
1807 "1g0vhpvl2l69rn2lx7lkw0inrjbcxkj2sjgwd2fq7hdi4yb2ms76")))
1808 (synopsis "Hyphenation patterns for German")
1809 (description "This package provides hyphenation patterns for German in
1810T1/EC and UTF-8 encodings, for traditional and reformed spelling, including
1811Swiss German.")
1812 ;; The patterns are released under the Expat license; the dehyph* files
1813 ;; are released under the LPPL version 1 or later.
1814 (license (list license:expat license:lppl1.0+))))
1815
65e4cfd1
RW
1816(define-public texlive-hyphen-greek
1817 (package
1818 (inherit (texlive-hyphen-package
1819 "texlive-hyphen-greek" '("el-monoton" "el-polyton")
1820 (list "/doc/generic/elhyphen/"
1821 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-monoton.tex"
1822 "/tex/generic/hyph-utf8/patterns/tex/hyph-el-polyton.tex"
1823 "/tex/generic/hyphen/grmhyph5.tex"
1824 "/tex/generic/hyphen/grphyph5.tex")
1825 (base32
1826 "04626jhlrv2flgdygm7sfv6xpqhfwiavi16gy2ac04iliyk4rypg")))
1827 (synopsis "Hyphenation patterns for Greek")
1828 (description "This package provides hyphenation patterns for Modern Greek
1829in monotonic and polytonic spelling in LGR and UTF-8 encodings.")
1830 (license license:lppl)))
1831
36f03c33
RW
1832(define-public texlive-hyphen-hungarian
1833 (package
1834 (inherit (texlive-hyphen-package
1835 "texlive-hyphen-hungarian" "hu"
1836 (list "/doc/generic/huhyphen/"
1837 "/doc/generic/hyph-utf8/hu/"
1838 "/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex")
1839 (base32
1840 "0c81w2569cqsi4j56azwz0lfx16541zhiqgmn3m4iwh7mpx3rji8")))
1841 (synopsis "Hyphenation patterns for Hungarian")
1842 (description "This package provides hyphenation patterns for Hungarian in
1843T1/EC and UTF-8 encodings.")
1844 ;; Any of these licenses
1845 (license (list license:gpl2 license:lgpl2.1+ license:mpl1.1))))
1846
33a446e6
RW
1847(define-public texlive-hyphen-icelandic
1848 (package
1849 (inherit (texlive-hyphen-package
1850 "texlive-hyphen-icelandic" "is"
1851 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-is.tex")
1852 (base32
1853 "1ah1f82lgfhqgid4ngsfiypybx10v8gwxnb12396vfsj3bq6j0ba")))
1854 (synopsis "Hyphenation patterns for Icelandic")
1855 (description "This package provides hyphenation patterns for Icelandic in
1856T1/EC and UTF-8 encodings.")
1857 (license license:lppl1.2+)))
1858
825285d8
RW
1859(define-public texlive-hyphen-indic
1860 (package
1861 (inherit (texlive-hyphen-package
1862 "texlive-hyphen-indic"
1863 '("as" "bn" "gu" "hi" "kn" "ml" "mr" "or" "pa" "ta" "te")
1864 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-as.tex"
1865 "/tex/generic/hyph-utf8/patterns/tex/hyph-bn.tex"
1866 "/tex/generic/hyph-utf8/patterns/tex/hyph-gu.tex"
1867 "/tex/generic/hyph-utf8/patterns/tex/hyph-hi.tex"
1868 "/tex/generic/hyph-utf8/patterns/tex/hyph-kn.tex"
1869 "/tex/generic/hyph-utf8/patterns/tex/hyph-ml.tex"
1870 "/tex/generic/hyph-utf8/patterns/tex/hyph-mr.tex"
1871 "/tex/generic/hyph-utf8/patterns/tex/hyph-or.tex"
1872 "/tex/generic/hyph-utf8/patterns/tex/hyph-pa.tex"
1873 "/tex/generic/hyph-utf8/patterns/tex/hyph-ta.tex"
1874 "/tex/generic/hyph-utf8/patterns/tex/hyph-te.tex")
1875 (base32
1876 "1v8zc3wdbkhzjrflndmz4gdj11syz8vrcg0vwvm5bwhkx23g91lv")))
1877 (synopsis "Indic hyphenation patterns")
1878 (description "This package provides hyphenation patterns for Assamese,
1879Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Panjabi, Tamil
1880and Telugu for Unicode engines.")
1881 (license license:expat)))
1882
b6832d79
RW
1883(define-public texlive-hyphen-indonesian
1884 (package
1885 (inherit (texlive-hyphen-package
1886 "texlive-hyphen-indonesian" "id"
1887 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-id.tex")
1888 (base32
1889 "0mf0hr9c952kb2hmzid7fqg5whshwpribbyndb3ba092wh02abh5")))
1890 (synopsis "Indonesian hyphenation patterns")
1891 (description "This package provides hyphenation patterns for
1892Indonesian (Bahasa Indonesia) in ASCII encoding. They are probably also
1893usable for Malay (Bahasa Melayu).")
1894 (license license:gpl2)))
1895
9535f149
RW
1896(define-public texlive-hyphen-interlingua
1897 (package
1898 (inherit (texlive-hyphen-package
1899 "texlive-hyphen-interlingua" "ia"
1900 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ia.tex")
1901 (base32
1902 "1aihgma3rix4jkc1z5k1lh6hlfrncn66yj0givd3j6xjqflafr2g")))
1903 (synopsis "Interlingua hyphenation patterns")
1904 (description "This package provides hyphenation patterns for Interlingua
1905in ASCII encoding.")
1906 (license license:lppl1.3+)))
1907
88963a8e
RW
1908(define-public texlive-hyphen-irish
1909 (package
1910 (inherit (texlive-hyphen-package
1911 "texlive-hyphen-irish" "ga"
1912 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ga.tex")
1913 (base32
1914 "02k1fykgj3xamczjq16i9fsjjsh78pp5ypmh93p64izk2vymfwk0")))
1915 (synopsis "Irish hyphenation patterns")
1916 (description "This package provides hyphenation patterns for
1917Irish (Gaeilge) in T1/EC and UTF-8 encodings.")
1918 ;; Either of these licenses
1919 (license (list license:gpl2+ license:expat))))
1920
e33250e4
RW
1921(define-public texlive-hyphen-italian
1922 (package
1923 (inherit (texlive-hyphen-package
1924 "texlive-hyphen-italian" "it"
1925 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-it.tex")
1926 (base32
1927 "1a65q3hjn2p212cgv6p7wa0wcn34qnxcz2pl3v3ip0xmb16qqsk5")))
1928 (synopsis "Italian hyphenation patterns")
1929 (description "This package provides hyphenation patterns for Italian in
1930ASCII encoding. Compliant with the Recommendation UNI 6461 on hyphenation
1931issued by the Italian Standards Institution (Ente Nazionale di Unificazione
1932UNI).")
1933 (license license:lppl1.3+)))
1934
0b344257
RW
1935(define-public texlive-hyphen-kurmanji
1936 (package
1937 (inherit (texlive-hyphen-package
1938 "texlive-hyphen-kurmanji" "kmr"
1939 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-kmr.tex")
1940 (base32
1941 "1145ykfd0b0hgklindlxdgkqmsnj3cai3cwgllz411yqmrhjc6y9")))
1942 (synopsis "Kurmanji hyphenation patterns")
1943 (description "This package provides hyphenation patterns for
1944Kurmanji (Northern Kurdish) as spoken in Turkey and by the Kurdish diaspora in
1945Europe, in T1/EC and UTF-8 encodings.")
1946 (license license:lppl1.3)))
1947
2f3a07c6
RW
1948(define-public texlive-hyphen-latin
1949 (package
1950 (inherit (texlive-hyphen-package
1951 "texlive-hyphen-latin" '("la-x-classic" "la-x-liturgic" "la")
1952 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex"
1953 "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-liturgic.tex"
1954 "/tex/generic/hyph-utf8/patterns/tex/hyph-la.tex")
1955 (base32
1956 "1d8d6b47r4r000gqgzyl0sy9is0y0dg41jp8fw4gqq8qmcgdxgsg")))
1957 (synopsis "Liturgical Latin hyphenation patterns")
1958 (description "This package provides hyphenation patterns for Latin in
1959T1/EC and UTF-8 encodings, mainly in modern spelling (u when u is needed and v
1960when v is needed), medieval spelling with the ligatures @code{\\ae} and
1961@code{\\oe} and the (uncial) lowercase 'v' written as a 'u' is also supported.
1962Apparently there is no conflict between the patterns of modern Latin and those
1963of medieval Latin. It also includes hyphenation patterns for the Classical
1964Latin in T1/EC and UTF-8 encodings. Classical Latin hyphenation patterns are
1965different from those of 'plain' Latin, the latter being more adapted to modern
1966Latin. It also provides hyphenation patterns for the Liturgical Latin in
1967T1/EC and UTF-8 encodings.")
1968 ;; Either of these licenses
1969 (license (list license:lppl1.0+ license:expat))))
1970
e8effd27
RW
1971(define-public texlive-hyphen-latvian
1972 (package
1973 (inherit (texlive-hyphen-package
1974 "texlive-hyphen-latvian" "lv"
1975 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lv.tex")
1976 (base32
1977 "1xbh5s6nwfjbv7g4kmcpjkm02a6s767p7jn9qjcnz5ip0ndl5g66")))
1978 (synopsis "Latvian hyphenation patterns")
1979 (description "This package provides hyphenation patterns for Latvian in
1980L7X and UTF-8 encodings.")
1981 ;; Either of these licenses.
1982 (license (list license:gpl2 license:lgpl2.1))))
1983
af0e6cc8
RW
1984(define-public texlive-hyphen-lithuanian
1985 (package
1986 (inherit (texlive-hyphen-package
1987 "texlive-hyphen-lithuanian" "lt"
1988 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lt.tex")
1989 (base32
1990 "0v9spw0qkygkihj5app2immzqqr98w81pz460bcgvj1ah35jdfsl")))
1991 (synopsis "Lithuanian hyphenation patterns")
1992 (description "This package provides hyphenation patterns for Lithuanian in
1993L7X and UTF-8 encodings.")
1994 ;; "Do ... whatever ... as long as you respect the copyright"; as part of
1995 ;; the hyph-utf8 package we choose the LPPL license.
1996 (license license:lppl)))
1997
1890799b
RW
1998(define-public texlive-hyphen-mongolian
1999 (package
2000 (inherit (texlive-hyphen-package
2001 "texlive-hyphen-mongolian" '("mn-cyrl-x-lmc" "mn-cyrl")
2002 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl-x-lmc.tex"
2003 "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl.tex")
2004 (base32
2005 "0lqq3jgwgnclb1cn3x99xmk90xra9q51b00ypwy5crssmy023hqc")))
2006 (synopsis "Mongolian hyphenation patterns in Cyrillic script")
2007 (description "This package provides hyphenation patterns for Mongolian in
2008T2A, LMC and UTF-8 encodings.")
2009 ;; Either of these licenses
2010 (license (list license:lppl1.3+ license:expat))))
2011
da2b2d49
RW
2012(define-public texlive-hyphen-norwegian
2013 (package
2014 (inherit (texlive-hyphen-package
2015 "texlive-hyphen-norwegian" '("nb" "nn" "no")
2016 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nb.tex"
2017 "/tex/generic/hyph-utf8/patterns/tex/hyph-nn.tex"
2018 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex")
2019 (base32
2020 "1fxnf671yz0p3lmdkspna7fjh96br1jy6yf7v17yh4fxwry3s4yz")))
2021 (synopsis "Norwegian Bokmal and Nynorsk hyphenation patterns")
2022 (description "This package provides hyphenation patterns for Norwegian
2023Bokmal and Nynorsk in T1/EC and UTF-8 encodings.")
2024 (license (license:non-copyleft
2025 "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex"
2026 "FSF All permissive license"))))
2027
033406ad
RW
2028(define-public texlive-hyphen-occitan
2029 (package
2030 (inherit (texlive-hyphen-package
2031 "texlive-hyphen-occitan" "oc"
2032 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-oc.tex")
2033 (base32
2034 "1y6j6ac9ncn79p7hnp6mdwdsw9ij14zyjby5iwdhpvzzn7yyc7p8")))
2035 (synopsis "Occitan hyphenation patterns")
2036 (description "This package provides hyphenation patterns for Occitan in
2037T1/EC and UTF-8 encodings. They are supposed to be valid for all the Occitan
2038variants spoken and written in the wide area called 'Occitanie' by the French.
2039It ranges from the Val d'Aran within Catalunya, to the South Western Italian
2040Alps encompassing the southern half of the French pentagon.")
2041 (license license:lppl1.0+)))
2042
db3f7fda
RW
2043(define-public texlive-hyphen-piedmontese
2044 (package
2045 (inherit (texlive-hyphen-package
2046 "texlive-hyphen-piedmontese" "pms"
2047 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pms.tex")
2048 (base32
2049 "00fqzymkg374r3dzf1y82k6b18bqrf688vnjv0vkvw5a45srlb5r")))
2050 (synopsis "Piedmontese hyphenation patterns")
2051 (description "This package provides hyphenation patterns for Piedmontese
2052in ASCII encoding. Compliant with 'Gramatica dla lengua piemonteisa' by
2053Camillo Brero.")
2054 (license license:lppl1.3+)))
2055
9c451e77
RW
2056(define-public texlive-hyphen-polish
2057 (package
2058 (inherit (texlive-hyphen-package
2059 "texlive-hyphen-polish" "pl"
2060 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex")
2061 (base32
2062 "0dzq8ca96q7m5bslh51x8d30pdb86glh2gn3mmvq5ip813ckwh3s")))
2063 (synopsis "Polish hyphenation patterns")
2064 (description "This package provides hyphenation patterns for Polish in QX
2065and UTF-8 encodings.")
2066 ;; No differing license declared, so we choose the project license.
2067 (license license:lppl)))
2068
5fd12ffb
RW
2069(define-public texlive-hyphen-portuguese
2070 (package
2071 (inherit (texlive-hyphen-package
2072 "texlive-hyphen-portuguese" "pt"
2073 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pt.tex")
2074 (base32
2075 "1waxrmm33fd2qfc4kiaiblg8kwzasrvgq4j3l14z733d0hlg4rfz")))
2076 (synopsis "Portuguese hyphenation patterns")
2077 (description "This package provides hyphenation patterns for Portuguese in
2078T1/EC and UTF-8 encodings.")
2079 (license license:bsd-3)))
2080
6fa3b112
RW
2081(define-public texlive-hyphen-romanian
2082 (package
2083 (inherit (texlive-hyphen-package
2084 "texlive-hyphen-romanian" "ro"
2085 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ro.tex")
2086 (base32
2087 "12i1vryl51yhdpj163ahfyiy21rjmf4gkqgslpriirdjmyrwrs65")))
2088 (synopsis "Romanian hyphenation patterns")
2089 (description "This package provides hyphenation patterns for Romanian in
2090T1/EC and UTF-8 encodings.")
2091 ;; No differing license declared, so we choose the project license.
2092 (license license:lppl)))
2093
c4abd4a2
RW
2094(define-public texlive-hyphen-romansh
2095 (package
2096 (inherit (texlive-hyphen-package
2097 "texlive-hyphen-romansh" "rm"
2098 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex")
2099 (base32
2100 "06wan8i4appc1zfvc0q4cgnfv1nj0qgk02w3sg56zc11hf8sywl9")))
2101 (synopsis "Romansh hyphenation patterns")
2102 (description "This package provides hyphenation patterns for Romansh in
2103ASCII encodings. They are supposed to comply with the rules indicated by the
2104Lia Rumantscha (Romansh language society).")
2105 (license license:lppl1.3+)))
2106
483d8af6
RW
2107(define-public texlive-hyphen-russian
2108 (package
2109 (inherit (texlive-hyphen-package
2110 "texlive-hyphen-russian" "ru"
2111 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex")
2112 (base32
2113 "09s4vq23x4vff08ykmf08dvcdradjzzwvyys8p2wk6jxaqp980s3")))
2114 (synopsis "Russian hyphenation patterns")
2115 (description "This package provides hyphenation patterns for Russian in
2116T2A and UTF-8 encodings.")
2117 (license license:lppl1.2+)))
2118
19e31f91
RW
2119(define-public texlive-hyphen-sanskrit
2120 (package
2121 (inherit (texlive-hyphen-package
2122 "texlive-hyphen-sanskrit" "sa"
2123 (list "/doc/generic/hyph-utf8/sa/hyphenmin.txt"
2124 "/tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex")
2125 (base32
2126 "0grnn09l4i5yridx10yhm6dg9sbhgc2pmsp1p6hrcy7lzkqwdvs3")))
2127 (synopsis "Sanskrit hyphenation patterns")
2128 (description "This package provides hyphenation patterns for Sanskrit and
2129Prakrit in longdesc transliteration, and in Devanagari, Bengali, Kannada,
2130Malayalam longdesc and Telugu scripts for Unicode engines.")
2131 ;; "You may freely use, copy, modify and/or distribute this file."
2132 (license (license:non-copyleft
2133 "file:///tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex"))))
2134
67c7900e
RW
2135(define-public texlive-hyphen-serbian
2136 (package
2137 (inherit (texlive-hyphen-package
2138 "texlive-hyphen-serbian" '("sh-cyrl" "sh-latn" "sr-cyrl")
2139 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-cyrl.tex"
2140 "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-latn.tex"
2141 "/tex/generic/hyph-utf8/patterns/tex/hyph-sr-cyrl.tex")
2142 (base32
2143 "0fhdfydyaspb8dwirlf24vn7y9dzwmhsld0mmw0fz1lmcfaj252n")))
2144 (synopsis "Serbian hyphenation patterns")
2145 (description "This package provides hyphenation patterns for Serbian in
2146T1/EC, T2A and UTF-8 encodings.")
2147 ;; Any version of the GPL.
2148 (license license:gpl3+)))
2149
af13345a
RW
2150(define-public texlive-hyphen-slovak
2151 (package
2152 (inherit (texlive-hyphen-package
2153 "texlive-hyphen-slovak" "sk"
2154 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex")
2155 (base32
2156 "1cgw6fmyci3za3vsa49b6m74wqv582w0rpca7s9xva3hqm1m5qdg")))
2157 (synopsis "Slovak hyphenation patterns")
2158 (description "This package provides hyphenation patterns for Slovak in
2159T1/EC and UTF-8 encodings.")
2160 (license license:gpl2+)))
2161
3cd8868f
RW
2162(define-public texlive-hyphen-slovenian
2163 (package
2164 (inherit (texlive-hyphen-package
2165 "texlive-hyphen-slovenian" "sl"
2166 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sl.tex")
2167 (base32
2168 "1ixf2pxir9xf1gggq9k28xxglsq9bwqlghd9cl4amk5vrn5bjbds")))
2169 (synopsis "Slovenian hyphenation patterns")
2170 (description "This package provides hyphenation patterns for Slovenian in
2171T1/EC and UTF-8 encodings.")
2172 ;; Either license
2173 (license (list license:lppl1.0+ license:expat))))
2174
40b009b8
RW
2175(define-public texlive-hyphen-spanish
2176 (package
2177 ;; The source files "eshyph-make.lua" and "eshyph.src" are provided to
2178 ;; generate obsolete hyphenation patterns, which aren't included in a
2179 ;; default TeX Live distribution, so we don't include them either.
2180 (inherit (texlive-hyphen-package
2181 "texlive-hyphen-spanish" "es"
2182 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-es.tex")
2183 (base32
2184 "0jgs0zzyk2wwrjbx2hqdh5qggrnik9xmsxygbfhlb7gdrcrs0mbj")))
2185 (synopsis "Hyphenation patterns for Spanish")
2186 (description "The package provides hyphenation patterns for Spanish in
2187T1/EC and UTF-8 encodings.")
2188 (license license:expat)))
2189
1e7db181
RW
2190(define-public texlive-hyphen-swedish
2191 (package
2192 (inherit (texlive-hyphen-package
2193 "texlive-hyphen-swedish" "sv"
2194 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sv.tex")
2195 (base32
2196 "12sf9f43zwyzb4cn57yry8r4zmwdc7cfdljn3qwxwrny4m3sw4w8")))
2197 (synopsis "Swedish hyphenation patterns")
2198 (description "This package provides hyphenation patterns for Swedish in
2199T1/EC and UTF-8 encodings.")
2200 (license license:lppl1.2+)))
2201
3eaee8fb
RW
2202(define-public texlive-hyphen-thai
2203 (package
2204 (inherit (texlive-hyphen-package
2205 "texlive-hyphen-thai" "th"
2206 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-th.tex")
2207 (base32
2208 "15k1n4xdw8zzd5nrh76s53z4j95gxa4i2h1av5gx5vrjgblzzl97")))
2209 (synopsis "Thai hyphenation patterns")
2210 (description "This package provides hyphenation patterns for Thai in LTH
2211and UTF-8 encodings.")
2212 (license license:lppl1.3+)))
2213
e80ecb7b
RW
2214(define-public texlive-hyphen-turkish
2215 (let ((template (texlive-hyphen-package
2216 "texlive-hyphen-turkish" "tr"
2217 (list "/source/generic/hyph-utf8/languages/tr/generate_patterns_tr.rb")
2218 (base32
2219 "0rvlhs2z2sn312lqsf44bzknid5dry7d2sl2q1whfvr0y4qj1g8f"))))
2220 (package
2221 (inherit template)
2222 (arguments
2223 (substitute-keyword-arguments (package-arguments template)
2224 ((#:phases phases)
2225 `(modify-phases ,phases
2226 (add-before 'build 'build-patterns
2227 (lambda _
2228 (let ((target (string-append (getcwd)
2229 "/tex/generic/hyph-utf8/patterns/tex")))
2230 (mkdir-p target)
2231 (with-directory-excursion "source/generic/hyph-utf8/languages/tr/"
2232 (substitute* "generate_patterns_tr.rb"
2233 (("\\$file = File.new.*")
2234 (string-append "$file = File.new(\"" target
2235 "/hyph-tr.tex\",\"w\")\n")))
2236 (invoke "ruby" "generate_patterns_tr.rb"))
2237 #t)))
2238 (add-after 'install 'install-hyph-tr.tex
2239 (lambda* (#:key inputs outputs #:allow-other-keys)
2240 (let* ((out (assoc-ref outputs "out"))
2241 (target (string-append out "/share/texmf-dist/tex")))
2242 (copy-recursively "tex" target)
2243 #t)))))))
2244 (synopsis "Hyphenation patterns for Turkish")
2245 (description "The package provides hyphenation patterns for Turkish in
2246T1/EC and UTF-8 encodings. The patterns for Turkish were first produced for
2247the Ottoman Texts Project in 1987 and were suitable for both Modern Turkish
2248and Ottoman Turkish in Latin script, however the required character set didn't
2249fit into EC encoding, so support for Ottoman Turkish had to be dropped to keep
2250compatibility with 8-bit engines.")
2251 (license license:lppl1.0+))))
2252
5f50dd95
RW
2253(define-public texlive-hyphen-turkmen
2254 (let ((template (texlive-hyphen-package
2255 "texlive-hyphen-turkmen" "tk"
2256 (list "/source/generic/hyph-utf8/languages/tk/generate_patterns_tk.rb")
2257 (base32
2258 "1wlqx8wb0wsqhdv823brc3i8w1vf4m4bkb2vg917j5dq8p8p71aw"))))
2259 (package
2260 (inherit template)
2261 (arguments
2262 (substitute-keyword-arguments (package-arguments template)
2263 ((#:phases phases)
2264 `(modify-phases ,phases
2265 (add-before 'build 'build-patterns
2266 (lambda _
2267 (let ((target (string-append (getcwd)
2268 "/tex/generic/hyph-utf8/patterns/tex")))
2269 (mkdir-p target)
2270 (with-directory-excursion "source/generic/hyph-utf8/languages/tk/"
2271 (substitute* "generate_patterns_tk.rb"
2272 (("\\$file = File.new.*")
2273 (string-append "$file = File.new(\"" target
2274 "/hyph-tr.tex\",\"w\")\n")))
2275 (invoke "ruby" "generate_patterns_tk.rb"))
2276 #t)))
2277 (add-after 'install 'install-hyph-tk.tex
2278 (lambda* (#:key inputs outputs #:allow-other-keys)
2279 (let* ((out (assoc-ref outputs "out"))
2280 (target (string-append out "/share/texmf-dist/tex")))
2281 (copy-recursively "tex" target)
2282 #t)))))))
2283 (synopsis "Hyphenation patterns for Turkmen")
2284 (description "The package provides hyphenation patterns for Turkmen in
2285T1/EC and UTF-8 encodings.")
2286 (license license:public-domain))))
2287
cf8f4e1b
RW
2288(define-public texlive-hyphen-ukrainian
2289 (package
2290 (inherit (texlive-hyphen-package
2291 "texlive-hyphen-ukrainian" "uk"
2292 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-uk.tex")
2293 (base32
2294 "17z0gmw5svsf5zlhjkckwk4y21g7prfwj473jlqnwcsr8a941gsf")))
2295 (synopsis "Ukrainian hyphenation patterns")
2296 (description "This package provides hyphenation patterns for Ukrainian in
2297T2A and UTF-8 encodings.")
2298 ;; No version specified
2299 (license license:lppl)))
2300
71e58125
RW
2301(define-public texlive-hyphen-uppersorbian
2302 (package
2303 (inherit (texlive-hyphen-package
2304 "texlive-hyphen-uppersorbian" "hsb"
2305 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hsb.tex")
2306 (base32
2307 "1q42s32cfbynlnzn9hpcldi77fszi5xkn1c85l8xqjmfydqbqdyi")))
2308 (synopsis "Upper Sorbian hyphenation patterns")
2309 (description "This package provides hyphenation patterns for Upper Sorbian
2310in T1/EC and UTF-8 encodings.")
2311 (license license:lppl1.3a+)))
2312
0d4088e4
RW
2313(define-public texlive-hyphen-welsh
2314 (package
2315 (inherit (texlive-hyphen-package
2316 "texlive-hyphen-welsh" "cy"
2317 (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cy.tex")
2318 (base32
2319 "0h8yjj5zdg0hvpb2vx9gi376536nl59hp8w286z1a13diaayg1m2")))
2320 (synopsis "Welsh hyphenation patterns")
2321 (description "This package provides hyphenation patterns for Welsh in
2322T1/EC and UTF-8 encodings.")
2323 ;; Either license
2324 (license (list license:lppl1.0+ license:expat))))
2325
5153431c
RW
2326(define-public texlive-hyph-utf8
2327 (package
2328 (inherit (simple-texlive-package
2329 "texlive-hyph-utf8"
2330 (list "/source/generic/hyph-utf8/"
2331 "/source/luatex/hyph-utf8/"
2332 "/doc/luatex/hyph-utf8/"
2333 "/tex/luatex/hyph-utf8/etex.src"
2334 ;; Used to extract luatex-hyphen.lua
2335 "/tex/latex/base/docstrip.tex"
2336
2337 ;; Documentation; we can't use the whole directory because
2338 ;; it includes files from other packages.
2339 "/doc/generic/hyph-utf8/CHANGES"
2340 "/doc/generic/hyph-utf8/HISTORY"
2341 "/doc/generic/hyph-utf8/hyph-utf8.pdf"
2342 "/doc/generic/hyph-utf8/hyph-utf8.tex"
2343 "/doc/generic/hyph-utf8/hyphenation-distribution.pdf"
2344 "/doc/generic/hyph-utf8/hyphenation-distribution.tex"
2345 "/doc/generic/hyph-utf8/img/miktex-languages.png"
2346 "/doc/generic/hyph-utf8/img/texlive-collection.png")
2347 (base32
2348 "10y8svgk68sivmgzrv8gv137r7kv49cs256cq2wja9ms437pxvbj")))
2349 (outputs '("out" "doc"))
2350 (build-system gnu-build-system)
2351 (arguments
2352 `(#:tests? #f ; there are none
2353 #:modules ((guix build gnu-build-system)
2354 (guix build utils)
2355 (ice-9 match))
2356 #:make-flags
2357 (list "-C" "source/luatex/hyph-utf8/"
2358 (string-append "DO_TEX = tex --interaction=nonstopmode '&tex' $<")
2359 (string-append "RUNDIR =" (assoc-ref %outputs "out") "/share/texmf-dist/tex/luatex/hyph-utf8/")
2360 (string-append "DOCDIR =" (assoc-ref %outputs "doc") "/share/texmf-dist/doc/luatex/hyph-utf8/")
2361 ;; hyphen.cfg is neither included nor generated, so let's only build the lua file.
2362 (string-append "UNPACKED = $(NAME).lua"))
2363 #:phases
2364 (modify-phases %standard-phases
2365 ;; TeX isn't usable at this point, so we first need to generate the
2366 ;; tex.fmt.
2367 (replace 'configure
2368 (lambda* (#:key inputs outputs #:allow-other-keys)
2369 ;; Target directories must exist.
2370 (mkdir-p (string-append (assoc-ref %outputs "out")
2371 "/share/texmf-dist/tex/luatex/hyph-utf8/"))
2372 (mkdir-p (string-append (assoc-ref %outputs "doc")
2373 "/share/texmf-dist/doc/luatex/hyph-utf8/"))
2374
2375 ;; We cannot build the documentation because that requires a
2376 ;; fully functional pdflatex, which depends on this package.
2377 (substitute* "source/luatex/hyph-utf8/Makefile"
2378 (("all: .*") "all: $(RUNFILES)\n"))
2379
2380 ;; Find required fonts for building tex.fmt
2381 (setenv "TFMFONTS"
2382 (string-append (assoc-ref inputs "texlive-fonts-cm")
2383 "/share/texmf-dist/fonts/tfm/public/cm:"
2384 (assoc-ref inputs "texlive-fonts-knuth-lib")
2385 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
2386 ;; ...and find all tex files in this environment.
2387 (setenv "TEXINPUTS"
2388 (string-append
2389 (getcwd) ":"
2390 (string-join
2391 (map (match-lambda ((_ . dir) dir)) inputs)
2392 "//:")))
2393
2394 ;; Generate tex.fmt.
2395 (let ((where "source/luatex/hyph-utf8"))
2396 (mkdir-p where)
2397 (with-directory-excursion where
2398 (invoke "tex" "-ini"
2399 (string-append (assoc-ref inputs "texlive-tex-plain")
2400 "/share/texmf-dist/tex/plain/config/tex.ini"))))))
2401 (add-before 'build 'build-loaders-and-converters
2402 (lambda* (#:key outputs #:allow-other-keys)
2403 (let* ((root (string-append (assoc-ref outputs "out")
2404 "/share/texmf-dist"))
2405 (conv
2406 (string-append root
2407 "/tex/generic/hyph-utf8/conversions")))
2408
2409 ;; Build converters
2410 (mkdir-p conv)
2411 (with-directory-excursion "source/generic/hyph-utf8"
2412 (substitute* "generate-converters.rb"
2413 (("\\$path_root=File.*")
2414 (string-append "$path_root=\"" root "\"\n"))
2415 ;; Avoid error with newer Ruby.
2416 (("#1\\{%") "#1{%%"))
2417 (invoke "ruby" "generate-converters.rb"))
2418 #t)))
2419 (replace 'install
2420 (lambda* (#:key source outputs #:allow-other-keys)
2421 (let ((doc (assoc-ref outputs "doc"))
2422 (out (assoc-ref outputs "out")))
2423 (mkdir-p doc)
2424 (copy-recursively
2425 (string-append source "/doc")
2426 (string-append doc "/doc"))
2427 (install-file
2428 (string-append source "/tex/luatex/hyph-utf8/etex.src")
2429 (string-append out "/share/texmf-dist/tex/luatex/hyph-utf8/")))
2430 #t)))))
2431 (native-inputs
2432 `(("ruby" ,ruby)
2433 ("texlive-bin" ,texlive-bin)
2434 ;; The following packages are needed for build "tex.fmt", which we need
2435 ;; for a working "tex".
2436 ("texlive-tex-plain" ,texlive-tex-plain)
2437 ("texlive-fonts-cm" ,texlive-fonts-cm)
2438 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)
2439 ("texlive-hyphen-base" ,texlive-hyphen-base)))
2440 (home-page "https://ctan.org/pkg/hyph-utf8")
2441 (synopsis "Hyphenation patterns expressed in UTF-8")
2442 (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
2443hyphenation patterns in UTF-8 format, whereas older systems require
2444hyphenation patterns in the 8-bit encoding of the font in use (such encodings
2445are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
2446etc). The present package offers a collection of conversions of existing
2447patterns to UTF-8 format, together with converters for use with 8-bit fonts in
2448older systems. Since hyphenation patterns for Knuthian-style TeX systems are
2449only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
2450converters, will completely supplant the older patterns.")
2451 ;; Individual files each have their own license. Most of these files are
2452 ;; independent hyphenation patterns.
2453 (license (list license:lppl1.0+
2454 license:lppl1.2+
2455 license:lppl1.3
2456 license:lppl1.3+
2457 license:lppl1.3a+
2458 license:lgpl2.1
2459 license:lgpl2.1+
2460 license:lgpl3+
2461 license:gpl2+
2462 license:gpl3+
2463 license:mpl1.1
2464 license:asl2.0
2465 license:expat
2466 license:bsd-3
2467 license:cc0
2468 license:public-domain
2469 license:wtfpl2))))
2470
2471(define-public texlive-generic-hyph-utf8
2472 (deprecated-package "texlive-generic-hyph-utf8" texlive-hyph-utf8))
2473
e68c7091
RW
2474(define-public texlive-dehyph-exptl
2475 (package
2476 (inherit (simple-texlive-package
2477 "texlive-dehyph-exptl"
2478 (list "/tex/generic/dehyph-exptl/"
2479 "/doc/generic/dehyph-exptl/")
2480 (base32
2481 "1w2danvvy2f52hcb4acvjks53kcanwxr9s990fap6mj279hpgmh2")
2482 #:trivial? #t))
2483 (propagated-inputs
2484 `(("texlive-hyphen-base" ,texlive-hyphen-base)
2485 ("texlive-hyph-utf8" ,texlive-hyph-utf8)))
2486 (home-page "http://projekte.dante.de/Trennmuster/WebHome")
2487 (synopsis "Hyphenation patterns for German")
2488 (description "The package provides experimental hyphenation patterns for
2489the German language, covering both traditional and reformed orthography. The
2490patterns can be used with packages Babel and hyphsubst from the Oberdiek
2491bundle.")
2492 ;; Hyphenation patterns are under the Expat license; documentation is
2493 ;; under LPPL.
2494 (license (list license:expat license:lppl))))
2495
2496(define-public texlive-generic-dehyph-exptl
2497 (deprecated-package "texlive-generic-dehyph-exptl" texlive-dehyph-exptl))
2498
10e8b338
RW
2499(define-public texlive-ukrhyph
2500 (package
2501 (inherit (simple-texlive-package
2502 "texlive-ukrhyph"
2503 (list "/doc/generic/ukrhyph/"
2504 "/tex/generic/ukrhyph/")
2505 (base32
2506 "01ma274sixcrbpb7fpqkxwfvrnzfj2srv9b4a42rfnph1pdql74z")
2507 #:trivial? #t))
2508 (home-page "https://www.ctan.org/pkg/ukrhyph")
2509 (synopsis "Hyphenation patterns for Ukrainian")
2510 (description "The package provides a range of hyphenation patterns for
2511Ukrainian, depending on the encoding of the output font including the standard
2512T2A.")
2513 (license license:lppl)))
2514
010f476f
RW
2515(define-public texlive-latex-base
2516 (let ((texlive-dir
2517 (lambda (dir hash)
2518 (origin
2519 (method svn-fetch)
2520 (uri (svn-reference
2521 (url (string-append "svn://www.tug.org/texlive/tags/"
2522 %texlive-tag "/Master/texmf-dist/"
2523 dir))
2524 (revision %texlive-revision)))
8d514ae7
EF
2525 (file-name (string-append "texlive-generic-"
2526 (last (string-split
2527 (string-drop-right dir 1) #\/))
2528 "-" (number->string %texlive-revision)
2529 "-checkout"))
010f476f
RW
2530 (sha256 (base32 hash))))))
2531 (package
2532 (name "texlive-latex-base")
2533 (version (number->string %texlive-revision))
2534 (source (origin
2535 (method svn-fetch)
2536 (uri (texlive-ref "latex" "base"))
8d514ae7 2537 (file-name (string-append name "-" version "-checkout"))
010f476f
RW
2538 (sha256
2539 (base32
d4d9a1ec 2540 "17bqrzzjz16k52sc7ydl4vw7ddy2z3g0p1xsk2c35h1ynq9h3wwm"))))
010f476f
RW
2541 (build-system gnu-build-system)
2542 (arguments
2543 `(#:modules ((guix build gnu-build-system)
2544 (guix build utils)
2545 (ice-9 match)
2546 (srfi srfi-1)
2547 (srfi srfi-26))
2548 #:tests? #f ; no tests
2549 #:phases
2550 (modify-phases %standard-phases
2551 (delete 'configure)
2552 (replace 'build
2553 (lambda* (#:key inputs #:allow-other-keys)
2554 ;; Find required fonts
2555 (setenv "TFMFONTS"
2556 (string-append (assoc-ref inputs "texlive-fonts-cm")
2557 "/share/texmf-dist/fonts/tfm/public/cm:"
2558 (assoc-ref inputs "texlive-fonts-latex")
2559 "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
2560 (assoc-ref inputs "texlive-fonts-knuth-lib")
2561 "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
2562 (setenv "TEXINPUTS"
2563 (string-append
2564 (getcwd) ":"
2565 (getcwd) "/build:"
2566 (string-join
6858ade2
RW
2567 (map (match-lambda ((_ . dir) dir)) inputs)
2568 "//:")))
010f476f
RW
2569
2570 ;; Create an empty texsys.cfg, because latex.ltx wants to include
2571 ;; it. This file must exist and it's fine if it's empty.
2572 (with-output-to-file "texsys.cfg"
2573 (lambda _ (format #t "%")))
2574
2575 (mkdir "build")
2576 (mkdir "web2c")
4f2f53f9
MW
2577 (invoke "luatex" "-ini" "-interaction=batchmode"
2578 "-output-directory=build" "unpack.ins")
2579 (invoke "tex" "-ini" "-interaction=batchmode"
2580 "-output-directory=web2c" "tex.ini")
2581 ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
2582 ;; is enabled only in extended mode (activated with a
2583 ;; leading asterisk). We should not use luatex here,
2584 ;; because that would make the generated format files
2585 ;; incompatible with any other TeX engine.
2586 (for-each (lambda (format)
2587 (invoke "latex" "-ini" "-interaction=batchmode"
2588 "-output-directory=web2c"
2589 "-translate-file=cp227.tcx"
2590 (string-append "*" format ".ini")))
2591 '("latex"
2592 "pdflatex"
2593 "pdfetex"))
2594 (for-each (lambda (format)
2595 (invoke format "-ini" "-interaction=batchmode"
2596 "-output-directory=web2c"
2597 (string-append "*" format ".ini")))
2598 '("xetex"
2599 "xelatex"))
2600 (for-each (lambda (format)
2601 (invoke "luatex" "-ini" "-interaction=batchmode"
2602 "-output-directory=web2c"
2603 (string-append format ".ini")))
2604 '("dviluatex" "dvilualatex" "luatex" "lualatex"))
2605 #t))
010f476f 2606 (replace 'install
756fc3e1 2607 (lambda* (#:key inputs outputs #:allow-other-keys)
010f476f
RW
2608 (let* ((out (assoc-ref outputs "out"))
2609 (target (string-append
2610 out "/share/texmf-dist/tex/latex/base"))
2611 (web2c (string-append
756fc3e1
PN
2612 out "/share/texmf-dist/web2c"))
2613 (support-files (assoc-ref inputs "texlive-latex-base-support-files")))
010f476f
RW
2614 (mkdir-p target)
2615 (mkdir-p web2c)
2616 (for-each delete-file (find-files "." "\\.(log|aux)$"))
2617 (for-each (cut install-file <> target)
2618 (find-files "build" ".*"))
2619 (for-each (cut install-file <> web2c)
2620 (find-files "web2c" ".*"))
bd6e2385
RW
2621 ;; pdftex is really just the same as pdfetex, but since it
2622 ;; doesn't have its own format file, we need to copy it.
2623 (copy-file "web2c/pdfetex.fmt"
2624 (string-append web2c "/pdftex.fmt"))
756fc3e1
PN
2625 ;; "source" is missing the support files as per doc/latex/base/manifest.txt.
2626 ;; FIXME: We are probably not packaging this right.
2627 (for-each (lambda (file)
2628 (install-file
2629 (string-append support-files "/" file)
2630 target))
2631 '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex"
2632 "lablst.tex" "testpage.tex" "ltxcheck.tex"))
d68c8017
RW
2633 ;; Install configurations
2634 (copy-recursively
2635 (assoc-ref inputs "texlive-latex-latexconfig")
2636 (string-append out "/share/texmf-dist/tex/latex/latexconfig"))
2637 (copy-recursively
2638 (assoc-ref inputs "texlive-generic-config")
2639 (string-append out "/share/texmf-dist/tex/generic/config"))
2640 (copy-recursively
2641 (assoc-ref inputs "texlive-generic-hyphen")
2642 (string-append out "/share/texmf-dist/tex/generic/hyphen"))
2643 (copy-recursively
2644 (assoc-ref inputs "texlive-generic-ruhyphen")
2645 (string-append out "/share/texmf-dist/tex/generic/ruhyphen"))
2646 (copy-recursively
2647 (assoc-ref inputs "texlive-generic-ukrhyph")
2648 (string-append out "/share/texmf-dist/tex/generic/ukrhyph"))
010f476f
RW
2649 #t))))))
2650 (native-inputs
2651 `(("texlive-bin" ,texlive-bin)
2652 ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
2653 ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
2654 ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
2655 ("texlive-latex-latexconfig"
2656 ,(texlive-dir "tex/latex/latexconfig/"
2657 "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
010f476f
RW
2658 ("texlive-generic-hyphen"
2659 ,(texlive-dir "tex/generic/hyphen/"
2660 "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
2661 ("texlive-generic-ruhyphen"
2662 ,(texlive-dir "tex/generic/ruhyphen/"
2663 "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
2664 ("texlive-generic-ukrhyph"
2665 ,(texlive-dir "tex/generic/ukrhyph/"
2666 "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
2667 ("texlive-generic-config"
2668 ,(texlive-dir "tex/generic/config/"
d4d9a1ec 2669 "1v90iihy112q93zdpblpdk8zv8rf99fgslsg06s1sxm27zjm9nap"))
756fc3e1
PN
2670 ("texlive-latex-base-support-files"
2671 ,(origin
2672 (method svn-fetch)
2673 (uri (svn-reference
2674 (url (string-append "svn://www.tug.org/texlive/tags/"
2675 %texlive-tag "/Master/texmf-dist/"
2676 "/tex/latex/base"))
2677 (revision %texlive-revision)))
2678 (file-name (string-append name "-" version "-checkout"))
2679 (sha256
2680 (base32
d4d9a1ec 2681 "18wy8dlcw8adl6jzqwbg54pdwlhs8hilnfvqbw6ikj6y3zhqkj7q"))))
010f476f
RW
2682 ("texlive-tex-plain" ,texlive-tex-plain)
2683 ("texlive-fonts-cm" ,texlive-fonts-cm)
2684 ("texlive-fonts-latex" ,texlive-fonts-latex)
2685 ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
d68c8017
RW
2686 (propagated-inputs
2687 `(("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)))
b8d8806b 2688 (home-page "https://www.ctan.org/pkg/latex-base")
010f476f
RW
2689 (synopsis "Base sources of LaTeX")
2690 (description
2691 "This bundle comprises the source of LaTeX itself, together with several
2692packages which are considered \"part of the kernel\". This bundle, together
2693with the required packages, constitutes what every LaTeX distribution should
2694contain.")
2695 (license license:lppl1.3c+))))
2696
3e485ed2
RW
2697(define-public texlive-latex-filecontents
2698 (package
2699 (name "texlive-latex-filecontents")
2700 (version (number->string %texlive-revision))
2701 (source (origin
2702 (method svn-fetch)
2703 (uri (texlive-ref "latex" "filecontents"))
7e353a77 2704 (file-name (string-append name "-" version "-checkout"))
3e485ed2
RW
2705 (sha256
2706 (base32
2707 "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
2708 (build-system texlive-build-system)
2709 (arguments '(#:tex-directory "latex/filecontents"))
b8d8806b 2710 (home-page "https://www.ctan.org/pkg/filecontents")
3e485ed2
RW
2711 (synopsis "Extended filecontents and filecontents* environments")
2712 (description
2713 "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
2714enable a LaTeX source file to generate external files as it runs through
2715LaTeX. However, there are two limitations of these environments: they refuse
2716to overwrite existing files, and they can only be used in the preamble of a
2717document. The filecontents package removes these limitations, letting you
2718overwrite existing files and letting you use @code{filecontents} /
2719@code{filecontents*} anywhere.")
2720 (license license:lppl1.3c+)))
2721
1193aa89
RW
2722(define-public texlive-generic-ifxetex
2723 (package
2724 (name "texlive-generic-ifxetex")
fea8eef3 2725 (version (number->string %texlive-revision))
1193aa89
RW
2726 (source (origin
2727 (method svn-fetch)
2728 (uri (texlive-ref "generic" "ifxetex"))
24dbc602 2729 (file-name (string-append name "-" version "-checkout"))
1193aa89
RW
2730 (sha256
2731 (base32
2732 "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
2733 (build-system texlive-build-system)
2734 (arguments
2735 '(#:tex-directory "generic/ifxetex"
2736 #:tex-format "xelatex"))
2737 (inputs
2738 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
b8d8806b 2739 (home-page "https://www.ctan.org/pkg/ifxetex")
1193aa89
RW
2740 (synopsis "Am I running under XeTeX?")
2741 (description
2742 "This is a simple package which provides an @code{\\ifxetex} conditional,
2743so that other code can determine that it is running under XeTeX. The package
beb476ed 2744requires the e-TeX extensions to the TeX primitive set.")
1193aa89
RW
2745 (license license:lppl1.3c+)))
2746
9186c156
RW
2747(define-public texlive-generic-epsf
2748 (package
2749 (name "texlive-generic-epsf")
2750 (version (number->string %texlive-revision))
2751 (source (origin
2752 (method svn-fetch)
2753 (uri (svn-reference
2754 (url (string-append "svn://www.tug.org/texlive/tags/"
2755 %texlive-tag "/Master/texmf-dist/"
2756 "/tex/generic/epsf"))
2757 (revision %texlive-revision)))
ca61c6b3 2758 (file-name (string-append name "-" version "-checkout"))
9186c156
RW
2759 (sha256
2760 (base32
2761 "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
2762 (build-system trivial-build-system)
2763 (arguments
2764 `(#:modules ((guix build utils))
2765 #:builder
2766 (begin
2767 (use-modules (guix build utils))
2768 (let ((target (string-append (assoc-ref %outputs "out")
2769 "/share/texmf-dist/tex/generic/epfs")))
2770 (mkdir-p target)
2771 (copy-recursively (assoc-ref %build-inputs "source") target)
2772 #t))))
b8d8806b 2773 (home-page "https://www.ctan.org/pkg/epsf")
9186c156
RW
2774 (synopsis "Simple macros for EPS inclusion")
2775 (description
2776 "This package provides the original (and now obsolescent) graphics
2777inclusion macros for use with dvips, still widely used by Plain TeX users (in
2778particular). For LaTeX users, the package is nowadays (rather strongly)
2779deprecated in favour of the more sophisticated standard LaTeX latex-graphics
2780bundle of packages. (The latex-graphics bundle is also available to Plain TeX
2781users, via its Plain TeX version.)")
2782 (license license:public-domain)))
2783
437822a1
RW
2784(define-public texlive-latex-fancyvrb
2785 (package
2786 (name "texlive-latex-fancyvrb")
2787 (version (number->string %texlive-revision))
2788 (source (origin
2789 (method svn-fetch)
2790 (uri (texlive-ref "latex" "fancyvrb"))
88e11022 2791 (file-name (string-append name "-" version "-checkout"))
437822a1
RW
2792 (sha256
2793 (base32
2794 "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
2795 (build-system texlive-build-system)
2796 (arguments
2797 '(#:tex-directory "latex/fancyvrb"
bae65dc4 2798 #:tex-format "latex"))
b8d8806b 2799 (home-page "https://www.ctan.org/pkg/fancyvrb")
437822a1
RW
2800 (synopsis "Sophisticated verbatim text")
2801 (description
2802 "This package provides tools for the flexible handling of verbatim text
2803including: verbatim commands in footnotes; a variety of verbatim environments
2804with many parameters; ability to define new customized verbatim environments;
2805save and restore verbatim text and environments; write and read files in
2806verbatim mode; build \"example\" environments (showing both result and
2807verbatim source).")
2808 (license license:lppl1.0+)))
2809
4eebd2cd
RW
2810(define-public texlive-latex-graphics
2811 (package
2812 (name "texlive-latex-graphics")
2813 (version (number->string %texlive-revision))
2814 (source (origin
2815 (method svn-fetch)
2816 (uri (texlive-ref "latex" "graphics"))
f7302073 2817 (file-name (string-append name "-" version "-checkout"))
4eebd2cd
RW
2818 (sha256
2819 (base32
d4d9a1ec 2820 "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz"))))
4eebd2cd
RW
2821 (build-system texlive-build-system)
2822 (arguments
2823 '(#:tex-directory "latex/graphics"
2824 #:phases
2825 (modify-phases %standard-phases
2826 (add-after 'install 'install-config
2827 (lambda* (#:key inputs outputs #:allow-other-keys)
2828 (let ((cfg (assoc-ref inputs "graphics-cfg"))
2829 (target (string-append (assoc-ref outputs "out")
2830 "/share/texmf-dist/tex/latex/graphics-cfg")))
2831 (mkdir-p target)
2832 (install-file (string-append cfg "/graphics.cfg") target)
2833 (install-file (string-append cfg "/color.cfg") target)
2834 #t)))
2835 (add-after 'install 'install-defs
2836 (lambda* (#:key inputs outputs #:allow-other-keys)
2837 (let ((def (assoc-ref inputs "graphics-def"))
2838 (target (string-append (assoc-ref outputs "out")
2839 "/share/texmf-dist/tex/latex/graphics-def")))
2840 (mkdir-p target)
2841 (copy-recursively def target)
2842 #t))))))
2843 (native-inputs
2844 `(("graphics-cfg"
2845 ,(origin
2846 (method git-fetch)
2847 (uri (git-reference
2848 (url "https://github.com/latex3/graphics-cfg.git")
2849 (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
f7302073
EF
2850 (file-name (string-append "graphics-cfg-"
2851 (number->string %texlive-revision)
2852 "-checkout"))
4eebd2cd
RW
2853 (sha256
2854 (base32
2855 "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
2856 ("graphics-def"
2857 ,(origin
2858 (method svn-fetch)
2859 (uri (svn-reference
2860 (url (string-append "svn://www.tug.org/texlive/tags/"
2861 %texlive-tag "/Master/texmf-dist/"
2862 "/tex/latex/graphics-def"))
2863 (revision %texlive-revision)))
f7302073
EF
2864 (file-name (string-append "graphics-def-"
2865 (number->string %texlive-revision)
2866 "-checkout"))
4eebd2cd
RW
2867 (sha256
2868 (base32
d4d9a1ec 2869 "17zpcgrfsr29g1dkz9np1qi63kjv7gb12rg979c6dai6qksbr3vq"))))))
b8d8806b 2870 (home-page "https://www.ctan.org/pkg/latex-graphics")
4eebd2cd
RW
2871 (synopsis "LaTeX standard graphics bundle")
2872 (description
2873 "This is a collection of LaTeX packages for producing color, including
2874graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
2875documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
2876keyval, and lscape.")
2877 ;; The configuration files are released under CC0.
2878 (license (list license:lppl1.3c+
2879 license:cc0))))
2880
f5a6af42
RW
2881(define-public texlive-latex-xcolor
2882 (package
2883 (name "texlive-latex-xcolor")
2884 (version (number->string %texlive-revision))
2885 (source (origin
2886 (method svn-fetch)
2887 (uri (texlive-ref "latex" "xcolor"))
19389bcd 2888 (file-name (string-append name "-" version "-checkout"))
f5a6af42
RW
2889 (sha256
2890 (base32
2891 "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
2892 (build-system texlive-build-system)
2893 (arguments '(#:tex-directory "latex/xcolor"))
b8d8806b 2894 (home-page "https://www.ctan.org/pkg/xcolor")
f5a6af42
RW
2895 (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
2896 (description
2897 "The package starts from the basic facilities of the colorcolor package,
2898and provides easy driver-independent access to several kinds of color tints,
2899shades, tones, and mixes of arbitrary colors. It allows a user to select a
2900document-wide target color model and offers complete tools for conversion
2901between eight color models. Additionally, there is a command for alternating
2902row colors plus repeated non-aligned material (like horizontal lines) in
2903tables.")
2904 (license license:lppl1.2+)))
2905
4d660fdf
RW
2906(define-public texlive-latex-hyperref
2907 (package
2908 (name "texlive-latex-hyperref")
2909 (version "6.84a2")
2910 ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
2911 ;; so we fetch the release from GitHub.
2912 (source (origin
2913 (method url-fetch)
2914 (uri (string-append "https://github.com/ho-tex/hyperref/"
2915 "archive/release-" version ".tar.gz"))
2916 (file-name (string-append name "-" version ".tar.gz"))
2917 (sha256
2918 (base32
2919 "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
2920 (build-system texlive-build-system)
2921 (arguments '(#:tex-directory "latex/hyperref"))
2a0bcbf4
RW
2922 (propagated-inputs
2923 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek) ; for ltxcmds.sty
2924 ("texlive-latex-url" ,texlive-latex-url)))
b8d8806b 2925 (home-page "https://www.ctan.org/pkg/hyperref")
4d660fdf
RW
2926 (synopsis "Extensive support for hypertext in LaTeX")
2927 (description
c5a8ecb6
RW
2928 "The @code{hyperref} package is used to handle cross-referencing commands
2929in LaTeX to produce hypertext links in the document. The package provides
2930backends for the @code{\\special} set defined for HyperTeX DVI processors; for
2931embedded @code{pdfmark} commands for processing by Acrobat
2932Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
2933for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
2934pdf and HTML backends. The package is distributed with the @code{backref} and
2935@code{nameref} packages, which make use of the facilities of @code{hyperref}.")
4d660fdf
RW
2936 (license license:lppl1.3+)))
2937
c3455b7d
RW
2938(define-public texlive-latex-oberdiek
2939 (package
2940 (name "texlive-latex-oberdiek")
2941 (version (number->string %texlive-revision))
2942 (source (origin
2943 (method svn-fetch)
2944 (uri (texlive-ref "latex" "oberdiek"))
7dea3119 2945 (file-name (string-append name "-" version "-checkout"))
c3455b7d
RW
2946 (sha256
2947 (base32
d4d9a1ec 2948 "1m9fg8ddhpsl1212igr9a9fmj012lv780aghjn6fpidg2wqrffmn"))))
c3455b7d
RW
2949 (build-system texlive-build-system)
2950 (arguments
2951 '(#:tex-directory "latex/oberdiek"
05d28068 2952 #:build-targets '("oberdiek.ins")
c3455b7d
RW
2953 #:phases
2954 (modify-phases %standard-phases
05d28068 2955 ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
c3455b7d
RW
2956 (add-after 'unpack 'do-not-process-ifpdf.ins
2957 (lambda _
2958 (substitute* "oberdiek.ins"
05d28068 2959 (("ifpdf.ins") "ifpdf.dtx"))
c3455b7d 2960 #t)))))
a9cd7b03
RW
2961 (propagated-inputs
2962 `(("texlive-generic-ifxetex" ,texlive-generic-ifxetex)))
b8d8806b 2963 (home-page "https://www.ctan.org/pkg/oberdiek")
c3455b7d
RW
2964 (synopsis "Bundle of packages submitted by Heiko Oberdiek")
2965 (description
2966 "The bundle comprises various LaTeX packages, providing among others:
2967better accessibility support for PDF files; extensible chemists reaction
2968arrows; record information about document class(es) used; and many more.")
2969 (license license:lppl1.3+)))
2970
f2536af2
RW
2971(define-public texlive-latex-tools
2972 (package
2973 (name "texlive-latex-tools")
2974 (version (number->string %texlive-revision))
2975 (source (origin
2976 (method svn-fetch)
2977 (uri (texlive-ref "latex" "tools"))
f8340ab1 2978 (file-name (string-append name "-" version "-checkout"))
f2536af2
RW
2979 (sha256
2980 (base32
d4d9a1ec 2981 "0vj7h1fgf1396h4qjdc2m07y08i54gbbfrxl8y327cn3r1n093s6"))))
f2536af2
RW
2982 (build-system texlive-build-system)
2983 (arguments
2984 '(#:tex-directory "latex/tools"
2985 #:build-targets '("tools.ins")))
b8d8806b 2986 (home-page "https://www.ctan.org/pkg/latex-tools")
f2536af2
RW
2987 (synopsis "LaTeX standard tools bundle")
2988 (description
2989 "This package is a collection of (variously) simple tools provided as
2990part of the LaTeX required tools distribution, comprising the following
2991packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
2992fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
2993rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
2994xr, and xspace.")
2995 (license license:lppl1.3+)))
2996
35adcc3a
RW
2997(define-public texlive-latex-url
2998 (package
2999 (name "texlive-latex-url")
3000 (version (number->string %texlive-revision))
3001 (source (origin
3002 (method svn-fetch)
3003 (uri (svn-reference
3004 (url (string-append "svn://www.tug.org/texlive/tags/"
3005 %texlive-tag "/Master/texmf-dist/"
3006 "/tex/latex/url"))
3007 (revision %texlive-revision)))
a26207f8 3008 (file-name (string-append name "-" version "-checkout"))
35adcc3a
RW
3009 (sha256
3010 (base32
3011 "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
3012 (build-system trivial-build-system)
3013 (arguments
3014 `(#:modules ((guix build utils))
3015 #:builder
3016 (begin
3017 (use-modules (guix build utils))
3018 (let ((target (string-append (assoc-ref %outputs "out")
3019 "/share/texmf-dist/tex/latex/url")))
3020 (mkdir-p target)
3021 (copy-recursively (assoc-ref %build-inputs "source") target)
3022 #t))))
3023 (home-page "https://www.ctan.org/pkg/url")
3024 (synopsis "Verbatim with URL-sensitive line breaks")
3025 (description "The command @code{\\url} is a form of verbatim command that
3026allows linebreaks at certain characters or combinations of characters, accepts
3027reconfiguration, and can usually be used in the argument to another command.
3028The command is intended for email addresses, hypertext links,
3029directories/paths, etc., which normally have no spaces, so by default the
3030package ignores spaces in its argument. However, a package option allows
3031spaces, which is useful for operating systems where spaces are a common part
3032of file names.")
3033 ;; The license header states that it is under LPPL version 2 or later, but
3034 ;; the latest version is 1.3c.
3035 (license license:lppl1.3c+)))
3036
a5b1ef84
RW
3037(define-public texlive-latex-l3kernel
3038 (package
3039 (name "texlive-latex-l3kernel")
3040 (version (number->string %texlive-revision))
3041 (source (origin
3042 (method svn-fetch)
3043 (uri (texlive-ref "latex" "l3kernel"))
f4a39a5b 3044 (file-name (string-append name "-" version "-checkout"))
a5b1ef84
RW
3045 (sha256
3046 (base32
d4d9a1ec 3047 "0p3fsxap1ilwjz356aq4s5ygwvdscis8bh93g8klf8mhrd8cr2jy"))))
a5b1ef84
RW
3048 (build-system texlive-build-system)
3049 (arguments
3050 '(#:tex-directory "latex/l3kernel"))
b8d8806b 3051 (home-page "https://www.ctan.org/pkg/l3kernel")
a5b1ef84
RW
3052 (synopsis "LaTeX3 programmers’ interface")
3053 (description
3054 "The l3kernel bundle provides an implementation of the LaTeX3
3055programmers’ interface, as a set of packages that run under LaTeX 2e. The
3056interface provides the foundation on which the LaTeX3 kernel and other future
3057code are built: it is an API for TeX programmers. The packages are set up so
3058that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
3059 (license license:lppl1.3c+)))
3060
cc09d48b
RW
3061(define-public texlive-latex-l3packages
3062 (package
3063 (name "texlive-latex-l3packages")
3064 (version (number->string %texlive-revision))
3065 (source (origin
3066 (method svn-fetch)
3067 (uri (texlive-ref "latex" "l3packages"))
b749aa98 3068 (file-name (string-append name "-" version "-checkout"))
cc09d48b
RW
3069 (sha256
3070 (base32
d4d9a1ec 3071 "0pyx0hffiyss363vv7fkrcdiaf7p099xnq0mngzqc7v8v9q849hs"))))
cc09d48b
RW
3072 (build-system texlive-build-system)
3073 (arguments
3074 '(#:tex-directory "latex/l3packages"
3d4908a7
PN
3075 ;; build-targets must be specified manually since they are in
3076 ;; sub-directories.
3077 #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins")
cc09d48b
RW
3078 #:phases
3079 (modify-phases %standard-phases
3080 ;; All package sources are in sub-directories, so we need to add them
3081 ;; to TEXINPUTS.
3082 (add-after 'unpack 'set-TEXINPUTS
3083 (lambda _
3084 (let ((cwd (getcwd)))
3085 (setenv "TEXINPUTS"
3086 (string-append cwd "/l3keys2e:"
3087 cwd "/xparse:"
3088 cwd "/xfrac:"
3089 cwd "/xfp:"
3d4908a7
PN
3090 cwd "/xtemplate"
3091 ;; The terminating ":" is required to include the
3092 ;; l3kernel input as well.
3093 ":")))
3094 #t)))
3095 ))
2fea7041 3096 (propagated-inputs
cc09d48b 3097 `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
b8d8806b 3098 (home-page "https://www.ctan.org/pkg/l3packages")
cc09d48b
RW
3099 (synopsis "High-level LaTeX3 concepts")
3100 (description
3101 "This bundle holds prototype implementations of concepts for a LaTeX
3102designer interface, to be used with the experimental LaTeX kernel as
3103programming tools and kernel sup­port. Packages provided in this release are:
3104
3105@enumerate
3106@item l3keys2e, which makes the facilities of the kernel module l3keys
3107 available for use by LaTeX 2e packages;
3108@item xfrac, which provides flexible splitlevel fractions;
3109@item xparse, which provides a high-level interface for declaring document
3110 commands; and
3111@item xtemplate, which provides a means of defining generic functions using a
3112 key-value syntax.
3113@end enumerate\n")
3114 (license license:lppl1.3c+)))
3115
58308491
RW
3116(define-public texlive-latex-fontspec
3117 (package
3118 (name "texlive-latex-fontspec")
3119 (version (number->string %texlive-revision))
3120 (source (origin
3121 (method svn-fetch)
3122 (uri (texlive-ref "latex" "fontspec"))
634a4a7f 3123 (file-name (string-append name "-" version "-checkout"))
58308491
RW
3124 (sha256
3125 (base32
d4d9a1ec 3126 "1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq"))))
58308491
RW
3127 (build-system texlive-build-system)
3128 (arguments
9c45beb4
RW
3129 '(#:tex-directory "latex/fontspec"
3130 #:phases
3131 (modify-phases %standard-phases
3132 (add-after 'install 'install-default-fontspec.cfg
3133 (lambda* (#:key outputs #:allow-other-keys)
3134 (with-output-to-file
3135 (string-append (assoc-ref outputs "out")
3136 "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg")
3137 (lambda _
3138 (display "\
3139%%% FONTSPEC.CFG %%%
3140%
3141% This configuration file sets up TeX Ligatures by default for all fonts loaded
3142% with `\\setmainfont` and `\\setsansfont`.
3143%
3144% In addition, `\\setmonofont` has default features to enforce \"monospace\"
3145% settings with regard to space stretchability and shrinkability.
3146
3147\\defaultfontfeatures
3148 [\\rmfamily,\\sffamily]
3149 {Ligatures=TeX}
3150
3151\\defaultfontfeatures
3152 [\\ttfamily]
3153 {WordSpace={1,0,0},
3154 HyphenChar=None,
3155 PunctuationSpace=WordSpace}
3156")))
3157 #t)))))
b80ecc5a
RW
3158 (propagated-inputs
3159 `(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
b8d8806b 3160 (home-page "https://www.ctan.org/pkg/fontspec")
58308491
RW
3161 (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
3162 (description
3163 "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
3164automatic and unified interface to feature-rich AAT and OpenType fonts through
3165the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
3166the l3kernel and xparse bundles from the LaTeX 3 development team.")
3167 (license license:lppl1.3+)))
3168
e93f472d
RW
3169;; The SVN directory contains little more than a dtx file that generates three
3170;; of the many lua files that should be installed as part of this package.
3171;; This is why we take the release from GitHub instead.
3172(define-public texlive-luatex-lualibs
3173 (package
3174 (name "texlive-luatex-lualibs")
3175 (version "2.5")
3176 (source (origin
3177 (method url-fetch)
3178 (uri (string-append "https://github.com/lualatex/lualibs/"
3179 "releases/download/v"
3180 version "/lualibs.zip"))
01d79c30 3181 (file-name (string-append name "-" version ".zip"))
e93f472d
RW
3182 (sha256
3183 (base32
3184 "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
3185 (build-system gnu-build-system)
3186 (arguments
3187 `(#:make-flags
3188 (list (string-append "DESTDIR="
3189 (assoc-ref %outputs "out")
3190 "/share/texmf-dist"))
3191 #:phases
3192 (modify-phases %standard-phases
3193 (delete 'configure))))
3194 (native-inputs
3195 `(("texlive-bin" ,texlive-bin)
3196 ("unzip" ,unzip)
3197 ("zip" ,zip)))
3198 (home-page "https://github.com/lualatex/lualibs")
3199 (synopsis "Lua modules for general programming (in the (La)TeX world)")
3200 (description
3201 "Lualibs is a collection of Lua modules useful for general programming.
3202The bundle is based on Lua modules shipped with ConTeXt, and made available in
3203this bundle for use independent of ConTeXt.")
3204 ;; GPL version 2 only
3205 (license license:gpl2)))
3206
769bb5e5
RW
3207(define-public texlive-luatex-luaotfload
3208 (package
3209 (name "texlive-luatex-luaotfload")
3210 (version "2.8-fix-2")
3211 ;; The release tarball does not contain all source files.
3212 (source (origin
3213 (method git-fetch)
3214 (uri (git-reference
3215 (url "https://github.com/lualatex/luaotfload.git")
3216 (commit (string-append "v" version))))
3217 (file-name (git-file-name name version))
3218 (sha256
3219 (base32
3220 "0l5l7iq3dxcxl65qaghcpjg27yd9iw1sxa8pnd7xlvlm09dhfdnf"))))
3221 (build-system gnu-build-system)
3222 (arguments
3223 `(#:make-flags
3224 (list (string-append "DESTDIR="
3225 (assoc-ref %outputs "out")
3226 "/share/texmf-dist")
3227 "all")
3228 #:parallel-build? #f ; not supported
3229 #:phases
3230 (modify-phases %standard-phases
3231 (replace 'configure
3232 (lambda* (#:key inputs #:allow-other-keys)
3233 (substitute* "doc/Makefile"
3234 (("rst2man") "rst2man.py")
3235 ;; Don't build the PDF. This requires more of LaTeX.
3236 (("\\$\\(DOCPDF\\)") ""))
3237
3238 (substitute* "Makefile"
3239 ;; We don't build the PDF, so don't attempt to install it.
3240 (("cp \\$\\(RESOURCES\\) \\$\\(DOCPDF\\)")
3241 "cp $(RESOURCES)")
3242 (("= \\$\\(DOCPDF\\)") "= ")
3243 ;; Fix name of fontloader file
3244 (("^LOADER.*= \\$\\(BUILDDIR\\)/fontloader-\\$\\(shell date \\+%F\\).lua")
3245 "LOADER = $(BUILDDIR)/fontloader.lua"))
3246
3247 (mkdir "build")
3248
3249 ;; Don't download this file.
3250 (copy-file (assoc-ref inputs "glyphlist")
3251 "build/glyphlist.txt")
3252
3253 ;; Don't use git
3254 (let ((notes
3255 `((committer . "Philipp Gesang <phg@phi-gamma.net>")
3256 (description . ,version)
3257 (loader . "fontloader.lua")
3258 (revision . "ad480924393fffa2896156e1a32c22f5c61120dd")
3259 (timestamp . "2019-01-01 00:00:00 +0000"))))
3260 (substitute* "scripts/mkstatus"
3261 (("local notes.*=.*")
3262 (string-append "local notes = {"
3263 (string-join
3264 (map (lambda (entry)
3265 (format "[\"~a\"]=\"~a\","
3266 (symbol->string (car entry))
3267 (cdr entry)))
3268 notes))
3269 "}"))))
3270 #t)))))
3271 (native-inputs
3272 `(("zip" ,zip)
3273 ("unzip" ,unzip)
3274 ("graphviz" ,graphviz)
3275 ("lualatex" ,(texlive-union (list texlive-luatex-lualibs
3276 texlive-context-base)))
3277 ("python-docutils" ,python-docutils)
3278 ("glyphlist"
3279 ,(origin
3280 (method url-fetch)
3281 (uri (string-append "https://raw.githubusercontent.com/adobe-type-tools/"
3282 "agl-aglfn/b2a04cb906f9257cc06a2fe0ad4b3d663bc02136/"
3283 "glyphlist.txt"))
3284 (sha256
3285 (base32 "1s6svfw23rqzdvflv8frgd4xrwvrmsj8szwzqgcd39dp9rpjafjp"))))))
3286 (propagated-inputs
3287 `(("texlive-luatex-lualibs" ,texlive-luatex-lualibs)))
3288 (home-page "https://github.com/lualatex/luaotfload")
3289 (synopsis "OpenType font loader for LuaTeX")
3290 (description
3291 "Luaotfload is an adaptation of the ConTeXt font loading system for the
3292Plain and LaTeX formats. It allows OpenType fonts to be loaded with font
3293features accessible using an extended font request syntax while providing
3294compatibilitywith XeTeX. By indexing metadata in a database it facilitates
3295loading fonts by their proper names instead of file names.")
3296 ;; GPL version 2 only
3297 (license license:gpl2)))
3298
2573163a
RW
3299(define-public texlive-latex-amsmath
3300 (package
3301 (name "texlive-latex-amsmath")
3302 (version (number->string %texlive-revision))
3303 (source (origin
3304 (method svn-fetch)
3305 (uri (texlive-ref "latex" "amsmath"))
320c771a 3306 (file-name (string-append name "-" version "-checkout"))
2573163a
RW
3307 (sha256
3308 (base32
d4d9a1ec 3309 "0arvk7gn32mshnfdad5qkgf3i1arxq77k3vq7wnpm4nwnrzclxal"))))
2573163a
RW
3310 (build-system texlive-build-system)
3311 (arguments '(#:tex-directory "latex/amsmath"))
b8d8806b 3312 (home-page "https://www.ctan.org/pkg/amsmath")
2573163a
RW
3313 (synopsis "AMS mathematical facilities for LaTeX")
3314 (description
3315 "This is the principal package in the AMS-LaTeX distribution. It adapts
3316for use in LaTeX most of the mathematical features found in AMS-TeX; it is
3317highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
3318When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
3319symbols), @code{amsopnamsopn} (for operator names) and
3320@code{amstextamstext} (for text embedded in mathematics) are also loaded.
3321This package is part of the LaTeX required distribution; however, several
3322contributed packages add still further to its appeal; examples are
3323@code{empheqempheq}, which provides functions for decorating and highlighting
3324mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
3325definitions.")
3326 (license license:lppl1.3c+)))
3327
18e366e8
RW
3328(define-public texlive-latex-amscls
3329 (package
3330 (name "texlive-latex-amscls")
3331 (version (number->string %texlive-revision))
3332 (source (origin
3333 (method svn-fetch)
3334 (uri (texlive-ref "latex" "amscls"))
43059ed0 3335 (file-name (string-append name "-" version "-checkout"))
18e366e8
RW
3336 (sha256
3337 (base32
d4d9a1ec 3338 "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca"))))
18e366e8
RW
3339 (build-system texlive-build-system)
3340 (arguments
3341 `(#:tex-directory "latex/amscls"))
b8d8806b 3342 (home-page "https://www.ctan.org/pkg/amscls")
18e366e8
RW
3343 (synopsis "AMS document classes for LaTeX")
3344 (description
3345 "This bundle contains three AMS classes: @code{amsartamsart} (for writing
3346articles for the AMS), @code{amsbookamsbook} (for books) and
3347@code{amsprocamsproc} (for proceedings), together with some supporting
3348material. The material is made available as part of the AMS-LaTeX
3349distribution.")
3350 (license license:lppl1.3c+)))
3351
f84d5a09
RW
3352(define-public texlive-latex-babel
3353 (package
3354 (name "texlive-latex-babel")
3355 (version (number->string %texlive-revision))
3356 (source (origin
3357 (method svn-fetch)
3358 (uri (texlive-ref "latex" "babel"))
8732493e 3359 (file-name (string-append name "-" version "-checkout"))
f84d5a09
RW
3360 (sha256
3361 (base32
d4d9a1ec 3362 "0yhlfiz3fjc8jd46f1zrjj4jig48l8rrzh8cmd8ammml8z9a01z6"))))
f84d5a09
RW
3363 (build-system texlive-build-system)
3364 (arguments
dcc8af4a 3365 '(#:tex-directory "generic/babel"
f84d5a09
RW
3366 #:phases
3367 (modify-phases %standard-phases
3368 ;; This package tries to produce babel.aux twice but refuses to
3369 ;; overwrite the first one.
3370 (add-before 'build 'fix-ins
3371 (lambda _
3372 (substitute* "babel.ins"
3373 (("askonceonly") "askforoverwritefalse"))
3374 #t)))))
b8d8806b 3375 (home-page "https://www.ctan.org/pkg/babel")
f84d5a09
RW
3376 (synopsis "Multilingual support for Plain TeX or LaTeX")
3377 (description
3378 "The package manages culturally-determined typographical (and other)
3379rules, and hyphenation patterns for a wide range of languages. A document may
3380select a single language to be supported, or it may select several, in which
3381case the document may switch from one language to another in a variety of
3382ways. Babel uses contributed configuration files that provide the detail of
3383what has to be done for each language. Users of XeTeX are advised to use the
3384polyglossia package rather than Babel.")
3385 (license license:lppl1.3+)))
3386
876a1980
RW
3387(define-public texlive-generic-babel-english
3388 (package
3389 (name "texlive-generic-babel-english")
3390 (version (number->string %texlive-revision))
3391 (source (origin
3392 (method svn-fetch)
3393 (uri (texlive-ref "generic" "babel-english"))
3394 (file-name (string-append name "-" version "-checkout"))
3395 (sha256
3396 (base32
3397 "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
3398 (build-system texlive-build-system)
3399 (arguments '(#:tex-directory "generic/babel-english"))
b8d8806b 3400 (home-page "https://www.ctan.org/pkg/babel-english")
876a1980
RW
3401 (synopsis "Babel support for English")
3402 (description
3403 "This package provides the language definition file for support of
3404English in @code{babel}. Care is taken to select British hyphenation patterns
3405for British English and Australian text, and default (\"american\") patterns
3406for Canadian and USA text.")
3407 (license license:lppl1.3+)))
3408
6309d215
RW
3409(define-public texlive-generic-babel-german
3410 (package
3411 (name "texlive-generic-babel-german")
3412 (version (number->string %texlive-revision))
3413 (source (origin
3414 (method svn-fetch)
3415 (uri (texlive-ref "generic" "babel-german"))
3416 (file-name (string-append name "-" version "-checkout"))
3417 (sha256
3418 (base32
3419 "0h47s67gnhdaxfgbf8pirp5vw4z6rrhxl8zav803yjxka0096i3y"))))
3420 (build-system texlive-build-system)
3421 (arguments '(#:tex-directory "generic/babel-german"))
3422 (home-page "https://www.ctan.org/pkg/babel-german")
3423 (synopsis "Babel support for German")
3424 (description
3425 "This package provides the language definition file for support of German
3426in @code{babel}. It provides all the necessary macros, definitions and
3427settings to typeset German documents. The bundle includes support for the
3428traditional and reformed German orthography as well as for the Austrian and
3429Swiss varieties of German.")
3430 (license license:lppl1.3+)))
3431
93286d38
RW
3432(define-public texlive-latex-cyrillic
3433 (package
3434 (name "texlive-latex-cyrillic")
3435 (version (number->string %texlive-revision))
3436 (source (origin
3437 (method svn-fetch)
3438 (uri (texlive-ref "latex" "cyrillic"))
51bffe79 3439 (file-name (string-append name "-" version "-checkout"))
93286d38
RW
3440 (sha256
3441 (base32
d4d9a1ec 3442 "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b"))))
93286d38
RW
3443 (build-system texlive-build-system)
3444 (arguments
3445 '(#:tex-directory "latex/cyrillic"))
b8d8806b 3446 (home-page "https://www.ctan.org/pkg/latex-cyrillic")
93286d38
RW
3447 (synopsis "Support for Cyrillic fonts in LaTeX")
3448 (description
3449 "This bundle of macros files provides macro support (including font
3450encoding macros) for the use of Cyrillic characters in fonts encoded under the
3451T2* and X2 encodings. These encodings cover (between them) pretty much every
3452language that is written in a Cyrillic alphabet.")
3453 (license license:lppl1.3c+)))
3454
83fe6231
RW
3455(define-public texlive-latex-psnfss
3456 (package
3457 (name "texlive-latex-psnfss")
3458 (version (number->string %texlive-revision))
3459 (source (origin
3460 (method svn-fetch)
3461 (uri (texlive-ref "latex" "psnfss"))
b5b10f3b 3462 (file-name (string-append name "-" version "-checkout"))
83fe6231
RW
3463 (sha256
3464 (base32
3465 "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
3466 (build-system texlive-build-system)
3467 (arguments '(#:tex-directory "latex/psnfss"))
b8d8806b 3468 (home-page "https://www.ctan.org/pkg/psnfss")
83fe6231
RW
3469 (synopsis "Font support for common PostScript fonts")
3470 (description
3471 "The PSNFSS collection includes a set of files that provide a complete
3472working setup of the LaTeX font selection scheme (NFSS2) for use with common
3473PostScript fonts. It covers the so-called \"Base\" fonts (which are built
3474into any Level 2 PostScript printing device and the Ghostscript interpreter)
3475and a number of free fonts. It provides font definition files, macros and
3476font metrics. The bundle as a whole is part of the LaTeX required set of
3477packages.")
3478 (license license:lppl1.2+)))
3479
bfcb9d4d
RW
3480;; For user profiles
3481(define-public texlive-base
3482 (let ((default-packages
3483 (list texlive-bin
3484 texlive-dvips
3485 texlive-fontname
3486 texlive-fonts-cm
3487 texlive-fonts-latex
3488 texlive-metafont-base
3489 texlive-latex-base
3490 ;; LaTeX packages from the "required" set.
3491 texlive-latex-amsmath
3492 texlive-latex-amscls
3493 texlive-latex-babel
3494 texlive-generic-babel-english
3495 texlive-latex-cyrillic
3496 texlive-latex-graphics
3497 texlive-latex-psnfss
3498 texlive-latex-tools)))
3499 (package
3500 (name "texlive-base")
3501 (version (number->string %texlive-revision))
3502 (source #f)
3503 (build-system trivial-build-system)
3504 (arguments
3505 '(#:builder
3506 (begin (mkdir (assoc-ref %outputs "out")))))
3507 (propagated-inputs
3508 (map (lambda (package)
3509 (list (package-name package) package))
3510 default-packages))
3511 (home-page (package-home-page texlive-bin))
3512 (synopsis "TeX Live base packages")
3513 (description "This is a very limited subset of the TeX Live distribution.
3514It includes little more than the required set of LaTeX packages.")
3515 (license (fold (lambda (package result)
3516 (match (package-license package)
3517 ((lst ...)
3518 (append lst result))
3519 ((? license:license? license)
3520 (cons license result))))
3521 '()
3522 default-packages)))))
3523
d7da2372 3524;; For use in package definitions only
cb7bc20a
RW
3525(define-public texlive-union
3526 (lambda* (#:optional (packages '()))
3527 "Return 'texlive-union' package which is a union of PACKAGES and the
3528standard LaTeX packages."
d7da2372
RW
3529 (let ((default-packages (match (package-propagated-inputs texlive-base)
3530 (((labels packages) ...) packages))))
3531 (package (inherit texlive-base)
cb7bc20a 3532 (name "texlive-union")
cb7bc20a
RW
3533 (build-system trivial-build-system)
3534 (arguments
3535 '(#:modules ((guix build union)
3536 (guix build utils)
3537 (guix build texlive-build-system)
3538 (guix build gnu-build-system)
3539 (guix build gremlin)
3540 (guix elf))
3541 #:builder
3542 (begin
3543 (use-modules (ice-9 match)
1a64a7b3 3544 (ice-9 popen)
cb7bc20a
RW
3545 (srfi srfi-26)
3546 (guix build union)
3547 (guix build utils)
3548 (guix build texlive-build-system))
3549 (let* ((out (assoc-ref %outputs "out"))
3550 (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
1a64a7b3
RW
3551 ;; Build a modifiable union of all inputs (but exclude bash and
3552 ;; the updmap.cfg file)
cb7bc20a
RW
3553 (match (filter (match-lambda
3554 ((name . _)
1a64a7b3 3555 (not (member name '("bash" "updmap.cfg")))))
cb7bc20a
RW
3556 %build-inputs)
3557 (((names . directories) ...)
3558 (union-build (assoc-ref %outputs "out")
3559 directories
c58d1b5f
RW
3560 #:create-all-directories? #t
3561 #:log-port (%make-void-port "w"))))
cb7bc20a
RW
3562
3563 ;; The configuration file "texmf.cnf" is provided by the
3564 ;; "texlive-bin" package. We take it and override only the
3565 ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
3566 ;; by default, though, so we still need to set TEXMFCNF.
3567 (substitute* texmf.cnf
3568 (("^TEXMFROOT = .*")
3569 (string-append "TEXMFROOT = " out "/share\n"))
3570 (("^TEXMF = .*")
3571 "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
1a64a7b3
RW
3572 (setenv "PATH" (string-append
3573 (assoc-ref %build-inputs "bash") "/bin:"
3574 (assoc-ref %build-inputs "coreutils") "/bin:"
3575 (string-append out "/bin")))
cb7bc20a
RW
3576 (for-each
3577 (cut wrap-program <>
476f7fce
RW
3578 `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf)))
3579 `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist"))))
cb7bc20a 3580 (find-files (string-append out "/bin") ".*"))
1a64a7b3
RW
3581
3582 ;; Remove invalid maps from config file.
3583 (let ((port (open-pipe* OPEN_WRITE "updmap-sys"
3584 "--syncwithtrees"
3585 "--nohash"
3586 (assoc-ref %build-inputs "updmap.cfg"))))
3587 (display "Y\n" port)
3588 (when (not (zero? (status:exit-val (close-pipe port))))
3589 (error "failed to filter updmap.cfg")))
3590 ;; Generate maps.
3591 (invoke "updmap-sys" "--force"
3592 (string-append out "/share/texmf-config/web2c/updmap.cfg"))
cb7bc20a
RW
3593 #t))))
3594 (inputs
3595 `(("bash" ,bash)
3596 ,@(map (lambda (package)
3597 (list (package-name package) package))
3598 (append default-packages packages))))
1a64a7b3
RW
3599 (native-inputs
3600 `(("coreutils" ,coreutils)
3601 ("sed" ,sed)
3602 ("updmap.cfg"
3603 ,(origin
3604 (method url-fetch)
3605 (uri (string-append "https://tug.org/svn/texlive/tags/"
3606 %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg"
3607 "?revision=" (number->string %texlive-revision)))
3608 (file-name (string-append "updmap.cfg-"
3609 (number->string %texlive-revision)))
3610 (sha256
3611 (base32
3612 "06mwpy5i218g5k3sf4gba0fmxgas82hkzx9fhwn67z5ik37d8apq"))))))
cb7bc20a
RW
3613 (home-page (package-home-page texlive-bin))
3614 (synopsis "Union of TeX Live packages")
3615 (description "This package provides a subset of the TeX Live
3616distribution.")
3617 (license (fold (lambda (package result)
3618 (match (package-license package)
3619 ((lst ...)
3620 (append lst result))
3621 ((? license:license? license)
3622 (cons license result))))
3623 '()
3624 (append default-packages packages)))))))
3625
d7da2372 3626;; For use in package definitions only
9d4f8dc2
RW
3627(define-public texlive-tiny
3628 (package
3629 (inherit (texlive-union))
3630 (name "texlive-tiny")
3631 (description "This is a very limited subset of the TeX Live distribution.
3632It includes little more than the required set of LaTeX packages.")))
3633
60b5e228
RW
3634(define-public texlive-latex-amsrefs
3635 (package
3636 (name "texlive-latex-amsrefs")
3637 (version (number->string %texlive-revision))
3638 (source (origin
3639 (method svn-fetch)
3640 (uri (texlive-ref "latex" "amsrefs"))
3641 (file-name (string-append name "-" version "-checkout"))
3642 (sha256
3643 (base32
3644 "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
3645 (build-system texlive-build-system)
3646 (arguments '(#:tex-directory "latex/amsrefs"))
b8d8806b 3647 (home-page "https://www.ctan.org/pkg/amsrefs")
60b5e228
RW
3648 (synopsis "LaTeX-based replacement for BibTeX")
3649 (description
3650 "Amsrefs is a LaTeX package for bibliographies that provides an archival
3651data format similar to the format of BibTeX database files, but adapted to
3652make direct processing by LaTeX easier. The package can be used either in
3653conjunction with BibTeX or as a replacement for BibTeX.")
3654 (license license:lppl1.3+)))
3655
3236599f
RW
3656(define-public texlive-latex-bigfoot
3657 (package
3658 (name "texlive-latex-bigfoot")
3659 (version (number->string %texlive-revision))
3660 (source (origin
3661 (method svn-fetch)
3662 (uri (texlive-ref "latex" "bigfoot"))
3663 (file-name (string-append name "-" version "-checkout"))
3664 (sha256
3665 (base32
3666 "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
3667 (build-system texlive-build-system)
3668 (arguments
3669 '(#:tex-directory "latex/bigfoot"
3670 #:phases
3671 (modify-phases %standard-phases
3672 (add-after 'unpack 'remove-generated-file
3673 (lambda _
3674 (for-each delete-file (find-files "." "\\.drv$"))
3675 #t)))))
b8d8806b 3676 (home-page "https://www.ctan.org/pkg/bigfoot")
3236599f
RW
3677 (synopsis "Footnotes for critical editions")
3678 (description
3679 "This package aims to provide a one-stop solution to requirements for
3680footnotes. It offers: Multiple footnote apparatus superior to that of
3681@code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
3682into a single paragraph (this choice may be selected per footnote series);
3683Things you might have expected (such as @code{\\verb}-like material in
3684footnotes, and color selections over page breaks) now work. Note that the
3685majority of the bigfoot package's interface is identical to that of
3686@code{manyfoot}; users should seek information from that package's
3687documentation. The bigfoot bundle also provides the @code{perpage} and
3688@code{suffix} packages.")
3689 (license license:gpl2+)))
3690
8e732b49
RW
3691(define-public texlive-latex-blindtext
3692 (package
3693 (name "texlive-latex-blindtext")
3694 (version (number->string %texlive-revision))
3695 (source (origin
3696 (method svn-fetch)
3697 (uri (texlive-ref "latex" "blindtext"))
3698 (file-name (string-append name "-" version "-checkout"))
3699 (sha256
3700 (base32
3701 "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
3702 (build-system texlive-build-system)
3703 (arguments '(#:tex-directory "latex/blindtext"))
b8d8806b 3704 (home-page "https://www.ctan.org/pkg/blindtext")
8e732b49
RW
3705 (synopsis "Producing 'blind' text for testing")
3706 (description
3707 "The package provides the commands @code{\\blindtext} and
3708@code{\\Blindtext} for creating \"blind\" text useful in testing new classes
3709and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
3710an entire random document with sections, lists, mathematics, etc. The package
3711supports three languages, @code{english}, @code{(n)german} and @code{latin};
3712the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
3713ipsum\" text, see the @code{lipsum} package).")
3714 (license license:lppl)))
3715
7cda03bd
RW
3716(define-public texlive-latex-dinbrief
3717 (package
3718 (name "texlive-latex-dinbrief")
3719 (version (number->string %texlive-revision))
3720 (source (origin
3721 (method svn-fetch)
3722 (uri (texlive-ref "latex" "dinbrief"))
3723 (file-name (string-append name "-" version "-checkout"))
3724 (sha256
3725 (base32
3726 "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
3727 (build-system texlive-build-system)
3728 (arguments
3729 '(#:tex-directory "latex/dinbrief"
3730 #:phases
3731 (modify-phases %standard-phases
3732 (add-after 'unpack 'remove-generated-file
3733 (lambda _
3734 (delete-file "dinbrief.drv")
d4d9a1ec
RW
3735 #t))
3736 (add-after 'unpack 'fix-encoding-error
3737 (lambda _
3738 (with-fluids ((%default-port-encoding "ISO-8859-1"))
3739 (substitute* "dinbrief.dtx"
3740 (("zur Verf.+ung. In der Pr\"aambel")
3741 "zur Verf\"ung. In der Pr\"aambel")))
7cda03bd 3742 #t)))))
b8d8806b 3743 (home-page "https://www.ctan.org/pkg/dinbrief")
7cda03bd
RW
3744 (synopsis "German letter DIN style")
3745 (description
3746 "This package implements a document layout for writing letters according
3747to the rules of DIN (Deutsches Institut für Normung, German standardisation
3748institute). A style file for LaTeX 2.09 (with limited support of the
3749features) is part of the package. Since the letter layout is based on a
3750German standard, the user guide is written in German, but most macros have
3751English names from which the user can recognize what they are used for. In
3752addition there are example files showing how letters may be created with the
3753package.")
3754 (license license:lppl)))
3755
de224adb
RW
3756(define-public texlive-latex-draftwatermark
3757 (package
3758 (name "texlive-latex-draftwatermark")
3759 (version (number->string %texlive-revision))
3760 (source (origin
3761 (method svn-fetch)
3762 (uri (texlive-ref "latex" "draftwatermark"))
3763 (file-name (string-append name "-" version "-checkout"))
3764 (sha256
3765 (base32
3766 "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
3767 (build-system texlive-build-system)
3768 (arguments '(#:tex-directory "latex/draftwatermark"))
b8d8806b 3769 (home-page "https://www.ctan.org/pkg/draftwatermark")
de224adb
RW
3770 (synopsis "Put a grey textual watermark on document pages")
3771 (description
3772 "This package provides a means to add a textual, light grey watermark on
3773every page or on the first page of a document. Typical usage may consist in
3774writing words such as DRAFT or CONFIDENTIAL across document pages. The
3775package performs a similar function to that of @code{draftcopy}, but its
3776implementation is output device independent, and made very simple by relying
3777on everypage.")
3778 (license license:lppl1.3+)))
3779
74e9c9a4
RW
3780(define-public texlive-latex-environ
3781 (package
3782 (name "texlive-latex-environ")
3783 (version (number->string %texlive-revision))
3784 (source (origin
3785 (method svn-fetch)
3786 (uri (texlive-ref "latex" "environ"))
3787 (file-name (string-append name "-" version "-checkout"))
3788 (sha256
3789 (base32
3790 "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
3791 (build-system texlive-build-system)
3792 (arguments '(#:tex-directory "latex/environ"))
b8d8806b 3793 (home-page "https://www.ctan.org/pkg/environ")
74e9c9a4
RW
3794 (synopsis "New interface for environments in LaTeX")
3795 (description
09acbb02
RW
3796 "This package provides the @code{\\collect@@body} command (as in
3797@code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
3798for collecting the body text of an environment. These commands are used to
3799define a new author interface to creating new environments.")
74e9c9a4
RW
3800 (license license:lppl)))
3801
adfa7a2a
RW
3802(define-public texlive-latex-eqparbox
3803 (package
3804 (name "texlive-latex-eqparbox")
3805 (version (number->string %texlive-revision))
3806 (source (origin
3807 (method svn-fetch)
3808 (uri (texlive-ref "latex" "eqparbox"))
3809 (file-name (string-append name "-" version "-checkout"))
3810 (sha256
3811 (base32
d4d9a1ec 3812 "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs"))))
adfa7a2a
RW
3813 (build-system texlive-build-system)
3814 (arguments '(#:tex-directory "latex/eqparbox"))
b8d8806b 3815 (home-page "https://www.ctan.org/pkg/eqparbox")
adfa7a2a
RW
3816 (synopsis "Create equal-widthed parboxes")
3817 (description
3818 "LaTeX users sometimes need to ensure that two or more blocks of text
3819occupy the same amount of horizontal space on the page. To that end, the
3820@code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
3821just like @code{\\parbox}, except that instead of specifying a width, one
3822specifies a tag. All @code{eqparbox}es with the same tag---regardless of
3823where they are in the document---will stretch to fit the widest
3824@code{eqparbox} with that tag. This simple, equal-width mechanism can be used
3825for a variety of alignment purposes, as is evidenced by the examples in
3826@code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
3827also provided.")
3828 (license license:lppl1.3+)))
3829
32e623d0
RW
3830(define-public texlive-latex-expdlist
3831 (package
3832 (name "texlive-latex-expdlist")
3833 (version (number->string %texlive-revision))
3834 (source (origin
3835 (method svn-fetch)
3836 (uri (texlive-ref "latex" "expdlist"))
3837 (file-name (string-append name "-" version "-checkout"))
3838 (sha256
3839 (base32
3840 "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
3841 (build-system texlive-build-system)
3842 (arguments
3843 '(#:tex-directory "latex/expdlist"
3844 #:phases
3845 (modify-phases %standard-phases
3846 (add-after 'unpack 'remove-generated-file
3847 (lambda _
3848 (for-each delete-file
3849 (find-files "." "\\.drv$"))
3850 #t)))))
b8d8806b 3851 (home-page "https://www.ctan.org/pkg/expdlist")
32e623d0
RW
3852 (synopsis "Expanded description environments")
3853 (description
3854 "The package provides additional features for the LaTeX
3855@code{description} environment, including adjustable left margin. The package
3856also allows the user to \"break\" a list (for example, to interpose a comment)
3857without affecting the structure of the list (this works for @code{itemize} and
3858@code{enumerate} lists, and numbered lists remain in sequence).")
3859 (license license:lppl)))
3860
893e3fc1
RW
3861(define-public texlive-latex-filemod
3862 (package
3863 (name "texlive-latex-filemod")
3864 (version (number->string %texlive-revision))
3865 (source (origin
3866 (method svn-fetch)
3867 (uri (svn-reference
3868 (url (string-append "svn://www.tug.org/texlive/tags/"
3869 %texlive-tag "/Master/texmf-dist/"
3870 "/tex/latex/filemod"))
3871 (revision %texlive-revision)))
681b579d 3872 (file-name (string-append name "-" version "-checkout"))
893e3fc1
RW
3873 (sha256
3874 (base32
3875 "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
3876 (build-system trivial-build-system)
3877 (arguments
3878 `(#:modules ((guix build utils))
3879 #:builder
3880 (begin
3881 (use-modules (guix build utils))
3882 (let ((target (string-append (assoc-ref %outputs "out")
3883 "/share/texmf-dist/tex/latex/filemod")))
3884 (mkdir-p target)
3885 (copy-recursively (assoc-ref %build-inputs "source") target)
3886 #t))))
b8d8806b 3887 (home-page "https://www.ctan.org/pkg/filemod")
893e3fc1
RW
3888 (synopsis "Provide file modification times, and compare them")
3889 (description
3890 "This package provides macros to read and compare the modification dates
3891of files. The files may be @code{.tex} files, images or other files (as long
3892as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
3893of pdfLaTeX to find the file modification date as PDF date string, parses the
3894string and returns the value to the user. The package will also work for DVI
3895output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
3896mode. The functionality is provided by purely expandable macros or by faster
3897but non-expandable ones.")
3898 (license license:lppl1.3+)))
3899
8c23f238
RW
3900(define-public texlive-latex-ifplatform
3901 (package
3902 (name "texlive-latex-ifplatform")
3903 (version (number->string %texlive-revision))
3904 (source (origin
3905 (method svn-fetch)
3906 (uri (texlive-ref "latex" "ifplatform"))
3907 (file-name (string-append name "-" version "-checkout"))
3908 (sha256
3909 (base32
d4d9a1ec 3910 "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy"))))
8c23f238
RW
3911 (build-system texlive-build-system)
3912 (arguments '(#:tex-directory "latex/ifplatform"))
b8d8806b 3913 (home-page "https://www.ctan.org/pkg/ifplatform")
8c23f238
RW
3914 (synopsis "Conditionals to test which platform is being used")
3915 (description
3916 "This package uses the (La)TeX extension @code{-shell-escape} to
3917establish whether the document is being processed on a Windows or on a
3918Unix-like system, or on Cygwin (Unix environment over a Windows system).
3919Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
3920and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
3921on a Unix-like system, which may be used to distinguish between various
3922classes of systems.")
3923 (license license:lppl)))
3924
9b416042
RW
3925(define-public texlive-latex-natbib
3926 (package
3927 (name "texlive-latex-natbib")
3928 (version (number->string %texlive-revision))
3929 (source (origin
3930 (method svn-fetch)
3931 (uri (texlive-ref "latex" "natbib"))
23ae6e65 3932 (file-name (string-append name "-" version "-checkout"))
9b416042
RW
3933 (sha256
3934 (base32
3935 "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
3936 (build-system texlive-build-system)
3937 (arguments '(#:tex-directory "latex/natbib"))
b8d8806b 3938 (home-page "https://www.ctan.org/pkg/natbib")
9b416042
RW
3939 (synopsis "Flexible bibliography support")
3940 (description
3941 "This bundle provides a package that implements both author-year and
3942numbered references, as well as much detailed of support for other
3943bibliography use. Also provided are versions of the standard BibTeX styles
3944that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
3945@code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
3946designed from the start to be compatible with @code{natbib}.")
3947 (license license:lppl)))
3948
d770d07f
RW
3949(define-public texlive-latex-psfrag
3950 (package
3951 (name "texlive-latex-psfrag")
3952 (version (number->string %texlive-revision))
3953 (source (origin
3954 (method svn-fetch)
3955 (uri (texlive-ref "latex" "psfrag"))
3956 (file-name (string-append name "-" version "-checkout"))
3957 (sha256
3958 (base32
3959 "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
3960 (build-system texlive-build-system)
3961 (arguments '(#:tex-directory "latex/psfrag"))
b8d8806b 3962 (home-page "https://www.ctan.org/pkg/psfrag")
d770d07f
RW
3963 (synopsis "Replace strings in encapsulated PostScript figures")
3964 (description
3965 "This package allows LaTeX constructions (equations, picture
3966environments, etc.) to be precisely superimposed over Encapsulated PostScript
3967figures, using your own favorite drawing tool to create an EPS figure and
3968placing simple text \"tags\" where each replacement is to be placed, with
3969PSfrag automatically removing these tags from the figure and replacing them
3970with a user specified LaTeX construction, properly aligned, scaled, and/or
3971rotated.")
3972 (license (license:fsf-free "file://psfrag.dtx"))))
3973
d4d9a1ec
RW
3974(define-public texlive-latex-xkeyval
3975 (package
3976 (name "texlive-latex-xkeyval")
3977 (version (number->string %texlive-revision))
3978 (source (origin
3979 (method svn-fetch)
3980 (uri (texlive-ref "latex" "xkeyval"))
3981 (file-name (string-append name "-" version "-checkout"))
3982 (sha256
3983 (base32
3984 "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp"))))
3985 (build-system texlive-build-system)
3986 (arguments '(#:tex-directory "latex/xkeyval"))
3987 (home-page "https://www.ctan.org/pkg/xkeyval")
3988 (synopsis "Macros for defining and setting keys")
3989 (description
3990 "This package is an extension of the @code{keyval} package and offers
3991more flexible macros for defining and setting keys. The package provides a
3992pointer and a preset system. Furthermore, it supplies macros to allow class
3993and package options to contain options of the @code{key=value} form. A LaTeX
3994kernel patch is provided to avoid premature expansions of macros in class or
3995package options. A specialized system for setting @code{PSTricks} keys is
3996provided by the @code{pst-xkey} package.")
3997 (license license:lppl1.3+)))
3998
5a1ee7d8
RW
3999(define-public texlive-latex-pstool
4000 (package
4001 (name "texlive-latex-pstool")
4002 (version (number->string %texlive-revision))
4003 (source (origin
4004 (method svn-fetch)
d4d9a1ec
RW
4005 (uri (svn-reference
4006 (url (string-append "svn://www.tug.org/texlive/tags/"
4007 %texlive-tag "/Master/texmf-dist/"
4008 "/tex/latex/pstool"))
4009 (revision %texlive-revision)))
5a1ee7d8
RW
4010 (file-name (string-append name "-" version "-checkout"))
4011 (sha256
4012 (base32
d4d9a1ec
RW
4013 "1h816jain8c9nky75kk8pmmwj5b4yf9dpqvdvi2l6jhfj5iqkzr8"))))
4014 (build-system trivial-build-system)
5a1ee7d8 4015 (arguments
d4d9a1ec
RW
4016 `(#:modules ((guix build utils))
4017 #:builder
4018 (begin
4019 (use-modules (guix build utils))
4020 (let ((target (string-append (assoc-ref %outputs "out")
4021 "/share/texmf-dist/tex/latex/pstool")))
4022 (mkdir-p target)
4023 (copy-recursively (assoc-ref %build-inputs "source") target)
4024 #t))))
5a1ee7d8 4025 (propagated-inputs
d4d9a1ec 4026 `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix
5a1ee7d8
RW
4027 ("texlive-latex-filemod" ,texlive-latex-filemod)
4028 ("texlive-latex-graphics" ,texlive-latex-graphics)
4029 ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
d4d9a1ec 4030 ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3
5a1ee7d8
RW
4031 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
4032 ("texlive-latex-psfrag" ,texlive-latex-psfrag)
d4d9a1ec
RW
4033 ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc
4034 ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)
4035 ("texlive-latex-xkeyval" ,texlive-latex-xkeyval)))
b8d8806b 4036 (home-page "https://www.ctan.org/pkg/pstool")
d4d9a1ec 4037 (synopsis "Process PostScript graphics within pdfLaTeX documents")
5a1ee7d8
RW
4038 (description
4039 "This is a package for processing PostScript graphics with @code{psfrag}
4040labels within pdfLaTeX documents. Every graphic is compiled individually,
4041drastically speeding up compilation time when only a single figure needs
4042re-processing.")
4043 (license license:lppl)))
4044
171160d5
RW
4045(define-public texlive-latex-seminar
4046 (package
4047 (name "texlive-latex-seminar")
4048 (version (number->string %texlive-revision))
4049 (source (origin
4050 (method svn-fetch)
4051 (uri (svn-reference
4052 (url (string-append "svn://www.tug.org/texlive/tags/"
4053 %texlive-tag "/Master/texmf-dist/"
4054 "/tex/latex/seminar"))
4055 (revision %texlive-revision)))
a74ac06b 4056 (file-name (string-append name "-" version "-checkout"))
171160d5
RW
4057 (sha256
4058 (base32
4059 "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
1d4c2dab
RW
4060 (build-system trivial-build-system)
4061 (arguments
4062 `(#:modules ((guix build utils))
4063 #:builder
4064 (begin
4065 (use-modules (guix build utils))
4066 (let ((target (string-append (assoc-ref %outputs "out")
4067 "/share/texmf-dist/tex/latex/seminar")))
4068 (mkdir-p target)
4069 (copy-recursively (assoc-ref %build-inputs "source") target)
4070 #t))))
b8d8806b 4071 (home-page "https://www.ctan.org/pkg/seminar")
171160d5
RW
4072 (synopsis "Make overhead slides")
4073 ;; TODO: This package may need fancybox and xcomment at runtime.
4074 (description
4075 "This package provides a class that produces overhead
4076slides (transparencies), with many facilities. Seminar is not nowadays
4077reckoned a good basis for a presentation — users are advised to use more
4078recent classes such as powerdot or beamer, both of which are tuned to
407921st-century presentation styles.")
4080 (license license:lppl1.2+)))
4081
f3540dbd
RW
4082(define-public texlive-latex-trimspaces
4083 (package
4084 (name "texlive-latex-trimspaces")
4085 (version (number->string %texlive-revision))
4086 (source (origin
4087 (method svn-fetch)
4088 (uri (texlive-ref "latex" "trimspaces"))
70a71d19 4089 (file-name (string-append name "-" version "-checkout"))
f3540dbd
RW
4090 (sha256
4091 (base32
4092 "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
4093 (build-system texlive-build-system)
4094 (arguments
4095 '(#:tex-directory "latex/trimspaces"
4096 #:tex-format "latex"
4097 #:phases
4098 (modify-phases %standard-phases
4099 (add-after 'unpack 'fix-bug
4100 (lambda _
4101 ;; The "ins" file refers to the wrong source file.
4102 (substitute* "trimspaces.ins"
4103 (("pstool.tex") "trimspaces.tex"))
4104 #t)))))
4105 (inputs
4106 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
b8d8806b 4107 (home-page "https://www.ctan.org/pkg/trimspaces")
f3540dbd
RW
4108 (synopsis "Trim spaces around an argument or within a macro")
4109 (description
4110 "This very short package allows you to expandably remove spaces around a
4111token list (commands are provided to remove spaces before, spaces after, or
4112both); or to remove surrounding spaces within a macro definition, or to define
4113space-stripped macros.")
4114 (license license:lppl)))
4115
7709d4d8
RW
4116(define-public texlive-latex-capt-of
4117 (package
4118 (name "texlive-latex-capt-of")
4119 (version (number->string %texlive-revision))
4120 (source (origin
4121 (method svn-fetch)
4122 (uri (svn-reference
4123 (url (string-append "svn://www.tug.org/texlive/tags/"
4124 %texlive-tag "/Master/texmf-dist/"
4125 "/tex/latex/capt-of"))
4126 (revision %texlive-revision)))
4127 (file-name (string-append name "-" version "-checkout"))
4128 (sha256
4129 (base32
4130 "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
4131 (build-system trivial-build-system)
4132 (arguments
4133 `(#:modules ((guix build utils))
4134 #:builder
4135 (begin
4136 (use-modules (guix build utils))
4137 (let ((target (string-append (assoc-ref %outputs "out")
4138 "/share/texmf-dist/tex/latex/capt-of")))
4139 (mkdir-p target)
4140 (copy-recursively (assoc-ref %build-inputs "source") target)
4141 #t))))
b8d8806b 4142 (home-page "https://www.ctan.org/pkg/capt-of")
7709d4d8
RW
4143 (synopsis "Captions on more than floats")
4144 (description
4145 "This package defines a command @code{\\captionof} for putting a caption
4146to something that's not a float.")
4147 (license license:lppl)))
4148
49b2e86a
RW
4149(define-public texlive-latex-doi
4150 (package
4151 (name "texlive-latex-doi")
4152 (version (number->string %texlive-revision))
4153 (source (origin
4154 (method svn-fetch)
4155 (uri (svn-reference
4156 (url (string-append "svn://www.tug.org/texlive/tags/"
4157 %texlive-tag "/Master/texmf-dist/"
4158 "/tex/latex/doi"))
4159 (revision %texlive-revision)))
4160 (file-name (string-append name "-" version "-checkout"))
4161 (sha256
4162 (base32
4163 "0378rdmrgr2lzbfi4qqy4dfpj5im20diyd8z8b9m4mlg05r7wgnb"))))
4164 (build-system trivial-build-system)
4165 (arguments
4166 `(#:modules ((guix build utils))
4167 #:builder
4168 (begin
4169 (use-modules (guix build utils))
4170 (let ((target (string-append (assoc-ref %outputs "out")
4171 "/share/texmf-dist/tex/latex/doi")))
4172 (mkdir-p target)
4173 (copy-recursively (assoc-ref %build-inputs "source") target)
4174 #t))))
4175 (home-page "https://www.ctan.org/pkg/doi")
4176 (synopsis "Create correct hyperlinks for DOI numbers")
4177 (description
4178 "You can hyperlink DOI numbers to doi.org. However, some publishers have
4179elected to use nasty characters in their DOI numbering scheme (@code{<},
4180@code{>}, @code{_} and @code{;} have all been spotted). This will either
4181upset LaTeX, or your PDF reader. This package contains a single user-level
4182command @code{\\doi{}}, which takes a DOI number, and creates a correct
4183hyperlink to the target of the DOI.")
4184 ;; Any version of the LPPL.
4185 (license license:lppl1.3+)))
4186
a8ac7c0b
RW
4187(define-public texlive-latex-etoolbox
4188 (package
4189 (name "texlive-latex-etoolbox")
4190 (version (number->string %texlive-revision))
4191 (source (origin
4192 (method svn-fetch)
4193 (uri (svn-reference
4194 (url (string-append "svn://www.tug.org/texlive/tags/"
4195 %texlive-tag "/Master/texmf-dist/"
4196 "/tex/latex/etoolbox"))
4197 (revision %texlive-revision)))
4198 (file-name (string-append name "-" version "-checkout"))
4199 (sha256
4200 (base32
d4d9a1ec 4201 "1agmq6bf8wzcd77n20ng8bl4kh69cg5f6sjniii7bcw4llhd3nc8"))))
a8ac7c0b
RW
4202 (build-system trivial-build-system)
4203 (arguments
4204 `(#:modules ((guix build utils))
4205 #:builder
4206 (begin
4207 (use-modules (guix build utils))
4208 (let ((target (string-append (assoc-ref %outputs "out")
4209 "/share/texmf-dist/tex/latex/etoolbox")))
4210 (mkdir-p target)
4211 (copy-recursively (assoc-ref %build-inputs "source") target)
4212 #t))))
b8d8806b 4213 (home-page "https://www.ctan.org/pkg/etoolbox")
a8ac7c0b
RW
4214 (synopsis "e-TeX tools for LaTeX")
4215 (description
4216 "This package is a toolbox of programming facilities geared primarily
4217towards LaTeX class and package authors. It provides LaTeX frontends to some
4218of the new primitives provided by e-TeX as well as some generic tools which
4219are not strictly related to e-TeX but match the profile of this package. The
4220package provides functions that seem to offer alternative ways of implementing
4221some LaTeX kernel commands; nevertheless, the package will not modify any part
4222of the LaTeX kernel.")
4223 (license license:lppl1.3+)))
4224
17dce7e5
RW
4225(define-public texlive-latex-fncychap
4226 (package
4227 (name "texlive-latex-fncychap")
4228 (version (number->string %texlive-revision))
4229 (source (origin
4230 (method svn-fetch)
4231 (uri (svn-reference
4232 (url (string-append "svn://www.tug.org/texlive/tags/"
4233 %texlive-tag "/Master/texmf-dist/"
4234 "/tex/latex/fncychap"))
4235 (revision %texlive-revision)))
4236 (file-name (string-append name "-" version "-checkout"))
4237 (sha256
4238 (base32
4239 "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
4240 (build-system trivial-build-system)
4241 (arguments
4242 `(#:modules ((guix build utils))
4243 #:builder
4244 (begin
4245 (use-modules (guix build utils))
4246 (let ((target (string-append (assoc-ref %outputs "out")
4247 "/share/texmf-dist/tex/latex/fncychap")))
4248 (mkdir-p target)
4249 (copy-recursively (assoc-ref %build-inputs "source") target)
4250 #t))))
b8d8806b 4251 (home-page "https://www.ctan.org/pkg/fncychap")
17dce7e5
RW
4252 (synopsis "Seven predefined chapter heading styles")
4253 (description
4254 "This package provides seven predefined chapter heading styles. Each
4255style can be modified using a set of simple commands. Optionally one can
4256modify the formatting routines in order to create additional chapter
4257headings.")
4258 (license license:lppl1.3+)))
4259
ef1e2ef0
RW
4260(define-public texlive-latex-framed
4261 (package
4262 (name "texlive-latex-framed")
4263 (version (number->string %texlive-revision))
4264 (source (origin
4265 (method svn-fetch)
4266 (uri (svn-reference
4267 (url (string-append "svn://www.tug.org/texlive/tags/"
4268 %texlive-tag "/Master/texmf-dist/"
4269 "/tex/latex/framed"))
4270 (revision %texlive-revision)))
4271 (file-name (string-append name "-" version "-checkout"))
4272 (sha256
4273 (base32
4274 "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
4275 (build-system trivial-build-system)
4276 (arguments
4277 `(#:modules ((guix build utils))
4278 #:builder
4279 (begin
4280 (use-modules (guix build utils))
4281 (let ((target (string-append (assoc-ref %outputs "out")
4282 "/share/texmf-dist/tex/latex/framed")))
4283 (mkdir-p target)
4284 (copy-recursively (assoc-ref %build-inputs "source") target)
4285 #t))))
b8d8806b 4286 (home-page "https://www.ctan.org/pkg/framed")
ef1e2ef0
RW
4287 (synopsis "Framed or shaded regions that can break across pages")
4288 (description
4289 "The package creates three environments: @code{framed}, which puts an
4290ordinary frame box around the region, @code{shaded}, which shades the region,
4291and @code{leftbar}, which places a line at the left side. The environments
4292allow a break at their start (the @code{\\FrameCommand} enables creation of a
4293title that is “attached” to the environment); breaks are also allowed in the
4294course of the framed/shaded matter. There is also a command
4295@code{\\MakeFramed} to make your own framed-style environments.")
4296 ;; The header states: "These macros may be freely transmitted, reproduced,
4297 ;; or modified for any purpose provided that this notice is left intact."
4298 (license (license:fsf-free "file://framed.sty"))))
4299
588b5e96
RW
4300(define-public texlive-latex-g-brief
4301 (package
4302 (name "texlive-latex-g-brief")
4303 (version (number->string %texlive-revision))
4304 (source (origin
4305 (method svn-fetch)
4306 (uri (texlive-ref "latex" "g-brief"))
4307 (file-name (string-append name "-" version "-checkout"))
4308 (sha256
4309 (base32
4310 "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
4311 (build-system texlive-build-system)
4312 (arguments
4313 '(#:tex-directory "latex/g-brief"
4314 #:phases
4315 (modify-phases %standard-phases
4316 (add-after 'unpack 'remove-generated-file
4317 (lambda _
4318 (delete-file "g-brief.drv")
4319 #t)))))
b8d8806b 4320 (home-page "https://www.ctan.org/pkg/g-brief")
588b5e96
RW
4321 (synopsis "Letter document class")
4322 (description
4323 "This package is designed for formatting formless letters in German; it
4324can also be used for English (by those who can read the documentation). There
4325are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
4326\"old\" and a \"new\" version of g-brief.")
4327 (license license:lppl)))
4328
9b4d5c09
RW
4329(define-public texlive-latex-galois
4330 (package
4331 (name "texlive-latex-galois")
4332 (version (number->string %texlive-revision))
4333 (source (origin
4334 (method svn-fetch)
4335 (uri (texlive-ref "latex" "galois"))
4336 (file-name (string-append name "-" version "-checkout"))
4337 (sha256
4338 (base32
4339 "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
4340 (build-system texlive-build-system)
4341 (arguments '(#:tex-directory "latex/galois"))
b8d8806b 4342 (home-page "https://www.ctan.org/pkg/galois")
9b4d5c09
RW
4343 (synopsis "Typeset Galois connections")
4344 (description
4345 "The package deals with connections in two-dimensional style, optionally
4346in colour.")
4347 (license license:lppl)))
4348
5f691e2e
RW
4349(define-public texlive-latex-gcite
4350 (package
4351 (name "texlive-latex-gcite")
4352 (version (number->string %texlive-revision))
4353 (source (origin
4354 (method svn-fetch)
4355 (uri (texlive-ref "latex" "gcite"))
4356 (file-name (string-append name "-" version "-checkout"))
4357 (sha256
4358 (base32
4359 "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
4360 (build-system texlive-build-system)
4361 (arguments '(#:tex-directory "latex/gcite"))
b8d8806b 4362 (home-page "https://www.ctan.org/pkg/gcite")
5f691e2e
RW
4363 (synopsis "Citations in a reader-friendly style")
4364 (description
4365 "The package allows citations in the German style, which is considered by
4366many to be particularly reader-friendly. The citation provides a small amount
4367of bibliographic information in a footnote on the page where each citation is
4368made. It combines a desire to eliminate unnecessary page-turning with the
4369look-up efficiency afforded by numeric citations. The package makes use of
4370BibLaTeX, and is considered experimental.")
4371 (license license:lppl1.3+)))
4372
f47d1a52
RW
4373(define-public texlive-latex-geometry
4374 (package
4375 (name "texlive-latex-geometry")
4376 (version (number->string %texlive-revision))
4377 (source (origin
4378 (method svn-fetch)
4379 (uri (texlive-ref "latex" "geometry"))
4380 (file-name (string-append name "-" version "-checkout"))
4381 (sha256
4382 (base32
d4d9a1ec 4383 "0yw6bjfgsli3s1dldsgb7mkr7lnk329cgdjbgs8z2xn59pmmdsn4"))))
f47d1a52
RW
4384 (build-system texlive-build-system)
4385 (arguments '(#:tex-directory "latex/geometry"))
00a7af0e
RW
4386 (propagated-inputs
4387 `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek))) ;for ifpdf
b8d8806b 4388 (home-page "https://www.ctan.org/pkg/geometry")
f47d1a52
RW
4389 (synopsis "Flexible and complete interface to document dimensions")
4390 (description
4391 "This package provides an easy and flexible user interface to customize
4392page layout, implementing auto-centering and auto-balancing mechanisms so that
4393the users have only to give the least description for the page layout. The
4394package knows about all the standard paper sizes, so that the user need not
4395know what the nominal \"real\" dimensions of the paper are, just its standard
4396name (such as a4, letter, etc.). An important feature is the package's
4397ability to communicate the paper size it's set up to the output.")
4398 (license license:lppl)))
4399
d48091be
RW
4400(define-public texlive-latex-mdwtools
4401 (package
4402 (name "texlive-latex-mdwtools")
4403 (version (number->string %texlive-revision))
4404 (source (origin
4405 (method svn-fetch)
4406 (uri (texlive-ref "latex" "mdwtools"))
4407 (file-name (string-append name "-" version "-checkout"))
4408 (sha256
4409 (base32
4410 "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
4411 (build-system texlive-build-system)
4412 (arguments '(#:tex-directory "latex/mdwtools"))
b8d8806b 4413 (home-page "https://www.ctan.org/pkg/mdwtools")
d48091be
RW
4414 (synopsis "Miscellaneous tools by Mark Wooding")
4415 (description
4416 "This collection of tools includes: @code{atsupport} for short commands
fb5dfa86
RW
4417starting with @code{@@}, macros to sanitize the OT1 encoding of the
4418@code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
d48091be
RW
4419@code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
4420which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
4421array environments; verbatim handling; and syntax diagrams.")
4422 (license license:gpl3+)))
4423
80bf1f21
RW
4424(define-public texlive-latex-polyglossia
4425 (package
4426 (name "texlive-latex-polyglossia")
4427 (version (number->string %texlive-revision))
4428 (source (origin
4429 (method svn-fetch)
4430 (uri (texlive-ref "latex" "polyglossia"))
4431 (file-name (string-append name "-" version "-checkout"))
4432 (sha256
4433 (base32
d4d9a1ec 4434 "03ma58z3ypsbp7zgkzb1ylpn2ygr27cxzkf042ns0rif4g8s491f"))))
80bf1f21
RW
4435 (build-system texlive-build-system)
4436 (arguments '(#:tex-directory "latex/polyglossia"))
b8d8806b 4437 (home-page "https://www.ctan.org/pkg/polyglossia")
80bf1f21
RW
4438 (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
4439 (description
4440 "This package provides a complete Babel replacement for users of LuaLaTeX
4441and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
4442 (license license:lppl1.3+)))
4443
84f8035a
RW
4444(define-public texlive-latex-supertabular
4445 (package
4446 (name "texlive-latex-supertabular")
4447 (version (number->string %texlive-revision))
4448 (source (origin
4449 (method svn-fetch)
4450 (uri (texlive-ref "latex" "supertabular"))
4451 (file-name (string-append name "-" version "-checkout"))
4452 (sha256
4453 (base32
4454 "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
4455 (build-system texlive-build-system)
4456 (arguments '(#:tex-directory "latex/supertabular"))
b8d8806b 4457 (home-page "https://www.ctan.org/pkg/supertabular")
84f8035a
RW
4458 (synopsis "Multi-page tables package")
4459 (description
4460 "This package was a predecessor of @code{longtable}; the newer
4461package (designed on quite different principles) is easier to use and more
4462flexible, in many cases, but supertabular retains its usefulness in a few
4463situations where longtable has problems.")
4464 (license license:lppl1.3+)))
4465
a0aa6b59
RW
4466(define-public texlive-tex-texinfo
4467 (package
4468 (name "texlive-tex-texinfo")
4469 (version (number->string %texlive-revision))
4470 (source (origin
4471 (method svn-fetch)
4472 (uri (svn-reference
4473 (url (string-append "svn://www.tug.org/texlive/tags/"
4474 %texlive-tag "/Master/texmf-dist/"
4475 "/tex/texinfo"))
4476 (revision %texlive-revision)))
88ae1921 4477 (file-name (string-append name "-" version "-checkout"))
a0aa6b59
RW
4478 (sha256
4479 (base32
d4d9a1ec 4480 "06cf821y1j7jdg93pb41ayigrfwgn0y49d7w1025zlijjxi6bvjp"))))
a0aa6b59
RW
4481 (build-system trivial-build-system)
4482 (arguments
4483 `(#:modules ((guix build utils))
4484 #:builder
4485 (begin
4486 (use-modules (guix build utils))
4487 (let ((target (string-append (assoc-ref %outputs "out")
4488 "/share/texmf-dist/tex/texinfo")))
4489 (mkdir-p target)
4490 (copy-recursively (assoc-ref %build-inputs "source") target)
4491 #t))))
b8d8806b 4492 (home-page "https://www.ctan.org/pkg/texinfo")
a0aa6b59
RW
4493 (synopsis "TeX macros to handle Texinfo files")
4494 (description
4495 "Texinfo is the preferred format for documentation in the GNU project;
4496the format may be used to produce online or printed output from a single
4497source. The Texinfo macros may be used to produce printable output using TeX;
4498other programs in the distribution offer online interactive use (with
4499hypertext linkages in some cases).")
4500 (license license:gpl3+)))
4501
0de81b09
RW
4502(define-public texlive-latex-upquote
4503 (package
4504 (name "texlive-latex-upquote")
4505 (version (number->string %texlive-revision))
4506 (source (origin
4507 (method svn-fetch)
4508 (uri (texlive-ref "latex" "upquote"))
4509 (file-name (string-append name "-" version "-checkout"))
4510 (sha256
4511 (base32
4512 "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
4513 (build-system texlive-build-system)
4514 (arguments '(#:tex-directory "latex/upquote"))
b8d8806b 4515 (home-page "https://www.ctan.org/pkg/upquote")
0de81b09
RW
4516 (synopsis "Show \"realistic\" quotes in verbatim")
4517 (description
4518 "Typewriter-style fonts are best for program listings, but Computer
4519Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
4520single quotes. Other fonts, and most programming languages, print @code{`} as
4521a grave accent and @code{'} upright; @code{'} is used both to open and to
4522close quoted strings. The package switches the typewriter font to Computer
4523Modern Typewriter in OT1 encoding, and modifies the behaviour of
4524@code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
4525in the expected way. It does this regardless of other fonts or encodings in
4526use, so long as the package is loaded after the other fonts were. The package
4527does not affect @code{\\tt}, @code{\\texttt}, etc.")
4528 (license license:lppl1.2+)))
4529
bda61541
RW
4530(define-public texlive-latex-anysize
4531 (package
4532 (name "texlive-latex-anysize")
4533 (version (number->string %texlive-revision))
4534 (source (origin
4535 (method svn-fetch)
4536 (uri (svn-reference
4537 (url (string-append "svn://www.tug.org/texlive/tags/"
4538 %texlive-tag "/Master/texmf-dist/"
4539 "/tex/latex/anysize"))
4540 (revision %texlive-revision)))
de4eb4d1 4541 (file-name (string-append name "-" version "-checkout"))
bda61541
RW
4542 (sha256
4543 (base32
4544 "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
4545 (build-system trivial-build-system)
4546 (arguments
4547 `(#:modules ((guix build utils))
4548 #:builder
4549 (begin
4550 (use-modules (guix build utils))
4551 (let ((target (string-append (assoc-ref %outputs "out")
4552 "/share/texmf-dist/tex/latex/anysize")))
4553 (mkdir-p target)
4554 (copy-recursively (assoc-ref %build-inputs "source") target)
4555 #t))))
b8d8806b 4556 (home-page "https://www.ctan.org/pkg/anysize")
bda61541
RW
4557 (synopsis "Simple package to set up document margins")
4558 (description
4559 "This is a simple package to set up document margins. This package is
4560considered obsolete; alternatives are the @code{typearea} package from the
4561@code{koma-script} bundle, or the @code{geometry} package.")
4562 (license license:public-domain)))
4563
1d3be84e
RW
4564(define-public texlive-latex-appendix
4565 (package
4566 (name "texlive-latex-appendix")
4567 (version (number->string %texlive-revision))
4568 (source (origin
4569 (method svn-fetch)
4570 (uri (texlive-ref "latex" "appendix"))
72d5adf4 4571 (file-name (string-append name "-" version "-checkout"))
1d3be84e
RW
4572 (sha256
4573 (base32
4574 "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
4575 (build-system texlive-build-system)
4576 (arguments '(#:tex-directory "latex/appendix"))
b8d8806b 4577 (home-page "https://www.ctan.org/pkg/appendix")
1d3be84e
RW
4578 (synopsis "Extra control of appendices")
4579 (description
4580 "The appendix package provides various ways of formatting the titles of
4581appendices. Also (sub)appendices environments are provided that can be used,
4582for example, for per chapter/section appendices. An @code{appendices}
4583environment is provided which can be used instead of the @code{\\appendix}
4584command.")
4585 (license license:lppl)))
4586
b92ac281
RW
4587(define-public texlive-latex-changebar
4588 (package
4589 (name "texlive-latex-changebar")
4590 (version (number->string %texlive-revision))
4591 (source (origin
4592 (method svn-fetch)
4593 (uri (texlive-ref "latex" "changebar"))
af8aa105 4594 (file-name (string-append name "-" version "-checkout"))
b92ac281
RW
4595 (sha256
4596 (base32
d4d9a1ec 4597 "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch"))))
b92ac281
RW
4598 (build-system texlive-build-system)
4599 (arguments '(#:tex-directory "latex/changebar"))
b8d8806b 4600 (home-page "https://www.ctan.org/pkg/changebar")
b92ac281
RW
4601 (synopsis "Generate changebars in LaTeX documents")
4602 (description
4603 "Identify areas of text to be marked with changebars with the
4604@code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
36a4366d
EF
4605package uses @code{drivers} to place the bars; the available drivers can work
4606with @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
b92ac281
RW
4607drivers, and VTeX and pdfTeX.")
4608 (license license:lppl)))
4609
fedd77c1
RW
4610(define-public texlive-latex-cmap
4611 (package
4612 (name "texlive-latex-cmap")
4613 (version (number->string %texlive-revision))
4614 (source (origin
4615 (method svn-fetch)
4616 (uri (svn-reference
4617 (url (string-append "svn://www.tug.org/texlive/tags/"
4618 %texlive-tag "/Master/texmf-dist/"
4619 "/tex/latex/cmap"))
4620 (revision %texlive-revision)))
4621 (file-name (string-append name "-" version "-checkout"))
4622 (sha256
4623 (base32
4624 "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
4625 (build-system trivial-build-system)
4626 (arguments
4627 `(#:modules ((guix build utils))
4628 #:builder
4629 (begin
4630 (use-modules (guix build utils))
4631 (let ((target (string-append (assoc-ref %outputs "out")
4632 "/share/texmf-dist/tex/latex/cmap")))
4633 (mkdir-p target)
4634 (copy-recursively (assoc-ref %build-inputs "source") target)
4635 #t))))
4636 (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
4637Master/texmf-dist/tex/latex/cmap/")
4638 (synopsis "CMap support for PDF files")
4639 (description
4640 "This package embeds CMap tables into PDF files to make search and
4641copy-and-paste functions work properly.")
4642 (license license:lppl)))
4643
e003a5f0
RW
4644(define-public texlive-latex-colortbl
4645 (package
4646 (name "texlive-latex-colortbl")
4647 (version (number->string %texlive-revision))
4648 (source (origin
4649 (method svn-fetch)
4650 (uri (texlive-ref "latex" "colortbl"))
4439c1de 4651 (file-name (string-append name "-" version "-checkout"))
e003a5f0
RW
4652 (sha256
4653 (base32
4654 "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
4655 (build-system texlive-build-system)
4656 (arguments '(#:tex-directory "latex/colortbl"))
b8d8806b 4657 (home-page "https://www.ctan.org/pkg/colortbl")
e003a5f0
RW
4658 (synopsis "Add colour to LaTeX tables")
4659 (description
4660 "This package allows rows, columns, and even individual cells in LaTeX
4661tables to be coloured.")
4662 (license license:lppl)))
4663
36ce05ff
RW
4664(define-public texlive-latex-fancybox
4665 (package
4666 (name "texlive-latex-fancybox")
4667 (version (number->string %texlive-revision))
4668 (source (origin
4669 (method svn-fetch)
4670 (uri (svn-reference
4671 (url (string-append "svn://www.tug.org/texlive/tags/"
4672 %texlive-tag "/Master/texmf-dist/"
4673 "/tex/latex/fancybox"))
4674 (revision %texlive-revision)))
62ee46b9 4675 (file-name (string-append name "-" version "-checkout"))
36ce05ff
RW
4676 (sha256
4677 (base32
4678 "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
4679 (build-system trivial-build-system)
4680 (arguments
4681 `(#:modules ((guix build utils))
4682 #:builder
4683 (begin
4684 (use-modules (guix build utils))
4685 (let ((target (string-append (assoc-ref %outputs "out")
4686 "/share/texmf-dist/tex/latex/fancybox")))
4687 (mkdir-p target)
4688 (copy-recursively (assoc-ref %build-inputs "source") target)
4689 #t))))
b8d8806b 4690 (home-page "https://www.ctan.org/pkg/fancybox")
36ce05ff
RW
4691 (synopsis "Variants of \\fbox and other games with boxes")
4692 (description
4693 "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
4694@code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
4695using box macros and flexible verbatim macros. You can box mathematics,
4696floats, center, flushleft, and flushright, lists, and pages.")
4697 (license license:lppl1.2+)))
4698
20282111
RW
4699(define-public texlive-latex-fancyhdr
4700 (package
4701 (name "texlive-latex-fancyhdr")
4702 (version (number->string %texlive-revision))
4703 (source (origin
4704 (method svn-fetch)
4705 (uri (svn-reference
4706 (url (string-append "svn://www.tug.org/texlive/tags/"
4707 %texlive-tag "/Master/texmf-dist/"
4708 "/tex/latex/fancyhdr"))
4709 (revision %texlive-revision)))
e89d5cf4 4710 (file-name (string-append name "-" version "-checkout"))
20282111
RW
4711 (sha256
4712 (base32
d4d9a1ec 4713 "1xsnzx7vgdfh9zh2m7bjz6bgdpxsgb1kyc19p50vhs34x5nbgsnr"))))
20282111
RW
4714 (build-system trivial-build-system)
4715 (arguments
4716 `(#:modules ((guix build utils))
4717 #:builder
4718 (begin
4719 (use-modules (guix build utils))
4720 (let ((target (string-append (assoc-ref %outputs "out")
4721 "/share/texmf-dist/tex/latex/fancyhdr")))
4722 (mkdir-p target)
4723 (copy-recursively (assoc-ref %build-inputs "source") target)
4724 #t))))
b8d8806b 4725 (home-page "https://www.ctan.org/pkg/fancyhdr")
20282111
RW
4726 (synopsis "Extensive control of page headers and footers in LaTeX2e")
4727 (description
4728 "The package provides extensive facilities, both for constructing headers
4729and footers, and for controlling their use (for example, at times when LaTeX
4730would automatically change the heading style in use).")
4731 (license license:lppl)))
4732
df2b9bb4
RW
4733(define-public texlive-latex-float
4734 (package
4735 (name "texlive-latex-float")
4736 (version (number->string %texlive-revision))
4737 (source (origin
4738 (method svn-fetch)
4739 (uri (texlive-ref "latex" "float"))
4fd0a591 4740 (file-name (string-append name "-" version "-checkout"))
df2b9bb4
RW
4741 (sha256
4742 (base32
4743 "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
4744 (build-system texlive-build-system)
4745 (arguments '(#:tex-directory "latex/float"))
b8d8806b 4746 (home-page "https://www.ctan.org/pkg/float")
df2b9bb4
RW
4747 (synopsis "Improved interface for floating objects")
4748 (description
4749 "This package improves the interface for defining floating objects such
4750as figures and tables. It introduces the boxed float, the ruled float and the
4751plaintop float. You can define your own floats and improve the behaviour of
4752the old ones. The package also provides the @code{H} float modifier option of
4753the obsolete @code{here} package. You can select this as automatic default
4754with @code{\\floatplacement{figure}{H}}.")
4755 (license license:lppl)))
4756
3921bc7c
RW
4757(define-public texlive-latex-footmisc
4758 (package
4759 (name "texlive-latex-footmisc")
4760 (version (number->string %texlive-revision))
4761 (source (origin
4762 (method svn-fetch)
4763 (uri (texlive-ref "latex" "footmisc"))
dae1d9e4 4764 (file-name (string-append name "-" version "-checkout"))
3921bc7c
RW
4765 (sha256
4766 (base32
4767 "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
4768 (build-system texlive-build-system)
4769 (arguments '(#:tex-directory "latex/footmisc"))
b8d8806b 4770 (home-page "https://www.ctan.org/pkg/footmisc")
3921bc7c
RW
4771 (synopsis "Range of footnote options")
4772 (description
4773 "This is a collection of ways to change the typesetting of footnotes.
4774The package provides means of changing the layout of the footnotes themselves,
4775a way to number footnotes per page, to make footnotes disappear in a
4776\"moving\" argument, and to deal with multiple references to footnotes from
4777the same place. The package also has a range of techniques for labelling
4778footnotes with symbols rather than numbers.")
4779 (license license:lppl1.3+)))
4780
b2bc1daf
RW
4781(define-public texlive-latex-listings
4782 (package
4783 (name "texlive-latex-listings")
4784 (version (number->string %texlive-revision))
4785 (source (origin
4786 (method svn-fetch)
4787 (uri (texlive-ref "latex" "listings"))
aeb135e3 4788 (file-name (string-append name "-" version "-checkout"))
b2bc1daf
RW
4789 (sha256
4790 (base32
4791 "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
4792 (build-system texlive-build-system)
4793 (arguments
4794 '(#:tex-directory "latex/listings"
4795 #:build-targets '("listings.ins")))
b8d8806b 4796 (home-page "https://www.ctan.org/pkg/listings")
b2bc1daf
RW
4797 (synopsis "Typeset source code listings using LaTeX")
4798 (description
4799 "The package enables the user to typeset programs (programming code)
4800within LaTeX; the source code is read directly by TeX---no front-end processor
4801is needed. Keywords, comments and strings can be typeset using different
4802styles. Support for @code{hyperref} is provided.")
4803 (license license:lppl1.3+)))
4804
02fd07b3
RW
4805(define-public texlive-latex-jknapltx
4806 (package
4807 (name "texlive-latex-jknapltx")
4808 (version (number->string %texlive-revision))
4809 (source (origin
4810 (method svn-fetch)
4811 (uri (svn-reference
4812 (url (string-append "svn://www.tug.org/texlive/tags/"
4813 %texlive-tag "/Master/texmf-dist/"
4814 "/tex/latex/jknapltx"))
4815 (revision %texlive-revision)))
aa499191 4816 (file-name (string-append name "-" version "-checkout"))
02fd07b3
RW
4817 (sha256
4818 (base32
4819 "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
4820 (build-system trivial-build-system)
4821 (arguments
4822 `(#:modules ((guix build utils))
4823 #:builder
4824 (begin
4825 (use-modules (guix build utils))
4826 (let ((target (string-append (assoc-ref %outputs "out")
4827 "/share/texmf-dist/tex/latex/jknapltx")))
4828 (mkdir-p target)
4829 (copy-recursively (assoc-ref %build-inputs "source") target)
4830 #t))))
b8d8806b 4831 (home-page "https://www.ctan.org/pkg/jknappen")
02fd07b3
RW
4832 (synopsis "Miscellaneous packages by Joerg Knappen")
4833 (description
4834 "This package provides miscellaneous macros by Joerg Knappen, including:
4835represent counters in greek; Maxwell's non-commutative division;
4836@code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
4837@code{inputenc} definition files that allow verbatim input in the respective
4838ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
4839extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
4840transliterate semitic languages; patches to make (La)TeX formulae embeddable
4841in SGML; use maths minus in text as appropriate; simple Young tableaux.")
4842 (license license:gpl2)))
4843
83c830d1
RW
4844(define-public texlive-fonts-ec
4845 (package
4846 (name "texlive-fonts-ec")
4847 (version (number->string %texlive-revision))
4848 (source (origin
4849 (method svn-fetch)
4850 (uri (svn-reference
4851 (url (string-append "svn://www.tug.org/texlive/tags/"
4852 %texlive-tag "/Master/texmf-dist/"
4853 "/fonts/source/jknappen/ec/"))
4854 (revision %texlive-revision)))
ca816eb3 4855 (file-name (string-append name "-" version "-checkout"))
83c830d1
RW
4856 (sha256
4857 (base32
4858 "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
4859 (build-system gnu-build-system)
4860 (arguments
4861 `(#:modules ((guix build gnu-build-system)
4862 (guix build utils)
4863 (srfi srfi-1)
4864 (srfi srfi-26))
4865 #:tests? #f ; no tests
4866 #:phases
4867 (modify-phases %standard-phases
4868 (delete 'configure)
4869 (replace 'build
4870 (lambda* (#:key inputs #:allow-other-keys)
4871 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
4872 ;; Tell mf where to find mf.base
4873 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
4874 ;; Tell mf where to look for source files
4875 (setenv "MFINPUTS"
4876 (string-append (getcwd) ":"
4877 mf "/share/texmf-dist/metafont/base:"
4878 (assoc-ref inputs "texlive-fonts-cm")
4879 "/share/texmf-dist/fonts/source/public/cm")))
4880 (mkdir "build")
c4fc86e4
MW
4881 (for-each (lambda (font)
4882 (format #t "building font ~a\n" font)
4883 (invoke "mf" "-progname=mf"
4884 "-output-directory=build"
4885 (string-append "\\"
4886 "mode:=ljfour; "
4887 "mag:=1; "
4888 "batchmode; "
4889 "input " (basename font ".mf"))))
4890 (find-files "." "[0-9]+\\.mf$"))
4891 #t))
83c830d1
RW
4892 (replace 'install
4893 (lambda* (#:key outputs #:allow-other-keys)
4894 (let* ((out (assoc-ref outputs "out"))
4895 (tfm (string-append
4896 out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
4897 (mf (string-append
4898 out "/share/texmf-dist/fonts/source/jknappen/ec")))
4899 (for-each (cut install-file <> tfm)
4900 (find-files "build" "\\.*"))
4901 (for-each (cut install-file <> mf)
4902 (find-files "." "\\.mf"))
4903 #t))))))
4904 (native-inputs
4905 `(("texlive-bin" ,texlive-bin)
4906 ("texlive-metafont-base" ,texlive-metafont-base)
4907 ("texlive-fonts-cm" ,texlive-fonts-cm)))
b8d8806b 4908 (home-page "https://www.ctan.org/pkg/ec")
83c830d1
RW
4909 (synopsis "Computer modern fonts in T1 and TS1 encodings")
4910 (description
4911 "The EC fonts are European Computer Modern Fonts, supporting the complete
4912LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
4913These fonts are intended to be stable with no changes being made to the tfm
4914files. The set also contains a Text Companion Symbol font, called @code{tc},
4915featuring many useful characters needed in text typesetting, for example
4916oldstyle digits, currency symbols (including the newly created Euro symbol),
4917the permille sign, copyright, trade mark and servicemark as well as a copyleft
4918sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
4919EC fonts supersede the preliminary version released as the DC fonts. The
4920fonts are available in (traced) Adobe Type 1 format, as part of the
4921@code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
4922set, Latin Modern, is not actually a direct development of the EC set, and
4923differs from the EC in a number of particulars.")
4924 (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
4925texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
4926
5e9bf5a2
RW
4927(define-public texlive-fonts-adobe-times
4928 (package
4929 (name "texlive-fonts-adobe-times")
4930 (version (number->string %texlive-revision))
4931 (source (origin
4932 (method svn-fetch)
4933 (uri (svn-reference
4934 (url (string-append "svn://www.tug.org/texlive/tags/"
4935 %texlive-tag "/Master/texmf-dist/"
4936 "/fonts/type1/urw/times/"))
4937 (revision %texlive-revision)))
4938 (file-name (string-append name "-" version "-checkout"))
4939 (sha256
4940 (base32
4941 "15vzyr7favkv1mj00qxr03s89kw78nd066fh69by93272g8p5sgd"))))
4942 (build-system trivial-build-system)
4943 (arguments
4944 `(#:modules ((guix build utils)
4945 (ice-9 match))
4946 #:builder
4947 (begin
4948 (use-modules (guix build utils)
4949 (ice-9 match))
4950 (let ((root (string-append (assoc-ref %outputs "out")
4951 "/share/texmf-dist/"))
4952 (pkgs '(("source" . "fonts/type1/urw/times")
4953
4954 ("times-afm" . "fonts/afm/adobe/times")
4955 ("times-tfm" . "fonts/tfm/adobe/times")
4956 ("times-vf" . "fonts/vf/adobe/times")
4957
4958 ("urw-afm" . "fonts/afm/urw/times")
4959 ("urw35vf-tfm" . "fonts/tfm/urw35vf/times")
4960 ("urw35vf-vf" . "fonts/vf/urw35vf/times")
4961
4962 ("times-tex" . "tex/latex/times")
4963 ("dvips" . "dvips/times")
4964 ("fonts-map" . "fonts/map/dvips/times"))))
4965 (for-each (match-lambda
4966 ((pkg . dir)
4967 (let ((target (string-append root dir)))
4968 (mkdir-p target)
4969 (copy-recursively (assoc-ref %build-inputs pkg)
4970 target))))
4971 pkgs)
4972 #t))))
4973 (native-inputs
4974 `(("times-afm"
4975 ,(origin
4976 (method svn-fetch)
4977 (uri (svn-reference
4978 (url (string-append "svn://www.tug.org/texlive/tags/"
4979 %texlive-tag "/Master/texmf-dist/"
4980 "/fonts/afm/adobe/times"))
4981 (revision %texlive-revision)))
4982 (file-name (string-append name "-afm-" version "-checkout"))
4983 (sha256
4984 (base32
4985 "1k7h6vihfc6ri2lq9ggnq2g4zq3qcgq1vd0hr486g9cqrdpys6cy"))))
4986 ("times-tfm"
4987 ,(origin
4988 (method svn-fetch)
4989 (uri (svn-reference
4990 (url (string-append "svn://www.tug.org/texlive/tags/"
4991 %texlive-tag "/Master/texmf-dist/"
4992 "/fonts/tfm/adobe/times"))
4993 (revision %texlive-revision)))
4994 (file-name (string-append name "-tfm-" version "-checkout"))
4995 (sha256
4996 (base32
4997 "1hbgkjnf5xyganbznwpwszvr3iyk4bzb0ys4hd8ybawp60paadrr"))))
4998 ("times-vf"
4999 ,(origin
5000 (method svn-fetch)
5001 (uri (svn-reference
5002 (url (string-append "svn://www.tug.org/texlive/tags/"
5003 %texlive-tag "/Master/texmf-dist/"
5004 "/fonts/vf/adobe/times"))
5005 (revision %texlive-revision)))
5006 (file-name (string-append name "-vf-" version "-checkout"))
5007 (sha256
5008 (base32
5009 "18rfspnwdw9r81dy18lb4w96d09b6c4g7y80azwylalkhwdf2lfp"))))
5010 ("urw-afm"
5011 ,(origin
5012 (method svn-fetch)
5013 (uri (svn-reference
5014 (url (string-append "svn://www.tug.org/texlive/tags/"
5015 %texlive-tag "/Master/texmf-dist/"
5016 "/fonts/afm/urw/times"))
5017 (revision %texlive-revision)))
5018 (file-name (string-append name "-urw-afm-" version "-checkout"))
5019 (sha256
5020 (base32
5021 "0g0xpsyn6634g0b4rpd420v7i4gkz3zr12vcy2b8csbcscjvwri5"))))
5022 ("urw35vf-tfm"
5023 ,(origin
5024 (method svn-fetch)
5025 (uri (svn-reference
5026 (url (string-append "svn://www.tug.org/texlive/tags/"
5027 %texlive-tag "/Master/texmf-dist/"
5028 "/fonts/tfm/urw35vf/times"))
5029 (revision %texlive-revision)))
5030 (file-name (string-append name "-urw35vf-tfm-" version "-checkout"))
5031 (sha256
5032 (base32
5033 "0a4idlvpaqd0ypqgy1xw0rpx8q23bvssg8xq757zzn3zikj0w7pr"))))
5034 ("urw35vf-vf"
5035 ,(origin
5036 (method svn-fetch)
5037 (uri (svn-reference
5038 (url (string-append "svn://www.tug.org/texlive/tags/"
5039 %texlive-tag "/Master/texmf-dist/"
5040 "/fonts/vf/urw35vf/times"))
5041 (revision %texlive-revision)))
5042 (file-name (string-append name "-urw35vf-vf-" version "-checkout"))
5043 (sha256
5044 (base32
5045 "05mppwxd4c5x0yw50gca726f0ylc1rk8jf0jjkrriixq6rnw03di"))))
5046 ("times-tex"
5047 ,(origin
5048 (method svn-fetch)
5049 (uri (svn-reference
5050 (url (string-append "svn://www.tug.org/texlive/tags/"
5051 %texlive-tag "/Master/texmf-dist/"
5052 "/tex/latex/times"))
5053 (revision %texlive-revision)))
5054 (file-name (string-append name "-tex-" version "-checkout"))
5055 (sha256
5056 (base32
5057 "1gmd0x7c3vkvfzgmrsp4866rcdbyimfk3bjr91zaadc41r1i8xrp"))))
5058 ("dvips"
5059 ,(origin
5060 (method svn-fetch)
5061 (uri (svn-reference
5062 (url (string-append "svn://www.tug.org/texlive/tags/"
5063 %texlive-tag "/Master/texmf-dist/"
5064 "/dvips/times/"))
5065 (revision %texlive-revision)))
5066 (file-name (string-append name "-dvips-" version "-checkout"))
5067 (sha256
5068 (base32
5069 "1fvqpgqi7bp2q76nf5kmlhsdijxw65arqfy3ax3djwih3yg12mp0"))))
5070 ("fonts-map"
5071 ,(origin
5072 (method svn-fetch)
5073 (uri (svn-reference
5074 (url (string-append "svn://www.tug.org/texlive/tags/"
5075 %texlive-tag "/Master/texmf-dist/"
5076 "/fonts/map/dvips/times/"))
5077 (revision %texlive-revision)))
5078 (file-name (string-append name "-fonts-map-" version "-checkout"))
5079 (sha256
5080 (base32
5081 "12f00gzs2zgllkm59qdhw2xxj7lvg3p256232f1l275z3pldfqqi"))))))
5082 (home-page "https://ctan.org/pkg/urw-base35")
5083 (synopsis "URW Base 35 font pack for LaTeX")
5084 (description
5085 "This package provides a drop-in replacements for the Times font from
5086Adobe's basic set.")
5087 ;; No license version specified.
5088 (license license:gpl3+)))
5089
f2d1f060
RW
5090(define-public texlive-fonts-adobe-palatino
5091 (package
5092 (name "texlive-fonts-adobe-palatino")
5093 (version (number->string %texlive-revision))
5094 (source (origin
5095 (method svn-fetch)
5096 (uri (svn-reference
5097 (url (string-append "svn://www.tug.org/texlive/tags/"
5098 %texlive-tag "/Master/texmf-dist/"
5099 "/fonts/type1/urw/palatino/"))
5100 (revision %texlive-revision)))
5101 (file-name (string-append name "-" version "-checkout"))
5102 (sha256
5103 (base32
5104 "18dw5260c6fy7acxaqwrg3hw04kg63ijq4lkn56q5pa2g6nyylrp"))))
5105 (build-system trivial-build-system)
5106 (arguments
5107 `(#:modules ((guix build utils)
5108 (ice-9 match))
5109 #:builder
5110 (begin
5111 (use-modules (guix build utils)
5112 (ice-9 match))
5113 (let ((root (string-append (assoc-ref %outputs "out")
5114 "/share/texmf-dist/"))
5115 (pkgs '(("source" . "fonts/type1/urw/palatino")
5116
5117 ("palatino-afm" . "fonts/afm/adobe/palatino")
5118 ("palatino-tfm" . "fonts/tfm/adobe/palatino")
5119 ("palatino-vf" . "fonts/vf/adobe/palatino")
5120
5121 ("urw-afm" . "fonts/afm/urw/palatino")
5122 ("urw35vf-tfm" . "fonts/tfm/urw35vf/palatino")
5123 ("urw35vf-vf" . "fonts/vf/urw35vf/palatino")
5124
5125 ("palatino-tex" . "tex/latex/palatino")
5126 ("dvips" . "dvips/palatino")
5127 ("fonts-map" . "fonts/map/dvips/palatino"))))
5128 (for-each (match-lambda
5129 ((pkg . dir)
5130 (let ((target (string-append root dir)))
5131 (mkdir-p target)
5132 (copy-recursively (assoc-ref %build-inputs pkg)
5133 target))))
5134 pkgs)
5135 #t))))
5136 (native-inputs
5137 `(("palatino-afm"
5138 ,(origin
5139 (method svn-fetch)
5140 (uri (svn-reference
5141 (url (string-append "svn://www.tug.org/texlive/tags/"
5142 %texlive-tag "/Master/texmf-dist/"
5143 "/fonts/afm/adobe/palatino"))
5144 (revision %texlive-revision)))
5145 (file-name (string-append name "-afm-" version "-checkout"))
5146 (sha256
5147 (base32
5148 "0pxizay730cx7rb9y5bqq9dn1zxx3arc33rmdsn7l29pc51flmmi"))))
5149 ("palatino-tfm"
5150 ,(origin
5151 (method svn-fetch)
5152 (uri (svn-reference
5153 (url (string-append "svn://www.tug.org/texlive/tags/"
5154 %texlive-tag "/Master/texmf-dist/"
5155 "/fonts/tfm/adobe/palatino"))
5156 (revision %texlive-revision)))
5157 (file-name (string-append name "-tfm-" version "-checkout"))
5158 (sha256
5159 (base32
5160 "1w1vm0sk9kpsy14yhyf1v1q3c6b97cgbba74g578bcwjlh810mg0"))))
5161 ("palatino-vf"
5162 ,(origin
5163 (method svn-fetch)
5164 (uri (svn-reference
5165 (url (string-append "svn://www.tug.org/texlive/tags/"
5166 %texlive-tag "/Master/texmf-dist/"
5167 "/fonts/vf/adobe/palatino"))
5168 (revision %texlive-revision)))
5169 (file-name (string-append name "-vf-" version "-checkout"))
5170 (sha256
5171 (base32
5172 "1maqfis8hpybcn9lmm8r2b1g56620lfpsncg0742c3kkjd6dh97h"))))
5173 ("urw-afm"
5174 ,(origin
5175 (method svn-fetch)
5176 (uri (svn-reference
5177 (url (string-append "svn://www.tug.org/texlive/tags/"
5178 %texlive-tag "/Master/texmf-dist/"
5179 "/fonts/afm/urw/palatino"))
5180 (revision %texlive-revision)))
5181 (file-name (string-append name "-urw-afm-" version "-checkout"))
5182 (sha256
5183 (base32
5184 "0gk0xwy1fs2si5kb1j3dzgm52c8sagv32gd9dmw88m7sgh5qkd87"))))
5185 ("urw35vf-tfm"
5186 ,(origin
5187 (method svn-fetch)
5188 (uri (svn-reference
5189 (url (string-append "svn://www.tug.org/texlive/tags/"
5190 %texlive-tag "/Master/texmf-dist/"
5191 "/fonts/tfm/urw35vf/palatino"))
5192 (revision %texlive-revision)))
5193 (file-name (string-append name "-urw35vf-tfm-" version "-checkout"))
5194 (sha256
5195 (base32
5196 "19aq3xwfg7vkf1qzjdxgcvcdqwpvpavq3l25y64xni72qx0kmppz"))))
5197 ("urw35vf-vf"
5198 ,(origin
5199 (method svn-fetch)
5200 (uri (svn-reference
5201 (url (string-append "svn://www.tug.org/texlive/tags/"
5202 %texlive-tag "/Master/texmf-dist/"
5203 "/fonts/vf/urw35vf/palatino"))
5204 (revision %texlive-revision)))
5205 (file-name (string-append name "-urw35vf-vf-" version "-checkout"))
5206 (sha256
5207 (base32
5208 "1lkn4p6zimrs0ah6mxsang4bicp8j7xzl016529a3f168an7mdmj"))))
5209 ("palatino-tex"
5210 ,(origin
5211 (method svn-fetch)
5212 (uri (svn-reference
5213 (url (string-append "svn://www.tug.org/texlive/tags/"
5214 %texlive-tag "/Master/texmf-dist/"
5215 "/tex/latex/palatino"))
5216 (revision %texlive-revision)))
5217 (file-name (string-append name "-tex-" version "-checkout"))
5218 (sha256
5219 (base32
5220 "0ng9w7i0p1nb51amla32jj86vx6p84m6qc7asam3g4x8w5jf7s27"))))
5221 ("dvips"
5222 ,(origin
5223 (method svn-fetch)
5224 (uri (svn-reference
5225 (url (string-append "svn://www.tug.org/texlive/tags/"
5226 %texlive-tag "/Master/texmf-dist/"
5227 "/dvips/palatino/"))
5228 (revision %texlive-revision)))
5229 (file-name (string-append name "-dvips-" version "-checkout"))
5230 (sha256
5231 (base32
5232 "1pdbkfmhx4kk3brh5lg6fyl9ad2kbjmkrhgcx84klnlhq01mfdhb"))))
5233 ("fonts-map"
5234 ,(origin
5235 (method svn-fetch)
5236 (uri (svn-reference
5237 (url (string-append "svn://www.tug.org/texlive/tags/"
5238 %texlive-tag "/Master/texmf-dist/"
5239 "/fonts/map/dvips/palatino/"))
5240 (revision %texlive-revision)))
5241 (file-name (string-append name "-fonts-map-" version "-checkout"))
5242 (sha256
5243 (base32
5244 "0rg13hyp652hp3gnrj5pbyb84zkqmyi1qnm8c6spcyaq8pm06l0d"))))))
5245 (home-page "https://ctan.org/pkg/urw-base35")
5246 (synopsis "URW Base 35 font pack for LaTeX")
5247 (description
5248 "This package provides a drop-in replacements for the Palatino font from
5249Adobe's basic set.")
5250 ;; No license version specified.
5251 (license license:gpl3+)))
5252
4628315b
RW
5253(define-public texlive-fonts-adobe-zapfding
5254 (package
5255 (name "texlive-fonts-adobe-zapfding")
5256 (version (number->string %texlive-revision))
5257 (source (origin
5258 (method svn-fetch)
5259 (uri (svn-reference
5260 (url (string-append "svn://www.tug.org/texlive/tags/"
5261 %texlive-tag "/Master/texmf-dist/"
5262 "/fonts/type1/urw/zapfding/"))
5263 (revision %texlive-revision)))
5264 (file-name (string-append name "-" version "-checkout"))
5265 (sha256
5266 (base32
5267 "1sp3jblg3khp0yj121blvhph6ib09919kyrsk5x2lg258yypqyis"))))
5268 (build-system trivial-build-system)
5269 (arguments
5270 `(#:modules ((guix build utils)
5271 (ice-9 match))
5272 #:builder
5273 (begin
5274 (use-modules (guix build utils)
5275 (ice-9 match))
5276 (let ((root (string-append (assoc-ref %outputs "out")
5277 "/share/texmf-dist/"))
5278 (pkgs '(("source" . "fonts/type1/urw/zapfding")
5279 ("zapf-afm" . "fonts/afm/adobe/zapfding")
5280 ("zapf-tfm" . "fonts/tfm/adobe/zapfding")
5281 ("urw-afm" . "fonts/afm/urw/zapfding")
5282 ("urw35vf-tfm" . "fonts/tfm/urw35vf/zapfding")
5283
5284 ("zapf-tex" . "tex/latex/zapfding")
5285 ("dvips" . "dvips/zapfding")
5286 ("fonts-map" . "fonts/map/dvips/zapfding"))))
5287 (for-each (match-lambda
5288 ((pkg . dir)
5289 (let ((target (string-append root dir)))
5290 (mkdir-p target)
5291 (copy-recursively (assoc-ref %build-inputs pkg)
5292 target))))
5293 pkgs)
5294 #t))))
5295 (native-inputs
5296 `(("zapf-afm"
5297 ,(origin
5298 (method svn-fetch)
5299 (uri (svn-reference
5300 (url (string-append "svn://www.tug.org/texlive/tags/"
5301 %texlive-tag "/Master/texmf-dist/"
5302 "/fonts/afm/adobe/zapfding"))
5303 (revision %texlive-revision)))
5304 (file-name (string-append name "-afm-" version "-checkout"))
5305 (sha256
5306 (base32
5307 "0qvl4w1bfcpiakkd8rvkism46qnvzj9w7x4r8z9m0y7mspbkblyr"))))
5308 ("zapf-tfm"
5309 ,(origin
5310 (method svn-fetch)
5311 (uri (svn-reference
5312 (url (string-append "svn://www.tug.org/texlive/tags/"
5313 %texlive-tag "/Master/texmf-dist/"
5314 "/fonts/tfm/adobe/zapfding"))
5315 (revision %texlive-revision)))
5316 (file-name (string-append name "-tfm-" version "-checkout"))
5317 (sha256
5318 (base32
5319 "1i8mh9xsl8l4cgsg3nl4ha9q6m55j122riclaxsvkc5ka83432qm"))))
5320 ("urw-afm"
5321 ,(origin
5322 (method svn-fetch)
5323 (uri (svn-reference
5324 (url (string-append "svn://www.tug.org/texlive/tags/"
5325 %texlive-tag "/Master/texmf-dist/"
5326 "/fonts/afm/urw/zapfding"))
5327 (revision %texlive-revision)))
5328 (file-name (string-append name "-urw-afm-" version "-checkout"))
5329 (sha256
5330 (base32
5331 "0m4qndqh7ji723ff82c5c1q8ziqvblbaip7vx05vnl15fqbsnfx1"))))
5332 ("urw35vf-tfm"
5333 ,(origin
5334 (method svn-fetch)
5335 (uri (svn-reference
5336 (url (string-append "svn://www.tug.org/texlive/tags/"
5337 %texlive-tag "/Master/texmf-dist/"
5338 "/fonts/tfm/urw35vf/zapfding"))
5339 (revision %texlive-revision)))
5340 (file-name (string-append name "-urw35vf-tfm-" version "-checkout"))
5341 (sha256
5342 (base32
5343 "167g2x6mpjfqh0w1fhjbw14qcx6ridrj2zm1bd8bi0l2d7phj28m"))))
5344 ("zapf-tex"
5345 ,(origin
5346 (method svn-fetch)
5347 (uri (svn-reference
5348 (url (string-append "svn://www.tug.org/texlive/tags/"
5349 %texlive-tag "/Master/texmf-dist/"
5350 "/tex/latex/zapfding"))
5351 (revision %texlive-revision)))
5352 (file-name (string-append name "-tex-" version "-checkout"))
5353 (sha256
5354 (base32
5355 "0hp7i8f6nbrg7irrwc8fd7n1hrzjysa84d6iyivwlc65v9p7lmd0"))))
5356 ("dvips"
5357 ,(origin
5358 (method svn-fetch)
5359 (uri (svn-reference
5360 (url (string-append "svn://www.tug.org/texlive/tags/"
5361 %texlive-tag "/Master/texmf-dist/"
5362 "/dvips/zapfding/"))
5363 (revision %texlive-revision)))
5364 (file-name (string-append name "-dvips-" version "-checkout"))
5365 (sha256
5366 (base32
5367 "1f18sc4qwxykd786zhn6szcrycqvpvfhlcim71aamxmwghakd7fa"))))
5368 ("fonts-map"
5369 ,(origin
5370 (method svn-fetch)
5371 (uri (svn-reference
5372 (url (string-append "svn://www.tug.org/texlive/tags/"
5373 %texlive-tag "/Master/texmf-dist/"
5374 "/fonts/map/dvips/zapfding/"))
5375 (revision %texlive-revision)))
5376 (file-name (string-append name "-fonts-map-" version "-checkout"))
5377 (sha256
5378 (base32
5379 "17kwxmdrgz2fb072hx57a3pidcrhbgayphx11zyld2hv9149pkyl"))))))
5380 (home-page "https://ctan.org/pkg/urw-base35")
5381 (synopsis "URW Base 35 font pack for LaTeX")
5382 (description
5383 "This package provides a drop-in replacements for the Zapfding font from
5384Adobe's basic set.")
5385 ;; No license version specified.
5386 (license license:gpl3+)))
5387
f45a5520
RW
5388(define-public texlive-fonts-rsfs
5389 (package
5390 (name "texlive-fonts-rsfs")
5391 (version (number->string %texlive-revision))
5392 (source (origin
5393 (method svn-fetch)
5394 (uri (svn-reference
5395 (url (string-append "svn://www.tug.org/texlive/tags/"
5396 %texlive-tag "/Master/texmf-dist/"
5397 "/fonts/source/public/rsfs/"))
5398 (revision %texlive-revision)))
e26de9c9 5399 (file-name (string-append name "-" version "-checkout"))
f45a5520
RW
5400 (sha256
5401 (base32
5402 "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
5403 (build-system gnu-build-system)
5404 (arguments
5405 `(#:modules ((guix build gnu-build-system)
5406 (guix build utils)
5407 (srfi srfi-1)
5408 (srfi srfi-26))
5409 #:tests? #f ; no tests
5410 #:phases
5411 (modify-phases %standard-phases
5412 (delete 'configure)
5413 (replace 'build
5414 (lambda* (#:key inputs #:allow-other-keys)
5415 (let ((mf (assoc-ref inputs "texlive-metafont-base")))
5416 ;; Tell mf where to find mf.base
5417 (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
5418 ;; Tell mf where to look for source files
5419 (setenv "MFINPUTS"
5420 (string-append (getcwd) ":"
5421 mf "/share/texmf-dist/metafont/base:"
5422 (assoc-ref inputs "texlive-fonts-cm")
5423 "/share/texmf-dist/fonts/source/public/cm")))
5424 (mkdir "build")
d8ac82c2
MW
5425 (for-each (lambda (font)
5426 (format #t "building font ~a\n" font)
5427 (invoke "mf" "-progname=mf"
5428 "-output-directory=build"
5429 (string-append "\\"
5430 "mode:=ljfour; "
5431 "mag:=1; "
5432 "batchmode; "
5433 "input " (basename font ".mf"))))
5434 (find-files "." "[0-9]+\\.mf$"))
5435 #t))
f45a5520
RW
5436 (replace 'install
5437 (lambda* (#:key outputs #:allow-other-keys)
5438 (let* ((out (assoc-ref outputs "out"))
5439 (tfm (string-append
5440 out "/share/texmf-dist/fonts/tfm/public/rsfs"))
5441 (mf (string-append
5442 out "/share/texmf-dist/fonts/source/public/rsfs")))
5443 (for-each (cut install-file <> tfm)
5444 (find-files "build" "\\.*"))
5445 (for-each (cut install-file <> mf)
5446 (find-files "." "\\.mf"))
5447 #t))))))
5448 (native-inputs
5449 `(("texlive-bin" ,texlive-bin)
5450 ("texlive-metafont-base" ,texlive-metafont-base)
5451 ("texlive-fonts-cm" ,texlive-fonts-cm)))
b8d8806b 5452 (home-page "https://www.ctan.org/pkg/rsfs")
f45a5520
RW
5453 (synopsis "Ralph Smith's Formal Script font")
5454 (description
5455 "The fonts provide uppercase formal script letters for use as symbols in
5456scientific and mathematical typesetting (in contrast to the informal script
5457fonts such as that used for the calligraphic symbols in the TeX maths symbol
5458font). The fonts are provided as Metafont source, and as derived Adobe Type 1
5459format. LaTeX support, for using these fonts in mathematics, is available via
5460one of the packages @code{calrsfs} and @code{mathrsfs}.")
5461 (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
5462
1562763c
RW
5463(define-public texlive-latex-eso-pic
5464 (package
5465 (name "texlive-latex-eso-pic")
5466 (version (number->string %texlive-revision))
5467 (source (origin
5468 (method svn-fetch)
5469 (uri (texlive-ref "latex" "eso-pic"))
2678a63b 5470 (file-name (string-append name "-" version "-checkout"))
1562763c
RW
5471 (sha256
5472 (base32
5473 "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
5474 (build-system texlive-build-system)
5475 (arguments '(#:tex-directory "latex/eso-pic"))
b8d8806b 5476 (home-page "https://www.ctan.org/pkg/eso-pic")
1562763c
RW
5477 (synopsis "Add picture commands (or backgrounds) to every page")
5478 (description
5479 "The package adds one or more user commands to LaTeX's @code{shipout}
5480routine, which may be used to place the output at fixed positions. The
5481@code{grid} option may be used to find the correct places.")
5482 (license license:lppl1.3+)))
5483
ae3779d5
RW
5484(define-public texlive-latex-eepic
5485 (package
5486 (name "texlive-latex-eepic")
5487 (version (number->string %texlive-revision))
5488 (source (origin
5489 (method svn-fetch)
5490 (uri (svn-reference
5491 (url (string-append "svn://www.tug.org/texlive/tags/"
5492 %texlive-tag "/Master/texmf-dist/"
5493 "/tex/latex/eepic"))
5494 (revision %texlive-revision)))
84d63643 5495 (file-name (string-append name "-" version "-checkout"))
ae3779d5
RW
5496 (sha256
5497 (base32
5498 "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
5499 (build-system trivial-build-system)
5500 (arguments
5501 `(#:modules ((guix build utils))
5502 #:builder
5503 (begin
5504 (use-modules (guix build utils))
5505 (let ((target (string-append (assoc-ref %outputs "out")
5506 "/share/texmf-dist/tex/latex/eepic")))
5507 (mkdir-p target)
5508 (copy-recursively (assoc-ref %build-inputs "source") target)
5509 #t))))
b8d8806b 5510 (home-page "https://www.ctan.org/pkg/eepic")
ae3779d5
RW
5511 (synopsis "Extensions to epic and the LaTeX drawing tools")
5512 (description
5513 "Extensions to @code{epic} and the LaTeX picture drawing environment,
5514include the drawing of lines at any slope, the drawing of circles in any
5515radii, and the drawing of dotted and dashed lines much faster with much less
5516TeX memory, and providing several new commands for drawing ellipses, arcs,
5517splines, and filled circles and ellipses. The package uses @code{tpic}
5518@code{\\special} commands.")
5519 (license license:public-domain)))
5520
245f1f31
RW
5521(define-public texlive-latex-enumitem
5522 (package
5523 (name "texlive-latex-enumitem")
5524 (version (number->string %texlive-revision))
5525 (source (origin
5526 (method svn-fetch)
5527 (uri (svn-reference
5528 (url (string-append "svn://www.tug.org/texlive/tags/"
5529 %texlive-tag "/Master/texmf-dist/"
5530 "/tex/latex/enumitem"))
5531 (revision %texlive-revision)))
5532 (file-name (string-append name "-" version "-checkout"))
5533 (sha256
5534 (base32
5535 "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
5536 (build-system trivial-build-system)
5537 (arguments
5538 `(#:modules ((guix build utils))
5539 #:builder
5540 (begin
5541 (use-modules (guix build utils))
5542 (let ((target (string-append (assoc-ref %outputs "out")
5543 "/share/texmf-dist/tex/latex/enumitem")))
5544 (mkdir-p target)
5545 (copy-recursively (assoc-ref %build-inputs "source") target)
5546 #t))))
b8d8806b 5547 (home-page "https://www.ctan.org/pkg/enumitem")
245f1f31
RW
5548 (synopsis "Customize basic list environments")
5549 (description
5550 "This package is intended to ease customizing the three basic list
5551environments: @code{enumerate}, @code{itemize} and @code{description}. It
5552extends their syntax to allow an optional argument where a set of parameters
5553in the form @code{key=value} are available, for example:
5554@code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
5555 (license license:lppl1.3+)))
5556
ecffeeb5
RW
5557(define-public texlive-latex-multirow
5558 (package
5559 (name "texlive-latex-multirow")
5560 (version (number->string %texlive-revision))
5561 (source (origin
5562 (method svn-fetch)
5563 (uri (texlive-ref "latex" "multirow"))
6a919804 5564 (file-name (string-append name "-" version "-checkout"))
ecffeeb5
RW
5565 (sha256
5566 (base32
5567 "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
5568 (build-system texlive-build-system)
5569 (arguments '(#:tex-directory "latex/multirow"))
b8d8806b 5570 (home-page "https://www.ctan.org/pkg/multirow")
ecffeeb5
RW
5571 (synopsis "Create tabular cells spanning multiple rows")
5572 (description
5573 "The package provides tools for creating tabular cells spanning multiple
5574rows. It has a lot of flexibility, including an option for specifying an
5575entry at the \"natural\" width of its text.")
5576 (license license:lppl1.3+)))
5577
da38b235
RW
5578(define-public texlive-latex-overpic
5579 (package
5580 (name "texlive-latex-overpic")
5581 (version (number->string %texlive-revision))
5582 (source (origin
5583 (method svn-fetch)
5584 (uri (svn-reference
5585 (url (string-append "svn://www.tug.org/texlive/tags/"
5586 %texlive-tag "/Master/texmf-dist/"
5587 "/tex/latex/overpic"))
5588 (revision %texlive-revision)))
b2aef721 5589 (file-name (string-append name "-" version "-checkout"))
da38b235
RW
5590 (sha256
5591 (base32
d4d9a1ec 5592 "1rpx4ibjncj5416rg19v0xjbj3z9avhfdfn2gzp8r8sz9vz25c6g"))))
da38b235
RW
5593 (build-system trivial-build-system)
5594 (arguments
5595 `(#:modules ((guix build utils))
5596 #:builder
5597 (begin
5598 (use-modules (guix build utils))
5599 (let ((target (string-append (assoc-ref %outputs "out")
5600 "/share/texmf-dist/tex/latex/overpic")))
5601 (mkdir-p target)
5602 (copy-recursively (assoc-ref %build-inputs "source") target)
5603 #t))))
b8d8806b 5604 (home-page "https://www.ctan.org/pkg/overpic")
da38b235
RW
5605 (synopsis "Combine LaTeX commands over included graphics")
5606 (description
5607 "The @code{overpic} environment is a cross between the LaTeX
5608@code{picture} environment and the @code{\\includegraphics} command of
5609@code{graphicx}. The resulting picture environment has the same dimensions as
5610the included graphic. LaTeX commands can be placed on the graphic at defined
5611positions; a grid for orientation is available.")
5612 (license license:lppl1.0+)))
5613
e0d307d1
RW
5614(define-public texlive-latex-parskip
5615 (package
5616 (name "texlive-latex-parskip")
5617 (version (number->string %texlive-revision))
5618 (source (origin
5619 (method svn-fetch)
5620 (uri (svn-reference
5621 (url (string-append "svn://www.tug.org/texlive/tags/"
5622 %texlive-tag "/Master/texmf-dist/"
5623 "/tex/latex/parskip"))
5624 (revision %texlive-revision)))
5625 (file-name (string-append name "-" version "-checkout"))
5626 (sha256
5627 (base32
5628 "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
5629 (build-system trivial-build-system)
5630 (arguments
5631 `(#:modules ((guix build utils))
5632 #:builder
5633 (begin
5634 (use-modules (guix build utils))
5635 (let ((target (string-append (assoc-ref %outputs "out")
5636 "/share/texmf-dist/tex/latex/parskip")))
5637 (mkdir-p target)
5638 (copy-recursively (assoc-ref %build-inputs "source") target)
5639 #t))))
b8d8806b 5640 (home-page "https://www.ctan.org/pkg/parskip")
e0d307d1
RW
5641 (synopsis "Layout with zero \\parindent, non-zero \\parskip")
5642 (description
5643 "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
5644that is untidy; this package (though it is no substitute for a properly
5645designed class) helps alleviate this untidiness.")
5646 (license license:lppl)))
5647
adc02c70
RW
5648(define-public texlive-latex-pdfpages
5649 (package
5650 (name "texlive-latex-pdfpages")
5651 (version (number->string %texlive-revision))
5652 (source (origin
5653 (method svn-fetch)
5654 (uri (texlive-ref "latex" "pdfpages"))
7372ce18 5655 (file-name (string-append name "-" version "-checkout"))
adc02c70
RW
5656 (sha256
5657 (base32
d4d9a1ec 5658 "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd"))))
adc02c70
RW
5659 (build-system texlive-build-system)
5660 (arguments '(#:tex-directory "latex/pdfpages"))
b8d8806b 5661 (home-page "https://www.ctan.org/pkg/pdfpages")
adc02c70
RW
5662 (synopsis "Include PDF documents in LaTeX")
5663 (description
5664 "This package simplifies the inclusion of external multi-page PDF
5665documents in LaTeX documents. Pages may be freely selected and it is possible
5666to put several logical pages onto each sheet of paper. Furthermore a lot of
5667hypertext features like hyperlinks and article threads are provided. The
5668package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
5669use this package to insert PostScript files, in addition to PDF files.")
5670 (license license:lppl1.3+)))
5671
d8fef6ea
RW
5672(define-public texlive-fonts-stmaryrd
5673 (package
5674 (name "texlive-fonts-stmaryrd")
5675 (version (number->string %texlive-revision))
5676 (source (origin
5677 (method svn-fetch)
5678 (uri (texlive-ref "fonts" "stmaryrd"))
19835372 5679 (file-name (string-append name "-" version "-checkout"))
d8fef6ea
RW
5680 (sha256
5681 (base32
5682 "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
5683 (build-system texlive-build-system)
5684 (arguments
5685 '(#:tex-directory "latex/stmaryrd"
5686 #:phases
5687 (modify-phases %standard-phases
5688 (add-after 'configure 'patch-ins
5689 (lambda _
5690 (substitute* "stmaryrd.ins"
5691 (("^%% LaTeX2e.*") "\\input docstrip\n")
5692 (("fontdef\\}\\}" line)
5693 (string-append line "\n\\endbatchfile")))
5694 #t)))))
b8d8806b 5695 (home-page "https://www.ctan.org/pkg/stmaryrd")
d8fef6ea
RW
5696 (synopsis "St Mary Road symbols for theoretical computer science")
5697 (description
5698 "The fonts were originally distributed as Metafont sources only, but
5699Adobe Type 1 versions are also now available. Macro support is provided for
5700use under LaTeX; the package supports the @code{only} option (provided by the
5701@code{somedefs} package) to restrict what is loaded, for those who don't need
5702the whole font.")
5703 (license license:lppl)))
5704
2db3a034
RW
5705(define-public texlive-latex-subfigure
5706 (package
5707 (name "texlive-latex-subfigure")
5708 (version (number->string %texlive-revision))
5709 (source (origin
5710 (method svn-fetch)
5711 (uri (texlive-ref "latex" "subfigure"))
e1834df6 5712 (file-name (string-append name "-" version "-checkout"))
2db3a034
RW
5713 (sha256
5714 (base32
5715 "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
5716 (build-system texlive-build-system)
5717 (arguments '(#:tex-directory "latex/subfigure"))
b8d8806b 5718 (home-page "https://www.ctan.org/pkg/subfigure")
2db3a034
RW
5719 (synopsis "Figures divided into subfigures")
5720 (description
5721 "This (deprecated) package provides support for the manipulation and
5722reference of small or \"sub\" figures and tables within a single figure or
5723table environment. It is convenient to use this package when your subfigures
5724are to be separately captioned, referenced, or are to be included in the
5725List-of-Figures. A new @code{\\subfigure} command is introduced which can be
5726used inside a figure environment for each subfigure. An optional first
5727argument is used as the caption for that subfigure. The package is now
5728considered obsolete: it was superseded by @code{subfig}, but users may find
5729the more recent @code{subcaption} package more satisfactory.")
5730 (license license:lppl)))
5731
c73d0e9d
RW
5732(define-public texlive-latex-tabulary
5733 (package
5734 (name "texlive-latex-tabulary")
5735 (version (number->string %texlive-revision))
5736 (source (origin
5737 (method svn-fetch)
5738 (uri (texlive-ref "latex" "tabulary"))
5739 (file-name (string-append name "-" version "-checkout"))
5740 (sha256
5741 (base32
5742 "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
5743 (build-system texlive-build-system)
5744 (arguments '(#:tex-directory "latex/tabulary"))
b8d8806b 5745 (home-page "https://www.ctan.org/pkg/tabulary")
c73d0e9d
RW
5746 (synopsis "Tabular with variable width columns balanced")
5747 (description
5748 "The package defines a @code{tabular*}-like environment, @code{tabulary},
5749taking a \"total width\" argument as well as the column specifications. The
5750environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
5751variable width columns (@code{\\raggedright}, @code{\\centering},
5752@code{\\raggedleft}, and normally justified). In contrast to
5753@code{tabularx}'s @code{X} columns, the width of each column is weighted
5754according to the natural width of the widest cell in the column.")
5755 (license license:lppl)))
5756
e3088297
RW
5757(define-public texlive-latex-threeparttable
5758 (package
5759 (name "texlive-latex-threeparttable")
5760 (version (number->string %texlive-revision))
5761 (source (origin
5762 (method svn-fetch)
5763 (uri (svn-reference
5764 (url (string-append "svn://www.tug.org/texlive/tags/"
5765 %texlive-tag "/Master/texmf-dist/"
5766 "/tex/latex/threeparttable"))
5767 (revision %texlive-revision)))
d57e5d41 5768 (file-name (string-append name "-" version "-checkout"))
e3088297
RW
5769 (sha256
5770 (base32
5771 "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
5772 (build-system trivial-build-system)
5773 (arguments
5774 `(#:modules ((guix build utils))
5775 #:builder
5776 (begin
5777 (use-modules (guix build utils))
5778 (let ((target (string-append (assoc-ref %outputs "out")
5779 "/share/texmf-dist/tex/latex/threeparttable")))
5780 (mkdir-p target)
5781 (copy-recursively (assoc-ref %build-inputs "source") target)
5782 #t))))
b8d8806b 5783 (home-page "https://www.ctan.org/pkg/threeparttable")
e3088297
RW
5784 (synopsis "Tables with captions and notes all the same width")
5785 (description
5786 "This package facilitates tables with titles (captions) and notes. The
5787title and notes are given a width equal to the body of the table (a
5788@code{tabular} environment). By itself, a @code{threeparttable} does not
5789float, but you can put it in a @code{table} or a @code{table*} or some other
5790environment.")
5791 (license (license:fsf-free "file://threeparttable.sty"))))
5792
1b10d494
RW
5793(define-public texlive-fonts-txfonts
5794 (package
5795 (name "texlive-fonts-txfonts")
5796 (version (number->string %texlive-revision))
5797 (source (origin
5798 (method svn-fetch)
5799 (uri (svn-reference
5800 (url (string-append "svn://www.tug.org/texlive/tags/"
5801 %texlive-tag "/Master/texmf-dist/"
5802 "/tex/latex/txfonts"))
5803 (revision %texlive-revision)))
5804 (file-name (string-append name "-" version "-checkout"))
5805 (sha256
5806 (base32
5807 "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
5808 (build-system trivial-build-system)
5809 (arguments
5810 `(#:modules ((guix build utils)
5811 (ice-9 match))
5812 #:builder
5813 (begin
5814 (use-modules (guix build utils)
5815 (ice-9 match))
5816 (let ((root (string-append (assoc-ref %outputs "out")
5817 "/share/texmf-dist/"))
5818 (pkgs '(("source" . "tex/latex/txfonts")
5819 ("txfonts-vf" . "fonts/tfm/public/txfonts")
5820 ("txfonts-afm" . "fonts/afm/public/txfonts")
5821 ("txfonts-tfm" . "fonts/tfm/public/txfonts")
5822 ("txfonts-type1" . "fonts/type1/public/txfonts")
5823 ("txfonts-enc" . "fonts/enc/dvips/txfonts")
5824 ("txfonts-map" . "fonts/map/dvips/txfonts"))))
5825 (for-each (match-lambda
5826 ((pkg . dir)
5827 (let ((target (string-append root dir)))
5828 (mkdir-p target)
5829 (copy-recursively (assoc-ref %build-inputs pkg)
5830 target))))
5831 pkgs)
5832 #t))))
5833 (native-inputs
5834 `(("txfonts-tfm"
5835 ,(origin
5836 (method svn-fetch)
5837 (uri (svn-reference
5838 (url (string-append "svn://www.tug.org/texlive/tags/"
5839 %texlive-tag "/Master/texmf-dist/"
5840 "/fonts/tfm/public/txfonts"))
5841 (revision %texlive-revision)))
5842 (file-name (string-append name "-tfm-" version "-checkout"))
5843 (sha256
5844 (base32
5845 "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
5846 ("txfonts-vf"
5847 ,(origin
5848 (method svn-fetch)
5849 (uri (svn-reference
5850 (url (string-append "svn://www.tug.org/texlive/tags/"
5851 %texlive-tag "/Master/texmf-dist/"
5852 "/fonts/vf/public/txfonts"))
5853 (revision %texlive-revision)))
5854 (file-name (string-append name "-vf-" version "-checkout"))
5855 (sha256
5856 (base32
5857 "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
5858 ("txfonts-afm"
5859 ,(origin
5860 (method svn-fetch)
5861 (uri (svn-reference
5862 (url (string-append "svn://www.tug.org/texlive/tags/"
5863 %texlive-tag "/Master/texmf-dist/"
5864 "/fonts/afm/public/txfonts"))
5865 (revision %texlive-revision)))
5866 (file-name (string-append name "-afm-" version "-checkout"))
5867 (sha256
5868 (base32
5869 "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
5870 ("txfonts-type1"
5871 ,(origin
5872 (method svn-fetch)
5873 (uri (svn-reference
5874 (url (string-append "svn://www.tug.org/texlive/tags/"
5875 %texlive-tag "/Master/texmf-dist/"
5876 "/fonts/type1/public/txfonts"))
5877 (revision %texlive-revision)))
5878 (file-name (string-append name "-type1-" version "-checkout"))
5879 (sha256
5880 (base32
5881 "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
5882 ("txfonts-map"
5883 ,(origin
5884 (method svn-fetch)
5885 (uri (svn-reference
5886 (url (string-append "svn://www.tug.org/texlive/tags/"
5887 %texlive-tag "/Master/texmf-dist/"
5888 "/fonts/map/dvips/txfonts"))
5889 (revision %texlive-revision)))
5890 (file-name (string-append name "-map-" version "-checkout"))
5891 (sha256
5892 (base32
5893 "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
5894 ("txfonts-enc"
5895 ,(origin
5896 (method svn-fetch)
5897 (uri (svn-reference
5898 (url (string-append "svn://www.tug.org/texlive/tags/"
5899 %texlive-tag "/Master/texmf-dist/"
5900 "/fonts/enc/dvips/txfonts"))
5901 (revision %texlive-revision)))
5902 (file-name (string-append name "-enc-" version "-checkout"))
5903 (sha256
5904 (base32
5905 "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
b8d8806b 5906 (home-page "https://www.ctan.org/pkg/threeparttable")
1b10d494
RW
5907 (synopsis "Times-like fonts in support of mathematics")
5908 (description
5909 "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
5910NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
5911and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
5912providing all the symbols of the Computer Modern and AMS fonts, including all
5913the Greek capital letters from CMR; and additional maths fonts of various
5914other symbols.
5915
5916The set is complemented by a sans-serif set of text fonts, based on
5917Helvetica/NimbusSanL, and a monospace set.
5918
5919All the fonts are in Type 1 format (AFM and PFB files), and are supported by
5920TeX metrics (VF and TFM files) and macros for use with LaTeX.")
5921 ;; Any version of the GPL with font exception.
5922 (license license:gpl3+)))
5923
f9e0fcb2
RW
5924(define-public texlive-fonts-iwona
5925 (package
5926 (name "texlive-fonts-iwona")
5927 (version "0.995b")
5928 (source (origin
5929 (method url-fetch)
5930 (uri (string-append "http://jmn.pl/pliki/Iwona-tex-"
5931 (string-map (lambda (c)
5932 (if (char=? c #\.)
5933 #\_ c))
5934 version)
5935 ".zip"))
5936 (sha256
5937 (base32
5938 "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x"))))
5939 (build-system trivial-build-system)
5940 (arguments
5941 `(#:modules ((guix build utils))
5942 #:builder
5943 (begin
5944 (use-modules (guix build utils))
5945 (let ((target (string-append (assoc-ref %outputs "out")
5946 "/share/texmf-dist/"))
5947 (unzip (string-append (assoc-ref %build-inputs "unzip")
5948 "/bin/unzip")))
e3cfef22 5949 (invoke unzip (assoc-ref %build-inputs "source"))
f9e0fcb2 5950 (mkdir-p target)
e3cfef22
MW
5951 (copy-recursively "iwona" target)
5952 #t))))
f9e0fcb2
RW
5953 (native-inputs
5954 `(("unzip" ,unzip)))
5955 (home-page "http://jmn.pl/en/kurier-i-iwona/")
5956 (synopsis "Sans-serif typeface for TeX")
5957 (description "Iwona is a two-element sans-serif typeface. It was created
5958as an alternative version of the Kurier typeface, which was designed in 1975
5959for a diploma in typeface design at the Warsaw Academy of Fine Arts under the
5960supervision of Roman Tomaszewski. Kurier was designed for linotype
5961typesetting of newspapers and similar periodicals. The Iwona fonts are an
5962alternative version of the Kurier fonts. The difference lies in the absence
5963of ink traps which typify the Kurier font.")
5964 (license license:gfl1.0)))
5965
acc620d6
RW
5966(define-public texlive-latex-titlesec
5967 (package
5968 (name "texlive-latex-titlesec")
5969 (version (number->string %texlive-revision))
5970 (source (origin
5971 (method svn-fetch)
5972 (uri (svn-reference
5973 (url (string-append "svn://www.tug.org/texlive/tags/"
5974 %texlive-tag "/Master/texmf-dist/"
5975 "/tex/latex/titlesec"))
5976 (revision %texlive-revision)))
0475e35c 5977 (file-name (string-append name "-" version "-checkout"))
acc620d6
RW
5978 (sha256
5979 (base32
5980 "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
5981 (build-system trivial-build-system)
5982 (arguments
5983 `(#:modules ((guix build utils))
5984 #:builder
5985 (begin
5986 (use-modules (guix build utils))
5987 (let ((target (string-append (assoc-ref %outputs "out")
5988 "/share/texmf-dist/tex/latex/titlesec")))
5989 (mkdir-p target)
5990 (copy-recursively (assoc-ref %build-inputs "source") target)
5991 #t))))
b8d8806b 5992 (home-page "https://www.ctan.org/pkg/titlesec")
acc620d6
RW
5993 (synopsis "Select alternative section titles")
5994 (description
5995 "This package provides an interface to sectioning commands for selection
5996from various title styles, e.g. for marginal titles and to change the font of
5997all headings with a single command, also providing simple one-step page
5998styles. It also includes a package to change the page styles when there are
5999floats in a page. You may assign headers/footers to individual floats, too.")
6000 (license license:lppl)))
6001
274e3d4f
RW
6002(define-public texlive-latex-type1cm
6003 (package
6004 (name "texlive-latex-type1cm")
6005 (version (number->string %texlive-revision))
6006 (source (origin
6007 (method svn-fetch)
6008 (uri (texlive-ref "latex" "type1cm"))
6009 (file-name (string-append name "-" version "-checkout"))
6010 (sha256
6011 (base32
6012 "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
6013 (build-system texlive-build-system)
6014 (arguments '(#:tex-directory "latex/type1cm"))
b8d8806b 6015 (home-page "https://www.ctan.org/pkg/type1cm")
274e3d4f
RW
6016 (synopsis "Arbitrary size font selection in LaTeX")
6017 (description
6018 "LaTeX, by default, restricts the sizes at which you can use its default
6019computer modern fonts, to a fixed set of discrete sizes (effectively, a set
6020specified by Knuth). The @code{type1cm} package removes this restriction;
6021this is particularly useful when using scalable versions of the CM
6022fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
6023PCTeX, etc.). In fact, since modern distributions will automatically generate
6024any bitmap font you might need, @code{type1cm} has wider application than just
36a17f05 6025those using scalable versions of the fonts. Note that the LaTeX distribution
274e3d4f
RW
6026now contains a package @code{fix-cm},f which performs the task of
6027@code{type1cm}, as well as doing the same job for T1- and TS1-encoded
6028@code{ec} fonts.")
6029 (license license:lppl)))
6030
406af0d6
RW
6031(define-public texlive-latex-lh
6032 (package
6033 (name "texlive-latex-lh")
6034 (version (number->string %texlive-revision))
6035 (source (origin
6036 (method svn-fetch)
6037 (uri (texlive-ref "latex" "lh"))
de20fd6a 6038 (file-name (string-append name "-" version "-checkout"))
406af0d6
RW
6039 (sha256
6040 (base32
6041 "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
6042 (build-system texlive-build-system)
6043 (arguments '(#:tex-directory "latex/lh"))
b8d8806b 6044 (home-page "https://www.ctan.org/pkg/lh")
406af0d6
RW
6045 (synopsis "Cyrillic fonts that support LaTeX standard encodings")
6046 (description
6047 "The LH fonts address the problem of the wide variety of alphabets that
6048are written with Cyrillic-style characters. The fonts are the original basis
6049of the set of T2* and X2 encodings that are now used when LaTeX users need to
6050write in Cyrillic languages. Macro support in standard LaTeX encodings is
6051offered through the latex-cyrillic and t2 bundles, and the package itself
6052offers support for other (more traditional) encodings. The fonts, in the
6053standard T2* and X2 encodings are available in Adobe Type 1 format, in the
6054CM-Super family of fonts. The package also offers its own LaTeX support for
6055OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
6056 (license license:lppl)))
6057
44436def
RW
6058(define-public texlive-metapost
6059 (package
6060 (name "texlive-metapost")
6061 (version (number->string %texlive-revision))
6062 (source (origin
6063 (method svn-fetch)
6064 (uri (svn-reference
6065 (url (string-append "svn://www.tug.org/texlive/tags/"
6066 %texlive-tag "/Master/texmf-dist/"
6067 "/metapost"))
6068 (revision %texlive-revision)))
b4bb2750 6069 (file-name (string-append name "-" version "-checkout"))
44436def
RW
6070 (sha256
6071 (base32
d4d9a1ec 6072 "0sf18pc6chgy26p9bxxn44xcqhzjrfb53jxjr2y7l3jb6xllhblq"))))
44436def
RW
6073 (build-system trivial-build-system)
6074 (arguments
6075 `(#:modules ((guix build utils))
6076 #:builder
6077 (begin
6078 (use-modules (guix build utils))
6079 (let ((target (string-append (assoc-ref %outputs "out")
6080 "/share/texmf-dist/metapost")))
6081 (mkdir-p target)
6082 (copy-recursively (assoc-ref %build-inputs "source") target)
6083 #t))))
b8d8806b 6084 (home-page "https://www.ctan.org/pkg/metapost")
44436def
RW
6085 (synopsis "Create scalable illustrations")
6086 (description
6087 "MetaPost uses a language based on that of Metafont to produce precise
6088technical illustrations. Its output is scalable PostScript or SVG, rather
6089than the bitmaps Metafont creates.")
6090 (license license:lppl)))
6091
9ff7161a
LC
6092(define-public texlive-latex-acmart
6093 (package
6094 (name "texlive-latex-acmart")
ff281acc 6095 (version "1.60")
9ff7161a
LC
6096 (source (origin
6097 (method svn-fetch)
6098 (uri (texlive-ref "latex" "acmart"))
6099 (sha256
6100 (base32
ff281acc 6101 "0n62cs8dhcbn29y9ij1nnyigzr76yhk36kyahhqkkmvbafbys9s7"))
9ff7161a
LC
6102 (file-name (string-append name "-" version "-checkout"))))
6103 (build-system texlive-build-system)
6104 (arguments '(#:tex-directory "latex/acmart"))
b8d8806b 6105 (home-page "https://www.ctan.org/pkg/acmart")
9ff7161a
LC
6106 (synopsis "Class for typesetting publications of ACM")
6107 (description
6108 "This package provides a class for typesetting publications of the
6109Association for Computing Machinery (ACM).")
6110 (license license:lppl1.3+)))
6111
3966ebbb
RW
6112(define-public texlive-latex-varwidth
6113 (package
6114 (name "texlive-latex-varwidth")
6115 (version (number->string %texlive-revision))
6116 (source (origin
6117 (method svn-fetch)
6118 (uri (svn-reference
6119 (url (string-append "svn://www.tug.org/texlive/tags/"
6120 %texlive-tag "/Master/texmf-dist/"
6121 "/tex/latex/varwidth"))
6122 (revision %texlive-revision)))
6123 (file-name (string-append name "-" version "-checkout"))
6124 (sha256
6125 (base32
6126 "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
6127 (build-system trivial-build-system)
6128 (arguments
6129 `(#:modules ((guix build utils))
6130 #:builder
6131 (begin
6132 (use-modules (guix build utils))
6133 (let ((target (string-append (assoc-ref %outputs "out")
6134 "/share/texmf-dist/tex/latex/varwidth")))
6135 (mkdir-p target)
6136 (copy-recursively (assoc-ref %build-inputs "source") target)
6137 #t))))
b8d8806b 6138 (home-page "https://www.ctan.org/pkg/varwidth")
3966ebbb
RW
6139 (synopsis "Variable-width minipage")
6140 (description
6141 "The @code{varwidth} environment is superficially similar to
6142@code{minipage}, but the specified width is just a maximum value — the box may
6143get a narrower “natural” width.")
6144 (license license:lppl)))
6145
cd2c77f4
RW
6146(define-public texlive-latex-wasysym
6147 (package
6148 (name "texlive-latex-wasysym")
6149 (version (number->string %texlive-revision))
6150 (source (origin
6151 (method svn-fetch)
6152 (uri (texlive-ref "latex" "wasysym"))
2cc9c011 6153 (file-name (string-append name "-" version "-checkout"))
cd2c77f4
RW
6154 (sha256
6155 (base32
6156 "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
6157 (build-system texlive-build-system)
6158 (arguments '(#:tex-directory "latex/wasysym"))
b8d8806b 6159 (home-page "https://www.ctan.org/pkg/wasysym")
cd2c77f4
RW
6160 (synopsis "LaTeX support file to use the WASY2 fonts")
6161 (description
6162 "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
6163like male and female symbols and astronomical symbols, as well as the complete
6164lasy font set and other odds and ends. The wasysym package implements an easy
6165to use interface for these symbols.")
6166 (license license:lppl)))
6167
63ed869b
RW
6168(define-public texlive-latex-wrapfig
6169 (package
6170 (name "texlive-latex-wrapfig")
6171 (version (number->string %texlive-revision))
6172 (source (origin
6173 (method svn-fetch)
6174 (uri (svn-reference
6175 (url (string-append "svn://www.tug.org/texlive/tags/"
6176 %texlive-tag "/Master/texmf-dist/"
6177 "/tex/latex/wrapfig"))
6178 (revision %texlive-revision)))
6179 (file-name (string-append name "-" version "-checkout"))
6180 (sha256
6181 (base32
6182 "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
6183 (build-system trivial-build-system)
6184 (arguments
6185 `(#:modules ((guix build utils))
6186 #:builder
6187 (begin
6188 (use-modules (guix build utils))
6189 (let ((target (string-append (assoc-ref %outputs "out")
6190 "/share/texmf-dist/tex/latex/wrapfig")))
6191 (mkdir-p target)
6192 (copy-recursively (assoc-ref %build-inputs "source") target)
6193 #t))))
b8d8806b 6194 (home-page "https://www.ctan.org/pkg/wrapfig")
63ed869b
RW
6195 (synopsis "Produces figures which text can flow around")
6196 (description
6197 "This package allows figures or tables to have text wrapped around them.
6198It does not work in combination with list environments, but can be used in a
6199@code{parbox} or @code{minipage}, and in two-column format.")
6200 (license license:lppl)))
6201
c178ffca
RW
6202(define-public texlive-latex-ucs
6203 (package
6204 (name "texlive-latex-ucs")
6205 (version (number->string %texlive-revision))
6206 (source (origin
6207 (method svn-fetch)
6208 (uri (svn-reference
6209 (url (string-append "svn://www.tug.org/texlive/tags/"
6210 %texlive-tag "/Master/texmf-dist/"
6211 "/tex/latex/ucs"))
6212 (revision %texlive-revision)))
6213 (file-name (string-append name "-" version "-checkout"))
6214 (sha256
6215 (base32
6216 "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
6217 (build-system trivial-build-system)
6218 (arguments
6219 `(#:modules ((guix build utils))
6220 #:builder
6221 (begin
6222 (use-modules (guix build utils))
6223 (let ((target (string-append (assoc-ref %outputs "out")
6224 "/share/texmf-dist/tex/latex/ucs")))
6225 (mkdir-p target)
6226 (copy-recursively (assoc-ref %build-inputs "source") target)
6227 #t))))
b8d8806b 6228 (home-page "https://www.ctan.org/pkg/ucs")
c178ffca
RW
6229 (synopsis "Extended UTF-8 input encoding support for LaTeX")
6230 (description
6231 "The bundle provides the @code{ucs} package, and @code{utf8x.def},
6232together with a large number of support files. The @code{utf8x.def}
6233definition file for use with @code{inputenc} covers a wider range of Unicode
6234characters than does @code{utf8.def} in the LaTeX distribution. The package
6235provides facilities for efficient use of its large sets of Unicode characters.
6236Glyph production may be controlled by various options, which permits use of
6237non-ASCII characters when coding mathematical formulae. Note that the bundle
6238previously had an alias “unicode”; that alias has now been withdrawn, and no
6239package of that name now exists.")
6240 (license license:lppl1.3+)))
6241
86af0f2a
RW
6242(define-public texlive-latex-preview
6243 (package
6244 (name "texlive-latex-preview")
6245 (version (number->string %texlive-revision))
6246 (source (origin
6247 (method svn-fetch)
6248 (uri (texlive-ref "latex" "preview"))
6249 (file-name (string-append name "-" version "-checkout"))
6250 (sha256
6251 (base32
d4d9a1ec 6252 "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6"))))
86af0f2a
RW
6253 (build-system texlive-build-system)
6254 (arguments
6255 '(#:tex-directory "latex/preview"
6256 #:phases
6257 (modify-phases %standard-phases
6258 (add-after 'unpack 'remove-generated-file
6259 (lambda _
6260 (delete-file "preview.drv")
6261 #t)))))
b8d8806b 6262 (home-page "https://www.ctan.org/pkg/preview")
86af0f2a
RW
6263 (synopsis "Extract bits of a LaTeX source for output")
6264 (description
6265 "The main purpose of the preview package is the extraction of selected
6266elements from a LaTeX source, like formulas or graphics, into separate
6267pages of a DVI file. A flexible and convenient interface allows it to
6268specify what commands and constructs should be extracted. This works
6269with DVI files postprocessed by either Dvips and Ghostscript or
6270dvipng, but it also works when you are using PDFTeX for generating PDF
6271files.")
6272 (license license:gpl3+)))
6273
87b4360e
RW
6274(define-public texlive-latex-acronym
6275 (package
6276 (name "texlive-latex-acronym")
6277 (version (number->string %texlive-revision))
6278 (source (origin
6279 (method svn-fetch)
6280 (uri (texlive-ref "latex" "acronym"))
6281 (file-name (string-append name "-" version "-checkout"))
6282 (sha256
6283 (base32
6284 "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
6285 (build-system texlive-build-system)
6286 (arguments '(#:tex-directory "latex/acronym"))
b8d8806b 6287 (home-page "https://www.ctan.org/pkg/acronym")
87b4360e
RW
6288 (synopsis "Expand acronyms at least once")
6289 (description
6290 "This package ensures that all acronyms used in the text are spelled out
6291in full at least once. It also provides an environment to build a list of
6292acronyms used. The package is compatible with PDF bookmarks. The package
6293requires the suffix package, which in turn requires that it runs under
6294e-TeX.")
6295 (license license:lppl1.3+)))
6296
fedb80ee
RW
6297(define-public texlive-generic-pdftex
6298 (package
6299 (name "texlive-generic-pdftex")
6300 (version (number->string %texlive-revision))
6301 (source (origin
6302 (method svn-fetch)
6303 (uri (svn-reference
6304 (url (string-append "svn://www.tug.org/texlive/tags/"
6305 %texlive-tag "/Master/texmf-dist/"
6306 "/tex/generic/pdftex"))
6307 (revision %texlive-revision)))
66e765a0 6308 (file-name (string-append name "-" version "-checkout"))
fedb80ee
RW
6309 (sha256
6310 (base32
6311 "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
6312 (build-system trivial-build-system)
6313 (arguments
6314 `(#:modules ((guix build utils))
6315 #:builder
6316 (begin
6317 (use-modules (guix build utils))
6318 (let ((target (string-append (assoc-ref %outputs "out")
7002a45d
PN
6319 "/share/texmf-dist/tex/generic/pdftex"))
6320 (target-map (string-append (assoc-ref %outputs "out")
6321 "/share/texmf-dist/fonts/map/pdftex")))
fedb80ee
RW
6322 (mkdir-p target)
6323 (copy-recursively (assoc-ref %build-inputs "source") target)
7002a45d
PN
6324 (mkdir-p target-map)
6325 (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map)
fedb80ee 6326 #t))))
7002a45d
PN
6327 (native-inputs
6328 `(("pdftex-map"
6329 ,(origin
6330 (method svn-fetch)
6331 (uri (svn-reference
6332 (url (string-append "svn://www.tug.org/texlive/tags/"
6333 %texlive-tag "/Master/texmf-dist/"
6334 "/fonts/map/pdftex"))
6335 (revision %texlive-revision)))
6336 (file-name (string-append name "-map-" version "-checkout"))
6337 (sha256
6338 (base32
d4d9a1ec 6339 "18jvcm0vwpg6wwzijvnb92xx78la45kkh71k6l44425krp2vnwm0"))))))
b8d8806b 6340 (home-page "https://www.ctan.org/pkg/pdftex")
fedb80ee
RW
6341 (synopsis "TeX extension for direct creation of PDF")
6342 (description
6343 "This package provides an extension of TeX which can be configured to
6344directly generate PDF documents instead of DVI.")
6345 (license license:gpl2+)))
6346
8bcdc23f 6347(define texlive-texmf
0aa34e82
AE
6348 (package
6349 (name "texlive-texmf")
3e1ebaab 6350 (version "20180414")
0aa34e82
AE
6351 (source texlive-texmf-src)
6352 (build-system gnu-build-system)
6353 (inputs
6354 `(("texlive-bin" ,texlive-bin)
6355 ("lua" ,lua)
6356 ("perl" ,perl)
6357 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
6358 ("ruby" ,ruby)
6359 ("tcsh" ,tcsh)))
6360 (arguments
6361 `(#:modules ((guix build gnu-build-system)
6362 (guix build utils)
6363 (srfi srfi-26))
a348af40
LC
6364
6365 ;; This package takes 4 GiB, which we can't afford to distribute from
6366 ;; our servers.
6367 #:substitutable? #f
6368
0aa34e82 6369 #:phases
4a6635f3
AE
6370 (modify-phases (map (cut assq <> %standard-phases)
6371 '(set-paths unpack patch-source-shebangs))
977403fe
RW
6372 (add-after 'unpack 'unset-environment-variables
6373 (lambda _
6374 (unsetenv "TEXMF")
6375 (unsetenv "TEXMFCNF")
6376 #t))
4a6635f3
AE
6377 (add-after 'patch-source-shebangs 'install
6378 (lambda* (#:key outputs #:allow-other-keys)
6379 (let ((share (string-append (assoc-ref outputs "out") "/share")))
6380 (mkdir-p share)
286eedec 6381 (invoke "mv" "texmf-dist" share))))
4a6635f3
AE
6382 (add-after 'install 'texmf-config
6383 (lambda* (#:key inputs outputs #:allow-other-keys)
6384 (let* ((out (assoc-ref outputs "out"))
6385 (share (string-append out "/share"))
6386 (texmfroot (string-append share "/texmf-dist/web2c"))
6387 (texmfcnf (string-append texmfroot "/texmf.cnf"))
6388 (texlive-bin (assoc-ref inputs "texlive-bin"))
6389 (texbin (string-append texlive-bin "/bin"))
6390 (tlpkg (string-append texlive-bin "/share/tlpkg")))
6391 ;; Register SHARE as TEXMFROOT in texmf.cnf.
6392 (substitute* texmfcnf
6393 (("TEXMFROOT = \\$SELFAUTOPARENT")
2d634d9b
FB
6394 (string-append "TEXMFROOT = " share))
6395 (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
6396 "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
6397 (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
4a6635f3
AE
6398 ;; Register paths in texmfcnf.lua, needed for context.
6399 (substitute* (string-append texmfroot "/texmfcnf.lua")
6400 (("selfautodir:") out)
6401 (("selfautoparent:") (string-append share "/")))
6402 ;; Set path to TeXLive Perl modules
6403 (setenv "PERL5LIB"
6404 (string-append (getenv "PERL5LIB") ":" tlpkg))
6405 ;; Configure the texmf-dist tree; inspired from
6406 ;; http://slackbuilds.org/repository/13.37/office/texlive/
6407 (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
6408 (setenv "TEXMFCNF" texmfroot)
286eedec
MW
6409 (invoke "updmap-sys" "--nohash" "--syncwithtrees")
6410 (invoke "mktexlsr")
0371132c 6411 (invoke "fmtutil-sys" "--all")))))))
7a15a68f 6412 (properties `((max-silent-time . 9600))) ; don't time out while grafting
0aa34e82 6413 (synopsis "TeX Live, a package of the TeX typesetting system")
eb0119ef
AE
6414 (description
6415 "TeX Live provides a comprehensive TeX document production system.
6416It includes all the major TeX-related programs, macro packages, and fonts
6417that are free software, including support for many languages around the
0aa34e82
AE
6418world.
6419
6420This package contains the complete tree of texmf-dist data.")
132e14b4
EF
6421 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
6422 (home-page "https://www.tug.org/texlive/")))
0aa34e82
AE
6423
6424(define-public texlive
6425 (package
6426 (name "texlive")
3e1ebaab 6427 (version "20180414")
0aa34e82
AE
6428 (source #f)
6429 (build-system trivial-build-system)
6430 (inputs `(("bash" ,bash) ; for wrap-program
6431 ("texlive-bin" ,texlive-bin)
6432 ("texlive-texmf" ,texlive-texmf)))
2d634d9b
FB
6433 (native-search-paths
6434 (list (search-path-specification
6435 (variable "TEXMFLOCAL")
6436 (files '("share/texmf-local")))))
0aa34e82
AE
6437 (arguments
6438 `(#:modules ((guix build utils))
6439 #:builder
6440 ;; Build the union of texlive-bin and texlive-texmf, but take the
6441 ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
6442 (begin
6443 (use-modules (guix build utils))
6444 (let ((out (assoc-ref %outputs "out"))
6445 (bin (assoc-ref %build-inputs "texlive-bin"))
6446 (texmf (assoc-ref %build-inputs "texlive-texmf"))
6447 (bash (assoc-ref %build-inputs "bash")))
6448 (mkdir out)
6449 (with-directory-excursion out
6450 (for-each
6451 (lambda (name)
6452 (symlink (string-append bin "/" name) name))
6453 '("include" "lib"))
6454 (mkdir "bin")
6455 (with-directory-excursion "bin"
6456 (setenv "PATH" (string-append bash "/bin"))
6457 (for-each
6458 (lambda (name)
6459 (symlink name (basename name))
6460 (wrap-program
6461 (basename name)
6462 `("TEXMFCNF" =
6463 (,(string-append texmf "/share/texmf-dist/web2c")))))
6464 (find-files (string-append bin "/bin/") "")))
6465 (mkdir "share")
6466 (with-directory-excursion "share"
6467 (for-each
6468 (lambda (name)
6469 (symlink (string-append bin "/share/" name) name))
6470 '("info" "man" "tlpkg"))
6471 (for-each
6472 (lambda (name)
6473 (symlink (string-append texmf "/share/" name) name))
e3cfef22
MW
6474 '("texmf-dist" "texmf-var"))))
6475 #t))))
0aa34e82
AE
6476 (synopsis "TeX Live, a package of the TeX typesetting system")
6477 (description
6478 "TeX Live provides a comprehensive TeX document production system.
6479It includes all the major TeX-related programs, macro packages, and fonts
6480that are free software, including support for many languages around the
6481world.
6482
6483This package contains the complete TeX Live distribution.")
132e14b4
EF
6484 (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
6485 (home-page "https://www.tug.org/texlive/")))
231eae53 6486
ebcf74da
RW
6487(define-public perl-text-bibtex
6488 (package
6489 (name "perl-text-bibtex")
a2460e0f 6490 (version "0.85")
ebcf74da
RW
6491 (source
6492 (origin
6493 (method url-fetch)
6494 (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
6495 version ".tar.gz"))
6496 (sha256
6497 (base32
a2460e0f 6498 "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h"))))
ebcf74da
RW
6499 (build-system perl-build-system)
6500 (arguments
6501 `(#:phases
6502 (modify-phases %standard-phases
6503 (add-after 'unpack 'add-output-directory-to-rpath
6504 (lambda* (#:key outputs #:allow-other-keys)
6505 (substitute* "inc/MyBuilder.pm"
6506 (("-Lbtparse" line)
6507 (string-append "-Wl,-rpath="
6508 (assoc-ref outputs "out") "/lib " line)))
6509 #t))
6510 (add-after 'unpack 'install-libraries-to-/lib
6511 (lambda* (#:key outputs #:allow-other-keys)
6512 (substitute* "Build.PL"
6513 (("lib64") "lib"))
6514 #t)))))
6515 (native-inputs
6516 `(("perl-capture-tiny" ,perl-capture-tiny)
6517 ("perl-config-autoconf" ,perl-config-autoconf)
6518 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
6519 ("perl-module-build" ,perl-module-build)))
9aba9b12 6520 (home-page "https://metacpan.org/release/Text-BibTeX")
ebcf74da
RW
6521 (synopsis "Interface to read and parse BibTeX files")
6522 (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
6523and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
6524at many different levels: you may work with BibTeX entries as simple field to
6525string mappings, or get at the original form of the data as a list of simple
6526values (strings, macros, or numbers) pasted together.")
2f3108ad 6527 (license license:perl-license)))
ebcf74da 6528
d4000680
RW
6529(define-public biber
6530 (package
1335167a 6531 (name "biber")
41a01087 6532 (version "2.12")
d4000680 6533 (source (origin
41a01087
JL
6534 (method git-fetch)
6535 (uri (git-reference
6536 (url "https://github.com/plk/biber/")
6537 (commit (string-append "v" version))))
6538 (file-name (git-file-name name version))
6539 ;; TODO: Patch awaiting inclusion upstream (see:
6540 ;; https://github.com/plk/biber/issues/239).
6541 (patches (search-patches "biber-fix-encoding-write.patch"))
d4000680
RW
6542 (sha256
6543 (base32
41a01087 6544 "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx"))))
d4000680
RW
6545 (build-system perl-build-system)
6546 (arguments
6547 `(#:phases
6548 (modify-phases %standard-phases
6549 (add-after 'install 'wrap-programs
6550 (lambda* (#:key outputs #:allow-other-keys)
6551 (let* ((out (assoc-ref outputs "out"))
6552 (perl5lib (getenv "PERL5LIB")))
6553 (wrap-program (string-append out "/bin/biber")
6554 `("PERL5LIB" ":" prefix
6555 (,(string-append perl5lib ":" out
6556 "/lib/perl5/site_perl")))))
6557 #t)))))
6558 (inputs
6559 `(("perl-autovivification" ,perl-autovivification)
6560 ("perl-class-accessor" ,perl-class-accessor)
6561 ("perl-data-dump" ,perl-data-dump)
6562 ("perl-data-compare" ,perl-data-compare)
6563 ("perl-data-uniqid" ,perl-data-uniqid)
6564 ("perl-datetime-format-builder" ,perl-datetime-format-builder)
6565 ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
41a01087 6566 ("perl-file-slurper" ,perl-file-slurper)
d4000680
RW
6567 ("perl-ipc-cmd" ,perl-ipc-cmd)
6568 ("perl-ipc-run3" ,perl-ipc-run3)
6569 ("perl-list-allutils" ,perl-list-allutils)
6570 ("perl-list-moreutils" ,perl-list-moreutils)
6571 ("perl-mozilla-ca" ,perl-mozilla-ca)
6572 ("perl-regexp-common" ,perl-regexp-common)
6573 ("perl-log-log4perl" ,perl-log-log4perl)
6574 ;; We cannot use perl-unicode-collate here, because otherwise the
6575 ;; hardcoded hashes in the tests would differ. See
6576 ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
6577 ;;("perl-unicode-collate" ,perl-unicode-collate)
6578 ("perl-unicode-normalize" ,perl-unicode-normalize)
6579 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
6580 ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
6581 ("perl-encode-jis2k" ,perl-encode-jis2k)
6582 ("perl-encode-hanextra" ,perl-encode-hanextra)
6583 ("perl-xml-libxml" ,perl-xml-libxml)
6584 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
6585 ("perl-xml-libxslt" ,perl-xml-libxslt)
6586 ("perl-xml-writer" ,perl-xml-writer)
6587 ("perl-sort-key" ,perl-sort-key)
6588 ("perl-text-csv" ,perl-text-csv)
6589 ("perl-text-csv-xs" ,perl-text-csv-xs)
6590 ("perl-text-roman" ,perl-text-roman)
6591 ("perl-uri" ,perl-uri)
6592 ("perl-text-bibtex" ,perl-text-bibtex)
6593 ("perl-libwww" ,perl-libwww)
6594 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
6595 ("perl-business-isbn" ,perl-business-isbn)
6596 ("perl-business-issn" ,perl-business-issn)
6597 ("perl-business-ismn" ,perl-business-ismn)
6598 ("perl-lingua-translit" ,perl-lingua-translit)))
6599 (native-inputs
6600 `(("perl-config-autoconf" ,perl-config-autoconf)
6601 ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
6602 ("perl-module-build" ,perl-module-build)
6603 ;; for tests
6604 ("perl-file-which" ,perl-file-which)
6605 ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
6606 ("perl-test-differences" ,perl-test-differences)))
6607 (home-page "http://biblatex-biber.sourceforge.net/")
6608 (synopsis "Backend for the BibLaTeX citation management tool")
6609 (description "Biber is a BibTeX replacement for users of biblatex. Among
6610other things it comes with full Unicode support.")
6611 (license license:artistic2.0)))
6612
231eae53
LC
6613(define-public rubber
6614 (package
6615 (name "rubber")
6616 (version "1.1")
6617 (source (origin
6618 (method url-fetch)
6619 (uri (list (string-append "https://launchpad.net/rubber/trunk/"
6620 version "/+download/rubber-"
6621 version ".tar.gz")
6622 (string-append "http://ebeffara.free.fr/pub/rubber-"
6623 version ".tar.gz")))
6624 (sha256
6625 (base32
6626 "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
6627 (build-system gnu-build-system)
6628 (arguments '(#:tests? #f)) ; no `check' target
6629 (inputs `(("texinfo" ,texinfo)
9bee5d6c 6630 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
231eae53
LC
6631 ("which" ,which)))
6632 (home-page "https://launchpad.net/rubber")
35b9e423 6633 (synopsis "Wrapper for LaTeX and friends")
231eae53
LC
6634 (description
6635 "Rubber is a program whose purpose is to handle all tasks related to the
6636compilation of LaTeX documents. This includes compiling the document itself,
6637of course, enough times so that all references are defined, and running BibTeX
6638to manage bibliographic references. Automatic execution of dvips to produce
6639PostScript documents is also included, as well as usage of pdfLaTeX to produce
6640PDF documents.")
6641 (license license:gpl2+)))
4791876c
RJ
6642
6643(define-public texmaker
6644 (package
6645 (name "texmaker")
585be42f 6646 (version "5.0.3")
4791876c
RJ
6647 (source (origin
6648 (method url-fetch)
6649 (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
6650 version ".tar.bz2"))
6651 (sha256
6652 (base32
585be42f 6653 "0vrj9w5lk3vf6138n5bz8phmy3xp5kv4dq1rgirghcf4hbxdyx30"))))
4791876c
RJ
6654 (build-system gnu-build-system)
6655 (arguments
6656 `(#:phases
6657 (modify-phases %standard-phases
6658 ;; Qt has its own configuration utility.
6659 (replace 'configure
6660 (lambda* (#:key outputs #:allow-other-keys)
6661 (let ((out (assoc-ref outputs "out")))
6c23ed9b
MW
6662 (invoke "qmake"
6663 (string-append "PREFIX=" out)
c36d9725 6664 (string-append "DESKTOPDIR=" out "/share/applications")
6c23ed9b 6665 (string-append "ICONDIR=" out "/share/pixmaps")
c36d9725 6666 (string-append "METAINFODIR=" out "/share/metainfo")
6c23ed9b 6667 "texmaker.pro")))))))
4791876c
RJ
6668 (inputs
6669 `(("poppler-qt5" ,poppler-qt5)
bd917486
TD
6670 ("qtbase" ,qtbase)
6671 ("qtscript" ,qtscript)
6672 ("qtwebkit" ,qtwebkit)
4791876c
RJ
6673 ("zlib" ,zlib)))
6674 (native-inputs
6675 `(("pkg-config" ,pkg-config)))
6676 (home-page "http://www.xm1math.net/texmaker/")
6677 (synopsis "LaTeX editor")
6678 (description "Texmaker is a program that integrates many tools needed to
6679develop documents with LaTeX, in a single application.")
6680 (license license:gpl2+)))
83457fe0 6681
83457fe0
JD
6682(define-public teximpatient
6683 (package
6684 (name "teximpatient")
6685 (version "2.4")
6686 (source (origin
4f2ee8e2 6687 (method url-fetch/tarbomb)
83457fe0
JD
6688 (uri (string-append "mirror://gnu/" name "/" name "-"
6689 version ".tar.gz"))
6690 (sha256
6691 (base32
6692 "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
6693 (build-system gnu-build-system)
6694 (arguments
4f2ee8e2
RW
6695 `(#:tests? #f ; there are none
6696 #:phases
83457fe0 6697 (modify-phases %standard-phases
4f2ee8e2
RW
6698 (add-after 'unpack 'fix-packaging-error
6699 (lambda* (#:key inputs #:allow-other-keys)
6700 ;; This file should have been part of the tarball.
6701 (install-file (car
6702 (find-files
6703 (assoc-ref inputs "automake")
6704 "^install-sh$"))
6705 ".")
6706 ;; Remove generated file.
6707 (delete-file "book.pdf")
6708 #t)))))
83457fe0 6709 (native-inputs
4f2ee8e2
RW
6710 `(("texlive" ,(texlive-union (list texlive-latex-amsfonts
6711 texlive-fonts-amsfonts
6712 texlive-fonts-adobe-palatino
6713 texlive-fonts-adobe-zapfding
6714 texlive-fonts-knuth-lib
6715 texlive-fonts-mflogo-font
6716 texlive-generic-pdftex)))
83457fe0 6717 ("automake" ,automake)))
6fd52309 6718 (home-page "https://www.gnu.org/software/teximpatient/")
83457fe0
JD
6719 (synopsis "Book on TeX, plain TeX and Eplain")
6720 (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
6721plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
6722and Karl Berry.")
6723 (license license:fdl1.3+)))
ec40a050
DM
6724
6725(define-public lyx
6726 (package
6727 (name "lyx")
b17c8923 6728 (version "2.3.2-2")
ec40a050 6729 (source (origin
b17c8923 6730 (method url-fetch)
e5a03489
EF
6731 (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/"
6732 (version-major+minor version) ".x/"
b17c8923
RW
6733 name "-" version ".tar.gz"))
6734 (sha256
6735 (base32
6736 "0vr0qwis6rhind6azfa270hqxci7rj8qb1kk5x6lm80mc34nvrqi"))
6737 (modules '((guix build utils)))
6738 (snippet
6739 '(begin
6740 (delete-file-recursively "3rdparty")
6741 #t))))
ec40a050
DM
6742 (build-system cmake-build-system)
6743 (arguments
6744 `(#:configure-flags `("-DLYX_USE_QT=QT5"
6745 "-DLYX_EXTERNAL_BOOST=1"
6746 "-DLYX_INSTALL=1"
6747 "-DLYX_RELEASE=1"
6748 ,(string-append "-DLYX_INSTALL_PREFIX="
6749 (assoc-ref %outputs "out")
6750 ;; Exact name and level is necessary.
e5a03489 6751 "/lyx" ,(version-major+minor version)))
ec40a050
DM
6752 #:phases
6753 (modify-phases %standard-phases
b17c8923
RW
6754 ;; See ;; https://www.lyx.org/trac/changeset/3a123b90af838b08680471d87170c38e56787df9/lyxgit
6755 (add-after 'unpack 'fix-compilation-with-boost-1.69
6756 (lambda _
6757 (substitute* "src/support/FileName.cpp"
6758 (("^template struct boost::detail::crc_table_t.*") ""))
6759 #t))
ec40a050
DM
6760 (add-after 'unpack 'patch-python
6761 (lambda* (#:key inputs #:allow-other-keys)
6762 (substitute* '("src/support/os.cpp")
b17c8923
RW
6763 (("\"python ")
6764 (string-append "\""
6765 (assoc-ref inputs "python")
6766 "/bin/python ")))
ec40a050
DM
6767 #t))
6768 (add-after 'patch-python 'patch-desktop-file
6769 (lambda* (#:key outputs #:allow-other-keys)
6770 (substitute* "lib/lyx.desktop.in"
b17c8923
RW
6771 (("Exec=")
6772 (string-append "Exec="
6773 (assoc-ref outputs "out")
6774 "/")))
ec40a050
DM
6775 #t))
6776 (add-before 'check 'setenv-check
6777 (lambda _
b17c8923
RW
6778 ;; Create missing file that would cause tests to fail.
6779 (with-output-to-file (string-append "../lyx-"
6780 ,version
6781 "/src/tests/check_layout.cmake")
6782 (const #t))
e5a03489
EF
6783 (setenv (string-append "LYX_DIR_"
6784 (string-join
6785 (string-split
6786 ,(version-major+minor version) #\-)) "x")
6787 (string-append (getcwd) "/../lyx-" ,version "/lib"))
ec40a050
DM
6788 #t))
6789 (add-after 'install 'install-symlinks
6790 (lambda* (#:key outputs #:allow-other-keys)
6791 (let ((out (assoc-ref outputs "out")))
6792 (mkdir-p (string-append out "/bin"))
e5a03489
EF
6793 (symlink (string-append "../lyx" ,(version-major+minor version)
6794 "/bin/lyx" ,(version-major+minor version))
6795 (string-append out "/bin/lyx" ,(version-major+minor version)))
ec40a050
DM
6796 #t))))))
6797 (inputs
6798 `(("boost" ,boost)
b17c8923 6799 ("hunspell" ,hunspell) ; Note: Could also use aspell instead.
ec40a050 6800 ("libx11" ,libx11)
b17c8923
RW
6801 ("mythes" ,mythes)
6802 ("python" ,python-2)
ec40a050
DM
6803 ("qtbase" ,qtbase)
6804 ("qtsvg" ,qtsvg)
6805 ("zlib" ,zlib)))
6806 (propagated-inputs
b17c8923
RW
6807 `(("texlive" ,(texlive-union (list texlive-fonts-ec)))))
6808 ;; FIXME: Python 3.7.0 cannot be used because the test infrastructure
6809 ;; "requires a bytes-like object, not 'str'". This may be fixed with
6810 ;; upgrades to Python.
ec40a050 6811 (native-inputs
b17c8923 6812 `(("python" ,python-2)
ec40a050
DM
6813 ("pkg-config" ,pkg-config)
6814 ("bc" ,bc)))
8960b2e6 6815 (home-page "https://www.lyx.org/")
ec40a050
DM
6816 (synopsis "Document preparation system with GUI")
6817 (description "LyX is a document preparation system. It excels at letting
6818you create complex technical and scientific articles with mathematics,
6819cross-references, bibliographies, indexes, etc. It is very good for working
6820with documents of any length in which the usual processing abilities are
6821required: automatic sectioning and pagination, spell checking and so forth.")
6822 (license license:gpl2+)))
7d50dff3
PN
6823
6824(define-public texlive-latex-media9
6825 (package
6826 (name "texlive-latex-media9")
6827 (version (number->string %texlive-revision))
6828 (source (origin
6829 (method svn-fetch)
6830 (uri (svn-reference
6831 (url (string-append "svn://www.tug.org/texlive/tags/"
6832 %texlive-tag "/Master/texmf-dist/"
6833 "/tex/latex/media9"))
6834 (revision %texlive-revision)))
6835 (file-name (string-append name "-" version "-checkout"))
6836 (sha256
6837 (base32
d4d9a1ec 6838 "0lhb2h5hxjq9alpk4r3gvg21pwyifs4ah6hqzp92k55mkp1xv73j"))))
7d50dff3
PN
6839 (build-system trivial-build-system)
6840 (arguments
6841 `(#:modules ((guix build utils))
6842 #:builder
6843 (begin
6844 (use-modules (guix build utils))
6845 (let ((target (string-append (assoc-ref %outputs "out")
6846 "/share/texmf-dist/tex/latex/media9")))
6847 (mkdir-p target)
6848 (copy-recursively (assoc-ref %build-inputs "source") target)
6849 #t))))
6850 (home-page "https://www.ctan.org/pkg/media9")
6851 (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility")
6852 (description
6853 "The package provides an interface to embed interactive Flash (SWF) and 3D
6854objects (Adobe U3D & PRC), as well as video and sound files or streams in the
6855popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X
6856compatibility. Playback of multimedia files uses the built-in Flash Player of
6857Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player
6858supports the efficient H.264 codec for video compression.
6859
6860The package is based on the RichMedia Annotation, an Adobe addition to the PDF
6861specification. It replaces the now obsolete @code{movie15} package.")
6862 (license license:lppl)))
288c8c97
PN
6863
6864(define-public texlive-latex-ocgx2
6865 (package
6866 (name "texlive-latex-ocgx2")
6867 (version (number->string %texlive-revision))
6868 (source (origin
6869 (method svn-fetch)
6870 (uri (svn-reference
6871 (url (string-append "svn://www.tug.org/texlive/tags/"
6872 %texlive-tag "/Master/texmf-dist/"
6873 "/tex/latex/ocgx2"))
6874 (revision %texlive-revision)))
6875 (file-name (string-append name "-" version "-checkout"))
6876 (sha256
6877 (base32
d4d9a1ec 6878 "0zp00jg058djx8xp0xqwas92y3j97clkyd8z6pqr890yqy06myqb"))))
288c8c97
PN
6879 (build-system trivial-build-system)
6880 (arguments
6881 `(#:modules ((guix build utils))
6882 #:builder
6883 (begin
6884 (use-modules (guix build utils))
6885 (let ((target (string-append (assoc-ref %outputs "out")
6886 "/share/texmf-dist/tex/latex/ogcx2")))
6887 (mkdir-p target)
6888 (copy-recursively (assoc-ref %build-inputs "source") target)
6889 #t))))
6890 (home-page "https://www.ctan.org/pkg/ocgx2")
6891 (synopsis "Provide OCG (Optional Content Groups) support within a PDF document")
6892 (description
6893 "This package provides OCG (Optional Content Groups) support within a PDF
6894document.
6895
6896It re-implements the functionality of the @code{ocg}, @code{ocgx}, and
6897@code{ocg-p} packages and adds support for all known engines and back-ends
6898including:
6899
6900@itemize
6901@item LaTeX → dvips → @code{ps2pdf}/Distiller
6902@item (Xe)LaTeX(x) → @code{dvipdfmx}
6903@item pdfLaTeX and LuaLaTeX .
6904@end itemize
6905
6906It also ensures compatibility with the @code{media9} and @code{animate} packages.")
6907 (license license:lppl)))
b718793e
PN
6908
6909(define-public texlive-latex-ms
6910 (package
6911 (name "texlive-latex-ms")
6912 (version (number->string %texlive-revision))
6913 (source (origin
6914 (method svn-fetch)
6915 (uri (texlive-ref "latex" "ms"))
6916 (file-name (string-append name "-" version "-checkout"))
6917 (sha256
6918 (base32
6919 "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s"))))
6920 (build-system texlive-build-system)
6921 (arguments
6922 '(#:tex-directory "latex/ms"
6923 #:tex-format "latex"))
6924 (home-page "https://ctan.org/pkg/ms")
6925 (synopsis "Various LATEX packages by Martin Schröder")
6926 (description
6927 "A bundle of LATEX packages by Martin Schröder; the collection comprises:
6928
6929@itemize
6930@item @command{count1to}, make use of fixed TEX counters;
6931@item @command{everysel}, set commands to execute every time a font is selected;
6932@item @command{everyshi}, set commands to execute whenever a page is shipped out;
6933@item @command{multitoc}, typeset the table of contents in multiple columns;
6934@item @command{prelim2e}, mark typeset pages as preliminary; and
6935@item @command{ragged2e}, typeset ragged text and allow hyphenation.
6936@end itemize\n")
6937 (license license:lppl1.3c+)))
707babdd
PN
6938
6939(define-public texlive-latex-needspace
6940 (package
6941 (name "texlive-latex-needspace")
6942 (version (number->string %texlive-revision))
6943 (source (origin
6944 (method svn-fetch)
6945 (uri (texlive-ref "latex" "needspace"))
6946 (file-name (string-append name "-" version "-checkout"))
6947 (sha256
6948 (base32
6949 "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y"))))
6950 (build-system texlive-build-system)
6951 (arguments
6952 '(#:tex-directory "latex/needspace"
6953 #:tex-format "latex"))
6954 (inputs
6955 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
6956 (home-page "https://www.ctan.org/pkg/needspace")
6957 (synopsis "Insert pagebreak if not enough space")
6958 (description
6959 "Provides commands to disable pagebreaking within a given vertical
6960space. If there is not enough space between the command and the bottom of the
6961page, a new page will be started.")
6962 (license license:lppl)))
0e73c11b 6963
73635e3f
RW
6964(define-public texlive-latex-changepage
6965 (package
6966 (name "texlive-latex-changepage")
6967 (version (number->string %texlive-revision))
6968 (source
6969 (origin
6970 (method svn-fetch)
6971 (uri (texlive-ref "latex" "changepage"))
6972 (sha256
6973 (base32
6974 "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb"))))
6975 (build-system texlive-build-system)
6976 (arguments
6977 '(#:tex-directory "latex/changepage"
6978 #:tex-format "latex"))
6979 (inputs
6980 `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
6981 (home-page "https://www.ctan.org/pkg/changepage")
6982 (synopsis "Margin adjustment and detection of odd/even pages")
6983 (description
6984 "The package provides commands to change the page layout in the middle of
6985a document, and to robustly check for typesetting on odd or even pages.
6986Instructions for use are at the end of the file. The package is an extraction
6987of code from the @code{memoir} class, whose user interface it shares.")
6988 (license license:lppl1.3+)))
6989
0e73c11b
PN
6990(define-public texlive-latex-eukdate
6991 (package
6992 (name "texlive-latex-eukdate")
6993 (version (number->string %texlive-revision))
6994 (source
6995 (origin
6996 (method svn-fetch)
6997 (uri (svn-reference
6998 (url (string-append "svn://www.tug.org/texlive/tags/"
6999 %texlive-tag "/Master/texmf-dist/"
7000 "/tex/latex/eukdate"))
7001 (revision %texlive-revision)))
7002 (file-name (string-append name "-" version "-checkout"))
7003 (sha256
7004 (base32
7005 "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz"))))
7006 (build-system trivial-build-system)
7007 (arguments
7008 `(#:modules ((guix build utils))
7009 #:builder
7010 (begin
7011 (use-modules (guix build utils))
7012 (let ((target (string-append (assoc-ref %outputs "out")
7013 "/share/texmf-dist/tex/latex/eukdate")))
7014 (mkdir-p target)
7015 (copy-recursively (assoc-ref %build-inputs "source") target)
7016 #t))))
7017 (home-page "https://www.ctan.org/pkg/eukdate")
7018 (synopsis "UK format dates, with weekday")
7019 (description
7020 "The package is used to change the format of @code{\\today}’s date,
7021including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which
7022is preferred in many parts of the world, as distinct from that which is used in
7023@code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.")
7024 (license license:lppl)))
910d67fb
PN
7025
7026(define-public texlive-generic-ulem
7027 (package
7028 (name "texlive-generic-ulem")
7029 (version (number->string %texlive-revision))
7030 (source
7031 (origin
7032 (method svn-fetch)
7033 (uri (svn-reference
7034 (url (string-append "svn://www.tug.org/texlive/tags/"
7035 %texlive-tag "/Master/texmf-dist/"
7036 "/tex/generic/ulem"))
7037 (revision %texlive-revision)))
7038 (file-name (string-append name "-" version "-checkout"))
7039 (sha256
7040 (base32
7041 "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797"))))
7042 (build-system trivial-build-system)
7043 (arguments
7044 `(#:modules ((guix build utils))
7045 #:builder
7046 (begin
7047 (use-modules (guix build utils))
7048 (let ((target (string-append (assoc-ref %outputs "out")
7049 "/share/texmf-dist/tex/generic/ulem")))
7050 (mkdir-p target)
7051 (copy-recursively (assoc-ref %build-inputs "source") target)
7052 #t))))
7053 (home-page "https://www.ctan.org/pkg/ulem")
7054 (synopsis "Underline text in TeX")
7055 (description
7056 "The package provides an @code{\\ul} (underline) command which will break
7057over line ends; this technique may be used to replace @code{\\em} (both in that
7058form and as the @code{\\emph} command), so as to make output look as if it comes
7059from a typewriter. The package also offers double and wavy underlining, and
7060striking out (line through words) and crossing out (/// over words).")
7061 (license license:lppl1.3c+)))
17ef5f1f
PN
7062
7063(define-public texlive-latex-pgf
7064 (package
7065 (name "texlive-latex-pgf")
7066 (version (number->string %texlive-revision))
7067 (source
7068 (origin
7069 (method svn-fetch)
7070 (uri (svn-reference
7071 (url (string-append "svn://www.tug.org/texlive/tags/"
7072 %texlive-tag "/Master/texmf-dist/"
7073 "/tex/latex/pgf"))
7074 (revision %texlive-revision)))
7075 (file-name (string-append name "-" version "-checkout"))
7076 (sha256
7077 (base32
7078 "1dq8p10pz8wn0vx412m7d7d5gj1syxly3yqdqvf7lv2xl8zndn5h"))))
7079 (build-system trivial-build-system)
7080 (native-inputs
7081 `(("texlive-latex-pgf-generic"
7082 ,(origin
7083 (method svn-fetch)
7084 (uri (svn-reference
7085 (url (string-append "svn://www.tug.org/texlive/tags/"
7086 %texlive-tag "/Master/texmf-dist/"
7087 "/tex/generic/pgf"))
7088 (revision %texlive-revision)))
7089 (file-name (string-append "texlive-latex-pgf-generic" version "-checkout"))
7090 (sha256
7091 (base32
7092 "0xkxw26sjzr5npjpzpr28yygwdbhzpdd0hsk80gjpidhcxmz393i"))))))
0fc71e4b
RW
7093 (propagated-inputs
7094 `(("texlive-latex-xcolor" ,texlive-latex-xcolor)))
17ef5f1f
PN
7095 (arguments
7096 `(#:modules ((guix build utils))
7097 #:builder
7098 (begin
7099 (use-modules (guix build utils))
7100 (let ((target-generic (string-append (assoc-ref %outputs "out")
7101 "/share/texmf-dist/tex/generic/pgf"))
7102 (target-latex (string-append (assoc-ref %outputs "out")
7103 "/share/texmf-dist/tex/latex/pgf")))
7104 (mkdir-p target-generic)
7105 (mkdir-p target-latex)
7106 (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic)
7107 (copy-recursively (assoc-ref %build-inputs "source") target-latex)
7108 #t))))
7109 (home-page "https://www.ctan.org/pkg/tikz")
7110 (synopsis "Create PostScript and PDF graphics in TeX")
7111 (description
7112 "PGF is a macro package for creating graphics. It is platform- and
7113format-independent and works together with the most important TeX backend
7114drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer
7115called TikZ.
7116
7117Its usage is similar to pstricks and the standard picture environment. PGF
7118works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can
7119produce either PostScript or PDF output.")
7120 (license license:lppl1.3c+)))
e7b2937d
PN
7121
7122(define-public texlive-latex-koma-script
7123 (package
7124 (name "texlive-latex-koma-script")
7125 (version (number->string %texlive-revision))
7126 (source (origin
7127 (method svn-fetch)
7128 (uri (svn-reference
7129 (url (string-append "svn://www.tug.org/texlive/tags/"
7130 %texlive-tag "/Master/texmf-dist/"
7131 "/tex/latex/koma-script"))
7132 (revision %texlive-revision)))
7133 (file-name (string-append name "-" version "-checkout"))
7134 (sha256
7135 (base32
d4d9a1ec 7136 "0nqwf0sr4mf3v9gqa6apv6ml2xhcdwax0vgyf12a672g7rpdyvgm"))))
e7b2937d
PN
7137 (build-system trivial-build-system)
7138 (arguments
7139 `(#:modules ((guix build utils)
7140 (ice-9 match))
7141 #:builder
7142 (begin
7143 (use-modules (guix build utils)
7144 (ice-9 match))
7145 (let ((root (string-append (assoc-ref %outputs "out")
7146 "/share/texmf-dist/"))
7147 (pkgs '(("source" . "tex/latex/koma-script"))))
7148 (for-each (match-lambda
7149 ((pkg . dir)
7150 (let ((target (string-append root dir)))
7151 (mkdir-p target)
7152 (copy-recursively (assoc-ref %build-inputs pkg)
7153 target))))
7154 pkgs)
7155 #t))))
7156 (home-page "https://www.ctan.org/pkg/koma-script")
7157 (synopsis "Bundle of versatile classes and packages")
7158 (description
7159 "The KOMA-Script bundle provides replacements for the article, report, and
7160book classes with emphasis on typography and versatility. There is also a
7161letter class.
7162
7163The bundle also offers:
7164
7165@itemize
7166@item a package for calculating type areas in the way laid down by the
7167typographer Jan Tschichold,
7168@item packages for easily changing and defining page styles,
7169@item a package scrdate for getting not only the current date but also the name
7170of the day, and
7171@item a package scrtime for getting the current time.
7172@end itemize
7173
7174All these packages may be used not only with KOMA-Script classes but also with
7175the standard classes.
7176
7177Since every package has its own version number, the version number quoted only
7178refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and
7179typearea (which are the main parts of the bundle).")
7180 (license license:lppl1.3+)))
893fbf12
RW
7181
7182(define-public texlive-generic-listofitems
7183 (package
7184 (name "texlive-generic-listofitems")
7185 (version (number->string %texlive-revision))
7186 (source (origin
7187 (method svn-fetch)
7188 (uri (svn-reference
7189 (url (string-append "svn://www.tug.org/texlive/tags/"
7190 %texlive-tag "/Master/texmf-dist/"
7191 "/tex/generic/listofitems"))
7192 (revision %texlive-revision)))
7193 (file-name (string-append name "-" version "-checkout"))
7194 (sha256
7195 (base32
d4d9a1ec 7196 "0hs28fc0v2l92ad9las9b8xcckyrdrwmyhcx1yzmbr6s7s6nvsx8"))))
893fbf12
RW
7197 (build-system trivial-build-system)
7198 (arguments
7199 `(#:modules ((guix build utils))
7200 #:builder
7201 (begin
7202 (use-modules (guix build utils))
7203 (let ((target (string-append (assoc-ref %outputs "out")
7204 "/share/texmf-dist/tex/generic/listofitems")))
7205 (mkdir-p target)
7206 (copy-recursively (assoc-ref %build-inputs "source") target)
7207 #t))))
7208 (home-page "https://www.ctan.org/pkg/listofitems")
88868575 7209 (synopsis "Grab items in lists using user-specified separation character")
893fbf12
RW
7210 (description
7211 "This package allows one to capture all the items of a list, for which
7212the parsing character has been selected by the user, and to access any of
7213these items with a simple syntax.")
7214 (license license:lppl1.3c+)))
1d0669f4
RW
7215
7216(define-public texlive-latex-readarray
7217 (package
7218 (name "texlive-latex-readarray")
7219 (version (number->string %texlive-revision))
7220 (source (origin
7221 (method svn-fetch)
7222 (uri (svn-reference
7223 (url (string-append "svn://www.tug.org/texlive/tags/"
7224 %texlive-tag "/Master/texmf-dist/"
7225 "/tex/latex/readarray"))
7226 (revision %texlive-revision)))
7227 (file-name (string-append name "-" version "-checkout"))
7228 (sha256
7229 (base32
7230 "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp"))))
7231 (build-system trivial-build-system)
7232 (arguments
7233 `(#:modules ((guix build utils))
7234 #:builder
7235 (begin
7236 (use-modules (guix build utils))
7237 (let ((target (string-append (assoc-ref %outputs "out")
7238 "/share/texmf-dist/tex/latex/readarray")))
7239 (mkdir-p target)
7240 (copy-recursively (assoc-ref %build-inputs "source") target)
7241 #t))))
7242 (propagated-inputs
7243 `(("texlive-generic-listofitems" ,texlive-generic-listofitems)))
7244 (home-page "https://www.ctan.org/pkg/readarray")
7245 (synopsis "Read, store and recall array-formatted data")
7246 (description
7247 "This package allows the user to input formatted data into elements of a
72482-D or 3-D array and to recall that data at will by individual cell number.
7249The data can be but need not be numerical in nature. It can be, for example,
7250formatted text.")
7251 (license license:lppl1.3)))
f50f343e
RW
7252
7253(define-public texlive-latex-verbatimbox
7254 (package
7255 (name "texlive-latex-verbatimbox")
7256 (version (number->string %texlive-revision))
7257 (source (origin
7258 (method svn-fetch)
7259 (uri (svn-reference
7260 (url (string-append "svn://www.tug.org/texlive/tags/"
7261 %texlive-tag "/Master/texmf-dist/"
7262 "/tex/latex/verbatimbox"))
7263 (revision %texlive-revision)))
7264 (file-name (string-append name "-" version "-checkout"))
7265 (sha256
7266 (base32
7267 "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna"))))
7268 (build-system trivial-build-system)
7269 (arguments
7270 `(#:modules ((guix build utils))
7271 #:builder
7272 (begin
7273 (use-modules (guix build utils))
7274 (let ((target (string-append (assoc-ref %outputs "out")
7275 "/share/texmf-dist/tex/latex/verbatimbox")))
7276 (mkdir-p target)
7277 (copy-recursively (assoc-ref %build-inputs "source") target)
7278 #t))))
7279 (propagated-inputs
7280 `(("texlive-latex-readarray" ,texlive-latex-readarray)))
7281 (home-page "https://www.ctan.org/pkg/verbatimbox")
7282 (synopsis "Deposit verbatim text in a box")
7283 (description
7284 "The package provides a @code{verbbox} environment to place its contents
7285into a globally available box, or into a box specified by the user. The
7286global box may then be used in a variety of situations (for example, providing
7287a replica of the @code{boxedverbatim} environment itself). A valuable use is
7288in places where the standard @code{verbatim} environment (which is based on a
7289@code{trivlist}) may not appear.")
7290 (license license:lppl1.3+)))
4348a059
RW
7291
7292(define-public texlive-latex-examplep
7293 (package
7294 (name "texlive-latex-examplep")
7295 (version (number->string %texlive-revision))
7296 (source (origin
7297 (method svn-fetch)
7298 (uri (svn-reference
7299 (url (string-append "svn://www.tug.org/texlive/tags/"
7300 %texlive-tag "/Master/texmf-dist/"
7301 "/tex/latex/examplep"))
7302 (revision %texlive-revision)))
7303 (file-name (string-append name "-" version "-checkout"))
7304 (sha256
7305 (base32
7306 "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27"))))
7307 (build-system trivial-build-system)
7308 (arguments
7309 `(#:modules ((guix build utils))
7310 #:builder
7311 (begin
7312 (use-modules (guix build utils))
7313 (let ((target (string-append (assoc-ref %outputs "out")
7314 "/share/texmf-dist/tex/latex/examplep")))
7315 (mkdir-p target)
7316 (copy-recursively (assoc-ref %build-inputs "source") target)
7317 #t))))
7318 (home-page "https://www.ctan.org/pkg/examplep")
7319 (synopsis "Verbatim phrases and listings in LaTeX")
7320 (description
7321 "Examplep provides sophisticated features for typesetting verbatim source
7322code listings, including the display of the source code and its compiled LaTeX
7323or METAPOST output side-by-side, with automatic width detection and enabled
7324page breaks (in the source), without the need for specifying the source twice.
7325Special care is taken that section, page and footnote numbers do not interfere
7326with the main document. For typesetting short verbatim phrases, a replacement
7327for the @code{\\verb} command is also provided in the package, which can be
7328used inside tables and moving arguments such as footnotes and section
7329titles.")
7330 ;; No version of the GPL is specified.
7331 (license license:gpl3+)))
547ab650
PN
7332
7333(define-public texlive-generic-xypic
7334 (package
7335 (name "texlive-generic-xypic")
7336 (version (number->string %texlive-revision))
7337 (source
7338 (origin
7339 (method svn-fetch)
7340 (uri (svn-reference
7341 (url (string-append "svn://www.tug.org/texlive/tags/"
7342 %texlive-tag "/Master/texmf-dist/"
7343 "/tex/generic/xypic"))
7344 (revision %texlive-revision)))
7345 (file-name (string-append name "-" version "-checkout"))
7346 (sha256
7347 (base32
7348 "1g5cyxwdfznq4lk9zl6fkjkapmhmwd2cm4m5aibxj20qgwnaggfz"))))
7349 (build-system trivial-build-system)
7350 (arguments
7351 `(#:modules ((guix build utils))
7352 #:builder
7353 (begin
7354 (use-modules (guix build utils))
7355 (let ((target (string-append (assoc-ref %outputs "out")
7356 "/share/texmf-dist/tex/generic/xypic")))
7357 (mkdir-p target)
7358 (copy-recursively (assoc-ref %build-inputs "source") target)
7359 #t))))
7360 (home-page "https://www.ctan.org/pkg/xypic")
7361 (synopsis "Flexible diagramming macros for TeX")
7362 (description
7363 "A package for typesetting a variety of graphs and diagrams with TeX.
7364Xy-pic works with most formats (including LaTeX, AMS-LaTeX, AMS-TeX, and plain
7365TeX).")
7366 (license license:gpl3+)))
1d9ce461
PN
7367
7368(define-public texlive-fonts-xypic
7369 (package
7370 (name "texlive-fonts-xypic")
7371 (version (number->string %texlive-revision))
7372 (source (origin
7373 (method svn-fetch)
7374 (uri (svn-reference
7375 (url (string-append "svn://www.tug.org/texlive/tags/"
7376 %texlive-tag "/Master/texmf-dist/"
7377 "/fonts/source/public/xypic"))
7378 (revision %texlive-revision)))
7379 (file-name (string-append name "-" version "-checkout"))
7380 (sha256
7381 (base32
7382 "0p20v1257kwsqnrk98cdhhiz2viv8l3ly4xay4by0an3j37m9xs3"))))
7383 (build-system trivial-build-system)
7384 (arguments
7385 `(#:modules ((guix build utils)
7386 (ice-9 match))
7387 #:builder
7388 (begin
7389 (use-modules (guix build utils)
7390 (ice-9 match))
7391 (let ((root (string-append (assoc-ref %outputs "out")
7392 "/share/texmf-dist/"))
7393 (pkgs '(("source" . "fonts/source/public/xypic")
7394 ("xypic-afm" . "fonts/afm/public/xypic")
7395 ("xypic-type1" . "fonts/type1/public/xypic")
7396 ("xypic-enc" . "fonts/enc/dvips/xypic"))))
7397 (for-each (match-lambda
7398 ((pkg . dir)
7399 (let ((target (string-append root dir)))
7400 (mkdir-p target)
7401 (copy-recursively (assoc-ref %build-inputs pkg)
7402 target))))
7403 pkgs)
7404 #t))))
7405 (native-inputs
7406 `(("xypic-afm"
7407 ,(origin
7408 (method svn-fetch)
7409 (uri (svn-reference
7410 (url (string-append "svn://www.tug.org/texlive/tags/"
7411 %texlive-tag "/Master/texmf-dist/"
7412 "/fonts/afm/public/xypic"))
7413 (revision %texlive-revision)))
7414 (file-name (string-append name "-afm-" version "-checkout"))
7415 (sha256
7416 (base32
7417 "149xdijxp8lw3s0qv2aqxxxyyn748z57dpr596rjvkqdffpnsddh"))))
7418 ("xypic-type1"
7419 ,(origin
7420 (method svn-fetch)
7421 (uri (svn-reference
7422 (url (string-append "svn://www.tug.org/texlive/tags/"
7423 %texlive-tag "/Master/texmf-dist/"
7424 "/fonts/type1/public/xypic"))
7425 (revision %texlive-revision)))
7426 (file-name (string-append name "-type1-" version "-checkout"))
7427 (sha256
7428 (base32
7429 "1bln89wib7g3hcv2jny3qi6jb73k9d2vbgx3wnnjwp3ryg0846if"))))
7430 ("xypic-enc"
7431 ,(origin
7432 (method svn-fetch)
7433 (uri (svn-reference
7434 (url (string-append "svn://www.tug.org/texlive/tags/"
7435 %texlive-tag "/Master/texmf-dist/"
7436 "/fonts/enc/dvips/xypic"))
7437 (revision %texlive-revision)))
7438 (file-name (string-append name "-enc-" version "-checkout"))
7439 (sha256
7440 (base32
7441 "0yi8vms3203l3p5slnhrrlzzp0f0jw77fkcvcaicrz2vmw9z99x7"))))))
7442 (home-page "https://www.ctan.org/pkg/xypic")
7443 (synopsis "Fonts for XY-pic")
7444 (description "This package provides the XY-pic fonts.")
7445 (license license:gpl3+)))
31595689
PN
7446
7447(define-public texlive-bibtex
7448 (package
7449 (name "texlive-bibtex")
7450 (version (number->string %texlive-revision))
7451 (source
7452 (origin
7453 (method svn-fetch)
7454 (uri (svn-reference
7455 (url (string-append "svn://www.tug.org/texlive/tags/"
7456 %texlive-tag "/Master/texmf-dist/"
7457 "/bibtex"))
7458 (revision %texlive-revision)))
7459 (file-name (string-append name "-" version "-checkout"))
7460 (sha256
7461 (base32
d4d9a1ec 7462 "0hnbs0s1znbn32hfcsyijl39z81sdb00jf092a4blqz421qs2mbv"))))
31595689
PN
7463 (build-system trivial-build-system)
7464 (arguments
7465 `(#:modules ((guix build utils))
7466 #:builder
7467 (begin
7468 (use-modules (guix build utils))
7469 (let ((target (string-append (assoc-ref %outputs "out")
7470 "/share/texmf-dist/bibtex")))
7471 (mkdir-p target)
7472 (copy-recursively (assoc-ref %build-inputs "source") target)
7473 #t))))
7474 (home-page "https://www.ctan.org/pkg/bibtex")
7475 (synopsis "Process bibliographies for LaTeX")
7476 (description
7477 "BibTeX allows the user to store his citation data in generic form, while
7478printing citations in a document in the form specified by a BibTeX style, to
7479be specified in the document itself (one often needs a LaTeX citation-style
7480package, such as @command{natbib} as well).")
7481 (license license:knuth)))
744b883e
PN
7482
7483(define-public texlive-fonts-charter
7484 (package
7485 (name "texlive-fonts-charter")
7486 (version (number->string %texlive-revision))
7487 (source (origin
7488 (method svn-fetch)
7489 (uri (svn-reference
7490 (url (string-append "svn://www.tug.org/texlive/tags/"
7491 %texlive-tag "/Master/texmf-dist/"
7492 "/fonts/type1/bitstrea/charter"))
7493 (revision %texlive-revision)))
7494 (file-name (string-append name "-" version "-checkout"))
7495 (sha256
7496 (base32
7497 "0yvib45xxff3jm5270zij4q888pivbc18cqs7lz4pqfhn1am4wnv"))))
7498 (build-system trivial-build-system)
7499 (arguments
7500 `(#:modules ((guix build utils)
7501 (ice-9 match))
7502 #:builder
7503 (begin
7504 (use-modules (guix build utils)
7505 (ice-9 match))
7506 (let ((root (string-append (assoc-ref %outputs "out")
7507 "/share/texmf-dist/"))
7508 (pkgs '(("source" . "fonts/type1/bitstrea/charter")
7509 ("charter-afm" . "fonts/afm/bitstrea/charter")
7510 ("charter-tfm" . "fonts/tfm/bitstrea/charter"))))
7511 (for-each (match-lambda
7512 ((pkg . dir)
7513 (let ((target (string-append root dir)))
7514 (mkdir-p target)
7515 (copy-recursively (assoc-ref %build-inputs pkg)
7516 target))))
7517 pkgs)
7518 #t))))
7519 (native-inputs
7520 `(("charter-afm"
7521 ,(origin
7522 (method svn-fetch)
7523 (uri (svn-reference
7524 (url (string-append "svn://www.tug.org/texlive/tags/"
7525 %texlive-tag "/Master/texmf-dist/"
7526 "/fonts/afm/bitstrea/charter"))
7527 (revision %texlive-revision)))
7528 (file-name (string-append name "-afm-" version "-checkout"))
7529 (sha256
7530 (base32
7531 "02nbkqrlr3vypnzslmr7dxg1353mmc0rl4ynx0s6qbvf313fq76a"))))
7532 ("charter-tfm"
7533 ,(origin
7534 (method svn-fetch)
7535 (uri (svn-reference
7536 (url (string-append "svn://www.tug.org/texlive/tags/"
7537 %texlive-tag "/Master/texmf-dist/"
7538 "/fonts/tfm/bitstrea/charter"))
7539 (revision %texlive-revision)))
7540 (file-name (string-append name "-tfm-" version "-checkout"))
7541 (sha256
7542 (base32
7543 "0j7ci9vprivbhac70aq0z7m23hqcpx1g0i3wp1k0h8ilhimj80xk"))))))
7544 (home-page "https://www.ctan.org/pkg/charter")
7545 (synopsis "Charter fonts for TeX")
7546 (description "A commercial text font donated for the common good. Support
7547for use with LaTeX is available in @code{freenfss}, part of
7548@command{psnfss}. ")
7549 (license (license:non-copyleft (string-append "http://mirrors.ctan.org/"
7550 "fonts/charter/readme.charter")))))
a5bfedb4
PN
7551
7552(define-public texlive-context-base
7553 (package
7554 (name "texlive-context-base")
7555 (version (number->string %texlive-revision))
7556 (source (origin
7557 (method svn-fetch)
7558 (uri (svn-reference
7559 (url (string-append "svn://www.tug.org/texlive/tags/"
7560 %texlive-tag "/Master/texmf-dist/"
7561 "/tex/context/base"))
7562 (revision %texlive-revision)))
7563 (file-name (string-append name "-" version "-checkout"))
7564 (sha256
7565 (base32
d4d9a1ec 7566 "0rlx4qqijms1n64gjx475kvip8l322fh7v17zkmwp1l1g0w3vlyz"))))
a5bfedb4
PN
7567 (build-system trivial-build-system)
7568 (arguments
7569 `(#:modules ((guix build utils))
7570 #:builder
7571 (begin
7572 (use-modules (guix build utils))
7573 (let ((target (string-append (assoc-ref %outputs "out")
7574 "/share/texmf-dist/tex/context/case")))
7575 (mkdir-p target)
7576 (copy-recursively (assoc-ref %build-inputs "source") target)
7577 #t))))
7578 (home-page "https://www.ctan.org/pkg/context")
7579 (synopsis "Full featured, parameter driven macro package for TeX")
7580 (description "A full featured, parameter driven macro package, which fully
7581supports advanced interactive documents. See the ConTeXt garden for a wealth
7582of support information.")
7583 (license license:gpl2+)))
63133706
RW
7584
7585(define-public texlive-latex-beamer
7586 (package
7587 (name "texlive-latex-beamer")
7588 (version (number->string %texlive-revision))
7589 (source (origin
7590 (method svn-fetch)
7591 (uri (svn-reference
7592 (url (string-append "svn://www.tug.org/texlive/tags/"
7593 %texlive-tag "/Master/texmf-dist/"
7594 "/tex/latex/beamer"))
7595 (revision %texlive-revision)))
7596 (file-name (string-append name "-" version "-checkout"))
7597 (sha256
7598 (base32
7599 "09y3qwbj0nckshvg9afgwcv9v3zdif1d7bnpzrggsa1fbr80mgk2"))))
7600 (build-system trivial-build-system)
7601 (outputs '("out" "doc"))
7602 (arguments
7603 `(#:modules ((guix build utils))
7604 #:builder
7605 (begin
7606 (use-modules (guix build utils))
7607 (let ((target (string-append (assoc-ref %outputs "out")
7608 "/share/texmf-dist/tex/latex/beamer"))
7609 (docs (string-append (assoc-ref %outputs "doc")
7610 "/share/texmf-dist/doc/latex/beamer/")))
7611 (mkdir-p target)
7612 (copy-recursively (assoc-ref %build-inputs "source") target)
7613
7614 (mkdir-p docs)
7615 (copy-recursively (assoc-ref %build-inputs "docs") docs)
7616 #t))))
7617 (propagated-inputs
7618 `(("texlive-latex-hyperref" ,texlive-latex-hyperref)
7619 ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
7620 ("texlive-latex-etoolbox" ,texlive-latex-etoolbox)
7621 ("texlive-latex-pgf" ,texlive-latex-pgf)))
7622 (native-inputs
7623 `(("docs"
7624 ,(origin
7625 (method svn-fetch)
7626 (uri (svn-reference
7627 (url (string-append "svn://www.tug.org/texlive/tags/"
7628 %texlive-tag "/Master/texmf-dist/"
7629 "/doc/latex/beamer"))
7630 (revision %texlive-revision)))
7631 (file-name (string-append name "-" version "-checkout"))
7632 (sha256
7633 (base32
7634 "102b18b9nw9dicqqgjwx0srh1mav8vh9wdvwayn741niza9hac23"))))))
7635 (home-page "https://www.ctan.org/pkg/beamer")
7636 (synopsis "LaTeX class for producing presentations and slides")
7637 (description "The beamer LaTeX class can be used for producing slides.
7638The class works in both PostScript and direct PDF output modes, using the
7639@code{pgf} graphics system for visual effects. Content is created in the
7640@code{frame} environment, and each frame can be made up of a number of slides
7641using a simple notation for specifying material to appear on each slide within
7642a frame. Short versions of title, authors, institute can also be specified as
7643optional parameters. Whole frame graphics are supported by plain frames. The
7644class supports @code{figure} and @code{table} environments, transparency
7645effects, varying slide transitions and animations.")
7646 ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is
7647 ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+.
7648 (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+))))
cafd4d38
RW
7649
7650(define-public texlive-latex-xmpincl
7651 (package
7652 (name "texlive-latex-xmpincl")
7653 (version (number->string %texlive-revision))
7654 (source
7655 (origin
7656 (method svn-fetch)
7657 (uri (texlive-ref "latex" "xmpincl"))
7658 (sha256
7659 (base32
7660 "0lq3dfb4fsw955gjwllnk7cg00ciq5mva64mlpbva6g2jz117734"))))
7661 (build-system texlive-build-system)
7662 (arguments '(#:tex-directory "latex/xmpincl"))
7663 (home-page "http://www.ctan.org/pkg/xmpincl")
7664 (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX")
7665 (description
7666 "The XMP (eXtensible Metadata platform) is a framework to add metadata to
7667digital material to enhance the workflow in publication. The essence is that
7668the metadata is stored in an XML file, and this XML stream is then embedded in
7669the file to which it applies.")
7670 (license license:gpl3+)))
f87dcb4d
RW
7671
7672(define-public texlive-latex-pdfx
7673 (package
7674 (name "texlive-latex-pdfx")
7675 (version (number->string %texlive-revision))
7676 (source
7677 (origin
7678 (method svn-fetch)
7679 (uri (texlive-ref "latex" "pdfx"))
7680 (sha256
7681 (base32
7682 "0ikxg8yzq78hy5b9x13d4nah46d0yvmwlqmdri06pygbx116dcac"))))
7683 (build-system texlive-build-system)
7684 (arguments
7685 '(#:tex-directory "latex/pdfx"
7686 #:phases
7687 (modify-phases %standard-phases
7688 (add-after 'unpack 'fix-encoding
7689 (lambda _
7690 (substitute* "pdfx.dtx"
7691 ((" .+umaczy") "umaczy"))
7692 #t))
7693 (add-before 'install 'install-tex-files
7694 (lambda* (#:key inputs outputs #:allow-other-keys)
7695 (let ((target (string-append (assoc-ref outputs "out")
7696 "/share/texmf-dist/tex/latex/pdfx")))
7697 (mkdir-p target)
7698 (copy-recursively (assoc-ref inputs "texlive-tex-pdfx") target)
7699 ;; Install the generated version in the "install" phase.
7700 (delete-file (string-append target "/pdfx.sty"))
7701 #t))))))
7702 (propagated-inputs
7703 `(("texlive-generic-pdftex" ,texlive-generic-pdftex)))
7704 (native-inputs
7705 `(("texlive-tex-pdfx"
7706 ,(origin
7707 (method svn-fetch)
7708 (uri (svn-reference
7709 (url (string-append "svn://www.tug.org/texlive/tags/"
7710 %texlive-tag "/Master/texmf-dist/"
7711 "/tex/latex/pdfx"))
7712 (revision %texlive-revision)))
7713 (file-name (string-append "texlive-tex-latex-pdfx-" version "-checkout"))
7714 (sha256
7715 (base32
7716 "14j1zsvqc59ims3sk34v6km8db6cimks28y5fcxcr5mi2ykvj4vf"))))))
7717 (home-page "https://www.ctan.org/pkg/pdfx")
7718 (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX")
7719 (description
7720 "This package helps LaTeX users to create PDF/X, PFD/A and other
7721standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.")
7722 (license license:lppl1.2+)))