Commit a701d374 authored by liziwl's avatar liziwl
Browse files

fix biber

parent b0556dfb
Loading
Loading
Loading
Loading
+10 −13
Original line number Diff line number Diff line
@@ -104,20 +104,17 @@
% 也可以使用 ntheorem
% \usepackage[amsmath,thmmarks,hyperref]{ntheorem}

%%%%%% 顺序编码制的文献引用形式
%%%%%% 参考文献编译方式二选一,不要同时开启。
%%%% 选择一
%% 参考文献使用 BibTeX + natbib 宏包
%% 顺序编码制
\usepackage[sort&compress]{gbt7714}
\citestyle{super} % 全局上标数字模式,中文主体采用
% \citestyle{numbers} % 全局行间数字模式,英文主体采用
\bibliographystyle{sustechthesis-numeric}

%%%% 选择二(不兼容本模板,请勿使用)
%% 参考文献使用 BibLaTeX 宏包
% \usepackage[backend=biber,style=gb7714-2015]{biblatex}
%% 声明 BibLaTeX 的数据库
% \addbibresource{ref/refs.bib}
%%%% 选择一:使用 BibTeX + natbib 宏包
% \usepackage[sort&compress]{gbt7714}
% \citestyle{super} % 全局上标数字模式,中文主体采用
% % \citestyle{numbers} % 全局行间数字模式,英文主体采用
% \bibliographystyle{sustechthesis-numeric}

%%%% 选择二:使用 BibLaTeX 宏包(兼容性不佳,不太推荐)
\usepackage[backend=biber,style=gb7714-2015,gbalign=left]{biblatex}
\addbibresource{ref/refs.bib} % 声明 BibLaTeX 的数据库

% 定义所有的图片文件在 figures 子目录下
\graphicspath{{figures/}}
+2 −2
Original line number Diff line number Diff line
@@ -67,8 +67,8 @@


% 参考文献
\bibliography{ref/refs}  % 参考文献使用 BibTeX 编译
% \printbibliography       % 参考文献使用 BibLaTeX 编译,(不兼容本模板,请勿使用
% \bibliography{ref/refs}  % 参考文献使用 BibTeX 编译
\printbibliography       % 参考文献使用 BibLaTeX 编译(兼容性不佳,不太推荐

% 附录
\appendix
+18 −14
Original line number Diff line number Diff line
@@ -5154,20 +5154,24 @@ Thesis for the degree of \degree@level@en@noun \ of \thu@degree@domain@en%
  \DeclareRobustCommand\inlinecite{\parencite}
  \defbibheading{bibliography}[\bibname]{\thu@chapter*{\bibname}}
  \newcommand\thu@set@bibliography@format{%
    \ifthu@degree@bachelor
      \renewcommand\bibfont{\fontsize{10.5bp}{17bp}\selectfont}%
      \setlength{\bibitemsep}{6bp \@plus 3bp \@minus 3bp}%
      \ifthu@main@language@chinese
        \setlength{\bibhang}{21bp}%
      \else
        \setlength{\bibhang}{0.5in}%
      \fi
    \else
    \renewcommand\bibfont{\fontsize{10.5bp}{16bp}\selectfont}%
    \setlength{\bibitemsep}{3bp \@plus 3bp \@minus 3bp}%
      \setlength{\biblabelsep}{0.1cm}%
      \setlength{\bibhang}{21bp}%
    \fi
    \setlength{\biblabelsep}{1em}%
    \setlength{\bibhang}{1em}%
    %\ifthu@degree@bachelor
    %  \renewcommand\bibfont{\fontsize{10.5bp}{17bp}\selectfont}%
    %  \setlength{\bibitemsep}{6bp \@plus 3bp \@minus 3bp}%
    %  \ifthu@main@language@chinese
    %    \setlength{\bibhang}{21bp}%
    %  \else
    %    \setlength{\bibhang}{0.5in}%
    %  \fi
    %\else
    %  \renewcommand\bibfont{\fontsize{10.5bp}{16bp}\selectfont}%
    %  \setlength{\bibitemsep}{3bp \@plus 3bp \@minus 3bp}%
    %  \setlength{\biblabelsep}{0.1cm}%
    %  \setlength{\bibhang}{21bp}%
    %\fi
  }
  \thu@set@bibliography@format
  \thu@option@hook{degree}{\thu@set@bibliography@format}