![Citet 无法与 alphaurl bibliographystyle 配合使用](https://linux22.com/image/466603/Citet%20%E6%97%A0%E6%B3%95%E4%B8%8E%20alphaurl%20bibliographystyle%20%E9%85%8D%E5%90%88%E4%BD%BF%E7%94%A8.png)
我正在使用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}