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