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