summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bjfuthesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-28 20:50:12 +0000
committerKarl Berry <karl@freefriends.org>2021-05-28 20:50:12 +0000
commitc9ab655bc2475da8e6dd89170ad13371d8154d0b (patch)
tree962580a228d0d86a4c74a8fff197addb9bf1585f /Master/texmf-dist/tex/latex/bjfuthesis
parent032b61130748c97ac695a189ca1d224dea73c6e8 (diff)
bjfuthesis (28may21)
git-svn-id: svn://tug.org/texlive/trunk@59378 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bjfuthesis')
-rw-r--r--Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls101
1 files changed, 101 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls b/Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls
new file mode 100644
index 00000000000..aa284962121
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bjfuthesis/bjfuthesis.cls
@@ -0,0 +1,101 @@
+%
+% Copyright 2021 Liu Changxin <liuchx@hotmail.com>
+%
+% Licensed under the GNU General Public License v3.0 (the "License");
+% you may not use this file except in compliance with the License.
+% You may obtain a copy of the License at
+%
+% https://www.gnu.org/licenses/gpl-3.0.html
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS,
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+% See the License for the specific language governing permissions and
+% limitations under the License.
+%
+
+\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\newcommand*\@iflatexlater{\@ifl@t@r\fmtversion}
+\@iflatexlater{2020/10/01}{}{\ClassError{bjfuthesis}{The version of LaTeX you installed does not meet the minimum version requirements}}
+\def\header@text{北京林业大学本科毕业论文}
+\def\keywords@label@zh{关键词:}
+\def\keywords@label@en{Keywords: }
+\def\chartnote@label{注:}
+\ProvidesClass{bjfuthesis}[2021/05/27 LaTeX document style for BJFU thesis]
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
+\ProcessOptions*
+\LoadClass[a4paper,oneside,fontset=none]{ctexbook}
+\RequirePackage{pdfpages}
+\RequirePackage{graphicx}
+\graphicspath{{figures/}}
+\RequirePackage{silence}
+\RequirePackage{bicaption}
+\DeclareCaptionFormat{bjfucaption}{\textbf{\fontsize{9}{21}\selectfont#1#2#3}}
+\captionsetup{format=bjfucaption,skip=0pt,labelsep=space}
+\captionsetup[figure][bi-second]{name=Figure}
+\captionsetup[table][bi-second]{name=Table}
+\RequirePackage{amsmath}
+\setlength\voffset{-10.4mm}
+\setlength\topmargin{0mm}
+\setlength\textheight{242mm}
+\setlength\footskip{10mm}
+\setlength\textwidth{155mm}
+\setlength\oddsidemargin{4.6mm}
+\setmainfont{Times New Roman}
+\setCJKmainfont[AutoFakeBold]{SimSun}
+\setCJKmonofont{SimSun}
+\newCJKfontfamily\kaiti{KaiTi}
+\linespread{1}
+\emergencystretch=1em
+\RequirePackage{amssymb}
+\renewcommand\fps@figure{htbp}
+\renewcommand\fps@table{htbp}
+\WarningFilter*{latex}{Text page \thepage\space contains only floats}
+\NewCommandCopy\oldfigure\figure
+\def\figure{\@ifnextchar[\figure@i \figure@ii}
+\def\figure@i[#1]{\oldfigure[#1]\centering}
+\def\figure@ii{\oldfigure\centering}
+\NewCommandCopy\oldtable\table
+\def\table{\@ifnextchar[\table@i \table@ii}
+\def\table@i[#1]{\oldtable[#1]\centering}
+\def\table@ii{\oldtable\centering}
+\RequirePackage{fancyhdr}
+\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[C]{\fontsize{9}{12}\selectfont \header@text}
+\fancyfoot[C]{\thepage}
+\renewcommand\headrulewidth{.5pt}
+\fancypagestyle{plain}{\fancyhead[C]{\fontsize{9}{12}\selectfont\header@text}\renewcommand\headrulewidth{.5pt}}
+\renewcommand\floatpagefraction{1}
+\RequirePackage{titlesec}
+\titleformat{\chapter}{\centering\fontsize{16}{30}\bfseries}{\thechapter}{.5em}{}
+\titleformat{\section}{\fontsize{14}{37}\bfseries}{\thesection}{.5em}{}
+\titleformat{\subsection}{\fontsize{12}{21}\bfseries}{\thesubsection}{.5em}{}
+\titlespacing{\chapter}{0pt}{0pt}{10pt}
+\titlespacing{\section}{0pt}{0pt}{3pt}
+\titlespacing{\subsection}{0pt}{0pt}{0pt}
+\RequirePackage{booktabs}
+\RequirePackage{titletoc}
+\ctexset{chapter/number=\arabic{chapter},chapter/name={}}
+\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}
+\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}
+\NewCommandCopy\oldfrontmatter\frontmatter
+\renewcommand\frontmatter{\IfFileExists{cover.pdf}{\includepdf[pages={1-2}]{cover.pdf}}{\typeout{!! cover.pdf not found}\ClassWarning{bjfuthesis}{cover.pdf not found}}\oldfrontmatter\renewcommand\thepage{\Roman{page}}\fontsize{12}{21}\selectfont}
+\NewCommandCopy\oldmainmatter\mainmatter
+\renewcommand\mainmatter{\oldmainmatter\fontsize{12}{21}\selectfont}
+\newcommand\chartnote[1]{\fontsize{9}{21}\selectfont\\\begin{flushleft}\chartnote@label#1\end{flushleft}}
+\NewCommandCopy\oldbackmatter\backmatter
+\renewcommand\backmatter{\oldbackmatter\fontsize{10.5}{21}\selectfont}
+\NewCommandCopy\oldprintbibliography\printbibliography
+\renewcommand\printbibliography{\oldprintbibliography[heading=bibintoc]}
+\endinput