summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bjfuthesis
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/bjfuthesis')
-rw-r--r--macros/latex/contrib/bjfuthesis/README.md39
-rw-r--r--macros/latex/contrib/bjfuthesis/bjfuthesis.cls10
-rw-r--r--macros/latex/contrib/bjfuthesis/documentation/bjfuthesis.pdfbin145721 -> 145720 bytes
-rw-r--r--macros/latex/contrib/bjfuthesis/example/thesis.pdfbin3700470 -> 3700466 bytes
4 files changed, 33 insertions, 16 deletions
diff --git a/macros/latex/contrib/bjfuthesis/README.md b/macros/latex/contrib/bjfuthesis/README.md
index 0f6e8822f5..1be1a5d023 100644
--- a/macros/latex/contrib/bjfuthesis/README.md
+++ b/macros/latex/contrib/bjfuthesis/README.md
@@ -1,7 +1,32 @@
-# Beijing Forestry University (BJFU) Thesis Template in LaTeX
+# 北京林业大学 (BJFU) 毕业论文模板 (LaTeX)
Copyright (C) 2021 Liu Changxin
-Version 0.1.0 (2021-05-29)
+Version 1.0.0 (2021-05-30)
+
+## Abstract
+The bjfuthesis class is a LaTeX document class intended for students in Beijing Forestry University (BJFU) to write their theses. It follows the thesis specification of Beijing Forestry University.
+
+## 简介
+bjfuthesis是北京林业大学 (BJFU) 毕业生撰写毕业论文使用的LaTeX模板。使用该模板可以快速编写出符合论文格式要求的论文。该模板精心编写,具有使用简单、便捷、可靠的优点。
+
+## 使用方法
+1. 下载并安装MiKTeX:https://miktex.org/download
+1. 下载并安装Perl:macOS与Linux操作系统已内置Perl,无需安装。使用Windows的用户需下载并安装:https://strawberryperl.com
+1. 下载并安装TeXstudio:https://www.texstudio.org
+1. 配置TeXstudio:
+ 1. 点击 Options -> Configure TeXstudio 以打开设置界面
+ 1. 在 General -> Language 中选择 zh_CN (Chinese) 将界面设为中文
+ 1. 点击 OK 使设置生效
+ 1. 再次打开设置
+ 1. 勾选左下角的 显示高级选项
+ 1. 在 构建 -> 默认编译器 中输入值 txs:///latexmk -xelatex
+ 1. 点击绿色三角形的构建按钮(有两个构建按钮,左侧的是构建并查看,右侧的是仅构建。请根据需要自行选择)
+ 1. 当底部的消息栏中显示完成时,你应该便可以看到生成的PDF文件了
+
+## Contribute
+You can contribute to the template in
+
+ https://github.com/bjfu-projects/bjfuthesis
## License
Licensed under the GNU General Public License v3.0 (the "License"); you may not use this file except in compliance with the License.
@@ -12,12 +37,4 @@ You may obtain a copy of the License at
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.
-
-## Abstract
-The bjfuthesis class is a LaTeX class intended for students in Beijing Forestry University (BJFU) to write their theses. The class is based on the ctexbook class. It modifies some of the layout and style definitions of these packages in order to provide a document layout that should be compatible with Beijing Forestry University Thesis Standard.
-
-## Installation
-Get the latest release of bjfuthesis from
-
- https://github.com/bjfu-projects/bjfu-thesis \ No newline at end of file
+limitations under the License. \ No newline at end of file
diff --git a/macros/latex/contrib/bjfuthesis/bjfuthesis.cls b/macros/latex/contrib/bjfuthesis/bjfuthesis.cls
index cabf2f3ca8..5395edcc24 100644
--- a/macros/latex/contrib/bjfuthesis/bjfuthesis.cls
+++ b/macros/latex/contrib/bjfuthesis/bjfuthesis.cls
@@ -17,19 +17,19 @@
\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}}
+\RequirePackage{iftex}
+\ifXeTeX\else\ClassError{bjfuthesis}{XeLaTeX is required to compile this document}\fi
\def\header@text{北京林业大学本科毕业论文}
\def\keywords@label@zh{关键词:}
\def\keywords@label@en{Keywords: }
\def\chartnote@label{注:}
-\ProvidesClass{bjfuthesis}[2021/05/29 LaTeX document style for BJFU thesis]
+\ProvidesClass{bjfuthesis}[2021/05/30 LaTeX document style for BJFU thesis]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ProcessOptions*
\LoadClass[a4paper,oneside,fontset=none]{ctexbook}
-\RequirePackage{pdfpages}
-\RequirePackage{graphicx}
+\RequirePackage{pdfpages,graphicx}
\graphicspath{{figures/}}
-\RequirePackage{silence}
-\RequirePackage{bicaption}
+\RequirePackage{silence,bicaption}
\DeclareCaptionFormat{bjfucaption}{\textbf{\fontsize{9}{21}\selectfont#1#2#3}}
\captionsetup{format=bjfucaption,skip=0pt,labelsep=space}
\captionsetup[figure][bi-second]{name=Figure}
diff --git a/macros/latex/contrib/bjfuthesis/documentation/bjfuthesis.pdf b/macros/latex/contrib/bjfuthesis/documentation/bjfuthesis.pdf
index dca53ae91c..c246213cae 100644
--- a/macros/latex/contrib/bjfuthesis/documentation/bjfuthesis.pdf
+++ b/macros/latex/contrib/bjfuthesis/documentation/bjfuthesis.pdf
Binary files differ
diff --git a/macros/latex/contrib/bjfuthesis/example/thesis.pdf b/macros/latex/contrib/bjfuthesis/example/thesis.pdf
index b29d4e8cb0..24e4dacf68 100644
--- a/macros/latex/contrib/bjfuthesis/example/thesis.pdf
+++ b/macros/latex/contrib/bjfuthesis/example/thesis.pdf
Binary files differ