[Vim-latex-devel] (no subject)
Brought to you by:
srinathava,
tmaas
|
From: Zach B. <zb...@gm...> - 2018-10-11 19:12:06
|
Hi all,
Sorry if the format is wrong--first time submitting a patch anywhere. I
would like to submit the following simple patch. See below for the details.
Best,
Zach
>From 7ed2740e40741dc58bf1dccc3dcdd54da0d25b5a Mon Sep 17 00:00:00 2001
From: "Zachary M. Boyd" <zb...@gm...>
Date: Thu, 11 Oct 2018 14:57:28 -0400
Subject: [PATCH] Fixed support for user-defined g:Tex_CompileRule_bib
Previously, the value of this variable was ignored.
Now, the trailing $* is stripped off, and then the variable is exec'ed
to run Bibtex.
---
ftplugin/latex-suite/compiler.vim | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/ftplugin/latex-suite/compiler.vim
b/ftplugin/latex-suite/compiler.vim
index be9e267..d1dcc31 100644
--- a/ftplugin/latex-suite/compiler.vim
+++ b/ftplugin/latex-suite/compiler.vim
@@ -624,9 +624,14 @@ function! Tex_CompileMultipleTimes()
let biblinesBefore = Tex_CatFile(bibFileName)
echomsg "Running '".Tex_GetVarValue('Tex_BibtexFlavor')."' ..."
- let temp_mp = &mp | let &mp =
Tex_GetVarValue('Tex_BibtexFlavor')
- exec 'silent! make '.mainFileName_root
- let &mp = temp_mp
+
+ " strip off the $* at the end of Tex_CompileRule_bib
+ if split(g:Tex_CompileRule_bib)[-1] !=# '$*'
+ let tmp_compileRule =
join(split(g:Tex_CompileRule_bib)[:-2])
+ else
+ let tmp_compileRule = g:Tex_CompileRule_bib
+ endif
+ exec 'silent !' . tmp_compileRule . ' ' . mainFileName_root
let biblinesAfter = Tex_CatFile(bibFileName)
|