如何在具有 IEEE 样式的参考书目条目中包含数学模式?

如何在具有 IEEE 样式的参考书目条目中包含数学模式?

我刚刚花了一段时间才确定我的文件中的这个引用bib在运行后阻止了编译bib mwe。我收到错误:! Extra }, or forgotten $.。我发现当我将样式更改为某些样式时它会编译,但也不会ieeephys问题是标题中的希腊字符 \lambda。我怎样才能让这个引用与这些 biblatex 样式兼容?

\begin{filecontents}{\jobname.bib}
@article{qiu_saltdependent_2011,
  title = {Salt-Dependent DNA-DNA Spacings in Intact Bacteriophage $\ensuremath{\lambda}$ Reflect Relative Importance of DNA Self-Repulsion and Bending Energies}, % ieee does not like math mode commands
  % title = {Salt-Dependent DNA DNA Spacings in Intact Bacteriophage lambda Reflect Relative Importance of DNA Self Repulsion and Bending Energies}, % runs fine
  author = {Qiu, Xiangyun and Rau, Donald C. and Parsegian, V. Adrian and Fang, Li Tai and Knobler, Charles M. and Gelbart, William M.},
  journal = {Phys. Rev. Lett.},
  volume = {106},
  issue = {2},
  pages = {028102},
  numpages = {4},
  year = {2011},
  month = {Jan},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRevLett.106.028102},
  url = {http://link.aps.org/doi/10.1103/PhysRevLett.106.028102}
}
\end{filecontents}

\documentclass{article}

\usepackage[
%  style=phys,       % ! Extra }, or forgotten $.
  style=ieee,       % ! Extra }, or forgotten $.
%  style=chem-acs,   % this one works
%  style=science,    % this one works
%  style=nejm,       % this one works
%  style=nature,     % this one works
%  style=chem-rsc,   % this one works
%  style=chem-angew, % this one works
  backend=biber
]{biblatex}

\addbibresource{\jobname.bib}

\begin{document}

test text here \cite{qiu_saltdependent_2011}.

\printbibliography

\end{document}

我使用以下命令进行编译:

rm *.blg *.bib *.bbl *.aux -f && pdflatex mwe.tex && biber mwe && pdflatex mwe.tex 

答案1

如果我使用,则不会出现任何错误{$\lambda$};我已检查过style=physstyle=ieee

\begin{filecontents}{\jobname.bib}
@article{qiu_saltdependent_2011,
  title = {Salt-Dependent {DNA-DNA} Spacings in Intact Bacteriophage {$\lambda$} Reflect
           Relative Importance of {DNA} Self-Repulsion and Bending Energies},
  author = {Qiu, Xiangyun and Rau, Donald C. and Parsegian, V. Adrian and Fang,
            Li Tai and Knobler, Charles M. and Gelbart, William M.},
  journal = {Phys. Rev. Lett.},
  volume = {106},
  issue = {2},
  pages = {028102},
  numpages = {4},
  year = {2011},
  month = {Jan},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRevLett.106.028102},
  url = {http://link.aps.org/doi/10.1103/PhysRevLett.106.028102}
}
\end{filecontents}

\documentclass{article}

\usepackage[
  style=phys,       % ! Extra }, or forgotten $.
%  style=ieee,       % ! Extra }, or forgotten $.
%  style=chem-acs,   % this one works
%  style=science,    % this one works
%  style=nejm,       % this one works
%  style=nature,     % this one works
%  style=chem-rsc,   % this one works
%  style=chem-angew, % this one works
  backend=biber
]{biblatex}

\addbibresource{\jobname.bib}

\begin{document}

test text here \cite{qiu_saltdependent_2011}.

\printbibliography

\end{document}

还要注意周围的括号DNA,因此它不是小写的。

第一张图是带有style=phys,第二张图是带有style=ieee

输出style=phys

在此处输入图片描述

输出style=ieee

在此处输入图片描述

相关内容