-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkerbal-book.sty
150 lines (132 loc) · 3.64 KB
/
kerbal-book.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
146
147
148
149
150
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{kerbal-book}
%% section redefinition
\renewcommand\thesection{\arabic{chapter}.\arabic{section}}
\def\section{\@startsection{section}{1}%
\z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
{\Large\bfseries}}
\def\paragraph{\@startsection{paragraph}{4}%
{0em}{\z@}{-\fontdimen2\font\;\;\;\;}%
{\large\bfseries}}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{kotex}
\usepackage[
type={CC},
%modifier={by-nc-sa},
modifier={by-sa},
version={4.0}
]{doclicense}
\renewcommand{\doclicenseText}{%
이 저작물은\space
\href{https://creativecommons.org/licenses/by-sa/4.0/deed.ko}{{크리에이티브 커먼즈 저작자표시-동일조건변경허락 4.0 국제 라이선스}}
에 따라 이용할 수 있습니다.\xspace%
}
\renewcommand{\doclicenseLongText}{\doclicenseText}
\newcommand{\backpage}{%
\cleardoublepage
\thispagestyle{empty}
\null\vfill
\begin{center}
{\textbf{\large 탄도학 기초 for Kerbal Propulsion Lab}}
\\De revolutionibus orbium coelestium et momentis vehiculorum liberorum
\noindent\rule[0.5ex]{\linewidth}{1pt}
\begin{tabular}{r l}
저자 & Albertus Liberius Humaniensis Disciplinus
\\
& \url{twpf.jp/alblib}
\\
초판 초쇄 & 2016년 8월 20일
\end{tabular}
\noindent\rule[0.5ex]{\linewidth}{1pt}
\doclicenseThis
\end{center}
\flushleft
라이선스 본문: \url{https://creativecommons.org/licenses/by-sa/4.0/deed.ko}
\vskip 0.5em
본 라이선스에 따라 공유 및 기여를 할 수 있는 원문의 주소는 다음과 같습니다. \url{https://github.com/alblib/kerbal-book}
\vskip 1em
\hskip 2em
단, 기초자료로서 활용된 Kerbal Space Program의 데이터는 Squad사의 저작물로서 저작권 보호를 받습니다.
(\url{https://kerbalspaceprogram.com/})
}%
\makeatletter
\newcommand*{\cleartoleftpage}{%
\clearpage
\if@twoside
\ifodd\c@page
\hbox{}\newpage
\if@twocolumn
\hbox{}\newpage
\fi
\fi
\fi
}
\makeatother %by Martin Scharrer
\renewcommand*{\maketitle}{%
\thispagestyle{empty}
%\pagestyle{empty}
\cleardoublepage
{
\null\vfill
\centering
{\fontfamily{qzc}\Huge De
\vskip -.3em
revolutionibus orbium coelestium
\vskip -.3em
et
\vskip -.3em
momentis vehiculorum liberorum}
\vskip 10em
{\Large\itshape auctore\unskip\strut\par}
\vskip 0em
{\Large\itshape \authors\unskip\strut\par}
\vfill
{\itshape die}
\vskip 0em
{\large {\itshape vicesima Augusta} MMXVI\par}
\thispagestyle{empty}
\clearpage
\thispagestyle{empty}
%\pagestyle{empty}
\begin{minipage}[t]{0.8\textwidth}
{\noindent\fontfamily{qzc}\selectfont
\begin{flushleft}
factum magnum super regnum publicam
\\imperii super libertatem et veritatem
\\democratia proficit in fascismum et nazismum
\\libertas proficit in mendacium publicam
\\sed verum dictum a te aliquando reveletur
\\rerum litterae aeternum permaneant
\\possit nemo prohibere
\end{flushleft}
\begin{flushright}
feb mmxvi alhd
\end{flushright}
}
\end{minipage}
}
\clearpage
}
\usepackage{chngcntr}
%\newcounter{figure}
%\newcounter{table}
%\numberwithin{figure}{}
%\numberwithin{table}{}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\usepackage{fancyhdr}
\setlength{\headheight}{14pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{ \markboth{Chapter \thechapter. #1}{} }
\renewcommand{\sectionmark}[1]{ \markright{\thesection. #1} }
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{ \nouppercase{\leftmark}} }
\fancyhead[LO]{\textit{ \nouppercase{\rightmark}} }
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}
}
\endinput