Skip to content

Commit

Permalink
fix support for \addbibresource
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip authored and stone-zeng committed Jan 8, 2022
1 parent f842ab6 commit 493ced2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
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 <[email protected]>
% Copyright (C) 2017--2022 by Xiangdong Zeng <[email protected]>
%
% 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 <[email protected]>
% Copyright (C) 2017--2022 by Xiangdong Zeng <[email protected]>
%
% 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 <[email protected]>
% Copyright (C) 2017--2022 by Xiangdong Zeng <[email protected]>
%
% 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 <[email protected]>
% Copyright (C) 2017--2022 by Xiangdong Zeng <[email protected]>
%
% 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 <[email protected]>.
Copyright (C) 2017&ndash;2022 by Xiangdong Zeng <[email protected]>.
%</readme>
%
%<*internal>
Expand All @@ -142,7 +142,7 @@ Copyright (C) 2017&ndash;2021 by Xiangdong Zeng <[email protected]>.

\preamble

Copyright (C) 2017--2021 by Xiangdong Zeng <[email protected]>
Copyright (C) 2017--2022 by Xiangdong Zeng <[email protected]>

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 <[email protected]>.
% \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

0 comments on commit 493ced2

Please sign in to comment.