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

修复对 \addbibresource 命令的支持 #229

Merged
merged 1 commit into from
Jan 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,4 @@ This work may be distributed and/or modified under the conditions of the [LaTeX

-----

Copyright (C) 2017–2021 by Xiangdong Zeng.
Copyright (C) 2017–2022 by Xiangdong Zeng.
2 changes: 1 addition & 1 deletion docs/fduthesis-template.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
% Copyright (C) 2017--2021 by Xiangdong Zeng <xdzeng96@gmail.com>
% Copyright (C) 2017--2022 by Xiangdong Zeng <xdzeng96@gmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
Expand Down
2 changes: 1 addition & 1 deletion source/fduthesis-doc.dtx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
% Copyright (C) 2017--2021 by Xiangdong Zeng <xdzeng96@gmail.com>
% Copyright (C) 2017--2022 by Xiangdong Zeng <xdzeng96@gmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
Expand Down
2 changes: 1 addition & 1 deletion source/fduthesis-logo.dtx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
% Copyright (C) 2017--2021 by Xiangdong Zeng <xdzeng96@gmail.com>
% Copyright (C) 2017--2022 by Xiangdong Zeng <xdzeng96@gmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
Expand Down
18 changes: 15 additions & 3 deletions source/fduthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% !TeX program = XeLaTeX
% !TeX encoding = UTF-8
%
% Copyright (C) 2017--2021 by Xiangdong Zeng <xdzeng96@gmail.com>
% Copyright (C) 2017--2022 by Xiangdong Zeng <xdzeng96@gmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
Expand Down Expand Up @@ -124,7 +124,7 @@ version.

-----

Copyright (C) 2017&ndash;2021 by Xiangdong Zeng <xdzeng96@gmail.com>.
Copyright (C) 2017&ndash;2022 by Xiangdong Zeng <xdzeng96@gmail.com>.
%</readme>
%
%<*internal>
Expand All @@ -142,7 +142,7 @@ Copyright (C) 2017&ndash;2021 by Xiangdong Zeng <xdzeng96@gmail.com>.

\preamble

Copyright (C) 2017--2021 by Xiangdong Zeng <xdzeng96@gmail.com>
Copyright (C) 2017--2022 by Xiangdong Zeng <xdzeng96@gmail.com>

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
Expand Down Expand Up @@ -5797,11 +5797,23 @@ Copyright (C) 2017&ndash;2021 by Xiangdong Zeng <xdzeng96@gmail.com>.
% \end{macrocode}
% \end{macro}
%
% \changes{v0.8}{2022/01/08}{兼容 \tn{addbibresource} 命令。}
%
% 由于 \pkg{biblatex} 在导言区后才载入,需要单独定义添加参考文献数据源的命令以实现兼容。该命令需要在载入宏包前取消定义。
% \begin{macrocode}
\bool_if:NF \l_@@_bibtex_bool
{
\NewDocumentCommand \addbibresource { m }
{ \clist_gput_right:Nn \l_@@_bib_resource_clist {#1} }
}
% \end{macrocode}
%
% \begin{macro}{\@@_biblatex_pre_setup:,\@@_biblatex_post_setup:}
% \pkg{biblatex} 相关设置。
% \begin{macrocode}
\cs_new_protected:Npn \@@_biblatex_pre_setup:
{
\cs_undefine:N \addbibresource
\clist_new:N \l_@@_biblatex_options_clist
\clist_put_right:Nn \l_@@_biblatex_options_clist { hyperref = manual }
% \end{macrocode}
Expand Down