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