You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
\usepackage{bibtex}
\addbibresource{bib.bib}
before the beginning of the document and
\cite{manual-full}
\printbibliography
before the end of the document. The bib.bib file looks like this:
@MANUAL{manual-full,
author = "Larry Manmaker",
title = "The Definitive Computer Manual",
organization = "Chips-R-Us",
address = "Silicon Valley",
edition = "Silver",
month = apr # "-" # may,
year = 1986,
note = "A full MANUAL entry",
}
I have just installed nvim and vimtex on my mac M1. Here is my full init.lua 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
}
}
Expected behavior
No response
Actual behavior
When I compile the tex file with \ll, I get the following error:
! LaTeX Error: File `bibtex.sty' not found.
./main.tex:15: Emergency stop.
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". ;)
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
The text was updated successfully, but these errors were encountered: