Skip to content

Commit

Permalink
✨ Support lualatex
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Feb 2, 2025
1 parent 06f6511 commit c604337
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,9 @@ magick convert main-1.png -gravity North -crop 100%x20% main.png

## LuaLaTeX

WIP

```sh
texrocks install lualatex-fmt
luatex examples/tex/latex/main.tex
pdftocairo -png main.pdf
magick convert main-1.png -gravity North -crop 100%x20% main.png
lualatex examples/tex/latex/main.tex
```

## texdoc
Expand Down Expand Up @@ -95,6 +91,15 @@ Would you like to search online? (y/N) y
texrocks install l3build
```
## texluap
Sometimes you need a REPL to debug luatex. you can refer
[texluap](https://github.com/wakatime/prompt-style.lua#luatex):
```sh
texrocks install prompt-style
```
## Credit
- [rocks.nvim](https://github.com/nvim-neorocks/rocks.nvim)
Expand Down
7 changes: 7 additions & 0 deletions examples/tex/latex/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\documentclass{article}
\title{main}
\begin{document}

Hello, \LaTeX!

\end{document}
2 changes: 1 addition & 1 deletion lua/texrocks/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function M.main()
return
end
if args.rock ~= '' then
luarocks.cli { cmd, args.rock }
print(table.concat(luarocks.cli { cmd, args.rock }))
end
if args.install or args.remove then
adapter.sync()
Expand Down

0 comments on commit c604337

Please sign in to comment.