Unverified Commit 48b68b0f authored by Jean-Claude Graf's avatar Jean-Claude Graf
Browse files

NEW: Console Toolkit Course

parent 3e0588a3
\ProvidesPackage{code}
\usepackage{tcolorbox}
\usepackage{url}
\usepackage{tikz}
\usetikzlibrary{tikzmark,calc,,arrows,shapes,decorations.pathreplacing}
\tikzset{every picture/.style={remember picture}}
\tcbuselibrary{skins,xparse,listings}
% Props to https://tex.stackexchange.com/questions/517976/drawing-realistic-linux-command-shell-windows-with-tcolorbox
\newtcblisting{shell}{
colback=violet!50!black,
colupper=white,
colframe=gray!65!black,
listing only,
listing options={
style=tcblatex,
language=sh,escapeinside=``,
},
title={\textcolor{orange}{\Large{$\bullet$}}{\textcolor{gray}{\Large{$\bullet\bullet$}}}},
every listing line={\MyMainPrompt}
}
\newtcblisting{shellcomp}{
colback=violet!50!black,
colupper=white,
colframe=gray!65!black,
listing only,
listing options={
style=tcblatex,
language=sh,escapeinside=``,
},
every listing line={\MyMainPrompt}
}
\pgfkeys{/shell/.cd,
user/.code={\gdef\MyMainUser{#1}},
user={},
host/.code={\gdef\MyMainHost{#1}},
host={},
color/.code={\gdef\MyMainColor{#1}},
color=white,
pwd/.code={\gdef\MyMainPwd{#1}},
pwd=\~,
prompt char/.code={\gdef\MyMainPromptChar{#1}},
prompt char=\#,
root/.style={user=root,host=ubuntu,color=lime,pwd=/,prompt char=\#},
bob/.style={user=bob,host=ubuntu,color=cyan,pwd=\~,prompt char=\$},
bobremote/.style={user=bob,host=myRemote,color=green,pwd=\~,prompt char=>},
alice/.style={user=alice,host=arch,color=green,pwd=\~,prompt char=>},
}
\newcommand{\SU}[1]{
\pgfkeys{/shell/.cd,#1}%
\gdef\MyMainPrompt{\textcolor{\MyMainColor}{\MyMainUser @\MyMainHost{\textcolor{white}:}\textcolor{cyan!60}{\url{\MyMainPwd}}{\textcolor{white}\MyMainPromptChar} }}
}
\newcommand{\StartConsole}{\gdef\MyMainPrompt{}}
\ProvidesPackage{general}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{multicol}
\usepackage{hyperref}
\usepackage{lmodern}
\usepackage{listings}
\usepackage[os=win]{menukeys}
\usepackage{tcolorbox}
\usefonttheme[onlymath]{serif}
\setcounter{MaxMatrixCols}{20}
\newcommand{\todo}[1]{\textcolor{red}{TODO: #1}\PackageWarning{TODO:}{#1!}}
% a red warning box
\definecolor{lred}{HTML}{ffd6dd}
\newtcolorbox{WarningBox}{%
colframe=red,
colback=lred}
This diff is collapsed.
\ProvidesPackage{slideStyle}
\usecolortheme[RGB={37,68,113}]{structure}
\usetheme{Dresden}
% Uncomment to disable top overview
% \setbeamertemplate{headline}{}
%Define TheAlt colors
\definecolor{ldorange}{HTML}{F18A20}
\definecolor{ldblue}{HTML}{254471}
%Apply TheAlt colors to theme
\setbeamercolor{section in head/foot}{fg=ldorange}
\setbeamercolor{author in head/foot}{fg=white}
\setbeamercolor{subsection in head/foot}{fg=white}
\setbeamercolor{caption name}{fg=vlg}
\setbeamercolor{caption}{fg=vlg}
\setbeamercolor{frametitle}{fg=ldblue}
\setbeamercolor{title}{fg=ldorange}
\setbeamercolor{institute}{fg=ldblue}
\setbeamerfont{title}{series=\bfseries}
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{bibliography item}[text]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment