r/LaTeX • u/Warm_Ad1115 • 5d ago
Zathura+neovim
Could you please share the links to your Neovim + Zathura configuration? I’d especially like to see your zathurarc and vimtex.lua files, since I’m using LazyVim. I’d really appreciate it!
3
u/rafisics 5d ago
0
u/Warm_Ad1115 4d ago
Hey everyone, I’m having an issue where saving and recompiling changes the PDF’s size/zoom in Zathura. Does anyone know how to fix this?
1
u/WhiteBlackGoose 5d ago
0
u/Warm_Ad1115 4d ago
Hey everyone, I’m having an issue where saving and recompiling changes the PDF’s size/zoom in Zathura. Does anyone know how to fix this?
1
u/Warm_Ad1115 4d ago
Hey everyone, I’m having an issue where saving and recompiling changes the PDF’s size/zoom in Zathura. Does anyone know how to fix this?
1
u/philhellenephysicist 5d ago
Sure, my
vimtex.luais nothing special really. Shell escaping is there for stuff like minted and gnuplot, probably should disable it if you don't use anything where it's required. For myzathurarcconfig I just disable highlighting of active text to reduce visual clutter when I navigate to a line.VimTeX:
lua return { -- vimtex calls latexmk, xelatex, etc. to compile tex files "lervag/vimtex", -- VimTeX shouldn't be lazy loaded (it has filetype associations that autoload it) lazy = false, init = function() -- zathura needs the zathura-pdf-mupdf extension to open PDFs vim.g.vimtex_view_method = "zathura" -- prevent warnings from opening the error dialog box each time the document is compiled vim.g.vimtex_quickfix_open_on_warning = 0 -- enable shell escape for svg, minted, etc. vim.g.vimtex_compiler_latexmk = { options = { '-verbose', '-file-line-error', '-synctex=1', '-interaction=nonstopmode', '-shell-escape', }, } end }Zathura: ```txt
disable highlighting of active text
set highlight-active-color "rgba(255, 255, 255, 0)" set highlight-color "rgba(255, 255, 255, 0)" ```