diff options
author | Karl Berry <karl@freefriends.org> | 2021-06-05 21:10:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-06-05 21:10:54 +0000 |
commit | 8f9112b4cae49bb2917f99b327bf822c2f50b592 (patch) | |
tree | 7fbda855049a947631de94c195164a885e953318 /Master/texmf-dist/tex | |
parent | 9c010ac1d8ca51f8cc3735f106cb91f4dd1c8690 (diff) |
bjfuthesis (5jun21)
git-svn-id: svn://tug.org/texlive/trunk@59475 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls | 86 |
1 files changed, 82 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls b/Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls index ed02764f983..ef1690a7b2c 100644 --- a/Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls +++ b/Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls @@ -23,7 +23,7 @@ \def\keywords@label@zh{关键词:} \def\keywords@label@en{Keywords: } \def\chartnote@label{注:} -\ProvidesClass{bjfuthesis}[2021/05/30 LaTeX document style for BJFU thesis] +\ProvidesClass{bjfuthesis}[2021/06/05 A thesis class for Beijing Forestry University] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} \ProcessOptions* \LoadClass[a4paper,oneside,fontset=none]{ctexbook} @@ -69,6 +69,8 @@ \renewcommand\headrulewidth{.5pt} \fancypagestyle{plain}{\fancyhead[C]{\fontsize{9}{12}\selectfont\header@text}\renewcommand\headrulewidth{.5pt}} \renewcommand\floatpagefraction{1} +\RequirePackage[style=gb7714-2015]{biblatex} +\addbibresource{bibliography.bib} \RequirePackage{titlesec} \titleformat{\chapter}{\centering\fontsize{16}{30}\bfseries}{\thechapter}{.5em}{} \titleformat{\section}{\fontsize{14}{37}\bfseries}{\thesection}{.5em}{} @@ -82,12 +84,88 @@ \titlecontents{chapter}[0em]{\fontsize{10.5}{21}\bfseries}{\thecontentslabel~}{\thecontentslabel}{\hspace{.5em}\titlerule*{.}\contentspage} \titlecontents{section}[1em]{\fontsize{10.5}{21}}{\thecontentslabel~}{\thecontentslabel}{\hspace{.5em}\titlerule*{.}\contentspage} \titlecontents{subsection}[2em]{\fontsize{10.5}{21}}{\thecontentslabel~}{\thecontentslabel}{\hspace{.5em}\titlerule*{.}\contentspage} -\RequirePackage[hidelinks]{hyperref} -\RequirePackage[gbpub=false,style=gb7714-2015]{biblatex} -\addbibresource{bibliography.bib} \renewcommand\topfraction{1} \renewcommand\bottomfraction{1} \renewcommand\textfraction{0} +\RequirePackage{xpatch} +\RequirePackage[hidelinks]{hyperref} + +\letbibmacro{oldtitle}{title} +\renewbibmacro*{title}{% +\ifentrytype{inproceedings}{ + \ifboolexpr{ + test {\iffieldundef{title}} + and + test {\iffieldundef{subtitle}} + } + {} + \printtext[title]{% + \printfield[titlecase]{title}}}{\usebibmacro{oldtitle}}} +\letbibmacro{oldbooktitle}{booktitle} +\renewbibmacro*{booktitle}{% +\ifentrytype{inproceedings}{ + \ifboolexpr{ + test {\iffieldundef{booktitle}} + and + test {\iffieldundef{booksubtitle}} + } + {} + {\printtext[booktitle]{\bibtitlefont% + \printfield[titlecase]{booktitle}\printtext{[C]}% + \setunit{\subtitlepunct}% + \printfield[titlecase]{booksubtitle}}% + \newunit%标点换成下一句 + \setunit{\subtitlepunct}}% + \printfield{booktitleaddon}}{\usebibmacro{oldbooktitle}}} +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}\printtext{[A]} + \unspace +% \nobreak +% \setunit{[A]} + \usebibmacro{in:}% + \usebibmacro{editor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}%% + \newunit\newblock + \usebibmacro{event+venue+date}% + \newunit\newblock +% \iffieldundef{maintitle} + % {\printfield{volume}% + % \printfield{part}} + % {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + \newenvironment{abstract}{\kaiti}{\vskip \baselinestretch\baselineskip\par} \newcommand\keywordscn[1]{\noindent\fontsize{12}{21}\selectfont\textbf{\keywords@label@zh}#1\par} \newcommand\keywordsen[1]{\noindent\fontsize{12}{21}\selectfont\textbf{\keywords@label@en}#1\par} |