diff --git a/README.md b/README.md index e77c221..b520bb6 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/examples/tex/latex/main.tex b/examples/tex/latex/main.tex new file mode 100644 index 0000000..5869473 --- /dev/null +++ b/examples/tex/latex/main.tex @@ -0,0 +1,7 @@ +\documentclass{article} +\title{main} +\begin{document} + +Hello, \LaTeX! + +\end{document} diff --git a/lua/texrocks/cmd.lua b/lua/texrocks/cmd.lua index 56913b8..450adc8 100644 --- a/lua/texrocks/cmd.lua +++ b/lua/texrocks/cmd.lua @@ -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()