-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprelude.sty
94 lines (84 loc) · 2.16 KB
/
prelude.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{hyperref}
\hypersetup{
pdftitle={Project Circinus v1.2.4},
pdfsubject={Spherical trigonometry, and a whole load of baloney},
pdfauthor={qihao}
}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,margin=0.75in, footnotesep=0.25in]{geometry}
\usepackage[bottom]{footmisc}
\usepackage{xifthen}
\usepackage{parskip}
\usepackage{varwidth}
\usepackage{exercise}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{tkz-euclide}
\usetikzlibrary{positioning,angles,calc,quotes,intersections,decorations.text,arrows,pgfplots.fillbetween}
\linespread{1.05}
%%
%% Exercise customization
%%
\renewcommand{\ExerciseHeader}{%
\textbf{\ExerciseName\ \ExerciseHeaderNB\ ---}%
}%
\renewcommand{\AnswerHeader}{%
\smallskip\textbf{Solution: }%
}%
\renewcommand{\ExerciseListHeader}{%
\textbf{\ExerciseName\ \ExerciseHeaderNB\ --- }%
}%
%%
%% Angle formatting commands
%%
\newcommand{\degree}{{}^{\circ}}
\newcommand{\sexg}[3]{%
\ifthenelse{\isempty{#2}}%
{{#1}\degree}%
{\ifthenelse{\isempty{#3}}%
{{#1}\degree {#2}'}%
{{#1}\degree {#2}' {#3}''}%
}%
}%
\newcommand{\hms}[3]{%
\ifthenelse{\isempty{#2}}%
{{#1}^{\mathrm{h}}}%
{\ifthenelse{\isempty{#3}}%
{{#1}^{\mathrm{h}} {#2}^{\mathrm{m}}}%
{{#1}^{\mathrm{h}} {#2}^{\mathrm{m}} {#3}^{\mathrm{s}}}%
}%
}%
\newcommand{\h}{{}^\mathrm{h}}
\newcommand{\RA}{\mathrm{RA}}
\newcommand{\HA}{\mathrm{HA}}
\newcommand{\EOT}{\mathrm{EOT}}
%%
%% Layout commands
%%
\newcommand{\flipanswer}[1]{\rotatebox[origin=c]{180}{\footnotesize #1}}
\setlength{\fboxsep}{0.75em}
\setlength{\fboxrule}{0.75pt}
\newcommand{\boxedtext}[1]{%
\smallskip%
\fbox{\begin{varwidth}{\textwidth}{#1}\end{varwidth}}%
\smallskip%
}
\newcommand{\smallboxedtext}[1]{%
\smallskip%
\begin{center}\framebox{$\quad${#1}$\quad$}\end{center}%
\smallskip%
}
\newcommand{\crule}{%
\smallskip%
\begin{center}\noindent\rule{0.5\textwidth}{0.4pt}\end{center}%
\smallskip%
}
%%
%% Counters
%%
\numberwithin{equation}{section}