Skip to content

Conversation

@Yuki-Nagori
Copy link
Contributor

No description provided.

@Yuki-Nagori Yuki-Nagori force-pushed the yuki/204_25/author-year branch from a97ff1e to 702d6ac Compare January 20, 2026 04:18
@Yuki-Nagori Yuki-Nagori marked this pull request as ready for review January 21, 2026 05:04
Copy link
Contributor

Copilot AI left a 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-year bibliography 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 \cite behave like \citet for 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.

Comment on lines +5 to +10
- 测试文档:Texmacs/tests/tmu/204_25.tmu
- 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果
- 查看生成结果是不是按照 \cite 填入顺序排序
- 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序
- 著者-出版年制(author-year)测试
- 测试文档:Texmacs/tests/tmu/204_25_author_year.tmu
Copy link

Copilot AI Jan 21, 2026

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.

Suggested change
- 测试文档: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 uses AI. Check for mistakes.
Comment on lines +5 to +10
- 测试文档:Texmacs/tests/tmu/204_25.tmu
- 空文件测试:从网上选取一些bib文件,并复制标准的参考文献格式,使用 插入 -> 自动 -> 参考文献,对比生成效果
- 查看生成结果是不是按照 \cite 填入顺序排序
- 原先的plain样式,如果需要填入顺序排序,可以换成使用unsrt样式,格式是一样的,只是没有处理顺序
- 著者-出版年制(author-year)测试
- 测试文档:Texmacs/tests/tmu/204_25_author_year.tmu
Copy link

Copilot AI Jan 21, 2026

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.

Suggested change
- 测试文档: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 uses AI. Check for mistakes.
<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>>.>>>
Copy link

Copilot AI Jan 21, 2026

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).

Suggested change
<natbib-year|<arg|text>>.>>>
<natbib-year|<arg|text>>>>>>

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不用处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants