-
Notifications
You must be signed in to change notification settings - Fork 0
/
hcwsa.sty
71 lines (59 loc) · 1.72 KB
/
hcwsa.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
\ProvidesPackage{hcwsa}
\newcommand{\textsbf}[1]{\textsf{\textbf{#1}}}
\RequirePackage[UTF8]{ctex}
\setmainfont{Noto Sans} % set English mainfont as sffamily
\RequirePackage{indentfirst}
\RequirePackage{setspace}
\setlength{\parskip}{0pt}
\RequirePackage{color,xcolor}
\definecolor{lightblue}{HTML}{0189F9}
\RequirePackage{hyperref}
\hypersetup{
breaklinks,
unicode,
linktoc=all,
bookmarksnumbered=true,
bookmarksopen=true,
pdfkeywords={ElegantBook},
colorlinks,
linkcolor=lightblue,
citecolor=lightblue,
urlcolor=lightblue,
plainpages=false,
pdfstartview=FitH,
pdfborder={0 0 0},
linktocpage
}
\RequirePackage{graphicx}
\RequirePackage{wrapfig}
\RequirePackage{float}
% Caption setup
\RequirePackage{caption}
\DeclareCaptionLabelFormat{english}{\textbf{#1}~#2}
\captionsetup[figure]{name=Fig}
\captionsetup[table]{name=Table}
\RequirePackage{geometry}
\geometry{
a4paper,
top=29.4mm, bottom=12.7mm,
left=20mm, right=20mm,
headheight=2.17cm,
headsep=4mm,
footskip=12mm
}
\RequirePackage{marvosym}
\RequirePackage{enumitem}
\setenumerate[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
\setitemize[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
\RequirePackage{scrlayer-scrpage}
\setlength{\footheight}{12.7mm}
\clearpairofpagestyles
\setkomafont{pagenumber}{\LARGE}
\ohead{\pagemark\\\Large}
\RequirePackage{background}
\backgroundsetup{placement=top,scale=1,angle=0,opacity=1,contents={\includegraphics[width=\paperwidth, keepaspectratio]{Bilder/header.png}}}
% Adjust the space before chapters
\RedeclareSectionCommand[beforeskip=-1.5\baselineskip plus -1ex minus -.2ex]{chapter}
% Global footnote number (independent on chapter)
\RequirePackage{chngcntr}
\counterwithout{footnote}{chapter}