From e0f8188975b0ba2a14973ca02adb34207674ebed Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 15:59:12 +0200 Subject: [PATCH] gnu: Add texlive-pythonimmediate. * gnu/packages/tex.scm (texlive-pythonimmediate): New variable. --- gnu/packages/tex.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 723f916cc0..127faa3301 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -93295,6 +93295,39 @@ (define-public texlive-python script's output in the document.") (license license:gpl3+))) +(define-public texlive-pythonimmediate + (package + (name "texlive-pythonimmediate") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/pythonimmediate/" + "tex/latex/pythonimmediate/") + (base32 + "0qdmb155k34g5mml04a8rwwgq9m4s984cjd732zx34hbbqd5rvzr"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (propagated-inputs (list texlive-currfile texlive-l3packages + texlive-precattl texlive-saveenv)) + (home-page "https://ctan.org/pkg/pythonimmediate") + (synopsis "Library to run Python code") + (description + "This is a library to run Python code. Just like PerlTeX or PyLuaTeX, +this only requires a single run, and variables are persistent throughout the +run. Unlike PerlTeX or PyLuaTeX, there is no restriction on compiler or +script required to run the code. + +There are also debugging functionalities: TeX errors result in Python +traceback, and Python errors result in TeX traceback. Errors in code executed +with the @code{pycode} environment give the correct traceback point to the +Python line of code in the TeX file. For advanced users, this package allows +the user to manipulate the TeX state directly from within Python, so you don't +need to write a single line of TeX code. + +In addition to this LaTeX package you need the Python +@code{pythonimmediate-tex} package.") + (license license:lppl1.3c))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar