mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
gnu: texlive-latex-base: Install additional formats.
* gnu/packages/tex.scm (texlive-latex-base)[arguments]: Additionally build and install tex.fmt, pdftex.fmt, pdfetex.fmt, and pdflatex.fmt.
This commit is contained in:
parent
6bcf1cd5db
commit
bd6e23856f
1 changed files with 14 additions and 6 deletions
|
@ -735,11 +735,14 @@ (define-public texlive-latex-base
|
|||
(and (zero? (system* "luatex" "-ini" "-interaction=batchmode"
|
||||
"-output-directory=build"
|
||||
"unpack.ins"))
|
||||
;; LaTeX and XeTeX require e-TeX, which is enabled only in
|
||||
;; extended mode (activated with a leading asterisk). We
|
||||
;; should not use luatex here, because that would make the
|
||||
;; generated format files incompatible with any other TeX
|
||||
;; engine.
|
||||
(zero? (system* "tex" "-ini" "-interaction=batchmode"
|
||||
"-output-directory=web2c"
|
||||
"tex.ini"))
|
||||
;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
|
||||
;; is enabled only in extended mode (activated with a
|
||||
;; leading asterisk). We should not use luatex here,
|
||||
;; because that would make the generated format files
|
||||
;; incompatible with any other TeX engine.
|
||||
|
||||
;; FIXME: XeTeX fails to build because neither
|
||||
;; \XeTeXuseglyphmetrics nor \XeTeXdashbreakstate are
|
||||
|
@ -751,7 +754,8 @@ (define-public texlive-latex-base
|
|||
"-translate-file=cp227.tcx"
|
||||
(string-append "*" format ".ini"))))
|
||||
'("latex" ;"xetex"
|
||||
))
|
||||
"pdflatex"
|
||||
"pdfetex"))
|
||||
(every
|
||||
(lambda (format)
|
||||
(zero? (system* "luatex" "-ini" "-interaction=batchmode"
|
||||
|
@ -772,6 +776,10 @@ (define-public texlive-latex-base
|
|||
(find-files "build" ".*"))
|
||||
(for-each (cut install-file <> web2c)
|
||||
(find-files "web2c" ".*"))
|
||||
;; pdftex is really just the same as pdfetex, but since it
|
||||
;; doesn't have its own format file, we need to copy it.
|
||||
(copy-file "web2c/pdfetex.fmt"
|
||||
(string-append web2c "/pdftex.fmt"))
|
||||
#t))))))
|
||||
(native-inputs
|
||||
`(("texlive-bin" ,texlive-bin)
|
||||
|
|
Loading…
Reference in a new issue