# Auto-complete feature for Texmaker citations

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?

• Options-->Configure Texmaker-->Editor-->Is completion checked on and add .bib extension \addbibresource{biblatex-examples.bib}. Check if you can see bib file-name in Structure on left side pane. – texenthusiast Feb 19 '14 at 15:35
• @texenthusiast Why not add an answer? :) – user11232 Feb 20 '14 at 0:42
• @HarishKumar Just to be safe, I am waiting reply from OP if my suggestion worked. – texenthusiast Feb 20 '14 at 2:43
• @texenthusiast Some times (actually most of the times) you won't get reply if it works ;). Hence make it an answer :) – user11232 Feb 20 '14 at 6:39
• I found that closing and oppening the programme works really well. Be sure to try that – erncyp Sep 23 '15 at 14:25

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.

• Sometimes I need to also press Edit -> Refresh Bibliography to make the new entries appear. (Alt-E, <Up>, <Enter>) – np8 Aug 21 '16 at 8:42

I found it out now after several tests. I have the following file for all bibliography stuff:

\renewcommand{\bibname} {C Literaturverzeichnis}
\bibliography{bibtex/entries}


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? – kwoxer Apr 13 '15 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.

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. – Henri Menke Mar 3 '17 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

New contributor
Filomena Garcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.