How can I add reftex-default-bibliography libraries to latex as a local variable?

I have a reftex-default-bibliography master bibliography but I want to use a custom bib file in my tex file. I am using Emacs-AucTeX-RefTeX. At the end of my Tex file, I wrote:

%%% Local Variables:
%%% reftex-default-bibliography: "~/texmf/tex/latex/demo2LatexEmacs/mini.bib"
%%% End:

      

When I try to use the Ref command \cite

, I can only search for my main bib file and not the local mini.bib file. Is there something wrong with the way I wrote the code for the local variables?

+3


source to share


1 answer


The beginning docstring for reftex-default-bibliography

says:

List of BibTeX database files to be used if not specified.



In other words, it looks like it expects a list, so you need to enclose your file in parentheses to make it one of the elements:

%%% Local Variables:
%%% reftex-default-bibliography: ("~/texmf/tex/latex/demo2LatexEmacs/mini.bib")
%%% End:

      

+1


source







All Articles