-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tex
143 lines (127 loc) · 4.94 KB
/
template.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
% -*- coding:utf-8 -*-
\documentclass[UTF8,12pt]{ctexart}
\usepackage{tocloft}
\usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black]{hyperref}
\usepackage{fontspec} % use to set font
\usepackage{color}
\usepackage{framed}
\usepackage{lipsum}
\usepackage{tikz}
\usepackage{url}
\usepackage{float}
\usepackage{graphicx}
\usepackage{datetime}
\usepackage[paperwidth=36cm, paperheight=21cm]{geometry}
\usepackage{placeins}
\usepackage{multicol}
\usepackage[center]{titlesec}
\usepackage{sectsty}
\pagestyle{plain} %没有页眉,页脚中部放置页码。
\sectionfont{\fontsize{24}{28}\kaishu} % 改变正文章节字体字号
%This will remove all sectional title numbering
\makeatletter
\renewcommand{\@seccntformat}[1]{}
\makeatother
%This will remove all table of content numbering
\makeatletter
\let\latexl@section\l@section
\def\l@section#1#2{\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}
\makeatother
\geometry{left=1cm,right=1cm,top=2.5cm,bottom=2.5cm}
\renewcommand{\today}{\number\year 年 \number\month 月 \number\day 日}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cfttoctitlefont}{\hfill\Large}
% \renewcommand{\cftaftertoctitle}{\hfill\hfill} %Note the second \hfill, it could have been any dummy text
\usetikzlibrary{decorations.pathmorphing,calc}
\pgfmathsetseed{1}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}
\tikzset{
normal border/.style={orange!30!black!10},
torn border/.style={orange!30!black!5}}
\def\parchmentframe#1{
\tikz{
\node[inner sep=1em] (A) {#1}; % Draw the text of the node
\begin{pgfonlayer}{background} % Draw the shape behind
\fill[normal border]
(A.south east) -- (A.south west) --
(A.north west) -- (A.north east) -- cycle;
\end{pgfonlayer}}}
\def\parchmentframetop#1{
\tikz{
\node[inner sep=1em] (A) {#1}; % Draw the text of the node
\begin{pgfonlayer}{background}
\fill[normal border] % Draw the ``complete shape'' behind
(A.south east) -- (A.south west) --
(A.north west) -- (A.north east) -- cycle;
\fill[torn border] % Add the torn lower border
($(A.south east)-(0,.2)$) -- ($(A.south west)-(0,.2)$) --
($(A.south west)+(0,.2)$) -- ($(A.south east)+(0,.2)$) -- cycle;
\end{pgfonlayer}}}
\def\parchmentframemiddle#1{
\tikz{
\node[inner sep=1em] (A) {#1}; % Draw the text of the node
\begin{pgfonlayer}{background}
\fill[normal border] % Draw the ``complete shape'' behind
(A.south east) -- (A.south west) --
(A.north west) -- (A.north east) -- cycle;
\fill[torn border] % Add the torn lower border
($(A.south east)-(0,.2)$) -- ($(A.south west)-(0,.2)$) --
($(A.south west)+(0,.2)$) -- ($(A.south east)+(0,.2)$) -- cycle;
\fill[torn border] % Add the torn upper border
($(A.north east)-(0,.2)$) -- ($(A.north west)-(0,.2)$) --
($(A.north west)+(0,.2)$) -- ($(A.north east)+(0,.2)$) -- cycle;
\end{pgfonlayer}}}
\newenvironment{parchment}[1][Example]{%
\def\FrameCommand{\parchmentframe}%
\def\FirstFrameCommand{\parchmentframetop}%
\def\LastFrameCommand{\parchmentframebottom}%
\def\MidFrameCommand{\parchmentframemiddle}%
% \vskip \baselineskip
\vskip 0.2cm
\MakeFramed {\FrameRestore}
\noindent\tikz\node[inner sep=1ex, draw=black!20,fill=white,
anchor=west, overlay] at (0em, 1em) {\sffamily#1};\par}%
{\endMakeFramed}
\def\parchmentframebottom#1{
\tikz{
\node[inner sep=2em] (A) {#1}; % Draw the text of the node
\begin{pgfonlayer}{background}
\fill[normal border] % Draw the ``complete shape'' behind
(A.south east) -- (A.south west) --
(A.north west) -- (A.north east) -- cycle;
\fill[torn border] % Add the torn upper border
($(A.north east)-(0,.2)$) -- ($(A.north west)-(0,.2)$) --
($(A.north west)+(0,.2)$) -- ($(A.north east)+(0,.2)$) -- cycle;
\end{pgfonlayer}}}
% \newcommand{\heyizhuo}{\hbox{\scalebox{0.3}[1]{石}\kern-.3em\scalebox{0.7}[1]{岂}}}
\title{南京大学计算机科学与技术系2019届研究生毕业纪念簿}
%有很多同学没交信息,改为纪念簿名录比较严谨。。。
\renewcommand{\contentsname}{\large\heiti 纪念簿名录}
\setcounter{secnumdepth}{1}
% \titlespacing*{\section}
% {0pt}{3cm}{3cm}
\begin{document}
\maketitle
\begin{picture}(200,200)
\put(20,110){ \includegraphics[width=0.9\textwidth]{static/cover_1.jpg} }
\put(20,-100){ \includegraphics[width=0.9\textwidth]{static/nju-cs-logo.jpg} }
\put(150,260){
{\fontsize{50}{54}\kaishu{\color{black} 南京大学计算机科学与技术系 } }
}
\put(150,180){
{\fontsize{50}{54}\kaishu{\color{black} \href{https://github.com/2bdenny/MemoryBook}{二零一九届研究生毕业纪念簿}}}
\end{picture}
\newpage
\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{static/IMG_2963.jpg}
\end{figure}
\FloatBarrier
\newpage
\begin{multicols}{9}
\tableofcontents
\end{multicols}
\newpage
\setlength{\columnsep}{1cm}
\begin{multicols}{2}