-
Notifications
You must be signed in to change notification settings - Fork 53
[204_25] 参考文献著者-出版年制样式 #2613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[204_25] 参考文献著者-出版年制样式 #2613
Conversation
a97ff1e to
702d6ac
Compare
77062ea to
d7c502f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for the GB/T 7714-2015 author-year citation style (著者-出版年制) for bibliographic references in TeXmacs, complementing the existing numerical citation style.
Changes:
- Added new
gbt7714-2015-author-yearbibliography style with full support for all document types according to GB/T 7714-2015 standards - Updated C++ code to recognize both numerical and author-year variants of the gbt7714-2015 style
- Modified cite-author-year package to improve formatting, making
\citebehave like\citetfor author-year citations
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Plugins/Bibtex/bibtex_functions.cpp | Extended style detection to include both gbt7714-2015 and gbt7714-2015-author-year |
| devel/204_25.md | Added documentation for testing the new author-year citation style |
| TeXmacs/tests/tmu/204_25_author_year.tmu | New comprehensive test file demonstrating all bibliography entry types with author-year citations |
| TeXmacs/tests/tmu/204_25.bib | Added missing year field to newspaper entry for proper author-year citation support |
| TeXmacs/plugins/latex/progs/bibtex/gbt7714-2015-author-year.scm | New 951-line Scheme file implementing the complete author-year citation style with Chinese/English support |
| TeXmacs/plugins/latex/progs/bibtex/bib-utils.scm | Added new style to standard styles list |
| TeXmacs/packages/standard/std-automatic.ts | Removed bold formatting from default bibliography item labels |
| TeXmacs/packages/cite/cite-author-year.ts | Enhanced author-year citation package with improved formatting and macro definitions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - 测试文档:Texmacs/tests/tmu/204_25.tmu | ||
| - 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果 | ||
| - 查看生成结果是不是按照 \cite 填入顺序排序 | ||
| - 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序 | ||
| - 著者-出版年制(author-year)测试 | ||
| - 测试文档:Texmacs/tests/tmu/204_25_author_year.tmu |
Copilot
AI
Jan 21, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project name should be capitalized as "TeXmacs" (with capital X) instead of "Texmacs" to match the official naming convention used throughout the codebase.
| - 测试文档:Texmacs/tests/tmu/204_25.tmu | |
| - 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果 | |
| - 查看生成结果是不是按照 \cite 填入顺序排序 | |
| - 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序 | |
| - 著者-出版年制(author-year)测试 | |
| - 测试文档:Texmacs/tests/tmu/204_25_author_year.tmu | |
| - 测试文档:TeXmacs/tests/tmu/204_25.tmu | |
| - 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果 | |
| - 查看生成结果是不是按照 \cite 填入顺序排序 | |
| - 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序 | |
| - 著者-出版年制(author-year)测试 | |
| - 测试文档:TeXmacs/tests/tmu/204_25_author_year.tmu |
| - 测试文档:Texmacs/tests/tmu/204_25.tmu | ||
| - 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果 | ||
| - 查看生成结果是不是按照 \cite 填入顺序排序 | ||
| - 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序 | ||
| - 著者-出版年制(author-year)测试 | ||
| - 测试文档:Texmacs/tests/tmu/204_25_author_year.tmu |
Copilot
AI
Jan 21, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project name should be capitalized as "TeXmacs" (with capital X) instead of "Texmacs" to match the official naming convention used throughout the codebase.
| - 测试文档:Texmacs/tests/tmu/204_25.tmu | |
| - 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果 | |
| - 查看生成结果是不是按照 \cite 填入顺序排序 | |
| - 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序 | |
| - 著者-出版年制(author-year)测试 | |
| - 测试文档:Texmacs/tests/tmu/204_25_author_year.tmu | |
| - 测试文档:TeXmacs/tests/tmu/204_25.tmu | |
| - 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果 | |
| - 查看生成结果是不是按照 \cite 填入顺序排序 | |
| - 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序 | |
| - 著者-出版年制(author-year)测试 | |
| - 测试文档:TeXmacs/tests/tmu/204_25_author_year.tmu |
| <assign|natbib-show|<macro|nr|text|<natbib-author*|<arg|text>><if|<equal|<natbib-year|<arg|text>>|?>||, | ||
| <natbib-year|<arg|text>>>>> | ||
| <assign|natbib-show|<macro|nr|text|<natbib-author*|<arg|text>><if|<equal|<natbib-year|<arg|text>>|?>||. | ||
| <natbib-year|<arg|text>>.>>> |
Copilot
AI
Jan 21, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The natbib-show macro has trailing periods that create inconsistent formatting. The pattern . <natbib-year|<arg|text>>. results in two periods at the end, which appears to be unintentional. The format should likely be either <natbib-author*|<arg|text>> <natbib-year|<arg|text>> (space separated) or <natbib-author*|<arg|text>>. <natbib-year|<arg|text>> (period after author, no trailing period).
| <natbib-year|<arg|text>>.>>> | |
| <natbib-year|<arg|text>>>>>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不用处理
No description provided.