forked from septsea/strange-book-zero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
294 lines (230 loc) · 7.68 KB
/
main.tex
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
% cSpell: disable
% Ignore the next line...
% \documentclass[UTF8,fontset=none,leqno]{ctexart}
% Make sure you have installed the fonts I use. If not, just remember to
% make some modifications.
\documentclass[UTF8,fontset=none,twoside,leqno,12pt,a4paper]{ctexart}
% \documentclass[UTF8,twoside,leqno]{ctexart}
\usepackage{amssymb}
\usepackage{amsmath}
% Add hyperlinks to the table of contents
\usepackage[hidelinks]{hyperref}
\usepackage{bookmark}
\usepackage{xcolor}
\xeCJKsetup{CJKmath=true}
\def\period{。}
% \definecolor{bb}{RGB}{251,114,153}
% \usepackage{lipsum}
% Enable unicode-math? If this is enabled, many font packages will not work.
% However, if this is enabled, the symbols look better.
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\setmathfont{TeX Gyre Termes Math}[range=bb/{latin,Latin}]
\providecommand{\newsection}{}
\renewcommand{\newsection}{\cleardoublepage \thispagestyle{empty}}
% \renewcommand{\newsection}{\cleardoublepage \thispagestyle{plain}}
% ================================================================================
% Set the fonts. You can use whatever you like, or simply remove this part
% and remove the option "fontset=none".
\def\heiti{\CJKfontspec{Sarasa Mono SC Light}}
\def\songti{\CJKfontspec{Source Han Serif CN}}
\def\kaishu{\CJKfontspec{Sarasa Mono SC Light}}
\def\fangsong{\CJKfontspec{Sarasa Mono SC Light}}
\setmonofont{Sarasa Mono SC Light}
\setsansfont{Source Sans Pro Light}
\setCJKmonofont{Sarasa Mono SC Light}
\setCJKmainfont[ItalicFont=Sarasa Mono SC Light]{Source Han Serif CN}
\setCJKsansfont{Sarasa Mono SC Light}
% I use Sarasa Mono SC instead of Kaishu or Fangsong.
% The operating system I use do not have the 4 fonts:
% Heiti, Songti, Kaishu, Fangsong.
% ================================================================================
% Punctuation style: narrow some punctuation symbols
\punctstyle{kaiming}
% Footnote
% Footnotes per page
\usepackage[perpage]{footmisc}
% Define a new set of footnote symbols
\DefineFNsymbols*{myFootnoteStyle}{
% If unicode-math is not enabled, the dollar signs can be removed.
{$\dagger$}{$\ddagger$}{$\S$}{$\P$}{$\parallel$}{$\dagger\dagger$}{$\ddagger\ddagger$}
}
\setfnsymbol{myFootnoteStyle}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
% My own footnote command
\providecommand{\myFN}{}
\renewcommand{\myFN}[1]{\footnote{\sffamily \ #1}}
% Proof and solution style
\usepackage{amsthm}
% Use \nopunct to remove the dot: https://tex.stackexchange.com/questions/268912/can-i-change-the-dot-to-a-colon-after-proof-in-amsthm
% Use \vspace{-\topsep} to remove extra line: https://tex.stackexchange.com/questions/59755/space-before-proof
\newenvironment{pf}{\begin{proof}[\indent\bf 证 \hspace{-.1em}\hspace{-\labelsep}\hspace{1em}\nopunct]}{\end{proof}}
\newtheoremstyle{exer} % ⟨name⟩
{} % ⟨Space above⟩
{} % ⟨Space below⟩
{} % ⟨Body font⟩
{\parindent} % ⟨Indent amount⟩
{\bfseries} % ⟨Theorem head font⟩
{.} % ⟨Punctuation after theorem head⟩
{.5em} % ⟨Space after theorem head⟩
{} % ⟨Theorem head spec (can be left empty, meaning 'normal')⟩
\theoremstyle{exer}
\newtheorem{exercise}{}[subsection]
\newtheoremstyle{exer*} % ⟨name⟩
{} % ⟨Space above⟩
{} % ⟨Space below⟩
{} % ⟨Body font⟩
{\parindent} % ⟨Indent amount⟩
{\bfseries} % ⟨Theorem head font⟩
{} % ⟨Punctuation after theorem head⟩
{0em} % ⟨Space after theorem head⟩
{} % ⟨Theorem head spec (can be left empty, meaning 'normal')⟩
\theoremstyle{exer*}
\newtheorem*{exercise*}{}
\newtheoremstyle{remarkStyle} % ⟨name⟩
{} % ⟨Space above⟩
{} % ⟨Space below⟩
{} % ⟨Body font⟩
{\parindent} % ⟨Indent amount⟩
{\bfseries} % ⟨Theorem head font⟩
{} % ⟨Punctuation after theorem head⟩
{1em} % ⟨Space after theorem head⟩
{} % ⟨Theorem head spec (can be left empty, meaning 'normal')⟩
\theoremstyle{remarkStyle}
\newtheorem*{proposition}{命题}
\newtheorem*{definition}{定义}
\newtheorem*{example}{例}
\newtheorem*{remark}{评注}
% https://oomake.com/question/175655
\renewcommand{\theexercise}{\arabic{exercise}}
% Use some special characters.
\usepackage{pifont}
% Allow page breaks in display formulae
\allowdisplaybreaks[3]
\def\CC{\mathbb{C}}
\def\RR{\mathbb{R}}
\def\QQ{\mathbb{Q}}
\def\ZZ{\mathbb{Z}}
\def\NN{\mathbb{N}}
\def\FF{\mathbb{F}}
\def\ii{\mathrm{i}}
\def\myStar{\ding{72}}
\def\ellipsis{\dots}
\def\qedsymbol{\ding{44}}
\newcommand{\term}[1]{(\textit{#1})}
\makeatletter
% \providecommand{\leqnomode}{}
% \renewcommand{\leqnomode}{\tagsleft@true\let\veqno\@@leqno}
% \providecommand{\reqnomode}{}
% \renewcommand{\reqnomode}{\tagsleft@false\let\veqno\@@eqno}
% Clear even-numbered pages
\renewcommand{\cleardoublepage}{\relax \clearpage
\if@twoside \ifodd\c@page\relax
\else \thispagestyle{empty} \ \clearpage\fi\fi}
% For two-sided documents
\renewcommand\ps@headings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\sffamily\thepage\hfil\slshape\leftmark}%
\def\@oddhead{\sffamily{\slshape\rightmark}\hfil\thepage}%
\let\@mkboth\markboth
\def\sectionmark##1{%
\markboth {{%
\ifnum \c@secnumdepth >\z@
\thesection\quad
\fi
##1}}{}}%
\def\mySubSectmark##1{%
\markright {%
\ifnum \c@secnumdepth >\@ne
\thesubsection\quad
\fi
##1}}}
\renewcommand\ps@plain{
\let\@oddhead\@empty
\def\@oddfoot{\hfil\sffamily\thepage\hfil}%
\let\@evenhead\@empty
\let\@evenfoot\@oddfoot}
\makeatother
% ============================================================
% The document begins.
% ============================================================
\begin{document}
% cSpell: enable
% \pagestyle{empty}
\pagestyle{empty}
\ \
\vfill
\begin{center}
\sffamily
\textbf{\huge Delving into Polynomials}
\vspace{2ex}
\textit{\large A \ding{200}\myFN{\ding{200} implies stupidity in the two-dimensional culture.} article written by a \ding{200} person}
\end{center}
\vfill
\ \
\vfill
\ \
\clearpage
\ \
\clearpage
\title{}
\date{}
\author{}
\ctexset{today=old}
\pagestyle{plain}
\pagenumbering{roman}
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\abstractname}{Abstract}
\pagestyle{plain}
\thispagestyle{empty}
\tableofcontents
\newsection
\input{contents/License Notice.tex}
\newsection
\input{contents/Preface.tex}
\newsection
\pagestyle{headings}
\setcounter{page}{1}
\pagenumbering{arabic}
\section*{Delving into Polynomials}
\addcontentsline{toc}{section}{Delving into Polynomials}
\markboth{Delving into Polynomials}{}
Out of boredom, I wrote the article.
% This is used to occupy some space.
{
\vfill \itshape \sffamily \small
\begin{center}
\begin{tabular}{l}
Gohan ni suru? Ofuro ni suru? Sore tomo\ellipsis \ wa ta shi? \\
(Would you like dinner? Would you like a bath? Or\ellipsis \ would you like me?)
\end{tabular}
\end{center}
}
\clearpage
\input{contents/Prerequisites.tex}
\clearpage
\input{contents/Definition of Polynomials.tex}
\clearpage
\input{contents/Division Algorithm.tex}
\clearpage
\input{contents/Polynomial Equality.tex}
\clearpage
\input{contents/Derivatives.tex}
\clearpage
\input{contents/Roots of Polynomials.tex}
\clearpage
\input{contents/Polynomials over F.tex}
\clearpage
\input{contents/Interpolation.tex}
\clearpage
\input{contents/Generalized Binomial Coefficients.tex}
\clearpage
\input{contents/Summation Formulae.tex}
\clearpage
\input{contents/Derivatives Revisited.tex}
\clearpage
\input{contents/Introduction to Differential Calculus on Polynomials.tex}
\cleardoublepage
% \thispagestyle{empty}
\pagestyle{empty}
\end{document}