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) | |
274 | ("cairo" ,cairo) | |
275 | ("fontconfig" ,fontconfig) | |
276 | ("fontforge" ,fontforge) | |
277 | ("freetype" ,freetype) | |
278 | ("gd" ,gd) | |
0256c746 | 279 | ("gmp" ,gmp) |
0aa34e82 AE |
280 | ("ghostscript" ,ghostscript) |
281 | ("graphite2" ,graphite2) | |
282 | ("harfbuzz" ,harfbuzz) | |
283 | ("icu4c" ,icu4c) | |
284 | ("libpaper" ,libpaper) | |
285 | ("libpng" ,libpng) | |
286 | ("libxaw" ,libxaw) | |
287 | ("libxt" ,libxt) | |
0256c746 | 288 | ("mpfr" ,mpfr) |
0aa34e82 AE |
289 | ("perl" ,perl) |
290 | ("pixman" ,pixman) | |
291 | ("poppler" ,poppler) | |
292 | ("potrace" ,potrace) | |
293 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) | |
294 | ("ruby" ,ruby) | |
295 | ("tcsh" ,tcsh) | |
296 | ("teckit" ,teckit) | |
297 | ("zlib" ,zlib) | |
298 | ("zziplib" ,zziplib))) | |
c4c4cc05 | 299 | (native-inputs |
e9a6d225 | 300 | `(("pkg-config" ,pkg-config))) |
eb0119ef AE |
301 | (arguments |
302 | `(#:out-of-source? #t | |
303 | #:configure-flags | |
304 | `("--disable-native-texlive-build" | |
594156ec MB |
305 | ;; XXX: This is needed because recent Poppler requires C++11 or later. |
306 | ;; Remove after switch to GCC >= 6. | |
307 | "CXXFLAGS=-std=gnu++11" | |
fd89b36b | 308 | "--with-system-cairo" |
eb0119ef | 309 | "--with-system-freetype2" |
fd89b36b | 310 | "--with-system-gd" |
0256c746 | 311 | "--with-system-gmp" |
be2c88ca | 312 | "--with-system-graphite2" |
c70cf7eb | 313 | "--with-system-harfbuzz" |
eb0119ef AE |
314 | "--with-system-icu" |
315 | "--with-system-libgs" | |
609578a7 | 316 | "--with-system-libpaper" |
eb0119ef | 317 | "--with-system-libpng" |
0256c746 | 318 | "--with-system-mpfr" |
fd89b36b | 319 | "--with-system-pixman" |
eb0119ef | 320 | "--with-system-poppler" |
75916982 | 321 | "--with-system-potrace" |
eb0119ef AE |
322 | "--with-system-teckit" |
323 | "--with-system-xpdf" | |
324 | "--with-system-zlib" | |
325 | "--with-system-zziplib") | |
2f4640e3 | 326 | |
7683bf11 EB |
327 | ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test. |
328 | ;; XXX FIXME fix luajit properly on mips64 and aarch64. | |
329 | #:tests? ,(let ((s (or (%current-target-system) | |
330 | (%current-system)))) | |
331 | (not (or (string-prefix? "aarch64" s) | |
332 | (string-prefix? "mips64" s)))) | |
eb0119ef | 333 | #:phases |
3e1ebaab | 334 | (modify-phases %standard-phases |
f1728d43 | 335 | (add-after 'unpack 'configure-ghostscript-executable |
3e1ebaab RW |
336 | ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows, |
337 | ;; and the "gs" ghostscript executable on Unix. It detects Unix by | |
338 | ;; checking for the existence of the /usr/bin directory. Since | |
59e80445 | 339 | ;; Guix System does not have /usr/bin, it is also detected as Windows. |
f1728d43 | 340 | (lambda* (#:key inputs #:allow-other-keys) |
3e1ebaab RW |
341 | (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl" |
342 | (("gswin32c") "gs")) | |
f1728d43 RW |
343 | (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl" |
344 | (("\"gs\"") | |
345 | (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\""))) | |
346 | #t)) | |
347 | (add-after 'unpack 'use-code-for-new-poppler | |
348 | (lambda _ | |
0fa50555 | 349 | (copy-file "texk/web2c/pdftexdir/pdftoepdf-poppler0.72.0.cc" |
f1728d43 | 350 | "texk/web2c/pdftexdir/pdftoepdf.cc") |
0fa50555 | 351 | (copy-file "texk/web2c/pdftexdir/pdftosrc-poppler0.72.0.cc" |
f1728d43 | 352 | "texk/web2c/pdftexdir/pdftosrc.cc") |
3e1ebaab | 353 | #t)) |
be200ef3 MB |
354 | (add-after 'unpack 'disable-failing-test |
355 | (lambda _ | |
356 | ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28: | |
357 | ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>. | |
358 | (substitute* "texk/web2c/omegafonts/check.test" | |
21f7d88e | 359 | (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1") |
be200ef3 MB |
360 | "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77")) |
361 | #t)) | |
3e1ebaab RW |
362 | (add-after 'install 'postint |
363 | (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) | |
364 | (let* ((out (assoc-ref outputs "out")) | |
365 | (share (string-append out "/share")) | |
366 | (texlive-extra (assoc-ref inputs "texlive-extra-src")) | |
367 | (unpack (assoc-ref %standard-phases 'unpack)) | |
368 | (patch-source-shebangs | |
369 | (assoc-ref %standard-phases 'patch-source-shebangs))) | |
1574932d RW |
370 | (substitute* (string-append share "/texmf-dist/web2c/texmf.cnf") |
371 | ;; Don't truncate lines. | |
372 | (("^error_line = .*$") "error_line = 254\n") | |
373 | (("^half_error_line = .*$") "half_error_line = 238\n") | |
374 | (("^max_print_line = .*$") "max_print_line = 1000\n")) | |
3e1ebaab RW |
375 | ;; Create symbolic links for the latex variants and their |
376 | ;; man pages. | |
377 | (with-directory-excursion (string-append out "/bin/") | |
378 | (for-each symlink | |
379 | '("pdftex" "pdftex" "xetex" "luatex") | |
380 | '("latex" "pdflatex" "xelatex" "lualatex"))) | |
381 | (with-directory-excursion (string-append share "/man/man1/") | |
382 | (symlink "luatex.1" "lualatex.1")) | |
383 | ;; Unpack texlive-extra and install tlpkg. | |
384 | (mkdir "texlive-extra") | |
385 | (with-directory-excursion "texlive-extra" | |
386 | (apply unpack (list #:source texlive-extra)) | |
387 | (apply patch-source-shebangs (list #:source texlive-extra)) | |
388 | (invoke "mv" "tlpkg" share)) | |
389 | ;; texlua shebangs are not patched by the patch-source-shebangs | |
390 | ;; phase because the texlua executable does not exist at that | |
391 | ;; time. | |
392 | (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin")) | |
393 | (with-directory-excursion out | |
394 | (patch-source-shebangs)))))))) | |
a1b4d62c RW |
395 | (native-search-paths |
396 | (list (search-path-specification | |
397 | (variable "TEXMF") | |
398 | (files '("share/texmf-dist")) | |
399 | (separator #f)) | |
400 | (search-path-specification | |
401 | (variable "TEXMFCNF") | |
402 | (files '("share/texmf-dist/web2c")) | |
403 | (separator #f)))) | |
0aa34e82 AE |
404 | (synopsis "TeX Live, a package of the TeX typesetting system") |
405 | (description | |
406 | "TeX Live provides a comprehensive TeX document production system. | |
407 | It includes all the major TeX-related programs, macro packages, and fonts | |
408 | that are free software, including support for many languages around the | |
409 | world. | |
410 | ||
411 | This package contains the binaries.") | |
132e14b4 EF |
412 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
413 | (home-page "https://www.tug.org/texlive/"))) | |
0aa34e82 | 414 | |
2cece695 | 415 | \f |
7a9b737a RW |
416 | (define texlive-docstrip |
417 | (package | |
418 | (inherit (simple-texlive-package | |
419 | "texlive-docstrip" | |
420 | (list "/tex/latex/base/docstrip.tex") | |
421 | (base32 | |
422 | "17vdy43d9vknldz7wb69hp33r8awmdvn4xszamvgs5ikcl4cp289") | |
423 | #:trivial? #t)) | |
424 | (home-page "https://www.ctan.org/texlive") | |
425 | (synopsis "Utility to strip documentation from TeX files.") | |
426 | (description "This package provides the docstrip utility to strip | |
427 | documentation from TeX files. It is part of the LaTeX base.") | |
428 | (license license:lppl1.3+))) | |
429 | ||
2cece695 RW |
430 | (define-public texlive-unicode-data |
431 | (package | |
432 | (inherit (simple-texlive-package | |
433 | "texlive-unicode-data" | |
434 | (list "/tex/generic/unicode-data/" | |
435 | "/doc/generic/unicode-data/") | |
436 | (base32 | |
437 | "1j63kz29arfiydb8r1a53q1r4zyk1yjbcq0w9i93zddczgqzgbfb") | |
438 | #:trivial? #t)) | |
439 | (home-page "https://www.ctan.org/pkg/unicode-data") | |
440 | (synopsis "Unicode data and loaders for TeX") | |
441 | (description "This bundle provides generic access to Unicode Consortium | |
442 | data for TeX use. It contains a set of text files provided by the Unicode | |
443 | Consortium which are currently all from Unicode 8.0.0, with the exception of | |
444 | @code{MathClass.txt} which is not currently part of the Unicode Character | |
445 | Database. Accompanying these source data are generic TeX loader files | |
446 | allowing this data to be used as part of TeX runs, in particular in building | |
447 | format files. Currently there are two loader files: one for general character | |
448 | set up and one for initializing XeTeX character classes as has been carried | |
449 | out to date by @code{unicode-letters.tex}. ") | |
450 | (license license:lppl1.3c+))) | |
451 | ||
452 | (define-public texlive-generic-unicode-data | |
453 | (deprecated-package "texlive-generic-unicode-data" texlive-unicode-data)) | |
454 | ||
92b4a48c RW |
455 | (define-public texlive-hyphen-base |
456 | (package | |
457 | (inherit (simple-texlive-package | |
458 | "texlive-hyphen-base" | |
459 | (list "/tex/generic/config/language.dat" | |
460 | "/tex/generic/config/language.dat.lua" | |
461 | "/tex/generic/config/language.def" | |
462 | "/tex/generic/config/language.us" | |
463 | "/tex/generic/config/language.us.def" | |
464 | "/tex/generic/config/language.us.lua" | |
465 | "/tex/generic/hyphen/dumyhyph.tex" | |
466 | "/tex/generic/hyphen/hyphen.tex" | |
467 | "/tex/generic/hyphen/hypht1.tex" | |
468 | "/tex/generic/hyphen/zerohyph.tex") | |
469 | (base32 | |
470 | "002g5zhzbj3ikgg8zidagdp605ac9f4qmfl148mp0mbpz1svk0ni") | |
471 | #:trivial? #t)) | |
472 | (home-page "https://tug.org/texlive/") | |
473 | (synopsis "Core hyphenation support files") | |
474 | (description "This package includes Knuth's original @file{hyphen.tex}, | |
475 | @file{zerohyph.tex} to disable hyphenation, @file{language.us} which starts | |
476 | the autogenerated files @file{language.dat} and @file{language.def} (and | |
477 | default versions of those), etc.") | |
478 | (license license:knuth))) | |
479 | ||
659fda6c RW |
480 | ;; TODO: This package should not exist. There should not be a single package |
481 | ;; containing all of /dvips. These really belong to different packages. | |
9d913b25 RW |
482 | (define-public texlive-dvips |
483 | (package | |
659fda6c RW |
484 | (inherit (simple-texlive-package |
485 | "texlive-dvips" | |
486 | (list "/fonts/map/dvips/" | |
487 | "/fonts/enc/dvips/base/" | |
488 | "/dvips/") | |
489 | (base32 | |
490 | "1di07wx8wjczddmagq5z082l2has3inzk5jwkqh4i6wv1qdfqpp6") | |
491 | #:trivial? #t)) | |
b8d8806b | 492 | (home-page "https://www.ctan.org/pkg/dvips") |
9d913b25 RW |
493 | (synopsis "DVI to PostScript drivers") |
494 | (description "This package provides files needed for converting DVI files | |
495 | to PostScript.") | |
496 | ;; Various free software licenses apply to individual files. | |
497 | (license (list license:lppl1.3c+ | |
498 | license:expat | |
499 | license:lgpl3+)))) | |
500 | ||
b8df0d1b | 501 | (define-public texlive-tex-ini-files |
453aae66 | 502 | (package |
b8df0d1b RW |
503 | (inherit (simple-texlive-package |
504 | "texlive-tex-ini-files" | |
505 | (list "/tex/generic/tex-ini-files/") | |
506 | (base32 | |
507 | "0q1g62jg0qiqslm93ycvm30bw8ydmssjdshzsnzl7n2vpd62qfi2") | |
508 | #:trivial? #t)) | |
b8d8806b | 509 | (home-page "https://www.ctan.org/pkg/tex-ini-files") |
453aae66 RW |
510 | (synopsis "Files for creating TeX formats") |
511 | (description "This bundle provides a collection of model \".ini\" files | |
512 | for creating TeX formats. These files are commonly used to introduced | |
513 | distribution-dependent variations in formats. They are also used to | |
514 | allow existing format source files to be used with newer engines, for example | |
515 | to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.") | |
516 | (license license:public-domain))) | |
517 | ||
b8df0d1b RW |
518 | (define-public texlive-generic-tex-ini-files |
519 | (deprecated-package "texlive-generic-tex-ini-files" texlive-tex-ini-files)) | |
520 | ||
8ada0f0b RW |
521 | (define-public texlive-metafont-base |
522 | (package | |
523 | (name "texlive-metafont-base") | |
524 | (version (number->string %texlive-revision)) | |
525 | (source (origin | |
526 | (method svn-fetch) | |
527 | (uri (svn-reference | |
528 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
529 | %texlive-tag "/Master/texmf-dist/" | |
530 | "/metafont")) | |
531 | (revision %texlive-revision))) | |
1dec413a | 532 | (file-name (string-append name "-" version "-checkout")) |
8ada0f0b RW |
533 | (sha256 |
534 | (base32 | |
535 | "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5")))) | |
536 | (build-system gnu-build-system) | |
537 | (arguments | |
538 | `(#:tests? #f ; no test target | |
539 | #:phases | |
540 | (modify-phases %standard-phases | |
541 | (delete 'configure) | |
542 | (replace 'build | |
543 | (lambda* (#:key inputs #:allow-other-keys) | |
544 | (let ((cwd (getcwd))) | |
545 | (setenv "MFINPUTS" | |
546 | (string-append cwd "/base:" | |
547 | cwd "/misc:" | |
548 | cwd "/roex:" | |
549 | cwd "/feynmf:" | |
550 | cwd "/mfpic:" | |
551 | cwd "/config"))) | |
552 | (mkdir "build") | |
553 | (with-directory-excursion "build" | |
3730a107 | 554 | (invoke "inimf" "mf.mf")))) |
8ada0f0b RW |
555 | (replace 'install |
556 | (lambda* (#:key outputs #:allow-other-keys) | |
557 | (let* ((out (assoc-ref outputs "out")) | |
558 | (base (string-append out "/share/texmf-dist/web2c")) | |
559 | (mf (string-append out "/share/texmf-dist/metafont/base"))) | |
560 | (mkdir-p base) | |
561 | (mkdir-p mf) | |
562 | (install-file "build/mf.base" base) | |
563 | (copy-recursively "base" mf) | |
564 | #t)))))) | |
565 | (native-inputs | |
566 | `(("texlive-bin" ,texlive-bin))) | |
b8d8806b | 567 | (home-page "https://www.ctan.org/pkg/metafont") |
8ada0f0b RW |
568 | (synopsis "Metafont base files") |
569 | (description "This package provides the Metafont base files needed to | |
570 | build fonts using the Metafont system.") | |
571 | (license license:knuth))) | |
572 | ||
e9816fcb RW |
573 | (define-public texlive-fontinst |
574 | (let ((template (simple-texlive-package | |
575 | "texlive-fontinst" | |
576 | (list "/doc/fonts/fontinst/" | |
577 | "/doc/man/man1/fontinst.1" | |
578 | "/doc/man/man1/fontinst.man1.pdf" | |
579 | ||
580 | ;; This is used to build parts of | |
581 | ;; /tex/fontinst/{base,misc}/ and | |
582 | ;; /tex/latex/fontinst/fontdoc.sty. | |
583 | "/source/fontinst/base/" | |
584 | ||
585 | ;; These are not generated. | |
586 | "/tex/fontinst/base/bbox.sty" | |
587 | "/tex/fontinst/base/multislot.sty" | |
588 | "/tex/fontinst/misc/glyphbox.mtx" | |
589 | "/tex/fontinst/misc/glyphoff.mtx" | |
590 | "/tex/fontinst/misc/glyphon.mtx" | |
591 | "/tex/fontinst/misc/kernoff.mtx" | |
592 | "/tex/fontinst/misc/kernon.mtx" | |
593 | ||
594 | "/tex/fontinst/latinetx/" | |
595 | "/tex/fontinst/latinmtx/" | |
596 | "/tex/fontinst/mathmtx/" | |
597 | "/tex/fontinst/smblmtx/" | |
598 | ||
599 | "/scripts/texlive/fontinst.sh") | |
600 | (base32 | |
601 | "09drlb0krhnizw92xlm5wxzzpgn3shcxd684xlg0zc5p16l47w6h") | |
602 | #:trivial? #t))) | |
603 | (package | |
604 | (inherit template) | |
605 | (arguments | |
606 | (substitute-keyword-arguments (package-arguments template) | |
607 | ((#:modules _ '()) | |
608 | '((guix build gnu-build-system) | |
609 | (guix build utils) | |
610 | (ice-9 match))) | |
611 | ((#:phases phases) | |
612 | `(modify-phases ,phases | |
613 | (replace 'build | |
614 | (lambda* (#:key inputs #:allow-other-keys) | |
615 | (setenv "TEXINPUTS" | |
616 | (string-append (getcwd) "//:" | |
617 | (getcwd) "/source/fontinst/base//:" | |
618 | (assoc-ref inputs "texlive-docstrip") "//")) | |
619 | (mkdir "build") | |
620 | (invoke "tex" "-ini" "-interaction=scrollmode" | |
621 | "-output-directory=build" | |
622 | "fontinst.ins"))) | |
623 | ;; Since we're using docstrip without LaTeX we can't set \UseTDS | |
624 | ;; or \BaseDirectory, so the generated files are just dumped in | |
625 | ;; the "build" directory. | |
626 | (add-after 'install 'install-generated-files | |
627 | (lambda* (#:key outputs #:allow-other-keys) | |
628 | (let* ((out (assoc-ref outputs "out")) | |
629 | (root (string-append out "/share/texmf-dist"))) | |
630 | (for-each (match-lambda | |
631 | ((dir files ...) | |
632 | (for-each (lambda (file) | |
633 | (install-file | |
634 | (string-append "build/" file) | |
635 | (string-append root dir))) | |
636 | files))) | |
637 | '(("/tex/fontinst/base" | |
638 | "fontinst.sty" | |
639 | "cfntinst.sty" | |
640 | "xfntinst.sty" | |
641 | "finstmsc.sty" | |
642 | "fontinst.ini") | |
643 | ("/tex/fontinst/misc" | |
644 | "csc2x.tex" | |
645 | "csckrn2x.tex" | |
646 | "osf2x.tex") | |
647 | ("/tex/latex/fontinst" | |
648 | "fontdoc.sty"))) | |
649 | #t))))))) | |
650 | (native-inputs | |
651 | `(("texlive-bin" ,texlive-bin) | |
652 | ("texlive-docstrip" ,texlive-docstrip))) | |
653 | (home-page "https://www.ctan.org/pkg/fontinst") | |
654 | (synopsis "Tools for converting and installing fonts for TeX and LaTeX") | |
655 | (description "This package provides TeX macros for converting Adobe Font | |
513fff4c RW |
656 | Metric files to TeX metric and virtual font format. Fontinst helps mainly |
657 | with the number crunching and shovelling parts of font installation. This | |
658 | means in practice that it creates a number of files which give the TeX | |
659 | metrics (and related information) for a font family that TeX needs to do any | |
660 | typesetting in these fonts.") | |
e9816fcb RW |
661 | (license license:lppl1.1+)))) |
662 | ||
663 | (define-public texlive-tex-fontinst-base | |
664 | (deprecated-package "texlive-tex-fontinst-base" texlive-fontinst)) | |
513fff4c | 665 | |
dea67d8a RW |
666 | (define-public texlive-fontname |
667 | (package | |
668 | (name "texlive-fontname") | |
669 | (version (number->string %texlive-revision)) | |
670 | (source (origin | |
671 | (method svn-fetch) | |
672 | (uri (svn-reference | |
673 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
674 | %texlive-tag "/Master/texmf-dist/" | |
675 | "/fonts/map/fontname")) | |
676 | (revision %texlive-revision))) | |
b8e213cb | 677 | (file-name (string-append name "-" version "-checkout")) |
dea67d8a RW |
678 | (sha256 |
679 | (base32 | |
d4d9a1ec | 680 | "05rbn7z30xawd3n6w7c3ijp2yc67ga220jgqmkla9pd9wx185rzq")))) |
dea67d8a RW |
681 | (build-system trivial-build-system) |
682 | (arguments | |
683 | `(#:modules ((guix build utils)) | |
684 | #:builder | |
685 | (begin | |
686 | (use-modules (guix build utils)) | |
687 | (let ((target (string-append (assoc-ref %outputs "out") | |
688 | "/share/texmf-dist/fonts/map/fontname"))) | |
689 | (mkdir-p target) | |
690 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
691 | #t)))) | |
692 | (home-page "https://www.ctan.org/pkg/fontname") | |
693 | (synopsis "Scheme for naming fonts in TeX") | |
694 | (description "This is Fontname, a naming scheme for (the base part of) | |
695 | external TeX font filenames. This makes at most eight-character names | |
696 | from (almost) arbitrarily complex font names, thus helping portability of TeX | |
697 | documents.") | |
698 | (license license:public-domain))) | |
699 | ||
3c4f1ec7 RW |
700 | (define-public texlive-fonts-cm |
701 | (package | |
2b63e54b RW |
702 | (inherit (simple-texlive-package |
703 | "texlive-fonts-cm" | |
704 | (list "/fonts/source/public/cm/" | |
705 | "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map" | |
706 | "/doc/fonts/cm/README" | |
707 | "/doc/fonts/cm/README-cmps.txt") | |
708 | (base32 | |
709 | "1h0q71paqmg1xjg6k35ni2i6m93kmlq9rdwm913xg9n4qngywl18"))) | |
710 | (outputs '("out" "doc")) | |
3c4f1ec7 RW |
711 | (build-system gnu-build-system) |
712 | (arguments | |
713 | `(#:modules ((guix build gnu-build-system) | |
714 | (guix build utils) | |
715 | (srfi srfi-1) | |
716 | (srfi srfi-26)) | |
717 | #:tests? #f ; no tests | |
718 | #:phases | |
719 | (modify-phases %standard-phases | |
720 | (delete 'configure) | |
721 | (replace 'build | |
722 | (lambda* (#:key inputs #:allow-other-keys) | |
723 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
724 | ;; Tell mf where to find mf.base | |
725 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
726 | ;; Tell mf where to look for source files | |
727 | (setenv "MFINPUTS" | |
2b63e54b | 728 | (string-append (getcwd) "/fonts/source/public/cm/:" |
3c4f1ec7 | 729 | mf "/share/texmf-dist/metafont/base"))) |
2b63e54b RW |
730 | (for-each make-file-writable |
731 | (cons "fonts/source/public/cm/" | |
732 | (find-files "fonts/source/public/cm/" ".*"))) | |
733 | (let ((build (string-append (getcwd) "/build")) | |
734 | (pkdir (string-append (getcwd) "/pk/ljfour/public/cm/dpi600"))) | |
735 | (mkdir-p pkdir) | |
736 | (mkdir-p build) | |
737 | (with-directory-excursion "fonts/source/public/cm/" | |
738 | (for-each (lambda (font) | |
739 | (format #t "building font ~a\n" font) | |
740 | (invoke "mf" "-progname=mf" | |
741 | (string-append "-output-directory=" build) | |
742 | (string-append "\\" | |
743 | "mode:=ljfour; " | |
744 | "mag:=1+0/600; " | |
745 | "scrollmode; " | |
746 | "input " | |
747 | (basename font ".mf"))) | |
748 | (invoke "gftopk" | |
749 | (string-append build "/" | |
750 | (basename font ".mf") ".600gf") | |
751 | (string-append pkdir "/" | |
752 | (basename font ".mf") ".pk"))) | |
753 | (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$")))) | |
ff440d62 | 754 | #t)) |
3c4f1ec7 | 755 | (replace 'install |
6534e885 | 756 | (lambda* (#:key inputs outputs #:allow-other-keys) |
2b63e54b RW |
757 | (let* ((out (assoc-ref outputs "out")) |
758 | (doc (assoc-ref outputs "doc")) | |
759 | (source (assoc-ref inputs "source")) | |
760 | (fonts (string-append out "/share/texmf-dist/fonts/")) | |
761 | (pk (string-append fonts "pk")) | |
762 | (tfm (string-append fonts "tfm/public/cm")) | |
763 | (mf (string-append fonts "source/public/cm"))) | |
3c4f1ec7 RW |
764 | (for-each (cut install-file <> tfm) |
765 | (find-files "build" "\\.*")) | |
766 | (for-each (cut install-file <> mf) | |
767 | (find-files "." "\\.mf")) | |
26a05061 | 768 | (copy-recursively "pk" pk) |
2b63e54b RW |
769 | (copy-recursively |
770 | (string-append source "/doc") | |
771 | (string-append doc "/doc")) | |
772 | (install-file | |
773 | (string-append source "/fonts/map/dvips/cm/cmtext-bsr-interpolated.map") | |
774 | (string-append fonts "/map/dvips/cm/cmtext-bsr-interpolated.map")) | |
3c4f1ec7 RW |
775 | #t)))))) |
776 | (native-inputs | |
777 | `(("texlive-bin" ,texlive-bin) | |
0512ae30 | 778 | ("texlive-metafont-base" ,texlive-metafont-base))) |
b8d8806b | 779 | (home-page "https://www.ctan.org/pkg/cm") |
3c4f1ec7 RW |
780 | (synopsis "Computer Modern fonts for TeX") |
781 | (description "This package provides the Computer Modern fonts by Donald | |
782 | Knuth. The Computer Modern font family is a large collection of text, | |
783 | display, and mathematical fonts in a range of styles, based on Monotype Modern | |
784 | 8A.") | |
785 | (license license:knuth))) | |
786 | ||
4e9242aa RW |
787 | (define-public texlive-fonts-cm-super |
788 | (package | |
789 | (name "texlive-fonts-cm-super") | |
790 | (version (number->string %texlive-revision)) | |
791 | (source (origin | |
792 | (method svn-fetch) | |
793 | (uri (svn-reference | |
794 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
795 | %texlive-tag "/Master/texmf-dist/" | |
796 | "/tex/latex/cm-super")) | |
797 | (revision %texlive-revision))) | |
798 | (file-name (string-append name "-" version "-checkout")) | |
799 | (sha256 | |
800 | (base32 | |
801 | "0ybb4gi2rblzpb6wfzm2wk7dj3y2jnmkzsla7mz7g3zc12y4r2b9")))) | |
802 | (build-system trivial-build-system) | |
803 | (arguments | |
804 | `(#:modules ((guix build utils) | |
805 | (ice-9 match)) | |
806 | #:builder | |
807 | (begin | |
808 | (use-modules (guix build utils) | |
809 | (ice-9 match)) | |
810 | (let ((root (string-append (assoc-ref %outputs "out") | |
811 | "/share/texmf-dist/")) | |
812 | (pkgs '(("source" . "tex/latex/cm-super") | |
813 | ("cm-super-afm" . "fonts/afm/public/cm-super") | |
814 | ("cm-super-type1" . "fonts/type1/public/cm-super") | |
815 | ("cm-super-enc" . "fonts/enc/dvips/cm-super") | |
816 | ("cm-super-map" . "fonts/map/dvips/cm-super") | |
817 | ("cm-super-vtex" . "fonts/map/vtex/cm-super")))) | |
818 | (for-each (match-lambda | |
819 | ((pkg . dir) | |
820 | (let ((target (string-append root dir))) | |
821 | (mkdir-p target) | |
822 | (copy-recursively (assoc-ref %build-inputs pkg) | |
823 | target)))) | |
824 | pkgs) | |
825 | #t)))) | |
826 | (native-inputs | |
827 | `(("cm-super-vtex" | |
828 | ,(origin | |
829 | (method svn-fetch) | |
830 | (uri (svn-reference | |
831 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
832 | %texlive-tag "/Master/texmf-dist/" | |
833 | "/fonts/map/vtex/cm-super")) | |
834 | (revision %texlive-revision))) | |
835 | (file-name (string-append name "-map-vtex-" version "-checkout")) | |
836 | (sha256 | |
837 | (base32 | |
838 | "14c9allsgfv6za9wznz4cxqxwz5nsmj8rnwvxams8fhs5rvglxqi")))) | |
839 | ("cm-super-afm" | |
840 | ,(origin | |
841 | (method svn-fetch) | |
842 | (uri (svn-reference | |
843 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
844 | %texlive-tag "/Master/texmf-dist/" | |
845 | "/fonts/afm/public/cm-super")) | |
846 | (revision %texlive-revision))) | |
847 | (file-name (string-append name "-afm-" version "-checkout")) | |
848 | (sha256 | |
849 | (base32 | |
850 | "048ih65f2nghdabdar2p957c4s2spgllmy2gxdscddwqpnmd26yn")))) | |
851 | ("cm-super-type1" | |
852 | ,(origin | |
853 | (method svn-fetch) | |
854 | (uri (svn-reference | |
855 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
856 | %texlive-tag "/Master/texmf-dist/" | |
857 | "/fonts/type1/public/cm-super")) | |
858 | (revision %texlive-revision))) | |
859 | (file-name (string-append name "-type1-" version "-checkout")) | |
860 | (sha256 | |
861 | (base32 | |
862 | "1140swk3w2ka0y4zdsq6pdifrdanb281q71p5gngbbjxdxjxf4qx")))) | |
863 | ("cm-super-map" | |
864 | ,(origin | |
865 | (method svn-fetch) | |
866 | (uri (svn-reference | |
867 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
868 | %texlive-tag "/Master/texmf-dist/" | |
869 | "/fonts/map/dvips/cm-super")) | |
870 | (revision %texlive-revision))) | |
871 | (file-name (string-append name "-map-" version "-checkout")) | |
872 | (sha256 | |
873 | (base32 | |
874 | "10r6xqbwf9wk3ylg7givwyrw1952zydc6p7fw29zjf8ijl0lndim")))) | |
875 | ("cm-super-enc" | |
876 | ,(origin | |
877 | (method svn-fetch) | |
878 | (uri (svn-reference | |
879 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
880 | %texlive-tag "/Master/texmf-dist/" | |
881 | "/fonts/enc/dvips/cm-super")) | |
882 | (revision %texlive-revision))) | |
883 | (file-name (string-append name "-enc-" version "-checkout")) | |
884 | (sha256 | |
885 | (base32 | |
886 | "1pgksy96gfgyjxfhs2k04bgg7nr7i128y01kjcahr7n38080h4ij")))))) | |
887 | (home-page "https://www.ctan.org/pkg/cm-super") | |
888 | (synopsis "Computer Modern Super family of fonts") | |
889 | (description "The CM-Super family provides Adobe Type 1 fonts that replace | |
890 | the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete, | |
891 | T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European | |
892 | languages except Greek), and bringing many ameliorations in typesetting | |
893 | quality. The fonts exhibit the same metrics as the METAFONT-encoded | |
894 | originals.") | |
895 | ;; With font exception | |
896 | (license license:gpl2+))) | |
897 | ||
c2a1fe4a RW |
898 | (define-public texlive-fonts-lm |
899 | (package | |
900 | (name "texlive-fonts-lm") | |
901 | (version "2.004") | |
902 | (source (origin | |
903 | (method url-fetch) | |
904 | (uri (string-append "http://www.gust.org.pl/projects/e-foundry/" | |
905 | "latin-modern/download/lm" version "bas.zip")) | |
906 | (sha256 | |
907 | (base32 | |
908 | "0z2s253y751m2ci5aw8nq0sf2kyg9hpimv2gyixkch9d07m2b9wp")))) | |
909 | (build-system trivial-build-system) | |
910 | (arguments | |
911 | `(#:modules ((guix build utils)) | |
912 | #:builder | |
913 | (begin | |
914 | (use-modules (guix build utils)) | |
915 | (let ((root (string-append (assoc-ref %outputs "out") | |
916 | "/share/texmf-dist/"))) | |
917 | (mkdir-p root) | |
918 | (with-directory-excursion root | |
919 | (invoke (string-append (assoc-ref %build-inputs "unzip") | |
920 | "/bin/unzip") | |
921 | (assoc-ref %build-inputs "source"))) | |
922 | #t)))) | |
923 | (native-inputs | |
924 | `(("unzip" ,unzip))) | |
925 | (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/") | |
926 | (synopsis "Latin Modern family of fonts") | |
927 | (description "The Latin Modern fonts are derived from the famous Computer | |
928 | Modern fonts designed by Donald E. Knuth and described in Volume E of his | |
929 | Computers & Typesetting series.") | |
930 | ;; The GUST font license (GFL) is legally identical to the LaTeX Project | |
931 | ;; Public License (LPPL), version 1.3c or later, but comes with an | |
932 | ;; additional but not legally binding clause. | |
933 | (license license:lppl1.3c+))) | |
934 | ||
5ebba61a RW |
935 | (define-public texlive-fonts-knuth-lib |
936 | (package | |
937 | (name "texlive-fonts-knuth-lib") | |
938 | (version (number->string %texlive-revision)) | |
939 | (source (origin | |
940 | (method svn-fetch) | |
941 | (uri (svn-reference | |
942 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
943 | %texlive-tag "/Master/texmf-dist/" | |
944 | "/fonts/source/public/knuth-lib")) | |
945 | (revision %texlive-revision))) | |
6b286e42 | 946 | (file-name (string-append name "-" version "-checkout")) |
5ebba61a RW |
947 | (sha256 |
948 | (base32 | |
949 | "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y")))) | |
950 | (build-system gnu-build-system) | |
951 | (arguments | |
952 | `(#:modules ((guix build gnu-build-system) | |
953 | (guix build utils) | |
954 | (srfi srfi-26)) | |
955 | #:tests? #f ; no tests | |
956 | #:phases | |
957 | (modify-phases %standard-phases | |
958 | (delete 'configure) | |
959 | (replace 'build | |
960 | (lambda* (#:key inputs #:allow-other-keys) | |
961 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
962 | ;; Tell mf where to find mf.base | |
963 | (setenv "MFBASES" | |
964 | (string-append mf "/share/texmf-dist/web2c")) | |
965 | ;; Tell mf where to look for source files | |
966 | (setenv "MFINPUTS" | |
967 | (string-append (getcwd) ":" | |
968 | mf "/share/texmf-dist/metafont/base"))) | |
969 | (mkdir "build") | |
96f5377d RW |
970 | (for-each (lambda (font) |
971 | (format #t "building font ~a\n" font) | |
972 | (invoke "mf" "-progname=mf" | |
973 | "-output-directory=build" | |
974 | (string-append "\\" | |
975 | "mode:=ljfour; " | |
976 | "mag:=1; " | |
977 | "batchmode; " | |
978 | "input " font))) | |
979 | (find-files "." "(manfnt|logo.+)\\.mf$")) | |
980 | #t)) | |
5ebba61a RW |
981 | (replace 'install |
982 | (lambda* (#:key outputs #:allow-other-keys) | |
983 | (let* ((out (assoc-ref outputs "out")) | |
984 | (tfm (string-append | |
985 | out "/share/texmf-dist/fonts/tfm/public/knuth-lib")) | |
986 | (mf (string-append | |
987 | out "/share/texmf-dist/fonts/source/public/knuth-lib"))) | |
988 | (for-each (cut install-file <> tfm) | |
989 | (find-files "build" "\\.*")) | |
990 | (for-each (cut install-file <> mf) | |
991 | (find-files "." "\\.mf")) | |
992 | #t)))))) | |
993 | (native-inputs | |
994 | `(("texlive-bin" ,texlive-bin) | |
995 | ("texlive-metafont-base" ,texlive-metafont-base))) | |
996 | (home-page "https://www.ctan.org/pkg/knuth-lib") | |
997 | (synopsis "Small library of METAFONT sources") | |
998 | (description "This is a collection of core TeX and METAFONT macro files | |
999 | from Donald Knuth, including the plain format, plain base, and the MF logo | |
1000 | fonts.") | |
1001 | (license license:knuth))) | |
1002 | ||
a00d5933 RW |
1003 | (define-public texlive-fonts-latex |
1004 | (package | |
1005 | (name "texlive-fonts-latex") | |
1006 | (version (number->string %texlive-revision)) | |
1007 | (source (origin | |
1008 | (method svn-fetch) | |
1009 | (uri (svn-reference | |
1010 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1011 | %texlive-tag "/Master/texmf-dist/" | |
1012 | "/fonts/source/public/latex-fonts")) | |
1013 | (revision %texlive-revision))) | |
a4550e7d | 1014 | (file-name (string-append name "-" version "-checkout")) |
a00d5933 RW |
1015 | (sha256 |
1016 | (base32 | |
1017 | "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps")))) | |
1018 | (build-system gnu-build-system) | |
1019 | (arguments | |
1020 | `(#:modules ((guix build gnu-build-system) | |
1021 | (guix build utils) | |
1022 | (srfi srfi-1) | |
1023 | (srfi srfi-26)) | |
1024 | #:tests? #f ; no tests | |
1025 | #:phases | |
1026 | (modify-phases %standard-phases | |
1027 | (delete 'configure) | |
1028 | (replace 'build | |
1029 | (lambda* (#:key inputs #:allow-other-keys) | |
1030 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
1031 | ;; Tell mf where to find mf.base | |
1032 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
1033 | ;; Tell mf where to look for source files | |
1034 | (setenv "MFINPUTS" | |
1035 | (string-append (getcwd) ":" | |
1036 | mf "/share/texmf-dist/metafont/base:" | |
1037 | (assoc-ref inputs "texlive-fonts-cm") | |
1038 | "/share/texmf-dist/fonts/source/public/cm"))) | |
1039 | (mkdir "build") | |
806faaab MW |
1040 | (for-each (lambda (font) |
1041 | (format #t "building font ~a\n" font) | |
1042 | (invoke "mf" "-progname=mf" | |
1043 | "-output-directory=build" | |
1044 | (string-append "\\" | |
1045 | "mode:=ljfour; " | |
1046 | "mag:=1; " | |
1047 | "batchmode; " | |
1048 | "input " font))) | |
1049 | '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8" | |
1050 | "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8" | |
1051 | "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10" | |
1052 | "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8" | |
1053 | "line10" "linew10")) | |
1054 | #t)) | |
a00d5933 RW |
1055 | (replace 'install |
1056 | (lambda* (#:key outputs #:allow-other-keys) | |
1057 | (let* ((out (assoc-ref outputs "out")) | |
1058 | (tfm (string-append | |
1059 | out "/share/texmf-dist/fonts/tfm/public/latex-fonts")) | |
1060 | (mf (string-append | |
1061 | out "/share/texmf-dist/fonts/source/public/latex-fonts"))) | |
1062 | (for-each (cut install-file <> tfm) | |
1063 | (find-files "build" "\\.*")) | |
1064 | (for-each (cut install-file <> mf) | |
1065 | (find-files "." "\\.mf")) | |
1066 | #t)))))) | |
1067 | (native-inputs | |
1068 | `(("texlive-bin" ,texlive-bin) | |
1069 | ("texlive-metafont-base" ,texlive-metafont-base) | |
1070 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
b8d8806b | 1071 | (home-page "https://www.ctan.org/pkg/latex-fonts") |
a00d5933 RW |
1072 | (synopsis "Collection of fonts used in LaTeX distributions") |
1073 | (description "This is a collection of fonts for use with standard LaTeX | |
1074 | packages and classes. It includes invisible fonts (for use with the slides | |
1075 | class), line and circle fonts (for use in the picture environment) and LaTeX | |
1076 | symbol fonts.") | |
1077 | (license license:lppl1.2+))) | |
1078 | ||
6072f82a RW |
1079 | (define-public texlive-latex-mflogo |
1080 | (package | |
1081 | (name "texlive-latex-mflogo") | |
1082 | (version (number->string %texlive-revision)) | |
1083 | (source | |
1084 | (origin | |
1085 | (method svn-fetch) | |
1086 | (uri (texlive-ref "latex" "mflogo")) | |
1087 | (sha256 | |
1088 | (base32 | |
1089 | "15i2ib6nvhf31g1b92c6njf7n0g29znlq7hbfp9ii7qabhcwwvrj")))) | |
1090 | (build-system texlive-build-system) | |
1091 | (arguments '(#:tex-directory "latex/mflogo")) | |
1092 | (home-page "http://www.ctan.org/pkg/mflogo") | |
1093 | (synopsis "LaTeX support for Metafont logo fonts") | |
1094 | (description | |
1095 | "This package provides LaTeX and font definition files to access the | |
1096 | Knuthian mflogo fonts described in The Metafontbook and to typeset Metafont | |
1097 | logos in LaTeX documents.") | |
1098 | (license license:lppl))) | |
1099 | ||
01cf8c89 RW |
1100 | (define-public texlive-fonts-mflogo-font |
1101 | (package | |
1102 | (name "texlive-fonts-mflogo-font") | |
1103 | (version (number->string %texlive-revision)) | |
1104 | (source (origin | |
1105 | (method svn-fetch) | |
1106 | (uri (svn-reference | |
1107 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1108 | %texlive-tag "/Master/texmf-dist/" | |
1109 | "/fonts/type1/hoekwater/mflogo-font")) | |
1110 | (revision %texlive-revision))) | |
1111 | (file-name (string-append name "-" version "-checkout")) | |
1112 | (sha256 | |
1113 | (base32 | |
1114 | "09fsxfpiyxjljkrb52b197728bjnkcnv3bdwm4hl6hf23mbmqadf")))) | |
1115 | (build-system trivial-build-system) | |
1116 | (arguments | |
1117 | `(#:modules ((guix build utils) | |
1118 | (ice-9 match)) | |
1119 | #:builder | |
1120 | (begin | |
1121 | (use-modules (guix build utils) | |
1122 | (ice-9 match)) | |
1123 | (let ((root (string-append (assoc-ref %outputs "out") | |
1124 | "/share/texmf-dist/")) | |
1125 | (pkgs '(("source" . "fonts/type1/hoekwater/mflogo-font") | |
1126 | ("afm" . "fonts/afm/hoekwater/mflogo-font") | |
1127 | ("fonts-map" . "fonts/map/dvips/mflogo-font")))) | |
1128 | (for-each (match-lambda | |
1129 | ((pkg . dir) | |
1130 | (let ((target (string-append root dir))) | |
1131 | (mkdir-p target) | |
1132 | (copy-recursively (assoc-ref %build-inputs pkg) | |
1133 | target)))) | |
1134 | pkgs) | |
1135 | #t)))) | |
1136 | (native-inputs | |
1137 | `(("afm" | |
1138 | ,(origin | |
1139 | (method svn-fetch) | |
1140 | (uri (svn-reference | |
1141 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1142 | %texlive-tag "/Master/texmf-dist/" | |
1143 | "/fonts/afm/hoekwater/mflogo-font")) | |
1144 | (revision %texlive-revision))) | |
1145 | (file-name (string-append name "-afm-" version "-checkout")) | |
1146 | (sha256 | |
1147 | (base32 | |
1148 | "0bx1mfhhzsk9gj1pha36q2rk0jd0y285qm62zgvdvzzzlfnk8sdb")))) | |
1149 | ("fonts-map" | |
1150 | ,(origin | |
1151 | (method svn-fetch) | |
1152 | (uri (svn-reference | |
1153 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1154 | %texlive-tag "/Master/texmf-dist/" | |
1155 | "/fonts/map/dvips/mflogo-font/")) | |
1156 | (revision %texlive-revision))) | |
1157 | (file-name (string-append name "-fonts-map-" version "-checkout")) | |
1158 | (sha256 | |
1159 | (base32 | |
1160 | "044xrrpl8hnvj55cx2ql1ib1bcyr33nzanx5nkwxpai7fb7pg4y6")))))) | |
1161 | (home-page "https://www.ctan.org/pkg/mflogo-font") | |
1162 | (synopsis "Metafont logo font") | |
1163 | (description | |
1164 | "These fonts were created in METAFONT by Knuth, for his own publications. | |
1165 | At some stage, the letters P and S were added, so that the METAPOST logo could | |
1166 | also be expressed. The fonts were originally issued (of course) as METAFONT | |
1167 | source; they have since been autotraced and reissued in Adobe Type 1 format by | |
1168 | Taco Hoekwater.") | |
1169 | (license license:knuth))) | |
1170 | ||
98b4aca1 RW |
1171 | (define-public texlive-fonts-amsfonts |
1172 | (package | |
1173 | (name "texlive-fonts-amsfonts") | |
1174 | (version (number->string %texlive-revision)) | |
1175 | (source (origin | |
1176 | (method svn-fetch) | |
1177 | (uri (svn-reference | |
1178 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1179 | %texlive-tag "/Master/texmf-dist/" | |
1180 | "/fonts/source/public/amsfonts")) | |
1181 | (revision %texlive-revision))) | |
5fe9233e | 1182 | (file-name (string-append name "-" version "-checkout")) |
98b4aca1 RW |
1183 | (sha256 |
1184 | (base32 | |
1185 | "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb")))) | |
1186 | (build-system gnu-build-system) | |
1187 | (arguments | |
1188 | `(#:modules ((guix build gnu-build-system) | |
1189 | (guix build utils) | |
fe2bfabe | 1190 | (ice-9 match) |
98b4aca1 RW |
1191 | (srfi srfi-1) |
1192 | (srfi srfi-26)) | |
1193 | #:tests? #f ; no tests | |
1194 | #:phases | |
1195 | (modify-phases %standard-phases | |
1196 | (delete 'configure) | |
1197 | (replace 'build | |
1198 | (lambda* (#:key inputs #:allow-other-keys) | |
fe2bfabe | 1199 | (let ((mf (assoc-ref inputs "texlive-union")) |
98b4aca1 | 1200 | (cwd (getcwd))) |
db6609bd DM |
1201 | ;; Make METAFONT reproducible |
1202 | (setenv "SOURCE_DATE_EPOCH" "1") | |
98b4aca1 RW |
1203 | ;; Tell mf where to find mf.base |
1204 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
1205 | ;; Tell mf where to look for source files | |
1206 | (setenv "MFINPUTS" | |
1207 | (string-append cwd ":" | |
1208 | cwd "/cmextra:" | |
1209 | cwd "/cyrillic:" | |
1210 | cwd "/dummy:" | |
1211 | cwd "/symbols:" | |
1212 | mf "/share/texmf-dist/metafont/base:" | |
1213 | (assoc-ref inputs "texlive-fonts-cm") | |
1214 | "/share/texmf-dist/fonts/source/public/cm"))) | |
1215 | (mkdir "build") | |
2762023a MW |
1216 | (for-each (lambda (font) |
1217 | (format #t "building font ~a\n" (basename font ".mf")) | |
1218 | (with-directory-excursion (dirname font) | |
1219 | (invoke "mf" "-progname=mf" | |
1220 | "-output-directory=../build" | |
1221 | (string-append "\\" | |
1222 | "mode:=ljfour; " | |
1223 | "mag:=1; " | |
1224 | "nonstopmode; " | |
1225 | "input " | |
1226 | (getcwd) "/" | |
1227 | (basename font ".mf"))))) | |
1228 | (find-files "." "[0-9]+\\.mf$")) | |
fe2bfabe RW |
1229 | |
1230 | ;; There are no metafont sources for the Euler fonts, so we | |
1231 | ;; convert the afm files instead. | |
1232 | (mkdir "build/euler") | |
1233 | (for-each (lambda (font) | |
1234 | (format #t "converting afm font ~a\n" (basename font ".afm")) | |
1235 | (invoke "afm2tfm" font | |
1236 | (string-append "build/euler/" | |
1237 | (basename font ".tfm")))) | |
1238 | (find-files (assoc-ref inputs "amsfonts-afm") | |
1239 | "\\.afm$")) | |
1240 | ||
1241 | ;; Frustratingly, not all fonts can be created this way. To | |
1242 | ;; generate eufm8.tfm, for example, we first scale down | |
1243 | ;; eufm10.afm to eufm8.pl, and then generate the tfm file from | |
1244 | ;; the pl file. | |
1245 | (with-directory-excursion "build/euler" | |
1246 | (setenv "TEXINPUTS" | |
1247 | (string-append (getcwd) "//:" | |
1248 | (assoc-ref inputs "amsfonts-afm") "//:" | |
1249 | (assoc-ref inputs "texlive-union") "//")) | |
1250 | (for-each (match-lambda | |
1251 | (((target-base target-size) | |
1252 | (source-base source-size)) | |
1253 | (let ((factor (number->string | |
1254 | (truncate/ (* 1000 target-size) | |
1255 | source-size)))) | |
1256 | (invoke "tex" | |
1257 | "-interaction=scrollmode" | |
1258 | (string-append "\\input fontinst.sty " | |
1259 | "\\transformfont{" target-base "}" | |
1260 | "{\\scalefont{" factor "}" | |
1261 | "{\\fromafm{" source-base "}}} " | |
1262 | "\\bye"))) | |
1263 | (invoke "pltotf" | |
1264 | (string-append target-base ".pl") | |
1265 | (string-append target-base ".tfm")) | |
1266 | (delete-file (string-append target-base ".pl")))) | |
1267 | ||
1268 | '((("eufm8" 8) ("eufm10" 10)) | |
1269 | ||
1270 | (("eufb6" 6) ("eufb7" 7)) | |
1271 | (("eufb8" 8) ("eufb10" 10)) | |
1272 | (("eufb9" 9) ("eufb10" 10)) | |
1273 | ||
1274 | (("eufm6" 6) ("eufb7" 7)) | |
1275 | (("eufm9" 9) ("eufb10" 10)) | |
1276 | ||
1277 | (("eurb6" 6) ("eurb7" 7)) | |
1278 | (("eurb8" 8) ("eurb10" 10)) | |
1279 | (("eurb9" 9) ("eurb10" 10)) | |
1280 | ||
1281 | (("eurm6" 6) ("eurm7" 7)) | |
1282 | (("eurm8" 8) ("eurm10" 10)) | |
1283 | (("eurm9" 9) ("eurm10" 10))))) | |
2762023a | 1284 | #t)) |
98b4aca1 | 1285 | (replace 'install |
24d0c4d0 | 1286 | (lambda* (#:key inputs outputs #:allow-other-keys) |
fe2bfabe RW |
1287 | (let* ((out (assoc-ref outputs "out")) |
1288 | (root (string-append out "/share/texmf-dist/fonts/")) | |
1289 | (pkgs '(("amsfonts-afm" . "afm/public/amsfonts") | |
1290 | ("amsfonts-type1" . "type1/public/amsfonts") | |
1291 | ("amsfonts-map" . "map/dvips/amsfonts")))) | |
1292 | (for-each (match-lambda | |
1293 | ((pkg . dir) | |
1294 | (let ((target (string-append root dir))) | |
1295 | (mkdir-p target) | |
1296 | (copy-recursively (assoc-ref inputs pkg) | |
1297 | target)))) | |
1298 | pkgs) | |
1299 | (copy-recursively (assoc-ref inputs "amsfonts-plain") | |
1300 | (string-append out "/share/texmf-dist/tex/plain/amsfonts")) | |
1301 | (let* ((tfm (string-append root "tfm/public/amsfonts")) | |
1302 | (mf (string-append root "source/public/amsfonts"))) | |
1303 | (copy-recursively "build" tfm) | |
1304 | (for-each (cut install-file <> mf) | |
1305 | (find-files "." "\\.mf")) | |
1306 | #t))))))) | |
98b4aca1 | 1307 | (native-inputs |
fe2bfabe RW |
1308 | `(("texlive-union" ,(texlive-union (list texlive-tex-fontinst-base |
1309 | texlive-fonts-cm | |
1310 | texlive-metafont-base))) | |
1311 | ("amsfonts-plain" | |
1312 | ,(origin | |
1313 | (method svn-fetch) | |
1314 | (uri (svn-reference | |
1315 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1316 | %texlive-tag "/Master/texmf-dist/" | |
1317 | "/tex/plain/amsfonts")) | |
1318 | (revision %texlive-revision))) | |
1319 | (file-name (string-append name "-plain-" version "-checkout")) | |
1320 | (sha256 | |
1321 | (base32 | |
1322 | "1hi8c9rkfb6395sxf7fhkr91xygfg8am1hqij9g3h2c7qx3714qp")))) | |
1323 | ("amsfonts-map" | |
1324 | ,(origin | |
1325 | (method svn-fetch) | |
1326 | (uri (svn-reference | |
1327 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1328 | %texlive-tag "/Master/texmf-dist/" | |
1329 | "/fonts/map/dvips/amsfonts")) | |
1330 | (revision %texlive-revision))) | |
1331 | (file-name (string-append name "-map-" version "-checkout")) | |
1332 | (sha256 | |
1333 | (base32 | |
1334 | "1lrj3bd9ybj4aawzlygc6qvakbrwc5s0mc5n9rpic331frv3axfs")))) | |
24d0c4d0 RW |
1335 | ("amsfonts-type1" |
1336 | ,(origin | |
1337 | (method svn-fetch) | |
1338 | (uri (svn-reference | |
1339 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1340 | %texlive-tag "/Master/texmf-dist/" | |
1341 | "/fonts/type1/public/amsfonts")) | |
1342 | (revision %texlive-revision))) | |
1343 | (file-name (string-append name "-type1-" version "-checkout")) | |
1344 | (sha256 | |
1345 | (base32 | |
fe2bfabe RW |
1346 | "1zfz33vn6gm19njy74n8wmn7sljrimfhwns5z8qqhxqfh1g4qip2")))) |
1347 | ("amsfonts-afm" | |
1348 | ,(origin | |
1349 | (method svn-fetch) | |
1350 | (uri (svn-reference | |
1351 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1352 | %texlive-tag "/Master/texmf-dist/" | |
1353 | "/fonts/afm/public/amsfonts")) | |
1354 | (revision %texlive-revision))) | |
1355 | (file-name (string-append name "-afm-" version "-checkout")) | |
1356 | (sha256 | |
1357 | (base32 | |
1358 | "1fifzkaihmjgchnk7dmw0c23k0cz999dxnc78ivmqvgi1dhx0iv8")))))) | |
b8d8806b | 1359 | (home-page "https://www.ctan.org/pkg/amsfonts") |
98b4aca1 RW |
1360 | (synopsis "TeX fonts from the American Mathematical Society") |
1361 | (description | |
1362 | "This package provides an extended set of fonts for use in mathematics, | |
1363 | including: extra mathematical symbols; blackboard bold letters (uppercase | |
1364 | only); fraktur letters; subscript sizes of bold math italic and bold Greek | |
1365 | letters; subscript sizes of large symbols such as sum and product; added sizes | |
1366 | of the Computer Modern small caps font; cyrillic fonts (from the University of | |
1367 | Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1 | |
1368 | files, and all except the Euler fonts are provided as Metafont source. The | |
1369 | distribution also includes the canonical Type 1 versions of the Computer | |
1370 | Modern family of fonts. The Euler fonts are supported by separate packages; | |
1371 | details can be found in the documentation.") | |
1372 | (license license:silofl1.1))) | |
1373 | ||
137f9cbc RW |
1374 | (define-public texlive-latex-amsfonts |
1375 | (package | |
1376 | (name "texlive-latex-amsfonts") | |
1377 | (version (number->string %texlive-revision)) | |
1378 | (source (origin | |
1379 | (method svn-fetch) | |
1380 | (uri (texlive-ref "latex" "amsfonts")) | |
9700a0d0 | 1381 | (file-name (string-append name "-" version "-checkout")) |
137f9cbc RW |
1382 | (sha256 |
1383 | (base32 | |
1384 | "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm")))) | |
1385 | (build-system texlive-build-system) | |
1386 | (arguments '(#:tex-directory "latex/amsfonts")) | |
1387 | (native-inputs | |
1388 | `(("texlive-fonts-cm" ,texlive-fonts-cm) | |
1389 | ("texlive-metafont-base" ,texlive-metafont-base))) | |
b8d8806b | 1390 | (home-page "https://www.ctan.org/pkg/amsfonts") |
137f9cbc RW |
1391 | (synopsis "TeX fonts from the American Mathematical Society") |
1392 | (description | |
1393 | "This package provides basic LaTeX support for the symbol fonts provides | |
1394 | by the amsfonts package. It provides @code{amsfonts.sty}, with names of | |
1395 | individual symbols defined in @code{amssymb.sty}.") | |
1396 | (license license:silofl1.1))) | |
1397 | ||
e4c5481d RW |
1398 | (define-public texlive-mkpattern |
1399 | (package | |
1400 | (inherit (simple-texlive-package | |
1401 | "texlive-mkpattern" | |
1402 | (list "/doc/plain/mkpattern/README" | |
1403 | "/doc/plain/mkpattern/mkpatdoc.tex" | |
1404 | "/doc/plain/mkpattern/mkpatter.pdf" | |
1405 | "/doc/plain/mkpattern/mkpattern-exmpl.tex" | |
1406 | "/tex/plain/mkpattern/mkpatter.tex") | |
1407 | (base32 | |
1408 | "0sxnkbcc802jl3fj56x9hvg978bpv15lhrwj0aykb4syq29l47ga") | |
1409 | #:trivial? #t)) | |
1410 | (home-page "https://ctan.org/pkg/mkpattern") | |
1411 | (synopsis "Utility for making hyphenation patterns") | |
1412 | (description "Mkpattern is a general purpose program for the generation of | |
1413 | hyphenation patterns, with definition of letter sets and template-like | |
1414 | constructions. It also provides an easy way to handle different input and | |
1415 | output encodings, and features generation of clean UTF-8 patterns.") | |
1416 | (license license:lppl))) | |
1417 | ||
566e95f7 RW |
1418 | ;; This provides etex.src which is needed to build various formats, including |
1419 | ;; luatex.fmt and pdflatex.fmt | |
1e39065d RW |
1420 | (define-public texlive-etex |
1421 | (let ((template (simple-texlive-package | |
1422 | "texlive-etex" | |
1423 | (list "/doc/etex/base/" | |
1424 | "/doc/man/man1/etex.1" | |
1425 | "/doc/man/man1/etex.man1.pdf" | |
1426 | "/tex/plain/etex/" | |
1427 | "/fonts/source/public/etex/") | |
1428 | (base32 | |
1429 | "1qv6vxm5a8pw38gas3i69ivmsn79zj2yq5n5vdmh0rzic5hw2hmc") | |
1430 | #:trivial? #t))) | |
1431 | (package | |
1432 | (inherit template) | |
1433 | (arguments | |
1434 | (substitute-keyword-arguments (package-arguments template) | |
1435 | ((#:phases phases) | |
1436 | `(modify-phases ,phases | |
1437 | ;; Build tfm font. | |
1438 | (replace 'build | |
1439 | (lambda* (#:key inputs #:allow-other-keys) | |
1440 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
1441 | ;; Tell mf where to find mf.base | |
1442 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
1443 | ;; Tell mf where to look for source files | |
1444 | (setenv "MFINPUTS" | |
1445 | (string-append (getcwd) | |
1446 | "/fonts/source/public/etex/:" | |
1447 | mf "/share/texmf-dist/metafont/base:" | |
1448 | (assoc-ref inputs "texlive-fonts-cm") | |
1449 | "/share/texmf-dist/fonts/source/public/cm"))) | |
1450 | (invoke "mf" "-progname=mf" | |
1451 | (string-append "\\" | |
1452 | "mode:=ljfour; " | |
1453 | "mag:=1; " | |
1454 | "scrollmode; " | |
1455 | "input xbmc10")) | |
1456 | #t)) | |
1457 | (add-after 'install 'install-font | |
1458 | (lambda* (#:key outputs #:allow-other-keys) | |
1459 | (install-file | |
1460 | "xbmc10.tfm" | |
1461 | (string-append (assoc-ref outputs "out") | |
1462 | "/share/texmf-dist/fonts/tfm/public/etex/")) | |
1463 | #t)))))) | |
1464 | (native-inputs | |
1465 | `(("texlive-bin" ,texlive-bin) | |
1466 | ("texlive-metafont-base" ,texlive-metafont-base) | |
1467 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
1468 | (home-page "https://www.ctan.org/pkg/etex") | |
1469 | (synopsis "Extended version of TeX") | |
1470 | (description | |
1471 | "This package provides an extended version of TeX (which is capable of | |
1472 | running as if it were TeX unmodified). E-TeX has been specified by the LaTeX | |
1473 | team as the engine for the development of LaTeX2e; as a result, LaTeX | |
1474 | programmers may assume e-TeX functionality. The pdftex engine directly | |
1475 | incorporates the e-TeX extensions.") | |
1476 | (license license:knuth)))) | |
1477 | ||
566e95f7 RW |
1478 | (define-public texlive-tex-plain |
1479 | (package | |
1480 | (name "texlive-tex-plain") | |
1481 | (version (number->string %texlive-revision)) | |
1482 | (source (origin | |
1483 | (method svn-fetch) | |
1484 | (uri (svn-reference | |
1485 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1486 | %texlive-tag "/Master/texmf-dist/" | |
1487 | "/tex/plain")) | |
1488 | (revision %texlive-revision))) | |
b63aefe5 | 1489 | (file-name (string-append name "-" version "-checkout")) |
566e95f7 RW |
1490 | (sha256 |
1491 | (base32 | |
d4d9a1ec | 1492 | "1xknlb3gcw6jjqh97bhghxi594bzpj1zfzzfsrr9pvr9s1bx7dnf")))) |
566e95f7 RW |
1493 | (build-system trivial-build-system) |
1494 | (arguments | |
1495 | `(#:modules ((guix build utils)) | |
1496 | #:builder | |
1497 | (begin | |
1498 | (use-modules (guix build utils)) | |
1499 | (let ((target (string-append (assoc-ref %outputs "out") | |
1500 | "/share/texmf-dist/tex/plain"))) | |
1501 | (mkdir-p target) | |
1502 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
1503 | #t)))) | |
1504 | (home-page "https://www.ctan.org/pkg/plain") | |
1505 | (synopsis "Plain TeX format and supporting files") | |
1506 | (description | |
1507 | "Contains files used to build the Plain TeX format, as described in the | |
1508 | TeXbook, together with various supporting files (some also discussed in the | |
1509 | book).") | |
1510 | (license license:knuth))) | |
1511 | ||
df73a3d3 RW |
1512 | (define-public texlive-hyphen-afrikaans |
1513 | (package | |
1514 | (inherit (texlive-hyphen-package | |
1515 | "texlive-hyphen-afrikaans" "af" | |
1516 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex") | |
1517 | (base32 | |
1518 | "1vb3jccqnn1pm0680yqx52kvz595fmxnwa0cbf8qman6zglsssiw"))) | |
1519 | (synopsis "Hyphenation patterns for Afrikaans") | |
1520 | (description "The package provides hyphenation patterns for the Afrikaans | |
1521 | language.") | |
1522 | (license license:lppl1.3+))) | |
1523 | ||
619ca023 RW |
1524 | (define-public texlive-hyphen-ancientgreek |
1525 | (package | |
1526 | (inherit (texlive-hyphen-package | |
1527 | "texlive-hyphen-ancientgreek" "grc" | |
1528 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-grc.tex" | |
1529 | "/tex/generic/hyphen/grahyph5.tex" | |
1530 | "/tex/generic/hyphen/ibyhyph.tex") | |
1531 | (base32 | |
1532 | "0kwrqsz7wdr1d9kylzwp60ka3wfbj8iad029k5h6y94nb86mf7zv"))) | |
1533 | (synopsis "Hyphenation patterns for ancient Greek") | |
1534 | (description "The package provides hyphenation patterns for ancient | |
1535 | Greek.") | |
1536 | (license license:lppl1.3+))) | |
1537 | ||
a361f412 RW |
1538 | (define-public texlive-hyphen-armenian |
1539 | (let ((template (texlive-hyphen-package | |
1540 | "texlive-hyphen-armenian" "hy" | |
1541 | (list "/source/generic/hyph-utf8/languages/hy/generate_patterns_hy.rb") | |
1542 | (base32 | |
1543 | "0z666y580w1kpxssdanz67ykq257lf11a1mnp1jrn08zijvfrw9c")))) | |
1544 | (package | |
1545 | (inherit template) | |
1546 | (arguments | |
1547 | (substitute-keyword-arguments (package-arguments template) | |
1548 | ((#:phases phases) | |
1549 | `(modify-phases ,phases | |
1550 | (add-before 'build 'build-patterns | |
1551 | (lambda _ | |
1552 | (let ((target (string-append (getcwd) | |
1553 | "/tex/generic/hyph-utf8/patterns/tex"))) | |
1554 | (mkdir-p target) | |
1555 | (with-directory-excursion "source/generic/hyph-utf8/languages/hy/" | |
1556 | (substitute* "generate_patterns_hy.rb" | |
1557 | (("\\$file = File.new.*") | |
1558 | (string-append "$file = File.new(\"" target | |
1559 | "/hyph-hy.tex\",\"w\")\n"))) | |
1560 | (invoke "ruby" "generate_patterns_hy.rb")) | |
1561 | #t))) | |
1562 | (add-after 'install 'install-hyph-hy.tex | |
1563 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1564 | (let* ((out (assoc-ref outputs "out")) | |
1565 | (target (string-append out "/share/texmf-dist/tex"))) | |
1566 | (copy-recursively "tex" target) | |
1567 | #t))))))) | |
1568 | (synopsis "Hyphenation patterns for Armenian") | |
1569 | (description "The package provides hyphenation patterns for the Armenian | |
1570 | language.") | |
1571 | ;; Any version of the LGPL. | |
1572 | (license license:lgpl3+)))) | |
1573 | ||
0ddbc25c RW |
1574 | (define-public texlive-hyphen-basque |
1575 | (let ((template (texlive-hyphen-package | |
1576 | "texlive-hyphen-basque" "eu" | |
1577 | (list "/source/generic/hyph-utf8/languages/eu/generate_patterns_eu.rb") | |
1578 | (base32 | |
1579 | "1yhsbzf1g9dm70jfixsz51hsfvn26cwfkfxvhg7xv2piynr4v51l")))) | |
1580 | (package | |
1581 | (inherit template) | |
1582 | (arguments | |
1583 | (substitute-keyword-arguments (package-arguments template) | |
1584 | ((#:phases phases) | |
1585 | `(modify-phases ,phases | |
1586 | (add-before 'build 'build-patterns | |
1587 | (lambda _ | |
1588 | (let ((target (string-append (getcwd) | |
1589 | "/tex/generic/hyph-utf8/patterns/tex"))) | |
1590 | (mkdir-p target) | |
1591 | (with-directory-excursion "source/generic/hyph-utf8/languages/eu/" | |
1592 | (substitute* "generate_patterns_eu.rb" | |
1593 | (("\\$file = File.new.*") | |
1594 | (string-append "$file = File.new(\"" target | |
1595 | "/hyph-eu.tex\",\"w\")\n"))) | |
1596 | (invoke "ruby" "generate_patterns_eu.rb")) | |
1597 | #t))) | |
1598 | (add-after 'install 'install-hyph-eu.tex | |
1599 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1600 | (let* ((out (assoc-ref outputs "out")) | |
1601 | (target (string-append out "/share/texmf-dist/tex"))) | |
1602 | (copy-recursively "tex" target) | |
1603 | #t))))))) | |
1604 | (synopsis "Hyphenation patterns for Basque") | |
1605 | (description "The package provides hyphenation patterns for the Basque | |
1606 | language.") | |
1607 | ;; "Free for any purpose". | |
1608 | (license (license:fsf-free | |
1609 | "/source/generic/hyph-utf8/languages/eu/generate_patterns_eu.rb"))))) | |
1610 | ||
92266796 RW |
1611 | (define-public texlive-hyphen-belarusian |
1612 | (package | |
1613 | (inherit (texlive-hyphen-package | |
1614 | "texlive-hyphen-belarusian" "be" | |
1615 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-be.tex") | |
1616 | (base32 | |
1617 | "1xvffph824rg43gi2xs3ny9gzlp708fyxj9zfhckmg8pzh9vv3n6"))) | |
1618 | (synopsis "Hyphenation patterns for Belarusian") | |
1619 | (description "The package provides hyphenation patterns for the Belarusian | |
1620 | language.") | |
1621 | (license license:expat))) | |
1622 | ||
7ffc3105 RW |
1623 | (define-public texlive-hyphen-bulgarian |
1624 | (package | |
1625 | (inherit (texlive-hyphen-package | |
1626 | "texlive-hyphen-bulgarian" "bg" | |
1627 | (list "/doc/generic/hyph-utf8/bg/azbukaExtended.pdf" | |
1628 | "/doc/generic/hyph-utf8/bg/azbukaExtended.tex" | |
1629 | "/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex") | |
1630 | (base32 | |
1631 | "06dxkk9azsggbri04i6g62lswygzadsx3rpqvbyzvbxc5wxz1dj1"))) | |
1632 | (synopsis "Hyphenation patterns for Bulgarian") | |
1633 | (description "The package provides hyphenation patterns for the Bulgarian | |
1634 | language in T2A and UTF-8 encodings.") | |
1635 | (license (license:non-copyleft | |
1636 | "file:///tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex" | |
1637 | "Ancestral BSD variant")))) | |
1638 | ||
cbc7e109 RW |
1639 | (define-public texlive-hyphen-catalan |
1640 | (package | |
1641 | (inherit (texlive-hyphen-package | |
1642 | "texlive-hyphen-catalan" "ca" | |
1643 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex") | |
1644 | (base32 | |
1645 | "0cisx76jpw8kpd3an37m9h8ppiysnizgfzl48y9d9n3fvx8jyykb"))) | |
1646 | (synopsis "Hyphenation patterns for Catalan") | |
1647 | (description "The package provides hyphenation patterns for Catalan in | |
1648 | T1/EC and UTF-8 encodings.") | |
1649 | (license license:lppl1.0+))) | |
1650 | ||
9ebce8fc RW |
1651 | (define-public texlive-hyphen-chinese |
1652 | (package | |
1653 | (inherit (texlive-hyphen-package | |
1654 | "texlive-hyphen-chinese" "zh-latn-pinyin" | |
1655 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-zh-latn-pinyin.tex") | |
1656 | (base32 | |
1657 | "07gbrn5fcl5d3hyg1zpai3zp1ggl73cmvpalwvh7ah313f57gjkk"))) | |
1658 | (synopsis "Hyphenation patterns for unaccented Chinese pinyin") | |
1659 | (description "The package provides hyphenation patterns for unaccented | |
1660 | Chinese pinyin T1/EC and UTF-8 encodings.") | |
1661 | (license license:gpl2+))) | |
0ddbc25c | 1662 | |
beed8377 RW |
1663 | (define-public texlive-hyphen-churchslavonic |
1664 | (package | |
1665 | (inherit (texlive-hyphen-package | |
1666 | "texlive-hyphen-churchslavonic" "cu" | |
1667 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cu.tex") | |
1668 | (base32 | |
1669 | "0xkqlz3ixyl4fxsnzrbxqrb82p0n67rhgpddbiyv3qwfnbr2b5a4"))) | |
1670 | (synopsis "Hyphenation patterns for Church Slavonic") | |
1671 | (description "The package provides hyphenation patterns for Church | |
1672 | Slavonic in UTF-8 encoding.") | |
1673 | (license license:expat))) | |
1674 | ||
1b1d8577 RW |
1675 | (define-public texlive-hyphen-coptic |
1676 | (package | |
1677 | (inherit (texlive-hyphen-package | |
1678 | "texlive-hyphen-coptic" "cop" | |
1679 | (list "/tex/generic/hyph-utf8/patterns/tex-8bit/copthyph.tex" | |
1680 | "/tex/generic/hyph-utf8/patterns/tex/hyph-cop.tex") | |
1681 | (base32 | |
1682 | "07i03jpdfy4ip7zbg4gnk4hk8zwj8rlni9dgrb1p8mfw2w19d80c"))) | |
1683 | (synopsis "Hyphenation patterns for Coptic") | |
1684 | (description "The package provides hyphenation patterns for Coptic in | |
1685 | UTF-8 encoding as well as in ASCII-based encoding for 8-bit engines.") | |
1686 | ;; No explicit license declaration, so we use the project license. | |
1687 | (license license:lppl))) | |
1688 | ||
9b65c611 RW |
1689 | (define-public texlive-hyphen-croatian |
1690 | (package | |
1691 | (inherit (texlive-hyphen-package | |
1692 | "texlive-hyphen-croatian" "hr" | |
1693 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hr.tex") | |
1694 | (base32 | |
1695 | "129nz2nqilyq2477n2clx20xfbxh1qxm69zg4n2f6c4d4a8711nc"))) | |
1696 | (synopsis "Hyphenation patterns for Croatian") | |
1697 | (description "The package provides hyphenation patterns for Croatian in | |
1698 | T1/EC and UTF-8 encodings.") | |
1699 | (license license:lppl1.0+))) | |
1700 | ||
b5b2ef6e RW |
1701 | (define-public texlive-hyphen-czech |
1702 | (package | |
1703 | (inherit (texlive-hyphen-package | |
1704 | "texlive-hyphen-czech" "cs" | |
1705 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cs.tex") | |
1706 | (base32 | |
1707 | "1k5516gbfp1d5p97j247byag9sdgds5zwc11bwxfk58i6zq1v0m6"))) | |
1708 | (synopsis "Hyphenation patterns for Czech") | |
1709 | (description "The package provides hyphenation patterns for Czech in T1/EC | |
1710 | and UTF-8 encodings.") | |
1711 | (license license:gpl2+))) | |
1712 | ||
3889b022 RW |
1713 | (define-public texlive-hyphen-danish |
1714 | (package | |
1715 | (inherit (texlive-hyphen-package | |
1716 | "texlive-hyphen-danish" "da" | |
1717 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-da.tex") | |
1718 | (base32 | |
1719 | "0zxzs1b1723mav76i0wiyq4w82x8715cykvwa2bc60ldc2amv0vs"))) | |
1720 | (synopsis "Hyphenation patterns for Danish") | |
1721 | (description "The package provides hyphenation patterns for Danish in | |
1722 | T1/EC and UTF-8 encodings.") | |
1723 | ;; Either LPPL 1.3 or later, or Expat | |
1724 | (license (list license:lppl1.3+ license:expat)))) | |
1725 | ||
402b835f RW |
1726 | (define-public texlive-hyphen-dutch |
1727 | (package | |
1728 | (inherit (texlive-hyphen-package | |
1729 | "texlive-hyphen-dutch" "nl" | |
1730 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex") | |
1731 | (base32 | |
1732 | "0cq46cmgjc4y2x0xs9b0a5zca3jmszv4rkzmrhgjb5z2nm3xkrpi"))) | |
1733 | (synopsis "Hyphenation patterns for Dutch") | |
1734 | (description "The package provides hyphenation patterns for Dutch in T1/EC | |
1735 | and UTF-8 encodings.") | |
1736 | (license license:lppl1.0+))) | |
1737 | ||
ab8f6de6 RW |
1738 | (define-public texlive-hyphen-english |
1739 | (package | |
1740 | (inherit (texlive-hyphen-package | |
1741 | "texlive-hyphen-english" '("en-gb" "en-us") | |
1742 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-en-gb.tex" | |
1743 | "/tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex") | |
1744 | (base32 | |
1745 | "08hyih8hn2w2q12gc4zygz0ckbz00mkzzn9898z2bicky02zg3kc"))) | |
1746 | (synopsis "Hyphenation patterns for American and British English") | |
1747 | (description "The package provides additional hyphenation patterns for | |
1748 | American and British English in ASCII encoding.") | |
1749 | (license (license:non-copyleft | |
1750 | "file:///tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex" | |
1751 | "FSF all permissive license")))) | |
1752 | ||
d7c80395 RW |
1753 | (define-public texlive-hyphen-esperanto |
1754 | (package | |
1755 | (inherit (texlive-hyphen-package | |
1756 | "texlive-hyphen-esperanto" "eo" | |
1757 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-eo.tex") | |
1758 | (base32 | |
1759 | "03xbjbzasznsyf4wd45bya6f4snfmzpdzg5zpvqj5q6gjykdg54k"))) | |
1760 | (synopsis "Hyphenation patterns for Esperanto") | |
1761 | (description "The package provides hyphenation patterns for Esperanto ISO | |
1762 | Latin 3 and UTF-8 encodings.") | |
1763 | (license license:lppl1.0+))) | |
1764 | ||
5f229484 RW |
1765 | (define-public texlive-hyphen-estonian |
1766 | (package | |
1767 | (inherit (texlive-hyphen-package | |
1768 | "texlive-hyphen-estonian" "et" | |
1769 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-et.tex") | |
1770 | (base32 | |
1771 | "0idl6xajkkgxqngjn19jcfd29is5rhfn59v0z8h4sv8yjv6k934m"))) | |
1772 | (synopsis "Hyphenation patterns for Estonian") | |
1773 | (description "The package provides hyphenation patterns for Estonian in | |
1774 | T1/EC and UTF-8 encodings.") | |
1775 | ;; Dual licensed under either license. | |
1776 | (license (list license:lppl1.3+ license:expat)))) | |
1777 | ||
54ef221c RW |
1778 | (define-public texlive-hyphen-ethiopic |
1779 | (let ((template (texlive-hyphen-package | |
1780 | "texlive-hyphen-ethiopic" "mul-ethi" | |
1781 | (list "/source/generic/hyph-utf8/languages/mul-ethi/generate_patterns_mul-ethi.lua") | |
1782 | (base32 | |
1783 | "1dp5qn1mhv62kj27lqc7s0ca65z9bziyavkvif9ds5ivk7aq9drw")))) | |
1784 | (package | |
1785 | (inherit template) | |
1786 | (arguments | |
1787 | (substitute-keyword-arguments (package-arguments template) | |
1788 | ((#:phases phases) | |
1789 | `(modify-phases ,phases | |
1790 | (add-before 'build 'build-patterns | |
1791 | (lambda* (#:key inputs #:allow-other-keys) | |
1792 | (let ((tex (string-append (getcwd) | |
1793 | "/tex/generic/hyph-utf8/patterns/tex/"))) | |
1794 | (mkdir-p tex) | |
1795 | (with-directory-excursion "source/generic/hyph-utf8/languages/mul-ethi/" | |
1796 | (substitute* "generate_patterns_mul-ethi.lua" | |
1797 | (("\"UnicodeData.txt\"") | |
1798 | (string-append "\"" | |
1799 | (assoc-ref inputs "UnicodeData.txt") | |
1800 | "\""))) | |
1801 | (invoke "texlua" "generate_patterns_mul-ethi.lua") | |
1802 | (rename-file "hyph-mul-ethi.tex" | |
1803 | (string-append tex "/hyph-mul-ethi.tex")) | |
1804 | #t)))) | |
1805 | (add-after 'install 'install-hyph-mul-ethi.tex | |
1806 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1807 | (let* ((out (assoc-ref outputs "out")) | |
1808 | (target (string-append out "/share/texmf-dist/tex"))) | |
1809 | (copy-recursively "tex" target) | |
1810 | #t))))))) | |
1811 | (native-inputs | |
1812 | `(,@(package-native-inputs template) | |
1813 | ("texlive-bin" ,texlive-bin) | |
1814 | ("UnicodeData.txt" | |
1815 | ,(origin | |
1816 | (method url-fetch) | |
1817 | (uri (string-append "http://www.unicode.org/Public/10.0.0/ucd/" | |
1818 | "UnicodeData.txt")) | |
1819 | (sha256 | |
1820 | (base32 | |
1821 | "1cfak1j753zcrbgixwgppyxhm4w8vda8vxhqymi7n5ljfi6kwhjj")))))) | |
1822 | (synopsis "Hyphenation patterns for Ethiopic scripts") | |
1823 | (description "The package provides hyphenation patterns for languages | |
1824 | written using the Ethiopic script for Unicode engines. They are not supposed | |
1825 | to be linguistically relevant in all cases and should, for proper typography, | |
1826 | be replaced by files tailored to individual languages.") | |
1827 | (license license:lppl)))) | |
1828 | ||
bac10d82 RW |
1829 | (define-public texlive-hyphen-finnish |
1830 | (package | |
1831 | (inherit (texlive-hyphen-package | |
1832 | "texlive-hyphen-finnish" "fi" | |
1833 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fi.tex") | |
1834 | (base32 | |
1835 | "03n6s8dwwa5vfk9bbyhcdf7p0bc0d1rrr312hpgbz8jfc9fbgd7n"))) | |
1836 | (synopsis "Hyphenation patterns for Finnish") | |
1837 | (description "The package provides hyphenation patterns for Finnish in | |
1838 | T1/EC and UTF-8 encodings.") | |
1839 | (license license:public-domain))) | |
1840 | ||
a14ffed2 RW |
1841 | (define-public texlive-hyphen-french |
1842 | (package | |
1843 | (inherit (texlive-hyphen-package | |
1844 | "texlive-hyphen-french" "fr" | |
1845 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fr.tex") | |
1846 | (base32 | |
1847 | "1q82mmwvy7fdkm42958ajb53w89qkcdwybswxlwcvqngvhpy3zf0"))) | |
1848 | (synopsis "Hyphenation patterns for French") | |
1849 | (description "The package provides hyphenation patterns for French in | |
1850 | T1/EC and UTF-8 encodings.") | |
1851 | (license license:expat))) | |
1852 | ||
28fbf42a RW |
1853 | (define-public texlive-hyphen-friulan |
1854 | (package | |
1855 | (inherit (texlive-hyphen-package | |
1856 | "texlive-hyphen-friulan" "fur" | |
1857 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-fur.tex") | |
1858 | (base32 | |
1859 | "07m975p0ghzs9sjqqgxy7qdkqmgvg4rx4xp08zwm1parqsdlwd5d"))) | |
1860 | (synopsis "Hyphenation patterns for Friulan") | |
1861 | (description "The package provides hyphenation patterns for Friulan in | |
1862 | ASCII encodings.") | |
1863 | (license license:lppl1.3+))) | |
1864 | ||
8d87184b RW |
1865 | (define-public texlive-hyphen-galician |
1866 | (let ((template (texlive-hyphen-package | |
1867 | "texlive-hyphen-galician" "gl" | |
1868 | (list "/source/generic/hyph-utf8/languages/gl/README" | |
1869 | "/source/generic/hyph-utf8/languages/gl/glhybiox.tex" | |
1870 | "/source/generic/hyph-utf8/languages/gl/glhyextr.tex" | |
1871 | "/source/generic/hyph-utf8/languages/gl/glhymed.tex" | |
1872 | "/source/generic/hyph-utf8/languages/gl/glhyquim.tex" | |
1873 | "/source/generic/hyph-utf8/languages/gl/glhytec.tex" | |
1874 | "/source/generic/hyph-utf8/languages/gl/glhyxeog.tex" | |
1875 | "/source/generic/hyph-utf8/languages/gl/glpatter-utf8.tex") | |
1876 | (base32 | |
1877 | "1yj1gxhkqqlyaand5gd6ij6xwffskryzlbcigdam3871a9p8x18w")))) | |
1878 | (package | |
1879 | (inherit template) | |
1880 | (arguments | |
1881 | (substitute-keyword-arguments (package-arguments template) | |
1882 | ((#:phases phases) | |
1883 | `(modify-phases ,phases | |
1884 | (add-before 'build 'build-patterns | |
1885 | (lambda* (#:key inputs #:allow-other-keys) | |
1886 | (let ((tex (string-append (getcwd) | |
1887 | "/tex/generic/hyph-utf8/patterns/tex/"))) | |
1888 | (mkdir-p tex) | |
1889 | (with-directory-excursion "source/generic/hyph-utf8/languages/gl/" | |
1890 | (setenv "TEXINPUTS" | |
1891 | (string-append (getcwd) "//:" | |
1892 | (assoc-ref inputs "texlive-mkpattern") "//")) | |
1893 | (invoke "tex" "-ini" "-8bit" "glpatter-utf8.tex") | |
1894 | (rename-file "hyph-gl.tex" | |
1895 | (string-append tex "/hyph-gl.tex")) | |
1896 | #t)))) | |
1897 | (add-after 'install 'install-hyph-gl.tex | |
1898 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1899 | (let* ((out (assoc-ref outputs "out")) | |
1900 | (target (string-append out "/share/texmf-dist/tex"))) | |
1901 | (copy-recursively "tex" target) | |
1902 | #t))))))) | |
1903 | (native-inputs | |
1904 | `(,@(package-native-inputs template) | |
1905 | ("texlive-bin" ,texlive-bin) | |
1906 | ("texlive-mkpattern" ,texlive-mkpattern))) | |
1907 | (synopsis "Hyphenation patterns for Galician") | |
1908 | (description "The package provides hyphenation patterns for Galician in | |
1909 | T1/EC and UTF-8 encodings.") | |
1910 | ;; glhyextr.tex is the only file in the public domain. | |
1911 | (license (list license:lppl1.3 license:public-domain))))) | |
1912 | ||
b2334b6e RW |
1913 | (define-public texlive-hyphen-georgian |
1914 | (package | |
1915 | (inherit (texlive-hyphen-package | |
1916 | "texlive-hyphen-georgian" "ka" | |
1917 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ka.tex") | |
1918 | (base32 | |
1919 | "01zhn6mflpiqw4lyi8dx8syiz5mky9jrxm87cgw31hanis5cml4l"))) | |
1920 | (synopsis "Hyphenation patterns for Georgian") | |
1921 | (description "The package provides hyphenation patterns for Georgian in | |
1922 | T8M, T8K, and UTF-8 encodings.") | |
1923 | (license license:lppl1.3+))) | |
1924 | ||
6028620d RW |
1925 | (define-public texlive-hyphen-german |
1926 | (package | |
1927 | (inherit (texlive-hyphen-package | |
1928 | "texlive-hyphen-german" '("de-1901" "de-1996" "de-ch-1901") | |
1929 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1901.tex" | |
1930 | "/tex/generic/hyph-utf8/patterns/tex/hyph-de-1996.tex" | |
1931 | "/tex/generic/hyph-utf8/patterns/tex/hyph-de-ch-1901.tex" | |
1932 | "/tex/generic/hyphen/dehyphn.tex" | |
1933 | "/tex/generic/hyphen/dehypht.tex" | |
1934 | "/tex/generic/hyphen/dehyphtex.tex" | |
1935 | "/tex/generic/hyphen/ghyphen.README") | |
1936 | (base32 | |
1937 | "1g0vhpvl2l69rn2lx7lkw0inrjbcxkj2sjgwd2fq7hdi4yb2ms76"))) | |
1938 | (synopsis "Hyphenation patterns for German") | |
1939 | (description "This package provides hyphenation patterns for German in | |
1940 | T1/EC and UTF-8 encodings, for traditional and reformed spelling, including | |
1941 | Swiss German.") | |
1942 | ;; The patterns are released under the Expat license; the dehyph* files | |
1943 | ;; are released under the LPPL version 1 or later. | |
1944 | (license (list license:expat license:lppl1.0+)))) | |
1945 | ||
65e4cfd1 RW |
1946 | (define-public texlive-hyphen-greek |
1947 | (package | |
1948 | (inherit (texlive-hyphen-package | |
1949 | "texlive-hyphen-greek" '("el-monoton" "el-polyton") | |
1950 | (list "/doc/generic/elhyphen/" | |
1951 | "/tex/generic/hyph-utf8/patterns/tex/hyph-el-monoton.tex" | |
1952 | "/tex/generic/hyph-utf8/patterns/tex/hyph-el-polyton.tex" | |
1953 | "/tex/generic/hyphen/grmhyph5.tex" | |
1954 | "/tex/generic/hyphen/grphyph5.tex") | |
1955 | (base32 | |
1956 | "04626jhlrv2flgdygm7sfv6xpqhfwiavi16gy2ac04iliyk4rypg"))) | |
1957 | (synopsis "Hyphenation patterns for Greek") | |
1958 | (description "This package provides hyphenation patterns for Modern Greek | |
1959 | in monotonic and polytonic spelling in LGR and UTF-8 encodings.") | |
1960 | (license license:lppl))) | |
1961 | ||
36f03c33 RW |
1962 | (define-public texlive-hyphen-hungarian |
1963 | (package | |
1964 | (inherit (texlive-hyphen-package | |
1965 | "texlive-hyphen-hungarian" "hu" | |
1966 | (list "/doc/generic/huhyphen/" | |
1967 | "/doc/generic/hyph-utf8/hu/" | |
1968 | "/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex") | |
1969 | (base32 | |
1970 | "0c81w2569cqsi4j56azwz0lfx16541zhiqgmn3m4iwh7mpx3rji8"))) | |
1971 | (synopsis "Hyphenation patterns for Hungarian") | |
1972 | (description "This package provides hyphenation patterns for Hungarian in | |
1973 | T1/EC and UTF-8 encodings.") | |
1974 | ;; Any of these licenses | |
1975 | (license (list license:gpl2 license:lgpl2.1+ license:mpl1.1)))) | |
1976 | ||
33a446e6 RW |
1977 | (define-public texlive-hyphen-icelandic |
1978 | (package | |
1979 | (inherit (texlive-hyphen-package | |
1980 | "texlive-hyphen-icelandic" "is" | |
1981 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-is.tex") | |
1982 | (base32 | |
1983 | "1ah1f82lgfhqgid4ngsfiypybx10v8gwxnb12396vfsj3bq6j0ba"))) | |
1984 | (synopsis "Hyphenation patterns for Icelandic") | |
1985 | (description "This package provides hyphenation patterns for Icelandic in | |
1986 | T1/EC and UTF-8 encodings.") | |
1987 | (license license:lppl1.2+))) | |
1988 | ||
825285d8 RW |
1989 | (define-public texlive-hyphen-indic |
1990 | (package | |
1991 | (inherit (texlive-hyphen-package | |
1992 | "texlive-hyphen-indic" | |
1993 | '("as" "bn" "gu" "hi" "kn" "ml" "mr" "or" "pa" "ta" "te") | |
1994 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-as.tex" | |
1995 | "/tex/generic/hyph-utf8/patterns/tex/hyph-bn.tex" | |
1996 | "/tex/generic/hyph-utf8/patterns/tex/hyph-gu.tex" | |
1997 | "/tex/generic/hyph-utf8/patterns/tex/hyph-hi.tex" | |
1998 | "/tex/generic/hyph-utf8/patterns/tex/hyph-kn.tex" | |
1999 | "/tex/generic/hyph-utf8/patterns/tex/hyph-ml.tex" | |
2000 | "/tex/generic/hyph-utf8/patterns/tex/hyph-mr.tex" | |
2001 | "/tex/generic/hyph-utf8/patterns/tex/hyph-or.tex" | |
2002 | "/tex/generic/hyph-utf8/patterns/tex/hyph-pa.tex" | |
2003 | "/tex/generic/hyph-utf8/patterns/tex/hyph-ta.tex" | |
2004 | "/tex/generic/hyph-utf8/patterns/tex/hyph-te.tex") | |
2005 | (base32 | |
2006 | "1v8zc3wdbkhzjrflndmz4gdj11syz8vrcg0vwvm5bwhkx23g91lv"))) | |
2007 | (synopsis "Indic hyphenation patterns") | |
2008 | (description "This package provides hyphenation patterns for Assamese, | |
2009 | Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Panjabi, Tamil | |
2010 | and Telugu for Unicode engines.") | |
2011 | (license license:expat))) | |
2012 | ||
b6832d79 RW |
2013 | (define-public texlive-hyphen-indonesian |
2014 | (package | |
2015 | (inherit (texlive-hyphen-package | |
2016 | "texlive-hyphen-indonesian" "id" | |
2017 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-id.tex") | |
2018 | (base32 | |
2019 | "0mf0hr9c952kb2hmzid7fqg5whshwpribbyndb3ba092wh02abh5"))) | |
2020 | (synopsis "Indonesian hyphenation patterns") | |
2021 | (description "This package provides hyphenation patterns for | |
2022 | Indonesian (Bahasa Indonesia) in ASCII encoding. They are probably also | |
2023 | usable for Malay (Bahasa Melayu).") | |
2024 | (license license:gpl2))) | |
2025 | ||
9535f149 RW |
2026 | (define-public texlive-hyphen-interlingua |
2027 | (package | |
2028 | (inherit (texlive-hyphen-package | |
2029 | "texlive-hyphen-interlingua" "ia" | |
2030 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ia.tex") | |
2031 | (base32 | |
2032 | "1aihgma3rix4jkc1z5k1lh6hlfrncn66yj0givd3j6xjqflafr2g"))) | |
2033 | (synopsis "Interlingua hyphenation patterns") | |
2034 | (description "This package provides hyphenation patterns for Interlingua | |
2035 | in ASCII encoding.") | |
2036 | (license license:lppl1.3+))) | |
2037 | ||
88963a8e RW |
2038 | (define-public texlive-hyphen-irish |
2039 | (package | |
2040 | (inherit (texlive-hyphen-package | |
2041 | "texlive-hyphen-irish" "ga" | |
2042 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ga.tex") | |
2043 | (base32 | |
2044 | "02k1fykgj3xamczjq16i9fsjjsh78pp5ypmh93p64izk2vymfwk0"))) | |
2045 | (synopsis "Irish hyphenation patterns") | |
2046 | (description "This package provides hyphenation patterns for | |
2047 | Irish (Gaeilge) in T1/EC and UTF-8 encodings.") | |
2048 | ;; Either of these licenses | |
2049 | (license (list license:gpl2+ license:expat)))) | |
2050 | ||
e33250e4 RW |
2051 | (define-public texlive-hyphen-italian |
2052 | (package | |
2053 | (inherit (texlive-hyphen-package | |
2054 | "texlive-hyphen-italian" "it" | |
2055 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-it.tex") | |
2056 | (base32 | |
2057 | "1a65q3hjn2p212cgv6p7wa0wcn34qnxcz2pl3v3ip0xmb16qqsk5"))) | |
2058 | (synopsis "Italian hyphenation patterns") | |
2059 | (description "This package provides hyphenation patterns for Italian in | |
2060 | ASCII encoding. Compliant with the Recommendation UNI 6461 on hyphenation | |
2061 | issued by the Italian Standards Institution (Ente Nazionale di Unificazione | |
2062 | UNI).") | |
2063 | (license license:lppl1.3+))) | |
2064 | ||
0b344257 RW |
2065 | (define-public texlive-hyphen-kurmanji |
2066 | (package | |
2067 | (inherit (texlive-hyphen-package | |
2068 | "texlive-hyphen-kurmanji" "kmr" | |
2069 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-kmr.tex") | |
2070 | (base32 | |
2071 | "1145ykfd0b0hgklindlxdgkqmsnj3cai3cwgllz411yqmrhjc6y9"))) | |
2072 | (synopsis "Kurmanji hyphenation patterns") | |
2073 | (description "This package provides hyphenation patterns for | |
2074 | Kurmanji (Northern Kurdish) as spoken in Turkey and by the Kurdish diaspora in | |
2075 | Europe, in T1/EC and UTF-8 encodings.") | |
2076 | (license license:lppl1.3))) | |
2077 | ||
2f3a07c6 RW |
2078 | (define-public texlive-hyphen-latin |
2079 | (package | |
2080 | (inherit (texlive-hyphen-package | |
2081 | "texlive-hyphen-latin" '("la-x-classic" "la-x-liturgic" "la") | |
2082 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex" | |
2083 | "/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-liturgic.tex" | |
2084 | "/tex/generic/hyph-utf8/patterns/tex/hyph-la.tex") | |
2085 | (base32 | |
2086 | "1d8d6b47r4r000gqgzyl0sy9is0y0dg41jp8fw4gqq8qmcgdxgsg"))) | |
2087 | (synopsis "Liturgical Latin hyphenation patterns") | |
2088 | (description "This package provides hyphenation patterns for Latin in | |
2089 | T1/EC and UTF-8 encodings, mainly in modern spelling (u when u is needed and v | |
2090 | when v is needed), medieval spelling with the ligatures @code{\\ae} and | |
2091 | @code{\\oe} and the (uncial) lowercase 'v' written as a 'u' is also supported. | |
2092 | Apparently there is no conflict between the patterns of modern Latin and those | |
2093 | of medieval Latin. It also includes hyphenation patterns for the Classical | |
2094 | Latin in T1/EC and UTF-8 encodings. Classical Latin hyphenation patterns are | |
2095 | different from those of 'plain' Latin, the latter being more adapted to modern | |
2096 | Latin. It also provides hyphenation patterns for the Liturgical Latin in | |
2097 | T1/EC and UTF-8 encodings.") | |
2098 | ;; Either of these licenses | |
2099 | (license (list license:lppl1.0+ license:expat)))) | |
2100 | ||
e8effd27 RW |
2101 | (define-public texlive-hyphen-latvian |
2102 | (package | |
2103 | (inherit (texlive-hyphen-package | |
2104 | "texlive-hyphen-latvian" "lv" | |
2105 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lv.tex") | |
2106 | (base32 | |
2107 | "1xbh5s6nwfjbv7g4kmcpjkm02a6s767p7jn9qjcnz5ip0ndl5g66"))) | |
2108 | (synopsis "Latvian hyphenation patterns") | |
2109 | (description "This package provides hyphenation patterns for Latvian in | |
2110 | L7X and UTF-8 encodings.") | |
2111 | ;; Either of these licenses. | |
2112 | (license (list license:gpl2 license:lgpl2.1)))) | |
2113 | ||
af0e6cc8 RW |
2114 | (define-public texlive-hyphen-lithuanian |
2115 | (package | |
2116 | (inherit (texlive-hyphen-package | |
2117 | "texlive-hyphen-lithuanian" "lt" | |
2118 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-lt.tex") | |
2119 | (base32 | |
2120 | "0v9spw0qkygkihj5app2immzqqr98w81pz460bcgvj1ah35jdfsl"))) | |
2121 | (synopsis "Lithuanian hyphenation patterns") | |
2122 | (description "This package provides hyphenation patterns for Lithuanian in | |
2123 | L7X and UTF-8 encodings.") | |
2124 | ;; "Do ... whatever ... as long as you respect the copyright"; as part of | |
2125 | ;; the hyph-utf8 package we choose the LPPL license. | |
2126 | (license license:lppl))) | |
2127 | ||
1890799b RW |
2128 | (define-public texlive-hyphen-mongolian |
2129 | (package | |
2130 | (inherit (texlive-hyphen-package | |
2131 | "texlive-hyphen-mongolian" '("mn-cyrl-x-lmc" "mn-cyrl") | |
2132 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl-x-lmc.tex" | |
2133 | "/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl.tex") | |
2134 | (base32 | |
2135 | "0lqq3jgwgnclb1cn3x99xmk90xra9q51b00ypwy5crssmy023hqc"))) | |
2136 | (synopsis "Mongolian hyphenation patterns in Cyrillic script") | |
2137 | (description "This package provides hyphenation patterns for Mongolian in | |
2138 | T2A, LMC and UTF-8 encodings.") | |
2139 | ;; Either of these licenses | |
2140 | (license (list license:lppl1.3+ license:expat)))) | |
2141 | ||
da2b2d49 RW |
2142 | (define-public texlive-hyphen-norwegian |
2143 | (package | |
2144 | (inherit (texlive-hyphen-package | |
2145 | "texlive-hyphen-norwegian" '("nb" "nn" "no") | |
2146 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-nb.tex" | |
2147 | "/tex/generic/hyph-utf8/patterns/tex/hyph-nn.tex" | |
2148 | "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex") | |
2149 | (base32 | |
2150 | "1fxnf671yz0p3lmdkspna7fjh96br1jy6yf7v17yh4fxwry3s4yz"))) | |
2151 | (synopsis "Norwegian Bokmal and Nynorsk hyphenation patterns") | |
2152 | (description "This package provides hyphenation patterns for Norwegian | |
2153 | Bokmal and Nynorsk in T1/EC and UTF-8 encodings.") | |
2154 | (license (license:non-copyleft | |
2155 | "/tex/generic/hyph-utf8/patterns/tex/hyph-no.tex" | |
2156 | "FSF All permissive license")))) | |
2157 | ||
033406ad RW |
2158 | (define-public texlive-hyphen-occitan |
2159 | (package | |
2160 | (inherit (texlive-hyphen-package | |
2161 | "texlive-hyphen-occitan" "oc" | |
2162 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-oc.tex") | |
2163 | (base32 | |
2164 | "1y6j6ac9ncn79p7hnp6mdwdsw9ij14zyjby5iwdhpvzzn7yyc7p8"))) | |
2165 | (synopsis "Occitan hyphenation patterns") | |
2166 | (description "This package provides hyphenation patterns for Occitan in | |
2167 | T1/EC and UTF-8 encodings. They are supposed to be valid for all the Occitan | |
2168 | variants spoken and written in the wide area called 'Occitanie' by the French. | |
2169 | It ranges from the Val d'Aran within Catalunya, to the South Western Italian | |
2170 | Alps encompassing the southern half of the French pentagon.") | |
2171 | (license license:lppl1.0+))) | |
2172 | ||
db3f7fda RW |
2173 | (define-public texlive-hyphen-piedmontese |
2174 | (package | |
2175 | (inherit (texlive-hyphen-package | |
2176 | "texlive-hyphen-piedmontese" "pms" | |
2177 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pms.tex") | |
2178 | (base32 | |
2179 | "00fqzymkg374r3dzf1y82k6b18bqrf688vnjv0vkvw5a45srlb5r"))) | |
2180 | (synopsis "Piedmontese hyphenation patterns") | |
2181 | (description "This package provides hyphenation patterns for Piedmontese | |
2182 | in ASCII encoding. Compliant with 'Gramatica dla lengua piemonteisa' by | |
2183 | Camillo Brero.") | |
2184 | (license license:lppl1.3+))) | |
2185 | ||
9c451e77 RW |
2186 | (define-public texlive-hyphen-polish |
2187 | (package | |
2188 | (inherit (texlive-hyphen-package | |
2189 | "texlive-hyphen-polish" "pl" | |
2190 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex") | |
2191 | (base32 | |
2192 | "0dzq8ca96q7m5bslh51x8d30pdb86glh2gn3mmvq5ip813ckwh3s"))) | |
2193 | (synopsis "Polish hyphenation patterns") | |
2194 | (description "This package provides hyphenation patterns for Polish in QX | |
2195 | and UTF-8 encodings.") | |
2196 | ;; No differing license declared, so we choose the project license. | |
2197 | (license license:lppl))) | |
2198 | ||
5fd12ffb RW |
2199 | (define-public texlive-hyphen-portuguese |
2200 | (package | |
2201 | (inherit (texlive-hyphen-package | |
2202 | "texlive-hyphen-portuguese" "pt" | |
2203 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-pt.tex") | |
2204 | (base32 | |
2205 | "1waxrmm33fd2qfc4kiaiblg8kwzasrvgq4j3l14z733d0hlg4rfz"))) | |
2206 | (synopsis "Portuguese hyphenation patterns") | |
2207 | (description "This package provides hyphenation patterns for Portuguese in | |
2208 | T1/EC and UTF-8 encodings.") | |
2209 | (license license:bsd-3))) | |
2210 | ||
6fa3b112 RW |
2211 | (define-public texlive-hyphen-romanian |
2212 | (package | |
2213 | (inherit (texlive-hyphen-package | |
2214 | "texlive-hyphen-romanian" "ro" | |
2215 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ro.tex") | |
2216 | (base32 | |
2217 | "12i1vryl51yhdpj163ahfyiy21rjmf4gkqgslpriirdjmyrwrs65"))) | |
2218 | (synopsis "Romanian hyphenation patterns") | |
2219 | (description "This package provides hyphenation patterns for Romanian in | |
2220 | T1/EC and UTF-8 encodings.") | |
2221 | ;; No differing license declared, so we choose the project license. | |
2222 | (license license:lppl))) | |
2223 | ||
c4abd4a2 RW |
2224 | (define-public texlive-hyphen-romansh |
2225 | (package | |
2226 | (inherit (texlive-hyphen-package | |
2227 | "texlive-hyphen-romansh" "rm" | |
2228 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex") | |
2229 | (base32 | |
2230 | "06wan8i4appc1zfvc0q4cgnfv1nj0qgk02w3sg56zc11hf8sywl9"))) | |
2231 | (synopsis "Romansh hyphenation patterns") | |
2232 | (description "This package provides hyphenation patterns for Romansh in | |
2233 | ASCII encodings. They are supposed to comply with the rules indicated by the | |
2234 | Lia Rumantscha (Romansh language society).") | |
2235 | (license license:lppl1.3+))) | |
2236 | ||
483d8af6 RW |
2237 | (define-public texlive-hyphen-russian |
2238 | (package | |
2239 | (inherit (texlive-hyphen-package | |
2240 | "texlive-hyphen-russian" "ru" | |
2241 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex") | |
2242 | (base32 | |
2243 | "09s4vq23x4vff08ykmf08dvcdradjzzwvyys8p2wk6jxaqp980s3"))) | |
2244 | (synopsis "Russian hyphenation patterns") | |
2245 | (description "This package provides hyphenation patterns for Russian in | |
2246 | T2A and UTF-8 encodings.") | |
2247 | (license license:lppl1.2+))) | |
2248 | ||
19e31f91 RW |
2249 | (define-public texlive-hyphen-sanskrit |
2250 | (package | |
2251 | (inherit (texlive-hyphen-package | |
2252 | "texlive-hyphen-sanskrit" "sa" | |
2253 | (list "/doc/generic/hyph-utf8/sa/hyphenmin.txt" | |
2254 | "/tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex") | |
2255 | (base32 | |
2256 | "0grnn09l4i5yridx10yhm6dg9sbhgc2pmsp1p6hrcy7lzkqwdvs3"))) | |
2257 | (synopsis "Sanskrit hyphenation patterns") | |
2258 | (description "This package provides hyphenation patterns for Sanskrit and | |
2259 | Prakrit in longdesc transliteration, and in Devanagari, Bengali, Kannada, | |
2260 | Malayalam longdesc and Telugu scripts for Unicode engines.") | |
2261 | ;; "You may freely use, copy, modify and/or distribute this file." | |
2262 | (license (license:non-copyleft | |
2263 | "file:///tex/generic/hyph-utf8/patterns/tex/hyph-sa.tex")))) | |
2264 | ||
67c7900e RW |
2265 | (define-public texlive-hyphen-serbian |
2266 | (package | |
2267 | (inherit (texlive-hyphen-package | |
2268 | "texlive-hyphen-serbian" '("sh-cyrl" "sh-latn" "sr-cyrl") | |
2269 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-cyrl.tex" | |
2270 | "/tex/generic/hyph-utf8/patterns/tex/hyph-sh-latn.tex" | |
2271 | "/tex/generic/hyph-utf8/patterns/tex/hyph-sr-cyrl.tex") | |
2272 | (base32 | |
2273 | "0fhdfydyaspb8dwirlf24vn7y9dzwmhsld0mmw0fz1lmcfaj252n"))) | |
2274 | (synopsis "Serbian hyphenation patterns") | |
2275 | (description "This package provides hyphenation patterns for Serbian in | |
2276 | T1/EC, T2A and UTF-8 encodings.") | |
2277 | ;; Any version of the GPL. | |
2278 | (license license:gpl3+))) | |
2279 | ||
af13345a RW |
2280 | (define-public texlive-hyphen-slovak |
2281 | (package | |
2282 | (inherit (texlive-hyphen-package | |
2283 | "texlive-hyphen-slovak" "sk" | |
2284 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex") | |
2285 | (base32 | |
2286 | "1cgw6fmyci3za3vsa49b6m74wqv582w0rpca7s9xva3hqm1m5qdg"))) | |
2287 | (synopsis "Slovak hyphenation patterns") | |
2288 | (description "This package provides hyphenation patterns for Slovak in | |
2289 | T1/EC and UTF-8 encodings.") | |
2290 | (license license:gpl2+))) | |
2291 | ||
3cd8868f RW |
2292 | (define-public texlive-hyphen-slovenian |
2293 | (package | |
2294 | (inherit (texlive-hyphen-package | |
2295 | "texlive-hyphen-slovenian" "sl" | |
2296 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sl.tex") | |
2297 | (base32 | |
2298 | "1ixf2pxir9xf1gggq9k28xxglsq9bwqlghd9cl4amk5vrn5bjbds"))) | |
2299 | (synopsis "Slovenian hyphenation patterns") | |
2300 | (description "This package provides hyphenation patterns for Slovenian in | |
2301 | T1/EC and UTF-8 encodings.") | |
2302 | ;; Either license | |
2303 | (license (list license:lppl1.0+ license:expat)))) | |
2304 | ||
40b009b8 RW |
2305 | (define-public texlive-hyphen-spanish |
2306 | (package | |
2307 | ;; The source files "eshyph-make.lua" and "eshyph.src" are provided to | |
2308 | ;; generate obsolete hyphenation patterns, which aren't included in a | |
2309 | ;; default TeX Live distribution, so we don't include them either. | |
2310 | (inherit (texlive-hyphen-package | |
2311 | "texlive-hyphen-spanish" "es" | |
2312 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-es.tex") | |
2313 | (base32 | |
2314 | "0jgs0zzyk2wwrjbx2hqdh5qggrnik9xmsxygbfhlb7gdrcrs0mbj"))) | |
2315 | (synopsis "Hyphenation patterns for Spanish") | |
2316 | (description "The package provides hyphenation patterns for Spanish in | |
2317 | T1/EC and UTF-8 encodings.") | |
2318 | (license license:expat))) | |
2319 | ||
1e7db181 RW |
2320 | (define-public texlive-hyphen-swedish |
2321 | (package | |
2322 | (inherit (texlive-hyphen-package | |
2323 | "texlive-hyphen-swedish" "sv" | |
2324 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-sv.tex") | |
2325 | (base32 | |
2326 | "12sf9f43zwyzb4cn57yry8r4zmwdc7cfdljn3qwxwrny4m3sw4w8"))) | |
2327 | (synopsis "Swedish hyphenation patterns") | |
2328 | (description "This package provides hyphenation patterns for Swedish in | |
2329 | T1/EC and UTF-8 encodings.") | |
2330 | (license license:lppl1.2+))) | |
2331 | ||
3eaee8fb RW |
2332 | (define-public texlive-hyphen-thai |
2333 | (package | |
2334 | (inherit (texlive-hyphen-package | |
2335 | "texlive-hyphen-thai" "th" | |
2336 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-th.tex") | |
2337 | (base32 | |
2338 | "15k1n4xdw8zzd5nrh76s53z4j95gxa4i2h1av5gx5vrjgblzzl97"))) | |
2339 | (synopsis "Thai hyphenation patterns") | |
2340 | (description "This package provides hyphenation patterns for Thai in LTH | |
2341 | and UTF-8 encodings.") | |
2342 | (license license:lppl1.3+))) | |
2343 | ||
e80ecb7b RW |
2344 | (define-public texlive-hyphen-turkish |
2345 | (let ((template (texlive-hyphen-package | |
2346 | "texlive-hyphen-turkish" "tr" | |
2347 | (list "/source/generic/hyph-utf8/languages/tr/generate_patterns_tr.rb") | |
2348 | (base32 | |
2349 | "0rvlhs2z2sn312lqsf44bzknid5dry7d2sl2q1whfvr0y4qj1g8f")))) | |
2350 | (package | |
2351 | (inherit template) | |
2352 | (arguments | |
2353 | (substitute-keyword-arguments (package-arguments template) | |
2354 | ((#:phases phases) | |
2355 | `(modify-phases ,phases | |
2356 | (add-before 'build 'build-patterns | |
2357 | (lambda _ | |
2358 | (let ((target (string-append (getcwd) | |
2359 | "/tex/generic/hyph-utf8/patterns/tex"))) | |
2360 | (mkdir-p target) | |
2361 | (with-directory-excursion "source/generic/hyph-utf8/languages/tr/" | |
2362 | (substitute* "generate_patterns_tr.rb" | |
2363 | (("\\$file = File.new.*") | |
2364 | (string-append "$file = File.new(\"" target | |
2365 | "/hyph-tr.tex\",\"w\")\n"))) | |
2366 | (invoke "ruby" "generate_patterns_tr.rb")) | |
2367 | #t))) | |
2368 | (add-after 'install 'install-hyph-tr.tex | |
2369 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2370 | (let* ((out (assoc-ref outputs "out")) | |
2371 | (target (string-append out "/share/texmf-dist/tex"))) | |
2372 | (copy-recursively "tex" target) | |
2373 | #t))))))) | |
2374 | (synopsis "Hyphenation patterns for Turkish") | |
2375 | (description "The package provides hyphenation patterns for Turkish in | |
2376 | T1/EC and UTF-8 encodings. The patterns for Turkish were first produced for | |
2377 | the Ottoman Texts Project in 1987 and were suitable for both Modern Turkish | |
2378 | and Ottoman Turkish in Latin script, however the required character set didn't | |
2379 | fit into EC encoding, so support for Ottoman Turkish had to be dropped to keep | |
2380 | compatibility with 8-bit engines.") | |
2381 | (license license:lppl1.0+)))) | |
2382 | ||
5f50dd95 RW |
2383 | (define-public texlive-hyphen-turkmen |
2384 | (let ((template (texlive-hyphen-package | |
2385 | "texlive-hyphen-turkmen" "tk" | |
2386 | (list "/source/generic/hyph-utf8/languages/tk/generate_patterns_tk.rb") | |
2387 | (base32 | |
2388 | "1wlqx8wb0wsqhdv823brc3i8w1vf4m4bkb2vg917j5dq8p8p71aw")))) | |
2389 | (package | |
2390 | (inherit template) | |
2391 | (arguments | |
2392 | (substitute-keyword-arguments (package-arguments template) | |
2393 | ((#:phases phases) | |
2394 | `(modify-phases ,phases | |
2395 | (add-before 'build 'build-patterns | |
2396 | (lambda _ | |
2397 | (let ((target (string-append (getcwd) | |
2398 | "/tex/generic/hyph-utf8/patterns/tex"))) | |
2399 | (mkdir-p target) | |
2400 | (with-directory-excursion "source/generic/hyph-utf8/languages/tk/" | |
2401 | (substitute* "generate_patterns_tk.rb" | |
2402 | (("\\$file = File.new.*") | |
2403 | (string-append "$file = File.new(\"" target | |
2404 | "/hyph-tr.tex\",\"w\")\n"))) | |
2405 | (invoke "ruby" "generate_patterns_tk.rb")) | |
2406 | #t))) | |
2407 | (add-after 'install 'install-hyph-tk.tex | |
2408 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2409 | (let* ((out (assoc-ref outputs "out")) | |
2410 | (target (string-append out "/share/texmf-dist/tex"))) | |
2411 | (copy-recursively "tex" target) | |
2412 | #t))))))) | |
2413 | (synopsis "Hyphenation patterns for Turkmen") | |
2414 | (description "The package provides hyphenation patterns for Turkmen in | |
2415 | T1/EC and UTF-8 encodings.") | |
2416 | (license license:public-domain)))) | |
2417 | ||
cf8f4e1b RW |
2418 | (define-public texlive-hyphen-ukrainian |
2419 | (package | |
2420 | (inherit (texlive-hyphen-package | |
2421 | "texlive-hyphen-ukrainian" "uk" | |
2422 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-uk.tex") | |
2423 | (base32 | |
2424 | "17z0gmw5svsf5zlhjkckwk4y21g7prfwj473jlqnwcsr8a941gsf"))) | |
2425 | (synopsis "Ukrainian hyphenation patterns") | |
2426 | (description "This package provides hyphenation patterns for Ukrainian in | |
2427 | T2A and UTF-8 encodings.") | |
2428 | ;; No version specified | |
2429 | (license license:lppl))) | |
2430 | ||
71e58125 RW |
2431 | (define-public texlive-hyphen-uppersorbian |
2432 | (package | |
2433 | (inherit (texlive-hyphen-package | |
2434 | "texlive-hyphen-uppersorbian" "hsb" | |
2435 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-hsb.tex") | |
2436 | (base32 | |
2437 | "1q42s32cfbynlnzn9hpcldi77fszi5xkn1c85l8xqjmfydqbqdyi"))) | |
2438 | (synopsis "Upper Sorbian hyphenation patterns") | |
2439 | (description "This package provides hyphenation patterns for Upper Sorbian | |
2440 | in T1/EC and UTF-8 encodings.") | |
2441 | (license license:lppl1.3a+))) | |
2442 | ||
0d4088e4 RW |
2443 | (define-public texlive-hyphen-welsh |
2444 | (package | |
2445 | (inherit (texlive-hyphen-package | |
2446 | "texlive-hyphen-welsh" "cy" | |
2447 | (list "/tex/generic/hyph-utf8/patterns/tex/hyph-cy.tex") | |
2448 | (base32 | |
2449 | "0h8yjj5zdg0hvpb2vx9gi376536nl59hp8w286z1a13diaayg1m2"))) | |
2450 | (synopsis "Welsh hyphenation patterns") | |
2451 | (description "This package provides hyphenation patterns for Welsh in | |
2452 | T1/EC and UTF-8 encodings.") | |
2453 | ;; Either license | |
2454 | (license (list license:lppl1.0+ license:expat)))) | |
2455 | ||
5153431c RW |
2456 | (define-public texlive-hyph-utf8 |
2457 | (package | |
2458 | (inherit (simple-texlive-package | |
2459 | "texlive-hyph-utf8" | |
2460 | (list "/source/generic/hyph-utf8/" | |
2461 | "/source/luatex/hyph-utf8/" | |
2462 | "/doc/luatex/hyph-utf8/" | |
2463 | "/tex/luatex/hyph-utf8/etex.src" | |
2464 | ;; Used to extract luatex-hyphen.lua | |
2465 | "/tex/latex/base/docstrip.tex" | |
2466 | ||
2467 | ;; Documentation; we can't use the whole directory because | |
2468 | ;; it includes files from other packages. | |
2469 | "/doc/generic/hyph-utf8/CHANGES" | |
2470 | "/doc/generic/hyph-utf8/HISTORY" | |
2471 | "/doc/generic/hyph-utf8/hyph-utf8.pdf" | |
2472 | "/doc/generic/hyph-utf8/hyph-utf8.tex" | |
2473 | "/doc/generic/hyph-utf8/hyphenation-distribution.pdf" | |
2474 | "/doc/generic/hyph-utf8/hyphenation-distribution.tex" | |
2475 | "/doc/generic/hyph-utf8/img/miktex-languages.png" | |
2476 | "/doc/generic/hyph-utf8/img/texlive-collection.png") | |
2477 | (base32 | |
2478 | "10y8svgk68sivmgzrv8gv137r7kv49cs256cq2wja9ms437pxvbj"))) | |
2479 | (outputs '("out" "doc")) | |
2480 | (build-system gnu-build-system) | |
2481 | (arguments | |
2482 | `(#:tests? #f ; there are none | |
2483 | #:modules ((guix build gnu-build-system) | |
2484 | (guix build utils) | |
2485 | (ice-9 match)) | |
2486 | #:make-flags | |
2487 | (list "-C" "source/luatex/hyph-utf8/" | |
2488 | (string-append "DO_TEX = tex --interaction=nonstopmode '&tex' $<") | |
2489 | (string-append "RUNDIR =" (assoc-ref %outputs "out") "/share/texmf-dist/tex/luatex/hyph-utf8/") | |
2490 | (string-append "DOCDIR =" (assoc-ref %outputs "doc") "/share/texmf-dist/doc/luatex/hyph-utf8/") | |
2491 | ;; hyphen.cfg is neither included nor generated, so let's only build the lua file. | |
2492 | (string-append "UNPACKED = $(NAME).lua")) | |
2493 | #:phases | |
2494 | (modify-phases %standard-phases | |
2495 | ;; TeX isn't usable at this point, so we first need to generate the | |
2496 | ;; tex.fmt. | |
2497 | (replace 'configure | |
2498 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2499 | ;; Target directories must exist. | |
2500 | (mkdir-p (string-append (assoc-ref %outputs "out") | |
2501 | "/share/texmf-dist/tex/luatex/hyph-utf8/")) | |
2502 | (mkdir-p (string-append (assoc-ref %outputs "doc") | |
2503 | "/share/texmf-dist/doc/luatex/hyph-utf8/")) | |
2504 | ||
2505 | ;; We cannot build the documentation because that requires a | |
2506 | ;; fully functional pdflatex, which depends on this package. | |
2507 | (substitute* "source/luatex/hyph-utf8/Makefile" | |
2508 | (("all: .*") "all: $(RUNFILES)\n")) | |
2509 | ||
2510 | ;; Find required fonts for building tex.fmt | |
2511 | (setenv "TFMFONTS" | |
2512 | (string-append (assoc-ref inputs "texlive-fonts-cm") | |
2513 | "/share/texmf-dist/fonts/tfm/public/cm:" | |
2514 | (assoc-ref inputs "texlive-fonts-knuth-lib") | |
2515 | "/share/texmf-dist/fonts/tfm/public/knuth-lib")) | |
2516 | ;; ...and find all tex files in this environment. | |
2517 | (setenv "TEXINPUTS" | |
2518 | (string-append | |
2519 | (getcwd) ":" | |
2520 | (string-join | |
2521 | (map (match-lambda ((_ . dir) dir)) inputs) | |
2522 | "//:"))) | |
2523 | ||
2524 | ;; Generate tex.fmt. | |
2525 | (let ((where "source/luatex/hyph-utf8")) | |
2526 | (mkdir-p where) | |
2527 | (with-directory-excursion where | |
2528 | (invoke "tex" "-ini" | |
2529 | (string-append (assoc-ref inputs "texlive-tex-plain") | |
2530 | "/share/texmf-dist/tex/plain/config/tex.ini")))))) | |
2531 | (add-before 'build 'build-loaders-and-converters | |
2532 | (lambda* (#:key outputs #:allow-other-keys) | |
2533 | (let* ((root (string-append (assoc-ref outputs "out") | |
2534 | "/share/texmf-dist")) | |
2535 | (conv | |
2536 | (string-append root | |
2537 | "/tex/generic/hyph-utf8/conversions"))) | |
2538 | ||
2539 | ;; Build converters | |
2540 | (mkdir-p conv) | |
2541 | (with-directory-excursion "source/generic/hyph-utf8" | |
2542 | (substitute* "generate-converters.rb" | |
2543 | (("\\$path_root=File.*") | |
2544 | (string-append "$path_root=\"" root "\"\n")) | |
2545 | ;; Avoid error with newer Ruby. | |
2546 | (("#1\\{%") "#1{%%")) | |
2547 | (invoke "ruby" "generate-converters.rb")) | |
2548 | #t))) | |
2549 | (replace 'install | |
2550 | (lambda* (#:key source outputs #:allow-other-keys) | |
2551 | (let ((doc (assoc-ref outputs "doc")) | |
2552 | (out (assoc-ref outputs "out"))) | |
2553 | (mkdir-p doc) | |
2554 | (copy-recursively | |
2555 | (string-append source "/doc") | |
2556 | (string-append doc "/doc")) | |
2557 | (install-file | |
2558 | (string-append source "/tex/luatex/hyph-utf8/etex.src") | |
2559 | (string-append out "/share/texmf-dist/tex/luatex/hyph-utf8/"))) | |
2560 | #t))))) | |
2561 | (native-inputs | |
2562 | `(("ruby" ,ruby) | |
2563 | ("texlive-bin" ,texlive-bin) | |
2564 | ;; The following packages are needed for build "tex.fmt", which we need | |
2565 | ;; for a working "tex". | |
2566 | ("texlive-tex-plain" ,texlive-tex-plain) | |
2567 | ("texlive-fonts-cm" ,texlive-fonts-cm) | |
2568 | ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib) | |
2569 | ("texlive-hyphen-base" ,texlive-hyphen-base))) | |
2570 | (home-page "https://ctan.org/pkg/hyph-utf8") | |
2571 | (synopsis "Hyphenation patterns expressed in UTF-8") | |
2572 | (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need | |
2573 | hyphenation patterns in UTF-8 format, whereas older systems require | |
2574 | hyphenation patterns in the 8-bit encoding of the font in use (such encodings | |
2575 | are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1, | |
2576 | etc). The present package offers a collection of conversions of existing | |
2577 | patterns to UTF-8 format, together with converters for use with 8-bit fonts in | |
2578 | older systems. Since hyphenation patterns for Knuthian-style TeX systems are | |
2579 | only read at iniTeX time, it is hoped that the UTF-8 patterns, with their | |
2580 | converters, will completely supplant the older patterns.") | |
2581 | ;; Individual files each have their own license. Most of these files are | |
2582 | ;; independent hyphenation patterns. | |
2583 | (license (list license:lppl1.0+ | |
2584 | license:lppl1.2+ | |
2585 | license:lppl1.3 | |
2586 | license:lppl1.3+ | |
2587 | license:lppl1.3a+ | |
2588 | license:lgpl2.1 | |
2589 | license:lgpl2.1+ | |
2590 | license:lgpl3+ | |
2591 | license:gpl2+ | |
2592 | license:gpl3+ | |
2593 | license:mpl1.1 | |
2594 | license:asl2.0 | |
2595 | license:expat | |
2596 | license:bsd-3 | |
2597 | license:cc0 | |
2598 | license:public-domain | |
2599 | license:wtfpl2)))) | |
2600 | ||
2601 | (define-public texlive-generic-hyph-utf8 | |
2602 | (deprecated-package "texlive-generic-hyph-utf8" texlive-hyph-utf8)) | |
2603 | ||
e68c7091 RW |
2604 | (define-public texlive-dehyph-exptl |
2605 | (package | |
2606 | (inherit (simple-texlive-package | |
2607 | "texlive-dehyph-exptl" | |
2608 | (list "/tex/generic/dehyph-exptl/" | |
2609 | "/doc/generic/dehyph-exptl/") | |
2610 | (base32 | |
2611 | "1w2danvvy2f52hcb4acvjks53kcanwxr9s990fap6mj279hpgmh2") | |
2612 | #:trivial? #t)) | |
2613 | (propagated-inputs | |
2614 | `(("texlive-hyphen-base" ,texlive-hyphen-base) | |
2615 | ("texlive-hyph-utf8" ,texlive-hyph-utf8))) | |
2616 | (home-page "http://projekte.dante.de/Trennmuster/WebHome") | |
2617 | (synopsis "Hyphenation patterns for German") | |
2618 | (description "The package provides experimental hyphenation patterns for | |
2619 | the German language, covering both traditional and reformed orthography. The | |
2620 | patterns can be used with packages Babel and hyphsubst from the Oberdiek | |
2621 | bundle.") | |
2622 | ;; Hyphenation patterns are under the Expat license; documentation is | |
2623 | ;; under LPPL. | |
2624 | (license (list license:expat license:lppl)))) | |
2625 | ||
2626 | (define-public texlive-generic-dehyph-exptl | |
2627 | (deprecated-package "texlive-generic-dehyph-exptl" texlive-dehyph-exptl)) | |
2628 | ||
10e8b338 RW |
2629 | (define-public texlive-ukrhyph |
2630 | (package | |
2631 | (inherit (simple-texlive-package | |
2632 | "texlive-ukrhyph" | |
2633 | (list "/doc/generic/ukrhyph/" | |
2634 | "/tex/generic/ukrhyph/") | |
2635 | (base32 | |
2636 | "01ma274sixcrbpb7fpqkxwfvrnzfj2srv9b4a42rfnph1pdql74z") | |
2637 | #:trivial? #t)) | |
2638 | (home-page "https://www.ctan.org/pkg/ukrhyph") | |
2639 | (synopsis "Hyphenation patterns for Ukrainian") | |
2640 | (description "The package provides a range of hyphenation patterns for | |
2641 | Ukrainian, depending on the encoding of the output font including the standard | |
2642 | T2A.") | |
2643 | (license license:lppl))) | |
2644 | ||
c87d8a14 RW |
2645 | (define-public texlive-ruhyphen |
2646 | (let ((template (simple-texlive-package | |
2647 | "texlive-ruhyphen" | |
2648 | (list "/source/generic/ruhyphen/" | |
2649 | "/tex/generic/ruhyphen/") | |
2650 | (base32 | |
2651 | "18n1bqhh8jv765vz3a3fjwffy7m71vhwx9yq8zl0p5j7p72q9qcn") | |
2652 | #:trivial? #t))) | |
2653 | (package | |
2654 | (inherit template) | |
2655 | (arguments | |
2656 | (substitute-keyword-arguments (package-arguments template) | |
2657 | ((#:phases phases) | |
2658 | `(modify-phases ,phases | |
2659 | (replace 'build | |
2660 | (lambda _ | |
2661 | (let ((cwd (getcwd))) | |
2662 | ;; Remove generated files. | |
2663 | (for-each delete-file | |
2664 | (find-files "tex/generic/ruhyphen/" | |
2665 | "^cyry.*.tex$")) | |
2666 | (substitute* "source/generic/ruhyphen/Makefile" | |
2667 | (("./mkcyryo") (string-append cwd "/source/generic/ruhyphen/mkcyryo"))) | |
2668 | (with-directory-excursion "tex/generic/ruhyphen" | |
2669 | (invoke "make" "-f" | |
2670 | (string-append cwd "/source/generic/ruhyphen/Makefile")))))))))) | |
2671 | (native-inputs | |
2672 | `(("coreutils" ,coreutils) | |
2673 | ("gawk" ,gawk) | |
2674 | ("sed" ,sed) | |
2675 | ("grep" ,grep) | |
2676 | ("perl" ,perl))) | |
2677 | (home-page "https://www.ctan.org/pkg/ruhyphen") | |
2678 | (synopsis "Hyphenation patterns for Russian") | |
2679 | (description "The package provides a collection of Russian hyphenation | |
2680 | patterns supporting a number of Cyrillic font encodings, including T2, | |
2681 | UCY (Omega Unicode Cyrillic), LCY, LWN (OT2), and koi8-r.") | |
2682 | (license license:lppl)))) | |
2683 | ||
57680dc2 RW |
2684 | (define-public texlive-latexconfig |
2685 | (package | |
2686 | (inherit (simple-texlive-package | |
2687 | "texlive-latexconfig" | |
2688 | (list "/tex/latex/latexconfig/") | |
2689 | (base32 | |
2690 | "1wa7yhdpnz1nyidwgli68fyr33jn951bnniqrih5lj98k09rqc3h") | |
2691 | #:trivial? #t)) | |
2692 | (home-page "https://www.tug.org/") | |
2693 | (synopsis "Configuration files for LaTeX-related formats") | |
2694 | (description "The package provides configuration files for LaTeX-related | |
2695 | formats.") | |
2696 | (license license:lppl))) | |
2697 | ||
010f476f RW |
2698 | (define-public texlive-latex-base |
2699 | (let ((texlive-dir | |
2700 | (lambda (dir hash) | |
2701 | (origin | |
2702 | (method svn-fetch) | |
2703 | (uri (svn-reference | |
2704 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2705 | %texlive-tag "/Master/texmf-dist/" | |
2706 | dir)) | |
2707 | (revision %texlive-revision))) | |
8d514ae7 EF |
2708 | (file-name (string-append "texlive-generic-" |
2709 | (last (string-split | |
2710 | (string-drop-right dir 1) #\/)) | |
2711 | "-" (number->string %texlive-revision) | |
2712 | "-checkout")) | |
010f476f RW |
2713 | (sha256 (base32 hash)))))) |
2714 | (package | |
2715 | (name "texlive-latex-base") | |
2716 | (version (number->string %texlive-revision)) | |
2717 | (source (origin | |
2718 | (method svn-fetch) | |
2719 | (uri (texlive-ref "latex" "base")) | |
8d514ae7 | 2720 | (file-name (string-append name "-" version "-checkout")) |
010f476f RW |
2721 | (sha256 |
2722 | (base32 | |
d4d9a1ec | 2723 | "17bqrzzjz16k52sc7ydl4vw7ddy2z3g0p1xsk2c35h1ynq9h3wwm")))) |
010f476f RW |
2724 | (build-system gnu-build-system) |
2725 | (arguments | |
2726 | `(#:modules ((guix build gnu-build-system) | |
2727 | (guix build utils) | |
2728 | (ice-9 match) | |
2729 | (srfi srfi-1) | |
2730 | (srfi srfi-26)) | |
2731 | #:tests? #f ; no tests | |
2732 | #:phases | |
2733 | (modify-phases %standard-phases | |
2734 | (delete 'configure) | |
2735 | (replace 'build | |
2736 | (lambda* (#:key inputs #:allow-other-keys) | |
2737 | ;; Find required fonts | |
2738 | (setenv "TFMFONTS" | |
2739 | (string-append (assoc-ref inputs "texlive-fonts-cm") | |
2740 | "/share/texmf-dist/fonts/tfm/public/cm:" | |
2741 | (assoc-ref inputs "texlive-fonts-latex") | |
2742 | "/share/texmf-dist/fonts/tfm/public/latex-fonts:" | |
2743 | (assoc-ref inputs "texlive-fonts-knuth-lib") | |
2744 | "/share/texmf-dist/fonts/tfm/public/knuth-lib")) | |
2745 | (setenv "TEXINPUTS" | |
2746 | (string-append | |
2747 | (getcwd) ":" | |
2748 | (getcwd) "/build:" | |
2749 | (string-join | |
6858ade2 RW |
2750 | (map (match-lambda ((_ . dir) dir)) inputs) |
2751 | "//:"))) | |
010f476f RW |
2752 | |
2753 | ;; Create an empty texsys.cfg, because latex.ltx wants to include | |
2754 | ;; it. This file must exist and it's fine if it's empty. | |
2755 | (with-output-to-file "texsys.cfg" | |
2756 | (lambda _ (format #t "%"))) | |
2757 | ||
2758 | (mkdir "build") | |
2759 | (mkdir "web2c") | |
4f2f53f9 MW |
2760 | (invoke "luatex" "-ini" "-interaction=batchmode" |
2761 | "-output-directory=build" "unpack.ins") | |
2762 | (invoke "tex" "-ini" "-interaction=batchmode" | |
2763 | "-output-directory=web2c" "tex.ini") | |
2764 | ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which | |
2765 | ;; is enabled only in extended mode (activated with a | |
2766 | ;; leading asterisk). We should not use luatex here, | |
2767 | ;; because that would make the generated format files | |
2768 | ;; incompatible with any other TeX engine. | |
2769 | (for-each (lambda (format) | |
2770 | (invoke "latex" "-ini" "-interaction=batchmode" | |
2771 | "-output-directory=web2c" | |
2772 | "-translate-file=cp227.tcx" | |
2773 | (string-append "*" format ".ini"))) | |
2774 | '("latex" | |
2775 | "pdflatex" | |
2776 | "pdfetex")) | |
2777 | (for-each (lambda (format) | |
2778 | (invoke format "-ini" "-interaction=batchmode" | |
2779 | "-output-directory=web2c" | |
2780 | (string-append "*" format ".ini"))) | |
2781 | '("xetex" | |
2782 | "xelatex")) | |
2783 | (for-each (lambda (format) | |
2784 | (invoke "luatex" "-ini" "-interaction=batchmode" | |
2785 | "-output-directory=web2c" | |
2786 | (string-append format ".ini"))) | |
2787 | '("dviluatex" "dvilualatex" "luatex" "lualatex")) | |
2788 | #t)) | |
010f476f | 2789 | (replace 'install |
756fc3e1 | 2790 | (lambda* (#:key inputs outputs #:allow-other-keys) |
010f476f RW |
2791 | (let* ((out (assoc-ref outputs "out")) |
2792 | (target (string-append | |
2793 | out "/share/texmf-dist/tex/latex/base")) | |
2794 | (web2c (string-append | |
756fc3e1 PN |
2795 | out "/share/texmf-dist/web2c")) |
2796 | (support-files (assoc-ref inputs "texlive-latex-base-support-files"))) | |
010f476f RW |
2797 | (mkdir-p target) |
2798 | (mkdir-p web2c) | |
2799 | (for-each delete-file (find-files "." "\\.(log|aux)$")) | |
2800 | (for-each (cut install-file <> target) | |
2801 | (find-files "build" ".*")) | |
2802 | (for-each (cut install-file <> web2c) | |
2803 | (find-files "web2c" ".*")) | |
bd6e2385 RW |
2804 | ;; pdftex is really just the same as pdfetex, but since it |
2805 | ;; doesn't have its own format file, we need to copy it. | |
2806 | (copy-file "web2c/pdfetex.fmt" | |
2807 | (string-append web2c "/pdftex.fmt")) | |
756fc3e1 PN |
2808 | ;; "source" is missing the support files as per doc/latex/base/manifest.txt. |
2809 | ;; FIXME: We are probably not packaging this right. | |
2810 | (for-each (lambda (file) | |
2811 | (install-file | |
2812 | (string-append support-files "/" file) | |
2813 | target)) | |
2814 | '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex" | |
2815 | "lablst.tex" "testpage.tex" "ltxcheck.tex")) | |
d68c8017 RW |
2816 | ;; Install configurations |
2817 | (copy-recursively | |
2818 | (assoc-ref inputs "texlive-latex-latexconfig") | |
2819 | (string-append out "/share/texmf-dist/tex/latex/latexconfig")) | |
2820 | (copy-recursively | |
2821 | (assoc-ref inputs "texlive-generic-config") | |
2822 | (string-append out "/share/texmf-dist/tex/generic/config")) | |
2823 | (copy-recursively | |
2824 | (assoc-ref inputs "texlive-generic-hyphen") | |
2825 | (string-append out "/share/texmf-dist/tex/generic/hyphen")) | |
2826 | (copy-recursively | |
2827 | (assoc-ref inputs "texlive-generic-ruhyphen") | |
2828 | (string-append out "/share/texmf-dist/tex/generic/ruhyphen")) | |
2829 | (copy-recursively | |
2830 | (assoc-ref inputs "texlive-generic-ukrhyph") | |
2831 | (string-append out "/share/texmf-dist/tex/generic/ukrhyph")) | |
010f476f RW |
2832 | #t)))))) |
2833 | (native-inputs | |
2834 | `(("texlive-bin" ,texlive-bin) | |
2835 | ("texlive-generic-unicode-data" ,texlive-generic-unicode-data) | |
2836 | ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl) | |
2837 | ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files) | |
2838 | ("texlive-latex-latexconfig" | |
2839 | ,(texlive-dir "tex/latex/latexconfig/" | |
2840 | "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf")) | |
010f476f RW |
2841 | ("texlive-generic-hyphen" |
2842 | ,(texlive-dir "tex/generic/hyphen/" | |
2843 | "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd")) | |
2844 | ("texlive-generic-ruhyphen" | |
2845 | ,(texlive-dir "tex/generic/ruhyphen/" | |
2846 | "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd")) | |
2847 | ("texlive-generic-ukrhyph" | |
2848 | ,(texlive-dir "tex/generic/ukrhyph/" | |
2849 | "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv")) | |
2850 | ("texlive-generic-config" | |
2851 | ,(texlive-dir "tex/generic/config/" | |
d4d9a1ec | 2852 | "1v90iihy112q93zdpblpdk8zv8rf99fgslsg06s1sxm27zjm9nap")) |
756fc3e1 PN |
2853 | ("texlive-latex-base-support-files" |
2854 | ,(origin | |
2855 | (method svn-fetch) | |
2856 | (uri (svn-reference | |
2857 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2858 | %texlive-tag "/Master/texmf-dist/" | |
2859 | "/tex/latex/base")) | |
2860 | (revision %texlive-revision))) | |
2861 | (file-name (string-append name "-" version "-checkout")) | |
2862 | (sha256 | |
2863 | (base32 | |
d4d9a1ec | 2864 | "18wy8dlcw8adl6jzqwbg54pdwlhs8hilnfvqbw6ikj6y3zhqkj7q")))) |
010f476f RW |
2865 | ("texlive-tex-plain" ,texlive-tex-plain) |
2866 | ("texlive-fonts-cm" ,texlive-fonts-cm) | |
2867 | ("texlive-fonts-latex" ,texlive-fonts-latex) | |
2868 | ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib))) | |
d68c8017 RW |
2869 | (propagated-inputs |
2870 | `(("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8))) | |
b8d8806b | 2871 | (home-page "https://www.ctan.org/pkg/latex-base") |
010f476f RW |
2872 | (synopsis "Base sources of LaTeX") |
2873 | (description | |
2874 | "This bundle comprises the source of LaTeX itself, together with several | |
2875 | packages which are considered \"part of the kernel\". This bundle, together | |
2876 | with the required packages, constitutes what every LaTeX distribution should | |
2877 | contain.") | |
2878 | (license license:lppl1.3c+)))) | |
2879 | ||
3e485ed2 RW |
2880 | (define-public texlive-latex-filecontents |
2881 | (package | |
2882 | (name "texlive-latex-filecontents") | |
2883 | (version (number->string %texlive-revision)) | |
2884 | (source (origin | |
2885 | (method svn-fetch) | |
2886 | (uri (texlive-ref "latex" "filecontents")) | |
7e353a77 | 2887 | (file-name (string-append name "-" version "-checkout")) |
3e485ed2 RW |
2888 | (sha256 |
2889 | (base32 | |
2890 | "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q")))) | |
2891 | (build-system texlive-build-system) | |
2892 | (arguments '(#:tex-directory "latex/filecontents")) | |
b8d8806b | 2893 | (home-page "https://www.ctan.org/pkg/filecontents") |
3e485ed2 RW |
2894 | (synopsis "Extended filecontents and filecontents* environments") |
2895 | (description | |
2896 | "LaTeX2e's @code{filecontents} and @code{filecontents*} environments | |
2897 | enable a LaTeX source file to generate external files as it runs through | |
2898 | LaTeX. However, there are two limitations of these environments: they refuse | |
2899 | to overwrite existing files, and they can only be used in the preamble of a | |
2900 | document. The filecontents package removes these limitations, letting you | |
2901 | overwrite existing files and letting you use @code{filecontents} / | |
2902 | @code{filecontents*} anywhere.") | |
2903 | (license license:lppl1.3c+))) | |
2904 | ||
1193aa89 RW |
2905 | (define-public texlive-generic-ifxetex |
2906 | (package | |
2907 | (name "texlive-generic-ifxetex") | |
fea8eef3 | 2908 | (version (number->string %texlive-revision)) |
1193aa89 RW |
2909 | (source (origin |
2910 | (method svn-fetch) | |
2911 | (uri (texlive-ref "generic" "ifxetex")) | |
24dbc602 | 2912 | (file-name (string-append name "-" version "-checkout")) |
1193aa89 RW |
2913 | (sha256 |
2914 | (base32 | |
2915 | "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d")))) | |
2916 | (build-system texlive-build-system) | |
2917 | (arguments | |
2918 | '(#:tex-directory "generic/ifxetex" | |
2919 | #:tex-format "xelatex")) | |
2920 | (inputs | |
2921 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
b8d8806b | 2922 | (home-page "https://www.ctan.org/pkg/ifxetex") |
1193aa89 RW |
2923 | (synopsis "Am I running under XeTeX?") |
2924 | (description | |
2925 | "This is a simple package which provides an @code{\\ifxetex} conditional, | |
2926 | so that other code can determine that it is running under XeTeX. The package | |
beb476ed | 2927 | requires the e-TeX extensions to the TeX primitive set.") |
1193aa89 RW |
2928 | (license license:lppl1.3c+))) |
2929 | ||
9186c156 RW |
2930 | (define-public texlive-generic-epsf |
2931 | (package | |
2932 | (name "texlive-generic-epsf") | |
2933 | (version (number->string %texlive-revision)) | |
2934 | (source (origin | |
2935 | (method svn-fetch) | |
2936 | (uri (svn-reference | |
2937 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2938 | %texlive-tag "/Master/texmf-dist/" | |
2939 | "/tex/generic/epsf")) | |
2940 | (revision %texlive-revision))) | |
ca61c6b3 | 2941 | (file-name (string-append name "-" version "-checkout")) |
9186c156 RW |
2942 | (sha256 |
2943 | (base32 | |
2944 | "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy")))) | |
2945 | (build-system trivial-build-system) | |
2946 | (arguments | |
2947 | `(#:modules ((guix build utils)) | |
2948 | #:builder | |
2949 | (begin | |
2950 | (use-modules (guix build utils)) | |
2951 | (let ((target (string-append (assoc-ref %outputs "out") | |
2952 | "/share/texmf-dist/tex/generic/epfs"))) | |
2953 | (mkdir-p target) | |
2954 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2955 | #t)))) | |
b8d8806b | 2956 | (home-page "https://www.ctan.org/pkg/epsf") |
9186c156 RW |
2957 | (synopsis "Simple macros for EPS inclusion") |
2958 | (description | |
2959 | "This package provides the original (and now obsolescent) graphics | |
2960 | inclusion macros for use with dvips, still widely used by Plain TeX users (in | |
2961 | particular). For LaTeX users, the package is nowadays (rather strongly) | |
2962 | deprecated in favour of the more sophisticated standard LaTeX latex-graphics | |
2963 | bundle of packages. (The latex-graphics bundle is also available to Plain TeX | |
2964 | users, via its Plain TeX version.)") | |
2965 | (license license:public-domain))) | |
2966 | ||
437822a1 RW |
2967 | (define-public texlive-latex-fancyvrb |
2968 | (package | |
2969 | (name "texlive-latex-fancyvrb") | |
2970 | (version (number->string %texlive-revision)) | |
2971 | (source (origin | |
2972 | (method svn-fetch) | |
2973 | (uri (texlive-ref "latex" "fancyvrb")) | |
88e11022 | 2974 | (file-name (string-append name "-" version "-checkout")) |
437822a1 RW |
2975 | (sha256 |
2976 | (base32 | |
2977 | "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv")))) | |
2978 | (build-system texlive-build-system) | |
2979 | (arguments | |
2980 | '(#:tex-directory "latex/fancyvrb" | |
bae65dc4 | 2981 | #:tex-format "latex")) |
b8d8806b | 2982 | (home-page "https://www.ctan.org/pkg/fancyvrb") |
437822a1 RW |
2983 | (synopsis "Sophisticated verbatim text") |
2984 | (description | |
2985 | "This package provides tools for the flexible handling of verbatim text | |
2986 | including: verbatim commands in footnotes; a variety of verbatim environments | |
2987 | with many parameters; ability to define new customized verbatim environments; | |
2988 | save and restore verbatim text and environments; write and read files in | |
2989 | verbatim mode; build \"example\" environments (showing both result and | |
2990 | verbatim source).") | |
2991 | (license license:lppl1.0+))) | |
2992 | ||
4eebd2cd RW |
2993 | (define-public texlive-latex-graphics |
2994 | (package | |
2995 | (name "texlive-latex-graphics") | |
2996 | (version (number->string %texlive-revision)) | |
2997 | (source (origin | |
2998 | (method svn-fetch) | |
2999 | (uri (texlive-ref "latex" "graphics")) | |
f7302073 | 3000 | (file-name (string-append name "-" version "-checkout")) |
4eebd2cd RW |
3001 | (sha256 |
3002 | (base32 | |
d4d9a1ec | 3003 | "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz")))) |
4eebd2cd RW |
3004 | (build-system texlive-build-system) |
3005 | (arguments | |
3006 | '(#:tex-directory "latex/graphics" | |
3007 | #:phases | |
3008 | (modify-phases %standard-phases | |
3009 | (add-after 'install 'install-config | |
3010 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3011 | (let ((cfg (assoc-ref inputs "graphics-cfg")) | |
3012 | (target (string-append (assoc-ref outputs "out") | |
3013 | "/share/texmf-dist/tex/latex/graphics-cfg"))) | |
3014 | (mkdir-p target) | |
3015 | (install-file (string-append cfg "/graphics.cfg") target) | |
3016 | (install-file (string-append cfg "/color.cfg") target) | |
3017 | #t))) | |
3018 | (add-after 'install 'install-defs | |
3019 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3020 | (let ((def (assoc-ref inputs "graphics-def")) | |
3021 | (target (string-append (assoc-ref outputs "out") | |
3022 | "/share/texmf-dist/tex/latex/graphics-def"))) | |
3023 | (mkdir-p target) | |
3024 | (copy-recursively def target) | |
3025 | #t)))))) | |
3026 | (native-inputs | |
3027 | `(("graphics-cfg" | |
3028 | ,(origin | |
3029 | (method git-fetch) | |
3030 | (uri (git-reference | |
3031 | (url "https://github.com/latex3/graphics-cfg.git") | |
3032 | (commit "19d1238af17df376cd46333b229579b0f7f3a41f"))) | |
f7302073 EF |
3033 | (file-name (string-append "graphics-cfg-" |
3034 | (number->string %texlive-revision) | |
3035 | "-checkout")) | |
4eebd2cd RW |
3036 | (sha256 |
3037 | (base32 | |
3038 | "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh")))) | |
3039 | ("graphics-def" | |
3040 | ,(origin | |
3041 | (method svn-fetch) | |
3042 | (uri (svn-reference | |
3043 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3044 | %texlive-tag "/Master/texmf-dist/" | |
3045 | "/tex/latex/graphics-def")) | |
3046 | (revision %texlive-revision))) | |
f7302073 EF |
3047 | (file-name (string-append "graphics-def-" |
3048 | (number->string %texlive-revision) | |
3049 | "-checkout")) | |
4eebd2cd RW |
3050 | (sha256 |
3051 | (base32 | |
d4d9a1ec | 3052 | "17zpcgrfsr29g1dkz9np1qi63kjv7gb12rg979c6dai6qksbr3vq")))))) |
b8d8806b | 3053 | (home-page "https://www.ctan.org/pkg/latex-graphics") |
4eebd2cd RW |
3054 | (synopsis "LaTeX standard graphics bundle") |
3055 | (description | |
3056 | "This is a collection of LaTeX packages for producing color, including | |
3057 | graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX | |
3058 | documents. It comprises the packages color, graphics, graphicx, trig, epsfig, | |
3059 | keyval, and lscape.") | |
3060 | ;; The configuration files are released under CC0. | |
3061 | (license (list license:lppl1.3c+ | |
3062 | license:cc0)))) | |
3063 | ||
f5a6af42 RW |
3064 | (define-public texlive-latex-xcolor |
3065 | (package | |
3066 | (name "texlive-latex-xcolor") | |
3067 | (version (number->string %texlive-revision)) | |
3068 | (source (origin | |
3069 | (method svn-fetch) | |
3070 | (uri (texlive-ref "latex" "xcolor")) | |
19389bcd | 3071 | (file-name (string-append name "-" version "-checkout")) |
f5a6af42 RW |
3072 | (sha256 |
3073 | (base32 | |
3074 | "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494")))) | |
3075 | (build-system texlive-build-system) | |
3076 | (arguments '(#:tex-directory "latex/xcolor")) | |
b8d8806b | 3077 | (home-page "https://www.ctan.org/pkg/xcolor") |
f5a6af42 RW |
3078 | (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX") |
3079 | (description | |
3080 | "The package starts from the basic facilities of the colorcolor package, | |
3081 | and provides easy driver-independent access to several kinds of color tints, | |
3082 | shades, tones, and mixes of arbitrary colors. It allows a user to select a | |
3083 | document-wide target color model and offers complete tools for conversion | |
3084 | between eight color models. Additionally, there is a command for alternating | |
3085 | row colors plus repeated non-aligned material (like horizontal lines) in | |
3086 | tables.") | |
3087 | (license license:lppl1.2+))) | |
3088 | ||
4d660fdf RW |
3089 | (define-public texlive-latex-hyperref |
3090 | (package | |
3091 | (name "texlive-latex-hyperref") | |
3092 | (version "6.84a2") | |
3093 | ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx, | |
3094 | ;; so we fetch the release from GitHub. | |
3095 | (source (origin | |
3096 | (method url-fetch) | |
3097 | (uri (string-append "https://github.com/ho-tex/hyperref/" | |
3098 | "archive/release-" version ".tar.gz")) | |
3099 | (file-name (string-append name "-" version ".tar.gz")) | |
3100 | (sha256 | |
3101 | (base32 | |
3102 | "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2")))) | |
3103 | (build-system texlive-build-system) | |
3104 | (arguments '(#:tex-directory "latex/hyperref")) | |
2a0bcbf4 RW |
3105 | (propagated-inputs |
3106 | `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek) ; for ltxcmds.sty | |
3107 | ("texlive-latex-url" ,texlive-latex-url))) | |
b8d8806b | 3108 | (home-page "https://www.ctan.org/pkg/hyperref") |
4d660fdf RW |
3109 | (synopsis "Extensive support for hypertext in LaTeX") |
3110 | (description | |
c5a8ecb6 RW |
3111 | "The @code{hyperref} package is used to handle cross-referencing commands |
3112 | in LaTeX to produce hypertext links in the document. The package provides | |
3113 | backends for the @code{\\special} set defined for HyperTeX DVI processors; for | |
3114 | embedded @code{pdfmark} commands for processing by Acrobat | |
3115 | Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo}; | |
3116 | for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's | |
3117 | pdf and HTML backends. The package is distributed with the @code{backref} and | |
3118 | @code{nameref} packages, which make use of the facilities of @code{hyperref}.") | |
4d660fdf RW |
3119 | (license license:lppl1.3+))) |
3120 | ||
c3455b7d RW |
3121 | (define-public texlive-latex-oberdiek |
3122 | (package | |
3123 | (name "texlive-latex-oberdiek") | |
3124 | (version (number->string %texlive-revision)) | |
3125 | (source (origin | |
3126 | (method svn-fetch) | |
3127 | (uri (texlive-ref "latex" "oberdiek")) | |
7dea3119 | 3128 | (file-name (string-append name "-" version "-checkout")) |
c3455b7d RW |
3129 | (sha256 |
3130 | (base32 | |
d4d9a1ec | 3131 | "1m9fg8ddhpsl1212igr9a9fmj012lv780aghjn6fpidg2wqrffmn")))) |
c3455b7d RW |
3132 | (build-system texlive-build-system) |
3133 | (arguments | |
3134 | '(#:tex-directory "latex/oberdiek" | |
05d28068 | 3135 | #:build-targets '("oberdiek.ins") |
c3455b7d RW |
3136 | #:phases |
3137 | (modify-phases %standard-phases | |
05d28068 | 3138 | ;; "ifpdf.ins" is not generated, so we need to process the dtx file. |
c3455b7d RW |
3139 | (add-after 'unpack 'do-not-process-ifpdf.ins |
3140 | (lambda _ | |
3141 | (substitute* "oberdiek.ins" | |
05d28068 | 3142 | (("ifpdf.ins") "ifpdf.dtx")) |
c3455b7d | 3143 | #t))))) |
a9cd7b03 RW |
3144 | (propagated-inputs |
3145 | `(("texlive-generic-ifxetex" ,texlive-generic-ifxetex))) | |
b8d8806b | 3146 | (home-page "https://www.ctan.org/pkg/oberdiek") |
c3455b7d RW |
3147 | (synopsis "Bundle of packages submitted by Heiko Oberdiek") |
3148 | (description | |
3149 | "The bundle comprises various LaTeX packages, providing among others: | |
3150 | better accessibility support for PDF files; extensible chemists reaction | |
3151 | arrows; record information about document class(es) used; and many more.") | |
3152 | (license license:lppl1.3+))) | |
3153 | ||
f2536af2 RW |
3154 | (define-public texlive-latex-tools |
3155 | (package | |
3156 | (name "texlive-latex-tools") | |
3157 | (version (number->string %texlive-revision)) | |
3158 | (source (origin | |
3159 | (method svn-fetch) | |
3160 | (uri (texlive-ref "latex" "tools")) | |
f8340ab1 | 3161 | (file-name (string-append name "-" version "-checkout")) |
f2536af2 RW |
3162 | (sha256 |
3163 | (base32 | |
d4d9a1ec | 3164 | "0vj7h1fgf1396h4qjdc2m07y08i54gbbfrxl8y327cn3r1n093s6")))) |
f2536af2 RW |
3165 | (build-system texlive-build-system) |
3166 | (arguments | |
3167 | '(#:tex-directory "latex/tools" | |
3168 | #:build-targets '("tools.ins"))) | |
b8d8806b | 3169 | (home-page "https://www.ctan.org/pkg/latex-tools") |
f2536af2 RW |
3170 | (synopsis "LaTeX standard tools bundle") |
3171 | (description | |
3172 | "This package is a collection of (variously) simple tools provided as | |
3173 | part of the LaTeX required tools distribution, comprising the following | |
3174 | packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr, | |
3175 | fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol, | |
3176 | rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim, | |
3177 | xr, and xspace.") | |
3178 | (license license:lppl1.3+))) | |
3179 | ||
35adcc3a RW |
3180 | (define-public texlive-latex-url |
3181 | (package | |
3182 | (name "texlive-latex-url") | |
3183 | (version (number->string %texlive-revision)) | |
3184 | (source (origin | |
3185 | (method svn-fetch) | |
3186 | (uri (svn-reference | |
3187 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3188 | %texlive-tag "/Master/texmf-dist/" | |
3189 | "/tex/latex/url")) | |
3190 | (revision %texlive-revision))) | |
a26207f8 | 3191 | (file-name (string-append name "-" version "-checkout")) |
35adcc3a RW |
3192 | (sha256 |
3193 | (base32 | |
3194 | "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac")))) | |
3195 | (build-system trivial-build-system) | |
3196 | (arguments | |
3197 | `(#:modules ((guix build utils)) | |
3198 | #:builder | |
3199 | (begin | |
3200 | (use-modules (guix build utils)) | |
3201 | (let ((target (string-append (assoc-ref %outputs "out") | |
3202 | "/share/texmf-dist/tex/latex/url"))) | |
3203 | (mkdir-p target) | |
3204 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3205 | #t)))) | |
3206 | (home-page "https://www.ctan.org/pkg/url") | |
3207 | (synopsis "Verbatim with URL-sensitive line breaks") | |
3208 | (description "The command @code{\\url} is a form of verbatim command that | |
3209 | allows linebreaks at certain characters or combinations of characters, accepts | |
3210 | reconfiguration, and can usually be used in the argument to another command. | |
3211 | The command is intended for email addresses, hypertext links, | |
3212 | directories/paths, etc., which normally have no spaces, so by default the | |
3213 | package ignores spaces in its argument. However, a package option allows | |
3214 | spaces, which is useful for operating systems where spaces are a common part | |
3215 | of file names.") | |
3216 | ;; The license header states that it is under LPPL version 2 or later, but | |
3217 | ;; the latest version is 1.3c. | |
3218 | (license license:lppl1.3c+))) | |
3219 | ||
a5b1ef84 RW |
3220 | (define-public texlive-latex-l3kernel |
3221 | (package | |
3222 | (name "texlive-latex-l3kernel") | |
3223 | (version (number->string %texlive-revision)) | |
3224 | (source (origin | |
3225 | (method svn-fetch) | |
3226 | (uri (texlive-ref "latex" "l3kernel")) | |
f4a39a5b | 3227 | (file-name (string-append name "-" version "-checkout")) |
a5b1ef84 RW |
3228 | (sha256 |
3229 | (base32 | |
d4d9a1ec | 3230 | "0p3fsxap1ilwjz356aq4s5ygwvdscis8bh93g8klf8mhrd8cr2jy")))) |
a5b1ef84 RW |
3231 | (build-system texlive-build-system) |
3232 | (arguments | |
3233 | '(#:tex-directory "latex/l3kernel")) | |
b8d8806b | 3234 | (home-page "https://www.ctan.org/pkg/l3kernel") |
a5b1ef84 RW |
3235 | (synopsis "LaTeX3 programmers’ interface") |
3236 | (description | |
3237 | "The l3kernel bundle provides an implementation of the LaTeX3 | |
3238 | programmers’ interface, as a set of packages that run under LaTeX 2e. The | |
3239 | interface provides the foundation on which the LaTeX3 kernel and other future | |
3240 | code are built: it is an API for TeX programmers. The packages are set up so | |
3241 | that the LaTeX3 conventions can be used with regular LaTeX 2e packages.") | |
3242 | (license license:lppl1.3c+))) | |
3243 | ||
cc09d48b RW |
3244 | (define-public texlive-latex-l3packages |
3245 | (package | |
3246 | (name "texlive-latex-l3packages") | |
3247 | (version (number->string %texlive-revision)) | |
3248 | (source (origin | |
3249 | (method svn-fetch) | |
3250 | (uri (texlive-ref "latex" "l3packages")) | |
b749aa98 | 3251 | (file-name (string-append name "-" version "-checkout")) |
cc09d48b RW |
3252 | (sha256 |
3253 | (base32 | |
d4d9a1ec | 3254 | "0pyx0hffiyss363vv7fkrcdiaf7p099xnq0mngzqc7v8v9q849hs")))) |
cc09d48b RW |
3255 | (build-system texlive-build-system) |
3256 | (arguments | |
3257 | '(#:tex-directory "latex/l3packages" | |
3d4908a7 PN |
3258 | ;; build-targets must be specified manually since they are in |
3259 | ;; sub-directories. | |
3260 | #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins") | |
cc09d48b RW |
3261 | #:phases |
3262 | (modify-phases %standard-phases | |
3263 | ;; All package sources are in sub-directories, so we need to add them | |
3264 | ;; to TEXINPUTS. | |
3265 | (add-after 'unpack 'set-TEXINPUTS | |
3266 | (lambda _ | |
3267 | (let ((cwd (getcwd))) | |
3268 | (setenv "TEXINPUTS" | |
3269 | (string-append cwd "/l3keys2e:" | |
3270 | cwd "/xparse:" | |
3271 | cwd "/xfrac:" | |
3272 | cwd "/xfp:" | |
3d4908a7 PN |
3273 | cwd "/xtemplate" |
3274 | ;; The terminating ":" is required to include the | |
3275 | ;; l3kernel input as well. | |
3276 | ":"))) | |
3277 | #t))) | |
3278 | )) | |
2fea7041 | 3279 | (propagated-inputs |
cc09d48b | 3280 | `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel))) |
b8d8806b | 3281 | (home-page "https://www.ctan.org/pkg/l3packages") |
cc09d48b RW |
3282 | (synopsis "High-level LaTeX3 concepts") |
3283 | (description | |
3284 | "This bundle holds prototype implementations of concepts for a LaTeX | |
3285 | designer interface, to be used with the experimental LaTeX kernel as | |
3286 | programming tools and kernel support. Packages provided in this release are: | |
3287 | ||
3288 | @enumerate | |
3289 | @item l3keys2e, which makes the facilities of the kernel module l3keys | |
3290 | available for use by LaTeX 2e packages; | |
3291 | @item xfrac, which provides flexible splitlevel fractions; | |
3292 | @item xparse, which provides a high-level interface for declaring document | |
3293 | commands; and | |
3294 | @item xtemplate, which provides a means of defining generic functions using a | |
3295 | key-value syntax. | |
3296 | @end enumerate\n") | |
3297 | (license license:lppl1.3c+))) | |
3298 | ||
58308491 RW |
3299 | (define-public texlive-latex-fontspec |
3300 | (package | |
3301 | (name "texlive-latex-fontspec") | |
3302 | (version (number->string %texlive-revision)) | |
3303 | (source (origin | |
3304 | (method svn-fetch) | |
3305 | (uri (texlive-ref "latex" "fontspec")) | |
634a4a7f | 3306 | (file-name (string-append name "-" version "-checkout")) |
58308491 RW |
3307 | (sha256 |
3308 | (base32 | |
d4d9a1ec | 3309 | "1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq")))) |
58308491 RW |
3310 | (build-system texlive-build-system) |
3311 | (arguments | |
9c45beb4 RW |
3312 | '(#:tex-directory "latex/fontspec" |
3313 | #:phases | |
3314 | (modify-phases %standard-phases | |
3315 | (add-after 'install 'install-default-fontspec.cfg | |
3316 | (lambda* (#:key outputs #:allow-other-keys) | |
3317 | (with-output-to-file | |
3318 | (string-append (assoc-ref outputs "out") | |
3319 | "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg") | |
3320 | (lambda _ | |
3321 | (display "\ | |
3322 | %%% FONTSPEC.CFG %%% | |
3323 | % | |
3324 | % This configuration file sets up TeX Ligatures by default for all fonts loaded | |
3325 | % with `\\setmainfont` and `\\setsansfont`. | |
3326 | % | |
3327 | % In addition, `\\setmonofont` has default features to enforce \"monospace\" | |
3328 | % settings with regard to space stretchability and shrinkability. | |
3329 | ||
3330 | \\defaultfontfeatures | |
3331 | [\\rmfamily,\\sffamily] | |
3332 | {Ligatures=TeX} | |
3333 | ||
3334 | \\defaultfontfeatures | |
3335 | [\\ttfamily] | |
3336 | {WordSpace={1,0,0}, | |
3337 | HyphenChar=None, | |
3338 | PunctuationSpace=WordSpace} | |
3339 | "))) | |
3340 | #t))))) | |
b80ecc5a RW |
3341 | (propagated-inputs |
3342 | `(("texlive-latex-l3packages" ,texlive-latex-l3packages))) | |
b8d8806b | 3343 | (home-page "https://www.ctan.org/pkg/fontspec") |
58308491 RW |
3344 | (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX") |
3345 | (description | |
3346 | "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an | |
3347 | automatic and unified interface to feature-rich AAT and OpenType fonts through | |
3348 | the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires | |
3349 | the l3kernel and xparse bundles from the LaTeX 3 development team.") | |
3350 | (license license:lppl1.3+))) | |
3351 | ||
e93f472d RW |
3352 | ;; The SVN directory contains little more than a dtx file that generates three |
3353 | ;; of the many lua files that should be installed as part of this package. | |
3354 | ;; This is why we take the release from GitHub instead. | |
3355 | (define-public texlive-luatex-lualibs | |
3356 | (package | |
3357 | (name "texlive-luatex-lualibs") | |
3358 | (version "2.5") | |
3359 | (source (origin | |
3360 | (method url-fetch) | |
3361 | (uri (string-append "https://github.com/lualatex/lualibs/" | |
3362 | "releases/download/v" | |
3363 | version "/lualibs.zip")) | |
01d79c30 | 3364 | (file-name (string-append name "-" version ".zip")) |
e93f472d RW |
3365 | (sha256 |
3366 | (base32 | |
3367 | "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy")))) | |
3368 | (build-system gnu-build-system) | |
3369 | (arguments | |
3370 | `(#:make-flags | |
3371 | (list (string-append "DESTDIR=" | |
3372 | (assoc-ref %outputs "out") | |
3373 | "/share/texmf-dist")) | |
3374 | #:phases | |
3375 | (modify-phases %standard-phases | |
3376 | (delete 'configure)))) | |
3377 | (native-inputs | |
3378 | `(("texlive-bin" ,texlive-bin) | |
3379 | ("unzip" ,unzip) | |
3380 | ("zip" ,zip))) | |
3381 | (home-page "https://github.com/lualatex/lualibs") | |
3382 | (synopsis "Lua modules for general programming (in the (La)TeX world)") | |
3383 | (description | |
3384 | "Lualibs is a collection of Lua modules useful for general programming. | |
3385 | The bundle is based on Lua modules shipped with ConTeXt, and made available in | |
3386 | this bundle for use independent of ConTeXt.") | |
3387 | ;; GPL version 2 only | |
3388 | (license license:gpl2))) | |
3389 | ||
769bb5e5 RW |
3390 | (define-public texlive-luatex-luaotfload |
3391 | (package | |
3392 | (name "texlive-luatex-luaotfload") | |
3393 | (version "2.8-fix-2") | |
3394 | ;; The release tarball does not contain all source files. | |
3395 | (source (origin | |
3396 | (method git-fetch) | |
3397 | (uri (git-reference | |
3398 | (url "https://github.com/lualatex/luaotfload.git") | |
3399 | (commit (string-append "v" version)))) | |
3400 | (file-name (git-file-name name version)) | |
3401 | (sha256 | |
3402 | (base32 | |
3403 | "0l5l7iq3dxcxl65qaghcpjg27yd9iw1sxa8pnd7xlvlm09dhfdnf")))) | |
3404 | (build-system gnu-build-system) | |
3405 | (arguments | |
3406 | `(#:make-flags | |
3407 | (list (string-append "DESTDIR=" | |
3408 | (assoc-ref %outputs "out") | |
3409 | "/share/texmf-dist") | |
3410 | "all") | |
3411 | #:parallel-build? #f ; not supported | |
3412 | #:phases | |
3413 | (modify-phases %standard-phases | |
3414 | (replace 'configure | |
3415 | (lambda* (#:key inputs #:allow-other-keys) | |
3416 | (substitute* "doc/Makefile" | |
3417 | (("rst2man") "rst2man.py") | |
3418 | ;; Don't build the PDF. This requires more of LaTeX. | |
3419 | (("\\$\\(DOCPDF\\)") "")) | |
3420 | ||
3421 | (substitute* "Makefile" | |
3422 | ;; We don't build the PDF, so don't attempt to install it. | |
3423 | (("cp \\$\\(RESOURCES\\) \\$\\(DOCPDF\\)") | |
3424 | "cp $(RESOURCES)") | |
3425 | (("= \\$\\(DOCPDF\\)") "= ") | |
3426 | ;; Fix name of fontloader file | |
3427 | (("^LOADER.*= \\$\\(BUILDDIR\\)/fontloader-\\$\\(shell date \\+%F\\).lua") | |
3428 | "LOADER = $(BUILDDIR)/fontloader.lua")) | |
3429 | ||
3430 | (mkdir "build") | |
3431 | ||
3432 | ;; Don't download this file. | |
3433 | (copy-file (assoc-ref inputs "glyphlist") | |
3434 | "build/glyphlist.txt") | |
3435 | ||
3436 | ;; Don't use git | |
3437 | (let ((notes | |
3438 | `((committer . "Philipp Gesang <phg@phi-gamma.net>") | |
3439 | (description . ,version) | |
3440 | (loader . "fontloader.lua") | |
3441 | (revision . "ad480924393fffa2896156e1a32c22f5c61120dd") | |
3442 | (timestamp . "2019-01-01 00:00:00 +0000")))) | |
3443 | (substitute* "scripts/mkstatus" | |
3444 | (("local notes.*=.*") | |
3445 | (string-append "local notes = {" | |
3446 | (string-join | |
3447 | (map (lambda (entry) | |
3448 | (format "[\"~a\"]=\"~a\"," | |
3449 | (symbol->string (car entry)) | |
3450 | (cdr entry))) | |
3451 | notes)) | |
3452 | "}")))) | |
3453 | #t))))) | |
3454 | (native-inputs | |
3455 | `(("zip" ,zip) | |
3456 | ("unzip" ,unzip) | |
3457 | ("graphviz" ,graphviz) | |
3458 | ("lualatex" ,(texlive-union (list texlive-luatex-lualibs | |
3459 | texlive-context-base))) | |
3460 | ("python-docutils" ,python-docutils) | |
3461 | ("glyphlist" | |
3462 | ,(origin | |
3463 | (method url-fetch) | |
3464 | (uri (string-append "https://raw.githubusercontent.com/adobe-type-tools/" | |
3465 | "agl-aglfn/b2a04cb906f9257cc06a2fe0ad4b3d663bc02136/" | |
3466 | "glyphlist.txt")) | |
3467 | (sha256 | |
3468 | (base32 "1s6svfw23rqzdvflv8frgd4xrwvrmsj8szwzqgcd39dp9rpjafjp")))))) | |
3469 | (propagated-inputs | |
3470 | `(("texlive-luatex-lualibs" ,texlive-luatex-lualibs))) | |
3471 | (home-page "https://github.com/lualatex/luaotfload") | |
3472 | (synopsis "OpenType font loader for LuaTeX") | |
3473 | (description | |
3474 | "Luaotfload is an adaptation of the ConTeXt font loading system for the | |
3475 | Plain and LaTeX formats. It allows OpenType fonts to be loaded with font | |
3476 | features accessible using an extended font request syntax while providing | |
3477 | compatibilitywith XeTeX. By indexing metadata in a database it facilitates | |
3478 | loading fonts by their proper names instead of file names.") | |
3479 | ;; GPL version 2 only | |
3480 | (license license:gpl2))) | |
3481 | ||
2573163a RW |
3482 | (define-public texlive-latex-amsmath |
3483 | (package | |
3484 | (name "texlive-latex-amsmath") | |
3485 | (version (number->string %texlive-revision)) | |
3486 | (source (origin | |
3487 | (method svn-fetch) | |
3488 | (uri (texlive-ref "latex" "amsmath")) | |
320c771a | 3489 | (file-name (string-append name "-" version "-checkout")) |
2573163a RW |
3490 | (sha256 |
3491 | (base32 | |
d4d9a1ec | 3492 | "0arvk7gn32mshnfdad5qkgf3i1arxq77k3vq7wnpm4nwnrzclxal")))) |
2573163a RW |
3493 | (build-system texlive-build-system) |
3494 | (arguments '(#:tex-directory "latex/amsmath")) | |
b8d8806b | 3495 | (home-page "https://www.ctan.org/pkg/amsmath") |
2573163a RW |
3496 | (synopsis "AMS mathematical facilities for LaTeX") |
3497 | (description | |
3498 | "This is the principal package in the AMS-LaTeX distribution. It adapts | |
3499 | for use in LaTeX most of the mathematical features found in AMS-TeX; it is | |
3500 | highly recommended as an adjunct to serious mathematical typesetting in LaTeX. | |
3501 | When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold | |
3502 | symbols), @code{amsopnamsopn} (for operator names) and | |
3503 | @code{amstextamstext} (for text embedded in mathematics) are also loaded. | |
3504 | This package is part of the LaTeX required distribution; however, several | |
3505 | contributed packages add still further to its appeal; examples are | |
3506 | @code{empheqempheq}, which provides functions for decorating and highlighting | |
3507 | mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar) | |
3508 | definitions.") | |
3509 | (license license:lppl1.3c+))) | |
3510 | ||
18e366e8 RW |
3511 | (define-public texlive-latex-amscls |
3512 | (package | |
3513 | (name "texlive-latex-amscls") | |
3514 | (version (number->string %texlive-revision)) | |
3515 | (source (origin | |
3516 | (method svn-fetch) | |
3517 | (uri (texlive-ref "latex" "amscls")) | |
43059ed0 | 3518 | (file-name (string-append name "-" version "-checkout")) |
18e366e8 RW |
3519 | (sha256 |
3520 | (base32 | |
d4d9a1ec | 3521 | "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca")))) |
18e366e8 RW |
3522 | (build-system texlive-build-system) |
3523 | (arguments | |
3524 | `(#:tex-directory "latex/amscls")) | |
b8d8806b | 3525 | (home-page "https://www.ctan.org/pkg/amscls") |
18e366e8 RW |
3526 | (synopsis "AMS document classes for LaTeX") |
3527 | (description | |
3528 | "This bundle contains three AMS classes: @code{amsartamsart} (for writing | |
3529 | articles for the AMS), @code{amsbookamsbook} (for books) and | |
3530 | @code{amsprocamsproc} (for proceedings), together with some supporting | |
3531 | material. The material is made available as part of the AMS-LaTeX | |
3532 | distribution.") | |
3533 | (license license:lppl1.3c+))) | |
3534 | ||
f84d5a09 RW |
3535 | (define-public texlive-latex-babel |
3536 | (package | |
3537 | (name "texlive-latex-babel") | |
3538 | (version (number->string %texlive-revision)) | |
3539 | (source (origin | |
3540 | (method svn-fetch) | |
3541 | (uri (texlive-ref "latex" "babel")) | |
8732493e | 3542 | (file-name (string-append name "-" version "-checkout")) |
f84d5a09 RW |
3543 | (sha256 |
3544 | (base32 | |
d4d9a1ec | 3545 | "0yhlfiz3fjc8jd46f1zrjj4jig48l8rrzh8cmd8ammml8z9a01z6")))) |
f84d5a09 RW |
3546 | (build-system texlive-build-system) |
3547 | (arguments | |
dcc8af4a | 3548 | '(#:tex-directory "generic/babel" |
f84d5a09 RW |
3549 | #:phases |
3550 | (modify-phases %standard-phases | |
3551 | ;; This package tries to produce babel.aux twice but refuses to | |
3552 | ;; overwrite the first one. | |
3553 | (add-before 'build 'fix-ins | |
3554 | (lambda _ | |
3555 | (substitute* "babel.ins" | |
3556 | (("askonceonly") "askforoverwritefalse")) | |
3557 | #t))))) | |
b8d8806b | 3558 | (home-page "https://www.ctan.org/pkg/babel") |
f84d5a09 RW |
3559 | (synopsis "Multilingual support for Plain TeX or LaTeX") |
3560 | (description | |
3561 | "The package manages culturally-determined typographical (and other) | |
3562 | rules, and hyphenation patterns for a wide range of languages. A document may | |
3563 | select a single language to be supported, or it may select several, in which | |
3564 | case the document may switch from one language to another in a variety of | |
3565 | ways. Babel uses contributed configuration files that provide the detail of | |
3566 | what has to be done for each language. Users of XeTeX are advised to use the | |
3567 | polyglossia package rather than Babel.") | |
3568 | (license license:lppl1.3+))) | |
3569 | ||
876a1980 RW |
3570 | (define-public texlive-generic-babel-english |
3571 | (package | |
3572 | (name "texlive-generic-babel-english") | |
3573 | (version (number->string %texlive-revision)) | |
3574 | (source (origin | |
3575 | (method svn-fetch) | |
3576 | (uri (texlive-ref "generic" "babel-english")) | |
3577 | (file-name (string-append name "-" version "-checkout")) | |
3578 | (sha256 | |
3579 | (base32 | |
3580 | "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc")))) | |
3581 | (build-system texlive-build-system) | |
3582 | (arguments '(#:tex-directory "generic/babel-english")) | |
b8d8806b | 3583 | (home-page "https://www.ctan.org/pkg/babel-english") |
876a1980 RW |
3584 | (synopsis "Babel support for English") |
3585 | (description | |
3586 | "This package provides the language definition file for support of | |
3587 | English in @code{babel}. Care is taken to select British hyphenation patterns | |
3588 | for British English and Australian text, and default (\"american\") patterns | |
3589 | for Canadian and USA text.") | |
3590 | (license license:lppl1.3+))) | |
3591 | ||
6309d215 RW |
3592 | (define-public texlive-generic-babel-german |
3593 | (package | |
3594 | (name "texlive-generic-babel-german") | |
3595 | (version (number->string %texlive-revision)) | |
3596 | (source (origin | |
3597 | (method svn-fetch) | |
3598 | (uri (texlive-ref "generic" "babel-german")) | |
3599 | (file-name (string-append name "-" version "-checkout")) | |
3600 | (sha256 | |
3601 | (base32 | |
3602 | "0h47s67gnhdaxfgbf8pirp5vw4z6rrhxl8zav803yjxka0096i3y")))) | |
3603 | (build-system texlive-build-system) | |
3604 | (arguments '(#:tex-directory "generic/babel-german")) | |
3605 | (home-page "https://www.ctan.org/pkg/babel-german") | |
3606 | (synopsis "Babel support for German") | |
3607 | (description | |
3608 | "This package provides the language definition file for support of German | |
3609 | in @code{babel}. It provides all the necessary macros, definitions and | |
3610 | settings to typeset German documents. The bundle includes support for the | |
3611 | traditional and reformed German orthography as well as for the Austrian and | |
3612 | Swiss varieties of German.") | |
3613 | (license license:lppl1.3+))) | |
3614 | ||
93286d38 RW |
3615 | (define-public texlive-latex-cyrillic |
3616 | (package | |
3617 | (name "texlive-latex-cyrillic") | |
3618 | (version (number->string %texlive-revision)) | |
3619 | (source (origin | |
3620 | (method svn-fetch) | |
3621 | (uri (texlive-ref "latex" "cyrillic")) | |
51bffe79 | 3622 | (file-name (string-append name "-" version "-checkout")) |
93286d38 RW |
3623 | (sha256 |
3624 | (base32 | |
d4d9a1ec | 3625 | "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b")))) |
93286d38 RW |
3626 | (build-system texlive-build-system) |
3627 | (arguments | |
3628 | '(#:tex-directory "latex/cyrillic")) | |
b8d8806b | 3629 | (home-page "https://www.ctan.org/pkg/latex-cyrillic") |
93286d38 RW |
3630 | (synopsis "Support for Cyrillic fonts in LaTeX") |
3631 | (description | |
3632 | "This bundle of macros files provides macro support (including font | |
3633 | encoding macros) for the use of Cyrillic characters in fonts encoded under the | |
3634 | T2* and X2 encodings. These encodings cover (between them) pretty much every | |
3635 | language that is written in a Cyrillic alphabet.") | |
3636 | (license license:lppl1.3c+))) | |
3637 | ||
83fe6231 RW |
3638 | (define-public texlive-latex-psnfss |
3639 | (package | |
3640 | (name "texlive-latex-psnfss") | |
3641 | (version (number->string %texlive-revision)) | |
3642 | (source (origin | |
3643 | (method svn-fetch) | |
3644 | (uri (texlive-ref "latex" "psnfss")) | |
b5b10f3b | 3645 | (file-name (string-append name "-" version "-checkout")) |
83fe6231 RW |
3646 | (sha256 |
3647 | (base32 | |
3648 | "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz")))) | |
3649 | (build-system texlive-build-system) | |
3650 | (arguments '(#:tex-directory "latex/psnfss")) | |
b8d8806b | 3651 | (home-page "https://www.ctan.org/pkg/psnfss") |
83fe6231 RW |
3652 | (synopsis "Font support for common PostScript fonts") |
3653 | (description | |
3654 | "The PSNFSS collection includes a set of files that provide a complete | |
3655 | working setup of the LaTeX font selection scheme (NFSS2) for use with common | |
3656 | PostScript fonts. It covers the so-called \"Base\" fonts (which are built | |
3657 | into any Level 2 PostScript printing device and the Ghostscript interpreter) | |
3658 | and a number of free fonts. It provides font definition files, macros and | |
3659 | font metrics. The bundle as a whole is part of the LaTeX required set of | |
3660 | packages.") | |
3661 | (license license:lppl1.2+))) | |
3662 | ||
bfcb9d4d RW |
3663 | ;; For user profiles |
3664 | (define-public texlive-base | |
3665 | (let ((default-packages | |
3666 | (list texlive-bin | |
3667 | texlive-dvips | |
3668 | texlive-fontname | |
3669 | texlive-fonts-cm | |
3670 | texlive-fonts-latex | |
3671 | texlive-metafont-base | |
3672 | texlive-latex-base | |
3673 | ;; LaTeX packages from the "required" set. | |
3674 | texlive-latex-amsmath | |
3675 | texlive-latex-amscls | |
3676 | texlive-latex-babel | |
3677 | texlive-generic-babel-english | |
3678 | texlive-latex-cyrillic | |
3679 | texlive-latex-graphics | |
3680 | texlive-latex-psnfss | |
3681 | texlive-latex-tools))) | |
3682 | (package | |
3683 | (name "texlive-base") | |
3684 | (version (number->string %texlive-revision)) | |
3685 | (source #f) | |
3686 | (build-system trivial-build-system) | |
3687 | (arguments | |
3688 | '(#:builder | |
3689 | (begin (mkdir (assoc-ref %outputs "out"))))) | |
3690 | (propagated-inputs | |
3691 | (map (lambda (package) | |
3692 | (list (package-name package) package)) | |
3693 | default-packages)) | |
3694 | (home-page (package-home-page texlive-bin)) | |
3695 | (synopsis "TeX Live base packages") | |
3696 | (description "This is a very limited subset of the TeX Live distribution. | |
3697 | It includes little more than the required set of LaTeX packages.") | |
3698 | (license (fold (lambda (package result) | |
3699 | (match (package-license package) | |
3700 | ((lst ...) | |
3701 | (append lst result)) | |
3702 | ((? license:license? license) | |
3703 | (cons license result)))) | |
3704 | '() | |
3705 | default-packages))))) | |
3706 | ||
d7da2372 | 3707 | ;; For use in package definitions only |
cb7bc20a RW |
3708 | (define-public texlive-union |
3709 | (lambda* (#:optional (packages '())) | |
3710 | "Return 'texlive-union' package which is a union of PACKAGES and the | |
3711 | standard LaTeX packages." | |
d7da2372 RW |
3712 | (let ((default-packages (match (package-propagated-inputs texlive-base) |
3713 | (((labels packages) ...) packages)))) | |
3714 | (package (inherit texlive-base) | |
cb7bc20a | 3715 | (name "texlive-union") |
cb7bc20a RW |
3716 | (build-system trivial-build-system) |
3717 | (arguments | |
3718 | '(#:modules ((guix build union) | |
3719 | (guix build utils) | |
3720 | (guix build texlive-build-system) | |
3721 | (guix build gnu-build-system) | |
3722 | (guix build gremlin) | |
3723 | (guix elf)) | |
3724 | #:builder | |
3725 | (begin | |
3726 | (use-modules (ice-9 match) | |
1a64a7b3 | 3727 | (ice-9 popen) |
cb7bc20a RW |
3728 | (srfi srfi-26) |
3729 | (guix build union) | |
3730 | (guix build utils) | |
3731 | (guix build texlive-build-system)) | |
3732 | (let* ((out (assoc-ref %outputs "out")) | |
3733 | (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf"))) | |
1a64a7b3 RW |
3734 | ;; Build a modifiable union of all inputs (but exclude bash and |
3735 | ;; the updmap.cfg file) | |
cb7bc20a RW |
3736 | (match (filter (match-lambda |
3737 | ((name . _) | |
1a64a7b3 | 3738 | (not (member name '("bash" "updmap.cfg"))))) |
cb7bc20a RW |
3739 | %build-inputs) |
3740 | (((names . directories) ...) | |
3741 | (union-build (assoc-ref %outputs "out") | |
3742 | directories | |
c58d1b5f RW |
3743 | #:create-all-directories? #t |
3744 | #:log-port (%make-void-port "w")))) | |
cb7bc20a RW |
3745 | |
3746 | ;; The configuration file "texmf.cnf" is provided by the | |
3747 | ;; "texlive-bin" package. We take it and override only the | |
3748 | ;; setting for TEXMFROOT and TEXMF. This file won't be consulted | |
3749 | ;; by default, though, so we still need to set TEXMFCNF. | |
3750 | (substitute* texmf.cnf | |
3751 | (("^TEXMFROOT = .*") | |
3752 | (string-append "TEXMFROOT = " out "/share\n")) | |
3753 | (("^TEXMF = .*") | |
3754 | "TEXMF = $TEXMFROOT/share/texmf-dist\n")) | |
1a64a7b3 RW |
3755 | (setenv "PATH" (string-append |
3756 | (assoc-ref %build-inputs "bash") "/bin:" | |
3757 | (assoc-ref %build-inputs "coreutils") "/bin:" | |
3758 | (string-append out "/bin"))) | |
cb7bc20a RW |
3759 | (for-each |
3760 | (cut wrap-program <> | |
476f7fce RW |
3761 | `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf))) |
3762 | `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist")))) | |
cb7bc20a | 3763 | (find-files (string-append out "/bin") ".*")) |
1a64a7b3 RW |
3764 | |
3765 | ;; Remove invalid maps from config file. | |
3766 | (let ((port (open-pipe* OPEN_WRITE "updmap-sys" | |
3767 | "--syncwithtrees" | |
3768 | "--nohash" | |
3769 | (assoc-ref %build-inputs "updmap.cfg")))) | |
3770 | (display "Y\n" port) | |
3771 | (when (not (zero? (status:exit-val (close-pipe port)))) | |
3772 | (error "failed to filter updmap.cfg"))) | |
3773 | ;; Generate maps. | |
3774 | (invoke "updmap-sys" "--force" | |
3775 | (string-append out "/share/texmf-config/web2c/updmap.cfg")) | |
cb7bc20a RW |
3776 | #t)))) |
3777 | (inputs | |
3778 | `(("bash" ,bash) | |
3779 | ,@(map (lambda (package) | |
3780 | (list (package-name package) package)) | |
3781 | (append default-packages packages)))) | |
1a64a7b3 RW |
3782 | (native-inputs |
3783 | `(("coreutils" ,coreutils) | |
3784 | ("sed" ,sed) | |
3785 | ("updmap.cfg" | |
3786 | ,(origin | |
3787 | (method url-fetch) | |
3788 | (uri (string-append "https://tug.org/svn/texlive/tags/" | |
3789 | %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg" | |
3790 | "?revision=" (number->string %texlive-revision))) | |
3791 | (file-name (string-append "updmap.cfg-" | |
3792 | (number->string %texlive-revision))) | |
3793 | (sha256 | |
3794 | (base32 | |
3795 | "06mwpy5i218g5k3sf4gba0fmxgas82hkzx9fhwn67z5ik37d8apq")))))) | |
cb7bc20a RW |
3796 | (home-page (package-home-page texlive-bin)) |
3797 | (synopsis "Union of TeX Live packages") | |
3798 | (description "This package provides a subset of the TeX Live | |
3799 | distribution.") | |
3800 | (license (fold (lambda (package result) | |
3801 | (match (package-license package) | |
3802 | ((lst ...) | |
3803 | (append lst result)) | |
3804 | ((? license:license? license) | |
3805 | (cons license result)))) | |
3806 | '() | |
3807 | (append default-packages packages))))))) | |
3808 | ||
d7da2372 | 3809 | ;; For use in package definitions only |
9d4f8dc2 RW |
3810 | (define-public texlive-tiny |
3811 | (package | |
3812 | (inherit (texlive-union)) | |
3813 | (name "texlive-tiny") | |
3814 | (description "This is a very limited subset of the TeX Live distribution. | |
3815 | It includes little more than the required set of LaTeX packages."))) | |
3816 | ||
60b5e228 RW |
3817 | (define-public texlive-latex-amsrefs |
3818 | (package | |
3819 | (name "texlive-latex-amsrefs") | |
3820 | (version (number->string %texlive-revision)) | |
3821 | (source (origin | |
3822 | (method svn-fetch) | |
3823 | (uri (texlive-ref "latex" "amsrefs")) | |
3824 | (file-name (string-append name "-" version "-checkout")) | |
3825 | (sha256 | |
3826 | (base32 | |
3827 | "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1")))) | |
3828 | (build-system texlive-build-system) | |
3829 | (arguments '(#:tex-directory "latex/amsrefs")) | |
b8d8806b | 3830 | (home-page "https://www.ctan.org/pkg/amsrefs") |
60b5e228 RW |
3831 | (synopsis "LaTeX-based replacement for BibTeX") |
3832 | (description | |
3833 | "Amsrefs is a LaTeX package for bibliographies that provides an archival | |
3834 | data format similar to the format of BibTeX database files, but adapted to | |
3835 | make direct processing by LaTeX easier. The package can be used either in | |
3836 | conjunction with BibTeX or as a replacement for BibTeX.") | |
3837 | (license license:lppl1.3+))) | |
3838 | ||
3236599f RW |
3839 | (define-public texlive-latex-bigfoot |
3840 | (package | |
3841 | (name "texlive-latex-bigfoot") | |
3842 | (version (number->string %texlive-revision)) | |
3843 | (source (origin | |
3844 | (method svn-fetch) | |
3845 | (uri (texlive-ref "latex" "bigfoot")) | |
3846 | (file-name (string-append name "-" version "-checkout")) | |
3847 | (sha256 | |
3848 | (base32 | |
3849 | "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv")))) | |
3850 | (build-system texlive-build-system) | |
3851 | (arguments | |
3852 | '(#:tex-directory "latex/bigfoot" | |
3853 | #:phases | |
3854 | (modify-phases %standard-phases | |
3855 | (add-after 'unpack 'remove-generated-file | |
3856 | (lambda _ | |
3857 | (for-each delete-file (find-files "." "\\.drv$")) | |
3858 | #t))))) | |
b8d8806b | 3859 | (home-page "https://www.ctan.org/pkg/bigfoot") |
3236599f RW |
3860 | (synopsis "Footnotes for critical editions") |
3861 | (description | |
3862 | "This package aims to provide a one-stop solution to requirements for | |
3863 | footnotes. It offers: Multiple footnote apparatus superior to that of | |
3864 | @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run | |
3865 | into a single paragraph (this choice may be selected per footnote series); | |
3866 | Things you might have expected (such as @code{\\verb}-like material in | |
3867 | footnotes, and color selections over page breaks) now work. Note that the | |
3868 | majority of the bigfoot package's interface is identical to that of | |
3869 | @code{manyfoot}; users should seek information from that package's | |
3870 | documentation. The bigfoot bundle also provides the @code{perpage} and | |
3871 | @code{suffix} packages.") | |
3872 | (license license:gpl2+))) | |
3873 | ||
8e732b49 RW |
3874 | (define-public texlive-latex-blindtext |
3875 | (package | |
3876 | (name "texlive-latex-blindtext") | |
3877 | (version (number->string %texlive-revision)) | |
3878 | (source (origin | |
3879 | (method svn-fetch) | |
3880 | (uri (texlive-ref "latex" "blindtext")) | |
3881 | (file-name (string-append name "-" version "-checkout")) | |
3882 | (sha256 | |
3883 | (base32 | |
3884 | "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg")))) | |
3885 | (build-system texlive-build-system) | |
3886 | (arguments '(#:tex-directory "latex/blindtext")) | |
b8d8806b | 3887 | (home-page "https://www.ctan.org/pkg/blindtext") |
8e732b49 RW |
3888 | (synopsis "Producing 'blind' text for testing") |
3889 | (description | |
3890 | "The package provides the commands @code{\\blindtext} and | |
3891 | @code{\\Blindtext} for creating \"blind\" text useful in testing new classes | |
3892 | and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating | |
3893 | an entire random document with sections, lists, mathematics, etc. The package | |
3894 | supports three languages, @code{english}, @code{(n)german} and @code{latin}; | |
3895 | the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem | |
3896 | ipsum\" text, see the @code{lipsum} package).") | |
3897 | (license license:lppl))) | |
3898 | ||
7cda03bd RW |
3899 | (define-public texlive-latex-dinbrief |
3900 | (package | |
3901 | (name "texlive-latex-dinbrief") | |
3902 | (version (number->string %texlive-revision)) | |
3903 | (source (origin | |
3904 | (method svn-fetch) | |
3905 | (uri (texlive-ref "latex" "dinbrief")) | |
3906 | (file-name (string-append name "-" version "-checkout")) | |
3907 | (sha256 | |
3908 | (base32 | |
3909 | "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6")))) | |
3910 | (build-system texlive-build-system) | |
3911 | (arguments | |
3912 | '(#:tex-directory "latex/dinbrief" | |
3913 | #:phases | |
3914 | (modify-phases %standard-phases | |
3915 | (add-after 'unpack 'remove-generated-file | |
3916 | (lambda _ | |
3917 | (delete-file "dinbrief.drv") | |
d4d9a1ec RW |
3918 | #t)) |
3919 | (add-after 'unpack 'fix-encoding-error | |
3920 | (lambda _ | |
3921 | (with-fluids ((%default-port-encoding "ISO-8859-1")) | |
3922 | (substitute* "dinbrief.dtx" | |
3923 | (("zur Verf.+ung. In der Pr\"aambel") | |
3924 | "zur Verf\"ung. In der Pr\"aambel"))) | |
7cda03bd | 3925 | #t))))) |
b8d8806b | 3926 | (home-page "https://www.ctan.org/pkg/dinbrief") |
7cda03bd RW |
3927 | (synopsis "German letter DIN style") |
3928 | (description | |
3929 | "This package implements a document layout for writing letters according | |
3930 | to the rules of DIN (Deutsches Institut für Normung, German standardisation | |
3931 | institute). A style file for LaTeX 2.09 (with limited support of the | |
3932 | features) is part of the package. Since the letter layout is based on a | |
3933 | German standard, the user guide is written in German, but most macros have | |
3934 | English names from which the user can recognize what they are used for. In | |
3935 | addition there are example files showing how letters may be created with the | |
3936 | package.") | |
3937 | (license license:lppl))) | |
3938 | ||
de224adb RW |
3939 | (define-public texlive-latex-draftwatermark |
3940 | (package | |
3941 | (name "texlive-latex-draftwatermark") | |
3942 | (version (number->string %texlive-revision)) | |
3943 | (source (origin | |
3944 | (method svn-fetch) | |
3945 | (uri (texlive-ref "latex" "draftwatermark")) | |
3946 | (file-name (string-append name "-" version "-checkout")) | |
3947 | (sha256 | |
3948 | (base32 | |
3949 | "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv")))) | |
3950 | (build-system texlive-build-system) | |
3951 | (arguments '(#:tex-directory "latex/draftwatermark")) | |
b8d8806b | 3952 | (home-page "https://www.ctan.org/pkg/draftwatermark") |
de224adb RW |
3953 | (synopsis "Put a grey textual watermark on document pages") |
3954 | (description | |
3955 | "This package provides a means to add a textual, light grey watermark on | |
3956 | every page or on the first page of a document. Typical usage may consist in | |
3957 | writing words such as DRAFT or CONFIDENTIAL across document pages. The | |
3958 | package performs a similar function to that of @code{draftcopy}, but its | |
3959 | implementation is output device independent, and made very simple by relying | |
3960 | on everypage.") | |
3961 | (license license:lppl1.3+))) | |
3962 | ||
74e9c9a4 RW |
3963 | (define-public texlive-latex-environ |
3964 | (package | |
3965 | (name "texlive-latex-environ") | |
3966 | (version (number->string %texlive-revision)) | |
3967 | (source (origin | |
3968 | (method svn-fetch) | |
3969 | (uri (texlive-ref "latex" "environ")) | |
3970 | (file-name (string-append name "-" version "-checkout")) | |
3971 | (sha256 | |
3972 | (base32 | |
3973 | "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd")))) | |
3974 | (build-system texlive-build-system) | |
3975 | (arguments '(#:tex-directory "latex/environ")) | |
b8d8806b | 3976 | (home-page "https://www.ctan.org/pkg/environ") |
74e9c9a4 RW |
3977 | (synopsis "New interface for environments in LaTeX") |
3978 | (description | |
09acbb02 RW |
3979 | "This package provides the @code{\\collect@@body} command (as in |
3980 | @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body}, | |
3981 | for collecting the body text of an environment. These commands are used to | |
3982 | define a new author interface to creating new environments.") | |
74e9c9a4 RW |
3983 | (license license:lppl))) |
3984 | ||
adfa7a2a RW |
3985 | (define-public texlive-latex-eqparbox |
3986 | (package | |
3987 | (name "texlive-latex-eqparbox") | |
3988 | (version (number->string %texlive-revision)) | |
3989 | (source (origin | |
3990 | (method svn-fetch) | |
3991 | (uri (texlive-ref "latex" "eqparbox")) | |
3992 | (file-name (string-append name "-" version "-checkout")) | |
3993 | (sha256 | |
3994 | (base32 | |
d4d9a1ec | 3995 | "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs")))) |
adfa7a2a RW |
3996 | (build-system texlive-build-system) |
3997 | (arguments '(#:tex-directory "latex/eqparbox")) | |
b8d8806b | 3998 | (home-page "https://www.ctan.org/pkg/eqparbox") |
adfa7a2a RW |
3999 | (synopsis "Create equal-widthed parboxes") |
4000 | (description | |
4001 | "LaTeX users sometimes need to ensure that two or more blocks of text | |
4002 | occupy the same amount of horizontal space on the page. To that end, the | |
4003 | @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works | |
4004 | just like @code{\\parbox}, except that instead of specifying a width, one | |
4005 | specifies a tag. All @code{eqparbox}es with the same tag---regardless of | |
4006 | where they are in the document---will stretch to fit the widest | |
4007 | @code{eqparbox} with that tag. This simple, equal-width mechanism can be used | |
4008 | for a variety of alignment purposes, as is evidenced by the examples in | |
4009 | @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are | |
4010 | also provided.") | |
4011 | (license license:lppl1.3+))) | |
4012 | ||
32e623d0 RW |
4013 | (define-public texlive-latex-expdlist |
4014 | (package | |
4015 | (name "texlive-latex-expdlist") | |
4016 | (version (number->string %texlive-revision)) | |
4017 | (source (origin | |
4018 | (method svn-fetch) | |
4019 | (uri (texlive-ref "latex" "expdlist")) | |
4020 | (file-name (string-append name "-" version "-checkout")) | |
4021 | (sha256 | |
4022 | (base32 | |
4023 | "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r")))) | |
4024 | (build-system texlive-build-system) | |
4025 | (arguments | |
4026 | '(#:tex-directory "latex/expdlist" | |
4027 | #:phases | |
4028 | (modify-phases %standard-phases | |
4029 | (add-after 'unpack 'remove-generated-file | |
4030 | (lambda _ | |
4031 | (for-each delete-file | |
4032 | (find-files "." "\\.drv$")) | |
4033 | #t))))) | |
b8d8806b | 4034 | (home-page "https://www.ctan.org/pkg/expdlist") |
32e623d0 RW |
4035 | (synopsis "Expanded description environments") |
4036 | (description | |
4037 | "The package provides additional features for the LaTeX | |
4038 | @code{description} environment, including adjustable left margin. The package | |
4039 | also allows the user to \"break\" a list (for example, to interpose a comment) | |
4040 | without affecting the structure of the list (this works for @code{itemize} and | |
4041 | @code{enumerate} lists, and numbered lists remain in sequence).") | |
4042 | (license license:lppl))) | |
4043 | ||
893e3fc1 RW |
4044 | (define-public texlive-latex-filemod |
4045 | (package | |
4046 | (name "texlive-latex-filemod") | |
4047 | (version (number->string %texlive-revision)) | |
4048 | (source (origin | |
4049 | (method svn-fetch) | |
4050 | (uri (svn-reference | |
4051 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4052 | %texlive-tag "/Master/texmf-dist/" | |
4053 | "/tex/latex/filemod")) | |
4054 | (revision %texlive-revision))) | |
681b579d | 4055 | (file-name (string-append name "-" version "-checkout")) |
893e3fc1 RW |
4056 | (sha256 |
4057 | (base32 | |
4058 | "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2")))) | |
4059 | (build-system trivial-build-system) | |
4060 | (arguments | |
4061 | `(#:modules ((guix build utils)) | |
4062 | #:builder | |
4063 | (begin | |
4064 | (use-modules (guix build utils)) | |
4065 | (let ((target (string-append (assoc-ref %outputs "out") | |
4066 | "/share/texmf-dist/tex/latex/filemod"))) | |
4067 | (mkdir-p target) | |
4068 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4069 | #t)))) | |
b8d8806b | 4070 | (home-page "https://www.ctan.org/pkg/filemod") |
893e3fc1 RW |
4071 | (synopsis "Provide file modification times, and compare them") |
4072 | (description | |
4073 | "This package provides macros to read and compare the modification dates | |
4074 | of files. The files may be @code{.tex} files, images or other files (as long | |
4075 | as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive | |
4076 | of pdfLaTeX to find the file modification date as PDF date string, parses the | |
4077 | string and returns the value to the user. The package will also work for DVI | |
4078 | output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI | |
4079 | mode. The functionality is provided by purely expandable macros or by faster | |
4080 | but non-expandable ones.") | |
4081 | (license license:lppl1.3+))) | |
4082 | ||
8c23f238 RW |
4083 | (define-public texlive-latex-ifplatform |
4084 | (package | |
4085 | (name "texlive-latex-ifplatform") | |
4086 | (version (number->string %texlive-revision)) | |
4087 | (source (origin | |
4088 | (method svn-fetch) | |
4089 | (uri (texlive-ref "latex" "ifplatform")) | |
4090 | (file-name (string-append name "-" version "-checkout")) | |
4091 | (sha256 | |
4092 | (base32 | |
d4d9a1ec | 4093 | "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy")))) |
8c23f238 RW |
4094 | (build-system texlive-build-system) |
4095 | (arguments '(#:tex-directory "latex/ifplatform")) | |
b8d8806b | 4096 | (home-page "https://www.ctan.org/pkg/ifplatform") |
8c23f238 RW |
4097 | (synopsis "Conditionals to test which platform is being used") |
4098 | (description | |
4099 | "This package uses the (La)TeX extension @code{-shell-escape} to | |
4100 | establish whether the document is being processed on a Windows or on a | |
4101 | Unix-like system, or on Cygwin (Unix environment over a Windows system). | |
4102 | Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx} | |
4103 | and @code{\\ifcygwin}. The package also preserves the output of @code{uname} | |
4104 | on a Unix-like system, which may be used to distinguish between various | |
4105 | classes of systems.") | |
4106 | (license license:lppl))) | |
4107 | ||
9b416042 RW |
4108 | (define-public texlive-latex-natbib |
4109 | (package | |
4110 | (name "texlive-latex-natbib") | |
4111 | (version (number->string %texlive-revision)) | |
4112 | (source (origin | |
4113 | (method svn-fetch) | |
4114 | (uri (texlive-ref "latex" "natbib")) | |
23ae6e65 | 4115 | (file-name (string-append name "-" version "-checkout")) |
9b416042 RW |
4116 | (sha256 |
4117 | (base32 | |
4118 | "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7")))) | |
4119 | (build-system texlive-build-system) | |
4120 | (arguments '(#:tex-directory "latex/natbib")) | |
b8d8806b | 4121 | (home-page "https://www.ctan.org/pkg/natbib") |
9b416042 RW |
4122 | (synopsis "Flexible bibliography support") |
4123 | (description | |
4124 | "This bundle provides a package that implements both author-year and | |
4125 | numbered references, as well as much detailed of support for other | |
4126 | bibliography use. Also provided are versions of the standard BibTeX styles | |
4127 | that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat}, | |
4128 | @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are | |
4129 | designed from the start to be compatible with @code{natbib}.") | |
4130 | (license license:lppl))) | |
4131 | ||
d770d07f RW |
4132 | (define-public texlive-latex-psfrag |
4133 | (package | |
4134 | (name "texlive-latex-psfrag") | |
4135 | (version (number->string %texlive-revision)) | |
4136 | (source (origin | |
4137 | (method svn-fetch) | |
4138 | (uri (texlive-ref "latex" "psfrag")) | |
4139 | (file-name (string-append name "-" version "-checkout")) | |
4140 | (sha256 | |
4141 | (base32 | |
4142 | "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352")))) | |
4143 | (build-system texlive-build-system) | |
4144 | (arguments '(#:tex-directory "latex/psfrag")) | |
b8d8806b | 4145 | (home-page "https://www.ctan.org/pkg/psfrag") |
d770d07f RW |
4146 | (synopsis "Replace strings in encapsulated PostScript figures") |
4147 | (description | |
4148 | "This package allows LaTeX constructions (equations, picture | |
4149 | environments, etc.) to be precisely superimposed over Encapsulated PostScript | |
4150 | figures, using your own favorite drawing tool to create an EPS figure and | |
4151 | placing simple text \"tags\" where each replacement is to be placed, with | |
4152 | PSfrag automatically removing these tags from the figure and replacing them | |
4153 | with a user specified LaTeX construction, properly aligned, scaled, and/or | |
4154 | rotated.") | |
4155 | (license (license:fsf-free "file://psfrag.dtx")))) | |
4156 | ||
d4d9a1ec RW |
4157 | (define-public texlive-latex-xkeyval |
4158 | (package | |
4159 | (name "texlive-latex-xkeyval") | |
4160 | (version (number->string %texlive-revision)) | |
4161 | (source (origin | |
4162 | (method svn-fetch) | |
4163 | (uri (texlive-ref "latex" "xkeyval")) | |
4164 | (file-name (string-append name "-" version "-checkout")) | |
4165 | (sha256 | |
4166 | (base32 | |
4167 | "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp")))) | |
4168 | (build-system texlive-build-system) | |
4169 | (arguments '(#:tex-directory "latex/xkeyval")) | |
4170 | (home-page "https://www.ctan.org/pkg/xkeyval") | |
4171 | (synopsis "Macros for defining and setting keys") | |
4172 | (description | |
4173 | "This package is an extension of the @code{keyval} package and offers | |
4174 | more flexible macros for defining and setting keys. The package provides a | |
4175 | pointer and a preset system. Furthermore, it supplies macros to allow class | |
4176 | and package options to contain options of the @code{key=value} form. A LaTeX | |
4177 | kernel patch is provided to avoid premature expansions of macros in class or | |
4178 | package options. A specialized system for setting @code{PSTricks} keys is | |
4179 | provided by the @code{pst-xkey} package.") | |
4180 | (license license:lppl1.3+))) | |
4181 | ||
5a1ee7d8 RW |
4182 | (define-public texlive-latex-pstool |
4183 | (package | |
4184 | (name "texlive-latex-pstool") | |
4185 | (version (number->string %texlive-revision)) | |
4186 | (source (origin | |
4187 | (method svn-fetch) | |
d4d9a1ec RW |
4188 | (uri (svn-reference |
4189 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4190 | %texlive-tag "/Master/texmf-dist/" | |
4191 | "/tex/latex/pstool")) | |
4192 | (revision %texlive-revision))) | |
5a1ee7d8 RW |
4193 | (file-name (string-append name "-" version "-checkout")) |
4194 | (sha256 | |
4195 | (base32 | |
d4d9a1ec RW |
4196 | "1h816jain8c9nky75kk8pmmwj5b4yf9dpqvdvi2l6jhfj5iqkzr8")))) |
4197 | (build-system trivial-build-system) | |
5a1ee7d8 | 4198 | (arguments |
d4d9a1ec RW |
4199 | `(#:modules ((guix build utils)) |
4200 | #:builder | |
4201 | (begin | |
4202 | (use-modules (guix build utils)) | |
4203 | (let ((target (string-append (assoc-ref %outputs "out") | |
4204 | "/share/texmf-dist/tex/latex/pstool"))) | |
4205 | (mkdir-p target) | |
4206 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4207 | #t)))) | |
5a1ee7d8 | 4208 | (propagated-inputs |
d4d9a1ec | 4209 | `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix |
5a1ee7d8 RW |
4210 | ("texlive-latex-filemod" ,texlive-latex-filemod) |
4211 | ("texlive-latex-graphics" ,texlive-latex-graphics) | |
4212 | ("texlive-latex-ifplatform" ,texlive-latex-ifplatform) | |
d4d9a1ec | 4213 | ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3 |
5a1ee7d8 RW |
4214 | ("texlive-latex-oberdiek" ,texlive-latex-oberdiek) |
4215 | ("texlive-latex-psfrag" ,texlive-latex-psfrag) | |
d4d9a1ec RW |
4216 | ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc |
4217 | ("texlive-latex-trimspaces" ,texlive-latex-trimspaces) | |
4218 | ("texlive-latex-xkeyval" ,texlive-latex-xkeyval))) | |
b8d8806b | 4219 | (home-page "https://www.ctan.org/pkg/pstool") |
d4d9a1ec | 4220 | (synopsis "Process PostScript graphics within pdfLaTeX documents") |
5a1ee7d8 RW |
4221 | (description |
4222 | "This is a package for processing PostScript graphics with @code{psfrag} | |
4223 | labels within pdfLaTeX documents. Every graphic is compiled individually, | |
4224 | drastically speeding up compilation time when only a single figure needs | |
4225 | re-processing.") | |
4226 | (license license:lppl))) | |
4227 | ||
171160d5 RW |
4228 | (define-public texlive-latex-seminar |
4229 | (package | |
4230 | (name "texlive-latex-seminar") | |
4231 | (version (number->string %texlive-revision)) | |
4232 | (source (origin | |
4233 | (method svn-fetch) | |
4234 | (uri (svn-reference | |
4235 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4236 | %texlive-tag "/Master/texmf-dist/" | |
4237 | "/tex/latex/seminar")) | |
4238 | (revision %texlive-revision))) | |
a74ac06b | 4239 | (file-name (string-append name "-" version "-checkout")) |
171160d5 RW |
4240 | (sha256 |
4241 | (base32 | |
4242 | "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0")))) | |
1d4c2dab RW |
4243 | (build-system trivial-build-system) |
4244 | (arguments | |
4245 | `(#:modules ((guix build utils)) | |
4246 | #:builder | |
4247 | (begin | |
4248 | (use-modules (guix build utils)) | |
4249 | (let ((target (string-append (assoc-ref %outputs "out") | |
4250 | "/share/texmf-dist/tex/latex/seminar"))) | |
4251 | (mkdir-p target) | |
4252 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4253 | #t)))) | |
b8d8806b | 4254 | (home-page "https://www.ctan.org/pkg/seminar") |
171160d5 RW |
4255 | (synopsis "Make overhead slides") |
4256 | ;; TODO: This package may need fancybox and xcomment at runtime. | |
4257 | (description | |
4258 | "This package provides a class that produces overhead | |
4259 | slides (transparencies), with many facilities. Seminar is not nowadays | |
4260 | reckoned a good basis for a presentation — users are advised to use more | |
4261 | recent classes such as powerdot or beamer, both of which are tuned to | |
4262 | 21st-century presentation styles.") | |
4263 | (license license:lppl1.2+))) | |
4264 | ||
f3540dbd RW |
4265 | (define-public texlive-latex-trimspaces |
4266 | (package | |
4267 | (name "texlive-latex-trimspaces") | |
4268 | (version (number->string %texlive-revision)) | |
4269 | (source (origin | |
4270 | (method svn-fetch) | |
4271 | (uri (texlive-ref "latex" "trimspaces")) | |
70a71d19 | 4272 | (file-name (string-append name "-" version "-checkout")) |
f3540dbd RW |
4273 | (sha256 |
4274 | (base32 | |
4275 | "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa")))) | |
4276 | (build-system texlive-build-system) | |
4277 | (arguments | |
4278 | '(#:tex-directory "latex/trimspaces" | |
4279 | #:tex-format "latex" | |
4280 | #:phases | |
4281 | (modify-phases %standard-phases | |
4282 | (add-after 'unpack 'fix-bug | |
4283 | (lambda _ | |
4284 | ;; The "ins" file refers to the wrong source file. | |
4285 | (substitute* "trimspaces.ins" | |
4286 | (("pstool.tex") "trimspaces.tex")) | |
4287 | #t))))) | |
4288 | (inputs | |
4289 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
b8d8806b | 4290 | (home-page "https://www.ctan.org/pkg/trimspaces") |
f3540dbd RW |
4291 | (synopsis "Trim spaces around an argument or within a macro") |
4292 | (description | |
4293 | "This very short package allows you to expandably remove spaces around a | |
4294 | token list (commands are provided to remove spaces before, spaces after, or | |
4295 | both); or to remove surrounding spaces within a macro definition, or to define | |
4296 | space-stripped macros.") | |
4297 | (license license:lppl))) | |
4298 | ||
7709d4d8 RW |
4299 | (define-public texlive-latex-capt-of |
4300 | (package | |
4301 | (name "texlive-latex-capt-of") | |
4302 | (version (number->string %texlive-revision)) | |
4303 | (source (origin | |
4304 | (method svn-fetch) | |
4305 | (uri (svn-reference | |
4306 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4307 | %texlive-tag "/Master/texmf-dist/" | |
4308 | "/tex/latex/capt-of")) | |
4309 | (revision %texlive-revision))) | |
4310 | (file-name (string-append name "-" version "-checkout")) | |
4311 | (sha256 | |
4312 | (base32 | |
4313 | "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x")))) | |
4314 | (build-system trivial-build-system) | |
4315 | (arguments | |
4316 | `(#:modules ((guix build utils)) | |
4317 | #:builder | |
4318 | (begin | |
4319 | (use-modules (guix build utils)) | |
4320 | (let ((target (string-append (assoc-ref %outputs "out") | |
4321 | "/share/texmf-dist/tex/latex/capt-of"))) | |
4322 | (mkdir-p target) | |
4323 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4324 | #t)))) | |
b8d8806b | 4325 | (home-page "https://www.ctan.org/pkg/capt-of") |
7709d4d8 RW |
4326 | (synopsis "Captions on more than floats") |
4327 | (description | |
4328 | "This package defines a command @code{\\captionof} for putting a caption | |
4329 | to something that's not a float.") | |
4330 | (license license:lppl))) | |
4331 | ||
49b2e86a RW |
4332 | (define-public texlive-latex-doi |
4333 | (package | |
4334 | (name "texlive-latex-doi") | |
4335 | (version (number->string %texlive-revision)) | |
4336 | (source (origin | |
4337 | (method svn-fetch) | |
4338 | (uri (svn-reference | |
4339 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4340 | %texlive-tag "/Master/texmf-dist/" | |
4341 | "/tex/latex/doi")) | |
4342 | (revision %texlive-revision))) | |
4343 | (file-name (string-append name "-" version "-checkout")) | |
4344 | (sha256 | |
4345 | (base32 | |
4346 | "0378rdmrgr2lzbfi4qqy4dfpj5im20diyd8z8b9m4mlg05r7wgnb")))) | |
4347 | (build-system trivial-build-system) | |
4348 | (arguments | |
4349 | `(#:modules ((guix build utils)) | |
4350 | #:builder | |
4351 | (begin | |
4352 | (use-modules (guix build utils)) | |
4353 | (let ((target (string-append (assoc-ref %outputs "out") | |
4354 | "/share/texmf-dist/tex/latex/doi"))) | |
4355 | (mkdir-p target) | |
4356 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4357 | #t)))) | |
4358 | (home-page "https://www.ctan.org/pkg/doi") | |
4359 | (synopsis "Create correct hyperlinks for DOI numbers") | |
4360 | (description | |
4361 | "You can hyperlink DOI numbers to doi.org. However, some publishers have | |
4362 | elected to use nasty characters in their DOI numbering scheme (@code{<}, | |
4363 | @code{>}, @code{_} and @code{;} have all been spotted). This will either | |
4364 | upset LaTeX, or your PDF reader. This package contains a single user-level | |
4365 | command @code{\\doi{}}, which takes a DOI number, and creates a correct | |
4366 | hyperlink to the target of the DOI.") | |
4367 | ;; Any version of the LPPL. | |
4368 | (license license:lppl1.3+))) | |
4369 | ||
a8ac7c0b RW |
4370 | (define-public texlive-latex-etoolbox |
4371 | (package | |
4372 | (name "texlive-latex-etoolbox") | |
4373 | (version (number->string %texlive-revision)) | |
4374 | (source (origin | |
4375 | (method svn-fetch) | |
4376 | (uri (svn-reference | |
4377 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4378 | %texlive-tag "/Master/texmf-dist/" | |
4379 | "/tex/latex/etoolbox")) | |
4380 | (revision %texlive-revision))) | |
4381 | (file-name (string-append name "-" version "-checkout")) | |
4382 | (sha256 | |
4383 | (base32 | |
d4d9a1ec | 4384 | "1agmq6bf8wzcd77n20ng8bl4kh69cg5f6sjniii7bcw4llhd3nc8")))) |
a8ac7c0b RW |
4385 | (build-system trivial-build-system) |
4386 | (arguments | |
4387 | `(#:modules ((guix build utils)) | |
4388 | #:builder | |
4389 | (begin | |
4390 | (use-modules (guix build utils)) | |
4391 | (let ((target (string-append (assoc-ref %outputs "out") | |
4392 | "/share/texmf-dist/tex/latex/etoolbox"))) | |
4393 | (mkdir-p target) | |
4394 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4395 | #t)))) | |
b8d8806b | 4396 | (home-page "https://www.ctan.org/pkg/etoolbox") |
a8ac7c0b RW |
4397 | (synopsis "e-TeX tools for LaTeX") |
4398 | (description | |
4399 | "This package is a toolbox of programming facilities geared primarily | |
4400 | towards LaTeX class and package authors. It provides LaTeX frontends to some | |
4401 | of the new primitives provided by e-TeX as well as some generic tools which | |
4402 | are not strictly related to e-TeX but match the profile of this package. The | |
4403 | package provides functions that seem to offer alternative ways of implementing | |
4404 | some LaTeX kernel commands; nevertheless, the package will not modify any part | |
4405 | of the LaTeX kernel.") | |
4406 | (license license:lppl1.3+))) | |
4407 | ||
17dce7e5 RW |
4408 | (define-public texlive-latex-fncychap |
4409 | (package | |
4410 | (name "texlive-latex-fncychap") | |
4411 | (version (number->string %texlive-revision)) | |
4412 | (source (origin | |
4413 | (method svn-fetch) | |
4414 | (uri (svn-reference | |
4415 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4416 | %texlive-tag "/Master/texmf-dist/" | |
4417 | "/tex/latex/fncychap")) | |
4418 | (revision %texlive-revision))) | |
4419 | (file-name (string-append name "-" version "-checkout")) | |
4420 | (sha256 | |
4421 | (base32 | |
4422 | "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq")))) | |
4423 | (build-system trivial-build-system) | |
4424 | (arguments | |
4425 | `(#:modules ((guix build utils)) | |
4426 | #:builder | |
4427 | (begin | |
4428 | (use-modules (guix build utils)) | |
4429 | (let ((target (string-append (assoc-ref %outputs "out") | |
4430 | "/share/texmf-dist/tex/latex/fncychap"))) | |
4431 | (mkdir-p target) | |
4432 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4433 | #t)))) | |
b8d8806b | 4434 | (home-page "https://www.ctan.org/pkg/fncychap") |
17dce7e5 RW |
4435 | (synopsis "Seven predefined chapter heading styles") |
4436 | (description | |
4437 | "This package provides seven predefined chapter heading styles. Each | |
4438 | style can be modified using a set of simple commands. Optionally one can | |
4439 | modify the formatting routines in order to create additional chapter | |
4440 | headings.") | |
4441 | (license license:lppl1.3+))) | |
4442 | ||
ef1e2ef0 RW |
4443 | (define-public texlive-latex-framed |
4444 | (package | |
4445 | (name "texlive-latex-framed") | |
4446 | (version (number->string %texlive-revision)) | |
4447 | (source (origin | |
4448 | (method svn-fetch) | |
4449 | (uri (svn-reference | |
4450 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4451 | %texlive-tag "/Master/texmf-dist/" | |
4452 | "/tex/latex/framed")) | |
4453 | (revision %texlive-revision))) | |
4454 | (file-name (string-append name "-" version "-checkout")) | |
4455 | (sha256 | |
4456 | (base32 | |
4457 | "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x")))) | |
4458 | (build-system trivial-build-system) | |
4459 | (arguments | |
4460 | `(#:modules ((guix build utils)) | |
4461 | #:builder | |
4462 | (begin | |
4463 | (use-modules (guix build utils)) | |
4464 | (let ((target (string-append (assoc-ref %outputs "out") | |
4465 | "/share/texmf-dist/tex/latex/framed"))) | |
4466 | (mkdir-p target) | |
4467 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4468 | #t)))) | |
b8d8806b | 4469 | (home-page "https://www.ctan.org/pkg/framed") |
ef1e2ef0 RW |
4470 | (synopsis "Framed or shaded regions that can break across pages") |
4471 | (description | |
4472 | "The package creates three environments: @code{framed}, which puts an | |
4473 | ordinary frame box around the region, @code{shaded}, which shades the region, | |
4474 | and @code{leftbar}, which places a line at the left side. The environments | |
4475 | allow a break at their start (the @code{\\FrameCommand} enables creation of a | |
4476 | title that is “attached” to the environment); breaks are also allowed in the | |
4477 | course of the framed/shaded matter. There is also a command | |
4478 | @code{\\MakeFramed} to make your own framed-style environments.") | |
4479 | ;; The header states: "These macros may be freely transmitted, reproduced, | |
4480 | ;; or modified for any purpose provided that this notice is left intact." | |
4481 | (license (license:fsf-free "file://framed.sty")))) | |
4482 | ||
588b5e96 RW |
4483 | (define-public texlive-latex-g-brief |
4484 | (package | |
4485 | (name "texlive-latex-g-brief") | |
4486 | (version (number->string %texlive-revision)) | |
4487 | (source (origin | |
4488 | (method svn-fetch) | |
4489 | (uri (texlive-ref "latex" "g-brief")) | |
4490 | (file-name (string-append name "-" version "-checkout")) | |
4491 | (sha256 | |
4492 | (base32 | |
4493 | "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5")))) | |
4494 | (build-system texlive-build-system) | |
4495 | (arguments | |
4496 | '(#:tex-directory "latex/g-brief" | |
4497 | #:phases | |
4498 | (modify-phases %standard-phases | |
4499 | (add-after 'unpack 'remove-generated-file | |
4500 | (lambda _ | |
4501 | (delete-file "g-brief.drv") | |
4502 | #t))))) | |
b8d8806b | 4503 | (home-page "https://www.ctan.org/pkg/g-brief") |
588b5e96 RW |
4504 | (synopsis "Letter document class") |
4505 | (description | |
4506 | "This package is designed for formatting formless letters in German; it | |
4507 | can also be used for English (by those who can read the documentation). There | |
4508 | are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an | |
4509 | \"old\" and a \"new\" version of g-brief.") | |
4510 | (license license:lppl))) | |
4511 | ||
9b4d5c09 RW |
4512 | (define-public texlive-latex-galois |
4513 | (package | |
4514 | (name "texlive-latex-galois") | |
4515 | (version (number->string %texlive-revision)) | |
4516 | (source (origin | |
4517 | (method svn-fetch) | |
4518 | (uri (texlive-ref "latex" "galois")) | |
4519 | (file-name (string-append name "-" version "-checkout")) | |
4520 | (sha256 | |
4521 | (base32 | |
4522 | "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h")))) | |
4523 | (build-system texlive-build-system) | |
4524 | (arguments '(#:tex-directory "latex/galois")) | |
b8d8806b | 4525 | (home-page "https://www.ctan.org/pkg/galois") |
9b4d5c09 RW |
4526 | (synopsis "Typeset Galois connections") |
4527 | (description | |
4528 | "The package deals with connections in two-dimensional style, optionally | |
4529 | in colour.") | |
4530 | (license license:lppl))) | |
4531 | ||
5f691e2e RW |
4532 | (define-public texlive-latex-gcite |
4533 | (package | |
4534 | (name "texlive-latex-gcite") | |
4535 | (version (number->string %texlive-revision)) | |
4536 | (source (origin | |
4537 | (method svn-fetch) | |
4538 | (uri (texlive-ref "latex" "gcite")) | |
4539 | (file-name (string-append name "-" version "-checkout")) | |
4540 | (sha256 | |
4541 | (base32 | |
4542 | "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa")))) | |
4543 | (build-system texlive-build-system) | |
4544 | (arguments '(#:tex-directory "latex/gcite")) | |
b8d8806b | 4545 | (home-page "https://www.ctan.org/pkg/gcite") |
5f691e2e RW |
4546 | (synopsis "Citations in a reader-friendly style") |
4547 | (description | |
4548 | "The package allows citations in the German style, which is considered by | |
4549 | many to be particularly reader-friendly. The citation provides a small amount | |
4550 | of bibliographic information in a footnote on the page where each citation is | |
4551 | made. It combines a desire to eliminate unnecessary page-turning with the | |
4552 | look-up efficiency afforded by numeric citations. The package makes use of | |
4553 | BibLaTeX, and is considered experimental.") | |
4554 | (license license:lppl1.3+))) | |
4555 | ||
f47d1a52 RW |
4556 | (define-public texlive-latex-geometry |
4557 | (package | |
4558 | (name "texlive-latex-geometry") | |
4559 | (version (number->string %texlive-revision)) | |
4560 | (source (origin | |
4561 | (method svn-fetch) | |
4562 | (uri (texlive-ref "latex" "geometry")) | |
4563 | (file-name (string-append name "-" version "-checkout")) | |
4564 | (sha256 | |
4565 | (base32 | |
d4d9a1ec | 4566 | "0yw6bjfgsli3s1dldsgb7mkr7lnk329cgdjbgs8z2xn59pmmdsn4")))) |
f47d1a52 RW |
4567 | (build-system texlive-build-system) |
4568 | (arguments '(#:tex-directory "latex/geometry")) | |
00a7af0e RW |
4569 | (propagated-inputs |
4570 | `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek))) ;for ifpdf | |
b8d8806b | 4571 | (home-page "https://www.ctan.org/pkg/geometry") |
f47d1a52 RW |
4572 | (synopsis "Flexible and complete interface to document dimensions") |
4573 | (description | |
4574 | "This package provides an easy and flexible user interface to customize | |
4575 | page layout, implementing auto-centering and auto-balancing mechanisms so that | |
4576 | the users have only to give the least description for the page layout. The | |
4577 | package knows about all the standard paper sizes, so that the user need not | |
4578 | know what the nominal \"real\" dimensions of the paper are, just its standard | |
4579 | name (such as a4, letter, etc.). An important feature is the package's | |
4580 | ability to communicate the paper size it's set up to the output.") | |
4581 | (license license:lppl))) | |
4582 | ||
d48091be RW |
4583 | (define-public texlive-latex-mdwtools |
4584 | (package | |
4585 | (name "texlive-latex-mdwtools") | |
4586 | (version (number->string %texlive-revision)) | |
4587 | (source (origin | |
4588 | (method svn-fetch) | |
4589 | (uri (texlive-ref "latex" "mdwtools")) | |
4590 | (file-name (string-append name "-" version "-checkout")) | |
4591 | (sha256 | |
4592 | (base32 | |
4593 | "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg")))) | |
4594 | (build-system texlive-build-system) | |
4595 | (arguments '(#:tex-directory "latex/mdwtools")) | |
b8d8806b | 4596 | (home-page "https://www.ctan.org/pkg/mdwtools") |
d48091be RW |
4597 | (synopsis "Miscellaneous tools by Mark Wooding") |
4598 | (description | |
4599 | "This collection of tools includes: @code{atsupport} for short commands | |
fb5dfa86 RW |
4600 | starting with @code{@@}, macros to sanitize the OT1 encoding of the |
4601 | @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support; | |
d48091be RW |
4602 | @code{mathenv} for various alignment in maths; list handling; @code{mdwmath} |
4603 | which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and | |
4604 | array environments; verbatim handling; and syntax diagrams.") | |
4605 | (license license:gpl3+))) | |
4606 | ||
80bf1f21 RW |
4607 | (define-public texlive-latex-polyglossia |
4608 | (package | |
4609 | (name "texlive-latex-polyglossia") | |
4610 | (version (number->string %texlive-revision)) | |
4611 | (source (origin | |
4612 | (method svn-fetch) | |
4613 | (uri (texlive-ref "latex" "polyglossia")) | |
4614 | (file-name (string-append name "-" version "-checkout")) | |
4615 | (sha256 | |
4616 | (base32 | |
d4d9a1ec | 4617 | "03ma58z3ypsbp7zgkzb1ylpn2ygr27cxzkf042ns0rif4g8s491f")))) |
80bf1f21 RW |
4618 | (build-system texlive-build-system) |
4619 | (arguments '(#:tex-directory "latex/polyglossia")) | |
b8d8806b | 4620 | (home-page "https://www.ctan.org/pkg/polyglossia") |
80bf1f21 RW |
4621 | (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX") |
4622 | (description | |
4623 | "This package provides a complete Babel replacement for users of LuaLaTeX | |
4624 | and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.") | |
4625 | (license license:lppl1.3+))) | |
4626 | ||
84f8035a RW |
4627 | (define-public texlive-latex-supertabular |
4628 | (package | |
4629 | (name "texlive-latex-supertabular") | |
4630 | (version (number->string %texlive-revision)) | |
4631 | (source (origin | |
4632 | (method svn-fetch) | |
4633 | (uri (texlive-ref "latex" "supertabular")) | |
4634 | (file-name (string-append name "-" version "-checkout")) | |
4635 | (sha256 | |
4636 | (base32 | |
4637 | "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3")))) | |
4638 | (build-system texlive-build-system) | |
4639 | (arguments '(#:tex-directory "latex/supertabular")) | |
b8d8806b | 4640 | (home-page "https://www.ctan.org/pkg/supertabular") |
84f8035a RW |
4641 | (synopsis "Multi-page tables package") |
4642 | (description | |
4643 | "This package was a predecessor of @code{longtable}; the newer | |
4644 | package (designed on quite different principles) is easier to use and more | |
4645 | flexible, in many cases, but supertabular retains its usefulness in a few | |
4646 | situations where longtable has problems.") | |
4647 | (license license:lppl1.3+))) | |
4648 | ||
a0aa6b59 RW |
4649 | (define-public texlive-tex-texinfo |
4650 | (package | |
4651 | (name "texlive-tex-texinfo") | |
4652 | (version (number->string %texlive-revision)) | |
4653 | (source (origin | |
4654 | (method svn-fetch) | |
4655 | (uri (svn-reference | |
4656 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4657 | %texlive-tag "/Master/texmf-dist/" | |
4658 | "/tex/texinfo")) | |
4659 | (revision %texlive-revision))) | |
88ae1921 | 4660 | (file-name (string-append name "-" version "-checkout")) |
a0aa6b59 RW |
4661 | (sha256 |
4662 | (base32 | |
d4d9a1ec | 4663 | "06cf821y1j7jdg93pb41ayigrfwgn0y49d7w1025zlijjxi6bvjp")))) |
a0aa6b59 RW |
4664 | (build-system trivial-build-system) |
4665 | (arguments | |
4666 | `(#:modules ((guix build utils)) | |
4667 | #:builder | |
4668 | (begin | |
4669 | (use-modules (guix build utils)) | |
4670 | (let ((target (string-append (assoc-ref %outputs "out") | |
4671 | "/share/texmf-dist/tex/texinfo"))) | |
4672 | (mkdir-p target) | |
4673 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4674 | #t)))) | |
b8d8806b | 4675 | (home-page "https://www.ctan.org/pkg/texinfo") |
a0aa6b59 RW |
4676 | (synopsis "TeX macros to handle Texinfo files") |
4677 | (description | |
4678 | "Texinfo is the preferred format for documentation in the GNU project; | |
4679 | the format may be used to produce online or printed output from a single | |
4680 | source. The Texinfo macros may be used to produce printable output using TeX; | |
4681 | other programs in the distribution offer online interactive use (with | |
4682 | hypertext linkages in some cases).") | |
4683 | (license license:gpl3+))) | |
4684 | ||
0de81b09 RW |
4685 | (define-public texlive-latex-upquote |
4686 | (package | |
4687 | (name "texlive-latex-upquote") | |
4688 | (version (number->string %texlive-revision)) | |
4689 | (source (origin | |
4690 | (method svn-fetch) | |
4691 | (uri (texlive-ref "latex" "upquote")) | |
4692 | (file-name (string-append name "-" version "-checkout")) | |
4693 | (sha256 | |
4694 | (base32 | |
4695 | "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp")))) | |
4696 | (build-system texlive-build-system) | |
4697 | (arguments '(#:tex-directory "latex/upquote")) | |
b8d8806b | 4698 | (home-page "https://www.ctan.org/pkg/upquote") |
0de81b09 RW |
4699 | (synopsis "Show \"realistic\" quotes in verbatim") |
4700 | (description | |
4701 | "Typewriter-style fonts are best for program listings, but Computer | |
4702 | Modern Typewriter prints @code{`} and @code{'} as bent opening and closing | |
4703 | single quotes. Other fonts, and most programming languages, print @code{`} as | |
4704 | a grave accent and @code{'} upright; @code{'} is used both to open and to | |
4705 | close quoted strings. The package switches the typewriter font to Computer | |
4706 | Modern Typewriter in OT1 encoding, and modifies the behaviour of | |
4707 | @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print | |
4708 | in the expected way. It does this regardless of other fonts or encodings in | |
4709 | use, so long as the package is loaded after the other fonts were. The package | |
4710 | does not affect @code{\\tt}, @code{\\texttt}, etc.") | |
4711 | (license license:lppl1.2+))) | |
4712 | ||
bda61541 RW |
4713 | (define-public texlive-latex-anysize |
4714 | (package | |
4715 | (name "texlive-latex-anysize") | |
4716 | (version (number->string %texlive-revision)) | |
4717 | (source (origin | |
4718 | (method svn-fetch) | |
4719 | (uri (svn-reference | |
4720 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4721 | %texlive-tag "/Master/texmf-dist/" | |
4722 | "/tex/latex/anysize")) | |
4723 | (revision %texlive-revision))) | |
de4eb4d1 | 4724 | (file-name (string-append name "-" version "-checkout")) |
bda61541 RW |
4725 | (sha256 |
4726 | (base32 | |
4727 | "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb")))) | |
4728 | (build-system trivial-build-system) | |
4729 | (arguments | |
4730 | `(#:modules ((guix build utils)) | |
4731 | #:builder | |
4732 | (begin | |
4733 | (use-modules (guix build utils)) | |
4734 | (let ((target (string-append (assoc-ref %outputs "out") | |
4735 | "/share/texmf-dist/tex/latex/anysize"))) | |
4736 | (mkdir-p target) | |
4737 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4738 | #t)))) | |
b8d8806b | 4739 | (home-page "https://www.ctan.org/pkg/anysize") |
bda61541 RW |
4740 | (synopsis "Simple package to set up document margins") |
4741 | (description | |
4742 | "This is a simple package to set up document margins. This package is | |
4743 | considered obsolete; alternatives are the @code{typearea} package from the | |
4744 | @code{koma-script} bundle, or the @code{geometry} package.") | |
4745 | (license license:public-domain))) | |
4746 | ||
1d3be84e RW |
4747 | (define-public texlive-latex-appendix |
4748 | (package | |
4749 | (name "texlive-latex-appendix") | |
4750 | (version (number->string %texlive-revision)) | |
4751 | (source (origin | |
4752 | (method svn-fetch) | |
4753 | (uri (texlive-ref "latex" "appendix")) | |
72d5adf4 | 4754 | (file-name (string-append name "-" version "-checkout")) |
1d3be84e RW |
4755 | (sha256 |
4756 | (base32 | |
4757 | "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg")))) | |
4758 | (build-system texlive-build-system) | |
4759 | (arguments '(#:tex-directory "latex/appendix")) | |
b8d8806b | 4760 | (home-page "https://www.ctan.org/pkg/appendix") |
1d3be84e RW |
4761 | (synopsis "Extra control of appendices") |
4762 | (description | |
4763 | "The appendix package provides various ways of formatting the titles of | |
4764 | appendices. Also (sub)appendices environments are provided that can be used, | |
4765 | for example, for per chapter/section appendices. An @code{appendices} | |
4766 | environment is provided which can be used instead of the @code{\\appendix} | |
4767 | command.") | |
4768 | (license license:lppl))) | |
4769 | ||
b92ac281 RW |
4770 | (define-public texlive-latex-changebar |
4771 | (package | |
4772 | (name "texlive-latex-changebar") | |
4773 | (version (number->string %texlive-revision)) | |
4774 | (source (origin | |
4775 | (method svn-fetch) | |
4776 | (uri (texlive-ref "latex" "changebar")) | |
af8aa105 | 4777 | (file-name (string-append name "-" version "-checkout")) |
b92ac281 RW |
4778 | (sha256 |
4779 | (base32 | |
d4d9a1ec | 4780 | "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch")))) |
b92ac281 RW |
4781 | (build-system texlive-build-system) |
4782 | (arguments '(#:tex-directory "latex/changebar")) | |
b8d8806b | 4783 | (home-page "https://www.ctan.org/pkg/changebar") |
b92ac281 RW |
4784 | (synopsis "Generate changebars in LaTeX documents") |
4785 | (description | |
4786 | "Identify areas of text to be marked with changebars with the | |
4787 | @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The | |
36a4366d EF |
4788 | package uses @code{drivers} to place the bars; the available drivers can work |
4789 | with @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI | |
b92ac281 RW |
4790 | drivers, and VTeX and pdfTeX.") |
4791 | (license license:lppl))) | |
4792 | ||
fedd77c1 RW |
4793 | (define-public texlive-latex-cmap |
4794 | (package | |
4795 | (name "texlive-latex-cmap") | |
4796 | (version (number->string %texlive-revision)) | |
4797 | (source (origin | |
4798 | (method svn-fetch) | |
4799 | (uri (svn-reference | |
4800 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4801 | %texlive-tag "/Master/texmf-dist/" | |
4802 | "/tex/latex/cmap")) | |
4803 | (revision %texlive-revision))) | |
4804 | (file-name (string-append name "-" version "-checkout")) | |
4805 | (sha256 | |
4806 | (base32 | |
4807 | "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg")))) | |
4808 | (build-system trivial-build-system) | |
4809 | (arguments | |
4810 | `(#:modules ((guix build utils)) | |
4811 | #:builder | |
4812 | (begin | |
4813 | (use-modules (guix build utils)) | |
4814 | (let ((target (string-append (assoc-ref %outputs "out") | |
4815 | "/share/texmf-dist/tex/latex/cmap"))) | |
4816 | (mkdir-p target) | |
4817 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4818 | #t)))) | |
4819 | (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\ | |
4820 | Master/texmf-dist/tex/latex/cmap/") | |
4821 | (synopsis "CMap support for PDF files") | |
4822 | (description | |
4823 | "This package embeds CMap tables into PDF files to make search and | |
4824 | copy-and-paste functions work properly.") | |
4825 | (license license:lppl))) | |
4826 | ||
e003a5f0 RW |
4827 | (define-public texlive-latex-colortbl |
4828 | (package | |
4829 | (name "texlive-latex-colortbl") | |
4830 | (version (number->string %texlive-revision)) | |
4831 | (source (origin | |
4832 | (method svn-fetch) | |
4833 | (uri (texlive-ref "latex" "colortbl")) | |
4439c1de | 4834 | (file-name (string-append name "-" version "-checkout")) |
e003a5f0 RW |
4835 | (sha256 |
4836 | (base32 | |
4837 | "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8")))) | |
4838 | (build-system texlive-build-system) | |
4839 | (arguments '(#:tex-directory "latex/colortbl")) | |
b8d8806b | 4840 | (home-page "https://www.ctan.org/pkg/colortbl") |
e003a5f0 RW |
4841 | (synopsis "Add colour to LaTeX tables") |
4842 | (description | |
4843 | "This package allows rows, columns, and even individual cells in LaTeX | |
4844 | tables to be coloured.") | |
4845 | (license license:lppl))) | |
4846 | ||
36ce05ff RW |
4847 | (define-public texlive-latex-fancybox |
4848 | (package | |
4849 | (name "texlive-latex-fancybox") | |
4850 | (version (number->string %texlive-revision)) | |
4851 | (source (origin | |
4852 | (method svn-fetch) | |
4853 | (uri (svn-reference | |
4854 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4855 | %texlive-tag "/Master/texmf-dist/" | |
4856 | "/tex/latex/fancybox")) | |
4857 | (revision %texlive-revision))) | |
62ee46b9 | 4858 | (file-name (string-append name "-" version "-checkout")) |
36ce05ff RW |
4859 | (sha256 |
4860 | (base32 | |
4861 | "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w")))) | |
4862 | (build-system trivial-build-system) | |
4863 | (arguments | |
4864 | `(#:modules ((guix build utils)) | |
4865 | #:builder | |
4866 | (begin | |
4867 | (use-modules (guix build utils)) | |
4868 | (let ((target (string-append (assoc-ref %outputs "out") | |
4869 | "/share/texmf-dist/tex/latex/fancybox"))) | |
4870 | (mkdir-p target) | |
4871 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4872 | #t)))) | |
b8d8806b | 4873 | (home-page "https://www.ctan.org/pkg/fancybox") |
36ce05ff RW |
4874 | (synopsis "Variants of \\fbox and other games with boxes") |
4875 | (description | |
4876 | "This package provides variants of @code{\\fbox}: @code{\\shadowbox}, | |
4877 | @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for | |
4878 | using box macros and flexible verbatim macros. You can box mathematics, | |
4879 | floats, center, flushleft, and flushright, lists, and pages.") | |
4880 | (license license:lppl1.2+))) | |
4881 | ||
20282111 RW |
4882 | (define-public texlive-latex-fancyhdr |
4883 | (package | |
4884 | (name "texlive-latex-fancyhdr") | |
4885 | (version (number->string %texlive-revision)) | |
4886 | (source (origin | |
4887 | (method svn-fetch) | |
4888 | (uri (svn-reference | |
4889 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4890 | %texlive-tag "/Master/texmf-dist/" | |
4891 | "/tex/latex/fancyhdr")) | |
4892 | (revision %texlive-revision))) | |
e89d5cf4 | 4893 | (file-name (string-append name "-" version "-checkout")) |
20282111 RW |
4894 | (sha256 |
4895 | (base32 | |
d4d9a1ec | 4896 | "1xsnzx7vgdfh9zh2m7bjz6bgdpxsgb1kyc19p50vhs34x5nbgsnr")))) |
20282111 RW |
4897 | (build-system trivial-build-system) |
4898 | (arguments | |
4899 | `(#:modules ((guix build utils)) | |
4900 | #:builder | |
4901 | (begin | |
4902 | (use-modules (guix build utils)) | |
4903 | (let ((target (string-append (assoc-ref %outputs "out") | |
4904 | "/share/texmf-dist/tex/latex/fancyhdr"))) | |
4905 | (mkdir-p target) | |
4906 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4907 | #t)))) | |
b8d8806b | 4908 | (home-page "https://www.ctan.org/pkg/fancyhdr") |
20282111 RW |
4909 | (synopsis "Extensive control of page headers and footers in LaTeX2e") |
4910 | (description | |
4911 | "The package provides extensive facilities, both for constructing headers | |
4912 | and footers, and for controlling their use (for example, at times when LaTeX | |
4913 | would automatically change the heading style in use).") | |
4914 | (license license:lppl))) | |
4915 | ||
df2b9bb4 RW |
4916 | (define-public texlive-latex-float |
4917 | (package | |
4918 | (name "texlive-latex-float") | |
4919 | (version (number->string %texlive-revision)) | |
4920 | (source (origin | |
4921 | (method svn-fetch) | |
4922 | (uri (texlive-ref "latex" "float")) | |
4fd0a591 | 4923 | (file-name (string-append name "-" version "-checkout")) |
df2b9bb4 RW |
4924 | (sha256 |
4925 | (base32 | |
4926 | "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq")))) | |
4927 | (build-system texlive-build-system) | |
4928 | (arguments '(#:tex-directory "latex/float")) | |
b8d8806b | 4929 | (home-page "https://www.ctan.org/pkg/float") |
df2b9bb4 RW |
4930 | (synopsis "Improved interface for floating objects") |
4931 | (description | |
4932 | "This package improves the interface for defining floating objects such | |
4933 | as figures and tables. It introduces the boxed float, the ruled float and the | |
4934 | plaintop float. You can define your own floats and improve the behaviour of | |
4935 | the old ones. The package also provides the @code{H} float modifier option of | |
4936 | the obsolete @code{here} package. You can select this as automatic default | |
4937 | with @code{\\floatplacement{figure}{H}}.") | |
4938 | (license license:lppl))) | |
4939 | ||
3921bc7c RW |
4940 | (define-public texlive-latex-footmisc |
4941 | (package | |
4942 | (name "texlive-latex-footmisc") | |
4943 | (version (number->string %texlive-revision)) | |
4944 | (source (origin | |
4945 | (method svn-fetch) | |
4946 | (uri (texlive-ref "latex" "footmisc")) | |
dae1d9e4 | 4947 | (file-name (string-append name "-" version "-checkout")) |
3921bc7c RW |
4948 | (sha256 |
4949 | (base32 | |
4950 | "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs")))) | |
4951 | (build-system texlive-build-system) | |
4952 | (arguments '(#:tex-directory "latex/footmisc")) | |
b8d8806b | 4953 | (home-page "https://www.ctan.org/pkg/footmisc") |
3921bc7c RW |
4954 | (synopsis "Range of footnote options") |
4955 | (description | |
4956 | "This is a collection of ways to change the typesetting of footnotes. | |
4957 | The package provides means of changing the layout of the footnotes themselves, | |
4958 | a way to number footnotes per page, to make footnotes disappear in a | |
4959 | \"moving\" argument, and to deal with multiple references to footnotes from | |
4960 | the same place. The package also has a range of techniques for labelling | |
4961 | footnotes with symbols rather than numbers.") | |
4962 | (license license:lppl1.3+))) | |
4963 | ||
b2bc1daf RW |
4964 | (define-public texlive-latex-listings |
4965 | (package | |
4966 | (name "texlive-latex-listings") | |
4967 | (version (number->string %texlive-revision)) | |
4968 | (source (origin | |
4969 | (method svn-fetch) | |
4970 | (uri (texlive-ref "latex" "listings")) | |
aeb135e3 | 4971 | (file-name (string-append name "-" version "-checkout")) |
b2bc1daf RW |
4972 | (sha256 |
4973 | (base32 | |
4974 | "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf")))) | |
4975 | (build-system texlive-build-system) | |
4976 | (arguments | |
4977 | '(#:tex-directory "latex/listings" | |
4978 | #:build-targets '("listings.ins"))) | |
b8d8806b | 4979 | (home-page "https://www.ctan.org/pkg/listings") |
b2bc1daf RW |
4980 | (synopsis "Typeset source code listings using LaTeX") |
4981 | (description | |
4982 | "The package enables the user to typeset programs (programming code) | |
4983 | within LaTeX; the source code is read directly by TeX---no front-end processor | |
4984 | is needed. Keywords, comments and strings can be typeset using different | |
4985 | styles. Support for @code{hyperref} is provided.") | |
4986 | (license license:lppl1.3+))) | |
4987 | ||
02fd07b3 RW |
4988 | (define-public texlive-latex-jknapltx |
4989 | (package | |
4990 | (name "texlive-latex-jknapltx") | |
4991 | (version (number->string %texlive-revision)) | |
4992 | (source (origin | |
4993 | (method svn-fetch) | |
4994 | (uri (svn-reference | |
4995 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4996 | %texlive-tag "/Master/texmf-dist/" | |
4997 | "/tex/latex/jknapltx")) | |
4998 | (revision %texlive-revision))) | |
aa499191 | 4999 | (file-name (string-append name "-" version "-checkout")) |
02fd07b3 RW |
5000 | (sha256 |
5001 | (base32 | |
5002 | "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9")))) | |
5003 | (build-system trivial-build-system) | |
5004 | (arguments | |
5005 | `(#:modules ((guix build utils)) | |
5006 | #:builder | |
5007 | (begin | |
5008 | (use-modules (guix build utils)) | |
5009 | (let ((target (string-append (assoc-ref %outputs "out") | |
5010 | "/share/texmf-dist/tex/latex/jknapltx"))) | |
5011 | (mkdir-p target) | |
5012 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5013 | #t)))) | |
b8d8806b | 5014 | (home-page "https://www.ctan.org/pkg/jknappen") |
02fd07b3 RW |
5015 | (synopsis "Miscellaneous packages by Joerg Knappen") |
5016 | (description | |
5017 | "This package provides miscellaneous macros by Joerg Knappen, including: | |
5018 | represent counters in greek; Maxwell's non-commutative division; | |
5019 | @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are | |
5020 | @code{inputenc} definition files that allow verbatim input in the respective | |
5021 | ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths; | |
5022 | extra alignments for @code{\\parboxes}; swap Roman and Sans fonts; | |
5023 | transliterate semitic languages; patches to make (La)TeX formulae embeddable | |
5024 | in SGML; use maths minus in text as appropriate; simple Young tableaux.") | |
5025 | (license license:gpl2))) | |
5026 | ||
83c830d1 RW |
5027 | (define-public texlive-fonts-ec |
5028 | (package | |
5029 | (name "texlive-fonts-ec") | |
5030 | (version (number->string %texlive-revision)) | |
5031 | (source (origin | |
5032 | (method svn-fetch) | |
5033 | (uri (svn-reference | |
5034 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5035 | %texlive-tag "/Master/texmf-dist/" | |
5036 | "/fonts/source/jknappen/ec/")) | |
5037 | (revision %texlive-revision))) | |
ca816eb3 | 5038 | (file-name (string-append name "-" version "-checkout")) |
83c830d1 RW |
5039 | (sha256 |
5040 | (base32 | |
5041 | "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4")))) | |
5042 | (build-system gnu-build-system) | |
5043 | (arguments | |
5044 | `(#:modules ((guix build gnu-build-system) | |
5045 | (guix build utils) | |
5046 | (srfi srfi-1) | |
5047 | (srfi srfi-26)) | |
5048 | #:tests? #f ; no tests | |
5049 | #:phases | |
5050 | (modify-phases %standard-phases | |
5051 | (delete 'configure) | |
5052 | (replace 'build | |
5053 | (lambda* (#:key inputs #:allow-other-keys) | |
5054 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
5055 | ;; Tell mf where to find mf.base | |
5056 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
5057 | ;; Tell mf where to look for source files | |
5058 | (setenv "MFINPUTS" | |
5059 | (string-append (getcwd) ":" | |
5060 | mf "/share/texmf-dist/metafont/base:" | |
5061 | (assoc-ref inputs "texlive-fonts-cm") | |
5062 | "/share/texmf-dist/fonts/source/public/cm"))) | |
5063 | (mkdir "build") | |
c4fc86e4 MW |
5064 | (for-each (lambda (font) |
5065 | (format #t "building font ~a\n" font) | |
5066 | (invoke "mf" "-progname=mf" | |
5067 | "-output-directory=build" | |
5068 | (string-append "\\" | |
5069 | "mode:=ljfour; " | |
5070 | "mag:=1; " | |
5071 | "batchmode; " | |
5072 | "input " (basename font ".mf")))) | |
5073 | (find-files "." "[0-9]+\\.mf$")) | |
5074 | #t)) | |
83c830d1 RW |
5075 | (replace 'install |
5076 | (lambda* (#:key outputs #:allow-other-keys) | |
5077 | (let* ((out (assoc-ref outputs "out")) | |
5078 | (tfm (string-append | |
5079 | out "/share/texmf-dist/fonts/tfm/jknappen/ec")) | |
5080 | (mf (string-append | |
5081 | out "/share/texmf-dist/fonts/source/jknappen/ec"))) | |
5082 | (for-each (cut install-file <> tfm) | |
5083 | (find-files "build" "\\.*")) | |
5084 | (for-each (cut install-file <> mf) | |
5085 | (find-files "." "\\.mf")) | |
5086 | #t)))))) | |
5087 | (native-inputs | |
5088 | `(("texlive-bin" ,texlive-bin) | |
5089 | ("texlive-metafont-base" ,texlive-metafont-base) | |
5090 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
b8d8806b | 5091 | (home-page "https://www.ctan.org/pkg/ec") |
83c830d1 RW |
5092 | (synopsis "Computer modern fonts in T1 and TS1 encodings") |
5093 | (description | |
5094 | "The EC fonts are European Computer Modern Fonts, supporting the complete | |
5095 | LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland. | |
5096 | These fonts are intended to be stable with no changes being made to the tfm | |
5097 | files. The set also contains a Text Companion Symbol font, called @code{tc}, | |
5098 | featuring many useful characters needed in text typesetting, for example | |
5099 | oldstyle digits, currency symbols (including the newly created Euro symbol), | |
5100 | the permille sign, copyright, trade mark and servicemark as well as a copyleft | |
5101 | sign, and many others. Recent releases of LaTeX2e support the EC fonts. The | |
5102 | EC fonts supersede the preliminary version released as the DC fonts. The | |
5103 | fonts are available in (traced) Adobe Type 1 format, as part of the | |
5104 | @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1 | |
5105 | set, Latin Modern, is not actually a direct development of the EC set, and | |
5106 | differs from the EC in a number of particulars.") | |
5107 | (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\ | |
5108 | texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt")))) | |
5109 | ||
5e9bf5a2 RW |
5110 | (define-public texlive-fonts-adobe-times |
5111 | (package | |
5112 | (name "texlive-fonts-adobe-times") | |
5113 | (version (number->string %texlive-revision)) | |
5114 | (source (origin | |
5115 | (method svn-fetch) | |
5116 | (uri (svn-reference | |
5117 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5118 | %texlive-tag "/Master/texmf-dist/" | |
5119 | "/fonts/type1/urw/times/")) | |
5120 | (revision %texlive-revision))) | |
5121 | (file-name (string-append name "-" version "-checkout")) | |
5122 | (sha256 | |
5123 | (base32 | |
5124 | "15vzyr7favkv1mj00qxr03s89kw78nd066fh69by93272g8p5sgd")))) | |
5125 | (build-system trivial-build-system) | |
5126 | (arguments | |
5127 | `(#:modules ((guix build utils) | |
5128 | (ice-9 match)) | |
5129 | #:builder | |
5130 | (begin | |
5131 | (use-modules (guix build utils) | |
5132 | (ice-9 match)) | |
5133 | (let ((root (string-append (assoc-ref %outputs "out") | |
5134 | "/share/texmf-dist/")) | |
5135 | (pkgs '(("source" . "fonts/type1/urw/times") | |
5136 | ||
5137 | ("times-afm" . "fonts/afm/adobe/times") | |
5138 | ("times-tfm" . "fonts/tfm/adobe/times") | |
5139 | ("times-vf" . "fonts/vf/adobe/times") | |
5140 | ||
5141 | ("urw-afm" . "fonts/afm/urw/times") | |
5142 | ("urw35vf-tfm" . "fonts/tfm/urw35vf/times") | |
5143 | ("urw35vf-vf" . "fonts/vf/urw35vf/times") | |
5144 | ||
5145 | ("times-tex" . "tex/latex/times") | |
5146 | ("dvips" . "dvips/times") | |
5147 | ("fonts-map" . "fonts/map/dvips/times")))) | |
5148 | (for-each (match-lambda | |
5149 | ((pkg . dir) | |
5150 | (let ((target (string-append root dir))) | |
5151 | (mkdir-p target) | |
5152 | (copy-recursively (assoc-ref %build-inputs pkg) | |
5153 | target)))) | |
5154 | pkgs) | |
5155 | #t)))) | |
5156 | (native-inputs | |
5157 | `(("times-afm" | |
5158 | ,(origin | |
5159 | (method svn-fetch) | |
5160 | (uri (svn-reference | |
5161 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5162 | %texlive-tag "/Master/texmf-dist/" | |
5163 | "/fonts/afm/adobe/times")) | |
5164 | (revision %texlive-revision))) | |
5165 | (file-name (string-append name "-afm-" version "-checkout")) | |
5166 | (sha256 | |
5167 | (base32 | |
5168 | "1k7h6vihfc6ri2lq9ggnq2g4zq3qcgq1vd0hr486g9cqrdpys6cy")))) | |
5169 | ("times-tfm" | |
5170 | ,(origin | |
5171 | (method svn-fetch) | |
5172 | (uri (svn-reference | |
5173 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5174 | %texlive-tag "/Master/texmf-dist/" | |
5175 | "/fonts/tfm/adobe/times")) | |
5176 | (revision %texlive-revision))) | |
5177 | (file-name (string-append name "-tfm-" version "-checkout")) | |
5178 | (sha256 | |
5179 | (base32 | |
5180 | "1hbgkjnf5xyganbznwpwszvr3iyk4bzb0ys4hd8ybawp60paadrr")))) | |
5181 | ("times-vf" | |
5182 | ,(origin | |
5183 | (method svn-fetch) | |
5184 | (uri (svn-reference | |
5185 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5186 | %texlive-tag "/Master/texmf-dist/" | |
5187 | "/fonts/vf/adobe/times")) | |
5188 | (revision %texlive-revision))) | |
5189 | (file-name (string-append name "-vf-" version "-checkout")) | |
5190 | (sha256 | |
5191 | (base32 | |
5192 | "18rfspnwdw9r81dy18lb4w96d09b6c4g7y80azwylalkhwdf2lfp")))) | |
5193 | ("urw-afm" | |
5194 | ,(origin | |
5195 | (method svn-fetch) | |
5196 | (uri (svn-reference | |
5197 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5198 | %texlive-tag "/Master/texmf-dist/" | |
5199 | "/fonts/afm/urw/times")) | |
5200 | (revision %texlive-revision))) | |
5201 | (file-name (string-append name "-urw-afm-" version "-checkout")) | |
5202 | (sha256 | |
5203 | (base32 | |
5204 | "0g0xpsyn6634g0b4rpd420v7i4gkz3zr12vcy2b8csbcscjvwri5")))) | |
5205 | ("urw35vf-tfm" | |
5206 | ,(origin | |
5207 | (method svn-fetch) | |
5208 | (uri (svn-reference | |
5209 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5210 | %texlive-tag "/Master/texmf-dist/" | |
5211 | "/fonts/tfm/urw35vf/times")) | |
5212 | (revision %texlive-revision))) | |
5213 | (file-name (string-append name "-urw35vf-tfm-" version "-checkout")) | |
5214 | (sha256 | |
5215 | (base32 | |
5216 | "0a4idlvpaqd0ypqgy1xw0rpx8q23bvssg8xq757zzn3zikj0w7pr")))) | |
5217 | ("urw35vf-vf" | |
5218 | ,(origin | |
5219 | (method svn-fetch) | |
5220 | (uri (svn-reference | |
5221 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5222 | %texlive-tag "/Master/texmf-dist/" | |
5223 | "/fonts/vf/urw35vf/times")) | |
5224 | (revision %texlive-revision))) | |
5225 | (file-name (string-append name "-urw35vf-vf-" version "-checkout")) | |
5226 | (sha256 | |
5227 | (base32 | |
5228 | "05mppwxd4c5x0yw50gca726f0ylc1rk8jf0jjkrriixq6rnw03di")))) | |
5229 | ("times-tex" | |
5230 | ,(origin | |
5231 | (method svn-fetch) | |
5232 | (uri (svn-reference | |
5233 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5234 | %texlive-tag "/Master/texmf-dist/" | |
5235 | "/tex/latex/times")) | |
5236 | (revision %texlive-revision))) | |
5237 | (file-name (string-append name "-tex-" version "-checkout")) | |
5238 | (sha256 | |
5239 | (base32 | |
5240 | "1gmd0x7c3vkvfzgmrsp4866rcdbyimfk3bjr91zaadc41r1i8xrp")))) | |
5241 | ("dvips" | |
5242 | ,(origin | |
5243 | (method svn-fetch) | |
5244 | (uri (svn-reference | |
5245 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5246 | %texlive-tag "/Master/texmf-dist/" | |
5247 | "/dvips/times/")) | |
5248 | (revision %texlive-revision))) | |
5249 | (file-name (string-append name "-dvips-" version "-checkout")) | |
5250 | (sha256 | |
5251 | (base32 | |
5252 | "1fvqpgqi7bp2q76nf5kmlhsdijxw65arqfy3ax3djwih3yg12mp0")))) | |
5253 | ("fonts-map" | |
5254 | ,(origin | |
5255 | (method svn-fetch) | |
5256 | (uri (svn-reference | |
5257 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5258 | %texlive-tag "/Master/texmf-dist/" | |
5259 | "/fonts/map/dvips/times/")) | |
5260 | (revision %texlive-revision))) | |
5261 | (file-name (string-append name "-fonts-map-" version "-checkout")) | |
5262 | (sha256 | |
5263 | (base32 | |
5264 | "12f00gzs2zgllkm59qdhw2xxj7lvg3p256232f1l275z3pldfqqi")))))) | |
5265 | (home-page "https://ctan.org/pkg/urw-base35") | |
5266 | (synopsis "URW Base 35 font pack for LaTeX") | |
5267 | (description | |
5268 | "This package provides a drop-in replacements for the Times font from | |
5269 | Adobe's basic set.") | |
5270 | ;; No license version specified. | |
5271 | (license license:gpl3+))) | |
5272 | ||
f2d1f060 RW |
5273 | (define-public texlive-fonts-adobe-palatino |
5274 | (package | |
5275 | (name "texlive-fonts-adobe-palatino") | |
5276 | (version (number->string %texlive-revision)) | |
5277 | (source (origin | |
5278 | (method svn-fetch) | |
5279 | (uri (svn-reference | |
5280 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5281 | %texlive-tag "/Master/texmf-dist/" | |
5282 | "/fonts/type1/urw/palatino/")) | |
5283 | (revision %texlive-revision))) | |
5284 | (file-name (string-append name "-" version "-checkout")) | |
5285 | (sha256 | |
5286 | (base32 | |
5287 | "18dw5260c6fy7acxaqwrg3hw04kg63ijq4lkn56q5pa2g6nyylrp")))) | |
5288 | (build-system trivial-build-system) | |
5289 | (arguments | |
5290 | `(#:modules ((guix build utils) | |
5291 | (ice-9 match)) | |
5292 | #:builder | |
5293 | (begin | |
5294 | (use-modules (guix build utils) | |
5295 | (ice-9 match)) | |
5296 | (let ((root (string-append (assoc-ref %outputs "out") | |
5297 | "/share/texmf-dist/")) | |
5298 | (pkgs '(("source" . "fonts/type1/urw/palatino") | |
5299 | ||
5300 | ("palatino-afm" . "fonts/afm/adobe/palatino") | |
5301 | ("palatino-tfm" . "fonts/tfm/adobe/palatino") | |
5302 | ("palatino-vf" . "fonts/vf/adobe/palatino") | |
5303 | ||
5304 | ("urw-afm" . "fonts/afm/urw/palatino") | |
5305 | ("urw35vf-tfm" . "fonts/tfm/urw35vf/palatino") | |
5306 | ("urw35vf-vf" . "fonts/vf/urw35vf/palatino") | |
5307 | ||
5308 | ("palatino-tex" . "tex/latex/palatino") | |
5309 | ("dvips" . "dvips/palatino") | |
5310 | ("fonts-map" . "fonts/map/dvips/palatino")))) | |
5311 | (for-each (match-lambda | |
5312 | ((pkg . dir) | |
5313 | (let ((target (string-append root dir))) | |
5314 | (mkdir-p target) | |
5315 | (copy-recursively (assoc-ref %build-inputs pkg) | |
5316 | target)))) | |
5317 | pkgs) | |
5318 | #t)))) | |
5319 | (native-inputs | |
5320 | `(("palatino-afm" | |
5321 | ,(origin | |
5322 | (method svn-fetch) | |
5323 | (uri (svn-reference | |
5324 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5325 | %texlive-tag "/Master/texmf-dist/" | |
5326 | "/fonts/afm/adobe/palatino")) | |
5327 | (revision %texlive-revision))) | |
5328 | (file-name (string-append name "-afm-" version "-checkout")) | |
5329 | (sha256 | |
5330 | (base32 | |
5331 | "0pxizay730cx7rb9y5bqq9dn1zxx3arc33rmdsn7l29pc51flmmi")))) | |
5332 | ("palatino-tfm" | |
5333 | ,(origin | |
5334 | (method svn-fetch) | |
5335 | (uri (svn-reference | |
5336 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5337 | %texlive-tag "/Master/texmf-dist/" | |
5338 | "/fonts/tfm/adobe/palatino")) | |
5339 | (revision %texlive-revision))) | |
5340 | (file-name (string-append name "-tfm-" version "-checkout")) | |
5341 | (sha256 | |
5342 | (base32 | |
5343 | "1w1vm0sk9kpsy14yhyf1v1q3c6b97cgbba74g578bcwjlh810mg0")))) | |
5344 | ("palatino-vf" | |
5345 | ,(origin | |
5346 | (method svn-fetch) | |
5347 | (uri (svn-reference | |
5348 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5349 | %texlive-tag "/Master/texmf-dist/" | |
5350 | "/fonts/vf/adobe/palatino")) | |
5351 | (revision %texlive-revision))) | |
5352 | (file-name (string-append name "-vf-" version "-checkout")) | |
5353 | (sha256 | |
5354 | (base32 | |
5355 | "1maqfis8hpybcn9lmm8r2b1g56620lfpsncg0742c3kkjd6dh97h")))) | |
5356 | ("urw-afm" | |
5357 | ,(origin | |
5358 | (method svn-fetch) | |
5359 | (uri (svn-reference | |
5360 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5361 | %texlive-tag "/Master/texmf-dist/" | |
5362 | "/fonts/afm/urw/palatino")) | |
5363 | (revision %texlive-revision))) | |
5364 | (file-name (string-append name "-urw-afm-" version "-checkout")) | |
5365 | (sha256 | |
5366 | (base32 | |
5367 | "0gk0xwy1fs2si5kb1j3dzgm52c8sagv32gd9dmw88m7sgh5qkd87")))) | |
5368 | ("urw35vf-tfm" | |
5369 | ,(origin | |
5370 | (method svn-fetch) | |
5371 | (uri (svn-reference | |
5372 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5373 | %texlive-tag "/Master/texmf-dist/" | |
5374 | "/fonts/tfm/urw35vf/palatino")) | |
5375 | (revision %texlive-revision))) | |
5376 | (file-name (string-append name "-urw35vf-tfm-" version "-checkout")) | |
5377 | (sha256 | |
5378 | (base32 | |
5379 | "19aq3xwfg7vkf1qzjdxgcvcdqwpvpavq3l25y64xni72qx0kmppz")))) | |
5380 | ("urw35vf-vf" | |
5381 | ,(origin | |
5382 | (method svn-fetch) | |
5383 | (uri (svn-reference | |
5384 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5385 | %texlive-tag "/Master/texmf-dist/" | |
5386 | "/fonts/vf/urw35vf/palatino")) | |
5387 | (revision %texlive-revision))) | |
5388 | (file-name (string-append name "-urw35vf-vf-" version "-checkout")) | |
5389 | (sha256 | |
5390 | (base32 | |
5391 | "1lkn4p6zimrs0ah6mxsang4bicp8j7xzl016529a3f168an7mdmj")))) | |
5392 | ("palatino-tex" | |
5393 | ,(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/palatino")) | |
5399 | (revision %texlive-revision))) | |
5400 | (file-name (string-append name "-tex-" version "-checkout")) | |
5401 | (sha256 | |
5402 | (base32 | |
5403 | "0ng9w7i0p1nb51amla32jj86vx6p84m6qc7asam3g4x8w5jf7s27")))) | |
5404 | ("dvips" | |
5405 | ,(origin | |
5406 | (method svn-fetch) | |
5407 | (uri (svn-reference | |
5408 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5409 | %texlive-tag "/Master/texmf-dist/" | |
5410 | "/dvips/palatino/")) | |
5411 | (revision %texlive-revision))) | |
5412 | (file-name (string-append name "-dvips-" version "-checkout")) | |
5413 | (sha256 | |
5414 | (base32 | |
5415 | "1pdbkfmhx4kk3brh5lg6fyl9ad2kbjmkrhgcx84klnlhq01mfdhb")))) | |
5416 | ("fonts-map" | |
5417 | ,(origin | |
5418 | (method svn-fetch) | |
5419 | (uri (svn-reference | |
5420 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5421 | %texlive-tag "/Master/texmf-dist/" | |
5422 | "/fonts/map/dvips/palatino/")) | |
5423 | (revision %texlive-revision))) | |
5424 | (file-name (string-append name "-fonts-map-" version "-checkout")) | |
5425 | (sha256 | |
5426 | (base32 | |
5427 | "0rg13hyp652hp3gnrj5pbyb84zkqmyi1qnm8c6spcyaq8pm06l0d")))))) | |
5428 | (home-page "https://ctan.org/pkg/urw-base35") | |
5429 | (synopsis "URW Base 35 font pack for LaTeX") | |
5430 | (description | |
5431 | "This package provides a drop-in replacements for the Palatino font from | |
5432 | Adobe's basic set.") | |
5433 | ;; No license version specified. | |
5434 | (license license:gpl3+))) | |
5435 | ||
4628315b RW |
5436 | (define-public texlive-fonts-adobe-zapfding |
5437 | (package | |
5438 | (name "texlive-fonts-adobe-zapfding") | |
5439 | (version (number->string %texlive-revision)) | |
5440 | (source (origin | |
5441 | (method svn-fetch) | |
5442 | (uri (svn-reference | |
5443 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5444 | %texlive-tag "/Master/texmf-dist/" | |
5445 | "/fonts/type1/urw/zapfding/")) | |
5446 | (revision %texlive-revision))) | |
5447 | (file-name (string-append name "-" version "-checkout")) | |
5448 | (sha256 | |
5449 | (base32 | |
5450 | "1sp3jblg3khp0yj121blvhph6ib09919kyrsk5x2lg258yypqyis")))) | |
5451 | (build-system trivial-build-system) | |
5452 | (arguments | |
5453 | `(#:modules ((guix build utils) | |
5454 | (ice-9 match)) | |
5455 | #:builder | |
5456 | (begin | |
5457 | (use-modules (guix build utils) | |
5458 | (ice-9 match)) | |
5459 | (let ((root (string-append (assoc-ref %outputs "out") | |
5460 | "/share/texmf-dist/")) | |
5461 | (pkgs '(("source" . "fonts/type1/urw/zapfding") | |
5462 | ("zapf-afm" . "fonts/afm/adobe/zapfding") | |
5463 | ("zapf-tfm" . "fonts/tfm/adobe/zapfding") | |
5464 | ("urw-afm" . "fonts/afm/urw/zapfding") | |
5465 | ("urw35vf-tfm" . "fonts/tfm/urw35vf/zapfding") | |
5466 | ||
5467 | ("zapf-tex" . "tex/latex/zapfding") | |
5468 | ("dvips" . "dvips/zapfding") | |
5469 | ("fonts-map" . "fonts/map/dvips/zapfding")))) | |
5470 | (for-each (match-lambda | |
5471 | ((pkg . dir) | |
5472 | (let ((target (string-append root dir))) | |
5473 | (mkdir-p target) | |
5474 | (copy-recursively (assoc-ref %build-inputs pkg) | |
5475 | target)))) | |
5476 | pkgs) | |
5477 | #t)))) | |
5478 | (native-inputs | |
5479 | `(("zapf-afm" | |
5480 | ,(origin | |
5481 | (method svn-fetch) | |
5482 | (uri (svn-reference | |
5483 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5484 | %texlive-tag "/Master/texmf-dist/" | |
5485 | "/fonts/afm/adobe/zapfding")) | |
5486 | (revision %texlive-revision))) | |
5487 | (file-name (string-append name "-afm-" version "-checkout")) | |
5488 | (sha256 | |
5489 | (base32 | |
5490 | "0qvl4w1bfcpiakkd8rvkism46qnvzj9w7x4r8z9m0y7mspbkblyr")))) | |
5491 | ("zapf-tfm" | |
5492 | ,(origin | |
5493 | (method svn-fetch) | |
5494 | (uri (svn-reference | |
5495 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5496 | %texlive-tag "/Master/texmf-dist/" | |
5497 | "/fonts/tfm/adobe/zapfding")) | |
5498 | (revision %texlive-revision))) | |
5499 | (file-name (string-append name "-tfm-" version "-checkout")) | |
5500 | (sha256 | |
5501 | (base32 | |
5502 | "1i8mh9xsl8l4cgsg3nl4ha9q6m55j122riclaxsvkc5ka83432qm")))) | |
5503 | ("urw-afm" | |
5504 | ,(origin | |
5505 | (method svn-fetch) | |
5506 | (uri (svn-reference | |
5507 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5508 | %texlive-tag "/Master/texmf-dist/" | |
5509 | "/fonts/afm/urw/zapfding")) | |
5510 | (revision %texlive-revision))) | |
5511 | (file-name (string-append name "-urw-afm-" version "-checkout")) | |
5512 | (sha256 | |
5513 | (base32 | |
5514 | "0m4qndqh7ji723ff82c5c1q8ziqvblbaip7vx05vnl15fqbsnfx1")))) | |
5515 | ("urw35vf-tfm" | |
5516 | ,(origin | |
5517 | (method svn-fetch) | |
5518 | (uri (svn-reference | |
5519 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5520 | %texlive-tag "/Master/texmf-dist/" | |
5521 | "/fonts/tfm/urw35vf/zapfding")) | |
5522 | (revision %texlive-revision))) | |
5523 | (file-name (string-append name "-urw35vf-tfm-" version "-checkout")) | |
5524 | (sha256 | |
5525 | (base32 | |
5526 | "167g2x6mpjfqh0w1fhjbw14qcx6ridrj2zm1bd8bi0l2d7phj28m")))) | |
5527 | ("zapf-tex" | |
5528 | ,(origin | |
5529 | (method svn-fetch) | |
5530 | (uri (svn-reference | |
5531 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5532 | %texlive-tag "/Master/texmf-dist/" | |
5533 | "/tex/latex/zapfding")) | |
5534 | (revision %texlive-revision))) | |
5535 | (file-name (string-append name "-tex-" version "-checkout")) | |
5536 | (sha256 | |
5537 | (base32 | |
5538 | "0hp7i8f6nbrg7irrwc8fd7n1hrzjysa84d6iyivwlc65v9p7lmd0")))) | |
5539 | ("dvips" | |
5540 | ,(origin | |
5541 | (method svn-fetch) | |
5542 | (uri (svn-reference | |
5543 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5544 | %texlive-tag "/Master/texmf-dist/" | |
5545 | "/dvips/zapfding/")) | |
5546 | (revision %texlive-revision))) | |
5547 | (file-name (string-append name "-dvips-" version "-checkout")) | |
5548 | (sha256 | |
5549 | (base32 | |
5550 | "1f18sc4qwxykd786zhn6szcrycqvpvfhlcim71aamxmwghakd7fa")))) | |
5551 | ("fonts-map" | |
5552 | ,(origin | |
5553 | (method svn-fetch) | |
5554 | (uri (svn-reference | |
5555 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5556 | %texlive-tag "/Master/texmf-dist/" | |
5557 | "/fonts/map/dvips/zapfding/")) | |
5558 | (revision %texlive-revision))) | |
5559 | (file-name (string-append name "-fonts-map-" version "-checkout")) | |
5560 | (sha256 | |
5561 | (base32 | |
5562 | "17kwxmdrgz2fb072hx57a3pidcrhbgayphx11zyld2hv9149pkyl")))))) | |
5563 | (home-page "https://ctan.org/pkg/urw-base35") | |
5564 | (synopsis "URW Base 35 font pack for LaTeX") | |
5565 | (description | |
5566 | "This package provides a drop-in replacements for the Zapfding font from | |
5567 | Adobe's basic set.") | |
5568 | ;; No license version specified. | |
5569 | (license license:gpl3+))) | |
5570 | ||
f45a5520 RW |
5571 | (define-public texlive-fonts-rsfs |
5572 | (package | |
5573 | (name "texlive-fonts-rsfs") | |
5574 | (version (number->string %texlive-revision)) | |
5575 | (source (origin | |
5576 | (method svn-fetch) | |
5577 | (uri (svn-reference | |
5578 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5579 | %texlive-tag "/Master/texmf-dist/" | |
5580 | "/fonts/source/public/rsfs/")) | |
5581 | (revision %texlive-revision))) | |
e26de9c9 | 5582 | (file-name (string-append name "-" version "-checkout")) |
f45a5520 RW |
5583 | (sha256 |
5584 | (base32 | |
5585 | "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h")))) | |
5586 | (build-system gnu-build-system) | |
5587 | (arguments | |
5588 | `(#:modules ((guix build gnu-build-system) | |
5589 | (guix build utils) | |
5590 | (srfi srfi-1) | |
5591 | (srfi srfi-26)) | |
5592 | #:tests? #f ; no tests | |
5593 | #:phases | |
5594 | (modify-phases %standard-phases | |
5595 | (delete 'configure) | |
5596 | (replace 'build | |
5597 | (lambda* (#:key inputs #:allow-other-keys) | |
5598 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
5599 | ;; Tell mf where to find mf.base | |
5600 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
5601 | ;; Tell mf where to look for source files | |
5602 | (setenv "MFINPUTS" | |
5603 | (string-append (getcwd) ":" | |
5604 | mf "/share/texmf-dist/metafont/base:" | |
5605 | (assoc-ref inputs "texlive-fonts-cm") | |
5606 | "/share/texmf-dist/fonts/source/public/cm"))) | |
5607 | (mkdir "build") | |
d8ac82c2 MW |
5608 | (for-each (lambda (font) |
5609 | (format #t "building font ~a\n" font) | |
5610 | (invoke "mf" "-progname=mf" | |
5611 | "-output-directory=build" | |
5612 | (string-append "\\" | |
5613 | "mode:=ljfour; " | |
5614 | "mag:=1; " | |
5615 | "batchmode; " | |
5616 | "input " (basename font ".mf")))) | |
5617 | (find-files "." "[0-9]+\\.mf$")) | |
5618 | #t)) | |
f45a5520 RW |
5619 | (replace 'install |
5620 | (lambda* (#:key outputs #:allow-other-keys) | |
5621 | (let* ((out (assoc-ref outputs "out")) | |
5622 | (tfm (string-append | |
5623 | out "/share/texmf-dist/fonts/tfm/public/rsfs")) | |
5624 | (mf (string-append | |
5625 | out "/share/texmf-dist/fonts/source/public/rsfs"))) | |
5626 | (for-each (cut install-file <> tfm) | |
5627 | (find-files "build" "\\.*")) | |
5628 | (for-each (cut install-file <> mf) | |
5629 | (find-files "." "\\.mf")) | |
5630 | #t)))))) | |
5631 | (native-inputs | |
5632 | `(("texlive-bin" ,texlive-bin) | |
5633 | ("texlive-metafont-base" ,texlive-metafont-base) | |
5634 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
b8d8806b | 5635 | (home-page "https://www.ctan.org/pkg/rsfs") |
f45a5520 RW |
5636 | (synopsis "Ralph Smith's Formal Script font") |
5637 | (description | |
5638 | "The fonts provide uppercase formal script letters for use as symbols in | |
5639 | scientific and mathematical typesetting (in contrast to the informal script | |
5640 | fonts such as that used for the calligraphic symbols in the TeX maths symbol | |
5641 | font). The fonts are provided as Metafont source, and as derived Adobe Type 1 | |
5642 | format. LaTeX support, for using these fonts in mathematics, is available via | |
5643 | one of the packages @code{calrsfs} and @code{mathrsfs}.") | |
5644 | (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README")))) | |
5645 | ||
1562763c RW |
5646 | (define-public texlive-latex-eso-pic |
5647 | (package | |
5648 | (name "texlive-latex-eso-pic") | |
5649 | (version (number->string %texlive-revision)) | |
5650 | (source (origin | |
5651 | (method svn-fetch) | |
5652 | (uri (texlive-ref "latex" "eso-pic")) | |
2678a63b | 5653 | (file-name (string-append name "-" version "-checkout")) |
1562763c RW |
5654 | (sha256 |
5655 | (base32 | |
5656 | "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z")))) | |
5657 | (build-system texlive-build-system) | |
5658 | (arguments '(#:tex-directory "latex/eso-pic")) | |
b8d8806b | 5659 | (home-page "https://www.ctan.org/pkg/eso-pic") |
1562763c RW |
5660 | (synopsis "Add picture commands (or backgrounds) to every page") |
5661 | (description | |
5662 | "The package adds one or more user commands to LaTeX's @code{shipout} | |
5663 | routine, which may be used to place the output at fixed positions. The | |
5664 | @code{grid} option may be used to find the correct places.") | |
5665 | (license license:lppl1.3+))) | |
5666 | ||
ae3779d5 RW |
5667 | (define-public texlive-latex-eepic |
5668 | (package | |
5669 | (name "texlive-latex-eepic") | |
5670 | (version (number->string %texlive-revision)) | |
5671 | (source (origin | |
5672 | (method svn-fetch) | |
5673 | (uri (svn-reference | |
5674 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5675 | %texlive-tag "/Master/texmf-dist/" | |
5676 | "/tex/latex/eepic")) | |
5677 | (revision %texlive-revision))) | |
84d63643 | 5678 | (file-name (string-append name "-" version "-checkout")) |
ae3779d5 RW |
5679 | (sha256 |
5680 | (base32 | |
5681 | "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw")))) | |
5682 | (build-system trivial-build-system) | |
5683 | (arguments | |
5684 | `(#:modules ((guix build utils)) | |
5685 | #:builder | |
5686 | (begin | |
5687 | (use-modules (guix build utils)) | |
5688 | (let ((target (string-append (assoc-ref %outputs "out") | |
5689 | "/share/texmf-dist/tex/latex/eepic"))) | |
5690 | (mkdir-p target) | |
5691 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5692 | #t)))) | |
b8d8806b | 5693 | (home-page "https://www.ctan.org/pkg/eepic") |
ae3779d5 RW |
5694 | (synopsis "Extensions to epic and the LaTeX drawing tools") |
5695 | (description | |
5696 | "Extensions to @code{epic} and the LaTeX picture drawing environment, | |
5697 | include the drawing of lines at any slope, the drawing of circles in any | |
5698 | radii, and the drawing of dotted and dashed lines much faster with much less | |
5699 | TeX memory, and providing several new commands for drawing ellipses, arcs, | |
5700 | splines, and filled circles and ellipses. The package uses @code{tpic} | |
5701 | @code{\\special} commands.") | |
5702 | (license license:public-domain))) | |
5703 | ||
245f1f31 RW |
5704 | (define-public texlive-latex-enumitem |
5705 | (package | |
5706 | (name "texlive-latex-enumitem") | |
5707 | (version (number->string %texlive-revision)) | |
5708 | (source (origin | |
5709 | (method svn-fetch) | |
5710 | (uri (svn-reference | |
5711 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5712 | %texlive-tag "/Master/texmf-dist/" | |
5713 | "/tex/latex/enumitem")) | |
5714 | (revision %texlive-revision))) | |
5715 | (file-name (string-append name "-" version "-checkout")) | |
5716 | (sha256 | |
5717 | (base32 | |
5718 | "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r")))) | |
5719 | (build-system trivial-build-system) | |
5720 | (arguments | |
5721 | `(#:modules ((guix build utils)) | |
5722 | #:builder | |
5723 | (begin | |
5724 | (use-modules (guix build utils)) | |
5725 | (let ((target (string-append (assoc-ref %outputs "out") | |
5726 | "/share/texmf-dist/tex/latex/enumitem"))) | |
5727 | (mkdir-p target) | |
5728 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5729 | #t)))) | |
b8d8806b | 5730 | (home-page "https://www.ctan.org/pkg/enumitem") |
245f1f31 RW |
5731 | (synopsis "Customize basic list environments") |
5732 | (description | |
5733 | "This package is intended to ease customizing the three basic list | |
5734 | environments: @code{enumerate}, @code{itemize} and @code{description}. It | |
5735 | extends their syntax to allow an optional argument where a set of parameters | |
5736 | in the form @code{key=value} are available, for example: | |
5737 | @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.") | |
5738 | (license license:lppl1.3+))) | |
5739 | ||
ecffeeb5 RW |
5740 | (define-public texlive-latex-multirow |
5741 | (package | |
5742 | (name "texlive-latex-multirow") | |
5743 | (version (number->string %texlive-revision)) | |
5744 | (source (origin | |
5745 | (method svn-fetch) | |
5746 | (uri (texlive-ref "latex" "multirow")) | |
6a919804 | 5747 | (file-name (string-append name "-" version "-checkout")) |
ecffeeb5 RW |
5748 | (sha256 |
5749 | (base32 | |
5750 | "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0")))) | |
5751 | (build-system texlive-build-system) | |
5752 | (arguments '(#:tex-directory "latex/multirow")) | |
b8d8806b | 5753 | (home-page "https://www.ctan.org/pkg/multirow") |
ecffeeb5 RW |
5754 | (synopsis "Create tabular cells spanning multiple rows") |
5755 | (description | |
5756 | "The package provides tools for creating tabular cells spanning multiple | |
5757 | rows. It has a lot of flexibility, including an option for specifying an | |
5758 | entry at the \"natural\" width of its text.") | |
5759 | (license license:lppl1.3+))) | |
5760 | ||
da38b235 RW |
5761 | (define-public texlive-latex-overpic |
5762 | (package | |
5763 | (name "texlive-latex-overpic") | |
5764 | (version (number->string %texlive-revision)) | |
5765 | (source (origin | |
5766 | (method svn-fetch) | |
5767 | (uri (svn-reference | |
5768 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5769 | %texlive-tag "/Master/texmf-dist/" | |
5770 | "/tex/latex/overpic")) | |
5771 | (revision %texlive-revision))) | |
b2aef721 | 5772 | (file-name (string-append name "-" version "-checkout")) |
da38b235 RW |
5773 | (sha256 |
5774 | (base32 | |
d4d9a1ec | 5775 | "1rpx4ibjncj5416rg19v0xjbj3z9avhfdfn2gzp8r8sz9vz25c6g")))) |
da38b235 RW |
5776 | (build-system trivial-build-system) |
5777 | (arguments | |
5778 | `(#:modules ((guix build utils)) | |
5779 | #:builder | |
5780 | (begin | |
5781 | (use-modules (guix build utils)) | |
5782 | (let ((target (string-append (assoc-ref %outputs "out") | |
5783 | "/share/texmf-dist/tex/latex/overpic"))) | |
5784 | (mkdir-p target) | |
5785 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5786 | #t)))) | |
b8d8806b | 5787 | (home-page "https://www.ctan.org/pkg/overpic") |
da38b235 RW |
5788 | (synopsis "Combine LaTeX commands over included graphics") |
5789 | (description | |
5790 | "The @code{overpic} environment is a cross between the LaTeX | |
5791 | @code{picture} environment and the @code{\\includegraphics} command of | |
5792 | @code{graphicx}. The resulting picture environment has the same dimensions as | |
5793 | the included graphic. LaTeX commands can be placed on the graphic at defined | |
5794 | positions; a grid for orientation is available.") | |
5795 | (license license:lppl1.0+))) | |
5796 | ||
e0d307d1 RW |
5797 | (define-public texlive-latex-parskip |
5798 | (package | |
5799 | (name "texlive-latex-parskip") | |
5800 | (version (number->string %texlive-revision)) | |
5801 | (source (origin | |
5802 | (method svn-fetch) | |
5803 | (uri (svn-reference | |
5804 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5805 | %texlive-tag "/Master/texmf-dist/" | |
5806 | "/tex/latex/parskip")) | |
5807 | (revision %texlive-revision))) | |
5808 | (file-name (string-append name "-" version "-checkout")) | |
5809 | (sha256 | |
5810 | (base32 | |
5811 | "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m")))) | |
5812 | (build-system trivial-build-system) | |
5813 | (arguments | |
5814 | `(#:modules ((guix build utils)) | |
5815 | #:builder | |
5816 | (begin | |
5817 | (use-modules (guix build utils)) | |
5818 | (let ((target (string-append (assoc-ref %outputs "out") | |
5819 | "/share/texmf-dist/tex/latex/parskip"))) | |
5820 | (mkdir-p target) | |
5821 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5822 | #t)))) | |
b8d8806b | 5823 | (home-page "https://www.ctan.org/pkg/parskip") |
e0d307d1 RW |
5824 | (synopsis "Layout with zero \\parindent, non-zero \\parskip") |
5825 | (description | |
5826 | "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout | |
5827 | that is untidy; this package (though it is no substitute for a properly | |
5828 | designed class) helps alleviate this untidiness.") | |
5829 | (license license:lppl))) | |
5830 | ||
adc02c70 RW |
5831 | (define-public texlive-latex-pdfpages |
5832 | (package | |
5833 | (name "texlive-latex-pdfpages") | |
5834 | (version (number->string %texlive-revision)) | |
5835 | (source (origin | |
5836 | (method svn-fetch) | |
5837 | (uri (texlive-ref "latex" "pdfpages")) | |
7372ce18 | 5838 | (file-name (string-append name "-" version "-checkout")) |
adc02c70 RW |
5839 | (sha256 |
5840 | (base32 | |
d4d9a1ec | 5841 | "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd")))) |
adc02c70 RW |
5842 | (build-system texlive-build-system) |
5843 | (arguments '(#:tex-directory "latex/pdfpages")) | |
b8d8806b | 5844 | (home-page "https://www.ctan.org/pkg/pdfpages") |
adc02c70 RW |
5845 | (synopsis "Include PDF documents in LaTeX") |
5846 | (description | |
5847 | "This package simplifies the inclusion of external multi-page PDF | |
5848 | documents in LaTeX documents. Pages may be freely selected and it is possible | |
5849 | to put several logical pages onto each sheet of paper. Furthermore a lot of | |
5850 | hypertext features like hyperlinks and article threads are provided. The | |
5851 | package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to | |
5852 | use this package to insert PostScript files, in addition to PDF files.") | |
5853 | (license license:lppl1.3+))) | |
5854 | ||
d8fef6ea RW |
5855 | (define-public texlive-fonts-stmaryrd |
5856 | (package | |
5857 | (name "texlive-fonts-stmaryrd") | |
5858 | (version (number->string %texlive-revision)) | |
5859 | (source (origin | |
5860 | (method svn-fetch) | |
5861 | (uri (texlive-ref "fonts" "stmaryrd")) | |
19835372 | 5862 | (file-name (string-append name "-" version "-checkout")) |
d8fef6ea RW |
5863 | (sha256 |
5864 | (base32 | |
5865 | "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6")))) | |
5866 | (build-system texlive-build-system) | |
5867 | (arguments | |
5868 | '(#:tex-directory "latex/stmaryrd" | |
5869 | #:phases | |
5870 | (modify-phases %standard-phases | |
5871 | (add-after 'configure 'patch-ins | |
5872 | (lambda _ | |
5873 | (substitute* "stmaryrd.ins" | |
5874 | (("^%% LaTeX2e.*") "\\input docstrip\n") | |
5875 | (("fontdef\\}\\}" line) | |
5876 | (string-append line "\n\\endbatchfile"))) | |
5877 | #t))))) | |
b8d8806b | 5878 | (home-page "https://www.ctan.org/pkg/stmaryrd") |
d8fef6ea RW |
5879 | (synopsis "St Mary Road symbols for theoretical computer science") |
5880 | (description | |
5881 | "The fonts were originally distributed as Metafont sources only, but | |
5882 | Adobe Type 1 versions are also now available. Macro support is provided for | |
5883 | use under LaTeX; the package supports the @code{only} option (provided by the | |
5884 | @code{somedefs} package) to restrict what is loaded, for those who don't need | |
5885 | the whole font.") | |
5886 | (license license:lppl))) | |
5887 | ||
2db3a034 RW |
5888 | (define-public texlive-latex-subfigure |
5889 | (package | |
5890 | (name "texlive-latex-subfigure") | |
5891 | (version (number->string %texlive-revision)) | |
5892 | (source (origin | |
5893 | (method svn-fetch) | |
5894 | (uri (texlive-ref "latex" "subfigure")) | |
e1834df6 | 5895 | (file-name (string-append name "-" version "-checkout")) |
2db3a034 RW |
5896 | (sha256 |
5897 | (base32 | |
5898 | "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb")))) | |
5899 | (build-system texlive-build-system) | |
5900 | (arguments '(#:tex-directory "latex/subfigure")) | |
b8d8806b | 5901 | (home-page "https://www.ctan.org/pkg/subfigure") |
2db3a034 RW |
5902 | (synopsis "Figures divided into subfigures") |
5903 | (description | |
5904 | "This (deprecated) package provides support for the manipulation and | |
5905 | reference of small or \"sub\" figures and tables within a single figure or | |
5906 | table environment. It is convenient to use this package when your subfigures | |
5907 | are to be separately captioned, referenced, or are to be included in the | |
5908 | List-of-Figures. A new @code{\\subfigure} command is introduced which can be | |
5909 | used inside a figure environment for each subfigure. An optional first | |
5910 | argument is used as the caption for that subfigure. The package is now | |
5911 | considered obsolete: it was superseded by @code{subfig}, but users may find | |
5912 | the more recent @code{subcaption} package more satisfactory.") | |
5913 | (license license:lppl))) | |
5914 | ||
c73d0e9d RW |
5915 | (define-public texlive-latex-tabulary |
5916 | (package | |
5917 | (name "texlive-latex-tabulary") | |
5918 | (version (number->string %texlive-revision)) | |
5919 | (source (origin | |
5920 | (method svn-fetch) | |
5921 | (uri (texlive-ref "latex" "tabulary")) | |
5922 | (file-name (string-append name "-" version "-checkout")) | |
5923 | (sha256 | |
5924 | (base32 | |
5925 | "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n")))) | |
5926 | (build-system texlive-build-system) | |
5927 | (arguments '(#:tex-directory "latex/tabulary")) | |
b8d8806b | 5928 | (home-page "https://www.ctan.org/pkg/tabulary") |
c73d0e9d RW |
5929 | (synopsis "Tabular with variable width columns balanced") |
5930 | (description | |
5931 | "The package defines a @code{tabular*}-like environment, @code{tabulary}, | |
5932 | taking a \"total width\" argument as well as the column specifications. The | |
5933 | environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for | |
5934 | variable width columns (@code{\\raggedright}, @code{\\centering}, | |
5935 | @code{\\raggedleft}, and normally justified). In contrast to | |
5936 | @code{tabularx}'s @code{X} columns, the width of each column is weighted | |
5937 | according to the natural width of the widest cell in the column.") | |
5938 | (license license:lppl))) | |
5939 | ||
e3088297 RW |
5940 | (define-public texlive-latex-threeparttable |
5941 | (package | |
5942 | (name "texlive-latex-threeparttable") | |
5943 | (version (number->string %texlive-revision)) | |
5944 | (source (origin | |
5945 | (method svn-fetch) | |
5946 | (uri (svn-reference | |
5947 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5948 | %texlive-tag "/Master/texmf-dist/" | |
5949 | "/tex/latex/threeparttable")) | |
5950 | (revision %texlive-revision))) | |
d57e5d41 | 5951 | (file-name (string-append name "-" version "-checkout")) |
e3088297 RW |
5952 | (sha256 |
5953 | (base32 | |
5954 | "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq")))) | |
5955 | (build-system trivial-build-system) | |
5956 | (arguments | |
5957 | `(#:modules ((guix build utils)) | |
5958 | #:builder | |
5959 | (begin | |
5960 | (use-modules (guix build utils)) | |
5961 | (let ((target (string-append (assoc-ref %outputs "out") | |
5962 | "/share/texmf-dist/tex/latex/threeparttable"))) | |
5963 | (mkdir-p target) | |
5964 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5965 | #t)))) | |
b8d8806b | 5966 | (home-page "https://www.ctan.org/pkg/threeparttable") |
e3088297 RW |
5967 | (synopsis "Tables with captions and notes all the same width") |
5968 | (description | |
5969 | "This package facilitates tables with titles (captions) and notes. The | |
5970 | title and notes are given a width equal to the body of the table (a | |
5971 | @code{tabular} environment). By itself, a @code{threeparttable} does not | |
5972 | float, but you can put it in a @code{table} or a @code{table*} or some other | |
5973 | environment.") | |
5974 | (license (license:fsf-free "file://threeparttable.sty")))) | |
5975 | ||
1b10d494 RW |
5976 | (define-public texlive-fonts-txfonts |
5977 | (package | |
5978 | (name "texlive-fonts-txfonts") | |
5979 | (version (number->string %texlive-revision)) | |
5980 | (source (origin | |
5981 | (method svn-fetch) | |
5982 | (uri (svn-reference | |
5983 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5984 | %texlive-tag "/Master/texmf-dist/" | |
5985 | "/tex/latex/txfonts")) | |
5986 | (revision %texlive-revision))) | |
5987 | (file-name (string-append name "-" version "-checkout")) | |
5988 | (sha256 | |
5989 | (base32 | |
5990 | "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2")))) | |
5991 | (build-system trivial-build-system) | |
5992 | (arguments | |
5993 | `(#:modules ((guix build utils) | |
5994 | (ice-9 match)) | |
5995 | #:builder | |
5996 | (begin | |
5997 | (use-modules (guix build utils) | |
5998 | (ice-9 match)) | |
5999 | (let ((root (string-append (assoc-ref %outputs "out") | |
6000 | "/share/texmf-dist/")) | |
6001 | (pkgs '(("source" . "tex/latex/txfonts") | |
6002 | ("txfonts-vf" . "fonts/tfm/public/txfonts") | |
6003 | ("txfonts-afm" . "fonts/afm/public/txfonts") | |
6004 | ("txfonts-tfm" . "fonts/tfm/public/txfonts") | |
6005 | ("txfonts-type1" . "fonts/type1/public/txfonts") | |
6006 | ("txfonts-enc" . "fonts/enc/dvips/txfonts") | |
6007 | ("txfonts-map" . "fonts/map/dvips/txfonts")))) | |
6008 | (for-each (match-lambda | |
6009 | ((pkg . dir) | |
6010 | (let ((target (string-append root dir))) | |
6011 | (mkdir-p target) | |
6012 | (copy-recursively (assoc-ref %build-inputs pkg) | |
6013 | target)))) | |
6014 | pkgs) | |
6015 | #t)))) | |
6016 | (native-inputs | |
6017 | `(("txfonts-tfm" | |
6018 | ,(origin | |
6019 | (method svn-fetch) | |
6020 | (uri (svn-reference | |
6021 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6022 | %texlive-tag "/Master/texmf-dist/" | |
6023 | "/fonts/tfm/public/txfonts")) | |
6024 | (revision %texlive-revision))) | |
6025 | (file-name (string-append name "-tfm-" version "-checkout")) | |
6026 | (sha256 | |
6027 | (base32 | |
6028 | "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv")))) | |
6029 | ("txfonts-vf" | |
6030 | ,(origin | |
6031 | (method svn-fetch) | |
6032 | (uri (svn-reference | |
6033 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6034 | %texlive-tag "/Master/texmf-dist/" | |
6035 | "/fonts/vf/public/txfonts")) | |
6036 | (revision %texlive-revision))) | |
6037 | (file-name (string-append name "-vf-" version "-checkout")) | |
6038 | (sha256 | |
6039 | (base32 | |
6040 | "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci")))) | |
6041 | ("txfonts-afm" | |
6042 | ,(origin | |
6043 | (method svn-fetch) | |
6044 | (uri (svn-reference | |
6045 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6046 | %texlive-tag "/Master/texmf-dist/" | |
6047 | "/fonts/afm/public/txfonts")) | |
6048 | (revision %texlive-revision))) | |
6049 | (file-name (string-append name "-afm-" version "-checkout")) | |
6050 | (sha256 | |
6051 | (base32 | |
6052 | "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis")))) | |
6053 | ("txfonts-type1" | |
6054 | ,(origin | |
6055 | (method svn-fetch) | |
6056 | (uri (svn-reference | |
6057 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6058 | %texlive-tag "/Master/texmf-dist/" | |
6059 | "/fonts/type1/public/txfonts")) | |
6060 | (revision %texlive-revision))) | |
6061 | (file-name (string-append name "-type1-" version "-checkout")) | |
6062 | (sha256 | |
6063 | (base32 | |
6064 | "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3")))) | |
6065 | ("txfonts-map" | |
6066 | ,(origin | |
6067 | (method svn-fetch) | |
6068 | (uri (svn-reference | |
6069 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6070 | %texlive-tag "/Master/texmf-dist/" | |
6071 | "/fonts/map/dvips/txfonts")) | |
6072 | (revision %texlive-revision))) | |
6073 | (file-name (string-append name "-map-" version "-checkout")) | |
6074 | (sha256 | |
6075 | (base32 | |
6076 | "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj")))) | |
6077 | ("txfonts-enc" | |
6078 | ,(origin | |
6079 | (method svn-fetch) | |
6080 | (uri (svn-reference | |
6081 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6082 | %texlive-tag "/Master/texmf-dist/" | |
6083 | "/fonts/enc/dvips/txfonts")) | |
6084 | (revision %texlive-revision))) | |
6085 | (file-name (string-append name "-enc-" version "-checkout")) | |
6086 | (sha256 | |
6087 | (base32 | |
6088 | "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj")))))) | |
b8d8806b | 6089 | (home-page "https://www.ctan.org/pkg/threeparttable") |
1b10d494 RW |
6090 | (synopsis "Times-like fonts in support of mathematics") |
6091 | (description | |
6092 | "Txfonts supplies virtual text roman fonts using Adobe Times (or URW | |
6093 | NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1, | |
6094 | and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts | |
6095 | providing all the symbols of the Computer Modern and AMS fonts, including all | |
6096 | the Greek capital letters from CMR; and additional maths fonts of various | |
6097 | other symbols. | |
6098 | ||
6099 | The set is complemented by a sans-serif set of text fonts, based on | |
6100 | Helvetica/NimbusSanL, and a monospace set. | |
6101 | ||
6102 | All the fonts are in Type 1 format (AFM and PFB files), and are supported by | |
6103 | TeX metrics (VF and TFM files) and macros for use with LaTeX.") | |
6104 | ;; Any version of the GPL with font exception. | |
6105 | (license license:gpl3+))) | |
6106 | ||
f9e0fcb2 RW |
6107 | (define-public texlive-fonts-iwona |
6108 | (package | |
6109 | (name "texlive-fonts-iwona") | |
6110 | (version "0.995b") | |
6111 | (source (origin | |
6112 | (method url-fetch) | |
6113 | (uri (string-append "http://jmn.pl/pliki/Iwona-tex-" | |
6114 | (string-map (lambda (c) | |
6115 | (if (char=? c #\.) | |
6116 | #\_ c)) | |
6117 | version) | |
6118 | ".zip")) | |
6119 | (sha256 | |
6120 | (base32 | |
6121 | "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x")))) | |
6122 | (build-system trivial-build-system) | |
6123 | (arguments | |
6124 | `(#:modules ((guix build utils)) | |
6125 | #:builder | |
6126 | (begin | |
6127 | (use-modules (guix build utils)) | |
6128 | (let ((target (string-append (assoc-ref %outputs "out") | |
6129 | "/share/texmf-dist/")) | |
6130 | (unzip (string-append (assoc-ref %build-inputs "unzip") | |
6131 | "/bin/unzip"))) | |
e3cfef22 | 6132 | (invoke unzip (assoc-ref %build-inputs "source")) |
f9e0fcb2 | 6133 | (mkdir-p target) |
e3cfef22 MW |
6134 | (copy-recursively "iwona" target) |
6135 | #t)))) | |
f9e0fcb2 RW |
6136 | (native-inputs |
6137 | `(("unzip" ,unzip))) | |
6138 | (home-page "http://jmn.pl/en/kurier-i-iwona/") | |
6139 | (synopsis "Sans-serif typeface for TeX") | |
6140 | (description "Iwona is a two-element sans-serif typeface. It was created | |
6141 | as an alternative version of the Kurier typeface, which was designed in 1975 | |
6142 | for a diploma in typeface design at the Warsaw Academy of Fine Arts under the | |
6143 | supervision of Roman Tomaszewski. Kurier was designed for linotype | |
6144 | typesetting of newspapers and similar periodicals. The Iwona fonts are an | |
6145 | alternative version of the Kurier fonts. The difference lies in the absence | |
6146 | of ink traps which typify the Kurier font.") | |
6147 | (license license:gfl1.0))) | |
6148 | ||
acc620d6 RW |
6149 | (define-public texlive-latex-titlesec |
6150 | (package | |
6151 | (name "texlive-latex-titlesec") | |
6152 | (version (number->string %texlive-revision)) | |
6153 | (source (origin | |
6154 | (method svn-fetch) | |
6155 | (uri (svn-reference | |
6156 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6157 | %texlive-tag "/Master/texmf-dist/" | |
6158 | "/tex/latex/titlesec")) | |
6159 | (revision %texlive-revision))) | |
0475e35c | 6160 | (file-name (string-append name "-" version "-checkout")) |
acc620d6 RW |
6161 | (sha256 |
6162 | (base32 | |
6163 | "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21")))) | |
6164 | (build-system trivial-build-system) | |
6165 | (arguments | |
6166 | `(#:modules ((guix build utils)) | |
6167 | #:builder | |
6168 | (begin | |
6169 | (use-modules (guix build utils)) | |
6170 | (let ((target (string-append (assoc-ref %outputs "out") | |
6171 | "/share/texmf-dist/tex/latex/titlesec"))) | |
6172 | (mkdir-p target) | |
6173 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
6174 | #t)))) | |
b8d8806b | 6175 | (home-page "https://www.ctan.org/pkg/titlesec") |
acc620d6 RW |
6176 | (synopsis "Select alternative section titles") |
6177 | (description | |
6178 | "This package provides an interface to sectioning commands for selection | |
6179 | from various title styles, e.g. for marginal titles and to change the font of | |
6180 | all headings with a single command, also providing simple one-step page | |
6181 | styles. It also includes a package to change the page styles when there are | |
6182 | floats in a page. You may assign headers/footers to individual floats, too.") | |
6183 | (license license:lppl))) | |
6184 | ||
274e3d4f RW |
6185 | (define-public texlive-latex-type1cm |
6186 | (package | |
6187 | (name "texlive-latex-type1cm") | |
6188 | (version (number->string %texlive-revision)) | |
6189 | (source (origin | |
6190 | (method svn-fetch) | |
6191 | (uri (texlive-ref "latex" "type1cm")) | |
6192 | (file-name (string-append name "-" version "-checkout")) | |
6193 | (sha256 | |
6194 | (base32 | |
6195 | "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12")))) | |
6196 | (build-system texlive-build-system) | |
6197 | (arguments '(#:tex-directory "latex/type1cm")) | |
b8d8806b | 6198 | (home-page "https://www.ctan.org/pkg/type1cm") |
274e3d4f RW |
6199 | (synopsis "Arbitrary size font selection in LaTeX") |
6200 | (description | |
6201 | "LaTeX, by default, restricts the sizes at which you can use its default | |
6202 | computer modern fonts, to a fixed set of discrete sizes (effectively, a set | |
6203 | specified by Knuth). The @code{type1cm} package removes this restriction; | |
6204 | this is particularly useful when using scalable versions of the CM | |
6205 | fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch, | |
6206 | PCTeX, etc.). In fact, since modern distributions will automatically generate | |
6207 | any bitmap font you might need, @code{type1cm} has wider application than just | |
36a17f05 | 6208 | those using scalable versions of the fonts. Note that the LaTeX distribution |
274e3d4f RW |
6209 | now contains a package @code{fix-cm},f which performs the task of |
6210 | @code{type1cm}, as well as doing the same job for T1- and TS1-encoded | |
6211 | @code{ec} fonts.") | |
6212 | (license license:lppl))) | |
6213 | ||
406af0d6 RW |
6214 | (define-public texlive-latex-lh |
6215 | (package | |
6216 | (name "texlive-latex-lh") | |
6217 | (version (number->string %texlive-revision)) | |
6218 | (source (origin | |
6219 | (method svn-fetch) | |
6220 | (uri (texlive-ref "latex" "lh")) | |
de20fd6a | 6221 | (file-name (string-append name "-" version "-checkout")) |
406af0d6 RW |
6222 | (sha256 |
6223 | (base32 | |
6224 | "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5")))) | |
6225 | (build-system texlive-build-system) | |
6226 | (arguments '(#:tex-directory "latex/lh")) | |
b8d8806b | 6227 | (home-page "https://www.ctan.org/pkg/lh") |
406af0d6 RW |
6228 | (synopsis "Cyrillic fonts that support LaTeX standard encodings") |
6229 | (description | |
6230 | "The LH fonts address the problem of the wide variety of alphabets that | |
6231 | are written with Cyrillic-style characters. The fonts are the original basis | |
6232 | of the set of T2* and X2 encodings that are now used when LaTeX users need to | |
6233 | write in Cyrillic languages. Macro support in standard LaTeX encodings is | |
6234 | offered through the latex-cyrillic and t2 bundles, and the package itself | |
6235 | offers support for other (more traditional) encodings. The fonts, in the | |
6236 | standard T2* and X2 encodings are available in Adobe Type 1 format, in the | |
6237 | CM-Super family of fonts. The package also offers its own LaTeX support for | |
6238 | OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.") | |
6239 | (license license:lppl))) | |
6240 | ||
44436def RW |
6241 | (define-public texlive-metapost |
6242 | (package | |
6243 | (name "texlive-metapost") | |
6244 | (version (number->string %texlive-revision)) | |
6245 | (source (origin | |
6246 | (method svn-fetch) | |
6247 | (uri (svn-reference | |
6248 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6249 | %texlive-tag "/Master/texmf-dist/" | |
6250 | "/metapost")) | |
6251 | (revision %texlive-revision))) | |
b4bb2750 | 6252 | (file-name (string-append name "-" version "-checkout")) |
44436def RW |
6253 | (sha256 |
6254 | (base32 | |
d4d9a1ec | 6255 | "0sf18pc6chgy26p9bxxn44xcqhzjrfb53jxjr2y7l3jb6xllhblq")))) |
44436def RW |
6256 | (build-system trivial-build-system) |
6257 | (arguments | |
6258 | `(#:modules ((guix build utils)) | |
6259 | #:builder | |
6260 | (begin | |
6261 | (use-modules (guix build utils)) | |
6262 | (let ((target (string-append (assoc-ref %outputs "out") | |
6263 | "/share/texmf-dist/metapost"))) | |
6264 | (mkdir-p target) | |
6265 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
6266 | #t)))) | |
b8d8806b | 6267 | (home-page "https://www.ctan.org/pkg/metapost") |
44436def RW |
6268 | (synopsis "Create scalable illustrations") |
6269 | (description | |
6270 | "MetaPost uses a language based on that of Metafont to produce precise | |
6271 | technical illustrations. Its output is scalable PostScript or SVG, rather | |
6272 | than the bitmaps Metafont creates.") | |
6273 | (license license:lppl))) | |
6274 | ||
9ff7161a LC |
6275 | (define-public texlive-latex-acmart |
6276 | (package | |
6277 | (name "texlive-latex-acmart") | |
ff281acc | 6278 | (version "1.60") |
9ff7161a LC |
6279 | (source (origin |
6280 | (method svn-fetch) | |
6281 | (uri (texlive-ref "latex" "acmart")) | |
6282 | (sha256 | |
6283 | (base32 | |
ff281acc | 6284 | "0n62cs8dhcbn29y9ij1nnyigzr76yhk36kyahhqkkmvbafbys9s7")) |
9ff7161a LC |
6285 | (file-name (string-append name "-" version "-checkout")))) |
6286 | (build-system texlive-build-system) | |
6287 | (arguments '(#:tex-directory "latex/acmart")) | |
b8d8806b | 6288 | (home-page "https://www.ctan.org/pkg/acmart") |
9ff7161a LC |
6289 | (synopsis "Class for typesetting publications of ACM") |
6290 | (description | |
6291 | "This package provides a class for typesetting publications of the | |
6292 | Association for Computing Machinery (ACM).") | |
6293 | (license license:lppl1.3+))) | |
6294 | ||
3966ebbb RW |
6295 | (define-public texlive-latex-varwidth |
6296 | (package | |
6297 | (name "texlive-latex-varwidth") | |
6298 | (version (number->string %texlive-revision)) | |
6299 | (source (origin | |
6300 | (method svn-fetch) | |
6301 | (uri (svn-reference | |
6302 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6303 | %texlive-tag "/Master/texmf-dist/" | |
6304 | "/tex/latex/varwidth")) | |
6305 | (revision %texlive-revision))) | |
6306 | (file-name (string-append name "-" version "-checkout")) | |
6307 | (sha256 | |
6308 | (base32 | |
6309 | "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52")))) | |
6310 | (build-system trivial-build-system) | |
6311 | (arguments | |
6312 | `(#:modules ((guix build utils)) | |
6313 | #:builder | |
6314 | (begin | |
6315 | (use-modules (guix build utils)) | |
6316 | (let ((target (string-append (assoc-ref %outputs "out") | |
6317 | "/share/texmf-dist/tex/latex/varwidth"))) | |
6318 | (mkdir-p target) | |
6319 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
6320 | #t)))) | |
b8d8806b | 6321 | (home-page "https://www.ctan.org/pkg/varwidth") |
3966ebbb RW |
6322 | (synopsis "Variable-width minipage") |
6323 | (description | |
6324 | "The @code{varwidth} environment is superficially similar to | |
6325 | @code{minipage}, but the specified width is just a maximum value — the box may | |
6326 | get a narrower “natural” width.") | |
6327 | (license license:lppl))) | |
6328 | ||
cd2c77f4 RW |
6329 | (define-public texlive-latex-wasysym |
6330 | (package | |
6331 | (name "texlive-latex-wasysym") | |
6332 | (version (number->string %texlive-revision)) | |
6333 | (source (origin | |
6334 | (method svn-fetch) | |
6335 | (uri (texlive-ref "latex" "wasysym")) | |
2cc9c011 | 6336 | (file-name (string-append name "-" version "-checkout")) |
cd2c77f4 RW |
6337 | (sha256 |
6338 | (base32 | |
6339 | "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv")))) | |
6340 | (build-system texlive-build-system) | |
6341 | (arguments '(#:tex-directory "latex/wasysym")) | |
b8d8806b | 6342 | (home-page "https://www.ctan.org/pkg/wasysym") |
cd2c77f4 RW |
6343 | (synopsis "LaTeX support file to use the WASY2 fonts") |
6344 | (description | |
6345 | "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs | |
6346 | like male and female symbols and astronomical symbols, as well as the complete | |
6347 | lasy font set and other odds and ends. The wasysym package implements an easy | |
6348 | to use interface for these symbols.") | |
6349 | (license license:lppl))) | |
6350 | ||
63ed869b RW |
6351 | (define-public texlive-latex-wrapfig |
6352 | (package | |
6353 | (name "texlive-latex-wrapfig") | |
6354 | (version (number->string %texlive-revision)) | |
6355 | (source (origin | |
6356 | (method svn-fetch) | |
6357 | (uri (svn-reference | |
6358 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6359 | %texlive-tag "/Master/texmf-dist/" | |
6360 | "/tex/latex/wrapfig")) | |
6361 | (revision %texlive-revision))) | |
6362 | (file-name (string-append name "-" version "-checkout")) | |
6363 | (sha256 | |
6364 | (base32 | |
6365 | "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4")))) | |
6366 | (build-system trivial-build-system) | |
6367 | (arguments | |
6368 | `(#:modules ((guix build utils)) | |
6369 | #:builder | |
6370 | (begin | |
6371 | (use-modules (guix build utils)) | |
6372 | (let ((target (string-append (assoc-ref %outputs "out") | |
6373 | "/share/texmf-dist/tex/latex/wrapfig"))) | |
6374 | (mkdir-p target) | |
6375 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
6376 | #t)))) | |
b8d8806b | 6377 | (home-page "https://www.ctan.org/pkg/wrapfig") |
63ed869b RW |
6378 | (synopsis "Produces figures which text can flow around") |
6379 | (description | |
6380 | "This package allows figures or tables to have text wrapped around them. | |
6381 | It does not work in combination with list environments, but can be used in a | |
6382 | @code{parbox} or @code{minipage}, and in two-column format.") | |
6383 | (license license:lppl))) | |
6384 | ||
c178ffca RW |
6385 | (define-public texlive-latex-ucs |
6386 | (package | |
6387 | (name "texlive-latex-ucs") | |
6388 | (version (number->string %texlive-revision)) | |
6389 | (source (origin | |
6390 | (method svn-fetch) | |
6391 | (uri (svn-reference | |
6392 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6393 | %texlive-tag "/Master/texmf-dist/" | |
6394 | "/tex/latex/ucs")) | |
6395 | (revision %texlive-revision))) | |
6396 | (file-name (string-append name "-" version "-checkout")) | |
6397 | (sha256 | |
6398 | (base32 | |
6399 | "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37")))) | |
6400 | (build-system trivial-build-system) | |
6401 | (arguments | |
6402 | `(#:modules ((guix build utils)) | |
6403 | #:builder | |
6404 | (begin | |
6405 | (use-modules (guix build utils)) | |
6406 | (let ((target (string-append (assoc-ref %outputs "out") | |
6407 | "/share/texmf-dist/tex/latex/ucs"))) | |
6408 | (mkdir-p target) | |
6409 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
6410 | #t)))) | |
b8d8806b | 6411 | (home-page "https://www.ctan.org/pkg/ucs") |
c178ffca RW |
6412 | (synopsis "Extended UTF-8 input encoding support for LaTeX") |
6413 | (description | |
6414 | "The bundle provides the @code{ucs} package, and @code{utf8x.def}, | |
6415 | together with a large number of support files. The @code{utf8x.def} | |
6416 | definition file for use with @code{inputenc} covers a wider range of Unicode | |
6417 | characters than does @code{utf8.def} in the LaTeX distribution. The package | |
6418 | provides facilities for efficient use of its large sets of Unicode characters. | |
6419 | Glyph production may be controlled by various options, which permits use of | |
6420 | non-ASCII characters when coding mathematical formulae. Note that the bundle | |
6421 | previously had an alias “unicode”; that alias has now been withdrawn, and no | |
6422 | package of that name now exists.") | |
6423 | (license license:lppl1.3+))) | |
6424 | ||
86af0f2a RW |
6425 | (define-public texlive-latex-preview |
6426 | (package | |
6427 | (name "texlive-latex-preview") | |
6428 | (version (number->string %texlive-revision)) | |
6429 | (source (origin | |
6430 | (method svn-fetch) | |
6431 | (uri (texlive-ref "latex" "preview")) | |
6432 | (file-name (string-append name "-" version "-checkout")) | |
6433 | (sha256 | |
6434 | (base32 | |
d4d9a1ec | 6435 | "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6")))) |
86af0f2a RW |
6436 | (build-system texlive-build-system) |
6437 | (arguments | |
6438 | '(#:tex-directory "latex/preview" | |
6439 | #:phases | |
6440 | (modify-phases %standard-phases | |
6441 | (add-after 'unpack 'remove-generated-file | |
6442 | (lambda _ | |
6443 | (delete-file "preview.drv") | |
6444 | #t))))) | |
b8d8806b | 6445 | (home-page "https://www.ctan.org/pkg/preview") |
86af0f2a RW |
6446 | (synopsis "Extract bits of a LaTeX source for output") |
6447 | (description | |
6448 | "The main purpose of the preview package is the extraction of selected | |
6449 | elements from a LaTeX source, like formulas or graphics, into separate | |
6450 | pages of a DVI file. A flexible and convenient interface allows it to | |
6451 | specify what commands and constructs should be extracted. This works | |
6452 | with DVI files postprocessed by either Dvips and Ghostscript or | |
6453 | dvipng, but it also works when you are using PDFTeX for generating PDF | |
6454 | files.") | |
6455 | (license license:gpl3+))) | |
6456 | ||
87b4360e RW |
6457 | (define-public texlive-latex-acronym |
6458 | (package | |
6459 | (name "texlive-latex-acronym") | |
6460 | (version (number->string %texlive-revision)) | |
6461 | (source (origin | |
6462 | (method svn-fetch) | |
6463 | (uri (texlive-ref "latex" "acronym")) | |
6464 | (file-name (string-append name "-" version "-checkout")) | |
6465 | (sha256 | |
6466 | (base32 | |
6467 | "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp")))) | |
6468 | (build-system texlive-build-system) | |
6469 | (arguments '(#:tex-directory "latex/acronym")) | |
b8d8806b | 6470 | (home-page "https://www.ctan.org/pkg/acronym") |
87b4360e RW |
6471 | (synopsis "Expand acronyms at least once") |
6472 | (description | |
6473 | "This package ensures that all acronyms used in the text are spelled out | |
6474 | in full at least once. It also provides an environment to build a list of | |
6475 | acronyms used. The package is compatible with PDF bookmarks. The package | |
6476 | requires the suffix package, which in turn requires that it runs under | |
6477 | e-TeX.") | |
6478 | (license license:lppl1.3+))) | |
6479 | ||
fedb80ee RW |
6480 | (define-public texlive-generic-pdftex |
6481 | (package | |
6482 | (name "texlive-generic-pdftex") | |
6483 | (version (number->string %texlive-revision)) | |
6484 | (source (origin | |
6485 | (method svn-fetch) | |
6486 | (uri (svn-reference | |
6487 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6488 | %texlive-tag "/Master/texmf-dist/" | |
6489 | "/tex/generic/pdftex")) | |
6490 | (revision %texlive-revision))) | |
66e765a0 | 6491 | (file-name (string-append name "-" version "-checkout")) |
fedb80ee RW |
6492 | (sha256 |
6493 | (base32 | |
6494 | "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd")))) | |
6495 | (build-system trivial-build-system) | |
6496 | (arguments | |
6497 | `(#:modules ((guix build utils)) | |
6498 | #:builder | |
6499 | (begin | |
6500 | (use-modules (guix build utils)) | |
6501 | (let ((target (string-append (assoc-ref %outputs "out") | |
7002a45d PN |
6502 | "/share/texmf-dist/tex/generic/pdftex")) |
6503 | (target-map (string-append (assoc-ref %outputs "out") | |
6504 | "/share/texmf-dist/fonts/map/pdftex"))) | |
fedb80ee RW |
6505 | (mkdir-p target) |
6506 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7002a45d PN |
6507 | (mkdir-p target-map) |
6508 | (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map) | |
fedb80ee | 6509 | #t)))) |
7002a45d PN |
6510 | (native-inputs |
6511 | `(("pdftex-map" | |
6512 | ,(origin | |
6513 | (method svn-fetch) | |
6514 | (uri (svn-reference | |
6515 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
6516 | %texlive-tag "/Master/texmf-dist/" | |
6517 | "/fonts/map/pdftex")) | |
6518 | (revision %texlive-revision))) | |
6519 | (file-name (string-append name "-map-" version "-checkout")) | |
6520 | (sha256 | |
6521 | (base32 | |
d4d9a1ec | 6522 | "18jvcm0vwpg6wwzijvnb92xx78la45kkh71k6l44425krp2vnwm0")))))) |
b8d8806b | 6523 | (home-page "https://www.ctan.org/pkg/pdftex") |
fedb80ee RW |
6524 | (synopsis "TeX extension for direct creation of PDF") |
6525 | (description | |
6526 | "This package provides an extension of TeX which can be configured to | |
6527 | directly generate PDF documents instead of DVI.") | |
6528 | (license license:gpl2+))) | |
6529 | ||
8bcdc23f | 6530 | (define texlive-texmf |
0aa34e82 AE |
6531 | (package |
6532 | (name "texlive-texmf") | |
3e1ebaab | 6533 | (version "20180414") |
0aa34e82 AE |
6534 | (source texlive-texmf-src) |
6535 | (build-system gnu-build-system) | |
6536 | (inputs | |
6537 | `(("texlive-bin" ,texlive-bin) | |
6538 | ("lua" ,lua) | |
6539 | ("perl" ,perl) | |
6540 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) | |
6541 | ("ruby" ,ruby) | |
6542 | ("tcsh" ,tcsh))) | |
6543 | (arguments | |
6544 | `(#:modules ((guix build gnu-build-system) | |
6545 | (guix build utils) | |
6546 | (srfi srfi-26)) | |
a348af40 LC |
6547 | |
6548 | ;; This package takes 4 GiB, which we can't afford to distribute from | |
6549 | ;; our servers. | |
6550 | #:substitutable? #f | |
6551 | ||
0aa34e82 | 6552 | #:phases |
4a6635f3 AE |
6553 | (modify-phases (map (cut assq <> %standard-phases) |
6554 | '(set-paths unpack patch-source-shebangs)) | |
977403fe RW |
6555 | (add-after 'unpack 'unset-environment-variables |
6556 | (lambda _ | |
6557 | (unsetenv "TEXMF") | |
6558 | (unsetenv "TEXMFCNF") | |
6559 | #t)) | |
4a6635f3 AE |
6560 | (add-after 'patch-source-shebangs 'install |
6561 | (lambda* (#:key outputs #:allow-other-keys) | |
6562 | (let ((share (string-append (assoc-ref outputs "out") "/share"))) | |
6563 | (mkdir-p share) | |
286eedec | 6564 | (invoke "mv" "texmf-dist" share)))) |
4a6635f3 AE |
6565 | (add-after 'install 'texmf-config |
6566 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
6567 | (let* ((out (assoc-ref outputs "out")) | |
6568 | (share (string-append out "/share")) | |
6569 | (texmfroot (string-append share "/texmf-dist/web2c")) | |
6570 | (texmfcnf (string-append texmfroot "/texmf.cnf")) | |
6571 | (texlive-bin (assoc-ref inputs "texlive-bin")) | |
6572 | (texbin (string-append texlive-bin "/bin")) | |
6573 | (tlpkg (string-append texlive-bin "/share/tlpkg"))) | |
6574 | ;; Register SHARE as TEXMFROOT in texmf.cnf. | |
6575 | (substitute* texmfcnf | |
6576 | (("TEXMFROOT = \\$SELFAUTOPARENT") | |
2d634d9b FB |
6577 | (string-append "TEXMFROOT = " share)) |
6578 | (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local") | |
6579 | "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local") | |
6580 | (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL")) | |
4a6635f3 AE |
6581 | ;; Register paths in texmfcnf.lua, needed for context. |
6582 | (substitute* (string-append texmfroot "/texmfcnf.lua") | |
6583 | (("selfautodir:") out) | |
6584 | (("selfautoparent:") (string-append share "/"))) | |
6585 | ;; Set path to TeXLive Perl modules | |
6586 | (setenv "PERL5LIB" | |
6587 | (string-append (getenv "PERL5LIB") ":" tlpkg)) | |
6588 | ;; Configure the texmf-dist tree; inspired from | |
6589 | ;; http://slackbuilds.org/repository/13.37/office/texlive/ | |
6590 | (setenv "PATH" (string-append (getenv "PATH") ":" texbin)) | |
6591 | (setenv "TEXMFCNF" texmfroot) | |
286eedec MW |
6592 | (invoke "updmap-sys" "--nohash" "--syncwithtrees") |
6593 | (invoke "mktexlsr") | |
0371132c | 6594 | (invoke "fmtutil-sys" "--all"))))))) |
7a15a68f | 6595 | (properties `((max-silent-time . 9600))) ; don't time out while grafting |
0aa34e82 | 6596 | (synopsis "TeX Live, a package of the TeX typesetting system") |
eb0119ef AE |
6597 | (description |
6598 | "TeX Live provides a comprehensive TeX document production system. | |
6599 | It includes all the major TeX-related programs, macro packages, and fonts | |
6600 | that are free software, including support for many languages around the | |
0aa34e82 AE |
6601 | world. |
6602 | ||
6603 | This package contains the complete tree of texmf-dist data.") | |
132e14b4 EF |
6604 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
6605 | (home-page "https://www.tug.org/texlive/"))) | |
0aa34e82 AE |
6606 | |
6607 | (define-public texlive | |
6608 | (package | |
6609 | (name "texlive") | |
3e1ebaab | 6610 | (version "20180414") |
0aa34e82 AE |
6611 | (source #f) |
6612 | (build-system trivial-build-system) | |
6613 | (inputs `(("bash" ,bash) ; for wrap-program | |
6614 | ("texlive-bin" ,texlive-bin) | |
6615 | ("texlive-texmf" ,texlive-texmf))) | |
2d634d9b FB |
6616 | (native-search-paths |
6617 | (list (search-path-specification | |
6618 | (variable "TEXMFLOCAL") | |
6619 | (files '("share/texmf-local"))))) | |
0aa34e82 AE |
6620 | (arguments |
6621 | `(#:modules ((guix build utils)) | |
6622 | #:builder | |
6623 | ;; Build the union of texlive-bin and texlive-texmf, but take the | |
6624 | ;; conflicting subdirectory share/texmf-dist from texlive-texmf. | |
6625 | (begin | |
6626 | (use-modules (guix build utils)) | |
6627 | (let ((out (assoc-ref %outputs "out")) | |
6628 | (bin (assoc-ref %build-inputs "texlive-bin")) | |
6629 | (texmf (assoc-ref %build-inputs "texlive-texmf")) | |
6630 | (bash (assoc-ref %build-inputs "bash"))) | |
6631 | (mkdir out) | |
6632 | (with-directory-excursion out | |
6633 | (for-each | |
6634 | (lambda (name) | |
6635 | (symlink (string-append bin "/" name) name)) | |
6636 | '("include" "lib")) | |
6637 | (mkdir "bin") | |
6638 | (with-directory-excursion "bin" | |
6639 | (setenv "PATH" (string-append bash "/bin")) | |
6640 | (for-each | |
6641 | (lambda (name) | |
6642 | (symlink name (basename name)) | |
6643 | (wrap-program | |
6644 | (basename name) | |
6645 | `("TEXMFCNF" = | |
6646 | (,(string-append texmf "/share/texmf-dist/web2c"))))) | |
6647 | (find-files (string-append bin "/bin/") ""))) | |
6648 | (mkdir "share") | |
6649 | (with-directory-excursion "share" | |
6650 | (for-each | |
6651 | (lambda (name) | |
6652 | (symlink (string-append bin "/share/" name) name)) | |
6653 | '("info" "man" "tlpkg")) | |
6654 | (for-each | |
6655 | (lambda (name) | |
6656 | (symlink (string-append texmf "/share/" name) name)) | |
e3cfef22 MW |
6657 | '("texmf-dist" "texmf-var")))) |
6658 | #t)))) | |
0aa34e82 AE |
6659 | (synopsis "TeX Live, a package of the TeX typesetting system") |
6660 | (description | |
6661 | "TeX Live provides a comprehensive TeX document production system. | |
6662 | It includes all the major TeX-related programs, macro packages, and fonts | |
6663 | that are free software, including support for many languages around the | |
6664 | world. | |
6665 | ||
6666 | This package contains the complete TeX Live distribution.") | |
132e14b4 EF |
6667 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
6668 | (home-page "https://www.tug.org/texlive/"))) | |
231eae53 | 6669 | |
ebcf74da RW |
6670 | (define-public perl-text-bibtex |
6671 | (package | |
6672 | (name "perl-text-bibtex") | |
a2460e0f | 6673 | (version "0.85") |
ebcf74da RW |
6674 | (source |
6675 | (origin | |
6676 | (method url-fetch) | |
6677 | (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-" | |
6678 | version ".tar.gz")) | |
6679 | (sha256 | |
6680 | (base32 | |
a2460e0f | 6681 | "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h")))) |
ebcf74da RW |
6682 | (build-system perl-build-system) |
6683 | (arguments | |
6684 | `(#:phases | |
6685 | (modify-phases %standard-phases | |
6686 | (add-after 'unpack 'add-output-directory-to-rpath | |
6687 | (lambda* (#:key outputs #:allow-other-keys) | |
6688 | (substitute* "inc/MyBuilder.pm" | |
6689 | (("-Lbtparse" line) | |
6690 | (string-append "-Wl,-rpath=" | |
6691 | (assoc-ref outputs "out") "/lib " line))) | |
6692 | #t)) | |
6693 | (add-after 'unpack 'install-libraries-to-/lib | |
6694 | (lambda* (#:key outputs #:allow-other-keys) | |
6695 | (substitute* "Build.PL" | |
6696 | (("lib64") "lib")) | |
6697 | #t))))) | |
6698 | (native-inputs | |
6699 | `(("perl-capture-tiny" ,perl-capture-tiny) | |
6700 | ("perl-config-autoconf" ,perl-config-autoconf) | |
6701 | ("perl-extutils-libbuilder" ,perl-extutils-libbuilder) | |
6702 | ("perl-module-build" ,perl-module-build))) | |
9aba9b12 | 6703 | (home-page "https://metacpan.org/release/Text-BibTeX") |
ebcf74da RW |
6704 | (synopsis "Interface to read and parse BibTeX files") |
6705 | (description "@code{Text::BibTeX} is a Perl library for reading, parsing, | |
6706 | and processing BibTeX files. @code{Text::BibTeX} gives you access to the data | |
6707 | at many different levels: you may work with BibTeX entries as simple field to | |
6708 | string mappings, or get at the original form of the data as a list of simple | |
6709 | values (strings, macros, or numbers) pasted together.") | |
2f3108ad | 6710 | (license license:perl-license))) |
ebcf74da | 6711 | |
d4000680 RW |
6712 | (define-public biber |
6713 | (package | |
1335167a | 6714 | (name "biber") |
41a01087 | 6715 | (version "2.12") |
d4000680 | 6716 | (source (origin |
41a01087 JL |
6717 | (method git-fetch) |
6718 | (uri (git-reference | |
6719 | (url "https://github.com/plk/biber/") | |
6720 | (commit (string-append "v" version)))) | |
6721 | (file-name (git-file-name name version)) | |
6722 | ;; TODO: Patch awaiting inclusion upstream (see: | |
6723 | ;; https://github.com/plk/biber/issues/239). | |
6724 | (patches (search-patches "biber-fix-encoding-write.patch")) | |
d4000680 RW |
6725 | (sha256 |
6726 | (base32 | |
41a01087 | 6727 | "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx")))) |
d4000680 RW |
6728 | (build-system perl-build-system) |
6729 | (arguments | |
6730 | `(#:phases | |
6731 | (modify-phases %standard-phases | |
6732 | (add-after 'install 'wrap-programs | |
6733 | (lambda* (#:key outputs #:allow-other-keys) | |
6734 | (let* ((out (assoc-ref outputs "out")) | |
6735 | (perl5lib (getenv "PERL5LIB"))) | |
6736 | (wrap-program (string-append out "/bin/biber") | |
6737 | `("PERL5LIB" ":" prefix | |
6738 | (,(string-append perl5lib ":" out | |
6739 | "/lib/perl5/site_perl"))))) | |
6740 | #t))))) | |
6741 | (inputs | |
6742 | `(("perl-autovivification" ,perl-autovivification) | |
6743 | ("perl-class-accessor" ,perl-class-accessor) | |
6744 | ("perl-data-dump" ,perl-data-dump) | |
6745 | ("perl-data-compare" ,perl-data-compare) | |
6746 | ("perl-data-uniqid" ,perl-data-uniqid) | |
6747 | ("perl-datetime-format-builder" ,perl-datetime-format-builder) | |
6748 | ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian) | |
41a01087 | 6749 | ("perl-file-slurper" ,perl-file-slurper) |
d4000680 RW |
6750 | ("perl-ipc-cmd" ,perl-ipc-cmd) |
6751 | ("perl-ipc-run3" ,perl-ipc-run3) | |
6752 | ("perl-list-allutils" ,perl-list-allutils) | |
6753 | ("perl-list-moreutils" ,perl-list-moreutils) | |
6754 | ("perl-mozilla-ca" ,perl-mozilla-ca) | |
6755 | ("perl-regexp-common" ,perl-regexp-common) | |
6756 | ("perl-log-log4perl" ,perl-log-log4perl) | |
6757 | ;; We cannot use perl-unicode-collate here, because otherwise the | |
6758 | ;; hardcoded hashes in the tests would differ. See | |
6759 | ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html | |
6760 | ;;("perl-unicode-collate" ,perl-unicode-collate) | |
6761 | ("perl-unicode-normalize" ,perl-unicode-normalize) | |
6762 | ("perl-unicode-linebreak" ,perl-unicode-linebreak) | |
6763 | ("perl-encode-eucjpascii" ,perl-encode-eucjpascii) | |
6764 | ("perl-encode-jis2k" ,perl-encode-jis2k) | |
6765 | ("perl-encode-hanextra" ,perl-encode-hanextra) | |
6766 | ("perl-xml-libxml" ,perl-xml-libxml) | |
6767 | ("perl-xml-libxml-simple" ,perl-xml-libxml-simple) | |
6768 | ("perl-xml-libxslt" ,perl-xml-libxslt) | |
6769 | ("perl-xml-writer" ,perl-xml-writer) | |
6770 | ("perl-sort-key" ,perl-sort-key) | |
6771 | ("perl-text-csv" ,perl-text-csv) | |
6772 | ("perl-text-csv-xs" ,perl-text-csv-xs) | |
6773 | ("perl-text-roman" ,perl-text-roman) | |
6774 | ("perl-uri" ,perl-uri) | |
6775 | ("perl-text-bibtex" ,perl-text-bibtex) | |
6776 | ("perl-libwww" ,perl-libwww) | |
6777 | ("perl-lwp-protocol-https" ,perl-lwp-protocol-https) | |
6778 | ("perl-business-isbn" ,perl-business-isbn) | |
6779 | ("perl-business-issn" ,perl-business-issn) | |
6780 | ("perl-business-ismn" ,perl-business-ismn) | |
6781 | ("perl-lingua-translit" ,perl-lingua-translit))) | |
6782 | (native-inputs | |
6783 | `(("perl-config-autoconf" ,perl-config-autoconf) | |
6784 | ("perl-extutils-libbuilder" ,perl-extutils-libbuilder) | |
6785 | ("perl-module-build" ,perl-module-build) | |
6786 | ;; for tests | |
6787 | ("perl-file-which" ,perl-file-which) | |
6788 | ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient | |
6789 | ("perl-test-differences" ,perl-test-differences))) | |
6790 | (home-page "http://biblatex-biber.sourceforge.net/") | |
6791 | (synopsis "Backend for the BibLaTeX citation management tool") | |
6792 | (description "Biber is a BibTeX replacement for users of biblatex. Among | |
6793 | other things it comes with full Unicode support.") | |
6794 | (license license:artistic2.0))) | |
6795 | ||
231eae53 LC |
6796 | (define-public rubber |
6797 | (package | |
6798 | (name "rubber") | |
6799 | (version "1.1") | |
6800 | (source (origin | |
6801 | (method url-fetch) | |
6802 | (uri (list (string-append "https://launchpad.net/rubber/trunk/" | |
6803 | version "/+download/rubber-" | |
6804 | version ".tar.gz") | |
6805 | (string-append "http://ebeffara.free.fr/pub/rubber-" | |
6806 | version ".tar.gz"))) | |
6807 | (sha256 | |
6808 | (base32 | |
6809 | "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq")))) | |
6810 | (build-system gnu-build-system) | |
6811 | (arguments '(#:tests? #f)) ; no `check' target | |
6812 | (inputs `(("texinfo" ,texinfo) | |
9bee5d6c | 6813 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) |
231eae53 LC |
6814 | ("which" ,which))) |
6815 | (home-page "https://launchpad.net/rubber") | |
35b9e423 | 6816 | (synopsis "Wrapper for LaTeX and friends") |
231eae53 LC |
6817 | (description |
6818 | "Rubber is a program whose purpose is to handle all tasks related to the | |
6819 | compilation of LaTeX documents. This includes compiling the document itself, | |
6820 | of course, enough times so that all references are defined, and running BibTeX | |
6821 | to manage bibliographic references. Automatic execution of dvips to produce | |
6822 | PostScript documents is also included, as well as usage of pdfLaTeX to produce | |
6823 | PDF documents.") | |
6824 | (license license:gpl2+))) | |
4791876c RJ |
6825 | |
6826 | (define-public texmaker | |
6827 | (package | |
6828 | (name "texmaker") | |
585be42f | 6829 | (version "5.0.3") |
4791876c RJ |
6830 | (source (origin |
6831 | (method url-fetch) | |
6832 | (uri (string-append "http://www.xm1math.net/texmaker/texmaker-" | |
6833 | version ".tar.bz2")) | |
6834 | (sha256 | |
6835 | (base32 | |
585be42f | 6836 | "0vrj9w5lk3vf6138n5bz8phmy3xp5kv4dq1rgirghcf4hbxdyx30")))) |
4791876c RJ |
6837 | (build-system gnu-build-system) |
6838 | (arguments | |
6839 | `(#:phases | |
6840 | (modify-phases %standard-phases | |
6841 | ;; Qt has its own configuration utility. | |
6842 | (replace 'configure | |
6843 | (lambda* (#:key outputs #:allow-other-keys) | |
6844 | (let ((out (assoc-ref outputs "out"))) | |
6c23ed9b MW |
6845 | (invoke "qmake" |
6846 | (string-append "PREFIX=" out) | |
c36d9725 | 6847 | (string-append "DESKTOPDIR=" out "/share/applications") |
6c23ed9b | 6848 | (string-append "ICONDIR=" out "/share/pixmaps") |
c36d9725 | 6849 | (string-append "METAINFODIR=" out "/share/metainfo") |
6c23ed9b | 6850 | "texmaker.pro"))))))) |
4791876c RJ |
6851 | (inputs |
6852 | `(("poppler-qt5" ,poppler-qt5) | |
bd917486 TD |
6853 | ("qtbase" ,qtbase) |
6854 | ("qtscript" ,qtscript) | |
6855 | ("qtwebkit" ,qtwebkit) | |
4791876c RJ |
6856 | ("zlib" ,zlib))) |
6857 | (native-inputs | |
6858 | `(("pkg-config" ,pkg-config))) | |
6859 | (home-page "http://www.xm1math.net/texmaker/") | |
6860 | (synopsis "LaTeX editor") | |
6861 | (description "Texmaker is a program that integrates many tools needed to | |
6862 | develop documents with LaTeX, in a single application.") | |
6863 | (license license:gpl2+))) | |
83457fe0 | 6864 | |
83457fe0 JD |
6865 | (define-public teximpatient |
6866 | (package | |
6867 | (name "teximpatient") | |
6868 | (version "2.4") | |
6869 | (source (origin | |
4f2ee8e2 | 6870 | (method url-fetch/tarbomb) |
83457fe0 JD |
6871 | (uri (string-append "mirror://gnu/" name "/" name "-" |
6872 | version ".tar.gz")) | |
6873 | (sha256 | |
6874 | (base32 | |
6875 | "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd")))) | |
6876 | (build-system gnu-build-system) | |
6877 | (arguments | |
4f2ee8e2 RW |
6878 | `(#:tests? #f ; there are none |
6879 | #:phases | |
83457fe0 | 6880 | (modify-phases %standard-phases |
4f2ee8e2 RW |
6881 | (add-after 'unpack 'fix-packaging-error |
6882 | (lambda* (#:key inputs #:allow-other-keys) | |
6883 | ;; This file should have been part of the tarball. | |
6884 | (install-file (car | |
6885 | (find-files | |
6886 | (assoc-ref inputs "automake") | |
6887 | "^install-sh$")) | |
6888 | ".") | |
6889 | ;; Remove generated file. | |
6890 | (delete-file "book.pdf") | |
6891 | #t))))) | |
83457fe0 | 6892 | (native-inputs |
4f2ee8e2 RW |
6893 | `(("texlive" ,(texlive-union (list texlive-latex-amsfonts |
6894 | texlive-fonts-amsfonts | |
6895 | texlive-fonts-adobe-palatino | |
6896 | texlive-fonts-adobe-zapfding | |
6897 | texlive-fonts-knuth-lib | |
6898 | texlive-fonts-mflogo-font | |
6899 | texlive-generic-pdftex))) | |
83457fe0 | 6900 | ("automake" ,automake))) |
6fd52309 | 6901 | (home-page "https://www.gnu.org/software/teximpatient/") |
83457fe0 JD |
6902 | (synopsis "Book on TeX, plain TeX and Eplain") |
6903 | (description "@i{TeX for the Impatient} is a ~350 page book on TeX, | |
6904 | plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves, | |
6905 | and Karl Berry.") | |
6906 | (license license:fdl1.3+))) | |
ec40a050 DM |
6907 | |
6908 | (define-public lyx | |
6909 | (package | |
6910 | (name "lyx") | |
b17c8923 | 6911 | (version "2.3.2-2") |
ec40a050 | 6912 | (source (origin |
b17c8923 | 6913 | (method url-fetch) |
e5a03489 EF |
6914 | (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/" |
6915 | (version-major+minor version) ".x/" | |
b17c8923 RW |
6916 | name "-" version ".tar.gz")) |
6917 | (sha256 | |
6918 | (base32 | |
6919 | "0vr0qwis6rhind6azfa270hqxci7rj8qb1kk5x6lm80mc34nvrqi")) | |
6920 | (modules '((guix build utils))) | |
6921 | (snippet | |
6922 | '(begin | |
6923 | (delete-file-recursively "3rdparty") | |
6924 | #t)))) | |
ec40a050 DM |
6925 | (build-system cmake-build-system) |
6926 | (arguments | |
6927 | `(#:configure-flags `("-DLYX_USE_QT=QT5" | |
6928 | "-DLYX_EXTERNAL_BOOST=1" | |
6929 | "-DLYX_INSTALL=1" | |
6930 | "-DLYX_RELEASE=1" | |
6931 | ,(string-append "-DLYX_INSTALL_PREFIX=" | |
6932 | (assoc-ref %outputs "out") | |
6933 | ;; Exact name and level is necessary. | |
e5a03489 | 6934 | "/lyx" ,(version-major+minor version))) |
ec40a050 DM |
6935 | #:phases |
6936 | (modify-phases %standard-phases | |
b17c8923 RW |
6937 | ;; See ;; https://www.lyx.org/trac/changeset/3a123b90af838b08680471d87170c38e56787df9/lyxgit |
6938 | (add-after 'unpack 'fix-compilation-with-boost-1.69 | |
6939 | (lambda _ | |
6940 | (substitute* "src/support/FileName.cpp" | |
6941 | (("^template struct boost::detail::crc_table_t.*") "")) | |
6942 | #t)) | |
ec40a050 DM |
6943 | (add-after 'unpack 'patch-python |
6944 | (lambda* (#:key inputs #:allow-other-keys) | |
6945 | (substitute* '("src/support/os.cpp") | |
b17c8923 RW |
6946 | (("\"python ") |
6947 | (string-append "\"" | |
6948 | (assoc-ref inputs "python") | |
6949 | "/bin/python "))) | |
ec40a050 DM |
6950 | #t)) |
6951 | (add-after 'patch-python 'patch-desktop-file | |
6952 | (lambda* (#:key outputs #:allow-other-keys) | |
6953 | (substitute* "lib/lyx.desktop.in" | |
b17c8923 RW |
6954 | (("Exec=") |
6955 | (string-append "Exec=" | |
6956 | (assoc-ref outputs "out") | |
6957 | "/"))) | |
ec40a050 DM |
6958 | #t)) |
6959 | (add-before 'check 'setenv-check | |
6960 | (lambda _ | |
b17c8923 RW |
6961 | ;; Create missing file that would cause tests to fail. |
6962 | (with-output-to-file (string-append "../lyx-" | |
6963 | ,version | |
6964 | "/src/tests/check_layout.cmake") | |
6965 | (const #t)) | |
e5a03489 EF |
6966 | (setenv (string-append "LYX_DIR_" |
6967 | (string-join | |
6968 | (string-split | |
6969 | ,(version-major+minor version) #\-)) "x") | |
6970 | (string-append (getcwd) "/../lyx-" ,version "/lib")) | |
ec40a050 DM |
6971 | #t)) |
6972 | (add-after 'install 'install-symlinks | |
6973 | (lambda* (#:key outputs #:allow-other-keys) | |
6974 | (let ((out (assoc-ref outputs "out"))) | |
6975 | (mkdir-p (string-append out "/bin")) | |
e5a03489 EF |
6976 | (symlink (string-append "../lyx" ,(version-major+minor version) |
6977 | "/bin/lyx" ,(version-major+minor version)) | |
6978 | (string-append out "/bin/lyx" ,(version-major+minor version))) | |
ec40a050 DM |
6979 | #t)))))) |
6980 | (inputs | |
6981 | `(("boost" ,boost) | |
b17c8923 | 6982 | ("hunspell" ,hunspell) ; Note: Could also use aspell instead. |
ec40a050 | 6983 | ("libx11" ,libx11) |
b17c8923 RW |
6984 | ("mythes" ,mythes) |
6985 | ("python" ,python-2) | |
ec40a050 DM |
6986 | ("qtbase" ,qtbase) |
6987 | ("qtsvg" ,qtsvg) | |
6988 | ("zlib" ,zlib))) | |
6989 | (propagated-inputs | |
b17c8923 RW |
6990 | `(("texlive" ,(texlive-union (list texlive-fonts-ec))))) |
6991 | ;; FIXME: Python 3.7.0 cannot be used because the test infrastructure | |
6992 | ;; "requires a bytes-like object, not 'str'". This may be fixed with | |
6993 | ;; upgrades to Python. | |
ec40a050 | 6994 | (native-inputs |
b17c8923 | 6995 | `(("python" ,python-2) |
ec40a050 DM |
6996 | ("pkg-config" ,pkg-config) |
6997 | ("bc" ,bc))) | |
8960b2e6 | 6998 | (home-page "https://www.lyx.org/") |
ec40a050 DM |
6999 | (synopsis "Document preparation system with GUI") |
7000 | (description "LyX is a document preparation system. It excels at letting | |
7001 | you create complex technical and scientific articles with mathematics, | |
7002 | cross-references, bibliographies, indexes, etc. It is very good for working | |
7003 | with documents of any length in which the usual processing abilities are | |
7004 | required: automatic sectioning and pagination, spell checking and so forth.") | |
7005 | (license license:gpl2+))) | |
7d50dff3 PN |
7006 | |
7007 | (define-public texlive-latex-media9 | |
7008 | (package | |
7009 | (name "texlive-latex-media9") | |
7010 | (version (number->string %texlive-revision)) | |
7011 | (source (origin | |
7012 | (method svn-fetch) | |
7013 | (uri (svn-reference | |
7014 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7015 | %texlive-tag "/Master/texmf-dist/" | |
7016 | "/tex/latex/media9")) | |
7017 | (revision %texlive-revision))) | |
7018 | (file-name (string-append name "-" version "-checkout")) | |
7019 | (sha256 | |
7020 | (base32 | |
d4d9a1ec | 7021 | "0lhb2h5hxjq9alpk4r3gvg21pwyifs4ah6hqzp92k55mkp1xv73j")))) |
7d50dff3 PN |
7022 | (build-system trivial-build-system) |
7023 | (arguments | |
7024 | `(#:modules ((guix build utils)) | |
7025 | #:builder | |
7026 | (begin | |
7027 | (use-modules (guix build utils)) | |
7028 | (let ((target (string-append (assoc-ref %outputs "out") | |
7029 | "/share/texmf-dist/tex/latex/media9"))) | |
7030 | (mkdir-p target) | |
7031 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7032 | #t)))) | |
7033 | (home-page "https://www.ctan.org/pkg/media9") | |
7034 | (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility") | |
7035 | (description | |
7036 | "The package provides an interface to embed interactive Flash (SWF) and 3D | |
7037 | objects (Adobe U3D & PRC), as well as video and sound files or streams in the | |
7038 | popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X | |
7039 | compatibility. Playback of multimedia files uses the built-in Flash Player of | |
7040 | Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player | |
7041 | supports the efficient H.264 codec for video compression. | |
7042 | ||
7043 | The package is based on the RichMedia Annotation, an Adobe addition to the PDF | |
7044 | specification. It replaces the now obsolete @code{movie15} package.") | |
7045 | (license license:lppl))) | |
288c8c97 PN |
7046 | |
7047 | (define-public texlive-latex-ocgx2 | |
7048 | (package | |
7049 | (name "texlive-latex-ocgx2") | |
7050 | (version (number->string %texlive-revision)) | |
7051 | (source (origin | |
7052 | (method svn-fetch) | |
7053 | (uri (svn-reference | |
7054 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7055 | %texlive-tag "/Master/texmf-dist/" | |
7056 | "/tex/latex/ocgx2")) | |
7057 | (revision %texlive-revision))) | |
7058 | (file-name (string-append name "-" version "-checkout")) | |
7059 | (sha256 | |
7060 | (base32 | |
d4d9a1ec | 7061 | "0zp00jg058djx8xp0xqwas92y3j97clkyd8z6pqr890yqy06myqb")))) |
288c8c97 PN |
7062 | (build-system trivial-build-system) |
7063 | (arguments | |
7064 | `(#:modules ((guix build utils)) | |
7065 | #:builder | |
7066 | (begin | |
7067 | (use-modules (guix build utils)) | |
7068 | (let ((target (string-append (assoc-ref %outputs "out") | |
7069 | "/share/texmf-dist/tex/latex/ogcx2"))) | |
7070 | (mkdir-p target) | |
7071 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7072 | #t)))) | |
7073 | (home-page "https://www.ctan.org/pkg/ocgx2") | |
7074 | (synopsis "Provide OCG (Optional Content Groups) support within a PDF document") | |
7075 | (description | |
7076 | "This package provides OCG (Optional Content Groups) support within a PDF | |
7077 | document. | |
7078 | ||
7079 | It re-implements the functionality of the @code{ocg}, @code{ocgx}, and | |
7080 | @code{ocg-p} packages and adds support for all known engines and back-ends | |
7081 | including: | |
7082 | ||
7083 | @itemize | |
7084 | @item LaTeX → dvips → @code{ps2pdf}/Distiller | |
7085 | @item (Xe)LaTeX(x) → @code{dvipdfmx} | |
7086 | @item pdfLaTeX and LuaLaTeX . | |
7087 | @end itemize | |
7088 | ||
7089 | It also ensures compatibility with the @code{media9} and @code{animate} packages.") | |
7090 | (license license:lppl))) | |
b718793e PN |
7091 | |
7092 | (define-public texlive-latex-ms | |
7093 | (package | |
7094 | (name "texlive-latex-ms") | |
7095 | (version (number->string %texlive-revision)) | |
7096 | (source (origin | |
7097 | (method svn-fetch) | |
7098 | (uri (texlive-ref "latex" "ms")) | |
7099 | (file-name (string-append name "-" version "-checkout")) | |
7100 | (sha256 | |
7101 | (base32 | |
7102 | "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s")))) | |
7103 | (build-system texlive-build-system) | |
7104 | (arguments | |
7105 | '(#:tex-directory "latex/ms" | |
7106 | #:tex-format "latex")) | |
7107 | (home-page "https://ctan.org/pkg/ms") | |
7108 | (synopsis "Various LATEX packages by Martin Schröder") | |
7109 | (description | |
7110 | "A bundle of LATEX packages by Martin Schröder; the collection comprises: | |
7111 | ||
7112 | @itemize | |
7113 | @item @command{count1to}, make use of fixed TEX counters; | |
7114 | @item @command{everysel}, set commands to execute every time a font is selected; | |
7115 | @item @command{everyshi}, set commands to execute whenever a page is shipped out; | |
7116 | @item @command{multitoc}, typeset the table of contents in multiple columns; | |
7117 | @item @command{prelim2e}, mark typeset pages as preliminary; and | |
7118 | @item @command{ragged2e}, typeset ragged text and allow hyphenation. | |
7119 | @end itemize\n") | |
7120 | (license license:lppl1.3c+))) | |
707babdd PN |
7121 | |
7122 | (define-public texlive-latex-needspace | |
7123 | (package | |
7124 | (name "texlive-latex-needspace") | |
7125 | (version (number->string %texlive-revision)) | |
7126 | (source (origin | |
7127 | (method svn-fetch) | |
7128 | (uri (texlive-ref "latex" "needspace")) | |
7129 | (file-name (string-append name "-" version "-checkout")) | |
7130 | (sha256 | |
7131 | (base32 | |
7132 | "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y")))) | |
7133 | (build-system texlive-build-system) | |
7134 | (arguments | |
7135 | '(#:tex-directory "latex/needspace" | |
7136 | #:tex-format "latex")) | |
7137 | (inputs | |
7138 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
7139 | (home-page "https://www.ctan.org/pkg/needspace") | |
7140 | (synopsis "Insert pagebreak if not enough space") | |
7141 | (description | |
7142 | "Provides commands to disable pagebreaking within a given vertical | |
7143 | space. If there is not enough space between the command and the bottom of the | |
7144 | page, a new page will be started.") | |
7145 | (license license:lppl))) | |
0e73c11b | 7146 | |
73635e3f RW |
7147 | (define-public texlive-latex-changepage |
7148 | (package | |
7149 | (name "texlive-latex-changepage") | |
7150 | (version (number->string %texlive-revision)) | |
7151 | (source | |
7152 | (origin | |
7153 | (method svn-fetch) | |
7154 | (uri (texlive-ref "latex" "changepage")) | |
7155 | (sha256 | |
7156 | (base32 | |
7157 | "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb")))) | |
7158 | (build-system texlive-build-system) | |
7159 | (arguments | |
7160 | '(#:tex-directory "latex/changepage" | |
7161 | #:tex-format "latex")) | |
7162 | (inputs | |
7163 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
7164 | (home-page "https://www.ctan.org/pkg/changepage") | |
7165 | (synopsis "Margin adjustment and detection of odd/even pages") | |
7166 | (description | |
7167 | "The package provides commands to change the page layout in the middle of | |
7168 | a document, and to robustly check for typesetting on odd or even pages. | |
7169 | Instructions for use are at the end of the file. The package is an extraction | |
7170 | of code from the @code{memoir} class, whose user interface it shares.") | |
7171 | (license license:lppl1.3+))) | |
7172 | ||
0e73c11b PN |
7173 | (define-public texlive-latex-eukdate |
7174 | (package | |
7175 | (name "texlive-latex-eukdate") | |
7176 | (version (number->string %texlive-revision)) | |
7177 | (source | |
7178 | (origin | |
7179 | (method svn-fetch) | |
7180 | (uri (svn-reference | |
7181 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7182 | %texlive-tag "/Master/texmf-dist/" | |
7183 | "/tex/latex/eukdate")) | |
7184 | (revision %texlive-revision))) | |
7185 | (file-name (string-append name "-" version "-checkout")) | |
7186 | (sha256 | |
7187 | (base32 | |
7188 | "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz")))) | |
7189 | (build-system trivial-build-system) | |
7190 | (arguments | |
7191 | `(#:modules ((guix build utils)) | |
7192 | #:builder | |
7193 | (begin | |
7194 | (use-modules (guix build utils)) | |
7195 | (let ((target (string-append (assoc-ref %outputs "out") | |
7196 | "/share/texmf-dist/tex/latex/eukdate"))) | |
7197 | (mkdir-p target) | |
7198 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7199 | #t)))) | |
7200 | (home-page "https://www.ctan.org/pkg/eukdate") | |
7201 | (synopsis "UK format dates, with weekday") | |
7202 | (description | |
7203 | "The package is used to change the format of @code{\\today}’s date, | |
7204 | including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which | |
7205 | is preferred in many parts of the world, as distinct from that which is used in | |
7206 | @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.") | |
7207 | (license license:lppl))) | |
910d67fb PN |
7208 | |
7209 | (define-public texlive-generic-ulem | |
7210 | (package | |
7211 | (name "texlive-generic-ulem") | |
7212 | (version (number->string %texlive-revision)) | |
7213 | (source | |
7214 | (origin | |
7215 | (method svn-fetch) | |
7216 | (uri (svn-reference | |
7217 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7218 | %texlive-tag "/Master/texmf-dist/" | |
7219 | "/tex/generic/ulem")) | |
7220 | (revision %texlive-revision))) | |
7221 | (file-name (string-append name "-" version "-checkout")) | |
7222 | (sha256 | |
7223 | (base32 | |
7224 | "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797")))) | |
7225 | (build-system trivial-build-system) | |
7226 | (arguments | |
7227 | `(#:modules ((guix build utils)) | |
7228 | #:builder | |
7229 | (begin | |
7230 | (use-modules (guix build utils)) | |
7231 | (let ((target (string-append (assoc-ref %outputs "out") | |
7232 | "/share/texmf-dist/tex/generic/ulem"))) | |
7233 | (mkdir-p target) | |
7234 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7235 | #t)))) | |
7236 | (home-page "https://www.ctan.org/pkg/ulem") | |
7237 | (synopsis "Underline text in TeX") | |
7238 | (description | |
7239 | "The package provides an @code{\\ul} (underline) command which will break | |
7240 | over line ends; this technique may be used to replace @code{\\em} (both in that | |
7241 | form and as the @code{\\emph} command), so as to make output look as if it comes | |
7242 | from a typewriter. The package also offers double and wavy underlining, and | |
7243 | striking out (line through words) and crossing out (/// over words).") | |
7244 | (license license:lppl1.3c+))) | |
17ef5f1f PN |
7245 | |
7246 | (define-public texlive-latex-pgf | |
7247 | (package | |
7248 | (name "texlive-latex-pgf") | |
7249 | (version (number->string %texlive-revision)) | |
7250 | (source | |
7251 | (origin | |
7252 | (method svn-fetch) | |
7253 | (uri (svn-reference | |
7254 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7255 | %texlive-tag "/Master/texmf-dist/" | |
7256 | "/tex/latex/pgf")) | |
7257 | (revision %texlive-revision))) | |
7258 | (file-name (string-append name "-" version "-checkout")) | |
7259 | (sha256 | |
7260 | (base32 | |
7261 | "1dq8p10pz8wn0vx412m7d7d5gj1syxly3yqdqvf7lv2xl8zndn5h")))) | |
7262 | (build-system trivial-build-system) | |
7263 | (native-inputs | |
7264 | `(("texlive-latex-pgf-generic" | |
7265 | ,(origin | |
7266 | (method svn-fetch) | |
7267 | (uri (svn-reference | |
7268 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7269 | %texlive-tag "/Master/texmf-dist/" | |
7270 | "/tex/generic/pgf")) | |
7271 | (revision %texlive-revision))) | |
7272 | (file-name (string-append "texlive-latex-pgf-generic" version "-checkout")) | |
7273 | (sha256 | |
7274 | (base32 | |
7275 | "0xkxw26sjzr5npjpzpr28yygwdbhzpdd0hsk80gjpidhcxmz393i")))))) | |
0fc71e4b RW |
7276 | (propagated-inputs |
7277 | `(("texlive-latex-xcolor" ,texlive-latex-xcolor))) | |
17ef5f1f PN |
7278 | (arguments |
7279 | `(#:modules ((guix build utils)) | |
7280 | #:builder | |
7281 | (begin | |
7282 | (use-modules (guix build utils)) | |
7283 | (let ((target-generic (string-append (assoc-ref %outputs "out") | |
7284 | "/share/texmf-dist/tex/generic/pgf")) | |
7285 | (target-latex (string-append (assoc-ref %outputs "out") | |
7286 | "/share/texmf-dist/tex/latex/pgf"))) | |
7287 | (mkdir-p target-generic) | |
7288 | (mkdir-p target-latex) | |
7289 | (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic) | |
7290 | (copy-recursively (assoc-ref %build-inputs "source") target-latex) | |
7291 | #t)))) | |
7292 | (home-page "https://www.ctan.org/pkg/tikz") | |
7293 | (synopsis "Create PostScript and PDF graphics in TeX") | |
7294 | (description | |
7295 | "PGF is a macro package for creating graphics. It is platform- and | |
7296 | format-independent and works together with the most important TeX backend | |
7297 | drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer | |
7298 | called TikZ. | |
7299 | ||
7300 | Its usage is similar to pstricks and the standard picture environment. PGF | |
7301 | works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can | |
7302 | produce either PostScript or PDF output.") | |
7303 | (license license:lppl1.3c+))) | |
e7b2937d PN |
7304 | |
7305 | (define-public texlive-latex-koma-script | |
7306 | (package | |
7307 | (name "texlive-latex-koma-script") | |
7308 | (version (number->string %texlive-revision)) | |
7309 | (source (origin | |
7310 | (method svn-fetch) | |
7311 | (uri (svn-reference | |
7312 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7313 | %texlive-tag "/Master/texmf-dist/" | |
7314 | "/tex/latex/koma-script")) | |
7315 | (revision %texlive-revision))) | |
7316 | (file-name (string-append name "-" version "-checkout")) | |
7317 | (sha256 | |
7318 | (base32 | |
d4d9a1ec | 7319 | "0nqwf0sr4mf3v9gqa6apv6ml2xhcdwax0vgyf12a672g7rpdyvgm")))) |
e7b2937d PN |
7320 | (build-system trivial-build-system) |
7321 | (arguments | |
7322 | `(#:modules ((guix build utils) | |
7323 | (ice-9 match)) | |
7324 | #:builder | |
7325 | (begin | |
7326 | (use-modules (guix build utils) | |
7327 | (ice-9 match)) | |
7328 | (let ((root (string-append (assoc-ref %outputs "out") | |
7329 | "/share/texmf-dist/")) | |
7330 | (pkgs '(("source" . "tex/latex/koma-script")))) | |
7331 | (for-each (match-lambda | |
7332 | ((pkg . dir) | |
7333 | (let ((target (string-append root dir))) | |
7334 | (mkdir-p target) | |
7335 | (copy-recursively (assoc-ref %build-inputs pkg) | |
7336 | target)))) | |
7337 | pkgs) | |
7338 | #t)))) | |
7339 | (home-page "https://www.ctan.org/pkg/koma-script") | |
7340 | (synopsis "Bundle of versatile classes and packages") | |
7341 | (description | |
7342 | "The KOMA-Script bundle provides replacements for the article, report, and | |
7343 | book classes with emphasis on typography and versatility. There is also a | |
7344 | letter class. | |
7345 | ||
7346 | The bundle also offers: | |
7347 | ||
7348 | @itemize | |
7349 | @item a package for calculating type areas in the way laid down by the | |
7350 | typographer Jan Tschichold, | |
7351 | @item packages for easily changing and defining page styles, | |
7352 | @item a package scrdate for getting not only the current date but also the name | |
7353 | of the day, and | |
7354 | @item a package scrtime for getting the current time. | |
7355 | @end itemize | |
7356 | ||
7357 | All these packages may be used not only with KOMA-Script classes but also with | |
7358 | the standard classes. | |
7359 | ||
7360 | Since every package has its own version number, the version number quoted only | |
7361 | refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and | |
7362 | typearea (which are the main parts of the bundle).") | |
7363 | (license license:lppl1.3+))) | |
893fbf12 RW |
7364 | |
7365 | (define-public texlive-generic-listofitems | |
7366 | (package | |
7367 | (name "texlive-generic-listofitems") | |
7368 | (version (number->string %texlive-revision)) | |
7369 | (source (origin | |
7370 | (method svn-fetch) | |
7371 | (uri (svn-reference | |
7372 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7373 | %texlive-tag "/Master/texmf-dist/" | |
7374 | "/tex/generic/listofitems")) | |
7375 | (revision %texlive-revision))) | |
7376 | (file-name (string-append name "-" version "-checkout")) | |
7377 | (sha256 | |
7378 | (base32 | |
d4d9a1ec | 7379 | "0hs28fc0v2l92ad9las9b8xcckyrdrwmyhcx1yzmbr6s7s6nvsx8")))) |
893fbf12 RW |
7380 | (build-system trivial-build-system) |
7381 | (arguments | |
7382 | `(#:modules ((guix build utils)) | |
7383 | #:builder | |
7384 | (begin | |
7385 | (use-modules (guix build utils)) | |
7386 | (let ((target (string-append (assoc-ref %outputs "out") | |
7387 | "/share/texmf-dist/tex/generic/listofitems"))) | |
7388 | (mkdir-p target) | |
7389 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7390 | #t)))) | |
7391 | (home-page "https://www.ctan.org/pkg/listofitems") | |
88868575 | 7392 | (synopsis "Grab items in lists using user-specified separation character") |
893fbf12 RW |
7393 | (description |
7394 | "This package allows one to capture all the items of a list, for which | |
7395 | the parsing character has been selected by the user, and to access any of | |
7396 | these items with a simple syntax.") | |
7397 | (license license:lppl1.3c+))) | |
1d0669f4 RW |
7398 | |
7399 | (define-public texlive-latex-readarray | |
7400 | (package | |
7401 | (name "texlive-latex-readarray") | |
7402 | (version (number->string %texlive-revision)) | |
7403 | (source (origin | |
7404 | (method svn-fetch) | |
7405 | (uri (svn-reference | |
7406 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7407 | %texlive-tag "/Master/texmf-dist/" | |
7408 | "/tex/latex/readarray")) | |
7409 | (revision %texlive-revision))) | |
7410 | (file-name (string-append name "-" version "-checkout")) | |
7411 | (sha256 | |
7412 | (base32 | |
7413 | "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp")))) | |
7414 | (build-system trivial-build-system) | |
7415 | (arguments | |
7416 | `(#:modules ((guix build utils)) | |
7417 | #:builder | |
7418 | (begin | |
7419 | (use-modules (guix build utils)) | |
7420 | (let ((target (string-append (assoc-ref %outputs "out") | |
7421 | "/share/texmf-dist/tex/latex/readarray"))) | |
7422 | (mkdir-p target) | |
7423 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7424 | #t)))) | |
7425 | (propagated-inputs | |
7426 | `(("texlive-generic-listofitems" ,texlive-generic-listofitems))) | |
7427 | (home-page "https://www.ctan.org/pkg/readarray") | |
7428 | (synopsis "Read, store and recall array-formatted data") | |
7429 | (description | |
7430 | "This package allows the user to input formatted data into elements of a | |
7431 | 2-D or 3-D array and to recall that data at will by individual cell number. | |
7432 | The data can be but need not be numerical in nature. It can be, for example, | |
7433 | formatted text.") | |
7434 | (license license:lppl1.3))) | |
f50f343e RW |
7435 | |
7436 | (define-public texlive-latex-verbatimbox | |
7437 | (package | |
7438 | (name "texlive-latex-verbatimbox") | |
7439 | (version (number->string %texlive-revision)) | |
7440 | (source (origin | |
7441 | (method svn-fetch) | |
7442 | (uri (svn-reference | |
7443 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7444 | %texlive-tag "/Master/texmf-dist/" | |
7445 | "/tex/latex/verbatimbox")) | |
7446 | (revision %texlive-revision))) | |
7447 | (file-name (string-append name "-" version "-checkout")) | |
7448 | (sha256 | |
7449 | (base32 | |
7450 | "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna")))) | |
7451 | (build-system trivial-build-system) | |
7452 | (arguments | |
7453 | `(#:modules ((guix build utils)) | |
7454 | #:builder | |
7455 | (begin | |
7456 | (use-modules (guix build utils)) | |
7457 | (let ((target (string-append (assoc-ref %outputs "out") | |
7458 | "/share/texmf-dist/tex/latex/verbatimbox"))) | |
7459 | (mkdir-p target) | |
7460 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7461 | #t)))) | |
7462 | (propagated-inputs | |
7463 | `(("texlive-latex-readarray" ,texlive-latex-readarray))) | |
7464 | (home-page "https://www.ctan.org/pkg/verbatimbox") | |
7465 | (synopsis "Deposit verbatim text in a box") | |
7466 | (description | |
7467 | "The package provides a @code{verbbox} environment to place its contents | |
7468 | into a globally available box, or into a box specified by the user. The | |
7469 | global box may then be used in a variety of situations (for example, providing | |
7470 | a replica of the @code{boxedverbatim} environment itself). A valuable use is | |
7471 | in places where the standard @code{verbatim} environment (which is based on a | |
7472 | @code{trivlist}) may not appear.") | |
7473 | (license license:lppl1.3+))) | |
4348a059 RW |
7474 | |
7475 | (define-public texlive-latex-examplep | |
7476 | (package | |
7477 | (name "texlive-latex-examplep") | |
7478 | (version (number->string %texlive-revision)) | |
7479 | (source (origin | |
7480 | (method svn-fetch) | |
7481 | (uri (svn-reference | |
7482 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7483 | %texlive-tag "/Master/texmf-dist/" | |
7484 | "/tex/latex/examplep")) | |
7485 | (revision %texlive-revision))) | |
7486 | (file-name (string-append name "-" version "-checkout")) | |
7487 | (sha256 | |
7488 | (base32 | |
7489 | "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27")))) | |
7490 | (build-system trivial-build-system) | |
7491 | (arguments | |
7492 | `(#:modules ((guix build utils)) | |
7493 | #:builder | |
7494 | (begin | |
7495 | (use-modules (guix build utils)) | |
7496 | (let ((target (string-append (assoc-ref %outputs "out") | |
7497 | "/share/texmf-dist/tex/latex/examplep"))) | |
7498 | (mkdir-p target) | |
7499 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7500 | #t)))) | |
7501 | (home-page "https://www.ctan.org/pkg/examplep") | |
7502 | (synopsis "Verbatim phrases and listings in LaTeX") | |
7503 | (description | |
7504 | "Examplep provides sophisticated features for typesetting verbatim source | |
7505 | code listings, including the display of the source code and its compiled LaTeX | |
7506 | or METAPOST output side-by-side, with automatic width detection and enabled | |
7507 | page breaks (in the source), without the need for specifying the source twice. | |
7508 | Special care is taken that section, page and footnote numbers do not interfere | |
7509 | with the main document. For typesetting short verbatim phrases, a replacement | |
7510 | for the @code{\\verb} command is also provided in the package, which can be | |
7511 | used inside tables and moving arguments such as footnotes and section | |
7512 | titles.") | |
7513 | ;; No version of the GPL is specified. | |
7514 | (license license:gpl3+))) | |
547ab650 PN |
7515 | |
7516 | (define-public texlive-generic-xypic | |
7517 | (package | |
7518 | (name "texlive-generic-xypic") | |
7519 | (version (number->string %texlive-revision)) | |
7520 | (source | |
7521 | (origin | |
7522 | (method svn-fetch) | |
7523 | (uri (svn-reference | |
7524 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7525 | %texlive-tag "/Master/texmf-dist/" | |
7526 | "/tex/generic/xypic")) | |
7527 | (revision %texlive-revision))) | |
7528 | (file-name (string-append name "-" version "-checkout")) | |
7529 | (sha256 | |
7530 | (base32 | |
7531 | "1g5cyxwdfznq4lk9zl6fkjkapmhmwd2cm4m5aibxj20qgwnaggfz")))) | |
7532 | (build-system trivial-build-system) | |
7533 | (arguments | |
7534 | `(#:modules ((guix build utils)) | |
7535 | #:builder | |
7536 | (begin | |
7537 | (use-modules (guix build utils)) | |
7538 | (let ((target (string-append (assoc-ref %outputs "out") | |
7539 | "/share/texmf-dist/tex/generic/xypic"))) | |
7540 | (mkdir-p target) | |
7541 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7542 | #t)))) | |
7543 | (home-page "https://www.ctan.org/pkg/xypic") | |
7544 | (synopsis "Flexible diagramming macros for TeX") | |
7545 | (description | |
7546 | "A package for typesetting a variety of graphs and diagrams with TeX. | |
7547 | Xy-pic works with most formats (including LaTeX, AMS-LaTeX, AMS-TeX, and plain | |
7548 | TeX).") | |
7549 | (license license:gpl3+))) | |
1d9ce461 PN |
7550 | |
7551 | (define-public texlive-fonts-xypic | |
7552 | (package | |
7553 | (name "texlive-fonts-xypic") | |
7554 | (version (number->string %texlive-revision)) | |
7555 | (source (origin | |
7556 | (method svn-fetch) | |
7557 | (uri (svn-reference | |
7558 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7559 | %texlive-tag "/Master/texmf-dist/" | |
7560 | "/fonts/source/public/xypic")) | |
7561 | (revision %texlive-revision))) | |
7562 | (file-name (string-append name "-" version "-checkout")) | |
7563 | (sha256 | |
7564 | (base32 | |
7565 | "0p20v1257kwsqnrk98cdhhiz2viv8l3ly4xay4by0an3j37m9xs3")))) | |
7566 | (build-system trivial-build-system) | |
7567 | (arguments | |
7568 | `(#:modules ((guix build utils) | |
7569 | (ice-9 match)) | |
7570 | #:builder | |
7571 | (begin | |
7572 | (use-modules (guix build utils) | |
7573 | (ice-9 match)) | |
7574 | (let ((root (string-append (assoc-ref %outputs "out") | |
7575 | "/share/texmf-dist/")) | |
7576 | (pkgs '(("source" . "fonts/source/public/xypic") | |
7577 | ("xypic-afm" . "fonts/afm/public/xypic") | |
7578 | ("xypic-type1" . "fonts/type1/public/xypic") | |
7579 | ("xypic-enc" . "fonts/enc/dvips/xypic")))) | |
7580 | (for-each (match-lambda | |
7581 | ((pkg . dir) | |
7582 | (let ((target (string-append root dir))) | |
7583 | (mkdir-p target) | |
7584 | (copy-recursively (assoc-ref %build-inputs pkg) | |
7585 | target)))) | |
7586 | pkgs) | |
7587 | #t)))) | |
7588 | (native-inputs | |
7589 | `(("xypic-afm" | |
7590 | ,(origin | |
7591 | (method svn-fetch) | |
7592 | (uri (svn-reference | |
7593 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7594 | %texlive-tag "/Master/texmf-dist/" | |
7595 | "/fonts/afm/public/xypic")) | |
7596 | (revision %texlive-revision))) | |
7597 | (file-name (string-append name "-afm-" version "-checkout")) | |
7598 | (sha256 | |
7599 | (base32 | |
7600 | "149xdijxp8lw3s0qv2aqxxxyyn748z57dpr596rjvkqdffpnsddh")))) | |
7601 | ("xypic-type1" | |
7602 | ,(origin | |
7603 | (method svn-fetch) | |
7604 | (uri (svn-reference | |
7605 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7606 | %texlive-tag "/Master/texmf-dist/" | |
7607 | "/fonts/type1/public/xypic")) | |
7608 | (revision %texlive-revision))) | |
7609 | (file-name (string-append name "-type1-" version "-checkout")) | |
7610 | (sha256 | |
7611 | (base32 | |
7612 | "1bln89wib7g3hcv2jny3qi6jb73k9d2vbgx3wnnjwp3ryg0846if")))) | |
7613 | ("xypic-enc" | |
7614 | ,(origin | |
7615 | (method svn-fetch) | |
7616 | (uri (svn-reference | |
7617 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7618 | %texlive-tag "/Master/texmf-dist/" | |
7619 | "/fonts/enc/dvips/xypic")) | |
7620 | (revision %texlive-revision))) | |
7621 | (file-name (string-append name "-enc-" version "-checkout")) | |
7622 | (sha256 | |
7623 | (base32 | |
7624 | "0yi8vms3203l3p5slnhrrlzzp0f0jw77fkcvcaicrz2vmw9z99x7")))))) | |
7625 | (home-page "https://www.ctan.org/pkg/xypic") | |
7626 | (synopsis "Fonts for XY-pic") | |
7627 | (description "This package provides the XY-pic fonts.") | |
7628 | (license license:gpl3+))) | |
31595689 PN |
7629 | |
7630 | (define-public texlive-bibtex | |
7631 | (package | |
7632 | (name "texlive-bibtex") | |
7633 | (version (number->string %texlive-revision)) | |
7634 | (source | |
7635 | (origin | |
7636 | (method svn-fetch) | |
7637 | (uri (svn-reference | |
7638 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7639 | %texlive-tag "/Master/texmf-dist/" | |
7640 | "/bibtex")) | |
7641 | (revision %texlive-revision))) | |
7642 | (file-name (string-append name "-" version "-checkout")) | |
7643 | (sha256 | |
7644 | (base32 | |
d4d9a1ec | 7645 | "0hnbs0s1znbn32hfcsyijl39z81sdb00jf092a4blqz421qs2mbv")))) |
31595689 PN |
7646 | (build-system trivial-build-system) |
7647 | (arguments | |
7648 | `(#:modules ((guix build utils)) | |
7649 | #:builder | |
7650 | (begin | |
7651 | (use-modules (guix build utils)) | |
7652 | (let ((target (string-append (assoc-ref %outputs "out") | |
7653 | "/share/texmf-dist/bibtex"))) | |
7654 | (mkdir-p target) | |
7655 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7656 | #t)))) | |
7657 | (home-page "https://www.ctan.org/pkg/bibtex") | |
7658 | (synopsis "Process bibliographies for LaTeX") | |
7659 | (description | |
7660 | "BibTeX allows the user to store his citation data in generic form, while | |
7661 | printing citations in a document in the form specified by a BibTeX style, to | |
7662 | be specified in the document itself (one often needs a LaTeX citation-style | |
7663 | package, such as @command{natbib} as well).") | |
7664 | (license license:knuth))) | |
744b883e PN |
7665 | |
7666 | (define-public texlive-fonts-charter | |
7667 | (package | |
7668 | (name "texlive-fonts-charter") | |
7669 | (version (number->string %texlive-revision)) | |
7670 | (source (origin | |
7671 | (method svn-fetch) | |
7672 | (uri (svn-reference | |
7673 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7674 | %texlive-tag "/Master/texmf-dist/" | |
7675 | "/fonts/type1/bitstrea/charter")) | |
7676 | (revision %texlive-revision))) | |
7677 | (file-name (string-append name "-" version "-checkout")) | |
7678 | (sha256 | |
7679 | (base32 | |
7680 | "0yvib45xxff3jm5270zij4q888pivbc18cqs7lz4pqfhn1am4wnv")))) | |
7681 | (build-system trivial-build-system) | |
7682 | (arguments | |
7683 | `(#:modules ((guix build utils) | |
7684 | (ice-9 match)) | |
7685 | #:builder | |
7686 | (begin | |
7687 | (use-modules (guix build utils) | |
7688 | (ice-9 match)) | |
7689 | (let ((root (string-append (assoc-ref %outputs "out") | |
7690 | "/share/texmf-dist/")) | |
7691 | (pkgs '(("source" . "fonts/type1/bitstrea/charter") | |
7692 | ("charter-afm" . "fonts/afm/bitstrea/charter") | |
7693 | ("charter-tfm" . "fonts/tfm/bitstrea/charter")))) | |
7694 | (for-each (match-lambda | |
7695 | ((pkg . dir) | |
7696 | (let ((target (string-append root dir))) | |
7697 | (mkdir-p target) | |
7698 | (copy-recursively (assoc-ref %build-inputs pkg) | |
7699 | target)))) | |
7700 | pkgs) | |
7701 | #t)))) | |
7702 | (native-inputs | |
7703 | `(("charter-afm" | |
7704 | ,(origin | |
7705 | (method svn-fetch) | |
7706 | (uri (svn-reference | |
7707 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7708 | %texlive-tag "/Master/texmf-dist/" | |
7709 | "/fonts/afm/bitstrea/charter")) | |
7710 | (revision %texlive-revision))) | |
7711 | (file-name (string-append name "-afm-" version "-checkout")) | |
7712 | (sha256 | |
7713 | (base32 | |
7714 | "02nbkqrlr3vypnzslmr7dxg1353mmc0rl4ynx0s6qbvf313fq76a")))) | |
7715 | ("charter-tfm" | |
7716 | ,(origin | |
7717 | (method svn-fetch) | |
7718 | (uri (svn-reference | |
7719 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7720 | %texlive-tag "/Master/texmf-dist/" | |
7721 | "/fonts/tfm/bitstrea/charter")) | |
7722 | (revision %texlive-revision))) | |
7723 | (file-name (string-append name "-tfm-" version "-checkout")) | |
7724 | (sha256 | |
7725 | (base32 | |
7726 | "0j7ci9vprivbhac70aq0z7m23hqcpx1g0i3wp1k0h8ilhimj80xk")))))) | |
7727 | (home-page "https://www.ctan.org/pkg/charter") | |
7728 | (synopsis "Charter fonts for TeX") | |
7729 | (description "A commercial text font donated for the common good. Support | |
7730 | for use with LaTeX is available in @code{freenfss}, part of | |
7731 | @command{psnfss}. ") | |
7732 | (license (license:non-copyleft (string-append "http://mirrors.ctan.org/" | |
7733 | "fonts/charter/readme.charter"))))) | |
a5bfedb4 PN |
7734 | |
7735 | (define-public texlive-context-base | |
7736 | (package | |
7737 | (name "texlive-context-base") | |
7738 | (version (number->string %texlive-revision)) | |
7739 | (source (origin | |
7740 | (method svn-fetch) | |
7741 | (uri (svn-reference | |
7742 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7743 | %texlive-tag "/Master/texmf-dist/" | |
7744 | "/tex/context/base")) | |
7745 | (revision %texlive-revision))) | |
7746 | (file-name (string-append name "-" version "-checkout")) | |
7747 | (sha256 | |
7748 | (base32 | |
d4d9a1ec | 7749 | "0rlx4qqijms1n64gjx475kvip8l322fh7v17zkmwp1l1g0w3vlyz")))) |
a5bfedb4 PN |
7750 | (build-system trivial-build-system) |
7751 | (arguments | |
7752 | `(#:modules ((guix build utils)) | |
7753 | #:builder | |
7754 | (begin | |
7755 | (use-modules (guix build utils)) | |
7756 | (let ((target (string-append (assoc-ref %outputs "out") | |
7757 | "/share/texmf-dist/tex/context/case"))) | |
7758 | (mkdir-p target) | |
7759 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7760 | #t)))) | |
7761 | (home-page "https://www.ctan.org/pkg/context") | |
7762 | (synopsis "Full featured, parameter driven macro package for TeX") | |
7763 | (description "A full featured, parameter driven macro package, which fully | |
7764 | supports advanced interactive documents. See the ConTeXt garden for a wealth | |
7765 | of support information.") | |
7766 | (license license:gpl2+))) | |
63133706 RW |
7767 | |
7768 | (define-public texlive-latex-beamer | |
7769 | (package | |
7770 | (name "texlive-latex-beamer") | |
7771 | (version (number->string %texlive-revision)) | |
7772 | (source (origin | |
7773 | (method svn-fetch) | |
7774 | (uri (svn-reference | |
7775 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7776 | %texlive-tag "/Master/texmf-dist/" | |
7777 | "/tex/latex/beamer")) | |
7778 | (revision %texlive-revision))) | |
7779 | (file-name (string-append name "-" version "-checkout")) | |
7780 | (sha256 | |
7781 | (base32 | |
7782 | "09y3qwbj0nckshvg9afgwcv9v3zdif1d7bnpzrggsa1fbr80mgk2")))) | |
7783 | (build-system trivial-build-system) | |
7784 | (outputs '("out" "doc")) | |
7785 | (arguments | |
7786 | `(#:modules ((guix build utils)) | |
7787 | #:builder | |
7788 | (begin | |
7789 | (use-modules (guix build utils)) | |
7790 | (let ((target (string-append (assoc-ref %outputs "out") | |
7791 | "/share/texmf-dist/tex/latex/beamer")) | |
7792 | (docs (string-append (assoc-ref %outputs "doc") | |
7793 | "/share/texmf-dist/doc/latex/beamer/"))) | |
7794 | (mkdir-p target) | |
7795 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7796 | ||
7797 | (mkdir-p docs) | |
7798 | (copy-recursively (assoc-ref %build-inputs "docs") docs) | |
7799 | #t)))) | |
7800 | (propagated-inputs | |
7801 | `(("texlive-latex-hyperref" ,texlive-latex-hyperref) | |
7802 | ("texlive-latex-oberdiek" ,texlive-latex-oberdiek) | |
7803 | ("texlive-latex-etoolbox" ,texlive-latex-etoolbox) | |
7804 | ("texlive-latex-pgf" ,texlive-latex-pgf))) | |
7805 | (native-inputs | |
7806 | `(("docs" | |
7807 | ,(origin | |
7808 | (method svn-fetch) | |
7809 | (uri (svn-reference | |
7810 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7811 | %texlive-tag "/Master/texmf-dist/" | |
7812 | "/doc/latex/beamer")) | |
7813 | (revision %texlive-revision))) | |
7814 | (file-name (string-append name "-" version "-checkout")) | |
7815 | (sha256 | |
7816 | (base32 | |
7817 | "102b18b9nw9dicqqgjwx0srh1mav8vh9wdvwayn741niza9hac23")))))) | |
7818 | (home-page "https://www.ctan.org/pkg/beamer") | |
7819 | (synopsis "LaTeX class for producing presentations and slides") | |
7820 | (description "The beamer LaTeX class can be used for producing slides. | |
7821 | The class works in both PostScript and direct PDF output modes, using the | |
7822 | @code{pgf} graphics system for visual effects. Content is created in the | |
7823 | @code{frame} environment, and each frame can be made up of a number of slides | |
7824 | using a simple notation for specifying material to appear on each slide within | |
7825 | a frame. Short versions of title, authors, institute can also be specified as | |
7826 | optional parameters. Whole frame graphics are supported by plain frames. The | |
7827 | class supports @code{figure} and @code{table} environments, transparency | |
7828 | effects, varying slide transitions and animations.") | |
7829 | ;; Code is dual licensed under GPLv2+ or LPPL1.3c+; documentation is | |
7830 | ;; dual-licensed under either FDLv1.3+ or LPPL1.3c+. | |
7831 | (license (list license:lppl1.3c+ license:gpl2+ license:fdl1.3+)))) | |
cafd4d38 RW |
7832 | |
7833 | (define-public texlive-latex-xmpincl | |
7834 | (package | |
7835 | (name "texlive-latex-xmpincl") | |
7836 | (version (number->string %texlive-revision)) | |
7837 | (source | |
7838 | (origin | |
7839 | (method svn-fetch) | |
7840 | (uri (texlive-ref "latex" "xmpincl")) | |
7841 | (sha256 | |
7842 | (base32 | |
7843 | "0lq3dfb4fsw955gjwllnk7cg00ciq5mva64mlpbva6g2jz117734")))) | |
7844 | (build-system texlive-build-system) | |
7845 | (arguments '(#:tex-directory "latex/xmpincl")) | |
7846 | (home-page "http://www.ctan.org/pkg/xmpincl") | |
7847 | (synopsis "Include eXtensible Metadata Platform data in pdfLaTeX") | |
7848 | (description | |
7849 | "The XMP (eXtensible Metadata platform) is a framework to add metadata to | |
7850 | digital material to enhance the workflow in publication. The essence is that | |
7851 | the metadata is stored in an XML file, and this XML stream is then embedded in | |
7852 | the file to which it applies.") | |
7853 | (license license:gpl3+))) | |
f87dcb4d RW |
7854 | |
7855 | (define-public texlive-latex-pdfx | |
7856 | (package | |
7857 | (name "texlive-latex-pdfx") | |
7858 | (version (number->string %texlive-revision)) | |
7859 | (source | |
7860 | (origin | |
7861 | (method svn-fetch) | |
7862 | (uri (texlive-ref "latex" "pdfx")) | |
7863 | (sha256 | |
7864 | (base32 | |
7865 | "0ikxg8yzq78hy5b9x13d4nah46d0yvmwlqmdri06pygbx116dcac")))) | |
7866 | (build-system texlive-build-system) | |
7867 | (arguments | |
7868 | '(#:tex-directory "latex/pdfx" | |
7869 | #:phases | |
7870 | (modify-phases %standard-phases | |
7871 | (add-after 'unpack 'fix-encoding | |
7872 | (lambda _ | |
7873 | (substitute* "pdfx.dtx" | |
7874 | ((" .+umaczy") "umaczy")) | |
7875 | #t)) | |
7876 | (add-before 'install 'install-tex-files | |
7877 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
7878 | (let ((target (string-append (assoc-ref outputs "out") | |
7879 | "/share/texmf-dist/tex/latex/pdfx"))) | |
7880 | (mkdir-p target) | |
7881 | (copy-recursively (assoc-ref inputs "texlive-tex-pdfx") target) | |
7882 | ;; Install the generated version in the "install" phase. | |
7883 | (delete-file (string-append target "/pdfx.sty")) | |
7884 | #t)))))) | |
7885 | (propagated-inputs | |
7886 | `(("texlive-generic-pdftex" ,texlive-generic-pdftex))) | |
7887 | (native-inputs | |
7888 | `(("texlive-tex-pdfx" | |
7889 | ,(origin | |
7890 | (method svn-fetch) | |
7891 | (uri (svn-reference | |
7892 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
7893 | %texlive-tag "/Master/texmf-dist/" | |
7894 | "/tex/latex/pdfx")) | |
7895 | (revision %texlive-revision))) | |
7896 | (file-name (string-append "texlive-tex-latex-pdfx-" version "-checkout")) | |
7897 | (sha256 | |
7898 | (base32 | |
7899 | "14j1zsvqc59ims3sk34v6km8db6cimks28y5fcxcr5mi2ykvj4vf")))))) | |
7900 | (home-page "https://www.ctan.org/pkg/pdfx") | |
7901 | (synopsis "PDF/X and PDF/A support for pdfTeX, LuaTeX and XeTeX") | |
7902 | (description | |
7903 | "This package helps LaTeX users to create PDF/X, PFD/A and other | |
7904 | standards-compliant PDF documents with pdfTeX, LuaTeX and XeTeX.") | |
7905 | (license license:lppl1.2+))) |