添加 citation-style-language 支持与美术学院脚注引证样式 thuthesis-arts (#844)#1070
Open
Dixiao-L wants to merge 1 commit into
Open
添加 citation-style-language 支持与美术学院脚注引证样式 thuthesis-arts (#844)#1070Dixiao-L wants to merge 1 commit into
Dixiao-L wants to merge 1 commit into
Conversation
Revive the citation-style-language (citeproc-lua) note-style support from the stale `csl` branch onto v7.7.1 and bundle a bilingual (zh/en) 美术学院 style `thuthesis-arts`, closing tuna#844. - thuthesis.dtx: don't force natbib when citation-style-language is loaded; add the citation-style-language bibliography-formatting hook. - bundle thuthesis-numeric.csl, thuthesis-author-year.csl (Zeping Lee) and thuthesis-arts.csl (bilingual 美术学院 note style; bibliography lists Chinese entries before foreign ones per the 《引证规范》). - latexmkrc: zero-config .ccf-keyed cus_dep auto-runs citeproc-lua only for CSL documents; default bibtex/biber workflow is unaffected. - build.lua: ship *.csl; thusetup/example: document CSL usage. Co-Authored-By: Zeping Lee <zepinglee@gmail.com> Co-Authored-By: Evie Mo <105700377+evie-mo@users.noreply.github.com>
Contributor
|
之前需要手动修改 我打算在下个大版本 另外关于 CSL 样式,推荐使用最新的 https://zotero-chinese.com/styles/综合性期刊文献引证技术规范(注释)/,这个跟《中国社会科学》( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
本 PR 在
master(v7.7.1)上引入citation-style-language(citeproc-lua)参考文献后端,并内置美术学院的脚注引证样式thuthesis-arts,落实 #844 的需求。美术学院《研究生学位论文引证规范》要求采用**注释式(note)**引证:正文用带圈上标序号 ①②③,引文以脚注形式置于当页下,参考文献表用方括号
[n]连续编号、悬挂缩进。这类样式用 BibTeX 难以实现,宜用 CSL(见 #844 中 @zepinglee 的讨论)。相关功能此前已由 @zepinglee 在
csl分支 实现(另见 #948,由 @evie-mo 维护),但一直未并入master。本 PR 将该集成层重建到当前master,并在原 CSL 基础上增加了中英文双语支持(补上当年“目前只支持英文格式”的缺口)。改动
thuthesis.dtxcitation-style-language的判断,避免在已加载 CSL 时仍自动加载natbib而冲突。\AtEndOfPackageFile*{citation-style-language}钩子,按学位/语言配置参考文献表的字体、条目间距与悬挂缩进。thuthesis-numeric、thuthesis-author-year(@zepinglee 原作)、thuthesis-arts(美术学院,中英双语,注释式)。latexmkrc:新增基于.ccf的cus_dep,使用 CSL 时自动调用citeproc-lua;对默认 BibTeX / BibLaTeX 流程零影响(无.ccf不触发,用户无需额外配置)。build.lua:将*.csl纳入安装/源文件。thusetup.tex/thuthesis-example.tex:增加 CSL 用法示例(默认仍为 BibTeX)。CHANGELOG.md。用法
中文文献在
.bib条目中设language = {zh-CN}即按中文格式排版,英文文献按英文格式。citeproc-lua已随 TeX Live 2023+ 发行,latexmk编译时自动调用,无需另装。测试(TeX Live 2026 / citeproc-lua 0.9.1)
thuthesis-arts:正文带圈上标脚注引证 ①②③、再次引证自动简化、方括号悬挂参考文献表,中英双语切换均正常。latexmk自动调用citeproc-lua,脚注与参考文献表均符合《引证规范》。.ccf、不调用citeproc。l3build check:除一个与本改动无关的既有失败(config-crossref/package-hyperref,在master上同样失败,系 TeX Live 2026 hyperref 版本漂移)外全部通过。致谢与署名
thuthesis-arts.csl原作者 @zepinglee(基于social-sciences-in-china模板)。csl分支的整合与维护 @evie-mo([Feature] - Update CSL Branch #948)。Closes #844