-
Notifications
You must be signed in to change notification settings - Fork 407
Citation highlighting disappears after buffer switch #2165
Copy link
Copy link
Closed
Labels
Description
Description
Citation highlighting disappears after a switch to a different buffer. Recompilation is necessary to bring it back. This issue didn't exist before the fix for #2152.
The only line is my .latexmkrc is $pdf_mode = 4;.
Steps to reproduce
gvim -u minimal.vim minimal.tex- Note the proper highlighting for
\autocites e dummy.texto switch bufferctrl-6switch back- Note that the highlighting is gone.
<local-leader>llto compile.- Note that the highlighting is back.
set nocompatible
let &runtimepath = '~/vimfiles/bundle/vimtex,' . &runtimepath " on Windows
let &runtimepath .= ',~/vimfiles/bundle/vimtex/after' " on Windows
set encoding=utf8
filetype plugin indent on
syntax enable
let g:vimtex_compiler_latexmk = {
\ 'continuous' : 0,
\}\documentclass{article}
\usepackage[style=verbose-ibid]{biblatex}
\addbibresource{highlight.bib}
\begin{filecontents}{highlight.bib}
@book{piccato,
author = {Piccato, Pablo},
title = {City of Suspects},
date = 2001,
publisher = {Duke University Press},
}
@book{vangennep,
author = {van Gennep, Arnold},
title = {Les rites de passage},
date = 1909,
publisher = {Nourry},
}
\end{filecontents}
\begin{document}
\begin{enumerate}
\item Only the postnote (``10'') is highlighted.
\autocite[10]{piccato}
\item No highlight here.
\autocites{piccato}{vangennep}
\item Only the postnote is highlighted.
\autocites[10]{piccato}{vangennep}
\item Only the first postnote is highlighted.
\autocites[10]{piccato}[20]{vangennep}
\item No highlight here.
\autocites{piccato}[20]{vangennep}
\end{enumerate}
\end{document}Expected behavior
Syntax highlighting should not be affected by switching buffer.
Actual behavior
Citation highlighting disappears after buffer is switched.
Do you use a latexmkrc file?
Yes
VimtexInfo
System info
OS: Microsoft Windows 10 Pro (10.0.19043 N/A Build 19043)
Vim version: VIM 8.2 ()
Has clientserver: true
Servername: GVIM1
VimTeX project: highlight
base: highlight.tex
root: C:\Users\Tom\Google Drive\Drug war
tex: C:\Users\Tom\Google Drive\Drug war\highlight.tex
main parser: current file verified
document class: article
packages: biblatex blx-case-expl3 etoolbox expl3 iftex ifthen infwarerr keyval kvoptions kvsetkeys logreq ltxcmds pdftexcmds url xparse
compiler: latexmk
engine: -lualatex
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 0
executable: latexmk
process:
jobid: process 33932 dead
output: C:\Users\Tom\AppData\Local\Temp\VIAA314.tmp
cmd: set max_print_line=2000 & latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -lualatex "highlight.tex"
viewer: General
qf method: LaTeX logfileReactions are currently unavailable