我正在尝试使用IEEEtranbib
和bibentry
,hyperref
但是却陷入困境。
平均能量损失
\documentclass[conference]{IEEEtran/IEEEtran}
\usepackage{bibentry}
\makeatletter\let\saved@bibitem\@bibitem\makeatother
\usepackage{hyperref}
\makeatletter\let\@bibitem\saved@bibitem\makeatother
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@IEEEtranBSTCTL{IEEEexample:BSTcontrol,
CTLuse_forced_etal = "yes",
CTLmax_names_forced_etal = "4",
CTLnames_show_etal = "2",
CTLdash_repeated_names = "no"
}
@article{myentry,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
url = "https://dwqdhqwjkdhqkjdhqd.dwqdq/djkqwb",
pages = "342--351"
}
\end{filecontents}
\newcommand{\fullcite}[1]{\begin{NoHyper}\bibentry{#1}\end{NoHyper}}
\begin{document}
\bstctlcite{IEEEexample:BSTcontrol}
\nobibliography*
A citation: \cite{myentry}
Inline entry: \begin{NoHyper}\bibentry{myentry}\end{NoHyper}
\bibliographystyle{IEEEtranbib/IEEEtran}
\bibliography{IEEEtranbib/IEEEabrv,\jobname}{}
\end{document}
编译时出错:
Runaway argument?
\BIBentryALTinterwordspacing G.~D. Greenwade, ``The {C}omprehensive {\ETC.
! Paragraph ended before \BR@c@bibitem was complete.
<to be read again>
\par
l.30
我尝试过无数种额外的renewcommand
或的组合makeatletter
,例如:
\makeatletter
\renewcommand\bibentry[1]{\nocite{#1}{\frenchspacing
\@nameuse{BR@r@#1\@extra@b@citeb}}}
\makeatother
有人可以提供一个简单的例子来说明如何IEEEtranbib
使用bibentry
以及hyperref
当 bib 条目有url
字段时如何工作吗?