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