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