I frequently use the command \citeauthor{ME:paper} \cite{ME:paper}. Further, when one types \citeauthor{ or \cite{, a list of the loaded references appears; I can then type \cite{ME:p and hit enter to auto complete. (This happens in TeXstudio at least.) I would like to create a new command
\newcommand{\citeauthnum}[1]{\citeauthor{#1} \cite{#1}}
But doing this doesn't give me the auto complete options. (I tried Ctrl+Space but this doesn't load it.)
Even better, I'd be able to add an optional argument and write \cite[#2]{#1}.
It looks to me like this question is relevant: Where does TexStudio get its citation autocomplete list from?.
natbibthe command\citeauthnumis basically\citet, if you usebiblatexit is\textcite, so if you are lucky, you don't have to define a new command at all. – moewe Jun 08 '19 at 06:32\textciteis perfect, thank you! If you add that as an answer, I'll accept; I'm happy to do it too, but you should get the rep bonus! :) – Sam OT Jun 08 '19 at 15:21