-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbkthesis.sty
145 lines (118 loc) · 3.79 KB
/
bkthesis.sty
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
% this package is designed by: thanhhungqb@gmail.com
% more infor mation and update: https://github.com/HungTVo/thesis-template
%
% this package also use code from:
% http://tex.stackexchange.com/questions/51483/how-to-write-abstract-and-acknowledgement-in-book-format
% thank for Fredrik M. Kirkemo to gave a useful code
\ProvidesPackage{bkthesis}
\RequirePackage{graphicx}
\RequirePackage{vietnam}
\RequirePackage{geometry}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{indentfirst}
% \usepackage{geometry}
\def\thesislayout{ % A4: 210 × 297
\geometry{
a4paper,
total={160mm,247mm}, % fix over page
left=30mm,
top=20mm,
}
}
\newcommand{\@sdeptname}{KHOA KHOA HỌC \& KỸ THUẬT MÁY TÍNH}
\newcommand{\csdeptname}[1]{\renewcommand{\@sdeptname}{#1}}
\newcommand{\@tname}{TÊN ĐỀ TÀI LUẬN VĂN TỐT NGHIỆP}
\newcommand{\ctname}[1]{\renewcommand{\@tname}{#1}}
\newcommand{\@stuname}{SVTH 1: Nguyễn Văn An (5...)\\SVTH 2: Phạm Bình Minh (...)}
\newcommand{\cstuname}[1]{\renewcommand{\@stuname}{#1}}
\newcommand{\@sCouncil}{Khoa học máy tính 1}
\newcommand{\csCouncil}[1]{\renewcommand{\@sCouncil}{#1}}
\newcommand{\@sReviewer}{TS. A}
\newcommand{\csReviewer}[1]{\renewcommand{\@sReviewer}{#1}}
\newcommand{\@sSupervise}{TS. Nguyễn Văn A}
\newcommand{\csSupervise}[1]{\renewcommand{\@sSupervise}{#1}}
\newcommand{\@ttime}{\today}
\newcommand{\cttime}[1]{\renewcommand{\@ttime}{#1}}
\newcommand{\@rname}{LUẬN VĂN TỐT NGHIỆP ĐẠI HỌC} % report name, luận văn, thực tập...
\newcommand{\crname}[1]{\renewcommand{\@rname}{#1}}
\def\coverpage{
\pagestyle{empty}
% \setlength{\oddsidemargin}{0cm}
% \addtolength{\voffset}{-2.5cm}
% \addtolength{\textwidth}{-2cm}
% \fbox{
\begin{minipage}[b][25.5cm][t]{15cm}
\begin{tikzpicture}[remember picture, overlay]
% \draw[line width = 4pt] ($(current page.north west) + (1in,-1in)$) rectangle ($(current page.south east) + (-1in,1in)$);
\draw [line width=1pt]
($ (current page.north west) + (3.0cm,-2.0cm) $)
rectangle
($ (current page.south east) + (-1.5cm,1.5cm) $);
\draw [line width=3pt]
($ (current page.north west) + (3.15cm,-2.15cm) $)
rectangle
($ (current page.south east) + (-1.65cm,1.65cm) $);
\end{tikzpicture}
\begin{center}
\begin{large}
ĐẠI HỌC QUỐC GIA THÀNH PHỐ HỒ CHÍ MINH\\
TRƯỜNG ĐẠI HỌC BÁCH KHOA\\
\@sdeptname
\end{large} \\
\textbf{-------------------- * ---------------------}\\[2cm]
\includegraphics[scale=0.4]{image/LogoBK.jpg}\\[1.5cm]
{\fontsize{15}{1}\selectfont \@rname }\\[2cm]
{\fontsize{20}{1}\selectfont \textbf{\parbox[c][3cm]{14cm}{\centering \@tname}} }\\[3.2cm]
\end{center}
{\fontsize{15}{1}\selectfont
\hspace{5cm}\parbox[t][4cm]{10cm}{
HỘI ĐỒNG: \@sCouncil \\[3pt]
GVHD: \parbox[t]{8cm}{\@sSupervise} \\[3pt]
GVPB: \@sReviewer
\hspace{2.2cm} ---o0o---
\parbox[t][1.5cm]{10cm}{\@stuname}
}
}
\vspace{2.5cm}
\begin{center}
{\fontsize{14}{1}\selectfont TP. HỒ CHÍ MINH, \@ttime }\\
\end{center}
\end{minipage}
}
% }
\def\makeprintversion{}
%% Remember to load babel before loading this package or define the command \abstractname!
\makeatletter
\newenvironment{abstract}{
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\begin{center}
\bfseries Tóm tắt nội dung
\@endparpenalty\@M
\end{center}}
{\par\vfil\null\endtitlepage}
\makeatother
\makeatletter
\newenvironment{acknowledgments}{
\titlepage \null\vfil
\small
\begin{center}
{\bfseries Lời cảm ơn / Lời ngỏ\vspace{-.5em}\vspace{\z@}}
\end{center}
\quotation
}{}
\makeatother
% Declaration
\makeatletter
\newenvironment{declaration}{
\small
\begin{center}
{\bfseries Lời cam đoan\vspace{-.5em}\vspace{\z@}}
\end{center}
\quotation
}{}
\makeatother
% \renewcommand\lstlistingname{Algorithm}
% \renewcommand\lstlistlistingname{Algorithms}