Skip to content

Commit 0e1ba60

Browse files
committed
add bib second style
1 parent 052547a commit 0e1ba60

File tree

4 files changed

+1976
-1
lines changed

4 files changed

+1976
-1
lines changed

cugthesis.cls

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@
1919
\newif\ifcug@masterpronofulltime\cug@masterpronofulltimefalse
2020
\newif\ifcug@bachelor\cug@bachelorfalse
2121

22+
\newif\ifcug@bib@style@sec\cug@bib@style@secfalse
23+
2224
\DeclareOption{doctor}{\cug@doctortrue\cug@masterfalse\cug@masterprofulltimefalse\cug@masterpronofulltimefalse\cug@bachelorfalse}
2325
\DeclareOption{master}{\cug@mastertrue\cug@doctorfalse\cug@masterprofulltimefalse\cug@masterpronofulltimefalse\cug@bachelorfalse}
2426
\DeclareOption{masterprofulltime}{\cug@masterprofulltimetrue\cug@doctorfalse\cug@masterfalse\cug@masterpronofulltimefalse\cug@bachelorfalse}
2527
\DeclareOption{masterpronofulltime}{\cug@masterpronofulltimetrue\cug@doctorfalse\cug@masterfalse\cug@masterprofulltimefalse\cug@bachelorfalse}
2628
\DeclareOption{bachelor}{\cug@bachelortrue\cug@doctorfalse\cug@masterfalse\cug@masterprofulltimefalse\cug@masterpronofulltimefalse}
2729
%\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} % I don't want you to pass options to the ctexbook class
30+
31+
\DeclareOption{bibsec}{\cug@bib@style@sectrue}
2832
\ProcessOptions\relax
2933

3034
\LoadClass[ scheme=chinese, heading=true, %nofonts,
@@ -523,7 +527,11 @@
523527
\NewDocumentCommand{\cugthesis}{}{CUGThesis}
524528
% 参考文献
525529
\RequirePackage[sort&compress]{natbib}
530+
\ifcug@bib@style@sec
531+
\bibliographystyle{gbt7714-2005-sec}
532+
\else
526533
\bibliographystyle{gbt7714-2005}
534+
\fi
527535
\bibpunct{[}{]}{;}{s}{}{;}
528536
\addtolength{\bibsep}{-1.5ex}
529537
%--------------- Source Code ---------------

demo.pdf

-27 Bytes
Binary file not shown.

demo.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\documentclass[doctor]{cugthesis}
1+
\documentclass[bibsec, doctor]{cugthesis}
22

33
\usepackage{ttools}
44
\usepackage{tcode}

0 commit comments

Comments
 (0)