Closed qizhengyang2017 closed 7 months ago
@zepinglee 谢谢解答。但是这种格式不符合我们学校的要求。如果作者首字母和年份相同的话,我想在年份后面加字母用来区分。比如(Li et al 2023a)和(Li et al 2023b)。字母的顺序按照bibliography里文献的顺序。请问该如何做到这一点呢?下面是两篇示例文献
[
{
"id": "li2023",
"type": "article-journal",
"abstract": "Effective utilization of wild relatives is key to overcoming challenges in genetic improvement of cultivated tomato, which has a narrow genetic basis; however, current efforts to decipher high-quality genomes for tomato wild species are insufficient. Here, we report chromosome-scale tomato genomes from nine wild species and two cultivated accessions, representative of Solanum section Lycopersicon, the tomato clade. Together with two previously released genomes, we elucidate the phylogeny of Lycopersicon and construct a section-wide gene repertoire. We reveal the landscape of structural variants and provide entry to the genomic diversity among tomato wild relatives, enabling the discovery of a wild tomato gene with the potential to increase yields of modern cultivated tomatoes. Construction of a graph-based genome enables structural-variant-based genome-wide association studies, identifying numerous signals associated with tomato flavor-related traits and fruit metabolites. The tomato super-pangenome resources will expedite biological studies and breeding of this globally important crop.",
"container-title": "Nature Genetics",
"DOI": "10.1038/s41588-023-01340-y",
"ISSN": "1546-1718",
"issue": "5",
"journalAbbreviation": "Nat Genet",
"language": "en",
"license": "2023 The Author(s)",
"note": "number: 5\npublisher: Nature Publishing Group",
"page": "852-860",
"source": "www.nature.com",
"title": "Super-pangenome analyses highlight genomic diversity and structural variation across wild and cultivated tomato species",
"URL": "https://www.nature.com/articles/s41588-023-01340-y",
"volume": "55",
"author": [
{
"family": "Li",
"given": "Ning"
},
{
"family": "He",
"given": "Qiang"
},
{
"family": "Wang",
"given": "Juan"
},
{
"family": "Wang",
"given": "Baike"
},
{
"family": "Zhao",
"given": "Jiantao"
},
{
"family": "Huang",
"given": "Shaoyong"
},
{
"family": "Yang",
"given": "Tao"
},
{
"family": "Tang",
"given": "Yaping"
},
{
"family": "Yang",
"given": "Shengbao"
},
{
"family": "Aisimutuola",
"given": "Patiguli"
},
{
"family": "Xu",
"given": "Ruiqiang"
},
{
"family": "Hu",
"given": "Jiahui"
},
{
"family": "Jia",
"given": "Chunping"
},
{
"family": "Ma",
"given": "Kai"
},
{
"family": "Li",
"given": "Zhiqiang"
},
{
"family": "Jiang",
"given": "Fangling"
},
{
"family": "Gao",
"given": "Jie"
},
{
"family": "Lan",
"given": "Haiyan"
},
{
"family": "Zhou",
"given": "Yongfeng"
},
{
"family": "Zhang",
"given": "Xinyan"
},
{
"family": "Huang",
"given": "Sanwen"
},
{
"family": "Fei",
"given": "Zhangjun"
},
{
"family": "Wang",
"given": "Huan"
},
{
"family": "Li",
"given": "Hongbo"
},
{
"family": "Yu",
"given": "Qinghui"
}
],
"accessed": {
"date-parts": [
[
"2023",
7,
28
]
]
},
"issued": {
"date-parts": [
[
"2023",
5
]
]
}
},
{
"id": "li2023b",
"type": "article-journal",
"abstract": "The excellent Upland cotton (Gossypium hirsutum) cultivars developed since 1949 have made a huge contribution to cotton production in China, the world’s largest producer and consumer of cotton. However, the genetic and genomic basis for the improvements of these cotton cultivars remains largely unclear. In this study, we selected 16 Upland cotton cultivars with important historical status in Chinese cotton breeding and constructed a multiparent, advanced generation, intercross (MAGIC) population comprising 920 recombinant inbred lines. A genome-wide association study using the MAGIC population identified 54 genomic loci associated with lint yield and fiber quality. Of them, 25 (46.30%) pleiotropic genomic loci cause simultaneous changes of lint yield and/or fiber quality traits, revealing complex trade-offs and linkage drags in Upland cotton agronomic traits. Deep sequencing data of 11 introduced ancestor cultivars and publicly available resequencing datasets of 839 cultivars developed in China during the past 70 years were integrated to explore the historical distribution and origin of the elite or selected alleles. Interestingly, 85% of these elite alleles were selected and fixed from different American ancestors, consistent with cotton breeding practices in China. However, seven elite alleles of native origin that are responsible for Fusarium wilt resistance, early maturing, good-quality fiber, and other characteristics were not found in American ancestors but have greatly contributed to Chinese cotton breeding and wide cultivation. Taken together, these results provide a genetic basis for further improving cotton cultivars and reveal that the genetic composition of Chinese cotton cultivars is narrow and mainly derived from early introduced American varieties.",
"container-title": "Molecular Plant",
"DOI": "10.1016/j.molp.2023.01.012",
"ISSN": "1674-2052",
"issue": "4",
"journalAbbreviation": "Mol Plant",
"language": "en",
"page": "662-677",
"source": "ScienceDirect",
"title": "Genomic insights into the genetic basis of cotton breeding in China",
"URL": "https://www.sciencedirect.com/science/article/pii/S1674205223000333",
"volume": "16",
"author": [
{
"family": "Li",
"given": "Yiqian"
},
{
"family": "Si",
"given": "Zhanfeng"
},
{
"family": "Wang",
"given": "Guoping"
},
{
"family": "Shi",
"given": "Zhuolin"
},
{
"family": "Chen",
"given": "Jinwen"
},
{
"family": "Qi",
"given": "Guoan"
},
{
"family": "Jin",
"given": "Shangkun"
},
{
"family": "Han",
"given": "Zegang"
},
{
"family": "Gao",
"given": "Wenhao"
},
{
"family": "Tian",
"given": "Yue"
},
{
"family": "Mao",
"given": "Yun"
},
{
"family": "Fang",
"given": "Lei"
},
{
"family": "Hu",
"given": "Yan"
},
{
"family": "Chen",
"given": "Hong"
},
{
"family": "Zhu",
"given": "Xiefei"
},
{
"family": "Zhang",
"given": "Tianzhen"
}
],
"accessed": {
"date-parts": [
[
"2024",
1,
31
]
]
},
"issued": {
"date-parts": [
[
"2023",
4,
3
]
]
}
}
]
@zepinglee 谢谢解答。但是这种格式不符合我们学校的要求。如果作者首字母和年份相同的话,我想在年份后面加字母用来区分。比如(Li et al 2023a)和(Li et al 2023b)。字母的顺序按照bibliography里文献的顺序。请问该如何做到这一点呢?下面是两篇示例文献
你们学校没有规定消歧义的方式。
所列的相同作者同年内的文献多于一篇时,可在年份后加“a”、 “b”等字母予以分别
这里同姓不同名的作者不能算作“相同作者”吧?
如果你实在要实现这种格式,可以去掉 disambiguate-add-givenname="true"
。
@zepinglee 非常感谢!去掉disambiguate-add-givename="true"
实现了我要的格式!
所列的相同作者同年内的文献多于一篇时,可在年份后加“a”、 “b”等字母予以分别
这句话我一开始也是像你那么理解的。可是我看了往年的博士论文,他们都是用a, b予以区别的,没有用名字的首字母。所以我猜这里只要姓相同就算“相同作者”
@zepinglee 我发现去掉disambiguate-add-givename="true"
之后,#257 中的问题也解决了。真神奇。
另外我还想请教一个问题,怎么把bibliography中的编号去掉呢?就是
1. paper1
变成paper1
我用过这个网站更改 https://editor.citationstyles.org/visualEditor/ 但是改了之后末尾会有一个制表符。
@zepinglee 我发现去掉
disambiguate-add-givename="true"
之后,#257 中的问题也解决了。真神奇。 另外我还想请教一个问题,怎么把bibliography中的编号去掉呢?就是1. paper1
变成paper1
我用过这个网站更改 https://editor.citationstyles.org/visualEditor/ 但是改了之后末尾会有一个制表符。
还需要去掉这里的 second-field-align="flush"
。
另外需要悬挂缩进吗?
所列的相同作者同年内的文献多于一篇时,可在年份后加“a”、 “b”等字母予以分别
这句话我一开始也是像你那么理解的。可是我看了往年的博士论文,他们都是用a, b予以区别的,没有用名字的首字母。所以我猜这里只要姓相同就算“相同作者”
我并不认同这种做法,所以不打算修改仓库中的样式。
@zepinglee 你好,我尝试去掉了second-field-align="flush"
,编号和文献之间的制表符没有了。但是这不是我的目的,可能是我没有表述清楚。
我希望是直接修改csl文件,让bibliography从带有编号的格式变成不带有编号的格式。如从这样
1. paper1
2. paper2
变成这样
paper1
paper2
不需要悬挂。
我并不认同这种做法,所以不打算修改仓库中的样式。
我理解。谢谢你们的工作
@zepinglee 你好,我尝试去掉了
second-field-align="flush"
,编号和文献之间的制表符没有了。但是这不是我的目的,可能是我没有表述清楚。我希望是直接修改csl文件,让bibliography从带有编号的格式变成不带有编号的格式。如从这样
1. paper1 2. paper2
变成这样
paper1 paper2
不需要悬挂。
去掉两个 citation-number
。
还需要去掉这里的
second-field-align="flush"
。
非常感谢 :relaxed:
描述错误
CSL 样式:403huazhong-agricultural-university.csl
有些条目在有的文档中inline citation会把名字的首字母显示出来。但是新建一个新文档inline citation又是正常的。如下:
异常情况
正常情况
条目信息
其他相关信息
好像这些异常的条目,作者姓的首字母都是L