zepinglee / gbt7714-bibtex-style

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

gbt7714和hyperref生成(作者,年份)风格的引用时产生两个超链接,在natbib中也存在这一现象 #69

Closed ShadowUnderMoon closed 3 years ago

ShadowUnderMoon commented 3 years ago

如下两个链接讨论natbib和hyperref生成(作者,年份)风格的引用时产生两个超链接,给出了解决方案,但很麻烦: https://tex.stackexchange.com/questions/24136/natbib-and-hyperref-for-author-year-style-produces-two-links https://tex.stackexchange.com/questions/115039/single-link-in-author-year-citation-style-using-natbib-and-hyperref

以下给出一个例子:

\documentclass{ctexart}
\usepackage{gbt7714}
\bibliographystyle{gbt7714-author-year}
\usepackage[colorlinks=true,linkcolor=blue,citecolor=blue]{hyperref}
\begin{document}
    一个引用\citep{yeager1992human,delmas1992aminopeptidase,bai2020presumed}展示
    \bibliography{hello}
\end{document}

% hello.bib:
% @article{delmas1992aminopeptidase,
% title={Aminopeptidase N is a major receptor for the enteropathogenic coronavirus TGEV},
% author={Delmas, Bernard and Gelfi, Jacqueline and Lharidon, Rene and Vogel and Sjostrom, Hans and Noren and Laude, Hubert},
% journal={Nature},
% volume={357},
% number={6377},
% pages={417--420},
% year={1992}}
% @article{yeager1992human,
% title={Human aminopeptidase N is a receptor for human coronavirus 229E},
% author={Yeager, C and Ashmun, R A and Williams, Richard K and Cardellichio, C B and Shapiro, Linda H and Look, A T and Holmes, Kathryn V},
% journal={Nature},
% volume={357},
% number={6377},
% pages={420--422},
% year={1992}}
% @article{bai2020presumed,
% title={Presumed Asymptomatic Carrier Transmission of COVID-19},
% author={Bai, Yan and Yao, Lingsheng and Wei, Tao and Tian, Fei and Jin, Dongyan and Chen, Lijuan and Wang, Meiyun},
% journal={JAMA},
% year={2020}}
% @article{zhou2020clinical,
% title={Clinical course and risk factors for mortality of adult inpatients with COVID-19 in Wuhan, China: a retrospective cohort study},
% author={Zhou, Fei and Yu, Ting and Du, Ronghui and Fan, Guohui and Liu, Ying and Liu, Zhibo and Xiang, Jie and Wang, Yeming and Song, Bin and Gu, Xiaoying and others},
% journal={The Lancet},
% year={2020}}
% @article{remuzzi2020covid-19,
% title={COVID-19 and Italy: what next?},
% author={Remuzzi, Andrea and Remuzzi, Giuseppe},
% journal={The Lancet},
% year={2020}}

image

zepinglee commented 3 years ago

?这跟 gbt7714 似乎没啥关系

ShadowUnderMoon commented 3 years ago

也不是没关系😂,不过可能gbt7714继承了natbib,所以得到了相同的结果,但实际上,这并不是一种自然的处理。如果您可以对解决这个问题提出一些建议,我会非常感激

---原始邮件--- 发件人: "Zeping Lee"<notifications@github.com> 发送时间: 2020年8月29日(周六) 晚上9:01 收件人: "CTeX-org/gbt7714-bibtex-style"<gbt7714-bibtex-style@noreply.github.com>; 抄送: "gujianmu"<161170013@smail.nju.edu.cn>;"Author"<author@noreply.github.com>; 主题: Re: [CTeX-org/gbt7714-bibtex-style] gbt7714和hyperref生成(作者,年份)风格的引用时产生两个超链接,在natbib中也存在这一现象 (#69)

?这跟 gbt7714 似乎没啥关系

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

hushidong commented 3 years ago

两个超链接也没啥问题,关键是逗号的颜色是不是,你在定义符号的时候把逗号颜色改了就没事了呀。

zepinglee commented 3 years ago

gbt7714 虽然调用了 natbib,但是这个问题不适合在 gbt7714 这里进行 patch