-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZHKU_Spine.tex
68 lines (64 loc) · 2.71 KB
/
ZHKU_Spine.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
%===========================================================================%
% 书脊Latex模板
%===========================================================================%
%% ZHKU_Spine.tex
%% Copyright 2024 Xinyu Ding <ding.xin.yu@foxmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2008 or later.
%===========================================================================%
%->> 文档类声明 Document class declaration
%---------------------------------------------------------------------------%
\documentclass[UTF8]{ctexbook}%
%- [fontset=<fandol|...>]% specify font set to replace automatic detection
%===========================================================================%
%->> 加载包 Load package
%---------------------------------------------------------------------------%
\usepackage[paper=a4paper,margin=3cm]{geometry}% page layout
\usepackage{graphicx}% support rotatebox
%===========================================================================%
%->> 定义命令 Define command
%---------------------------------------------------------------------------%
% 论文标题 title command
\renewcommand{\title}[1]{\def\spinetitle{#1}}
% 作者姓名 author command
\renewcommand{\author}[1]{\def\spineauthor{#1}}
% 校名 institute command
\newcommand{\institute}[1]{\def\spineinst{#1}}
% 年 year command
\renewcommand{\year}[1]{\def\spineyear{#1}}
% 制作书脊命令 command for making spine
\newcommand{\makespine}{
% 无页眉页尾 no header and footer
\newpage\thispagestyle{empty}
% 行距 line space
\linespread{1.0}
% 字号 font property
\heiti\zihao{4}\centering
% 结构 structure
\spinetitle\vfill\spineauthor\vfill\spineinst\vfill\spineyear
}%
% 设置垂直空间 set vertical space
\setlength{\parskip}{0.2ex}
%===========================================================================%
%->> 书脊内容 Spine content
%---------------------------------------------------------------------------%
\begin{document}
%-
%-> 仲恺农业工程学院标准样例
%-
% 论文中文题目
\title{仲\par 恺\par 农\par 业\par 工\par 程\par 学\par 院\par 学\par 位\par 论\par 文\par \rotatebox[origin=c]{-90}{~\LaTeX{}~}\par 模\par 板\par }
% 论文作者
\author{厉\par 飞\par 雨}
% 学校名称
\institute{仲\\恺\\农\\业\\工\\程\\学\\院}
\year{二\\${\bigcirc}$\\二\\四\\年}
\makespine
\end{document}
%===========================================================================%