Cannot compile bibliography #3157
-
Hi, I am using vimtex for my paper and having issues when compiling bibliography. Compiling normal text is working fine, but as soon as I introduce a reference, I get an error saying the key is undefined, but clearly the key is defined. I am using neovim with lazy, below is my configuration. Also weird is that none of the completion works. Am I doing something wrong with the configuration? The error is as follows
My 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_enabled = "1"
-- vim.g.vimtex_view_method = "mupdf"
-- vim.g.vimtex_view_mupdf_send_keys = "f"
-- vim.g.vimtext_view_general_viewer = "qimgv"
vim.g.vimtex_compiler_method = "latexmk"
-- vim.g.vimtex_view_general_options = "--unique file:@pdf\#src:@line@tex"
vim.g.vimtex_complete_close_braces = "1"
vim.g.vimtex_complete_enabled = "1"
vim.g.vimtex_syntax_enabled = "1"
vim.g.vimtex_complete_commands = "1"
vim.g.vimtex_complete_environments = "1"
vim.g.vimtex_complete_filenames = "1"
vim.g.vimtex_quickfix_ignore_filters = 'Marginpar on page'
vim.g.vimtex_quickfix_open_on_warning = '0'
end
} I have this in my document for bibliography and I use \bibliographystyle{unsrt}
\bibliography{DNAJB6b-PolyQ-Paper}
and in the bib file one example entry is as follows @article{adupaTertiaryStructureConformational2024,
title = {Tertiary Structure and Conformational Dynamics of the Anti-Amyloidogenic Chaperone {{DNAJB6b}} at Atomistic Resolution},
author = {Adupa, Vasista and Ustyantseva, Elizaveta and Kampinga, Harm H. and Onck, Patrick R.},
year = {2024},
month = apr,
journal = {Nature Communications},
volume = {15},
number = {1},
pages = {3285},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-024-46587-z},
urldate = {2025-04-23},
abstract = {xxxxxxxx},
copyright = {2024 The Author(s)},
langid = {english},
keywords = {Atomistic models,Chaperones,Computational biophysics,Computational models,mywork},
} Neovim version
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
fixed it, there are several instances in my file with |
Beta Was this translation helpful? Give feedback.
-
First, glad to see you were able to fix this yourself. I just wanted to comment your config. I propose to update it to the following equivalent, simplified and slightly fixed version: return {
"lervag/vimtex",
lazy = false,
init = function()
vim.g.vimtex_complete_close_braces = true
vim.g.vimtex_quickfix_ignore_filters = { "Marginpar on page" }
vim.g.vimtex_quickfix_open_on_warning = false
end
} The options I removed were either 1) not valid options, or 2) not option values that were not changed from their default values. Notice also that you had used a wrong type for the |
Beta Was this translation helpful? Give feedback.
fixed it, there are several instances in my file with
\sim{}
and that is causing the citations to not work.