Dotfiles V1.5.0
Nvim: Added choice for normal or catppucchin macchiato theme & Translation of Solution Command
This commit is contained in:
@@ -84,5 +84,5 @@
|
|||||||
\newcommand{\st}{\strut}
|
\newcommand{\st}{\strut}
|
||||||
\newcommand{\dps}[1]{\displaystyle{#1}}
|
\newcommand{\dps}[1]{\displaystyle{#1}}
|
||||||
|
|
||||||
\newcommand{\sol}{\setlength{\parindent}{0cm}\textbf{\textit{Solution:}}\setlength{\parindent}{1cm} }
|
\newcommand{\sol}{\setlength{\parindent}{0cm}\textbf{\textit{\solutiontitle :}}\setlength{\parindent}{0cm} }
|
||||||
\newcommand{\solve}[1]{\setlength{\parindent}{0cm}\textbf{\textit{Solution: }}\setlength{\parindent}{1cm}#1 \Qed}
|
\newcommand{\solve}[1]{\setlength{\parindent}{0cm}\textbf{\textit{\solutiontitle : }}\setlength{\parindent}{0cm}#1 \Qed}
|
||||||
|
|||||||
@@ -26,8 +26,16 @@
|
|||||||
\def\pagetitle{Seite}
|
\def\pagetitle{Seite}
|
||||||
\def\chaptertitle{Chapter}
|
\def\chaptertitle{Chapter}
|
||||||
\def\chaptertitle{Kapitel}
|
\def\chaptertitle{Kapitel}
|
||||||
|
\def\solutiontitle{Solution}
|
||||||
|
\def\solutiontitle{Lösung}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% Normal / Catppucchin Macchiato Theme %
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\input{preamble}
|
\input{preamble}
|
||||||
|
% \input{preamble_macchiato}
|
||||||
|
|
||||||
\input{macros}
|
\input{macros}
|
||||||
\input{letterfonts}
|
\input{letterfonts}
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
% PACKAGE IMPORTS
|
% PACKAGE IMPORTS
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
% TODO: Change Bable Language if needed
|
\usepackage{listings}
|
||||||
% \usepackage[ngerman]{babel}
|
\usepackage[german]{babel}
|
||||||
\usepackage[macchiato, styleAll]{catppuccinpalette}
|
|
||||||
\usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry}
|
\usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry}
|
||||||
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
||||||
\usepackage[varbb]{newpxmath}
|
\usepackage[varbb]{newpxmath}
|
||||||
@@ -15,8 +14,8 @@
|
|||||||
\usepackage{enumitem}
|
\usepackage{enumitem}
|
||||||
\usepackage{hyperref,theoremref}
|
\usepackage{hyperref,theoremref}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
pdftitle={\papertitle},
|
pdftitle={notizen_analysis_I_II_ruh_jirayu},
|
||||||
colorlinks=true, linkcolor=CtpBlue!90,
|
colorlinks=true, linkcolor=doc!90,
|
||||||
bookmarksnumbered=true,
|
bookmarksnumbered=true,
|
||||||
bookmarksopen=true
|
bookmarksopen=true
|
||||||
}
|
}
|
||||||
@@ -29,33 +28,65 @@
|
|||||||
\usepackage{nameref}
|
\usepackage{nameref}
|
||||||
\usepackage{multicol,array}
|
\usepackage{multicol,array}
|
||||||
\usepackage{tikz-cd}
|
\usepackage{tikz-cd}
|
||||||
\usepackage{listings}
|
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
|
||||||
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
|
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
|
||||||
\usepackage{import}
|
\usepackage{import}
|
||||||
\usepackage{xifthen}
|
\usepackage{xifthen}
|
||||||
\usepackage{pdfpages}
|
\usepackage{pdfpages}
|
||||||
\usepackage{transparent}
|
\usepackage{transparent}
|
||||||
|
|
||||||
|
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
|
||||||
|
\SetCommentSty{mycommfont}
|
||||||
|
\newcommand{\incfig}[1]{%
|
||||||
|
\def\svgwidth{\columnwidth}
|
||||||
|
\import{./figures/}{#1.pdf_tex}
|
||||||
|
}
|
||||||
|
|
||||||
\usepackage{tikzsymbols}
|
\usepackage{tikzsymbols}
|
||||||
\renewcommand\qedsymbol{$\Laughey$}
|
\renewcommand\qedsymbol{$\Laughey$}
|
||||||
|
|
||||||
|
\everymath{\displaystyle}
|
||||||
|
|
||||||
%\usepackage{import}
|
%\usepackage{import}
|
||||||
%\usepackage{xifthen}
|
%\usepackage{xifthen}
|
||||||
%\usepackage{pdfpages}
|
%\usepackage{pdfpages}
|
||||||
%\usepackage{transparent}
|
%\usepackage{transparent}
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% LISTINGS SETUP
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
% Add Settings for Code Blocks
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% SELF MADE COLORS
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\definecolor{myg}{RGB}{56, 140, 70}
|
||||||
|
\definecolor{myb}{RGB}{45, 111, 177}
|
||||||
|
\definecolor{myr}{RGB}{199, 68, 64}
|
||||||
|
\definecolor{mytheorembg}{HTML}{F2F2F9}
|
||||||
|
\definecolor{mytheoremfr}{HTML}{00007B}
|
||||||
|
\definecolor{mylenmabg}{HTML}{FFFAF8}
|
||||||
|
\definecolor{mylenmafr}{HTML}{983b0f}
|
||||||
|
\definecolor{mypropbg}{HTML}{f2fbfc}
|
||||||
|
\definecolor{mypropfr}{HTML}{191971}
|
||||||
|
\definecolor{myexamplebg}{HTML}{F2FBF8}
|
||||||
|
\definecolor{myexamplefr}{HTML}{88D6D1}
|
||||||
|
\definecolor{myexampleti}{HTML}{2A7F7F}
|
||||||
|
\definecolor{mydefinitbg}{HTML}{E5E5FF}
|
||||||
|
\definecolor{mydefinitfr}{HTML}{3F3FA3}
|
||||||
|
\definecolor{notesgreen}{RGB}{0,162,0}
|
||||||
|
\definecolor{myp}{RGB}{197, 92, 212}
|
||||||
|
\definecolor{mygr}{HTML}{2C3338}
|
||||||
|
\definecolor{myred}{RGB}{127,0,0}
|
||||||
|
\definecolor{myyellow}{RGB}{169,121,69}
|
||||||
|
\definecolor{myexercisebg}{HTML}{F2FBF8}
|
||||||
|
\definecolor{myexercisefg}{HTML}{88D6D1}
|
||||||
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% TCOLORBOX SETUPS
|
% TCOLORBOX SETUPS
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\setlength{\parindent}{0cm}
|
\setlength{\parindent}{0cm}
|
||||||
|
|
||||||
%================================
|
%================================
|
||||||
% THEOREM BOX
|
% THEOREM BOX
|
||||||
%================================
|
%================================
|
||||||
@@ -65,19 +96,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpSurface0,
|
colback = mytheorembg,
|
||||||
colupper = CtpText
|
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpLavender},
|
borderline west = {2pt}{0pt}{mytheoremfr},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpLavender,
|
coltitle = mytheoremfr,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpLavender},
|
segmentation style={solid, mytheoremfr},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -86,19 +116,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpSurface0,
|
colback = mytheorembg,
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpLavender},
|
borderline west = {2pt}{0pt}{mytheoremfr},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpLavender,
|
coltitle = mytheoremfr,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpLavender},
|
segmentation style={solid, mytheoremfr},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -108,39 +137,35 @@
|
|||||||
{%
|
{%
|
||||||
enhanced
|
enhanced
|
||||||
,breakable
|
,breakable
|
||||||
,colback = CtpSurface0
|
,colback = mytheorembg
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
,frame hidden
|
||||||
,boxrule = 0sp
|
,boxrule = 0sp
|
||||||
,borderline west = {2pt}{0pt}{CtpLavender}
|
,borderline west = {2pt}{0pt}{mytheoremfr}
|
||||||
,sharp corners
|
,sharp corners
|
||||||
,description font = \mdseries
|
,description font = \mdseries
|
||||||
,separator sign none
|
,separator sign none
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
%================================
|
%================================
|
||||||
% Corollary
|
% Corollery
|
||||||
%================================
|
%================================
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
\newtcbtheorem[number within=section]{Corollary}{\corollarytitle}
|
\newtcbtheorem[number within=section]{Corollary}{\corollarytitle}
|
||||||
{%
|
{%
|
||||||
enhanced
|
enhanced
|
||||||
,breakable
|
,breakable
|
||||||
,colback = CtpSurface0
|
,colback = myp!10
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
,frame hidden
|
||||||
,boxrule = 0sp
|
,boxrule = 0sp
|
||||||
,borderline west = {2pt}{0pt}{CtpMauve!85!black}
|
,borderline west = {2pt}{0pt}{myp!85!black}
|
||||||
,sharp corners
|
,sharp corners
|
||||||
,detach title
|
,detach title
|
||||||
,before upper = \tcbtitle\par\smallskip
|
,before upper = \tcbtitle\par\smallskip
|
||||||
,coltitle = CtpMauve!85!black
|
,coltitle = myp!85!black
|
||||||
,fonttitle = \bfseries\sffamily
|
,fonttitle = \bfseries\sffamily
|
||||||
,description font = \mdseries
|
,description font = \mdseries
|
||||||
,separator sign none
|
,separator sign none
|
||||||
,segmentation style={solid, CtpMauve!85!black}
|
,segmentation style={solid, myp!85!black}
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
@@ -148,19 +173,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced
|
enhanced
|
||||||
,breakable
|
,breakable
|
||||||
,colback = CtpSurface0
|
,colback = myp!10
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
,frame hidden
|
||||||
,boxrule = 0sp
|
,boxrule = 0sp
|
||||||
,borderline west = {2pt}{0pt}{CtpMauve!85!black}
|
,borderline west = {2pt}{0pt}{myp!85!black}
|
||||||
,sharp corners
|
,sharp corners
|
||||||
,detach title
|
,detach title
|
||||||
,before upper = \tcbtitle\par\smallskip
|
,before upper = \tcbtitle\par\smallskip
|
||||||
,coltitle = CtpMauve!85!black
|
,coltitle = myp!85!black
|
||||||
,fonttitle = \bfseries\sffamily
|
,fonttitle = \bfseries\sffamily
|
||||||
,description font = \mdseries
|
,description font = \mdseries
|
||||||
,separator sign none
|
,separator sign none
|
||||||
,segmentation style={solid, CtpMauve!85!black}
|
,segmentation style={solid, myp!85!black}
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -174,19 +198,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpSurface0,
|
colback = mylenmabg,
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpPeach},
|
borderline west = {2pt}{0pt}{mylenmafr},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpPeach,
|
coltitle = mylenmafr,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpPeach},
|
segmentation style={solid, mylenmafr},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -195,19 +218,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpSurface0,
|
colback = mylenmabg,
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpPeach},
|
borderline west = {2pt}{0pt}{mylenmafr},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpPeach,
|
coltitle = mylenmafr,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpPeach},
|
segmentation style={solid, mylenmafr},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -221,18 +243,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpBlue!10,
|
colback = mypropbg,
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
borderline west = {2pt}{0pt}{mypropfr},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpBlue,
|
coltitle = mypropfr,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpBlue},
|
segmentation style={solid, mypropfr},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -241,18 +263,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpBlue!10,
|
colback = mypropbg,
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
borderline west = {2pt}{0pt}{mypropfr},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpBlue,
|
coltitle = mypropfr,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpBlue},
|
segmentation style={solid, mypropfr},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -266,19 +288,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced
|
enhanced
|
||||||
,breakable
|
,breakable
|
||||||
,colback = CtpSurface0
|
,colback = myg!10
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
,frame hidden
|
||||||
,boxrule = 0sp
|
,boxrule = 0sp
|
||||||
,borderline west = {2pt}{0pt}{CtpGreen}
|
,borderline west = {2pt}{0pt}{myg}
|
||||||
,sharp corners
|
,sharp corners
|
||||||
,detach title
|
,detach title
|
||||||
,before upper = \tcbtitle\par\smallskip
|
,before upper = \tcbtitle\par\smallskip
|
||||||
,coltitle = CtpGreen!85!black
|
,coltitle = myg!85!black
|
||||||
,fonttitle = \bfseries\sffamily
|
,fonttitle = \bfseries\sffamily
|
||||||
,description font = \mdseries
|
,description font = \mdseries
|
||||||
,separator sign none
|
,separator sign none
|
||||||
,segmentation style={solid, CtpGreen!85!black}
|
,segmentation style={solid, myg!85!black}
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -293,19 +314,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpSurface0,
|
colback = myexercisebg,
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
borderline west = {2pt}{0pt}{myexercisefg},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpBlue,
|
coltitle = myexercisefg,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpBlue},
|
segmentation style={solid, myexercisefg},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -314,19 +334,18 @@
|
|||||||
{%
|
{%
|
||||||
enhanced,
|
enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback = CtpSurface0,
|
colback = myexercisebg,
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
frame hidden,
|
||||||
boxrule = 0sp,
|
boxrule = 0sp,
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
borderline west = {2pt}{0pt}{myexercisefg},
|
||||||
sharp corners,
|
sharp corners,
|
||||||
detach title,
|
detach title,
|
||||||
before upper = \tcbtitle\par\smallskip,
|
before upper = \tcbtitle\par\smallskip,
|
||||||
coltitle = CtpBlue,
|
coltitle = myexercisefg,
|
||||||
fonttitle = \bfseries\sffamily,
|
fonttitle = \bfseries\sffamily,
|
||||||
description font = \mdseries,
|
description font = \mdseries,
|
||||||
separator sign none,
|
separator sign none,
|
||||||
segmentation style={solid, CtpBlue},
|
segmentation style={solid, myexercisefg},
|
||||||
}
|
}
|
||||||
{th}
|
{th}
|
||||||
|
|
||||||
@@ -336,11 +355,10 @@
|
|||||||
|
|
||||||
\newtcbtheorem[number within=section]{Example}{\exampletitle}
|
\newtcbtheorem[number within=section]{Example}{\exampletitle}
|
||||||
{%
|
{%
|
||||||
colback = CtpSurface0
|
colback = myexamplebg
|
||||||
,colupper = CtpText
|
|
||||||
,breakable
|
,breakable
|
||||||
,colframe = CtpTeal
|
,colframe = myexamplefr
|
||||||
,coltitle = CtpTeal
|
,coltitle = myexampleti
|
||||||
,boxrule = 1pt
|
,boxrule = 1pt
|
||||||
,sharp corners
|
,sharp corners
|
||||||
,detach title
|
,detach title
|
||||||
@@ -354,11 +372,10 @@
|
|||||||
|
|
||||||
\newtcbtheorem[number within=chapter]{example}{\exampletitle}
|
\newtcbtheorem[number within=chapter]{example}{\exampletitle}
|
||||||
{%
|
{%
|
||||||
colback = CtpSurface0
|
colback = myexamplebg
|
||||||
,colupper = CtpText
|
|
||||||
,breakable
|
,breakable
|
||||||
,colframe = CtpTeal
|
,colframe = myexamplefr
|
||||||
,coltitle = CtpTeal
|
,coltitle = myexampleti
|
||||||
,boxrule = 1pt
|
,boxrule = 1pt
|
||||||
,sharp corners
|
,sharp corners
|
||||||
,detach title
|
,detach title
|
||||||
@@ -375,16 +392,16 @@
|
|||||||
%================================
|
%================================
|
||||||
|
|
||||||
\newtcbtheorem[number within=section]{Definition}{Definition}{enhanced,
|
\newtcbtheorem[number within=section]{Definition}{Definition}{enhanced,
|
||||||
before skip=2mm,after skip=2mm, colback=CtpSurface0,colupper=CtpText,colframe=CtpRed!80!CtpText,boxrule=0.5mm,
|
before skip=2mm,after skip=2mm, colback=red!5,colframe=red!80!black,boxrule=0.5mm,
|
||||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
||||||
boxed title style={frame code={
|
boxed title style={frame code={
|
||||||
\path[fill=CtpRed]
|
\path[fill=tcbcolback]
|
||||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
([yshift=-1mm,xshift=-1mm]frame.north west)
|
||||||
arc[start angle=0,end angle=180,radius=1mm]
|
arc[start angle=0,end angle=180,radius=1mm]
|
||||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
([yshift=-1mm,xshift=1mm]frame.north east)
|
||||||
arc[start angle=180,end angle=0,radius=1mm];
|
arc[start angle=180,end angle=0,radius=1mm];
|
||||||
\path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
|
\path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,
|
||||||
middle color=CtpRed!80!CtpText]
|
middle color=tcbcolback!80!black]
|
||||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
||||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
||||||
-- (frame.south east) -- (frame.south west)
|
-- (frame.south east) -- (frame.south west)
|
||||||
@@ -395,16 +412,16 @@
|
|||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
title={#2},#1}{def}
|
title={#2},#1}{def}
|
||||||
\newtcbtheorem[number within=chapter]{definition}{Definition}{enhanced,
|
\newtcbtheorem[number within=chapter]{definition}{Definition}{enhanced,
|
||||||
before skip=2mm,after skip=2mm, colback=CtpRed!5,colframe=CtpRed!80!CtpText,boxrule=0.5mm,
|
before skip=2mm,after skip=2mm, colback=red!5,colframe=red!80!black,boxrule=0.5mm,
|
||||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
||||||
boxed title style={frame code={
|
boxed title style={frame code={
|
||||||
\path[fill=CtpRed]
|
\path[fill=tcbcolback]
|
||||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
([yshift=-1mm,xshift=-1mm]frame.north west)
|
||||||
arc[start angle=0,end angle=180,radius=1mm]
|
arc[start angle=0,end angle=180,radius=1mm]
|
||||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
([yshift=-1mm,xshift=1mm]frame.north east)
|
||||||
arc[start angle=180,end angle=0,radius=1mm];
|
arc[start angle=180,end angle=0,radius=1mm];
|
||||||
\path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
|
\path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,
|
||||||
middle color=CtpRed!80!CtpText]
|
middle color=tcbcolback!80!black]
|
||||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
||||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
||||||
-- (frame.south east) -- (frame.south west)
|
-- (frame.south east) -- (frame.south west)
|
||||||
@@ -416,6 +433,7 @@
|
|||||||
title={#2},#1}{def}
|
title={#2},#1}{def}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
%================================
|
||||||
% Solution BOX
|
% Solution BOX
|
||||||
%================================
|
%================================
|
||||||
@@ -423,9 +441,8 @@
|
|||||||
\makeatletter
|
\makeatletter
|
||||||
\newtcbtheorem{question}{\questiontitle}{enhanced,
|
\newtcbtheorem{question}{\questiontitle}{enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback=CtpSurface0,
|
colback=white,
|
||||||
colupper=CtpText,
|
colframe=myb!80!black,
|
||||||
colframe=CtpSaphire!80!CtpText,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
title={#2},
|
title={#2},
|
||||||
@@ -437,7 +454,7 @@
|
|||||||
boxrule=0pt,
|
boxrule=0pt,
|
||||||
},
|
},
|
||||||
underlay boxed title={%
|
underlay boxed title={%
|
||||||
\path[fill=CtpSaphire] (title.south west)--(title.south east)
|
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||||
(title.center-|frame.east)
|
(title.center-|frame.east)
|
||||||
[rounded corners=\kvtcb@arc] |-
|
[rounded corners=\kvtcb@arc] |-
|
||||||
@@ -454,9 +471,8 @@
|
|||||||
\makeatletter
|
\makeatletter
|
||||||
\newtcolorbox{solution}{enhanced,
|
\newtcolorbox{solution}{enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback=CtpSurface0,
|
colback=white,
|
||||||
colupper=CtpText,
|
colframe=myg!80!black,
|
||||||
colframe=CtpGreen!80!CtpText,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||||
title=Solution,
|
title=Solution,
|
||||||
boxed title size=title,
|
boxed title size=title,
|
||||||
@@ -467,7 +483,7 @@
|
|||||||
boxrule=0pt,
|
boxrule=0pt,
|
||||||
},
|
},
|
||||||
underlay boxed title={%
|
underlay boxed title={%
|
||||||
\path[fill=CtpGreen] (title.south west)--(title.south east)
|
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||||
(title.center-|frame.east)
|
(title.center-|frame.east)
|
||||||
[rounded corners=\kvtcb@arc] |-
|
[rounded corners=\kvtcb@arc] |-
|
||||||
@@ -483,9 +499,8 @@
|
|||||||
\makeatletter
|
\makeatletter
|
||||||
\newtcbtheorem{qstion}{\questiontitle}{enhanced,
|
\newtcbtheorem{qstion}{\questiontitle}{enhanced,
|
||||||
breakable,
|
breakable,
|
||||||
colback=CtpSurface0,
|
colback=white,
|
||||||
colupper=CtpText,
|
colframe=mygr,
|
||||||
colframe=CtpTeal,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
title={#2},
|
title={#2},
|
||||||
@@ -497,7 +512,7 @@
|
|||||||
boxrule=0pt,
|
boxrule=0pt,
|
||||||
},
|
},
|
||||||
underlay boxed title={%
|
underlay boxed title={%
|
||||||
\path[fill=CtpTeal] (title.south west)--(title.south east)
|
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||||
(title.center-|frame.east)
|
(title.center-|frame.east)
|
||||||
[rounded corners=\kvtcb@arc] |-
|
[rounded corners=\kvtcb@arc] |-
|
||||||
@@ -510,20 +525,19 @@
|
|||||||
\newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{
|
\newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{
|
||||||
breakable,
|
breakable,
|
||||||
enhanced,
|
enhanced,
|
||||||
colback=CtpSurface0,
|
colback=white,
|
||||||
colupper=CtpText,
|
colframe=myr,
|
||||||
colframe=CtpTeal,
|
|
||||||
arc=0pt,
|
arc=0pt,
|
||||||
outer arc=0pt,
|
outer arc=0pt,
|
||||||
fonttitle=\bfseries\sffamily\large,
|
fonttitle=\bfseries\sffamily\large,
|
||||||
colbacktitle=CtpTeal,
|
colbacktitle=myr,
|
||||||
attach boxed title to top left={},
|
attach boxed title to top left={},
|
||||||
boxed title style={
|
boxed title style={
|
||||||
enhanced,
|
enhanced,
|
||||||
skin=enhancedfirst jigsaw,
|
skin=enhancedfirst jigsaw,
|
||||||
arc=3pt,
|
arc=3pt,
|
||||||
bottom=0pt,
|
bottom=0pt,
|
||||||
interior style={fill=CtpTeal}
|
interior style={fill=myr}
|
||||||
},
|
},
|
||||||
#1
|
#1
|
||||||
}{def}
|
}{def}
|
||||||
@@ -538,21 +552,19 @@
|
|||||||
\tcbuselibrary{skins}
|
\tcbuselibrary{skins}
|
||||||
\newtcolorbox{note}[1][]{%
|
\newtcolorbox{note}[1][]{%
|
||||||
enhanced jigsaw,
|
enhanced jigsaw,
|
||||||
colback=CtpSurface0,%
|
colback=gray!20!white,%
|
||||||
colframe=CtpSurface1,
|
colframe=gray!80!black,
|
||||||
colupper=CtpText,
|
|
||||||
size=small,
|
size=small,
|
||||||
boxrule=1pt,
|
boxrule=1pt,
|
||||||
title=\textbf{\notetitle},
|
title=\textbf{Bemerkung:-},
|
||||||
halign title=flush center,
|
halign title=flush center,
|
||||||
coltitle=CtpText,
|
coltitle=black,
|
||||||
breakable,
|
breakable,
|
||||||
drop shadow=CtpCrust,
|
drop shadow=black!50!white,
|
||||||
attach boxed title to top left={xshift=1cm,yshift=-\tcboxedtitleheight/2,yshifttext=-\tcboxedtitleheight/2},
|
attach boxed title to top left={xshift=1cm,yshift=-\tcboxedtitleheight/2,yshifttext=-\tcboxedtitleheight/2},
|
||||||
minipage boxed title=2.5cm,
|
minipage boxed title=2.5cm,
|
||||||
boxed title style={%
|
boxed title style={%
|
||||||
colback=CtpSurface0,
|
colback=white,
|
||||||
colupper=CtpText,
|
|
||||||
size=fbox,
|
size=fbox,
|
||||||
boxrule=1pt,
|
boxrule=1pt,
|
||||||
boxsep=2pt,
|
boxsep=2pt,
|
||||||
@@ -561,9 +573,9 @@
|
|||||||
\coordinate (dotB) at ($(interior.east) + (0.5pt,0)$);
|
\coordinate (dotB) at ($(interior.east) + (0.5pt,0)$);
|
||||||
\begin{scope}
|
\begin{scope}
|
||||||
\clip (interior.north west) rectangle ([xshift=3ex]interior.east);
|
\clip (interior.north west) rectangle ([xshift=3ex]interior.east);
|
||||||
\filldraw [CtpBase, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east);
|
\filldraw [white, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east);
|
||||||
\end{scope}
|
\end{scope}
|
||||||
\begin{scope}[CtpSurface1]
|
\begin{scope}[gray!80!black]
|
||||||
\fill (dotA) circle (2pt);
|
\fill (dotA) circle (2pt);
|
||||||
\fill (dotB) circle (2pt);
|
\fill (dotB) circle (2pt);
|
||||||
\end{scope}
|
\end{scope}
|
||||||
@@ -584,7 +596,8 @@
|
|||||||
\newcommand{\clm}[3]{\begin{claim}{#1}{#2}#3\end{claim}}
|
\newcommand{\clm}[3]{\begin{claim}{#1}{#2}#3\end{claim}}
|
||||||
\newcommand{\wc}[2]{\begin{wconc}{#1}{}\setlength{\parindent}{1cm}#2\end{wconc}}
|
\newcommand{\wc}[2]{\begin{wconc}{#1}{}\setlength{\parindent}{1cm}#2\end{wconc}}
|
||||||
\newcommand{\thmcon}[1]{\begin{Theoremcon}{#1}\end{Theoremcon}}
|
\newcommand{\thmcon}[1]{\begin{Theoremcon}{#1}\end{Theoremcon}}
|
||||||
\newcommand{\ex}[2]{\begin{Example}{#1}{}#2\end{Example}}
|
\newcommand{\exe}[2]{\begin{Exercise}{#1}{}#2\end{Exercise}}
|
||||||
|
\newcommand{\exa}[2]{\begin{Example}{#1}{}#2\end{Example}}
|
||||||
\newcommand{\dfn}[2]{\begin{Definition}[colbacktitle=red!75!black]{#1}{}#2\end{Definition}}
|
\newcommand{\dfn}[2]{\begin{Definition}[colbacktitle=red!75!black]{#1}{}#2\end{Definition}}
|
||||||
\newcommand{\dfnc}[2]{\begin{definition}[colbacktitle=red!75!black]{#1}{}#2\end{definition}}
|
\newcommand{\dfnc}[2]{\begin{definition}[colbacktitle=red!75!black]{#1}{}#2\end{definition}}
|
||||||
\newcommand{\qs}[2]{\begin{question}{#1}{}#2\end{question}}
|
\newcommand{\qs}[2]{\begin{question}{#1}{}#2\end{question}}
|
||||||
@@ -682,26 +695,65 @@
|
|||||||
\renewcommand{\leq}{\leqslant}
|
\renewcommand{\leq}{\leqslant}
|
||||||
\renewcommand{\geq}{\geqslant}
|
\renewcommand{\geq}{\geqslant}
|
||||||
|
|
||||||
|
% % redefine matrix env to allow for alignment, use r as default
|
||||||
|
% \renewcommand*\env@matrix[1][r]{\hskip -\arraycolsep
|
||||||
|
% \let\@ifnextchar\new@ifnextchar
|
||||||
|
% \array{*\c@MaxMatrixCols #1}}
|
||||||
|
|
||||||
|
|
||||||
|
%\usepackage{framed}
|
||||||
|
%\usepackage{titletoc}
|
||||||
|
%\usepackage{etoolbox}
|
||||||
|
%\usepackage{lmodern}
|
||||||
|
|
||||||
|
|
||||||
|
%\patchcmd{\tableofcontents}{\contentsname}{\sffamily\contentsname}{}{}
|
||||||
|
|
||||||
|
%\renewenvironment{leftbar}
|
||||||
|
%{\def\FrameCommand{\hspace{6em}%
|
||||||
|
% {\color{myyellow}\vrule width 2pt depth 6pt}\hspace{1em}}%
|
||||||
|
% \MakeFramed{\parshape 1 0cm \dimexpr\textwidth-6em\relax\FrameRestore}\vskip2pt%
|
||||||
|
%}
|
||||||
|
%{\endMakeFramed}
|
||||||
|
|
||||||
|
%\titlecontents{chapter}
|
||||||
|
%[0em]{\vspace*{2\baselineskip}}
|
||||||
|
%{\parbox{4.5em}{%
|
||||||
|
% \hfill\Huge\sffamily\bfseries\color{myred}\thecontentspage}%
|
||||||
|
% \vspace*{-2.3\baselineskip}\leftbar\textsc{\small\chaptername~\thecontentslabel}\\\sffamily}
|
||||||
|
%{}{\endleftbar}
|
||||||
|
%\titlecontents{section}
|
||||||
|
%[8.4em]
|
||||||
|
%{\sffamily\contentslabel{3em}}{}{}
|
||||||
|
%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage}
|
||||||
|
%\titlecontents{subsection}
|
||||||
|
%[8.4em]
|
||||||
|
%{\sffamily\contentslabel{3em}}{}{}
|
||||||
|
%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% TABLE OF CONTENTS
|
% TABLE OF CONTENTS
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\usepackage{tikz}
|
\usepackage{tikz}
|
||||||
|
\definecolor{doc}{RGB}{0,60,110}
|
||||||
\usepackage{titletoc}
|
\usepackage{titletoc}
|
||||||
\contentsmargin{0cm}
|
\contentsmargin{0cm}
|
||||||
\titlecontents{chapter}[3.7pc]
|
\titlecontents{chapter}[3.7pc]
|
||||||
{\addvspace{30pt}%
|
{\addvspace{30pt}%
|
||||||
\begin{tikzpicture}[remember picture, overlay]%
|
\begin{tikzpicture}[remember picture, overlay]%
|
||||||
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (-7,-.1) rectangle (-0.5,.5);%
|
\draw[fill=doc!60,draw=doc!60] (-7,-.1) rectangle (-0.9,.5);%
|
||||||
\pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries \chaptertitle\ \thecontentslabel};%
|
\pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries Kapitel\ \thecontentslabel};%
|
||||||
\end{tikzpicture}\color{CtpBlue!60}\large\sc\bfseries}%
|
\end{tikzpicture}\color{doc!60}\large\sc\bfseries}%
|
||||||
{}
|
{}
|
||||||
{}
|
{}
|
||||||
{\;\titlerule\;\large\sc\bfseries \pagetitle\ \thecontentspage
|
{\;\titlerule\;\large\sc\bfseries Seite \thecontentspage
|
||||||
\begin{tikzpicture}[remember picture, overlay]
|
\begin{tikzpicture}[remember picture, overlay]
|
||||||
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (2pt,0) rectangle (4,0.1pt);
|
\draw[fill=doc!60,draw=doc!60] (2pt,0) rectangle (4,0.1pt);
|
||||||
\end{tikzpicture}}%
|
\end{tikzpicture}}%
|
||||||
\titlecontents{section}[4.7pc]
|
\titlecontents{section}[3.7pc]
|
||||||
{\addvspace{2pt}}
|
{\addvspace{2pt}}
|
||||||
{\contentslabel[\thecontentslabel]{2pc}}
|
{\contentslabel[\thecontentslabel]{2pc}}
|
||||||
{}
|
{}
|
||||||
@@ -719,11 +771,10 @@
|
|||||||
\chapter*{%
|
\chapter*{%
|
||||||
\vspace*{-20\p@}%
|
\vspace*{-20\p@}%
|
||||||
\begin{tikzpicture}[remember picture, overlay]%
|
\begin{tikzpicture}[remember picture, overlay]%
|
||||||
\pgftext[right,x=15cm,y=0.2cm]{\color{CtpBlue!60}\Huge\sc\bfseries \contentsname};%
|
\pgftext[right,x=15cm,y=0.2cm]{\color{doc!60}\Huge\sc\bfseries \contentsname};%
|
||||||
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (13,-.75) rectangle (20,1);%
|
\draw[fill=doc!60,draw=doc!60] (13,-.75) rectangle (20,1);%
|
||||||
\clip (13,-.75) rectangle (20,1);
|
\clip (13,-.75) rectangle (20,1);
|
||||||
\pgftext[right,x=15cm,y=0.2cm]{\color{white}\Huge\sc\bfseries \contentsname};%
|
\pgftext[right,x=15cm,y=0.2cm]{\color{white}\Huge\sc\bfseries \contentsname};%
|
||||||
\end{tikzpicture}}%
|
\end{tikzpicture}}%
|
||||||
\@starttoc{toc}}
|
\@starttoc{toc}}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,729 @@
|
|||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% PACKAGE IMPORTS
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
% TODO: Change Bable Language if needed
|
||||||
|
% \usepackage[ngerman]{babel}
|
||||||
|
\usepackage[macchiato, styleAll]{catppuccinpalette}
|
||||||
|
\usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry}
|
||||||
|
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
||||||
|
\usepackage[varbb]{newpxmath}
|
||||||
|
\usepackage{xfrac}
|
||||||
|
\usepackage[makeroom]{cancel}
|
||||||
|
\usepackage{mathtools}
|
||||||
|
\usepackage{bookmark}
|
||||||
|
\usepackage{enumitem}
|
||||||
|
\usepackage{hyperref,theoremref}
|
||||||
|
\hypersetup{
|
||||||
|
pdftitle={\papertitle},
|
||||||
|
colorlinks=true, linkcolor=CtpBlue!90,
|
||||||
|
bookmarksnumbered=true,
|
||||||
|
bookmarksopen=true
|
||||||
|
}
|
||||||
|
\usepackage[most,many,breakable]{tcolorbox}
|
||||||
|
\usepackage{xcolor}
|
||||||
|
\usepackage{varwidth}
|
||||||
|
\usepackage{varwidth}
|
||||||
|
\usepackage{etoolbox}
|
||||||
|
%\usepackage{authblk}
|
||||||
|
\usepackage{nameref}
|
||||||
|
\usepackage{multicol,array}
|
||||||
|
\usepackage{tikz-cd}
|
||||||
|
\usepackage{listings}
|
||||||
|
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
|
||||||
|
\usepackage{import}
|
||||||
|
\usepackage{xifthen}
|
||||||
|
\usepackage{pdfpages}
|
||||||
|
\usepackage{transparent}
|
||||||
|
\usepackage{tikzsymbols}
|
||||||
|
\renewcommand\qedsymbol{$\Laughey$}
|
||||||
|
|
||||||
|
|
||||||
|
%\usepackage{import}
|
||||||
|
%\usepackage{xifthen}
|
||||||
|
%\usepackage{pdfpages}
|
||||||
|
%\usepackage{transparent}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% LISTINGS SETUP
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
% Add Settings for Code Blocks
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% TCOLORBOX SETUPS
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\setlength{\parindent}{0cm}
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% THEOREM BOX
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=section]{Theorem}{\theorytitle}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpSurface0,
|
||||||
|
colupper = CtpText
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpLavender},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpLavender,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpLavender},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=chapter]{theorem}{\theorytitle}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpSurface0,
|
||||||
|
colupper = CtpText,
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpLavender},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpLavender,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpLavender},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcolorbox{Theoremcon}
|
||||||
|
{%
|
||||||
|
enhanced
|
||||||
|
,breakable
|
||||||
|
,colback = CtpSurface0
|
||||||
|
,colupper = CtpText
|
||||||
|
,frame hidden
|
||||||
|
,boxrule = 0sp
|
||||||
|
,borderline west = {2pt}{0pt}{CtpLavender}
|
||||||
|
,sharp corners
|
||||||
|
,description font = \mdseries
|
||||||
|
,separator sign none
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% Corollary
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=section]{Corollary}{\corollarytitle}
|
||||||
|
{%
|
||||||
|
enhanced
|
||||||
|
,breakable
|
||||||
|
,colback = CtpSurface0
|
||||||
|
,colupper = CtpText
|
||||||
|
,frame hidden
|
||||||
|
,boxrule = 0sp
|
||||||
|
,borderline west = {2pt}{0pt}{CtpMauve!85!black}
|
||||||
|
,sharp corners
|
||||||
|
,detach title
|
||||||
|
,before upper = \tcbtitle\par\smallskip
|
||||||
|
,coltitle = CtpMauve!85!black
|
||||||
|
,fonttitle = \bfseries\sffamily
|
||||||
|
,description font = \mdseries
|
||||||
|
,separator sign none
|
||||||
|
,segmentation style={solid, CtpMauve!85!black}
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=chapter]{corollary}{\corollarytitle}
|
||||||
|
{%
|
||||||
|
enhanced
|
||||||
|
,breakable
|
||||||
|
,colback = CtpSurface0
|
||||||
|
,colupper = CtpText
|
||||||
|
,frame hidden
|
||||||
|
,boxrule = 0sp
|
||||||
|
,borderline west = {2pt}{0pt}{CtpMauve!85!black}
|
||||||
|
,sharp corners
|
||||||
|
,detach title
|
||||||
|
,before upper = \tcbtitle\par\smallskip
|
||||||
|
,coltitle = CtpMauve!85!black
|
||||||
|
,fonttitle = \bfseries\sffamily
|
||||||
|
,description font = \mdseries
|
||||||
|
,separator sign none
|
||||||
|
,segmentation style={solid, CtpMauve!85!black}
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% LENMA
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=section]{Lenma}{Lenma}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpSurface0,
|
||||||
|
colupper = CtpText,
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpPeach},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpPeach,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpPeach},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=chapter]{lenma}{Lenma}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpSurface0,
|
||||||
|
colupper = CtpText,
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpPeach},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpPeach,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpPeach},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% PROPOSITION
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=section]{Prop}{\proposaltitle}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpBlue!10,
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpBlue},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpBlue,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpBlue},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=chapter]{prop}{\proposaltitle}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpBlue!10,
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpBlue},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpBlue,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpBlue},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% CLAIM
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=section]{claim}{\claimtitle}
|
||||||
|
{%
|
||||||
|
enhanced
|
||||||
|
,breakable
|
||||||
|
,colback = CtpSurface0
|
||||||
|
,colupper = CtpText
|
||||||
|
,frame hidden
|
||||||
|
,boxrule = 0sp
|
||||||
|
,borderline west = {2pt}{0pt}{CtpGreen}
|
||||||
|
,sharp corners
|
||||||
|
,detach title
|
||||||
|
,before upper = \tcbtitle\par\smallskip
|
||||||
|
,coltitle = CtpGreen!85!black
|
||||||
|
,fonttitle = \bfseries\sffamily
|
||||||
|
,description font = \mdseries
|
||||||
|
,separator sign none
|
||||||
|
,segmentation style={solid, CtpGreen!85!black}
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% Exercise
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=section]{Exercise}{\exercisetitle}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpSurface0,
|
||||||
|
colupper = CtpText,
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpBlue},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpBlue,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpBlue},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
\tcbuselibrary{theorems,skins,hooks}
|
||||||
|
\newtcbtheorem[number within=chapter]{exercise}{\exercisetitle}
|
||||||
|
{%
|
||||||
|
enhanced,
|
||||||
|
breakable,
|
||||||
|
colback = CtpSurface0,
|
||||||
|
colupper = CtpText,
|
||||||
|
frame hidden,
|
||||||
|
boxrule = 0sp,
|
||||||
|
borderline west = {2pt}{0pt}{CtpBlue},
|
||||||
|
sharp corners,
|
||||||
|
detach title,
|
||||||
|
before upper = \tcbtitle\par\smallskip,
|
||||||
|
coltitle = CtpBlue,
|
||||||
|
fonttitle = \bfseries\sffamily,
|
||||||
|
description font = \mdseries,
|
||||||
|
separator sign none,
|
||||||
|
segmentation style={solid, CtpBlue},
|
||||||
|
}
|
||||||
|
{th}
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% EXAMPLE BOX
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\newtcbtheorem[number within=section]{Example}{\exampletitle}
|
||||||
|
{%
|
||||||
|
colback = CtpSurface0
|
||||||
|
,colupper = CtpText
|
||||||
|
,breakable
|
||||||
|
,colframe = CtpTeal
|
||||||
|
,coltitle = CtpTeal
|
||||||
|
,boxrule = 1pt
|
||||||
|
,sharp corners
|
||||||
|
,detach title
|
||||||
|
,before upper=\tcbtitle\par\smallskip
|
||||||
|
,fonttitle = \bfseries
|
||||||
|
,description font = \mdseries
|
||||||
|
,separator sign none
|
||||||
|
,description delimiters parenthesis
|
||||||
|
}
|
||||||
|
{ex}
|
||||||
|
|
||||||
|
\newtcbtheorem[number within=chapter]{example}{\exampletitle}
|
||||||
|
{%
|
||||||
|
colback = CtpSurface0
|
||||||
|
,colupper = CtpText
|
||||||
|
,breakable
|
||||||
|
,colframe = CtpTeal
|
||||||
|
,coltitle = CtpTeal
|
||||||
|
,boxrule = 1pt
|
||||||
|
,sharp corners
|
||||||
|
,detach title
|
||||||
|
,before upper=\tcbtitle\par\smallskip
|
||||||
|
,fonttitle = \bfseries
|
||||||
|
,description font = \mdseries
|
||||||
|
,separator sign none
|
||||||
|
,description delimiters parenthesis
|
||||||
|
}
|
||||||
|
{ex}
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% DEFINITION BOX
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\newtcbtheorem[number within=section]{Definition}{Definition}{enhanced,
|
||||||
|
before skip=2mm,after skip=2mm, colback=CtpSurface0,colupper=CtpText,colframe=CtpRed!80!CtpText,boxrule=0.5mm,
|
||||||
|
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
||||||
|
boxed title style={frame code={
|
||||||
|
\path[fill=CtpRed]
|
||||||
|
([yshift=-1mm,xshift=-1mm]frame.north west)
|
||||||
|
arc[start angle=0,end angle=180,radius=1mm]
|
||||||
|
([yshift=-1mm,xshift=1mm]frame.north east)
|
||||||
|
arc[start angle=180,end angle=0,radius=1mm];
|
||||||
|
\path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
|
||||||
|
middle color=CtpRed!80!CtpText]
|
||||||
|
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
||||||
|
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
||||||
|
-- (frame.south east) -- (frame.south west)
|
||||||
|
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
||||||
|
[sharp corners]-- cycle;
|
||||||
|
},interior engine=empty,
|
||||||
|
},
|
||||||
|
fonttitle=\bfseries,
|
||||||
|
title={#2},#1}{def}
|
||||||
|
\newtcbtheorem[number within=chapter]{definition}{Definition}{enhanced,
|
||||||
|
before skip=2mm,after skip=2mm, colback=CtpRed!5,colframe=CtpRed!80!CtpText,boxrule=0.5mm,
|
||||||
|
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
||||||
|
boxed title style={frame code={
|
||||||
|
\path[fill=CtpRed]
|
||||||
|
([yshift=-1mm,xshift=-1mm]frame.north west)
|
||||||
|
arc[start angle=0,end angle=180,radius=1mm]
|
||||||
|
([yshift=-1mm,xshift=1mm]frame.north east)
|
||||||
|
arc[start angle=180,end angle=0,radius=1mm];
|
||||||
|
\path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
|
||||||
|
middle color=CtpRed!80!CtpText]
|
||||||
|
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
||||||
|
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
||||||
|
-- (frame.south east) -- (frame.south west)
|
||||||
|
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
||||||
|
[sharp corners]-- cycle;
|
||||||
|
},interior engine=empty,
|
||||||
|
},
|
||||||
|
fonttitle=\bfseries,
|
||||||
|
title={#2},#1}{def}
|
||||||
|
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% Solution BOX
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\newtcbtheorem{question}{\questiontitle}{enhanced,
|
||||||
|
breakable,
|
||||||
|
colback=CtpSurface0,
|
||||||
|
colupper=CtpText,
|
||||||
|
colframe=CtpSaphire!80!CtpText,
|
||||||
|
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||||
|
fonttitle=\bfseries,
|
||||||
|
title={#2},
|
||||||
|
boxed title size=title,
|
||||||
|
boxed title style={%
|
||||||
|
sharp corners,
|
||||||
|
rounded corners=northwest,
|
||||||
|
colback=tcbcolframe,
|
||||||
|
boxrule=0pt,
|
||||||
|
},
|
||||||
|
underlay boxed title={%
|
||||||
|
\path[fill=CtpSaphire] (title.south west)--(title.south east)
|
||||||
|
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||||
|
(title.center-|frame.east)
|
||||||
|
[rounded corners=\kvtcb@arc] |-
|
||||||
|
(frame.north) -| cycle;
|
||||||
|
},
|
||||||
|
#1
|
||||||
|
}{def}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% SOLUTION BOX
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\newtcolorbox{solution}{enhanced,
|
||||||
|
breakable,
|
||||||
|
colback=CtpSurface0,
|
||||||
|
colupper=CtpText,
|
||||||
|
colframe=CtpGreen!80!CtpText,
|
||||||
|
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||||
|
title=Solution,
|
||||||
|
boxed title size=title,
|
||||||
|
boxed title style={%
|
||||||
|
sharp corners,
|
||||||
|
rounded corners=northwest,
|
||||||
|
colback=tcbcolframe,
|
||||||
|
boxrule=0pt,
|
||||||
|
},
|
||||||
|
underlay boxed title={%
|
||||||
|
\path[fill=CtpGreen] (title.south west)--(title.south east)
|
||||||
|
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||||
|
(title.center-|frame.east)
|
||||||
|
[rounded corners=\kvtcb@arc] |-
|
||||||
|
(frame.north) -| cycle;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% Question BOX
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\newtcbtheorem{qstion}{\questiontitle}{enhanced,
|
||||||
|
breakable,
|
||||||
|
colback=CtpSurface0,
|
||||||
|
colupper=CtpText,
|
||||||
|
colframe=CtpTeal,
|
||||||
|
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
||||||
|
fonttitle=\bfseries,
|
||||||
|
title={#2},
|
||||||
|
boxed title size=title,
|
||||||
|
boxed title style={%
|
||||||
|
sharp corners,
|
||||||
|
rounded corners=northwest,
|
||||||
|
colback=tcbcolframe,
|
||||||
|
boxrule=0pt,
|
||||||
|
},
|
||||||
|
underlay boxed title={%
|
||||||
|
\path[fill=CtpTeal] (title.south west)--(title.south east)
|
||||||
|
to[out=0, in=180] ([xshift=5mm]title.east)--
|
||||||
|
(title.center-|frame.east)
|
||||||
|
[rounded corners=\kvtcb@arc] |-
|
||||||
|
(frame.north) -| cycle;
|
||||||
|
},
|
||||||
|
#1
|
||||||
|
}{def}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
\newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{
|
||||||
|
breakable,
|
||||||
|
enhanced,
|
||||||
|
colback=CtpSurface0,
|
||||||
|
colupper=CtpText,
|
||||||
|
colframe=CtpTeal,
|
||||||
|
arc=0pt,
|
||||||
|
outer arc=0pt,
|
||||||
|
fonttitle=\bfseries\sffamily\large,
|
||||||
|
colbacktitle=CtpTeal,
|
||||||
|
attach boxed title to top left={},
|
||||||
|
boxed title style={
|
||||||
|
enhanced,
|
||||||
|
skin=enhancedfirst jigsaw,
|
||||||
|
arc=3pt,
|
||||||
|
bottom=0pt,
|
||||||
|
interior style={fill=CtpTeal}
|
||||||
|
},
|
||||||
|
#1
|
||||||
|
}{def}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%================================
|
||||||
|
% NOTE BOX
|
||||||
|
%================================
|
||||||
|
|
||||||
|
\usetikzlibrary{arrows,calc,shadows.blur}
|
||||||
|
\tcbuselibrary{skins}
|
||||||
|
\newtcolorbox{note}[1][]{%
|
||||||
|
enhanced jigsaw,
|
||||||
|
colback=CtpSurface0,%
|
||||||
|
colframe=CtpSurface1,
|
||||||
|
colupper=CtpText,
|
||||||
|
size=small,
|
||||||
|
boxrule=1pt,
|
||||||
|
title=\textbf{\notetitle},
|
||||||
|
halign title=flush center,
|
||||||
|
coltitle=CtpText,
|
||||||
|
breakable,
|
||||||
|
drop shadow=CtpCrust,
|
||||||
|
attach boxed title to top left={xshift=1cm,yshift=-\tcboxedtitleheight/2,yshifttext=-\tcboxedtitleheight/2},
|
||||||
|
minipage boxed title=2.5cm,
|
||||||
|
boxed title style={%
|
||||||
|
colback=CtpSurface0,
|
||||||
|
colupper=CtpText,
|
||||||
|
size=fbox,
|
||||||
|
boxrule=1pt,
|
||||||
|
boxsep=2pt,
|
||||||
|
underlay={%
|
||||||
|
\coordinate (dotA) at ($(interior.west) + (-0.5pt,0)$);
|
||||||
|
\coordinate (dotB) at ($(interior.east) + (0.5pt,0)$);
|
||||||
|
\begin{scope}
|
||||||
|
\clip (interior.north west) rectangle ([xshift=3ex]interior.east);
|
||||||
|
\filldraw [CtpBase, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east);
|
||||||
|
\end{scope}
|
||||||
|
\begin{scope}[CtpSurface1]
|
||||||
|
\fill (dotA) circle (2pt);
|
||||||
|
\fill (dotB) circle (2pt);
|
||||||
|
\end{scope}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
#1,
|
||||||
|
}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% SELF MADE COMMANDS
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
\newcommand{\thm}[2]{\begin{Theorem}{#1}{}#2\end{Theorem}}
|
||||||
|
\newcommand{\cor}[2]{\begin{Corollary}{#1}{}#2\end{Corollary}}
|
||||||
|
\newcommand{\mlenma}[2]{\begin{Lenma}{#1}{}#2\end{Lenma}}
|
||||||
|
\newcommand{\mprop}[2]{\begin{Prop}{#1}{}#2\end{Prop}}
|
||||||
|
\newcommand{\clm}[3]{\begin{claim}{#1}{#2}#3\end{claim}}
|
||||||
|
\newcommand{\wc}[2]{\begin{wconc}{#1}{}\setlength{\parindent}{1cm}#2\end{wconc}}
|
||||||
|
\newcommand{\thmcon}[1]{\begin{Theoremcon}{#1}\end{Theoremcon}}
|
||||||
|
\newcommand{\ex}[2]{\begin{Example}{#1}{}#2\end{Example}}
|
||||||
|
\newcommand{\dfn}[2]{\begin{Definition}[colbacktitle=red!75!black]{#1}{}#2\end{Definition}}
|
||||||
|
\newcommand{\dfnc}[2]{\begin{definition}[colbacktitle=red!75!black]{#1}{}#2\end{definition}}
|
||||||
|
\newcommand{\qs}[2]{\begin{question}{#1}{}#2\end{question}}
|
||||||
|
\newcommand{\pf}[2]{\begin{myproof}[#1]#2\end{myproof}}
|
||||||
|
\newcommand{\nt}[1]{\begin{note}#1\end{note}}
|
||||||
|
|
||||||
|
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
|
||||||
|
Wrong Concept \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}
|
||||||
|
\newcommand\getcurrentref[1]{%
|
||||||
|
\ifnumequal{\value{#1}}{0}
|
||||||
|
{??}
|
||||||
|
{\the\value{#1}}%
|
||||||
|
}
|
||||||
|
\newcommand{\getCurrentSectionNumber}{\getcurrentref{section}}
|
||||||
|
\newenvironment{myproof}[1][\proofname]{%
|
||||||
|
\proof[\bfseries #1: ]%
|
||||||
|
}{\endproof}
|
||||||
|
|
||||||
|
\newcommand{\mclm}[2]{\begin{myclaim}[#1]#2\end{myclaim}}
|
||||||
|
\newenvironment{myclaim}[1][\claimname]{\proof[\bfseries #1: ]}{}
|
||||||
|
|
||||||
|
\newcounter{mylabelcounter}
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\newcommand{\setword}[2]{%
|
||||||
|
\phantomsection
|
||||||
|
#1\def\@currentlabel{\unexpanded{#1}}\label{#2}%
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\tikzset{
|
||||||
|
symbol/.style={
|
||||||
|
draw=none,
|
||||||
|
every to/.append style={
|
||||||
|
edge node={node [sloped, allow upside down, auto=false]{$#1$}}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% deliminators
|
||||||
|
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
|
||||||
|
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
|
||||||
|
|
||||||
|
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
|
||||||
|
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
|
||||||
|
\DeclarePairedDelimiter{\round}{\lfloor}{\rceil}
|
||||||
|
|
||||||
|
\newsavebox\diffdbox
|
||||||
|
\newcommand{\slantedromand}{{\mathpalette\makesl{d}}}
|
||||||
|
\newcommand{\makesl}[2]{%
|
||||||
|
\begingroup
|
||||||
|
\sbox{\diffdbox}{$\mathsurround=0pt#1\mathrm{#2}$}%
|
||||||
|
\pdfsave
|
||||||
|
\pdfsetmatrix{1 0 0.2 1}%
|
||||||
|
\rlap{\usebox{\diffdbox}}%
|
||||||
|
\pdfrestore
|
||||||
|
\hskip\wd\diffdbox
|
||||||
|
\endgroup
|
||||||
|
}
|
||||||
|
\newcommand{\dd}[1][]{\ensuremath{\mathop{}\!\ifstrempty{#1}{%
|
||||||
|
\slantedromand\@ifnextchar^{\hspace{0.2ex}}{\hspace{0.1ex}}}%
|
||||||
|
{\slantedromand\hspace{0.2ex}^{#1}}}}
|
||||||
|
\ProvideDocumentCommand\dv{o m g}{%
|
||||||
|
\ensuremath{%
|
||||||
|
\IfValueTF{#3}{%
|
||||||
|
\IfNoValueTF{#1}{%
|
||||||
|
\frac{\dd #2}{\dd #3}%
|
||||||
|
}{%
|
||||||
|
\frac{\dd^{#1} #2}{\dd #3^{#1}}%
|
||||||
|
}%
|
||||||
|
}{%
|
||||||
|
\IfNoValueTF{#1}{%
|
||||||
|
\frac{\dd}{\dd #2}%
|
||||||
|
}{%
|
||||||
|
\frac{\dd^{#1}}{\dd #2^{#1}}%
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
\providecommand*{\pdv}[3][]{\frac{\partial^{#1}#2}{\partial#3^{#1}}}
|
||||||
|
% - others
|
||||||
|
\DeclareMathOperator{\Lap}{\mathcal{L}}
|
||||||
|
\DeclareMathOperator{\Var}{Var} % varience
|
||||||
|
\DeclareMathOperator{\Cov}{Cov} % covarience
|
||||||
|
\DeclareMathOperator{\E}{E} % expected
|
||||||
|
|
||||||
|
% Since the amsthm package isn't loaded
|
||||||
|
|
||||||
|
% I prefer the slanted \leq
|
||||||
|
\let\oldleq\leq % save them in case they're every wanted
|
||||||
|
\let\oldgeq\geq
|
||||||
|
\renewcommand{\leq}{\leqslant}
|
||||||
|
\renewcommand{\geq}{\geqslant}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% TABLE OF CONTENTS
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\usepackage{tikz}
|
||||||
|
\usepackage{titletoc}
|
||||||
|
\contentsmargin{0cm}
|
||||||
|
\titlecontents{chapter}[3.7pc]
|
||||||
|
{\addvspace{30pt}%
|
||||||
|
\begin{tikzpicture}[remember picture, overlay]%
|
||||||
|
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (-7,-.1) rectangle (-0.5,.5);%
|
||||||
|
\pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries \chaptertitle\ \thecontentslabel};%
|
||||||
|
\end{tikzpicture}\color{CtpBlue!60}\large\sc\bfseries}%
|
||||||
|
{}
|
||||||
|
{}
|
||||||
|
{\;\titlerule\;\large\sc\bfseries \pagetitle\ \thecontentspage
|
||||||
|
\begin{tikzpicture}[remember picture, overlay]
|
||||||
|
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (2pt,0) rectangle (4,0.1pt);
|
||||||
|
\end{tikzpicture}}%
|
||||||
|
\titlecontents{section}[4.7pc]
|
||||||
|
{\addvspace{2pt}}
|
||||||
|
{\contentslabel[\thecontentslabel]{2pc}}
|
||||||
|
{}
|
||||||
|
{\hfill\small \thecontentspage}
|
||||||
|
[]
|
||||||
|
\titlecontents*{subsection}[3.7pc]
|
||||||
|
{\addvspace{-1pt}\small}
|
||||||
|
{}
|
||||||
|
{}
|
||||||
|
{\ --- \small\thecontentspage}
|
||||||
|
[ \textbullet\ ][]
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\renewcommand{\tableofcontents}{%
|
||||||
|
\chapter*{%
|
||||||
|
\vspace*{-20\p@}%
|
||||||
|
\begin{tikzpicture}[remember picture, overlay]%
|
||||||
|
\pgftext[right,x=15cm,y=0.2cm]{\color{CtpBlue!60}\Huge\sc\bfseries \contentsname};%
|
||||||
|
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (13,-.75) rectangle (20,1);%
|
||||||
|
\clip (13,-.75) rectangle (20,1);
|
||||||
|
\pgftext[right,x=15cm,y=0.2cm]{\color{white}\Huge\sc\bfseries \contentsname};%
|
||||||
|
\end{tikzpicture}}%
|
||||||
|
\@starttoc{toc}}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
Reference in New Issue
Block a user