-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommonInclusion.sty
59 lines (50 loc) · 2.46 KB
/
CommonInclusion.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
%! Package = CommonInclusion
%! Author = Geno1024
%! Date = 2022-07-15
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{CommonInclusion}[2022-07-15 Geno1024's Package for CST-Live-Guide]
\RequirePackage{xeCJK}
\RequirePackage[
colorlinks,
citecolor = blue,
linkcolor = blue,
urlcolor = blue
]{hyperref}
\RequirePackage{subfiles}
\RequirePackage[outputdir=./build]{minted}
\RequirePackage{tikz}
\RequirePackage[backend=biber, style=gb7714-2015]{biblatex} % for References
\RequirePackage{titling} % for Maketitle
\RequirePackage{indentfirst} % for CommonInclusion/parindent
\RequirePackage{csquotes} % for NumberSystemBasics/PositionalNotation/Decimal
\RequirePackage{enumitem} % for NumberSystemBasics/PositionalNotation/Binary
\RequirePackage{tablefootnote} % for NumberSystemBasics/PositionalNotation/BinaryDerivation/HistoricalHexadecimalDigits, https://tex.stackexchange.com/a/35669/149813
\RequirePackage{stackengine} % for NumberSystemBasics/PositionalNotationConversion/FromDecimal/IntegerShortDivision/Sample -> CommonInclusion/shortdiv
\RequirePackage{siunitx} % for NumberSystemBasics/FixedPointAndFloatingPoint/FixedPoint/DataRange
\RequirePackage{amssymb} % for NumberSystemBasics/FixedPointAndFloatingPoint/FloatingPoint
\RequirePackage{ulem} % for NumberSystemBasics/FloatingPointNotations
%\RequirePackage{multirow} % for NumberSystemBasics/PositionalNotationConversion/FromDecimal/IntegerShortDivision/Sample
%\RequirePackage[normalem]{ulem} % for NumberSystemBasics/fixed-point-and-floating-point/floating-point-notations, https://tex.stackexchange.com/a/13699/149813
% https://tex.stackexchange.com/a/635103/149813
\hypersetup{
pdfauthor = {JNU 15 CST Geno},
pdftitle = {CST Live Guide},
pdfsubject = {CST Live Guide},
pdfkeywords = {Computer Science},
pdfproducer = {LaTeX},
pdfcreator = {XeLaTeX}
}
% https://tex.stackexchange.com/a/351021/149813
\usetikzlibrary{tikzmark,calc}
\newcommand{\booknamezh}{CST 生存指南}
\newcommand{\booknameen}{CST Live Guide}
\newcommand{\cst}{计算机科学与技术}
% https://tex.stackexchange.com/a/210652/149813
% for NumberSystemBasics/PositionalNotationConversion/FromDecimal/IntegerShortDivision/Sample
\newcommand{\rlwd}{.5pt}
\newcommand{\rlht}{2.2ex}
\newcommand{\rldp}{.5ex}
\newcommand{\shortdiv}[1]{~\rule[-\rldp]{\rlwd}{\rlht}\setbox0=\hbox{~#1}\stackunder[\dimexpr\rldp-\rlwd]{~#1}{\rule{\wd0}{\rlwd}}}
\addbibresource[location=local]{References.bib}
\setlength{\parindent}{2em}
\setlength{\parskip}{0.5em}