Citet 无法与 alphaurl bibliographystyle 配合使用

Citet 无法与 alphaurl bibliographystyle 配合使用

我正在使用alphaurl引用样式。当我使用该\citet命令时,我收到以下错误(作者?)。有没有办法使用引用样式显示作者姓名alphaurl

\documentclass[twoside,openright,%
11pt,oldfontcommands]{memoir}

\usepackage[square,comma,numbers,sort]{natbib}
%\input{preamble} 
%\definecolor{keywordcolor}{RGB}{127,0,85}


\begin{document}

Hello world \citet{Test12}

\bibliographystyle{alphaurl}
\bibliography{memoire}

\end{document}

以及memoire.bib

@article{Test12,
    author = "John Smith",
    title = "Test Article",
    year = "2012",
    journal = "The Test Journal"
}

答案1

您可以使用该包(请注意.bib 文件中usebib的使用){...}

\documentclass[twoside,openright,%
11pt,oldfontcommands]{memoir}

\usepackage{usebib}
\newbibfield{author}

\begin{filecontents*}[overwrite]{\jobname.bib}
@article{Test12,
    author = {John Smith},
    title = {Test Article},
    year = {2012},
    journal = {The Test Journal}
}
\end{filecontents*}

\bibinput{\jobname}

\begin{document}

Hello world \usebibentry{Test12}{author} \cite{Test12} 

\bibliographystyle{alphaurl}
\bibliography{\jobname}

\end{document}

相关内容