标题说明了一切。我无法在.MWEbibentry
中工作,如下所示:europcv
MWE.tex
:
\documentclass[helvetica,openbib,nologo,notitle,notitle,totpages]{europecv}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[a4paper,top=4cm,left=2cm,right=2cm,bottom=2cm]{geometry}
\usepackage[english]{babel}
\usepackage{url}
\usepackage{bibentry}
\renewcommand\refname{List of Publications}
\ecvname{Face, Cat}
\ecvfootername{C.F.}
\ecvemail{\url{[email protected]}}
\ecvpage{\thepage}
\begin{document}
\selectlanguage{english}
\begin{europecv}
\ecvpersonalinfo[5pt]
\ecvsection{Education and Degrees}
\ecvitem{2012}{\textbf{Mewsters degree}}
\ecvsection{Work Experience}
\ecvitem{June 2007 - present}{\textbf{Lying in the sun all day}}
\ecvsection{Publications and Technical Reports}
\ecvitem{$\bullet$}{\bibentry{Whiskers2016}}
\ecvsection{Research Projects}
\ecvitem{Aug - Dec 2011}{\textbf{Trying to get my tail to quit twitching while I sleep}}
\end{europecv}
\bibliographystyle{plain}
\nobibliography{MWE.bib}
\end{document}
MWE.bib
:
\begin{thebibliography}{99}
@article{Whiskers2016,
author = "Fancy Whiskers",
title = "How to kill your owner while they sleep",
year = "2016",
note = "In preparation"
}
\end{thebibliography}
bibentry
但我希望在要点处有一个...
答案1
您可以在的文档中bibentry
阅读:
这些命令(
\bibentry
)只能在之后发出\nobibliography
,否则参考文本将无法得知。
这意味着您必须更改代码中的命令顺序。请参阅以下 MWE \nobibliography
:\bibentry
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Whiskers2016,
author = "Fancy Whiskers",
title = "How to kill your owner while they sleep",
year = "2016",
note = "In preparation",
}
\end{filecontents*}
\documentclass[helvetica,openbib,nologo,notitle,notitle,totpages]{europecv}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[a4paper,top=4cm,left=2cm,right=2cm,bottom=2cm]{geometry}
\usepackage[english]{babel}
\usepackage{url}
\usepackage{bibentry}
\renewcommand\refname{List of Publications}
\ecvname{Face, Cat}
\ecvfootername{C.F.}
\ecvemail{\url{[email protected]}}
\ecvpage{\thepage}
\begin{document}
\bibliographystyle{plain}
\nobibliography{\jobname} % <===========================================
\selectlanguage{english}
\begin{europecv}
\ecvpersonalinfo[5pt]
\ecvsection{Education and Degrees}
\ecvitem{2012}{\textbf{Mewsters degree}}
\ecvsection{Work Experience}
\ecvitem{June 2007 - present}{\textbf{Lying in the sun all day}}
\ecvsection{Publications and Technical Reports}
\ecvitem{$\bullet$}{\bibentry{Whiskers2016}} % <========================
\ecvsection{Research Projects}
\ecvitem{Aug - Dec 2011}{\textbf{Trying to get my tail to quit twitching while I sleep}}
\end{europecv}
\end{document}
结果如下: