zepinglee / gbt7714-bibtex-style

GB/T 7714-2015 BibTeX Style
LaTeX Project Public License v1.3c
1.16k stars 197 forks source link

无法使用author-year样式 #110

Closed taogb2020 closed 1 year ago

taogb2020 commented 1 year ago

编译环境

宏包版本:gbt7714 v2.1.5 标注样式:authoryear 编译软件:sublime text 4

描述问题

使用\bibliographystyle{gbt7714-author-year},可是仍然是顺序编码制

bib 数据库代码:

@article{zhang_2008,
  title = {{青藏高原东缘川西地区的现今构造变形、应变分配与深部动力过程}},
  author = {张, 培震},
  year = {2008},
  journal = {中国科学(D辑:地球科学)},
  number = {9},
  pages = {1041--1056},
  issn = {1006-9267},
  langid = {cn},
  annotation = {{$<$}北大核心, EI{$>$}}
}

LaTeX中的代码:

\documentclass[review]{elsarticle}
% 加包的地方
%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lineno,hyperref}  % hyperref邮箱、网址引用:\href{}
%%%%%%%%%%%%%%%%%%%%%%%
% 支持中文显示
\usepackage[UTF8]{ctex}
%%%%%%%%%%%%%%%%%%%%%%%
%% 参考文献中英混排
\usepackage{gbt7714}
\bibliographystyle{gbt7714-author-year}
%%%%%%%%%%%%%%%%%%%%%%%
% 正文开始
\begin{document}
\begin{sloppypar} % 自动调整行文字间距

缝合带西侧的 江达-德钦-维西大型花岗岩基是被认为金沙江洋向西俯冲的最主要证据,但这一结论目前也受到质疑,不排除它是造山后或碰撞后成因的可能\cite{wu_2020}。

Thermal travertines are an archive of $\rm{CO_2}$ sources and sinks in hydrothermal systems. Two major regional factors control travertine precipitation: water availability and $\rm{CO_2}$ supply. Thus,travertines form a valuable archive of hydrodynamic variability and sources of main contributions to dissolved inorganic carbon (DIC). It is relevant to determine the main DIC sources of thermal waters (i.e., organic-matter degradation, recycled from older carbonates, emission of deep-seated magmatic $\rm{CO_2}$), as they are key inputs to calculate the lithosphere-atmosphere $\rm{CO_2}$ budget\citep{gibert_2009}.

Despite much effort and speculation, the origin of life on earth remains an enigma. Key problems to be solved include the time at which life first appeared on earth, the nature of the organisms involved and the mechanism of their dispersal across the earth\citep{glasby_1998}.

温泉出露地表为我们提供了了解地球深部的重要信息\citep{huang_1993}。

新特提斯洋主要存在于中生代,是位于劳亚大陆与冈瓦纳大陆之间的一个向东开口的海湾状大洋\citep{zhu_2022}.

\bibliography{mybibfile.bib}
\end{sloppypar} % 自动调整行文字间距
\end{document}

mybibfile.bib中的内容

@article{wu_2020,
  title = {{青藏高原东缘川西地区的现今构造变形、应变分配与深部动力过程}},
  author = {张, 培震},
  year = {2008},
  journal = {中国科学(D辑:地球科学)},
  number = {9},
  pages = {1041--1056},
  issn = {1006-9267},
  langid = {cn},
  annotation = {{$<$}北大核心, EI{$>$}}
}

@article{gibert_2009,
  title = {IGNEOUS ORIGIN OF {{$\rm{CO_2}$}} IN ANCIENT AND RECENT HOT-SPRING WATERS AND TRAVERTINES FROM THE NORTHERN {{ARGENTINEAN ANDES}}},
  author = {Gibert, Roger O. and Taberner, Conxita and Saez, Alberto and Giralt, Santiago and Alonso, Ricardo N. and Edwards, R. Lawrence and Pueyo, Juan J.},
  year = {2009},
  journal = {Journal of Sedimentary Research},
  volume = {79},
  number = {7-8},
  pages = {554--567},
  doi = {10.2110/jsr.2009.061}
}

@article{glasby_1998,
  title = {Earliest Life in the {{Archean}}: {{Rapid}} Dispersal of {{$\rm{CO_2}$-utilizing}} Bacteria from Submarine Hydrothermal Vents},
  author = {Glasby, G. P.},
  year = {1998},
  month = dec,
  journal = {Episodes},
  volume = {21},
  number = {4},
  pages = {252--256}
}

@article{zhu_2022,
  title = {{印度-亚洲碰撞大地构造}},
  author = {许, 志琴 and 杨, 经绥 and 李, 海兵 and 嵇, 少丞 and 张, 泽明 and 刘, 焰},
  year = {2011},
  journal = {地质学报},
  volume = {85},
  number = {1},
  pages = {1--33},
  issn = {0001-5717},
  langid = {cn},
  annotation = {{$<$}北大核心, CSCD{$>$}}
}

@misc{huang_1993,
  title = {{中国与世界主要含油气区大地构造比较分析}},
  author = {任, 纪舜 and 邓, 平 and 肖, 藜薇 and 牛, 宝贵 and 王, 军},
  year = {2006},
  journal = {地质学报},
  number = {10},
  pages = {1491-1500+1643-1644},
  issn = {0001-5717},
  langid = {cn},
  annotation = {{$<$}北大核心{$>$}}
}

截图: MWM1({J1039NMMO7TZ(JN6T

taogb2020 commented 1 year ago

补充了一个MWE,麻烦看看

zepinglee commented 1 year ago

大概是因为 elsarticle.cls 中也进行了 natbib 的格式。

简单试了一下 \documentclass[review,authoryear]{elsarticle} 可以使用 author-year 式引注。

taogb2020 commented 1 year ago

大概是因为 elsarticle.cls 中也进行了 natbib 的格式。

简单试了一下 \documentclass[review,authoryear]{elsarticle} 可以使用 author-year 式引注。

可以了,谢谢回复,再次感谢