Skip to content

Commit 1018aec

Browse files
committed
设置参考文献行距 (#276)
1 parent e4c3198 commit 1018aec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

whu-thesis.cls

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,6 +2863,9 @@
28632863
\IfValueT {##1}
28642864
{ \__whu_warning:nn { invalid-option-in-bibtex } {##1} }
28652865
}
2866+
% 行距与字号
2867+
\setlength{\bibsep}{0pt}
2868+
\renewcommand{\bibfont}{\zihao{-4}\linespread{1.625}\selectfont}
28662869
}
28672870
\__whu_msg_new:nn { invalid-option-in-bibtex }
28682871
{ Option(s)~ "#1"~ are~ invalid~ in~ BibTeX. }
@@ -2871,13 +2874,13 @@
28712874
{
28722875
\cs_undefine:N \addbibresource
28732876
\clist_new:N \l__whu_biblatex_options_clist
2874-
\clist_put_right:Nn \l__whu_biblatex_options_clist { hyperref = manual }
2877+
\clist_put_right:Nn \l__whu_biblatex_options_clist { backend = biber }
28752878
\clist_put_right:Nx \l__whu_biblatex_options_clist % 参考文献样式
28762879
{
28772880
style =
28782881
\tl_if_empty:NTF \l__whu_bib_style_tl
28792882
{
2880-
\tl_if_eq:NnTF \g__whu_thesis_type_tl { bachelor }
2883+
\str_if_eq:VnTF \g__whu_thesis_type_tl { bachelor }
28812884
{
28822885
\str_if_eq:VnTF \l__whu_bib_gb_style_tl { numerical }
28832886
{ gb7714-2015 } { gb7714-2015ay }
@@ -2903,6 +2906,8 @@
29032906
\__whu_biblatex_allow_url_break:
29042907
\__whu_biblatex_use_en_dash:
29052908
\defbibheading { bibliography } [ \bibname ] { \__whu_chapter:n {##1} }
2909+
\setlength{\bibitemsep}{0pt}
2910+
\renewcommand{\bibfont}{\zihao{-4}\linespread{1.625}\selectfont}
29062911
}
29072912
% biblatex 下允许 URL 在字母、数字和一些特殊符号处断行
29082913
\cs_new:Npn \__whu_biblatex_allow_url_break:

0 commit comments

Comments
 (0)