Added smile package
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "smile"]
|
||||||
|
path = smile
|
||||||
|
url = https://github.com/LukasPietzschmann/smile
|
||||||
@@ -39,43 +39,23 @@
|
|||||||
\RequirePackage{calc}
|
\RequirePackage{calc}
|
||||||
\RequirePackage{microtype}
|
\RequirePackage{microtype}
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
\RequirePackage{contour}
|
|
||||||
\RequirePackage[normalem]{ulem}
|
|
||||||
\RequirePackage{underscore}
|
\RequirePackage{underscore}
|
||||||
\RequirePackage{tcolorbox}
|
\RequirePackage{tcolorbox}
|
||||||
\RequirePackage{hyperref}
|
\RequirePackage[
|
||||||
|
color,
|
||||||
\RequirePackage{listings}
|
minted,
|
||||||
\RequirePackage[verbatim=true]{lstfiracode}
|
tikz,
|
||||||
\lstdefinestyle{animateblocks}{
|
htmlunderline,
|
||||||
basicstyle=\ttfamily\color{black!20},
|
footnote,
|
||||||
moredelim=**[is][\only<+>{\color{black}}]{@}{@},
|
hyperref,
|
||||||
}
|
pdftitle={\noexpand\inserttitle},
|
||||||
\lstset{
|
pdfauthor={\noexpand\insertauthor},
|
||||||
style=FiraCodeStyle,
|
pdfsubject={\noexpand\inserttitle}
|
||||||
basicstyle=\ttfamily,
|
]{smile/smile}
|
||||||
commentstyle=\color{gray}\itshape,
|
|
||||||
keywordstyle=\bfseries,
|
|
||||||
escapeinside={<!}{!>},
|
|
||||||
}
|
|
||||||
|
|
||||||
\RequirePackage{tikz}
|
\RequirePackage{tikz}
|
||||||
\usetikzlibrary{shapes.geometric, arrows, arrows.meta, shapes, automata, positioning, positioning, fit, calc, fadings, overlay-beamer-styles, decorations.markings}
|
\usetikzlibrary{overlay-beamer-styles, decorations.markings}
|
||||||
\tikzstyle{every picture}+=[remember picture]
|
\tikzstyle{every picture}+=[remember picture]
|
||||||
\tikzstyle{inline} = [shape=rectangle,inner sep=0pt,text depth=0pt]
|
|
||||||
\tikzstyle{squarenode} = [rectangle, draw=black, line width=0.6pt]
|
|
||||||
\tikzstyle{roundednode} = [squarenode, rounded corners=1mm]
|
|
||||||
\tikzstyle{roundnode} = [squarenode, circle]
|
|
||||||
\tikzstyle{arrow} = [thick,->,>=stealth]
|
|
||||||
\tikzstyle{textarrow} = [awesomegray,shorten >=1mm,shorten <=1mm,thick,->,-{Kite[open]}]
|
|
||||||
\tikzstyle{thickarrow} = [
|
|
||||||
thick,
|
|
||||||
decoration={markings, mark=at position 1 with {\arrow[scale=2]{open triangle 60}}},
|
|
||||||
double distance=5pt,
|
|
||||||
shorten >= 13pt,
|
|
||||||
preaction = {decorate},
|
|
||||||
postaction = {draw, line width=5pt, white, shorten >= 7pt}
|
|
||||||
]
|
|
||||||
|
|
||||||
\tikzset{
|
\tikzset{
|
||||||
node distance = 5mm,
|
node distance = 5mm,
|
||||||
@@ -99,14 +79,6 @@
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
\AtEndPreamble{
|
|
||||||
\hypersetup{
|
|
||||||
pdftitle = {\inserttitle},
|
|
||||||
pdfauthor = {\insertauthor},
|
|
||||||
pdfsubject = {\inserttitle}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
\renewcommand{\maketitle}{
|
\renewcommand{\maketitle}{
|
||||||
\begin{frame}[noframenumbering, plain]
|
\begin{frame}[noframenumbering, plain]
|
||||||
\titlepage
|
\titlepage
|
||||||
@@ -119,28 +91,16 @@
|
|||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
\renewcommand{\ULdepth}{1.8pt}
|
|
||||||
\contourlength{0.8pt}
|
|
||||||
\newcommand{\gul}[1]{%
|
|
||||||
\uline{\phantom{#1}}%
|
|
||||||
\llap{\contour{white}{#1}}%
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
\renewcommand{\textsubscript}[1]{%
|
|
||||||
\scalebox{0.7}{#1}
|
|
||||||
}
|
|
||||||
|
|
||||||
\let\oldft\frametitle
|
\let\oldft\frametitle
|
||||||
\renewcommand\frametitle[2][]{
|
\renewcommand\frametitle[2][]{
|
||||||
\ifx\relax#1\relax\oldft{#2}\else%
|
\ifx\relax#1\relax\oldft{#2}\else%
|
||||||
\oldft{#2\hfill\normalfont\large\color{awesomegray}\raisebox{0.3ex}{#1}}%
|
\oldft{#2\hfill\normalfont\large\color{darkgray}\raisebox{0.3ex}{#1}}%
|
||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
\BeforeBeginEnvironment{tabular}{
|
\BeforeBeginEnvironment{tabular}{
|
||||||
\renewcommand{\arraystretch}{1.1}
|
\renewcommand{\arraystretch}{1.1}
|
||||||
\rowcolors{2}{awesomelightgray}{white}
|
\rowcolors{2}{lightgray}{white}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -240,35 +200,25 @@
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
\definecolor{awesomeblack}{HTML}{241f31}
|
\setbeamercolor{alerted text}{fg=accent}
|
||||||
\definecolor{awesomemarroon}{HTML}{63452c}
|
|
||||||
\definecolor{awesomegray}{HTML}{77767b}
|
|
||||||
\definecolor{awesomelightgray}{HTML}{f6f5f4}
|
|
||||||
\definecolor{awesomewhite}{HTML}{ffffff}
|
|
||||||
\definecolor{awesomeblue}{HTML}{1c71d8}
|
|
||||||
\definecolor{awesomegreen}{HTML}{26a269}
|
|
||||||
\definecolor{awesomehighlight}{HTML}{ae3342}
|
|
||||||
\definecolor{awesomehighlightlight}{HTML}{c85250}
|
|
||||||
|
|
||||||
\setbeamercolor{alerted text}{fg=awesomehighlight}
|
\setbeamercolor{subtitle}{fg=darkgray}
|
||||||
|
\setbeamercolor{frametitle}{fg=black}
|
||||||
|
\setbeamercolor{framesubtitle}{fg=darkgray}
|
||||||
|
|
||||||
\setbeamercolor{subtitle}{fg=awesomegray}
|
\setbeamercolor{details}{fg=black}
|
||||||
\setbeamercolor{frametitle}{fg=awesomeblack}
|
\setbeamercolor{author}{fg=black}
|
||||||
\setbeamercolor{framesubtitle}{fg=awesomegray}
|
|
||||||
|
|
||||||
\setbeamercolor{details}{fg=awesomeblack}
|
\setbeamercolor{section number projected}{bg=black, fg=accent}
|
||||||
\setbeamercolor{author}{fg=awesomeblack}
|
\setbeamercolor{subsection number projected}{fg=lightgray, fg=accent}
|
||||||
|
|
||||||
\setbeamercolor{section number projected}{bg=awesomeblack, fg=awesomehighlight}
|
\setbeamercolor{structure}{fg=black}
|
||||||
\setbeamercolor{subsection number projected}{fg=awesomelightgray, fg=awesomehighlightlight}
|
\setbeamercolor{normal text}{fg=black}
|
||||||
|
\setbeamercolor{separator}{fg=marroon, bg=marroon}
|
||||||
|
\setbeamercolor{footline}{bg=lightgray}
|
||||||
|
|
||||||
\setbeamercolor{structure}{fg=awesomeblack}
|
\setbeamercolor{block body}{bg=lightgray}
|
||||||
\setbeamercolor{normal text}{fg=awesomeblack}
|
\setbeamercolor{block title}{bg=black, fg=white}
|
||||||
\setbeamercolor{separator}{fg=awesomemarroon, bg=awesomemarroon}
|
|
||||||
\setbeamercolor{footline}{bg=awesomelightgray}
|
|
||||||
|
|
||||||
\setbeamercolor{block body}{bg=awesomelightgray}
|
|
||||||
\setbeamercolor{block title}{bg=awesomeblack, fg=awesomewhite}
|
|
||||||
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
@@ -388,48 +338,29 @@
|
|||||||
\newtcolorbox{beamerbox}[2]{IfBlankTF={#2}{toprule=2mm}{title=#2},colback=#1!5!white,colframe=#1!75!black}
|
\newtcolorbox{beamerbox}[2]{IfBlankTF={#2}{toprule=2mm}{title=#2},colback=#1!5!white,colframe=#1!75!black}
|
||||||
|
|
||||||
\renewenvironment{definition}[1][\empty]{
|
\renewenvironment{definition}[1][\empty]{
|
||||||
\begin{beamerbox}{awesomemarroon}{#1}
|
\begin{beamerbox}{marroon}{#1}
|
||||||
}{\end{beamerbox}}
|
}{\end{beamerbox}}
|
||||||
|
|
||||||
\renewenvironment{block}[1][]{
|
\renewenvironment{block}[1][]{
|
||||||
\begin{beamerbox}{awesomeblue}{#1}
|
\begin{beamerbox}{blue}{#1}
|
||||||
}{\end{beamerbox}}
|
}{\end{beamerbox}}
|
||||||
|
|
||||||
\renewenvironment{examples}[1][]{
|
\renewenvironment{examples}[1][]{
|
||||||
\begin{beamerbox}{awesomegreen}{#1}
|
\begin{beamerbox}{green}{#1}
|
||||||
}{\end{beamerbox}}
|
}{\end{beamerbox}}
|
||||||
|
|
||||||
\renewenvironment{alertblock}[1][]{
|
\renewenvironment{alertblock}[1][]{
|
||||||
\begin{beamerbox}{awesomehighlight}{#1}
|
\begin{beamerbox}{red}{#1}
|
||||||
}{\end{beamerbox}}
|
}{\end{beamerbox}}
|
||||||
|
|
||||||
\newcommand{\background}[1]{
|
|
||||||
\newcommand{\awesome@background}{#1}
|
|
||||||
}
|
|
||||||
|
|
||||||
\newcommand{\email}[1]{
|
\ensureinfocommand{background}
|
||||||
\newcommand{\awesome@email}{#1}
|
\ensureinfocommand{email}
|
||||||
}
|
\ensureinfocommand{uni}
|
||||||
|
\ensureinfocommand{location}
|
||||||
\newcommand{\insertemail}[0]{
|
\newcommand{\insertemail}[0]{\href{mailto:\@email}{\@email}}
|
||||||
\href{mailto:\awesome@email}{\awesome@email}
|
\newcommand{\insertuni}[0]{\@uni}
|
||||||
}
|
\newcommand{\insertlocation}[0]{\@location}
|
||||||
|
|
||||||
\newcommand{\uni}[1]{
|
|
||||||
\newcommand{\awesome@uni}{#1}
|
|
||||||
}
|
|
||||||
|
|
||||||
\newcommand{\insertuni}[0]{
|
|
||||||
\awesome@uni
|
|
||||||
}
|
|
||||||
|
|
||||||
\newcommand{\location}[1]{
|
|
||||||
\newcommand{\awesome@location}{#1}
|
|
||||||
}
|
|
||||||
|
|
||||||
\newcommand{\insertlocation}[0]{
|
|
||||||
\awesome@location
|
|
||||||
}
|
|
||||||
|
|
||||||
\tikzfading[
|
\tikzfading[
|
||||||
name=title page picture fading,
|
name=title page picture fading,
|
||||||
@@ -473,7 +404,7 @@
|
|||||||
\insertdate
|
\insertdate
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
|
|
||||||
\ifdefined\awesome@background
|
\ifdefined\@background
|
||||||
\begin{tikzpicture}[remember picture, overlay]
|
\begin{tikzpicture}[remember picture, overlay]
|
||||||
\clip (current page.south east)
|
\clip (current page.south east)
|
||||||
-- (current page.north east)
|
-- (current page.north east)
|
||||||
@@ -486,7 +417,7 @@
|
|||||||
inner sep=0,
|
inner sep=0,
|
||||||
outer sep=0
|
outer sep=0
|
||||||
] at (current page.south east) {
|
] at (current page.south east) {
|
||||||
\includegraphics[height=\paperheight]{\awesome@background}
|
\includegraphics[height=\paperheight]{\@background}
|
||||||
};
|
};
|
||||||
|
|
||||||
\fill[
|
\fill[
|
||||||
@@ -543,7 +474,7 @@
|
|||||||
\fi%
|
\fi%
|
||||||
\fi%
|
\fi%
|
||||||
\hfill%
|
\hfill%
|
||||||
\colorbox{awesomehighlight}{
|
\colorbox{accent}{
|
||||||
\color{white}
|
\color{white}
|
||||||
\hspace{0.3cm}
|
\hspace{0.3cm}
|
||||||
\ifawesome@english@
|
\ifawesome@english@
|
||||||
@@ -575,7 +506,7 @@
|
|||||||
\hfill%
|
\hfill%
|
||||||
\hyperlinkdocumentstart{\inserttitle}%
|
\hyperlinkdocumentstart{\inserttitle}%
|
||||||
\hfill%
|
\hfill%
|
||||||
\colorbox{awesomehighlight}{
|
\colorbox{accent}{
|
||||||
\color{white}
|
\color{white}
|
||||||
\hspace{0.3cm}%
|
\hspace{0.3cm}%
|
||||||
Agenda
|
Agenda
|
||||||
@@ -603,7 +534,7 @@
|
|||||||
\hfill%
|
\hfill%
|
||||||
\hyperlinkdocumentstart{\inserttitle}%
|
\hyperlinkdocumentstart{\inserttitle}%
|
||||||
\hfill%
|
\hfill%
|
||||||
\colorbox{awesomehighlight}{
|
\colorbox{accent}{
|
||||||
\color{white}
|
\color{white}
|
||||||
\hspace{0.3cm}%
|
\hspace{0.3cm}%
|
||||||
\ifawesome@english@
|
\ifawesome@english@
|
||||||
@@ -677,7 +608,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
\AtEndDocument{
|
\AtEndDocument{
|
||||||
{\setbeamercolor{background canvas}{bg=awesomehighlight!70!black}
|
{\setbeamercolor{background canvas}{bg=accent!70!black}
|
||||||
\begin{frame}[b, noframenumbering]
|
\begin{frame}[b, noframenumbering]
|
||||||
\color{white}
|
\color{white}
|
||||||
\thispagestyle{navigation@titlepage}
|
\thispagestyle{navigation@titlepage}
|
||||||
|
|||||||
BIN
example.pdf
BIN
example.pdf
Binary file not shown.
28
example.tex
28
example.tex
@@ -69,12 +69,12 @@
|
|||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Another Slide}
|
\frametitle{Another Slide}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item That info is sooooooo \tikz\node[na] (A) {\gul{important}};
|
\item That info is sooooooo \tikz\node[na] (A) {\uline{important}};
|
||||||
\item This is a key \tikz\node[na] (D) {\gul{word}};, isn't it?
|
\item This is a key \tikz\node[na] (D) {\uline{word}};, isn't it?
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\vskip2em
|
\vskip2em
|
||||||
\uncover<2->{
|
\uncover<2->{
|
||||||
\Rightarrow~Two important \tikz \node[na] (B) {\gul{items}};!
|
\Rightarrow~Two important \tikz \node[na] (B) {\uline{items}};!
|
||||||
\begin{tikzpicture}[overlay, remember picture]
|
\begin{tikzpicture}[overlay, remember picture]
|
||||||
\draw[textarrow] (A) to [bend left=40] (B);
|
\draw[textarrow] (A) to [bend left=40] (B);
|
||||||
\draw[textarrow] (D) to (B);
|
\draw[textarrow] (D) to (B);
|
||||||
@@ -93,18 +93,18 @@
|
|||||||
remember picture,
|
remember picture,
|
||||||
overlay,
|
overlay,
|
||||||
]
|
]
|
||||||
\node[squarenode](P1)[background default draw=black, draw=awesomehighlight, draw on=<3>, yshift=1cm]{P1};
|
\node[squarenode](P1)[background default draw=black, draw=accent, draw on=<3>, yshift=1cm]{P1};
|
||||||
\node[squarenode](P2)[right=of P1, background default draw=black, draw=awesomehighlight, draw on=<3>]{P2};
|
\node[squarenode](P2)[right=of P1, background default draw=black, draw=accent, draw on=<3>]{P2};
|
||||||
\node[squarenode](P3)[right=of P2, background default draw=black, draw=awesomehighlight, draw on=<3>]{P3};
|
\node[squarenode](P3)[right=of P2, background default draw=black, draw=accent, draw on=<3>]{P3};
|
||||||
\node[squarenode](P4)[right=of P3, background default draw=black, draw=awesomehighlight, draw on=<3>]{P4};
|
\node[squarenode](P4)[right=of P3, background default draw=black, draw=accent, draw on=<3>]{P4};
|
||||||
\node[squarenode](P5)[right=of P4, background default draw=black, draw=awesomehighlight, draw on=<3>]{P5};
|
\node[squarenode](P5)[right=of P4, background default draw=black, draw=accent, draw on=<3>]{P5};
|
||||||
\node[draw=none](etc)[right=of P5]{...};
|
\node[draw=none](etc)[right=of P5]{...};
|
||||||
\node[squarenode, draw=awesomehighlight!70, background default draw=black, draw on=<{2,6,7}>, fit=(P1) (P2) (P3) (P4) (P5) (etc)] {};
|
\node[squarenode, draw=accent!70, background default draw=black, draw on=<{2,6,7}>, fit=(P1) (P2) (P3) (P4) (P5) (etc)] {};
|
||||||
\node[draw=none] at (6.2, 1.5) {\fontspec{Symbola}\symbol{"1F512}};
|
\node[draw=none] at (6.2, 1.5) {\fontspec{Symbola}\symbol{"1F512}};
|
||||||
|
|
||||||
\node[squarenode](N1)[below=of P2, background default draw=black, draw=awesomehighlight, draw on=<4>, visible on=<{4-7}>]{N1};
|
\node[squarenode](N1)[below=of P2, background default draw=black, draw=accent, draw on=<4>, visible on=<{4-7}>]{N1};
|
||||||
\node[squarenode](N2)[right=of N1, background default draw=black, draw=awesomehighlight, draw on=<4>, visible on=<{4-7}>]{N2};
|
\node[squarenode](N2)[right=of N1, background default draw=black, draw=accent, draw on=<4>, visible on=<{4-7}>]{N2};
|
||||||
\node[squarenode](N3)[right=of N2, background default draw=black, draw=awesomehighlight, draw on=<4>, visible on=<{4-7}>]{N3};
|
\node[squarenode](N3)[right=of N2, background default draw=black, draw=accent, draw on=<4>, visible on=<{4-7}>]{N3};
|
||||||
|
|
||||||
\node[squarenode](P1p)[below=1.5cm of P1, visible on=<{7-9}>]{P1'};
|
\node[squarenode](P1p)[below=1.5cm of P1, visible on=<{7-9}>]{P1'};
|
||||||
\node[squarenode](P2p)[right=of P1p, visible on=<{7-9}>]{P2'};
|
\node[squarenode](P2p)[right=of P1p, visible on=<{7-9}>]{P2'};
|
||||||
@@ -112,10 +112,10 @@
|
|||||||
\node[squarenode](P4p)[right=of P3p, visible on=<{7-9}>]{P4'};
|
\node[squarenode](P4p)[right=of P3p, visible on=<{7-9}>]{P4'};
|
||||||
\node[squarenode](P5p)[right=of P4p, visible on=<{7-9}>]{P5'};
|
\node[squarenode](P5p)[right=of P4p, visible on=<{7-9}>]{P5'};
|
||||||
\node[draw=none, visible on=<{7-9}>](etcp)[right=of P5p]{...};
|
\node[draw=none, visible on=<{7-9}>](etcp)[right=of P5p]{...};
|
||||||
\node[squarenode, draw=awesomegreen, background default draw=black, visible on=<{7-9}>, draw on=<7>, fit=(P1p) (P2p) (P3p) (P4p) (P5p) (etcp)] {};
|
\node[squarenode, draw=green, background default draw=black, visible on=<{7-9}>, draw on=<7>, fit=(P1p) (P2p) (P3p) (P4p) (P5p) (etcp)] {};
|
||||||
\node[draw=none, visible on=<{7-9}>] at (6.55, -0.55) {\fontspec{Symbola}\symbol{"1F512}};
|
\node[draw=none, visible on=<{7-9}>] at (6.55, -0.55) {\fontspec{Symbola}\symbol{"1F512}};
|
||||||
|
|
||||||
\node[squarenode](S)[below=of N2, background default draw=black, draw=awesomeblue, draw on=<6>, visible on=<6>]{S};
|
\node[squarenode](S)[below=of N2, background default draw=black, draw=blue, draw on=<6>, visible on=<6>]{S};
|
||||||
|
|
||||||
\draw[arrow, visible on=<{4-7}>] (P1) -- (N1);
|
\draw[arrow, visible on=<{4-7}>] (P1) -- (N1);
|
||||||
\draw[arrow, visible on=<{4-7}>] (P2) -- (N2);
|
\draw[arrow, visible on=<{4-7}>] (P2) -- (N2);
|
||||||
|
|||||||
1
smile
Submodule
1
smile
Submodule
Submodule smile added at 7cfb03765f
Reference in New Issue
Block a user