Skip to content
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

[Feature] - Update CSL Branch #948

Merged
merged 96 commits into from
Apr 23, 2024
Merged

[Feature] - Update CSL Branch #948

merged 96 commits into from
Apr 23, 2024

Conversation

evie-mo
Copy link

@evie-mo evie-mo commented Apr 22, 2024

根据 #844 (comment) 的描述,更新 CSL 分支到最新版本。

Harry-Chen and others added 30 commits April 6, 2023 16:29
Signed-off-by: Harry Chen <[email protected]>
Signed-off-by: Harry Chen <[email protected]>
Signed-off-by: Harry Chen <[email protected]>
Harry-Chen and others added 26 commits March 21, 2024 01:02
Signed-off-by: Shengqi Chen <[email protected]>
Signed-off-by: Shengqi Chen <[email protected]>
Signed-off-by: Shengqi Chen <[email protected]>
Signed-off-by: Shengqi Chen <[email protected]>
Signed-off-by: Yuxuan Jiang <[email protected]>
Fix typo in thuthesis.dtx
Signed-off-by: Shengqi Chen <[email protected]>
@zepinglee
Copy link
Contributor

zepinglee commented Apr 23, 2024

目前 citation-style-language 宏包能够满足 #844 的需求,但是还不能满足研究生/本科生的一般需求,例如缺少这些 feature: author-date 中文参考文献的排序,以及附录的独立参考文献。所以我不建议合并到 master。

@evie-mo 你这边有什么需求的话可以先列出来,我优先考虑实现一下。

@evie-mo
Copy link
Author

evie-mo commented Apr 23, 2024

我的建议是保留 csl 分支为开发状态。本 PR 合并了 master 分支中的最新更改,并没有想合并 cslmaster。按照我的理解,《清华大学美术学院研究生学位论文引证规范》是在研究生学位论文的基础上专门针对文献引用的定制化实现,所以 40c7b2c 中的更改按照我的理解也没有影响到其他功能。实际在 git merge 的时候也没有遇到冲突。

@zepinglee
Copy link
Contributor

我的建议是保留 csl 分支为开发状态。本 PR 合并了 master 分支中的最新更改,并没有想合并 cslmaster

看错了😅。

所以 40c7b2c 中的更改按照我的理解也没有影响到其他功能。实际在 git merge 的时候也没有遇到冲突。

有,这个 commit 将引入了 csl 的参考文献机制,与 bibtex/biblatex 的底层完全不同,需要与模板其他部分做兼容性处理(比如下面是 biblatex 与附录的)。csl 的部分还没有完全实现。

thuthesis/thuthesis.dtx

Lines 6220 to 6252 in 8eff4c4

\AtEndOfPackageFile*{biblatex}{
\DeclareRefcontext{appendix}{}
\g@addto@macro\appendix{%
\pretocmd\chapter{%
\newrefsection
\ifthu@degree@bachelor\else
\@tempcnta=\c@chapter
\advance\@tempcnta\@ne
\newrefcontext[labelprefix = {\@Alph\@tempcnta.}]{appendix}%
\fi
}{}{\thu@patch@error{\chapter}}%
\defbibheading{bibliography}[\bibname]{%
\ctexset{section/numbering = false}%
\section{#1}%
\ctexset{section/numbering = true}%
}%
}
\renewcommand\thu@set@survey@bibheading{%
\defbibheading{bibliography}[\bibname]{%
\par
\vskip 20bp%
\thu@pdfbookmark{1}{\bibname}%
\begingroup
\centering
\xiaosi[1.667]##1\par
\endgroup
\vskip 6bp%
}%
}%
\def\bibliographystyle#1{%
\thu@warning{'bibliographystyle' invalid for 'biblatex'.}%
}
}

另外其中的 CSL 样式也只覆盖了英文文献格式,还没有中文部分。

总之使用时需谨慎。

@zepinglee zepinglee merged commit ec5f3cc into tuna:csl Apr 23, 2024
5 of 6 checks passed
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.

9 participants