使用具体样式在 Beamer 中引用参考书目

使用具体样式在 Beamer 中引用参考书目

在 Beamer 演示中,我想引用一些参考书目。我准备了以下最小示例:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}



@article{ZINC,
author = {Irwin, John J and Shoichet, Brian K},
title = {{ZINC--a free database of commercially available compounds for virtual screening.}},
journal = {Journal of Chemical Information and Modeling},
year = {2005},
volume = {45},
number = {1},
pages = {177--182},
}



@article{Jorgensen,
author = {Jorgensen, WL},
title = {{The many roles of computation in drug discovery}},
journal = {Science},
year = {2004},
volume = {303},
number = {5665},
pages = {1813--1818},
}

\end{filecontents*}


\documentclass{beamer}
\begin{document}


\begin{frame}
This is a nice paper \cite{ZINC,Jorgensen}
\end{frame}

\begin{frame}
\bibliographystyle{alpha}

\bibliography{\jobname}
\end{frame}

\end{document}

在演示结束时,我得到了一张包含两个引文的幻灯片,其格式正是我需要的(抱歉,如果“格式”在这里不是确切的词)。但我不希望这样,我希望在引用它们的幻灯片上,它们以这种格式出现,并省略包含所有参考书目的最后一张幻灯片。如何做到这一点?我希望我的问题现在更清楚了

PS:我想要的格式是

John J Irwin 和 Brian K Shoichet。ZINC——用于虚拟筛选的免费商用化合物数据库。《化学信息与建模杂志》,45(1):177–182,2005 年。

期刊名称以斜体显示(本例中为《化学信息与建模杂志》)

答案1

这应该就是你想要的。

\documentclass{beamer}

\usepackage[style=verbose]{biblatex}

\renewbibmacro{in:}{%
  \ifentrytype{article}{}{%
  \printtext{\bibstring{in}\intitlepunct}}}

\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat[article]{title}{#1}

\renewbibmacro*{journal+issuetitle}{%
  \renewbibmacro*{note+pages}{}% NEW
  \usebibmacro{journal}%
%   \setunit*{\addspace}%
  \setunit*{\addcomma\space}% NEW
  \iffieldundef{series}{%
  }{%
    \newunit
    \printfield{series}%
    \setunit{\addspace}%
  }%
  \printfield{volume}%
%   \setunit*{\adddot}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}%
  \setunit{\addspace}%
  \printfield{note}% NEW
  \setunit{\addcolon}% NEW
  \printfield{pages}% NEW
  \setunit{\addspace}% NEW
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit
}

\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{ZINC,
author = {Irwin, John J and Shoichet, Brian K},
title = {ZINC--a free database of commercially available compounds for virtual screening},
journal = {Journal of Chemical Information and Modeling},
year = {2005},
volume = {45},
number = {1},
pages = {177--182},
}
@article{Jorgensen,
author = {Jorgensen, WL},
title = {The many roles of computation in drug discovery},
journal = {Science},
year = {2004},
volume = {303},
number = {5665},
pages = {1813--1818},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\begin{frame}
This is a nice paper: \textcite{ZINC,Jorgensen}
\end{frame}

\end{document}

相关内容