Dotfiles V1.2.4

Improved Catppucchin Theme in LaTeX
This commit is contained in:
2025-12-22 12:02:30 +01:00
parent 163feca57e
commit a328abfcea

View File

@@ -2,6 +2,7 @@
% PACKAGE IMPORTS % PACKAGE IMPORTS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TODO: Change Bable Language if needed
% \usepackage[ngerman]{babel} % \usepackage[ngerman]{babel}
\usepackage[macchiato, styleAll]{catppuccinpalette} \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}
@@ -362,16 +363,16 @@
%================================ %================================
\newtcbtheorem[number within=section]{Definition}{Definition}{enhanced, \newtcbtheorem[number within=section]{Definition}{Definition}{enhanced,
before skip=2mm,after skip=2mm, colback=red!5,colframe=red!80!black,boxrule=0.5mm, 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, 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=tcbcolback] \path[fill=CtpRed]
([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=tcbcolback!60!black,right color=tcbcolback!60!black, \path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
middle color=tcbcolback!80!black] middle color=CtpRed!80!CtpText]
([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)
@@ -382,16 +383,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=red!5,colframe=red!80!black,boxrule=0.5mm, 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, 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=tcbcolback] \path[fill=CtpRed]
([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=tcbcolback!60!black,right color=tcbcolback!60!black, \path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
middle color=tcbcolback!80!black] middle color=CtpRed!80!CtpText]
([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)
@@ -411,8 +412,8 @@
\makeatletter \makeatletter
\newtcbtheorem{question}{\questiontitle}{enhanced, \newtcbtheorem{question}{\questiontitle}{enhanced,
breakable, breakable,
colback=white, colback=CtpSurface0,
colframe=CtpSaphire!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},
@@ -424,7 +425,7 @@
boxrule=0pt, boxrule=0pt,
}, },
underlay boxed title={% underlay boxed title={%
\path[fill=tcbcolframe] (title.south west)--(title.south east) \path[fill=CtpSaphire] (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] |-
@@ -441,8 +442,8 @@
\makeatletter \makeatletter
\newtcolorbox{solution}{enhanced, \newtcolorbox{solution}{enhanced,
breakable, breakable,
colback=white, colback=CtpSurface0,
colframe=CtpGreen!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,
@@ -453,7 +454,7 @@
boxrule=0pt, boxrule=0pt,
}, },
underlay boxed title={% underlay boxed title={%
\path[fill=tcbcolframe] (title.south west)--(title.south east) \path[fill=CtpGreen] (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] |-
@@ -469,7 +470,7 @@
\makeatletter \makeatletter
\newtcbtheorem{qstion}{\questiontitle}{enhanced, \newtcbtheorem{qstion}{\questiontitle}{enhanced,
breakable, breakable,
colback=white, colback=CtpSurface0,
colframe=CtpTeal, colframe=CtpTeal,
attach boxed title to top left={yshift*=-\tcboxedtitleheight}, attach boxed title to top left={yshift*=-\tcboxedtitleheight},
fonttitle=\bfseries, fonttitle=\bfseries,
@@ -482,7 +483,7 @@
boxrule=0pt, boxrule=0pt,
}, },
underlay boxed title={% underlay boxed title={%
\path[fill=tcbcolframe] (title.south west)--(title.south east) \path[fill=CtpTeal] (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] |-
@@ -495,7 +496,7 @@
\newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{ \newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{
breakable, breakable,
enhanced, enhanced,
colback=white, colback=CtpSurface0,
colframe=CtpRed, colframe=CtpRed,
arc=0pt, arc=0pt,
outer arc=0pt, outer arc=0pt,
@@ -522,8 +523,8 @@
\tcbuselibrary{skins} \tcbuselibrary{skins}
\newtcolorbox{note}[1][]{% \newtcolorbox{note}[1][]{%
enhanced jigsaw, enhanced jigsaw,
colback=gray!20!white,% colback=CtpSurface1,%
colframe=gray!80!black, colframe=CtpSurface0
size=small, size=small,
boxrule=1pt, boxrule=1pt,
title=\textbf{Bemerkung:-}, title=\textbf{Bemerkung:-},
@@ -534,7 +535,7 @@
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=white, colback=CtpBase,
size=fbox, size=fbox,
boxrule=1pt, boxrule=1pt,
boxsep=2pt, boxsep=2pt,
@@ -543,9 +544,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 [white, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east); \filldraw [CtpBase, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east);
\end{scope} \end{scope}
\begin{scope}[gray!80!black] \begin{scope}[CtpSurface1]
\fill (dotA) circle (2pt); \fill (dotA) circle (2pt);
\fill (dotB) circle (2pt); \fill (dotB) circle (2pt);
\end{scope} \end{scope}