mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-12 14:18:23 +00:00
[Analysis] Cleaner structure
This commit is contained in:
68
semester3/analysis-ii/cheat-sheet-rb/util/helpers.tex
Normal file
68
semester3/analysis-ii/cheat-sheet-rb/util/helpers.tex
Normal file
@@ -0,0 +1,68 @@
|
||||
% TC boxes
|
||||
\tcbset {
|
||||
base/.style={
|
||||
boxrule=0mm,
|
||||
left=1.75mm,
|
||||
arc=2mm,
|
||||
colbacktitle=black!10!white,
|
||||
coltitle=black,
|
||||
fonttitle=\bfseries,
|
||||
toptitle=0.75mm,
|
||||
bottomtitle=0.25mm,
|
||||
title={#1}
|
||||
}
|
||||
}
|
||||
\newtcolorbox{subbox}[1]{
|
||||
colframe=black!20!white,
|
||||
base={#1}
|
||||
}
|
||||
|
||||
% Math helpers
|
||||
\def\limxo{\lim_{x\to 0}}
|
||||
\def\limxi{\lim_{x\to\infty}}
|
||||
\def\limxn{\lim_{x\to-\infty}}
|
||||
\def\sumk{\sum_{k=1}^\infty}
|
||||
\def\sumn{\sum_{n=0}^\infty}
|
||||
\def\dx{\text{ d}x}
|
||||
|
||||
\def\R{\mathbb{R}}
|
||||
\def\Q{\mathbb{Q}}
|
||||
\def\N{\mathbb{N}}
|
||||
\def\C{\mathbb{C}}
|
||||
\def\Z{\mathbb{Z}}
|
||||
|
||||
\def\S{\mathcal{S}}
|
||||
|
||||
\def\Def{\overset{\text{def.}}{\iff}}
|
||||
|
||||
\def \cgeq{\succcurlyeq}
|
||||
\def \cleq{\preccurlyeq}
|
||||
|
||||
\def \limn{\lim\limits_{n \to \infty}}
|
||||
\def \limi{\liminf\limits_{n \to \infty}}
|
||||
\def \lims{\limsup\limits_{n \to \infty}}
|
||||
|
||||
\def \ord{\text{ord}}
|
||||
\def \sep{\ |\ }
|
||||
|
||||
\def \iffdef{\overset{\text{def}}{\iff}}
|
||||
|
||||
% Titles
|
||||
\def \definition{\colorbox{lightgray}{Def} }
|
||||
\def \notation{\colorbox{lightgray}{Notation} }
|
||||
\def \remark{\colorbox{lightgray}{Remark} }
|
||||
\def \theorem{\colorbox{lightgray}{Th.} }
|
||||
|
||||
% For intuiton and less important notes
|
||||
\def \subtext#1{
|
||||
\color{gray}\footnotesize
|
||||
#1
|
||||
\color{black}\normalsize
|
||||
}
|
||||
|
||||
% inside tc boxes
|
||||
\def \smalltext#1{
|
||||
\footnotesize
|
||||
#1
|
||||
\normalsize
|
||||
}
|
||||
37
semester3/analysis-ii/cheat-sheet-rb/util/setup.tex
Normal file
37
semester3/analysis-ii/cheat-sheet-rb/util/setup.tex
Normal file
@@ -0,0 +1,37 @@
|
||||
\usepackage{flowfram}
|
||||
\ffvadjustfalse
|
||||
\setlength{\columnsep}{1cm}
|
||||
\Ncolumn{3}
|
||||
|
||||
% TCB boxes for important stuff
|
||||
\usepackage[many]{tcolorbox}
|
||||
|
||||
% Mathematical typesetting & symbols
|
||||
\usepackage{amsthm, mathtools, amssymb}
|
||||
\usepackage{marvosym, wasysym}
|
||||
\allowdisplaybreaks
|
||||
|
||||
% Tables
|
||||
\usepackage{tabularx, multirow}
|
||||
\usepackage{booktabs}
|
||||
\renewcommand*{\arraystretch}{2}
|
||||
|
||||
% Make enumerations more compact
|
||||
\usepackage{enumitem}
|
||||
\setitemize{itemsep=0.5pt}
|
||||
\setenumerate{itemsep=0.75pt}
|
||||
|
||||
% To include sketches & PDFs
|
||||
\usepackage{graphicx}
|
||||
|
||||
% For hyperlinks
|
||||
\usepackage{hyperref}
|
||||
\hypersetup{ colorlinks=true }
|
||||
|
||||
% Fomatting
|
||||
\usepackage{multicol}
|
||||
\usepackage{parskip} % Disables new paragraph indent
|
||||
|
||||
% Custom resets
|
||||
\renewcommand{\arraystretch}{1.3} % Decrease row height
|
||||
\renewcommand{\familydefault}{\sfdefault}
|
||||
Reference in New Issue
Block a user