如上图所示,有没有人能给萌新指导一下?
@article{Thomas2008,
author = {Thomas, Christine M. and Liu, Tianbiao and Hall, Michael B.
and Darensbourg, Marcetta Y.},
title = {Series of Mixed Valent {Fe(II)Fe(I)} Complexes That Model the
{H(OX)} State of [{FeFe}]Hydrogenase: Redox Properties,
Density-Functional Theory Investigation, and Reactivity with
Extrinsic {CO}},
journal = {Inorg. Chem.},
year = {2008},
volume = {47},
number = {15},
pages = {7009-7024},
doi = {10.1021/ic800654a},
}
@book{
Graham1995,
author = {Ronald L. Graham and Donald E. Knuth and Oren Patashnik},
title = {Concrete Mathematics},
publisher = {Addison-Wesley},
year = {1995},
}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{natbib}
\begin{document}
The mathematics showcase is from \citet{Graham1995}, whereas
there is some chemistry in \citet{Thomas2008}.
Some parenthetical citations: \citep{Graham1995}
and then \citep[p.~56]{Thomas2008}.
\citep{Graham1995}
Together \citep{Graham1995,Thomas2008}
\bibliographystyle{plainnat}
\bibliography{learnlatex}
\end{document}
如果你不提供
learnlatex.tex
,learnlatex.bib
编译方式等信息,很难具体地帮助你。@article{Thomas2008,
author = {Thomas, Christine M. and Liu, Tianbiao and Hall, Michael B.
title = {Series of Mixed Valent {Fe(II)Fe(I)} Complexes That Model the
journal = {Inorg. Chem.},
year = {2008},
volume = {47},
number = {15},
pages = {7009-7024},
doi = {10.1021/ic800654a},
}
@book{Graham1995,
author = {Ronald L. Graham and Donald E. Knuth and Oren Patashnik},
title = {Concrete Mathematics},
publisher = {Addison-Wesley},
year = {1995},
}
上面是learnlatex.bib文件。
下面是learnlatex.tex文件。
documentclass{article}
usepackage[T1]{fontenc}
usepackage{natbib}
begin{document}
The mathematics showcase is from citet{Graham1995}, whereas
there is some chemistry in citet{Thomas2008}.
Some parenthetical citations: citep{Graham1995}
and then citep[p.~56]{Thomas2008}.
citepSee{Graham1995}
Together citep{Graham1995,Thomas2008}
bibliographystyle{plainnat}
bibliography{learnlatex}
end{document}
在此感谢这位网友的热心回答,谢谢!
你的代码是没有问题的,但是
pdflatex-pdflatex-bibtex-pdflatex
这一编译链路是不够的;我实际测试,需要使用
pdflatex-bibtex-pdflatex-bibtex-pdflatex
编译可以实现这一效果;或者更直接地,使用latexmk -pdflatex <filename>
编译可以自动执行,效果如下图。另外,你确实需要看一下上面提到的"围栏代码块"让你的代码正确高亮,而不是直接粘贴到这里。

同时,这种情况下提供MWE的更好方式是上传.zip文件。