-
Notifications
You must be signed in to change notification settings - Fork 13
/
spine.tex
45 lines (41 loc) · 1.4 KB
/
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
% Copyright (c) 2018-2019 Casper Ti. Vector
% Public domain.
\documentclass[UTF8, zihao = -4]{ctexart}
\usepackage{calc, geometry, graphicx}
\usepackage[defaultsups]{newtxtext}
\usepackage[cmintegrals, varg]{newtxmath}
\pagestyle{empty}
\newlength{\colpad}
\newcommand{\colwidth}{0.99\ccwd}
% 设定论文纸尺寸。
\geometry{paperwidth = 460mm, paperheight = 297mm, margin = 0cm}
% 设定页面宽度、背面 logo 直径和书脊上下边界宽度。
\newcommand{\miniwidth}{210mm}
\newcommand{\logowidth}{64mm}
\newcommand{\vertmargin}{\fill}
% 减号前的值为论文厚度。
\setlength{\colpad}{(10mm - \colwidth) / 2}
\begin{document}
\centering
\begin{minipage}[b][\textheight][b]{\miniwidth}
\vspace*{\fill}\par
\centerline{\includegraphics[width = \logowidth]{pkulogo}}\par
\vspace*{\fill}\par
\end{minipage}
\hspace{\colpad}
\begin{minipage}[b][\textheight][b]{\colwidth}
\bfseries\linespread{1}\selectfont
\vspace*{\vertmargin}\par
% 标题、年份和学号。
测试文档\par\vfill
\rotatebox{-90}{2020}\par\vfill\rotatebox{-90}{0123456789}\par
\vspace*{\vertmargin}\par
\end{minipage}
\hspace{\colpad}
\begin{minipage}[b][\textheight][b]{\miniwidth}
% thesis.pdf 应事先编译好,此处会自动提取其首页。
% 因为要插入 pdf 图片,本文档应用 pdflatex 或 xelatex 编译。
\includegraphics[height = \textheight, page = 1]{thesis}
\end{minipage}
\end{document}
% vim:ts=4:sw=4