Open danecross opened 1 week ago
First things first:
I have just installed nvim and vimtex on my mac M1. Here is my full
init.lua
file: …require("config.lazy") vim.g.vimtex_view_method = 'zathura' vim.g.vimtex_compiler_method = 'latexmk'
and my full plugin file:
return { { "lervag/vimtex", lazy = false, -- we don't want to lazy load VimTeX -- tag = "v2.15", -- uncomment to pin to a specific release init = function() -- VimTeX configuration goes here, e.g. -- vim.g.vimtex_view_method = "zathura" end } }
You should move the VimTeX options inside the init
function - notice the comment you've already copied "VimTeX configuration goes here". ;)
So, init.lua
should look like this:
require("config.lazy")
and the plugin file:
return {
{
"lervag/vimtex",
lazy = false,
init = function()
vim.g.vimtex_view_method = 'zathura'
vim.g.vimtex_compiler_method = 'latexmk'
end
}
}
Now, the problem you are seeing does not have anything to do with VimTeX. It is most likely an incomplete install of LaTeX on your system. My suggestion would be to start with e.g. an example file as you've indicated, perhaps simplified for brevity:
% test.tex
\documentclass{article}
\usepackage{bibtex}
\addbibresource{bib.bib}
\usepackage{amsmath}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\cite{manual-full}
\printbibliography
\end{document}
And the same bib.bib
file. Now, in a terminal, go to the same directory and run latexmk test.tex
. What's the output?
Description
Hello, I seem to be having issues with compiling my latex document with bibtex. Particularly, I find that it can't find the
bibtex.sty
file. I have seen this issue, but deleting all of the compilation files and recompiling still doesn't do the trick.Steps to reproduce
I have the issue when I take the public example and add four lines:
before the beginning of the document and
before the end of the document. The
bib.bib
file looks like this:I have just installed nvim and vimtex on my mac M1. Here is my full
init.lua
file:and my full plugin file:
Expected behavior
No response
Actual behavior
When I compile the tex file with
\ll
, I get the following error:Do you use a latexmkrc file?
no
VimtexInfo