-
Notifications
You must be signed in to change notification settings - Fork 2
/
taekim.sty
94 lines (82 loc) · 2.47 KB
/
taekim.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
%\usepackage[cm]{fullpage}
%\usepackage[english]{babel}
\usepackage[table]{xcolor}
\usepackage{multirow}
%\usepackage{omega-japanese}
%\InputTranslation currentfile \OCPutf
\usepackage{fancyhdr}
\usepackage{fontspec}
\usepackage{ulem} % for sout
\usepackage{ctex}
%\usepackage{xeCJK}
\usepackage[bookmarks=true,colorlinks=true,linkcolor=blue,pdfusetitle]{hyperref}
\usepackage{tikz}
\usepackage{tabu}
\usepackage{adjustbox}
\usepackage{enumitem}
\setmainfont{Linux Biolinum O}
\setCJKmainfont[ItalicFont=AR PL UKai CN]{Noto Serif CJK SC}
\setCJKsansfont{Noto Sans CJK SC}
\hbadness=10000
\raggedbottom
\parindent0pt
%\parskip2.3ex
\setlength{\headheight}{15.2pt}
\setlist[enumerate]{itemsep=0pt, parsep=0pt}
\setlist[itemize]{itemsep=0pt, parsep=0pt}
\definecolor{boxbg}{gray}{0.9}
\definecolor{boxframe}{gray}{0.4}
\definecolor{highlight}{RGB}{226,132,0}
\definecolor{tablecaption}{gray}{0.9}
\definecolor{tableheader}{RGB}{255,253,183}
\tikzstyle{tkbox} = [draw=boxframe, fill=boxbg, rectangle, thick, inner sep=10pt]
\tikzstyle{fancytitle} = [fill=boxframe, text=white, above right=0pt, inner xsep=5pt]
\newcommand{\tkbegin}{%
\pagestyle{empty}%
\pagenumbering{Roman}%
\begin{center}%
\leavevmode%
\normalfont%
\vskip 11cm%
{\Huge \textbf{\@title}\par}%
{\large \@author\par}%
\vskip 8cm%
\includegraphics[height=1cm,natwidth=403,natheight=141]{by-nc-sa.png}\\%
{\normalsize \@date\par}%
\end{center}%
\cleardoublepage%
\pagestyle{plain}%
\pagenumbering{roman}%
\tableofcontents%
\clearpage%
\pagestyle{fancy}%
\parskip2ex%
\pagenumbering{arabic}%
\setcounter{page}{1}%
}
\newenvironment{tkbasebox}%
{\begin{tikzpicture}}%
{\end{tikzpicture}}
\newenvironment{tkinsidebox}%
{\begin{minipage}{\dimexpr\textwidth-21pt}}%
{\end{minipage}}
\newcommand{\tkboxheader}[1]{\node[fancytitle] at (box.north west) {\textbf{#1}};}
\newcommand{\jpb}{\hskip 0sp plus 2pt minus 2sp}
\newcommand{\tabincell}[3][t]{\begin{tabular}[#1]{@{}#2@{}}#3\end{tabular}}
\newcommand{\linktarget}[1]{}
\newcommand{\tablecaption}[1]{\cellcolor{tablecaption} #1}
\newcommand{\tableheader}[1]{\cellcolor{tableheader}\textbf{#1}}
\newcommand{\dialogbox}[2]{
\begin{center}\begin{tkbasebox}%
\node[tkbox](box){%
\begin{tkinsidebox}%
\setlist[enumerate]{leftmargin=*, itemsep=0pt, parsep=0pt}%
\setlist[itemize]{leftmargin=*, itemsep=0pt, parsep=0pt}%
#2%
\end{tkinsidebox}%
};%
\tkboxheader{#1}%
\end{tkbasebox}\end{center}%
}
\let\emph\relax
\newcommand{\emph}[1]{{\color{highlight}\em #1}}