如果我使用\citeA{Rannenberg}
它,它可以工作,但\cite{Rannenberg}
我会收到错误:
("C:\Documents and Settings\Administrator\Desktop\BA Test\chapters/test.tex"
Kapitel 1.
Class scrbook Warning: \float@addtolists detected!
(scrbook) You should use the features of package `tocbasic'
(scrbook) instead of \float@addtolists.
(scrbook) Support for \float@addtolists may be removed from
(scrbook) `scrbook' soon .
Overfull \vbox (1.94844pt too high) has occurred while \output is active
[1]
Runaway argument?
]{Rannenberg}
! Paragraph ended before \@citex was complete.
<to be read again>
\par
l.65
?
听听我的例子:
\usepackage{natbib}
\usepackage[nosectionbib]{apacite}
\bibliographystyle{apacite}
\bibliography{bib/testbib}
@book{Rannenberg,
author = {Rannenberg, Kai},
year = {2002},
title = {{S}icherheit bei {M}obile {B}anking},
address = {Frankfurt am Main},
urldate = {01.03.2011},
institution = {{Fachbereich Wirtschaftswissenschaften Johann Wolfgang Goethe-Universit{\"a}t Frankfurt am Main}}
}
我的目标是获得以下结果:(Rannenberg,2002:38)。38 是页码。
答案1
我遇到了同样的错误。我刚刚\usepackage{cite}
从主 TeX 文件中删除了该包,然后\cite{reference}
就正常工作了!
您可以使用:
\cite[p.~38]{Rannenberg}
以便获取参考文献的页码。希望这能有所帮助。
答案2
请提供完整的工作示例,而不仅仅是那些没有真正展示您具体做了什么的片段。如果我改变顺序natbib
,apacity
我对这个例子没有问题:
\documentclass{scrartcl}
\usepackage[nosectionbib]{apacite}
\usepackage{natbib}
\begin{filecontents}{testbib.bib}
@book{Rannenberg,
author = {Rannenberg, Kai},
year = {2002},
title = {{S}icherheit bei {M}obile {B}anking},
address = {Frankfurt am Main},
urldate = {01.03.2011},
institution = {{Fachbereich Wirtschaftswissenschaften Johann Wolfgang Goethe-Universit{\"a}t Frankfurt am Main}}
}
\end{filecontents}
\begin{document}
foo~\cite[38]{Rannenberg}
\bibliographystyle{apacite}
\bibliography{testbib}
\end{document}
答案3
我遇到了同样的问题,当使用类似的情况时\cite{Rannenberg}
,我仔细查看了的内容后.tex
,发现在使用时我漏掉了一个“}” \cite{}
,所以我最后直接使用了\cite{Rannenberg
,而没有使用a 。}
我希望这对某些人有帮助。