I am using bibtex and natbib for a scrartcl and the editor texmaker and everything works fine, except that I don't have auto-completion for (only) the command \citet
. For \citep
it works just fine. And both citation commands also do work. It's just a question of convenience for me.
How do I get auto-completion to work here?
Here's the tex file code (text reduced to a minimum):
\documentclass[a4paper, 12pt]{scrartcl}
\usepackage{fancyhdr}
\pagestyle{headings}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,~}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\newcommand{\changefont}[3]{\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{blindtext}
%----------------end-of-preamble----------------
%---------------begin-of-document---------------
\begin{document}
\section{Local Density Estimator}
Considering only equal-mass stars, \citet{vonhoerner1963} defined the local mean density around a star as ...
\bibliographystyle{plainnat}
\bibliography{/home/hmm/bib/clusters}
\end{document}
Best Answer
I posted the issue on the website recommended and got a very helpful reply:
Updates: Status: Done Comment #1 on issue 1306 by ... : Auto-completion for \citet http://code.google.com/p/texmaker/issues/detail?id=1306 You can add what you want for the auto-completion : "User" menu -> "Customize completion" : \citet{#bib#}
I wasn't aware that you could do that. It works perfectly now. Thanks!