@BOOKMARK achemso-demo 模板的 .bib 文件有错误

@BOOKMARK achemso-demo 模板的 .bib 文件有错误

我正在尝试编译 Joseph Wright 在 JACS 网站上提供的模板。虽然编译时没有任何错误(如果我排除包mhchem),但当我添加.bib文件时,我收到一条错误消息! Paragraph ended before \@BOOKMARK was complete。您对我的问题有什么建议吗?以下是模板中的文档:test.tex

\documentclass[journal=jacsat,manuscript=article]{achemso}

%\usepackage[version=3]{mhchem}
\usepackage[T1]{fontenc}      
\usepackage{array}
\usepackage{booktabs}
\usepackage{hypdoc}
\usepackage{listings}
\usepackage{lmodern}
\usepackage{mathpazo}
\usepackage{microtype}
\usepackage{caption}
\usepackage{float}
\usepackage{geometry}
\usepackage{natbib}
\usepackage{setspace}
\usepackage{xkeyval}
\usepackage{amsmath}
%%%%%%%%%%%%%%%%%%
\title {\bf Synergistic effect in the co-assembly of type-I and type-III
  collagens}

\begin{document}
\section{Introduction}
co-fibril of type-I/III\\
 \cite{silver84}: monomer lengths Table 1 - fix author names\\
\cite{romanic91}: type-III co-assembles with type-I and makes fibrils 
   thinner.\\
\bigskip

\bibliography{achemso-demo}
\end{document}

我的 bib 文件是:test.bib

@article{silver84,
  title={Molecular structure of collagen in solution: comparison of types {I}, {II}, {III} and {V}},
  author={Silver, F H and Birk, D E},
  journal={Int. J. Biol. Macromol.},
  volume={6},
  number={3},
  pages={125--132},
  year={1984},
  publisher={Elsevier}
}
@article{romanic91,
  title={Copolymerization of p{N}collagen {III} and collagen {I}. p{N}collagen {III} decreases the rate of incorporation of collagen {I} into fibrils, the amount of collagen {I} incorporated, and the diameter of the fibrils formed.},
  author={Romanic, A M and Adachi, E and Kadler, K E and Hojima, Y and Prockop, D J},
  journal={J. Biol. Chem.},
  volume={266},
  number={19},
  pages={12703--12709},
  year={1991},
  publisher={ASBMB}
}

答案1

hyperref如果我加载而不是 ,则不会出现错误hypdoc(这是相对于包的添加doc,在这里是不合适的)。另外,您不应该使用geometrysetspace,因为该类已经处理了分页设置。lmodern如果您稍后加载 ,则加载毫无用处mathpazo。您不需要xkeyval,它是其他包的辅助包,也不natbib需要 已被类加载。

请注意,hyperref应该最后加载,并选择您拥有的包。

避免使用诸如\bf(顺便说一下,这是一个过时的命令)这样的明确标记\title:该类已经完成了所需的事情。

\begin{filecontents*}{\jobname.bib}
@article{silver84,
  title={Molecular structure of collagen in solution: comparison of types {I}, {II}, {III} and {V}},
  author={Silver, F H and Birk, D E},
  journal={Int. J. Biol. Macromol.},
  volume={6},
  number={3},
  pages={125--132},
  year={1984},
  publisher={Elsevier}
}
@article{romanic91,
  title={Copolymerization of p{N}collagen {III} and collagen {I}. p{N}collagen {III} decreases the rate of incorporation of collagen {I} into fibrils, the amount of collagen {I} incorporated, and the diameter of the fibrils formed.},
  author={Romanic, A M and Adachi, E and Kadler, K E and Hojima, Y and Prockop, D J},
  journal={J. Biol. Chem.},
  volume={266},
  number={19},
  pages={12703--12709},
  year={1991},
  publisher={ASBMB}
}
\end{filecontents*}

\documentclass[journal=jacsat,manuscript=article]{achemso}
\usepackage[T1]{fontenc}      

\usepackage[version=3]{mhchem}
\usepackage{array}
\usepackage{booktabs}
\usepackage{listings}
\usepackage{mathpazo}
\usepackage{microtype}
\usepackage{caption}
\usepackage{float}
\usepackage{amsmath}
\usepackage{hyperref}

%%%%%%%%%%%%%%%%%%
\title {Synergistic effect in the co-assembly of type-I and type-III
  collagens}

\begin{document}
\section{Introduction}
co-fibril of type-I/III

\cite{silver84}: monomer lengths Table 1 - fix author names

\cite{romanic91}: type-III co-assembles with type-I and makes fibrils 
   thinner.

\bibliography{\jobname}
\end{document}

在此示例中,我filecontents仅使用使其自包含;使用您的 bib 文件名,而不是\jobname在参数中使用\bibliography

在此处输入图片描述

相关内容