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