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> |
b8d8806b | 6 | ;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il> |
2d634d9b | 7 | ;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch> |
bd917486 | 8 | ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be> |
d68c8017 | 9 | ;;; Copyright © 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net> |
149f6688 | 10 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
594156ec | 11 | ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> |
9aba9b12 | 12 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
ec40a050 | 13 | ;;; Copyright © 2018 Danny Milosavljevic <dannym+a@scratchpost.org> |
a9fda571 | 14 | ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> |
eb0119ef AE |
15 | ;;; |
16 | ;;; This file is part of GNU Guix. | |
17 | ;;; | |
18 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
19 | ;;; under the terms of the GNU General Public License as published by | |
20 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
21 | ;;; your option) any later version. | |
22 | ;;; | |
23 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
24 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | ;;; GNU General Public License for more details. | |
27 | ;;; | |
28 | ;;; You should have received a copy of the GNU General Public License | |
29 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
30 | ||
8f9ac901 | 31 | (define-module (gnu packages tex) |
b5b73a82 | 32 | #:use-module ((guix licenses) #:prefix license:) |
eb0119ef AE |
33 | #:use-module (guix packages) |
34 | #:use-module (guix download) | |
ec40a050 | 35 | #:use-module (guix build-system cmake) |
eb0119ef | 36 | #:use-module (guix build-system gnu) |
ebcf74da | 37 | #:use-module (guix build-system perl) |
0aa34e82 | 38 | #:use-module (guix build-system trivial) |
205794c8 | 39 | #:use-module (guix build-system texlive) |
6b5eb840 | 40 | #:use-module (guix utils) |
83457fe0 | 41 | #:use-module (guix git-download) |
9d913b25 | 42 | #:use-module (guix svn-download) |
eb0119ef | 43 | #:use-module (gnu packages) |
ec40a050 | 44 | #:use-module (gnu packages algebra) |
83457fe0 | 45 | #:use-module (gnu packages autotools) |
0aa34e82 | 46 | #:use-module (gnu packages bash) |
ec40a050 | 47 | #:use-module (gnu packages boost) |
eb0119ef | 48 | #:use-module (gnu packages compression) |
a86177d6 | 49 | #:use-module (gnu packages fontutils) |
fd89b36b | 50 | #:use-module (gnu packages gd) |
eb0119ef | 51 | #:use-module (gnu packages ghostscript) |
769bb5e5 | 52 | #:use-module (gnu packages graphviz) |
fd89b36b | 53 | #:use-module (gnu packages gtk) |
eb0119ef | 54 | #:use-module (gnu packages icu4c) |
e55354b8 | 55 | #:use-module (gnu packages image) |
ec40a050 | 56 | #:use-module (gnu packages libreoffice) |
0aa34e82 | 57 | #:use-module (gnu packages lua) |
0256c746 | 58 | #:use-module (gnu packages multiprecision) |
eb0119ef AE |
59 | #:use-module (gnu packages pdf) |
60 | #:use-module (gnu packages perl) | |
5ccde207 | 61 | #:use-module (gnu packages perl-check) |
eb0119ef AE |
62 | #:use-module (gnu packages pkg-config) |
63 | #:use-module (gnu packages python) | |
5327e912 | 64 | #:use-module (gnu packages python-xyz) |
4791876c | 65 | #:use-module (gnu packages qt) |
b32c8549 | 66 | #:use-module (gnu packages ruby) |
b7194849 | 67 | #:use-module (gnu packages shells) |
ce0614dd | 68 | #:use-module (gnu packages base) |
d4000680 RW |
69 | #:use-module (gnu packages web) |
70 | #:use-module (gnu packages xml) | |
c0589f75 | 71 | #:use-module (gnu packages xorg) |
ece9b417 | 72 | #:use-module (gnu packages xdisorg) |
6b5eb840 AE |
73 | #:autoload (gnu packages texinfo) (texinfo) |
74 | #:use-module (ice-9 ftw) | |
cb7bc20a | 75 | #:use-module (ice-9 match) |
e93f472d | 76 | #:use-module ((srfi srfi-1) #:hide (zip))) |
eb0119ef AE |
77 | |
78 | (define texlive-extra-src | |
79 | (origin | |
80 | (method url-fetch) | |
3e1ebaab | 81 | (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-extra.tar.xz") |
eb0119ef | 82 | (sha256 (base32 |
3e1ebaab | 83 | "0a83kymxc8zmlxjb0y1gf6mx7qnf0hxffwkivwh5yh138y2rfhsv")))) |
eb0119ef AE |
84 | |
85 | (define texlive-texmf-src | |
86 | (origin | |
87 | (method url-fetch) | |
3e1ebaab | 88 | (uri "ftp://tug.org/historic/systems/texlive/2018/texlive-20180414-texmf.tar.xz") |
eb0119ef | 89 | (sha256 (base32 |
3e1ebaab | 90 | "1b8zigzg8raxkhhzphcmynf84rbdbj2ym2qkz24v8n0qx82zmqms")))) |
eb0119ef | 91 | |
3abe72bd | 92 | (define-public texlive-bin |
eb0119ef | 93 | (package |
0aa34e82 | 94 | (name "texlive-bin") |
3e1ebaab | 95 | (version "20180414") |
0aa34e82 AE |
96 | (source |
97 | (origin | |
3e1ebaab RW |
98 | (method url-fetch) |
99 | (uri (string-append "ftp://tug.org/historic/systems/texlive/2018/" | |
149f6688 | 100 | "texlive-" version "-source.tar.xz")) |
3e1ebaab RW |
101 | (sha256 |
102 | (base32 | |
103 | "0khyi6h015r2zfqgg0a44a2j7vmr1cy42knw7jbss237yvakc07y")) | |
594156ec MB |
104 | (patches |
105 | (list | |
3e1ebaab RW |
106 | ;; This is required for compatibility with Poppler 0.64.0 and to fix a |
107 | ;; segmentation fault in dvipdfm-x from XeTeX. | |
594156ec MB |
108 | (origin |
109 | (method url-fetch) | |
3e1ebaab RW |
110 | (uri (string-append "http://www.linuxfromscratch.org/patches/blfs/" |
111 | "svn/texlive-" version "-source-upstream_fixes-1.patch")) | |
594156ec MB |
112 | (file-name "texlive-poppler-compat.patch") |
113 | (sha256 | |
114 | (base32 | |
3e1ebaab | 115 | "0f8vhyj167y4xj0jx47vkybrcacfpxw0wdn1b777yq3xmhlahhlg"))))))) |
eb0119ef | 116 | (build-system gnu-build-system) |
0aa34e82 AE |
117 | (inputs |
118 | `(("texlive-extra-src" ,texlive-extra-src) | |
119 | ("cairo" ,cairo) | |
120 | ("fontconfig" ,fontconfig) | |
121 | ("fontforge" ,fontforge) | |
122 | ("freetype" ,freetype) | |
123 | ("gd" ,gd) | |
0256c746 | 124 | ("gmp" ,gmp) |
0aa34e82 AE |
125 | ("ghostscript" ,ghostscript) |
126 | ("graphite2" ,graphite2) | |
127 | ("harfbuzz" ,harfbuzz) | |
128 | ("icu4c" ,icu4c) | |
129 | ("libpaper" ,libpaper) | |
130 | ("libpng" ,libpng) | |
131 | ("libxaw" ,libxaw) | |
132 | ("libxt" ,libxt) | |
0256c746 | 133 | ("mpfr" ,mpfr) |
0aa34e82 AE |
134 | ("perl" ,perl) |
135 | ("pixman" ,pixman) | |
136 | ("poppler" ,poppler) | |
137 | ("potrace" ,potrace) | |
138 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) | |
139 | ("ruby" ,ruby) | |
140 | ("tcsh" ,tcsh) | |
141 | ("teckit" ,teckit) | |
142 | ("zlib" ,zlib) | |
143 | ("zziplib" ,zziplib))) | |
c4c4cc05 | 144 | (native-inputs |
e9a6d225 | 145 | `(("pkg-config" ,pkg-config))) |
eb0119ef AE |
146 | (arguments |
147 | `(#:out-of-source? #t | |
148 | #:configure-flags | |
149 | `("--disable-native-texlive-build" | |
594156ec MB |
150 | ;; XXX: This is needed because recent Poppler requires C++11 or later. |
151 | ;; Remove after switch to GCC >= 6. | |
152 | "CXXFLAGS=-std=gnu++11" | |
fd89b36b | 153 | "--with-system-cairo" |
eb0119ef | 154 | "--with-system-freetype2" |
fd89b36b | 155 | "--with-system-gd" |
0256c746 | 156 | "--with-system-gmp" |
be2c88ca | 157 | "--with-system-graphite2" |
c70cf7eb | 158 | "--with-system-harfbuzz" |
eb0119ef AE |
159 | "--with-system-icu" |
160 | "--with-system-libgs" | |
609578a7 | 161 | "--with-system-libpaper" |
eb0119ef | 162 | "--with-system-libpng" |
0256c746 | 163 | "--with-system-mpfr" |
fd89b36b | 164 | "--with-system-pixman" |
eb0119ef | 165 | "--with-system-poppler" |
75916982 | 166 | "--with-system-potrace" |
eb0119ef AE |
167 | "--with-system-teckit" |
168 | "--with-system-xpdf" | |
169 | "--with-system-zlib" | |
170 | "--with-system-zziplib") | |
2f4640e3 | 171 | |
7683bf11 EB |
172 | ;; Disable tests on mips64/aarch64 to cope with a failure of luajiterr.test. |
173 | ;; XXX FIXME fix luajit properly on mips64 and aarch64. | |
174 | #:tests? ,(let ((s (or (%current-target-system) | |
175 | (%current-system)))) | |
176 | (not (or (string-prefix? "aarch64" s) | |
177 | (string-prefix? "mips64" s)))) | |
eb0119ef | 178 | #:phases |
3e1ebaab | 179 | (modify-phases %standard-phases |
f1728d43 | 180 | (add-after 'unpack 'configure-ghostscript-executable |
3e1ebaab RW |
181 | ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows, |
182 | ;; and the "gs" ghostscript executable on Unix. It detects Unix by | |
183 | ;; checking for the existence of the /usr/bin directory. Since | |
184 | ;; GuixSD does not have /usr/bin, it is also detected as Windows. | |
f1728d43 | 185 | (lambda* (#:key inputs #:allow-other-keys) |
3e1ebaab RW |
186 | (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl" |
187 | (("gswin32c") "gs")) | |
f1728d43 RW |
188 | (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl" |
189 | (("\"gs\"") | |
190 | (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\""))) | |
191 | #t)) | |
192 | (add-after 'unpack 'use-code-for-new-poppler | |
193 | (lambda _ | |
194 | (copy-file "texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc" | |
195 | "texk/web2c/pdftexdir/pdftoepdf.cc") | |
196 | (copy-file "texk/web2c/pdftexdir/pdftosrc-newpoppler.cc" | |
197 | "texk/web2c/pdftexdir/pdftosrc.cc") | |
3e1ebaab | 198 | #t)) |
be200ef3 MB |
199 | (add-after 'unpack 'disable-failing-test |
200 | (lambda _ | |
201 | ;; FIXME: This test fails on 32-bit architectures since Glibc 2.28: | |
202 | ;; <https://bugzilla.redhat.com/show_bug.cgi?id=1631847>. | |
203 | (substitute* "texk/web2c/omegafonts/check.test" | |
21f7d88e | 204 | (("^\\./omfonts -ofm2opl \\$srcdir/tests/check tests/xcheck \\|\\| exit 1") |
be200ef3 MB |
205 | "./omfonts -ofm2opl $srcdir/tests/check tests/xcheck || exit 77")) |
206 | #t)) | |
3e1ebaab RW |
207 | (add-after 'install 'postint |
208 | (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) | |
209 | (let* ((out (assoc-ref outputs "out")) | |
210 | (share (string-append out "/share")) | |
211 | (texlive-extra (assoc-ref inputs "texlive-extra-src")) | |
212 | (unpack (assoc-ref %standard-phases 'unpack)) | |
213 | (patch-source-shebangs | |
214 | (assoc-ref %standard-phases 'patch-source-shebangs))) | |
1574932d RW |
215 | (substitute* (string-append share "/texmf-dist/web2c/texmf.cnf") |
216 | ;; Don't truncate lines. | |
217 | (("^error_line = .*$") "error_line = 254\n") | |
218 | (("^half_error_line = .*$") "half_error_line = 238\n") | |
219 | (("^max_print_line = .*$") "max_print_line = 1000\n")) | |
3e1ebaab RW |
220 | ;; Create symbolic links for the latex variants and their |
221 | ;; man pages. | |
222 | (with-directory-excursion (string-append out "/bin/") | |
223 | (for-each symlink | |
224 | '("pdftex" "pdftex" "xetex" "luatex") | |
225 | '("latex" "pdflatex" "xelatex" "lualatex"))) | |
226 | (with-directory-excursion (string-append share "/man/man1/") | |
227 | (symlink "luatex.1" "lualatex.1")) | |
228 | ;; Unpack texlive-extra and install tlpkg. | |
229 | (mkdir "texlive-extra") | |
230 | (with-directory-excursion "texlive-extra" | |
231 | (apply unpack (list #:source texlive-extra)) | |
232 | (apply patch-source-shebangs (list #:source texlive-extra)) | |
233 | (invoke "mv" "tlpkg" share)) | |
234 | ;; texlua shebangs are not patched by the patch-source-shebangs | |
235 | ;; phase because the texlua executable does not exist at that | |
236 | ;; time. | |
237 | (setenv "PATH" (string-append (getenv "PATH") ":" out "/bin")) | |
238 | (with-directory-excursion out | |
239 | (patch-source-shebangs)))))))) | |
a1b4d62c RW |
240 | (native-search-paths |
241 | (list (search-path-specification | |
242 | (variable "TEXMF") | |
243 | (files '("share/texmf-dist")) | |
244 | (separator #f)) | |
245 | (search-path-specification | |
246 | (variable "TEXMFCNF") | |
247 | (files '("share/texmf-dist/web2c")) | |
248 | (separator #f)))) | |
0aa34e82 AE |
249 | (synopsis "TeX Live, a package of the TeX typesetting system") |
250 | (description | |
251 | "TeX Live provides a comprehensive TeX document production system. | |
252 | It includes all the major TeX-related programs, macro packages, and fonts | |
253 | that are free software, including support for many languages around the | |
254 | world. | |
255 | ||
256 | This package contains the binaries.") | |
132e14b4 EF |
257 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
258 | (home-page "https://www.tug.org/texlive/"))) | |
0aa34e82 | 259 | |
9d913b25 RW |
260 | (define-public texlive-dvips |
261 | (package | |
262 | (name "texlive-dvips") | |
263 | (version (number->string %texlive-revision)) | |
264 | (source (origin | |
265 | (method svn-fetch) | |
266 | (uri (svn-reference | |
267 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
268 | %texlive-tag "/Master/texmf-dist/" | |
269 | "/dvips")) | |
270 | (revision %texlive-revision))) | |
2cdd9729 | 271 | (file-name (string-append name "-" version "-checkout")) |
9d913b25 RW |
272 | (sha256 |
273 | (base32 | |
d4d9a1ec | 274 | "1ky6wc173jhf0b33lhyb4r3bx1d4bmiqkn6y1hxn92kwjdzl42p7")))) |
9d913b25 RW |
275 | (build-system trivial-build-system) |
276 | (arguments | |
277 | `(#:modules ((guix build utils)) | |
278 | #:builder | |
279 | (begin | |
280 | (use-modules (guix build utils)) | |
47019467 RW |
281 | (let* ((root (string-append (assoc-ref %outputs "out") |
282 | "/share/texmf-dist")) | |
283 | (dvips (string-append root "/dvips")) | |
bbd30e97 | 284 | (maps (string-append root "/fonts/map/dvips")) |
47019467 RW |
285 | (encs (string-append root "/fonts/enc/dvips/base"))) |
286 | (mkdir-p dvips) | |
287 | (copy-recursively (assoc-ref %build-inputs "source") dvips) | |
288 | (mkdir-p maps) | |
289 | (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps) | |
290 | (mkdir-p encs) | |
291 | (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs) | |
9d913b25 | 292 | #t)))) |
47019467 RW |
293 | (native-inputs |
294 | `(("dvips-font-maps" | |
295 | ,(origin | |
296 | (method svn-fetch) | |
297 | (uri (svn-reference | |
298 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
299 | %texlive-tag "/Master/texmf-dist/" | |
bbd30e97 | 300 | "/fonts/map/dvips")) |
47019467 | 301 | (revision %texlive-revision))) |
2cdd9729 | 302 | (file-name (string-append "dvips-font-maps-" version "-checkout")) |
47019467 RW |
303 | (sha256 |
304 | (base32 | |
d4d9a1ec | 305 | "0nxvfbb5vsvakiw0iviicghdc2sxk05cj056ilqnpa62fffc36a6")))) |
47019467 RW |
306 | ("dvips-base-enc" |
307 | ,(origin | |
308 | (method svn-fetch) | |
309 | (uri (svn-reference | |
310 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
311 | %texlive-tag "/Master/texmf-dist/" | |
312 | "/fonts/enc/dvips/base")) | |
313 | (revision %texlive-revision))) | |
2cdd9729 | 314 | (file-name (string-append "dvips-base-enc-" version "-checkout")) |
47019467 RW |
315 | (sha256 |
316 | (base32 | |
317 | "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy")))))) | |
b8d8806b | 318 | (home-page "https://www.ctan.org/pkg/dvips") |
9d913b25 RW |
319 | (synopsis "DVI to PostScript drivers") |
320 | (description "This package provides files needed for converting DVI files | |
321 | to PostScript.") | |
322 | ;; Various free software licenses apply to individual files. | |
323 | (license (list license:lppl1.3c+ | |
324 | license:expat | |
325 | license:lgpl3+)))) | |
326 | ||
99952c53 RW |
327 | (define-public texlive-generic-unicode-data |
328 | (package | |
329 | (name "texlive-generic-unicode-data") | |
330 | (version (number->string %texlive-revision)) | |
331 | (source (origin | |
332 | (method svn-fetch) | |
333 | (uri (svn-reference | |
334 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
335 | %texlive-tag "/Master/texmf-dist/" | |
336 | "/tex/generic/unicode-data")) | |
337 | (revision %texlive-revision))) | |
f569e917 | 338 | (file-name (string-append name "-" version "-checkout")) |
99952c53 RW |
339 | (sha256 |
340 | (base32 | |
d4d9a1ec | 341 | "0r1v16jyfpz6dwqsgm6b9jcj4kf2pkzc9hg07s6fx9g8ba8qglih")))) |
99952c53 RW |
342 | (build-system trivial-build-system) |
343 | (arguments | |
344 | `(#:modules ((guix build utils)) | |
345 | #:builder | |
346 | (begin | |
347 | (use-modules (guix build utils)) | |
348 | (let ((target (string-append (assoc-ref %outputs "out") | |
349 | "/share/texmf-dist/tex/generic/unicode-data"))) | |
350 | (mkdir-p target) | |
351 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
352 | #t)))) | |
b8d8806b | 353 | (home-page "https://www.ctan.org/pkg/unicode-data") |
99952c53 RW |
354 | (synopsis "Unicode data and loaders for TeX") |
355 | (description "This bundle provides generic access to Unicode Consortium | |
356 | data for TeX use. It contains a set of text files provided by the Unicode | |
357 | Consortium which are currently all from Unicode 8.0.0, with the exception of | |
358 | @code{MathClass.txt} which is not currently part of the Unicode Character | |
359 | Database. Accompanying these source data are generic TeX loader files | |
360 | allowing this data to be used as part of TeX runs, in particular in building | |
361 | format files. Currently there are two loader files: one for general character | |
362 | set up and one for initializing XeTeX character classes as has been carried | |
363 | out to date by @code{unicode-letters.tex}. ") | |
364 | (license license:lppl1.3c+))) | |
365 | ||
9e99b1b4 RW |
366 | (define-public texlive-generic-dehyph-exptl |
367 | (package | |
368 | (name "texlive-generic-dehyph-exptl") | |
369 | (version (number->string %texlive-revision)) | |
370 | (source (origin | |
371 | (method svn-fetch) | |
372 | (uri (svn-reference | |
373 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
374 | %texlive-tag "/Master/texmf-dist/" | |
375 | "/tex/generic/dehyph-exptl")) | |
376 | (revision %texlive-revision))) | |
ddc0bbc8 | 377 | (file-name (string-append name "-" version "-checkout")) |
9e99b1b4 RW |
378 | (sha256 |
379 | (base32 | |
d4d9a1ec | 380 | "03yj1di9py92drp6gpfva6q69vk2iixr79r7cp7ja570s3pr0m33")))) |
9e99b1b4 RW |
381 | (build-system trivial-build-system) |
382 | (arguments | |
383 | `(#:modules ((guix build utils)) | |
384 | #:builder | |
385 | (begin | |
386 | (use-modules (guix build utils)) | |
387 | (let ((target (string-append (assoc-ref %outputs "out") | |
388 | "/share/texmf-dist/tex/generic/dehyph-exptl"))) | |
389 | (mkdir-p target) | |
390 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
391 | #t)))) | |
392 | (home-page "http://projekte.dante.de/Trennmuster/WebHome") | |
393 | (synopsis "Hyphenation patterns for German") | |
394 | (description "The package provides experimental hyphenation patterns for | |
395 | the German language, covering both traditional and reformed orthography. The | |
396 | patterns can be used with packages Babel and hyphsubst from the Oberdiek | |
397 | bundle.") | |
398 | ;; Hyphenation patterns are under the Expat license; documentation is | |
399 | ;; under LPPL. | |
400 | (license (list license:expat license:lppl)))) | |
401 | ||
453aae66 RW |
402 | (define-public texlive-generic-tex-ini-files |
403 | (package | |
404 | (name "texlive-generic-tex-ini-files") | |
405 | (version (number->string %texlive-revision)) | |
406 | (source (origin | |
407 | (method svn-fetch) | |
408 | (uri (svn-reference | |
409 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
410 | %texlive-tag "/Master/texmf-dist/" | |
411 | "/tex/generic/tex-ini-files")) | |
412 | (revision %texlive-revision))) | |
ac0529dd | 413 | (file-name (string-append name "-" version "-checkout")) |
453aae66 RW |
414 | (sha256 |
415 | (base32 | |
416 | "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5")))) | |
417 | (build-system trivial-build-system) | |
418 | (arguments | |
419 | `(#:modules ((guix build utils)) | |
420 | #:builder | |
421 | (begin | |
422 | (use-modules (guix build utils)) | |
423 | (let ((target (string-append (assoc-ref %outputs "out") | |
424 | "/share/texmf-dist/tex/generic/tex-ini-files"))) | |
425 | (mkdir-p target) | |
426 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
427 | #t)))) | |
b8d8806b | 428 | (home-page "https://www.ctan.org/pkg/tex-ini-files") |
453aae66 RW |
429 | (synopsis "Files for creating TeX formats") |
430 | (description "This bundle provides a collection of model \".ini\" files | |
431 | for creating TeX formats. These files are commonly used to introduced | |
432 | distribution-dependent variations in formats. They are also used to | |
433 | allow existing format source files to be used with newer engines, for example | |
434 | to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.") | |
435 | (license license:public-domain))) | |
436 | ||
9b134da8 RW |
437 | (define-public texlive-generic-hyph-utf8 |
438 | (package | |
439 | (name "texlive-generic-hyph-utf8") | |
440 | (version (number->string %texlive-revision)) | |
441 | (source (origin | |
442 | (method svn-fetch) | |
443 | (uri (svn-reference | |
444 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
445 | %texlive-tag "/Master/texmf-dist/" | |
446 | "/tex/generic/hyph-utf8")) | |
447 | (revision %texlive-revision))) | |
a6acd611 | 448 | (file-name (string-append name "-" version "-checkout")) |
9b134da8 RW |
449 | (sha256 |
450 | (base32 | |
d4d9a1ec | 451 | "1alnn9cd60m2c12vym9f9q22ap1ngywxpkjl9dk472why44g1dmy")))) |
9b134da8 RW |
452 | (build-system trivial-build-system) |
453 | (arguments | |
454 | `(#:modules ((guix build utils)) | |
455 | #:builder | |
456 | (begin | |
457 | (use-modules (guix build utils)) | |
458 | (let ((target (string-append (assoc-ref %outputs "out") | |
459 | "/share/texmf-dist/tex/generic/hyph-utf8"))) | |
460 | (mkdir-p target) | |
461 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
462 | #t)))) | |
b8d8806b | 463 | (home-page "https://ctan.org/pkg/hyph-utf8") |
9b134da8 RW |
464 | (synopsis "Hyphenation patterns expressed in UTF-8") |
465 | (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need | |
466 | hyphenation patterns in UTF-8 format, whereas older systems require | |
467 | hyphenation patterns in the 8-bit encoding of the font in use (such encodings | |
468 | are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1, | |
469 | etc). The present package offers a collection of conversions of existing | |
470 | patterns to UTF-8 format, together with converters for use with 8-bit fonts in | |
471 | older systems. Since hyphenation patterns for Knuthian-style TeX systems are | |
472 | only read at iniTeX time, it is hoped that the UTF-8 patterns, with their | |
473 | converters, will completely supplant the older patterns.") | |
474 | ;; Individual files each have their own license. Most of these files are | |
475 | ;; independent hyphenation patterns. | |
476 | (license (list license:lppl1.0+ | |
477 | license:lppl1.2+ | |
478 | license:lppl1.3 | |
479 | license:lppl1.3+ | |
480 | license:lppl1.3a+ | |
481 | license:lgpl2.1 | |
482 | license:lgpl2.1+ | |
483 | license:lgpl3+ | |
484 | license:gpl2+ | |
485 | license:gpl3+ | |
486 | license:mpl1.1 | |
487 | license:asl2.0 | |
488 | license:expat | |
489 | license:bsd-3 | |
490 | license:cc0 | |
491 | license:public-domain | |
492 | license:wtfpl2)))) | |
493 | ||
8ada0f0b RW |
494 | (define-public texlive-metafont-base |
495 | (package | |
496 | (name "texlive-metafont-base") | |
497 | (version (number->string %texlive-revision)) | |
498 | (source (origin | |
499 | (method svn-fetch) | |
500 | (uri (svn-reference | |
501 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
502 | %texlive-tag "/Master/texmf-dist/" | |
503 | "/metafont")) | |
504 | (revision %texlive-revision))) | |
1dec413a | 505 | (file-name (string-append name "-" version "-checkout")) |
8ada0f0b RW |
506 | (sha256 |
507 | (base32 | |
508 | "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5")))) | |
509 | (build-system gnu-build-system) | |
510 | (arguments | |
511 | `(#:tests? #f ; no test target | |
512 | #:phases | |
513 | (modify-phases %standard-phases | |
514 | (delete 'configure) | |
515 | (replace 'build | |
516 | (lambda* (#:key inputs #:allow-other-keys) | |
517 | (let ((cwd (getcwd))) | |
518 | (setenv "MFINPUTS" | |
519 | (string-append cwd "/base:" | |
520 | cwd "/misc:" | |
521 | cwd "/roex:" | |
522 | cwd "/feynmf:" | |
523 | cwd "/mfpic:" | |
524 | cwd "/config"))) | |
525 | (mkdir "build") | |
526 | (with-directory-excursion "build" | |
3730a107 | 527 | (invoke "inimf" "mf.mf")))) |
8ada0f0b RW |
528 | (replace 'install |
529 | (lambda* (#:key outputs #:allow-other-keys) | |
530 | (let* ((out (assoc-ref outputs "out")) | |
531 | (base (string-append out "/share/texmf-dist/web2c")) | |
532 | (mf (string-append out "/share/texmf-dist/metafont/base"))) | |
533 | (mkdir-p base) | |
534 | (mkdir-p mf) | |
535 | (install-file "build/mf.base" base) | |
536 | (copy-recursively "base" mf) | |
537 | #t)))))) | |
538 | (native-inputs | |
539 | `(("texlive-bin" ,texlive-bin))) | |
b8d8806b | 540 | (home-page "https://www.ctan.org/pkg/metafont") |
8ada0f0b RW |
541 | (synopsis "Metafont base files") |
542 | (description "This package provides the Metafont base files needed to | |
543 | build fonts using the Metafont system.") | |
544 | (license license:knuth))) | |
545 | ||
dea67d8a RW |
546 | (define-public texlive-fontname |
547 | (package | |
548 | (name "texlive-fontname") | |
549 | (version (number->string %texlive-revision)) | |
550 | (source (origin | |
551 | (method svn-fetch) | |
552 | (uri (svn-reference | |
553 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
554 | %texlive-tag "/Master/texmf-dist/" | |
555 | "/fonts/map/fontname")) | |
556 | (revision %texlive-revision))) | |
b8e213cb | 557 | (file-name (string-append name "-" version "-checkout")) |
dea67d8a RW |
558 | (sha256 |
559 | (base32 | |
d4d9a1ec | 560 | "05rbn7z30xawd3n6w7c3ijp2yc67ga220jgqmkla9pd9wx185rzq")))) |
dea67d8a RW |
561 | (build-system trivial-build-system) |
562 | (arguments | |
563 | `(#:modules ((guix build utils)) | |
564 | #:builder | |
565 | (begin | |
566 | (use-modules (guix build utils)) | |
567 | (let ((target (string-append (assoc-ref %outputs "out") | |
568 | "/share/texmf-dist/fonts/map/fontname"))) | |
569 | (mkdir-p target) | |
570 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
571 | #t)))) | |
572 | (home-page "https://www.ctan.org/pkg/fontname") | |
573 | (synopsis "Scheme for naming fonts in TeX") | |
574 | (description "This is Fontname, a naming scheme for (the base part of) | |
575 | external TeX font filenames. This makes at most eight-character names | |
576 | from (almost) arbitrarily complex font names, thus helping portability of TeX | |
577 | documents.") | |
578 | (license license:public-domain))) | |
579 | ||
3c4f1ec7 RW |
580 | (define-public texlive-fonts-cm |
581 | (package | |
582 | (name "texlive-fonts-cm") | |
583 | (version (number->string %texlive-revision)) | |
584 | (source (origin | |
585 | (method svn-fetch) | |
586 | (uri (svn-reference | |
587 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
588 | %texlive-tag "/Master/texmf-dist/" | |
589 | "/fonts/source/public/cm")) | |
590 | (revision %texlive-revision))) | |
a4015c20 | 591 | (file-name (string-append name "-" version "-checkout")) |
3c4f1ec7 RW |
592 | (sha256 |
593 | (base32 | |
d4d9a1ec | 594 | "0vfjhidr9pha613h8mfhnpcpvld6ahdfb449918fpsfs93cppkyj")))) |
3c4f1ec7 RW |
595 | (build-system gnu-build-system) |
596 | (arguments | |
597 | `(#:modules ((guix build gnu-build-system) | |
598 | (guix build utils) | |
599 | (srfi srfi-1) | |
600 | (srfi srfi-26)) | |
601 | #:tests? #f ; no tests | |
602 | #:phases | |
603 | (modify-phases %standard-phases | |
604 | (delete 'configure) | |
605 | (replace 'build | |
606 | (lambda* (#:key inputs #:allow-other-keys) | |
607 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
608 | ;; Tell mf where to find mf.base | |
609 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
610 | ;; Tell mf where to look for source files | |
611 | (setenv "MFINPUTS" | |
612 | (string-append (getcwd) ":" | |
613 | mf "/share/texmf-dist/metafont/base"))) | |
614 | (mkdir "build") | |
ff440d62 MW |
615 | (for-each (lambda (font) |
616 | (format #t "building font ~a\n" font) | |
617 | (invoke "mf" "-progname=mf" | |
618 | "-output-directory=build" | |
619 | (string-append "\\" | |
620 | "mode:=ljfour; " | |
621 | "mag:=1; " | |
622 | "batchmode; " | |
623 | "input " | |
624 | (basename font ".mf")))) | |
625 | (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$")) | |
626 | #t)) | |
3c4f1ec7 | 627 | (replace 'install |
6534e885 | 628 | (lambda* (#:key inputs outputs #:allow-other-keys) |
3c4f1ec7 RW |
629 | (let* ((out (assoc-ref outputs "out")) |
630 | (tfm (string-append | |
631 | out "/share/texmf-dist/fonts/tfm/public/cm")) | |
6534e885 PN |
632 | (mf (string-append |
633 | out "/share/texmf-dist/fonts/source/public/cm")) | |
634 | (type1 (string-append | |
635 | out "/share/texmf-dist/fonts/type1/public/amsfonts/cm"))) | |
3c4f1ec7 RW |
636 | (for-each (cut install-file <> tfm) |
637 | (find-files "build" "\\.*")) | |
638 | (for-each (cut install-file <> mf) | |
639 | (find-files "." "\\.mf")) | |
6534e885 PN |
640 | (mkdir-p type1) |
641 | (copy-recursively (assoc-ref inputs "cm-type1") type1) | |
3c4f1ec7 RW |
642 | #t)))))) |
643 | (native-inputs | |
644 | `(("texlive-bin" ,texlive-bin) | |
6534e885 PN |
645 | ("texlive-metafont-base" ,texlive-metafont-base) |
646 | ("cm-type1" | |
647 | ,(origin | |
648 | (method svn-fetch) | |
649 | (uri (svn-reference | |
650 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
651 | %texlive-tag "/Master/texmf-dist/" | |
652 | "/fonts/type1/public/amsfonts/cm")) | |
653 | (revision %texlive-revision))) | |
654 | (file-name (string-append name "-type1-" version "-checkout")) | |
655 | (sha256 | |
656 | (base32 | |
657 | "12jyl9jp3hidifa4l5pmi47p71d5mb5kj5rknxkygilix8yz2iy6")))))) | |
b8d8806b | 658 | (home-page "https://www.ctan.org/pkg/cm") |
3c4f1ec7 RW |
659 | (synopsis "Computer Modern fonts for TeX") |
660 | (description "This package provides the Computer Modern fonts by Donald | |
661 | Knuth. The Computer Modern font family is a large collection of text, | |
662 | display, and mathematical fonts in a range of styles, based on Monotype Modern | |
663 | 8A.") | |
664 | (license license:knuth))) | |
665 | ||
4e9242aa RW |
666 | (define-public texlive-fonts-cm-super |
667 | (package | |
668 | (name "texlive-fonts-cm-super") | |
669 | (version (number->string %texlive-revision)) | |
670 | (source (origin | |
671 | (method svn-fetch) | |
672 | (uri (svn-reference | |
673 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
674 | %texlive-tag "/Master/texmf-dist/" | |
675 | "/tex/latex/cm-super")) | |
676 | (revision %texlive-revision))) | |
677 | (file-name (string-append name "-" version "-checkout")) | |
678 | (sha256 | |
679 | (base32 | |
680 | "0ybb4gi2rblzpb6wfzm2wk7dj3y2jnmkzsla7mz7g3zc12y4r2b9")))) | |
681 | (build-system trivial-build-system) | |
682 | (arguments | |
683 | `(#:modules ((guix build utils) | |
684 | (ice-9 match)) | |
685 | #:builder | |
686 | (begin | |
687 | (use-modules (guix build utils) | |
688 | (ice-9 match)) | |
689 | (let ((root (string-append (assoc-ref %outputs "out") | |
690 | "/share/texmf-dist/")) | |
691 | (pkgs '(("source" . "tex/latex/cm-super") | |
692 | ("cm-super-afm" . "fonts/afm/public/cm-super") | |
693 | ("cm-super-type1" . "fonts/type1/public/cm-super") | |
694 | ("cm-super-enc" . "fonts/enc/dvips/cm-super") | |
695 | ("cm-super-map" . "fonts/map/dvips/cm-super") | |
696 | ("cm-super-vtex" . "fonts/map/vtex/cm-super")))) | |
697 | (for-each (match-lambda | |
698 | ((pkg . dir) | |
699 | (let ((target (string-append root dir))) | |
700 | (mkdir-p target) | |
701 | (copy-recursively (assoc-ref %build-inputs pkg) | |
702 | target)))) | |
703 | pkgs) | |
704 | #t)))) | |
705 | (native-inputs | |
706 | `(("cm-super-vtex" | |
707 | ,(origin | |
708 | (method svn-fetch) | |
709 | (uri (svn-reference | |
710 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
711 | %texlive-tag "/Master/texmf-dist/" | |
712 | "/fonts/map/vtex/cm-super")) | |
713 | (revision %texlive-revision))) | |
714 | (file-name (string-append name "-map-vtex-" version "-checkout")) | |
715 | (sha256 | |
716 | (base32 | |
717 | "14c9allsgfv6za9wznz4cxqxwz5nsmj8rnwvxams8fhs5rvglxqi")))) | |
718 | ("cm-super-afm" | |
719 | ,(origin | |
720 | (method svn-fetch) | |
721 | (uri (svn-reference | |
722 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
723 | %texlive-tag "/Master/texmf-dist/" | |
724 | "/fonts/afm/public/cm-super")) | |
725 | (revision %texlive-revision))) | |
726 | (file-name (string-append name "-afm-" version "-checkout")) | |
727 | (sha256 | |
728 | (base32 | |
729 | "048ih65f2nghdabdar2p957c4s2spgllmy2gxdscddwqpnmd26yn")))) | |
730 | ("cm-super-type1" | |
731 | ,(origin | |
732 | (method svn-fetch) | |
733 | (uri (svn-reference | |
734 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
735 | %texlive-tag "/Master/texmf-dist/" | |
736 | "/fonts/type1/public/cm-super")) | |
737 | (revision %texlive-revision))) | |
738 | (file-name (string-append name "-type1-" version "-checkout")) | |
739 | (sha256 | |
740 | (base32 | |
741 | "1140swk3w2ka0y4zdsq6pdifrdanb281q71p5gngbbjxdxjxf4qx")))) | |
742 | ("cm-super-map" | |
743 | ,(origin | |
744 | (method svn-fetch) | |
745 | (uri (svn-reference | |
746 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
747 | %texlive-tag "/Master/texmf-dist/" | |
748 | "/fonts/map/dvips/cm-super")) | |
749 | (revision %texlive-revision))) | |
750 | (file-name (string-append name "-map-" version "-checkout")) | |
751 | (sha256 | |
752 | (base32 | |
753 | "10r6xqbwf9wk3ylg7givwyrw1952zydc6p7fw29zjf8ijl0lndim")))) | |
754 | ("cm-super-enc" | |
755 | ,(origin | |
756 | (method svn-fetch) | |
757 | (uri (svn-reference | |
758 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
759 | %texlive-tag "/Master/texmf-dist/" | |
760 | "/fonts/enc/dvips/cm-super")) | |
761 | (revision %texlive-revision))) | |
762 | (file-name (string-append name "-enc-" version "-checkout")) | |
763 | (sha256 | |
764 | (base32 | |
765 | "1pgksy96gfgyjxfhs2k04bgg7nr7i128y01kjcahr7n38080h4ij")))))) | |
766 | (home-page "https://www.ctan.org/pkg/cm-super") | |
767 | (synopsis "Computer Modern Super family of fonts") | |
768 | (description "The CM-Super family provides Adobe Type 1 fonts that replace | |
769 | the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded Concrete, | |
770 | T1/TS1-encoded CM bright and LH Cyrillic fonts (thus supporting all European | |
771 | languages except Greek), and bringing many ameliorations in typesetting | |
772 | quality. The fonts exhibit the same metrics as the METAFONT-encoded | |
773 | originals.") | |
774 | ;; With font exception | |
775 | (license license:gpl2+))) | |
776 | ||
c2a1fe4a RW |
777 | (define-public texlive-fonts-lm |
778 | (package | |
779 | (name "texlive-fonts-lm") | |
780 | (version "2.004") | |
781 | (source (origin | |
782 | (method url-fetch) | |
783 | (uri (string-append "http://www.gust.org.pl/projects/e-foundry/" | |
784 | "latin-modern/download/lm" version "bas.zip")) | |
785 | (sha256 | |
786 | (base32 | |
787 | "0z2s253y751m2ci5aw8nq0sf2kyg9hpimv2gyixkch9d07m2b9wp")))) | |
788 | (build-system trivial-build-system) | |
789 | (arguments | |
790 | `(#:modules ((guix build utils)) | |
791 | #:builder | |
792 | (begin | |
793 | (use-modules (guix build utils)) | |
794 | (let ((root (string-append (assoc-ref %outputs "out") | |
795 | "/share/texmf-dist/"))) | |
796 | (mkdir-p root) | |
797 | (with-directory-excursion root | |
798 | (invoke (string-append (assoc-ref %build-inputs "unzip") | |
799 | "/bin/unzip") | |
800 | (assoc-ref %build-inputs "source"))) | |
801 | #t)))) | |
802 | (native-inputs | |
803 | `(("unzip" ,unzip))) | |
804 | (home-page "http://www.gust.org.pl/projects/e-foundry/latin-modern/") | |
805 | (synopsis "Latin Modern family of fonts") | |
806 | (description "The Latin Modern fonts are derived from the famous Computer | |
807 | Modern fonts designed by Donald E. Knuth and described in Volume E of his | |
808 | Computers & Typesetting series.") | |
809 | ;; The GUST font license (GFL) is legally identical to the LaTeX Project | |
810 | ;; Public License (LPPL), version 1.3c or later, but comes with an | |
811 | ;; additional but not legally binding clause. | |
812 | (license license:lppl1.3c+))) | |
813 | ||
5ebba61a RW |
814 | (define-public texlive-fonts-knuth-lib |
815 | (package | |
816 | (name "texlive-fonts-knuth-lib") | |
817 | (version (number->string %texlive-revision)) | |
818 | (source (origin | |
819 | (method svn-fetch) | |
820 | (uri (svn-reference | |
821 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
822 | %texlive-tag "/Master/texmf-dist/" | |
823 | "/fonts/source/public/knuth-lib")) | |
824 | (revision %texlive-revision))) | |
6b286e42 | 825 | (file-name (string-append name "-" version "-checkout")) |
5ebba61a RW |
826 | (sha256 |
827 | (base32 | |
828 | "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y")))) | |
829 | (build-system gnu-build-system) | |
830 | (arguments | |
831 | `(#:modules ((guix build gnu-build-system) | |
832 | (guix build utils) | |
833 | (srfi srfi-26)) | |
834 | #:tests? #f ; no tests | |
835 | #:phases | |
836 | (modify-phases %standard-phases | |
837 | (delete 'configure) | |
838 | (replace 'build | |
839 | (lambda* (#:key inputs #:allow-other-keys) | |
840 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
841 | ;; Tell mf where to find mf.base | |
842 | (setenv "MFBASES" | |
843 | (string-append mf "/share/texmf-dist/web2c")) | |
844 | ;; Tell mf where to look for source files | |
845 | (setenv "MFINPUTS" | |
846 | (string-append (getcwd) ":" | |
847 | mf "/share/texmf-dist/metafont/base"))) | |
848 | (mkdir "build") | |
849527e5 MW |
849 | (invoke "mf" "-progname=mf" |
850 | "-output-directory=build" | |
851 | (string-append "\\" | |
852 | "mode:=ljfour; " | |
853 | "mag:=1; " | |
854 | "batchmode; " | |
855 | "input manfnt")))) | |
5ebba61a RW |
856 | (replace 'install |
857 | (lambda* (#:key outputs #:allow-other-keys) | |
858 | (let* ((out (assoc-ref outputs "out")) | |
859 | (tfm (string-append | |
860 | out "/share/texmf-dist/fonts/tfm/public/knuth-lib")) | |
861 | (mf (string-append | |
862 | out "/share/texmf-dist/fonts/source/public/knuth-lib"))) | |
863 | (for-each (cut install-file <> tfm) | |
864 | (find-files "build" "\\.*")) | |
865 | (for-each (cut install-file <> mf) | |
866 | (find-files "." "\\.mf")) | |
867 | #t)))))) | |
868 | (native-inputs | |
869 | `(("texlive-bin" ,texlive-bin) | |
870 | ("texlive-metafont-base" ,texlive-metafont-base))) | |
871 | (home-page "https://www.ctan.org/pkg/knuth-lib") | |
872 | (synopsis "Small library of METAFONT sources") | |
873 | (description "This is a collection of core TeX and METAFONT macro files | |
874 | from Donald Knuth, including the plain format, plain base, and the MF logo | |
875 | fonts.") | |
876 | (license license:knuth))) | |
877 | ||
a00d5933 RW |
878 | (define-public texlive-fonts-latex |
879 | (package | |
880 | (name "texlive-fonts-latex") | |
881 | (version (number->string %texlive-revision)) | |
882 | (source (origin | |
883 | (method svn-fetch) | |
884 | (uri (svn-reference | |
885 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
886 | %texlive-tag "/Master/texmf-dist/" | |
887 | "/fonts/source/public/latex-fonts")) | |
888 | (revision %texlive-revision))) | |
a4550e7d | 889 | (file-name (string-append name "-" version "-checkout")) |
a00d5933 RW |
890 | (sha256 |
891 | (base32 | |
892 | "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps")))) | |
893 | (build-system gnu-build-system) | |
894 | (arguments | |
895 | `(#:modules ((guix build gnu-build-system) | |
896 | (guix build utils) | |
897 | (srfi srfi-1) | |
898 | (srfi srfi-26)) | |
899 | #:tests? #f ; no tests | |
900 | #:phases | |
901 | (modify-phases %standard-phases | |
902 | (delete 'configure) | |
903 | (replace 'build | |
904 | (lambda* (#:key inputs #:allow-other-keys) | |
905 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
906 | ;; Tell mf where to find mf.base | |
907 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
908 | ;; Tell mf where to look for source files | |
909 | (setenv "MFINPUTS" | |
910 | (string-append (getcwd) ":" | |
911 | mf "/share/texmf-dist/metafont/base:" | |
912 | (assoc-ref inputs "texlive-fonts-cm") | |
913 | "/share/texmf-dist/fonts/source/public/cm"))) | |
914 | (mkdir "build") | |
806faaab MW |
915 | (for-each (lambda (font) |
916 | (format #t "building font ~a\n" font) | |
917 | (invoke "mf" "-progname=mf" | |
918 | "-output-directory=build" | |
919 | (string-append "\\" | |
920 | "mode:=ljfour; " | |
921 | "mag:=1; " | |
922 | "batchmode; " | |
923 | "input " font))) | |
924 | '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8" | |
925 | "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8" | |
926 | "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10" | |
927 | "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8" | |
928 | "line10" "linew10")) | |
929 | #t)) | |
a00d5933 RW |
930 | (replace 'install |
931 | (lambda* (#:key outputs #:allow-other-keys) | |
932 | (let* ((out (assoc-ref outputs "out")) | |
933 | (tfm (string-append | |
934 | out "/share/texmf-dist/fonts/tfm/public/latex-fonts")) | |
935 | (mf (string-append | |
936 | out "/share/texmf-dist/fonts/source/public/latex-fonts"))) | |
937 | (for-each (cut install-file <> tfm) | |
938 | (find-files "build" "\\.*")) | |
939 | (for-each (cut install-file <> mf) | |
940 | (find-files "." "\\.mf")) | |
941 | #t)))))) | |
942 | (native-inputs | |
943 | `(("texlive-bin" ,texlive-bin) | |
944 | ("texlive-metafont-base" ,texlive-metafont-base) | |
945 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
b8d8806b | 946 | (home-page "https://www.ctan.org/pkg/latex-fonts") |
a00d5933 RW |
947 | (synopsis "Collection of fonts used in LaTeX distributions") |
948 | (description "This is a collection of fonts for use with standard LaTeX | |
949 | packages and classes. It includes invisible fonts (for use with the slides | |
950 | class), line and circle fonts (for use in the picture environment) and LaTeX | |
951 | symbol fonts.") | |
952 | (license license:lppl1.2+))) | |
953 | ||
98b4aca1 RW |
954 | (define-public texlive-fonts-amsfonts |
955 | (package | |
956 | (name "texlive-fonts-amsfonts") | |
957 | (version (number->string %texlive-revision)) | |
958 | (source (origin | |
959 | (method svn-fetch) | |
960 | (uri (svn-reference | |
961 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
962 | %texlive-tag "/Master/texmf-dist/" | |
963 | "/fonts/source/public/amsfonts")) | |
964 | (revision %texlive-revision))) | |
5fe9233e | 965 | (file-name (string-append name "-" version "-checkout")) |
98b4aca1 RW |
966 | (sha256 |
967 | (base32 | |
968 | "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb")))) | |
969 | (build-system gnu-build-system) | |
970 | (arguments | |
971 | `(#:modules ((guix build gnu-build-system) | |
972 | (guix build utils) | |
973 | (srfi srfi-1) | |
974 | (srfi srfi-26)) | |
975 | #:tests? #f ; no tests | |
976 | #:phases | |
977 | (modify-phases %standard-phases | |
978 | (delete 'configure) | |
979 | (replace 'build | |
980 | (lambda* (#:key inputs #:allow-other-keys) | |
981 | (let ((mf (assoc-ref inputs "texlive-metafont-base")) | |
982 | (cwd (getcwd))) | |
db6609bd DM |
983 | ;; Make METAFONT reproducible |
984 | (setenv "SOURCE_DATE_EPOCH" "1") | |
98b4aca1 RW |
985 | ;; Tell mf where to find mf.base |
986 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
987 | ;; Tell mf where to look for source files | |
988 | (setenv "MFINPUTS" | |
989 | (string-append cwd ":" | |
990 | cwd "/cmextra:" | |
991 | cwd "/cyrillic:" | |
992 | cwd "/dummy:" | |
993 | cwd "/symbols:" | |
994 | mf "/share/texmf-dist/metafont/base:" | |
995 | (assoc-ref inputs "texlive-fonts-cm") | |
996 | "/share/texmf-dist/fonts/source/public/cm"))) | |
997 | (mkdir "build") | |
2762023a MW |
998 | (for-each (lambda (font) |
999 | (format #t "building font ~a\n" (basename font ".mf")) | |
1000 | (with-directory-excursion (dirname font) | |
1001 | (invoke "mf" "-progname=mf" | |
1002 | "-output-directory=../build" | |
1003 | (string-append "\\" | |
1004 | "mode:=ljfour; " | |
1005 | "mag:=1; " | |
1006 | "nonstopmode; " | |
1007 | "input " | |
1008 | (getcwd) "/" | |
1009 | (basename font ".mf"))))) | |
1010 | (find-files "." "[0-9]+\\.mf$")) | |
1011 | #t)) | |
98b4aca1 | 1012 | (replace 'install |
24d0c4d0 | 1013 | (lambda* (#:key inputs outputs #:allow-other-keys) |
98b4aca1 | 1014 | (let* ((out (assoc-ref outputs "out")) |
24d0c4d0 RW |
1015 | (fonts (string-append out "/share/texmf-dist/fonts")) |
1016 | (tfm (string-append fonts "/tfm/public/amsfonts")) | |
1017 | (mf (string-append fonts "/source/public/amsfonts")) | |
1018 | (type1 (string-append fonts "/type1/public/amsfonts"))) | |
98b4aca1 RW |
1019 | (for-each (cut install-file <> tfm) |
1020 | (find-files "build" "\\.*")) | |
1021 | (for-each (cut install-file <> mf) | |
1022 | (find-files "." "\\.mf")) | |
24d0c4d0 | 1023 | (copy-recursively (assoc-ref inputs "amsfonts-type1") type1) |
98b4aca1 RW |
1024 | #t)))))) |
1025 | (native-inputs | |
1026 | `(("texlive-fonts-cm" ,texlive-fonts-cm) | |
1027 | ("texlive-metafont-base" ,texlive-metafont-base) | |
24d0c4d0 RW |
1028 | ("texlive-bin" ,texlive-bin) |
1029 | ("amsfonts-type1" | |
1030 | ,(origin | |
1031 | (method svn-fetch) | |
1032 | (uri (svn-reference | |
1033 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1034 | %texlive-tag "/Master/texmf-dist/" | |
1035 | "/fonts/type1/public/amsfonts")) | |
1036 | (revision %texlive-revision))) | |
1037 | (file-name (string-append name "-type1-" version "-checkout")) | |
1038 | (sha256 | |
1039 | (base32 | |
1040 | "1zfz33vn6gm19njy74n8wmn7sljrimfhwns5z8qqhxqfh1g4qip2")))))) | |
b8d8806b | 1041 | (home-page "https://www.ctan.org/pkg/amsfonts") |
98b4aca1 RW |
1042 | (synopsis "TeX fonts from the American Mathematical Society") |
1043 | (description | |
1044 | "This package provides an extended set of fonts for use in mathematics, | |
1045 | including: extra mathematical symbols; blackboard bold letters (uppercase | |
1046 | only); fraktur letters; subscript sizes of bold math italic and bold Greek | |
1047 | letters; subscript sizes of large symbols such as sum and product; added sizes | |
1048 | of the Computer Modern small caps font; cyrillic fonts (from the University of | |
1049 | Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1 | |
1050 | files, and all except the Euler fonts are provided as Metafont source. The | |
1051 | distribution also includes the canonical Type 1 versions of the Computer | |
1052 | Modern family of fonts. The Euler fonts are supported by separate packages; | |
1053 | details can be found in the documentation.") | |
1054 | (license license:silofl1.1))) | |
1055 | ||
137f9cbc RW |
1056 | (define-public texlive-latex-amsfonts |
1057 | (package | |
1058 | (name "texlive-latex-amsfonts") | |
1059 | (version (number->string %texlive-revision)) | |
1060 | (source (origin | |
1061 | (method svn-fetch) | |
1062 | (uri (texlive-ref "latex" "amsfonts")) | |
9700a0d0 | 1063 | (file-name (string-append name "-" version "-checkout")) |
137f9cbc RW |
1064 | (sha256 |
1065 | (base32 | |
1066 | "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm")))) | |
1067 | (build-system texlive-build-system) | |
1068 | (arguments '(#:tex-directory "latex/amsfonts")) | |
1069 | (native-inputs | |
1070 | `(("texlive-fonts-cm" ,texlive-fonts-cm) | |
1071 | ("texlive-metafont-base" ,texlive-metafont-base))) | |
b8d8806b | 1072 | (home-page "https://www.ctan.org/pkg/amsfonts") |
137f9cbc RW |
1073 | (synopsis "TeX fonts from the American Mathematical Society") |
1074 | (description | |
1075 | "This package provides basic LaTeX support for the symbol fonts provides | |
1076 | by the amsfonts package. It provides @code{amsfonts.sty}, with names of | |
1077 | individual symbols defined in @code{amssymb.sty}.") | |
1078 | (license license:silofl1.1))) | |
1079 | ||
566e95f7 RW |
1080 | ;; This provides etex.src which is needed to build various formats, including |
1081 | ;; luatex.fmt and pdflatex.fmt | |
1082 | (define-public texlive-tex-plain | |
1083 | (package | |
1084 | (name "texlive-tex-plain") | |
1085 | (version (number->string %texlive-revision)) | |
1086 | (source (origin | |
1087 | (method svn-fetch) | |
1088 | (uri (svn-reference | |
1089 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1090 | %texlive-tag "/Master/texmf-dist/" | |
1091 | "/tex/plain")) | |
1092 | (revision %texlive-revision))) | |
b63aefe5 | 1093 | (file-name (string-append name "-" version "-checkout")) |
566e95f7 RW |
1094 | (sha256 |
1095 | (base32 | |
d4d9a1ec | 1096 | "1xknlb3gcw6jjqh97bhghxi594bzpj1zfzzfsrr9pvr9s1bx7dnf")))) |
566e95f7 RW |
1097 | (build-system trivial-build-system) |
1098 | (arguments | |
1099 | `(#:modules ((guix build utils)) | |
1100 | #:builder | |
1101 | (begin | |
1102 | (use-modules (guix build utils)) | |
1103 | (let ((target (string-append (assoc-ref %outputs "out") | |
1104 | "/share/texmf-dist/tex/plain"))) | |
1105 | (mkdir-p target) | |
1106 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
1107 | #t)))) | |
1108 | (home-page "https://www.ctan.org/pkg/plain") | |
1109 | (synopsis "Plain TeX format and supporting files") | |
1110 | (description | |
1111 | "Contains files used to build the Plain TeX format, as described in the | |
1112 | TeXbook, together with various supporting files (some also discussed in the | |
1113 | book).") | |
1114 | (license license:knuth))) | |
1115 | ||
010f476f RW |
1116 | (define-public texlive-latex-base |
1117 | (let ((texlive-dir | |
1118 | (lambda (dir hash) | |
1119 | (origin | |
1120 | (method svn-fetch) | |
1121 | (uri (svn-reference | |
1122 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1123 | %texlive-tag "/Master/texmf-dist/" | |
1124 | dir)) | |
1125 | (revision %texlive-revision))) | |
8d514ae7 EF |
1126 | (file-name (string-append "texlive-generic-" |
1127 | (last (string-split | |
1128 | (string-drop-right dir 1) #\/)) | |
1129 | "-" (number->string %texlive-revision) | |
1130 | "-checkout")) | |
010f476f RW |
1131 | (sha256 (base32 hash)))))) |
1132 | (package | |
1133 | (name "texlive-latex-base") | |
1134 | (version (number->string %texlive-revision)) | |
1135 | (source (origin | |
1136 | (method svn-fetch) | |
1137 | (uri (texlive-ref "latex" "base")) | |
8d514ae7 | 1138 | (file-name (string-append name "-" version "-checkout")) |
010f476f RW |
1139 | (sha256 |
1140 | (base32 | |
d4d9a1ec | 1141 | "17bqrzzjz16k52sc7ydl4vw7ddy2z3g0p1xsk2c35h1ynq9h3wwm")))) |
010f476f RW |
1142 | (build-system gnu-build-system) |
1143 | (arguments | |
1144 | `(#:modules ((guix build gnu-build-system) | |
1145 | (guix build utils) | |
1146 | (ice-9 match) | |
1147 | (srfi srfi-1) | |
1148 | (srfi srfi-26)) | |
1149 | #:tests? #f ; no tests | |
1150 | #:phases | |
1151 | (modify-phases %standard-phases | |
1152 | (delete 'configure) | |
1153 | (replace 'build | |
1154 | (lambda* (#:key inputs #:allow-other-keys) | |
1155 | ;; Find required fonts | |
1156 | (setenv "TFMFONTS" | |
1157 | (string-append (assoc-ref inputs "texlive-fonts-cm") | |
1158 | "/share/texmf-dist/fonts/tfm/public/cm:" | |
1159 | (assoc-ref inputs "texlive-fonts-latex") | |
1160 | "/share/texmf-dist/fonts/tfm/public/latex-fonts:" | |
1161 | (assoc-ref inputs "texlive-fonts-knuth-lib") | |
1162 | "/share/texmf-dist/fonts/tfm/public/knuth-lib")) | |
1163 | (setenv "TEXINPUTS" | |
1164 | (string-append | |
1165 | (getcwd) ":" | |
1166 | (getcwd) "/build:" | |
1167 | (string-join | |
1168 | (append-map (match-lambda | |
1169 | ((_ . dir) | |
1170 | (find-files dir | |
1171 | (lambda (_ stat) | |
1172 | (eq? 'directory (stat:type stat))) | |
1173 | #:directories? #t | |
1174 | #:stat stat))) | |
1175 | inputs) | |
1176 | ":"))) | |
1177 | ||
1178 | ;; Create an empty texsys.cfg, because latex.ltx wants to include | |
1179 | ;; it. This file must exist and it's fine if it's empty. | |
1180 | (with-output-to-file "texsys.cfg" | |
1181 | (lambda _ (format #t "%"))) | |
1182 | ||
1183 | (mkdir "build") | |
1184 | (mkdir "web2c") | |
4f2f53f9 MW |
1185 | (invoke "luatex" "-ini" "-interaction=batchmode" |
1186 | "-output-directory=build" "unpack.ins") | |
1187 | (invoke "tex" "-ini" "-interaction=batchmode" | |
1188 | "-output-directory=web2c" "tex.ini") | |
1189 | ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which | |
1190 | ;; is enabled only in extended mode (activated with a | |
1191 | ;; leading asterisk). We should not use luatex here, | |
1192 | ;; because that would make the generated format files | |
1193 | ;; incompatible with any other TeX engine. | |
1194 | (for-each (lambda (format) | |
1195 | (invoke "latex" "-ini" "-interaction=batchmode" | |
1196 | "-output-directory=web2c" | |
1197 | "-translate-file=cp227.tcx" | |
1198 | (string-append "*" format ".ini"))) | |
1199 | '("latex" | |
1200 | "pdflatex" | |
1201 | "pdfetex")) | |
1202 | (for-each (lambda (format) | |
1203 | (invoke format "-ini" "-interaction=batchmode" | |
1204 | "-output-directory=web2c" | |
1205 | (string-append "*" format ".ini"))) | |
1206 | '("xetex" | |
1207 | "xelatex")) | |
1208 | (for-each (lambda (format) | |
1209 | (invoke "luatex" "-ini" "-interaction=batchmode" | |
1210 | "-output-directory=web2c" | |
1211 | (string-append format ".ini"))) | |
1212 | '("dviluatex" "dvilualatex" "luatex" "lualatex")) | |
1213 | #t)) | |
010f476f | 1214 | (replace 'install |
756fc3e1 | 1215 | (lambda* (#:key inputs outputs #:allow-other-keys) |
010f476f RW |
1216 | (let* ((out (assoc-ref outputs "out")) |
1217 | (target (string-append | |
1218 | out "/share/texmf-dist/tex/latex/base")) | |
1219 | (web2c (string-append | |
756fc3e1 PN |
1220 | out "/share/texmf-dist/web2c")) |
1221 | (support-files (assoc-ref inputs "texlive-latex-base-support-files"))) | |
010f476f RW |
1222 | (mkdir-p target) |
1223 | (mkdir-p web2c) | |
1224 | (for-each delete-file (find-files "." "\\.(log|aux)$")) | |
1225 | (for-each (cut install-file <> target) | |
1226 | (find-files "build" ".*")) | |
1227 | (for-each (cut install-file <> web2c) | |
1228 | (find-files "web2c" ".*")) | |
bd6e2385 RW |
1229 | ;; pdftex is really just the same as pdfetex, but since it |
1230 | ;; doesn't have its own format file, we need to copy it. | |
1231 | (copy-file "web2c/pdfetex.fmt" | |
1232 | (string-append web2c "/pdftex.fmt")) | |
756fc3e1 PN |
1233 | ;; "source" is missing the support files as per doc/latex/base/manifest.txt. |
1234 | ;; FIXME: We are probably not packaging this right. | |
1235 | (for-each (lambda (file) | |
1236 | (install-file | |
1237 | (string-append support-files "/" file) | |
1238 | target)) | |
1239 | '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex" | |
1240 | "lablst.tex" "testpage.tex" "ltxcheck.tex")) | |
d68c8017 RW |
1241 | ;; Install configurations |
1242 | (copy-recursively | |
1243 | (assoc-ref inputs "texlive-latex-latexconfig") | |
1244 | (string-append out "/share/texmf-dist/tex/latex/latexconfig")) | |
1245 | (copy-recursively | |
1246 | (assoc-ref inputs "texlive-generic-config") | |
1247 | (string-append out "/share/texmf-dist/tex/generic/config")) | |
1248 | (copy-recursively | |
1249 | (assoc-ref inputs "texlive-generic-hyphen") | |
1250 | (string-append out "/share/texmf-dist/tex/generic/hyphen")) | |
1251 | (copy-recursively | |
1252 | (assoc-ref inputs "texlive-generic-ruhyphen") | |
1253 | (string-append out "/share/texmf-dist/tex/generic/ruhyphen")) | |
1254 | (copy-recursively | |
1255 | (assoc-ref inputs "texlive-generic-ukrhyph") | |
1256 | (string-append out "/share/texmf-dist/tex/generic/ukrhyph")) | |
010f476f RW |
1257 | #t)))))) |
1258 | (native-inputs | |
1259 | `(("texlive-bin" ,texlive-bin) | |
1260 | ("texlive-generic-unicode-data" ,texlive-generic-unicode-data) | |
1261 | ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl) | |
1262 | ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files) | |
1263 | ("texlive-latex-latexconfig" | |
1264 | ,(texlive-dir "tex/latex/latexconfig/" | |
1265 | "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf")) | |
010f476f RW |
1266 | ("texlive-generic-hyphen" |
1267 | ,(texlive-dir "tex/generic/hyphen/" | |
1268 | "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd")) | |
1269 | ("texlive-generic-ruhyphen" | |
1270 | ,(texlive-dir "tex/generic/ruhyphen/" | |
1271 | "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd")) | |
1272 | ("texlive-generic-ukrhyph" | |
1273 | ,(texlive-dir "tex/generic/ukrhyph/" | |
1274 | "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv")) | |
1275 | ("texlive-generic-config" | |
1276 | ,(texlive-dir "tex/generic/config/" | |
d4d9a1ec | 1277 | "1v90iihy112q93zdpblpdk8zv8rf99fgslsg06s1sxm27zjm9nap")) |
756fc3e1 PN |
1278 | ("texlive-latex-base-support-files" |
1279 | ,(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/base")) | |
1285 | (revision %texlive-revision))) | |
1286 | (file-name (string-append name "-" version "-checkout")) | |
1287 | (sha256 | |
1288 | (base32 | |
d4d9a1ec | 1289 | "18wy8dlcw8adl6jzqwbg54pdwlhs8hilnfvqbw6ikj6y3zhqkj7q")))) |
010f476f RW |
1290 | ("texlive-tex-plain" ,texlive-tex-plain) |
1291 | ("texlive-fonts-cm" ,texlive-fonts-cm) | |
1292 | ("texlive-fonts-latex" ,texlive-fonts-latex) | |
1293 | ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib))) | |
d68c8017 RW |
1294 | (propagated-inputs |
1295 | `(("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8))) | |
b8d8806b | 1296 | (home-page "https://www.ctan.org/pkg/latex-base") |
010f476f RW |
1297 | (synopsis "Base sources of LaTeX") |
1298 | (description | |
1299 | "This bundle comprises the source of LaTeX itself, together with several | |
1300 | packages which are considered \"part of the kernel\". This bundle, together | |
1301 | with the required packages, constitutes what every LaTeX distribution should | |
1302 | contain.") | |
1303 | (license license:lppl1.3c+)))) | |
1304 | ||
3e485ed2 RW |
1305 | (define-public texlive-latex-filecontents |
1306 | (package | |
1307 | (name "texlive-latex-filecontents") | |
1308 | (version (number->string %texlive-revision)) | |
1309 | (source (origin | |
1310 | (method svn-fetch) | |
1311 | (uri (texlive-ref "latex" "filecontents")) | |
7e353a77 | 1312 | (file-name (string-append name "-" version "-checkout")) |
3e485ed2 RW |
1313 | (sha256 |
1314 | (base32 | |
1315 | "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q")))) | |
1316 | (build-system texlive-build-system) | |
1317 | (arguments '(#:tex-directory "latex/filecontents")) | |
b8d8806b | 1318 | (home-page "https://www.ctan.org/pkg/filecontents") |
3e485ed2 RW |
1319 | (synopsis "Extended filecontents and filecontents* environments") |
1320 | (description | |
1321 | "LaTeX2e's @code{filecontents} and @code{filecontents*} environments | |
1322 | enable a LaTeX source file to generate external files as it runs through | |
1323 | LaTeX. However, there are two limitations of these environments: they refuse | |
1324 | to overwrite existing files, and they can only be used in the preamble of a | |
1325 | document. The filecontents package removes these limitations, letting you | |
1326 | overwrite existing files and letting you use @code{filecontents} / | |
1327 | @code{filecontents*} anywhere.") | |
1328 | (license license:lppl1.3c+))) | |
1329 | ||
1193aa89 RW |
1330 | (define-public texlive-generic-ifxetex |
1331 | (package | |
1332 | (name "texlive-generic-ifxetex") | |
fea8eef3 | 1333 | (version (number->string %texlive-revision)) |
1193aa89 RW |
1334 | (source (origin |
1335 | (method svn-fetch) | |
1336 | (uri (texlive-ref "generic" "ifxetex")) | |
24dbc602 | 1337 | (file-name (string-append name "-" version "-checkout")) |
1193aa89 RW |
1338 | (sha256 |
1339 | (base32 | |
1340 | "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d")))) | |
1341 | (build-system texlive-build-system) | |
1342 | (arguments | |
1343 | '(#:tex-directory "generic/ifxetex" | |
1344 | #:tex-format "xelatex")) | |
1345 | (inputs | |
1346 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
b8d8806b | 1347 | (home-page "https://www.ctan.org/pkg/ifxetex") |
1193aa89 RW |
1348 | (synopsis "Am I running under XeTeX?") |
1349 | (description | |
1350 | "This is a simple package which provides an @code{\\ifxetex} conditional, | |
1351 | so that other code can determine that it is running under XeTeX. The package | |
beb476ed | 1352 | requires the e-TeX extensions to the TeX primitive set.") |
1193aa89 RW |
1353 | (license license:lppl1.3c+))) |
1354 | ||
9186c156 RW |
1355 | (define-public texlive-generic-epsf |
1356 | (package | |
1357 | (name "texlive-generic-epsf") | |
1358 | (version (number->string %texlive-revision)) | |
1359 | (source (origin | |
1360 | (method svn-fetch) | |
1361 | (uri (svn-reference | |
1362 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1363 | %texlive-tag "/Master/texmf-dist/" | |
1364 | "/tex/generic/epsf")) | |
1365 | (revision %texlive-revision))) | |
ca61c6b3 | 1366 | (file-name (string-append name "-" version "-checkout")) |
9186c156 RW |
1367 | (sha256 |
1368 | (base32 | |
1369 | "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy")))) | |
1370 | (build-system trivial-build-system) | |
1371 | (arguments | |
1372 | `(#:modules ((guix build utils)) | |
1373 | #:builder | |
1374 | (begin | |
1375 | (use-modules (guix build utils)) | |
1376 | (let ((target (string-append (assoc-ref %outputs "out") | |
1377 | "/share/texmf-dist/tex/generic/epfs"))) | |
1378 | (mkdir-p target) | |
1379 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
1380 | #t)))) | |
b8d8806b | 1381 | (home-page "https://www.ctan.org/pkg/epsf") |
9186c156 RW |
1382 | (synopsis "Simple macros for EPS inclusion") |
1383 | (description | |
1384 | "This package provides the original (and now obsolescent) graphics | |
1385 | inclusion macros for use with dvips, still widely used by Plain TeX users (in | |
1386 | particular). For LaTeX users, the package is nowadays (rather strongly) | |
1387 | deprecated in favour of the more sophisticated standard LaTeX latex-graphics | |
1388 | bundle of packages. (The latex-graphics bundle is also available to Plain TeX | |
1389 | users, via its Plain TeX version.)") | |
1390 | (license license:public-domain))) | |
1391 | ||
437822a1 RW |
1392 | (define-public texlive-latex-fancyvrb |
1393 | (package | |
1394 | (name "texlive-latex-fancyvrb") | |
1395 | (version (number->string %texlive-revision)) | |
1396 | (source (origin | |
1397 | (method svn-fetch) | |
1398 | (uri (texlive-ref "latex" "fancyvrb")) | |
88e11022 | 1399 | (file-name (string-append name "-" version "-checkout")) |
437822a1 RW |
1400 | (sha256 |
1401 | (base32 | |
1402 | "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv")))) | |
1403 | (build-system texlive-build-system) | |
1404 | (arguments | |
1405 | '(#:tex-directory "latex/fancyvrb" | |
1406 | ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and | |
1407 | ;; thus texlive-luatex-lualibs. | |
1408 | #:build-targets '("fancyvrb.ins"))) | |
b8d8806b | 1409 | (home-page "https://www.ctan.org/pkg/fancyvrb") |
437822a1 RW |
1410 | (synopsis "Sophisticated verbatim text") |
1411 | (description | |
1412 | "This package provides tools for the flexible handling of verbatim text | |
1413 | including: verbatim commands in footnotes; a variety of verbatim environments | |
1414 | with many parameters; ability to define new customized verbatim environments; | |
1415 | save and restore verbatim text and environments; write and read files in | |
1416 | verbatim mode; build \"example\" environments (showing both result and | |
1417 | verbatim source).") | |
1418 | (license license:lppl1.0+))) | |
1419 | ||
4eebd2cd RW |
1420 | (define-public texlive-latex-graphics |
1421 | (package | |
1422 | (name "texlive-latex-graphics") | |
1423 | (version (number->string %texlive-revision)) | |
1424 | (source (origin | |
1425 | (method svn-fetch) | |
1426 | (uri (texlive-ref "latex" "graphics")) | |
f7302073 | 1427 | (file-name (string-append name "-" version "-checkout")) |
4eebd2cd RW |
1428 | (sha256 |
1429 | (base32 | |
d4d9a1ec | 1430 | "0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz")))) |
4eebd2cd RW |
1431 | (build-system texlive-build-system) |
1432 | (arguments | |
1433 | '(#:tex-directory "latex/graphics" | |
1434 | #:phases | |
1435 | (modify-phases %standard-phases | |
1436 | (add-after 'install 'install-config | |
1437 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1438 | (let ((cfg (assoc-ref inputs "graphics-cfg")) | |
1439 | (target (string-append (assoc-ref outputs "out") | |
1440 | "/share/texmf-dist/tex/latex/graphics-cfg"))) | |
1441 | (mkdir-p target) | |
1442 | (install-file (string-append cfg "/graphics.cfg") target) | |
1443 | (install-file (string-append cfg "/color.cfg") target) | |
1444 | #t))) | |
1445 | (add-after 'install 'install-defs | |
1446 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1447 | (let ((def (assoc-ref inputs "graphics-def")) | |
1448 | (target (string-append (assoc-ref outputs "out") | |
1449 | "/share/texmf-dist/tex/latex/graphics-def"))) | |
1450 | (mkdir-p target) | |
1451 | (copy-recursively def target) | |
1452 | #t)))))) | |
1453 | (native-inputs | |
1454 | `(("graphics-cfg" | |
1455 | ,(origin | |
1456 | (method git-fetch) | |
1457 | (uri (git-reference | |
1458 | (url "https://github.com/latex3/graphics-cfg.git") | |
1459 | (commit "19d1238af17df376cd46333b229579b0f7f3a41f"))) | |
f7302073 EF |
1460 | (file-name (string-append "graphics-cfg-" |
1461 | (number->string %texlive-revision) | |
1462 | "-checkout")) | |
4eebd2cd RW |
1463 | (sha256 |
1464 | (base32 | |
1465 | "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh")))) | |
1466 | ("graphics-def" | |
1467 | ,(origin | |
1468 | (method svn-fetch) | |
1469 | (uri (svn-reference | |
1470 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1471 | %texlive-tag "/Master/texmf-dist/" | |
1472 | "/tex/latex/graphics-def")) | |
1473 | (revision %texlive-revision))) | |
f7302073 EF |
1474 | (file-name (string-append "graphics-def-" |
1475 | (number->string %texlive-revision) | |
1476 | "-checkout")) | |
4eebd2cd RW |
1477 | (sha256 |
1478 | (base32 | |
d4d9a1ec | 1479 | "17zpcgrfsr29g1dkz9np1qi63kjv7gb12rg979c6dai6qksbr3vq")))))) |
b8d8806b | 1480 | (home-page "https://www.ctan.org/pkg/latex-graphics") |
4eebd2cd RW |
1481 | (synopsis "LaTeX standard graphics bundle") |
1482 | (description | |
1483 | "This is a collection of LaTeX packages for producing color, including | |
1484 | graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX | |
1485 | documents. It comprises the packages color, graphics, graphicx, trig, epsfig, | |
1486 | keyval, and lscape.") | |
1487 | ;; The configuration files are released under CC0. | |
1488 | (license (list license:lppl1.3c+ | |
1489 | license:cc0)))) | |
1490 | ||
f5a6af42 RW |
1491 | (define-public texlive-latex-xcolor |
1492 | (package | |
1493 | (name "texlive-latex-xcolor") | |
1494 | (version (number->string %texlive-revision)) | |
1495 | (source (origin | |
1496 | (method svn-fetch) | |
1497 | (uri (texlive-ref "latex" "xcolor")) | |
19389bcd | 1498 | (file-name (string-append name "-" version "-checkout")) |
f5a6af42 RW |
1499 | (sha256 |
1500 | (base32 | |
1501 | "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494")))) | |
1502 | (build-system texlive-build-system) | |
1503 | (arguments '(#:tex-directory "latex/xcolor")) | |
b8d8806b | 1504 | (home-page "https://www.ctan.org/pkg/xcolor") |
f5a6af42 RW |
1505 | (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX") |
1506 | (description | |
1507 | "The package starts from the basic facilities of the colorcolor package, | |
1508 | and provides easy driver-independent access to several kinds of color tints, | |
1509 | shades, tones, and mixes of arbitrary colors. It allows a user to select a | |
1510 | document-wide target color model and offers complete tools for conversion | |
1511 | between eight color models. Additionally, there is a command for alternating | |
1512 | row colors plus repeated non-aligned material (like horizontal lines) in | |
1513 | tables.") | |
1514 | (license license:lppl1.2+))) | |
1515 | ||
4d660fdf RW |
1516 | (define-public texlive-latex-hyperref |
1517 | (package | |
1518 | (name "texlive-latex-hyperref") | |
1519 | (version "6.84a2") | |
1520 | ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx, | |
1521 | ;; so we fetch the release from GitHub. | |
1522 | (source (origin | |
1523 | (method url-fetch) | |
1524 | (uri (string-append "https://github.com/ho-tex/hyperref/" | |
1525 | "archive/release-" version ".tar.gz")) | |
1526 | (file-name (string-append name "-" version ".tar.gz")) | |
1527 | (sha256 | |
1528 | (base32 | |
1529 | "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2")))) | |
1530 | (build-system texlive-build-system) | |
1531 | (arguments '(#:tex-directory "latex/hyperref")) | |
b8d8806b | 1532 | (home-page "https://www.ctan.org/pkg/hyperref") |
4d660fdf RW |
1533 | (synopsis "Extensive support for hypertext in LaTeX") |
1534 | (description | |
c5a8ecb6 RW |
1535 | "The @code{hyperref} package is used to handle cross-referencing commands |
1536 | in LaTeX to produce hypertext links in the document. The package provides | |
1537 | backends for the @code{\\special} set defined for HyperTeX DVI processors; for | |
1538 | embedded @code{pdfmark} commands for processing by Acrobat | |
1539 | Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo}; | |
1540 | for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's | |
1541 | pdf and HTML backends. The package is distributed with the @code{backref} and | |
1542 | @code{nameref} packages, which make use of the facilities of @code{hyperref}.") | |
4d660fdf RW |
1543 | (license license:lppl1.3+))) |
1544 | ||
c3455b7d RW |
1545 | (define-public texlive-latex-oberdiek |
1546 | (package | |
1547 | (name "texlive-latex-oberdiek") | |
1548 | (version (number->string %texlive-revision)) | |
1549 | (source (origin | |
1550 | (method svn-fetch) | |
1551 | (uri (texlive-ref "latex" "oberdiek")) | |
7dea3119 | 1552 | (file-name (string-append name "-" version "-checkout")) |
c3455b7d RW |
1553 | (sha256 |
1554 | (base32 | |
d4d9a1ec | 1555 | "1m9fg8ddhpsl1212igr9a9fmj012lv780aghjn6fpidg2wqrffmn")))) |
c3455b7d RW |
1556 | (build-system texlive-build-system) |
1557 | (arguments | |
1558 | '(#:tex-directory "latex/oberdiek" | |
05d28068 | 1559 | #:build-targets '("oberdiek.ins") |
c3455b7d RW |
1560 | #:phases |
1561 | (modify-phases %standard-phases | |
05d28068 | 1562 | ;; "ifpdf.ins" is not generated, so we need to process the dtx file. |
c3455b7d RW |
1563 | (add-after 'unpack 'do-not-process-ifpdf.ins |
1564 | (lambda _ | |
1565 | (substitute* "oberdiek.ins" | |
05d28068 | 1566 | (("ifpdf.ins") "ifpdf.dtx")) |
c3455b7d | 1567 | #t))))) |
b8d8806b | 1568 | (home-page "https://www.ctan.org/pkg/oberdiek") |
c3455b7d RW |
1569 | (synopsis "Bundle of packages submitted by Heiko Oberdiek") |
1570 | (description | |
1571 | "The bundle comprises various LaTeX packages, providing among others: | |
1572 | better accessibility support for PDF files; extensible chemists reaction | |
1573 | arrows; record information about document class(es) used; and many more.") | |
1574 | (license license:lppl1.3+))) | |
1575 | ||
f2536af2 RW |
1576 | (define-public texlive-latex-tools |
1577 | (package | |
1578 | (name "texlive-latex-tools") | |
1579 | (version (number->string %texlive-revision)) | |
1580 | (source (origin | |
1581 | (method svn-fetch) | |
1582 | (uri (texlive-ref "latex" "tools")) | |
f8340ab1 | 1583 | (file-name (string-append name "-" version "-checkout")) |
f2536af2 RW |
1584 | (sha256 |
1585 | (base32 | |
d4d9a1ec | 1586 | "0vj7h1fgf1396h4qjdc2m07y08i54gbbfrxl8y327cn3r1n093s6")))) |
f2536af2 RW |
1587 | (build-system texlive-build-system) |
1588 | (arguments | |
1589 | '(#:tex-directory "latex/tools" | |
1590 | #:build-targets '("tools.ins"))) | |
b8d8806b | 1591 | (home-page "https://www.ctan.org/pkg/latex-tools") |
f2536af2 RW |
1592 | (synopsis "LaTeX standard tools bundle") |
1593 | (description | |
1594 | "This package is a collection of (variously) simple tools provided as | |
1595 | part of the LaTeX required tools distribution, comprising the following | |
1596 | packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr, | |
1597 | fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol, | |
1598 | rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim, | |
1599 | xr, and xspace.") | |
1600 | (license license:lppl1.3+))) | |
1601 | ||
35adcc3a RW |
1602 | (define-public texlive-latex-url |
1603 | (package | |
1604 | (name "texlive-latex-url") | |
1605 | (version (number->string %texlive-revision)) | |
1606 | (source (origin | |
1607 | (method svn-fetch) | |
1608 | (uri (svn-reference | |
1609 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
1610 | %texlive-tag "/Master/texmf-dist/" | |
1611 | "/tex/latex/url")) | |
1612 | (revision %texlive-revision))) | |
a26207f8 | 1613 | (file-name (string-append name "-" version "-checkout")) |
35adcc3a RW |
1614 | (sha256 |
1615 | (base32 | |
1616 | "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac")))) | |
1617 | (build-system trivial-build-system) | |
1618 | (arguments | |
1619 | `(#:modules ((guix build utils)) | |
1620 | #:builder | |
1621 | (begin | |
1622 | (use-modules (guix build utils)) | |
1623 | (let ((target (string-append (assoc-ref %outputs "out") | |
1624 | "/share/texmf-dist/tex/latex/url"))) | |
1625 | (mkdir-p target) | |
1626 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
1627 | #t)))) | |
1628 | (home-page "https://www.ctan.org/pkg/url") | |
1629 | (synopsis "Verbatim with URL-sensitive line breaks") | |
1630 | (description "The command @code{\\url} is a form of verbatim command that | |
1631 | allows linebreaks at certain characters or combinations of characters, accepts | |
1632 | reconfiguration, and can usually be used in the argument to another command. | |
1633 | The command is intended for email addresses, hypertext links, | |
1634 | directories/paths, etc., which normally have no spaces, so by default the | |
1635 | package ignores spaces in its argument. However, a package option allows | |
1636 | spaces, which is useful for operating systems where spaces are a common part | |
1637 | of file names.") | |
1638 | ;; The license header states that it is under LPPL version 2 or later, but | |
1639 | ;; the latest version is 1.3c. | |
1640 | (license license:lppl1.3c+))) | |
1641 | ||
a5b1ef84 RW |
1642 | (define-public texlive-latex-l3kernel |
1643 | (package | |
1644 | (name "texlive-latex-l3kernel") | |
1645 | (version (number->string %texlive-revision)) | |
1646 | (source (origin | |
1647 | (method svn-fetch) | |
1648 | (uri (texlive-ref "latex" "l3kernel")) | |
f4a39a5b | 1649 | (file-name (string-append name "-" version "-checkout")) |
a5b1ef84 RW |
1650 | (sha256 |
1651 | (base32 | |
d4d9a1ec | 1652 | "0p3fsxap1ilwjz356aq4s5ygwvdscis8bh93g8klf8mhrd8cr2jy")))) |
a5b1ef84 RW |
1653 | (build-system texlive-build-system) |
1654 | (arguments | |
1655 | '(#:tex-directory "latex/l3kernel")) | |
b8d8806b | 1656 | (home-page "https://www.ctan.org/pkg/l3kernel") |
a5b1ef84 RW |
1657 | (synopsis "LaTeX3 programmers’ interface") |
1658 | (description | |
1659 | "The l3kernel bundle provides an implementation of the LaTeX3 | |
1660 | programmers’ interface, as a set of packages that run under LaTeX 2e. The | |
1661 | interface provides the foundation on which the LaTeX3 kernel and other future | |
1662 | code are built: it is an API for TeX programmers. The packages are set up so | |
1663 | that the LaTeX3 conventions can be used with regular LaTeX 2e packages.") | |
1664 | (license license:lppl1.3c+))) | |
1665 | ||
cc09d48b RW |
1666 | (define-public texlive-latex-l3packages |
1667 | (package | |
1668 | (name "texlive-latex-l3packages") | |
1669 | (version (number->string %texlive-revision)) | |
1670 | (source (origin | |
1671 | (method svn-fetch) | |
1672 | (uri (texlive-ref "latex" "l3packages")) | |
b749aa98 | 1673 | (file-name (string-append name "-" version "-checkout")) |
cc09d48b RW |
1674 | (sha256 |
1675 | (base32 | |
d4d9a1ec | 1676 | "0pyx0hffiyss363vv7fkrcdiaf7p099xnq0mngzqc7v8v9q849hs")))) |
cc09d48b RW |
1677 | (build-system texlive-build-system) |
1678 | (arguments | |
1679 | '(#:tex-directory "latex/l3packages" | |
3d4908a7 PN |
1680 | ;; build-targets must be specified manually since they are in |
1681 | ;; sub-directories. | |
1682 | #:build-targets '("l3keys2e.ins" "xparse.ins" "xfrac.ins" "xfp.ins" "xtemplate.ins") | |
cc09d48b RW |
1683 | #:phases |
1684 | (modify-phases %standard-phases | |
1685 | ;; All package sources are in sub-directories, so we need to add them | |
1686 | ;; to TEXINPUTS. | |
1687 | (add-after 'unpack 'set-TEXINPUTS | |
1688 | (lambda _ | |
1689 | (let ((cwd (getcwd))) | |
1690 | (setenv "TEXINPUTS" | |
1691 | (string-append cwd "/l3keys2e:" | |
1692 | cwd "/xparse:" | |
1693 | cwd "/xfrac:" | |
1694 | cwd "/xfp:" | |
3d4908a7 PN |
1695 | cwd "/xtemplate" |
1696 | ;; The terminating ":" is required to include the | |
1697 | ;; l3kernel input as well. | |
1698 | ":"))) | |
1699 | #t))) | |
1700 | )) | |
2fea7041 | 1701 | (propagated-inputs |
cc09d48b | 1702 | `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel))) |
b8d8806b | 1703 | (home-page "https://www.ctan.org/pkg/l3packages") |
cc09d48b RW |
1704 | (synopsis "High-level LaTeX3 concepts") |
1705 | (description | |
1706 | "This bundle holds prototype implementations of concepts for a LaTeX | |
1707 | designer interface, to be used with the experimental LaTeX kernel as | |
1708 | programming tools and kernel support. Packages provided in this release are: | |
1709 | ||
1710 | @enumerate | |
1711 | @item l3keys2e, which makes the facilities of the kernel module l3keys | |
1712 | available for use by LaTeX 2e packages; | |
1713 | @item xfrac, which provides flexible splitlevel fractions; | |
1714 | @item xparse, which provides a high-level interface for declaring document | |
1715 | commands; and | |
1716 | @item xtemplate, which provides a means of defining generic functions using a | |
1717 | key-value syntax. | |
1718 | @end enumerate\n") | |
1719 | (license license:lppl1.3c+))) | |
1720 | ||
58308491 RW |
1721 | (define-public texlive-latex-fontspec |
1722 | (package | |
1723 | (name "texlive-latex-fontspec") | |
1724 | (version (number->string %texlive-revision)) | |
1725 | (source (origin | |
1726 | (method svn-fetch) | |
1727 | (uri (texlive-ref "latex" "fontspec")) | |
634a4a7f | 1728 | (file-name (string-append name "-" version "-checkout")) |
58308491 RW |
1729 | (sha256 |
1730 | (base32 | |
d4d9a1ec | 1731 | "1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq")))) |
58308491 RW |
1732 | (build-system texlive-build-system) |
1733 | (arguments | |
9c45beb4 RW |
1734 | '(#:tex-directory "latex/fontspec" |
1735 | #:phases | |
1736 | (modify-phases %standard-phases | |
1737 | (add-after 'install 'install-default-fontspec.cfg | |
1738 | (lambda* (#:key outputs #:allow-other-keys) | |
1739 | (with-output-to-file | |
1740 | (string-append (assoc-ref outputs "out") | |
1741 | "/share/texmf-dist/tex/latex/fontspec/fontspec.cfg") | |
1742 | (lambda _ | |
1743 | (display "\ | |
1744 | %%% FONTSPEC.CFG %%% | |
1745 | % | |
1746 | % This configuration file sets up TeX Ligatures by default for all fonts loaded | |
1747 | % with `\\setmainfont` and `\\setsansfont`. | |
1748 | % | |
1749 | % In addition, `\\setmonofont` has default features to enforce \"monospace\" | |
1750 | % settings with regard to space stretchability and shrinkability. | |
1751 | ||
1752 | \\defaultfontfeatures | |
1753 | [\\rmfamily,\\sffamily] | |
1754 | {Ligatures=TeX} | |
1755 | ||
1756 | \\defaultfontfeatures | |
1757 | [\\ttfamily] | |
1758 | {WordSpace={1,0,0}, | |
1759 | HyphenChar=None, | |
1760 | PunctuationSpace=WordSpace} | |
1761 | "))) | |
1762 | #t))))) | |
b80ecc5a RW |
1763 | (propagated-inputs |
1764 | `(("texlive-latex-l3packages" ,texlive-latex-l3packages))) | |
b8d8806b | 1765 | (home-page "https://www.ctan.org/pkg/fontspec") |
58308491 RW |
1766 | (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX") |
1767 | (description | |
1768 | "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an | |
1769 | automatic and unified interface to feature-rich AAT and OpenType fonts through | |
1770 | the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires | |
1771 | the l3kernel and xparse bundles from the LaTeX 3 development team.") | |
1772 | (license license:lppl1.3+))) | |
1773 | ||
e93f472d RW |
1774 | ;; The SVN directory contains little more than a dtx file that generates three |
1775 | ;; of the many lua files that should be installed as part of this package. | |
1776 | ;; This is why we take the release from GitHub instead. | |
1777 | (define-public texlive-luatex-lualibs | |
1778 | (package | |
1779 | (name "texlive-luatex-lualibs") | |
1780 | (version "2.5") | |
1781 | (source (origin | |
1782 | (method url-fetch) | |
1783 | (uri (string-append "https://github.com/lualatex/lualibs/" | |
1784 | "releases/download/v" | |
1785 | version "/lualibs.zip")) | |
01d79c30 | 1786 | (file-name (string-append name "-" version ".zip")) |
e93f472d RW |
1787 | (sha256 |
1788 | (base32 | |
1789 | "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy")))) | |
1790 | (build-system gnu-build-system) | |
1791 | (arguments | |
1792 | `(#:make-flags | |
1793 | (list (string-append "DESTDIR=" | |
1794 | (assoc-ref %outputs "out") | |
1795 | "/share/texmf-dist")) | |
1796 | #:phases | |
1797 | (modify-phases %standard-phases | |
1798 | (delete 'configure)))) | |
1799 | (native-inputs | |
1800 | `(("texlive-bin" ,texlive-bin) | |
1801 | ("unzip" ,unzip) | |
1802 | ("zip" ,zip))) | |
1803 | (home-page "https://github.com/lualatex/lualibs") | |
1804 | (synopsis "Lua modules for general programming (in the (La)TeX world)") | |
1805 | (description | |
1806 | "Lualibs is a collection of Lua modules useful for general programming. | |
1807 | The bundle is based on Lua modules shipped with ConTeXt, and made available in | |
1808 | this bundle for use independent of ConTeXt.") | |
1809 | ;; GPL version 2 only | |
1810 | (license license:gpl2))) | |
1811 | ||
769bb5e5 RW |
1812 | (define-public texlive-luatex-luaotfload |
1813 | (package | |
1814 | (name "texlive-luatex-luaotfload") | |
1815 | (version "2.8-fix-2") | |
1816 | ;; The release tarball does not contain all source files. | |
1817 | (source (origin | |
1818 | (method git-fetch) | |
1819 | (uri (git-reference | |
1820 | (url "https://github.com/lualatex/luaotfload.git") | |
1821 | (commit (string-append "v" version)))) | |
1822 | (file-name (git-file-name name version)) | |
1823 | (sha256 | |
1824 | (base32 | |
1825 | "0l5l7iq3dxcxl65qaghcpjg27yd9iw1sxa8pnd7xlvlm09dhfdnf")))) | |
1826 | (build-system gnu-build-system) | |
1827 | (arguments | |
1828 | `(#:make-flags | |
1829 | (list (string-append "DESTDIR=" | |
1830 | (assoc-ref %outputs "out") | |
1831 | "/share/texmf-dist") | |
1832 | "all") | |
1833 | #:parallel-build? #f ; not supported | |
1834 | #:phases | |
1835 | (modify-phases %standard-phases | |
1836 | (replace 'configure | |
1837 | (lambda* (#:key inputs #:allow-other-keys) | |
1838 | (substitute* "doc/Makefile" | |
1839 | (("rst2man") "rst2man.py") | |
1840 | ;; Don't build the PDF. This requires more of LaTeX. | |
1841 | (("\\$\\(DOCPDF\\)") "")) | |
1842 | ||
1843 | (substitute* "Makefile" | |
1844 | ;; We don't build the PDF, so don't attempt to install it. | |
1845 | (("cp \\$\\(RESOURCES\\) \\$\\(DOCPDF\\)") | |
1846 | "cp $(RESOURCES)") | |
1847 | (("= \\$\\(DOCPDF\\)") "= ") | |
1848 | ;; Fix name of fontloader file | |
1849 | (("^LOADER.*= \\$\\(BUILDDIR\\)/fontloader-\\$\\(shell date \\+%F\\).lua") | |
1850 | "LOADER = $(BUILDDIR)/fontloader.lua")) | |
1851 | ||
1852 | (mkdir "build") | |
1853 | ||
1854 | ;; Don't download this file. | |
1855 | (copy-file (assoc-ref inputs "glyphlist") | |
1856 | "build/glyphlist.txt") | |
1857 | ||
1858 | ;; Don't use git | |
1859 | (let ((notes | |
1860 | `((committer . "Philipp Gesang <phg@phi-gamma.net>") | |
1861 | (description . ,version) | |
1862 | (loader . "fontloader.lua") | |
1863 | (revision . "ad480924393fffa2896156e1a32c22f5c61120dd") | |
1864 | (timestamp . "2019-01-01 00:00:00 +0000")))) | |
1865 | (substitute* "scripts/mkstatus" | |
1866 | (("local notes.*=.*") | |
1867 | (string-append "local notes = {" | |
1868 | (string-join | |
1869 | (map (lambda (entry) | |
1870 | (format "[\"~a\"]=\"~a\"," | |
1871 | (symbol->string (car entry)) | |
1872 | (cdr entry))) | |
1873 | notes)) | |
1874 | "}")))) | |
1875 | #t))))) | |
1876 | (native-inputs | |
1877 | `(("zip" ,zip) | |
1878 | ("unzip" ,unzip) | |
1879 | ("graphviz" ,graphviz) | |
1880 | ("lualatex" ,(texlive-union (list texlive-luatex-lualibs | |
1881 | texlive-context-base))) | |
1882 | ("python-docutils" ,python-docutils) | |
1883 | ("glyphlist" | |
1884 | ,(origin | |
1885 | (method url-fetch) | |
1886 | (uri (string-append "https://raw.githubusercontent.com/adobe-type-tools/" | |
1887 | "agl-aglfn/b2a04cb906f9257cc06a2fe0ad4b3d663bc02136/" | |
1888 | "glyphlist.txt")) | |
1889 | (sha256 | |
1890 | (base32 "1s6svfw23rqzdvflv8frgd4xrwvrmsj8szwzqgcd39dp9rpjafjp")))))) | |
1891 | (propagated-inputs | |
1892 | `(("texlive-luatex-lualibs" ,texlive-luatex-lualibs))) | |
1893 | (home-page "https://github.com/lualatex/luaotfload") | |
1894 | (synopsis "OpenType font loader for LuaTeX") | |
1895 | (description | |
1896 | "Luaotfload is an adaptation of the ConTeXt font loading system for the | |
1897 | Plain and LaTeX formats. It allows OpenType fonts to be loaded with font | |
1898 | features accessible using an extended font request syntax while providing | |
1899 | compatibilitywith XeTeX. By indexing metadata in a database it facilitates | |
1900 | loading fonts by their proper names instead of file names.") | |
1901 | ;; GPL version 2 only | |
1902 | (license license:gpl2))) | |
1903 | ||
2573163a RW |
1904 | (define-public texlive-latex-amsmath |
1905 | (package | |
1906 | (name "texlive-latex-amsmath") | |
1907 | (version (number->string %texlive-revision)) | |
1908 | (source (origin | |
1909 | (method svn-fetch) | |
1910 | (uri (texlive-ref "latex" "amsmath")) | |
320c771a | 1911 | (file-name (string-append name "-" version "-checkout")) |
2573163a RW |
1912 | (sha256 |
1913 | (base32 | |
d4d9a1ec | 1914 | "0arvk7gn32mshnfdad5qkgf3i1arxq77k3vq7wnpm4nwnrzclxal")))) |
2573163a RW |
1915 | (build-system texlive-build-system) |
1916 | (arguments '(#:tex-directory "latex/amsmath")) | |
b8d8806b | 1917 | (home-page "https://www.ctan.org/pkg/amsmath") |
2573163a RW |
1918 | (synopsis "AMS mathematical facilities for LaTeX") |
1919 | (description | |
1920 | "This is the principal package in the AMS-LaTeX distribution. It adapts | |
1921 | for use in LaTeX most of the mathematical features found in AMS-TeX; it is | |
1922 | highly recommended as an adjunct to serious mathematical typesetting in LaTeX. | |
1923 | When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold | |
1924 | symbols), @code{amsopnamsopn} (for operator names) and | |
1925 | @code{amstextamstext} (for text embedded in mathematics) are also loaded. | |
1926 | This package is part of the LaTeX required distribution; however, several | |
1927 | contributed packages add still further to its appeal; examples are | |
1928 | @code{empheqempheq}, which provides functions for decorating and highlighting | |
1929 | mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar) | |
1930 | definitions.") | |
1931 | (license license:lppl1.3c+))) | |
1932 | ||
18e366e8 RW |
1933 | (define-public texlive-latex-amscls |
1934 | (package | |
1935 | (name "texlive-latex-amscls") | |
1936 | (version (number->string %texlive-revision)) | |
1937 | (source (origin | |
1938 | (method svn-fetch) | |
1939 | (uri (texlive-ref "latex" "amscls")) | |
43059ed0 | 1940 | (file-name (string-append name "-" version "-checkout")) |
18e366e8 RW |
1941 | (sha256 |
1942 | (base32 | |
d4d9a1ec | 1943 | "0c2j9xh4qpi0x1vvcxdjxq6say0zhyr569fryi5cmhp8bclh4kca")))) |
18e366e8 RW |
1944 | (build-system texlive-build-system) |
1945 | (arguments | |
1946 | `(#:tex-directory "latex/amscls")) | |
b8d8806b | 1947 | (home-page "https://www.ctan.org/pkg/amscls") |
18e366e8 RW |
1948 | (synopsis "AMS document classes for LaTeX") |
1949 | (description | |
1950 | "This bundle contains three AMS classes: @code{amsartamsart} (for writing | |
1951 | articles for the AMS), @code{amsbookamsbook} (for books) and | |
1952 | @code{amsprocamsproc} (for proceedings), together with some supporting | |
1953 | material. The material is made available as part of the AMS-LaTeX | |
1954 | distribution.") | |
1955 | (license license:lppl1.3c+))) | |
1956 | ||
f84d5a09 RW |
1957 | (define-public texlive-latex-babel |
1958 | (package | |
1959 | (name "texlive-latex-babel") | |
1960 | (version (number->string %texlive-revision)) | |
1961 | (source (origin | |
1962 | (method svn-fetch) | |
1963 | (uri (texlive-ref "latex" "babel")) | |
8732493e | 1964 | (file-name (string-append name "-" version "-checkout")) |
f84d5a09 RW |
1965 | (sha256 |
1966 | (base32 | |
d4d9a1ec | 1967 | "0yhlfiz3fjc8jd46f1zrjj4jig48l8rrzh8cmd8ammml8z9a01z6")))) |
f84d5a09 RW |
1968 | (build-system texlive-build-system) |
1969 | (arguments | |
dcc8af4a | 1970 | '(#:tex-directory "generic/babel" |
f84d5a09 RW |
1971 | #:phases |
1972 | (modify-phases %standard-phases | |
1973 | ;; This package tries to produce babel.aux twice but refuses to | |
1974 | ;; overwrite the first one. | |
1975 | (add-before 'build 'fix-ins | |
1976 | (lambda _ | |
1977 | (substitute* "babel.ins" | |
1978 | (("askonceonly") "askforoverwritefalse")) | |
1979 | #t))))) | |
b8d8806b | 1980 | (home-page "https://www.ctan.org/pkg/babel") |
f84d5a09 RW |
1981 | (synopsis "Multilingual support for Plain TeX or LaTeX") |
1982 | (description | |
1983 | "The package manages culturally-determined typographical (and other) | |
1984 | rules, and hyphenation patterns for a wide range of languages. A document may | |
1985 | select a single language to be supported, or it may select several, in which | |
1986 | case the document may switch from one language to another in a variety of | |
1987 | ways. Babel uses contributed configuration files that provide the detail of | |
1988 | what has to be done for each language. Users of XeTeX are advised to use the | |
1989 | polyglossia package rather than Babel.") | |
1990 | (license license:lppl1.3+))) | |
1991 | ||
876a1980 RW |
1992 | (define-public texlive-generic-babel-english |
1993 | (package | |
1994 | (name "texlive-generic-babel-english") | |
1995 | (version (number->string %texlive-revision)) | |
1996 | (source (origin | |
1997 | (method svn-fetch) | |
1998 | (uri (texlive-ref "generic" "babel-english")) | |
1999 | (file-name (string-append name "-" version "-checkout")) | |
2000 | (sha256 | |
2001 | (base32 | |
2002 | "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc")))) | |
2003 | (build-system texlive-build-system) | |
2004 | (arguments '(#:tex-directory "generic/babel-english")) | |
b8d8806b | 2005 | (home-page "https://www.ctan.org/pkg/babel-english") |
876a1980 RW |
2006 | (synopsis "Babel support for English") |
2007 | (description | |
2008 | "This package provides the language definition file for support of | |
2009 | English in @code{babel}. Care is taken to select British hyphenation patterns | |
2010 | for British English and Australian text, and default (\"american\") patterns | |
2011 | for Canadian and USA text.") | |
2012 | (license license:lppl1.3+))) | |
2013 | ||
6309d215 RW |
2014 | (define-public texlive-generic-babel-german |
2015 | (package | |
2016 | (name "texlive-generic-babel-german") | |
2017 | (version (number->string %texlive-revision)) | |
2018 | (source (origin | |
2019 | (method svn-fetch) | |
2020 | (uri (texlive-ref "generic" "babel-german")) | |
2021 | (file-name (string-append name "-" version "-checkout")) | |
2022 | (sha256 | |
2023 | (base32 | |
2024 | "0h47s67gnhdaxfgbf8pirp5vw4z6rrhxl8zav803yjxka0096i3y")))) | |
2025 | (build-system texlive-build-system) | |
2026 | (arguments '(#:tex-directory "generic/babel-german")) | |
2027 | (home-page "https://www.ctan.org/pkg/babel-german") | |
2028 | (synopsis "Babel support for German") | |
2029 | (description | |
2030 | "This package provides the language definition file for support of German | |
2031 | in @code{babel}. It provides all the necessary macros, definitions and | |
2032 | settings to typeset German documents. The bundle includes support for the | |
2033 | traditional and reformed German orthography as well as for the Austrian and | |
2034 | Swiss varieties of German.") | |
2035 | (license license:lppl1.3+))) | |
2036 | ||
93286d38 RW |
2037 | (define-public texlive-latex-cyrillic |
2038 | (package | |
2039 | (name "texlive-latex-cyrillic") | |
2040 | (version (number->string %texlive-revision)) | |
2041 | (source (origin | |
2042 | (method svn-fetch) | |
2043 | (uri (texlive-ref "latex" "cyrillic")) | |
51bffe79 | 2044 | (file-name (string-append name "-" version "-checkout")) |
93286d38 RW |
2045 | (sha256 |
2046 | (base32 | |
d4d9a1ec | 2047 | "083xbwg7hrnlv47fkwvz8yjb830bhxx7y0mq7z7nz2f96y2ldr6b")))) |
93286d38 RW |
2048 | (build-system texlive-build-system) |
2049 | (arguments | |
2050 | '(#:tex-directory "latex/cyrillic")) | |
b8d8806b | 2051 | (home-page "https://www.ctan.org/pkg/latex-cyrillic") |
93286d38 RW |
2052 | (synopsis "Support for Cyrillic fonts in LaTeX") |
2053 | (description | |
2054 | "This bundle of macros files provides macro support (including font | |
2055 | encoding macros) for the use of Cyrillic characters in fonts encoded under the | |
2056 | T2* and X2 encodings. These encodings cover (between them) pretty much every | |
2057 | language that is written in a Cyrillic alphabet.") | |
2058 | (license license:lppl1.3c+))) | |
2059 | ||
83fe6231 RW |
2060 | (define-public texlive-latex-psnfss |
2061 | (package | |
2062 | (name "texlive-latex-psnfss") | |
2063 | (version (number->string %texlive-revision)) | |
2064 | (source (origin | |
2065 | (method svn-fetch) | |
2066 | (uri (texlive-ref "latex" "psnfss")) | |
b5b10f3b | 2067 | (file-name (string-append name "-" version "-checkout")) |
83fe6231 RW |
2068 | (sha256 |
2069 | (base32 | |
2070 | "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz")))) | |
2071 | (build-system texlive-build-system) | |
2072 | (arguments '(#:tex-directory "latex/psnfss")) | |
b8d8806b | 2073 | (home-page "https://www.ctan.org/pkg/psnfss") |
83fe6231 RW |
2074 | (synopsis "Font support for common PostScript fonts") |
2075 | (description | |
2076 | "The PSNFSS collection includes a set of files that provide a complete | |
2077 | working setup of the LaTeX font selection scheme (NFSS2) for use with common | |
2078 | PostScript fonts. It covers the so-called \"Base\" fonts (which are built | |
2079 | into any Level 2 PostScript printing device and the Ghostscript interpreter) | |
2080 | and a number of free fonts. It provides font definition files, macros and | |
2081 | font metrics. The bundle as a whole is part of the LaTeX required set of | |
2082 | packages.") | |
2083 | (license license:lppl1.2+))) | |
2084 | ||
bfcb9d4d RW |
2085 | ;; For user profiles |
2086 | (define-public texlive-base | |
2087 | (let ((default-packages | |
2088 | (list texlive-bin | |
2089 | texlive-dvips | |
2090 | texlive-fontname | |
2091 | texlive-fonts-cm | |
2092 | texlive-fonts-latex | |
2093 | texlive-metafont-base | |
2094 | texlive-latex-base | |
2095 | ;; LaTeX packages from the "required" set. | |
2096 | texlive-latex-amsmath | |
2097 | texlive-latex-amscls | |
2098 | texlive-latex-babel | |
2099 | texlive-generic-babel-english | |
2100 | texlive-latex-cyrillic | |
2101 | texlive-latex-graphics | |
2102 | texlive-latex-psnfss | |
2103 | texlive-latex-tools))) | |
2104 | (package | |
2105 | (name "texlive-base") | |
2106 | (version (number->string %texlive-revision)) | |
2107 | (source #f) | |
2108 | (build-system trivial-build-system) | |
2109 | (arguments | |
2110 | '(#:builder | |
2111 | (begin (mkdir (assoc-ref %outputs "out"))))) | |
2112 | (propagated-inputs | |
2113 | (map (lambda (package) | |
2114 | (list (package-name package) package)) | |
2115 | default-packages)) | |
2116 | (home-page (package-home-page texlive-bin)) | |
2117 | (synopsis "TeX Live base packages") | |
2118 | (description "This is a very limited subset of the TeX Live distribution. | |
2119 | It includes little more than the required set of LaTeX packages.") | |
2120 | (license (fold (lambda (package result) | |
2121 | (match (package-license package) | |
2122 | ((lst ...) | |
2123 | (append lst result)) | |
2124 | ((? license:license? license) | |
2125 | (cons license result)))) | |
2126 | '() | |
2127 | default-packages))))) | |
2128 | ||
d7da2372 | 2129 | ;; For use in package definitions only |
cb7bc20a RW |
2130 | (define-public texlive-union |
2131 | (lambda* (#:optional (packages '())) | |
2132 | "Return 'texlive-union' package which is a union of PACKAGES and the | |
2133 | standard LaTeX packages." | |
d7da2372 RW |
2134 | (let ((default-packages (match (package-propagated-inputs texlive-base) |
2135 | (((labels packages) ...) packages)))) | |
2136 | (package (inherit texlive-base) | |
cb7bc20a | 2137 | (name "texlive-union") |
cb7bc20a RW |
2138 | (build-system trivial-build-system) |
2139 | (arguments | |
2140 | '(#:modules ((guix build union) | |
2141 | (guix build utils) | |
2142 | (guix build texlive-build-system) | |
2143 | (guix build gnu-build-system) | |
2144 | (guix build gremlin) | |
2145 | (guix elf)) | |
2146 | #:builder | |
2147 | (begin | |
2148 | (use-modules (ice-9 match) | |
2149 | (srfi srfi-26) | |
2150 | (guix build union) | |
2151 | (guix build utils) | |
2152 | (guix build texlive-build-system)) | |
2153 | (let* ((out (assoc-ref %outputs "out")) | |
2154 | (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf"))) | |
2155 | ;; Build a modifiable union of all inputs (but exclude bash) | |
2156 | (match (filter (match-lambda | |
2157 | ((name . _) | |
2158 | (not (string=? "bash" name)))) | |
2159 | %build-inputs) | |
2160 | (((names . directories) ...) | |
2161 | (union-build (assoc-ref %outputs "out") | |
2162 | directories | |
c58d1b5f RW |
2163 | #:create-all-directories? #t |
2164 | #:log-port (%make-void-port "w")))) | |
cb7bc20a RW |
2165 | |
2166 | ;; The configuration file "texmf.cnf" is provided by the | |
2167 | ;; "texlive-bin" package. We take it and override only the | |
2168 | ;; setting for TEXMFROOT and TEXMF. This file won't be consulted | |
2169 | ;; by default, though, so we still need to set TEXMFCNF. | |
2170 | (substitute* texmf.cnf | |
2171 | (("^TEXMFROOT = .*") | |
2172 | (string-append "TEXMFROOT = " out "/share\n")) | |
2173 | (("^TEXMF = .*") | |
2174 | "TEXMF = $TEXMFROOT/share/texmf-dist\n")) | |
2175 | (setenv "PATH" (string-append (assoc-ref %build-inputs "bash") | |
2176 | "/bin")) | |
2177 | (for-each | |
2178 | (cut wrap-program <> | |
476f7fce RW |
2179 | `("TEXMFCNF" ":" suffix (,(dirname texmf.cnf))) |
2180 | `("TEXMF" ":" suffix (,(string-append out "/share/texmf-dist")))) | |
cb7bc20a RW |
2181 | (find-files (string-append out "/bin") ".*")) |
2182 | #t)))) | |
2183 | (inputs | |
2184 | `(("bash" ,bash) | |
2185 | ,@(map (lambda (package) | |
2186 | (list (package-name package) package)) | |
2187 | (append default-packages packages)))) | |
2188 | (home-page (package-home-page texlive-bin)) | |
2189 | (synopsis "Union of TeX Live packages") | |
2190 | (description "This package provides a subset of the TeX Live | |
2191 | distribution.") | |
2192 | (license (fold (lambda (package result) | |
2193 | (match (package-license package) | |
2194 | ((lst ...) | |
2195 | (append lst result)) | |
2196 | ((? license:license? license) | |
2197 | (cons license result)))) | |
2198 | '() | |
2199 | (append default-packages packages))))))) | |
2200 | ||
d7da2372 | 2201 | ;; For use in package definitions only |
9d4f8dc2 RW |
2202 | (define-public texlive-tiny |
2203 | (package | |
2204 | (inherit (texlive-union)) | |
2205 | (name "texlive-tiny") | |
2206 | (description "This is a very limited subset of the TeX Live distribution. | |
2207 | It includes little more than the required set of LaTeX packages."))) | |
2208 | ||
60b5e228 RW |
2209 | (define-public texlive-latex-amsrefs |
2210 | (package | |
2211 | (name "texlive-latex-amsrefs") | |
2212 | (version (number->string %texlive-revision)) | |
2213 | (source (origin | |
2214 | (method svn-fetch) | |
2215 | (uri (texlive-ref "latex" "amsrefs")) | |
2216 | (file-name (string-append name "-" version "-checkout")) | |
2217 | (sha256 | |
2218 | (base32 | |
2219 | "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1")))) | |
2220 | (build-system texlive-build-system) | |
2221 | (arguments '(#:tex-directory "latex/amsrefs")) | |
b8d8806b | 2222 | (home-page "https://www.ctan.org/pkg/amsrefs") |
60b5e228 RW |
2223 | (synopsis "LaTeX-based replacement for BibTeX") |
2224 | (description | |
2225 | "Amsrefs is a LaTeX package for bibliographies that provides an archival | |
2226 | data format similar to the format of BibTeX database files, but adapted to | |
2227 | make direct processing by LaTeX easier. The package can be used either in | |
2228 | conjunction with BibTeX or as a replacement for BibTeX.") | |
2229 | (license license:lppl1.3+))) | |
2230 | ||
3236599f RW |
2231 | (define-public texlive-latex-bigfoot |
2232 | (package | |
2233 | (name "texlive-latex-bigfoot") | |
2234 | (version (number->string %texlive-revision)) | |
2235 | (source (origin | |
2236 | (method svn-fetch) | |
2237 | (uri (texlive-ref "latex" "bigfoot")) | |
2238 | (file-name (string-append name "-" version "-checkout")) | |
2239 | (sha256 | |
2240 | (base32 | |
2241 | "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv")))) | |
2242 | (build-system texlive-build-system) | |
2243 | (arguments | |
2244 | '(#:tex-directory "latex/bigfoot" | |
2245 | #:phases | |
2246 | (modify-phases %standard-phases | |
2247 | (add-after 'unpack 'remove-generated-file | |
2248 | (lambda _ | |
2249 | (for-each delete-file (find-files "." "\\.drv$")) | |
2250 | #t))))) | |
b8d8806b | 2251 | (home-page "https://www.ctan.org/pkg/bigfoot") |
3236599f RW |
2252 | (synopsis "Footnotes for critical editions") |
2253 | (description | |
2254 | "This package aims to provide a one-stop solution to requirements for | |
2255 | footnotes. It offers: Multiple footnote apparatus superior to that of | |
2256 | @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run | |
2257 | into a single paragraph (this choice may be selected per footnote series); | |
2258 | Things you might have expected (such as @code{\\verb}-like material in | |
2259 | footnotes, and color selections over page breaks) now work. Note that the | |
2260 | majority of the bigfoot package's interface is identical to that of | |
2261 | @code{manyfoot}; users should seek information from that package's | |
2262 | documentation. The bigfoot bundle also provides the @code{perpage} and | |
2263 | @code{suffix} packages.") | |
2264 | (license license:gpl2+))) | |
2265 | ||
8e732b49 RW |
2266 | (define-public texlive-latex-blindtext |
2267 | (package | |
2268 | (name "texlive-latex-blindtext") | |
2269 | (version (number->string %texlive-revision)) | |
2270 | (source (origin | |
2271 | (method svn-fetch) | |
2272 | (uri (texlive-ref "latex" "blindtext")) | |
2273 | (file-name (string-append name "-" version "-checkout")) | |
2274 | (sha256 | |
2275 | (base32 | |
2276 | "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg")))) | |
2277 | (build-system texlive-build-system) | |
2278 | (arguments '(#:tex-directory "latex/blindtext")) | |
b8d8806b | 2279 | (home-page "https://www.ctan.org/pkg/blindtext") |
8e732b49 RW |
2280 | (synopsis "Producing 'blind' text for testing") |
2281 | (description | |
2282 | "The package provides the commands @code{\\blindtext} and | |
2283 | @code{\\Blindtext} for creating \"blind\" text useful in testing new classes | |
2284 | and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating | |
2285 | an entire random document with sections, lists, mathematics, etc. The package | |
2286 | supports three languages, @code{english}, @code{(n)german} and @code{latin}; | |
2287 | the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem | |
2288 | ipsum\" text, see the @code{lipsum} package).") | |
2289 | (license license:lppl))) | |
2290 | ||
7cda03bd RW |
2291 | (define-public texlive-latex-dinbrief |
2292 | (package | |
2293 | (name "texlive-latex-dinbrief") | |
2294 | (version (number->string %texlive-revision)) | |
2295 | (source (origin | |
2296 | (method svn-fetch) | |
2297 | (uri (texlive-ref "latex" "dinbrief")) | |
2298 | (file-name (string-append name "-" version "-checkout")) | |
2299 | (sha256 | |
2300 | (base32 | |
2301 | "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6")))) | |
2302 | (build-system texlive-build-system) | |
2303 | (arguments | |
2304 | '(#:tex-directory "latex/dinbrief" | |
2305 | #:phases | |
2306 | (modify-phases %standard-phases | |
2307 | (add-after 'unpack 'remove-generated-file | |
2308 | (lambda _ | |
2309 | (delete-file "dinbrief.drv") | |
d4d9a1ec RW |
2310 | #t)) |
2311 | (add-after 'unpack 'fix-encoding-error | |
2312 | (lambda _ | |
2313 | (with-fluids ((%default-port-encoding "ISO-8859-1")) | |
2314 | (substitute* "dinbrief.dtx" | |
2315 | (("zur Verf.+ung. In der Pr\"aambel") | |
2316 | "zur Verf\"ung. In der Pr\"aambel"))) | |
7cda03bd | 2317 | #t))))) |
b8d8806b | 2318 | (home-page "https://www.ctan.org/pkg/dinbrief") |
7cda03bd RW |
2319 | (synopsis "German letter DIN style") |
2320 | (description | |
2321 | "This package implements a document layout for writing letters according | |
2322 | to the rules of DIN (Deutsches Institut für Normung, German standardisation | |
2323 | institute). A style file for LaTeX 2.09 (with limited support of the | |
2324 | features) is part of the package. Since the letter layout is based on a | |
2325 | German standard, the user guide is written in German, but most macros have | |
2326 | English names from which the user can recognize what they are used for. In | |
2327 | addition there are example files showing how letters may be created with the | |
2328 | package.") | |
2329 | (license license:lppl))) | |
2330 | ||
de224adb RW |
2331 | (define-public texlive-latex-draftwatermark |
2332 | (package | |
2333 | (name "texlive-latex-draftwatermark") | |
2334 | (version (number->string %texlive-revision)) | |
2335 | (source (origin | |
2336 | (method svn-fetch) | |
2337 | (uri (texlive-ref "latex" "draftwatermark")) | |
2338 | (file-name (string-append name "-" version "-checkout")) | |
2339 | (sha256 | |
2340 | (base32 | |
2341 | "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv")))) | |
2342 | (build-system texlive-build-system) | |
2343 | (arguments '(#:tex-directory "latex/draftwatermark")) | |
b8d8806b | 2344 | (home-page "https://www.ctan.org/pkg/draftwatermark") |
de224adb RW |
2345 | (synopsis "Put a grey textual watermark on document pages") |
2346 | (description | |
2347 | "This package provides a means to add a textual, light grey watermark on | |
2348 | every page or on the first page of a document. Typical usage may consist in | |
2349 | writing words such as DRAFT or CONFIDENTIAL across document pages. The | |
2350 | package performs a similar function to that of @code{draftcopy}, but its | |
2351 | implementation is output device independent, and made very simple by relying | |
2352 | on everypage.") | |
2353 | (license license:lppl1.3+))) | |
2354 | ||
74e9c9a4 RW |
2355 | (define-public texlive-latex-environ |
2356 | (package | |
2357 | (name "texlive-latex-environ") | |
2358 | (version (number->string %texlive-revision)) | |
2359 | (source (origin | |
2360 | (method svn-fetch) | |
2361 | (uri (texlive-ref "latex" "environ")) | |
2362 | (file-name (string-append name "-" version "-checkout")) | |
2363 | (sha256 | |
2364 | (base32 | |
2365 | "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd")))) | |
2366 | (build-system texlive-build-system) | |
2367 | (arguments '(#:tex-directory "latex/environ")) | |
b8d8806b | 2368 | (home-page "https://www.ctan.org/pkg/environ") |
74e9c9a4 RW |
2369 | (synopsis "New interface for environments in LaTeX") |
2370 | (description | |
09acbb02 RW |
2371 | "This package provides the @code{\\collect@@body} command (as in |
2372 | @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body}, | |
2373 | for collecting the body text of an environment. These commands are used to | |
2374 | define a new author interface to creating new environments.") | |
74e9c9a4 RW |
2375 | (license license:lppl))) |
2376 | ||
adfa7a2a RW |
2377 | (define-public texlive-latex-eqparbox |
2378 | (package | |
2379 | (name "texlive-latex-eqparbox") | |
2380 | (version (number->string %texlive-revision)) | |
2381 | (source (origin | |
2382 | (method svn-fetch) | |
2383 | (uri (texlive-ref "latex" "eqparbox")) | |
2384 | (file-name (string-append name "-" version "-checkout")) | |
2385 | (sha256 | |
2386 | (base32 | |
d4d9a1ec | 2387 | "1ib5xdwcj5wk23wgk41m2hdcjr1dzrs4l3wwnpink9mlapz12wjs")))) |
adfa7a2a RW |
2388 | (build-system texlive-build-system) |
2389 | (arguments '(#:tex-directory "latex/eqparbox")) | |
b8d8806b | 2390 | (home-page "https://www.ctan.org/pkg/eqparbox") |
adfa7a2a RW |
2391 | (synopsis "Create equal-widthed parboxes") |
2392 | (description | |
2393 | "LaTeX users sometimes need to ensure that two or more blocks of text | |
2394 | occupy the same amount of horizontal space on the page. To that end, the | |
2395 | @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works | |
2396 | just like @code{\\parbox}, except that instead of specifying a width, one | |
2397 | specifies a tag. All @code{eqparbox}es with the same tag---regardless of | |
2398 | where they are in the document---will stretch to fit the widest | |
2399 | @code{eqparbox} with that tag. This simple, equal-width mechanism can be used | |
2400 | for a variety of alignment purposes, as is evidenced by the examples in | |
2401 | @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are | |
2402 | also provided.") | |
2403 | (license license:lppl1.3+))) | |
2404 | ||
32e623d0 RW |
2405 | (define-public texlive-latex-expdlist |
2406 | (package | |
2407 | (name "texlive-latex-expdlist") | |
2408 | (version (number->string %texlive-revision)) | |
2409 | (source (origin | |
2410 | (method svn-fetch) | |
2411 | (uri (texlive-ref "latex" "expdlist")) | |
2412 | (file-name (string-append name "-" version "-checkout")) | |
2413 | (sha256 | |
2414 | (base32 | |
2415 | "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r")))) | |
2416 | (build-system texlive-build-system) | |
2417 | (arguments | |
2418 | '(#:tex-directory "latex/expdlist" | |
2419 | #:phases | |
2420 | (modify-phases %standard-phases | |
2421 | (add-after 'unpack 'remove-generated-file | |
2422 | (lambda _ | |
2423 | (for-each delete-file | |
2424 | (find-files "." "\\.drv$")) | |
2425 | #t))))) | |
b8d8806b | 2426 | (home-page "https://www.ctan.org/pkg/expdlist") |
32e623d0 RW |
2427 | (synopsis "Expanded description environments") |
2428 | (description | |
2429 | "The package provides additional features for the LaTeX | |
2430 | @code{description} environment, including adjustable left margin. The package | |
2431 | also allows the user to \"break\" a list (for example, to interpose a comment) | |
2432 | without affecting the structure of the list (this works for @code{itemize} and | |
2433 | @code{enumerate} lists, and numbered lists remain in sequence).") | |
2434 | (license license:lppl))) | |
2435 | ||
893e3fc1 RW |
2436 | (define-public texlive-latex-filemod |
2437 | (package | |
2438 | (name "texlive-latex-filemod") | |
2439 | (version (number->string %texlive-revision)) | |
2440 | (source (origin | |
2441 | (method svn-fetch) | |
2442 | (uri (svn-reference | |
2443 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2444 | %texlive-tag "/Master/texmf-dist/" | |
2445 | "/tex/latex/filemod")) | |
2446 | (revision %texlive-revision))) | |
681b579d | 2447 | (file-name (string-append name "-" version "-checkout")) |
893e3fc1 RW |
2448 | (sha256 |
2449 | (base32 | |
2450 | "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2")))) | |
2451 | (build-system trivial-build-system) | |
2452 | (arguments | |
2453 | `(#:modules ((guix build utils)) | |
2454 | #:builder | |
2455 | (begin | |
2456 | (use-modules (guix build utils)) | |
2457 | (let ((target (string-append (assoc-ref %outputs "out") | |
2458 | "/share/texmf-dist/tex/latex/filemod"))) | |
2459 | (mkdir-p target) | |
2460 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2461 | #t)))) | |
b8d8806b | 2462 | (home-page "https://www.ctan.org/pkg/filemod") |
893e3fc1 RW |
2463 | (synopsis "Provide file modification times, and compare them") |
2464 | (description | |
2465 | "This package provides macros to read and compare the modification dates | |
2466 | of files. The files may be @code{.tex} files, images or other files (as long | |
2467 | as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive | |
2468 | of pdfLaTeX to find the file modification date as PDF date string, parses the | |
2469 | string and returns the value to the user. The package will also work for DVI | |
2470 | output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI | |
2471 | mode. The functionality is provided by purely expandable macros or by faster | |
2472 | but non-expandable ones.") | |
2473 | (license license:lppl1.3+))) | |
2474 | ||
8c23f238 RW |
2475 | (define-public texlive-latex-ifplatform |
2476 | (package | |
2477 | (name "texlive-latex-ifplatform") | |
2478 | (version (number->string %texlive-revision)) | |
2479 | (source (origin | |
2480 | (method svn-fetch) | |
2481 | (uri (texlive-ref "latex" "ifplatform")) | |
2482 | (file-name (string-append name "-" version "-checkout")) | |
2483 | (sha256 | |
2484 | (base32 | |
d4d9a1ec | 2485 | "157pplavvm2z97b3jl4x41w11k6q9wgy074mfg0dwmsx5lm328jy")))) |
8c23f238 RW |
2486 | (build-system texlive-build-system) |
2487 | (arguments '(#:tex-directory "latex/ifplatform")) | |
b8d8806b | 2488 | (home-page "https://www.ctan.org/pkg/ifplatform") |
8c23f238 RW |
2489 | (synopsis "Conditionals to test which platform is being used") |
2490 | (description | |
2491 | "This package uses the (La)TeX extension @code{-shell-escape} to | |
2492 | establish whether the document is being processed on a Windows or on a | |
2493 | Unix-like system, or on Cygwin (Unix environment over a Windows system). | |
2494 | Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx} | |
2495 | and @code{\\ifcygwin}. The package also preserves the output of @code{uname} | |
2496 | on a Unix-like system, which may be used to distinguish between various | |
2497 | classes of systems.") | |
2498 | (license license:lppl))) | |
2499 | ||
9b416042 RW |
2500 | (define-public texlive-latex-natbib |
2501 | (package | |
2502 | (name "texlive-latex-natbib") | |
2503 | (version (number->string %texlive-revision)) | |
2504 | (source (origin | |
2505 | (method svn-fetch) | |
2506 | (uri (texlive-ref "latex" "natbib")) | |
23ae6e65 | 2507 | (file-name (string-append name "-" version "-checkout")) |
9b416042 RW |
2508 | (sha256 |
2509 | (base32 | |
2510 | "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7")))) | |
2511 | (build-system texlive-build-system) | |
2512 | (arguments '(#:tex-directory "latex/natbib")) | |
b8d8806b | 2513 | (home-page "https://www.ctan.org/pkg/natbib") |
9b416042 RW |
2514 | (synopsis "Flexible bibliography support") |
2515 | (description | |
2516 | "This bundle provides a package that implements both author-year and | |
2517 | numbered references, as well as much detailed of support for other | |
2518 | bibliography use. Also provided are versions of the standard BibTeX styles | |
2519 | that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat}, | |
2520 | @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are | |
2521 | designed from the start to be compatible with @code{natbib}.") | |
2522 | (license license:lppl))) | |
2523 | ||
d770d07f RW |
2524 | (define-public texlive-latex-psfrag |
2525 | (package | |
2526 | (name "texlive-latex-psfrag") | |
2527 | (version (number->string %texlive-revision)) | |
2528 | (source (origin | |
2529 | (method svn-fetch) | |
2530 | (uri (texlive-ref "latex" "psfrag")) | |
2531 | (file-name (string-append name "-" version "-checkout")) | |
2532 | (sha256 | |
2533 | (base32 | |
2534 | "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352")))) | |
2535 | (build-system texlive-build-system) | |
2536 | (arguments '(#:tex-directory "latex/psfrag")) | |
b8d8806b | 2537 | (home-page "https://www.ctan.org/pkg/psfrag") |
d770d07f RW |
2538 | (synopsis "Replace strings in encapsulated PostScript figures") |
2539 | (description | |
2540 | "This package allows LaTeX constructions (equations, picture | |
2541 | environments, etc.) to be precisely superimposed over Encapsulated PostScript | |
2542 | figures, using your own favorite drawing tool to create an EPS figure and | |
2543 | placing simple text \"tags\" where each replacement is to be placed, with | |
2544 | PSfrag automatically removing these tags from the figure and replacing them | |
2545 | with a user specified LaTeX construction, properly aligned, scaled, and/or | |
2546 | rotated.") | |
2547 | (license (license:fsf-free "file://psfrag.dtx")))) | |
2548 | ||
d4d9a1ec RW |
2549 | (define-public texlive-latex-xkeyval |
2550 | (package | |
2551 | (name "texlive-latex-xkeyval") | |
2552 | (version (number->string %texlive-revision)) | |
2553 | (source (origin | |
2554 | (method svn-fetch) | |
2555 | (uri (texlive-ref "latex" "xkeyval")) | |
2556 | (file-name (string-append name "-" version "-checkout")) | |
2557 | (sha256 | |
2558 | (base32 | |
2559 | "0wancavix39j240pd8m9cgmwsijwx6jd6n54v8wg0x2rk5m44myp")))) | |
2560 | (build-system texlive-build-system) | |
2561 | (arguments '(#:tex-directory "latex/xkeyval")) | |
2562 | (home-page "https://www.ctan.org/pkg/xkeyval") | |
2563 | (synopsis "Macros for defining and setting keys") | |
2564 | (description | |
2565 | "This package is an extension of the @code{keyval} package and offers | |
2566 | more flexible macros for defining and setting keys. The package provides a | |
2567 | pointer and a preset system. Furthermore, it supplies macros to allow class | |
2568 | and package options to contain options of the @code{key=value} form. A LaTeX | |
2569 | kernel patch is provided to avoid premature expansions of macros in class or | |
2570 | package options. A specialized system for setting @code{PSTricks} keys is | |
2571 | provided by the @code{pst-xkey} package.") | |
2572 | (license license:lppl1.3+))) | |
2573 | ||
5a1ee7d8 RW |
2574 | (define-public texlive-latex-pstool |
2575 | (package | |
2576 | (name "texlive-latex-pstool") | |
2577 | (version (number->string %texlive-revision)) | |
2578 | (source (origin | |
2579 | (method svn-fetch) | |
d4d9a1ec RW |
2580 | (uri (svn-reference |
2581 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2582 | %texlive-tag "/Master/texmf-dist/" | |
2583 | "/tex/latex/pstool")) | |
2584 | (revision %texlive-revision))) | |
5a1ee7d8 RW |
2585 | (file-name (string-append name "-" version "-checkout")) |
2586 | (sha256 | |
2587 | (base32 | |
d4d9a1ec RW |
2588 | "1h816jain8c9nky75kk8pmmwj5b4yf9dpqvdvi2l6jhfj5iqkzr8")))) |
2589 | (build-system trivial-build-system) | |
5a1ee7d8 | 2590 | (arguments |
d4d9a1ec RW |
2591 | `(#:modules ((guix build utils)) |
2592 | #:builder | |
2593 | (begin | |
2594 | (use-modules (guix build utils)) | |
2595 | (let ((target (string-append (assoc-ref %outputs "out") | |
2596 | "/share/texmf-dist/tex/latex/pstool"))) | |
2597 | (mkdir-p target) | |
2598 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2599 | #t)))) | |
5a1ee7d8 | 2600 | (propagated-inputs |
d4d9a1ec | 2601 | `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot) ; for suffix |
5a1ee7d8 RW |
2602 | ("texlive-latex-filemod" ,texlive-latex-filemod) |
2603 | ("texlive-latex-graphics" ,texlive-latex-graphics) | |
2604 | ("texlive-latex-ifplatform" ,texlive-latex-ifplatform) | |
d4d9a1ec | 2605 | ("texlive-latex-l3kernel" ,texlive-latex-l3kernel) ; for expl3 |
5a1ee7d8 RW |
2606 | ("texlive-latex-oberdiek" ,texlive-latex-oberdiek) |
2607 | ("texlive-latex-psfrag" ,texlive-latex-psfrag) | |
d4d9a1ec RW |
2608 | ("texlive-latex-tools" ,texlive-latex-tools) ; for shellesc |
2609 | ("texlive-latex-trimspaces" ,texlive-latex-trimspaces) | |
2610 | ("texlive-latex-xkeyval" ,texlive-latex-xkeyval))) | |
b8d8806b | 2611 | (home-page "https://www.ctan.org/pkg/pstool") |
d4d9a1ec | 2612 | (synopsis "Process PostScript graphics within pdfLaTeX documents") |
5a1ee7d8 RW |
2613 | (description |
2614 | "This is a package for processing PostScript graphics with @code{psfrag} | |
2615 | labels within pdfLaTeX documents. Every graphic is compiled individually, | |
2616 | drastically speeding up compilation time when only a single figure needs | |
2617 | re-processing.") | |
2618 | (license license:lppl))) | |
2619 | ||
171160d5 RW |
2620 | (define-public texlive-latex-seminar |
2621 | (package | |
2622 | (name "texlive-latex-seminar") | |
2623 | (version (number->string %texlive-revision)) | |
2624 | (source (origin | |
2625 | (method svn-fetch) | |
2626 | (uri (svn-reference | |
2627 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2628 | %texlive-tag "/Master/texmf-dist/" | |
2629 | "/tex/latex/seminar")) | |
2630 | (revision %texlive-revision))) | |
a74ac06b | 2631 | (file-name (string-append name "-" version "-checkout")) |
171160d5 RW |
2632 | (sha256 |
2633 | (base32 | |
2634 | "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0")))) | |
2635 | (build-system texlive-build-system) | |
2636 | (arguments '(#:tex-directory "latex/seminar")) | |
b8d8806b | 2637 | (home-page "https://www.ctan.org/pkg/seminar") |
171160d5 RW |
2638 | (synopsis "Make overhead slides") |
2639 | ;; TODO: This package may need fancybox and xcomment at runtime. | |
2640 | (description | |
2641 | "This package provides a class that produces overhead | |
2642 | slides (transparencies), with many facilities. Seminar is not nowadays | |
2643 | reckoned a good basis for a presentation — users are advised to use more | |
2644 | recent classes such as powerdot or beamer, both of which are tuned to | |
2645 | 21st-century presentation styles.") | |
2646 | (license license:lppl1.2+))) | |
2647 | ||
f3540dbd RW |
2648 | (define-public texlive-latex-trimspaces |
2649 | (package | |
2650 | (name "texlive-latex-trimspaces") | |
2651 | (version (number->string %texlive-revision)) | |
2652 | (source (origin | |
2653 | (method svn-fetch) | |
2654 | (uri (texlive-ref "latex" "trimspaces")) | |
70a71d19 | 2655 | (file-name (string-append name "-" version "-checkout")) |
f3540dbd RW |
2656 | (sha256 |
2657 | (base32 | |
2658 | "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa")))) | |
2659 | (build-system texlive-build-system) | |
2660 | (arguments | |
2661 | '(#:tex-directory "latex/trimspaces" | |
2662 | #:tex-format "latex" | |
2663 | #:phases | |
2664 | (modify-phases %standard-phases | |
2665 | (add-after 'unpack 'fix-bug | |
2666 | (lambda _ | |
2667 | ;; The "ins" file refers to the wrong source file. | |
2668 | (substitute* "trimspaces.ins" | |
2669 | (("pstool.tex") "trimspaces.tex")) | |
2670 | #t))))) | |
2671 | (inputs | |
2672 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
b8d8806b | 2673 | (home-page "https://www.ctan.org/pkg/trimspaces") |
f3540dbd RW |
2674 | (synopsis "Trim spaces around an argument or within a macro") |
2675 | (description | |
2676 | "This very short package allows you to expandably remove spaces around a | |
2677 | token list (commands are provided to remove spaces before, spaces after, or | |
2678 | both); or to remove surrounding spaces within a macro definition, or to define | |
2679 | space-stripped macros.") | |
2680 | (license license:lppl))) | |
2681 | ||
7709d4d8 RW |
2682 | (define-public texlive-latex-capt-of |
2683 | (package | |
2684 | (name "texlive-latex-capt-of") | |
2685 | (version (number->string %texlive-revision)) | |
2686 | (source (origin | |
2687 | (method svn-fetch) | |
2688 | (uri (svn-reference | |
2689 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2690 | %texlive-tag "/Master/texmf-dist/" | |
2691 | "/tex/latex/capt-of")) | |
2692 | (revision %texlive-revision))) | |
2693 | (file-name (string-append name "-" version "-checkout")) | |
2694 | (sha256 | |
2695 | (base32 | |
2696 | "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x")))) | |
2697 | (build-system trivial-build-system) | |
2698 | (arguments | |
2699 | `(#:modules ((guix build utils)) | |
2700 | #:builder | |
2701 | (begin | |
2702 | (use-modules (guix build utils)) | |
2703 | (let ((target (string-append (assoc-ref %outputs "out") | |
2704 | "/share/texmf-dist/tex/latex/capt-of"))) | |
2705 | (mkdir-p target) | |
2706 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2707 | #t)))) | |
b8d8806b | 2708 | (home-page "https://www.ctan.org/pkg/capt-of") |
7709d4d8 RW |
2709 | (synopsis "Captions on more than floats") |
2710 | (description | |
2711 | "This package defines a command @code{\\captionof} for putting a caption | |
2712 | to something that's not a float.") | |
2713 | (license license:lppl))) | |
2714 | ||
49b2e86a RW |
2715 | (define-public texlive-latex-doi |
2716 | (package | |
2717 | (name "texlive-latex-doi") | |
2718 | (version (number->string %texlive-revision)) | |
2719 | (source (origin | |
2720 | (method svn-fetch) | |
2721 | (uri (svn-reference | |
2722 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2723 | %texlive-tag "/Master/texmf-dist/" | |
2724 | "/tex/latex/doi")) | |
2725 | (revision %texlive-revision))) | |
2726 | (file-name (string-append name "-" version "-checkout")) | |
2727 | (sha256 | |
2728 | (base32 | |
2729 | "0378rdmrgr2lzbfi4qqy4dfpj5im20diyd8z8b9m4mlg05r7wgnb")))) | |
2730 | (build-system trivial-build-system) | |
2731 | (arguments | |
2732 | `(#:modules ((guix build utils)) | |
2733 | #:builder | |
2734 | (begin | |
2735 | (use-modules (guix build utils)) | |
2736 | (let ((target (string-append (assoc-ref %outputs "out") | |
2737 | "/share/texmf-dist/tex/latex/doi"))) | |
2738 | (mkdir-p target) | |
2739 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2740 | #t)))) | |
2741 | (home-page "https://www.ctan.org/pkg/doi") | |
2742 | (synopsis "Create correct hyperlinks for DOI numbers") | |
2743 | (description | |
2744 | "You can hyperlink DOI numbers to doi.org. However, some publishers have | |
2745 | elected to use nasty characters in their DOI numbering scheme (@code{<}, | |
2746 | @code{>}, @code{_} and @code{;} have all been spotted). This will either | |
2747 | upset LaTeX, or your PDF reader. This package contains a single user-level | |
2748 | command @code{\\doi{}}, which takes a DOI number, and creates a correct | |
2749 | hyperlink to the target of the DOI.") | |
2750 | ;; Any version of the LPPL. | |
2751 | (license license:lppl1.3+))) | |
2752 | ||
a8ac7c0b RW |
2753 | (define-public texlive-latex-etoolbox |
2754 | (package | |
2755 | (name "texlive-latex-etoolbox") | |
2756 | (version (number->string %texlive-revision)) | |
2757 | (source (origin | |
2758 | (method svn-fetch) | |
2759 | (uri (svn-reference | |
2760 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2761 | %texlive-tag "/Master/texmf-dist/" | |
2762 | "/tex/latex/etoolbox")) | |
2763 | (revision %texlive-revision))) | |
2764 | (file-name (string-append name "-" version "-checkout")) | |
2765 | (sha256 | |
2766 | (base32 | |
d4d9a1ec | 2767 | "1agmq6bf8wzcd77n20ng8bl4kh69cg5f6sjniii7bcw4llhd3nc8")))) |
a8ac7c0b RW |
2768 | (build-system trivial-build-system) |
2769 | (arguments | |
2770 | `(#:modules ((guix build utils)) | |
2771 | #:builder | |
2772 | (begin | |
2773 | (use-modules (guix build utils)) | |
2774 | (let ((target (string-append (assoc-ref %outputs "out") | |
2775 | "/share/texmf-dist/tex/latex/etoolbox"))) | |
2776 | (mkdir-p target) | |
2777 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2778 | #t)))) | |
b8d8806b | 2779 | (home-page "https://www.ctan.org/pkg/etoolbox") |
a8ac7c0b RW |
2780 | (synopsis "e-TeX tools for LaTeX") |
2781 | (description | |
2782 | "This package is a toolbox of programming facilities geared primarily | |
2783 | towards LaTeX class and package authors. It provides LaTeX frontends to some | |
2784 | of the new primitives provided by e-TeX as well as some generic tools which | |
2785 | are not strictly related to e-TeX but match the profile of this package. The | |
2786 | package provides functions that seem to offer alternative ways of implementing | |
2787 | some LaTeX kernel commands; nevertheless, the package will not modify any part | |
2788 | of the LaTeX kernel.") | |
2789 | (license license:lppl1.3+))) | |
2790 | ||
17dce7e5 RW |
2791 | (define-public texlive-latex-fncychap |
2792 | (package | |
2793 | (name "texlive-latex-fncychap") | |
2794 | (version (number->string %texlive-revision)) | |
2795 | (source (origin | |
2796 | (method svn-fetch) | |
2797 | (uri (svn-reference | |
2798 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2799 | %texlive-tag "/Master/texmf-dist/" | |
2800 | "/tex/latex/fncychap")) | |
2801 | (revision %texlive-revision))) | |
2802 | (file-name (string-append name "-" version "-checkout")) | |
2803 | (sha256 | |
2804 | (base32 | |
2805 | "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq")))) | |
2806 | (build-system trivial-build-system) | |
2807 | (arguments | |
2808 | `(#:modules ((guix build utils)) | |
2809 | #:builder | |
2810 | (begin | |
2811 | (use-modules (guix build utils)) | |
2812 | (let ((target (string-append (assoc-ref %outputs "out") | |
2813 | "/share/texmf-dist/tex/latex/fncychap"))) | |
2814 | (mkdir-p target) | |
2815 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2816 | #t)))) | |
b8d8806b | 2817 | (home-page "https://www.ctan.org/pkg/fncychap") |
17dce7e5 RW |
2818 | (synopsis "Seven predefined chapter heading styles") |
2819 | (description | |
2820 | "This package provides seven predefined chapter heading styles. Each | |
2821 | style can be modified using a set of simple commands. Optionally one can | |
2822 | modify the formatting routines in order to create additional chapter | |
2823 | headings.") | |
2824 | (license license:lppl1.3+))) | |
2825 | ||
ef1e2ef0 RW |
2826 | (define-public texlive-latex-framed |
2827 | (package | |
2828 | (name "texlive-latex-framed") | |
2829 | (version (number->string %texlive-revision)) | |
2830 | (source (origin | |
2831 | (method svn-fetch) | |
2832 | (uri (svn-reference | |
2833 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
2834 | %texlive-tag "/Master/texmf-dist/" | |
2835 | "/tex/latex/framed")) | |
2836 | (revision %texlive-revision))) | |
2837 | (file-name (string-append name "-" version "-checkout")) | |
2838 | (sha256 | |
2839 | (base32 | |
2840 | "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x")))) | |
2841 | (build-system trivial-build-system) | |
2842 | (arguments | |
2843 | `(#:modules ((guix build utils)) | |
2844 | #:builder | |
2845 | (begin | |
2846 | (use-modules (guix build utils)) | |
2847 | (let ((target (string-append (assoc-ref %outputs "out") | |
2848 | "/share/texmf-dist/tex/latex/framed"))) | |
2849 | (mkdir-p target) | |
2850 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
2851 | #t)))) | |
b8d8806b | 2852 | (home-page "https://www.ctan.org/pkg/framed") |
ef1e2ef0 RW |
2853 | (synopsis "Framed or shaded regions that can break across pages") |
2854 | (description | |
2855 | "The package creates three environments: @code{framed}, which puts an | |
2856 | ordinary frame box around the region, @code{shaded}, which shades the region, | |
2857 | and @code{leftbar}, which places a line at the left side. The environments | |
2858 | allow a break at their start (the @code{\\FrameCommand} enables creation of a | |
2859 | title that is “attached” to the environment); breaks are also allowed in the | |
2860 | course of the framed/shaded matter. There is also a command | |
2861 | @code{\\MakeFramed} to make your own framed-style environments.") | |
2862 | ;; The header states: "These macros may be freely transmitted, reproduced, | |
2863 | ;; or modified for any purpose provided that this notice is left intact." | |
2864 | (license (license:fsf-free "file://framed.sty")))) | |
2865 | ||
588b5e96 RW |
2866 | (define-public texlive-latex-g-brief |
2867 | (package | |
2868 | (name "texlive-latex-g-brief") | |
2869 | (version (number->string %texlive-revision)) | |
2870 | (source (origin | |
2871 | (method svn-fetch) | |
2872 | (uri (texlive-ref "latex" "g-brief")) | |
2873 | (file-name (string-append name "-" version "-checkout")) | |
2874 | (sha256 | |
2875 | (base32 | |
2876 | "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5")))) | |
2877 | (build-system texlive-build-system) | |
2878 | (arguments | |
2879 | '(#:tex-directory "latex/g-brief" | |
2880 | #:phases | |
2881 | (modify-phases %standard-phases | |
2882 | (add-after 'unpack 'remove-generated-file | |
2883 | (lambda _ | |
2884 | (delete-file "g-brief.drv") | |
2885 | #t))))) | |
b8d8806b | 2886 | (home-page "https://www.ctan.org/pkg/g-brief") |
588b5e96 RW |
2887 | (synopsis "Letter document class") |
2888 | (description | |
2889 | "This package is designed for formatting formless letters in German; it | |
2890 | can also be used for English (by those who can read the documentation). There | |
2891 | are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an | |
2892 | \"old\" and a \"new\" version of g-brief.") | |
2893 | (license license:lppl))) | |
2894 | ||
9b4d5c09 RW |
2895 | (define-public texlive-latex-galois |
2896 | (package | |
2897 | (name "texlive-latex-galois") | |
2898 | (version (number->string %texlive-revision)) | |
2899 | (source (origin | |
2900 | (method svn-fetch) | |
2901 | (uri (texlive-ref "latex" "galois")) | |
2902 | (file-name (string-append name "-" version "-checkout")) | |
2903 | (sha256 | |
2904 | (base32 | |
2905 | "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h")))) | |
2906 | (build-system texlive-build-system) | |
2907 | (arguments '(#:tex-directory "latex/galois")) | |
b8d8806b | 2908 | (home-page "https://www.ctan.org/pkg/galois") |
9b4d5c09 RW |
2909 | (synopsis "Typeset Galois connections") |
2910 | (description | |
2911 | "The package deals with connections in two-dimensional style, optionally | |
2912 | in colour.") | |
2913 | (license license:lppl))) | |
2914 | ||
5f691e2e RW |
2915 | (define-public texlive-latex-gcite |
2916 | (package | |
2917 | (name "texlive-latex-gcite") | |
2918 | (version (number->string %texlive-revision)) | |
2919 | (source (origin | |
2920 | (method svn-fetch) | |
2921 | (uri (texlive-ref "latex" "gcite")) | |
2922 | (file-name (string-append name "-" version "-checkout")) | |
2923 | (sha256 | |
2924 | (base32 | |
2925 | "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa")))) | |
2926 | (build-system texlive-build-system) | |
2927 | (arguments '(#:tex-directory "latex/gcite")) | |
b8d8806b | 2928 | (home-page "https://www.ctan.org/pkg/gcite") |
5f691e2e RW |
2929 | (synopsis "Citations in a reader-friendly style") |
2930 | (description | |
2931 | "The package allows citations in the German style, which is considered by | |
2932 | many to be particularly reader-friendly. The citation provides a small amount | |
2933 | of bibliographic information in a footnote on the page where each citation is | |
2934 | made. It combines a desire to eliminate unnecessary page-turning with the | |
2935 | look-up efficiency afforded by numeric citations. The package makes use of | |
2936 | BibLaTeX, and is considered experimental.") | |
2937 | (license license:lppl1.3+))) | |
2938 | ||
f47d1a52 RW |
2939 | (define-public texlive-latex-geometry |
2940 | (package | |
2941 | (name "texlive-latex-geometry") | |
2942 | (version (number->string %texlive-revision)) | |
2943 | (source (origin | |
2944 | (method svn-fetch) | |
2945 | (uri (texlive-ref "latex" "geometry")) | |
2946 | (file-name (string-append name "-" version "-checkout")) | |
2947 | (sha256 | |
2948 | (base32 | |
d4d9a1ec | 2949 | "0yw6bjfgsli3s1dldsgb7mkr7lnk329cgdjbgs8z2xn59pmmdsn4")))) |
f47d1a52 RW |
2950 | (build-system texlive-build-system) |
2951 | (arguments '(#:tex-directory "latex/geometry")) | |
b8d8806b | 2952 | (home-page "https://www.ctan.org/pkg/geometry") |
f47d1a52 RW |
2953 | (synopsis "Flexible and complete interface to document dimensions") |
2954 | (description | |
2955 | "This package provides an easy and flexible user interface to customize | |
2956 | page layout, implementing auto-centering and auto-balancing mechanisms so that | |
2957 | the users have only to give the least description for the page layout. The | |
2958 | package knows about all the standard paper sizes, so that the user need not | |
2959 | know what the nominal \"real\" dimensions of the paper are, just its standard | |
2960 | name (such as a4, letter, etc.). An important feature is the package's | |
2961 | ability to communicate the paper size it's set up to the output.") | |
2962 | (license license:lppl))) | |
2963 | ||
d48091be RW |
2964 | (define-public texlive-latex-mdwtools |
2965 | (package | |
2966 | (name "texlive-latex-mdwtools") | |
2967 | (version (number->string %texlive-revision)) | |
2968 | (source (origin | |
2969 | (method svn-fetch) | |
2970 | (uri (texlive-ref "latex" "mdwtools")) | |
2971 | (file-name (string-append name "-" version "-checkout")) | |
2972 | (sha256 | |
2973 | (base32 | |
2974 | "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg")))) | |
2975 | (build-system texlive-build-system) | |
2976 | (arguments '(#:tex-directory "latex/mdwtools")) | |
b8d8806b | 2977 | (home-page "https://www.ctan.org/pkg/mdwtools") |
d48091be RW |
2978 | (synopsis "Miscellaneous tools by Mark Wooding") |
2979 | (description | |
2980 | "This collection of tools includes: @code{atsupport} for short commands | |
fb5dfa86 RW |
2981 | starting with @code{@@}, macros to sanitize the OT1 encoding of the |
2982 | @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support; | |
d48091be RW |
2983 | @code{mathenv} for various alignment in maths; list handling; @code{mdwmath} |
2984 | which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and | |
2985 | array environments; verbatim handling; and syntax diagrams.") | |
2986 | (license license:gpl3+))) | |
2987 | ||
80bf1f21 RW |
2988 | (define-public texlive-latex-polyglossia |
2989 | (package | |
2990 | (name "texlive-latex-polyglossia") | |
2991 | (version (number->string %texlive-revision)) | |
2992 | (source (origin | |
2993 | (method svn-fetch) | |
2994 | (uri (texlive-ref "latex" "polyglossia")) | |
2995 | (file-name (string-append name "-" version "-checkout")) | |
2996 | (sha256 | |
2997 | (base32 | |
d4d9a1ec | 2998 | "03ma58z3ypsbp7zgkzb1ylpn2ygr27cxzkf042ns0rif4g8s491f")))) |
80bf1f21 RW |
2999 | (build-system texlive-build-system) |
3000 | (arguments '(#:tex-directory "latex/polyglossia")) | |
b8d8806b | 3001 | (home-page "https://www.ctan.org/pkg/polyglossia") |
80bf1f21 RW |
3002 | (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX") |
3003 | (description | |
3004 | "This package provides a complete Babel replacement for users of LuaLaTeX | |
3005 | and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.") | |
3006 | (license license:lppl1.3+))) | |
3007 | ||
84f8035a RW |
3008 | (define-public texlive-latex-supertabular |
3009 | (package | |
3010 | (name "texlive-latex-supertabular") | |
3011 | (version (number->string %texlive-revision)) | |
3012 | (source (origin | |
3013 | (method svn-fetch) | |
3014 | (uri (texlive-ref "latex" "supertabular")) | |
3015 | (file-name (string-append name "-" version "-checkout")) | |
3016 | (sha256 | |
3017 | (base32 | |
3018 | "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3")))) | |
3019 | (build-system texlive-build-system) | |
3020 | (arguments '(#:tex-directory "latex/supertabular")) | |
b8d8806b | 3021 | (home-page "https://www.ctan.org/pkg/supertabular") |
84f8035a RW |
3022 | (synopsis "Multi-page tables package") |
3023 | (description | |
3024 | "This package was a predecessor of @code{longtable}; the newer | |
3025 | package (designed on quite different principles) is easier to use and more | |
3026 | flexible, in many cases, but supertabular retains its usefulness in a few | |
3027 | situations where longtable has problems.") | |
3028 | (license license:lppl1.3+))) | |
3029 | ||
a0aa6b59 RW |
3030 | (define-public texlive-tex-texinfo |
3031 | (package | |
3032 | (name "texlive-tex-texinfo") | |
3033 | (version (number->string %texlive-revision)) | |
3034 | (source (origin | |
3035 | (method svn-fetch) | |
3036 | (uri (svn-reference | |
3037 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3038 | %texlive-tag "/Master/texmf-dist/" | |
3039 | "/tex/texinfo")) | |
3040 | (revision %texlive-revision))) | |
88ae1921 | 3041 | (file-name (string-append name "-" version "-checkout")) |
a0aa6b59 RW |
3042 | (sha256 |
3043 | (base32 | |
d4d9a1ec | 3044 | "06cf821y1j7jdg93pb41ayigrfwgn0y49d7w1025zlijjxi6bvjp")))) |
a0aa6b59 RW |
3045 | (build-system trivial-build-system) |
3046 | (arguments | |
3047 | `(#:modules ((guix build utils)) | |
3048 | #:builder | |
3049 | (begin | |
3050 | (use-modules (guix build utils)) | |
3051 | (let ((target (string-append (assoc-ref %outputs "out") | |
3052 | "/share/texmf-dist/tex/texinfo"))) | |
3053 | (mkdir-p target) | |
3054 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3055 | #t)))) | |
b8d8806b | 3056 | (home-page "https://www.ctan.org/pkg/texinfo") |
a0aa6b59 RW |
3057 | (synopsis "TeX macros to handle Texinfo files") |
3058 | (description | |
3059 | "Texinfo is the preferred format for documentation in the GNU project; | |
3060 | the format may be used to produce online or printed output from a single | |
3061 | source. The Texinfo macros may be used to produce printable output using TeX; | |
3062 | other programs in the distribution offer online interactive use (with | |
3063 | hypertext linkages in some cases).") | |
3064 | (license license:gpl3+))) | |
3065 | ||
0de81b09 RW |
3066 | (define-public texlive-latex-upquote |
3067 | (package | |
3068 | (name "texlive-latex-upquote") | |
3069 | (version (number->string %texlive-revision)) | |
3070 | (source (origin | |
3071 | (method svn-fetch) | |
3072 | (uri (texlive-ref "latex" "upquote")) | |
3073 | (file-name (string-append name "-" version "-checkout")) | |
3074 | (sha256 | |
3075 | (base32 | |
3076 | "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp")))) | |
3077 | (build-system texlive-build-system) | |
3078 | (arguments '(#:tex-directory "latex/upquote")) | |
b8d8806b | 3079 | (home-page "https://www.ctan.org/pkg/upquote") |
0de81b09 RW |
3080 | (synopsis "Show \"realistic\" quotes in verbatim") |
3081 | (description | |
3082 | "Typewriter-style fonts are best for program listings, but Computer | |
3083 | Modern Typewriter prints @code{`} and @code{'} as bent opening and closing | |
3084 | single quotes. Other fonts, and most programming languages, print @code{`} as | |
3085 | a grave accent and @code{'} upright; @code{'} is used both to open and to | |
3086 | close quoted strings. The package switches the typewriter font to Computer | |
3087 | Modern Typewriter in OT1 encoding, and modifies the behaviour of | |
3088 | @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print | |
3089 | in the expected way. It does this regardless of other fonts or encodings in | |
3090 | use, so long as the package is loaded after the other fonts were. The package | |
3091 | does not affect @code{\\tt}, @code{\\texttt}, etc.") | |
3092 | (license license:lppl1.2+))) | |
3093 | ||
bda61541 RW |
3094 | (define-public texlive-latex-anysize |
3095 | (package | |
3096 | (name "texlive-latex-anysize") | |
3097 | (version (number->string %texlive-revision)) | |
3098 | (source (origin | |
3099 | (method svn-fetch) | |
3100 | (uri (svn-reference | |
3101 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3102 | %texlive-tag "/Master/texmf-dist/" | |
3103 | "/tex/latex/anysize")) | |
3104 | (revision %texlive-revision))) | |
de4eb4d1 | 3105 | (file-name (string-append name "-" version "-checkout")) |
bda61541 RW |
3106 | (sha256 |
3107 | (base32 | |
3108 | "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb")))) | |
3109 | (build-system trivial-build-system) | |
3110 | (arguments | |
3111 | `(#:modules ((guix build utils)) | |
3112 | #:builder | |
3113 | (begin | |
3114 | (use-modules (guix build utils)) | |
3115 | (let ((target (string-append (assoc-ref %outputs "out") | |
3116 | "/share/texmf-dist/tex/latex/anysize"))) | |
3117 | (mkdir-p target) | |
3118 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3119 | #t)))) | |
b8d8806b | 3120 | (home-page "https://www.ctan.org/pkg/anysize") |
bda61541 RW |
3121 | (synopsis "Simple package to set up document margins") |
3122 | (description | |
3123 | "This is a simple package to set up document margins. This package is | |
3124 | considered obsolete; alternatives are the @code{typearea} package from the | |
3125 | @code{koma-script} bundle, or the @code{geometry} package.") | |
3126 | (license license:public-domain))) | |
3127 | ||
1d3be84e RW |
3128 | (define-public texlive-latex-appendix |
3129 | (package | |
3130 | (name "texlive-latex-appendix") | |
3131 | (version (number->string %texlive-revision)) | |
3132 | (source (origin | |
3133 | (method svn-fetch) | |
3134 | (uri (texlive-ref "latex" "appendix")) | |
72d5adf4 | 3135 | (file-name (string-append name "-" version "-checkout")) |
1d3be84e RW |
3136 | (sha256 |
3137 | (base32 | |
3138 | "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg")))) | |
3139 | (build-system texlive-build-system) | |
3140 | (arguments '(#:tex-directory "latex/appendix")) | |
b8d8806b | 3141 | (home-page "https://www.ctan.org/pkg/appendix") |
1d3be84e RW |
3142 | (synopsis "Extra control of appendices") |
3143 | (description | |
3144 | "The appendix package provides various ways of formatting the titles of | |
3145 | appendices. Also (sub)appendices environments are provided that can be used, | |
3146 | for example, for per chapter/section appendices. An @code{appendices} | |
3147 | environment is provided which can be used instead of the @code{\\appendix} | |
3148 | command.") | |
3149 | (license license:lppl))) | |
3150 | ||
b92ac281 RW |
3151 | (define-public texlive-latex-changebar |
3152 | (package | |
3153 | (name "texlive-latex-changebar") | |
3154 | (version (number->string %texlive-revision)) | |
3155 | (source (origin | |
3156 | (method svn-fetch) | |
3157 | (uri (texlive-ref "latex" "changebar")) | |
af8aa105 | 3158 | (file-name (string-append name "-" version "-checkout")) |
b92ac281 RW |
3159 | (sha256 |
3160 | (base32 | |
d4d9a1ec | 3161 | "05x15ilynqrl448h8l6qiraygamdldlngz89a2bw7kg74fym14ch")))) |
b92ac281 RW |
3162 | (build-system texlive-build-system) |
3163 | (arguments '(#:tex-directory "latex/changebar")) | |
b8d8806b | 3164 | (home-page "https://www.ctan.org/pkg/changebar") |
b92ac281 RW |
3165 | (synopsis "Generate changebars in LaTeX documents") |
3166 | (description | |
3167 | "Identify areas of text to be marked with changebars with the | |
3168 | @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The | |
3169 | package uses 'drivers' to place the bars; the available drivers can work with | |
3170 | @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI | |
3171 | drivers, and VTeX and pdfTeX.") | |
3172 | (license license:lppl))) | |
3173 | ||
fedd77c1 RW |
3174 | (define-public texlive-latex-cmap |
3175 | (package | |
3176 | (name "texlive-latex-cmap") | |
3177 | (version (number->string %texlive-revision)) | |
3178 | (source (origin | |
3179 | (method svn-fetch) | |
3180 | (uri (svn-reference | |
3181 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3182 | %texlive-tag "/Master/texmf-dist/" | |
3183 | "/tex/latex/cmap")) | |
3184 | (revision %texlive-revision))) | |
3185 | (file-name (string-append name "-" version "-checkout")) | |
3186 | (sha256 | |
3187 | (base32 | |
3188 | "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg")))) | |
3189 | (build-system trivial-build-system) | |
3190 | (arguments | |
3191 | `(#:modules ((guix build utils)) | |
3192 | #:builder | |
3193 | (begin | |
3194 | (use-modules (guix build utils)) | |
3195 | (let ((target (string-append (assoc-ref %outputs "out") | |
3196 | "/share/texmf-dist/tex/latex/cmap"))) | |
3197 | (mkdir-p target) | |
3198 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3199 | #t)))) | |
3200 | (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\ | |
3201 | Master/texmf-dist/tex/latex/cmap/") | |
3202 | (synopsis "CMap support for PDF files") | |
3203 | (description | |
3204 | "This package embeds CMap tables into PDF files to make search and | |
3205 | copy-and-paste functions work properly.") | |
3206 | (license license:lppl))) | |
3207 | ||
e003a5f0 RW |
3208 | (define-public texlive-latex-colortbl |
3209 | (package | |
3210 | (name "texlive-latex-colortbl") | |
3211 | (version (number->string %texlive-revision)) | |
3212 | (source (origin | |
3213 | (method svn-fetch) | |
3214 | (uri (texlive-ref "latex" "colortbl")) | |
4439c1de | 3215 | (file-name (string-append name "-" version "-checkout")) |
e003a5f0 RW |
3216 | (sha256 |
3217 | (base32 | |
3218 | "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8")))) | |
3219 | (build-system texlive-build-system) | |
3220 | (arguments '(#:tex-directory "latex/colortbl")) | |
b8d8806b | 3221 | (home-page "https://www.ctan.org/pkg/colortbl") |
e003a5f0 RW |
3222 | (synopsis "Add colour to LaTeX tables") |
3223 | (description | |
3224 | "This package allows rows, columns, and even individual cells in LaTeX | |
3225 | tables to be coloured.") | |
3226 | (license license:lppl))) | |
3227 | ||
36ce05ff RW |
3228 | (define-public texlive-latex-fancybox |
3229 | (package | |
3230 | (name "texlive-latex-fancybox") | |
3231 | (version (number->string %texlive-revision)) | |
3232 | (source (origin | |
3233 | (method svn-fetch) | |
3234 | (uri (svn-reference | |
3235 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3236 | %texlive-tag "/Master/texmf-dist/" | |
3237 | "/tex/latex/fancybox")) | |
3238 | (revision %texlive-revision))) | |
62ee46b9 | 3239 | (file-name (string-append name "-" version "-checkout")) |
36ce05ff RW |
3240 | (sha256 |
3241 | (base32 | |
3242 | "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w")))) | |
3243 | (build-system trivial-build-system) | |
3244 | (arguments | |
3245 | `(#:modules ((guix build utils)) | |
3246 | #:builder | |
3247 | (begin | |
3248 | (use-modules (guix build utils)) | |
3249 | (let ((target (string-append (assoc-ref %outputs "out") | |
3250 | "/share/texmf-dist/tex/latex/fancybox"))) | |
3251 | (mkdir-p target) | |
3252 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3253 | #t)))) | |
b8d8806b | 3254 | (home-page "https://www.ctan.org/pkg/fancybox") |
36ce05ff RW |
3255 | (synopsis "Variants of \\fbox and other games with boxes") |
3256 | (description | |
3257 | "This package provides variants of @code{\\fbox}: @code{\\shadowbox}, | |
3258 | @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for | |
3259 | using box macros and flexible verbatim macros. You can box mathematics, | |
3260 | floats, center, flushleft, and flushright, lists, and pages.") | |
3261 | (license license:lppl1.2+))) | |
3262 | ||
20282111 RW |
3263 | (define-public texlive-latex-fancyhdr |
3264 | (package | |
3265 | (name "texlive-latex-fancyhdr") | |
3266 | (version (number->string %texlive-revision)) | |
3267 | (source (origin | |
3268 | (method svn-fetch) | |
3269 | (uri (svn-reference | |
3270 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3271 | %texlive-tag "/Master/texmf-dist/" | |
3272 | "/tex/latex/fancyhdr")) | |
3273 | (revision %texlive-revision))) | |
e89d5cf4 | 3274 | (file-name (string-append name "-" version "-checkout")) |
20282111 RW |
3275 | (sha256 |
3276 | (base32 | |
d4d9a1ec | 3277 | "1xsnzx7vgdfh9zh2m7bjz6bgdpxsgb1kyc19p50vhs34x5nbgsnr")))) |
20282111 RW |
3278 | (build-system trivial-build-system) |
3279 | (arguments | |
3280 | `(#:modules ((guix build utils)) | |
3281 | #:builder | |
3282 | (begin | |
3283 | (use-modules (guix build utils)) | |
3284 | (let ((target (string-append (assoc-ref %outputs "out") | |
3285 | "/share/texmf-dist/tex/latex/fancyhdr"))) | |
3286 | (mkdir-p target) | |
3287 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3288 | #t)))) | |
b8d8806b | 3289 | (home-page "https://www.ctan.org/pkg/fancyhdr") |
20282111 RW |
3290 | (synopsis "Extensive control of page headers and footers in LaTeX2e") |
3291 | (description | |
3292 | "The package provides extensive facilities, both for constructing headers | |
3293 | and footers, and for controlling their use (for example, at times when LaTeX | |
3294 | would automatically change the heading style in use).") | |
3295 | (license license:lppl))) | |
3296 | ||
df2b9bb4 RW |
3297 | (define-public texlive-latex-float |
3298 | (package | |
3299 | (name "texlive-latex-float") | |
3300 | (version (number->string %texlive-revision)) | |
3301 | (source (origin | |
3302 | (method svn-fetch) | |
3303 | (uri (texlive-ref "latex" "float")) | |
4fd0a591 | 3304 | (file-name (string-append name "-" version "-checkout")) |
df2b9bb4 RW |
3305 | (sha256 |
3306 | (base32 | |
3307 | "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq")))) | |
3308 | (build-system texlive-build-system) | |
3309 | (arguments '(#:tex-directory "latex/float")) | |
b8d8806b | 3310 | (home-page "https://www.ctan.org/pkg/float") |
df2b9bb4 RW |
3311 | (synopsis "Improved interface for floating objects") |
3312 | (description | |
3313 | "This package improves the interface for defining floating objects such | |
3314 | as figures and tables. It introduces the boxed float, the ruled float and the | |
3315 | plaintop float. You can define your own floats and improve the behaviour of | |
3316 | the old ones. The package also provides the @code{H} float modifier option of | |
3317 | the obsolete @code{here} package. You can select this as automatic default | |
3318 | with @code{\\floatplacement{figure}{H}}.") | |
3319 | (license license:lppl))) | |
3320 | ||
3921bc7c RW |
3321 | (define-public texlive-latex-footmisc |
3322 | (package | |
3323 | (name "texlive-latex-footmisc") | |
3324 | (version (number->string %texlive-revision)) | |
3325 | (source (origin | |
3326 | (method svn-fetch) | |
3327 | (uri (texlive-ref "latex" "footmisc")) | |
dae1d9e4 | 3328 | (file-name (string-append name "-" version "-checkout")) |
3921bc7c RW |
3329 | (sha256 |
3330 | (base32 | |
3331 | "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs")))) | |
3332 | (build-system texlive-build-system) | |
3333 | (arguments '(#:tex-directory "latex/footmisc")) | |
b8d8806b | 3334 | (home-page "https://www.ctan.org/pkg/footmisc") |
3921bc7c RW |
3335 | (synopsis "Range of footnote options") |
3336 | (description | |
3337 | "This is a collection of ways to change the typesetting of footnotes. | |
3338 | The package provides means of changing the layout of the footnotes themselves, | |
3339 | a way to number footnotes per page, to make footnotes disappear in a | |
3340 | \"moving\" argument, and to deal with multiple references to footnotes from | |
3341 | the same place. The package also has a range of techniques for labelling | |
3342 | footnotes with symbols rather than numbers.") | |
3343 | (license license:lppl1.3+))) | |
3344 | ||
b2bc1daf RW |
3345 | (define-public texlive-latex-listings |
3346 | (package | |
3347 | (name "texlive-latex-listings") | |
3348 | (version (number->string %texlive-revision)) | |
3349 | (source (origin | |
3350 | (method svn-fetch) | |
3351 | (uri (texlive-ref "latex" "listings")) | |
aeb135e3 | 3352 | (file-name (string-append name "-" version "-checkout")) |
b2bc1daf RW |
3353 | (sha256 |
3354 | (base32 | |
3355 | "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf")))) | |
3356 | (build-system texlive-build-system) | |
3357 | (arguments | |
3358 | '(#:tex-directory "latex/listings" | |
3359 | #:build-targets '("listings.ins"))) | |
b8d8806b | 3360 | (home-page "https://www.ctan.org/pkg/listings") |
b2bc1daf RW |
3361 | (synopsis "Typeset source code listings using LaTeX") |
3362 | (description | |
3363 | "The package enables the user to typeset programs (programming code) | |
3364 | within LaTeX; the source code is read directly by TeX---no front-end processor | |
3365 | is needed. Keywords, comments and strings can be typeset using different | |
3366 | styles. Support for @code{hyperref} is provided.") | |
3367 | (license license:lppl1.3+))) | |
3368 | ||
02fd07b3 RW |
3369 | (define-public texlive-latex-jknapltx |
3370 | (package | |
3371 | (name "texlive-latex-jknapltx") | |
3372 | (version (number->string %texlive-revision)) | |
3373 | (source (origin | |
3374 | (method svn-fetch) | |
3375 | (uri (svn-reference | |
3376 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3377 | %texlive-tag "/Master/texmf-dist/" | |
3378 | "/tex/latex/jknapltx")) | |
3379 | (revision %texlive-revision))) | |
aa499191 | 3380 | (file-name (string-append name "-" version "-checkout")) |
02fd07b3 RW |
3381 | (sha256 |
3382 | (base32 | |
3383 | "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9")))) | |
3384 | (build-system trivial-build-system) | |
3385 | (arguments | |
3386 | `(#:modules ((guix build utils)) | |
3387 | #:builder | |
3388 | (begin | |
3389 | (use-modules (guix build utils)) | |
3390 | (let ((target (string-append (assoc-ref %outputs "out") | |
3391 | "/share/texmf-dist/tex/latex/jknapltx"))) | |
3392 | (mkdir-p target) | |
3393 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3394 | #t)))) | |
b8d8806b | 3395 | (home-page "https://www.ctan.org/pkg/jknappen") |
02fd07b3 RW |
3396 | (synopsis "Miscellaneous packages by Joerg Knappen") |
3397 | (description | |
3398 | "This package provides miscellaneous macros by Joerg Knappen, including: | |
3399 | represent counters in greek; Maxwell's non-commutative division; | |
3400 | @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are | |
3401 | @code{inputenc} definition files that allow verbatim input in the respective | |
3402 | ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths; | |
3403 | extra alignments for @code{\\parboxes}; swap Roman and Sans fonts; | |
3404 | transliterate semitic languages; patches to make (La)TeX formulae embeddable | |
3405 | in SGML; use maths minus in text as appropriate; simple Young tableaux.") | |
3406 | (license license:gpl2))) | |
3407 | ||
83c830d1 RW |
3408 | (define-public texlive-fonts-ec |
3409 | (package | |
3410 | (name "texlive-fonts-ec") | |
3411 | (version (number->string %texlive-revision)) | |
3412 | (source (origin | |
3413 | (method svn-fetch) | |
3414 | (uri (svn-reference | |
3415 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3416 | %texlive-tag "/Master/texmf-dist/" | |
3417 | "/fonts/source/jknappen/ec/")) | |
3418 | (revision %texlive-revision))) | |
ca816eb3 | 3419 | (file-name (string-append name "-" version "-checkout")) |
83c830d1 RW |
3420 | (sha256 |
3421 | (base32 | |
3422 | "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4")))) | |
3423 | (build-system gnu-build-system) | |
3424 | (arguments | |
3425 | `(#:modules ((guix build gnu-build-system) | |
3426 | (guix build utils) | |
3427 | (srfi srfi-1) | |
3428 | (srfi srfi-26)) | |
3429 | #:tests? #f ; no tests | |
3430 | #:phases | |
3431 | (modify-phases %standard-phases | |
3432 | (delete 'configure) | |
3433 | (replace 'build | |
3434 | (lambda* (#:key inputs #:allow-other-keys) | |
3435 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
3436 | ;; Tell mf where to find mf.base | |
3437 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
3438 | ;; Tell mf where to look for source files | |
3439 | (setenv "MFINPUTS" | |
3440 | (string-append (getcwd) ":" | |
3441 | mf "/share/texmf-dist/metafont/base:" | |
3442 | (assoc-ref inputs "texlive-fonts-cm") | |
3443 | "/share/texmf-dist/fonts/source/public/cm"))) | |
3444 | (mkdir "build") | |
c4fc86e4 MW |
3445 | (for-each (lambda (font) |
3446 | (format #t "building font ~a\n" font) | |
3447 | (invoke "mf" "-progname=mf" | |
3448 | "-output-directory=build" | |
3449 | (string-append "\\" | |
3450 | "mode:=ljfour; " | |
3451 | "mag:=1; " | |
3452 | "batchmode; " | |
3453 | "input " (basename font ".mf")))) | |
3454 | (find-files "." "[0-9]+\\.mf$")) | |
3455 | #t)) | |
83c830d1 RW |
3456 | (replace 'install |
3457 | (lambda* (#:key outputs #:allow-other-keys) | |
3458 | (let* ((out (assoc-ref outputs "out")) | |
3459 | (tfm (string-append | |
3460 | out "/share/texmf-dist/fonts/tfm/jknappen/ec")) | |
3461 | (mf (string-append | |
3462 | out "/share/texmf-dist/fonts/source/jknappen/ec"))) | |
3463 | (for-each (cut install-file <> tfm) | |
3464 | (find-files "build" "\\.*")) | |
3465 | (for-each (cut install-file <> mf) | |
3466 | (find-files "." "\\.mf")) | |
3467 | #t)))))) | |
3468 | (native-inputs | |
3469 | `(("texlive-bin" ,texlive-bin) | |
3470 | ("texlive-metafont-base" ,texlive-metafont-base) | |
3471 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
b8d8806b | 3472 | (home-page "https://www.ctan.org/pkg/ec") |
83c830d1 RW |
3473 | (synopsis "Computer modern fonts in T1 and TS1 encodings") |
3474 | (description | |
3475 | "The EC fonts are European Computer Modern Fonts, supporting the complete | |
3476 | LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland. | |
3477 | These fonts are intended to be stable with no changes being made to the tfm | |
3478 | files. The set also contains a Text Companion Symbol font, called @code{tc}, | |
3479 | featuring many useful characters needed in text typesetting, for example | |
3480 | oldstyle digits, currency symbols (including the newly created Euro symbol), | |
3481 | the permille sign, copyright, trade mark and servicemark as well as a copyleft | |
3482 | sign, and many others. Recent releases of LaTeX2e support the EC fonts. The | |
3483 | EC fonts supersede the preliminary version released as the DC fonts. The | |
3484 | fonts are available in (traced) Adobe Type 1 format, as part of the | |
3485 | @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1 | |
3486 | set, Latin Modern, is not actually a direct development of the EC set, and | |
3487 | differs from the EC in a number of particulars.") | |
3488 | (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\ | |
3489 | texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt")))) | |
3490 | ||
f45a5520 RW |
3491 | (define-public texlive-fonts-rsfs |
3492 | (package | |
3493 | (name "texlive-fonts-rsfs") | |
3494 | (version (number->string %texlive-revision)) | |
3495 | (source (origin | |
3496 | (method svn-fetch) | |
3497 | (uri (svn-reference | |
3498 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3499 | %texlive-tag "/Master/texmf-dist/" | |
3500 | "/fonts/source/public/rsfs/")) | |
3501 | (revision %texlive-revision))) | |
e26de9c9 | 3502 | (file-name (string-append name "-" version "-checkout")) |
f45a5520 RW |
3503 | (sha256 |
3504 | (base32 | |
3505 | "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h")))) | |
3506 | (build-system gnu-build-system) | |
3507 | (arguments | |
3508 | `(#:modules ((guix build gnu-build-system) | |
3509 | (guix build utils) | |
3510 | (srfi srfi-1) | |
3511 | (srfi srfi-26)) | |
3512 | #:tests? #f ; no tests | |
3513 | #:phases | |
3514 | (modify-phases %standard-phases | |
3515 | (delete 'configure) | |
3516 | (replace 'build | |
3517 | (lambda* (#:key inputs #:allow-other-keys) | |
3518 | (let ((mf (assoc-ref inputs "texlive-metafont-base"))) | |
3519 | ;; Tell mf where to find mf.base | |
3520 | (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) | |
3521 | ;; Tell mf where to look for source files | |
3522 | (setenv "MFINPUTS" | |
3523 | (string-append (getcwd) ":" | |
3524 | mf "/share/texmf-dist/metafont/base:" | |
3525 | (assoc-ref inputs "texlive-fonts-cm") | |
3526 | "/share/texmf-dist/fonts/source/public/cm"))) | |
3527 | (mkdir "build") | |
d8ac82c2 MW |
3528 | (for-each (lambda (font) |
3529 | (format #t "building font ~a\n" font) | |
3530 | (invoke "mf" "-progname=mf" | |
3531 | "-output-directory=build" | |
3532 | (string-append "\\" | |
3533 | "mode:=ljfour; " | |
3534 | "mag:=1; " | |
3535 | "batchmode; " | |
3536 | "input " (basename font ".mf")))) | |
3537 | (find-files "." "[0-9]+\\.mf$")) | |
3538 | #t)) | |
f45a5520 RW |
3539 | (replace 'install |
3540 | (lambda* (#:key outputs #:allow-other-keys) | |
3541 | (let* ((out (assoc-ref outputs "out")) | |
3542 | (tfm (string-append | |
3543 | out "/share/texmf-dist/fonts/tfm/public/rsfs")) | |
3544 | (mf (string-append | |
3545 | out "/share/texmf-dist/fonts/source/public/rsfs"))) | |
3546 | (for-each (cut install-file <> tfm) | |
3547 | (find-files "build" "\\.*")) | |
3548 | (for-each (cut install-file <> mf) | |
3549 | (find-files "." "\\.mf")) | |
3550 | #t)))))) | |
3551 | (native-inputs | |
3552 | `(("texlive-bin" ,texlive-bin) | |
3553 | ("texlive-metafont-base" ,texlive-metafont-base) | |
3554 | ("texlive-fonts-cm" ,texlive-fonts-cm))) | |
b8d8806b | 3555 | (home-page "https://www.ctan.org/pkg/rsfs") |
f45a5520 RW |
3556 | (synopsis "Ralph Smith's Formal Script font") |
3557 | (description | |
3558 | "The fonts provide uppercase formal script letters for use as symbols in | |
3559 | scientific and mathematical typesetting (in contrast to the informal script | |
3560 | fonts such as that used for the calligraphic symbols in the TeX maths symbol | |
3561 | font). The fonts are provided as Metafont source, and as derived Adobe Type 1 | |
3562 | format. LaTeX support, for using these fonts in mathematics, is available via | |
3563 | one of the packages @code{calrsfs} and @code{mathrsfs}.") | |
3564 | (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README")))) | |
3565 | ||
1562763c RW |
3566 | (define-public texlive-latex-eso-pic |
3567 | (package | |
3568 | (name "texlive-latex-eso-pic") | |
3569 | (version (number->string %texlive-revision)) | |
3570 | (source (origin | |
3571 | (method svn-fetch) | |
3572 | (uri (texlive-ref "latex" "eso-pic")) | |
2678a63b | 3573 | (file-name (string-append name "-" version "-checkout")) |
1562763c RW |
3574 | (sha256 |
3575 | (base32 | |
3576 | "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z")))) | |
3577 | (build-system texlive-build-system) | |
3578 | (arguments '(#:tex-directory "latex/eso-pic")) | |
b8d8806b | 3579 | (home-page "https://www.ctan.org/pkg/eso-pic") |
1562763c RW |
3580 | (synopsis "Add picture commands (or backgrounds) to every page") |
3581 | (description | |
3582 | "The package adds one or more user commands to LaTeX's @code{shipout} | |
3583 | routine, which may be used to place the output at fixed positions. The | |
3584 | @code{grid} option may be used to find the correct places.") | |
3585 | (license license:lppl1.3+))) | |
3586 | ||
ae3779d5 RW |
3587 | (define-public texlive-latex-eepic |
3588 | (package | |
3589 | (name "texlive-latex-eepic") | |
3590 | (version (number->string %texlive-revision)) | |
3591 | (source (origin | |
3592 | (method svn-fetch) | |
3593 | (uri (svn-reference | |
3594 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3595 | %texlive-tag "/Master/texmf-dist/" | |
3596 | "/tex/latex/eepic")) | |
3597 | (revision %texlive-revision))) | |
84d63643 | 3598 | (file-name (string-append name "-" version "-checkout")) |
ae3779d5 RW |
3599 | (sha256 |
3600 | (base32 | |
3601 | "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw")))) | |
3602 | (build-system trivial-build-system) | |
3603 | (arguments | |
3604 | `(#:modules ((guix build utils)) | |
3605 | #:builder | |
3606 | (begin | |
3607 | (use-modules (guix build utils)) | |
3608 | (let ((target (string-append (assoc-ref %outputs "out") | |
3609 | "/share/texmf-dist/tex/latex/eepic"))) | |
3610 | (mkdir-p target) | |
3611 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3612 | #t)))) | |
b8d8806b | 3613 | (home-page "https://www.ctan.org/pkg/eepic") |
ae3779d5 RW |
3614 | (synopsis "Extensions to epic and the LaTeX drawing tools") |
3615 | (description | |
3616 | "Extensions to @code{epic} and the LaTeX picture drawing environment, | |
3617 | include the drawing of lines at any slope, the drawing of circles in any | |
3618 | radii, and the drawing of dotted and dashed lines much faster with much less | |
3619 | TeX memory, and providing several new commands for drawing ellipses, arcs, | |
3620 | splines, and filled circles and ellipses. The package uses @code{tpic} | |
3621 | @code{\\special} commands.") | |
3622 | (license license:public-domain))) | |
3623 | ||
245f1f31 RW |
3624 | (define-public texlive-latex-enumitem |
3625 | (package | |
3626 | (name "texlive-latex-enumitem") | |
3627 | (version (number->string %texlive-revision)) | |
3628 | (source (origin | |
3629 | (method svn-fetch) | |
3630 | (uri (svn-reference | |
3631 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3632 | %texlive-tag "/Master/texmf-dist/" | |
3633 | "/tex/latex/enumitem")) | |
3634 | (revision %texlive-revision))) | |
3635 | (file-name (string-append name "-" version "-checkout")) | |
3636 | (sha256 | |
3637 | (base32 | |
3638 | "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r")))) | |
3639 | (build-system trivial-build-system) | |
3640 | (arguments | |
3641 | `(#:modules ((guix build utils)) | |
3642 | #:builder | |
3643 | (begin | |
3644 | (use-modules (guix build utils)) | |
3645 | (let ((target (string-append (assoc-ref %outputs "out") | |
3646 | "/share/texmf-dist/tex/latex/enumitem"))) | |
3647 | (mkdir-p target) | |
3648 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3649 | #t)))) | |
b8d8806b | 3650 | (home-page "https://www.ctan.org/pkg/enumitem") |
245f1f31 RW |
3651 | (synopsis "Customize basic list environments") |
3652 | (description | |
3653 | "This package is intended to ease customizing the three basic list | |
3654 | environments: @code{enumerate}, @code{itemize} and @code{description}. It | |
3655 | extends their syntax to allow an optional argument where a set of parameters | |
3656 | in the form @code{key=value} are available, for example: | |
3657 | @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.") | |
3658 | (license license:lppl1.3+))) | |
3659 | ||
ecffeeb5 RW |
3660 | (define-public texlive-latex-multirow |
3661 | (package | |
3662 | (name "texlive-latex-multirow") | |
3663 | (version (number->string %texlive-revision)) | |
3664 | (source (origin | |
3665 | (method svn-fetch) | |
3666 | (uri (texlive-ref "latex" "multirow")) | |
6a919804 | 3667 | (file-name (string-append name "-" version "-checkout")) |
ecffeeb5 RW |
3668 | (sha256 |
3669 | (base32 | |
3670 | "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0")))) | |
3671 | (build-system texlive-build-system) | |
3672 | (arguments '(#:tex-directory "latex/multirow")) | |
b8d8806b | 3673 | (home-page "https://www.ctan.org/pkg/multirow") |
ecffeeb5 RW |
3674 | (synopsis "Create tabular cells spanning multiple rows") |
3675 | (description | |
3676 | "The package provides tools for creating tabular cells spanning multiple | |
3677 | rows. It has a lot of flexibility, including an option for specifying an | |
3678 | entry at the \"natural\" width of its text.") | |
3679 | (license license:lppl1.3+))) | |
3680 | ||
da38b235 RW |
3681 | (define-public texlive-latex-overpic |
3682 | (package | |
3683 | (name "texlive-latex-overpic") | |
3684 | (version (number->string %texlive-revision)) | |
3685 | (source (origin | |
3686 | (method svn-fetch) | |
3687 | (uri (svn-reference | |
3688 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3689 | %texlive-tag "/Master/texmf-dist/" | |
3690 | "/tex/latex/overpic")) | |
3691 | (revision %texlive-revision))) | |
b2aef721 | 3692 | (file-name (string-append name "-" version "-checkout")) |
da38b235 RW |
3693 | (sha256 |
3694 | (base32 | |
d4d9a1ec | 3695 | "1rpx4ibjncj5416rg19v0xjbj3z9avhfdfn2gzp8r8sz9vz25c6g")))) |
da38b235 RW |
3696 | (build-system trivial-build-system) |
3697 | (arguments | |
3698 | `(#:modules ((guix build utils)) | |
3699 | #:builder | |
3700 | (begin | |
3701 | (use-modules (guix build utils)) | |
3702 | (let ((target (string-append (assoc-ref %outputs "out") | |
3703 | "/share/texmf-dist/tex/latex/overpic"))) | |
3704 | (mkdir-p target) | |
3705 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3706 | #t)))) | |
b8d8806b | 3707 | (home-page "https://www.ctan.org/pkg/overpic") |
da38b235 RW |
3708 | (synopsis "Combine LaTeX commands over included graphics") |
3709 | (description | |
3710 | "The @code{overpic} environment is a cross between the LaTeX | |
3711 | @code{picture} environment and the @code{\\includegraphics} command of | |
3712 | @code{graphicx}. The resulting picture environment has the same dimensions as | |
3713 | the included graphic. LaTeX commands can be placed on the graphic at defined | |
3714 | positions; a grid for orientation is available.") | |
3715 | (license license:lppl1.0+))) | |
3716 | ||
e0d307d1 RW |
3717 | (define-public texlive-latex-parskip |
3718 | (package | |
3719 | (name "texlive-latex-parskip") | |
3720 | (version (number->string %texlive-revision)) | |
3721 | (source (origin | |
3722 | (method svn-fetch) | |
3723 | (uri (svn-reference | |
3724 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3725 | %texlive-tag "/Master/texmf-dist/" | |
3726 | "/tex/latex/parskip")) | |
3727 | (revision %texlive-revision))) | |
3728 | (file-name (string-append name "-" version "-checkout")) | |
3729 | (sha256 | |
3730 | (base32 | |
3731 | "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m")))) | |
3732 | (build-system trivial-build-system) | |
3733 | (arguments | |
3734 | `(#:modules ((guix build utils)) | |
3735 | #:builder | |
3736 | (begin | |
3737 | (use-modules (guix build utils)) | |
3738 | (let ((target (string-append (assoc-ref %outputs "out") | |
3739 | "/share/texmf-dist/tex/latex/parskip"))) | |
3740 | (mkdir-p target) | |
3741 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3742 | #t)))) | |
b8d8806b | 3743 | (home-page "https://www.ctan.org/pkg/parskip") |
e0d307d1 RW |
3744 | (synopsis "Layout with zero \\parindent, non-zero \\parskip") |
3745 | (description | |
3746 | "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout | |
3747 | that is untidy; this package (though it is no substitute for a properly | |
3748 | designed class) helps alleviate this untidiness.") | |
3749 | (license license:lppl))) | |
3750 | ||
adc02c70 RW |
3751 | (define-public texlive-latex-pdfpages |
3752 | (package | |
3753 | (name "texlive-latex-pdfpages") | |
3754 | (version (number->string %texlive-revision)) | |
3755 | (source (origin | |
3756 | (method svn-fetch) | |
3757 | (uri (texlive-ref "latex" "pdfpages")) | |
7372ce18 | 3758 | (file-name (string-append name "-" version "-checkout")) |
adc02c70 RW |
3759 | (sha256 |
3760 | (base32 | |
d4d9a1ec | 3761 | "0s4izcah7im67889qz4d26pcfpasmm35sj1rw4ragkkdk3rlbbbd")))) |
adc02c70 RW |
3762 | (build-system texlive-build-system) |
3763 | (arguments '(#:tex-directory "latex/pdfpages")) | |
b8d8806b | 3764 | (home-page "https://www.ctan.org/pkg/pdfpages") |
adc02c70 RW |
3765 | (synopsis "Include PDF documents in LaTeX") |
3766 | (description | |
3767 | "This package simplifies the inclusion of external multi-page PDF | |
3768 | documents in LaTeX documents. Pages may be freely selected and it is possible | |
3769 | to put several logical pages onto each sheet of paper. Furthermore a lot of | |
3770 | hypertext features like hyperlinks and article threads are provided. The | |
3771 | package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to | |
3772 | use this package to insert PostScript files, in addition to PDF files.") | |
3773 | (license license:lppl1.3+))) | |
3774 | ||
d8fef6ea RW |
3775 | (define-public texlive-fonts-stmaryrd |
3776 | (package | |
3777 | (name "texlive-fonts-stmaryrd") | |
3778 | (version (number->string %texlive-revision)) | |
3779 | (source (origin | |
3780 | (method svn-fetch) | |
3781 | (uri (texlive-ref "fonts" "stmaryrd")) | |
19835372 | 3782 | (file-name (string-append name "-" version "-checkout")) |
d8fef6ea RW |
3783 | (sha256 |
3784 | (base32 | |
3785 | "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6")))) | |
3786 | (build-system texlive-build-system) | |
3787 | (arguments | |
3788 | '(#:tex-directory "latex/stmaryrd" | |
3789 | #:phases | |
3790 | (modify-phases %standard-phases | |
3791 | (add-after 'configure 'patch-ins | |
3792 | (lambda _ | |
3793 | (substitute* "stmaryrd.ins" | |
3794 | (("^%% LaTeX2e.*") "\\input docstrip\n") | |
3795 | (("fontdef\\}\\}" line) | |
3796 | (string-append line "\n\\endbatchfile"))) | |
3797 | #t))))) | |
b8d8806b | 3798 | (home-page "https://www.ctan.org/pkg/stmaryrd") |
d8fef6ea RW |
3799 | (synopsis "St Mary Road symbols for theoretical computer science") |
3800 | (description | |
3801 | "The fonts were originally distributed as Metafont sources only, but | |
3802 | Adobe Type 1 versions are also now available. Macro support is provided for | |
3803 | use under LaTeX; the package supports the @code{only} option (provided by the | |
3804 | @code{somedefs} package) to restrict what is loaded, for those who don't need | |
3805 | the whole font.") | |
3806 | (license license:lppl))) | |
3807 | ||
2db3a034 RW |
3808 | (define-public texlive-latex-subfigure |
3809 | (package | |
3810 | (name "texlive-latex-subfigure") | |
3811 | (version (number->string %texlive-revision)) | |
3812 | (source (origin | |
3813 | (method svn-fetch) | |
3814 | (uri (texlive-ref "latex" "subfigure")) | |
e1834df6 | 3815 | (file-name (string-append name "-" version "-checkout")) |
2db3a034 RW |
3816 | (sha256 |
3817 | (base32 | |
3818 | "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb")))) | |
3819 | (build-system texlive-build-system) | |
3820 | (arguments '(#:tex-directory "latex/subfigure")) | |
b8d8806b | 3821 | (home-page "https://www.ctan.org/pkg/subfigure") |
2db3a034 RW |
3822 | (synopsis "Figures divided into subfigures") |
3823 | (description | |
3824 | "This (deprecated) package provides support for the manipulation and | |
3825 | reference of small or \"sub\" figures and tables within a single figure or | |
3826 | table environment. It is convenient to use this package when your subfigures | |
3827 | are to be separately captioned, referenced, or are to be included in the | |
3828 | List-of-Figures. A new @code{\\subfigure} command is introduced which can be | |
3829 | used inside a figure environment for each subfigure. An optional first | |
3830 | argument is used as the caption for that subfigure. The package is now | |
3831 | considered obsolete: it was superseded by @code{subfig}, but users may find | |
3832 | the more recent @code{subcaption} package more satisfactory.") | |
3833 | (license license:lppl))) | |
3834 | ||
c73d0e9d RW |
3835 | (define-public texlive-latex-tabulary |
3836 | (package | |
3837 | (name "texlive-latex-tabulary") | |
3838 | (version (number->string %texlive-revision)) | |
3839 | (source (origin | |
3840 | (method svn-fetch) | |
3841 | (uri (texlive-ref "latex" "tabulary")) | |
3842 | (file-name (string-append name "-" version "-checkout")) | |
3843 | (sha256 | |
3844 | (base32 | |
3845 | "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n")))) | |
3846 | (build-system texlive-build-system) | |
3847 | (arguments '(#:tex-directory "latex/tabulary")) | |
b8d8806b | 3848 | (home-page "https://www.ctan.org/pkg/tabulary") |
c73d0e9d RW |
3849 | (synopsis "Tabular with variable width columns balanced") |
3850 | (description | |
3851 | "The package defines a @code{tabular*}-like environment, @code{tabulary}, | |
3852 | taking a \"total width\" argument as well as the column specifications. The | |
3853 | environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for | |
3854 | variable width columns (@code{\\raggedright}, @code{\\centering}, | |
3855 | @code{\\raggedleft}, and normally justified). In contrast to | |
3856 | @code{tabularx}'s @code{X} columns, the width of each column is weighted | |
3857 | according to the natural width of the widest cell in the column.") | |
3858 | (license license:lppl))) | |
3859 | ||
e3088297 RW |
3860 | (define-public texlive-latex-threeparttable |
3861 | (package | |
3862 | (name "texlive-latex-threeparttable") | |
3863 | (version (number->string %texlive-revision)) | |
3864 | (source (origin | |
3865 | (method svn-fetch) | |
3866 | (uri (svn-reference | |
3867 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3868 | %texlive-tag "/Master/texmf-dist/" | |
3869 | "/tex/latex/threeparttable")) | |
3870 | (revision %texlive-revision))) | |
d57e5d41 | 3871 | (file-name (string-append name "-" version "-checkout")) |
e3088297 RW |
3872 | (sha256 |
3873 | (base32 | |
3874 | "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq")))) | |
3875 | (build-system trivial-build-system) | |
3876 | (arguments | |
3877 | `(#:modules ((guix build utils)) | |
3878 | #:builder | |
3879 | (begin | |
3880 | (use-modules (guix build utils)) | |
3881 | (let ((target (string-append (assoc-ref %outputs "out") | |
3882 | "/share/texmf-dist/tex/latex/threeparttable"))) | |
3883 | (mkdir-p target) | |
3884 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
3885 | #t)))) | |
b8d8806b | 3886 | (home-page "https://www.ctan.org/pkg/threeparttable") |
e3088297 RW |
3887 | (synopsis "Tables with captions and notes all the same width") |
3888 | (description | |
3889 | "This package facilitates tables with titles (captions) and notes. The | |
3890 | title and notes are given a width equal to the body of the table (a | |
3891 | @code{tabular} environment). By itself, a @code{threeparttable} does not | |
3892 | float, but you can put it in a @code{table} or a @code{table*} or some other | |
3893 | environment.") | |
3894 | (license (license:fsf-free "file://threeparttable.sty")))) | |
3895 | ||
1b10d494 RW |
3896 | (define-public texlive-fonts-txfonts |
3897 | (package | |
3898 | (name "texlive-fonts-txfonts") | |
3899 | (version (number->string %texlive-revision)) | |
3900 | (source (origin | |
3901 | (method svn-fetch) | |
3902 | (uri (svn-reference | |
3903 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3904 | %texlive-tag "/Master/texmf-dist/" | |
3905 | "/tex/latex/txfonts")) | |
3906 | (revision %texlive-revision))) | |
3907 | (file-name (string-append name "-" version "-checkout")) | |
3908 | (sha256 | |
3909 | (base32 | |
3910 | "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2")))) | |
3911 | (build-system trivial-build-system) | |
3912 | (arguments | |
3913 | `(#:modules ((guix build utils) | |
3914 | (ice-9 match)) | |
3915 | #:builder | |
3916 | (begin | |
3917 | (use-modules (guix build utils) | |
3918 | (ice-9 match)) | |
3919 | (let ((root (string-append (assoc-ref %outputs "out") | |
3920 | "/share/texmf-dist/")) | |
3921 | (pkgs '(("source" . "tex/latex/txfonts") | |
3922 | ("txfonts-vf" . "fonts/tfm/public/txfonts") | |
3923 | ("txfonts-afm" . "fonts/afm/public/txfonts") | |
3924 | ("txfonts-tfm" . "fonts/tfm/public/txfonts") | |
3925 | ("txfonts-type1" . "fonts/type1/public/txfonts") | |
3926 | ("txfonts-enc" . "fonts/enc/dvips/txfonts") | |
3927 | ("txfonts-map" . "fonts/map/dvips/txfonts")))) | |
3928 | (for-each (match-lambda | |
3929 | ((pkg . dir) | |
3930 | (let ((target (string-append root dir))) | |
3931 | (mkdir-p target) | |
3932 | (copy-recursively (assoc-ref %build-inputs pkg) | |
3933 | target)))) | |
3934 | pkgs) | |
3935 | #t)))) | |
3936 | (native-inputs | |
3937 | `(("txfonts-tfm" | |
3938 | ,(origin | |
3939 | (method svn-fetch) | |
3940 | (uri (svn-reference | |
3941 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3942 | %texlive-tag "/Master/texmf-dist/" | |
3943 | "/fonts/tfm/public/txfonts")) | |
3944 | (revision %texlive-revision))) | |
3945 | (file-name (string-append name "-tfm-" version "-checkout")) | |
3946 | (sha256 | |
3947 | (base32 | |
3948 | "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv")))) | |
3949 | ("txfonts-vf" | |
3950 | ,(origin | |
3951 | (method svn-fetch) | |
3952 | (uri (svn-reference | |
3953 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3954 | %texlive-tag "/Master/texmf-dist/" | |
3955 | "/fonts/vf/public/txfonts")) | |
3956 | (revision %texlive-revision))) | |
3957 | (file-name (string-append name "-vf-" version "-checkout")) | |
3958 | (sha256 | |
3959 | (base32 | |
3960 | "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci")))) | |
3961 | ("txfonts-afm" | |
3962 | ,(origin | |
3963 | (method svn-fetch) | |
3964 | (uri (svn-reference | |
3965 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3966 | %texlive-tag "/Master/texmf-dist/" | |
3967 | "/fonts/afm/public/txfonts")) | |
3968 | (revision %texlive-revision))) | |
3969 | (file-name (string-append name "-afm-" version "-checkout")) | |
3970 | (sha256 | |
3971 | (base32 | |
3972 | "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis")))) | |
3973 | ("txfonts-type1" | |
3974 | ,(origin | |
3975 | (method svn-fetch) | |
3976 | (uri (svn-reference | |
3977 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3978 | %texlive-tag "/Master/texmf-dist/" | |
3979 | "/fonts/type1/public/txfonts")) | |
3980 | (revision %texlive-revision))) | |
3981 | (file-name (string-append name "-type1-" version "-checkout")) | |
3982 | (sha256 | |
3983 | (base32 | |
3984 | "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3")))) | |
3985 | ("txfonts-map" | |
3986 | ,(origin | |
3987 | (method svn-fetch) | |
3988 | (uri (svn-reference | |
3989 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
3990 | %texlive-tag "/Master/texmf-dist/" | |
3991 | "/fonts/map/dvips/txfonts")) | |
3992 | (revision %texlive-revision))) | |
3993 | (file-name (string-append name "-map-" version "-checkout")) | |
3994 | (sha256 | |
3995 | (base32 | |
3996 | "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj")))) | |
3997 | ("txfonts-enc" | |
3998 | ,(origin | |
3999 | (method svn-fetch) | |
4000 | (uri (svn-reference | |
4001 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4002 | %texlive-tag "/Master/texmf-dist/" | |
4003 | "/fonts/enc/dvips/txfonts")) | |
4004 | (revision %texlive-revision))) | |
4005 | (file-name (string-append name "-enc-" version "-checkout")) | |
4006 | (sha256 | |
4007 | (base32 | |
4008 | "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj")))))) | |
b8d8806b | 4009 | (home-page "https://www.ctan.org/pkg/threeparttable") |
1b10d494 RW |
4010 | (synopsis "Times-like fonts in support of mathematics") |
4011 | (description | |
4012 | "Txfonts supplies virtual text roman fonts using Adobe Times (or URW | |
4013 | NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1, | |
4014 | and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts | |
4015 | providing all the symbols of the Computer Modern and AMS fonts, including all | |
4016 | the Greek capital letters from CMR; and additional maths fonts of various | |
4017 | other symbols. | |
4018 | ||
4019 | The set is complemented by a sans-serif set of text fonts, based on | |
4020 | Helvetica/NimbusSanL, and a monospace set. | |
4021 | ||
4022 | All the fonts are in Type 1 format (AFM and PFB files), and are supported by | |
4023 | TeX metrics (VF and TFM files) and macros for use with LaTeX.") | |
4024 | ;; Any version of the GPL with font exception. | |
4025 | (license license:gpl3+))) | |
4026 | ||
f9e0fcb2 RW |
4027 | (define-public texlive-fonts-iwona |
4028 | (package | |
4029 | (name "texlive-fonts-iwona") | |
4030 | (version "0.995b") | |
4031 | (source (origin | |
4032 | (method url-fetch) | |
4033 | (uri (string-append "http://jmn.pl/pliki/Iwona-tex-" | |
4034 | (string-map (lambda (c) | |
4035 | (if (char=? c #\.) | |
4036 | #\_ c)) | |
4037 | version) | |
4038 | ".zip")) | |
4039 | (sha256 | |
4040 | (base32 | |
4041 | "13684iqx5granpc5rfvqnmyvdpgpbr1x9y7i7y7bcaq0qxv7ph1x")))) | |
4042 | (build-system trivial-build-system) | |
4043 | (arguments | |
4044 | `(#:modules ((guix build utils)) | |
4045 | #:builder | |
4046 | (begin | |
4047 | (use-modules (guix build utils)) | |
4048 | (let ((target (string-append (assoc-ref %outputs "out") | |
4049 | "/share/texmf-dist/")) | |
4050 | (unzip (string-append (assoc-ref %build-inputs "unzip") | |
4051 | "/bin/unzip"))) | |
e3cfef22 | 4052 | (invoke unzip (assoc-ref %build-inputs "source")) |
f9e0fcb2 | 4053 | (mkdir-p target) |
e3cfef22 MW |
4054 | (copy-recursively "iwona" target) |
4055 | #t)))) | |
f9e0fcb2 RW |
4056 | (native-inputs |
4057 | `(("unzip" ,unzip))) | |
4058 | (home-page "http://jmn.pl/en/kurier-i-iwona/") | |
4059 | (synopsis "Sans-serif typeface for TeX") | |
4060 | (description "Iwona is a two-element sans-serif typeface. It was created | |
4061 | as an alternative version of the Kurier typeface, which was designed in 1975 | |
4062 | for a diploma in typeface design at the Warsaw Academy of Fine Arts under the | |
4063 | supervision of Roman Tomaszewski. Kurier was designed for linotype | |
4064 | typesetting of newspapers and similar periodicals. The Iwona fonts are an | |
4065 | alternative version of the Kurier fonts. The difference lies in the absence | |
4066 | of ink traps which typify the Kurier font.") | |
4067 | (license license:gfl1.0))) | |
4068 | ||
acc620d6 RW |
4069 | (define-public texlive-latex-titlesec |
4070 | (package | |
4071 | (name "texlive-latex-titlesec") | |
4072 | (version (number->string %texlive-revision)) | |
4073 | (source (origin | |
4074 | (method svn-fetch) | |
4075 | (uri (svn-reference | |
4076 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4077 | %texlive-tag "/Master/texmf-dist/" | |
4078 | "/tex/latex/titlesec")) | |
4079 | (revision %texlive-revision))) | |
0475e35c | 4080 | (file-name (string-append name "-" version "-checkout")) |
acc620d6 RW |
4081 | (sha256 |
4082 | (base32 | |
4083 | "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21")))) | |
4084 | (build-system trivial-build-system) | |
4085 | (arguments | |
4086 | `(#:modules ((guix build utils)) | |
4087 | #:builder | |
4088 | (begin | |
4089 | (use-modules (guix build utils)) | |
4090 | (let ((target (string-append (assoc-ref %outputs "out") | |
4091 | "/share/texmf-dist/tex/latex/titlesec"))) | |
4092 | (mkdir-p target) | |
4093 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4094 | #t)))) | |
b8d8806b | 4095 | (home-page "https://www.ctan.org/pkg/titlesec") |
acc620d6 RW |
4096 | (synopsis "Select alternative section titles") |
4097 | (description | |
4098 | "This package provides an interface to sectioning commands for selection | |
4099 | from various title styles, e.g. for marginal titles and to change the font of | |
4100 | all headings with a single command, also providing simple one-step page | |
4101 | styles. It also includes a package to change the page styles when there are | |
4102 | floats in a page. You may assign headers/footers to individual floats, too.") | |
4103 | (license license:lppl))) | |
4104 | ||
274e3d4f RW |
4105 | (define-public texlive-latex-type1cm |
4106 | (package | |
4107 | (name "texlive-latex-type1cm") | |
4108 | (version (number->string %texlive-revision)) | |
4109 | (source (origin | |
4110 | (method svn-fetch) | |
4111 | (uri (texlive-ref "latex" "type1cm")) | |
4112 | (file-name (string-append name "-" version "-checkout")) | |
4113 | (sha256 | |
4114 | (base32 | |
4115 | "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12")))) | |
4116 | (build-system texlive-build-system) | |
4117 | (arguments '(#:tex-directory "latex/type1cm")) | |
b8d8806b | 4118 | (home-page "https://www.ctan.org/pkg/type1cm") |
274e3d4f RW |
4119 | (synopsis "Arbitrary size font selection in LaTeX") |
4120 | (description | |
4121 | "LaTeX, by default, restricts the sizes at which you can use its default | |
4122 | computer modern fonts, to a fixed set of discrete sizes (effectively, a set | |
4123 | specified by Knuth). The @code{type1cm} package removes this restriction; | |
4124 | this is particularly useful when using scalable versions of the CM | |
4125 | fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch, | |
4126 | PCTeX, etc.). In fact, since modern distributions will automatically generate | |
4127 | any bitmap font you might need, @code{type1cm} has wider application than just | |
36a17f05 | 4128 | those using scalable versions of the fonts. Note that the LaTeX distribution |
274e3d4f RW |
4129 | now contains a package @code{fix-cm},f which performs the task of |
4130 | @code{type1cm}, as well as doing the same job for T1- and TS1-encoded | |
4131 | @code{ec} fonts.") | |
4132 | (license license:lppl))) | |
4133 | ||
406af0d6 RW |
4134 | (define-public texlive-latex-lh |
4135 | (package | |
4136 | (name "texlive-latex-lh") | |
4137 | (version (number->string %texlive-revision)) | |
4138 | (source (origin | |
4139 | (method svn-fetch) | |
4140 | (uri (texlive-ref "latex" "lh")) | |
de20fd6a | 4141 | (file-name (string-append name "-" version "-checkout")) |
406af0d6 RW |
4142 | (sha256 |
4143 | (base32 | |
4144 | "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5")))) | |
4145 | (build-system texlive-build-system) | |
4146 | (arguments '(#:tex-directory "latex/lh")) | |
b8d8806b | 4147 | (home-page "https://www.ctan.org/pkg/lh") |
406af0d6 RW |
4148 | (synopsis "Cyrillic fonts that support LaTeX standard encodings") |
4149 | (description | |
4150 | "The LH fonts address the problem of the wide variety of alphabets that | |
4151 | are written with Cyrillic-style characters. The fonts are the original basis | |
4152 | of the set of T2* and X2 encodings that are now used when LaTeX users need to | |
4153 | write in Cyrillic languages. Macro support in standard LaTeX encodings is | |
4154 | offered through the latex-cyrillic and t2 bundles, and the package itself | |
4155 | offers support for other (more traditional) encodings. The fonts, in the | |
4156 | standard T2* and X2 encodings are available in Adobe Type 1 format, in the | |
4157 | CM-Super family of fonts. The package also offers its own LaTeX support for | |
4158 | OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.") | |
4159 | (license license:lppl))) | |
4160 | ||
44436def RW |
4161 | (define-public texlive-metapost |
4162 | (package | |
4163 | (name "texlive-metapost") | |
4164 | (version (number->string %texlive-revision)) | |
4165 | (source (origin | |
4166 | (method svn-fetch) | |
4167 | (uri (svn-reference | |
4168 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4169 | %texlive-tag "/Master/texmf-dist/" | |
4170 | "/metapost")) | |
4171 | (revision %texlive-revision))) | |
b4bb2750 | 4172 | (file-name (string-append name "-" version "-checkout")) |
44436def RW |
4173 | (sha256 |
4174 | (base32 | |
d4d9a1ec | 4175 | "0sf18pc6chgy26p9bxxn44xcqhzjrfb53jxjr2y7l3jb6xllhblq")))) |
44436def RW |
4176 | (build-system trivial-build-system) |
4177 | (arguments | |
4178 | `(#:modules ((guix build utils)) | |
4179 | #:builder | |
4180 | (begin | |
4181 | (use-modules (guix build utils)) | |
4182 | (let ((target (string-append (assoc-ref %outputs "out") | |
4183 | "/share/texmf-dist/metapost"))) | |
4184 | (mkdir-p target) | |
4185 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4186 | #t)))) | |
b8d8806b | 4187 | (home-page "https://www.ctan.org/pkg/metapost") |
44436def RW |
4188 | (synopsis "Create scalable illustrations") |
4189 | (description | |
4190 | "MetaPost uses a language based on that of Metafont to produce precise | |
4191 | technical illustrations. Its output is scalable PostScript or SVG, rather | |
4192 | than the bitmaps Metafont creates.") | |
4193 | (license license:lppl))) | |
4194 | ||
9ff7161a LC |
4195 | (define-public texlive-latex-acmart |
4196 | (package | |
4197 | (name "texlive-latex-acmart") | |
4198 | (version "1.45") | |
4199 | (source (origin | |
4200 | (method svn-fetch) | |
4201 | (uri (texlive-ref "latex" "acmart")) | |
4202 | (sha256 | |
4203 | (base32 | |
4204 | "10zs8ga88ksypv1v4p6mynmfa7749q2hgxlr4shnwfjd9wrb421q")) | |
4205 | (file-name (string-append name "-" version "-checkout")))) | |
4206 | (build-system texlive-build-system) | |
4207 | (arguments '(#:tex-directory "latex/acmart")) | |
b8d8806b | 4208 | (home-page "https://www.ctan.org/pkg/acmart") |
9ff7161a LC |
4209 | (synopsis "Class for typesetting publications of ACM") |
4210 | (description | |
4211 | "This package provides a class for typesetting publications of the | |
4212 | Association for Computing Machinery (ACM).") | |
4213 | (license license:lppl1.3+))) | |
4214 | ||
3966ebbb RW |
4215 | (define-public texlive-latex-varwidth |
4216 | (package | |
4217 | (name "texlive-latex-varwidth") | |
4218 | (version (number->string %texlive-revision)) | |
4219 | (source (origin | |
4220 | (method svn-fetch) | |
4221 | (uri (svn-reference | |
4222 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4223 | %texlive-tag "/Master/texmf-dist/" | |
4224 | "/tex/latex/varwidth")) | |
4225 | (revision %texlive-revision))) | |
4226 | (file-name (string-append name "-" version "-checkout")) | |
4227 | (sha256 | |
4228 | (base32 | |
4229 | "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52")))) | |
4230 | (build-system trivial-build-system) | |
4231 | (arguments | |
4232 | `(#:modules ((guix build utils)) | |
4233 | #:builder | |
4234 | (begin | |
4235 | (use-modules (guix build utils)) | |
4236 | (let ((target (string-append (assoc-ref %outputs "out") | |
4237 | "/share/texmf-dist/tex/latex/varwidth"))) | |
4238 | (mkdir-p target) | |
4239 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4240 | #t)))) | |
b8d8806b | 4241 | (home-page "https://www.ctan.org/pkg/varwidth") |
3966ebbb RW |
4242 | (synopsis "Variable-width minipage") |
4243 | (description | |
4244 | "The @code{varwidth} environment is superficially similar to | |
4245 | @code{minipage}, but the specified width is just a maximum value — the box may | |
4246 | get a narrower “natural” width.") | |
4247 | (license license:lppl))) | |
4248 | ||
cd2c77f4 RW |
4249 | (define-public texlive-latex-wasysym |
4250 | (package | |
4251 | (name "texlive-latex-wasysym") | |
4252 | (version (number->string %texlive-revision)) | |
4253 | (source (origin | |
4254 | (method svn-fetch) | |
4255 | (uri (texlive-ref "latex" "wasysym")) | |
2cc9c011 | 4256 | (file-name (string-append name "-" version "-checkout")) |
cd2c77f4 RW |
4257 | (sha256 |
4258 | (base32 | |
4259 | "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv")))) | |
4260 | (build-system texlive-build-system) | |
4261 | (arguments '(#:tex-directory "latex/wasysym")) | |
b8d8806b | 4262 | (home-page "https://www.ctan.org/pkg/wasysym") |
cd2c77f4 RW |
4263 | (synopsis "LaTeX support file to use the WASY2 fonts") |
4264 | (description | |
4265 | "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs | |
4266 | like male and female symbols and astronomical symbols, as well as the complete | |
4267 | lasy font set and other odds and ends. The wasysym package implements an easy | |
4268 | to use interface for these symbols.") | |
4269 | (license license:lppl))) | |
4270 | ||
63ed869b RW |
4271 | (define-public texlive-latex-wrapfig |
4272 | (package | |
4273 | (name "texlive-latex-wrapfig") | |
4274 | (version (number->string %texlive-revision)) | |
4275 | (source (origin | |
4276 | (method svn-fetch) | |
4277 | (uri (svn-reference | |
4278 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4279 | %texlive-tag "/Master/texmf-dist/" | |
4280 | "/tex/latex/wrapfig")) | |
4281 | (revision %texlive-revision))) | |
4282 | (file-name (string-append name "-" version "-checkout")) | |
4283 | (sha256 | |
4284 | (base32 | |
4285 | "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4")))) | |
4286 | (build-system trivial-build-system) | |
4287 | (arguments | |
4288 | `(#:modules ((guix build utils)) | |
4289 | #:builder | |
4290 | (begin | |
4291 | (use-modules (guix build utils)) | |
4292 | (let ((target (string-append (assoc-ref %outputs "out") | |
4293 | "/share/texmf-dist/tex/latex/wrapfig"))) | |
4294 | (mkdir-p target) | |
4295 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4296 | #t)))) | |
b8d8806b | 4297 | (home-page "https://www.ctan.org/pkg/wrapfig") |
63ed869b RW |
4298 | (synopsis "Produces figures which text can flow around") |
4299 | (description | |
4300 | "This package allows figures or tables to have text wrapped around them. | |
4301 | It does not work in combination with list environments, but can be used in a | |
4302 | @code{parbox} or @code{minipage}, and in two-column format.") | |
4303 | (license license:lppl))) | |
4304 | ||
c178ffca RW |
4305 | (define-public texlive-latex-ucs |
4306 | (package | |
4307 | (name "texlive-latex-ucs") | |
4308 | (version (number->string %texlive-revision)) | |
4309 | (source (origin | |
4310 | (method svn-fetch) | |
4311 | (uri (svn-reference | |
4312 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4313 | %texlive-tag "/Master/texmf-dist/" | |
4314 | "/tex/latex/ucs")) | |
4315 | (revision %texlive-revision))) | |
4316 | (file-name (string-append name "-" version "-checkout")) | |
4317 | (sha256 | |
4318 | (base32 | |
4319 | "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37")))) | |
4320 | (build-system trivial-build-system) | |
4321 | (arguments | |
4322 | `(#:modules ((guix build utils)) | |
4323 | #:builder | |
4324 | (begin | |
4325 | (use-modules (guix build utils)) | |
4326 | (let ((target (string-append (assoc-ref %outputs "out") | |
4327 | "/share/texmf-dist/tex/latex/ucs"))) | |
4328 | (mkdir-p target) | |
4329 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4330 | #t)))) | |
b8d8806b | 4331 | (home-page "https://www.ctan.org/pkg/ucs") |
c178ffca RW |
4332 | (synopsis "Extended UTF-8 input encoding support for LaTeX") |
4333 | (description | |
4334 | "The bundle provides the @code{ucs} package, and @code{utf8x.def}, | |
4335 | together with a large number of support files. The @code{utf8x.def} | |
4336 | definition file for use with @code{inputenc} covers a wider range of Unicode | |
4337 | characters than does @code{utf8.def} in the LaTeX distribution. The package | |
4338 | provides facilities for efficient use of its large sets of Unicode characters. | |
4339 | Glyph production may be controlled by various options, which permits use of | |
4340 | non-ASCII characters when coding mathematical formulae. Note that the bundle | |
4341 | previously had an alias “unicode”; that alias has now been withdrawn, and no | |
4342 | package of that name now exists.") | |
4343 | (license license:lppl1.3+))) | |
4344 | ||
86af0f2a RW |
4345 | (define-public texlive-latex-preview |
4346 | (package | |
4347 | (name "texlive-latex-preview") | |
4348 | (version (number->string %texlive-revision)) | |
4349 | (source (origin | |
4350 | (method svn-fetch) | |
4351 | (uri (texlive-ref "latex" "preview")) | |
4352 | (file-name (string-append name "-" version "-checkout")) | |
4353 | (sha256 | |
4354 | (base32 | |
d4d9a1ec | 4355 | "1hpsk4yp08qvbl43kqiv0hhwxv3gcqqxcpahyv6ch2b38pbj4bh6")))) |
86af0f2a RW |
4356 | (build-system texlive-build-system) |
4357 | (arguments | |
4358 | '(#:tex-directory "latex/preview" | |
4359 | #:phases | |
4360 | (modify-phases %standard-phases | |
4361 | (add-after 'unpack 'remove-generated-file | |
4362 | (lambda _ | |
4363 | (delete-file "preview.drv") | |
4364 | #t))))) | |
b8d8806b | 4365 | (home-page "https://www.ctan.org/pkg/preview") |
86af0f2a RW |
4366 | (synopsis "Extract bits of a LaTeX source for output") |
4367 | (description | |
4368 | "The main purpose of the preview package is the extraction of selected | |
4369 | elements from a LaTeX source, like formulas or graphics, into separate | |
4370 | pages of a DVI file. A flexible and convenient interface allows it to | |
4371 | specify what commands and constructs should be extracted. This works | |
4372 | with DVI files postprocessed by either Dvips and Ghostscript or | |
4373 | dvipng, but it also works when you are using PDFTeX for generating PDF | |
4374 | files.") | |
4375 | (license license:gpl3+))) | |
4376 | ||
87b4360e RW |
4377 | (define-public texlive-latex-acronym |
4378 | (package | |
4379 | (name "texlive-latex-acronym") | |
4380 | (version (number->string %texlive-revision)) | |
4381 | (source (origin | |
4382 | (method svn-fetch) | |
4383 | (uri (texlive-ref "latex" "acronym")) | |
4384 | (file-name (string-append name "-" version "-checkout")) | |
4385 | (sha256 | |
4386 | (base32 | |
4387 | "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp")))) | |
4388 | (build-system texlive-build-system) | |
4389 | (arguments '(#:tex-directory "latex/acronym")) | |
b8d8806b | 4390 | (home-page "https://www.ctan.org/pkg/acronym") |
87b4360e RW |
4391 | (synopsis "Expand acronyms at least once") |
4392 | (description | |
4393 | "This package ensures that all acronyms used in the text are spelled out | |
4394 | in full at least once. It also provides an environment to build a list of | |
4395 | acronyms used. The package is compatible with PDF bookmarks. The package | |
4396 | requires the suffix package, which in turn requires that it runs under | |
4397 | e-TeX.") | |
4398 | (license license:lppl1.3+))) | |
4399 | ||
fedb80ee RW |
4400 | (define-public texlive-generic-pdftex |
4401 | (package | |
4402 | (name "texlive-generic-pdftex") | |
4403 | (version (number->string %texlive-revision)) | |
4404 | (source (origin | |
4405 | (method svn-fetch) | |
4406 | (uri (svn-reference | |
4407 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4408 | %texlive-tag "/Master/texmf-dist/" | |
4409 | "/tex/generic/pdftex")) | |
4410 | (revision %texlive-revision))) | |
66e765a0 | 4411 | (file-name (string-append name "-" version "-checkout")) |
fedb80ee RW |
4412 | (sha256 |
4413 | (base32 | |
4414 | "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd")))) | |
4415 | (build-system trivial-build-system) | |
4416 | (arguments | |
4417 | `(#:modules ((guix build utils)) | |
4418 | #:builder | |
4419 | (begin | |
4420 | (use-modules (guix build utils)) | |
4421 | (let ((target (string-append (assoc-ref %outputs "out") | |
7002a45d PN |
4422 | "/share/texmf-dist/tex/generic/pdftex")) |
4423 | (target-map (string-append (assoc-ref %outputs "out") | |
4424 | "/share/texmf-dist/fonts/map/pdftex"))) | |
fedb80ee RW |
4425 | (mkdir-p target) |
4426 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
7002a45d PN |
4427 | (mkdir-p target-map) |
4428 | (copy-recursively (assoc-ref %build-inputs "pdftex-map") target-map) | |
fedb80ee | 4429 | #t)))) |
7002a45d PN |
4430 | (native-inputs |
4431 | `(("pdftex-map" | |
4432 | ,(origin | |
4433 | (method svn-fetch) | |
4434 | (uri (svn-reference | |
4435 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4436 | %texlive-tag "/Master/texmf-dist/" | |
4437 | "/fonts/map/pdftex")) | |
4438 | (revision %texlive-revision))) | |
4439 | (file-name (string-append name "-map-" version "-checkout")) | |
4440 | (sha256 | |
4441 | (base32 | |
d4d9a1ec | 4442 | "18jvcm0vwpg6wwzijvnb92xx78la45kkh71k6l44425krp2vnwm0")))))) |
b8d8806b | 4443 | (home-page "https://www.ctan.org/pkg/pdftex") |
fedb80ee RW |
4444 | (synopsis "TeX extension for direct creation of PDF") |
4445 | (description | |
4446 | "This package provides an extension of TeX which can be configured to | |
4447 | directly generate PDF documents instead of DVI.") | |
4448 | (license license:gpl2+))) | |
4449 | ||
8bcdc23f | 4450 | (define texlive-texmf |
0aa34e82 AE |
4451 | (package |
4452 | (name "texlive-texmf") | |
3e1ebaab | 4453 | (version "20180414") |
0aa34e82 AE |
4454 | (source texlive-texmf-src) |
4455 | (build-system gnu-build-system) | |
4456 | (inputs | |
4457 | `(("texlive-bin" ,texlive-bin) | |
4458 | ("lua" ,lua) | |
4459 | ("perl" ,perl) | |
4460 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) | |
4461 | ("ruby" ,ruby) | |
4462 | ("tcsh" ,tcsh))) | |
4463 | (arguments | |
4464 | `(#:modules ((guix build gnu-build-system) | |
4465 | (guix build utils) | |
4466 | (srfi srfi-26)) | |
a348af40 LC |
4467 | |
4468 | ;; This package takes 4 GiB, which we can't afford to distribute from | |
4469 | ;; our servers. | |
4470 | #:substitutable? #f | |
4471 | ||
0aa34e82 | 4472 | #:phases |
4a6635f3 AE |
4473 | (modify-phases (map (cut assq <> %standard-phases) |
4474 | '(set-paths unpack patch-source-shebangs)) | |
4475 | (add-after 'patch-source-shebangs 'install | |
4476 | (lambda* (#:key outputs #:allow-other-keys) | |
4477 | (let ((share (string-append (assoc-ref outputs "out") "/share"))) | |
4478 | (mkdir-p share) | |
286eedec | 4479 | (invoke "mv" "texmf-dist" share)))) |
4a6635f3 AE |
4480 | (add-after 'install 'texmf-config |
4481 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4482 | (let* ((out (assoc-ref outputs "out")) | |
4483 | (share (string-append out "/share")) | |
4484 | (texmfroot (string-append share "/texmf-dist/web2c")) | |
4485 | (texmfcnf (string-append texmfroot "/texmf.cnf")) | |
4486 | (texlive-bin (assoc-ref inputs "texlive-bin")) | |
4487 | (texbin (string-append texlive-bin "/bin")) | |
4488 | (tlpkg (string-append texlive-bin "/share/tlpkg"))) | |
4489 | ;; Register SHARE as TEXMFROOT in texmf.cnf. | |
4490 | (substitute* texmfcnf | |
4491 | (("TEXMFROOT = \\$SELFAUTOPARENT") | |
2d634d9b FB |
4492 | (string-append "TEXMFROOT = " share)) |
4493 | (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local") | |
4494 | "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local") | |
4495 | (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL")) | |
4a6635f3 AE |
4496 | ;; Register paths in texmfcnf.lua, needed for context. |
4497 | (substitute* (string-append texmfroot "/texmfcnf.lua") | |
4498 | (("selfautodir:") out) | |
4499 | (("selfautoparent:") (string-append share "/"))) | |
4500 | ;; Set path to TeXLive Perl modules | |
4501 | (setenv "PERL5LIB" | |
4502 | (string-append (getenv "PERL5LIB") ":" tlpkg)) | |
4503 | ;; Configure the texmf-dist tree; inspired from | |
4504 | ;; http://slackbuilds.org/repository/13.37/office/texlive/ | |
4505 | (setenv "PATH" (string-append (getenv "PATH") ":" texbin)) | |
4506 | (setenv "TEXMFCNF" texmfroot) | |
286eedec MW |
4507 | (invoke "updmap-sys" "--nohash" "--syncwithtrees") |
4508 | (invoke "mktexlsr") | |
0371132c | 4509 | (invoke "fmtutil-sys" "--all"))))))) |
7a15a68f | 4510 | (properties `((max-silent-time . 9600))) ; don't time out while grafting |
0aa34e82 | 4511 | (synopsis "TeX Live, a package of the TeX typesetting system") |
eb0119ef AE |
4512 | (description |
4513 | "TeX Live provides a comprehensive TeX document production system. | |
4514 | It includes all the major TeX-related programs, macro packages, and fonts | |
4515 | that are free software, including support for many languages around the | |
0aa34e82 AE |
4516 | world. |
4517 | ||
4518 | This package contains the complete tree of texmf-dist data.") | |
132e14b4 EF |
4519 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
4520 | (home-page "https://www.tug.org/texlive/"))) | |
0aa34e82 AE |
4521 | |
4522 | (define-public texlive | |
4523 | (package | |
4524 | (name "texlive") | |
3e1ebaab | 4525 | (version "20180414") |
0aa34e82 AE |
4526 | (source #f) |
4527 | (build-system trivial-build-system) | |
4528 | (inputs `(("bash" ,bash) ; for wrap-program | |
4529 | ("texlive-bin" ,texlive-bin) | |
4530 | ("texlive-texmf" ,texlive-texmf))) | |
2d634d9b FB |
4531 | (native-search-paths |
4532 | (list (search-path-specification | |
4533 | (variable "TEXMFLOCAL") | |
4534 | (files '("share/texmf-local"))))) | |
0aa34e82 AE |
4535 | (arguments |
4536 | `(#:modules ((guix build utils)) | |
4537 | #:builder | |
4538 | ;; Build the union of texlive-bin and texlive-texmf, but take the | |
4539 | ;; conflicting subdirectory share/texmf-dist from texlive-texmf. | |
4540 | (begin | |
4541 | (use-modules (guix build utils)) | |
4542 | (let ((out (assoc-ref %outputs "out")) | |
4543 | (bin (assoc-ref %build-inputs "texlive-bin")) | |
4544 | (texmf (assoc-ref %build-inputs "texlive-texmf")) | |
4545 | (bash (assoc-ref %build-inputs "bash"))) | |
4546 | (mkdir out) | |
4547 | (with-directory-excursion out | |
4548 | (for-each | |
4549 | (lambda (name) | |
4550 | (symlink (string-append bin "/" name) name)) | |
4551 | '("include" "lib")) | |
4552 | (mkdir "bin") | |
4553 | (with-directory-excursion "bin" | |
4554 | (setenv "PATH" (string-append bash "/bin")) | |
4555 | (for-each | |
4556 | (lambda (name) | |
4557 | (symlink name (basename name)) | |
4558 | (wrap-program | |
4559 | (basename name) | |
4560 | `("TEXMFCNF" = | |
4561 | (,(string-append texmf "/share/texmf-dist/web2c"))))) | |
4562 | (find-files (string-append bin "/bin/") ""))) | |
4563 | (mkdir "share") | |
4564 | (with-directory-excursion "share" | |
4565 | (for-each | |
4566 | (lambda (name) | |
4567 | (symlink (string-append bin "/share/" name) name)) | |
4568 | '("info" "man" "tlpkg")) | |
4569 | (for-each | |
4570 | (lambda (name) | |
4571 | (symlink (string-append texmf "/share/" name) name)) | |
e3cfef22 MW |
4572 | '("texmf-dist" "texmf-var")))) |
4573 | #t)))) | |
0aa34e82 AE |
4574 | (synopsis "TeX Live, a package of the TeX typesetting system") |
4575 | (description | |
4576 | "TeX Live provides a comprehensive TeX document production system. | |
4577 | It includes all the major TeX-related programs, macro packages, and fonts | |
4578 | that are free software, including support for many languages around the | |
4579 | world. | |
4580 | ||
4581 | This package contains the complete TeX Live distribution.") | |
132e14b4 EF |
4582 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) |
4583 | (home-page "https://www.tug.org/texlive/"))) | |
231eae53 | 4584 | |
ebcf74da RW |
4585 | (define-public perl-text-bibtex |
4586 | (package | |
4587 | (name "perl-text-bibtex") | |
a2460e0f | 4588 | (version "0.85") |
ebcf74da RW |
4589 | (source |
4590 | (origin | |
4591 | (method url-fetch) | |
4592 | (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-" | |
4593 | version ".tar.gz")) | |
4594 | (sha256 | |
4595 | (base32 | |
a2460e0f | 4596 | "036kxgbn1jf70pfm2lmjlzjwnhbkd888fp5lyvmkjpdd15gla18h")))) |
ebcf74da RW |
4597 | (build-system perl-build-system) |
4598 | (arguments | |
4599 | `(#:phases | |
4600 | (modify-phases %standard-phases | |
4601 | (add-after 'unpack 'add-output-directory-to-rpath | |
4602 | (lambda* (#:key outputs #:allow-other-keys) | |
4603 | (substitute* "inc/MyBuilder.pm" | |
4604 | (("-Lbtparse" line) | |
4605 | (string-append "-Wl,-rpath=" | |
4606 | (assoc-ref outputs "out") "/lib " line))) | |
4607 | #t)) | |
4608 | (add-after 'unpack 'install-libraries-to-/lib | |
4609 | (lambda* (#:key outputs #:allow-other-keys) | |
4610 | (substitute* "Build.PL" | |
4611 | (("lib64") "lib")) | |
4612 | #t))))) | |
4613 | (native-inputs | |
4614 | `(("perl-capture-tiny" ,perl-capture-tiny) | |
4615 | ("perl-config-autoconf" ,perl-config-autoconf) | |
4616 | ("perl-extutils-libbuilder" ,perl-extutils-libbuilder) | |
4617 | ("perl-module-build" ,perl-module-build))) | |
9aba9b12 | 4618 | (home-page "https://metacpan.org/release/Text-BibTeX") |
ebcf74da RW |
4619 | (synopsis "Interface to read and parse BibTeX files") |
4620 | (description "@code{Text::BibTeX} is a Perl library for reading, parsing, | |
4621 | and processing BibTeX files. @code{Text::BibTeX} gives you access to the data | |
4622 | at many different levels: you may work with BibTeX entries as simple field to | |
4623 | string mappings, or get at the original form of the data as a list of simple | |
4624 | values (strings, macros, or numbers) pasted together.") | |
2f3108ad | 4625 | (license license:perl-license))) |
ebcf74da | 4626 | |
d4000680 RW |
4627 | (define-public biber |
4628 | (package | |
1335167a | 4629 | (name "biber") |
41a01087 | 4630 | (version "2.12") |
d4000680 | 4631 | (source (origin |
41a01087 JL |
4632 | (method git-fetch) |
4633 | (uri (git-reference | |
4634 | (url "https://github.com/plk/biber/") | |
4635 | (commit (string-append "v" version)))) | |
4636 | (file-name (git-file-name name version)) | |
4637 | ;; TODO: Patch awaiting inclusion upstream (see: | |
4638 | ;; https://github.com/plk/biber/issues/239). | |
4639 | (patches (search-patches "biber-fix-encoding-write.patch")) | |
d4000680 RW |
4640 | (sha256 |
4641 | (base32 | |
41a01087 | 4642 | "1g1hi6zvf2hmrjly1sidjaxy5440gfqm4p7p3n7kayshnjsmlskx")))) |
d4000680 RW |
4643 | (build-system perl-build-system) |
4644 | (arguments | |
4645 | `(#:phases | |
4646 | (modify-phases %standard-phases | |
4647 | (add-after 'install 'wrap-programs | |
4648 | (lambda* (#:key outputs #:allow-other-keys) | |
4649 | (let* ((out (assoc-ref outputs "out")) | |
4650 | (perl5lib (getenv "PERL5LIB"))) | |
4651 | (wrap-program (string-append out "/bin/biber") | |
4652 | `("PERL5LIB" ":" prefix | |
4653 | (,(string-append perl5lib ":" out | |
4654 | "/lib/perl5/site_perl"))))) | |
4655 | #t))))) | |
4656 | (inputs | |
4657 | `(("perl-autovivification" ,perl-autovivification) | |
4658 | ("perl-class-accessor" ,perl-class-accessor) | |
4659 | ("perl-data-dump" ,perl-data-dump) | |
4660 | ("perl-data-compare" ,perl-data-compare) | |
4661 | ("perl-data-uniqid" ,perl-data-uniqid) | |
4662 | ("perl-datetime-format-builder" ,perl-datetime-format-builder) | |
4663 | ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian) | |
41a01087 | 4664 | ("perl-file-slurper" ,perl-file-slurper) |
d4000680 RW |
4665 | ("perl-ipc-cmd" ,perl-ipc-cmd) |
4666 | ("perl-ipc-run3" ,perl-ipc-run3) | |
4667 | ("perl-list-allutils" ,perl-list-allutils) | |
4668 | ("perl-list-moreutils" ,perl-list-moreutils) | |
4669 | ("perl-mozilla-ca" ,perl-mozilla-ca) | |
4670 | ("perl-regexp-common" ,perl-regexp-common) | |
4671 | ("perl-log-log4perl" ,perl-log-log4perl) | |
4672 | ;; We cannot use perl-unicode-collate here, because otherwise the | |
4673 | ;; hardcoded hashes in the tests would differ. See | |
4674 | ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html | |
4675 | ;;("perl-unicode-collate" ,perl-unicode-collate) | |
4676 | ("perl-unicode-normalize" ,perl-unicode-normalize) | |
4677 | ("perl-unicode-linebreak" ,perl-unicode-linebreak) | |
4678 | ("perl-encode-eucjpascii" ,perl-encode-eucjpascii) | |
4679 | ("perl-encode-jis2k" ,perl-encode-jis2k) | |
4680 | ("perl-encode-hanextra" ,perl-encode-hanextra) | |
4681 | ("perl-xml-libxml" ,perl-xml-libxml) | |
4682 | ("perl-xml-libxml-simple" ,perl-xml-libxml-simple) | |
4683 | ("perl-xml-libxslt" ,perl-xml-libxslt) | |
4684 | ("perl-xml-writer" ,perl-xml-writer) | |
4685 | ("perl-sort-key" ,perl-sort-key) | |
4686 | ("perl-text-csv" ,perl-text-csv) | |
4687 | ("perl-text-csv-xs" ,perl-text-csv-xs) | |
4688 | ("perl-text-roman" ,perl-text-roman) | |
4689 | ("perl-uri" ,perl-uri) | |
4690 | ("perl-text-bibtex" ,perl-text-bibtex) | |
4691 | ("perl-libwww" ,perl-libwww) | |
4692 | ("perl-lwp-protocol-https" ,perl-lwp-protocol-https) | |
4693 | ("perl-business-isbn" ,perl-business-isbn) | |
4694 | ("perl-business-issn" ,perl-business-issn) | |
4695 | ("perl-business-ismn" ,perl-business-ismn) | |
4696 | ("perl-lingua-translit" ,perl-lingua-translit))) | |
4697 | (native-inputs | |
4698 | `(("perl-config-autoconf" ,perl-config-autoconf) | |
4699 | ("perl-extutils-libbuilder" ,perl-extutils-libbuilder) | |
4700 | ("perl-module-build" ,perl-module-build) | |
4701 | ;; for tests | |
4702 | ("perl-file-which" ,perl-file-which) | |
4703 | ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient | |
4704 | ("perl-test-differences" ,perl-test-differences))) | |
4705 | (home-page "http://biblatex-biber.sourceforge.net/") | |
4706 | (synopsis "Backend for the BibLaTeX citation management tool") | |
4707 | (description "Biber is a BibTeX replacement for users of biblatex. Among | |
4708 | other things it comes with full Unicode support.") | |
4709 | (license license:artistic2.0))) | |
4710 | ||
231eae53 LC |
4711 | (define-public rubber |
4712 | (package | |
4713 | (name "rubber") | |
4714 | (version "1.1") | |
4715 | (source (origin | |
4716 | (method url-fetch) | |
4717 | (uri (list (string-append "https://launchpad.net/rubber/trunk/" | |
4718 | version "/+download/rubber-" | |
4719 | version ".tar.gz") | |
4720 | (string-append "http://ebeffara.free.fr/pub/rubber-" | |
4721 | version ".tar.gz"))) | |
4722 | (sha256 | |
4723 | (base32 | |
4724 | "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq")))) | |
4725 | (build-system gnu-build-system) | |
4726 | (arguments '(#:tests? #f)) ; no `check' target | |
4727 | (inputs `(("texinfo" ,texinfo) | |
9bee5d6c | 4728 | ("python" ,python-2) ; incompatible with Python 3 (print syntax) |
231eae53 LC |
4729 | ("which" ,which))) |
4730 | (home-page "https://launchpad.net/rubber") | |
35b9e423 | 4731 | (synopsis "Wrapper for LaTeX and friends") |
231eae53 LC |
4732 | (description |
4733 | "Rubber is a program whose purpose is to handle all tasks related to the | |
4734 | compilation of LaTeX documents. This includes compiling the document itself, | |
4735 | of course, enough times so that all references are defined, and running BibTeX | |
4736 | to manage bibliographic references. Automatic execution of dvips to produce | |
4737 | PostScript documents is also included, as well as usage of pdfLaTeX to produce | |
4738 | PDF documents.") | |
4739 | (license license:gpl2+))) | |
4791876c RJ |
4740 | |
4741 | (define-public texmaker | |
4742 | (package | |
4743 | (name "texmaker") | |
c36d9725 | 4744 | (version "5.0.2") |
4791876c RJ |
4745 | (source (origin |
4746 | (method url-fetch) | |
4747 | (uri (string-append "http://www.xm1math.net/texmaker/texmaker-" | |
4748 | version ".tar.bz2")) | |
4749 | (sha256 | |
4750 | (base32 | |
c36d9725 | 4751 | "0y81mjm89b99pr9svcwpaf4iz2q9pc9hjas5kiwd1pbgl5vqskm9")))) |
4791876c RJ |
4752 | (build-system gnu-build-system) |
4753 | (arguments | |
4754 | `(#:phases | |
4755 | (modify-phases %standard-phases | |
4756 | ;; Qt has its own configuration utility. | |
4757 | (replace 'configure | |
4758 | (lambda* (#:key outputs #:allow-other-keys) | |
4759 | (let ((out (assoc-ref outputs "out"))) | |
6c23ed9b MW |
4760 | (invoke "qmake" |
4761 | (string-append "PREFIX=" out) | |
c36d9725 | 4762 | (string-append "DESKTOPDIR=" out "/share/applications") |
6c23ed9b | 4763 | (string-append "ICONDIR=" out "/share/pixmaps") |
c36d9725 | 4764 | (string-append "METAINFODIR=" out "/share/metainfo") |
6c23ed9b | 4765 | "texmaker.pro"))))))) |
4791876c RJ |
4766 | (inputs |
4767 | `(("poppler-qt5" ,poppler-qt5) | |
bd917486 TD |
4768 | ("qtbase" ,qtbase) |
4769 | ("qtscript" ,qtscript) | |
4770 | ("qtwebkit" ,qtwebkit) | |
4791876c RJ |
4771 | ("zlib" ,zlib))) |
4772 | (native-inputs | |
4773 | `(("pkg-config" ,pkg-config))) | |
4774 | (home-page "http://www.xm1math.net/texmaker/") | |
4775 | (synopsis "LaTeX editor") | |
4776 | (description "Texmaker is a program that integrates many tools needed to | |
4777 | develop documents with LaTeX, in a single application.") | |
4778 | (license license:gpl2+))) | |
83457fe0 JD |
4779 | |
4780 | ||
4781 | (define-public teximpatient | |
4782 | (package | |
4783 | (name "teximpatient") | |
4784 | (version "2.4") | |
4785 | (source (origin | |
4786 | (method url-fetch) | |
4787 | (uri (string-append "mirror://gnu/" name "/" name "-" | |
4788 | version ".tar.gz")) | |
4789 | (sha256 | |
4790 | (base32 | |
4791 | "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd")))) | |
4792 | (build-system gnu-build-system) | |
4793 | (arguments | |
4794 | `(#:phases | |
4795 | (modify-phases %standard-phases | |
4796 | (delete 'check) | |
4797 | ;; Unfortunately some mistakes have been made in packaging. | |
4798 | ;; Work around them here ... | |
4799 | (replace 'unpack | |
4800 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4801 | (let ((srcdir "teximpatient-2.4")) | |
4802 | (system* "tar" "-xzf" (assoc-ref inputs "source") | |
4803 | (string-append "--one-top-level=" srcdir)) | |
4804 | (delete-file (string-append srcdir "/book.pdf")) | |
4805 | (install-file (car | |
4806 | (find-files | |
4807 | (assoc-ref inputs "automake") | |
4808 | "^install-sh$")) | |
4809 | srcdir) | |
4810 | (chdir srcdir))))))) | |
4811 | (native-inputs | |
4812 | `(("texlive" ,texlive) | |
4813 | ("automake" ,automake))) | |
6fd52309 | 4814 | (home-page "https://www.gnu.org/software/teximpatient/") |
83457fe0 JD |
4815 | (synopsis "Book on TeX, plain TeX and Eplain") |
4816 | (description "@i{TeX for the Impatient} is a ~350 page book on TeX, | |
4817 | plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves, | |
4818 | and Karl Berry.") | |
4819 | (license license:fdl1.3+))) | |
ec40a050 DM |
4820 | |
4821 | (define-public lyx | |
4822 | (package | |
4823 | (name "lyx") | |
4824 | (version "2.2.3") | |
4825 | (source (origin | |
4826 | (method url-fetch) | |
4827 | (uri (string-append "http://ftp.lyx.org/pub/lyx/stable/2.2.x/" | |
4828 | name "-" version ".tar.gz")) | |
4829 | (sha256 | |
4830 | (base32 | |
4831 | "0xvaz0i371nn2ndinc0d3ywj76ivb62649a4sdgwbivisiahd2fj")) | |
4832 | (patches (search-patches "lyx-2.2.3-fix-test.patch")) | |
4833 | (modules '((guix build utils))) | |
4834 | (snippet | |
4835 | '(begin | |
4836 | (delete-file-recursively "3rdparty") | |
4837 | #t)))) | |
4838 | (build-system cmake-build-system) | |
4839 | (arguments | |
4840 | `(#:configure-flags `("-DLYX_USE_QT=QT5" | |
4841 | "-DLYX_EXTERNAL_BOOST=1" | |
4842 | "-DLYX_INSTALL=1" | |
4843 | "-DLYX_RELEASE=1" | |
4844 | ,(string-append "-DLYX_INSTALL_PREFIX=" | |
4845 | (assoc-ref %outputs "out") | |
4846 | ;; Exact name and level is necessary. | |
4847 | "/lyx2.2")) | |
4848 | #:phases | |
4849 | (modify-phases %standard-phases | |
4850 | (add-after 'unpack 'patch-python | |
4851 | (lambda* (#:key inputs #:allow-other-keys) | |
4852 | (substitute* '("src/support/os.cpp") | |
4853 | (("\"python ") | |
4854 | (string-append "\"" | |
4855 | (assoc-ref inputs "python-2") | |
4856 | "/bin/python "))) | |
4857 | #t)) | |
4858 | (add-after 'patch-python 'patch-installer | |
4859 | (lambda* (#:key outputs #:allow-other-keys) | |
4860 | (substitute* "CMakeLists.txt" | |
4861 | (("/usr/local/man/man1") | |
4862 | (string-append (assoc-ref outputs "out") | |
4863 | "/share/man/man1"))) | |
4864 | #t)) | |
4865 | (add-after 'patch-python 'patch-desktop-file | |
4866 | (lambda* (#:key outputs #:allow-other-keys) | |
4867 | (substitute* "lib/lyx.desktop.in" | |
4868 | (("Exec=") | |
4869 | (string-append "Exec=" | |
4870 | (assoc-ref outputs "out") | |
4871 | "/"))) | |
4872 | #t)) | |
4873 | (add-before 'check 'setenv-check | |
4874 | (lambda _ | |
4875 | (setenv "LYX_DIR_22x" (string-append (getcwd) "/../lyx-" | |
4876 | ,version "/lib")) | |
4877 | #t)) | |
4878 | (add-after 'install 'install-symlinks | |
4879 | (lambda* (#:key outputs #:allow-other-keys) | |
4880 | (let ((out (assoc-ref outputs "out"))) | |
4881 | (mkdir-p (string-append out "/bin")) | |
4882 | (symlink "../lyx2.2/bin/lyx2.2" | |
4883 | (string-append out "/bin/lyx2.2")) | |
4884 | #t)))))) | |
4885 | (inputs | |
4886 | `(("boost" ,boost) | |
4887 | ("hunspell" ,hunspell) ; Note: Could also use aspell instead. | |
4888 | ("libx11" ,libx11) | |
4889 | ("python-2" ,python-2) | |
4890 | ("qtbase" ,qtbase) | |
4891 | ("qtsvg" ,qtsvg) | |
4892 | ("zlib" ,zlib))) | |
4893 | (propagated-inputs | |
4894 | `(("texlive" ,texlive))) ; article.cls is in texmf-dist. | |
4895 | (native-inputs | |
4896 | `(("python-2" ,python-2) | |
4897 | ("pkg-config" ,pkg-config) | |
4898 | ("bc" ,bc))) | |
8960b2e6 | 4899 | (home-page "https://www.lyx.org/") |
ec40a050 DM |
4900 | (synopsis "Document preparation system with GUI") |
4901 | (description "LyX is a document preparation system. It excels at letting | |
4902 | you create complex technical and scientific articles with mathematics, | |
4903 | cross-references, bibliographies, indexes, etc. It is very good for working | |
4904 | with documents of any length in which the usual processing abilities are | |
4905 | required: automatic sectioning and pagination, spell checking and so forth.") | |
4906 | (license license:gpl2+))) | |
7d50dff3 PN |
4907 | |
4908 | (define-public texlive-latex-media9 | |
4909 | (package | |
4910 | (name "texlive-latex-media9") | |
4911 | (version (number->string %texlive-revision)) | |
4912 | (source (origin | |
4913 | (method svn-fetch) | |
4914 | (uri (svn-reference | |
4915 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4916 | %texlive-tag "/Master/texmf-dist/" | |
4917 | "/tex/latex/media9")) | |
4918 | (revision %texlive-revision))) | |
4919 | (file-name (string-append name "-" version "-checkout")) | |
4920 | (sha256 | |
4921 | (base32 | |
d4d9a1ec | 4922 | "0lhb2h5hxjq9alpk4r3gvg21pwyifs4ah6hqzp92k55mkp1xv73j")))) |
7d50dff3 PN |
4923 | (build-system trivial-build-system) |
4924 | (arguments | |
4925 | `(#:modules ((guix build utils)) | |
4926 | #:builder | |
4927 | (begin | |
4928 | (use-modules (guix build utils)) | |
4929 | (let ((target (string-append (assoc-ref %outputs "out") | |
4930 | "/share/texmf-dist/tex/latex/media9"))) | |
4931 | (mkdir-p target) | |
4932 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4933 | #t)))) | |
4934 | (home-page "https://www.ctan.org/pkg/media9") | |
4935 | (synopsis "Multimedia inclusion package with Adobe Reader-9/X compatibility") | |
4936 | (description | |
4937 | "The package provides an interface to embed interactive Flash (SWF) and 3D | |
4938 | objects (Adobe U3D & PRC), as well as video and sound files or streams in the | |
4939 | popular MP4, FLV and MP3 formats into PDF documents with Acrobat-9/X | |
4940 | compatibility. Playback of multimedia files uses the built-in Flash Player of | |
4941 | Adobe Reader and does, therefore, not depend on external plug-ins. Flash Player | |
4942 | supports the efficient H.264 codec for video compression. | |
4943 | ||
4944 | The package is based on the RichMedia Annotation, an Adobe addition to the PDF | |
4945 | specification. It replaces the now obsolete @code{movie15} package.") | |
4946 | (license license:lppl))) | |
288c8c97 PN |
4947 | |
4948 | (define-public texlive-latex-ocgx2 | |
4949 | (package | |
4950 | (name "texlive-latex-ocgx2") | |
4951 | (version (number->string %texlive-revision)) | |
4952 | (source (origin | |
4953 | (method svn-fetch) | |
4954 | (uri (svn-reference | |
4955 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
4956 | %texlive-tag "/Master/texmf-dist/" | |
4957 | "/tex/latex/ocgx2")) | |
4958 | (revision %texlive-revision))) | |
4959 | (file-name (string-append name "-" version "-checkout")) | |
4960 | (sha256 | |
4961 | (base32 | |
d4d9a1ec | 4962 | "0zp00jg058djx8xp0xqwas92y3j97clkyd8z6pqr890yqy06myqb")))) |
288c8c97 PN |
4963 | (build-system trivial-build-system) |
4964 | (arguments | |
4965 | `(#:modules ((guix build utils)) | |
4966 | #:builder | |
4967 | (begin | |
4968 | (use-modules (guix build utils)) | |
4969 | (let ((target (string-append (assoc-ref %outputs "out") | |
4970 | "/share/texmf-dist/tex/latex/ogcx2"))) | |
4971 | (mkdir-p target) | |
4972 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
4973 | #t)))) | |
4974 | (home-page "https://www.ctan.org/pkg/ocgx2") | |
4975 | (synopsis "Provide OCG (Optional Content Groups) support within a PDF document") | |
4976 | (description | |
4977 | "This package provides OCG (Optional Content Groups) support within a PDF | |
4978 | document. | |
4979 | ||
4980 | It re-implements the functionality of the @code{ocg}, @code{ocgx}, and | |
4981 | @code{ocg-p} packages and adds support for all known engines and back-ends | |
4982 | including: | |
4983 | ||
4984 | @itemize | |
4985 | @item LaTeX → dvips → @code{ps2pdf}/Distiller | |
4986 | @item (Xe)LaTeX(x) → @code{dvipdfmx} | |
4987 | @item pdfLaTeX and LuaLaTeX . | |
4988 | @end itemize | |
4989 | ||
4990 | It also ensures compatibility with the @code{media9} and @code{animate} packages.") | |
4991 | (license license:lppl))) | |
b718793e PN |
4992 | |
4993 | (define-public texlive-latex-ms | |
4994 | (package | |
4995 | (name "texlive-latex-ms") | |
4996 | (version (number->string %texlive-revision)) | |
4997 | (source (origin | |
4998 | (method svn-fetch) | |
4999 | (uri (texlive-ref "latex" "ms")) | |
5000 | (file-name (string-append name "-" version "-checkout")) | |
5001 | (sha256 | |
5002 | (base32 | |
5003 | "0m4wx3yjb5al1qsv995z8fii8xxy96mcfihbnlx43lpgayiwz35s")))) | |
5004 | (build-system texlive-build-system) | |
5005 | (arguments | |
5006 | '(#:tex-directory "latex/ms" | |
5007 | #:tex-format "latex")) | |
5008 | (home-page "https://ctan.org/pkg/ms") | |
5009 | (synopsis "Various LATEX packages by Martin Schröder") | |
5010 | (description | |
5011 | "A bundle of LATEX packages by Martin Schröder; the collection comprises: | |
5012 | ||
5013 | @itemize | |
5014 | @item @command{count1to}, make use of fixed TEX counters; | |
5015 | @item @command{everysel}, set commands to execute every time a font is selected; | |
5016 | @item @command{everyshi}, set commands to execute whenever a page is shipped out; | |
5017 | @item @command{multitoc}, typeset the table of contents in multiple columns; | |
5018 | @item @command{prelim2e}, mark typeset pages as preliminary; and | |
5019 | @item @command{ragged2e}, typeset ragged text and allow hyphenation. | |
5020 | @end itemize\n") | |
5021 | (license license:lppl1.3c+))) | |
707babdd PN |
5022 | |
5023 | (define-public texlive-latex-needspace | |
5024 | (package | |
5025 | (name "texlive-latex-needspace") | |
5026 | (version (number->string %texlive-revision)) | |
5027 | (source (origin | |
5028 | (method svn-fetch) | |
5029 | (uri (texlive-ref "latex" "needspace")) | |
5030 | (file-name (string-append name "-" version "-checkout")) | |
5031 | (sha256 | |
5032 | (base32 | |
5033 | "0kw80f5jh4gdpa2ka815abza3gr5z8b929w0745vrlc59pl0017y")))) | |
5034 | (build-system texlive-build-system) | |
5035 | (arguments | |
5036 | '(#:tex-directory "latex/needspace" | |
5037 | #:tex-format "latex")) | |
5038 | (inputs | |
5039 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
5040 | (home-page "https://www.ctan.org/pkg/needspace") | |
5041 | (synopsis "Insert pagebreak if not enough space") | |
5042 | (description | |
5043 | "Provides commands to disable pagebreaking within a given vertical | |
5044 | space. If there is not enough space between the command and the bottom of the | |
5045 | page, a new page will be started.") | |
5046 | (license license:lppl))) | |
0e73c11b | 5047 | |
73635e3f RW |
5048 | (define-public texlive-latex-changepage |
5049 | (package | |
5050 | (name "texlive-latex-changepage") | |
5051 | (version (number->string %texlive-revision)) | |
5052 | (source | |
5053 | (origin | |
5054 | (method svn-fetch) | |
5055 | (uri (texlive-ref "latex" "changepage")) | |
5056 | (sha256 | |
5057 | (base32 | |
5058 | "1rpw8xg5p4jsyh236jma9dz3l29wjx4062f154b3wak5yjcxyxyb")))) | |
5059 | (build-system texlive-build-system) | |
5060 | (arguments | |
5061 | '(#:tex-directory "latex/changepage" | |
5062 | #:tex-format "latex")) | |
5063 | (inputs | |
5064 | `(("texlive-latex-filecontents" ,texlive-latex-filecontents))) | |
5065 | (home-page "https://www.ctan.org/pkg/changepage") | |
5066 | (synopsis "Margin adjustment and detection of odd/even pages") | |
5067 | (description | |
5068 | "The package provides commands to change the page layout in the middle of | |
5069 | a document, and to robustly check for typesetting on odd or even pages. | |
5070 | Instructions for use are at the end of the file. The package is an extraction | |
5071 | of code from the @code{memoir} class, whose user interface it shares.") | |
5072 | (license license:lppl1.3+))) | |
5073 | ||
0e73c11b PN |
5074 | (define-public texlive-latex-eukdate |
5075 | (package | |
5076 | (name "texlive-latex-eukdate") | |
5077 | (version (number->string %texlive-revision)) | |
5078 | (source | |
5079 | (origin | |
5080 | (method svn-fetch) | |
5081 | (uri (svn-reference | |
5082 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5083 | %texlive-tag "/Master/texmf-dist/" | |
5084 | "/tex/latex/eukdate")) | |
5085 | (revision %texlive-revision))) | |
5086 | (file-name (string-append name "-" version "-checkout")) | |
5087 | (sha256 | |
5088 | (base32 | |
5089 | "18xan116l8w47v560bkw6nbhkrml7g04xrlzk3jrpc7qsyf3n5fz")))) | |
5090 | (build-system trivial-build-system) | |
5091 | (arguments | |
5092 | `(#:modules ((guix build utils)) | |
5093 | #:builder | |
5094 | (begin | |
5095 | (use-modules (guix build utils)) | |
5096 | (let ((target (string-append (assoc-ref %outputs "out") | |
5097 | "/share/texmf-dist/tex/latex/eukdate"))) | |
5098 | (mkdir-p target) | |
5099 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5100 | #t)))) | |
5101 | (home-page "https://www.ctan.org/pkg/eukdate") | |
5102 | (synopsis "UK format dates, with weekday") | |
5103 | (description | |
5104 | "The package is used to change the format of @code{\\today}’s date, | |
5105 | including the weekday, e.g., \"Saturday, 26 June 2008\", the 'UK format', which | |
5106 | is preferred in many parts of the world, as distinct from that which is used in | |
5107 | @code{\\maketitle} of the article class, \"June 26, 2008\", the 'US format'.") | |
5108 | (license license:lppl))) | |
910d67fb PN |
5109 | |
5110 | (define-public texlive-generic-ulem | |
5111 | (package | |
5112 | (name "texlive-generic-ulem") | |
5113 | (version (number->string %texlive-revision)) | |
5114 | (source | |
5115 | (origin | |
5116 | (method svn-fetch) | |
5117 | (uri (svn-reference | |
5118 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5119 | %texlive-tag "/Master/texmf-dist/" | |
5120 | "/tex/generic/ulem")) | |
5121 | (revision %texlive-revision))) | |
5122 | (file-name (string-append name "-" version "-checkout")) | |
5123 | (sha256 | |
5124 | (base32 | |
5125 | "1rzdniqq9zk39w8ch8ylx3ywh2mj87s4ivchrsk2b8nx06jyn797")))) | |
5126 | (build-system trivial-build-system) | |
5127 | (arguments | |
5128 | `(#:modules ((guix build utils)) | |
5129 | #:builder | |
5130 | (begin | |
5131 | (use-modules (guix build utils)) | |
5132 | (let ((target (string-append (assoc-ref %outputs "out") | |
5133 | "/share/texmf-dist/tex/generic/ulem"))) | |
5134 | (mkdir-p target) | |
5135 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5136 | #t)))) | |
5137 | (home-page "https://www.ctan.org/pkg/ulem") | |
5138 | (synopsis "Underline text in TeX") | |
5139 | (description | |
5140 | "The package provides an @code{\\ul} (underline) command which will break | |
5141 | over line ends; this technique may be used to replace @code{\\em} (both in that | |
5142 | form and as the @code{\\emph} command), so as to make output look as if it comes | |
5143 | from a typewriter. The package also offers double and wavy underlining, and | |
5144 | striking out (line through words) and crossing out (/// over words).") | |
5145 | (license license:lppl1.3c+))) | |
17ef5f1f PN |
5146 | |
5147 | (define-public texlive-latex-pgf | |
5148 | (package | |
5149 | (name "texlive-latex-pgf") | |
5150 | (version (number->string %texlive-revision)) | |
5151 | (source | |
5152 | (origin | |
5153 | (method svn-fetch) | |
5154 | (uri (svn-reference | |
5155 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5156 | %texlive-tag "/Master/texmf-dist/" | |
5157 | "/tex/latex/pgf")) | |
5158 | (revision %texlive-revision))) | |
5159 | (file-name (string-append name "-" version "-checkout")) | |
5160 | (sha256 | |
5161 | (base32 | |
5162 | "1dq8p10pz8wn0vx412m7d7d5gj1syxly3yqdqvf7lv2xl8zndn5h")))) | |
5163 | (build-system trivial-build-system) | |
5164 | (native-inputs | |
5165 | `(("texlive-latex-pgf-generic" | |
5166 | ,(origin | |
5167 | (method svn-fetch) | |
5168 | (uri (svn-reference | |
5169 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5170 | %texlive-tag "/Master/texmf-dist/" | |
5171 | "/tex/generic/pgf")) | |
5172 | (revision %texlive-revision))) | |
5173 | (file-name (string-append "texlive-latex-pgf-generic" version "-checkout")) | |
5174 | (sha256 | |
5175 | (base32 | |
5176 | "0xkxw26sjzr5npjpzpr28yygwdbhzpdd0hsk80gjpidhcxmz393i")))))) | |
5177 | (arguments | |
5178 | `(#:modules ((guix build utils)) | |
5179 | #:builder | |
5180 | (begin | |
5181 | (use-modules (guix build utils)) | |
5182 | (let ((target-generic (string-append (assoc-ref %outputs "out") | |
5183 | "/share/texmf-dist/tex/generic/pgf")) | |
5184 | (target-latex (string-append (assoc-ref %outputs "out") | |
5185 | "/share/texmf-dist/tex/latex/pgf"))) | |
5186 | (mkdir-p target-generic) | |
5187 | (mkdir-p target-latex) | |
5188 | (copy-recursively (assoc-ref %build-inputs "texlive-latex-pgf-generic") target-generic) | |
5189 | (copy-recursively (assoc-ref %build-inputs "source") target-latex) | |
5190 | #t)))) | |
5191 | (home-page "https://www.ctan.org/pkg/tikz") | |
5192 | (synopsis "Create PostScript and PDF graphics in TeX") | |
5193 | (description | |
5194 | "PGF is a macro package for creating graphics. It is platform- and | |
5195 | format-independent and works together with the most important TeX backend | |
5196 | drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer | |
5197 | called TikZ. | |
5198 | ||
5199 | Its usage is similar to pstricks and the standard picture environment. PGF | |
5200 | works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can | |
5201 | produce either PostScript or PDF output.") | |
5202 | (license license:lppl1.3c+))) | |
e7b2937d PN |
5203 | |
5204 | (define-public texlive-latex-koma-script | |
5205 | (package | |
5206 | (name "texlive-latex-koma-script") | |
5207 | (version (number->string %texlive-revision)) | |
5208 | (source (origin | |
5209 | (method svn-fetch) | |
5210 | (uri (svn-reference | |
5211 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5212 | %texlive-tag "/Master/texmf-dist/" | |
5213 | "/tex/latex/koma-script")) | |
5214 | (revision %texlive-revision))) | |
5215 | (file-name (string-append name "-" version "-checkout")) | |
5216 | (sha256 | |
5217 | (base32 | |
d4d9a1ec | 5218 | "0nqwf0sr4mf3v9gqa6apv6ml2xhcdwax0vgyf12a672g7rpdyvgm")))) |
e7b2937d PN |
5219 | (build-system trivial-build-system) |
5220 | (arguments | |
5221 | `(#:modules ((guix build utils) | |
5222 | (ice-9 match)) | |
5223 | #:builder | |
5224 | (begin | |
5225 | (use-modules (guix build utils) | |
5226 | (ice-9 match)) | |
5227 | (let ((root (string-append (assoc-ref %outputs "out") | |
5228 | "/share/texmf-dist/")) | |
5229 | (pkgs '(("source" . "tex/latex/koma-script")))) | |
5230 | (for-each (match-lambda | |
5231 | ((pkg . dir) | |
5232 | (let ((target (string-append root dir))) | |
5233 | (mkdir-p target) | |
5234 | (copy-recursively (assoc-ref %build-inputs pkg) | |
5235 | target)))) | |
5236 | pkgs) | |
5237 | #t)))) | |
5238 | (home-page "https://www.ctan.org/pkg/koma-script") | |
5239 | (synopsis "Bundle of versatile classes and packages") | |
5240 | (description | |
5241 | "The KOMA-Script bundle provides replacements for the article, report, and | |
5242 | book classes with emphasis on typography and versatility. There is also a | |
5243 | letter class. | |
5244 | ||
5245 | The bundle also offers: | |
5246 | ||
5247 | @itemize | |
5248 | @item a package for calculating type areas in the way laid down by the | |
5249 | typographer Jan Tschichold, | |
5250 | @item packages for easily changing and defining page styles, | |
5251 | @item a package scrdate for getting not only the current date but also the name | |
5252 | of the day, and | |
5253 | @item a package scrtime for getting the current time. | |
5254 | @end itemize | |
5255 | ||
5256 | All these packages may be used not only with KOMA-Script classes but also with | |
5257 | the standard classes. | |
5258 | ||
5259 | Since every package has its own version number, the version number quoted only | |
5260 | refers to the version of scrbook, scrreprt, scrartcl, scrlttr2 and | |
5261 | typearea (which are the main parts of the bundle).") | |
5262 | (license license:lppl1.3+))) | |
893fbf12 RW |
5263 | |
5264 | (define-public texlive-generic-listofitems | |
5265 | (package | |
5266 | (name "texlive-generic-listofitems") | |
5267 | (version (number->string %texlive-revision)) | |
5268 | (source (origin | |
5269 | (method svn-fetch) | |
5270 | (uri (svn-reference | |
5271 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5272 | %texlive-tag "/Master/texmf-dist/" | |
5273 | "/tex/generic/listofitems")) | |
5274 | (revision %texlive-revision))) | |
5275 | (file-name (string-append name "-" version "-checkout")) | |
5276 | (sha256 | |
5277 | (base32 | |
d4d9a1ec | 5278 | "0hs28fc0v2l92ad9las9b8xcckyrdrwmyhcx1yzmbr6s7s6nvsx8")))) |
893fbf12 RW |
5279 | (build-system trivial-build-system) |
5280 | (arguments | |
5281 | `(#:modules ((guix build utils)) | |
5282 | #:builder | |
5283 | (begin | |
5284 | (use-modules (guix build utils)) | |
5285 | (let ((target (string-append (assoc-ref %outputs "out") | |
5286 | "/share/texmf-dist/tex/generic/listofitems"))) | |
5287 | (mkdir-p target) | |
5288 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5289 | #t)))) | |
5290 | (home-page "https://www.ctan.org/pkg/listofitems") | |
5291 | (synopsis "Grab items in lists using user-specified seperation character") | |
5292 | (description | |
5293 | "This package allows one to capture all the items of a list, for which | |
5294 | the parsing character has been selected by the user, and to access any of | |
5295 | these items with a simple syntax.") | |
5296 | (license license:lppl1.3c+))) | |
1d0669f4 RW |
5297 | |
5298 | (define-public texlive-latex-readarray | |
5299 | (package | |
5300 | (name "texlive-latex-readarray") | |
5301 | (version (number->string %texlive-revision)) | |
5302 | (source (origin | |
5303 | (method svn-fetch) | |
5304 | (uri (svn-reference | |
5305 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5306 | %texlive-tag "/Master/texmf-dist/" | |
5307 | "/tex/latex/readarray")) | |
5308 | (revision %texlive-revision))) | |
5309 | (file-name (string-append name "-" version "-checkout")) | |
5310 | (sha256 | |
5311 | (base32 | |
5312 | "0c53k180ivn1n7fz3ngvd2w1i5dw3kxml0n64vhki88xsylz7lxp")))) | |
5313 | (build-system trivial-build-system) | |
5314 | (arguments | |
5315 | `(#:modules ((guix build utils)) | |
5316 | #:builder | |
5317 | (begin | |
5318 | (use-modules (guix build utils)) | |
5319 | (let ((target (string-append (assoc-ref %outputs "out") | |
5320 | "/share/texmf-dist/tex/latex/readarray"))) | |
5321 | (mkdir-p target) | |
5322 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5323 | #t)))) | |
5324 | (propagated-inputs | |
5325 | `(("texlive-generic-listofitems" ,texlive-generic-listofitems))) | |
5326 | (home-page "https://www.ctan.org/pkg/readarray") | |
5327 | (synopsis "Read, store and recall array-formatted data") | |
5328 | (description | |
5329 | "This package allows the user to input formatted data into elements of a | |
5330 | 2-D or 3-D array and to recall that data at will by individual cell number. | |
5331 | The data can be but need not be numerical in nature. It can be, for example, | |
5332 | formatted text.") | |
5333 | (license license:lppl1.3))) | |
f50f343e RW |
5334 | |
5335 | (define-public texlive-latex-verbatimbox | |
5336 | (package | |
5337 | (name "texlive-latex-verbatimbox") | |
5338 | (version (number->string %texlive-revision)) | |
5339 | (source (origin | |
5340 | (method svn-fetch) | |
5341 | (uri (svn-reference | |
5342 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5343 | %texlive-tag "/Master/texmf-dist/" | |
5344 | "/tex/latex/verbatimbox")) | |
5345 | (revision %texlive-revision))) | |
5346 | (file-name (string-append name "-" version "-checkout")) | |
5347 | (sha256 | |
5348 | (base32 | |
5349 | "0qh1cgvfs463zsi2pjg490gj0mkjfdpfc381j10cbb5la304psna")))) | |
5350 | (build-system trivial-build-system) | |
5351 | (arguments | |
5352 | `(#:modules ((guix build utils)) | |
5353 | #:builder | |
5354 | (begin | |
5355 | (use-modules (guix build utils)) | |
5356 | (let ((target (string-append (assoc-ref %outputs "out") | |
5357 | "/share/texmf-dist/tex/latex/verbatimbox"))) | |
5358 | (mkdir-p target) | |
5359 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5360 | #t)))) | |
5361 | (propagated-inputs | |
5362 | `(("texlive-latex-readarray" ,texlive-latex-readarray))) | |
5363 | (home-page "https://www.ctan.org/pkg/verbatimbox") | |
5364 | (synopsis "Deposit verbatim text in a box") | |
5365 | (description | |
5366 | "The package provides a @code{verbbox} environment to place its contents | |
5367 | into a globally available box, or into a box specified by the user. The | |
5368 | global box may then be used in a variety of situations (for example, providing | |
5369 | a replica of the @code{boxedverbatim} environment itself). A valuable use is | |
5370 | in places where the standard @code{verbatim} environment (which is based on a | |
5371 | @code{trivlist}) may not appear.") | |
5372 | (license license:lppl1.3+))) | |
4348a059 RW |
5373 | |
5374 | (define-public texlive-latex-examplep | |
5375 | (package | |
5376 | (name "texlive-latex-examplep") | |
5377 | (version (number->string %texlive-revision)) | |
5378 | (source (origin | |
5379 | (method svn-fetch) | |
5380 | (uri (svn-reference | |
5381 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5382 | %texlive-tag "/Master/texmf-dist/" | |
5383 | "/tex/latex/examplep")) | |
5384 | (revision %texlive-revision))) | |
5385 | (file-name (string-append name "-" version "-checkout")) | |
5386 | (sha256 | |
5387 | (base32 | |
5388 | "0fsvvmz68ij0zwfzrny6x13d92grxr4ap59lxgah4smbkccd6s27")))) | |
5389 | (build-system trivial-build-system) | |
5390 | (arguments | |
5391 | `(#:modules ((guix build utils)) | |
5392 | #:builder | |
5393 | (begin | |
5394 | (use-modules (guix build utils)) | |
5395 | (let ((target (string-append (assoc-ref %outputs "out") | |
5396 | "/share/texmf-dist/tex/latex/examplep"))) | |
5397 | (mkdir-p target) | |
5398 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5399 | #t)))) | |
5400 | (home-page "https://www.ctan.org/pkg/examplep") | |
5401 | (synopsis "Verbatim phrases and listings in LaTeX") | |
5402 | (description | |
5403 | "Examplep provides sophisticated features for typesetting verbatim source | |
5404 | code listings, including the display of the source code and its compiled LaTeX | |
5405 | or METAPOST output side-by-side, with automatic width detection and enabled | |
5406 | page breaks (in the source), without the need for specifying the source twice. | |
5407 | Special care is taken that section, page and footnote numbers do not interfere | |
5408 | with the main document. For typesetting short verbatim phrases, a replacement | |
5409 | for the @code{\\verb} command is also provided in the package, which can be | |
5410 | used inside tables and moving arguments such as footnotes and section | |
5411 | titles.") | |
5412 | ;; No version of the GPL is specified. | |
5413 | (license license:gpl3+))) | |
547ab650 PN |
5414 | |
5415 | (define-public texlive-generic-xypic | |
5416 | (package | |
5417 | (name "texlive-generic-xypic") | |
5418 | (version (number->string %texlive-revision)) | |
5419 | (source | |
5420 | (origin | |
5421 | (method svn-fetch) | |
5422 | (uri (svn-reference | |
5423 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5424 | %texlive-tag "/Master/texmf-dist/" | |
5425 | "/tex/generic/xypic")) | |
5426 | (revision %texlive-revision))) | |
5427 | (file-name (string-append name "-" version "-checkout")) | |
5428 | (sha256 | |
5429 | (base32 | |
5430 | "1g5cyxwdfznq4lk9zl6fkjkapmhmwd2cm4m5aibxj20qgwnaggfz")))) | |
5431 | (build-system trivial-build-system) | |
5432 | (arguments | |
5433 | `(#:modules ((guix build utils)) | |
5434 | #:builder | |
5435 | (begin | |
5436 | (use-modules (guix build utils)) | |
5437 | (let ((target (string-append (assoc-ref %outputs "out") | |
5438 | "/share/texmf-dist/tex/generic/xypic"))) | |
5439 | (mkdir-p target) | |
5440 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5441 | #t)))) | |
5442 | (home-page "https://www.ctan.org/pkg/xypic") | |
5443 | (synopsis "Flexible diagramming macros for TeX") | |
5444 | (description | |
5445 | "A package for typesetting a variety of graphs and diagrams with TeX. | |
5446 | Xy-pic works with most formats (including LaTeX, AMS-LaTeX, AMS-TeX, and plain | |
5447 | TeX).") | |
5448 | (license license:gpl3+))) | |
1d9ce461 PN |
5449 | |
5450 | (define-public texlive-fonts-xypic | |
5451 | (package | |
5452 | (name "texlive-fonts-xypic") | |
5453 | (version (number->string %texlive-revision)) | |
5454 | (source (origin | |
5455 | (method svn-fetch) | |
5456 | (uri (svn-reference | |
5457 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5458 | %texlive-tag "/Master/texmf-dist/" | |
5459 | "/fonts/source/public/xypic")) | |
5460 | (revision %texlive-revision))) | |
5461 | (file-name (string-append name "-" version "-checkout")) | |
5462 | (sha256 | |
5463 | (base32 | |
5464 | "0p20v1257kwsqnrk98cdhhiz2viv8l3ly4xay4by0an3j37m9xs3")))) | |
5465 | (build-system trivial-build-system) | |
5466 | (arguments | |
5467 | `(#:modules ((guix build utils) | |
5468 | (ice-9 match)) | |
5469 | #:builder | |
5470 | (begin | |
5471 | (use-modules (guix build utils) | |
5472 | (ice-9 match)) | |
5473 | (let ((root (string-append (assoc-ref %outputs "out") | |
5474 | "/share/texmf-dist/")) | |
5475 | (pkgs '(("source" . "fonts/source/public/xypic") | |
5476 | ("xypic-afm" . "fonts/afm/public/xypic") | |
5477 | ("xypic-type1" . "fonts/type1/public/xypic") | |
5478 | ("xypic-enc" . "fonts/enc/dvips/xypic")))) | |
5479 | (for-each (match-lambda | |
5480 | ((pkg . dir) | |
5481 | (let ((target (string-append root dir))) | |
5482 | (mkdir-p target) | |
5483 | (copy-recursively (assoc-ref %build-inputs pkg) | |
5484 | target)))) | |
5485 | pkgs) | |
5486 | #t)))) | |
5487 | (native-inputs | |
5488 | `(("xypic-afm" | |
5489 | ,(origin | |
5490 | (method svn-fetch) | |
5491 | (uri (svn-reference | |
5492 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5493 | %texlive-tag "/Master/texmf-dist/" | |
5494 | "/fonts/afm/public/xypic")) | |
5495 | (revision %texlive-revision))) | |
5496 | (file-name (string-append name "-afm-" version "-checkout")) | |
5497 | (sha256 | |
5498 | (base32 | |
5499 | "149xdijxp8lw3s0qv2aqxxxyyn748z57dpr596rjvkqdffpnsddh")))) | |
5500 | ("xypic-type1" | |
5501 | ,(origin | |
5502 | (method svn-fetch) | |
5503 | (uri (svn-reference | |
5504 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5505 | %texlive-tag "/Master/texmf-dist/" | |
5506 | "/fonts/type1/public/xypic")) | |
5507 | (revision %texlive-revision))) | |
5508 | (file-name (string-append name "-type1-" version "-checkout")) | |
5509 | (sha256 | |
5510 | (base32 | |
5511 | "1bln89wib7g3hcv2jny3qi6jb73k9d2vbgx3wnnjwp3ryg0846if")))) | |
5512 | ("xypic-enc" | |
5513 | ,(origin | |
5514 | (method svn-fetch) | |
5515 | (uri (svn-reference | |
5516 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5517 | %texlive-tag "/Master/texmf-dist/" | |
5518 | "/fonts/enc/dvips/xypic")) | |
5519 | (revision %texlive-revision))) | |
5520 | (file-name (string-append name "-enc-" version "-checkout")) | |
5521 | (sha256 | |
5522 | (base32 | |
5523 | "0yi8vms3203l3p5slnhrrlzzp0f0jw77fkcvcaicrz2vmw9z99x7")))))) | |
5524 | (home-page "https://www.ctan.org/pkg/xypic") | |
5525 | (synopsis "Fonts for XY-pic") | |
5526 | (description "This package provides the XY-pic fonts.") | |
5527 | (license license:gpl3+))) | |
31595689 PN |
5528 | |
5529 | (define-public texlive-bibtex | |
5530 | (package | |
5531 | (name "texlive-bibtex") | |
5532 | (version (number->string %texlive-revision)) | |
5533 | (source | |
5534 | (origin | |
5535 | (method svn-fetch) | |
5536 | (uri (svn-reference | |
5537 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5538 | %texlive-tag "/Master/texmf-dist/" | |
5539 | "/bibtex")) | |
5540 | (revision %texlive-revision))) | |
5541 | (file-name (string-append name "-" version "-checkout")) | |
5542 | (sha256 | |
5543 | (base32 | |
d4d9a1ec | 5544 | "0hnbs0s1znbn32hfcsyijl39z81sdb00jf092a4blqz421qs2mbv")))) |
31595689 PN |
5545 | (build-system trivial-build-system) |
5546 | (arguments | |
5547 | `(#:modules ((guix build utils)) | |
5548 | #:builder | |
5549 | (begin | |
5550 | (use-modules (guix build utils)) | |
5551 | (let ((target (string-append (assoc-ref %outputs "out") | |
5552 | "/share/texmf-dist/bibtex"))) | |
5553 | (mkdir-p target) | |
5554 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5555 | #t)))) | |
5556 | (home-page "https://www.ctan.org/pkg/bibtex") | |
5557 | (synopsis "Process bibliographies for LaTeX") | |
5558 | (description | |
5559 | "BibTeX allows the user to store his citation data in generic form, while | |
5560 | printing citations in a document in the form specified by a BibTeX style, to | |
5561 | be specified in the document itself (one often needs a LaTeX citation-style | |
5562 | package, such as @command{natbib} as well).") | |
5563 | (license license:knuth))) | |
744b883e PN |
5564 | |
5565 | (define-public texlive-fonts-charter | |
5566 | (package | |
5567 | (name "texlive-fonts-charter") | |
5568 | (version (number->string %texlive-revision)) | |
5569 | (source (origin | |
5570 | (method svn-fetch) | |
5571 | (uri (svn-reference | |
5572 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5573 | %texlive-tag "/Master/texmf-dist/" | |
5574 | "/fonts/type1/bitstrea/charter")) | |
5575 | (revision %texlive-revision))) | |
5576 | (file-name (string-append name "-" version "-checkout")) | |
5577 | (sha256 | |
5578 | (base32 | |
5579 | "0yvib45xxff3jm5270zij4q888pivbc18cqs7lz4pqfhn1am4wnv")))) | |
5580 | (build-system trivial-build-system) | |
5581 | (arguments | |
5582 | `(#:modules ((guix build utils) | |
5583 | (ice-9 match)) | |
5584 | #:builder | |
5585 | (begin | |
5586 | (use-modules (guix build utils) | |
5587 | (ice-9 match)) | |
5588 | (let ((root (string-append (assoc-ref %outputs "out") | |
5589 | "/share/texmf-dist/")) | |
5590 | (pkgs '(("source" . "fonts/type1/bitstrea/charter") | |
5591 | ("charter-afm" . "fonts/afm/bitstrea/charter") | |
5592 | ("charter-tfm" . "fonts/tfm/bitstrea/charter")))) | |
5593 | (for-each (match-lambda | |
5594 | ((pkg . dir) | |
5595 | (let ((target (string-append root dir))) | |
5596 | (mkdir-p target) | |
5597 | (copy-recursively (assoc-ref %build-inputs pkg) | |
5598 | target)))) | |
5599 | pkgs) | |
5600 | #t)))) | |
5601 | (native-inputs | |
5602 | `(("charter-afm" | |
5603 | ,(origin | |
5604 | (method svn-fetch) | |
5605 | (uri (svn-reference | |
5606 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5607 | %texlive-tag "/Master/texmf-dist/" | |
5608 | "/fonts/afm/bitstrea/charter")) | |
5609 | (revision %texlive-revision))) | |
5610 | (file-name (string-append name "-afm-" version "-checkout")) | |
5611 | (sha256 | |
5612 | (base32 | |
5613 | "02nbkqrlr3vypnzslmr7dxg1353mmc0rl4ynx0s6qbvf313fq76a")))) | |
5614 | ("charter-tfm" | |
5615 | ,(origin | |
5616 | (method svn-fetch) | |
5617 | (uri (svn-reference | |
5618 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5619 | %texlive-tag "/Master/texmf-dist/" | |
5620 | "/fonts/tfm/bitstrea/charter")) | |
5621 | (revision %texlive-revision))) | |
5622 | (file-name (string-append name "-tfm-" version "-checkout")) | |
5623 | (sha256 | |
5624 | (base32 | |
5625 | "0j7ci9vprivbhac70aq0z7m23hqcpx1g0i3wp1k0h8ilhimj80xk")))))) | |
5626 | (home-page "https://www.ctan.org/pkg/charter") | |
5627 | (synopsis "Charter fonts for TeX") | |
5628 | (description "A commercial text font donated for the common good. Support | |
5629 | for use with LaTeX is available in @code{freenfss}, part of | |
5630 | @command{psnfss}. ") | |
5631 | (license (license:non-copyleft (string-append "http://mirrors.ctan.org/" | |
5632 | "fonts/charter/readme.charter"))))) | |
a5bfedb4 PN |
5633 | |
5634 | (define-public texlive-context-base | |
5635 | (package | |
5636 | (name "texlive-context-base") | |
5637 | (version (number->string %texlive-revision)) | |
5638 | (source (origin | |
5639 | (method svn-fetch) | |
5640 | (uri (svn-reference | |
5641 | (url (string-append "svn://www.tug.org/texlive/tags/" | |
5642 | %texlive-tag "/Master/texmf-dist/" | |
5643 | "/tex/context/base")) | |
5644 | (revision %texlive-revision))) | |
5645 | (file-name (string-append name "-" version "-checkout")) | |
5646 | (sha256 | |
5647 | (base32 | |
d4d9a1ec | 5648 | "0rlx4qqijms1n64gjx475kvip8l322fh7v17zkmwp1l1g0w3vlyz")))) |
a5bfedb4 PN |
5649 | (build-system trivial-build-system) |
5650 | (arguments | |
5651 | `(#:modules ((guix build utils)) | |
5652 | #:builder | |
5653 | (begin | |
5654 | (use-modules (guix build utils)) | |
5655 | (let ((target (string-append (assoc-ref %outputs "out") | |
5656 | "/share/texmf-dist/tex/context/case"))) | |
5657 | (mkdir-p target) | |
5658 | (copy-recursively (assoc-ref %build-inputs "source") target) | |
5659 | #t)))) | |
5660 | (home-page "https://www.ctan.org/pkg/context") | |
5661 | (synopsis "Full featured, parameter driven macro package for TeX") | |
5662 | (description "A full featured, parameter driven macro package, which fully | |
5663 | supports advanced interactive documents. See the ConTeXt garden for a wealth | |
5664 | of support information.") | |
5665 | (license license:gpl2+))) |