64 lines
988 B
YAML
64 lines
988 B
YAML
id: "tex"
|
|
aliases:
|
|
- "latex"
|
|
- "xetex"
|
|
- "plaintex"
|
|
name: "TeX"
|
|
|
|
install:
|
|
prepare:
|
|
apt:
|
|
# Lua 5.4 is the most recent version but seemingly it's not
|
|
# supported by luarocks.
|
|
- lua5.3
|
|
- liblua5.3
|
|
- luarocks
|
|
apt:
|
|
- lua5.3
|
|
- texlive-binaries
|
|
manual: |
|
|
install -d "${pkg}/usr/local/bin"
|
|
|
|
luarocks --tree="${pkg}/opt/digestif" install digestif
|
|
|
|
cat <<EOF > "${pkg}/usr/local/bin/digestif"
|
|
#!/usr/bin/env bash
|
|
|
|
$(luarocks --tree=/opt/digestif path)
|
|
exec /opt/digestif/bin/digestif "\$@"
|
|
EOF
|
|
chmod +x "${pkg}/usr/local/bin/digestif"
|
|
|
|
repl: |
|
|
tex
|
|
input: |
|
|
\newcount\x
|
|
\advance\x by 123
|
|
\multiply\x by 234
|
|
\message{\the\x}
|
|
|
|
main: "main.tex"
|
|
template: |
|
|
\message{Hello, world!}
|
|
|
|
run: |
|
|
tex main.tex
|
|
|
|
scope:
|
|
code: |
|
|
\newcount\x
|
|
\advance\x by 123
|
|
\multiply\x by 234
|
|
input: |
|
|
\message{\the\x}
|
|
|
|
lsp:
|
|
start: |
|
|
digestif
|
|
lang: "tex"
|
|
code: "TODO"
|
|
item: "TODO"
|
|
|
|
skip:
|
|
- lsp
|