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> |
7a15a68f | 6 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
2d634d9b | 7 | ;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch> |
bd917486 | 8 | ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be> |
9d913b25 | 9 | ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net> |
eb0119ef AE |
10 | ;;; |
11 | ;;; This file is part of GNU Guix. | |
12 | ;;; | |
13 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
14 | ;;; under the terms of the GNU General Public License as published by | |
15 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
16 | ;;; your option) any later version. | |
17 | ;;; | |
18 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
19 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | ;;; GNU General Public License for more details. | |
22 | ;;; | |
23 | ;;; You should have received a copy of the GNU General Public License | |
24 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
25 | ||
8f9ac901 | 26 | (define-module (gnu packages tex) |
b5b73a82 | 27 | #:use-module ((guix licenses) #:prefix license:) |
eb0119ef AE |
28 | #:use-module (guix packages) |
29 | #:use-module (guix download) | |
30 | #:use-module (guix build-system gnu) | |
ebcf74da | 31 | #:use-module (guix build-system perl) |
0aa34e82 | 32 | #:use-module (guix build-system trivial) |
205794c8 | 33 | #:use-module (guix build-system texlive) |
6b5eb840 | 34 | #:use-module (guix utils) |
83457fe0 | 35 | #:use-module (guix git-download) |
9d913b25 | 36 | #:use-module (guix svn-download) |
eb0119ef | 37 | #:use-module (gnu packages) |
83457fe0 | 38 | #:use-module (gnu packages autotools) |
0aa34e82 | 39 | #:use-module (gnu packages bash) |
eb0119ef | 40 | #:use-module (gnu packages compression) |
a86177d6 | 41 | #:use-module (gnu packages fontutils) |
fd89b36b | 42 | #:use-module (gnu packages gd) |
eb0119ef | 43 | #:use-module (gnu packages ghostscript) |
fd89b36b | 44 | #:use-module (gnu packages gtk) |
eb0119ef | 45 | #:use-module (gnu packages icu4c) |
e55354b8 | 46 | #:use-module (gnu packages image) |
0aa34e82 | 47 | #:use-module (gnu packages lua) |
0256c746 | 48 | #:use-module (gnu packages multiprecision) |
eb0119ef AE |
49 | #:use-module (gnu packages pdf) |
50 | #:use-module (gnu packages perl) | |
51 | #:use-module (gnu packages pkg-config) | |
52 | #:use-module (gnu packages python) | |
4791876c | 53 | #:use-module (gnu packages qt) |
b32c8549 | 54 | #:use-module (gnu packages ruby) |
b7194849 | 55 | #:use-module (gnu packages shells) |
ce0614dd | 56 | #:use-module (gnu packages base) |
d4000680 RW |
57 | #:use-module (gnu packages web) |
58 | #:use-module (gnu packages xml) | |
c0589f75 | 59 | #:use-module (gnu packages xorg) |
ece9b417 | 60 | #:use-module (gnu packages xdisorg) |
6b5eb840 AE |
61 | #:autoload (gnu packages texinfo) (texinfo) |
62 | #:use-module (ice-9 ftw) | |
cb7bc20a | 63 | #:use-module (ice-9 match) |
e93f472d | 64 | #:use-module ((srfi srfi-1) #:hide (zip))) |
eb0119ef AE |
65 | |
66 | (define texlive-extra-src | |
67 | (origin | |
68 | (method url-fetch) | |
7a15a68f | 69 | (uri "ftp://tug.org/historic/systems/texlive/2016/texlive-20160523-extra.tar.xz") |
eb0119ef | 70 | (sha256 (base32 |
7a15a68f | 71 | "0q4a92zmwhn4ry6xgrp4k8wq11ax2sg9rg9yrsrdkr719y0x887a")))) |
eb0119ef AE |
72 | |
73 | (define texlive-texmf-src | |
74 | (origin | |
75 | (method url-fetch) | |
29a56d8e | 76 | (uri "ftp://tug.org/historic/systems/texlive/2016/texlive-20160523b-texmf.tar.xz") |
e20784e6 LF |
77 | (patches (search-patches "texlive-texmf-CVE-2016-10243.patch")) |
78 | (patch-flags '("-p2")) | |
eb0119ef | 79 | (sha256 (base32 |
29a56d8e | 80 | "1dv8vgfzpczqw82hv9g7a8djhhyzywljmrarlcyy6g2qi5q51glr")))) |
eb0119ef | 81 | |
3abe72bd | 82 | (define-public texlive-bin |
eb0119ef | 83 | (package |
0aa34e82 | 84 | (name "texlive-bin") |
7a15a68f | 85 | (version "2016") |
0aa34e82 AE |
86 | (source |
87 | (origin | |
88 | (method url-fetch) | |
29a56d8e | 89 | (uri "ftp://tug.org/historic/systems/texlive/2016/texlive-20160523b-source.tar.xz") |
0aa34e82 | 90 | (sha256 (base32 |
29a56d8e | 91 | "1v91vahxlxkdra0qz3f132vvx5d9cx2jy84yl1hkch0agyj2rcx8")))) |
eb0119ef | 92 | (build-system gnu-build-system) |
0aa34e82 AE |
93 | (inputs |
94 | `(("texlive-extra-src" ,texlive-extra-src) | |
95 | ("cairo" ,cairo) | |
96 | ("fontconfig" ,fontconfig) | |
97 | ("fontforge" ,fontforge) | |
98 | ("freetype" ,freetype) | |
99 | ("gd" ,gd) | |
0256c746 | 100 | ("gmp" ,gmp) |
0aa34e82 AE |
101 | ("ghostscript" ,ghostscript) |
102 | ("graphite2" ,graphite2) | |
103 | ("harfbuzz" ,harfbuzz) | |
104 | ("icu4c" ,icu4c) | |
105 | ("libpaper" ,libpaper) | |
106 | ("libpng" ,libpng) | |
107 | ("libxaw" ,libxaw) | |
108 | ("libxt" ,libxt) | |
0256c746 | 109 | ("mpfr" ,mpfr) |
0aa34e82 AE |
110 | ("perl" ,perl) |
111 | ("pixman" ,pixman) | |
112 | ("poppler" ,poppler) | |
113 | ("potrace" ,potrace) | |
114 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) | |
115 | ("ruby" ,ruby) | |
116 | ("tcsh" ,tcsh) | |
117 | ("teckit" ,teckit) | |
118 | ("zlib" ,zlib) | |
119 | ("zziplib" ,zziplib))) | |
c4c4cc05 | 120 | (native-inputs |
e9a6d225 | 121 | `(("pkg-config" ,pkg-config))) |
eb0119ef AE |
122 | (arguments |
123 | `(#:out-of-source? #t | |
124 | #:configure-flags | |
125 | `("--disable-native-texlive-build" | |
fd89b36b | 126 | "--with-system-cairo" |
eb0119ef | 127 | "--with-system-freetype2" |
fd89b36b | 128 | "--with-system-gd" |
0256c746 | 129 | "--with-system-gmp" |
be2c88ca | 130 | "--with-system-graphite2" |
c70cf7eb | 131 | "--with-system-harfbuzz" |
eb0119ef AE |
132 | "--with-system-icu" |
133 | "--with-system-libgs" | |
609578a7 | 134 | "--with-system-libpaper" |
eb0119ef | 135 | "--with-system-libpng" |
0256c746 | 136 | "--with-system-mpfr" |
fd89b36b | 137 | "--with-system-pixman" |
eb0119ef | 138 | "--with-system-poppler" |
75916982 | 139 | "--with-system-potrace" |
eb0119ef AE |
140 | "--with-system-teckit" |
141 | "--with-system-xpdf" | |
142 | "--with-system-zlib" | |
143 | "--with-system-zziplib") | |
2f4640e3 MW |
144 | |
145 | ;; Disable tests on mips64 to cope with a failure of luajiterr.test. | |
146 | ;; XXX FIXME fix luajit properly on mips64. | |
d2e84281 | 147 | #:tests? ,(not (string-prefix? "mips64" (or (%current-target-system) |
2f4640e3 | 148 | (%current-system)))) |
eb0119ef | 149 | #:phases |
4a6635f3 AE |
150 | (modify-phases %standard-phases |
151 | (add-after 'install 'postint | |
152 | (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) | |
153 | (let* ((out (assoc-ref outputs "out")) | |
154 | (share (string-append out "/share")) | |
155 | (texlive-extra (assoc-ref inputs "texlive-extra-src")) | |
156 | (unpack (assoc-ref %standard-phases 'unpack)) | |
157 | (patch-source-shebangs | |
158 | (assoc-ref %standard-phases 'patch-source-shebangs))) | |
159 | ;; Create symbolic links for the latex variants and their | |
160 | ;; man pages. | |
161 | (with-directory-excursion (string-append out "/bin/") | |
162 | (for-each symlink | |
163 | '("pdftex" "pdftex" "xetex" "luatex") | |
164 | '("latex" "pdflatex" "xelatex" "lualatex"))) | |
165 | (with-directory-excursion (string-append share "/man/man1/") | |
166 | (symlink "luatex.1" "lualatex.1")) | |
167 | ;; Unpack texlive-extra and install tlpkg. | |
168 | (mkdir "texlive-extra") | |
169 | (with-directory-excursion "texlive-extra" | |
170 | (apply unpack (list #:source texlive-extra)) | |
171 | (apply patch-source-shebangs (list #:source texlive-extra)) | |
172 | (system* "mv" "tlpkg" share)))))))) | |
0aa34e82 AE |
173 | (synopsis "TeX Live, a package of the TeX typesetting system") |
174 | (description | |
175 | "TeX Live provides a comprehensive TeX document production system. | |
176 | It includes all the major TeX-related programs, macro packages, and fonts | |
177 | that are free software, including support for many languages around the | |
178 | world. | |
179 | ||
180 | This package contains the binaries.") | |
132e14b4 EF |
181 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
182 | (home-page "https://www.tug.org/texlive/"))) | |
0aa34e82 | 183 | |
9d913b25 RW |
184 | (define-public texlive-dvips |
185 | (package | |
186 | (name "texlive-dvips") | |
187 | (version (number->string %texlive-revision)) | |
188 | (source (origin | |
189 | (method svn-fetch) | |
190 | (uri (svn-reference | |
191 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
192 | %texlive-tag "/Master/texmf-dist/" | |
193 | "/dvips")) | |
194 | (revision %texlive-revision))) | |
195 | (sha256 | |
196 | (base32 | |
15dc52e5 | 197 | "0fcy2hpapbj01ncpjj3v39yhr0jjxb6rm13qaxjjw66s3vydxls1")))) |
9d913b25 RW |
198 | (build-system trivial-build-system) |
199 | (arguments | |
200 | `(#:modules ((guix build utils)) | |
201 | #:builder | |
202 | (begin | |
203 | (use-modules (guix build utils)) | |
47019467 RW |
204 | (let* ((root (string-append (assoc-ref %outputs "out") |
205 | "/share/texmf-dist")) | |
206 | (dvips (string-append root "/dvips")) | |
207 | (maps (string-append root "/fonts/map/dvips/tetex")) | |
208 | (encs (string-append root "/fonts/enc/dvips/base"))) | |
209 | (mkdir-p dvips) | |
210 | (copy-recursively (assoc-ref %build-inputs "source") dvips) | |
211 | (mkdir-p maps) | |
212 | (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps) | |
213 | (mkdir-p encs) | |
214 | (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs) | |
9d913b25 | 215 | #t)))) |
47019467 RW |
216 | (native-inputs |
217 | `(("dvips-font-maps" | |
218 | ,(origin | |
219 | (method svn-fetch) | |
220 | (uri (svn-reference | |
221 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
222 | %texlive-tag "/Master/texmf-dist/" | |
223 | "/fonts/map/dvips/tetex")) | |
224 | (revision %texlive-revision))) | |
225 | (sha256 | |
226 | (base32 | |
227 | "100208pg7q6lj7swiq9p9287nn6b64bl62bnlaxpjni9y2kdrqy5")))) | |
228 | ("dvips-base-enc" | |
229 | ,(origin | |
230 | (method svn-fetch) | |
231 | (uri (svn-reference | |
232 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
233 | %texlive-tag "/Master/texmf-dist/" | |
234 | "/fonts/enc/dvips/base")) | |
235 | (revision %texlive-revision))) | |
236 | (sha256 | |
237 | (base32 | |
238 | "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy")))))) | |
9d913b25 RW |
239 | (home-page "http://www.ctan.org/pkg/dvips") |
240 | (synopsis "DVI to PostScript drivers") | |
241 | (description "This package provides files needed for converting DVI files | |
242 | to PostScript.") | |
243 | ;; Various free software licenses apply to individual files. | |
244 | (license (list license:lppl1.3c+ | |
245 | license:expat | |
246 | license:lgpl3+)))) | |
247 | ||
99952c53 RW |
248 | (define-public texlive-generic-unicode-data |
249 | (package | |
250 | (name "texlive-generic-unicode-data") | |
251 | (version (number->string %texlive-revision)) | |
252 | (source (origin | |
253 | (method svn-fetch) | |
254 | (uri (svn-reference | |
255 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
256 | %texlive-tag "/Master/texmf-dist/" | |
257 | "/tex/generic/unicode-data")) | |
258 | (revision %texlive-revision))) | |
259 | (sha256 | |
260 | (base32 | |
261 | "0ivrhp6jz31pl4z841g4ws41lmvdiwz4sslmhf02inlib79gz6r2")))) | |
262 | (build-system trivial-build-system) | |
263 | (arguments | |
264 | `(#:modules ((guix build utils)) | |
265 | #:builder | |
266 | (begin | |
267 | (use-modules (guix build utils)) | |
268 | (let ((target (string-append (assoc-ref %outputs "out") | |
269 | "/share/texmf-dist/tex/generic/unicode-data"))) | |
270 | (mkdir-p target) | |
271 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
272 | #t)))) | |
273 | (home-page "http://www.ctan.org/pkg/unicode-data") | |
274 | (synopsis "Unicode data and loaders for TeX") | |
275 | (description "This bundle provides generic access to Unicode Consortium | |
276 | data for TeX use. It contains a set of text files provided by the Unicode | |
277 | Consortium which are currently all from Unicode 8.0.0, with the exception of | |
278 | @code{MathClass.txt} which is not currently part of the Unicode Character | |
279 | Database. Accompanying these source data are generic TeX loader files | |
280 | allowing this data to be used as part of TeX runs, in particular in building | |
281 | format files. Currently there are two loader files: one for general character | |
282 | set up and one for initializing XeTeX character classes as has been carried | |
283 | out to date by @code{unicode-letters.tex}. ") | |
284 | (license license:lppl1.3c+))) | |
285 | ||
9e99b1b4 RW |
286 | (define-public texlive-generic-dehyph-exptl |
287 | (package | |
288 | (name "texlive-generic-dehyph-exptl") | |
289 | (version (number->string %texlive-revision)) | |
290 | (source (origin | |
291 | (method svn-fetch) | |
292 | (uri (svn-reference | |
293 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
294 | %texlive-tag "/Master/texmf-dist/" | |
295 | "/tex/generic/dehyph-exptl")) | |
296 | (revision %texlive-revision))) | |
297 | (sha256 | |
298 | (base32 | |
299 | "1l9wgv99qq0ysvlxqpj4g8bl0dywbzra4g8m2kmpg2fb0i0hczap")))) | |
300 | (build-system trivial-build-system) | |
301 | (arguments | |
302 | `(#:modules ((guix build utils)) | |
303 | #:builder | |
304 | (begin | |
305 | (use-modules (guix build utils)) | |
306 | (let ((target (string-append (assoc-ref %outputs "out") | |
307 | "/share/texmf-dist/tex/generic/dehyph-exptl"))) | |
308 | (mkdir-p target) | |
309 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
310 | #t)))) | |
311 | (home-page "http://projekte.dante.de/Trennmuster/WebHome") | |
312 | (synopsis "Hyphenation patterns for German") | |
313 | (description "The package provides experimental hyphenation patterns for | |
314 | the German language, covering both traditional and reformed orthography. The | |
315 | patterns can be used with packages Babel and hyphsubst from the Oberdiek | |
316 | bundle.") | |
317 | ;; Hyphenation patterns are under the Expat license; documentation is | |
318 | ;; under LPPL. | |
319 | (license (list license:expat license:lppl)))) | |
320 | ||
453aae66 RW |
321 | (define-public texlive-generic-tex-ini-files |
322 | (package | |
323 | (name "texlive-generic-tex-ini-files") | |
324 | (version (number->string %texlive-revision)) | |
325 | (source (origin | |
326 | (method svn-fetch) | |
327 | (uri (svn-reference | |
328 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
329 | %texlive-tag "/Master/texmf-dist/" | |
330 | "/tex/generic/tex-ini-files")) | |
331 | (revision %texlive-revision))) | |
332 | (sha256 | |
333 | (base32 | |
334 | "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5")))) | |
335 | (build-system trivial-build-system) | |
336 | (arguments | |
337 | `(#:modules ((guix build utils)) | |
338 | #:builder | |
339 | (begin | |
340 | (use-modules (guix build utils)) | |
341 | (let ((target (string-append (assoc-ref %outputs "out") | |
342 | "/share/texmf-dist/tex/generic/tex-ini-files"))) | |
343 | (mkdir-p target) | |
344 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
345 | #t)))) | |
346 | (home-page "http://ctan.org/pkg/tex-ini-files") | |
347 | (synopsis "Files for creating TeX formats") | |
348 | (description "This bundle provides a collection of model \".ini\" files | |
349 | for creating TeX formats. These files are commonly used to introduced | |
350 | distribution-dependent variations in formats. They are also used to | |
351 | allow existing format source files to be used with newer engines, for example | |
352 | to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.") | |
353 | (license license:public-domain))) | |
354 | ||
9b134da8 RW |
355 | (define-public texlive-generic-hyph-utf8 |
356 | (package | |
357 | (name "texlive-generic-hyph-utf8") | |
358 | (version (number->string %texlive-revision)) | |
359 | (source (origin | |
360 | (method svn-fetch) | |
361 | (uri (svn-reference | |
362 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
363 | %texlive-tag "/Master/texmf-dist/" | |
364 | "/tex/generic/hyph-utf8")) | |
365 | (revision %texlive-revision))) | |
366 | (sha256 | |
367 | (base32 | |
368 | "0ghizcz7ps16dzfqf66wwg5i181assc6qsm0g7g5dbmp909931vi")))) | |
369 | (build-system trivial-build-system) | |
370 | (arguments | |
371 | `(#:modules ((guix build utils)) | |
372 | #:builder | |
373 | (begin | |
374 | (use-modules (guix build utils)) | |
375 | (let ((target (string-append (assoc-ref %outputs "out") | |
376 | "/share/texmf-dist/tex/generic/hyph-utf8"))) | |
377 | (mkdir-p target) | |
378 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
379 | #t)))) | |
380 | (home-page "http://ctan.org/pkg/hyph-utf8") | |
381 | (synopsis "Hyphenation patterns expressed in UTF-8") | |
382 | (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need | |
383 | hyphenation patterns in UTF-8 format, whereas older systems require | |
384 | hyphenation patterns in the 8-bit encoding of the font in use (such encodings | |
385 | are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1, | |
386 | etc). The present package offers a collection of conversions of existing | |
387 | patterns to UTF-8 format, together with converters for use with 8-bit fonts in | |
388 | older systems. Since hyphenation patterns for Knuthian-style TeX systems are | |
389 | only read at iniTeX time, it is hoped that the UTF-8 patterns, with their | |
390 | converters, will completely supplant the older patterns.") | |
391 | ;; Individual files each have their own license. Most of these files are | |
392 | ;; independent hyphenation patterns. | |
393 | (license (list license:lppl1.0+ | |
394 | license:lppl1.2+ | |
395 | license:lppl1.3 | |
396 | license:lppl1.3+ | |
397 | license:lppl1.3a+ | |
398 | license:lgpl2.1 | |
399 | license:lgpl2.1+ | |
400 | license:lgpl3+ | |
401 | license:gpl2+ | |
402 | license:gpl3+ | |
403 | license:mpl1.1 | |
404 | license:asl2.0 | |
405 | license:expat | |
406 | license:bsd-3 | |
407 | license:cc0 | |
408 | license:public-domain | |
409 | license:wtfpl2)))) | |
410 | ||
8ada0f0b RW |
411 | (define-public texlive-metafont-base |
412 | (package | |
413 | (name "texlive-metafont-base") | |
414 | (version (number->string %texlive-revision)) | |
415 | (source (origin | |
416 | (method svn-fetch) | |
417 | (uri (svn-reference | |
418 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
419 | %texlive-tag "/Master/texmf-dist/" | |
420 | "/metafont")) | |
421 | (revision %texlive-revision))) | |
422 | (sha256 | |
423 | (base32 | |
424 | "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5")))) | |
425 | (build-system gnu-build-system) | |
426 | (arguments | |
427 | `(#:tests? #f ; no test target | |
428 | #:phases | |
429 | (modify-phases %standard-phases | |
430 | (delete 'configure) | |
431 | (replace 'build | |
432 | (lambda* (#:key inputs #:allow-other-keys) | |
433 | (let ((cwd (getcwd))) | |
434 | (setenv "MFINPUTS" | |
435 | (string-append cwd "/base:" | |
436 | cwd "/misc:" | |
437 | cwd "/roex:" | |
438 | cwd "/feynmf:" | |
439 | cwd "/mfpic:" | |
440 | cwd "/config"))) | |
441 | (mkdir "build") | |
442 | (with-directory-excursion "build" | |
443 | (zero? (system* "inimf" "mf.mf"))))) | |
444 | (replace 'install | |
445 | (lambda* (#:key outputs #:allow-other-keys) | |
446 | (let* ((out (assoc-ref outputs "out")) | |
447 | (base (string-append out "/share/texmf-dist/web2c")) | |
448 | (mf (string-append out "/share/texmf-dist/metafont/base"))) | |
449 | (mkdir-p base) | |
450 | (mkdir-p mf) | |
451 | (install-file "build/mf.base" base) | |
452 | (copy-recursively "base" mf) | |
453 | #t)))))) | |
454 | (native-inputs | |
455 | `(("texlive-bin" ,texlive-bin))) | |
456 | (home-page "http://www.ctan.org/pkg/metafont") | |
457 | (synopsis "Metafont base files") | |
458 | (description "This package provides the Metafont base files needed to | |
459 | build fonts using the Metafont system.") | |
460 | (license license:knuth))) | |
461 | ||
dea67d8a RW |
462 | (define-public texlive-fontname |
463 | (package | |
464 | (name "texlive-fontname") | |
465 | (version (number->string %texlive-revision)) | |
466 | (source (origin | |
467 | (method svn-fetch) | |
468 | (uri (svn-reference | |
469 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
470 | %texlive-tag "/Master/texmf-dist/" | |
471 | "/fonts/map/fontname")) | |
472 | (revision %texlive-revision))) | |
473 | (file-name (string-append name "-" version ".tar.gz")) | |
474 | (sha256 | |
475 | (base32 | |
476 | "0cssbzcx15221dynp5sii72qh4l18mwkr14n8w1xb19j8pbaqasz")))) | |
477 | (build-system trivial-build-system) | |
478 | (arguments | |
479 | `(#:modules ((guix build utils)) | |
480 | #:builder | |
481 | (begin | |
482 | (use-modules (guix build utils)) | |
483 | (let ((target (string-append (assoc-ref %outputs "out") | |
484 | "/share/texmf-dist/fonts/map/fontname"))) | |
485 | (mkdir-p target) | |
486 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
487 | #t)))) | |
488 | (home-page "https://www.ctan.org/pkg/fontname") | |
489 | (synopsis "Scheme for naming fonts in TeX") | |
490 | (description "This is Fontname, a naming scheme for (the base part of) | |
491 | external TeX font filenames. This makes at most eight-character names | |
492 | from (almost) arbitrarily complex font names, thus helping portability of TeX | |
493 | documents.") | |
494 | (license license:public-domain))) | |
495 | ||
3c4f1ec7 RW |
496 | (define-public texlive-fonts-cm |
497 | (package | |
498 | (name "texlive-fonts-cm") | |
499 | (version (number->string %texlive-revision)) | |
500 | (source (origin | |
501 | (method svn-fetch) | |
502 | (uri (svn-reference | |
503 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
504 | %texlive-tag "/Master/texmf-dist/" | |
505 | "/fonts/source/public/cm")) | |
506 | (revision %texlive-revision))) | |
507 | (sha256 | |
508 | (base32 | |
509 | "045k5b9rdmbxpy1a3006l1x96z1rd18vg3cwrvnld9bqybw5qz44")))) | |
510 | (build-system gnu-build-system) | |
511 | (arguments | |
512 | `(#:modules ((guix build gnu-build-system) | |
513 | (guix build utils) | |
514 | (srfi srfi-1) | |
515 | (srfi srfi-26)) | |
516 | #:tests? #f ; no tests | |
517 | #:phases | |
518 | (modify-phases %standard-phases | |
519 | (delete 'configure) | |
520 | (replace 'build | |
521 | (lambda* (#:key inputs #:allow-other-keys) | |
522 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
523 | ;; Tell mf where to find mf.base | |
524 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
525 | ;; Tell mf where to look for source files | |
526 | (setenv "MFINPUTS" | |
527 | (string-append (getcwd) ":" | |
528 | mf "/share/texmf-dist/metafont/base"))) | |
529 | (mkdir "build") | |
530 | (every (lambda (font) | |
531 | (format #t "building font ~a\n" font) | |
532 | (zero? (system* "mf" "-progname=mf" | |
533 | "-output-directory=build" | |
534 | (string-append "\\" | |
535 | "mode:=ljfour; " | |
536 | "mag:=1; " | |
537 | "batchmode; " | |
538 | "input " | |
539 | (basename font ".mf"))))) | |
540 | (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$")))) | |
541 | (replace 'install | |
542 | (lambda* (#:key outputs #:allow-other-keys) | |
543 | (let* ((out (assoc-ref outputs "out")) | |
544 | (tfm (string-append | |
545 | out "/share/texmf-dist/fonts/tfm/public/cm")) | |
546 | (mf (string-append | |
547 | out "/share/texmf-dist/fonts/source/public/cm"))) | |
548 | (for-each (cut install-file <> tfm) | |
549 | (find-files "build" "\\.*")) | |
550 | (for-each (cut install-file <> mf) | |
551 | (find-files "." "\\.mf")) | |
552 | #t)))))) | |
553 | (native-inputs | |
554 | `(("texlive-bin" ,texlive-bin) | |
555 | ("texlive-metafont-base" ,texlive-metafont-base))) | |
556 | (home-page "http://www.ctan.org/pkg/cm") | |
557 | (synopsis "Computer Modern fonts for TeX") | |
558 | (description "This package provides the Computer Modern fonts by Donald | |
559 | Knuth. The Computer Modern font family is a large collection of text, | |
560 | display, and mathematical fonts in a range of styles, based on Monotype Modern | |
561 | 8A.") | |
562 | (license license:knuth))) | |
563 | ||
5ebba61a RW |
564 | (define-public texlive-fonts-knuth-lib |
565 | (package | |
566 | (name "texlive-fonts-knuth-lib") | |
567 | (version (number->string %texlive-revision)) | |
568 | (source (origin | |
569 | (method svn-fetch) | |
570 | (uri (svn-reference | |
571 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
572 | %texlive-tag "/Master/texmf-dist/" | |
573 | "/fonts/source/public/knuth-lib")) | |
574 | (revision %texlive-revision))) | |
575 | (sha256 | |
576 | (base32 | |
577 | "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y")))) | |
578 | (build-system gnu-build-system) | |
579 | (arguments | |
580 | `(#:modules ((guix build gnu-build-system) | |
581 | (guix build utils) | |
582 | (srfi srfi-26)) | |
583 | #:tests? #f ; no tests | |
584 | #:phases | |
585 | (modify-phases %standard-phases | |
586 | (delete 'configure) | |
587 | (replace 'build | |
588 | (lambda* (#:key inputs #:allow-other-keys) | |
589 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
590 | ;; Tell mf where to find mf.base | |
591 | (setenv "MFBASES" | |
592 | (string-append mf "/share/texmf-dist/web2c")) | |
593 | ;; Tell mf where to look for source files | |
594 | (setenv "MFINPUTS" | |
595 | (string-append (getcwd) ":" | |
596 | mf "/share/texmf-dist/metafont/base"))) | |
597 | (mkdir "build") | |
598 | (zero? (system* "mf" "-progname=mf" | |
599 | "-output-directory=build" | |
600 | (string-append "\\" | |
601 | "mode:=ljfour; " | |
602 | "mag:=1; " | |
603 | "batchmode; " | |
604 | "input manfnt"))))) | |
605 | (replace 'install | |
606 | (lambda* (#:key outputs #:allow-other-keys) | |
607 | (let* ((out (assoc-ref outputs "out")) | |
608 | (tfm (string-append | |
609 | out "/share/texmf-dist/fonts/tfm/public/knuth-lib")) | |
610 | (mf (string-append | |
611 | out "/share/texmf-dist/fonts/source/public/knuth-lib"))) | |
612 | (for-each (cut install-file <> tfm) | |
613 | (find-files "build" "\\.*")) | |
614 | (for-each (cut install-file <> mf) | |
615 | (find-files "." "\\.mf")) | |
616 | #t)))))) | |
617 | (native-inputs | |
618 | `(("texlive-bin" ,texlive-bin) | |
619 | ("texlive-metafont-base" ,texlive-metafont-base))) | |
620 | (home-page "https://www.ctan.org/pkg/knuth-lib") | |
621 | (synopsis "Small library of METAFONT sources") | |
622 | (description "This is a collection of core TeX and METAFONT macro files | |
623 | from Donald Knuth, including the plain format, plain base, and the MF logo | |
624 | fonts.") | |
625 | (license license:knuth))) | |
626 | ||
a00d5933 RW |
627 | (define-public texlive-fonts-latex |
628 | (package | |
629 | (name "texlive-fonts-latex") | |
630 | (version (number->string %texlive-revision)) | |
631 | (source (origin | |
632 | (method svn-fetch) | |
633 | (uri (svn-reference | |
634 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
635 | %texlive-tag "/Master/texmf-dist/" | |
636 | "/fonts/source/public/latex-fonts")) | |
637 | (revision %texlive-revision))) | |
638 | (sha256 | |
639 | (base32 | |
640 | "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps")))) | |
641 | (build-system gnu-build-system) | |
642 | (arguments | |
643 | `(#:modules ((guix build gnu-build-system) | |
644 | (guix build utils) | |
645 | (srfi srfi-1) | |
646 | (srfi srfi-26)) | |
647 | #:tests? #f ; no tests | |
648 | #:phases | |
649 | (modify-phases %standard-phases | |
650 | (delete 'configure) | |
651 | (replace 'build | |
652 | (lambda* (#:key inputs #:allow-other-keys) | |
653 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
654 | ;; Tell mf where to find mf.base | |
655 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
656 | ;; Tell mf where to look for source files | |
657 | (setenv "MFINPUTS" | |
658 | (string-append (getcwd) ":" | |
659 | mf "/share/texmf-dist/metafont/base:" | |
660 | (assoc-ref inputs "texlive-fonts-cm") | |
661 | "/share/texmf-dist/fonts/source/public/cm"))) | |
662 | (mkdir "build") | |
663 | (every (lambda (font) | |
664 | (format #t "building font ~a\n" font) | |
665 | (zero? (system* "mf" "-progname=mf" | |
666 | "-output-directory=build" | |
667 | (string-append "\\" | |
668 | "mode:=ljfour; " | |
669 | "mag:=1; " | |
670 | "batchmode; " | |
671 | "input " font)))) | |
672 | '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8" | |
673 | "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8" | |
674 | "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10" | |
675 | "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8" | |
676 | "line10" "linew10")))) | |
677 | (replace 'install | |
678 | (lambda* (#:key outputs #:allow-other-keys) | |
679 | (let* ((out (assoc-ref outputs "out")) | |
680 | (tfm (string-append | |
681 | out "/share/texmf-dist/fonts/tfm/public/latex-fonts")) | |
682 | (mf (string-append | |
683 | out "/share/texmf-dist/fonts/source/public/latex-fonts"))) | |
684 | (for-each (cut install-file <> tfm) | |
685 | (find-files "build" "\\.*")) | |
686 | (for-each (cut install-file <> mf) | |
687 | (find-files "." "\\.mf")) | |
688 | #t)))))) | |
689 | (native-inputs | |
690 | `(("texlive-bin" ,texlive-bin) | |
691 | ("texlive-metafont-base" ,texlive-metafont-base) | |
692 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
693 | (home-page "http://www.ctan.org/pkg/latex-fonts") | |
694 | (synopsis "Collection of fonts used in LaTeX distributions") | |
695 | (description "This is a collection of fonts for use with standard LaTeX | |
696 | packages and classes. It includes invisible fonts (for use with the slides | |
697 | class), line and circle fonts (for use in the picture environment) and LaTeX | |
698 | symbol fonts.") | |
699 | (license license:lppl1.2+))) | |
700 | ||
98b4aca1 RW |
701 | (define-public texlive-fonts-amsfonts |
702 | (package | |
703 | (name "texlive-fonts-amsfonts") | |
704 | (version (number->string %texlive-revision)) | |
705 | (source (origin | |
706 | (method svn-fetch) | |
707 | (uri (svn-reference | |
708 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
709 | %texlive-tag "/Master/texmf-dist/" | |
710 | "/fonts/source/public/amsfonts")) | |
711 | (revision %texlive-revision))) | |
712 | (sha256 | |
713 | (base32 | |
714 | "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb")))) | |
715 | (build-system gnu-build-system) | |
716 | (arguments | |
717 | `(#:modules ((guix build gnu-build-system) | |
718 | (guix build utils) | |
719 | (srfi srfi-1) | |
720 | (srfi srfi-26)) | |
721 | #:tests? #f ; no tests | |
722 | #:phases | |
723 | (modify-phases %standard-phases | |
724 | (delete 'configure) | |
725 | (replace 'build | |
726 | (lambda* (#:key inputs #:allow-other-keys) | |
727 | (let ((mf (assoc-ref inputs "texlive-metafont-base")) | |
728 | (cwd (getcwd))) | |
729 | ;; Tell mf where to find mf.base | |
730 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
731 | ;; Tell mf where to look for source files | |
732 | (setenv "MFINPUTS" | |
733 | (string-append cwd ":" | |
734 | cwd "/cmextra:" | |
735 | cwd "/cyrillic:" | |
736 | cwd "/dummy:" | |
737 | cwd "/symbols:" | |
738 | mf "/share/texmf-dist/metafont/base:" | |
739 | (assoc-ref inputs "texlive-fonts-cm") | |
740 | "/share/texmf-dist/fonts/source/public/cm"))) | |
741 | (mkdir "build") | |
742 | (every (lambda (font) | |
743 | (format #t "building font ~a\n" (basename font ".mf")) | |
744 | (with-directory-excursion (dirname font) | |
745 | (zero? (system* "mf" "-progname=mf" | |
746 | "-output-directory=../build" | |
747 | (string-append "\\" | |
748 | "mode:=ljfour; " | |
749 | "mag:=1; " | |
750 | "nonstopmode; " | |
751 | "input " | |
752 | (getcwd) "/" | |
753 | (basename font ".mf")))))) | |
754 | (find-files "." "[0-9]+\\.mf$")))) | |
755 | (replace 'install | |
756 | (lambda* (#:key outputs #:allow-other-keys) | |
757 | (let* ((out (assoc-ref outputs "out")) | |
758 | (tfm (string-append | |
759 | out "/share/texmf-dist/fonts/tfm/public/amsfonts")) | |
760 | (mf (string-append | |
761 | out "/share/texmf-dist/fonts/source/public/amsfonts"))) | |
762 | (for-each (cut install-file <> tfm) | |
763 | (find-files "build" "\\.*")) | |
764 | (for-each (cut install-file <> mf) | |
765 | (find-files "." "\\.mf")) | |
766 | #t)))))) | |
767 | (native-inputs | |
768 | `(("texlive-fonts-cm" ,texlive-fonts-cm) | |
769 | ("texlive-metafont-base" ,texlive-metafont-base) | |
770 | ("texlive-bin" ,texlive-bin))) | |
771 | (home-page "http://www.ctan.org/pkg/amsfonts") | |
772 | (synopsis "TeX fonts from the American Mathematical Society") | |
773 | (description | |
774 | "This package provides an extended set of fonts for use in mathematics, | |
775 | including: extra mathematical symbols; blackboard bold letters (uppercase | |
776 | only); fraktur letters; subscript sizes of bold math italic and bold Greek | |
777 | letters; subscript sizes of large symbols such as sum and product; added sizes | |
778 | of the Computer Modern small caps font; cyrillic fonts (from the University of | |
779 | Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1 | |
780 | files, and all except the Euler fonts are provided as Metafont source. The | |
781 | distribution also includes the canonical Type 1 versions of the Computer | |
782 | Modern family of fonts. The Euler fonts are supported by separate packages; | |
783 | details can be found in the documentation.") | |
784 | (license license:silofl1.1))) | |
785 | ||
137f9cbc RW |
786 | (define-public texlive-latex-amsfonts |
787 | (package | |
788 | (name "texlive-latex-amsfonts") | |
789 | (version (number->string %texlive-revision)) | |
790 | (source (origin | |
791 | (method svn-fetch) | |
792 | (uri (texlive-ref "latex" "amsfonts")) | |
793 | (sha256 | |
794 | (base32 | |
795 | "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm")))) | |
796 | (build-system texlive-build-system) | |
797 | (arguments '(#:tex-directory "latex/amsfonts")) | |
798 | (native-inputs | |
799 | `(("texlive-fonts-cm" ,texlive-fonts-cm) | |
800 | ("texlive-metafont-base" ,texlive-metafont-base))) | |
801 | (home-page "http://www.ctan.org/pkg/amsfonts") | |
802 | (synopsis "TeX fonts from the American Mathematical Society") | |
803 | (description | |
804 | "This package provides basic LaTeX support for the symbol fonts provides | |
805 | by the amsfonts package. It provides @code{amsfonts.sty}, with names of | |
806 | individual symbols defined in @code{amssymb.sty}.") | |
807 | (license license:silofl1.1))) | |
808 | ||
566e95f7 RW |
809 | ;; This provides etex.src which is needed to build various formats, including |
810 | ;; luatex.fmt and pdflatex.fmt | |
811 | (define-public texlive-tex-plain | |
812 | (package | |
813 | (name "texlive-tex-plain") | |
814 | (version (number->string %texlive-revision)) | |
815 | (source (origin | |
816 | (method svn-fetch) | |
817 | (uri (svn-reference | |
818 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
819 | %texlive-tag "/Master/texmf-dist/" | |
820 | "/tex/plain")) | |
821 | (revision %texlive-revision))) | |
822 | (sha256 | |
823 | (base32 | |
96c336be | 824 | "0mjgl3gscn3ps29yjambz1j9fg81ynnncb96vpprwx4xsijhsns0")))) |
566e95f7 RW |
825 | (build-system trivial-build-system) |
826 | (arguments | |
827 | `(#:modules ((guix build utils)) | |
828 | #:builder | |
829 | (begin | |
830 | (use-modules (guix build utils)) | |
831 | (let ((target (string-append (assoc-ref %outputs "out") | |
832 | "/share/texmf-dist/tex/plain"))) | |
833 | (mkdir-p target) | |
834 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
835 | #t)))) | |
836 | (home-page "https://www.ctan.org/pkg/plain") | |
837 | (synopsis "Plain TeX format and supporting files") | |
838 | (description | |
839 | "Contains files used to build the Plain TeX format, as described in the | |
840 | TeXbook, together with various supporting files (some also discussed in the | |
841 | book).") | |
842 | (license license:knuth))) | |
843 | ||
010f476f RW |
844 | (define-public texlive-latex-base |
845 | (let ((texlive-dir | |
846 | (lambda (dir hash) | |
847 | (origin | |
848 | (method svn-fetch) | |
849 | (uri (svn-reference | |
850 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
851 | %texlive-tag "/Master/texmf-dist/" | |
852 | dir)) | |
853 | (revision %texlive-revision))) | |
854 | (sha256 (base32 hash)))))) | |
855 | (package | |
856 | (name "texlive-latex-base") | |
857 | (version (number->string %texlive-revision)) | |
858 | (source (origin | |
859 | (method svn-fetch) | |
860 | (uri (texlive-ref "latex" "base")) | |
861 | (sha256 | |
862 | (base32 | |
863 | "1h9pir2hz6i9avc4lrl733p3zf4rpkg8537x1zdbhs91hvhikw9k")))) | |
864 | (build-system gnu-build-system) | |
865 | (arguments | |
866 | `(#:modules ((guix build gnu-build-system) | |
867 | (guix build utils) | |
868 | (ice-9 match) | |
869 | (srfi srfi-1) | |
870 | (srfi srfi-26)) | |
871 | #:tests? #f ; no tests | |
872 | #:phases | |
873 | (modify-phases %standard-phases | |
874 | (delete 'configure) | |
875 | (replace 'build | |
876 | (lambda* (#:key inputs #:allow-other-keys) | |
877 | ;; Find required fonts | |
878 | (setenv "TFMFONTS" | |
879 | (string-append (assoc-ref inputs "texlive-fonts-cm") | |
880 | "/share/texmf-dist/fonts/tfm/public/cm:" | |
881 | (assoc-ref inputs "texlive-fonts-latex") | |
882 | "/share/texmf-dist/fonts/tfm/public/latex-fonts:" | |
883 | (assoc-ref inputs "texlive-fonts-knuth-lib") | |
884 | "/share/texmf-dist/fonts/tfm/public/knuth-lib")) | |
885 | (setenv "TEXINPUTS" | |
886 | (string-append | |
887 | (getcwd) ":" | |
888 | (getcwd) "/build:" | |
889 | (string-join | |
890 | (append-map (match-lambda | |
891 | ((_ . dir) | |
892 | (find-files dir | |
893 | (lambda (_ stat) | |
894 | (eq? 'directory (stat:type stat))) | |
895 | #:directories? #t | |
896 | #:stat stat))) | |
897 | inputs) | |
898 | ":"))) | |
899 | ||
900 | ;; Create an empty texsys.cfg, because latex.ltx wants to include | |
901 | ;; it. This file must exist and it's fine if it's empty. | |
902 | (with-output-to-file "texsys.cfg" | |
903 | (lambda _ (format #t "%"))) | |
904 | ||
905 | (mkdir "build") | |
906 | (mkdir "web2c") | |
907 | (and (zero? (system* "luatex" "-ini" "-interaction=batchmode" | |
908 | "-output-directory=build" | |
909 | "unpack.ins")) | |
bd6e2385 RW |
910 | (zero? (system* "tex" "-ini" "-interaction=batchmode" |
911 | "-output-directory=web2c" | |
912 | "tex.ini")) | |
913 | ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which | |
914 | ;; is enabled only in extended mode (activated with a | |
915 | ;; leading asterisk). We should not use luatex here, | |
916 | ;; because that would make the generated format files | |
917 | ;; incompatible with any other TeX engine. | |
010f476f RW |
918 | (every |
919 | (lambda (format) | |
920 | (zero? (system* "latex" "-ini" "-interaction=batchmode" | |
921 | "-output-directory=web2c" | |
922 | "-translate-file=cp227.tcx" | |
923 | (string-append "*" format ".ini")))) | |
702f23b3 | 924 | '("latex" |
bd6e2385 RW |
925 | "pdflatex" |
926 | "pdfetex")) | |
702f23b3 RW |
927 | (every |
928 | (lambda (format) | |
929 | (zero? (system* format "-ini" "-interaction=batchmode" | |
930 | "-output-directory=web2c" | |
931 | (string-append "*" format ".ini")))) | |
932 | '("xetex" | |
933 | "xelatex")) | |
010f476f RW |
934 | (every |
935 | (lambda (format) | |
936 | (zero? (system* "luatex" "-ini" "-interaction=batchmode" | |
937 | "-output-directory=web2c" | |
938 | (string-append format ".ini")))) | |
702f23b3 | 939 | '("dviluatex" "dvilualatex" "luatex" "lualatex"))))) |
010f476f RW |
940 | (replace 'install |
941 | (lambda* (#:key outputs #:allow-other-keys) | |
942 | (let* ((out (assoc-ref outputs "out")) | |
943 | (target (string-append | |
944 | out "/share/texmf-dist/tex/latex/base")) | |
945 | (web2c (string-append | |
946 | out "/share/texmf-dist/web2c"))) | |
947 | (mkdir-p target) | |
948 | (mkdir-p web2c) | |
949 | (for-each delete-file (find-files "." "\\.(log|aux)$")) | |
950 | (for-each (cut install-file <> target) | |
951 | (find-files "build" ".*")) | |
952 | (for-each (cut install-file <> web2c) | |
953 | (find-files "web2c" ".*")) | |
bd6e2385 RW |
954 | ;; pdftex is really just the same as pdfetex, but since it |
955 | ;; doesn't have its own format file, we need to copy it. | |
956 | (copy-file "web2c/pdfetex.fmt" | |
957 | (string-append web2c "/pdftex.fmt")) | |
010f476f RW |
958 | #t)))))) |
959 | (native-inputs | |
960 | `(("texlive-bin" ,texlive-bin) | |
961 | ("texlive-generic-unicode-data" ,texlive-generic-unicode-data) | |
962 | ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl) | |
963 | ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files) | |
964 | ("texlive-latex-latexconfig" | |
965 | ,(texlive-dir "tex/latex/latexconfig/" | |
966 | "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf")) | |
967 | ("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8) | |
968 | ("texlive-generic-hyphen" | |
969 | ,(texlive-dir "tex/generic/hyphen/" | |
970 | "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd")) | |
971 | ("texlive-generic-ruhyphen" | |
972 | ,(texlive-dir "tex/generic/ruhyphen/" | |
973 | "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd")) | |
974 | ("texlive-generic-ukrhyph" | |
975 | ,(texlive-dir "tex/generic/ukrhyph/" | |
976 | "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv")) | |
977 | ("texlive-generic-config" | |
978 | ,(texlive-dir "tex/generic/config/" | |
979 | "19vj088p4kkp6xll0141m4kl6ssgdzhs3g10i232khb07aqiag8s")) | |
980 | ("texlive-tex-plain" ,texlive-tex-plain) | |
981 | ("texlive-fonts-cm" ,texlive-fonts-cm) | |
982 | ("texlive-fonts-latex" ,texlive-fonts-latex) | |
983 | ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib))) | |
984 | (home-page "http://www.ctan.org/pkg/latex-base") | |
985 | (synopsis "Base sources of LaTeX") | |
986 | (description | |
987 | "This bundle comprises the source of LaTeX itself, together with several | |
988 | packages which are considered \"part of the kernel\". This bundle, together | |
989 | with the required packages, constitutes what every LaTeX distribution should | |
990 | contain.") | |
991 | (license license:lppl1.3c+)))) | |
992 | ||
3e485ed2 RW |
993 | (define-public texlive-latex-filecontents |
994 | (package | |
995 | (name "texlive-latex-filecontents") | |
996 | (version (number->string %texlive-revision)) | |
997 | (source (origin | |
998 | (method svn-fetch) | |
999 | (uri (texlive-ref "latex" "filecontents")) | |
1000 | (sha256 | |
1001 | (base32 | |
1002 | "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q")))) | |
1003 | (build-system texlive-build-system) | |
1004 | (arguments '(#:tex-directory "latex/filecontents")) | |
1005 | (home-page "http://www.ctan.org/pkg/filecontents") | |
1006 | (synopsis "Extended filecontents and filecontents* environments") | |
1007 | (description | |
1008 | "LaTeX2e's @code{filecontents} and @code{filecontents*} environments | |
1009 | enable a LaTeX source file to generate external files as it runs through | |
1010 | LaTeX. However, there are two limitations of these environments: they refuse | |
1011 | to overwrite existing files, and they can only be used in the preamble of a | |
1012 | document. The filecontents package removes these limitations, letting you | |
1013 | overwrite existing files and letting you use @code{filecontents} / | |
1014 | @code{filecontents*} anywhere.") | |
1015 | (license license:lppl1.3c+))) | |
1016 | ||
1193aa89 RW |
1017 | (define-public texlive-generic-ifxetex |
1018 | (package | |
1019 | (name "texlive-generic-ifxetex") | |
fea8eef3 | 1020 | (version (number->string %texlive-revision)) |
1193aa89 RW |
1021 | (source (origin |
1022 | (method svn-fetch) | |
1023 | (uri (texlive-ref "generic" "ifxetex")) | |
1024 | (sha256 | |
1025 | (base32 | |
1026 | "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d")))) | |
1027 | (build-system texlive-build-system) | |
1028 | (arguments | |
1029 | '(#:tex-directory "generic/ifxetex" | |
1030 | #:tex-format "xelatex")) | |
1031 | (inputs | |
1032 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
1033 | (home-page "http://www.ctan.org/pkg/ifxetex") | |
1034 | (synopsis "Am I running under XeTeX?") | |
1035 | (description | |
1036 | "This is a simple package which provides an @code{\\ifxetex} conditional, | |
1037 | so that other code can determine that it is running under XeTeX. The package | |
beb476ed | 1038 | requires the e-TeX extensions to the TeX primitive set.") |
1193aa89 RW |
1039 | (license license:lppl1.3c+))) |
1040 | ||
9186c156 RW |
1041 | (define-public texlive-generic-epsf |
1042 | (package | |
1043 | (name "texlive-generic-epsf") | |
1044 | (version (number->string %texlive-revision)) | |
1045 | (source (origin | |
1046 | (method svn-fetch) | |
1047 | (uri (svn-reference | |
1048 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1049 | %texlive-tag "/Master/texmf-dist/" | |
1050 | "/tex/generic/epsf")) | |
1051 | (revision %texlive-revision))) | |
1052 | (sha256 | |
1053 | (base32 | |
1054 | "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy")))) | |
1055 | (build-system trivial-build-system) | |
1056 | (arguments | |
1057 | `(#:modules ((guix build utils)) | |
1058 | #:builder | |
1059 | (begin | |
1060 | (use-modules (guix build utils)) | |
1061 | (let ((target (string-append (assoc-ref %outputs "out") | |
1062 | "/share/texmf-dist/tex/generic/epfs"))) | |
1063 | (mkdir-p target) | |
1064 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
1065 | #t)))) | |
1066 | (home-page "http://www.ctan.org/pkg/epsf") | |
1067 | (synopsis "Simple macros for EPS inclusion") | |
1068 | (description | |
1069 | "This package provides the original (and now obsolescent) graphics | |
1070 | inclusion macros for use with dvips, still widely used by Plain TeX users (in | |
1071 | particular). For LaTeX users, the package is nowadays (rather strongly) | |
1072 | deprecated in favour of the more sophisticated standard LaTeX latex-graphics | |
1073 | bundle of packages. (The latex-graphics bundle is also available to Plain TeX | |
1074 | users, via its Plain TeX version.)") | |
1075 | (license license:public-domain))) | |
1076 | ||
437822a1 RW |
1077 | (define-public texlive-latex-fancyvrb |
1078 | (package | |
1079 | (name "texlive-latex-fancyvrb") | |
1080 | (version (number->string %texlive-revision)) | |
1081 | (source (origin | |
1082 | (method svn-fetch) | |
1083 | (uri (texlive-ref "latex" "fancyvrb")) | |
1084 | (sha256 | |
1085 | (base32 | |
1086 | "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv")))) | |
1087 | (build-system texlive-build-system) | |
1088 | (arguments | |
1089 | '(#:tex-directory "latex/fancyvrb" | |
1090 | ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and | |
1091 | ;; thus texlive-luatex-lualibs. | |
1092 | #:build-targets '("fancyvrb.ins"))) | |
1093 | (home-page "http://www.ctan.org/pkg/fancyvrb") | |
1094 | (synopsis "Sophisticated verbatim text") | |
1095 | (description | |
1096 | "This package provides tools for the flexible handling of verbatim text | |
1097 | including: verbatim commands in footnotes; a variety of verbatim environments | |
1098 | with many parameters; ability to define new customized verbatim environments; | |
1099 | save and restore verbatim text and environments; write and read files in | |
1100 | verbatim mode; build \"example\" environments (showing both result and | |
1101 | verbatim source).") | |
1102 | (license license:lppl1.0+))) | |
1103 | ||
4eebd2cd RW |
1104 | (define-public texlive-latex-graphics |
1105 | (package | |
1106 | (name "texlive-latex-graphics") | |
1107 | (version (number->string %texlive-revision)) | |
1108 | (source (origin | |
1109 | (method svn-fetch) | |
1110 | (uri (texlive-ref "latex" "graphics")) | |
1111 | (sha256 | |
1112 | (base32 | |
e3c970fc | 1113 | "07azyn0b1s49vbdlr6dmygrminxp72ndl24j1091hiiccvrjq3xc")))) |
4eebd2cd RW |
1114 | (build-system texlive-build-system) |
1115 | (arguments | |
1116 | '(#:tex-directory "latex/graphics" | |
1117 | #:phases | |
1118 | (modify-phases %standard-phases | |
1119 | (add-after 'install 'install-config | |
1120 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1121 | (let ((cfg (assoc-ref inputs "graphics-cfg")) | |
1122 | (target (string-append (assoc-ref outputs "out") | |
1123 | "/share/texmf-dist/tex/latex/graphics-cfg"))) | |
1124 | (mkdir-p target) | |
1125 | (install-file (string-append cfg "/graphics.cfg") target) | |
1126 | (install-file (string-append cfg "/color.cfg") target) | |
1127 | #t))) | |
1128 | (add-after 'install 'install-defs | |
1129 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1130 | (let ((def (assoc-ref inputs "graphics-def")) | |
1131 | (target (string-append (assoc-ref outputs "out") | |
1132 | "/share/texmf-dist/tex/latex/graphics-def"))) | |
1133 | (mkdir-p target) | |
1134 | (copy-recursively def target) | |
1135 | #t)))))) | |
1136 | (native-inputs | |
1137 | `(("graphics-cfg" | |
1138 | ,(origin | |
1139 | (method git-fetch) | |
1140 | (uri (git-reference | |
1141 | (url "https://github.com/latex3/graphics-cfg.git") | |
1142 | (commit "19d1238af17df376cd46333b229579b0f7f3a41f"))) | |
1143 | (sha256 | |
1144 | (base32 | |
1145 | "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh")))) | |
1146 | ("graphics-def" | |
1147 | ,(origin | |
1148 | (method svn-fetch) | |
1149 | (uri (svn-reference | |
1150 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1151 | %texlive-tag "/Master/texmf-dist/" | |
1152 | "/tex/latex/graphics-def")) | |
1153 | (revision %texlive-revision))) | |
1154 | (sha256 | |
1155 | (base32 | |
51c15375 | 1156 | "0gi4qv6378nl84s8n1yx3hjqvv7r4lza7hpbymbl5rzwgw8qrnyb")))))) |
4eebd2cd RW |
1157 | (home-page "http://www.ctan.org/pkg/latex-graphics") |
1158 | (synopsis "LaTeX standard graphics bundle") | |
1159 | (description | |
1160 | "This is a collection of LaTeX packages for producing color, including | |
1161 | graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX | |
1162 | documents. It comprises the packages color, graphics, graphicx, trig, epsfig, | |
1163 | keyval, and lscape.") | |
1164 | ;; The configuration files are released under CC0. | |
1165 | (license (list license:lppl1.3c+ | |
1166 | license:cc0)))) | |
1167 | ||
f5a6af42 RW |
1168 | (define-public texlive-latex-xcolor |
1169 | (package | |
1170 | (name "texlive-latex-xcolor") | |
1171 | (version (number->string %texlive-revision)) | |
1172 | (source (origin | |
1173 | (method svn-fetch) | |
1174 | (uri (texlive-ref "latex" "xcolor")) | |
1175 | (sha256 | |
1176 | (base32 | |
1177 | "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494")))) | |
1178 | (build-system texlive-build-system) | |
1179 | (arguments '(#:tex-directory "latex/xcolor")) | |
1180 | (home-page "http://www.ctan.org/pkg/xcolor") | |
1181 | (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX") | |
1182 | (description | |
1183 | "The package starts from the basic facilities of the colorcolor package, | |
1184 | and provides easy driver-independent access to several kinds of color tints, | |
1185 | shades, tones, and mixes of arbitrary colors. It allows a user to select a | |
1186 | document-wide target color model and offers complete tools for conversion | |
1187 | between eight color models. Additionally, there is a command for alternating | |
1188 | row colors plus repeated non-aligned material (like horizontal lines) in | |
1189 | tables.") | |
1190 | (license license:lppl1.2+))) | |
1191 | ||
4d660fdf RW |
1192 | (define-public texlive-latex-hyperref |
1193 | (package | |
1194 | (name "texlive-latex-hyperref") | |
1195 | (version "6.84a2") | |
1196 | ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx, | |
1197 | ;; so we fetch the release from GitHub. | |
1198 | (source (origin | |
1199 | (method url-fetch) | |
1200 | (uri (string-append "https://github.com/ho-tex/hyperref/" | |
1201 | "archive/release-" version ".tar.gz")) | |
1202 | (file-name (string-append name "-" version ".tar.gz")) | |
1203 | (sha256 | |
1204 | (base32 | |
1205 | "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2")))) | |
1206 | (build-system texlive-build-system) | |
1207 | (arguments '(#:tex-directory "latex/hyperref")) | |
1208 | (home-page "http://www.ctan.org/pkg/hyperref") | |
1209 | (synopsis "Extensive support for hypertext in LaTeX") | |
1210 | (description | |
1211 | "The hyperref package is used to handle cross-referencing commands in | |
1212 | LaTeX to produce hypertext links in the document. The package provides | |
1213 | backends for the special set defined for HyperTeX DVI processors; for embedded | |
1214 | pdfmark commands for processing by Acrobat Distiller (dvips and dvipsone); for | |
1215 | dviwindo; for PDF control within pdfTeX and dvipdfm; for TeX4ht; and for VTeX | |
1216 | pdf and HTML backends. The package is distributed with the backref and | |
1217 | nameref packages, which make use of the facilities of hyperref.") | |
1218 | (license license:lppl1.3+))) | |
1219 | ||
c3455b7d RW |
1220 | (define-public texlive-latex-oberdiek |
1221 | (package | |
1222 | (name "texlive-latex-oberdiek") | |
1223 | (version (number->string %texlive-revision)) | |
1224 | (source (origin | |
1225 | (method svn-fetch) | |
1226 | (uri (texlive-ref "latex" "oberdiek")) | |
1227 | (sha256 | |
1228 | (base32 | |
1229 | "0aswvsxgsn709xmvpcg50d2xl7vcy1ckdxb9c1cligqqfjjvviqf")))) | |
1230 | (build-system texlive-build-system) | |
1231 | (arguments | |
1232 | '(#:tex-directory "latex/oberdiek" | |
05d28068 | 1233 | #:build-targets '("oberdiek.ins") |
c3455b7d RW |
1234 | #:phases |
1235 | (modify-phases %standard-phases | |
05d28068 | 1236 | ;; "ifpdf.ins" is not generated, so we need to process the dtx file. |
c3455b7d RW |
1237 | (add-after 'unpack 'do-not-process-ifpdf.ins |
1238 | (lambda _ | |
1239 | (substitute* "oberdiek.ins" | |
05d28068 | 1240 | (("ifpdf.ins") "ifpdf.dtx")) |
c3455b7d RW |
1241 | #t))))) |
1242 | (home-page "http://www.ctan.org/pkg/oberdiek") | |
1243 | (synopsis "Bundle of packages submitted by Heiko Oberdiek") | |
1244 | (description | |
1245 | "The bundle comprises various LaTeX packages, providing among others: | |
1246 | better accessibility support for PDF files; extensible chemists reaction | |
1247 | arrows; record information about document class(es) used; and many more.") | |
1248 | (license license:lppl1.3+))) | |
1249 | ||
f2536af2 RW |
1250 | (define-public texlive-latex-tools |
1251 | (package | |
1252 | (name "texlive-latex-tools") | |
1253 | (version (number->string %texlive-revision)) | |
1254 | (source (origin | |
1255 | (method svn-fetch) | |
1256 | (uri (texlive-ref "latex" "tools")) | |
1257 | (sha256 | |
1258 | (base32 | |
1259 | "052a0pch2k5zls5jlay9xxcf93rw3i60a2x28y3ip3rhbsv3xgiz")))) | |
1260 | (build-system texlive-build-system) | |
1261 | (arguments | |
1262 | '(#:tex-directory "latex/tools" | |
1263 | #:build-targets '("tools.ins"))) | |
1264 | (home-page "http://www.ctan.org/pkg/latex-tools") | |
1265 | (synopsis "LaTeX standard tools bundle") | |
1266 | (description | |
1267 | "This package is a collection of (variously) simple tools provided as | |
1268 | part of the LaTeX required tools distribution, comprising the following | |
1269 | packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr, | |
1270 | fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol, | |
1271 | rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim, | |
1272 | xr, and xspace.") | |
1273 | (license license:lppl1.3+))) | |
1274 | ||
35adcc3a RW |
1275 | (define-public texlive-latex-url |
1276 | (package | |
1277 | (name "texlive-latex-url") | |
1278 | (version (number->string %texlive-revision)) | |
1279 | (source (origin | |
1280 | (method svn-fetch) | |
1281 | (uri (svn-reference | |
1282 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1283 | %texlive-tag "/Master/texmf-dist/" | |
1284 | "/tex/latex/url")) | |
1285 | (revision %texlive-revision))) | |
1286 | (sha256 | |
1287 | (base32 | |
1288 | "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac")))) | |
1289 | (build-system trivial-build-system) | |
1290 | (arguments | |
1291 | `(#:modules ((guix build utils)) | |
1292 | #:builder | |
1293 | (begin | |
1294 | (use-modules (guix build utils)) | |
1295 | (let ((target (string-append (assoc-ref %outputs "out") | |
1296 | "/share/texmf-dist/tex/latex/url"))) | |
1297 | (mkdir-p target) | |
1298 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
1299 | #t)))) | |
1300 | (home-page "https://www.ctan.org/pkg/url") | |
1301 | (synopsis "Verbatim with URL-sensitive line breaks") | |
1302 | (description "The command @code{\\url} is a form of verbatim command that | |
1303 | allows linebreaks at certain characters or combinations of characters, accepts | |
1304 | reconfiguration, and can usually be used in the argument to another command. | |
1305 | The command is intended for email addresses, hypertext links, | |
1306 | directories/paths, etc., which normally have no spaces, so by default the | |
1307 | package ignores spaces in its argument. However, a package option allows | |
1308 | spaces, which is useful for operating systems where spaces are a common part | |
1309 | of file names.") | |
1310 | ;; The license header states that it is under LPPL version 2 or later, but | |
1311 | ;; the latest version is 1.3c. | |
1312 | (license license:lppl1.3c+))) | |
1313 | ||
a5b1ef84 RW |
1314 | (define-public texlive-latex-l3kernel |
1315 | (package | |
1316 | (name "texlive-latex-l3kernel") | |
1317 | (version (number->string %texlive-revision)) | |
1318 | (source (origin | |
1319 | (method svn-fetch) | |
1320 | (uri (texlive-ref "latex" "l3kernel")) | |
1321 | (sha256 | |
1322 | (base32 | |
1f7d1010 | 1323 | "0r0wfk594j8wkdqhh21haimwsfq8x5jch4ldm21hkzk5dnmvpbg6")))) |
a5b1ef84 RW |
1324 | (build-system texlive-build-system) |
1325 | (arguments | |
1326 | '(#:tex-directory "latex/l3kernel")) | |
1327 | (home-page "http://www.ctan.org/pkg/l3kernel") | |
1328 | (synopsis "LaTeX3 programmers’ interface") | |
1329 | (description | |
1330 | "The l3kernel bundle provides an implementation of the LaTeX3 | |
1331 | programmers’ interface, as a set of packages that run under LaTeX 2e. The | |
1332 | interface provides the foundation on which the LaTeX3 kernel and other future | |
1333 | code are built: it is an API for TeX programmers. The packages are set up so | |
1334 | that the LaTeX3 conventions can be used with regular LaTeX 2e packages.") | |
1335 | (license license:lppl1.3c+))) | |
1336 | ||
cc09d48b RW |
1337 | (define-public texlive-latex-l3packages |
1338 | (package | |
1339 | (name "texlive-latex-l3packages") | |
1340 | (version (number->string %texlive-revision)) | |
1341 | (source (origin | |
1342 | (method svn-fetch) | |
1343 | (uri (texlive-ref "latex" "l3packages")) | |
1344 | (sha256 | |
1345 | (base32 | |
83474718 | 1346 | "16jplkvzdysfssijq9l051nsks65c2nrarsl17k8gjhc28yznj8y")))) |
cc09d48b RW |
1347 | (build-system texlive-build-system) |
1348 | (arguments | |
1349 | '(#:tex-directory "latex/l3packages" | |
1350 | #:phases | |
1351 | (modify-phases %standard-phases | |
1352 | ;; All package sources are in sub-directories, so we need to add them | |
1353 | ;; to TEXINPUTS. | |
1354 | (add-after 'unpack 'set-TEXINPUTS | |
1355 | (lambda _ | |
1356 | (let ((cwd (getcwd))) | |
1357 | (setenv "TEXINPUTS" | |
1358 | (string-append cwd "/l3keys2e:" | |
1359 | cwd "/xparse:" | |
1360 | cwd "/xfrac:" | |
1361 | cwd "/xfp:" | |
1362 | cwd "/xtemplate"))) | |
1363 | #t))))) | |
1364 | (inputs | |
1365 | `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel))) | |
1366 | (home-page "http://www.ctan.org/pkg/l3packages") | |
1367 | (synopsis "High-level LaTeX3 concepts") | |
1368 | (description | |
1369 | "This bundle holds prototype implementations of concepts for a LaTeX | |
1370 | designer interface, to be used with the experimental LaTeX kernel as | |
1371 | programming tools and kernel support. Packages provided in this release are: | |
1372 | ||
1373 | @enumerate | |
1374 | @item l3keys2e, which makes the facilities of the kernel module l3keys | |
1375 | available for use by LaTeX 2e packages; | |
1376 | @item xfrac, which provides flexible splitlevel fractions; | |
1377 | @item xparse, which provides a high-level interface for declaring document | |
1378 | commands; and | |
1379 | @item xtemplate, which provides a means of defining generic functions using a | |
1380 | key-value syntax. | |
1381 | @end enumerate\n") | |
1382 | (license license:lppl1.3c+))) | |
1383 | ||
58308491 RW |
1384 | (define-public texlive-latex-fontspec |
1385 | (package | |
1386 | (name "texlive-latex-fontspec") | |
1387 | (version (number->string %texlive-revision)) | |
1388 | (source (origin | |
1389 | (method svn-fetch) | |
1390 | (uri (texlive-ref "latex" "fontspec")) | |
1391 | (sha256 | |
1392 | (base32 | |
1393 | "1rx43y5xmjqvc27pjdnmqwp4pcw3czcfd6nfpmzc1gnqfl1hlc0q")))) | |
1394 | (build-system texlive-build-system) | |
1395 | (arguments | |
1396 | '(#:tex-directory "latex/fontspec" | |
1397 | #:build-targets '("fontspec.dtx"))) | |
1398 | (inputs | |
1399 | `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel))) | |
1400 | (home-page "http://www.ctan.org/pkg/fontspec") | |
1401 | (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX") | |
1402 | (description | |
1403 | "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an | |
1404 | automatic and unified interface to feature-rich AAT and OpenType fonts through | |
1405 | the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires | |
1406 | the l3kernel and xparse bundles from the LaTeX 3 development team.") | |
1407 | (license license:lppl1.3+))) | |
1408 | ||
e93f472d RW |
1409 | ;; The SVN directory contains little more than a dtx file that generates three |
1410 | ;; of the many lua files that should be installed as part of this package. | |
1411 | ;; This is why we take the release from GitHub instead. | |
1412 | (define-public texlive-luatex-lualibs | |
1413 | (package | |
1414 | (name "texlive-luatex-lualibs") | |
1415 | (version "2.5") | |
1416 | (source (origin | |
1417 | (method url-fetch) | |
1418 | (uri (string-append "https://github.com/lualatex/lualibs/" | |
1419 | "releases/download/v" | |
1420 | version "/lualibs.zip")) | |
1421 | (sha256 | |
1422 | (base32 | |
1423 | "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy")))) | |
1424 | (build-system gnu-build-system) | |
1425 | (arguments | |
1426 | `(#:make-flags | |
1427 | (list (string-append "DESTDIR=" | |
1428 | (assoc-ref %outputs "out") | |
1429 | "/share/texmf-dist")) | |
1430 | #:phases | |
1431 | (modify-phases %standard-phases | |
1432 | (delete 'configure)))) | |
1433 | (native-inputs | |
1434 | `(("texlive-bin" ,texlive-bin) | |
1435 | ("unzip" ,unzip) | |
1436 | ("zip" ,zip))) | |
1437 | (home-page "https://github.com/lualatex/lualibs") | |
1438 | (synopsis "Lua modules for general programming (in the (La)TeX world)") | |
1439 | (description | |
1440 | "Lualibs is a collection of Lua modules useful for general programming. | |
1441 | The bundle is based on Lua modules shipped with ConTeXt, and made available in | |
1442 | this bundle for use independent of ConTeXt.") | |
1443 | ;; GPL version 2 only | |
1444 | (license license:gpl2))) | |
1445 | ||
2573163a RW |
1446 | (define-public texlive-latex-amsmath |
1447 | (package | |
1448 | (name "texlive-latex-amsmath") | |
1449 | (version (number->string %texlive-revision)) | |
1450 | (source (origin | |
1451 | (method svn-fetch) | |
1452 | (uri (texlive-ref "latex" "amsmath")) | |
1453 | (sha256 | |
1454 | (base32 | |
1455 | "178ywjpdlv78qmfzqdyn6gy14620zjsn2q9wap76fbr9s4hw6dba")))) | |
1456 | (build-system texlive-build-system) | |
1457 | (arguments '(#:tex-directory "latex/amsmath")) | |
1458 | (home-page "http://www.ctan.org/pkg/amsmath") | |
1459 | (synopsis "AMS mathematical facilities for LaTeX") | |
1460 | (description | |
1461 | "This is the principal package in the AMS-LaTeX distribution. It adapts | |
1462 | for use in LaTeX most of the mathematical features found in AMS-TeX; it is | |
1463 | highly recommended as an adjunct to serious mathematical typesetting in LaTeX. | |
1464 | When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold | |
1465 | symbols), @code{amsopnamsopn} (for operator names) and | |
1466 | @code{amstextamstext} (for text embedded in mathematics) are also loaded. | |
1467 | This package is part of the LaTeX required distribution; however, several | |
1468 | contributed packages add still further to its appeal; examples are | |
1469 | @code{empheqempheq}, which provides functions for decorating and highlighting | |
1470 | mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar) | |
1471 | definitions.") | |
1472 | (license license:lppl1.3c+))) | |
1473 | ||
18e366e8 RW |
1474 | (define-public texlive-latex-amscls |
1475 | (package | |
1476 | (name "texlive-latex-amscls") | |
1477 | (version (number->string %texlive-revision)) | |
1478 | (source (origin | |
1479 | (method svn-fetch) | |
1480 | (uri (texlive-ref "latex" "amscls")) | |
1481 | (sha256 | |
1482 | (base32 | |
1483 | "0jmcr37mcdi7drczppvr6lmz5d5yd9m67ii79gp2nglg1xpw934j")))) | |
1484 | (build-system texlive-build-system) | |
1485 | (arguments | |
1486 | `(#:tex-directory "latex/amscls")) | |
1487 | (home-page "http://www.ctan.org/pkg/amscls") | |
1488 | (synopsis "AMS document classes for LaTeX") | |
1489 | (description | |
1490 | "This bundle contains three AMS classes: @code{amsartamsart} (for writing | |
1491 | articles for the AMS), @code{amsbookamsbook} (for books) and | |
1492 | @code{amsprocamsproc} (for proceedings), together with some supporting | |
1493 | material. The material is made available as part of the AMS-LaTeX | |
1494 | distribution.") | |
1495 | (license license:lppl1.3c+))) | |
1496 | ||
f84d5a09 RW |
1497 | (define-public texlive-latex-babel |
1498 | (package | |
1499 | (name "texlive-latex-babel") | |
1500 | (version (number->string %texlive-revision)) | |
1501 | (source (origin | |
1502 | (method svn-fetch) | |
1503 | (uri (texlive-ref "latex" "babel")) | |
1504 | (sha256 | |
1505 | (base32 | |
1506 | "1n3i5adsyy7jw0imnzrm2i8wkf73i3mjk9h3ic8cb9cd19i4r9r3")))) | |
1507 | (build-system texlive-build-system) | |
1508 | (arguments | |
dcc8af4a | 1509 | '(#:tex-directory "generic/babel" |
f84d5a09 RW |
1510 | #:phases |
1511 | (modify-phases %standard-phases | |
1512 | ;; This package tries to produce babel.aux twice but refuses to | |
1513 | ;; overwrite the first one. | |
1514 | (add-before 'build 'fix-ins | |
1515 | (lambda _ | |
1516 | (substitute* "babel.ins" | |
1517 | (("askonceonly") "askforoverwritefalse")) | |
1518 | #t))))) | |
1519 | (home-page "http://www.ctan.org/pkg/babel") | |
1520 | (synopsis "Multilingual support for Plain TeX or LaTeX") | |
1521 | (description | |
1522 | "The package manages culturally-determined typographical (and other) | |
1523 | rules, and hyphenation patterns for a wide range of languages. A document may | |
1524 | select a single language to be supported, or it may select several, in which | |
1525 | case the document may switch from one language to another in a variety of | |
1526 | ways. Babel uses contributed configuration files that provide the detail of | |
1527 | what has to be done for each language. Users of XeTeX are advised to use the | |
1528 | polyglossia package rather than Babel.") | |
1529 | (license license:lppl1.3+))) | |
1530 | ||
876a1980 RW |
1531 | (define-public texlive-generic-babel-english |
1532 | (package | |
1533 | (name "texlive-generic-babel-english") | |
1534 | (version (number->string %texlive-revision)) | |
1535 | (source (origin | |
1536 | (method svn-fetch) | |
1537 | (uri (texlive-ref "generic" "babel-english")) | |
1538 | (file-name (string-append name "-" version "-checkout")) | |
1539 | (sha256 | |
1540 | (base32 | |
1541 | "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc")))) | |
1542 | (build-system texlive-build-system) | |
1543 | (arguments '(#:tex-directory "generic/babel-english")) | |
1544 | (home-page "http://www.ctan.org/pkg/babel-english") | |
1545 | (synopsis "Babel support for English") | |
1546 | (description | |
1547 | "This package provides the language definition file for support of | |
1548 | English in @code{babel}. Care is taken to select British hyphenation patterns | |
1549 | for British English and Australian text, and default (\"american\") patterns | |
1550 | for Canadian and USA text.") | |
1551 | (license license:lppl1.3+))) | |
1552 | ||
93286d38 RW |
1553 | (define-public texlive-latex-cyrillic |
1554 | (package | |
1555 | (name "texlive-latex-cyrillic") | |
1556 | (version (number->string %texlive-revision)) | |
1557 | (source (origin | |
1558 | (method svn-fetch) | |
1559 | (uri (texlive-ref "latex" "cyrillic")) | |
1560 | (sha256 | |
1561 | (base32 | |
1562 | "1mdhl35hwas68ki56qqngzar37dwv4mm64l2canihr255bz34lbv")))) | |
1563 | (build-system texlive-build-system) | |
1564 | (arguments | |
1565 | '(#:tex-directory "latex/cyrillic")) | |
1566 | (home-page "http://www.ctan.org/pkg/latex-cyrillic") | |
1567 | (synopsis "Support for Cyrillic fonts in LaTeX") | |
1568 | (description | |
1569 | "This bundle of macros files provides macro support (including font | |
1570 | encoding macros) for the use of Cyrillic characters in fonts encoded under the | |
1571 | T2* and X2 encodings. These encodings cover (between them) pretty much every | |
1572 | language that is written in a Cyrillic alphabet.") | |
1573 | (license license:lppl1.3c+))) | |
1574 | ||
83fe6231 RW |
1575 | (define-public texlive-latex-psnfss |
1576 | (package | |
1577 | (name "texlive-latex-psnfss") | |
1578 | (version (number->string %texlive-revision)) | |
1579 | (source (origin | |
1580 | (method svn-fetch) | |
1581 | (uri (texlive-ref "latex" "psnfss")) | |
1582 | (sha256 | |
1583 | (base32 | |
1584 | "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz")))) | |
1585 | (build-system texlive-build-system) | |
1586 | (arguments '(#:tex-directory "latex/psnfss")) | |
1587 | (home-page "http://www.ctan.org/pkg/psnfss") | |
1588 | (synopsis "Font support for common PostScript fonts") | |
1589 | (description | |
1590 | "The PSNFSS collection includes a set of files that provide a complete | |
1591 | working setup of the LaTeX font selection scheme (NFSS2) for use with common | |
1592 | PostScript fonts. It covers the so-called \"Base\" fonts (which are built | |
1593 | into any Level 2 PostScript printing device and the Ghostscript interpreter) | |
1594 | and a number of free fonts. It provides font definition files, macros and | |
1595 | font metrics. The bundle as a whole is part of the LaTeX required set of | |
1596 | packages.") | |
1597 | (license license:lppl1.2+))) | |
1598 | ||
cb7bc20a RW |
1599 | (define-public texlive-union |
1600 | (lambda* (#:optional (packages '())) | |
1601 | "Return 'texlive-union' package which is a union of PACKAGES and the | |
1602 | standard LaTeX packages." | |
1603 | (let ((default-packages | |
1604 | (list texlive-bin | |
1605 | texlive-dvips | |
263d0c82 | 1606 | texlive-fontname |
cb7bc20a RW |
1607 | texlive-fonts-cm |
1608 | texlive-fonts-latex | |
1609 | texlive-metafont-base | |
1610 | texlive-latex-base | |
1611 | ;; LaTeX packages from the "required" set. | |
1612 | texlive-latex-amsmath | |
1613 | texlive-latex-amscls | |
1614 | texlive-latex-babel | |
d9d44e84 | 1615 | texlive-generic-babel-english |
cb7bc20a RW |
1616 | texlive-latex-cyrillic |
1617 | texlive-latex-graphics | |
1618 | texlive-latex-psnfss | |
1619 | texlive-latex-tools))) | |
1620 | (package | |
1621 | (name "texlive-union") | |
1622 | (version (number->string %texlive-revision)) | |
1623 | (source #f) | |
1624 | (build-system trivial-build-system) | |
1625 | (arguments | |
1626 | '(#:modules ((guix build union) | |
1627 | (guix build utils) | |
1628 | (guix build texlive-build-system) | |
1629 | (guix build gnu-build-system) | |
1630 | (guix build gremlin) | |
1631 | (guix elf)) | |
1632 | #:builder | |
1633 | (begin | |
1634 | (use-modules (ice-9 match) | |
1635 | (srfi srfi-26) | |
1636 | (guix build union) | |
1637 | (guix build utils) | |
1638 | (guix build texlive-build-system)) | |
1639 | (let* ((out (assoc-ref %outputs "out")) | |
1640 | (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf"))) | |
1641 | ;; Build a modifiable union of all inputs (but exclude bash) | |
1642 | (match (filter (match-lambda | |
1643 | ((name . _) | |
1644 | (not (string=? "bash" name)))) | |
1645 | %build-inputs) | |
1646 | (((names . directories) ...) | |
1647 | (union-build (assoc-ref %outputs "out") | |
1648 | directories | |
1649 | #:create-all-directories? #t))) | |
1650 | ||
1651 | ;; The configuration file "texmf.cnf" is provided by the | |
1652 | ;; "texlive-bin" package. We take it and override only the | |
1653 | ;; setting for TEXMFROOT and TEXMF. This file won't be consulted | |
1654 | ;; by default, though, so we still need to set TEXMFCNF. | |
1655 | (substitute* texmf.cnf | |
1656 | (("^TEXMFROOT = .*") | |
1657 | (string-append "TEXMFROOT = " out "/share\n")) | |
1658 | (("^TEXMF = .*") | |
1659 | "TEXMF = $TEXMFROOT/share/texmf-dist\n")) | |
1660 | (setenv "PATH" (string-append (assoc-ref %build-inputs "bash") | |
1661 | "/bin")) | |
1662 | (for-each | |
1663 | (cut wrap-program <> | |
1664 | `("TEXMFCNF" ":" = (,(dirname texmf.cnf))) | |
1665 | `("TEXMF" ":" = (,(string-append out "/share/texmf-dist")))) | |
1666 | (find-files (string-append out "/bin") ".*")) | |
1667 | #t)))) | |
1668 | (inputs | |
1669 | `(("bash" ,bash) | |
1670 | ,@(map (lambda (package) | |
1671 | (list (package-name package) package)) | |
1672 | (append default-packages packages)))) | |
1673 | (home-page (package-home-page texlive-bin)) | |
1674 | (synopsis "Union of TeX Live packages") | |
1675 | (description "This package provides a subset of the TeX Live | |
1676 | distribution.") | |
1677 | (license (fold (lambda (package result) | |
1678 | (match (package-license package) | |
1679 | ((lst ...) | |
1680 | (append lst result)) | |
1681 | ((? license:license? license) | |
1682 | (cons license result)))) | |
1683 | '() | |
1684 | (append default-packages packages))))))) | |
1685 | ||
9d4f8dc2 RW |
1686 | (define-public texlive-tiny |
1687 | (package | |
1688 | (inherit (texlive-union)) | |
1689 | (name "texlive-tiny") | |
1690 | (description "This is a very limited subset of the TeX Live distribution. | |
1691 | It includes little more than the required set of LaTeX packages."))) | |
1692 | ||
60b5e228 RW |
1693 | (define-public texlive-latex-amsrefs |
1694 | (package | |
1695 | (name "texlive-latex-amsrefs") | |
1696 | (version (number->string %texlive-revision)) | |
1697 | (source (origin | |
1698 | (method svn-fetch) | |
1699 | (uri (texlive-ref "latex" "amsrefs")) | |
1700 | (file-name (string-append name "-" version "-checkout")) | |
1701 | (sha256 | |
1702 | (base32 | |
1703 | "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1")))) | |
1704 | (build-system texlive-build-system) | |
1705 | (arguments '(#:tex-directory "latex/amsrefs")) | |
1706 | (home-page "http://www.ctan.org/pkg/amsrefs") | |
1707 | (synopsis "LaTeX-based replacement for BibTeX") | |
1708 | (description | |
1709 | "Amsrefs is a LaTeX package for bibliographies that provides an archival | |
1710 | data format similar to the format of BibTeX database files, but adapted to | |
1711 | make direct processing by LaTeX easier. The package can be used either in | |
1712 | conjunction with BibTeX or as a replacement for BibTeX.") | |
1713 | (license license:lppl1.3+))) | |
1714 | ||
3236599f RW |
1715 | (define-public texlive-latex-bigfoot |
1716 | (package | |
1717 | (name "texlive-latex-bigfoot") | |
1718 | (version (number->string %texlive-revision)) | |
1719 | (source (origin | |
1720 | (method svn-fetch) | |
1721 | (uri (texlive-ref "latex" "bigfoot")) | |
1722 | (file-name (string-append name "-" version "-checkout")) | |
1723 | (sha256 | |
1724 | (base32 | |
1725 | "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv")))) | |
1726 | (build-system texlive-build-system) | |
1727 | (arguments | |
1728 | '(#:tex-directory "latex/bigfoot" | |
1729 | #:phases | |
1730 | (modify-phases %standard-phases | |
1731 | (add-after 'unpack 'remove-generated-file | |
1732 | (lambda _ | |
1733 | (for-each delete-file (find-files "." "\\.drv$")) | |
1734 | #t))))) | |
1735 | (home-page "http://www.ctan.org/pkg/bigfoot") | |
1736 | (synopsis "Footnotes for critical editions") | |
1737 | (description | |
1738 | "This package aims to provide a one-stop solution to requirements for | |
1739 | footnotes. It offers: Multiple footnote apparatus superior to that of | |
1740 | @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run | |
1741 | into a single paragraph (this choice may be selected per footnote series); | |
1742 | Things you might have expected (such as @code{\\verb}-like material in | |
1743 | footnotes, and color selections over page breaks) now work. Note that the | |
1744 | majority of the bigfoot package's interface is identical to that of | |
1745 | @code{manyfoot}; users should seek information from that package's | |
1746 | documentation. The bigfoot bundle also provides the @code{perpage} and | |
1747 | @code{suffix} packages.") | |
1748 | (license license:gpl2+))) | |
1749 | ||
8e732b49 RW |
1750 | (define-public texlive-latex-blindtext |
1751 | (package | |
1752 | (name "texlive-latex-blindtext") | |
1753 | (version (number->string %texlive-revision)) | |
1754 | (source (origin | |
1755 | (method svn-fetch) | |
1756 | (uri (texlive-ref "latex" "blindtext")) | |
1757 | (file-name (string-append name "-" version "-checkout")) | |
1758 | (sha256 | |
1759 | (base32 | |
1760 | "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg")))) | |
1761 | (build-system texlive-build-system) | |
1762 | (arguments '(#:tex-directory "latex/blindtext")) | |
1763 | (home-page "http://www.ctan.org/pkg/blindtext") | |
1764 | (synopsis "Producing 'blind' text for testing") | |
1765 | (description | |
1766 | "The package provides the commands @code{\\blindtext} and | |
1767 | @code{\\Blindtext} for creating \"blind\" text useful in testing new classes | |
1768 | and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating | |
1769 | an entire random document with sections, lists, mathematics, etc. The package | |
1770 | supports three languages, @code{english}, @code{(n)german} and @code{latin}; | |
1771 | the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem | |
1772 | ipsum\" text, see the @code{lipsum} package).") | |
1773 | (license license:lppl))) | |
1774 | ||
7cda03bd RW |
1775 | (define-public texlive-latex-dinbrief |
1776 | (package | |
1777 | (name "texlive-latex-dinbrief") | |
1778 | (version (number->string %texlive-revision)) | |
1779 | (source (origin | |
1780 | (method svn-fetch) | |
1781 | (uri (texlive-ref "latex" "dinbrief")) | |
1782 | (file-name (string-append name "-" version "-checkout")) | |
1783 | (sha256 | |
1784 | (base32 | |
1785 | "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6")))) | |
1786 | (build-system texlive-build-system) | |
1787 | (arguments | |
1788 | '(#:tex-directory "latex/dinbrief" | |
1789 | #:phases | |
1790 | (modify-phases %standard-phases | |
1791 | (add-after 'unpack 'remove-generated-file | |
1792 | (lambda _ | |
1793 | (delete-file "dinbrief.drv") | |
1794 | #t))))) | |
1795 | (home-page "http://www.ctan.org/pkg/dinbrief") | |
1796 | (synopsis "German letter DIN style") | |
1797 | (description | |
1798 | "This package implements a document layout for writing letters according | |
1799 | to the rules of DIN (Deutsches Institut für Normung, German standardisation | |
1800 | institute). A style file for LaTeX 2.09 (with limited support of the | |
1801 | features) is part of the package. Since the letter layout is based on a | |
1802 | German standard, the user guide is written in German, but most macros have | |
1803 | English names from which the user can recognize what they are used for. In | |
1804 | addition there are example files showing how letters may be created with the | |
1805 | package.") | |
1806 | (license license:lppl))) | |
1807 | ||
de224adb RW |
1808 | (define-public texlive-latex-draftwatermark |
1809 | (package | |
1810 | (name "texlive-latex-draftwatermark") | |
1811 | (version (number->string %texlive-revision)) | |
1812 | (source (origin | |
1813 | (method svn-fetch) | |
1814 | (uri (texlive-ref "latex" "draftwatermark")) | |
1815 | (file-name (string-append name "-" version "-checkout")) | |
1816 | (sha256 | |
1817 | (base32 | |
1818 | "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv")))) | |
1819 | (build-system texlive-build-system) | |
1820 | (arguments '(#:tex-directory "latex/draftwatermark")) | |
1821 | (home-page "http://www.ctan.org/pkg/draftwatermark") | |
1822 | (synopsis "Put a grey textual watermark on document pages") | |
1823 | (description | |
1824 | "This package provides a means to add a textual, light grey watermark on | |
1825 | every page or on the first page of a document. Typical usage may consist in | |
1826 | writing words such as DRAFT or CONFIDENTIAL across document pages. The | |
1827 | package performs a similar function to that of @code{draftcopy}, but its | |
1828 | implementation is output device independent, and made very simple by relying | |
1829 | on everypage.") | |
1830 | (license license:lppl1.3+))) | |
1831 | ||
74e9c9a4 RW |
1832 | (define-public texlive-latex-environ |
1833 | (package | |
1834 | (name "texlive-latex-environ") | |
1835 | (version (number->string %texlive-revision)) | |
1836 | (source (origin | |
1837 | (method svn-fetch) | |
1838 | (uri (texlive-ref "latex" "environ")) | |
1839 | (file-name (string-append name "-" version "-checkout")) | |
1840 | (sha256 | |
1841 | (base32 | |
1842 | "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd")))) | |
1843 | (build-system texlive-build-system) | |
1844 | (arguments '(#:tex-directory "latex/environ")) | |
1845 | (home-page "http://www.ctan.org/pkg/environ") | |
1846 | (synopsis "New interface for environments in LaTeX") | |
1847 | (description | |
1848 | "This package provides the @code{\\collect@body} command (as in | |
1849 | @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@Body}, for | |
1850 | collecting the body text of an environment. These commands are used to define | |
1851 | a new author interface to creating new environments.") | |
1852 | (license license:lppl))) | |
1853 | ||
adfa7a2a RW |
1854 | (define-public texlive-latex-eqparbox |
1855 | (package | |
1856 | (name "texlive-latex-eqparbox") | |
1857 | (version (number->string %texlive-revision)) | |
1858 | (source (origin | |
1859 | (method svn-fetch) | |
1860 | (uri (texlive-ref "latex" "eqparbox")) | |
1861 | (file-name (string-append name "-" version "-checkout")) | |
1862 | (sha256 | |
1863 | (base32 | |
1864 | "0pvmhsd4xmpil0m3c7qcgwilbk266mlkzv03g0jr8r3zd8jxlyzq")))) | |
1865 | (build-system texlive-build-system) | |
1866 | (arguments '(#:tex-directory "latex/eqparbox")) | |
1867 | (home-page "http://www.ctan.org/pkg/eqparbox") | |
1868 | (synopsis "Create equal-widthed parboxes") | |
1869 | (description | |
1870 | "LaTeX users sometimes need to ensure that two or more blocks of text | |
1871 | occupy the same amount of horizontal space on the page. To that end, the | |
1872 | @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works | |
1873 | just like @code{\\parbox}, except that instead of specifying a width, one | |
1874 | specifies a tag. All @code{eqparbox}es with the same tag---regardless of | |
1875 | where they are in the document---will stretch to fit the widest | |
1876 | @code{eqparbox} with that tag. This simple, equal-width mechanism can be used | |
1877 | for a variety of alignment purposes, as is evidenced by the examples in | |
1878 | @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are | |
1879 | also provided.") | |
1880 | (license license:lppl1.3+))) | |
1881 | ||
32e623d0 RW |
1882 | (define-public texlive-latex-expdlist |
1883 | (package | |
1884 | (name "texlive-latex-expdlist") | |
1885 | (version (number->string %texlive-revision)) | |
1886 | (source (origin | |
1887 | (method svn-fetch) | |
1888 | (uri (texlive-ref "latex" "expdlist")) | |
1889 | (file-name (string-append name "-" version "-checkout")) | |
1890 | (sha256 | |
1891 | (base32 | |
1892 | "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r")))) | |
1893 | (build-system texlive-build-system) | |
1894 | (arguments | |
1895 | '(#:tex-directory "latex/expdlist" | |
1896 | #:phases | |
1897 | (modify-phases %standard-phases | |
1898 | (add-after 'unpack 'remove-generated-file | |
1899 | (lambda _ | |
1900 | (for-each delete-file | |
1901 | (find-files "." "\\.drv$")) | |
1902 | #t))))) | |
1903 | (home-page "http://www.ctan.org/pkg/expdlist") | |
1904 | (synopsis "Expanded description environments") | |
1905 | (description | |
1906 | "The package provides additional features for the LaTeX | |
1907 | @code{description} environment, including adjustable left margin. The package | |
1908 | also allows the user to \"break\" a list (for example, to interpose a comment) | |
1909 | without affecting the structure of the list (this works for @code{itemize} and | |
1910 | @code{enumerate} lists, and numbered lists remain in sequence).") | |
1911 | (license license:lppl))) | |
1912 | ||
893e3fc1 RW |
1913 | (define-public texlive-latex-filemod |
1914 | (package | |
1915 | (name "texlive-latex-filemod") | |
1916 | (version (number->string %texlive-revision)) | |
1917 | (source (origin | |
1918 | (method svn-fetch) | |
1919 | (uri (svn-reference | |
1920 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1921 | %texlive-tag "/Master/texmf-dist/" | |
1922 | "/tex/latex/filemod")) | |
1923 | (revision %texlive-revision))) | |
1924 | (sha256 | |
1925 | (base32 | |
1926 | "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2")))) | |
1927 | (build-system trivial-build-system) | |
1928 | (arguments | |
1929 | `(#:modules ((guix build utils)) | |
1930 | #:builder | |
1931 | (begin | |
1932 | (use-modules (guix build utils)) | |
1933 | (let ((target (string-append (assoc-ref %outputs "out") | |
1934 | "/share/texmf-dist/tex/latex/filemod"))) | |
1935 | (mkdir-p target) | |
1936 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
1937 | #t)))) | |
1938 | (home-page "http://www.ctan.org/pkg/filemod") | |
1939 | (synopsis "Provide file modification times, and compare them") | |
1940 | (description | |
1941 | "This package provides macros to read and compare the modification dates | |
1942 | of files. The files may be @code{.tex} files, images or other files (as long | |
1943 | as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive | |
1944 | of pdfLaTeX to find the file modification date as PDF date string, parses the | |
1945 | string and returns the value to the user. The package will also work for DVI | |
1946 | output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI | |
1947 | mode. The functionality is provided by purely expandable macros or by faster | |
1948 | but non-expandable ones.") | |
1949 | (license license:lppl1.3+))) | |
1950 | ||
8c23f238 RW |
1951 | (define-public texlive-latex-ifplatform |
1952 | (package | |
1953 | (name "texlive-latex-ifplatform") | |
1954 | (version (number->string %texlive-revision)) | |
1955 | (source (origin | |
1956 | (method svn-fetch) | |
1957 | (uri (texlive-ref "latex" "ifplatform")) | |
1958 | (file-name (string-append name "-" version "-checkout")) | |
1959 | (sha256 | |
1960 | (base32 | |
1961 | "11gvvjvmdfs9b7mm19yf80zwkx49jqcbq6g8qb9y5ns1r1qvnixp")))) | |
1962 | (build-system texlive-build-system) | |
1963 | (arguments '(#:tex-directory "latex/ifplatform")) | |
1964 | (home-page "http://www.ctan.org/pkg/ifplatform") | |
1965 | (synopsis "Conditionals to test which platform is being used") | |
1966 | (description | |
1967 | "This package uses the (La)TeX extension @code{-shell-escape} to | |
1968 | establish whether the document is being processed on a Windows or on a | |
1969 | Unix-like system, or on Cygwin (Unix environment over a Windows system). | |
1970 | Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx} | |
1971 | and @code{\\ifcygwin}. The package also preserves the output of @code{uname} | |
1972 | on a Unix-like system, which may be used to distinguish between various | |
1973 | classes of systems.") | |
1974 | (license license:lppl))) | |
1975 | ||
9b416042 RW |
1976 | (define-public texlive-latex-natbib |
1977 | (package | |
1978 | (name "texlive-latex-natbib") | |
1979 | (version (number->string %texlive-revision)) | |
1980 | (source (origin | |
1981 | (method svn-fetch) | |
1982 | (uri (texlive-ref "latex" "natbib")) | |
1983 | (sha256 | |
1984 | (base32 | |
1985 | "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7")))) | |
1986 | (build-system texlive-build-system) | |
1987 | (arguments '(#:tex-directory "latex/natbib")) | |
1988 | (home-page "http://www.ctan.org/pkg/natbib") | |
1989 | (synopsis "Flexible bibliography support") | |
1990 | (description | |
1991 | "This bundle provides a package that implements both author-year and | |
1992 | numbered references, as well as much detailed of support for other | |
1993 | bibliography use. Also provided are versions of the standard BibTeX styles | |
1994 | that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat}, | |
1995 | @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are | |
1996 | designed from the start to be compatible with @code{natbib}.") | |
1997 | (license license:lppl))) | |
1998 | ||
d770d07f RW |
1999 | (define-public texlive-latex-psfrag |
2000 | (package | |
2001 | (name "texlive-latex-psfrag") | |
2002 | (version (number->string %texlive-revision)) | |
2003 | (source (origin | |
2004 | (method svn-fetch) | |
2005 | (uri (texlive-ref "latex" "psfrag")) | |
2006 | (file-name (string-append name "-" version "-checkout")) | |
2007 | (sha256 | |
2008 | (base32 | |
2009 | "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352")))) | |
2010 | (build-system texlive-build-system) | |
2011 | (arguments '(#:tex-directory "latex/psfrag")) | |
2012 | (home-page "http://www.ctan.org/pkg/psfrag") | |
2013 | (synopsis "Replace strings in encapsulated PostScript figures") | |
2014 | (description | |
2015 | "This package allows LaTeX constructions (equations, picture | |
2016 | environments, etc.) to be precisely superimposed over Encapsulated PostScript | |
2017 | figures, using your own favorite drawing tool to create an EPS figure and | |
2018 | placing simple text \"tags\" where each replacement is to be placed, with | |
2019 | PSfrag automatically removing these tags from the figure and replacing them | |
2020 | with a user specified LaTeX construction, properly aligned, scaled, and/or | |
2021 | rotated.") | |
2022 | (license (license:fsf-free "file://psfrag.dtx")))) | |
2023 | ||
5a1ee7d8 RW |
2024 | (define-public texlive-latex-pstool |
2025 | (package | |
2026 | (name "texlive-latex-pstool") | |
2027 | (version (number->string %texlive-revision)) | |
2028 | (source (origin | |
2029 | (method svn-fetch) | |
2030 | (uri (texlive-ref "latex" "pstool")) | |
2031 | (file-name (string-append name "-" version "-checkout")) | |
2032 | (sha256 | |
2033 | (base32 | |
2034 | "1kwlk1x67lad4xb7gpkxqgdlxwpi6nvq1r9wika7m92abmyf18h3")))) | |
2035 | (build-system texlive-build-system) | |
2036 | (arguments | |
2037 | '(#:tex-directory "latex/pstool" | |
2038 | #:tex-format "latex")) | |
2039 | (inputs | |
2040 | `(("texlive-fonts-cm" ,texlive-fonts-cm) | |
2041 | ("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
2042 | (propagated-inputs | |
2043 | `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) | |
2044 | ("texlive-latex-filemod" ,texlive-latex-filemod) | |
2045 | ("texlive-latex-graphics" ,texlive-latex-graphics) | |
2046 | ("texlive-latex-ifplatform" ,texlive-latex-ifplatform) | |
2047 | ("texlive-latex-oberdiek" ,texlive-latex-oberdiek) | |
2048 | ("texlive-latex-psfrag" ,texlive-latex-psfrag) | |
2049 | ("texlive-latex-trimspaces" ,texlive-latex-trimspaces))) | |
2050 | (home-page "http://www.ctan.org/pkg/pstool") | |
2051 | (synopsis "Process PostScript graphisc within pdfLaTeX documents") | |
2052 | (description | |
2053 | "This is a package for processing PostScript graphics with @code{psfrag} | |
2054 | labels within pdfLaTeX documents. Every graphic is compiled individually, | |
2055 | drastically speeding up compilation time when only a single figure needs | |
2056 | re-processing.") | |
2057 | (license license:lppl))) | |
2058 | ||
171160d5 RW |
2059 | (define-public texlive-latex-seminar |
2060 | (package | |
2061 | (name "texlive-latex-seminar") | |
2062 | (version (number->string %texlive-revision)) | |
2063 | (source (origin | |
2064 | (method svn-fetch) | |
2065 | (uri (svn-reference | |
2066 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2067 | %texlive-tag "/Master/texmf-dist/" | |
2068 | "/tex/latex/seminar")) | |
2069 | (revision %texlive-revision))) | |
2070 | (sha256 | |
2071 | (base32 | |
2072 | "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0")))) | |
2073 | (build-system texlive-build-system) | |
2074 | (arguments '(#:tex-directory "latex/seminar")) | |
2075 | (home-page "http://www.ctan.org/pkg/seminar") | |
2076 | (synopsis "Make overhead slides") | |
2077 | ;; TODO: This package may need fancybox and xcomment at runtime. | |
2078 | (description | |
2079 | "This package provides a class that produces overhead | |
2080 | slides (transparencies), with many facilities. Seminar is not nowadays | |
2081 | reckoned a good basis for a presentation — users are advised to use more | |
2082 | recent classes such as powerdot or beamer, both of which are tuned to | |
2083 | 21st-century presentation styles.") | |
2084 | (license license:lppl1.2+))) | |
2085 | ||
f3540dbd RW |
2086 | (define-public texlive-latex-trimspaces |
2087 | (package | |
2088 | (name "texlive-latex-trimspaces") | |
2089 | (version (number->string %texlive-revision)) | |
2090 | (source (origin | |
2091 | (method svn-fetch) | |
2092 | (uri (texlive-ref "latex" "trimspaces")) | |
2093 | (sha256 | |
2094 | (base32 | |
2095 | "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa")))) | |
2096 | (build-system texlive-build-system) | |
2097 | (arguments | |
2098 | '(#:tex-directory "latex/trimspaces" | |
2099 | #:tex-format "latex" | |
2100 | #:phases | |
2101 | (modify-phases %standard-phases | |
2102 | (add-after 'unpack 'fix-bug | |
2103 | (lambda _ | |
2104 | ;; The "ins" file refers to the wrong source file. | |
2105 | (substitute* "trimspaces.ins" | |
2106 | (("pstool.tex") "trimspaces.tex")) | |
2107 | #t))))) | |
2108 | (inputs | |
2109 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
2110 | (home-page "http://www.ctan.org/pkg/trimspaces") | |
2111 | (synopsis "Trim spaces around an argument or within a macro") | |
2112 | (description | |
2113 | "This very short package allows you to expandably remove spaces around a | |
2114 | token list (commands are provided to remove spaces before, spaces after, or | |
2115 | both); or to remove surrounding spaces within a macro definition, or to define | |
2116 | space-stripped macros.") | |
2117 | (license license:lppl))) | |
2118 | ||
7709d4d8 RW |
2119 | (define-public texlive-latex-capt-of |
2120 | (package | |
2121 | (name "texlive-latex-capt-of") | |
2122 | (version (number->string %texlive-revision)) | |
2123 | (source (origin | |
2124 | (method svn-fetch) | |
2125 | (uri (svn-reference | |
2126 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2127 | %texlive-tag "/Master/texmf-dist/" | |
2128 | "/tex/latex/capt-of")) | |
2129 | (revision %texlive-revision))) | |
2130 | (file-name (string-append name "-" version "-checkout")) | |
2131 | (sha256 | |
2132 | (base32 | |
2133 | "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x")))) | |
2134 | (build-system trivial-build-system) | |
2135 | (arguments | |
2136 | `(#:modules ((guix build utils)) | |
2137 | #:builder | |
2138 | (begin | |
2139 | (use-modules (guix build utils)) | |
2140 | (let ((target (string-append (assoc-ref %outputs "out") | |
2141 | "/share/texmf-dist/tex/latex/capt-of"))) | |
2142 | (mkdir-p target) | |
2143 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2144 | #t)))) | |
2145 | (home-page "http://www.ctan.org/pkg/capt-of") | |
2146 | (synopsis "Captions on more than floats") | |
2147 | (description | |
2148 | "This package defines a command @code{\\captionof} for putting a caption | |
2149 | to something that's not a float.") | |
2150 | (license license:lppl))) | |
2151 | ||
a8ac7c0b RW |
2152 | (define-public texlive-latex-etoolbox |
2153 | (package | |
2154 | (name "texlive-latex-etoolbox") | |
2155 | (version (number->string %texlive-revision)) | |
2156 | (source (origin | |
2157 | (method svn-fetch) | |
2158 | (uri (svn-reference | |
2159 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2160 | %texlive-tag "/Master/texmf-dist/" | |
2161 | "/tex/latex/etoolbox")) | |
2162 | (revision %texlive-revision))) | |
2163 | (file-name (string-append name "-" version "-checkout")) | |
2164 | (sha256 | |
2165 | (base32 | |
2166 | "0016bscnpima9krrg2569mva78xzwnygzlvg87dznsm6gf8g589v")))) | |
2167 | (build-system trivial-build-system) | |
2168 | (arguments | |
2169 | `(#:modules ((guix build utils)) | |
2170 | #:builder | |
2171 | (begin | |
2172 | (use-modules (guix build utils)) | |
2173 | (let ((target (string-append (assoc-ref %outputs "out") | |
2174 | "/share/texmf-dist/tex/latex/etoolbox"))) | |
2175 | (mkdir-p target) | |
2176 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2177 | #t)))) | |
2178 | (home-page "http://www.ctan.org/pkg/etoolbox") | |
2179 | (synopsis "e-TeX tools for LaTeX") | |
2180 | (description | |
2181 | "This package is a toolbox of programming facilities geared primarily | |
2182 | towards LaTeX class and package authors. It provides LaTeX frontends to some | |
2183 | of the new primitives provided by e-TeX as well as some generic tools which | |
2184 | are not strictly related to e-TeX but match the profile of this package. The | |
2185 | package provides functions that seem to offer alternative ways of implementing | |
2186 | some LaTeX kernel commands; nevertheless, the package will not modify any part | |
2187 | of the LaTeX kernel.") | |
2188 | (license license:lppl1.3+))) | |
2189 | ||
17dce7e5 RW |
2190 | (define-public texlive-latex-fncychap |
2191 | (package | |
2192 | (name "texlive-latex-fncychap") | |
2193 | (version (number->string %texlive-revision)) | |
2194 | (source (origin | |
2195 | (method svn-fetch) | |
2196 | (uri (svn-reference | |
2197 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2198 | %texlive-tag "/Master/texmf-dist/" | |
2199 | "/tex/latex/fncychap")) | |
2200 | (revision %texlive-revision))) | |
2201 | (file-name (string-append name "-" version "-checkout")) | |
2202 | (sha256 | |
2203 | (base32 | |
2204 | "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq")))) | |
2205 | (build-system trivial-build-system) | |
2206 | (arguments | |
2207 | `(#:modules ((guix build utils)) | |
2208 | #:builder | |
2209 | (begin | |
2210 | (use-modules (guix build utils)) | |
2211 | (let ((target (string-append (assoc-ref %outputs "out") | |
2212 | "/share/texmf-dist/tex/latex/fncychap"))) | |
2213 | (mkdir-p target) | |
2214 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2215 | #t)))) | |
2216 | (home-page "http://www.ctan.org/pkg/fncychap") | |
2217 | (synopsis "Seven predefined chapter heading styles") | |
2218 | (description | |
2219 | "This package provides seven predefined chapter heading styles. Each | |
2220 | style can be modified using a set of simple commands. Optionally one can | |
2221 | modify the formatting routines in order to create additional chapter | |
2222 | headings.") | |
2223 | (license license:lppl1.3+))) | |
2224 | ||
ef1e2ef0 RW |
2225 | (define-public texlive-latex-framed |
2226 | (package | |
2227 | (name "texlive-latex-framed") | |
2228 | (version (number->string %texlive-revision)) | |
2229 | (source (origin | |
2230 | (method svn-fetch) | |
2231 | (uri (svn-reference | |
2232 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2233 | %texlive-tag "/Master/texmf-dist/" | |
2234 | "/tex/latex/framed")) | |
2235 | (revision %texlive-revision))) | |
2236 | (file-name (string-append name "-" version "-checkout")) | |
2237 | (sha256 | |
2238 | (base32 | |
2239 | "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x")))) | |
2240 | (build-system trivial-build-system) | |
2241 | (arguments | |
2242 | `(#:modules ((guix build utils)) | |
2243 | #:builder | |
2244 | (begin | |
2245 | (use-modules (guix build utils)) | |
2246 | (let ((target (string-append (assoc-ref %outputs "out") | |
2247 | "/share/texmf-dist/tex/latex/framed"))) | |
2248 | (mkdir-p target) | |
2249 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2250 | #t)))) | |
2251 | (home-page "http://www.ctan.org/pkg/framed") | |
2252 | (synopsis "Framed or shaded regions that can break across pages") | |
2253 | (description | |
2254 | "The package creates three environments: @code{framed}, which puts an | |
2255 | ordinary frame box around the region, @code{shaded}, which shades the region, | |
2256 | and @code{leftbar}, which places a line at the left side. The environments | |
2257 | allow a break at their start (the @code{\\FrameCommand} enables creation of a | |
2258 | title that is “attached” to the environment); breaks are also allowed in the | |
2259 | course of the framed/shaded matter. There is also a command | |
2260 | @code{\\MakeFramed} to make your own framed-style environments.") | |
2261 | ;; The header states: "These macros may be freely transmitted, reproduced, | |
2262 | ;; or modified for any purpose provided that this notice is left intact." | |
2263 | (license (license:fsf-free "file://framed.sty")))) | |
2264 | ||
588b5e96 RW |
2265 | (define-public texlive-latex-g-brief |
2266 | (package | |
2267 | (name "texlive-latex-g-brief") | |
2268 | (version (number->string %texlive-revision)) | |
2269 | (source (origin | |
2270 | (method svn-fetch) | |
2271 | (uri (texlive-ref "latex" "g-brief")) | |
2272 | (file-name (string-append name "-" version "-checkout")) | |
2273 | (sha256 | |
2274 | (base32 | |
2275 | "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5")))) | |
2276 | (build-system texlive-build-system) | |
2277 | (arguments | |
2278 | '(#:tex-directory "latex/g-brief" | |
2279 | #:phases | |
2280 | (modify-phases %standard-phases | |
2281 | (add-after 'unpack 'remove-generated-file | |
2282 | (lambda _ | |
2283 | (delete-file "g-brief.drv") | |
2284 | #t))))) | |
2285 | (home-page "http://www.ctan.org/pkg/g-brief") | |
2286 | (synopsis "Letter document class") | |
2287 | (description | |
2288 | "This package is designed for formatting formless letters in German; it | |
2289 | can also be used for English (by those who can read the documentation). There | |
2290 | are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an | |
2291 | \"old\" and a \"new\" version of g-brief.") | |
2292 | (license license:lppl))) | |
2293 | ||
9b4d5c09 RW |
2294 | (define-public texlive-latex-galois |
2295 | (package | |
2296 | (name "texlive-latex-galois") | |
2297 | (version (number->string %texlive-revision)) | |
2298 | (source (origin | |
2299 | (method svn-fetch) | |
2300 | (uri (texlive-ref "latex" "galois")) | |
2301 | (file-name (string-append name "-" version "-checkout")) | |
2302 | (sha256 | |
2303 | (base32 | |
2304 | "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h")))) | |
2305 | (build-system texlive-build-system) | |
2306 | (arguments '(#:tex-directory "latex/galois")) | |
2307 | (home-page "http://www.ctan.org/pkg/galois") | |
2308 | (synopsis "Typeset Galois connections") | |
2309 | (description | |
2310 | "The package deals with connections in two-dimensional style, optionally | |
2311 | in colour.") | |
2312 | (license license:lppl))) | |
2313 | ||
5f691e2e RW |
2314 | (define-public texlive-latex-gcite |
2315 | (package | |
2316 | (name "texlive-latex-gcite") | |
2317 | (version (number->string %texlive-revision)) | |
2318 | (source (origin | |
2319 | (method svn-fetch) | |
2320 | (uri (texlive-ref "latex" "gcite")) | |
2321 | (file-name (string-append name "-" version "-checkout")) | |
2322 | (sha256 | |
2323 | (base32 | |
2324 | "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa")))) | |
2325 | (build-system texlive-build-system) | |
2326 | (arguments '(#:tex-directory "latex/gcite")) | |
2327 | (home-page "http://www.ctan.org/pkg/gcite") | |
2328 | (synopsis "Citations in a reader-friendly style") | |
2329 | (description | |
2330 | "The package allows citations in the German style, which is considered by | |
2331 | many to be particularly reader-friendly. The citation provides a small amount | |
2332 | of bibliographic information in a footnote on the page where each citation is | |
2333 | made. It combines a desire to eliminate unnecessary page-turning with the | |
2334 | look-up efficiency afforded by numeric citations. The package makes use of | |
2335 | BibLaTeX, and is considered experimental.") | |
2336 | (license license:lppl1.3+))) | |
2337 | ||
f47d1a52 RW |
2338 | (define-public texlive-latex-geometry |
2339 | (package | |
2340 | (name "texlive-latex-geometry") | |
2341 | (version (number->string %texlive-revision)) | |
2342 | (source (origin | |
2343 | (method svn-fetch) | |
2344 | (uri (texlive-ref "latex" "geometry")) | |
2345 | (file-name (string-append name "-" version "-checkout")) | |
2346 | (sha256 | |
2347 | (base32 | |
2348 | "1r2kfcwclg33yk5z8mvlagwxj7nr1mc3w4bdpmhrwv6dn8mrbvw8")))) | |
2349 | (build-system texlive-build-system) | |
2350 | (arguments '(#:tex-directory "latex/geometry")) | |
2351 | (home-page "http://www.ctan.org/pkg/geometry") | |
2352 | (synopsis "Flexible and complete interface to document dimensions") | |
2353 | (description | |
2354 | "This package provides an easy and flexible user interface to customize | |
2355 | page layout, implementing auto-centering and auto-balancing mechanisms so that | |
2356 | the users have only to give the least description for the page layout. The | |
2357 | package knows about all the standard paper sizes, so that the user need not | |
2358 | know what the nominal \"real\" dimensions of the paper are, just its standard | |
2359 | name (such as a4, letter, etc.). An important feature is the package's | |
2360 | ability to communicate the paper size it's set up to the output.") | |
2361 | (license license:lppl))) | |
2362 | ||
9f86ef85 RW |
2363 | (define-public texlive-latex-hyperref |
2364 | (package | |
2365 | (name "texlive-latex-hyperref") | |
2366 | (version (number->string %texlive-revision)) | |
2367 | (source (origin | |
2368 | (method svn-fetch) | |
2369 | (uri (texlive-ref "latex" "hyperref")) | |
2370 | (sha256 | |
2371 | (base32 | |
2372 | "03arf3xvz1jsbvlpgc5qxbxbl9wmk8k09cn6b8gv9pzgpjy4vx4j")))) | |
2373 | (build-system texlive-build-system) | |
2374 | (arguments | |
2375 | '(#:tex-directory "latex/hyperref" | |
2376 | #:phases | |
2377 | (modify-phases %standard-phases | |
2378 | (add-after 'unpack 'remove-hluatex.def | |
2379 | (lambda _ | |
2380 | ;; This depends on hluatex.dtx, which does not exist and is | |
2381 | ;; nowhere to be found in the sources of the TeX Live | |
2382 | ;; distribution. | |
2383 | (substitute* "hyperref.ins" | |
2384 | (("\\\\file\\{hluatex.def\\}.*") "")) | |
2385 | #t))))) | |
2386 | ;; The package depends on the kvoptions, ltxcmds, and refcount packages, | |
2387 | ;; which are part of the oberdiek bundle. | |
2388 | (inputs | |
2389 | `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek))) | |
2390 | (home-page "http://www.ctan.org/pkg/hyperref") | |
2391 | (synopsis "Extensive support for hypertext in LaTeX") | |
2392 | (description | |
2393 | "The @code{hyperref} package is used to handle cross-referencing commands | |
2394 | in LaTeX to produce hypertext links in the document. The package provides | |
2395 | backends for the @code{\\special} set defined for HyperTeX DVI processors; for | |
2396 | embedded @code{pdfmark} commands for processing by Acrobat | |
2397 | Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo}; | |
2398 | for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's | |
2399 | pdf and HTML backends. The package is distributed with the @code{backref} and | |
2400 | @code{nameref} packages, which make use of the facilities of @code{hyperref}.") | |
2401 | (license license:lppl1.3+))) | |
2402 | ||
d48091be RW |
2403 | (define-public texlive-latex-mdwtools |
2404 | (package | |
2405 | (name "texlive-latex-mdwtools") | |
2406 | (version (number->string %texlive-revision)) | |
2407 | (source (origin | |
2408 | (method svn-fetch) | |
2409 | (uri (texlive-ref "latex" "mdwtools")) | |
2410 | (file-name (string-append name "-" version "-checkout")) | |
2411 | (sha256 | |
2412 | (base32 | |
2413 | "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg")))) | |
2414 | (build-system texlive-build-system) | |
2415 | (arguments '(#:tex-directory "latex/mdwtools")) | |
2416 | (home-page "http://www.ctan.org/pkg/mdwtools") | |
2417 | (synopsis "Miscellaneous tools by Mark Wooding") | |
2418 | (description | |
2419 | "This collection of tools includes: @code{atsupport} for short commands | |
2420 | starting with @code{@}, macros to sanitize the OT1 encoding of the @code{cmtt} | |
2421 | fonts; a @code{doafter} command; improved @code{footnote} support; | |
2422 | @code{mathenv} for various alignment in maths; list handling; @code{mdwmath} | |
2423 | which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and | |
2424 | array environments; verbatim handling; and syntax diagrams.") | |
2425 | (license license:gpl3+))) | |
2426 | ||
80bf1f21 RW |
2427 | (define-public texlive-latex-polyglossia |
2428 | (package | |
2429 | (name "texlive-latex-polyglossia") | |
2430 | (version (number->string %texlive-revision)) | |
2431 | (source (origin | |
2432 | (method svn-fetch) | |
2433 | (uri (texlive-ref "latex" "polyglossia")) | |
2434 | (file-name (string-append name "-" version "-checkout")) | |
2435 | (sha256 | |
2436 | (base32 | |
2437 | "09mvszd5qgqg4cfglpj5qxyzjz190ppb9p8gnsnjydwp1akvhayf")))) | |
2438 | (build-system texlive-build-system) | |
2439 | (arguments '(#:tex-directory "latex/polyglossia")) | |
2440 | (home-page "http://www.ctan.org/pkg/polyglossia") | |
2441 | (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX") | |
2442 | (description | |
2443 | "This package provides a complete Babel replacement for users of LuaLaTeX | |
2444 | and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.") | |
2445 | (license license:lppl1.3+))) | |
2446 | ||
84f8035a RW |
2447 | (define-public texlive-latex-supertabular |
2448 | (package | |
2449 | (name "texlive-latex-supertabular") | |
2450 | (version (number->string %texlive-revision)) | |
2451 | (source (origin | |
2452 | (method svn-fetch) | |
2453 | (uri (texlive-ref "latex" "supertabular")) | |
2454 | (file-name (string-append name "-" version "-checkout")) | |
2455 | (sha256 | |
2456 | (base32 | |
2457 | "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3")))) | |
2458 | (build-system texlive-build-system) | |
2459 | (arguments '(#:tex-directory "latex/supertabular")) | |
2460 | (home-page "http://www.ctan.org/pkg/supertabular") | |
2461 | (synopsis "Multi-page tables package") | |
2462 | (description | |
2463 | "This package was a predecessor of @code{longtable}; the newer | |
2464 | package (designed on quite different principles) is easier to use and more | |
2465 | flexible, in many cases, but supertabular retains its usefulness in a few | |
2466 | situations where longtable has problems.") | |
2467 | (license license:lppl1.3+))) | |
2468 | ||
a0aa6b59 RW |
2469 | (define-public texlive-tex-texinfo |
2470 | (package | |
2471 | (name "texlive-tex-texinfo") | |
2472 | (version (number->string %texlive-revision)) | |
2473 | (source (origin | |
2474 | (method svn-fetch) | |
2475 | (uri (svn-reference | |
2476 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2477 | %texlive-tag "/Master/texmf-dist/" | |
2478 | "/tex/texinfo")) | |
2479 | (revision %texlive-revision))) | |
2480 | (sha256 | |
2481 | (base32 | |
2482 | "09zj2w3lx0y6i2syfjjgizahf86z301dw8p37ln6syfhqhzqdz46")))) | |
2483 | (build-system trivial-build-system) | |
2484 | (arguments | |
2485 | `(#:modules ((guix build utils)) | |
2486 | #:builder | |
2487 | (begin | |
2488 | (use-modules (guix build utils)) | |
2489 | (let ((target (string-append (assoc-ref %outputs "out") | |
2490 | "/share/texmf-dist/tex/texinfo"))) | |
2491 | (mkdir-p target) | |
2492 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2493 | #t)))) | |
2494 | (home-page "http://www.ctan.org/pkg/texinfo") | |
2495 | (synopsis "TeX macros to handle Texinfo files") | |
2496 | (description | |
2497 | "Texinfo is the preferred format for documentation in the GNU project; | |
2498 | the format may be used to produce online or printed output from a single | |
2499 | source. The Texinfo macros may be used to produce printable output using TeX; | |
2500 | other programs in the distribution offer online interactive use (with | |
2501 | hypertext linkages in some cases).") | |
2502 | (license license:gpl3+))) | |
2503 | ||
0de81b09 RW |
2504 | (define-public texlive-latex-upquote |
2505 | (package | |
2506 | (name "texlive-latex-upquote") | |
2507 | (version (number->string %texlive-revision)) | |
2508 | (source (origin | |
2509 | (method svn-fetch) | |
2510 | (uri (texlive-ref "latex" "upquote")) | |
2511 | (file-name (string-append name "-" version "-checkout")) | |
2512 | (sha256 | |
2513 | (base32 | |
2514 | "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp")))) | |
2515 | (build-system texlive-build-system) | |
2516 | (arguments '(#:tex-directory "latex/upquote")) | |
2517 | (home-page "http://www.ctan.org/pkg/upquote") | |
2518 | (synopsis "Show \"realistic\" quotes in verbatim") | |
2519 | (description | |
2520 | "Typewriter-style fonts are best for program listings, but Computer | |
2521 | Modern Typewriter prints @code{`} and @code{'} as bent opening and closing | |
2522 | single quotes. Other fonts, and most programming languages, print @code{`} as | |
2523 | a grave accent and @code{'} upright; @code{'} is used both to open and to | |
2524 | close quoted strings. The package switches the typewriter font to Computer | |
2525 | Modern Typewriter in OT1 encoding, and modifies the behaviour of | |
2526 | @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print | |
2527 | in the expected way. It does this regardless of other fonts or encodings in | |
2528 | use, so long as the package is loaded after the other fonts were. The package | |
2529 | does not affect @code{\\tt}, @code{\\texttt}, etc.") | |
2530 | (license license:lppl1.2+))) | |
2531 | ||
bda61541 RW |
2532 | (define-public texlive-latex-anysize |
2533 | (package | |
2534 | (name "texlive-latex-anysize") | |
2535 | (version (number->string %texlive-revision)) | |
2536 | (source (origin | |
2537 | (method svn-fetch) | |
2538 | (uri (svn-reference | |
2539 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2540 | %texlive-tag "/Master/texmf-dist/" | |
2541 | "/tex/latex/anysize")) | |
2542 | (revision %texlive-revision))) | |
2543 | (sha256 | |
2544 | (base32 | |
2545 | "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb")))) | |
2546 | (build-system trivial-build-system) | |
2547 | (arguments | |
2548 | `(#:modules ((guix build utils)) | |
2549 | #:builder | |
2550 | (begin | |
2551 | (use-modules (guix build utils)) | |
2552 | (let ((target (string-append (assoc-ref %outputs "out") | |
2553 | "/share/texmf-dist/tex/latex/anysize"))) | |
2554 | (mkdir-p target) | |
2555 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2556 | #t)))) | |
2557 | (home-page "http://www.ctan.org/pkg/anysize") | |
2558 | (synopsis "Simple package to set up document margins") | |
2559 | (description | |
2560 | "This is a simple package to set up document margins. This package is | |
2561 | considered obsolete; alternatives are the @code{typearea} package from the | |
2562 | @code{koma-script} bundle, or the @code{geometry} package.") | |
2563 | (license license:public-domain))) | |
2564 | ||
1d3be84e RW |
2565 | (define-public texlive-latex-appendix |
2566 | (package | |
2567 | (name "texlive-latex-appendix") | |
2568 | (version (number->string %texlive-revision)) | |
2569 | (source (origin | |
2570 | (method svn-fetch) | |
2571 | (uri (texlive-ref "latex" "appendix")) | |
2572 | (sha256 | |
2573 | (base32 | |
2574 | "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg")))) | |
2575 | (build-system texlive-build-system) | |
2576 | (arguments '(#:tex-directory "latex/appendix")) | |
2577 | (home-page "http://www.ctan.org/pkg/appendix") | |
2578 | (synopsis "Extra control of appendices") | |
2579 | (description | |
2580 | "The appendix package provides various ways of formatting the titles of | |
2581 | appendices. Also (sub)appendices environments are provided that can be used, | |
2582 | for example, for per chapter/section appendices. An @code{appendices} | |
2583 | environment is provided which can be used instead of the @code{\\appendix} | |
2584 | command.") | |
2585 | (license license:lppl))) | |
2586 | ||
b92ac281 RW |
2587 | (define-public texlive-latex-changebar |
2588 | (package | |
2589 | (name "texlive-latex-changebar") | |
2590 | (version (number->string %texlive-revision)) | |
2591 | (source (origin | |
2592 | (method svn-fetch) | |
2593 | (uri (texlive-ref "latex" "changebar")) | |
2594 | (sha256 | |
2595 | (base32 | |
2596 | "1ik4m8pzfsn1grlda6fniqqfwmgj7rfxwg63jdw0p0qv002vc7ik")))) | |
2597 | (build-system texlive-build-system) | |
2598 | (arguments '(#:tex-directory "latex/changebar")) | |
2599 | (home-page "http://www.ctan.org/pkg/changebar") | |
2600 | (synopsis "Generate changebars in LaTeX documents") | |
2601 | (description | |
2602 | "Identify areas of text to be marked with changebars with the | |
2603 | @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The | |
2604 | package uses 'drivers' to place the bars; the available drivers can work with | |
2605 | @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI | |
2606 | drivers, and VTeX and pdfTeX.") | |
2607 | (license license:lppl))) | |
2608 | ||
fedd77c1 RW |
2609 | (define-public texlive-latex-cmap |
2610 | (package | |
2611 | (name "texlive-latex-cmap") | |
2612 | (version (number->string %texlive-revision)) | |
2613 | (source (origin | |
2614 | (method svn-fetch) | |
2615 | (uri (svn-reference | |
2616 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2617 | %texlive-tag "/Master/texmf-dist/" | |
2618 | "/tex/latex/cmap")) | |
2619 | (revision %texlive-revision))) | |
2620 | (file-name (string-append name "-" version "-checkout")) | |
2621 | (sha256 | |
2622 | (base32 | |
2623 | "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg")))) | |
2624 | (build-system trivial-build-system) | |
2625 | (arguments | |
2626 | `(#:modules ((guix build utils)) | |
2627 | #:builder | |
2628 | (begin | |
2629 | (use-modules (guix build utils)) | |
2630 | (let ((target (string-append (assoc-ref %outputs "out") | |
2631 | "/share/texmf-dist/tex/latex/cmap"))) | |
2632 | (mkdir-p target) | |
2633 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2634 | #t)))) | |
2635 | (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\ | |
2636 | Master/texmf-dist/tex/latex/cmap/") | |
2637 | (synopsis "CMap support for PDF files") | |
2638 | (description | |
2639 | "This package embeds CMap tables into PDF files to make search and | |
2640 | copy-and-paste functions work properly.") | |
2641 | (license license:lppl))) | |
2642 | ||
e003a5f0 RW |
2643 | (define-public texlive-latex-colortbl |
2644 | (package | |
2645 | (name "texlive-latex-colortbl") | |
2646 | (version (number->string %texlive-revision)) | |
2647 | (source (origin | |
2648 | (method svn-fetch) | |
2649 | (uri (texlive-ref "latex" "colortbl")) | |
2650 | (sha256 | |
2651 | (base32 | |
2652 | "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8")))) | |
2653 | (build-system texlive-build-system) | |
2654 | (arguments '(#:tex-directory "latex/colortbl")) | |
2655 | (home-page "http://www.ctan.org/pkg/colortbl") | |
2656 | (synopsis "Add colour to LaTeX tables") | |
2657 | (description | |
2658 | "This package allows rows, columns, and even individual cells in LaTeX | |
2659 | tables to be coloured.") | |
2660 | (license license:lppl))) | |
2661 | ||
36ce05ff RW |
2662 | (define-public texlive-latex-fancybox |
2663 | (package | |
2664 | (name "texlive-latex-fancybox") | |
2665 | (version (number->string %texlive-revision)) | |
2666 | (source (origin | |
2667 | (method svn-fetch) | |
2668 | (uri (svn-reference | |
2669 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2670 | %texlive-tag "/Master/texmf-dist/" | |
2671 | "/tex/latex/fancybox")) | |
2672 | (revision %texlive-revision))) | |
2673 | (sha256 | |
2674 | (base32 | |
2675 | "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w")))) | |
2676 | (build-system trivial-build-system) | |
2677 | (arguments | |
2678 | `(#:modules ((guix build utils)) | |
2679 | #:builder | |
2680 | (begin | |
2681 | (use-modules (guix build utils)) | |
2682 | (let ((target (string-append (assoc-ref %outputs "out") | |
2683 | "/share/texmf-dist/tex/latex/fancybox"))) | |
2684 | (mkdir-p target) | |
2685 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2686 | #t)))) | |
2687 | (home-page "http://www.ctan.org/pkg/fancybox") | |
2688 | (synopsis "Variants of \\fbox and other games with boxes") | |
2689 | (description | |
2690 | "This package provides variants of @code{\\fbox}: @code{\\shadowbox}, | |
2691 | @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for | |
2692 | using box macros and flexible verbatim macros. You can box mathematics, | |
2693 | floats, center, flushleft, and flushright, lists, and pages.") | |
2694 | (license license:lppl1.2+))) | |
2695 | ||
20282111 RW |
2696 | (define-public texlive-latex-fancyhdr |
2697 | (package | |
2698 | (name "texlive-latex-fancyhdr") | |
2699 | (version (number->string %texlive-revision)) | |
2700 | (source (origin | |
2701 | (method svn-fetch) | |
2702 | (uri (svn-reference | |
2703 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2704 | %texlive-tag "/Master/texmf-dist/" | |
2705 | "/tex/latex/fancyhdr")) | |
2706 | (revision %texlive-revision))) | |
2707 | (sha256 | |
2708 | (base32 | |
2709 | "04h430agf8aj7ziwyb46xpk95c605rjk1wzhr63m6ylipihidlgw")))) | |
2710 | (build-system trivial-build-system) | |
2711 | (arguments | |
2712 | `(#:modules ((guix build utils)) | |
2713 | #:builder | |
2714 | (begin | |
2715 | (use-modules (guix build utils)) | |
2716 | (let ((target (string-append (assoc-ref %outputs "out") | |
2717 | "/share/texmf-dist/tex/latex/fancyhdr"))) | |
2718 | (mkdir-p target) | |
2719 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2720 | #t)))) | |
2721 | (home-page "http://www.ctan.org/pkg/fancyhdr") | |
2722 | (synopsis "Extensive control of page headers and footers in LaTeX2e") | |
2723 | (description | |
2724 | "The package provides extensive facilities, both for constructing headers | |
2725 | and footers, and for controlling their use (for example, at times when LaTeX | |
2726 | would automatically change the heading style in use).") | |
2727 | (license license:lppl))) | |
2728 | ||
18ce3437 RW |
2729 | (define-public texlive-latex-fancyvrb |
2730 | (package | |
2731 | (name "texlive-latex-fancyvrb") | |
2732 | (version (number->string %texlive-revision)) | |
2733 | (source (origin | |
2734 | (method svn-fetch) | |
2735 | (uri (texlive-ref "latex" "fancyvrb")) | |
2736 | (sha256 | |
2737 | (base32 | |
2738 | "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv")))) | |
2739 | (build-system texlive-build-system) | |
2740 | (arguments | |
2741 | '(#:build-targets '("fancyvrb.ins") ; fvrb-ex.ins cannot be built | |
2742 | #:tex-directory "latex/fancyvrb")) | |
2743 | (home-page "http://www.ctan.org/pkg/fancyvrb") | |
2744 | (synopsis "Sophisticated verbatim text") | |
2745 | (description | |
2746 | "This package provides tools for flexible handling of verbatim text | |
2747 | including: verbatim commands in footnotes; a variety of verbatim environments | |
2748 | with many parameters; ability to define new customized verbatim environments; | |
2749 | save and restore verbatim text and environments; write and read files in | |
2750 | verbatim mode; build \"example\" environments (showing both result and | |
2751 | verbatim source).") | |
2752 | (license license:lppl1.0+))) | |
2753 | ||
df2b9bb4 RW |
2754 | (define-public texlive-latex-float |
2755 | (package | |
2756 | (name "texlive-latex-float") | |
2757 | (version (number->string %texlive-revision)) | |
2758 | (source (origin | |
2759 | (method svn-fetch) | |
2760 | (uri (texlive-ref "latex" "float")) | |
2761 | (sha256 | |
2762 | (base32 | |
2763 | "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq")))) | |
2764 | (build-system texlive-build-system) | |
2765 | (arguments '(#:tex-directory "latex/float")) | |
2766 | (home-page "http://www.ctan.org/pkg/float") | |
2767 | (synopsis "Improved interface for floating objects") | |
2768 | (description | |
2769 | "This package improves the interface for defining floating objects such | |
2770 | as figures and tables. It introduces the boxed float, the ruled float and the | |
2771 | plaintop float. You can define your own floats and improve the behaviour of | |
2772 | the old ones. The package also provides the @code{H} float modifier option of | |
2773 | the obsolete @code{here} package. You can select this as automatic default | |
2774 | with @code{\\floatplacement{figure}{H}}.") | |
2775 | (license license:lppl))) | |
2776 | ||
3921bc7c RW |
2777 | (define-public texlive-latex-footmisc |
2778 | (package | |
2779 | (name "texlive-latex-footmisc") | |
2780 | (version (number->string %texlive-revision)) | |
2781 | (source (origin | |
2782 | (method svn-fetch) | |
2783 | (uri (texlive-ref "latex" "footmisc")) | |
2784 | (sha256 | |
2785 | (base32 | |
2786 | "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs")))) | |
2787 | (build-system texlive-build-system) | |
2788 | (arguments '(#:tex-directory "latex/footmisc")) | |
2789 | (home-page "http://www.ctan.org/pkg/footmisc") | |
2790 | (synopsis "Range of footnote options") | |
2791 | (description | |
2792 | "This is a collection of ways to change the typesetting of footnotes. | |
2793 | The package provides means of changing the layout of the footnotes themselves, | |
2794 | a way to number footnotes per page, to make footnotes disappear in a | |
2795 | \"moving\" argument, and to deal with multiple references to footnotes from | |
2796 | the same place. The package also has a range of techniques for labelling | |
2797 | footnotes with symbols rather than numbers.") | |
2798 | (license license:lppl1.3+))) | |
2799 | ||
b2bc1daf RW |
2800 | (define-public texlive-latex-listings |
2801 | (package | |
2802 | (name "texlive-latex-listings") | |
2803 | (version (number->string %texlive-revision)) | |
2804 | (source (origin | |
2805 | (method svn-fetch) | |
2806 | (uri (texlive-ref "latex" "listings")) | |
2807 | (sha256 | |
2808 | (base32 | |
2809 | "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf")))) | |
2810 | (build-system texlive-build-system) | |
2811 | (arguments | |
2812 | '(#:tex-directory "latex/listings" | |
2813 | #:build-targets '("listings.ins"))) | |
2814 | (home-page "http://www.ctan.org/pkg/listings") | |
2815 | (synopsis "Typeset source code listings using LaTeX") | |
2816 | (description | |
2817 | "The package enables the user to typeset programs (programming code) | |
2818 | within LaTeX; the source code is read directly by TeX---no front-end processor | |
2819 | is needed. Keywords, comments and strings can be typeset using different | |
2820 | styles. Support for @code{hyperref} is provided.") | |
2821 | (license license:lppl1.3+))) | |
2822 | ||
02fd07b3 RW |
2823 | (define-public texlive-latex-jknapltx |
2824 | (package | |
2825 | (name "texlive-latex-jknapltx") | |
2826 | (version (number->string %texlive-revision)) | |
2827 | (source (origin | |
2828 | (method svn-fetch) | |
2829 | (uri (svn-reference | |
2830 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2831 | %texlive-tag "/Master/texmf-dist/" | |
2832 | "/tex/latex/jknapltx")) | |
2833 | (revision %texlive-revision))) | |
2834 | (sha256 | |
2835 | (base32 | |
2836 | "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9")))) | |
2837 | (build-system trivial-build-system) | |
2838 | (arguments | |
2839 | `(#:modules ((guix build utils)) | |
2840 | #:builder | |
2841 | (begin | |
2842 | (use-modules (guix build utils)) | |
2843 | (let ((target (string-append (assoc-ref %outputs "out") | |
2844 | "/share/texmf-dist/tex/latex/jknapltx"))) | |
2845 | (mkdir-p target) | |
2846 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2847 | #t)))) | |
2848 | (home-page "http://www.ctan.org/pkg/jknappen") | |
2849 | (synopsis "Miscellaneous packages by Joerg Knappen") | |
2850 | (description | |
2851 | "This package provides miscellaneous macros by Joerg Knappen, including: | |
2852 | represent counters in greek; Maxwell's non-commutative division; | |
2853 | @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are | |
2854 | @code{inputenc} definition files that allow verbatim input in the respective | |
2855 | ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths; | |
2856 | extra alignments for @code{\\parboxes}; swap Roman and Sans fonts; | |
2857 | transliterate semitic languages; patches to make (La)TeX formulae embeddable | |
2858 | in SGML; use maths minus in text as appropriate; simple Young tableaux.") | |
2859 | (license license:gpl2))) | |
2860 | ||
83c830d1 RW |
2861 | (define-public texlive-fonts-ec |
2862 | (package | |
2863 | (name "texlive-fonts-ec") | |
2864 | (version (number->string %texlive-revision)) | |
2865 | (source (origin | |
2866 | (method svn-fetch) | |
2867 | (uri (svn-reference | |
2868 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2869 | %texlive-tag "/Master/texmf-dist/" | |
2870 | "/fonts/source/jknappen/ec/")) | |
2871 | (revision %texlive-revision))) | |
2872 | (sha256 | |
2873 | (base32 | |
2874 | "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4")))) | |
2875 | (build-system gnu-build-system) | |
2876 | (arguments | |
2877 | `(#:modules ((guix build gnu-build-system) | |
2878 | (guix build utils) | |
2879 | (srfi srfi-1) | |
2880 | (srfi srfi-26)) | |
2881 | #:tests? #f ; no tests | |
2882 | #:phases | |
2883 | (modify-phases %standard-phases | |
2884 | (delete 'configure) | |
2885 | (replace 'build | |
2886 | (lambda* (#:key inputs #:allow-other-keys) | |
2887 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
2888 | ;; Tell mf where to find mf.base | |
2889 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
2890 | ;; Tell mf where to look for source files | |
2891 | (setenv "MFINPUTS" | |
2892 | (string-append (getcwd) ":" | |
2893 | mf "/share/texmf-dist/metafont/base:" | |
2894 | (assoc-ref inputs "texlive-fonts-cm") | |
2895 | "/share/texmf-dist/fonts/source/public/cm"))) | |
2896 | (mkdir "build") | |
2897 | (every (lambda (font) | |
2898 | (format #t "building font ~a\n" font) | |
2899 | (zero? (system* "mf" "-progname=mf" | |
2900 | "-output-directory=build" | |
2901 | (string-append "\\" | |
2902 | "mode:=ljfour; " | |
2903 | "mag:=1; " | |
2904 | "batchmode; " | |
2905 | "input " (basename font ".mf"))))) | |
2906 | (find-files "." "[0-9]+\\.mf$")))) | |
2907 | (replace 'install | |
2908 | (lambda* (#:key outputs #:allow-other-keys) | |
2909 | (let* ((out (assoc-ref outputs "out")) | |
2910 | (tfm (string-append | |
2911 | out "/share/texmf-dist/fonts/tfm/jknappen/ec")) | |
2912 | (mf (string-append | |
2913 | out "/share/texmf-dist/fonts/source/jknappen/ec"))) | |
2914 | (for-each (cut install-file <> tfm) | |
2915 | (find-files "build" "\\.*")) | |
2916 | (for-each (cut install-file <> mf) | |
2917 | (find-files "." "\\.mf")) | |
2918 | #t)))))) | |
2919 | (native-inputs | |
2920 | `(("texlive-bin" ,texlive-bin) | |
2921 | ("texlive-metafont-base" ,texlive-metafont-base) | |
2922 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
2923 | (home-page "http://www.ctan.org/pkg/ec") | |
2924 | (synopsis "Computer modern fonts in T1 and TS1 encodings") | |
2925 | (description | |
2926 | "The EC fonts are European Computer Modern Fonts, supporting the complete | |
2927 | LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland. | |
2928 | These fonts are intended to be stable with no changes being made to the tfm | |
2929 | files. The set also contains a Text Companion Symbol font, called @code{tc}, | |
2930 | featuring many useful characters needed in text typesetting, for example | |
2931 | oldstyle digits, currency symbols (including the newly created Euro symbol), | |
2932 | the permille sign, copyright, trade mark and servicemark as well as a copyleft | |
2933 | sign, and many others. Recent releases of LaTeX2e support the EC fonts. The | |
2934 | EC fonts supersede the preliminary version released as the DC fonts. The | |
2935 | fonts are available in (traced) Adobe Type 1 format, as part of the | |
2936 | @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1 | |
2937 | set, Latin Modern, is not actually a direct development of the EC set, and | |
2938 | differs from the EC in a number of particulars.") | |
2939 | (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\ | |
2940 | texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt")))) | |
2941 | ||
f45a5520 RW |
2942 | (define-public texlive-fonts-rsfs |
2943 | (package | |
2944 | (name "texlive-fonts-rsfs") | |
2945 | (version (number->string %texlive-revision)) | |
2946 | (source (origin | |
2947 | (method svn-fetch) | |
2948 | (uri (svn-reference | |
2949 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2950 | %texlive-tag "/Master/texmf-dist/" | |
2951 | "/fonts/source/public/rsfs/")) | |
2952 | (revision %texlive-revision))) | |
2953 | (sha256 | |
2954 | (base32 | |
2955 | "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h")))) | |
2956 | (build-system gnu-build-system) | |
2957 | (arguments | |
2958 | `(#:modules ((guix build gnu-build-system) | |
2959 | (guix build utils) | |
2960 | (srfi srfi-1) | |
2961 | (srfi srfi-26)) | |
2962 | #:tests? #f ; no tests | |
2963 | #:phases | |
2964 | (modify-phases %standard-phases | |
2965 | (delete 'configure) | |
2966 | (replace 'build | |
2967 | (lambda* (#:key inputs #:allow-other-keys) | |
2968 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
2969 | ;; Tell mf where to find mf.base | |
2970 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
2971 | ;; Tell mf where to look for source files | |
2972 | (setenv "MFINPUTS" | |
2973 | (string-append (getcwd) ":" | |
2974 | mf "/share/texmf-dist/metafont/base:" | |
2975 | (assoc-ref inputs "texlive-fonts-cm") | |
2976 | "/share/texmf-dist/fonts/source/public/cm"))) | |
2977 | (mkdir "build") | |
2978 | (every (lambda (font) | |
2979 | (format #t "building font ~a\n" font) | |
2980 | (zero? (system* "mf" "-progname=mf" | |
2981 | "-output-directory=build" | |
2982 | (string-append "\\" | |
2983 | "mode:=ljfour; " | |
2984 | "mag:=1; " | |
2985 | "batchmode; " | |
2986 | "input " (basename font ".mf"))))) | |
2987 | (find-files "." "[0-9]+\\.mf$")))) | |
2988 | (replace 'install | |
2989 | (lambda* (#:key outputs #:allow-other-keys) | |
2990 | (let* ((out (assoc-ref outputs "out")) | |
2991 | (tfm (string-append | |
2992 | out "/share/texmf-dist/fonts/tfm/public/rsfs")) | |
2993 | (mf (string-append | |
2994 | out "/share/texmf-dist/fonts/source/public/rsfs"))) | |
2995 | (for-each (cut install-file <> tfm) | |
2996 | (find-files "build" "\\.*")) | |
2997 | (for-each (cut install-file <> mf) | |
2998 | (find-files "." "\\.mf")) | |
2999 | #t)))))) | |
3000 | (native-inputs | |
3001 | `(("texlive-bin" ,texlive-bin) | |
3002 | ("texlive-metafont-base" ,texlive-metafont-base) | |
3003 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
3004 | (home-page "http://www.ctan.org/pkg/rsfs") | |
3005 | (synopsis "Ralph Smith's Formal Script font") | |
3006 | (description | |
3007 | "The fonts provide uppercase formal script letters for use as symbols in | |
3008 | scientific and mathematical typesetting (in contrast to the informal script | |
3009 | fonts such as that used for the calligraphic symbols in the TeX maths symbol | |
3010 | font). The fonts are provided as Metafont source, and as derived Adobe Type 1 | |
3011 | format. LaTeX support, for using these fonts in mathematics, is available via | |
3012 | one of the packages @code{calrsfs} and @code{mathrsfs}.") | |
3013 | (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README")))) | |
3014 | ||
1562763c RW |
3015 | (define-public texlive-latex-eso-pic |
3016 | (package | |
3017 | (name "texlive-latex-eso-pic") | |
3018 | (version (number->string %texlive-revision)) | |
3019 | (source (origin | |
3020 | (method svn-fetch) | |
3021 | (uri (texlive-ref "latex" "eso-pic")) | |
3022 | (sha256 | |
3023 | (base32 | |
3024 | "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z")))) | |
3025 | (build-system texlive-build-system) | |
3026 | (arguments '(#:tex-directory "latex/eso-pic")) | |
3027 | (home-page "http://www.ctan.org/pkg/eso-pic") | |
3028 | (synopsis "Add picture commands (or backgrounds) to every page") | |
3029 | (description | |
3030 | "The package adds one or more user commands to LaTeX's @code{shipout} | |
3031 | routine, which may be used to place the output at fixed positions. The | |
3032 | @code{grid} option may be used to find the correct places.") | |
3033 | (license license:lppl1.3+))) | |
3034 | ||
ae3779d5 RW |
3035 | (define-public texlive-latex-eepic |
3036 | (package | |
3037 | (name "texlive-latex-eepic") | |
3038 | (version (number->string %texlive-revision)) | |
3039 | (source (origin | |
3040 | (method svn-fetch) | |
3041 | (uri (svn-reference | |
3042 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3043 | %texlive-tag "/Master/texmf-dist/" | |
3044 | "/tex/latex/eepic")) | |
3045 | (revision %texlive-revision))) | |
3046 | (sha256 | |
3047 | (base32 | |
3048 | "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw")))) | |
3049 | (build-system trivial-build-system) | |
3050 | (arguments | |
3051 | `(#:modules ((guix build utils)) | |
3052 | #:builder | |
3053 | (begin | |
3054 | (use-modules (guix build utils)) | |
3055 | (let ((target (string-append (assoc-ref %outputs "out") | |
3056 | "/share/texmf-dist/tex/latex/eepic"))) | |
3057 | (mkdir-p target) | |
3058 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3059 | #t)))) | |
3060 | (home-page "http://www.ctan.org/pkg/eepic") | |
3061 | (synopsis "Extensions to epic and the LaTeX drawing tools") | |
3062 | (description | |
3063 | "Extensions to @code{epic} and the LaTeX picture drawing environment, | |
3064 | include the drawing of lines at any slope, the drawing of circles in any | |
3065 | radii, and the drawing of dotted and dashed lines much faster with much less | |
3066 | TeX memory, and providing several new commands for drawing ellipses, arcs, | |
3067 | splines, and filled circles and ellipses. The package uses @code{tpic} | |
3068 | @code{\\special} commands.") | |
3069 | (license license:public-domain))) | |
3070 | ||
245f1f31 RW |
3071 | (define-public texlive-latex-enumitem |
3072 | (package | |
3073 | (name "texlive-latex-enumitem") | |
3074 | (version (number->string %texlive-revision)) | |
3075 | (source (origin | |
3076 | (method svn-fetch) | |
3077 | (uri (svn-reference | |
3078 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3079 | %texlive-tag "/Master/texmf-dist/" | |
3080 | "/tex/latex/enumitem")) | |
3081 | (revision %texlive-revision))) | |
3082 | (file-name (string-append name "-" version "-checkout")) | |
3083 | (sha256 | |
3084 | (base32 | |
3085 | "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r")))) | |
3086 | (build-system trivial-build-system) | |
3087 | (arguments | |
3088 | `(#:modules ((guix build utils)) | |
3089 | #:builder | |
3090 | (begin | |
3091 | (use-modules (guix build utils)) | |
3092 | (let ((target (string-append (assoc-ref %outputs "out") | |
3093 | "/share/texmf-dist/tex/latex/enumitem"))) | |
3094 | (mkdir-p target) | |
3095 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3096 | #t)))) | |
3097 | (home-page "http://www.ctan.org/pkg/enumitem") | |
3098 | (synopsis "Customize basic list environments") | |
3099 | (description | |
3100 | "This package is intended to ease customizing the three basic list | |
3101 | environments: @code{enumerate}, @code{itemize} and @code{description}. It | |
3102 | extends their syntax to allow an optional argument where a set of parameters | |
3103 | in the form @code{key=value} are available, for example: | |
3104 | @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.") | |
3105 | (license license:lppl1.3+))) | |
3106 | ||
ecffeeb5 RW |
3107 | (define-public texlive-latex-multirow |
3108 | (package | |
3109 | (name "texlive-latex-multirow") | |
3110 | (version (number->string %texlive-revision)) | |
3111 | (source (origin | |
3112 | (method svn-fetch) | |
3113 | (uri (texlive-ref "latex" "multirow")) | |
3114 | (sha256 | |
3115 | (base32 | |
3116 | "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0")))) | |
3117 | (build-system texlive-build-system) | |
3118 | (arguments '(#:tex-directory "latex/multirow")) | |
3119 | (home-page "http://www.ctan.org/pkg/multirow") | |
3120 | (synopsis "Create tabular cells spanning multiple rows") | |
3121 | (description | |
3122 | "The package provides tools for creating tabular cells spanning multiple | |
3123 | rows. It has a lot of flexibility, including an option for specifying an | |
3124 | entry at the \"natural\" width of its text.") | |
3125 | (license license:lppl1.3+))) | |
3126 | ||
da38b235 RW |
3127 | (define-public texlive-latex-overpic |
3128 | (package | |
3129 | (name "texlive-latex-overpic") | |
3130 | (version (number->string %texlive-revision)) | |
3131 | (source (origin | |
3132 | (method svn-fetch) | |
3133 | (uri (svn-reference | |
3134 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3135 | %texlive-tag "/Master/texmf-dist/" | |
3136 | "/tex/latex/overpic")) | |
3137 | (revision %texlive-revision))) | |
3138 | (sha256 | |
3139 | (base32 | |
3140 | "0m29q9qdb00558b7g2i7iw6w62n5s46yx81j8m99qkv77magk4fm")))) | |
3141 | (build-system trivial-build-system) | |
3142 | (arguments | |
3143 | `(#:modules ((guix build utils)) | |
3144 | #:builder | |
3145 | (begin | |
3146 | (use-modules (guix build utils)) | |
3147 | (let ((target (string-append (assoc-ref %outputs "out") | |
3148 | "/share/texmf-dist/tex/latex/overpic"))) | |
3149 | (mkdir-p target) | |
3150 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3151 | #t)))) | |
3152 | (home-page "http://www.ctan.org/pkg/overpic") | |
3153 | (synopsis "Combine LaTeX commands over included graphics") | |
3154 | (description | |
3155 | "The @code{overpic} environment is a cross between the LaTeX | |
3156 | @code{picture} environment and the @code{\\includegraphics} command of | |
3157 | @code{graphicx}. The resulting picture environment has the same dimensions as | |
3158 | the included graphic. LaTeX commands can be placed on the graphic at defined | |
3159 | positions; a grid for orientation is available.") | |
3160 | (license license:lppl1.0+))) | |
3161 | ||
e0d307d1 RW |
3162 | (define-public texlive-latex-parskip |
3163 | (package | |
3164 | (name "texlive-latex-parskip") | |
3165 | (version (number->string %texlive-revision)) | |
3166 | (source (origin | |
3167 | (method svn-fetch) | |
3168 | (uri (svn-reference | |
3169 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3170 | %texlive-tag "/Master/texmf-dist/" | |
3171 | "/tex/latex/parskip")) | |
3172 | (revision %texlive-revision))) | |
3173 | (file-name (string-append name "-" version "-checkout")) | |
3174 | (sha256 | |
3175 | (base32 | |
3176 | "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m")))) | |
3177 | (build-system trivial-build-system) | |
3178 | (arguments | |
3179 | `(#:modules ((guix build utils)) | |
3180 | #:builder | |
3181 | (begin | |
3182 | (use-modules (guix build utils)) | |
3183 | (let ((target (string-append (assoc-ref %outputs "out") | |
3184 | "/share/texmf-dist/tex/latex/parskip"))) | |
3185 | (mkdir-p target) | |
3186 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3187 | #t)))) | |
3188 | (home-page "http://www.ctan.org/pkg/parskip") | |
3189 | (synopsis "Layout with zero \\parindent, non-zero \\parskip") | |
3190 | (description | |
3191 | "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout | |
3192 | that is untidy; this package (though it is no substitute for a properly | |
3193 | designed class) helps alleviate this untidiness.") | |
3194 | (license license:lppl))) | |
3195 | ||
adc02c70 RW |
3196 | (define-public texlive-latex-pdfpages |
3197 | (package | |
3198 | (name "texlive-latex-pdfpages") | |
3199 | (version (number->string %texlive-revision)) | |
3200 | (source (origin | |
3201 | (method svn-fetch) | |
3202 | (uri (texlive-ref "latex" "pdfpages")) | |
3203 | (sha256 | |
3204 | (base32 | |
3205 | "06p5smfq66559ppdnmkl3hp8534x84ywbscimsiir4gllpya3i9h")))) | |
3206 | (build-system texlive-build-system) | |
3207 | (arguments '(#:tex-directory "latex/pdfpages")) | |
3208 | (home-page "http://www.ctan.org/pkg/pdfpages") | |
3209 | (synopsis "Include PDF documents in LaTeX") | |
3210 | (description | |
3211 | "This package simplifies the inclusion of external multi-page PDF | |
3212 | documents in LaTeX documents. Pages may be freely selected and it is possible | |
3213 | to put several logical pages onto each sheet of paper. Furthermore a lot of | |
3214 | hypertext features like hyperlinks and article threads are provided. The | |
3215 | package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to | |
3216 | use this package to insert PostScript files, in addition to PDF files.") | |
3217 | (license license:lppl1.3+))) | |
3218 | ||
d8fef6ea RW |
3219 | (define-public texlive-fonts-stmaryrd |
3220 | (package | |
3221 | (name "texlive-fonts-stmaryrd") | |
3222 | (version (number->string %texlive-revision)) | |
3223 | (source (origin | |
3224 | (method svn-fetch) | |
3225 | (uri (texlive-ref "fonts" "stmaryrd")) | |
3226 | (sha256 | |
3227 | (base32 | |
3228 | "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6")))) | |
3229 | (build-system texlive-build-system) | |
3230 | (arguments | |
3231 | '(#:tex-directory "latex/stmaryrd" | |
3232 | #:phases | |
3233 | (modify-phases %standard-phases | |
3234 | (add-after 'configure 'patch-ins | |
3235 | (lambda _ | |
3236 | (substitute* "stmaryrd.ins" | |
3237 | (("^%% LaTeX2e.*") "\\input docstrip\n") | |
3238 | (("fontdef\\}\\}" line) | |
3239 | (string-append line "\n\\endbatchfile"))) | |
3240 | #t))))) | |
3241 | (home-page "http://www.ctan.org/pkg/stmaryrd") | |
3242 | (synopsis "St Mary Road symbols for theoretical computer science") | |
3243 | (description | |
3244 | "The fonts were originally distributed as Metafont sources only, but | |
3245 | Adobe Type 1 versions are also now available. Macro support is provided for | |
3246 | use under LaTeX; the package supports the @code{only} option (provided by the | |
3247 | @code{somedefs} package) to restrict what is loaded, for those who don't need | |
3248 | the whole font.") | |
3249 | (license license:lppl))) | |
3250 | ||
2db3a034 RW |
3251 | (define-public texlive-latex-subfigure |
3252 | (package | |
3253 | (name "texlive-latex-subfigure") | |
3254 | (version (number->string %texlive-revision)) | |
3255 | (source (origin | |
3256 | (method svn-fetch) | |
3257 | (uri (texlive-ref "latex" "subfigure")) | |
3258 | (sha256 | |
3259 | (base32 | |
3260 | "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb")))) | |
3261 | (build-system texlive-build-system) | |
3262 | (arguments '(#:tex-directory "latex/subfigure")) | |
3263 | (home-page "http://www.ctan.org/pkg/subfigure") | |
3264 | (synopsis "Figures divided into subfigures") | |
3265 | (description | |
3266 | "This (deprecated) package provides support for the manipulation and | |
3267 | reference of small or \"sub\" figures and tables within a single figure or | |
3268 | table environment. It is convenient to use this package when your subfigures | |
3269 | are to be separately captioned, referenced, or are to be included in the | |
3270 | List-of-Figures. A new @code{\\subfigure} command is introduced which can be | |
3271 | used inside a figure environment for each subfigure. An optional first | |
3272 | argument is used as the caption for that subfigure. The package is now | |
3273 | considered obsolete: it was superseded by @code{subfig}, but users may find | |
3274 | the more recent @code{subcaption} package more satisfactory.") | |
3275 | (license license:lppl))) | |
3276 | ||
c73d0e9d RW |
3277 | (define-public texlive-latex-tabulary |
3278 | (package | |
3279 | (name "texlive-latex-tabulary") | |
3280 | (version (number->string %texlive-revision)) | |
3281 | (source (origin | |
3282 | (method svn-fetch) | |
3283 | (uri (texlive-ref "latex" "tabulary")) | |
3284 | (file-name (string-append name "-" version "-checkout")) | |
3285 | (sha256 | |
3286 | (base32 | |
3287 | "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n")))) | |
3288 | (build-system texlive-build-system) | |
3289 | (arguments '(#:tex-directory "latex/tabulary")) | |
3290 | (home-page "http://www.ctan.org/pkg/tabulary") | |
3291 | (synopsis "Tabular with variable width columns balanced") | |
3292 | (description | |
3293 | "The package defines a @code{tabular*}-like environment, @code{tabulary}, | |
3294 | taking a \"total width\" argument as well as the column specifications. The | |
3295 | environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for | |
3296 | variable width columns (@code{\\raggedright}, @code{\\centering}, | |
3297 | @code{\\raggedleft}, and normally justified). In contrast to | |
3298 | @code{tabularx}'s @code{X} columns, the width of each column is weighted | |
3299 | according to the natural width of the widest cell in the column.") | |
3300 | (license license:lppl))) | |
3301 | ||
e3088297 RW |
3302 | (define-public texlive-latex-threeparttable |
3303 | (package | |
3304 | (name "texlive-latex-threeparttable") | |
3305 | (version (number->string %texlive-revision)) | |
3306 | (source (origin | |
3307 | (method svn-fetch) | |
3308 | (uri (svn-reference | |
3309 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3310 | %texlive-tag "/Master/texmf-dist/" | |
3311 | "/tex/latex/threeparttable")) | |
3312 | (revision %texlive-revision))) | |
3313 | (sha256 | |
3314 | (base32 | |
3315 | "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq")))) | |
3316 | (build-system trivial-build-system) | |
3317 | (arguments | |
3318 | `(#:modules ((guix build utils)) | |
3319 | #:builder | |
3320 | (begin | |
3321 | (use-modules (guix build utils)) | |
3322 | (let ((target (string-append (assoc-ref %outputs "out") | |
3323 | "/share/texmf-dist/tex/latex/threeparttable"))) | |
3324 | (mkdir-p target) | |
3325 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3326 | #t)))) | |
3327 | (home-page "http://www.ctan.org/pkg/threeparttable") | |
3328 | (synopsis "Tables with captions and notes all the same width") | |
3329 | (description | |
3330 | "This package facilitates tables with titles (captions) and notes. The | |
3331 | title and notes are given a width equal to the body of the table (a | |
3332 | @code{tabular} environment). By itself, a @code{threeparttable} does not | |
3333 | float, but you can put it in a @code{table} or a @code{table*} or some other | |
3334 | environment.") | |
3335 | (license (license:fsf-free "file://threeparttable.sty")))) | |
3336 | ||
acc620d6 RW |
3337 | (define-public texlive-latex-titlesec |
3338 | (package | |
3339 | (name "texlive-latex-titlesec") | |
3340 | (version (number->string %texlive-revision)) | |
3341 | (source (origin | |
3342 | (method svn-fetch) | |
3343 | (uri (svn-reference | |
3344 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3345 | %texlive-tag "/Master/texmf-dist/" | |
3346 | "/tex/latex/titlesec")) | |
3347 | (revision %texlive-revision))) | |
3348 | (sha256 | |
3349 | (base32 | |
3350 | "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21")))) | |
3351 | (build-system trivial-build-system) | |
3352 | (arguments | |
3353 | `(#:modules ((guix build utils)) | |
3354 | #:builder | |
3355 | (begin | |
3356 | (use-modules (guix build utils)) | |
3357 | (let ((target (string-append (assoc-ref %outputs "out") | |
3358 | "/share/texmf-dist/tex/latex/titlesec"))) | |
3359 | (mkdir-p target) | |
3360 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3361 | #t)))) | |
3362 | (home-page "http://www.ctan.org/pkg/titlesec") | |
3363 | (synopsis "Select alternative section titles") | |
3364 | (description | |
3365 | "This package provides an interface to sectioning commands for selection | |
3366 | from various title styles, e.g. for marginal titles and to change the font of | |
3367 | all headings with a single command, also providing simple one-step page | |
3368 | styles. It also includes a package to change the page styles when there are | |
3369 | floats in a page. You may assign headers/footers to individual floats, too.") | |
3370 | (license license:lppl))) | |
3371 | ||
406af0d6 RW |
3372 | (define-public texlive-latex-lh |
3373 | (package | |
3374 | (name "texlive-latex-lh") | |
3375 | (version (number->string %texlive-revision)) | |
3376 | (source (origin | |
3377 | (method svn-fetch) | |
3378 | (uri (texlive-ref "latex" "lh")) | |
3379 | (sha256 | |
3380 | (base32 | |
3381 | "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5")))) | |
3382 | (build-system texlive-build-system) | |
3383 | (arguments '(#:tex-directory "latex/lh")) | |
3384 | (home-page "http://www.ctan.org/pkg/lh") | |
3385 | (synopsis "Cyrillic fonts that support LaTeX standard encodings") | |
3386 | (description | |
3387 | "The LH fonts address the problem of the wide variety of alphabets that | |
3388 | are written with Cyrillic-style characters. The fonts are the original basis | |
3389 | of the set of T2* and X2 encodings that are now used when LaTeX users need to | |
3390 | write in Cyrillic languages. Macro support in standard LaTeX encodings is | |
3391 | offered through the latex-cyrillic and t2 bundles, and the package itself | |
3392 | offers support for other (more traditional) encodings. The fonts, in the | |
3393 | standard T2* and X2 encodings are available in Adobe Type 1 format, in the | |
3394 | CM-Super family of fonts. The package also offers its own LaTeX support for | |
3395 | OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.") | |
3396 | (license license:lppl))) | |
3397 | ||
44436def RW |
3398 | (define-public texlive-metapost |
3399 | (package | |
3400 | (name "texlive-metapost") | |
3401 | (version (number->string %texlive-revision)) | |
3402 | (source (origin | |
3403 | (method svn-fetch) | |
3404 | (uri (svn-reference | |
3405 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3406 | %texlive-tag "/Master/texmf-dist/" | |
3407 | "/metapost")) | |
3408 | (revision %texlive-revision))) | |
3409 | (sha256 | |
3410 | (base32 | |
3411 | "03nvjddffiz796wll6axzmgfvynyciy2mqamv20qx252w71vwkwd")))) | |
3412 | (build-system trivial-build-system) | |
3413 | (arguments | |
3414 | `(#:modules ((guix build utils)) | |
3415 | #:builder | |
3416 | (begin | |
3417 | (use-modules (guix build utils)) | |
3418 | (let ((target (string-append (assoc-ref %outputs "out") | |
3419 | "/share/texmf-dist/metapost"))) | |
3420 | (mkdir-p target) | |
3421 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3422 | #t)))) | |
3423 | (home-page "http://www.ctan.org/pkg/metapost") | |
3424 | (synopsis "Create scalable illustrations") | |
3425 | (description | |
3426 | "MetaPost uses a language based on that of Metafont to produce precise | |
3427 | technical illustrations. Its output is scalable PostScript or SVG, rather | |
3428 | than the bitmaps Metafont creates.") | |
3429 | (license license:lppl))) | |
3430 | ||
3966ebbb RW |
3431 | (define-public texlive-latex-varwidth |
3432 | (package | |
3433 | (name "texlive-latex-varwidth") | |
3434 | (version (number->string %texlive-revision)) | |
3435 | (source (origin | |
3436 | (method svn-fetch) | |
3437 | (uri (svn-reference | |
3438 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3439 | %texlive-tag "/Master/texmf-dist/" | |
3440 | "/tex/latex/varwidth")) | |
3441 | (revision %texlive-revision))) | |
3442 | (file-name (string-append name "-" version "-checkout")) | |
3443 | (sha256 | |
3444 | (base32 | |
3445 | "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52")))) | |
3446 | (build-system trivial-build-system) | |
3447 | (arguments | |
3448 | `(#:modules ((guix build utils)) | |
3449 | #:builder | |
3450 | (begin | |
3451 | (use-modules (guix build utils)) | |
3452 | (let ((target (string-append (assoc-ref %outputs "out") | |
3453 | "/share/texmf-dist/tex/latex/varwidth"))) | |
3454 | (mkdir-p target) | |
3455 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3456 | #t)))) | |
3457 | (home-page "http://www.ctan.org/pkg/varwidth") | |
3458 | (synopsis "Variable-width minipage") | |
3459 | (description | |
3460 | "The @code{varwidth} environment is superficially similar to | |
3461 | @code{minipage}, but the specified width is just a maximum value — the box may | |
3462 | get a narrower “natural” width.") | |
3463 | (license license:lppl))) | |
3464 | ||
cd2c77f4 RW |
3465 | (define-public texlive-latex-wasysym |
3466 | (package | |
3467 | (name "texlive-latex-wasysym") | |
3468 | (version (number->string %texlive-revision)) | |
3469 | (source (origin | |
3470 | (method svn-fetch) | |
3471 | (uri (texlive-ref "latex" "wasysym")) | |
3472 | (sha256 | |
3473 | (base32 | |
3474 | "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv")))) | |
3475 | (build-system texlive-build-system) | |
3476 | (arguments '(#:tex-directory "latex/wasysym")) | |
3477 | (home-page "http://www.ctan.org/pkg/wasysym") | |
3478 | (synopsis "LaTeX support file to use the WASY2 fonts") | |
3479 | (description | |
3480 | "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs | |
3481 | like male and female symbols and astronomical symbols, as well as the complete | |
3482 | lasy font set and other odds and ends. The wasysym package implements an easy | |
3483 | to use interface for these symbols.") | |
3484 | (license license:lppl))) | |
3485 | ||
63ed869b RW |
3486 | (define-public texlive-latex-wrapfig |
3487 | (package | |
3488 | (name "texlive-latex-wrapfig") | |
3489 | (version (number->string %texlive-revision)) | |
3490 | (source (origin | |
3491 | (method svn-fetch) | |
3492 | (uri (svn-reference | |
3493 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3494 | %texlive-tag "/Master/texmf-dist/" | |
3495 | "/tex/latex/wrapfig")) | |
3496 | (revision %texlive-revision))) | |
3497 | (file-name (string-append name "-" version "-checkout")) | |
3498 | (sha256 | |
3499 | (base32 | |
3500 | "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4")))) | |
3501 | (build-system trivial-build-system) | |
3502 | (arguments | |
3503 | `(#:modules ((guix build utils)) | |
3504 | #:builder | |
3505 | (begin | |
3506 | (use-modules (guix build utils)) | |
3507 | (let ((target (string-append (assoc-ref %outputs "out") | |
3508 | "/share/texmf-dist/tex/latex/wrapfig"))) | |
3509 | (mkdir-p target) | |
3510 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3511 | #t)))) | |
3512 | (home-page "http://www.ctan.org/pkg/wrapfig") | |
3513 | (synopsis "Produces figures which text can flow around") | |
3514 | (description | |
3515 | "This package allows figures or tables to have text wrapped around them. | |
3516 | It does not work in combination with list environments, but can be used in a | |
3517 | @code{parbox} or @code{minipage}, and in two-column format.") | |
3518 | (license license:lppl))) | |
3519 | ||
c178ffca RW |
3520 | (define-public texlive-latex-ucs |
3521 | (package | |
3522 | (name "texlive-latex-ucs") | |
3523 | (version (number->string %texlive-revision)) | |
3524 | (source (origin | |
3525 | (method svn-fetch) | |
3526 | (uri (svn-reference | |
3527 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3528 | %texlive-tag "/Master/texmf-dist/" | |
3529 | "/tex/latex/ucs")) | |
3530 | (revision %texlive-revision))) | |
3531 | (file-name (string-append name "-" version "-checkout")) | |
3532 | (sha256 | |
3533 | (base32 | |
3534 | "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37")))) | |
3535 | (build-system trivial-build-system) | |
3536 | (arguments | |
3537 | `(#:modules ((guix build utils)) | |
3538 | #:builder | |
3539 | (begin | |
3540 | (use-modules (guix build utils)) | |
3541 | (let ((target (string-append (assoc-ref %outputs "out") | |
3542 | "/share/texmf-dist/tex/latex/ucs"))) | |
3543 | (mkdir-p target) | |
3544 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3545 | #t)))) | |
3546 | (home-page "http://www.ctan.org/pkg/ucs") | |
3547 | (synopsis "Extended UTF-8 input encoding support for LaTeX") | |
3548 | (description | |
3549 | "The bundle provides the @code{ucs} package, and @code{utf8x.def}, | |
3550 | together with a large number of support files. The @code{utf8x.def} | |
3551 | definition file for use with @code{inputenc} covers a wider range of Unicode | |
3552 | characters than does @code{utf8.def} in the LaTeX distribution. The package | |
3553 | provides facilities for efficient use of its large sets of Unicode characters. | |
3554 | Glyph production may be controlled by various options, which permits use of | |
3555 | non-ASCII characters when coding mathematical formulae. Note that the bundle | |
3556 | previously had an alias “unicode”; that alias has now been withdrawn, and no | |
3557 | package of that name now exists.") | |
3558 | (license license:lppl1.3+))) | |
3559 | ||
86af0f2a RW |
3560 | (define-public texlive-latex-preview |
3561 | (package | |
3562 | (name "texlive-latex-preview") | |
3563 | (version (number->string %texlive-revision)) | |
3564 | (source (origin | |
3565 | (method svn-fetch) | |
3566 | (uri (texlive-ref "latex" "preview")) | |
3567 | (file-name (string-append name "-" version "-checkout")) | |
3568 | (sha256 | |
3569 | (base32 | |
3570 | "0j6fff6q0ca96nwfdgay2jm55792z4q9aa0rczmiw2qccyg5n2dv")))) | |
3571 | (build-system texlive-build-system) | |
3572 | (arguments | |
3573 | '(#:tex-directory "latex/preview" | |
3574 | #:phases | |
3575 | (modify-phases %standard-phases | |
3576 | (add-after 'unpack 'remove-generated-file | |
3577 | (lambda _ | |
3578 | (delete-file "preview.drv") | |
3579 | #t))))) | |
3580 | (home-page "http://www.ctan.org/pkg/preview") | |
3581 | (synopsis "Extract bits of a LaTeX source for output") | |
3582 | (description | |
3583 | "The main purpose of the preview package is the extraction of selected | |
3584 | elements from a LaTeX source, like formulas or graphics, into separate | |
3585 | pages of a DVI file. A flexible and convenient interface allows it to | |
3586 | specify what commands and constructs should be extracted. This works | |
3587 | with DVI files postprocessed by either Dvips and Ghostscript or | |
3588 | dvipng, but it also works when you are using PDFTeX for generating PDF | |
3589 | files.") | |
3590 | (license license:gpl3+))) | |
3591 | ||
87b4360e RW |
3592 | (define-public texlive-latex-acronym |
3593 | (package | |
3594 | (name "texlive-latex-acronym") | |
3595 | (version (number->string %texlive-revision)) | |
3596 | (source (origin | |
3597 | (method svn-fetch) | |
3598 | (uri (texlive-ref "latex" "acronym")) | |
3599 | (file-name (string-append name "-" version "-checkout")) | |
3600 | (sha256 | |
3601 | (base32 | |
3602 | "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp")))) | |
3603 | (build-system texlive-build-system) | |
3604 | (arguments '(#:tex-directory "latex/acronym")) | |
3605 | (home-page "http://www.ctan.org/pkg/acronym") | |
3606 | (synopsis "Expand acronyms at least once") | |
3607 | (description | |
3608 | "This package ensures that all acronyms used in the text are spelled out | |
3609 | in full at least once. It also provides an environment to build a list of | |
3610 | acronyms used. The package is compatible with PDF bookmarks. The package | |
3611 | requires the suffix package, which in turn requires that it runs under | |
3612 | e-TeX.") | |
3613 | (license license:lppl1.3+))) | |
3614 | ||
fedb80ee RW |
3615 | (define-public texlive-generic-pdftex |
3616 | (package | |
3617 | (name "texlive-generic-pdftex") | |
3618 | (version (number->string %texlive-revision)) | |
3619 | (source (origin | |
3620 | (method svn-fetch) | |
3621 | (uri (svn-reference | |
3622 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3623 | %texlive-tag "/Master/texmf-dist/" | |
3624 | "/tex/generic/pdftex")) | |
3625 | (revision %texlive-revision))) | |
3626 | (sha256 | |
3627 | (base32 | |
3628 | "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd")))) | |
3629 | (build-system trivial-build-system) | |
3630 | (arguments | |
3631 | `(#:modules ((guix build utils)) | |
3632 | #:builder | |
3633 | (begin | |
3634 | (use-modules (guix build utils)) | |
3635 | (let ((target (string-append (assoc-ref %outputs "out") | |
3636 | "/share/texmf-dist/tex/generic/pdftex"))) | |
3637 | (mkdir-p target) | |
3638 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3639 | #t)))) | |
3640 | (home-page "http://www.ctan.org/pkg/pdftex") | |
3641 | (synopsis "TeX extension for direct creation of PDF") | |
3642 | (description | |
3643 | "This package provides an extension of TeX which can be configured to | |
3644 | directly generate PDF documents instead of DVI.") | |
3645 | (license license:gpl2+))) | |
3646 | ||
8bcdc23f | 3647 | (define texlive-texmf |
0aa34e82 AE |
3648 | (package |
3649 | (name "texlive-texmf") | |
7a15a68f | 3650 | (version "2016") |
0aa34e82 AE |
3651 | (source texlive-texmf-src) |
3652 | (build-system gnu-build-system) | |
3653 | (inputs | |
3654 | `(("texlive-bin" ,texlive-bin) | |
3655 | ("lua" ,lua) | |
3656 | ("perl" ,perl) | |
3657 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) | |
3658 | ("ruby" ,ruby) | |
3659 | ("tcsh" ,tcsh))) | |
3660 | (arguments | |
3661 | `(#:modules ((guix build gnu-build-system) | |
3662 | (guix build utils) | |
3663 | (srfi srfi-26)) | |
a348af40 LC |
3664 | |
3665 | ;; This package takes 4 GiB, which we can't afford to distribute from | |
3666 | ;; our servers. | |
3667 | #:substitutable? #f | |
3668 | ||
0aa34e82 | 3669 | #:phases |
4a6635f3 AE |
3670 | (modify-phases (map (cut assq <> %standard-phases) |
3671 | '(set-paths unpack patch-source-shebangs)) | |
3672 | (add-after 'patch-source-shebangs 'install | |
3673 | (lambda* (#:key outputs #:allow-other-keys) | |
3674 | (let ((share (string-append (assoc-ref outputs "out") "/share"))) | |
3675 | (mkdir-p share) | |
3676 | (system* "mv" "texmf-dist" share)))) | |
3677 | (add-after 'install 'texmf-config | |
3678 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3679 | (let* ((out (assoc-ref outputs "out")) | |
3680 | (share (string-append out "/share")) | |
3681 | (texmfroot (string-append share "/texmf-dist/web2c")) | |
3682 | (texmfcnf (string-append texmfroot "/texmf.cnf")) | |
3683 | (texlive-bin (assoc-ref inputs "texlive-bin")) | |
3684 | (texbin (string-append texlive-bin "/bin")) | |
3685 | (tlpkg (string-append texlive-bin "/share/tlpkg"))) | |
3686 | ;; Register SHARE as TEXMFROOT in texmf.cnf. | |
3687 | (substitute* texmfcnf | |
3688 | (("TEXMFROOT = \\$SELFAUTOPARENT") | |
2d634d9b FB |
3689 | (string-append "TEXMFROOT = " share)) |
3690 | (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local") | |
3691 | "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local") | |
3692 | (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL")) | |
4a6635f3 AE |
3693 | ;; Register paths in texmfcnf.lua, needed for context. |
3694 | (substitute* (string-append texmfroot "/texmfcnf.lua") | |
3695 | (("selfautodir:") out) | |
3696 | (("selfautoparent:") (string-append share "/"))) | |
3697 | ;; Set path to TeXLive Perl modules | |
3698 | (setenv "PERL5LIB" | |
3699 | (string-append (getenv "PERL5LIB") ":" tlpkg)) | |
3700 | ;; Configure the texmf-dist tree; inspired from | |
3701 | ;; http://slackbuilds.org/repository/13.37/office/texlive/ | |
3702 | (setenv "PATH" (string-append (getenv "PATH") ":" texbin)) | |
3703 | (setenv "TEXMFCNF" texmfroot) | |
3704 | (system* "updmap-sys" "--nohash" "--syncwithtrees") | |
3705 | (system* "mktexlsr") | |
3706 | (system* "fmtutil-sys" "--all"))))))) | |
7a15a68f | 3707 | (properties `((max-silent-time . 9600))) ; don't time out while grafting |
0aa34e82 | 3708 | (synopsis "TeX Live, a package of the TeX typesetting system") |
eb0119ef AE |
3709 | (description |
3710 | "TeX Live provides a comprehensive TeX document production system. | |
3711 | It includes all the major TeX-related programs, macro packages, and fonts | |
3712 | that are free software, including support for many languages around the | |
0aa34e82 AE |
3713 | world. |
3714 | ||
3715 | This package contains the complete tree of texmf-dist data.") | |
132e14b4 EF |
3716 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
3717 | (home-page "https://www.tug.org/texlive/"))) | |
0aa34e82 AE |
3718 | |
3719 | (define-public texlive | |
3720 | (package | |
3721 | (name "texlive") | |
7a15a68f | 3722 | (version "2016") |
0aa34e82 AE |
3723 | (source #f) |
3724 | (build-system trivial-build-system) | |
3725 | (inputs `(("bash" ,bash) ; for wrap-program | |
3726 | ("texlive-bin" ,texlive-bin) | |
3727 | ("texlive-texmf" ,texlive-texmf))) | |
2d634d9b FB |
3728 | (native-search-paths |
3729 | (list (search-path-specification | |
3730 | (variable "TEXMFLOCAL") | |
3731 | (files '("share/texmf-local"))))) | |
0aa34e82 AE |
3732 | (arguments |
3733 | `(#:modules ((guix build utils)) | |
3734 | #:builder | |
3735 | ;; Build the union of texlive-bin and texlive-texmf, but take the | |
3736 | ;; conflicting subdirectory share/texmf-dist from texlive-texmf. | |
3737 | (begin | |
3738 | (use-modules (guix build utils)) | |
3739 | (let ((out (assoc-ref %outputs "out")) | |
3740 | (bin (assoc-ref %build-inputs "texlive-bin")) | |
3741 | (texmf (assoc-ref %build-inputs "texlive-texmf")) | |
3742 | (bash (assoc-ref %build-inputs "bash"))) | |
3743 | (mkdir out) | |
3744 | (with-directory-excursion out | |
3745 | (for-each | |
3746 | (lambda (name) | |
3747 | (symlink (string-append bin "/" name) name)) | |
3748 | '("include" "lib")) | |
3749 | (mkdir "bin") | |
3750 | (with-directory-excursion "bin" | |
3751 | (setenv "PATH" (string-append bash "/bin")) | |
3752 | (for-each | |
3753 | (lambda (name) | |
3754 | (symlink name (basename name)) | |
3755 | (wrap-program | |
3756 | (basename name) | |
3757 | `("TEXMFCNF" = | |
3758 | (,(string-append texmf "/share/texmf-dist/web2c"))))) | |
3759 | (find-files (string-append bin "/bin/") ""))) | |
3760 | (mkdir "share") | |
3761 | (with-directory-excursion "share" | |
3762 | (for-each | |
3763 | (lambda (name) | |
3764 | (symlink (string-append bin "/share/" name) name)) | |
3765 | '("info" "man" "tlpkg")) | |
3766 | (for-each | |
3767 | (lambda (name) | |
3768 | (symlink (string-append texmf "/share/" name) name)) | |
3769 | '("texmf-dist" "texmf-var")))))))) | |
3770 | (synopsis "TeX Live, a package of the TeX typesetting system") | |
3771 | (description | |
3772 | "TeX Live provides a comprehensive TeX document production system. | |
3773 | It includes all the major TeX-related programs, macro packages, and fonts | |
3774 | that are free software, including support for many languages around the | |
3775 | world. | |
3776 | ||
3777 | This package contains the complete TeX Live distribution.") | |
132e14b4 EF |
3778 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
3779 | (home-page "https://www.tug.org/texlive/"))) | |
231eae53 | 3780 | |
6b5eb840 AE |
3781 | |
3782 | ;; texlive-texmf-minimal is a pruned, small version of the texlive tree, | |
a348af40 LC |
3783 | ;; in particular dropping documentation and fonts. It weighs in at 470 MiB |
3784 | ;; instead of 4 GiB. | |
6b5eb840 AE |
3785 | (define texlive-texmf-minimal |
3786 | (package (inherit texlive-texmf) | |
3787 | (name "texlive-texmf-minimal") | |
3788 | (arguments | |
3789 | (substitute-keyword-arguments | |
3790 | (package-arguments texlive-texmf) | |
3791 | ((#:modules modules) | |
3792 | `((ice-9 ftw) | |
3793 | (srfi srfi-1) | |
3794 | ,@modules)) | |
3795 | ((#:phases phases) | |
3796 | `(modify-phases ,phases | |
3797 | (add-after 'unpack 'prune | |
3798 | (lambda _ | |
3799 | (define (delete subdir exclude) | |
3800 | "Delete all files and directories in SUBDIR except for those | |
3801 | given in the list EXCLUDE." | |
3802 | (with-directory-excursion subdir | |
3803 | (for-each delete-file-recursively | |
3804 | (lset-difference equal? | |
3805 | (scandir ".") | |
3806 | (append '("." "..") | |
3807 | exclude))))) | |
3808 | (with-directory-excursion "texmf-dist" | |
3809 | (for-each delete-file-recursively | |
3810 | '("doc" "source" "tex4ht")) | |
3811 | ;; Delete all subdirectories of "fonts", except for "tfm" and | |
3812 | ;; any directories named "cm". | |
3813 | (delete "fonts" '("afm" "map" "pk" "source" "tfm" "type1")) | |
3814 | (delete "fonts/afm" '("public")) | |
3815 | (delete "fonts/afm/public" '("amsfonts")) | |
3816 | (delete "fonts/afm/public/amsfonts" '("cm")) | |
3817 | (delete "fonts/map" '("dvips")) | |
3818 | (delete "fonts/map/dvips" '("cm")) | |
3819 | (delete "fonts/source" '("public")) | |
3820 | (delete "fonts/source/public" '("cm")) | |
3821 | (delete "fonts/tfm" '("public")) | |
3822 | (delete "fonts/type1" '("public")) | |
3823 | (delete "fonts/type1/public" '("amsfonts")) | |
3824 | (delete "fonts/type1/public/amsfonts" '("cm"))) | |
3825 | #t)))))) | |
3826 | (description | |
3827 | "TeX Live provides a comprehensive TeX document production system. | |
3828 | It includes all the major TeX-related programs, macro packages, and fonts | |
3829 | that are free software, including support for many languages around the | |
3830 | world. | |
3831 | ||
3832 | This package contains a small subset of the texmf-dist data."))) | |
3833 | ||
3834 | ||
3835 | ;; texlive-minimal is the same as texlive, but using texlive-texmf-minimal | |
3836 | ;; instead of the full texlive-texmf. It can be used, for instance, as a | |
3837 | ;; native input to packages that need texlive to build their documentation. | |
3838 | (define-public texlive-minimal | |
3839 | (package (inherit texlive) | |
3840 | (name "texlive-minimal") | |
3841 | (inputs | |
3842 | `(("texlive-texmf" ,texlive-texmf-minimal) | |
3843 | ,@(alist-delete "texlive-texmf" (package-inputs texlive)))) | |
2d634d9b FB |
3844 | (native-search-paths |
3845 | (list (search-path-specification | |
3846 | (variable "TEXMFLOCAL") | |
3847 | (files '("share/texmf-local"))))) | |
6b5eb840 AE |
3848 | (description |
3849 | "TeX Live provides a comprehensive TeX document production system. | |
3850 | It includes all the major TeX-related programs, macro packages, and fonts | |
3851 | that are free software, including support for many languages around the | |
3852 | world. | |
3853 | ||
3854 | This package contains a small working part of the TeX Live distribution."))) | |
3855 | ||
ebcf74da RW |
3856 | (define-public perl-text-bibtex |
3857 | (package | |
3858 | (name "perl-text-bibtex") | |
3859 | (version "0.77") | |
3860 | (source | |
3861 | (origin | |
3862 | (method url-fetch) | |
3863 | (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-" | |
3864 | version ".tar.gz")) | |
3865 | (sha256 | |
3866 | (base32 | |
3867 | "0kkfx8skk763pivz6h2ffy2zdp1lvy6d5sz0kjaj0mdbjffvnnb4")))) | |
3868 | (build-system perl-build-system) | |
3869 | (arguments | |
3870 | `(#:phases | |
3871 | (modify-phases %standard-phases | |
3872 | (add-after 'unpack 'add-output-directory-to-rpath | |
3873 | (lambda* (#:key outputs #:allow-other-keys) | |
3874 | (substitute* "inc/MyBuilder.pm" | |
3875 | (("-Lbtparse" line) | |
3876 | (string-append "-Wl,-rpath=" | |
3877 | (assoc-ref outputs "out") "/lib " line))) | |
3878 | #t)) | |
3879 | (add-after 'unpack 'install-libraries-to-/lib | |
3880 | (lambda* (#:key outputs #:allow-other-keys) | |
3881 | (substitute* "Build.PL" | |
3882 | (("lib64") "lib")) | |
3883 | #t))))) | |
3884 | (native-inputs | |
3885 | `(("perl-capture-tiny" ,perl-capture-tiny) | |
3886 | ("perl-config-autoconf" ,perl-config-autoconf) | |
3887 | ("perl-extutils-libbuilder" ,perl-extutils-libbuilder) | |
3888 | ("perl-module-build" ,perl-module-build))) | |
3889 | (home-page "http://search.cpan.org/dist/Text-BibTeX") | |
3890 | (synopsis "Interface to read and parse BibTeX files") | |
3891 | (description "@code{Text::BibTeX} is a Perl library for reading, parsing, | |
3892 | and processing BibTeX files. @code{Text::BibTeX} gives you access to the data | |
3893 | at many different levels: you may work with BibTeX entries as simple field to | |
3894 | string mappings, or get at the original form of the data as a list of simple | |
3895 | values (strings, macros, or numbers) pasted together.") | |
2f3108ad | 3896 | (license license:perl-license))) |
ebcf74da | 3897 | |
d4000680 RW |
3898 | (define-public biber |
3899 | (package | |
3900 | (name "biber-next") | |
3901 | (version "2.6") | |
3902 | (source (origin | |
3903 | (method url-fetch) | |
3904 | (uri (string-append "https://github.com/plk/biber/archive/v" | |
3905 | version ".tar.gz")) | |
3906 | (file-name (string-append name "-" version ".tar.gz")) | |
3907 | (sha256 | |
3908 | (base32 | |
3909 | "158smzgjhjvyabdv97si5q88zjj5l8j1zbfnddvzy6fkpfhskgkp")))) | |
3910 | (build-system perl-build-system) | |
3911 | (arguments | |
3912 | `(#:phases | |
3913 | (modify-phases %standard-phases | |
3914 | (add-after 'install 'wrap-programs | |
3915 | (lambda* (#:key outputs #:allow-other-keys) | |
3916 | (let* ((out (assoc-ref outputs "out")) | |
3917 | (perl5lib (getenv "PERL5LIB"))) | |
3918 | (wrap-program (string-append out "/bin/biber") | |
3919 | `("PERL5LIB" ":" prefix | |
3920 | (,(string-append perl5lib ":" out | |
3921 | "/lib/perl5/site_perl"))))) | |
3922 | #t))))) | |
3923 | (inputs | |
3924 | `(("perl-autovivification" ,perl-autovivification) | |
3925 | ("perl-class-accessor" ,perl-class-accessor) | |
3926 | ("perl-data-dump" ,perl-data-dump) | |
3927 | ("perl-data-compare" ,perl-data-compare) | |
3928 | ("perl-data-uniqid" ,perl-data-uniqid) | |
3929 | ("perl-datetime-format-builder" ,perl-datetime-format-builder) | |
3930 | ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian) | |
3931 | ("perl-file-slurp" ,perl-file-slurp) | |
3932 | ("perl-ipc-cmd" ,perl-ipc-cmd) | |
3933 | ("perl-ipc-run3" ,perl-ipc-run3) | |
3934 | ("perl-list-allutils" ,perl-list-allutils) | |
3935 | ("perl-list-moreutils" ,perl-list-moreutils) | |
3936 | ("perl-mozilla-ca" ,perl-mozilla-ca) | |
3937 | ("perl-regexp-common" ,perl-regexp-common) | |
3938 | ("perl-log-log4perl" ,perl-log-log4perl) | |
3939 | ;; We cannot use perl-unicode-collate here, because otherwise the | |
3940 | ;; hardcoded hashes in the tests would differ. See | |
3941 | ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html | |
3942 | ;;("perl-unicode-collate" ,perl-unicode-collate) | |
3943 | ("perl-unicode-normalize" ,perl-unicode-normalize) | |
3944 | ("perl-unicode-linebreak" ,perl-unicode-linebreak) | |
3945 | ("perl-encode-eucjpascii" ,perl-encode-eucjpascii) | |
3946 | ("perl-encode-jis2k" ,perl-encode-jis2k) | |
3947 | ("perl-encode-hanextra" ,perl-encode-hanextra) | |
3948 | ("perl-xml-libxml" ,perl-xml-libxml) | |
3949 | ("perl-xml-libxml-simple" ,perl-xml-libxml-simple) | |
3950 | ("perl-xml-libxslt" ,perl-xml-libxslt) | |
3951 | ("perl-xml-writer" ,perl-xml-writer) | |
3952 | ("perl-sort-key" ,perl-sort-key) | |
3953 | ("perl-text-csv" ,perl-text-csv) | |
3954 | ("perl-text-csv-xs" ,perl-text-csv-xs) | |
3955 | ("perl-text-roman" ,perl-text-roman) | |
3956 | ("perl-uri" ,perl-uri) | |
3957 | ("perl-text-bibtex" ,perl-text-bibtex) | |
3958 | ("perl-libwww" ,perl-libwww) | |
3959 | ("perl-lwp-protocol-https" ,perl-lwp-protocol-https) | |
3960 | ("perl-business-isbn" ,perl-business-isbn) | |
3961 | ("perl-business-issn" ,perl-business-issn) | |
3962 | ("perl-business-ismn" ,perl-business-ismn) | |
3963 | ("perl-lingua-translit" ,perl-lingua-translit))) | |
3964 | (native-inputs | |
3965 | `(("perl-config-autoconf" ,perl-config-autoconf) | |
3966 | ("perl-extutils-libbuilder" ,perl-extutils-libbuilder) | |
3967 | ("perl-module-build" ,perl-module-build) | |
3968 | ;; for tests | |
3969 | ("perl-file-which" ,perl-file-which) | |
3970 | ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient | |
3971 | ("perl-test-differences" ,perl-test-differences))) | |
3972 | (home-page "http://biblatex-biber.sourceforge.net/") | |
3973 | (synopsis "Backend for the BibLaTeX citation management tool") | |
3974 | (description "Biber is a BibTeX replacement for users of biblatex. Among | |
3975 | other things it comes with full Unicode support.") | |
3976 | (license license:artistic2.0))) | |
3977 | ||
253cdd6c RW |
3978 | ;; Our version of texlive comes with biblatex 3.4, which is only compatible |
3979 | ;; with biber 2.5 according to the compatibility matrix in the biber | |
3980 | ;; documentation. | |
3981 | (define-public biber-2.5 | |
3982 | (package (inherit biber) | |
3983 | (name "biber") | |
3984 | (version "2.5") | |
3985 | (source (origin | |
3986 | (method url-fetch) | |
3987 | (uri (string-append "https://github.com/plk/biber/archive/v" | |
3988 | version ".tar.gz")) | |
3989 | (file-name (string-append name "-" version ".tar.gz")) | |
3990 | (sha256 | |
3991 | (base32 | |
3992 | "163sd343wkrzwnvj2003m2j0kz517jmjr4savw6f8bjxhj8fdrqv")))) | |
3993 | (arguments | |
3994 | (substitute-keyword-arguments (package-arguments biber) | |
3995 | ((#:phases phases) | |
3996 | `(modify-phases ,phases | |
3997 | (add-before 'check 'delete-failing-test | |
3998 | (lambda _ | |
3999 | (delete-file "t/sort-order.t") | |
4000 | #t)))))) | |
4001 | (inputs | |
4002 | `(("perl-date-simple" ,perl-date-simple) | |
4003 | ,@(package-inputs biber))))) | |
6b5eb840 | 4004 | |
231eae53 LC |
4005 | (define-public rubber |
4006 | (package | |
4007 | (name "rubber") | |
4008 | (version "1.1") | |
4009 | (source (origin | |
4010 | (method url-fetch) | |
4011 | (uri (list (string-append "https://launchpad.net/rubber/trunk/" | |
4012 | version "/+download/rubber-" | |
4013 | version ".tar.gz") | |
4014 | (string-append "http://ebeffara.free.fr/pub/rubber-" | |
4015 | version ".tar.gz"))) | |
4016 | (sha256 | |
4017 | (base32 | |
4018 | "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq")))) | |
4019 | (build-system gnu-build-system) | |
4020 | (arguments '(#:tests? #f)) ; no `check' target | |
4021 | (inputs `(("texinfo" ,texinfo) | |
9bee5d6c | 4022 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) |
231eae53 LC |
4023 | ("which" ,which))) |
4024 | (home-page "https://launchpad.net/rubber") | |
35b9e423 | 4025 | (synopsis "Wrapper for LaTeX and friends") |
231eae53 LC |
4026 | (description |
4027 | "Rubber is a program whose purpose is to handle all tasks related to the | |
4028 | compilation of LaTeX documents. This includes compiling the document itself, | |
4029 | of course, enough times so that all references are defined, and running BibTeX | |
4030 | to manage bibliographic references. Automatic execution of dvips to produce | |
4031 | PostScript documents is also included, as well as usage of pdfLaTeX to produce | |
4032 | PDF documents.") | |
4033 | (license license:gpl2+))) | |
4791876c RJ |
4034 | |
4035 | (define-public texmaker | |
4036 | (package | |
4037 | (name "texmaker") | |
4038 | (version "4.5") | |
4039 | (source (origin | |
4040 | (method url-fetch) | |
4041 | (uri (string-append "http://www.xm1math.net/texmaker/texmaker-" | |
4042 | version ".tar.bz2")) | |
4043 | (sha256 | |
4044 | (base32 | |
4045 | "056njk6j8wma23mlp7xa3rgfaxx0q8ynwx8wkmj7iy0b85p9ds9c")))) | |
4046 | (build-system gnu-build-system) | |
4047 | (arguments | |
4048 | `(#:phases | |
4049 | (modify-phases %standard-phases | |
4050 | ;; Qt has its own configuration utility. | |
4051 | (replace 'configure | |
4052 | (lambda* (#:key outputs #:allow-other-keys) | |
4053 | (let ((out (assoc-ref outputs "out"))) | |
4054 | (zero? (system* "qmake" | |
4055 | (string-append "PREFIX=" out) | |
4056 | (string-append "DESKTOPDIR=" out | |
4057 | "/share/applications") | |
4058 | (string-append "ICONDIR=" out "/share/pixmaps") | |
4059 | "texmaker.pro")))))))) | |
4060 | (inputs | |
4061 | `(("poppler-qt5" ,poppler-qt5) | |
bd917486 TD |
4062 | ("qtbase" ,qtbase) |
4063 | ("qtscript" ,qtscript) | |
4064 | ("qtwebkit" ,qtwebkit) | |
4791876c RJ |
4065 | ("zlib" ,zlib))) |
4066 | (native-inputs | |
4067 | `(("pkg-config" ,pkg-config))) | |
4068 | (home-page "http://www.xm1math.net/texmaker/") | |
4069 | (synopsis "LaTeX editor") | |
4070 | (description "Texmaker is a program that integrates many tools needed to | |
4071 | develop documents with LaTeX, in a single application.") | |
4072 | (license license:gpl2+))) | |
83457fe0 JD |
4073 | |
4074 | ||
4075 | (define-public teximpatient | |
4076 | (package | |
4077 | (name "teximpatient") | |
4078 | (version "2.4") | |
4079 | (source (origin | |
4080 | (method url-fetch) | |
4081 | (uri (string-append "mirror://gnu/" name "/" name "-" | |
4082 | version ".tar.gz")) | |
4083 | (sha256 | |
4084 | (base32 | |
4085 | "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd")))) | |
4086 | (build-system gnu-build-system) | |
4087 | (arguments | |
4088 | `(#:phases | |
4089 | (modify-phases %standard-phases | |
4090 | (delete 'check) | |
4091 | ;; Unfortunately some mistakes have been made in packaging. | |
4092 | ;; Work around them here ... | |
4093 | (replace 'unpack | |
4094 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4095 | (let ((srcdir "teximpatient-2.4")) | |
4096 | (system* "tar" "-xzf" (assoc-ref inputs "source") | |
4097 | (string-append "--one-top-level=" srcdir)) | |
4098 | (delete-file (string-append srcdir "/book.pdf")) | |
4099 | (install-file (car | |
4100 | (find-files | |
4101 | (assoc-ref inputs "automake") | |
4102 | "^install-sh$")) | |
4103 | srcdir) | |
4104 | (chdir srcdir))))))) | |
4105 | (native-inputs | |
4106 | `(("texlive" ,texlive) | |
4107 | ("automake" ,automake))) | |
6fd52309 | 4108 | (home-page "https://www.gnu.org/software/teximpatient/") |
83457fe0 JD |
4109 | (synopsis "Book on TeX, plain TeX and Eplain") |
4110 | (description "@i{TeX for the Impatient} is a ~350 page book on TeX, | |
4111 | plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves, | |
4112 | and Karl Berry.") | |
4113 | (license license:fdl1.3+))) |