I have Texmaker 4.1.1 and autocomplete feature for citations doesn't work in it. I have my .bib file in the correct directory (the same as my .tex
file), use biblatex
, have added the command \addbibresource{<my .bib file>}
in the correct place in the .tex
file, and have already tried refreshing bibliography from Edit menu. Could you suggest some way to fix this?
6 Answers
Made comment into answer which satisfied the OP
Options
-->Configure Texmaker
-->Editor
--> Is completion
checked on and add .bib
extension \addbibresource{biblatex-examples.bib}
. Check if you can see .bib
file in Structure on left side pane or open the .bib
file with Texmaker from File menu.
-
9Sometimes I need to also press
Edit
->Refresh Bibliography
to make the new entries appear. (Alt-E, <Up>, <Enter>)– np8Aug 21, 2016 at 8:42 -
worth mentioning that this
Refresh Bibliography
trick needs to be done in Master in order to work, not in another script with e.g. sections.– joaoalJan 17, 2020 at 9:40
I found it out now after several tests. I have the following file for all bibliography stuff:
\renewcommand{\bibname} {C Literaturverzeichnis}
\bibliographystyle{alphadin}
\bibliography{bibtex/entries}
\addcontentsline{toc}{section}{\bibname}
And I had the same issue like you. Everything is working and the bibliography and literature is correctly referenced. But I do not have any cite popup/sugguestion.
So the only thing I needed to do to always get it working, was opening the file with the commands above and one time hit compile. Now I always get the cite popups again.
I don't know to do that automatically, but at least it's working again now. Maybe someone could share how to do that?
-
Well it's a currently working solution. It just contains a question but that question is not needed to fix the issues. And the other solution above did not work when I was trying it right now. So I decided to show my solution here. Where is the problem guys?– kwoxerApr 13, 2015 at 12:43
In Windows 7 and MikTex(basic-miktex-2.9.5105)+TexMaker4.3+bibtex file, I found that if I use command like these:
\bibliographystyle{bst file name}
\bibliography {bib file name}
then \cite will not auto-complete.
yet however if I use command like these:
\bibliographystyle{bst file name}
\bibliography{bib file name}
then \cite will auto-complete the reference normally.
The only difference is that there is a space between \bibliography and {bib file name} or not.
It should be noted that both of the above could display the reference in article normally.
-
Actually, for me on Windows 10 the opposite worked. Without the space, i.e.
\bibliography{bib file name}
, the auto-completion was not working. By adding the space and recompiling, the auto-completion worked. After this, I removed the space and compiled again, and the auto-completion was still working– cholo14Nov 8, 2020 at 13:27
Make sure to load the .bib
file from your master document (root .tex
file), loading it from and \input
or \include
will cause trouble.
It would look something like:
\documentclass[a4paper,11pt,oneside]{memoir}
\input{Preamble}
\bibliography{BIBLIOGRAPHY} % load the .bib here.
\begin{document}
\cite{what ever} % should now run with auto compile.
\end{document}
Obv, you should remember to load BibLaTeX and set styles in your preamble.
-
I don't think that
\bibliography
in the preamble will give the desired output. Mar 3, 2017 at 12:32
What worked for me is
Options-->Configure Texmaker-->Editor
and then check the checkbox near "check for external changes"
I had to add .bib to the name of the bibliography file:
so instead of \bibliography{bibliographyfilename} I have \bibliography{bibliographyfilename.bib} and now it works...
Good luck
Options
-->Configure Texmaker
-->Editor
-->Iscompletion
checked on and add.bib
extension\addbibresource{biblatex-examples.bib}
. Check if you can see bibfile-name
inStructure
on left side pane.