forked from thosgood/qubit.guide
-
Notifications
You must be signed in to change notification settings - Fork 1
/
latex-template-a4.tex
124 lines (92 loc) · 2.13 KB
/
latex-template-a4.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
\documentclass[fleqn]{article}
\usepackage{NotesTeX}
\usepackage{charter}
\usepackage{amsmath,amssymb}
\usepackage{enumitem}
\usepackage{tcolorbox}
\usepackage{tikz-cd}
\usepackage{amscd}
\usepackage{mathtools}
\usepackage{dsfont}
\usepackage{colortbl}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{float}
\usepackage{comment}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepackage{tikz-3dplot-circleofsphere}
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\renewcommand{\leq}{\leqslant}
\renewcommand{\geq}{\geqslant}
\definecolor{primary}{RGB}{177,98,78}
\definecolor{secondary}{RGB}{91,132,177}
\usepackage{hyperref}
\hypersetup{linkcolor={secondary},urlcolor={primary}}
\usepackage[noabbrev,capitalise,nameinlink]{cleveref}
\crefformat{equation}{(#2#1#3)}
\newenvironment{idea}{\noindent}{\medskip}
\tcolorboxenvironment{idea}{
boxrule=2pt,
boxsep=3pt,
colback={white},
colframe={secondary},
enhanced jigsaw,
rounded corners,
before skip=10pt,
after skip=10pt,
}
\newenvironment{technical}{\noindent}{\medskip}
\tcolorboxenvironment{technical}{
boxrule=2pt,
boxsep=3pt,
colback={white},
colframe={primary},
enhanced jigsaw,
rounded corners,
before skip=10pt,
after skip=10pt,
}
\newtheorem*{scenario}{Scenario}
\tcolorboxenvironment{scenario}{
boxrule=2pt,
boxsep=3pt,
colback={white},
colframe={gray},
enhanced jigsaw,
rounded corners,
before skip=10pt,
after skip=10pt,
}
\newtheorem*{circuit}{Circuit}
\tcolorboxenvironment{circuit}{
boxrule=2pt,
boxsep=3pt,
colback={white},
colframe={gray},
enhanced jigsaw,
rounded corners,
before skip=10pt,
after skip=10pt,
}
\renewcommand{\footnote}[1]{\en{#1}}
\let\oldsection\section
\renewcommand\section{\clearpage\oldsection}
\let\oldpart\part
\renewcommand\part{\clearpage\oldpart}
\pagestyle{fancy}
\lhead{\thesubsection\,\,{\itshape\rightmark}}
\rhead{\thepage}
\fancyfoot{}
\usepackage{etoolbox}
\AtBeginEnvironment{quote}{\itshape}
\title{$title$}
\author{$author$}
\date{$date$}
\begin{document}
\setcounter{tocdepth}{2}
\maketitle
$body$
\end{document}