| 1 |
# lt3luabridge |
| 2 |
|
| 3 |
[](LICENSE) |
| 4 |
[][4] |
| 5 |
|
| 6 |
lt3luabridge is an [expl3][1] package for plain TeX, LaTeX, and ConTeXt that |
| 7 |
allows you to execute Lua code in LuaTeX or any other TeX engine that exposes |
| 8 |
the shell: |
| 9 |
|
| 10 |
``` tex |
| 11 |
\documentclass{standalone} |
| 12 |
\usepackage{lt3luabridge} |
| 13 |
\begin{document} |
| 14 |
$ 1 + 2 = \luabridgeExecute{ print(1 + 2) } $ |
| 15 |
\end{document} |
| 16 |
``` |
| 17 |
|
| 18 |
lt3luabridge was previously part of [the Markdown package for TeX][2], where it |
| 19 |
has been battle-tested since 2016. [Since 2022][3], lt3luabridge has been |
| 20 |
available as a separate package. |
| 21 |
|
| 22 |
[1]: https://mirrors.ctan.org/macros/latex/required/l3kernel/expl3.pdf |
| 23 |
[2]: https://www.ctan.org/pkg/markdown |
| 24 |
[3]: https://github.com/witiko/markdown/pull/141 |
| 25 |
[4]: https://github.com/Witiko/lt3luabridge/actions |
| 26 |
|
| 27 |
## Additional information |
| 28 |
|
| 29 |
- Author: Vít Starý Novotný <[email protected]> |
| 30 |
- License: LaTeX Project Public License (LPPL) 1.3c |