summaryrefslogtreecommitdiff
path: root/gnu/packages/tex.scm
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2023-05-14 10:59:11 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2023-07-18 18:10:57 +0200
commit3a7b887b3d82d3d5359a85155f4d41a1cb23808f (patch)
treedd6019f17fec2fdf63a34d16d4d9b641229d1605 /gnu/packages/tex.scm
parentc1fd80b1c95b0da1cec7fe5908753bdad4152fb1 (diff)
gnu: Add texlive-luacode.
* gnu/packages/tex.scm (texlive-luacode): New variable.
Diffstat (limited to 'gnu/packages/tex.scm')
-rw-r--r--gnu/packages/tex.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 4447c81f83..62ea04d23b 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -4195,6 +4195,32 @@ releases. The bundle consists of a Lua script to run the tasks and a
context of LuaTeX.")
(license (list license:lppl1.3c license:expat))))
+(define-public texlive-luacode
+ (package
+ (name "texlive-luacode")
+ (version (number->string %texlive-revision))
+ (source (texlive-origin
+ name version
+ (list "doc/lualatex/luacode/"
+ "source/lualatex/luacode/"
+ "tex/lualatex/luacode/")
+ (base32
+ "1dyld5yb57p3j7wz591plbgjy7dk7ngn8cxw1lfmvx8iprgk1f8d")))
+ (outputs '("out" "doc"))
+ (build-system texlive-build-system)
+ (propagated-inputs
+ (list texlive-iftex
+ texlive-luatexbase))
+ (home-page "https://ctan.org/pkg/luacode")
+ (synopsis "Helper for executing Lua code from within TeX")
+ (description
+ "Executing Lua code from within TeX with directlua can sometimes be
+tricky: there is no easy way to use the percent character, counting
+backslashes may be hard, and Lua comments don't work the way you expect. The
+package provides the @code{\\luaexec} command and the @code{luacode}
+environments to help with these problems.")
+ (license license:lppl1.3+)))
+
(define-public texlive-lualatex-math
(package
(name "texlive-lualatex-math")