Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

citekey autofill not working with \Volcite and \volcite when using correct biblatex syntax #2878

Closed
alexandreroberts opened this issue Feb 1, 2024 · 4 comments
Labels

Comments

@alexandreroberts
Copy link

alexandreroberts commented Feb 1, 2024

Description

This is closely related to the feature request I recently made:

When I type <C-x><C-o> in the citekey field of cite commands of the form \volcite{1}[23]{w} and \Volcite{1}[23]{w} (in insert mode, with cursor after the w), the expected citekey autofill menu does not pop up. It only works when I omit the mandatory volume number argument.

I suspect that while the highlighting issue raised in my feature request was fixed, there is another change necessary to make the autofill work.

Steps to reproduce

nvim -u test.vim main.tex

main.tex:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

% Normal:
\documentclass[12pt,article,draft]{memoir}

\usepackage{biblatex-chicago}
\addbibresource{biblatex-examples.bib}

\begin{document}

\volcite{1}[23]{w}

\volcite[23]{w} 

\end{document}

test.vim:

set nocompatible 
set mmp=5000

call plug#begin('~/.vim/plugged')
Plug 'lervag/vimtex'
call plug#end()

set spell

Expected behavior

The menu should pop up in both cases.

Actual behavior

It only does when the biblatex syntax is incorrect.

Do you use a latexmkrc file?

yes (but it is not relevant)

VimtexInfo

System info:
  OS: macOS 13.2 (22D49)
  Vim version: NVIM v0.9.4
  Has clientserver: true
  Servername: /var/folders/92/6c80fs_55hnf_1s2ybgbv5c40000gn/T/nvim.robe941/0BlfjY/nvim.50469.0

VimTeX project: main
  base: main.tex
  root: /Users/robe941/Google Drive/tex-issues-and-MWEs/vimtex-volcite-citekeyAutofill
  tex: /Users/robe941/Google Drive/tex-issues-and-MWEs/vimtex-volcite-citekeyAutofill/main.tex
  main parser: current file verified
  document class: memoir
  packages: biblatex-chicago
  compiler: latexmk
    engine: -xelatex
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: General
  qf method: LaTeX logfile
@alexandreroberts
Copy link
Author

I haven't tested it, but I imagine the same problem propagates in the other variants like \fvolcite and \pvolcite.

lervag added a commit that referenced this issue Feb 1, 2024
@lervag
Copy link
Owner

lervag commented Feb 1, 2024

Can you update and check if my latest commit fixes this?

@alexandreroberts
Copy link
Author

That did it -- thank you!

@lervag
Copy link
Owner

lervag commented Feb 1, 2024

My pleasure; thanks for raising issues :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants