为参考书目添加评论

为参考书目添加评论

在化学期刊中,人们经常注意到包含评论的参考书目条目,参见附件。如何使用 BibTeX/LaTeX 获得这样的结果?

在此处输入图片描述

答案1

这是一个使用的解决方案biblatex及其chem-acs样式。bibmacrobegentry被修改为打印内部“intronote”宏的含义,其名称包含当前 bibentry 的键(如果存在这样的宏)。\intronote{<entry key>}{<note text>}使用新的用户命令来定义注释。MWE(使用 XeLaTeX 编译):

\documentclass{article}

\usepackage[style=chem-acs]{biblatex}

\makeatletter

\newcommand*{\intronote}[2]{%
  \csdef{cbx@#1@intronote}{#2}%
}

\renewbibmacro*{begentry}{%
  \ifcsdef{cbx@\thefield{entrykey}@intronote}{%
    \csuse{cbx@\thefield{entrykey}@intronote}\addperiod\space
  }{%
  }%
}

\intronote{Herrmann1999}{Some introductory note.}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@ARTICLE{Herrmann1999,
  author = {Ackermann, Lutz and Fürstner, Alois and Weskamp, Thomas and Kohl,
    Florian J. and Herrmann, Wolfgang A.},
  title = {{R}uthenium carbene complexes with imidazolin-2-ylidene ligands allow
    the formation of tetrasubstituted cycloalkenes by {RCM}},
  journaltitle = {Tetrahedron Lett.},
  year = {1999},
  volume = {40},
  number = {26},
  pages = {4787-4790},
  doi = {10.1016/S0040-4039(99)00919-3},
  timestamp = {2010.12.03}
}
@ARTICLE{Richards2008,
  author = {Adam, Fatima I. and Hogarth, Graeme and Kabir, Shariff E. and Richards,
    Idris},
  title = {{M}odels of the iron-only hydrogenase: {S}ynthesis and protonation
    of bridge and chelate complexes [{F}e2({CO})4{Ph2P(CH2)nPPh2}(μ-pdt)]
    (n = 2–4) – evidence for a terminal hydride intermediate},
  journaltitle = {C. R. Chimie},
  year = {2008},
  volume = {11},
  number = {8},
  pages = {890-905},
  doi = {10.1016/j.crci.2008.03.003},
  keywords = {di-iron hydrogenases, hydrogenases},
  timestamp = {2009.09.21}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

\printbibliography

\end{document}

在此处输入图片描述

答案2

您不能直接使用以下命令执行此操作\cite:将注释添加到引文中,打印引用使用的位置,而不是参考书目。相反,您需要创建一个misc(或类似的)数据库条目来包含所需的信息。手动完成时,这需要一个单独的数据库来存储注释(将它们混合在“标准”.bib文件中可能不是一个好主意)。但是,我的notes2bib将使该过程自动化,允许您在文件中写入信息.tex。接下来的问题是如何创建此类笔记的日记部分。最直接的方法是手动操作:

\begin{filecontents}{\jobname.bib}
@ARTICLE{Herrmann1999,
  author = {Ackermann, Lutz and Fürstner, Alois and Weskamp, Thomas and Kohl,
    Florian J. and Herrmann, Wolfgang A.},
  title = {{R}uthenium carbene complexes with imidazolin-2-ylidene ligands allow
    the formation of tetrasubstituted cycloalkenes by {RCM}},
  journaltitle = {Tetrahedron Lett.},
  year = {1999},
  volume = {40},
  number = {26},
  pages = {4787-4790},
  doi = {10.1016/S0040-4039(99)00919-3},
  timestamp = {2010.12.03}
}

@ARTICLE{Richards2008,
  author = {Adam, Fatima I. and Hogarth, Graeme and Kabir, Shariff E. and Richards,
    Idris},
  title = {{M}odels of the iron-only hydrogenase: {S}ynthesis and protonation
    of bridge and chelate complexes [{F}e2({CO})4{Ph2P(CH2)nPPh2}(μ-pdt)]
    (n = 2–4) – evidence for a terminal hydride intermediate},
  journaltitle = {C. R. Chimie},
  year = {2008},
  volume = {11},
  number = {8},
  pages = {890-905},
  doi = {10.1016/j.crci.2008.03.003},
  keywords = {di-iron hydrogenases, hydrogenases},
  timestamp = {2009.09.21}
}
\end{filecontents}
\documentclass{article}
\usepackage{notes2bib}
\usepackage[numbers,sort&compress,super]{natbib}
\usepackage{natmove}
\bibliographystyle{JAmChemSoc}
\begin{document}
Some text
  \bibnote{A notes about: Adam, F.~I.; Hogarth, G.; Kabir, S. E.
    \emph{C.~R.~Chemie}, \textbf{2008}, \emph{11}, 890--895}.
More text \cite{Herrmann1999}.
\bibliography{\jobname}
\end{document}

如果你想要一个关于某些内容的注释,而这些注释也会作为单独的条目出现在参考书目中,你可以参考我如何列出 BibTeX 文件中与评论一致的参考文献?

相关内容