blob: a9257f4e09dadfa01f7d156b5fbe97bb8b07b0bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# lt3luabridge
[![license](https://img.shields.io/github/license/witiko/markdown)](LICENSE)
[![ci](https://github.com/witiko/lt3luabridge/actions/workflows/main.yml/badge.svg)][4]
lt3luabridge is an [expl3][1] package for plain TeX, LaTeX, and ConTeXt that
allows you to execute Lua code in LuaTeX or any other TeX engine that exposes
the shell:
``` tex
\documentclass{standalone}
\usepackage{lt3luabridge}
\begin{document}
$ 1 + 2 = \luabridgeExecute{ print(1 + 2) } $
\end{document}
```
lt3luabridge was previously part of [the Markdown package for TeX][2], where it
has been battle-tested since 2016. [Since 2022][3], lt3luabridge has been
available as a separate package.
[1]: http://mirrors.ctan.org/macros/latex/contrib/l3kernel/expl3.pdf
[2]: https://www.ctan.org/pkg/markdown
[3]: https://github.com/witiko/markdown/pull/141
[4]: https://github.com/Witiko/lt3luabridge/actions
|