gnu: Add texlive-latex-preview.

* gnu/packages/tex.scm (texlive-latex-preview): New variable.
This commit is contained in:
Ricardo Wurmus 2017-07-09 21:27:38 +02:00
parent c178ffcaf2
commit 86af0f2a34
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 32 additions and 0 deletions

View File

@ -2523,6 +2523,38 @@ previously had an alias “unicode”; that alias has now been withdrawn, and no
package of that name now exists.") package of that name now exists.")
(license license:lppl1.3+))) (license license:lppl1.3+)))
(define-public texlive-latex-preview
(package
(name "texlive-latex-preview")
(version (number->string %texlive-revision))
(source (origin
(method svn-fetch)
(uri (texlive-ref "latex" "preview"))
(file-name (string-append name "-" version "-checkout"))
(sha256
(base32
"0j6fff6q0ca96nwfdgay2jm55792z4q9aa0rczmiw2qccyg5n2dv"))))
(build-system texlive-build-system)
(arguments
'(#:tex-directory "latex/preview"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-generated-file
(lambda _
(delete-file "preview.drv")
#t)))))
(home-page "http://www.ctan.org/pkg/preview")
(synopsis "Extract bits of a LaTeX source for output")
(description
"The main purpose of the preview package is the extraction of selected
elements from a LaTeX source, like formulas or graphics, into separate
pages of a DVI file. A flexible and convenient interface allows it to
specify what commands and constructs should be extracted. This works
with DVI files postprocessed by either Dvips and Ghostscript or
dvipng, but it also works when you are using PDFTeX for generating PDF
files.")
(license license:gpl3+)))
(define texlive-texmf (define texlive-texmf
(package (package
(name "texlive-texmf") (name "texlive-texmf")