From e1a173cfba8bcb7d6d05c30d08c1cdd2e052edb8 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 24 Mar 2019 21:09:49 +0100 Subject: [PATCH] Add a snippet for the Metropolis template --- vim/.vim/UltiSnips/markdown.snippets | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/vim/.vim/UltiSnips/markdown.snippets b/vim/.vim/UltiSnips/markdown.snippets index ca330d2..802e815 100644 --- a/vim/.vim/UltiSnips/markdown.snippets +++ b/vim/.vim/UltiSnips/markdown.snippets @@ -20,3 +20,37 @@ logo: /home/coolneng/Pictures/Logos/UGR.png ... endsnippet + +snippet slides "YAML metadata for the Metropolis template" +--- +title: "$1" +author: [Amin Kasrou Aouam] +date: "`date +%F`" +header-includes: + +- \definecolor{dkgreen}{rgb}{0,0.52,0} +- \definecolor{gray}{rgb}{0.5,0.5,0.5} +- \definecolor{mauve}{rgb}{0.4,0,0.7} +- \definecolor{customBlue}{rgb}{0.1,0.1,0.65} +- \definecolor{customOrange}{rgb}{0.88,0.53,0.13} +- \lstset{frame=tb} +- \lstset{language=c} +- \lstset{aboveskip=5mm} +- \lstset{belowskip=5mm} +- \lstset{showstringspaces=false} +- \lstset{columns=flexible} +- \lstset{basicstyle={\scriptsize\ttfamily}} +- \lstset{numbers=left} +- \lstset{numberstyle=\tiny} +- \lstset{stepnumber=1} +- \lstset{numbersep=8pt} +- \lstset{numberstyle=\tiny\color{gray}} +- \lstset{keywordstyle=\color{customBlue}} +- \lstset{commentstyle=\color{dkgreen}} +- \lstset{stringstyle=\color{mauve}} +- \lstset{breaklines=true} +- \lstset{breakatwhitespace=true} +- \lstset{tabsize=4} +... + +endsnippet