-
Notifications
You must be signed in to change notification settings - Fork 120
/
mutou_ran_blue.tex
217 lines (193 loc) · 7.13 KB
/
mutou_ran_blue.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
%!TeX encoding = UTF-8
%!TeX program = xelatex
\documentclass[notheorems, aspectratio=54]{beamer}
% aspectratio: 1610, 149, 54, 43(default), 32
\usepackage{latexsym}
\usepackage{amsmath,amssymb}
\usepackage{mathtools}
\usepackage{color,xcolor}
\usepackage{graphicx}
\usepackage{algorithm}
\usepackage{amsthm}
\usepackage{lmodern} % 解决 font warning
% \usepackage[UTF8]{ctex}
\usepackage{animate} % insert gif
\usepackage{lipsum} % To generate test text
\usepackage{ulem} % 下划线,波浪线
\usepackage{listings} % display code on slides; don't forget [fragile] option after \begin{frame}
% ----------------------------------------------
% tikx
\usepackage{framed}
\usepackage{tikz}
\usepackage{pgf}
\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols}
\pgfmathsetseed{1} % To have predictable results
% Define a background layer, in which the parchment shape is drawn
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}
\definecolor{myblue}{RGB}{1,75,182}
% define styles for the normal border and the torn border
\tikzset{
normal border/.style={myblue, decorate,
decoration={random steps, segment length=2.5cm, amplitude=.7mm}},
torn border/.style={myblue, decorate,
decoration={random steps, segment length=.5cm, amplitude=1.7mm}}}
% Macro to draw the shape behind the text, when it fits completly in the
% page
\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}}}
% Macro to draw the shape, when the text will continue in next page
\def\parchmentframetop#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 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}}}
% Macro to draw the shape, when the text continues from previous page
\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}}}
% Macro to draw the shape, when both the text continues from previous page
% and it will continue in next page
\def\parchmentframemiddle#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 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}}}
% Define the environment which puts the frame
% In this case, the environment also accepts an argument with an optional
% title (which defaults to ``Example'', which is typeset in a box overlaid
% on the top border
\newenvironment{parchment}[1][Example]{%
\def\FrameCommand{\parchmentframe}%
\def\FirstFrameCommand{\parchmentframetop}%
\def\LastFrameCommand{\parchmentframebottom}%
\def\MidFrameCommand{\parchmentframemiddle}%
\vskip\baselineskip
\MakeFramed {\FrameRestore}
\noindent\tikz\node[inner sep=1ex, draw=black!20,fill=myblue,
anchor=west, overlay] at (0em, 1em) {\sffamily#1};\par}%
{\endMakeFramed}
% ----------------------------------------------
\mode<presentation>{
\usetheme{Bergen}
% Boadilla CambridgeUS
% default Antibes Berlin Copenhagen
% Madrid Montpelier Ilmenau Malmoe
% Berkeley Singapore Warsaw
\usecolortheme{albatross}
% beetle, beaver, orchid, whale, dolphin
\useoutertheme{infolines}
% infolines miniframes shadow sidebar smoothbars smoothtree split tree
\useinnertheme{circles}
% circles, rectanges, rounded, inmargin
}
% 设置 block 颜色
\setbeamercolor{block title}{bg=red!30,fg=white}
\newcommand{\reditem}[1]{\setbeamercolor{item}{fg=red}\item #1}
% 缩放公式大小
\newcommand*{\Scale}[2][4]{\scalebox{#1}{\ensuremath{#2}}}
% 解决 font warning
\renewcommand\textbullet{\ensuremath{\bullet}}
% ---------------------------------------------------------------------
% flow chart
\tikzset{
>=stealth',
punktchain/.style={
rectangle,
rounded corners,
% fill=black!10,
draw=white, very thick,
text width=6em,
minimum height=2em,
text centered,
on chain
},
largepunktchain/.style={
rectangle,
rounded corners,
draw=white, very thick,
text width=10em,
minimum height=2em,
on chain
},
line/.style={draw, thick, <-},
element/.style={
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=6em,
draw=blue!40!black!90, very thick,
text width=6em,
minimum height=2em,
text centered,
on chain
},
every join/.style={->, thick,shorten >=1pt},
decoration={brace},
tuborg/.style={decorate},
tubnode/.style={midway, right=2pt},
font={\fontsize{10pt}{12}\selectfont},
}
% ---------------------------------------------------------------------
% code setting
\lstset{
language=C++,
basicstyle=\ttfamily\footnotesize,
keywordstyle=\color{red},
breaklines=true,
xleftmargin=2em,
numbers=left,
numberstyle=\color[RGB]{222,155,81},
frame=leftline,
tabsize=4,
breakatwhitespace=false,
showspaces=false,
showstringspaces=false,
showtabs=false,
morekeywords={Str, Num, List},
}
% ---------------------------------------------------------------------
%% preamble
\title[Mutou Ran Blue Theme]{PPT Template - Mutou Ran Blue Theme}
% \subtitle{The subtitle}
\author{Urinx}
\institute[HUST]{[email protected]}
% -------------------------------------------------------------
\begin{document}
%% title frame
\begin{frame}
\titlepage
\end{frame}
%% normal frame
\end{document}