diff options
author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-09-18 11:50:25 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-09-18 11:50:25 +0200 |
commit | 30d80e91b312124b4c0c8823947e37d297aee769 (patch) | |
tree | 0fdd34eb63baa9d0503b13a7fe361fcdd21ca385 | |
parent | bdca7d419e3e7e97903a29290353d8ccd2709f04 (diff) | |
download | lite-xl-plugins-30d80e91b312124b4c0c8823947e37d297aee769.tar.gz lite-xl-plugins-30d80e91b312124b4c0c8823947e37d297aee769.zip |
Add some comments in texcompile
-rw-r--r-- | plugins/texcompile.lua | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/texcompile.lua b/plugins/texcompile.lua index f860503..000ce6c 100644 --- a/plugins/texcompile.lua +++ b/plugins/texcompile.lua @@ -17,13 +17,18 @@ local keymap = require "core.keymap" -- view_command = "evince", -- } -- --- On windows you may use the full path for the commands like: +-- as long as the commands are in your PATH. +-- +-- On Windows, if the commands are not in your PATH, you may use the full path +-- of the executable like, for example: -- -- config.texcompile = { --- latex_command = [[c:\miktex\miktex\bin\x64\pdflatex.exe]], --- view_command = [[c:\miktex\miktex\bin\x64\miktex-texworks.exe]], +-- latex_command = [[C:\miktex\miktex\bin\x64\pdflatex.exe]], +-- view_command = [[C:\Program^ Files\SumatraPDF\SumatraPDF.exe]], -- } -- +-- Note that in the example we have used "^ " for spaces that appear in the path. +-- It is required on Windows for path or file names that contains space characters. command.add("core.docview", { ["texcompile:tex-compile"] = function() @@ -32,12 +37,12 @@ command.add("core.docview", { local texpath = common.dirname(core.active_view:get_filename()) local pdfname = texname:gsub("%.tex$", ".pdf") - -- LaTeX compiler - is there any provided by the environment + -- LaTeX compiler as configured in config.texcompile local texcmd = config.texcompile and config.texcompile.latex_command local viewcmd = config.texcompile and config.texcompile.view_command if not texcmd then - core.log("No LaTeX compiler provided.") + core.log("No LaTeX compiler provided in config.") else core.log("LaTeX compiler is %s, compiling %s", texcmd, texname) |