Commit: f3dab8585e490d6ee89d7b2b574628a851c40078
Parent: 3874390bb8661dd41dec9bfec503401308526f48
Author: Randy Palamar
Date: Wed, 30 Aug 2023 10:02:43 -0600
vis: build: latex: use draft mode first
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/.config/vis/build.lua b/.config/vis/build.lua
@@ -16,10 +16,10 @@ vis.events.subscribe(vis.events.FILE_SAVE_PRE, fmt_file)
local function build_files(win)
local build_tex = function (f)
- local cmd = "pdflatex -halt-on-error " .. f.name
+ local cmd = "pdflatex -halt-on-error "
- -- build pdf
- local err, ostr = vis:pipe(cmd)
+ -- build in draft mode to update references
+ local err, ostr = vis:pipe(cmd .. "-draftmode " .. f.name)
if err ~= 0 then
if ostr then
util.message_clear(vis)
@@ -34,8 +34,8 @@ local function build_files(win)
-- update glossary
-- vis:command("!makeglossaries " .. fp .. " >/dev/null")
- -- build pdf with updated references
- err = vis:pipe(cmd)
+ -- build actual pdf
+ err = vis:pipe(cmd .. f.name)
if err ~= 0 then return false end
-- reload pdf (zathura does this automatically)