gnu: Add texlive-pythontex.

* gnu/packages/tex.scm (texlive-pythontex): New variable.
This commit is contained in:
Nicolas Goaziou 2023-07-13 09:39:23 +02:00
parent 79272bedc1
commit 453c307e2f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -13253,6 +13253,42 @@ (define-public texlive-pyluatex
file in a single compilation run.")
(license (list license:expat license:lppl1.3c))))
(define-public texlive-pythontex
(package
(name "texlive-pythontex")
(version (number->string %texlive-revision))
(source (texlive-origin
name version
(list "doc/latex/pythontex/" "scripts/pythontex/"
"source/latex/pythontex/"
"tex/latex/pythontex/")
(base32
"161kyk3sg7fnp9wxjmb1c9xbw0az0dxw2izipdyz0378ciqhqjfw")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments (list #:link-scripts #~(list "depythontex.py" "pythontex.py")))
(inputs (list python))
(home-page "https://ctan.org/pkg/pythontex")
(synopsis "Run Python from within a document, typesetting the results")
(description
"The package allows you to enter Python code within a LaTeX document,
execute the code, and access its output in the original document. There is
also support for Bash, JavaScript, Julia, Octave, Perl, R, Raku (Perl 6),
Ruby, Rust, and SageMath. Code is only executed when it has been modified, or
when it meets user-specified criteria. Code may be divided into user-defined
sessions, which automatically run in parallel. Errors and warnings are
synchronized with the LaTeX document, so that they refer to the document's
line numbers. External dependencies can be tracked, so that code is
re-executed when the data it depends on is modified. PythonTeX also provides
syntax highlighting for code in LaTeX documents via the Pygments syntax
highlighter.
The package also provides a @command{depythontex} utility. This creates
a copy of the document in which all Python code has been replaced by its
output. This is useful for journal submissions, sharing documents, and
conversion to other formats.")
(license license:lppl1.3+)))
(define-public texlive-koma-script
(package
(name "texlive-koma-script")