-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpreamble.tex
59 lines (58 loc) · 2.24 KB
/
preamble.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
\documentclass[11pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage{enumitem}
\setlist{leftmargin= 1.3em, labelsep=0.5em} % adjust spacing for lists
%%% below are simple theorems that use amsthm only
% \newtheorem{theorem}{Theorem}
% \newtheorem{corollary}[theorem]{Corollary}
% \newtheorem{lemma}[theorem]{Lemma}
% \newtheorem{proposition}[theorem]{Proposition}
% \newtheorem{conjecture}[theorem]{Conjecture}
%\theoremstyle{definition}
% \newtheorem{definition}[theorem]{Definition}
% \newtheorem{example}[theorem]{Example}
% \newtheorem{exercise}[theorem]{Exercise}
% \theoremstyle{remark}
% \newtheorem{remark}[theorem]{Remark}
% \newtheorem{note}[theorem]{Note}
\usepackage[framemethod=tikz]{mdframed}
\mdfdefinestyle{tao}{outerlinewidth = 1,roundcorner=2pt,innertopmargin=0}
\newmdtheoremenv[style=tao]{theorem}{Theorem}
\newmdtheoremenv[style=tao]{corollary}[theorem]{Corollary}
\newmdtheoremenv[style=tao]{lemma}[theorem]{Lemma}
\newmdtheoremenv[style=tao]{proposition}[theorem]{Proposition}
\newmdtheoremenv[style=tao]{conjecture}[theorem]{Conjecture}
\theoremstyle{definition}
\newmdtheoremenv[style=tao]{definition}[theorem]{Definition}
\newmdtheoremenv[style=tao]{example}[theorem]{Example}
\newmdtheoremenv[style=tao]{exercise}[theorem]{Exercise}
% \theoremstyle{remark}
\newmdtheoremenv[style=tao]{remark}[theorem]{Remark}
\newtheorem{note}[theorem]{Note}
\usepackage[margin=3cm]{geometry}
\usepackage[normalem]{ulem} % needed for strikethroughs
\usepackage{graphicx}
%%%%% If you find emoji in the blogpost (perhaps in the comments),
%%%%% then you can comment out the next line:
\newcommand{\emoji}[1]{\texttt{#1}} % and instead,
%%%%% use LuaTeX and the emoji package to properly print them:
% \usepackage{emoji}
\usepackage{microtype} % better text formatting
\usepackage{xcolor}
\usepackage[hyphens]{url} % allow linebreaks at hyphens
\usepackage[colorlinks = true,
citecolor = blue,
urlcolor = blue,
linkcolor = blue]{hyperref}
\makeatletter
\renewcommand\maketitle{
\noindent {\Large TTT-BLOG-TITLE}\\
\textcolor{gray}{TTT-TAGLINE}
{\begin{center}
{\Huge \bfseries\sffamily \@title{}}
\end{center}}
{\noindent\footnotesize TTT-METADATA}\\
{\tiny TTT-SIGNATURE\\ \hrule \vspace{4ex}}}
\makeatother
\title{TTT-TITLE}