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