Suggestion for \\cite in Emacs with AUCTeX

天大地大妈咪最大 提交于 2019-12-03 11:24:35

The variable reftex-default-bibliography is what defines the default bibliography to use. I don't do much with mult-file documents, do you have reftex-plug-into-AUCTeX turned on?

Judith

Have you tried: Ref -> Parse Dokument -> Entire Document? That solved the problem for me.

mjsr

Yes, modifying this variable is a solution (I don't know if it is the "best solution"). I go to the ref menu -> Customize -> Browse Reftex Group -> Reftex Citacion Support -> Reftex Default Bibliography and then I add the path to the bib file (without the .bib extension) and it works!! These options create this in the init file:

(custom-set-variables

 '(reftex-default-bibliography (quote ("D:/mybibdirectory/mybibfile"))))
(custom-set-faces

 )

Well, perhaps that it works now that suggestions are going to appear in every document that I write. It would be good have a solution only for this document.

Reading the help file of reftex (reftex->finding files) also mentions make the next modifications in order to get the suggestions:

(setq reftex-bibpath-environment-variables
                '("D:/mybibdirectory/"))
Sankalp

You may also try the solution mentioned in Re: auctex - no valid bibliography?. It worked for me.

(It might help to check whether you have kpsewhich installed, before attempting to use this fix. The following command should output its path if you do have it installed:

$ which kpsewhich

)

When in the buffer of your non-master file, try to query for the name of a master file (again) with C-c _ (Control C + underscore) as explained in auctex manual

This will add the local variable TeX-master to the end of your file. Save your file, restart emacs and load your file again. Hopefully, you can now get references from the bibliography stated in your master file by calling C-c [ in the subfile.

Mysteriously, when I do this manually without letting auctex query for it, it does not work. I cannot see how the end result is different in the auto directory either. But somehow letting auctex query for the value made it work for me.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!