-
Notifications
You must be signed in to change notification settings - Fork 4
/
taekim_ebook.sty
67 lines (58 loc) · 1.64 KB
/
taekim_ebook.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
%\usepackage[cm]{fullpage}
\usepackage[english]{babel}
\usepackage[table]{xcolor}
%\usepackage{omega-japanese}
%\InputTranslation currentfile \OCPutf
\usepackage{fancyhdr}
\usepackage{fontspec}
\usepackage{ulem} % for sout
\usepackage{xeCJK}
\usepackage[bookmarks=true,colorlinks=true,linkcolor=blue,pdfusetitle]{hyperref}
\usepackage{tikz}
\usepackage{enumitem}
% Reduce whitespace
\setlist{noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt}
\setmainfont{Linux Biolinum}
\newfontlanguage{Japanese}{JPN}
\setCJKmainfont{IPAGothic}
\hbadness=10000
\raggedbottom
\parindent0pt
%\parskip2.3ex
\setlength{\headheight}{15.2pt}
\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, rounded corners, inner sep=6pt, inner ysep=12pt]
\tikzstyle{fancytitle} = [fill=boxframe, text=white, right=12pt, rounded corners]
\newcommand{\tkbegin}{%
\pagestyle{empty}%
\begin{center}%
\leavevmode%
\normalfont%
\vskip 1cm%
{\LARGE \@title\par}%
\vskip 0.5cm%
{\Large \@author\par}%
\vskip 0.5cm%
{\Large \@date\par}%
\vskip 0.5cm%
\includegraphics[height=1cm]{by-nc-sa.eu.png}%
\end{center}%
\clearpage%
\pagestyle{plain}%
\tableofcontents%
\clearpage%
\pagestyle{fancy}%
\parskip2.3ex%
}
\newenvironment{tkbasebox}%
{\begin{tikzpicture}}%
{\end{tikzpicture}\\}
\newenvironment{tkinsidebox}%
{\begin{minipage}{10.2cm}}%
{\end{minipage}}
\newcommand{\tkboxheader}[1]{\node[fancytitle] at (box.north west) {#1};}
\newcommand{\jpb}{\hskip 0sp plus 2pt minus 2sp}