This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Writeup.sty
63 lines (63 loc) · 1.94 KB
/
Writeup.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
\xeCJKsetup{CJKmath=true,CheckSingle=true}
%\setCJKmainfont[BoldFont=Heiti SC Medium,ItalicFont=Kaiti SC]{Heiti SC Light}
\setlength{\parskip}{1ex}
\usepackage[margin=1in]{geometry}
\usepackage{amsthm,amssymb,amsmath,amsfonts}
\usepackage{float}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{siunitx}
\usepackage{listings}
\usepackage{color,xcolor}
\definecolor{boxgray}{RGB}{242,242,242}
\definecolor{bordergray}{RGB}{66,66,66}
\definecolor{commentgreen}{RGB}{54,122,27}
\definecolor{stringorange}{RGB}{151,40,38}
\definecolor{keywordblue}{RGB}{0,73,245}
\definecolor{identifierblue}{RGB}{0,35,122}
\definecolor{emphmauve}{RGB}{164,72,215}
\definecolor{bkgblack}{RGB}{30,30,30}
\mdfdefinestyle{Question}{%
roundcorner=5pt,
linewidth=1pt,
skipabove=7pt,
backgroundcolor=boxgray,
linecolor=bordergray,
leftmargin=6pt,
rightmargin=6pt
}
\setmonofont{Menlo}
\lstset{%
language=c++,
basicstyle=\footnotesize\tt,
columns=fullflexible,
breaklines=true,
captionpos=b,
numbers=left,
numberstyle=\tiny\tt,
tabsize=4,
escapeinside={\%*}{*)},
commentstyle=\color{commentgreen},
keywordstyle=\color{keywordblue},
stringstyle=\color{stringorange},
identifierstyle=\color{identifierblue},
emph={if,else,while,throw,goto,for,break,case,do,default,new,return,try,continue,switch,catch,delete,include,using},
emphstyle={\color{emphmauve}},
classoffset=0
}
\usepackage[colorlinks,linkcolor=black,urlcolor=black,citecolor=blue]{hyperref}
\urlstyle{same}
\makeatletter
\def\UrlAlphabet{%
\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j%
\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t%
\do\u\do\v\do\w\do\x\do\y\do\z\do\A\do\B\do\C\do\D%
\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M\do\N%
\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X%
\do\Y\do\Z}
\def\UrlDigits{\do\1\do\2\do\3\do\4\do\5\do\6\do\7\do\8\do\9\do\0}
\g@addto@macro{\UrlBreaks}{\UrlOrds}
\g@addto@macro{\UrlBreaks}{\UrlAlphabet}
\g@addto@macro{\UrlBreaks}{\UrlDigits}
\makeatother